Example #1
0
 /**
  * After Header
  * @since 1.8
  */
 function miss_add_after_header($args = array('echo' => 'true'))
 {
     global $wp_query;
     // Add default args
     $defaults = array('echo' => 'true');
     // Merge args
     $args = wp_parse_args($args, $defaults);
     $post_obj = $wp_query->get_queried_object();
     // Initial output
     $out = '';
     if (is_front_page() || !miss_page_title() && !miss_breadcrumbs() || miss_get_setting('disable_page_caption') && in_array('true', miss_get_setting('disable_page_caption')) && (miss_get_setting('disable_breadcrumbs') && in_array('true', miss_get_setting('disable_breadcrumbs')))) {
         // Reset output
         // $out = '';
         // Hide caption for front-page
         // return false; // only if header slider disabled
     } else {
         // Add page title
         /*if ( !miss_get_setting( 'disable_page_caption' ) ) {
         			$out .= miss_page_title();
         		}*/
         // Add breadcrumbs
         /*if ( function_exists( "miss_breadcrumbs" ) ) {
         			$out .= miss_breadcrumbs();
         		}*/
     }
     // Destroy slider region for non post types
     if (!is_search() || !is_archive() || !is_tax() || !is_category()) {
         if (isset($post_obj->ID)) {
             $slider_custom = get_post_meta($post_obj->ID, 'slider_type', true);
             if (!empty($slider_custom) && $slider_custom != "no") {
                 $out .= '<section class="after_header">';
                 $out .= '<div class="row-fluid">';
                 $out .= '<div class="span12">';
                 $out .= miss_slider_module();
                 //miss_get_slider_region();
                 $out .= '</div><!-- /.span12 -->';
                 $out .= '</div><!-- /.row-fluid -->';
                 $out .= '</section><!-- /.region after_header-->';
             }
         }
     }
     // Return
     if ($args['echo'] == 'true') {
         echo apply_atomic_shortcode('miss_after_header', $out);
     } else {
         return $out;
     }
 }
Example #2
0
<?php

/**
 * Page Template
 *
 * @package IrishMiss
 * @package StartUp
 */
global $irish_framework_params;
get_header();
//echo '</div>';
echo miss_slider_module();
echo '<!-- Begin: Whitespace --><div class="margin20"></div><!-- End: Whitespace -->';
//echo '<div class="container">';
/**
 * Woocommerce Banners
 */
/*$miss_woocommerce_banners_count = 4 + 1;
$miss_woocommerce_banners = array();

for($i = 1; $i < $miss_woocommerce_banners_count; $i++ ) {

	$_tmp_banner_src = miss_get_setting('store_banner_' . $i) ? miss_get_setting('store_banner_' . $i) : false;
	$_tmp_banner_uri = miss_get_setting('store_banner_' . $i . '_link') ? miss_get_setting('store_banner_' . $i . '_link') : false;

	if ( $_tmp_banner_src ) {
	  $miss_woocommerce_banners[$i] = array(
	    'src' => $_tmp_banner_src,
	    'url' => $_tmp_banner_uri,
	    'html'=> '<a href="' . $_tmp_banner_uri . '"><img src="' . $_tmp_banner_src . '" /></a>'
	  );