Beispiel #1
0
function swfaddress_title($title)
{
    if (!is_msie()) {
        $names = swfaddress_path_names();
        for ($i = 0; $i < count($names); $i++) {
            $title .= ' / ' . strtoupper(substr($names[$i], 0, 1)) . substr($names[$i], 1);
        }
    }
    echo $title;
}
Beispiel #2
0
function swfaddress_social($link)
{
    global $swfaddress_value;
    $names = swfaddress_path_names();
    $title = '';
    for ($i = 0; $i < count($names); $i++) {
        $title .= ' / ' . strtoupper(substr($names[$i], 0, 1)) . substr($names[$i], 1);
    }
    $link = str_replace('$url', strtolower(array_shift(explode('/', $_SERVER['SERVER_PROTOCOL']))) . '://' . $_SERVER['SERVER_NAME'] . swfaddress_base() . $swfaddress_value, $link);
    $link = str_replace('$title', $title, $link);
    $link = str_replace(' ', '%20', $link);
    echo $link . '" onclick="SWFAddress.href(this.href); this.blur(); return false;';
}