/**
  * Parse
  *
  * @return void
  */
 private function parse()
 {
     // add CSS and JS
     $this->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/slideshow.css');
     // add JS
     $this->addJS('Settings.js');
     // set meta
     $this->header->setPageTitle($this->record['meta_title'], $this->record['title_overwrite'] == 'Y');
     $this->header->addMetaDescription($this->record['meta_description'], $this->record['description_overwrite'] == 'Y');
     $this->header->addMetaKeywords($this->record['meta_keywords'], $this->record['keywords_overwrite'] == 'Y');
     // assign
     $this->tpl->assign('slideshow', $this->slides);
     $this->tpl->assign('gallery', $this->gallery);
     // assign navigation
     $this->tpl->assign('navigation', FrontendSlideshowModel::getNavigation($this->record['gallery_id']));
     // should we use the settings per slide or the module settings
     if ($this->get('fork.settings')->get('Slideshow', 'settings_per_slide')) {
         $settings = FrontendSlideshowModel::getAllSettings($this->record['gallery_id']);
         $settings['id'] = $this->record['gallery_id'];
     } else {
         $settings = $this->get('fork.settings')->getForModule('Slideshow');
         $settings['id'] = $this->record['gallery_id'];
     }
     // pass settings to JS
     $this->addJSData('slideshowSettings', $settings);
 }
 /**
  * Get the data
  *
  * @return void
  */
 private function getData()
 {
     // get all galleries
     $this->items = FrontendSlideshowModel::getGalleries();
     // full url assets
     $this->full_url = FrontendNavigation::getURLForBlock('Slideshow', 'Detail');
     $this->full_url_category = FrontendNavigation::getURLForBlock('Slideshow', 'Category');
 }
 /**
  * Get the data
  *
  * @return void
  */
 private function getData()
 {
     // check for errors
     if ($this->URL->getParameter(1) === null) {
         $this->redirect(FrontendNavigation::getURL(404));
     }
     // get the gallery meta based on the url
     $this->record = FrontendSlideshowModel::getGalleriesByURL($this->URL->getParameter(1));
     // redirect if nothing is found
     if (empty($this->record)) {
         $this->redirect(FrontendNavigation::getURL(404));
     }
     // full url asset
     $this->full_url = FrontendNavigation::getURLForBlock('Slideshow', 'detail');
     $this->full_url_category = FrontendNavigation::getURLForBlock('Slideshow', 'category');
 }
 /**
  * Parse
  *
  * @return void
  */
 private function parse()
 {
     // add CSS
     $this->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/slideshow.css');
     // add JS
     $this->addJS('Settings.js');
     // assign
     $this->tpl->assign('widgetSlideshow', $this->slides);
     $this->tpl->assign('widgetGallery', $this->gallery);
     if (!empty($this->gallery)) {
         // should we use the settings per slide or the module settings
         if ($this->get('fork.settings')->get('Slideshow', 'settings_per_slide')) {
             $settings = FrontendSlideshowModel::getAllSettings($this->gallery['id']);
             $settings['id'] = $this->gallery['id'];
         } else {
             $settings = $this->get('fork.settings')->getForModule('Slideshow');
             $settings['id'] = $this->gallery['id'];
         }
         // pass settings to JS
         $this->addJSData('slideshowSettings', $settings);
     }
 }