first commit
This commit is contained in:
32
layouts/vlayout/modules/ExtensionStore/Promotions.tpl
Normal file
32
layouts/vlayout/modules/ExtensionStore/Promotions.tpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{*<!--
|
||||
/*********************************************************************************
|
||||
** 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}
|
||||
Reference in New Issue
Block a user