20
modules/an_banners/views/templates/front/banners.tpl
Normal file
20
modules/an_banners/views/templates/front/banners.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
{if count($banners) > 0}
|
||||
<div class="row{if isset($class)} {$class|escape:'htmlall':'UTF-8'}{/if}">
|
||||
{foreach from=$banners item=banner}
|
||||
{include file=$banner.tplFilePath}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
24
modules/an_banners/views/templates/front/banners/default.tpl
Normal file
24
modules/an_banners/views/templates/front/banners/default.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
<div{if $banner.col != 'div'} class="an_homeproducts-banner {if $banner.imgUrlFile != ''}an_homeproducts-banner-overlay{else}an_homeproducts-banner-noimg{/if} col-sm-{$banner.col|intval}"{/if}>
|
||||
{if $banner.imgUrlFile !=''}
|
||||
<img src="{$banner.imgUrlFile}"/>
|
||||
{/if}
|
||||
<div class="an_homeproducts-banner-content">
|
||||
<p class="an_homeproducts-banner-title h1 {if $banner.text != ''}an_homeproducts-banner-title-margin{/if}">{$banner.title|escape:'htmlall':'UTF-8'}</p>
|
||||
{$banner.text nofilter}
|
||||
</div>
|
||||
{if $banner.link !=''}
|
||||
<a href="{$banner.link|escape:'htmlall':'UTF-8'}" class="an_homeproducts-banner-link"></a>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
{*
|
||||
* 2022 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2022 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
<div{if $banner.col != 'div'} class="col-sm-{$banner.col|intval}"{/if}>
|
||||
{if $banner.link !=''}
|
||||
<a href="{$banner.link|escape:'htmlall':'UTF-8'}" class="an_homeproducts-banner-link">
|
||||
{/if}
|
||||
{if $banner.imgUrlFile !=''}
|
||||
<img src="{$banner.imgUrlFile}"/>
|
||||
{/if}
|
||||
<div>
|
||||
<p class="h2">{$banner.title|escape:'htmlall':'UTF-8'}</p>
|
||||
{$banner.text nofilter}
|
||||
</div>
|
||||
{if $banner.link !=''}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
0
modules/an_banners/views/templates/front/index.php
Normal file
0
modules/an_banners/views/templates/front/index.php
Normal file
Reference in New Issue
Block a user