<?php /** * Created by PhpStorm. * User: tagdiv * Date: 10.07.2015 * Time: 15:58 */ global $loop_module_id, $loop_sidebar_position, $post, $td_sidebar_position; //global $wp_query; //var_dump($wp_query->query_vars); td_global::load_single_post($post); /* ---------------------------------------------------------------------------- the post template (single article template) */ //get_header(); //set the template id, used to get the template specific settings $template_id = 'home'; //home = blog index = blog - use the same settings from the blog index //prepare the loop variables //read the global settings $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty) $loop_module_id = 1; //use the default 1 module (full post) //read the primary category sidebar position! - we have to make the page after the primary category or after the global setting $primary_category_id = td_global::get_primary_category_id(); if (!empty($primary_category_id)) { $tax_meta_sidebar = td_util::get_category_option($primary_category_id, 'tdc_sidebar_pos'); //swich by RADU A, get_tax_meta($primary_category_id, 'tdc_sidebar_pos'); if (!empty($tax_meta_sidebar)) {