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; }
public function SearchPage() { $this->APagesCreator(); $this->setPageCode("search_page"); $this->setIsStatusBarVisible(true); $this->setIsViewModeBlockVisible(true); $this->setIsTreeVisible(true); $this->setPathLinkForTree(PathLinks::getDOMForTree()); $this->setViewModeBlock(PathLinks::getDOMForViewModeSelector()); $html = $this->getHtml(); echo $html; }
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; }
public function ContactsPage() { $this->APagesCreator(); $this->setPageCode("contacts_page"); $this->setIsTreeVisible(false); $this->setIsStatusBarVisible(true); $this->setIsViewModeBlockVisible(false); $this->setIsPathLinkVisible(false); $this->setPathLinkForTree(PathLinks::getDOMForContacts()); $this->updateTitleTagChildren(["Контакты - "]); $metaDesc = new Meta(); $metaDesc->addAttributes(["name" => "description", "content" => "на этой странице Вы найдете наши контакты, торговые точки на рынках и как всегда - электронная почта augustova@mail.ru - ждем ваших писем!"]); $this->addMetaTags($metaDesc); $html = $this->getHtml(); echo $html; }