Пример #1
0
    ?>
			<?php 
    wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'athemes'), 'after' => '</div>'));
    ?>
		<!-- .entry-content --></div>
	<?php 
}
?>

	<footer class="entry-meta entry-footer">
		<?php 
if ('post' == get_post_type()) {
    ?>
			<?php 
    $categories_list = get_the_category_list(__(', ', 'athemes'));
    if ($categories_list && athemes_categorized_blog()) {
        ?>
			<span class="cat-links">
				<?php 
        printf(__('<i class="ico-folder"></i> %1$s', 'athemes'), $categories_list);
        ?>
			</span>
			<?php 
    }
    ?>

			<?php 
    $tags_list = get_the_tag_list('', __(', ', 'athemes'));
    if ($tags_list) {
        ?>
			<span class="tags-links">
	<div class="clearfix entry-content">
		<?php 
the_content();
?>
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'athemes'), 'after' => '</div>'));
?>
	<!-- .entry-content --></div>

	<footer class="entry-meta entry-footer">
		<?php 
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list(__(', ', 'athemes'));
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list('', __(', ', 'athemes'));
if (!athemes_categorized_blog()) {
    // This blog only has 1 category so we just need to worry about tags in the meta text
    if ('' != $tag_list) {
        $meta_text = __('<span class="tags-links"><i class="ico-tags"></i> %2$s</span>', 'athemes');
    }
} else {
    // But this blog has loads of categories so we should probably display them here
    if ('' != $tag_list) {
        $meta_text = __('<span class="cat-links"><i class="ico-folder"></i> %1$s</span><span class="tags-links"><i class="ico-tags"></i> %2$s</span>', 'athemes');
    } else {
        $meta_text = __('<span class="cat-links"><i class="ico-folder"></i> %1$s</span>', 'athemes');
    }
}
// end check for categories on this blog
printf($meta_text, $category_list, $tag_list);
?>