/** * @param Shop\Template $template * @return null|string */ public function getDirectory(Shop\Template $template) { if ($template->getVersion() < 3) { return $this->getTemplateDirectory($template); } else { return $this->getThemeDirectory($template); } }
/** * Returns the preview image of the passed shopware template. * The image will be encoded as base 64 image. * * @param Shop\Template $template * @return null|string */ public function getPreviewImage(Shop\Template $template) { if ($template->getVersion() < 3) { return $this->getTemplateImage($template); } else { return $this->getThemeImage($template); } }
/** * {@inheritDoc} */ public function getVersion() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getVersion', array()); return parent::getVersion(); }