query['post_type']) ? $wp_query->query['post_type'] : 'post'; if (is_array($query_post_type)) { $query_post_type = reset($query_post_type); } $options = get_option(AZEXO_FRAMEWORK); if (!isset($show_sidebar)) { $show_sidebar = isset($options['show_sidebar']) ? $options['show_sidebar'] : 'right'; } if (!isset($template_name)) { $template_name = isset($options['default_' . $query_post_type . '_template']) ? $options['default_' . $query_post_type . '_template'] : 'post'; } if (isset($_GET['template'])) { $template_name = sanitize_text_field($_GET['template']); } $additional_sidebar = isset($options[$query_post_type . '_additional_sidebar']) ? (array) $options[$query_post_type . '_additional_sidebar'] : array(); get_header(); $have_posts = have_posts(); if ($have_posts && (isset($options['before_list_place']) && ($options['before_list_place'] == 'before_container'))) { azexo_before_list($query_post_type); } ?>