コード例 #1
0
/author/<?php 
    echo urlencode($post->author());
    ?>
"><?php 
    echo getAuthorName((string) $post->author());
    ?>
</a></span> on <time datetime="<?php 
    echo $post->date('Y-m-d');
    ?>
"><?php 
    echo $post->date(c::get('posts-date-format'));
    ?>
</time>
					</div>
					<?php 
    echo getCoverImage($post, array('class' => 'img-responsive'));
    ?>
				</header>
				<div class="post-content col-xs-12">
					<?php 
    echo getPostExcerpt($post);
    ?>
				</div>
				<?php 
    snippet('post-footer', array('post' => $post, 'author' => true, 'tags' => true, 'category' => true, 'comments' => c::get('comments'), 'class' => 'post-footer col-xs-12'));
    ?>
			</article>
		<?php 
}
?>
コード例 #2
0
ファイル: posts.php プロジェクト: Warchamp7/blogprint
    echo getPostUrl($post);
    ?>
">
          <?php 
    echo $post->title()->html();
    ?>
        </a>
      </h1>
    </header>

    <?php 
    snippet('post-footer', array('post' => $post, 'author' => true, 'tags' => true, 'category' => true));
    ?>

    <?php 
    echo getCoverImage($post);
    ?>

    <?php 
    echo $post->text()->kirbytext();
    ?>

  </article>
<?php 
}
?>

<?php 
snippet('nav-pagination');
?>