1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-27 08:14:46 +02:00

SEF URL supported for theme images (within media-manager) added. LOGO resizing is now on by default when pref is used.

This commit is contained in:
Cameron
2016-02-06 19:33:23 -08:00
parent 0e2c7ad2e7
commit ed1078d625
3 changed files with 13 additions and 2 deletions

View File

@@ -153,9 +153,14 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
if((isset($parm['w']) || isset($parm['h'])))
{
// $logo = $tp->thumbUrl($logopref,"w=".$parm['h']);
//
$dimensions[0] = $parm['w'];
$dimensions[1] = $parm['h'];
$dimensions[1] = $parm['h'];
if(empty($parm['noresize']) && !empty($logopref)) // resize by default - avoiding large files.
{
$logo = $tp->thumbUrl($logopref,$parm);
}
}
elseif(!deftrue('BOOTSTRAP'))
{