public function link($link, $text=null, $title=null, $popup=false, $class=null) {
		if (is_null($text)) {
			// if no text is given, we use the text originally provided by the user
			$text = $link;
		}

		// deal with internal and (slightly) malformed links
		$link = $this->getLink($link);

		$attributes = $this->getHtmlAttributes(array(
			'title'=>$title,
			'target'=>$this->isTrue($popup)?"blank":null,
			'class'=>$class
		));

		return "<a href='$link'$attributes>$text</a>";
	}
public function link($link, $text=null, $title=null, $popup=false, $class=null) {
		if (is_null($text)) {
			// if no text is given, we use the text originally provided by the user
			$text = $link;
		}

		// deal with internal and (slightly) malformed links
		$link = $this->getLink($link);

		$attributes = $this->getHtmlAttributes(array(
			'title'=>$title,
			'target'=>$this->isTrue($popup)?"blank":null,
			'class'=>$class
		));

		return "<a href='$link'$attributes>$text</a>";
	}
public function link ( $ link , $ text = null , $ title = null , $ popup = false , $ class = null ) { if ( is_null ( $ text ) ) { // if no text is given, we use the text originally provided by the user $ text = $ link ; } // deal with internal and (slightly) malformed links $ link = $ this -> getLink ( $ link ) ; $ attributes = $ this -> getHtmlAttributes ( array ( 'title' => $ title , 'target' => $ this -> isTrue ( $ popup ) ? "blank" : null , 'class' => $ class ) ) ; return "<a href='$link'$attributes>$text</a>" ; }
Implements the 'link' snippet
Implements the link snippet