mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +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:
@@ -63,6 +63,7 @@
|
|||||||
ReWriteRule ^media\/img\/(a)?([\d]*)x(a)?([\d]*)\/(.*)?$ thumb.php?src=e_MEDIA_IMAGE/$5&$1w=$2&$3h=$4 [NC,L]
|
ReWriteRule ^media\/img\/(a)?([\d]*)x(a)?([\d]*)\/(.*)?$ thumb.php?src=e_MEDIA_IMAGE/$5&$1w=$2&$3h=$4 [NC,L]
|
||||||
ReWriteRule ^media\/avatar\/(a)?([\d]*)x(a)?([\d]*)\/(.*)?$ thumb.php?src=e_AVATAR/$5&$1w=$2&$3h=$4 [NC,L]
|
ReWriteRule ^media\/avatar\/(a)?([\d]*)x(a)?([\d]*)\/(.*)?$ thumb.php?src=e_AVATAR/$5&$1w=$2&$3h=$4 [NC,L]
|
||||||
RewriteRule ^media\/img\/([-A-Za-z0-9+/]*={0,3})\.(jpg|gif|png)?$ thumb.php?id=$1 [NC,L]
|
RewriteRule ^media\/img\/([-A-Za-z0-9+/]*={0,3})\.(jpg|gif|png)?$ thumb.php?id=$1 [NC,L]
|
||||||
|
ReWriteRule ^theme\/img\/(a)?([\d]*)x(a)?([\d]*)\/(.*)?$ thumb.php?src=e_THEME/$5&$1w=$2&$3h=$4 [NC,L]
|
||||||
|
|
||||||
### send 404 on missing files in these folders
|
### send 404 on missing files in these folders
|
||||||
RewriteCond %{REQUEST_URI} !^/(e107_images|e107_files)/
|
RewriteCond %{REQUEST_URI} !^/(e107_images|e107_files)/
|
||||||
|
@@ -2314,6 +2314,11 @@ class e_parse extends e_parser
|
|||||||
$sefPath = 'media/avatar/';
|
$sefPath = 'media/avatar/';
|
||||||
$clean = array('{e_AVATAR}','e_AVATAR/');
|
$clean = array('{e_AVATAR}','e_AVATAR/');
|
||||||
}
|
}
|
||||||
|
elseif(strstr($url, 'e_THEME')) // theme folder images.
|
||||||
|
{
|
||||||
|
$sefPath = 'theme/img/';
|
||||||
|
$clean = array('{e_THEME}','e_THEME/');
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@@ -153,9 +153,14 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
|||||||
|
|
||||||
if((isset($parm['w']) || isset($parm['h'])))
|
if((isset($parm['w']) || isset($parm['h'])))
|
||||||
{
|
{
|
||||||
// $logo = $tp->thumbUrl($logopref,"w=".$parm['h']);
|
//
|
||||||
$dimensions[0] = $parm['w'];
|
$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'))
|
elseif(!deftrue('BOOTSTRAP'))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user