403Webshell
Server IP : 10.19.1.101  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User : schererimoveisrs ( 170628)
PHP Version : 7.4.33
Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/schererimoveisrs/www/wp-content/themes/context-blog/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/schererimoveisrs/www/wp-content/themes/context-blog/inc//customizer.php
<?php
/**
 * context-blog Theme Customizer
 *
 * @package context-blog
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
function context_blog_customize_register( $wp_customize ) {
	 $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage';
	$wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
	$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
	$wp_customize->get_setting( 'background_color' )->transport = 'postMessage';

	if ( isset( $wp_customize->selective_refresh ) ) {
		$wp_customize->selective_refresh->add_partial(
			'blogname',
			array(
				'selector'        => '.site-title a',
				'render_callback' => 'context_blog_customize_partial_blogname',
			)
		);
		$wp_customize->selective_refresh->add_partial(
			'blogdescription',
			array(
				'selector'        => '.site-description',
				'render_callback' => 'context_blog_customize_partial_blogdescription',
			)
		);

	}
	class context_blog_Customizer_Title extends WP_Customize_Control {

		// this add extra title in customizer.
		public function enqueue() {
			wp_enqueue_style( 'context-blog-custom-css', trailingslashit( get_template_directory_uri() ) . 'assets/css/customizer.css', array(), '1.0', 'all' );
		}

		public function render_content() {
			?>
			<h3 class="customize-control-lable"><?php echo esc_html( $this->label ); ?></h3>
			<?php if ( ! empty( $this->description ) ) { ?>
				<h4 class="customize-control-des"><?php echo esc_html( $this->description ); ?></h4>
				<?php
			}
		}
	}
}
add_action( 'customize_register', 'context_blog_customize_register' );

/**
 * Render the site title for the selective refresh partial.
 *
 * @return void
 */
function context_blog_customize_partial_blogname() {
	bloginfo( 'name' );
}

/**
 * Render the site tagline for the selective refresh partial.
 *
 * @return void
 */
function context_blog_customize_partial_blogdescription() {
	 bloginfo( 'description' );
}

/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function context_blog_customize_preview_js() {
	wp_enqueue_script( 'context-blog-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), _S_VERSION, true );
}

add_action( 'customize_preview_init', 'context_blog_customize_preview_js' );


/*
* Backend Scripts
*/

function context_blog_customize_backend_scripts() {
	 wp_enqueue_script( 'context-blog-customizer-hide', get_template_directory_uri() . '/assets/customizer/customizer-hide.js', array( 'jquery' ), '1.1.2', true );
	// below get the value of Your homepage displays settings and used in jquery customizer-hide.js
	$phpInfo = array(
		'show_on_front_value' => get_option( 'show_on_front' ),

	);
	wp_localize_script( 'context-blog-customizer-hide', 'phpInfo', $phpInfo );
	// below get the value of string translation and used in jquery customizer-hide.js

	$taxonomy_translate = array(
		'context_blog_meta_translate'     => __( 'meta', 'context-blog' ),
		'context_blog_date_translate'     => __( 'date', 'context-blog' ),
		'context_blog_comment_translate'  => __( 'comment', 'context-blog' ),
		'context_blog_category_translate' => __( 'category', 'context-blog' ),
		'context_blog_excerpt_translate'  => __( 'excerpt', 'context-blog' ),

	);
	wp_localize_script( 'context-blog-customizer-hide', 'taxonomy_translate', $taxonomy_translate );
	wp_enqueue_script( 'context_blog-customize-controls-js', get_template_directory_uri() . '/inc/upgrade-to-pro/pro.js', array( 'customize-controls' ) );
	wp_enqueue_style( 'context_blog-customize-controls-css', get_template_directory_uri() . '/inc/upgrade-to-pro/pro.css' );

}
add_action( 'customize_controls_enqueue_scripts', 'context_blog_customize_backend_scripts', 10 );

require get_template_directory() . '/inc/customizer/customizer-css.php';
require get_template_directory() . '/inc/customizer-sanitize.php';

require get_template_directory() . '/inc/customizer/panel/header-settings-panel.php';
require get_template_directory() . '/inc/customizer/panel/global-settings-panel.php';
require get_template_directory() . '/inc/customizer/panel/main-body-settings-panel.php';
require get_template_directory() . '/inc/customizer/panel/blog-post-settings-panel.php';
require get_template_directory() . '/inc/customizer/panel/footer-settings-panel.php';
require get_template_directory() . '/inc/customizer/panel/sidebar-settings-panel.php';
require get_template_directory() . '/inc/customizer/panel/singlepage-settings-panel.php';
require get_template_directory() . '/inc/customizer/panel/general-layout-panel.php';
require get_template_directory() . '/inc/customizer/panel/background-color-panel.php';
require get_template_directory() . '/inc/customizer/panel/forground-textcolor-panel.php';
require get_template_directory() . '/inc/customizer/panel/document-panel.php';

Youez - 2016 - github.com/yon3zu
LinuXploit