mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Possible fix for sitelogo issue #1133
This commit is contained in:
@@ -143,18 +143,22 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
|
||||
|
||||
//TODO Parm for resizing the logo image with thumb.php
|
||||
|
||||
$dimensions = array();
|
||||
|
||||
if((isset($parm['w']) || isset($parm['h'])))
|
||||
{
|
||||
// $logo = $tp->thumbUrl($logopref,"w=".$parm['h']);
|
||||
$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";
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user