コード例 #1
0
ファイル: author.php プロジェクト: wsander3/Pipe-Dream
</a>
						</h2>

						<div class="meta">By 
							<?php 
        if (function_exists('coauthors_posts_links')) {
            ?>
								<?php 
            if (is_coauthor_for_post('Staff Reports')) {
                ?>
									<span class="author">Staff Reports</span>
								<?php 
            } elseif (is_coauthor_for_post('archives')) {
                ?>
									<span class="author"><?php 
                echo pd_is_archived(get_the_ID(), '_author');
                ?>
</span>
								<?php 
            } else {
                ?>
									<span class="author"><?php 
                coauthors();
                ?>
</span>
								<?php 
            }
            ?>
							<?php 
        }
        ?>
コード例 #2
0
ファイル: single-post.php プロジェクト: wsander3/Pipe-Dream
get_header();
?>
	<div id="content" class="row">
		<div data-column="left-column" class="<?php 
echo !in_category('multimedia') ? 'span17' : 'span24';
?>
">
			<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
			
			<!-- Check if the article is part of the archives -->
			<?php 
        $archive = pd_is_archived(get_the_ID(), null);
        ?>

			<article id="post-<?php 
        the_ID();
        ?>
" class="pad-left clearfix" itemscope itemtype="http://schema.org/Article">
				
				<div class="single-label single-date">
					<time itemprop="dateCreated" datetime="<?php 
        the_time('Y-m-j\\TH:i:sT');
        ?>
" title="Published on <?php 
        the_time('F j, Y \\a\\t g:i A T');
        ?>
">