コード例 #1
0
ファイル: page.php プロジェクト: sovanda/Valenti
?>

	        <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        if ($cb_page_featured_style == '2') {
            echo cb_featured_image($post, 'page');
        }
        ?>

			<div id="main" class="entry-content clearfix" role="main">

				<?php 
        if ($cb_page_featured_style == NULL || $cb_page_featured_style == '1') {
            echo cb_featured_image($post, 'page');
        }
        ?>

				<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('clearfix');
        ?>
 role="article" itemscope itemtype="http://schema.org/BlogPosting">

					<section class="entry-content clearfix" itemprop="articleBody">
						<?php 
        the_content();
        ?>
コード例 #2
0
ファイル: single.php プロジェクト: luskyj89/mt-wordpress
 role="article" <?php 
        if ($cb_review_checkbox != '1') {
            echo 'itemscope itemtype="http://schema.org/BlogPosting"';
        }
        ?>
>
                                  
                                 <?php 
        if ($cb_featured_image_style == 'off' && $cb_breadcrumbs != 'off') {
            echo cb_breadcrumbs('padding-off');
        }
        if ($cb_featured_image_style == 'standard' && $cb_post_format != 'gallery') {
            echo cb_featured_image($post, 'standard');
        }
        if ($cb_featured_image_style == 'off' || $cb_post_format == 'gallery') {
            echo cb_featured_image($post, 'off');
        }
        ?>

								<section class="entry-content clearfix" <?php 
        if ($cb_review_checkbox == '1') {
            echo 'itemprop="reviewBody"';
        } else {
            echo 'itemprop="articleBody"';
        }
        ?>
>
								    
									<?php 
        the_content();
        ?>