Exemple #1
0
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<?php 
affwp_post_thumbnail('large');
if (!is_singular()) {
    affwp_the_title();
}
?>

	<?php 
if (is_search()) {
    ?>

	<div class="entry-summary">
		<?php 
    the_excerpt();
    ?>
	</div>
	<?php 
} else {
    ?>
Exemple #2
0
/**
 * Page header
 */
function pp_page_header($header = '', $sub_header = '')
{
    global $post;
    ?>
	<?php 
    do_action('affwp_page_header_before');
    ?>
	<header class="page-header">

		<?php 
    if (is_home()) {
        ?>
			<?php 
        affwp_the_title('Blog');
        ?>
		<?php 
    } else {
        ?>

			<?php 
        affwp_the_title($header);
        ?>

			<?php 
        if (!$sub_header && isset($post->ID) && !is_post_type_archive()) {
            $sub_header = function_exists('get_the_subheading') && get_the_subheading() ? '<h2>' . get_the_subheading() . '</h2>' : '';
        }
        echo apply_filters('affwp_excerpt', $sub_header);
        ?>

		<?php 
    }
    ?>

		<?php 
    do_action('affwp_page_header_end');
    ?>

	</header>
	<?php 
    do_action('affwp_page_header_after');
}
Exemple #3
0
/**
 * Page header
 */
function affwp_page_header($header = '', $sub_heading = '')
{
    global $post;
    ?>
	<header class="entry-header">
		<?php 
    affwp_the_title($header);
    ?>

		<?php 
    if ($sub_heading) {
        $sub_heading = $sub_heading;
    } elseif (false !== $sub_heading) {
        $sub_heading = function_exists('get_the_subheading') && get_the_subheading() ? '<h2>' . get_the_subheading() . '</h2>' : '';
    }
    echo apply_filters('affwp_excerpt', $sub_heading);
    ?>

		<?php 
    do_action('affwp_page_header_end');
    ?>

	</header>
	<?php 
    do_action('affwp_page_header_after');
}