' . __( 'Direct script access denied.', 'articled') . '' ); } function articled_conditional_enqueues() { if( !is_single() ): if( get_theme_mod('articled_blog_post_layout') == '3' || get_theme_mod('articled_blog_post_layout') == '4') { wp_enqueue_style('blog-post-classic', get_template_directory_uri() . '/assets/css/blog-post-classic.min.css', array(), '1.1.2', 'all'); } if( get_theme_mod('articled_blog_post_layout') == '5' || get_theme_mod('articled_blog_post_layout') == '6') { wp_enqueue_style('blog-post-masonry', get_template_directory_uri() . '/assets/css/blog-post-masonry.min.css', array(), '1.1.2', 'all'); } if( get_theme_mod('articled_blog_post_layout', '2') == '1' || get_theme_mod('articled_blog_post_layout', '2') == '2') { wp_enqueue_style('blog-post-list', get_template_directory_uri() . '/assets/css/blog-post-list.min.css', array(), '1.1.2', 'all'); } endif; } add_action('wp_enqueue_scripts', 'articled_conditional_enqueues'); if (get_theme_mod('articled_footer_widget_cols', '4') == '4' || get_theme_mod('articled_footer_widget_cols', '4') == '3' ) { function articled_widgets_third(){ register_sidebar(array( 'name' => __('Footer Widgets 3', 'articled'), 'id' => 'articled-footer-3', 'description' => '', 'before_widget' => '
', 'after_widget' => "
", 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'articled_widgets_third' ); } if (get_theme_mod('articled_footer_widget_cols', '4') == '4') { function articled_widgets_fourth(){ register_sidebar(array( 'name' => __('Footer Widgets 4', 'articled'), 'id' => 'articled-footer-4', 'description' => '', 'before_widget' => '
', 'after_widget' => "
", 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'articled_widgets_fourth' ); } if (get_theme_mod('articled_single_cussideb', false) === true) { function articled_post_single(){ register_sidebar(array( 'name' => __('Singel Post Sidebar', 'articled'), 'id' => 'articled-post-single', 'description' => '', 'before_widget' => '
', 'after_widget' => "
", 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'articled_post_single' ); } /// Don't Touch it. $get_blog_layout = get_theme_mod('articled_blog_post_layout', '2'); $e_blog_layout = ''; switch($get_blog_layout) { case 1 : case 2 : $e_blog_layout = 'list'; break; case 3 : case 4 : $e_blog_layout = 'classic'; break; case 5 : case 6 : $e_blog_layout = 'masonry'; break; default: $e_blog_layout = 'list'; } $e_blog_layout = get_template_directory() . '/parts/post-show-type/type-' . $e_blog_layout . '.php' ; $e_blog_layout = apply_filters( 'articled_blog_post', $e_blog_layout );