Beispiel #1
0
 public function CatalogPage()
 {
     $this->APagesCreator();
     $this->updateTitleTagChildren(["Каталог - "]);
     $this->setPageCode("catalog_page");
     $this->setIsTreeVisible(true);
     $this->setIsStatusBarVisible(true);
     $this->setIsViewModeBlockVisible(true);
     $this->setPathLinkForTree(PathLinks::getDOMForTree());
     if (array_key_exists(UrlParameters::KEY, $_GET)) {
         $this->key = Utils::getFromGET(UrlParameters::KEY);
         $this->setTreeKey($this->key);
         $this->setPathLinkForMainBlock(PathLinks::getDOMForTreeCatalog($this->key, $this));
     } else {
         $this->setPathLinkForMainBlock(PathLinks::getDOMForCatalog());
     }
     $this->setViewModeBlock(PathLinks::getDOMForViewModeSelector());
     $metaDesc = new Meta();
     $metaDesc->addAttributes(["name" => "description", "content" => "в каталоге augustova.by вы  найдете спецодежду для вашей работы"]);
     $treeView = new TreeView();
     $treeLabels = implode(", ", $treeView->getAllLabels());
     $metaKeyWords = new Meta();
     $metaKeyWords->addAttributes(["name" => "keywords", "content" => $treeLabels]);
     $this->addMetaTags($metaDesc, $metaKeyWords);
     $html = $this->getHtml();
     echo $html;
 }
Beispiel #2
0
 public function SingleItemPage()
 {
     $this->APagesCreator();
     $this->setPageCode("single_item_page");
     $this->setIsStatusBarVisible(true);
     $this->setIsTreeVisible(true);
     $this->setIsViewModeBlockVisible(false);
     $this->setPathLinkForMainBlock(PathLinks::getDOMForSingleItemPage());
     $treeView = new TreeView();
     $treeLabels = implode(", ", $treeView->getAllLabels());
     $metaKeyWords = new Meta();
     $metaKeyWords->addAttributes(["name" => "keywords", "content" => $treeLabels]);
     $this->addMetaTags($metaKeyWords);
     $html = $this->getHtml();
     echo $html;
 }