pub suite

This commit is contained in:
Thibault GUILLAUME 2015-10-21 17:10:46 +02:00
parent 55b81b8b31
commit 0bd753b38f
5 changed files with 34 additions and 11 deletions

View File

@ -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');
}
}
?>

View File

@ -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'),

View File

@ -147,7 +147,9 @@
</div>
</div>
<div class="col-md-4">
<div style="padding: 20px; background:#f1f1f1; margin-bottom:30px;" class="pub"></div>
<div class="pub">
{hook h='displayPubliciteRight'}
</div>
{if $child_categories}
<div class="list_categories">

View File

@ -61,8 +61,9 @@
{/foreach}
</div>
</div>
<div class="col-md-4">
<div class="pub" style="padding: 20px; background:#f1f1f1; margin-bottom:30px; margin-top:30px">
<div class="col-md-4">
<div class="pub">
{hook h='displayHomeRight1'}
</div>
<div class="post_home_right">
<div class="post_home_top">
@ -71,6 +72,9 @@
{/foreach}
</div>
</div>
<div class="pub">
{hook h='displayHomeRight2'}
</div>
</div>
</div>

View File

@ -146,12 +146,15 @@
</div>
</article>
<aside class="col-md-4">
<div style="padding: 20px; background:#f1f1f1; margin-bottom:30px;" class="pub"></div>
<div class="pub">
{hook h='displayPubliciteRight'}
</div>
{hook h='displayleftPostCms' id_cmspost={$post->id} mod='blocknewsletter'}
<div id="stack_right">
<div class="hidden-sm hidden-xs">
{hook h='displayleftPostCms' id_cmspost={$post->id} mod='cms_pack'}
{hook h='displayleftPostCms' id_cmspost={$post->id} mod='cms_pack'}
</div>
{*
@ -175,7 +178,7 @@
{foreach from=$all_articles item=article key=key}
<li><a href="{$link->getPostCmsLink($article->id)}" title="{$article->title}">{$article->title}</a></li>
{/foreach}
</ul>
</ul>
</div>
</div>
{/if}
@ -189,16 +192,14 @@
{/foreach}
</ul>
</div>
{/if}
{/if}
</div>
</aside>
</section>
</section>
</div>
</section>
<div class="container">
<div class="row">
<div class="col-md-12 selection_bottom">
{hook h='displayBottomProductCms' id_cmspost={$post->id}}