function HookLightbox_previewSearchReplacefullscreenpreviewicon()
{
    global $baseurl_short, $ref, $result, $n, $k, $search, $offset, $sort, $order_by, $archive, $lang, $showkeypreview, $value;
    $url = getPreviewURL($result[$n]);
    if ($url === false) {
        return false;
    }
    $showkeypreview = true;
    # Replace the link to add the 'previewlink' ID
    ?>
		<span class="IconPreview"><a id="previewlink<?php 
    echo $ref;
    ?>
" href="<?php 
    echo $baseurl_short;
    ?>
pages/preview.php?from=search&ref=<?php 
    echo urlencode($ref);
    ?>
&ext=<?php 
    echo $result[$n]["preview_extension"];
    ?>
&search=<?php 
    echo urlencode($search);
    ?>
&offset=<?php 
    echo urlencode($offset);
    ?>
&order_by=<?php 
    echo urlencode($order_by);
    ?>
&sort=<?php 
    echo urlencode($sort);
    ?>
&archive=<?php 
    echo urlencode($archive);
    ?>
&k=<?php 
    echo urlencode($k);
    ?>
" title="<?php 
    echo $lang["fullscreenpreview"];
    ?>
"><img src="<?php 
    echo $baseurl_short;
    ?>
gfx/interface/sp.gif" alt="<?php 
    echo $lang["fullscreenpreview"];
    ?>
" width="22" height="12" /></a></span>
	<?php 
    setLink('#previewlink' . $ref, $url, $value);
    return true;
}
function HookLightbox_previewViewRenderaltthumb()
{
    global $baseurl_short, $ref, $resource, $alt_thm, $altfiles, $n, $k, $search, $offset, $sort, $order_by, $archive;
    $url = getPreviewURL($resource, $altfiles[$n]['ref']);
    if ($url === false) {
        return false;
    }
    # Replace the link to add the 'altlink' ID
    ?>
<a id="altlink" href="<?php 
    echo $baseurl_short;
    ?>
pages/preview.php?ref=<?php 
    echo urlencode($ref);
    ?>
&alternative=<?php 
    echo $altfiles[$n]['ref'];
    ?>
&k=<?php 
    echo urlencode($k);
    ?>
&search=<?php 
    echo urlencode($search);
    ?>
&offset=<?php 
    echo urlencode($offset);
    ?>
&order_by=<?php 
    echo urlencode($order_by);
    ?>
&sort=<?php 
    echo urlencode($sort);
    ?>
&archive=<?php 
    echo urlencode($archive);
    ?>
&<?php 
    echo hook("previewextraurl");
    ?>
"><img src="<?php 
    echo $alt_thm;
    ?>
" class="AltThumb"></a><?php 
    setLink('#altlink', $url, $altfiles[$n]['name']);
    return true;
}
function addLightBoxToLink($selector, $url, $title, $rel = 'lightbox')
{
    setLink($selector, $url, $title, $rel);
    addLightBox($selector);
}
Beispiel #4
0
        if ($links['name']) {
            $linkName = $url;
            $spanName = "";
            $image = $image ? "<img src='" . e_IMAGE_ABS . "icons/" . $image . "' alt='' style='vertical-align:middle;' />" : "&middot;";
            $plink = "<div" . (varsettrue($menu_pref['tm_class1']) ? " class='{$menu_pref['tm_class1']}'" : "") . " style='width:100%; cursor: pointer;'>" . $image . " " . setLink($name, $url, $openMethod, $description) . "</div>";
            $text .= varsettrue($menu_pref['tm_spacer']) ? "<div class='spacer'>\n" . $plink . "\n</div>\n" : $plink;
        }
    }
    $c = 0;
    if (array_key_exists("sublink", $links) && $links['name'] != "") {
        $text .= "\n<span style=\"display:none\" id=\"span_" . $spanName . "\">\n";
        foreach ($sublink as $link) {
            extract($link);
            $image = $image ? "<img src='" . e_IMAGE_ABS . "icons/" . $image . "' alt='' style='vertical-align:middle' />  " : "&middot; ";
            $spanName = $parent_name;
            $plink = $image . " " . setLink($name, $url, $openMethod, $description) . "<br />\n";
            $text .= varsettrue($menu_pref['tm_class3']) ? "<span" . (varsettrue($menu_pref['tm_class3']) ? " class='{$menu_pref['tm_class3']}'" : "") . ">" . $plink . "</span>\n\n" : $plink;
        }
        $text .= "</span>\n";
    }
}
function setlink($link_name, $link_url, $link_open, $link_description)
{
    global $tp;
    if (strpos($link_url, '://') === FALSE && strpos($link_url, 'mailto:') !== 0 && !strstr($link_url, "void")) {
        $link_url = SITEURL . $link_url;
    }
    $link_url = $tp->replaceConstants($link_url, $nonrelative = TRUE, $all = false);
    $href = " href='" . $link_url . "'";
    switch ($link_open) {
        case 1: