<?php use Antfuentes\Titan\Joomla; use Antfuentes\Titan\Framework; $category = new Joomla\Category(); $pagination = new Joomla\Pagination(); $category->deploy(JRequest::getVar('id'), JRequest::getVar('Itemid'), 99, __DIR__ . '/item', $this->categoryAlias, JRequest::getVar('view'), $this->categoryTitle); //$pagination->load(JRequest::getVar('Itemid'), $category->pagesTotal);
public function meta() { if ($this->routerView == 'article') { $h = new Html(); $article = new Article(); $article->content($this->routerId); $images = json_decode($article->images); $metadata = json_decode($article->metadata); $h->b('meta', 0, 1, '', '{"charset":"utf-8"}'); $h->b('meta', 0, 1, '', '{"http-equiv":"X-UA-Compatible", "content":"IE=edge"}'); $h->b('meta', 0, 1, '', '{"name":"viewport", "content":"width=device-width, initial-scale=1"}'); $h->b('meta', 0, 1, '', '{"name":"keywords", "content":"' . $article->metakey . '"}'); $h->b('meta', 0, 1, '', '{"name":"robots", "content":"' . $metadata->robots . '"}'); $h->b('meta', 0, 1, '', '{"name":"revised", "content":"' . $article->modified . '"}'); $h->b('meta', 0, 1, '', '{"name":"reply-to", "content":"' . $this->routerMailFrom . '"}'); $h->b('meta', 0, 1, '', '{"name":"pagename", "content":"' . $article->title . '"}'); $h->b('meta', 0, 1, '', '{"name":"description", "content":"' . $article->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:url", "content":"' . $this->routerInstance . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:type", "content":"' . $this->routerView . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:title", "content":"' . $article->title . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:description", "content":"' . $article->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:image", "content":"' . $this->routerBase . $images->image_intro . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:site_name", "content":"' . $this->routerSiteName . '"}'); $h->b('meta', 0, 1, '', '{"property":"article:author", "content":"' . $metadata->xreference . '"}'); $h->b('title', 0, 1); $h->e(1, $article->title . ' - ' . $this->routerSiteName); $h->b('title', 1, 1); } if ($this->routerView == 'category') { $h = new Html(); $category = new Category(); $category->categoryContent($this->routerId); $params = json_decode($category->params); $metadata = json_decode($category->metadata); $h->b('meta', 0, 1, '', '{"charset":"utf-8"}'); $h->b('meta', 0, 1, '', '{"http-equiv":"X-UA-Compatible", "content":"IE=edge"}'); $h->b('meta', 0, 1, '', '{"name":"viewport", "content":"device-width, initial-scale=1"}'); $h->b('meta', 0, 1, '', '{"name":"keywords", "content":"' . $category->metakey . '"}'); $h->b('meta', 0, 1, '', '{"name":"robots", "content":"' . $metadata->robots . '"}'); $h->b('meta', 0, 1, '', '{"name":"revised", "content":"' . $category->modified_time . '"}'); $h->b('meta', 0, 1, '', '{"name":"reply-to", "content":"' . $this->routerMailFrom . '"}'); $h->b('meta', 0, 1, '', '{"name":"pagename", "content":"' . $category->title . '"}'); $h->b('meta', 0, 1, '', '{"name":"description", "content":"' . $category->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:url", "content":"' . $this->routerInstance . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:type", "content":"' . $this->routerView . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:title", "content":"' . $category->title . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:description", "content":"' . $category->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:image", "content":"' . $this->routerBase . $params->image . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:site_name", "content":"' . $this->routerSiteName . '"}'); $h->b('meta', 0, 1, '', '{"property":"article:author", "content":"' . $category->description . '"}'); $h->b('title', 0, 1); $h->e(1, $category->title . ' - ' . $this->routerSiteName); $h->b('title', 1, 1); } }