Lines Matching defs:w
238 $originalwidth = $w = (int) tpl_img_getTag('File.Width');
244 if ($w >= $h) {
245 if ($maxwidth && $w >= $maxwidth) {
246 $ratio = $maxwidth / $w;
253 } elseif ($maxwidth && $w > $maxwidth) {
254 $ratio = $maxwidth / $w;
259 $w = floor($ratio * $w);
267 'w' => floor($ratio * $originalwidth),
371 <?php echo iconify('mdi:image-size-select-large'); ?> <?php echo tpl_getLang('preview_size') ?>: <a href="<?php echo ml($IMG, array('cache' => $INPUT->str('cache'), 'rev' => $REV, 'w' => $w, 'h' => $h), true, '&'); ?>"><?php echo $w; ?> × <?php echo $h; ?></a> pixels.
372 <?php echo tpl_getLang('other_resolutions') ?>: <?php foreach ($other_sizes as $size): ?> <a href="<?php echo ml($IMG, array('cache' => $INPUT->str('cache'), 'rev' => $REV, 'w' => $size['w'], 'h' => $size['h']), true, '&'); ?>" title="<?php echo floor($size['ratio'] * 100); ?>%"><?php echo $size['w']; ?> × <?php echo $size['h']; ?></a> pixels <?php endforeach; ?>