static function appear($element, $attrs = array())
 {
     jquery::load();
     //		jquery_plugin::assetic_load('wysibb');
     //		bors_use($path.css);
     //		jquery::plugin($path);
     //		http://cdn.wysibb.com/
     bors_use('http://cdn.wysibb.com/js/jquery.wysibb.min.js');
     bors_use('http://cdn.wysibb.com/css/default/wbbtheme.css');
     bors_use('http://cdn.wysibb.com/lang/ru.js');
     //		bors_use('/_bors-assets/balancer/bors-3rd-jquery-wysibb/preset/phpbb3.js');
     $attrs = $attrs ? blib_json::encode_jsfunc($attrs) : '';
     jquery::on_ready("\$('{$element}').wysibb({$attrs});");
     //		$theme = config('bower.path')."/jqjquery-wysibb/theme/default/wbbtheme.css";
     //		$theme = http://cdn.wysibb.com/css/default/wbbtheme.css;
     //		bors_page::add_template_data_array('head_append', "<link rel=\"stylesheet\" href=\"{$theme}\" />");
 }
Example #2
0
 static function load()
 {
     //		parent::load('jquery-ui', 'jquery.jquery-ui', 'balancer/bors-3rd-jquery-ui');
     jquery::plugin('http://code.jquery.com/ui/1.8.3/jquery-ui.min.js');
     bors_use('http://code.jquery.com/ui/1.8.3/themes/base/jquery-ui.css');
 }