mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 12:41:51 +02:00
Possible fix for sitelogo issue #1133
This commit is contained in:
parent
912a0e6bf1
commit
87d47a5924
@ -141,7 +141,9 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
||||
|
||||
}
|
||||
|
||||
//TODO Parm for resizing the logo image with thumb.php
|
||||
//TODO Parm for resizing the logo image with thumb.php
|
||||
|
||||
$dimensions = array();
|
||||
|
||||
if((isset($parm['w']) || isset($parm['h'])))
|
||||
{
|
||||
@ -149,12 +151,14 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
||||
$dimensions[0] = $parm['w'];
|
||||
$dimensions[1] = $parm['h'];
|
||||
}
|
||||
else
|
||||
elseif(!deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$dimensions = getimagesize($path);
|
||||
}
|
||||
|
||||
$image = "<img class='logo img-responsive' src='".$logo."' style='width: ".$dimensions[0]."px; height: ".$dimensions[1]."px' alt='".SITENAME."' />\n";
|
||||
|
||||
$imageStyle = (empty($dimensions)) ? '' : " style='width: ".$dimensions[0]."px; height: ".$dimensions[1]."px' ";
|
||||
|
||||
$image = "<img class='logo img-responsive' src='".$logo."' ".$imageStyle." alt='".SITENAME."' />\n";
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user