Ejemplo n.º 1
0
 public static function getSlidesPath()
 {
     if (!isset(self::$site_path) || !self::$site_path) {
         require_once 'ContentBuilder.class.php';
         self::$site_path = ContentBuilder::getSitePath();
     }
     return self::$site_path . DIRECTORY_SEPARATOR . self::$web_directory . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'slides';
 }
Ejemplo n.º 2
0
 public function run()
 {
     //$this->title = Yii::t('bannerModule.Caption', 'Captions');
     if ($this->slide_id === null) {
         return;
     }
     $captionDataProvider = SlideController::getCaptionDataProvider($this->slide_id);
     $this->render('NYMCaptions', array('captionDataProvider' => $captionDataProvider, 'slide_id' => $this->slide_id));
 }