id);
$class = 'customize-control has-change customize-control-' . $this->type;
?>
render_content(); ?>
json['id'] = $this->id;
$this->json['avik_padding_f_c'] = $this->avik_padding_f_c();
$this->json['title'] = esc_html__('Link values together', 'avik');
$this->json['inputAttrs'] = '';
foreach ($this->input_attrs as $attr => $value) {
$this->json['inputAttrs'] .= $attr . '="' . esc_attr($value) . '" ';
}
$this->json['desktop'] = array();
$this->json['tablet'] = array();
$this->json['mobile'] = array();
foreach ($this->settings as $setting_key => $setting) {
list($_key) = explode('_', $setting_key);
$this->json[$_key][$setting_key] = array(
'id' => $setting->id,
'link' => $this->get_link($setting_key),
'value' => $this->value($setting_key),
);
}
}
protected function content_template()
{
?>
<# if ( data.label ) { #>
{{{ data.label }}}
<# } #>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>
esc_attr__('Top', 'avik'),
'desktop_right' => esc_attr__('Right', 'avik'),
'desktop_bottom' => esc_attr__('Bottom', 'avik'),
'desktop_left' => esc_attr__('Left', 'avik'),
'tablet_top' => esc_attr__('Top', 'avik'),
'tablet_right' => esc_attr__('Right', 'avik'),
'tablet_bottom' => esc_attr__('Bottom', 'avik'),
'tablet_left' => esc_attr__('Left', 'avik'),
'mobile_top' => esc_attr__('Top', 'avik'),
'mobile_right' => esc_attr__('Right', 'avik'),
'mobile_bottom' => esc_attr__('Bottom', 'avik'),
'mobile_left' => esc_attr__('Left', 'avik'),
'desktop_font' => esc_html__('Font size', 'avik'),
'tablet_font' => esc_html__('Font size', 'avik'),
'mobile_font' => esc_html__('Font size', 'avik'),
'desktop_width' => esc_html__('Width', 'avik'),
'tablet_width' => esc_html__('Width', 'avik'),
'mobile_width' => esc_html__('Width', 'avik'),
'desktop_height' => esc_html__('Height', 'avik'),
'tablet_height' => esc_html__('Height', 'avik'),
'mobile_height' => esc_html__('Height', 'avik'),
'desktop_font_size' => esc_html__('Font Size', 'avik'),
'tablet_font_size' => esc_html__('Font Size', 'avik'),
'mobile_font_size' => esc_html__('Font Size', 'avik'),
'desktop_line_height' => esc_html__('Line Height', 'avik'),
'tablet_line_height' => esc_html__('Line Height', 'avik'),
'mobile_line_height' => esc_html__('Line Height', 'avik'),
'desktop_letter_spacing' => esc_html__('Letter Spacingt', 'avik'),
'tablet_letter_spacing' => esc_html__('Letter Spacing', 'avik'),
'mobile_letter_spacing' => esc_html__('Letter Spacing', 'avik'),
'desktop_padding' => esc_html__('Padding', 'avik'),
'tablet_padding' => esc_html__('Padding', 'avik'),
'mobile_padding' => esc_html__('Padding', 'avik'),
'desktop_height' => esc_html__('Height', 'avik'),
'tablet_height' => esc_html__('Height', 'avik'),
'mobile_height' => esc_html__('Height', 'avik'),
);
if (false === $id) {
return $translation_strings;
}
return $translation_strings[$id];
}
}
}
/* ------------------------------------*
## 1.1 Class Toggle Switchs */
/* ----------------------------------- */
if (class_exists('WP_Customize_Control')) {
class Avik_Toggle_Switch_Custom_control extends WP_Customize_Control
{
/**
* The type of control being rendered
*/
public $type = 'toogle_switch';
/**
* Enqueue our scripts and styles
*/
public function enqueue()
{
wp_enqueue_style('avik_custom_controls_css', trailingslashit(get_template_directory_uri()) . 'inc/css/avik-customizer.css', array(), '1.0', 'all');
}
/**
* Render the control in the customizer
*/
public function render_content()
{
?>
array(
'href' => array(),
'title' => array(),
'class' => array(),
'target' => array(),
),
'br' => array(),
'em' => array(),
'strong' => array(),
'i' => array(
'class' => array()
),
'span' => array(
'class' => array(),
),
'code' => array(),
);
?>
label)) { ?>
label); ?>
description)) { ?>
description, $allowed_html); ?>
'_customize-dropdown-category-' . $this->id,
'echo' => 0,
'show_count' => 1,
'show_option_none' => __('— Select —', 'avik'),
'option_none_value' => 0,
'selected' => $this->value(),
)
);
$dropdown = str_replace('