/**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $sUrl  url to append page numbers
  * @param int    $iPage current page number
  * @param int    $iLang requested language
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     if (oxUtils::getInstance()->seoIsActive() && ($oRecomm = $this->getActiveRecommList())) {
         if ($iPage) {
             // only if page number > 0
             $sUrl = $oRecomm->getBaseSeoLink($iLang, $iPage);
         }
     } else {
         $sUrl = oxUBase::_addPageNrParam($sUrl, $iPage, $iLang);
     }
     return $sUrl;
 }
Example #2
0
 /**
  * Modifies url by adding page parameters. When seo is on, url is additionally
  * formatted by SEO engine
  *
  * @param string $sUrl  current url
  * @param int    $iPage page number
  * @param int    $iLang active language id
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     if (oxRegistry::getUtils()->seoIsActive() && ($oVendor = $this->getActVendor())) {
         if ($iPage) {
             // only if page number > 0
             $sUrl = $oVendor->getBaseSeoLink($iLang, $iPage);
         }
     } else {
         $sUrl = oxUBase::_addPageNrParam($sUrl, $iPage, $iLang);
     }
     return $sUrl;
 }
Example #3
0
 /**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $sUrl  url to append page numbers
  * @param int    $iPage current page number
  * @param int    $iLang requested language
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     $sSeoUrl = $blSeo = oxRegistry::getUtils()->seoIsActive();
     if ($blSeo && ($sTag = $this->getTag())) {
         if ($iPage && ($sSeoUrl = oxRegistry::get("oxSeoEncoderTag")->getTagPageUrl($sTag, $iPage, $iLang))) {
             // only if page number > 0
             $sUrl = $sSeoUrl;
         }
     }
     return !$blSeo || !$sSeoUrl ? oxUBase::_addPageNrParam($sUrl, $iPage, $iLang) : $sUrl;
 }
 /**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $url         Url to append page numbers
  * @param int    $currentPage Current page number
  * @param int    $languageId  Requested language
  *
  * @return string
  */
 protected function _addPageNrParam($url, $currentPage, $languageId = null)
 {
     if (oxRegistry::getUtils()->seoIsActive() && ($category = $this->getActiveCategory())) {
         if ($currentPage) {
             // only if page number > 0
             $url = $category->getBaseSeoLink($languageId, $currentPage);
         }
     } else {
         $url = parent::_addPageNrParam($url, $currentPage, $languageId);
     }
     return $url;
 }
Example #5
0
 /**
  * Adds page number parameter to current Url and returns formatted url
  *
  * @param string $sUrl  url to append page numbers
  * @param int    $iPage current page number
  * @param int    $iLang requested language
  *
  * @return string
  */
 protected function _addPageNrParam($sUrl, $iPage, $iLang = null)
 {
     if (oxRegistry::getUtils()->seoIsActive() && ($oCategory = $this->getActiveCategory())) {
         if ($iPage) {
             // only if page number > 0
             $sUrl = $oCategory->getBaseSeoLink($iLang, $iPage);
         }
     } else {
         $sUrl = parent::_addPageNrParam($sUrl, $iPage, $iLang);
     }
     return $sUrl;
 }