/**
 * @deprecated
 * @since version 1.4.6
 */
function printLink($url, $text, $title = NULL, $class = NULL, $id = NULL)
{
    deprecated_functions::notify(gettext('use printLinkHTML()'));
    echo getLinkHTML($url, $text, $title, $class, $id);
}
Exemple #2
0
/**
 * General link printing function
 * @param string $url The link URL
 * @param string $text The text to go with the link
 * @param string $title Text for the title tag
 * @param string $class optional class
 * @param string $id optional id
 */
function printLinkHTML($url, $text, $title = NULL, $class = NULL, $id = NULL)
{
    echo getLinkHTML($url, $text, $title, $class, $id);
}
Exemple #3
0
/**
 * Prints a link to the author
 *
 * @param string $title URL title tag
 * @param string $class optional class tag
 * @param string $id optional id tag
 */
function getCommentAuthorLink($title = NULL, $class = NULL, $id = NULL)
{
    global $_zp_current_comment;
    $name = $_zp_current_comment['name'];
    if ($_zp_current_comment['anon']) {
        $site = NULL;
    } else {
        $site = $_zp_current_comment['website'];
    }
    if (empty($site)) {
        return html_encode($_zp_current_comment['name']);
    } else {
        if (is_null($title)) {
            $title = "Visit " . $name;
        }
        return getLinkHTML($site, $_zp_current_comment['name'], $title, $class, $id);
    }
}