<?php get_header(); ?> <?php ishyoboy_get_lead(ish_get_the_ID()); ?> <!-- Content part section --> <section class="part-content"> <div class="row"> <div class="<?php echo ishyoboy_get_content_class(); ?> "> <?php // Breadcrumbs display ishyoboy_show_breadcrumbs(); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php the_content(); ?> <?php comments_template('', true);
function ishyoboy_get_footer_sidebar() { global $ish_options, $ish_woo_id, $id_404; if (is_404()) { $post_id = $id_404; } elseif (isset($ish_woo_id)) { $post_id = $ish_woo_id; } else { $post_id = is_tax() || is_search() || is_archive() || is_category() || is_tag() ? null : ish_get_the_ID(); } $local = ''; if (is_home()) { $meta = get_post_meta(get_option('page_for_posts')); $local = isset($meta['ishyometa_ishyoboy_use_footer_widget_area']) ? $meta['ishyometa_ishyoboy_use_footer_widget_area'][0] : ''; } elseif (null != $post_id) { $local = IshYoMetaBox::get('ishyoboy_use_footer_widget_area', true, $post_id); } else { if (is_tax() || is_search() || is_archive() || is_category() || is_tag()) { $local = ''; } else { $local = IshYoMetaBox::get('ishyoboy_use_footer_widget_area'); } } if ('' != $local) { if ('1' == $local) { // Use expandable if (is_home()) { $sidebar_set = isset($meta['ishyometa_ishyoboy_footer_sidebar']) ? $meta['ishyometa_ishyoboy_footer_sidebar'][0] : ''; } else { $sidebar_set = IshYoMetaBox::get('ishyoboy_footer_sidebar', true, $post_id); } return $sidebar_set; } else { return ''; } } else { // Default theme options return isset($ish_options['footer_widget_area']) && '1' == $ish_options['footer_widget_area'] && isset($ish_options['footer_sidebar']) && is_active_sidebar($ish_options['footer_sidebar']) ? $ish_options['footer_sidebar'] : ''; } }