/* add html/search to menu */ $add_div = true; $add_enddiv = false; $add_html = weaver_getopt('ttw_menu_addhtml'); if (!empty($add_html)) { echo '<div class="menu-add">'; $add_div = false; echo do_shortcode($add_html); $add_enddiv = true; } if (weaver_getopt_plus('wvp_add_social_to_menu') > 0) { if ($add_div) { echo '<div class="menu-add">'; } $add_div = false; $val = weaver_getopt_plus('wvp_add_social_to_menu'); $width = $val * 28; echo do_shortcode(sprintf('<div style="width:%spx; padding-right:4px;display:inline;">[weaver_social number=%d]</div>', $width, $val)); $add_enddiv = true; } if (weaver_getopt('ttw_menu_addsearch')) { if ($add_div) { echo '<div class="menu-add">'; } $add_div = false; if (function_exists('weaver_plus_search_form')) { echo '<span style="padding-top:8px !important;padding-right:4px !important;display:inline-block;">'; echo weaver_plus_search_form('', 120); echo '</span>'; } else { echo '<span style="padding-top:4px !important;padding-right:4px !important;display:inline-block;">';
function weaver_posted_in_code($single = 'blog') { global $weaver_cur_post_id; if (weaver_getopt_plus('wvp_post_info_hide_bottom') || weaver_is_checked_page_opt('wvp_perpost_info_hide_bottom')) { return; } if ($single == 'single') { weaver_posted_in_single(); return; } $leftm = '8'; if (!weaver_getopt('ttw_hide_post_fill')) { $leftm = '0'; } // no left margin if not hiding fill in echo "<div class=\"entry-utility\">\n"; $need_sep = false; $cat_count = count(get_the_category()); if (($cat_count > 1 || $cat_count < 2 && !weaver_getopt('ttw_hide_singleton_cat')) && !weaver_getopt('ttw_post_hide_cats')) { if (weaver_getopt('ttw_post_icons')) { printf(sprintf('<img class="entry-cat-img" src="%s/images/icons/category-1.png" style="position:relative; top:4px;" />', get_template_directory_uri())); } ?> <span class="cat-links"> <?php printf(__('<span class="%1$s">Posted in</span> %2$s', WEAVER_TRANS), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list(', ')); ?> </span> <?php $need_sep = true; } if (!weaver_getopt('ttw_post_hide_cats')) { $tags_list = get_the_tag_list('', ', '); if ($tags_list) { if ($need_sep) { ?> <span class="meta-sep meta-sep-bar">|</span> <?php $need_sep = true; } if (weaver_getopt('ttw_post_icons')) { printf(sprintf('<img class="entry-tag-img" src="%s/images/icons/tag-1.png" style="position:relative; top:5px; padding-left:5px;" />', get_template_directory_uri())); } ?> <span class="tag-links"> <?php printf(__('<span class="%1$s">Tagged</span> %2$s', WEAVER_TRANS), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list); ?> </span> <?php } } global $post; if (!weaver_getopt('ttw_hide_comments_closed') || get_comments_number($weaver_cur_post_id) > 0 || 'open' == $post->comment_status) { if ($need_sep) { ?> <span class="meta-sep meta-sep-bar">|</span> <?php $need_sep = true; } if (weaver_getopt('ttw_post_icons')) { printf(sprintf('<img class="entry-comment-img" src="%s/images/icons/comment-1.png" style="position:relative; top:5px; padding-left:5px;" />', get_template_directory_uri())); } ?> <span class="comments-link"><?php comments_popup_link(__('Leave a comment', WEAVER_TRANS), __('1 Comment', WEAVER_TRANS), __('% Comments', WEAVER_TRANS)); ?> </span> <?php } edit_post_link(__('Edit', WEAVER_TRANS), '<span class="meta-sep meta-sep-bar">|</span> <span class="edit-link">', '</span>'); echo "</div><!-- .entry-utility -->\n"; }