Esempio n. 1
0
 protected function _prepareDocument()
 {
     $uri = clone JUri::getInstance();
     $domain = $uri->toString(array('scheme', 'host', 'port'));
     $linkCanonical = $domain . JRoute::_(JUDirectoryHelperRoute::getTopCommentsRoute(true, $this->_layout), false);
     JUDirectoryFrontHelper::setCanonical($linkCanonical);
     $seoData = array("metatitle" => JText::_('COM_JUDIRECTORY_SEO_TITLE_TOP_COMMENTS'), "metadescription" => "", "metakeyword" => "");
     JUDirectoryFrontHelperSeo::seo($this, $seoData);
 }
Esempio n. 2
0
 protected function _prepareDocument()
 {
     $uri = clone JUri::getInstance();
     $domain = $uri->toString(array('scheme', 'host', 'port'));
     $canonicalLink = $domain . JRoute::_(JUDirectoryHelperRoute::getListingsRoute(true), false);
     JUDirectoryFrontHelper::setCanonical($canonicalLink);
     $seoData = array("metatitle" => JText::_('COM_JUDIRECTORY_SEO_TITLE_LISTINGS'), "metadescription" => "", "metakeyword" => "");
     JUDirectoryFrontHelperSeo::seo($this, $seoData);
 }
Esempio n. 3
0
 protected function _prepareDocument()
 {
     $seoData = array("metatitle" => JText::_('COM_JUDIRECTORY_SEO_TITLE_EMBED_LISTING'), "metadescription" => "", "metakeyword" => "");
     JUDirectoryFrontHelperSeo::seo($this, $seoData);
 }
Esempio n. 4
0
 protected function _prepareDocument()
 {
     $document = JFactory::getDocument();
     $uri = clone JUri::getInstance();
     $domain = $uri->toString(array('scheme', 'host', 'port'));
     $canonicalLink = $domain . JRoute::_(JUDirectoryHelperRoute::getListingRoute($this->item->id, $this->_layout), false);
     JUDirectoryFrontHelper::setCanonical($canonicalLink);
     $document->addCustomTag('<meta property="og:title" content="' . htmlspecialchars(strip_tags($this->item->title), ENT_COMPAT, 'UTF-8') . '" />');
     $document->addCustomTag('<meta property="og:type" content="website" />');
     $listingImage = JUDirectoryHelper::getListingImage($this->item->image);
     if ($listingImage) {
         $document->addCustomTag('<meta property="og:image" content="' . $listingImage . '" />');
     }
     $document->addCustomTag('<meta property="og:url" content="' . $canonicalLink . '" />');
     $document->addCustomTag('<meta property="og:description" content="' . htmlspecialchars(strip_tags($this->item->description), ENT_COMPAT, 'UTF-8') . '" />');
     $conf = JFactory::getConfig();
     if (JUDirectoryHelper::isJoomla3x()) {
         $siteName = $conf->get('sitename');
     } else {
         $siteName = $conf->getValue('config.sitename');
     }
     $document->addCustomTag('<meta property="og:site_name" content="' . htmlspecialchars(strip_tags($siteName), ENT_COMPAT, 'UTF-8') . '" />');
     JUDirectoryFrontHelperSeo::seo($this);
 }
Esempio n. 5
0
 protected function _prepareDocument()
 {
     $uri = clone JUri::getInstance();
     $domain = $uri->toString(array('scheme', 'host', 'port'));
     $canonicalLink = $domain . JRoute::_(JUDirectoryHelperRoute::getFeaturedRoute($this->categoryId, $this->fetchAllSubCat, true, false, $this->_layout), false);
     JUDirectoryFrontHelper::setCanonical($canonicalLink);
     $seoData = array("metatitle" => JText::_('COM_JUDIRECTORY_SEO_TITLE_FEATURED'), "metadescription" => "", "metakeyword" => "");
     JUDirectoryFrontHelperSeo::seo($this, $seoData);
 }
Esempio n. 6
0
 protected function _prepareDocument()
 {
     $uri = clone JUri::getInstance();
     $domain = $uri->toString(array('scheme', 'host', 'port'));
     $canonicalLink = $domain . JRoute::_(JUDirectoryHelperRoute::getCategoryRoute($this->category->id, null, false, $this->_layout), false);
     JUDirectoryFrontHelper::setCanonical($canonicalLink);
     $this->item = $this->category;
     JUDirectoryFrontHelperSeo::seo($this);
 }
Esempio n. 7
0
 protected function _prepareDocument()
 {
     $uri = clone JUri::getInstance();
     $domain = $uri->toString(array('scheme', 'host', 'port'));
     $linkCanonical = $domain . JRoute::_(JUDirectoryHelperRoute::getTagRoute($this->tag->id, true, false, $this->_layout), false);
     JUDirectoryFrontHelper::setCanonical($linkCanonical);
     $this->item = $this->tag;
     JUDirectoryFrontHelperSeo::seo($this);
 }