Files
BACHIR SOULDI 2794e62571 first commit
2025-09-28 08:49:37 +01:00

32 lines
1.5 KiB
Smarty

{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
-->*}
{strip}
<div class="banner-container">
<div class="row-fluid"></div>
<div class="banner">
<ul class="bxslider">
{foreach $PROMOTIONS as $PROMOTION}
<li>
{assign var=SUMMARY value=$PROMOTION->get('summary')}
{assign var=EXTENSION_NAME value=$PROMOTION->get('label')}
{if is_numeric($SUMMARY)}
{assign var=LOCATION_URL value=$PROMOTION->getLocationUrl($SUMMARY, $EXTENSION_NAME)}
{else}
{assign var=LOCATION_URL value={$SUMMARY}}
{/if}
<a onclick="window.open('{$LOCATION_URL}')"><img src="{if $PROMOTION->get('bannerURL')}{$PROMOTION->get('bannerURL')}{/if}" title="{$PROMOTION->get('label')}" /></a>
</li>
{/foreach}
</ul>
</div>
</div>
{/strip}