예제 #1
0
 public function add_js()
 {
     $themes = Event::$data;
     if ($themes->map_enabled) {
         // Add ushahidi.js extensions
         Requirements::js('themes/tedx/js/ushahidi.tedx.js');
     }
 }
예제 #2
0
 /**
  *  Add plugin css and js
  */
 public function plugin_requirements()
 {
     foreach (plugin::get_requirements('javascript') as $js) {
         Requirements::js($js);
     }
     foreach (plugin::get_requirements('stylesheet') as $css) {
         Requirements::css($css);
     }
 }