Example #1
0
 /**
  * Retrieves the external permalink for this blog post
  *
  * @since	4.0
  * @access	public
  * @param	string
  * @return
  */
 public function getExternalPermalink($format = null)
 {
     $link = EBR::getRoutedURL('index.php?option=com_easyblog&view=categories&layout=listings&id=' . $this->id, false, true, true);
     $link = EBR::appendFormatToQueryString($link, $format);
     return $link;
 }
Example #2
0
 /**
  * Retrieves the permalink for this blog post
  *
  * @since	4.0
  * @access	public
  * @param	bool
  * @return	string
  */
 public function getPermalink($xhtml = true, $external = false, $format = null)
 {
     if ($external) {
         $url = $this->getExternalPermalink();
     } else {
         $url = EBR::_('index.php?option=com_easyblog&view=entry&id=' . $this->id, $xhtml);
     }
     $url = EBR::appendFormatToQueryString($url, $format);
     return $url;
 }