示例#1
0
    echo get_post_type();
    ?>
">
					<div class="blog-excerpt">
					<?php 
    $post_content = '';
    if (empty($excerpt)) {
        _e('No excerpt for this posting.', 'blogpost-lite');
    } else {
        echo wp_kses($excerpt, array('a' => array('href' => array(), 'class' => array())));
    }
    ?>
					</div>
					<?php 
    if (function_exists('get_tweet_buttons')) {
        get_tweet_buttons($post_id, false);
    }
    ?>
				</div>
				<?php 
} elseif ($attachments_count > 1) {
    ?>
				<div class="open-post-image-carousel">
					<div class="open-post-carousel-container">
						<?php 
    if (isset($img[0])) {
        ?>
							<img src="<?php 
        echo esc_url($img[0]);
        ?>
" class="open-post-carousel-image" alt="Carousel image" /> <?php 
示例#2
0
?>
>
		<div class="post-twitter-username icon-twitter-1">
		<?php 
if (function_exists('get_twitter_link')) {
    get_twitter_link($post->ID);
}
?>
		</div>
		<div class="post-inner entry-content <?php 
echo get_post_type();
?>
">
			<div class="blog-excerpt">
			<?php 
$post_content = '';
if (empty($excerpt)) {
    _e('No excerpt for this posting.', 'blogpost-lite');
} else {
    echo wp_kses($excerpt, array('a' => array('href' => array(), 'class' => array())));
}
?>
			</div>
			<?php 
if (function_exists('get_tweet_buttons')) {
    get_tweet_buttons($post->ID);
}
?>
		</div>
	</div>
</li>