_init_plus(); } //初始化插件 function _init_plus() { $this->plus = array( /**********Jquery公共库******/ //Jquery 'jquery'=>array( $this->ScriptKey => array( '/js/lib/jquery.lasted.js' ) ), //Jquery UI 'jquery_ui'=>array( $this->ScriptKey => array( '/js/lib/jquery.lasted.js', '/js/lib/jquery.ui/jquery-ui.lasted.js' ), $this->CSSKey =>array( '/js/lib/jquery.ui/jquery-ui.lasted.css' ) ), /********* Bootstrap ******/ 'bootstrap'=>array( $this->ScriptKey => array( '/js/lib/bootstrap/js/bootstrap.min.js', ), $this->CSSKey =>array( '/js/lib/bootstrap/css/bootstrap.min.css', '/js/lib/bootstrap/css/bootstrap-responsive.min.css' ) ), /********Jquery 插件********/ //colorbox 'colorbox' => array( $this->ScriptKey => array( '/js/lib/jquery.colorbox/jquery.colorbox-min.js' ), $this->CSSKey => array( '/js/lib/jquery.colorbox/style2/colorbox.css' ) ), //inputbg 'inputbg' => array( $this->ScriptKey => array( '/js/lib/custom/jquery.inputbg.js' ) ), //loadinglayer 'loadinglayer' => array( $this->ScriptKey => array( '/js/lib/custom/jquery.loadinglayer.js' ) ), //admin_plugin 'admin_plugin' => array( $this->ScriptKey => array( '/js/lib/custom/admin_plugin.js' ) ), 'jplayer' => array( $this->ScriptKey => array( '/js/lib/jplayer/jquery.jplayer.min.js' ) ), //slides 'slides' => array( $this->ScriptKey => array( '/js/lib/jquery.slides.min.js' ) ), 'datatable' => array( $this->ScriptKey => array( '/js/lib/jquery.datatable/jquery.dataTables.min.js' ), $this->CSSKey => array( '/js/lib/jquery.datatable/datatable.css' ) ), 'masonry' => array( $this->ScriptKey => array( '/js/lib/jquery.masonry.min.js' ), ), /*********谷歌地图*********/ //Google Map API v3 'google_map_v3'=>array( $this->ScriptKey => array( 'http://maps.google.com/maps/api/js?sensor=false&language=zh-cn' ) ), //Google Map API v3 - KeyDragZone 'google_map_keydragzone' => array( $this->ScriptKey => array( '/js/lib/google-map/keydragzoom.js' ) ), );//插件列表 }// _init_plus() //前台添加插件 function AppendPlus($render,$plus_name){ $plus_name = strtolower($plus_name); $plusing = $this->plus; if(!empty($plusing[$plus_name][$this->ScriptKey])) { foreach($plusing[$plus_name][$this->ScriptKey] as $k=>$v) { $render->headScript()->appendFile($v); } } if(!empty($plusing[$plus_name][$this->CSSKey])) { foreach($plusing[$plus_name][$this->CSSKey] as $k=>$v) { $render->headLink()->appendStylesheet($v); } } }// AppendPlus }