Skip to content
Snippets Groups Projects

Fixes #494, #496 - Updated banner ui in dashboard page

Merged Satish requested to merge satish.dvnk/vtigercrm:v7 into master
+ 268
186
Compare changes
  • Side-by-side
  • Inline
Files
{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
* ("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}
{foreach $HEADER_SCRIPTS as $SCRIPT}
<script type="{$SCRIPT->getType()}" src="{$SCRIPT->getSrc()}" />
{/foreach}
<div class="banner-container" style="border-bottom: 1px solid #ffffff;box-sizing: border-box;">
<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>
{foreach $HEADER_SCRIPTS as $SCRIPT}
<script type="{$SCRIPT->getType()}" src="{$SCRIPT->getSrc()}" />
{/foreach}
<div class="banner-container" style="margin: 0px 10px;">
<div class="row"></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}
\ No newline at end of file
Loading