#HW_HOANGWEB::load_class('HW_Tabs');
        $this->enable_tab_settings();
        $this->enable_submit_button();
    }
    /**
     * when module complete loaded
     * @return mixed|void
     */
    public function module_loaded()
    {
        $this->enable_config_page('cli/admin', false);
    }
    /**
     * @hook wp_enqueue_scripts
     */
    public function enqueue_scripts()
    {
    }
    public function admin_enqueue_scripts()
    {
    }
    /**
     * Triggered when the tab is loaded.
     */
    public function replyToAddFormElements($oAdminPage)
    {
        $oAdminPage->addSettingFields(array('field_id' => $this->create_field_name('container_id'), 'type' => 'text', 'title' => 'container_id'), array('field_id' => $this->create_field_name('container_class'), 'type' => 'text', 'title' => 'container_class'), array('field_id' => $this->create_field_name('tabs_menu_class'), 'type' => 'text', 'title' => 'tabs_menu_class'), array('field_id' => $this->create_field_name('current_tab_class'), 'type' => 'text', 'title' => 'current_tab_class'), array('field_id' => $this->create_field_name('tab_content_class'), 'type' => 'text', 'title' => 'tab_content_class'));
    }
}
HW_Module_Tabs::register();
 /**
  * render tabs with easytabs
  * @param array $args
  * @param $options override options
  */
 public function display($args = array('use_default_css' => 1, 'show_tabs' => 1), $options = array())
 {
     //valid
     if (!is_array($args)) {
         $args = array();
     }
     #HW_Libraries::enqueue_jquery_libs('easytabs');
     HW_Libraries::get('easytabs')->enqueue_scripts('jquery.easytabs.min.js');
     //easytabs css
     if (isset($args['use_default_css']) && $args['use_default_css']) {
         HW_Libraries::get('easytabs')->enqueue_styles('easytabs.css');
     }
     HW_Module_Tabs::get()->enqueue_style('style.css');
     //prepare HTML struct & data
     if (isset($args['show_tabs']) && $args['show_tabs']) {
         echo $this->render_ui();
     }
     extract($this->get_params());
     //get options
     if (is_array($options) && !empty($options)) {
         $this->set_options($options);
     }
     $json = json_encode($this->get_options());
     echo "<script>\r\njQuery(document).ready(function(){\r\n        //if(typeof \$.easytabs == 'functions')\r\n        jQuery('#{$container_id}').easytabs({$json});\r\n});\r\n        </script>";
 }