Ejemplo n.º 1
0
    ?>
    <?php 
    wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'kpb'), 'after' => '</div>'));
    ?>
  </div>
  <?php 
}
?>

  <footer class="entry-meta">
    <?php 
if ('post' == get_post_type()) {
    ?>
      <?php 
    $categories_list = get_the_category_list(__(', ', 'kpb'));
    if ($categories_list && kpb_categorized_blog()) {
        ?>
        <span class="cat-links">
          <?php 
        printf(__('Posted in %1$s', 'kpb'), $categories_list);
        ?>
        </span>
      <?php 
    }
    ?>
      <?php 
    $tags_list = get_the_tag_list('', __(',', 'kpb'));
    if ($tags_list) {
        ?>
        <span class="sep"> | </span>
        <span class="tag-links">
    <div class="entry-content">
        <?php 
the_content();
?>
        <?php 
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'kpb'), 'after' => '</div>'));
?>
    </div>

    <footer class="entry-meta">
        <?php 
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list(__(', ', 'kpb'));
$tag_list = get_the_tag_list('', __(', ', 'kpb'));
// if the post has only 1 category
if (!kpb_categorized_blog()) {
    //  add meta tags
    if ('' != $tag_list) {
        $meta_text = __('This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'kpb');
    } else {
        $meta_text = __('Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'kpb');
    }
} else {
    //  if there are > 1 categories display the,
    if ('' != $tag_list) {
        $meta_text = __('This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'kpb');
    } else {
        $meta_text = __('This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'kpb');
    }
}
printf($meta_text, $category_list, $tag_list, get_permalink(), the_title_attribute('echo=0'));