[+] BO: modifiy width and height configuration for the mobile logo
This commit is contained in:
@@ -408,6 +408,12 @@ class AdminThemesControllerCore extends AdminController
|
|||||||
Configuration::updateValue('SHOP_LOGO_HEIGHT', (int)round($height));
|
Configuration::updateValue('SHOP_LOGO_HEIGHT', (int)round($height));
|
||||||
Configuration::updateValue('SHOP_LOGO_WIDTH', (int)round($width));
|
Configuration::updateValue('SHOP_LOGO_WIDTH', (int)round($width));
|
||||||
}
|
}
|
||||||
|
if (file_exists(_PS_IMG_DIR_.'logo_mobile.jpg'))
|
||||||
|
{
|
||||||
|
list($width, $height, $type, $attr) = getimagesize(_PS_IMG_DIR_.Configuration::get('PS_LOGO_MOBILE'));
|
||||||
|
Configuration::updateValue('SHOP_LOGO_MOBILE_HEIGHT', (int)round($height));
|
||||||
|
Configuration::updateValue('SHOP_LOGO_MOBILE_WIDTH', (int)round($width));
|
||||||
|
}
|
||||||
|
|
||||||
$this->content .= $content;
|
$this->content .= $content;
|
||||||
return parent::initContent();
|
return parent::initContent();
|
||||||
|
|||||||
Reference in New Issue
Block a user