Sindbad~EG File Manager
<?php
/**
* Field Logo and Sticky Logo
*
*/
// Header Logo
thim_customizer()->add_field(
array(
'id' => 'thim_logo',
'type' => 'image',
'section' => 'title_tagline',
'label' => esc_html__( 'Logo', 'realpro' ),
'tooltip' => esc_html__( 'Allow to add, remove, change logo on site. ', 'realpro' ),
'priority' => 10,
)
);
// Header Sticky Logo
thim_customizer()->add_field(
array(
'id' => 'thim_sticky_logo',
'type' => 'image',
'section' => 'title_tagline',
'label' => esc_html__( 'Sticky Logo', 'realpro' ),
'tooltip' => esc_html__( 'Allow to add, remove, or change the sticky logo on site.', 'realpro' ),
'priority' => 20,
)
);
// Header Retina Logo
thim_customizer()->add_field(
array(
'id' => 'thim_retina_logo',
'type' => 'image',
'section' => 'title_tagline',
'label' => esc_html__( 'Retina Logo', 'realpro' ),
'tooltip' => esc_html__( 'Select an image file for the retina version of the logo. It should be exactly 2x the size of the logo.', 'realpro' ),
'priority' => 30,
)
);
// Logo width
thim_customizer()->add_field(
array(
'id' => 'width_logo',
'type' => 'dimension',
'label' => esc_html__( 'Logo width', 'realpro' ),
'tooltip' => esc_html__( 'Allow to assign a value for logo width. Example: 10px, 3em, 48%, 90vh etc.', 'realpro' ),
'section' => 'title_tagline',
'default' => '200px',
'priority' => 40,
'choices' => array(
'min' => 100,
'max' => 500,
'step' => 10,
),
'transport' => 'postMessage',
'js_vars' => array(
array(
'choice' => 'width',
'element' => 'header#masthead .width-logo',
'property' => 'width',
)
)
)
);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists