/** * 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 (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package docly */ get_header(); $opt = get_option('docly_opt' ); $blog_column = is_active_sidebar( 'sidebar_widgets' ) ? '8' : '12'; $blog_layout_opt = !empty($opt['blog_layout']) ? $opt['blog_layout'] : 'list'; $blog_layout = !empty($_GET['blog_layout']) ? $_GET['blog_layout'] : $blog_layout_opt; if ( $blog_layout == 'list' ) { $sec_class = 'doc_blog_classic_area sec_pad'; $is_row = ''; } elseif ( $blog_layout == 'grid' ) { $sec_class = 'doc_blog_grid_area sec_pad'; $is_row = ''; } elseif ( $blog_layout == 'blog_category' ) { $sec_class = 'doc_blog_grid_area'; $is_row = ' blog_grid_tab'; } else { $sec_class = 'doc_blog_classic_area sec_pad'; $is_row = ''; } ?>