X7ROOT File Manager
Current Path:
/home/bloomi9/realworks1.com/wp-content/themes/realhomes/framework/customizer
home
/
bloomi9
/
realworks1.com
/
wp-content
/
themes
/
realhomes
/
framework
/
customizer
/
📁
..
📄
agencies.php
(7.14 KB)
📄
agents.php
(9.87 KB)
📄
blog.php
(7 KB)
📄
compare-properties.php
(9.24 KB)
📄
contact.php
(3.47 KB)
📁
custom
📄
customizer.php
(8.21 KB)
📄
dashboard.php
(74.89 KB)
📄
floating-features.php
(3.11 KB)
📄
footer.php
(4.78 KB)
📄
gallery.php
(3.91 KB)
📁
google-fonts
📄
header.php
(1.06 KB)
📁
js
📄
language-switcher.php
(2.58 KB)
📄
misc.php
(6.8 KB)
📄
pages.php
(2.16 KB)
📄
properties-templates-and-archive.php
(17.8 KB)
📄
property.php
(3.05 KB)
📄
search.php
(2.33 KB)
📁
sections
📄
site-logo.php
(7.83 KB)
📄
styles.php
(2.52 KB)
Editing: blog.php
<?php if ( ! function_exists( 'inspiry_blog_customizer' ) ) { function inspiry_blog_customizer( WP_Customize_Manager $wp_customize ) { // Blog Section $wp_customize->add_section( 'inspiry_news_section', array( 'title' => esc_html__( 'Blog Page', 'framework' ), 'priority' => 125, ) ); // Modern Header Banner or None if ( 'modern' === INSPIRY_DESIGN_VARIATION ) { $wp_customize->add_setting( 'inspiry_news_header_variation', array( 'type' => 'option', 'default' => 'banner', 'sanitize_callback' => 'inspiry_sanitize_radio', ) ); $wp_customize->add_control( 'inspiry_news_header_variation', array( 'label' => esc_html__( 'Header Variation', 'framework' ), 'description' => esc_html__( 'Header variation to display on News Page.', 'framework' ), 'type' => 'radio', 'section' => 'inspiry_news_section', 'choices' => array( 'banner' => esc_html__( 'Banner', 'framework' ), 'none' => esc_html__( 'None', 'framework' ), ), ) ); } if ( 'classic' === INSPIRY_DESIGN_VARIATION ) { // News/Blog Page Banner Title and Sub Title Display $wp_customize->add_setting( 'inspiry_news_page_banner_title_display', array( 'type' => 'option', 'default' => 'true', 'sanitize_callback' => 'inspiry_sanitize_radio', ) ); $wp_customize->add_control( 'inspiry_news_page_banner_title_display', array( 'label' => esc_html__( 'Banner Title and Sub Title Display', 'framework' ), 'type' => 'radio', 'section' => 'inspiry_news_section', 'choices' => array( 'true' => esc_html__( 'Show', 'framework' ), 'false' => esc_html__( 'Hide', 'framework' ), ), ) ); } // Blog Banner Title $blog_page_control_label = esc_html__( 'Banner Title', 'framework' ); if ( 'ultra' === INSPIRY_DESIGN_VARIATION ) { $blog_page_control_label = esc_html__( 'Title', 'framework' ); } $wp_customize->add_setting( 'theme_news_banner_title', array( 'type' => 'option', 'transport' => 'postMessage', 'default' => esc_html__( 'News', 'framework' ), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'theme_news_banner_title', array( 'label' => $blog_page_control_label, 'type' => 'text', 'section' => 'inspiry_news_section', ) ); $theme_news_banner_title_selector = '.blog .page-head .wrap .page-title'; $container_inclusive = true; if ( 'modern' === INSPIRY_DESIGN_VARIATION ) { $theme_news_banner_title_selector = '.blog .rh_banner .rh_banner__title'; $container_inclusive = false; } // News Banner Title Selective Refresh if ( isset( $wp_customize->selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( 'theme_news_banner_title', array( 'selector' => $theme_news_banner_title_selector, 'container_inclusive' => $container_inclusive, 'render_callback' => 'inspiry_news_banner_title_render', ) ); } if ( 'ultra' === INSPIRY_DESIGN_VARIATION ) { // Blog page description $wp_customize->add_setting( 'realhomes_blog_page_description', array( 'type' => 'option', 'default' => esc_html__( 'Check out market updates', 'framework' ), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'realhomes_blog_page_description', array( 'label' => esc_html__( 'Description ', 'framework' ), 'type' => 'text', 'section' => 'inspiry_news_section', ) ); } $wp_customize->add_setting( 'realhomes_display_blog_meta', array( 'type' => 'option', 'default' => 'true', 'sanitize_callback' => 'inspiry_sanitize_radio', ) ); $wp_customize->add_control( 'realhomes_display_blog_meta', array( 'label' => esc_html__( 'Display Blog Meta', 'framework' ), 'description' => esc_html__( 'Do you want to display blog meta information?', 'framework' ), 'type' => 'radio', 'section' => 'inspiry_news_section', 'choices' => array( 'true' => esc_html__( 'Show', 'framework' ), 'false' => esc_html__( 'Hide', 'framework' ), ), ) ); if ( 'classic' === INSPIRY_DESIGN_VARIATION ) { // News Banner Sub Title $wp_customize->add_setting( 'theme_news_banner_sub_title', array( 'type' => 'option', 'transport' => 'postMessage', 'default' => esc_html__( 'Check out market updates', 'framework' ), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'theme_news_banner_sub_title', array( 'label' => esc_html__( 'Banner Sub Title', 'framework' ), 'type' => 'text', 'section' => 'inspiry_news_section', ) ); // News Banner Sub Title Selective Refresh if ( isset( $wp_customize->selective_refresh ) ) { $wp_customize->selective_refresh->add_partial( 'theme_news_banner_sub_title', array( 'selector' => '.blog .page-head .wrap .page-title +', 'container_inclusive' => true, 'render_callback' => 'inspiry_news_banner_sub_title_render', ) ); } // Link to Previous and Next Post $wp_customize->add_setting( 'inspiry_post_prev_next_link', array( 'type' => 'option', 'default' => 'true', 'sanitize_callback' => 'inspiry_sanitize_radio', ) ); $wp_customize->add_control( 'inspiry_post_prev_next_link', array( 'label' => esc_html__( 'Link to Previous and Next Post', 'framework' ), 'type' => 'radio', 'section' => 'inspiry_news_section', 'choices' => array( 'true' => esc_html__( 'Enable', 'framework' ), 'false' => esc_html__( 'Disable', 'framework' ), ), ) ); } } add_action( 'customize_register', 'inspiry_blog_customizer' ); } if ( ! function_exists( 'inspiry_blog_defaults' ) ) { function inspiry_blog_defaults( WP_Customize_Manager $wp_customize ) { $blog_settings_ids = array( 'inspiry_news_header_variation', 'theme_news_banner_title', 'theme_news_banner_sub_title', 'inspiry_post_prev_next_link', ); inspiry_initialize_defaults( $wp_customize, $blog_settings_ids ); } add_action( 'customize_save_after', 'inspiry_blog_defaults' ); } if ( ! function_exists( 'inspiry_news_banner_title_render' ) ) { function inspiry_news_banner_title_render() { $banner_title = get_option( 'theme_news_banner_title' ); if ( ! empty( $banner_title ) ) { if ( 'modern' === INSPIRY_DESIGN_VARIATION ) { echo esc_html( $banner_title ); } else if ( 'classic' === INSPIRY_DESIGN_VARIATION ) { if ( is_single() ) : ?><h2 class="page-title"><span><?php echo esc_html( $banner_title ); ?></span></h2><?php else : ?><h1 class="page-title"><span><?php echo esc_html( $banner_title ); ?></span></h1><?php endif; } } } } if ( ! function_exists( 'inspiry_news_banner_sub_title_render' ) ) { function inspiry_news_banner_sub_title_render() { if ( get_option( 'theme_news_banner_sub_title' ) ) { echo '<p>' . get_option( 'theme_news_banner_sub_title' ) . '</p>'; } } }
Upload File
Create Folder