コード例 #1
0
 /**
  * @param null|array $html_attributes
  * @return string
  */
 public function getLink($html_attributes = null)
 {
     $tag = new TagHelper();
     return $tag->link($this->object->name, $this->getUrl(), $html_attributes);
 }
コード例 #2
0
 /**
  * Gets an anchor tag with the post permalink as a href.
  * @param null|array $attr
  * @return string
  * @api
  */
 public function getLink($attr = null)
 {
     $tag = new TagHelper();
     return $tag->link($this->getTitle(), $this->getUrl(), $attr);
 }