views/noticias/wp-content/themes/ts-photography/inc/logo/logo-resizer.php
/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */
Add postMessage support for site title and description for the Theme Customizer.
Add postMessage support for site title and description for the Theme Customizer .
function ts_photography_logo_customize_register( $wp_customize ) {
	$wp_customize->add_setting( 'logo_size', array(
		'default'              => 50,
		'type'                 => 'theme_mod',
		'theme_supports'       => 'custom-logo',
		'transport'            => 'refresh',
		'sanitize_callback'    => 'absint',
		'sanitize_js_callback' => 'absint',
	) );
	$wp_customize->add_control( 'logo_size', array(
		'label'       => esc_html__( 'Logo Size','ts-photography' ),
		'section'     => 'title_tagline',
		'priority'    => 9,
		'type'        => 'range',
		'settings'    => 'logo_size',
		'input_attrs' => array(
			'step'             => 5,
			'min'              => 0,
			'max'              => 100,
			'aria-valuemin'    => 0,
			'aria-valuemax'    => 100,
			'aria-valuenow'    => 50,
			'aria-orientation' => 'horizontal',
		),
	) );
}
function ts_photography_logo_customize_register ( $ wp_customize ) { $ wp_customize -> add_setting ( 'logo_size' , array ( 'default' => 50 , 'type' => 'theme_mod' , 'theme_supports' => 'custom-logo' , 'transport' => 'refresh' , 'sanitize_callback' => 'absint' , 'sanitize_js_callback' => 'absint' , ) ) ; $ wp_customize -> add_control ( 'logo_size' , array ( 'label' => esc_html__ ( 'Logo Size' , 'ts-photography' ) , 'section' => 'title_tagline' , 'priority' => 9 , 'type' => 'range' , 'settings' => 'logo_size' , 'input_attrs' => array ( 'step' => 5 , 'min' => 0 , 'max' => 100 , 'aria-valuemin' => 0 , 'aria-valuemax' => 100 , 'aria-valuenow' => 50 , 'aria-orientation' => 'horizontal' , ) , ) ) ; }
Add postMessage support for site title and description for the Theme Customizer.
Add postMessage support for site title and description for the Theme Customizer .
// Logo Resizer additions