示例#1
0
 /** Display widget */
 function widget($args, $instance)
 {
     global $post;
     extract($args, EXTR_SKIP);
     $title = $instance['title'];
     $limit = intval($instance['limit']);
     $title = apply_filters('widget_title', $title);
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     // markup here
     $args = array('thumb' => $instance['thumb'], 'meta' => $instance['meta'], 'thumb_size' => $instance['thumb_size']);
     tst_related_posts_list($post, $instance['taxonomy'], $limit, $args);
     echo $after_widget;
 }
示例#2
0
    echo apply_filters('the_content', $split_content['content']);
    ?>
		</div>
	
	<?php 
}
//if format
?>
	
	<aside class="related-posts">
		<h3><?php 
_e('Related posts', 'tst');
?>
</h3>
		<?php 
tst_related_posts_list($post, 'post_tag', 4, array('thumb' => false));
?>
	</aside>
	
	<footer class="post-footer">	

	<?php 
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list('', ', ');
if ($tags_list) {
    ?>
		<span class="tags-links">
			<?php 
    printf(__('Tags: %1$s', 'tst'), $tags_list);
    ?>
		</span>