コード例 #1
0
ファイル: single.php プロジェクト: sbhambad/TimousDemo
    while (have_posts()) {
        the_post();
        ?>
					<article id="entry-<?php 
        the_ID();
        ?>
" <?php 
        post_class('entry');
        ?>
>
						<?php 
        if (ci_has_image_to_show()) {
            ?>
							<figure class="entry-thumb">
								<a href="<?php 
            echo ci_get_featured_image_src('large');
            ?>
" data-rel="prettyPhoto">
									<?php 
            ci_the_post_thumbnail();
            ?>
								</a>
							</figure>
						<?php 
        }
        ?>

						<h1 class="entry-title">
							<?php 
        the_title();
        ?>
コード例 #2
0
<?php 
$slides = ci_theme_get_slides(false, get_queried_object_id());
if ($slides->have_posts()) {
    ?>
	<div id="home-slider" class="flexslider loading">
		<ul class="slides">
			<?php 
    while ($slides->have_posts()) {
        $slides->the_post();
        ?>
				<?php 
        $url = esc_url(get_post_meta(get_the_ID(), 'ci_cpt_slider_url', true));
        $video_url = get_post_meta(get_the_ID(), 'ci_cpt_slider_video_url', true);
        ?>
				<li style="background-image: url('<?php 
        echo esc_url(ci_get_featured_image_src('ci_slider'));
        ?>
');">
					<?php 
        if (empty($video_url)) {
            ?>
						<div class="slide-content">
							<h3 class="slide-title"><?php 
            the_title();
            ?>
</h3>
							<p class="slide-subtitle"><?php 
            echo get_post_meta(get_the_ID(), 'ci_cpt_slider_text', true);
            ?>
</p>
							<?php