<?php } else { weaverx_post_div('content'); weaverx_the_post_full(); weaverx_link_pages(); ?> </div><!-- .entry-content --> <?php } ?> <div class="atw-aside-margin" style="margin-bottom:20px;"></div> <?php if (!weaverx_compact_post()) { weaverx_format_posted_on_footer('aside'); weaverx_compact_link('check'); } else { weaverx_compact_link(); weaverx_edit_link(); } ?> <?php weaverx_inject_area('postpostcontent'); // inject post comment body ?> <div style="clear:both;"></div></article><!-- /#post-<?php the_ID(); ?> -->
function weaverx_posted_in($type = '') { /** * Prints HTML with meta information for the current post-date/time and author. * Create your own weaverx_posted_on to override in a child theme */ if (weaverx_getopt_checked('post_info_hide_bottom') || weaverx_is_checked_post_opt('_pp_hide_bottom_post_meta') || weaverx_is_checked_page_opt('_pp_hide_infobottom') || weaverx_t_get('hide_bottom_info')) { // hide bottom? weaverx_edit_link(); return; } if (weaverx_is_checked_page_opt('_pp_hide_infobottom') && !weaverx_t_get('showposts')) { return; } $pi = "\n<div " . weaverx_meta_info_class('post_info_bottom') . ">\n"; if ($type == 'single') { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(__(', ', 'weaver-xtreme')); /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', __(', ', 'weaver-xtreme')); if ('' != $tags_list) { $utility_text = __('This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'weaver-xtreme'); } elseif ('' != $categories_list) { $utility_text = __('This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'weaver-xtreme'); } else { $utility_text = __('This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'weaver-xtreme'); } if ($categories_list) { $cat_count = count(get_the_category()); if ($cat_count < 2 && weaverx_getopt_checked('hide_singleton_category')) { $pi .= "\t\t\t<span class=\"cat-links post_hide-singleton-category\">\n"; } else { $pi .= "\t\t\t<span class=\"cat-links\">\n"; } $pi .= sprintf(__('<span class="%1$s">Posted in</span> %2$s', 'weaver-xtreme'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list); $pi .= "\t\t\t</span>\n"; } // End if categories /* translators: used between list items, there is a space after the comma */ if ($tags_list) { $pi .= "\t\t\t<span class=\"tag-links\">\n"; $pi .= sprintf(__('<span class="%1$s">Tagged</span> %2$s', 'weaver-xtreme'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list); $pi .= "\t\t\t</span>\n"; } // End if $tags_list $pi .= '<span class="permalink-icon"><a href="' . esc_url(get_permalink()) . '" title="Permalink to ' . the_title_attribute(array('echo' => false)) . '" rel="bookmark">' . __('permalink', 'weaver-xtreme') . '</a></span>'; $pi .= weaverx_edit_link('noecho'); } else { if ($type == 'reply') { $dummy = true; } else { // else not single $show_sep = false; if ('page' != get_post_type()) { // Hide category and tag text for pages on Search /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(__(', ', 'weaver-xtreme')); $cat_count = count(get_the_category()); $skip = $cat_count < 2 && weaverx_getopt_checked('hide_singleton_category'); if ($categories_list && !$skip) { $pi .= '<span class="cat-links">'; $pi .= sprintf(__('<span class="%1$s">Posted in</span> %2$s', 'weaver-xtreme'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list); $show_sep = true; $pi .= '</span>'; } // End if categories /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', __(', ', 'weaver-xtreme')); if ($tags_list) { if ($show_sep) { $pi .= '<span class="sep"> | </span>'; } // End if $show_sep $pi .= '<span class="tag-links">'; $pi .= sprintf(__('<span class="%1$s">Tagged</span> %2$s', 'weaver-xtreme'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list); $show_sep = true; $pi .= '</span>'; } // End if $tags_list } // End if 'page' != get_post_type() if (comments_open()) { if ($show_sep) { $pi .= '<span class="sep"> | </span>'; } // End if $show_sep $pi .= '<span class="comments-link">'; ob_start(); // yuck - why doesn't WP make all the utilities have an echo option?? comments_popup_link('<span class="leave-reply">' . __('Leave a reply', 'weaver-xtreme') . '</span>', __('<b>1</b> Reply', 'weaver-xtreme'), __('<b>%</b> Replies', 'weaver-xtreme')); $pi .= ob_get_clean(); $pi .= '</span>'; } // End if comments_open() $pi .= weaverx_edit_link('noecho'); } } // end non-single $pi .= "\n</div><!-- .entry-meta-icons -->\n"; echo apply_filters('weaverx_posted_in', $pi, $type); }