Exemple #1
0
        }
        ?>
						</div>
						<h3><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
						<p class="blog_post_date"><?php 
        the_time('M, d Y');
        ?>
</p>
						<div class="blog_post_content"><?php 
        echo dess_get_excerpt(530);
        ?>
</div>
						<a href="<?php 
        the_permalink();
        ?>
" class="read-more">Read More</a>
						</article>
					</div>
				<?php 
    }
    ?>
				</div>
				<div class="load_more_content">
					<div class="load_more_text">
					<?php 
Exemple #2
0
        $type = get_post_meta($post->ID, 'page_featured_type', true);
        switch ($type) {
            case 'youtube':
                echo '<iframe width="560" height="315" src="http://www.youtube.com/embed/' . get_post_meta(get_the_ID(), 'page_video_id', true) . '?wmode=transparent" frameborder="0" allowfullscreen></iframe>';
                break;
            case 'vimeo':
                echo '<iframe src="http://player.vimeo.com/video/' . get_post_meta(get_the_ID(), 'page_video_id', true) . '?title=0&amp;byline=0&amp;portrait=0&amp;color=03b3fc" width="500" height="338" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                break;
            default:
                echo '<div class="grid_post_img">
												<a href="' . get_permalink() . '">' . get_the_post_thumbnail() . '</a>
											</div>';
                break;
        }
        echo '<div class="grid_home_posts">
										<p>' . dess_get_excerpt(120) . '</p>
									</div>
								</div>
								';
    }
    ?>
		</div>
		<?php 
    echo '<div class="load_more_content"><div class="load_more_text">';
    ob_start();
    next_posts_link('LOAD MORE', $query->max_num_pages);
    $buffer = ob_get_contents();
    ob_end_clean();
    if (!empty($buffer)) {
        echo $buffer;
    }