public function render_content() { tally_customize_help_start($this->css_class); ?> <label class="<?php echo esc_attr($this->css_class); ?> "> <?php if (!empty($this->label)) { ?> <span class="customize-control-title"><?php echo esc_html($this->label); ?> </span> <?php } if (!empty($this->description)) { ?> <span class="description customize-control-description"><?php echo $this->description; ?> </span> <?php } ?> <input type="<?php echo esc_attr($this->type); ?> " <?php $this->input_attrs(); ?> value="<?php echo esc_attr($this->value()); ?> " <?php $this->link(); ?> <?php tally_customize_help_disabled($this->css_class); ?> /> </label> <?php tally_customize_help_end($this->css_class); }
public function render_content() { if (tally_config('type') == 'none' && $this->css_class == 'biz' || tally_config('type') == 'away' && $this->css_class == 'hbiz' || tally_config('type') == 'none' && $this->css_class == 'hbiz') { tally_customize_help_start($this->css_class); ?> <script> jQuery(document).ready(function($){ $('.my-color-field').wpColorPicker(); }); </script> <label class="<?php echo esc_attr($this->css_class); ?> "> <?php if (!empty($this->label)) { ?> <span class="customize-control-title"><?php echo esc_html($this->label); ?> </span> <?php } if (!empty($this->description)) { ?> <span class="description customize-control-description"><?php echo $this->description; ?> </span> <?php } ?> <input type="text" value="<?php echo esc_attr($this->value()); ?> " class="my-color-field" data-default-color="<?php echo esc_attr($this->value()); ?> " /> </label> <?php tally_customize_help_end($this->css_class); } }
public function render_content() { tally_customize_help_start($this->css_class); ?> <label class="<?php echo esc_attr($this->css_class); ?> "> <?php if (!empty($this->label)) { ?> <span class="customize-control-title"><?php echo esc_html($this->label); ?> </span> <?php } if (!empty($this->description)) { ?> <span class="description customize-control-description"><?php echo $this->description; ?> </span> <?php } ?> <select <?php $this->link(); ?> <?php tally_customize_help_disabled($this->css_class); ?> > <?php foreach ($this->choices as $value => $label) { echo '<option value="' . esc_attr($value) . '"' . selected($this->value(), $value, false) . '>' . $label . '</option>'; } ?> </select> </label> <?php tally_customize_help_end($this->css_class); }