示例#1
0
 public function _prepareForm()
 {
     $this->_configs = array('theme' => 'default', 'source' => 'images', 'imgwidth' => '940', 'imgheight' => '350', 'thumbwidth' => '180', 'thumbheight' => '90', 'image_navigator' => '0', 'auto' => '0', 'delay' => '3000');
     $sources = LeoBaseSource::getSourceList();
     foreach ($sources as $source) {
         $p = LeoBaseSource::getSource($source)->getParams();
         if (is_array($p) && !empty($p)) {
             $this->_configs = array_merge($this->_configs, $p);
         }
     }
 }
示例#2
0
 public function _prepareForm()
 {
     $this->_configs = array('modclass' => '', 'theme' => 'default', 'source' => 'images', 'show_desc' => '1', 'show_title' => '1', 'cropthumb' => '1', 'imgwidth' => '960', 'imgheight' => '320', 'thumbwidth' => '180', 'thumbheight' => '90', 'alignment' => 'center', 'autoAdvance' => '1', 'barDirection' => 'leftToRight', 'barPosition' => 'bottom', 'cols' => '6', 'easing' => 'easeInOutExpo', 'fx' => 'random', 'leoloader' => 'pie', 'navigation' => '1', 'navigationHover' => '1', 'pagination' => '1', 'playPause' => '1', 'pauseOnClick' => '1', 'thumbnails' => '1', 'time' => '7000', 'transPeriod' => '1500');
     $sources = LeoBaseSource::getSourceList();
     foreach ($sources as $source) {
         $p = LeoBaseSource::getSource($source)->getParams();
         if (is_array($p) && !empty($p)) {
             $this->_configs = array_merge($this->_configs, $p);
         }
     }
 }