function theme_external_link($url, $content = null)
{
    if (!$content) {
        return "<a class='item-blog-link' href='" . long_url($url) . "' target='_blank'>" . $url . "</a>";
    } else {
        return "<a class='item-blog-link' href='{$url}' target='_blank'>{$content}</a>";
    }
}
Example #2
0
function theme_external_link($url, $content = null)
{
    //Long URL functionality.  Also uncomment function long_url($shortURL)
    if (!$content) {
        //Used to wordwrap long URLs
        //return "<a href='$url' target='_blank'>". wordwrap(long_url($url), 64, "\n", true) ."</a>";
        return "<a href='{$url}' target='_blank'>" . long_url($url) . "</a>";
    } else {
        return "<a href='{$url}' target='_blank'>{$content}</a>";
    }
}
Example #3
0
function theme_external_link($url, $content = null)
{
    //Long URL functionality.  Also uncomment function long_url($shortURL)
    if (setting_fetch('longurl') == 'yes' && LONG_URL == 'ON') {
        $lurl = long_url($url);
    } else {
        $lurl = $url;
    }
    if (!$content) {
        //Used to wordwrap long URLs
        //return "<a href='$url' target='_blank'>". wordwrap(long_url($url), 64, "\n", true) ."</a>";
        $atext = link_trans($lurl);
        return "<a href='{$lurl}' rel='external nofollow noreferrer'>{$atext}</a>";
    } else {
        return "<a href='{$lurl}' rel='external nofollow noreferrer'>{$content}</a>";
    }
}