Exemple #1
0
 public static function behavior($behavior, $options = array())
 {
     require_once CJLIB_PATH . '/framework/behavior.php';
     $custom_tag = isset($options['customtag']) ? $options['customtag'] : false;
     switch ($behavior) {
         case 'jquery':
             CjLibBehavior::jquery($custom_tag);
             break;
         case 'bootstrap':
             $load_bsjs = isset($options['loadjs']) ? $options['loadjs'] : true;
             $load_bscss = isset($options['loadcss']) ? $options['loadcss'] : true;
             $local_css = isset($options['localcss']) ? $options['localcss'] : false;
             CjLibBehavior::bootstrap($load_bsjs, $load_bscss, $local_css, $custom_tag);
             break;
         case 'bscore':
             CjLibBehavior::bscore($custom_tag);
             break;
         case 'fontawesome':
             CjLibBehavior::fontawesome($custom_tag);
             break;
     }
 }