/** * Helper function which returns the theme directory for the passed * shop template. * * @param Shop\Template $theme * @return null|string */ private function getThemeDirectory(Shop\Template $theme) { if ($theme->getPlugin()) { return $this->getPluginPath($theme->getPlugin()) . DIRECTORY_SEPARATOR . 'Themes' . DIRECTORY_SEPARATOR . 'Frontend' . DIRECTORY_SEPARATOR . $theme->getTemplate(); } else { return $this->getFrontendThemeDirectory() . DIRECTORY_SEPARATOR . $theme->getTemplate(); } }
/** * {@inheritDoc} */ public function getPlugin() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPlugin', array()); return parent::getPlugin(); }