Example #1
0
 /**
  * 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();
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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;
 }