function sys_blog($atts, $content = null) { extract(shortcode_atts(array('cat' => '2', 'limit' => '5', 'pagination' => 'true', 'postmeta' => 'true'), $atts)); global $atp_readmoretxt, $post; $out = ''; $paged = get_query_var('paged') ? get_query_var('paged') : 1; $query = array('category_name' => $cat, 'showposts' => $limit, 'paged' => $paged); query_posts($query); if (have_posts()) { while (have_posts()) { the_post(); $format = get_post_format($post->ID); if (false === $format) { $format = 'standard'; } $out .= '<div class="' . join(' ', get_post_class('post', get_the_ID())) . '" id="post-' . get_the_ID() . '">'; $out .= '<div class="post_content">'; ob_start(); $out .= get_template_part('includes/' . $format); $out .= ob_get_contents(); ob_end_clean(); if ($format != 'link' && $format != 'quote' && $format != 'aside') { $out .= '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark" title="' . sprintf(__("Permanent Link to %s", 'THEME_FRONT_SITE'), esc_attr(get_the_title())) . '">' . get_the_title() . '</a></h2>'; } if ($postmeta == "true") { $out .= '<div class="post-info">'; $out .= atp_generator('postmetaStyle'); $out .= '</div>'; } if ($format != 'quote') { $out .= '<div class="post-entry">'; $out .= '<p>' . get_the_excerpt() . '</p>'; if ($format != 'quote' && $format != 'link') { $out .= '<a href="' . get_permalink() . '" class="more-link">' . atp_localize($atp_readmoretxt, '<span>', '</span>') . '</a>'; } $out .= '</div>'; } $out .= '</div>'; $out .= '</div>'; } if (!function_exists('atp_pagination')) { if ($pagination == "true") { if (function_exists('atp_pagination')) { $out .= atp_pagination(); } } } wp_reset_query(); } return $out; }
} else { $chooseslider = $pageslider; } switch ($chooseslider) { case 'toggleslider': get_template_part('slider/toggle', 'slider'); break; case 'static_image': get_template_part('slider/static', 'slider'); break; case 'flexslider': get_template_part('slider/flex', 'slider'); break; case 'customslider': get_template_part('slider/custom', 'slider'); break; } } } else { if (get_query_var('eventDisplay')) { } else { if (!is_404()) { echo atp_generator('subheader', $frontpageid); } } } ?> <div id="main" class="<?php echo atp_generator('sidebaroption', $frontpageid); ?> ">
<div class="header-area"> <div class="logo"> <?php atp_generator('atp_dark_logo'); ?> </div><!-- /logo --> <div class="primarymenu menuwrap"> <?php // Enable mega menu $iva_menu_type = get_option('atp_mm_visible'); if ($iva_menu_type === 'on') { get_template_part('framework/includes/mega', 'menu'); } else { // Primary menu atp_generator('atp_primary_menu'); } ?> <?php if (has_nav_menu('primary-menu')) { ?> <a href="#" class="iva-mobile-dropdown"></a> <?php } ?> </div> </div> <?php // Mobile menu atp_generator('atp_mobile_menu'); ?> </div> </header><!-- #header -->
<?php atp_generator('embed_media', $post->ID, 'audio');
} else { ?> <p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'musicplay'); ?> </p> <?php get_search_form(); ?> <?php } ?> <?php edit_post_link(__('Edit', 'musicplay'), '<span class="edit-link">', '</span>'); ?> </div><!-- .content-area --> <?php if (atp_generator('sidebaroption', $post->ID) != "fullwidth") { get_sidebar(); } ?> </div><!-- inner --> </div><!-- #primary.pagemid --> <?php get_footer();
<?php if (has_post_thumbnail()) { global $post_id; ?> <!-- .postimg --> <div class="postimg"> <figure> <a href="#"><?php if (atp_generator('sidebaroption', get_the_id()) != "fullwidth") { $width = '630'; } else { $width = '1000'; } $post_thumbnail_id = get_post_thumbnail_id(get_the_id()); echo atp_resize($post_id, '', $width, '', 'imgborder', ''); ?> </a> </figure> </div> <!-- .postimg --> <?php }
function subheader($postid) { $subdesc = $title = ''; $username = get_option('atp_teaser_twitter'); $page = get_post($postid); $sh_bg_properties = get_post_meta($postid, 'subheader_img', true); $subbreadcrumb = get_post_meta($postid, 'breadcrumb', true); $subheadertextcolor = get_post_meta($postid, 'sh_txtcolor', true); $subheaderpadding = get_post_meta($postid, 'sh_padding', true); $sh_textcolor = $subheadertextcolor ? 'color:' . $subheadertextcolor . ';' : ''; $sh_padding = $subheaderpadding ? 'padding:' . $subheaderpadding . ';' : ''; $subheader_properties = ''; $sub_option = ''; if (!is_tax()) { $sub_option = get_post_meta($postid, 'subheader_teaser_options', true); } if (is_page() || is_single() || is_page_template() || !is_singular('portfoliotype') || is_front_page() && $postid != NULL || is_home() && $postid != NULL) { if (is_array($sh_bg_properties) && !empty($sh_bg_properties['0']['image'])) { $subheader_properties = 'background:url(' . $sh_bg_properties['0']['image'] . ') ' . $sh_bg_properties['0']['position'] . ' ' . $sh_bg_properties['0']['repeat'] . ' ' . $sh_bg_properties['0']['attachement'] . ' ' . $sh_bg_properties['0']['color'] . ';'; } elseif (is_array($sh_bg_properties) && !empty($sh_bg_properties['0']['color'])) { $subheader_properties = 'background-color:' . $sh_bg_properties['0']['color'] . ';'; } elseif (!is_array($sh_bg_properties) && $sh_bg_properties != '') { $subheader_properties = 'background:url(' . $sh_bg_properties . ');'; } $cssextras = $subheader_properties != '' || $sh_textcolor != '' || $sh_padding != '' ? 'style="' . $subheader_properties . $sh_textcolor . $sh_padding . '"' : ''; switch ($sub_option) { case 'custom': $title = $page->post_title; $subdesc = stripslashes(do_shortcode(get_post_meta($postid, "page_desc", true))); break; case 'twitter': $title = $page->post_title; ob_start(); $subdesc = atp_generator('atp_customtwitter'); $subdesc .= ob_get_clean(); wp_reset_query(); break; case 'default': if (get_option('atp_teaser') == 'twitter') { $title = $page->post_title; ob_start(); $subdesc = atp_generator('atp_customtwitter'); $subdesc .= ob_get_clean(); } elseif (get_option('atp_teaser') == 'default') { $title = $page->post_title; } elseif (get_option('atp_teaser') == 'disable') { } else { $title = $page->post_title; } break; default: if (get_option('atp_teaser') == 'twitter') { $title = $page->post_title; ob_start(); $subdesc = atp_generator('atp_customtwitter'); $subdesc .= ob_get_clean(); } elseif (get_option('atp_teaser') == 'default') { $title = $page->post_title; } elseif (get_option('atp_teaser') == 'disable') { } else { $title = $page->post_title; } break; } } // iF IS is_single //-------------------------------------------------------- if (is_single()) { $title = $page->post_title; } if (is_singular('video')) { $title = $page->post_title; } if (is_singular('portfoliotype') || is_singular('slider') || is_singular('albums') || is_singular('events') || is_singular('testimonialtype')) { $title = $page->post_title; } // iF IS PAGE B L O G //-------------------------------------------------------- if (is_home()) { $title = __('Blog', 'musicplay'); } // IF IS A R C H I V E //-------------------------------------------------------- if (is_archive()) { $title = NULL; if (is_tax('genres')) { global $wp_query; $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = sprintf(__('Albums Genre for: %s', 'musicplay'), '<span>' . $ctitle . '</span>'); } if (is_tax('label')) { global $wp_query; $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = sprintf(__('Albums Label for: %s', 'musicplay'), '<span>' . $ctitle . '</span>'); } if (is_tax('events_cat')) { global $wp_query; $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = sprintf(__('Events Archive for: %s', 'musicplay'), '<span>' . $ctitle . '</span>'); } if (is_tax('artist_cat')) { global $wp_query; $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = sprintf(__('Artist Archive for: %s', 'musicplay'), '<span>' . $ctitle . '</span>'); } if (is_tax('video_type')) { global $wp_query; $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = sprintf(__('Video Archive for: %s', 'musicplay'), '<span>' . $ctitle . '</span>'); } if (is_tax('gallery_type')) { global $wp_query; $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = sprintf(__('Gallery Archive for: %s', 'musicplay'), '<span>' . $ctitle . '</span>'); } if (is_category() || is_tag()) { global $wp_query; $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $title = $taxonomy_archive_query_obj->name; // Taxonomy term name } if (is_day()) { $subdesc = sprintf(__('Daily Archives: %s', 'musicplay'), '<span>' . get_the_date() . '</span>'); } elseif (is_month()) { $subdesc = sprintf(__('Monthly Archives: %s', 'musicplay'), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'musicplay')) . '</span>'); } elseif (is_year()) { $subdesc = sprintf(__('Yearly Archives: %s', 'musicplay'), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'musicplay')) . '</span>'); } else { } } // iF IS TAG PAGE //-------------------------------------------------------- if (is_tag()) { $title = NULL; $subdesc = sprintf(__('Tag Archives: %s', 'musicplay'), '<span>' . single_tag_title('', false) . '</span>'); } // iF IS Category PAGE //-------------------------------------------------------- if (is_category()) { $title = NULL; $subdesc = sprintf(__('Category Archives: %s', 'musicplay'), '<span>' . single_cat_title('', false) . '</span>'); } // IF IS S E A R C H //-------------------------------------------------------- if (is_search()) { $subdesc = __('Search Results : ' . stripslashes(strip_tags(get_search_query())), 'musicplay'); } if (is_author()) { $title = NULL; $curauth = get_query_var('author_name') ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); $subdesc = sprintf(__('Archives Author: %s', 'musicplay'), $curauth->nickname); } // C U S T O M S U B H E A D E R P R O P E R T I E S //-------------------------------------------------------- $out = ''; if (get_option('atp_teaser') != 'disable') { if ($sub_option != "disable") { $out .= '<div id="subheader" ' . $cssextras . '>'; $out .= '<div class="inner">'; $out .= '<div class="subdesc">'; if ($title != '') { $out .= '<h1 class="page-title">' . $title . '</h1>'; } $out .= '<div class="customtext">' . $subdesc . '</div>'; $out .= '</div>'; ob_start(); $out .= atp_generator('breadcrumb', $postid); $out .= ob_get_clean(); $out .= '</div>'; $out .= '</div>'; } else { if ($subbreadcrumb != 'on') { $out .= '<div id="subheader" ' . $cssextras . ' class="sub_disabled">'; $out .= '<div class="inner">'; ob_start(); $out .= atp_generator('breadcrumb', $postid); $out .= ob_get_clean(); $out .= '</div>'; $out .= '</div>'; } } } else { if ($subbreadcrumb != 'on') { $out .= '<div id="subheader" ' . $cssextras . '>'; $out .= '<div class="inner">'; ob_start(); $out .= atp_generator('breadcrumb', $postid); $out .= ob_get_clean(); $out .= '</div>'; $out .= '</div>'; } } return $out; }
echo do_shortcode(get_option('atp_top_righttext', '[sociable]')); ?> </div> </div> </div><!-- /inner --> </div><!-- /topbar --> <div class="clear"></div> <?php } ?> <div id="header" class="header clearfix"> <div class="header-area"> <div class="logo"> <?php atp_generator('logo'); ?> </div> <!-- /logo --> <div class="primarymenu menuwrap"> <?php atp_generator('atp_primary_menu'); ?> </div> </div> <!-- /inner--> </div> <!-- /header -->
the_title(); ?> </a></h2> <?php } ?> <?php if (get_option('atp_postmeta') != "on") { ?> <div class="post-info"> <?php if ($format != 'aside' && $format != 'quote') { ?> <?php echo atp_generator('postmetaStyle'); ?> <?php } ?> </div><!-- .post-info --> <?php } ?> <?php if ($format != 'quote') { ?> <div class="post-entry"> <?php
} else { $chooseslider = $pageslider; } switch ($chooseslider) { case 'toggleslider': get_template_part('slider/toggle', 'slider'); break; case 'static_image': get_template_part('slider/static', 'slider'); break; case 'flexslider': get_template_part('slider/flex', 'slider'); break; case 'customslider': get_template_part('slider/custom', 'slider'); break; } } } else { if (get_query_var('eventDisplay')) { } else { if (!is_404()) { echo atp_generator('subheader', $frontpageid); } } } if (!is_front_page() || $pageslider != '' && $headerstyle == 'headerstyle4') { echo '</div>'; } ?> <div id="main">
$terms_slug = array(); if (is_array($terms)) { foreach ($terms as $term) { $terms_slug[] = $term->slug; } } if (get_option('atp_layoutoption') == "stretched") { $width = '1920'; } else { $width = '1000'; } $postlinktype_options = get_post_meta($post->ID, "postlinktype_options", true); $flex_sliderdescription = get_post_meta($post->ID, "slider_desc", true); $desc_enable = get_post_meta($post->ID, 'desc_enable', true); $img_alt_title = get_the_title(); $postlinkurl = atp_generator('atp_getPostLinkURL', $postlinktype_options); $target_link = get_post_meta($post->ID, 'target_link', true) != 'on' ? '' : "target='_blank'"; echo '<li>'; if ($postlinkurl != 'nolink') { echo '<a href="' . $postlinkurl . '" ' . $target_link . ' title="' . $img_alt_title . '" >' . atp_resize($post->ID, '', $width, '430', '', $img_alt_title) . '</a>'; } else { echo atp_resize($post->ID, '', '1000', '430', '', $img_alt_title); } ?> <?php if ($desc_enable != 'on') { ?> <div class="flex-caption fadeInDown"> <div class="flex-title"> <h5><span><?php the_title();
<?php /*** * */ global $postid, $width; if (is_single()) { echo atp_generator('getPostAttachments', $postid, '', '', $width, '300', ''); } else { echo atp_generator('getPostAttachments', $postid, '', '', $width, '300', ''); }
echo do_shortcode(get_option('atp_top_righttext', '[sociable]')); ?> </div> </div> </div><!-- /inner --> </div><!-- /topbar --> <div class="clear"></div> <?php } ?> <div id="header-s2" class="header"> <div class="header-area"> <div class="primarymenu menuwrap"> <?php atp_generator('atp_primary_menu'); ?> <!-- /menuwrap--> </div> <div class="logo"> <?php atp_generator('logo'); ?> </div> <!-- /logo --> <div class="clear"></div> </div> </div> <!-- /Header Style2 -->
<?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div id="post-<?php the_ID(); ?> " <?php post_class('offers-entry'); ?> > <?php $width = atp_generator('sidebaroption', $post->ID) != "fullwidth" ? '470' : '470'; $iva_ofr_btn_txt = get_option('iva_ofr_btn_txt') ? get_option('iva_ofr_btn_txt') : __('Book This Offer', 'iva_theme_front'); $iva_ofr_btn_color = get_option('iva_ofr_btn_color') ? get_option('iva_ofr_btn_color') : __('blue', 'iva_theme_front'); $iva_ofr_disable_btn = get_option('iva_ofr_disable_btn'); $no_image = THEME_URI . '/images/no_image.jpg'; /** * Custom Query to pull page id for template_offers.php */ $iva_ofr_templateid = ''; $page_query = new WP_Query(array('post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => 'towing/template_offers.php')); if ($page_query->have_posts()) { while ($page_query->have_posts()) { $page_query->the_post(); $iva_ofr_templateid = $post->ID; } }
<?php /*** * */ $embed = get_post_meta($post->ID, 'video_embed', true); if (!empty($embed)) { echo "<div class='video-frame'>"; echo stripslashes(htmlspecialchars_decode($embed)); echo "</div>"; } else { atp_generator('embed_media', $post->ID, 'video'); }
function subheader($postid) { global $wp_query; $subdesc = $title = $subheader_properties = $cssextras = $out = ''; $sub_option = get_post_meta($postid, 'subheader_teaser_options', true); $page = get_post($postid); $pagetitle_styling = get_post_meta($postid, "sub_styling", true); $subbreadcrumb = get_post_meta($postid, 'breadcrumb', true); $sh_bg_properties = get_post_meta($postid, 'subheader_img', true); $subheadertextcolor = get_post_meta($postid, 'sh_txtcolor', true); $subheaderpadding = get_post_meta($postid, 'sh_padding', true); $sh_textcolor = $subheadertextcolor ? 'color:' . $subheadertextcolor . ';' : ''; $sh_padding = $subheaderpadding ? 'padding:' . $subheaderpadding . ';' : ''; // conditional execution of subheader if (is_page() || is_page_template() || is_single() || is_front_page() && $postid != NULL || is_home() && $postid != NULL) { // subheader background properties if (is_array($sh_bg_properties) && !empty($sh_bg_properties['0']['image'])) { $subheader_properties = 'background:url(' . $sh_bg_properties['0']['image'] . ') ' . $sh_bg_properties['0']['position'] . ' ' . $sh_bg_properties['0']['repeat'] . ' ' . $sh_bg_properties['0']['attachement'] . ' ' . $sh_bg_properties['0']['color'] . ';'; } elseif (is_array($sh_bg_properties) && !empty($sh_bg_properties['0']['color'])) { $subheader_properties = 'background-color:' . $sh_bg_properties['0']['color'] . ';'; } elseif (!is_array($sh_bg_properties) && $sh_bg_properties != '') { $subheader_properties = 'background:url(' . $sh_bg_properties . ');'; } $cssextras = $subheader_properties != '' || $sh_textcolor != '' || $sh_padding != '' ? ' style="' . $subheader_properties . $sh_textcolor . $sh_padding . '"' : ''; // Subheader Option switch ($sub_option) { case 'customtitle': $custom_title = get_post_meta($postid, 'page_title', true); if ($custom_title) { $title = get_post_meta($postid, 'page_title', true); } else { $title = $page->post_title; } $subdesc = stripslashes(do_shortcode(get_post_meta($postid, 'page_desc', true))); break; case 'twitter': $title = $page->post_title; ob_start(); $subdesc = atp_generator('atp_customtwitter', $postid); $subdesc .= ob_get_clean(); break; case 'default': if (get_option('atp_teaser') == 'twitter') { $title = $page->post_title; ob_start(); $subdesc = atp_generator('atp_customtwitter', $postid); $subdesc .= ob_get_clean(); } elseif (get_option('atp_teaser') == 'default') { $title = $page->post_title; } elseif (get_option('atp_teaser') == 'disable') { } else { $title = $page->post_title; } break; default: if (get_option('atp_teaser') == 'twitter') { $title = $page->post_title; ob_start(); $subdesc = atp_generator('atp_customtwitter', $postid); $subdesc .= ob_get_clean(); } elseif (get_option('atp_teaser') == 'default') { $title = $page->post_title; } elseif (get_option('atp_teaser') == 'disable') { } else { $title = $page->post_title; } break; } } // iF IS is_single if (class_exists('woocommerce')) { if (is_product() && is_woocommerce()) { $title = $page->post_title; } } elseif (is_single()) { if ($sub_option == 'customtitle') { $title = get_post_meta($postid, 'page_title', true); } else { $title = __('Blog', 'iva_theme_front'); } } // if (is_singular('slider') || is_singular('testimonialtype') || is_singular('appointment') || is_singular('pest')) { if ($sub_option == 'customtitle') { $title = get_post_meta($postid, 'page_title', true); } else { $title = $page->post_title; } } // if (is_singular('gallery')) { if ($sub_option == 'customtitle') { $title = get_post_meta($postid, 'page_title', true); } else { $title = get_option('atp_gallery_subtxt') ? get_option('atp_gallery_subtxt') : __('Gallery', 'iva_theme_front'); } } // If is static blog Page if (is_home()) { if ($sub_option == 'customtitle') { $title = get_post_meta($postid, 'page_title', true); } else { $title = __('Blog', 'iva_theme_front'); } } // If is product page in WooCommerce if (is_singular('product')) { $title = __('Shop', 'iva_theme_front'); } // If is offers single page if (is_singular('offers')) { $title = __('Offers', 'iva_theme_front'); } // Is archive if (is_archive()) { // if (class_exists('woocommerce')) { if (is_shop()) { $title = __('Shop', 'iva_theme_front'); } } else { $title = __('Archives', 'iva_theme_front'); } // if (is_category()) { $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = ''; $subdesc = sprintf(__('Category Archives: %s', 'iva_theme_front'), '<span>' . $ctitle . '</span>'); } // if (is_tax('cities')) { $taxonomy_archive_query_obj = $wp_query->get_queried_object(); $ctitle = $taxonomy_archive_query_obj->name; // Taxonomy term name $title = $ctitle; } // if (is_day()) { $title = ''; $subdesc = sprintf(__('Archive for date: %s', 'iva_theme_front'), '<span>' . get_the_date() . '</span>'); } elseif (is_month()) { $title = ''; $subdesc = sprintf(__('Archive for month: %s', 'iva_theme_front'), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'iva_theme_front')) . '</span>'); } elseif (is_year()) { $subdesc = ''; $title = sprintf(__('Archive for year: %s', 'iva_theme_front'), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'iva_theme_front')) . '</span>'); } else { } } // If is tag page if (is_tag()) { $title = ''; $subdesc = sprintf(__('Tag Archives: %s', 'iva_theme_front'), '<span>' . single_tag_title('', false) . '</span>'); } // If is Search if (is_search()) { $title = __('Search Results : ' . stripslashes(strip_tags(get_search_query())), 'iva_theme_front'); } // If is author if (is_author()) { $title = ''; $curauth = get_query_var('author_name') ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); $subdesc = sprintf(__('Author Archives: %s', 'iva_theme_front'), $curauth->display_name); } /** * Subheader content alignment * gets an default case from theme options panel * gets an alignment for specific page */ if ($pagetitle_styling == '') { $pagetitle_styling = get_option('atp_sub_styling'); } switch ($pagetitle_styling) { case 'left': $subtitlealign = 'sleft'; break; case 'right': $subtitlealign = 'sright'; break; case 'center': $subtitlealign = 'scenter'; break; default: $subtitlealign = 'sleft'; } if (get_option('atp_teaser') != 'disable') { // If is not disabled from page if ($sub_option != 'disable') { // Header style4 style $id_extra = $sub_header_txtcolor = ''; $headerstyle = get_option('atp_headerstyle'); if (isset($headerstyle) && $headerstyle == 'headerstyle4') { if ($sh_textcolor != '') { $sub_header_txtcolor = $sh_textcolor; } $id_extra = 'style="' . $sub_header_txtcolor . ' "'; $cssextras = ''; } $out .= '<div id="subheader" ' . $id_extra . ' class="' . $subtitlealign . '" ' . $cssextras . '>'; $out .= '<div class="subheader-inner">'; $out .= '<div class="subdesc">'; if ($title) { $out .= '<h1 class="page-title">' . $title . '</h1>'; } if ($subdesc) { $out .= '<div class="customtext">' . $subdesc . '</div>'; } $out .= '</div>'; if (get_option('atp_breadcrumbs') != 'on') { ob_start(); $out .= atp_generator('breadcrumb', $postid); $out .= ob_get_clean(); } $out .= '</div>'; $out .= '</div>'; } else { // If subheader Option is disabled from page meta if ($subbreadcrumb != 'on') { $out .= '<div class="inner sub_disabled">'; ob_start(); $out .= atp_generator('breadcrumb', $postid); $out .= ob_get_clean(); $out .= '</div>'; } } // If subheader Option is disabled from options panel } else { if ($subbreadcrumb != 'on' and get_option('atp_breadcrumbs') != 'on') { $out .= '<div class="inner sub_disabled">'; ob_start(); $out .= atp_generator('breadcrumb', $postid); $out .= ob_get_clean(); $out .= '</div>'; } } return $out; }