Пример #1
0
function wallow_top_meta()
{
    ?>
	<div class="meta">

		<?php 
    if (!is_page() || get_comments_number()) {
        wallow_post_details(array('fields' => is_page() ? array('comments') : array('author', 'categories', 'tags', 'comments'), 'author_label' => __('by %s', 'wallow'), 'format' => 'div'));
    }
    ?>

		<?php 
    edit_post_link(__('Edit', 'wallow'), '');
    ?>

		<?php 
    if (is_page()) {
        wallow_multipages();
    }
    ?>

	</div>
<?php 
}
Пример #2
0
 function post_details()
 {
     if (!is_single()) {
         return;
     }
     $output = '<div class="widget tb_post_details">';
     $output .= apply_filters('wallow_mobile_filter_seztitle', __('Post details', 'wallow'));
     $output .= '<div class="widget-body">' . wallow_post_details(array('echo' => 0, 'fields' => array('author', 'categories', 'tags', 'date'))) . '</div></div>';
     echo $output;
 }