Ejemplo n.º 1
0
<?php

get_header();
?>
<div id="content" class="row ">
  <h2 class="content-title column small-12 medium-10 large-12">
    <?php 
the_title();
?>
    <div class="readingtime"><?php 
echo '<span class="hide-for-small-only">' . __('reading time') . ': </span> ' . dwgnr_english_readingtime();
?>
</div>
  </h2>
  <?php 
if (have_posts()) {
    the_post();
    ?>
    <div <?php 
    post_class('column small-12 medium-10 large-8');
    ?>
>
      <div id="content_inner_wrapper" clear="all">
        <?php 
    the_content();
    include_once dirname(__FILE__) . '/lib/authorbox.php';
    flush();
    ?>
          <div id="underpost">
            <?php 
    dynamic_sidebar('underpost');
Ejemplo n.º 2
0
, small], [<?php 
        echo $medium_url;
        ?>
, medium]">
          <noscript>
            <img src="<?php 
        $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'article_image');
        echo $thumb['0'];
        ?>
">
          </noscript>
          <div class="inner" data-equalizer-watch>
            <div class="readingtime hide-for-small-only">
              <?php 
        // echo get_the_tag_list('',', ','') . ' – ';
        echo __('read this in ') . ' ' . dwgnr_english_readingtime();
        ?>
            </div>
            <h2><?php 
        the_title();
        ?>
</h2>
          </div>
        </a>
      </article>
    <?php 
        // prerendering the first 3 articles as these are most likely to be clicked
        if ($counter <= 3) {
            echo '<link rel="prerender" href="' . get_the_permalink() . '">';
        }
        flush();