/** * load option widget * @param WP_Widget $t: widget object * @param array $instance: widget data */ function do_widget_feature($t, $instance = array()) { HW_HOANGWEB::load_class('HW_UI_Component'); $this->widget_instance = $instance; $is_hide = $this->get_field_value('hide_option'); $condition = $this->get_field_value('condition'); #$dynamic_settings = HW_Condition::get_active_conditions_settings(); ?> <fieldset><legend>Ẩn widget</legend> <p> <input type="checkbox" class="" name="<?php echo $this->get_field_name('hide_option'); ?> " id="<?php echo $this->get_field_id('hide_option'); ?> " <?php checked($is_hide); ?> /> <label for="<?php echo $this->get_field_id('hide_option'); ?> "><strong>Kích hoạt ẩn</strong></label> </p> <p> <label for="<?php echo $this->get_field_id('condition'); ?> "><strong>Điều kiện</strong></label> <?php echo HW_Condition::get_conditions_select_tag($condition, array('name' => $this->get_field_name('condition'), 'id' => $this->get_field_id('condition'))); ?> </p> </fieldset> <?php }