Esempio n. 1
0
 /**
  * Generate a valid display link for the Blog
  *
  * @param	object	PostId of the item to use
  * @param	array	Not used
  * @return	object	Fully formatted html link for use by Liberty
  */
 function getDisplayLink($pTitle = NULL, $pMixed = NULL, $pAnchor = NULL)
 {
     global $gBitSystem;
     $pTitle = trim($pTitle);
     if (empty($pMixed) && !empty($this)) {
         $pMixed = $this->mInfo;
     }
     if (empty($pTitle)) {
         $pTitle = FisheyeImage::getTitleFromHash($pMixed);
     }
     $ret = $pTitle;
     if ($gBitSystem->isPackageActive('fisheye')) {
         $ret = '<a title="' . $pTitle . '" href="' . FisheyeImage::getDisplayUrlFromHash($pMixed) . '">' . $pTitle . '</a>';
     }
     return $ret;
 }