global $multipage;
// Loop through posts
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	<section id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('latest-post cf');
        ?>
>
		<?php 
        sds_featured_image();
        ?>

		<section class="post-title-wrap page-title-wrap cf <?php 
        echo has_post_thumbnail() ? 'post-title-wrap-featured-image' : 'post-title-wrap-no-image';
        ?>
">
			<h1 class="page-title"><?php 
        the_title();
        ?>
</h1>
		</section>

		<?php 
        the_content();
        ?>
        ?>
" <?php 
        post_class(has_post_thumbnail() ? 'post post-block has-post-thumbnail blog-post' : 'post post-block no-post-thumbnail blog-post');
        ?>
>
		<?php 
        tha_entry_top();
        ?>

		<?php 
        if (has_post_thumbnail()) {
            // Featured Image
            ?>
			<header class="blog-post-header">
				<?php 
            sds_featured_image(false, 'me-1022x300');
            ?>
			</header>
		<?php 
        }
        ?>

		<section class="page-content blog-post-content cf">
			<section class="post-title-wrap page-title-wrap cf <?php 
        echo has_post_thumbnail() ? 'post-title-wrap-featured-image' : 'post-title-wrap-no-image';
        ?>
">
				<h1 class="title"><?php 
        the_title();
        ?>
</h1>
Exemple #3
0
        /**
         * This function outputs the featured image for Conductor Widgets.
         */
        public function conductor_widget_featured_image($post, $instance, $widget, $query)
        {
            // Find the featured image output element data
            $priority = $instance['output_elements']['featured_image'];
            $output = $instance['output'][$priority];
            if (has_post_thumbnail($post->ID)) {
                do_action('conductor_widget_featured_image_before', $post, $instance);
                // Output desired featured image size
                if (!empty($instance['post_thumbnails_size'])) {
                    $conductor_thumbnail_size = $instance['post_thumbnails_size'];
                } else {
                    $conductor_thumbnail_size = $instance['widget_size'] !== 'small' ? $instance['widget_size'] : 'thumbnail';
                }
                $conductor_thumbnail_size = apply_filters('conductor_widget_featured_image_size', $conductor_thumbnail_size, $instance, $post);
                ?>
				<!-- Post Thumbnail/Featured Image -->
				<div class="article-thumbnail-wrap article-featured-image-wrap post-thumbnail-wrap featured-image-wrap cf">
					<?php 
                sds_featured_image((bool) $output['link'], $conductor_thumbnail_size);
                ?>
				</div>
				<!-- End Post Thumbnail/Featured Image -->
		<?php 
                do_action('conductor_widget_featured_image_after', $post, $instance);
            }
        }
        ?>
" <?php 
        post_class(has_post_thumbnail() ? 'post post-block has-post-thumbnail news-block' : 'post post-block no-post-thumbnail news-block');
        ?>
>
		<?php 
        tha_entry_top();
        ?>

		<?php 
        if (has_post_thumbnail()) {
            // Featured Image
            ?>
			<section class="news-thumb">
				<?php 
            sds_featured_image(true);
            ?>
			</section>
		<?php 
        }
        ?>
		<section class="news-block-info blog-post-content cf <?php 
        echo has_post_thumbnail() ? 'news-block-info-featured-image' : 'news-block-info-no-image';
        ?>
">
			<p class="home-block-date">
				<?php 
        if (strlen(get_the_title()) > 0) {
            the_time(get_option('date_format'));
        } else {
            // No title
    while (have_posts()) {
        the_post();
        ?>
		<section id="<?php 
        the_ID();
        ?>
" <?php 
        post_class(has_post_thumbnail() ? 'block-3 latest-post cf' : 'block-3 latest-post has-image-placeholder cf');
        ?>
>

			<?php 
        if (has_post_thumbnail()) {
            ?>
				<?php 
            sds_featured_image(true, 'simple-shop-425x280');
            ?>
			<?php 
        } else {
            ?>
				<div class="post-image post-image-placeholder">
					<a href="<?php 
            the_permalink();
            ?>
">
						<div class="dashicons dashicons-images-alt2"></div>
					</a>
				</div>
			<?php 
        }
        ?>
Exemple #6
0
        ?>
" <?php 
        post_class('blog-post cf');
        ?>
>
		<?php 
        tha_entry_top();
        ?>

		<?php 
        if (has_post_thumbnail()) {
            // Featured Image
            ?>
			<header class="blog-post-header">
				<?php 
            sds_featured_image(false, 'me-685x300');
            ?>
			</header>
		<?php 
        }
        ?>

		<section class="page-content blog-post-content cf">
			<section class="post-title-wrap page-title-wrap cf <?php 
        echo has_post_thumbnail() ? 'post-title-wrap-featured-image' : 'post-title-wrap-no-image';
        ?>
">
				<p class="home-block-date">
					<?php 
        if (strlen(get_the_title()) > 0) {
            the_time(get_option('date_format'));
<?php

global $multipage;
// Loop through posts
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

		<?php 
        sds_featured_image(false, 'simple-shop-1600x9999');
        ?>

		<article id="<?php 
        the_ID();
        ?>
" <?php 
        post_class('page-content cf');
        ?>
>
			<header class="post-header">
				<h1 class="page-title">
					<?php 
        the_title();
        ?>
				</h1>
			</header>

			<?php 
        the_content();
        ?>
global $multipage;
// Used to determine if the current post has multiple pages
// Loop through posts
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	<section id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('full-width-post cf');
        ?>
>
		<?php 
        sds_featured_image(false, 'epic-1200x400');
        // Full width featured image
        ?>

		<h1 class="page-title"><?php 
        the_title();
        ?>
</h1>

		<section class="content-wrap">
			<?php 
        the_content();
        ?>
		</section>

		<section class="clear"></section>
global $multipage;
// Used to determine if the current post has multiple pages
// Loop through posts
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	<section id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('full-width-post cf');
        ?>
>
		<?php 
        sds_featured_image(false, 'min-1100x400');
        // Full width featured image
        ?>

		<h1 class="page-title"><?php 
        the_title();
        ?>
</h1>

		<?php 
        the_content();
        ?>

		<section class="clear"></section>

		<?php