From 0bd753b38f63afded5b1b87210de357bde78a21a Mon Sep 17 00:00:00 2001 From: Thibault GUILLAUME Date: Wed, 21 Oct 2015 17:10:46 +0200 Subject: [PATCH] pub suite --- modules/blockadshooks/blockadshooks.php | 16 ++++++++++++++++ modules/blockadshooks/classes/Publication.php | 2 +- themes/toutpratique/categorycms.tpl | 4 +++- themes/toutpratique/index.tpl | 8 ++++++-- themes/toutpratique/postcms.tpl | 15 ++++++++------- 5 files changed, 34 insertions(+), 11 deletions(-) diff --git a/modules/blockadshooks/blockadshooks.php b/modules/blockadshooks/blockadshooks.php index 09bca01e..3c6bb708 100644 --- a/modules/blockadshooks/blockadshooks.php +++ b/modules/blockadshooks/blockadshooks.php @@ -196,5 +196,21 @@ class Blockadshooks extends Module return $this->runByHook('displayPubliciteTop'); } + public function hookDisplayHomeRight1($params) + { + return $this->runByHook('displayHomeRight1'); + } + + public function hookDisplayHomeRight2($params) + { + return $this->runByHook('displayHomeRight2'); + } + + public function hookDisplayPubliciteRight($params) + { + return $this->runByHook('displayPubliciteRight'); + } + + } ?> \ No newline at end of file diff --git a/modules/blockadshooks/classes/Publication.php b/modules/blockadshooks/classes/Publication.php index ee41ad66..173a02f4 100644 --- a/modules/blockadshooks/classes/Publication.php +++ b/modules/blockadshooks/classes/Publication.php @@ -27,7 +27,7 @@ class Publication extends ObjectModel 'id_block_ads' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), - 'content' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isAnything'), + 'content' => array('type' => self::TYPE_NOTHING, 'lang' => true, 'validate' => 'isAnything'), 'date_from' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'), 'date_to' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'), 'active' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), diff --git a/themes/toutpratique/categorycms.tpl b/themes/toutpratique/categorycms.tpl index 80c7586f..c57e1c03 100644 --- a/themes/toutpratique/categorycms.tpl +++ b/themes/toutpratique/categorycms.tpl @@ -147,7 +147,9 @@
-
+
+ {hook h='displayPubliciteRight'} +
{if $child_categories}
diff --git a/themes/toutpratique/index.tpl b/themes/toutpratique/index.tpl index 573f3bcd..0963bb3e 100644 --- a/themes/toutpratique/index.tpl +++ b/themes/toutpratique/index.tpl @@ -61,8 +61,9 @@ {/foreach}
-
-
+
+
+ {hook h='displayHomeRight1'}
@@ -71,6 +72,9 @@ {/foreach}
+
+ {hook h='displayHomeRight2'} +
diff --git a/themes/toutpratique/postcms.tpl b/themes/toutpratique/postcms.tpl index 50106909..5c2efda3 100644 --- a/themes/toutpratique/postcms.tpl +++ b/themes/toutpratique/postcms.tpl @@ -146,12 +146,15 @@
- + -
-
{hook h='displayBottomProductCms' id_cmspost={$post->id}}