Example #1
0
 /**
  * Init the customizr options array
  * @package Customizr
  * @since Customizr 1.0
  *
  */
 function tc_get_all_options()
 {
     global $tc_theme_options;
     $tc_theme_options = tc_get_theme_options();
     global $wp_query;
     //Add the dynamic options to the main option array
     $tc_theme_options['tc_current_screen_layout'] = tc_get_current_screen_layout($post_id = tc_get_the_ID());
     $tc_theme_options['tc_current_screen_slider'] = esc_attr(get_post_meta(tc_get_the_ID(), $key = 'post_slider_key', $single = true));
     /*  //Add the post page parameter
         $tc_is_posts_page = $wp_query -> is_posts_page;
         $tc_theme_options['tc_is_posts_page']  = $tc_is_posts_page;*/
     return $tc_theme_options;
 }
Example #2
0
<?php

/**
 * The main template file.
 *
 *
 * @package Customizr
 * @since Customizr 1.0
 */
get_header();
//get layout options
global $tc_theme_options;
$tc_type = get_post_type(tc_get_the_ID());
//hook here to execute action before the featured pages
do_action('tc_before_featured_pages');
tc_get_sidebar('front');
tc_get_breadcrumb();
?>
            <div class="container" role="main">
                <div class="row">
                    <?php 
tc_get_sidebar('left');
//initialize the thumbnail class alternative index
global $tc_i;
$tc_i = 1;
echo '<div class="' . $tc_theme_options['tc_current_screen_layout']['class'] . ' article-container">';
/* get additionnal header for archive, search, 404 */
get_template_part('parts/post', 'list-header');
/* Start the Loop for all other case*/
if (have_posts()) {
    while (have_posts()) {