1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 11:04:18 +02:00

Banner width may now be set on a per-menu basis.

This commit is contained in:
Cameron
2016-03-12 00:15:29 -08:00
parent 85f67aa084
commit 09923ad54b
5 changed files with 19 additions and 8 deletions

View File

@@ -2444,6 +2444,11 @@ class e_parse extends e_parser
$width = (!empty($parm['w'])) ? ($parm['w'] * 3) : ($this->thumbWidth * 3);
$height = (!empty($parm['h'])) ? ($parm['h'] * 3) : ($this->thumbHeight * 3);
}
elseif($width == '4x')
{
$width = (!empty($parm['w'])) ? ($parm['w'] * 4) : ($this->thumbWidth * 4);
$height = (!empty($parm['h'])) ? ($parm['h'] * 4) : ($this->thumbHeight * 4);
}
else
{
$height = (($this->thumbHeight * $width) / $this->thumbWidth);
@@ -3672,7 +3677,7 @@ class e_parser
$path = $tp->thumbUrl($file);
$srcSetParm = $parm;
$srcSetParm['size'] = '2x';
$srcSetParm['size'] = ($parm['w'] < 100) ? '4x' : '2x';
$parm['srcset'] = $tp->thumbSrcSet($file, $srcSetParm);
}