* The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme * * @since MX 1.0 */ global $blog_style; get_header(); // get layout, sidebar if(((is_home() && !is_front_page()) || is_category()|| is_tag() || is_date()) && (intval(get_option('page_for_posts')) > 0) ) { //when you use custom page for blog will use the page layout $layout = mx_get_page_layout(get_option('page_for_posts')); $sidebar_name = mx_get_post_meta_key('sidebar-type', get_option('page_for_posts')); $blog_style = mx_get_options_key('blog-post-show-style'); if($sidebar_name == ""){ $sidebar_name = "0"; } }else{ // index default will use global layout $layout = mx_get_page_layout('global'); $blog_style = mx_get_options_key('blog-post-show-style'); $sidebar_name = '0'; } ?>
Konya Escort
HTML Snippets Powered By : XYZScripts.com