function bizz_seo_noindex() { global $opt; if (get_option('blog_public') != '0') { $current_page = get_query_var('paged'); // Index the content? specified for secific page or post by meta tags if (is_page() || is_single()) { global $post; if (get_post_meta($post->ID, 'bizzthemes_noindex', true)) { $meta_noindex = '<meta name="robots" content="noindex, nofollow" />'; } $seopages = get_inc_pages("pag_exclude_seo_"); $seoarr = explode(",", $seopages); $seoarr = array_diff($seoarr, array("")); foreach ($seoarr as $seoitem) { if ($post->ID == $seoitem && !get_post_meta($post->ID, 'bizzthemes_noindex', true)) { $meta_noindex = '<meta name="robots" content="noindex, nofollow" />'; } } // Index the content? specified for global content in theme option panel } elseif (is_search() || is_404() || is_category() && isset($opt['bizzthemes_noindex_category']['value']) || is_tag() && isset($opt['bizzthemes_noindex_tag']['value']) || is_author() && isset($opt['bizzthemes_noindex_author']['value']) || is_day() && isset($opt['bizzthemes_noindex_daily']['value']) || is_month() && isset($opt['bizzthemes_noindex_monthly']['value']) || is_year() && isset($opt['bizzthemes_noindex_yearly']['value']) || $current_page > 1) { $meta_noindex = '<meta name="robots" content="noindex, nofollow" />'; } if (isset($meta_noindex)) { echo $meta_noindex . "\n"; } $nodir = array(); if (isset($opt['bizzthemes_noodp_meta']['value'])) { $nodir[] = 'noodp'; } if (isset($opt['bizzthemes_noydir_meta']['value'])) { $nodir[] = 'noydir'; } if (isset($nodir)) { echo $meta_nodir = '<meta name="robots" content="' . implode(', ', $nodir) . '" />' . "\n"; } } }
function show_pages_header_nav() { if (get_option('ptthemes_pageheader_display') == 'Show' || get_option('ptthemes_pageheader_display') == '') { wp_list_pages('title_li=&depth=0&exclude=' . get_inc_pages("pag_exclude_") . '&sort_column=menu_order'); } }
<ul class="sf-menu sf-vertical "> <li class="hometab <?php if (is_home()) { ?> current_page_item <?php } ?> "><a href="<?php echo get_option('home'); ?> /"><?php echo get_option('ptthemes_home_name'); ?> </a></li> <?php wp_list_pages('title_li=&exclude=' . get_inc_pages("pag_exclude_") . '&sort_column=menu_order'); ?> </ul> <div class="clearfix"></div> <div class="cart_section_l clearfix"> <div class="cart_section_top"> <div class="cart_section_bottom "> <h4>Shopping Cart</h4> <p>Você tem<a href="<?php echo site_url(); ?>