<?php /* Template Name: Home Page Builder */ get_header(); global $imic_options; $custom_home = get_post_custom(get_the_ID()); $home_id = get_the_ID(); $pageOptions = imic_page_design('', 8); //page design options imic_sidebar_position_module(); /* Start Hero Slider */ get_template_part('flex-slider'); /* End Hero Slider */ /** Upcoming Events Loop ** */ $temp_wp_query = clone $wp_query; $today = date('Y-m-d'); $currentTime = date(get_option('time_format')); $upcomingEvents = ''; $upcoming_events_category = get_post_meta(get_the_ID(), 'imic_upcoming_event_taxonomy', true); if (!empty($upcoming_events_category)) { $events_categories = get_term_by('id', $upcoming_events_category, 'event-category'); $upcoming_events_category = $events_categories->slug; } $imic_events_to_show_on = get_post_meta(get_the_ID(), 'imic_events_to_show_on', true); $imic_events_to_show_on = !empty($imic_events_to_show_on) ? $imic_events_to_show_on : 4; $event_add = imic_recur_events('future', 'nos', $upcoming_events_category, ''); $google_events = getGoogleEvent(); if (!empty($google_events)) { $new_events = $google_events + $event_add;
<?php /* Template Name: Events Timeline */ get_header(); $pageSidebar = get_post_meta(get_the_ID(), 'imic_select_sidebar_from_list', true); if (!empty($pageSidebar) && is_active_sidebar($pageSidebar)) { $column_class = 9; } else { $column_class = 12; } $pageOptions = imic_page_design(); //page design options imic_sidebar_position_module(); ?> <div class="container"> <div class="row"> <div class="col-md-<?php echo $column_class; ?> " id="content-col"> <?php while (have_posts()) { the_post(); if ($post->post_content != "") { echo '<div class="page-content">'; the_content(); echo '</div>'; echo '<div class="spacer-20"></div>'; }
<?php get_header(); $variable_post_id = get_option('woocommerce_shop_page_id'); $pageOptions = imic_page_design($variable_post_id); //page design options imic_sidebar_position_module(); ?> <div class="container"> <div class="row"> <?php if (have_posts()) { ?> <div class="<?php echo $pageOptions['class']; ?> product-archive" id="content-col"> <!-- Products Listing --> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */ do_action('woocommerce_before_main_content'); ?> <?php do_action('woocommerce_archive_description'); ?> <?php