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() { 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); }