public function onRun()
 {
     $this->addJs('/plugins/betescurieuses/ae110815/assets/js/lightGallery.min.js');
     $this->addCss('/plugins/betescurieuses/ae110815/assets/style/lightGallery.css');
     $gallery = new Galleries();
     $this->gallery = $this->page['gallery'] = $gallery->where('slug', $this->param('slug'))->first();
 }
예제 #2
0
 public function onRender()
 {
     $gallery = new Galleries();
     $this->gallery = $this->page['gallery'] = $gallery->where('id', '=', $this->propertyOrParam('idGallery'))->first();
     foreach ($this->getProperties() as $key => $value) {
         $this->page[$key] = $value;
     }
 }