예제 #1
0
	/**
	 * returns the forum category url
	 *
	 * @return null|string
	 */
	public function url()
	{
		if ( ! $this->_category ) {
			return null;
		}

		return $this->_category->getUrl();
	}
예제 #2
0
 /**
  * @param   KunenaForumCategory $category
  * @param   null                $content
  * @param   null                $title
  * @param   null                $class
  *
  * @return mixed
  */
 public function getCategoryLink(KunenaForumCategory $category, $content = null, $title = null, $class = null)
 {
     KUNENA_PROFILER ? KunenaProfiler::instance()->start('function ' . __CLASS__ . '::' . __FUNCTION__ . '()') : null;
     if (!$content) {
         $content = $this->escape($category->name);
     }
     if ($title === null) {
         $title = JText::sprintf('COM_KUNENA_VIEW_CATEGORY_LIST_CATEGORY_TITLE', $this->escape($category->name));
     }
     $link = JHtml::_('kunenaforum.link', $category->getUrl(), $content, $title, $class, 'follow');
     KUNENA_PROFILER ? KunenaProfiler::instance()->stop('function ' . __CLASS__ . '::' . __FUNCTION__ . '()') : null;
     return $link;
 }