function kleo_geodir_action_wrapper_open() { kleo_switch_layout('no'); get_template_part('page-parts/general-title-section'); get_template_part('page-parts/general-before-wrap'); }
/** * Prepare site layout with different customizations * @global string $kleo_custom_logo */ function kleo_prepare_layout() { //Change the template $layout = sq_option('global_sidebar', 'right'); if (is_home()) { $layout = sq_option('blog_layout', 'right'); } elseif (is_archive()) { $layout = sq_option('cat_layout', 'right'); } elseif (is_single()) { if (get_cfield('post_layout') && get_cfield('post_layout') != 'default') { $layout = get_cfield('post_layout'); } elseif (sq_option('blog_post_layout', 'default') != 'default') { $layout = sq_option('blog_post_layout', 'right'); } } $layout = apply_filters('kleo_page_layout', $layout); kleo_switch_layout($layout); /* Single post of any post type */ if (is_singular() || is_home()) { $topbar_status = get_cfield('topbar_status'); //Top bar if (isset($topbar_status)) { if ($topbar_status === '1') { add_filter('kleo_show_top_bar', create_function('', 'return 1;')); } elseif ($topbar_status === '0') { add_filter('kleo_show_top_bar', create_function('', 'return 0;')); } } //Header and Footer settings if (get_cfield('hide_header') && get_cfield('hide_header') == 1) { remove_action('kleo_header', 'kleo_show_header'); } if (get_cfield('hide_footer') && get_cfield('hide_footer') == 1) { add_filter('kleo_footer_hidden', create_function('$status', 'return true;')); } if (get_cfield('hide_socket') && get_cfield('hide_socket') == 1) { remove_action('kleo_after_footer', 'kleo_show_socket'); } //Custom logo if (get_cfield('logo')) { global $kleo_custom_logo; $kleo_custom_logo = get_cfield('logo'); add_filter('kleo_logo', create_function("", 'global $kleo_custom_logo; return $kleo_custom_logo;')); } //Remove shop icon if (get_cfield('hide_shop_icon') && get_cfield('hide_shop_icon') == 1) { remove_filter('wp_nav_menu_items', 'kleo_woo_header_cart', 9); remove_filter('kleo_mobile_header_icons', 'kleo_woo_mobile_icon', 10); } //Remove search icon if (get_cfield('hide_search_icon') && get_cfield('hide_search_icon') == 1) { remove_filter('wp_nav_menu_items', 'kleo_search_menu_item', 10); } //title section css global $kleo_theme; if (get_cfield('title_top_padding') && get_cfield('title_top_padding') != '') { $kleo_theme->add_css('.main-title {padding-top: ' . get_cfield('title_top_padding') . 'px;}'); } if (get_cfield('title_bottom_padding') && get_cfield('title_bottom_padding') != '') { $kleo_theme->add_css('.main-title {padding-bottom: ' . get_cfield('title_bottom_padding') . 'px;}'); } if (get_cfield('title_color') && get_cfield('title_color') != '#' && get_cfield('title_color') != '') { $kleo_theme->add_css('.main-title, .main-title h1, .main-title a, .main-title span, .breadcrumb > li + li:before {color: ' . get_cfield('title_color') . ' !important;}'); } if (get_cfield('title_bg_color') && get_cfield('title_bg_color') != '#' && get_cfield('title_bg_color') != '') { $kleo_theme->add_css('.main-title {background-color: ' . get_cfield('title_bg_color') . ' !important;}'); } if (get_cfield('title_bg') && is_array(get_cfield('title_bg'))) { $title_bg = get_cfield('title_bg'); if (isset($title_bg['url']) && $title_bg['url'] != '') { $kleo_theme->add_css('.main-title {' . 'background-image: url("' . $title_bg['url'] . '");' . 'background-repeat: ' . $title_bg['repeat'] . ';' . 'background-size: ' . $title_bg['size'] . ';' . 'background-attachment: ' . $title_bg['attachment'] . ';' . 'background-position: ' . $title_bg['position'] . ';' . '}'); } } } //Show title in main content - if set from Theme options add_action('kleo_before_main_content', 'kleo_title_main_content'); }
/** * Template Name: 3 Columns - Two Left Sidebars * * Description: Show a page template with two left sidebars * * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <*****@*****.**> * @since Sweetdate 1.0 */ get_header(); ?> <?php //create 3ll template kleo_switch_layout('3ll'); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <?php if (have_posts()) { // Start the Loop. while (have_posts()) { the_post();
/** * Template Name: 3 Columns - Two Right Sidebars * * Description: Show a page template with two right sidebars * * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <*****@*****.**> * @since Sweetdate 1.0 */ get_header(); ?> <?php //create 3rr template kleo_switch_layout('3rr'); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <?php if (have_posts()) { // Start the Loop. while (have_posts()) { the_post();
* * Description: Show a page template with left sidebar * * * @package WordPress * @subpackage Kleo * @author SeventhQueen <*****@*****.**> * @since Kleo 1.0 */ get_header(); ?> <?php //create left sidebar template kleo_switch_layout('left'); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <?php if (have_posts()) { // Start the Loop. while (have_posts()) { the_post();
<?php /** * The template for displaying 404 pages (Not Found) * * @package WordPress * @subpackage Kleo * @since Kleo 1.0 */ get_header(); ?> <?php //create full width template kleo_switch_layout('no'); add_filter('kleo_main_template_classes', create_function('$cols', '$cols .= " text-center"; return $cols;')); ?> <?php $title_arr['title'] = kleo_title(); if (sq_option('title_location', 'breadcrumb') == 'main') { $title_arr['show_title'] = false; } echo kleo_title_section($title_arr); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <div class="row">
/** * Template Name: 3 Columns - Left and Right sidebars * * Description: Show a page template with left and right sidebars * * @package WordPress * @subpackage Kleo * @author SeventhQueen <*****@*****.**> * @since Kleo 1.0 */ get_header(); ?> <?php //create 3lr template kleo_switch_layout('3lr'); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <?php if (have_posts()) { // Start the Loop. while (have_posts()) { the_post();
<?php /** * The Template for displaying portfolio single items * * @package WordPress * @subpackage Kleo * @since Kleo 1.6.4 */ get_header(); ?> <?php if (!get_cfield('post_layout') || get_cfield('post_layout') == 'default') { kleo_switch_layout('no', 14); } ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <?php /* Start the Loop */ while (have_posts()) { the_post(); ?>
function kleo_sensei_wrapper_start() { kleo_switch_layout(sq_option('global_sidebar')); get_template_part('page-parts/general-title-section'); get_template_part('page-parts/general-before-wrap'); }
* Template Name: Right Sidebar Page Template * * Description: Show a page template with right sidebar * * @package WordPress * @subpackage Kleo * @author SeventhQueen <*****@*****.**> * @since Kleo 1.0 */ get_header(); ?> <?php //create right sidebar template kleo_switch_layout('right'); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <?php if (have_posts()) { // Start the Loop. while (have_posts()) { the_post();
/** * Prepare site layout with different customizations * @global string $kleo_custom_logo */ function kleo_prepare_layout() { //Change the template $layout = sq_option('global_sidebar', 'right'); if (is_home()) { $layout = sq_option('blog_layout', 'right'); } elseif (is_archive()) { $layout = sq_option('cat_layout', 'right'); } elseif (is_singular('post') && get_cfield('post_layout') && get_cfield('post_layout') != 'default') { $layout = get_cfield('post_layout'); } $layout = apply_filters('kleo_page_layout', $layout); kleo_switch_layout($layout); /* Single post of any post type */ if (is_singular()) { $topbar_status = get_cfield('topbar_status'); //Top bar if (isset($topbar_status)) { if ($topbar_status === '1') { add_filter('kleo_show_top_bar', create_function('', 'return 1;')); } elseif ($topbar_status === '0') { add_filter('kleo_show_top_bar', create_function('', 'return 0;')); } } //Header and Footer settings if (get_cfield('hide_header') && get_cfield('hide_header') == 1) { remove_action('kleo_header', 'kleo_show_header'); } if (get_cfield('hide_footer') && get_cfield('hide_footer') == 1) { add_filter('kleo_footer_hidden', create_function('$status', 'return true;')); } if (get_cfield('hide_socket') && get_cfield('hide_socket') == 1) { remove_action('kleo_after_footer', 'kleo_show_socket'); } //Custom logo if (get_cfield('logo')) { global $kleo_custom_logo; $kleo_custom_logo = get_cfield('logo'); add_filter('kleo_logo', create_function("", 'global $kleo_custom_logo; return $kleo_custom_logo;')); } } //Show title in main content - if set from Theme options add_action('kleo_before_main_content', 'kleo_title_main_content'); }