Searched refs:maxwidth (Results 1 – 2 of 2) sorted by last modified time
1153 * @param int $maxwidth - maximal width of the image1159 function tpl_img($maxwidth = 0, $maxheight = 0, $link = true, $params = null)1171 if ($maxwidth && $w >= $maxwidth) {1172 $ratio = $maxwidth / $w;1178 } elseif ($maxwidth && $w > $maxwidth) {1179 $ratio = $maxwidth / $w;1106 tpl_img($maxwidth = 0, $maxheight = 0, $link = true, $params = null) global() argument
475 * @param int $maxwidth479 function getResizeRatio($maxwidth,$maxheight=0){480 if(!$maxheight) $maxheight = $maxwidth;487 if($w >= $maxwidth){488 $ratio = $maxwidth/$w;495 }elseif($w > $maxwidth){496 $ratio = $maxwidth/$w;476 getResizeRatio($maxwidth, $maxheight = 0) global() argument