/** * Defines the base method to generate a section * * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\PageTree\PageTree $pageTree * @param \RedKiteLabs\ThemeEngineBundle\Core\Theme\ThemeInterface $theme * @param array $options */ public function generateSection(PageTree $pageTree, ThemeInterface $theme, array $options) { $this->contents = array(); parent::generateSection($pageTree, $theme, $options); $this->credits = $options["credits"] == "no" ? true : false; $this->parseSlots($options["filter"]); return $this->createSections(); }
/** * Defines the base method to generate a section * * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\PageTree\PageTree $pageTree * @param \RedKiteLabs\ThemeEngineBundle\Core\Theme\ThemeInterface $theme * @param array $options */ public function generateSection(PageTree $pageTree, ThemeInterface $theme, array $options) { parent::generateSection($pageTree, $theme, $options); $metatagsSection = $this->writeComment("Metatags section"); $metatagsSection .= $this->writeInlineBlock('title', $this->pageTree->getMetaTitle()); $metatagsSection .= $this->writeInlineBlock('description', $this->pageTree->getMetaDescription()); $metatagsSection .= $this->writeInlineBlock('keywords', $this->pageTree->getMetaKeywords()); return $metatagsSection; }
/** * Defines the base method to generate a section * * @param \RedKiteLabs\RedKiteCms\RedKiteCmsBundle\Core\PageTree\PageTree $pageTree * @param \RedKiteLabs\ThemeEngineBundle\Core\Theme\ThemeInterface $theme * @param array $options */ public function generateSection(PageTree $pageTree, ThemeInterface $theme, array $options) { parent::generateSection($pageTree, $theme, $options); $assetsSection = $this->writeComment("Assets section"); $assetsSection .= $this->generateExternalStylesheet(); $assetsSection .= $this->generateExternalJavascripts(); $assetsSection .= $this->generateInternalStylesheet(); $assetsSection .= $this->generateInternalJavascripts(); return $assetsSection; }