[-] BO : #PSCFV-1786 : fix size logo for PDF invoice
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15192 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -47,13 +47,18 @@ abstract class HTMLTemplateCore
|
|||||||
if (Validate::isLoadedObject($this->shop))
|
if (Validate::isLoadedObject($this->shop))
|
||||||
$shop_name = $this->shop->name;
|
$shop_name = $this->shop->name;
|
||||||
|
|
||||||
|
$path_logo = $this->getLogo();
|
||||||
|
list($width, $height) = getimagesize(_PS_BASE_URL_.$path_logo);
|
||||||
|
|
||||||
$this->smarty->assign(array(
|
$this->smarty->assign(array(
|
||||||
'logo_path' => $this->getLogo(),
|
'logo_path' => $path_logo,
|
||||||
'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,
|
'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,
|
||||||
'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
|
'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
|
||||||
'title' => $this->title,
|
'title' => $this->title,
|
||||||
'date' => $this->date,
|
'date' => $this->date,
|
||||||
'shop_name' => $shop_name
|
'shop_name' => $shop_name,
|
||||||
|
'width_logo' => $width,
|
||||||
|
'height_logo' => $height
|
||||||
));
|
));
|
||||||
|
|
||||||
return $this->smarty->fetch($this->getTemplate('header'));
|
return $this->smarty->fetch($this->getTemplate('header'));
|
||||||
|
|||||||
+3
-3
@@ -26,9 +26,9 @@
|
|||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 50%">
|
<td style="width: 50%">
|
||||||
{if $logo_path}
|
{if $logo_path}
|
||||||
<img src="{$logo_path}" />
|
<img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" />
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
<td style="width: 50%; text-align: right;">
|
<td style="width: 50%; text-align: right;">
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
|
|||||||
Reference in New Issue
Block a user