Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Feat: Footer Banners
Browse files Browse the repository at this point in the history
  • Loading branch information
luciobenini committed Dec 10, 2020
1 parent 47687d4 commit 0858757
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pitticatrovaprezzi.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct()
{
$this->name = 'pitticatrovaprezzi';
$this->tab = 'front_office_features';
$this->version = '1.0.0';
$this->version = '1.1.0';
$this->author = 'Pittica';
$this->need_instance = 1;
$this->bootstrap = 1;
Expand All @@ -46,7 +46,7 @@ public function install()
reset($carriers);
Configuration::updateValue('PITTICA_TROVAPREZZI_CARRIER', !empty($carriers[0]['id_carrier']) ? (int) $carriers[0]['id_carrier'] : -1);

return parent::install() && $this->installTab();
return parent::install() && $this->installTab() && $this->registerHook('displayFooterAfter');
}

public function uninstall()
Expand Down Expand Up @@ -178,9 +178,9 @@ protected function renderForm()
return $helper->generateForm($fields_form);
}

public function hookDisplayCustomerAccount($params)
public function hookDisplayFooterAfter($params)
{
return $this->display(__FILE__, 'displayCustomerAccount.tpl');
return $this->display(__FILE__, 'displayFooterAfter.tpl');
}

public function getFilePath()
Expand Down
11 changes: 11 additions & 0 deletions views/templates/hook/displayFooterAfter.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{**
* 2020 Pittica S.r.l.s.
*
* @author Lucio Benini <[email protected]>
* @copyright 2020 Pittica S.r.l.s.
* @license http://opensource.org/licenses/LGPL-3.0 The GNU Lesser General Public License, version 3.0 ( LGPL-3.0 )
*}
<div class="col-lg-6 col-md-12 col-sm-12">
<img src="https://l1.trovaprezzi.it/buttons/recommendedby/it/tp_badge_partner_150_50.png" style="border:0px" alt="Presente su TrovaPrezzi" />
<img src="https://l1.trovaprezzi.it/buttons/recommendedby/it/presente_su_shoppydoo_120_60_1_bianco.png" style="border:0px" alt="Presente su ShoppyDoo" />
</div>

0 comments on commit 0858757

Please sign in to comment.