Server : Apache/2 System : Linux vps.sdns.vn 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 User : phatdatpq ( 1022) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/phatdatpq/public_html/wp-content/themes/flatsome/inc/admin/options/blog/ |
Upload File : |
<?php Flatsome_Option::add_panel( 'blog', array( 'title' => __( 'Blog', 'flatsome-admin' ), ) ); include_once( dirname( __FILE__ ) . '/options-blog-global.php' ); include_once(dirname( __FILE__ ).'/options-blog-layout.php'); include_once(dirname( __FILE__ ).'/options-blog-archive.php'); include_once(dirname( __FILE__ ).'/options-blog-single.php'); include_once(dirname( __FILE__ ).'/options-blog-featured.php'); function flatsome_refresh_blog_partials( WP_Customize_Manager $wp_customize ) { // Abort if selective refresh is not available. if ( ! isset( $wp_customize->selective_refresh ) ) { return; } $wp_customize->selective_refresh->add_partial( 'blog-layout', array( 'selector' => '.blog-wrapper.blog-archive', 'settings' => array('blog_posts_depth_hover','blog_posts_depth','blog_layout','blog_layout_divider','blog_show_excerpt'), 'render_callback' => function() { get_template_part( 'template-parts/posts/layout', get_theme_mod('blog_layout','right-sidebar') ); }, ) ); $wp_customize->selective_refresh->add_partial( 'blog-layout-single', array( 'selector' => '.blog-wrapper.blog-single', 'settings' => array('blog_posts_depth_hover','blog_posts_depth','blog_post_layout','blog_post_style','blog_single_header_meta','blog_single_footer_meta','blog_single_featured_image','blog_share','blog_author_box','blog_single_next_prev_nav'), 'render_callback' => function() { get_template_part( 'template-parts/posts/layout', get_theme_mod('blog_post_layout','right-sidebar') ); }, ) ); $wp_customize->selective_refresh->add_partial( 'blog-featured-posts', array( 'selector' => '.featured-posts', 'container_inclusive' => true, 'settings' => array('blog_featured_height'), 'render_callback' => function() { get_template_part('template-parts/posts/featured-posts'); }, ) ); } add_action( 'customize_register', 'flatsome_refresh_blog_partials' );