Пример #1
0
}
?>

  <?php 
if ($single && !render_is_longform()) {
    if ($thumbnail || $has_tz_gallery || $gallery && $is_gallery_format || $is_video_format) {
        ?>
      <div class="single-featured-image">
        <?php 
        if (!$has_tz_gallery) {
            the_post_thumbnail('single-post');
        }
        ?>
        <?php 
        if ($is_gallery_format) {
            echo render_post_gallery($post->ID, 'single-post');
            echo $gallery;
        } elseif ($is_video_format) {
            echo render_print_video_html($post->ID);
        }
        ?>
      </div>
  <?php 
    }
}
?>

  <div id="content" class="site-content <?php 
if ($has_hero && !$internal_page && !is_search()) {
    ?>
with-hero<?php 
Пример #2
0
      <?php 
} else {
    ?>
        <h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>
      <?php 
}
?>

      <?php 
if (!is_single() && !($is_longform && is_single())) {
    // On the index page, show a tz gallery if we have one, otherwise show the feat. img
    if ($has_tz_gallery) {
        echo render_post_gallery($post->ID, 'blog-post');
    } else {
        the_post_thumbnail('blog-post');
    }
}
?>

      <div class="entry-body">
        <div class="content">
          <?php 
if ($single && $is_gallery) {
    echo $pc_gallery;
} else {
    // Quote
    if ($quote) {
        printf('<blockquote><p>%s<cite>%s</cite></p></blockquote>', $quote, $quote_author);