コード例 #1
0
function custom_is_news()
{
    return custom_is_newsarchive() || is_singular('post');
}
コード例 #2
0
ファイル: post.php プロジェクト: certainlyakey/linguamore
<article class="<?php 
if (is_singular()) {
    echo " single-content";
}
if (custom_is_archive() || custom_is_newsarchive()) {
    echo " post-item";
}
?>
">
	<?php 
if (isset($isnewscompact)) {
    echo '<a href="' . get_permalink() . '" rel="bookmark">';
}
?>
	<header>
		<?php 
if (custom_is_news()) {
    ?>
			<time datetime="<?php 
    the_time('Y-m-d');
    ?>
">
			<?php 
    if (isset($isnewscompact)) {
        the_time('d.m.Y');
    } else {
        the_time('d/m');
    }
    ?>
			</time>
		<?php