/** * Returns HTML for any value hyperlinked with the post's URL. * * @param string $link_text * @param array $args * * @return string */ function get_link($link_text, $args = array()) { $model = $this->model(); $url = $model->url(); return WPLib::get_link($url, $link_text, $args); }
/** * Returns an HTML <a> link * * Convenience function so designers don't need to worry about WPLib:: vs. $theme->. * * @param string $href * @param string $link_text * @param array $args * @return string */ function get_link($href, $link_text, $args = array()) { return WPLib::get_link($href, $link_text, $args); }
/** * Return the site name as configured. * * @param array $args * @return string */ function site_name_link($args = array()) { $args = wp_parse_args($args, array('rel' => 'home')); return WPLib::get_link($this->site_url(), $this->site_name(), $args); }