/**
  * register js libs
  * @param $name library name
  * @param $resource define resrouce
  */
 public static function registers_jquery_libs($name = '', $resource = '')
 {
     //self::$jquery_libs    ->this variable no longer use
     $init_libs = hw_get_autoload('jquery-libs');
     if (is_callable($init_libs)) {
         call_user_func($init_libs);
     }
     if (!empty($name) && is_string($name) && is_array($resource)) {
         //do not allow override exists library
         if (!HW_Libraries::get($name)) {
             HW_Libraries::add($name, $resource);
         }
         //or HW_Libraries::add($name, $resource,false)
     }
 }
    //Skitter
    HW_Libraries::add('sliders/Skitter', array('libs' => array(array('jquery-libs' => array('scripts' => ['jquery.easing.1.3.js']))), 'scripts' => array('jquery.skitter.min.js' => array('file' => 'asset/jquery.skitter.min.js', 'required' => true, 'depends' => array('jquery'))), 'styles' => array('skitter.styles.css' => array('file' => 'skitter.styles.css', 'required' => true))));
    //wonderpluginslider
    HW_Libraries::add('sliders/wonderpluginslider', array('scripts' => array('wonderpluginslider.js' => array('file' => 'wonderpluginslider.js', 'required' => true, 'depends' => array('jquery')), 'wonderpluginsliderskins.js' => array('file' => 'wonderpluginsliderskins.js', 'required' => true, 'depends' => array('jquery'))), 'styles' => array('wonderpluginsliderengine.css' => array('file' => 'wonderpluginsliderengine.css', 'required' => true))));
    //bxslider
    HW_Libraries::add('sliders/bxSlider', array('scripts' => array('jquery.bxslider.min.js' => array('file' => 'jquery.bxslider.min.js', 'required' => true, 'depends' => array('jquery'))), 'styles' => array('jquery.bxslider.css' => array('file' => 'jquery.bxslider.css', 'required' => true))));
    //
    /**
     * scrollbars
     */
    //lionbars
    HW_Libraries::add('scrollbars/lionbars', array('scripts' => array('jquery.lionbars.0.3.js' => array('file' => 'jquery.lionbars.0.3.js', 'required' => true, 'depends' => true)), 'styles' => array('style.css' => array('file' => 'style.css', 'required' => true, 'depends' => true))));
    //perfect-scrollbar
    HW_Libraries::add('scrollbars/perfect-scrollbar', array('scripts' => array('perfect-scrollbar.js' => array('file' => 'js/perfect-scrollbar.js', 'required' => true, 'depends' => array('jquery')), 'perfect-scrollbar.jquery.js' => array('file' => 'js/perfect-scrollbar.jquery.js', 'required' => true, 'depends' => array('jquery'))), 'styles' => array('style.css' => array('file' => 'style.css', 'required' => true), 'perfect-scrollbar.min.css' => array('file' => 'css/perfect-scrollbar.min.css', 'required' => true))));
    /**
     * UI Components
     */
    //ddslick
    HW_Libraries::add('components-ui/dropdown_ddslick', array('scripts' => array('jquery.ddslick.min.js' => array('file' => 'jquery.ddslick.min.js', 'required' => true, 'depends' => array('jquery')))));
    //jquery collapse
    HW_Libraries::add('components-ui/collapse/jQuery-Collapse', array('scripts' => array('jquery.collapse.js' => array('file' => 'jquery.collapse.js', 'required' => true, 'depends' => array('jquery')), 'jquery.collapse_cookie_storage.js' => array('file' => 'jquery.collapse_cookie_storage.js', 'required' => true, 'depends' => array('jquery')), 'jquery.collapse_storage.js' => array('file' => 'jquery.collapse_storage.js', 'required' => true, 'depends' => array('jquery')))));
    /**
     * colors
     */
    //jscolor
    HW_Libraries::add('colors/jscolor', array('scripts' => array('jscolor.js' => array('file' => 'jscolor.js', 'required' => true, 'depends' => array('jquery')))));
    //color picker
    HW_Libraries::add('colors/spectrum', array('scripts' => array('file' => 'spectrum.js', 'required' => true, 'depends' => array('jquery')), 'styles' => array('file' => 'spectrum.css', 'required' => true)));
    //page loading progressbar
    HW_Libraries::add('pageload/nprogress', array('scripts' => array('nprogress.js' => array('file' => 'nprogress.js', 'required' => true, 'depends' => array('jquery'))), 'styles' => array('nprogress.css' => array('file' => 'nprogress.css', 'required' => true))));
};