Exemplo n.º 1
0
    }
    //hide extra info?
    if (get_cfield('hide_info', $current_page_id) == 1) {
        $title_arr['extra'] = '';
    }
}
/* disable Profile page breadcrumb option */
if (bp_is_user() && sq_option('bp_profile_breadcrumb_disable', 0) == 1) {
    $title_arr['show_breadcrumb'] = false;
    $title_arr['show_title'] = false;
    $title_arr['extra'] = '';
}
if (isset($title_arr['show_breadcrumb']) && $title_arr['show_breadcrumb'] == false && isset($title_arr['show_title']) && $title_arr['extra'] == '') {
    //hide the breadcrumb section
} else {
    echo kleo_title_section($title_arr);
}
?>

<?php 
if (sq_option('bp_full_profile', 0) == 1 && bp_is_user()) {
    ?>

    <section class="alternate-color bp-full-width-profile">
        <div id="item-header" role="complementary">

            <?php 
    bp_get_template_part('members/single/member-header');
    ?>

        </div>
Exemplo n.º 2
0
 function kleo_woocommerce_before_content()
 {
     //title section
     $title_arr = array();
     $shop_id = wc_get_page_id('shop');
     $title_arr['show_title'] = true;
     //hide breadcrumb?
     $title_arr['show_breadcrumb'] = true;
     if (sq_option('breadcrumb_status', 1) == 0) {
         $title_arr['show_breadcrumb'] = false;
     }
     if (is_shop()) {
         $title_arr = kleo_prepare_title($shop_id);
     } elseif (is_product()) {
         $title_arr = kleo_prepare_title();
     }
     if (sq_option('title_location', 'breadcrumb') == 'main') {
         $title_arr['show_title'] = false;
     } else {
         //title
         if (is_shop()) {
             $title = get_option('woocommerce_shop_page_title');
         }
         if ($shop_id && $shop_id != -1) {
             if (empty($title)) {
                 $title = get_the_title($shop_id);
             }
         }
         if (is_product_category() || is_product_tag()) {
             global $wp_query;
             $tax = $wp_query->get_queried_object();
             $title = $tax->name;
         }
     }
     if (!isset($title)) {
         $title = __("Shop", 'kleo_framework');
     }
     $title_arr['title'] = $title;
     $title_arr['link'] = '';
     if (isset($title_arr['show_breadcrumb']) && $title_arr['show_breadcrumb'] || isset($title_arr['extra']) || $title_arr['show_title']) {
         echo kleo_title_section($title_arr);
     }
     remove_action('kleo_before_main_content', 'kleo_title_main_content');
     if (sq_option('title_location', 'breadcrumb') == 'breadcrumb' || get_cfield('title_checkbox', $shop_id) == 1) {
         add_filter('woocommerce_show_page_title', '__return_false');
     }
     get_template_part('page-parts/general-before-wrap');
 }