function meso_add_custom_breadcrumbs() { $breadcrumb_on = get_theme_mod('breadcrumbs_on'); if ($breadcrumb_on == 'enable') { if (function_exists('is_in_woocommerce_page') && is_in_woocommerce_page() || function_exists('is_in_jigoshop_page') && is_in_jigoshop_page()) { } else { if (get_post_type() == 'post' || get_post_type() == 'page') { echo meso_schema_breadcrumbs(); } } } }
} ?> <?php do_action('bp_before_custom_header'); $header_overlay = get_theme_mod('custom_header_overlay'); if (get_header_image() && $header_overlay == 'No') { ?> <div id="custom-img-header"><img src="<?php echo header_image(); ?> " alt="" /></div> <?php } do_action('bp_after_custom_header'); ?> <?php do_action('bp_before_breadcrumbs'); $breadcrumb_on = get_theme_option('breadcrumbs_on'); if ($breadcrumb_on == 'Enable') { if (function_exists('is_in_woocommerce_page') && is_in_woocommerce_page() || function_exists('is_in_jigoshop_page') && is_in_jigoshop_page()) { } else { if (get_post_type() == 'post' || get_post_type() == 'page') { get_template_part('lib/templates/breadcrumbs'); } } } do_action('bp_after_breadcrumbs');
function woo_wp_custom_css() { if (function_exists('is_in_woocommerce_page') && is_in_woocommerce_page()) { print "<style type='text/css' media='all'>"; if (is_cart() || is_checkout()) { ?> div#woo-wrapper .content {width:95%;margin: 0;clear:both;} div#woo-wrapper #post-entry article .post-content {float: none !important;padding:0;} div#woo-wrapper article.page {border: 0 none !important;margin:0 !important;padding:0 !important;} h3#order_review_heading { margin-top: 3em; } .sidebar, footer.footer-top { display: none !important; } <?php } ?> #woo-container h2 {font-size:1.25em;margin: 1em 0; } .woocommerce-page #content {float: left;width: 69%;padding: 0 !important;background: transparent none;border: 0 none;margin: 1em 0 2em !important;box-shadow: 0 0 0 0 transparent;-moz-box-shadow: 0 0 0 0 transparent;-webkit-box-shadow: 0 0 0 0 transparent;} #custom .shop-sidebar {padding:3em 0 0;} <?php if (get_theme_mod('custom_shop') == 'enable') { } else { ?> .woocommerce .related ul.products li.product, .woocommerce-page .related ul.products li.product, .woocommerce .upsells.products ul.products li.product, .woocommerce-page .upsells.products ul.products li.product, .woocommerce .related ul li.product, .woocommerce-page .related ul li.product, .woocommerce .upsells.products ul li.product, .woocommerce-page .upsells.products ul li.product { clear:none;width:20%;height:350px;float:left;margin:0 20px 20px 0; } #woo-container span.price,#woo-container p.price,#custom ul.product_list_widget li span.amount {background-color:transparent;color:#333;} #woo-container span.price,#woo-container p.price {font-size:1.2em;} .woocommerce ul.products li.product h3,.woocommerce div.product .product_title {font-size: 1.3em;line-height:110%;} <?php } print "</style>"; } print "<style type='text/css' media='all'>"; ?> #custom .post-content ul.products li.product a, #custom .post-content ul.products li.product a {text-decoration: none !important;} a.buybutton {padding: 7px 20px;background: #e8e8e8;color: #666;border: 1px solid #ccc;float: left;font-weight: bold;text-shadow: 0 0 1px #fff;margin: 8px;} a.buybutton.oncart {background: #FFFFFF;color: #5BB850;border: 1px solid #63DB9B;} <?php print "</style>"; }
?> " /> <?php wp_head(); ?> </head> <body <?php body_class(); ?> id="custom"> <div class="product-with-desc secbody"<?php if (function_exists('is_in_woocommerce_page') && is_in_woocommerce_page()) { echo ' id="woo-wrapper"'; } ?> > <?php do_action('bp_before_wrapper'); ?> <div id="wrapper"> <?php do_action('bp_before_wrapper_main'); ?> <div id="wrapper-main">
function woo_wp_custom_css() { if (function_exists('is_in_woocommerce_page') && is_in_woocommerce_page()) { print "<style type='text/css' media='all'>"; if (is_cart() || is_checkout()) { ?> div#woo-wrapper .content {width:95%;margin: 0;clear:both;} div#woo-wrapper #post-entry article .post-content {float: none !important;padding:0;} div#woo-wrapper article.page {border: 0 none !important;margin:0 !important;padding:0 !important;} h3#order_review_heading { margin-top: 3em; } .sidebar, footer.footer-top { display: none !important; } <?php } ?> #woo-container h2 {font-size:1.25em;margin: 1em 0; } .woocommerce-page #content {float: left;width: 69%;padding: 0 !important;background: transparent none;border: 0 none;margin: 1em 0 2em !important;box-shadow: 0 0 0 0 transparent;-moz-box-shadow: 0 0 0 0 transparent;-webkit-box-shadow: 0 0 0 0 transparent;} #custom .shop-sidebar {padding:3em 0 0;} <?php if (get_theme_option('custom_shop') == 'Enable') { } else { ?> .woocommerce .related ul.products li.product, .woocommerce-page .related ul.products li.product, .woocommerce .upsells.products ul.products li.product, .woocommerce-page .upsells.products ul.products li.product, .woocommerce .related ul li.product, .woocommerce-page .related ul li.product, .woocommerce .upsells.products ul li.product, .woocommerce-page .upsells.products ul li.product { clear:none;width:20%;height:350px;float:left;margin:0 20px 20px 0; } <?php } print "</style>"; } }