2020-04-07 13:03:04 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying Link post formats.
|
|
|
|
*
|
|
|
|
* @package GeneratePress
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit; // Exit if accessed directly.
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php generate_do_microdata( 'article' ); ?>>
|
|
|
|
<div class="inside-article">
|
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* generate_before_content hook.
|
|
|
|
*
|
|
|
|
* @since 0.1
|
|
|
|
*
|
|
|
|
* @hooked generate_featured_page_header_inside_single - 10
|
|
|
|
*/
|
|
|
|
do_action( 'generate_before_content' );
|
|
|
|
|
2020-10-20 15:16:18 +00:00
|
|
|
if ( generate_show_entry_header() ) :
|
2020-04-07 13:03:04 +00:00
|
|
|
?>
|
2020-10-20 15:16:18 +00:00
|
|
|
<header class="entry-header">
|
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* generate_before_entry_title hook.
|
|
|
|
*
|
|
|
|
* @since 0.1
|
|
|
|
*/
|
|
|
|
do_action( 'generate_before_entry_title' );
|
|
|
|
|
|
|
|
if ( generate_show_title() ) {
|
|
|
|
$params = generate_get_the_title_parameters();
|
|
|
|
|
|
|
|
the_title( $params['before'], $params['after'] );
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* generate_after_entry_title hook.
|
|
|
|
*
|
|
|
|
* @since 0.1
|
|
|
|
*
|
|
|
|
* @hooked generate_post_meta - 10
|
|
|
|
*/
|
|
|
|
do_action( 'generate_after_entry_title' );
|
|
|
|
?>
|
|
|
|
</header>
|
|
|
|
<?php
|
|
|
|
endif;
|
2020-04-07 13:03:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* generate_after_entry_header hook.
|
|
|
|
*
|
|
|
|
* @since 0.1
|
|
|
|
*
|
|
|
|
* @hooked generate_post_image - 10
|
|
|
|
*/
|
|
|
|
do_action( 'generate_after_entry_header' );
|
|
|
|
|
2020-10-20 15:16:18 +00:00
|
|
|
$itemprop = '';
|
|
|
|
|
|
|
|
if ( 'microdata' === generate_get_schema_type() ) {
|
|
|
|
$itemprop = ' itemprop="text"';
|
|
|
|
}
|
2020-04-07 13:03:04 +00:00
|
|
|
|
2020-10-20 15:16:18 +00:00
|
|
|
if ( generate_show_excerpt() ) :
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="entry-summary"<?php echo $itemprop; // phpcs:ignore -- No escaping needed. ?>>
|
2020-04-07 13:03:04 +00:00
|
|
|
<?php the_excerpt(); ?>
|
2020-10-20 15:16:18 +00:00
|
|
|
</div>
|
2020-04-07 13:03:04 +00:00
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
|
2020-10-20 15:16:18 +00:00
|
|
|
<div class="entry-content"<?php echo $itemprop; // phpcs:ignore -- No escaping needed. ?>>
|
2020-04-07 13:03:04 +00:00
|
|
|
<?php
|
|
|
|
the_content();
|
|
|
|
|
2020-10-20 15:16:18 +00:00
|
|
|
wp_link_pages(
|
|
|
|
array(
|
|
|
|
'before' => '<div class="page-links">' . __( 'Pages:', 'generatepress' ),
|
|
|
|
'after' => '</div>',
|
|
|
|
)
|
|
|
|
);
|
2020-04-07 13:03:04 +00:00
|
|
|
?>
|
2020-10-20 15:16:18 +00:00
|
|
|
</div>
|
2020-04-07 13:03:04 +00:00
|
|
|
|
2020-10-20 15:16:18 +00:00
|
|
|
<?php
|
|
|
|
endif;
|
2020-04-07 13:03:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* generate_after_entry_content hook.
|
|
|
|
*
|
|
|
|
* @since 0.1
|
|
|
|
*
|
|
|
|
* @hooked generate_footer_meta - 10
|
|
|
|
*/
|
|
|
|
do_action( 'generate_after_entry_content' );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* generate_after_content hook.
|
|
|
|
*
|
|
|
|
* @since 0.1
|
|
|
|
*/
|
|
|
|
do_action( 'generate_after_content' );
|
|
|
|
?>
|
2020-10-20 15:16:18 +00:00
|
|
|
</div>
|
|
|
|
</article>
|