/** * Generate the content element */ protected function compile() { // Import CSS files $objPa2 = new \Pa2(); $objPa2->addCssFile(); // Import view parser $objImageViewParser = new \Pa2ImageViewParser($this->Template, $this->pa2Album); $this->Template = $objImageViewParser->getViewParserTemplate(); }
/** * compile function. * * @access protected * @return void */ protected function compile() { global $objPage; // Import CSS files $objPa2 = new \Pa2(); $objPa2->addCssFile(); // Show images if ($this->Input->get('album') && ($this->pa2DetailPage == '' || $this->pa2DetailPage != '' && ($this->pa2DetailPage == $objPage->id || $objPage->languageMain != '' && $objPage->languageMain == $this->pa2DetailPage))) { $this->prepareImages(); } elseif (is_numeric($this->pa2OverviewPage) && $this->pa2OverviewPage > 0 && $objPage->id != $this->pa2OverviewPage) { $this->goToOverviewPage(); } else { $this->goToRootPage(); } }
/** * compile function. * * @access protected * @return void */ protected function compile() { global $objPage; // Import CSS files $objPa2 = new \Pa2(); $objPa2->addCssFile(); // Show albums if (!$this->Input->get('album') && ($this->pa2DetailPage == '' || $this->pa2DetailPage != '' && $this->pa2DetailPage != $objPage->id)) { $this->prepareAlbums(); } elseif ($this->Input->get('album')) { $this->goToDetailPage(); } else { $this->goToRootPage(); } }