Community Forums 

Main Content

Re:php question

    Feb 02 2014 15:03:35

    #1

    Alive & Well

    Join date : 2008-10-01      Posts : 122

    I found this near the bottom of the original php file. Would this be what is overridden by what I posted above?


    // IMAGE 1 LINKS TO ITEM PAGE
    if (!function_exists("var_imglink"))
    {
    function var_imglink($varsmimage, $varmultilink, $varitem, $varalt, $varclass)
    {
    global $URL, $imgwidth, $imgheight;
    if (!empty($varsmimage))
    {
    $dispimglink = "<a href=\"$varmultilink\">";
    if (substr($varsmimage, 0, 7) == "http://")
    $imgname = "$varsmimage";
    else
    $imgname = "$URL/$varsmimage";
    $dispimglink .= "<img src=\"$imgname\" class=\"$varclass\" alt=\"$varalt\" title=\"$varitem\" ";
    if ($imgwidth > 0 OR $imgheight > 0)
    {
    $dispimglink .= "style=\"";
    if ($imgwidth > 0)
    $dispimglink .= "width: " .$imgwidth ."px; ";
    if ($imgheight > 0)
    $dispimglink .= "height: " .$imgheight ."px; ";
    $dispimglink .= "\"";
    }
    $dispimglink .= "border=\"0\"></a><br>";
    }
    return $dispimglink;
    }
    }