<?php get_header(); cmo_insert_slider(); ?> <div id="main-container"> <?php $cmo_sidebar = cmo_get_page_sidebar(); if (have_posts()) { the_post(); $cmo_pstyle = cmo_get_page_theme_option("portfolio_style", "portfolio-single-style"); ?> <div class="page-content container page-single <?php echo esc_attr($cmo_sidebar[1]); ?> "> <section class="cmo-mainbar cmo-single-portfolio <?php echo "cmo-single-portfolio-" . esc_attr($cmo_pstyle); ?> "> <h2 class="hidden">Portfolio</h2> <?php get_template_part("/templates/portfolio/single-{$cmo_pstyle}"); ?> </section> <?php if (!empty($cmo_sidebar[0]) && is_active_sidebar($cmo_sidebar[0])) { ?> <aside class="cmo-sidebar"> <?php
<div class="col-md-3"> <aside class="cmo-sidebar"> <?php $cmo_sidebar = cmo_get_page_theme_option('footer_widget_4', 'footer-widget-4', '0'); if (!empty($cmo_sidebar)) { dynamic_sidebar($cmo_sidebar); } ?> </aside> </div> </div> </div> </div> <?php if (cmo_is_yes_or_one(cmo_get_page_theme_option('footer_show_copyright', 'footer-show-copyright'))) { ?> <div id="footer-copyright-bar"> <div class="container"> <nav id="footer-nav" class="pull-left"> <?php if (has_nav_menu('main-menu')) { wp_nav_menu(array('theme_location' => 'main-menu', 'container_id' => 'footer-menu-wrapper', 'container_class' => 'main-menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'depth' => '1', 'walker' => new Cumulo_Nav_Walker())); } ?> </nav> <div id="footer-copyright-text" class="pull-right"> <?php echo esc_html(cmo_get_theme_mod_value('footer-copyright-text', '')); ?>
<?php if (post_password_required()) { return; } $show_comments = cmo_get_page_theme_option("show_comments", null); if (is_page() && !comments_open()) { $show_comments = "no"; } if (is_null($show_comments) || $show_comments === "yes") { if (have_comments()) { ?> <section id="comments" class="comments-area"> <h3 class="comments-title"><?php echo sprintf(_n("%d Comment", "%d Comments", get_comments_number(), 'cumulo'), get_comments_number()); ?> </h3> <ul class="comment-list"><?php wp_list_comments(array('style' => 'ul', 'short_ping' => true, 'avatar_size' => 72, 'callback' => 'cmo_comments')); ?> </ul> <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) { ?> <nav class="navigation comment-navigation clearfix"> <div class="nav-previous pull-left"><?php previous_comments_link(__('<i class="fa fa-long-arrow-left"></i> Older Comments', 'twentythirteen')); ?> </div> <div class="nav-next pull-right"><?php next_comments_link(__('Newer Comments <i class="fa fa-long-arrow-right"></i>', 'twentythirteen'));
$cmo_footer_style = cmo_get_page_theme_option('footer_style', 'footer-style'); if (cmo_is_yes_or_one(cmo_get_page_theme_option('footer_show_footer', 'footer-show-footer'))) { ?> <footer id="cmo-footer" class="footer-<?php echo esc_attr($cmo_footer_style); ?> "> <?php get_template_part("templates/footer/{$cmo_footer_style}"); ?> </footer> <?php } ?> <?php if (cmo_get_page_theme_option('content_layout', 'content-layout') == "boxed") { ?> </div><!-- topmost-page-container --> <?php } ?> <?php add_action("wp_footer", "cmo_include_js"); add_action("wp_footer", "cmo_localize_script"); wp_footer(); ?> </body> </html>
} } else { ?> <span><img src="<?php echo esc_url($logo_light); ?> " alt="Logo Light" /></span> <?php } ?> </a> </div> <?php if ($show_menu) { $cmo_pmenu = cmo_get_page_theme_option('header_menu', null); if ($cmo_pmenu !== "secondary-menu") { $cmo_pmenu = "main-menu"; } if (has_nav_menu($cmo_pmenu)) { wp_nav_menu(array('theme_location' => $cmo_pmenu, 'container_id' => 'main-menu-wrapper', 'container_class' => 'main-menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'walker' => new Cumulo_Nav_Walker())); } else { echo '<div id="menu-not-assigned">Assign a menu</div>'; } } ?> </nav> </header> <?php } /* end of display header condition check */
?> <div class="cmo-portfolio-meta cmo-portfolio-client"> <label><?php esc_html_e("Client", 'cumulo'); ?> :</label> <div><?php echo esc_html($str); ?> </div> </div> <?php } ?> <?php $str = cmo_get_page_theme_option("portfolio_demo", null); if (!empty($str)) { ?> <div class="cmo-portfolio-meta cmo-portfolio-demo"> <label><?php esc_html_e("Demo", 'cumulo'); ?> :</label> <div><a href="<?php echo esc_url($str); ?> " target="_blank"><?php echo esc_html($str); ?> </a></div> </div>
function cmo_add_wc_cart_fragments($fragments) { $cmo_header_style = cmo_get_page_theme_option('header_style', 'header-style'); if ($cmo_header_style == 'style-3' || $cmo_header_style == 'style-6') { $fragments['cmo_wc_mini_cart'] = cmo_get_wc_mini_cart(2); } else { $fragments['cmo_wc_mini_cart'] = cmo_get_wc_mini_cart(1); } return $fragments; }
<div class="cmo-portfolio-desc"> <label><?php esc_html_e("Product Description", 'cumulo'); ?> :</label> <div><?php the_content(); ?> </div> </div> </div> </div> </div> <?php if (cmo_get_page_theme_option("portfolio_show_related", null) == 'yes') { ?> <div class="cmo-portfolio-similar"> <h2><?php esc_html_e('Similar Items', 'cumulo'); ?> :</h2> <div class="row"> <?php $posts = cmo_get_similar_portfolios(4); while ($posts->have_posts()) { $posts->the_post(); echo "<div class='col-md-3'>"; get_template_part('templates/portfolio/portfolio', 'item'); echo "</div>"; }
return; } // Increase loop count $woocommerce_loop['loop']++; // Extra post classes $classes = array(); if (0 == ($woocommerce_loop['loop'] - 1) % $woocommerce_loop['columns'] || 1 == $woocommerce_loop['columns']) { $classes[] = 'first'; } if (0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns']) { $classes[] = 'last'; } ?> <?php $cmo_woo_style = cmo_get_page_theme_option("woo_list_style", "woo-list-style"); $classes[] = "woo-listing-" . $cmo_woo_style; ?> <li <?php post_class($classes); ?> > <?php if ($cmo_woo_style == 'style-1') { ?> <?php do_action('woocommerce_before_shop_loop_item'); ?> <div class="cmo-product-thumb-wrapper"> <?php
?> } <?php } } ?> .cmo-page-title { background-color: <?php echo esc_attr($breadcrumb_bg_color); ?> ; } <?php $header_breadcrumb_overlay = cmo_is_yes_or_one(cmo_get_page_theme_option('breadcrumb_background_overlay', 'breadcrumb-background-overlay')); if (!$header_breadcrumb_overlay) { ?> .cmo-page-title::before { display: none; } <?php } ?> /* end of headers */ /* --- Typography --- */ body { font-family: <?php echo esc_attr(cmo_get_theme_mod_value('text-font')); ?>