| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/training/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' );