示例#1
0
 function ci_theme_woo_pages_fullwidth_option($value, $object_id, $meta_key, $single)
 {
     if ('page_layout' == $meta_key) {
         if (woocommerce_enabled() && (is_cart() || is_checkout() || is_account_page())) {
             return 'full';
         }
     }
     return $value;
 }
示例#2
0
 function ci_widgets_init()
 {
     register_sidebar(array('name' => __('Blog Sidebar', 'ci_theme'), 'id' => 'blog-sidebar', 'description' => __('Place here the widgets that you want to display on your blog-related pages', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => __('Pages Sidebar', 'ci_theme'), 'id' => 'pages-sidebar', 'description' => __('Place here the widgets that you want to display on your pages', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => __('Inner Widget Area', 'ci_theme'), 'id' => 'inner-sidebar', 'description' => __('Place here the widgets that you want to display on the bottom of every single inner page of your website.', 'ci_theme'), 'before_widget' => '<section id="%1$s" class="widget group %2$s">', 'after_widget' => '</section>', 'before_title' => '<div class="row"><div class="col-xs-12"><h2 class="section-title">', 'after_title' => '</h2></div></div>'));
     register_sidebar(array('name' => __('Front Page Widgets', 'ci_theme'), 'id' => 'frontpage-widgets', 'description' => __('This is the main front page widget area. Assign widgets here to create your front page.', 'ci_theme'), 'before_widget' => '<section id="%1$s" class="widget group %2$s">', 'after_widget' => '</section>', 'before_title' => '<div class="row"><div class="col-xs-12"><h2 class="section-title">', 'after_title' => '</h2></div></div>'));
     register_sidebar(array('name' => __('Artist Sidebar', 'ci_theme'), 'id' => 'artist-sidebar', 'description' => __('Place here the widgets that you want to display in single artists pages.', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => __('Album Sidebar', 'ci_theme'), 'id' => 'album-sidebar', 'description' => __('Place here the widgets that you want to display in single discography pages.', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     if (woocommerce_enabled()) {
         register_sidebar(array('name' => __('Eshop Sidebar', 'ci_theme'), 'id' => 'eshop-sidebar', 'description' => __('Widgets placed in this sidebar will appear on your e-shop pages.', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     }
     register_sidebar(array('name' => __('Footer sidebar #1', 'ci_theme'), 'id' => 'footer-sidebar-one', 'description' => __('Place here the widgets that you want to display on your footer column #1', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => __('Footer sidebar #2', 'ci_theme'), 'id' => 'footer-sidebar-two', 'description' => __('Place here the widgets that you want to display on your footer column #2', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => __('Footer sidebar #3', 'ci_theme'), 'id' => 'footer-sidebar-three', 'description' => __('Place here the widgets that you want to display on your footer column #3', 'ci_theme'), 'before_widget' => '<aside id="%1$s" class="%2$s widget group">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
 }
示例#3
0
 function ci_theme_wc_cart_fullwidth($template)
 {
     $located = get_child_or_parent_file_path('template-fullwidth.php');
     if (woocommerce_enabled() and (is_cart() or is_checkout() or is_account_page()) and !empty($located)) {
         return $located;
     }
     return $template;
 }
<h1 class="section-title">
	<?php 
if (woocommerce_enabled() and is_woocommerce()) {
    woocommerce_page_title();
} elseif (is_singular('cpt_discography') or is_post_type_archive('cpt_discography')) {
    ci_e_setting('title_discography');
} elseif (is_singular('cpt_artist') or is_post_type_archive('cpt_artist')) {
    ci_e_setting('title_artists');
} elseif (is_singular('cpt_gallery') or is_post_type_archive('cpt_gallery')) {
    ci_e_setting('title_galleries');
} elseif (is_singular('cpt_video') or is_post_type_archive('cpt_video')) {
    ci_e_setting('title_videos');
} elseif (is_post_type_archive('cpt_event')) {
    ci_e_setting('title_events');
} elseif (is_page_template('template-blog-fullwidth.php')) {
    ci_e_setting('title_blog');
} elseif (is_page()) {
    single_post_title();
} elseif (is_singular('post') or is_home()) {
    ci_e_setting('title_blog');
} elseif (is_category() || is_tag()) {
    single_term_title();
} elseif (is_month()) {
    single_month_title();
} elseif (is_date()) {
    single_term_title();
} elseif (is_search()) {
    _e('Search results', 'ci_theme');
} elseif (is_404()) {
    _e('Page not found! (404)', 'ci_theme');
} elseif (is_tax()) {
示例#5
0
					<?php 
ci_e_logo('<h1 class="site-logo ' . get_logo_class() . '">', '</h1>');
?>
				</div>
				<div class="col-md-10 col-sm-11">
					<?php 
if (has_nav_menu('ci_secondary_menu') or woocommerce_enabled()) {
    ?>
						<nav class="nav-secondary-wrap">
							<ul class="nav-secondary">
								<?php 
    wp_nav_menu(array('theme_location' => 'ci_secondary_menu', 'fallback_cb' => '', 'container' => '', 'menu_id' => '', 'menu_class' => '', 'items_wrap' => '%3$s'));
    ?>

								<?php 
    if (woocommerce_enabled()) {
        ?>
									<?php 
        global $woocommerce;
        ?>
									<li>
										<div class="cart-head">
											<?php 
        _e('Shopping Bag', 'ci_theme');
        ?>
:
											<a href="<?php 
        echo $woocommerce->cart->get_cart_url();
        ?>
">
												<b><?php