first commit
This commit is contained in:
34
modules/ps_imageslider/views/templates/hook/index.php
Normal file
34
modules/ps_imageslider/views/templates/hook/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
76
modules/ps_imageslider/views/templates/hook/list.tpl
Normal file
76
modules/ps_imageslider/views/templates/hook/list.tpl
Normal file
@@ -0,0 +1,76 @@
|
||||
{*
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="panel"><h3><i class="icon-list-ul"></i> {l s='Slides list' d='Modules.Imageslider.Admin'}
|
||||
<span class="panel-heading-action">
|
||||
<a id="desc-product-new" class="list-toolbar-btn" href="{$link->getAdminLink('AdminModules')}&configure=ps_imageslider&addSlide=1">
|
||||
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Add new' d='Admin.Actions'}" data-html="true">
|
||||
<i class="process-icon-new "></i>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
</h3>
|
||||
<div id="slidesContent">
|
||||
<div id="slides">
|
||||
{foreach from=$slides item=slide}
|
||||
<div id="slides_{$slide.id_slide}" class="panel">
|
||||
<div class="row">
|
||||
<div class="col-lg-1">
|
||||
<span><i class="icon-arrows "></i></span>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<img src="{$image_baseurl}{$slide.image}" alt="{$slide.title}" class="img-thumbnail" />
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<h4 class="pull-left">
|
||||
#{$slide.id_slide} - {$slide.title}
|
||||
{if $slide.is_shared}
|
||||
<div>
|
||||
<span class="label color_field pull-left" style="background-color:#108510;color:white;margin-top:5px;">
|
||||
{l s='Shared slide' d='Modules.Imageslider.Admin'}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
</h4>
|
||||
<div class="btn-group-action pull-right">
|
||||
{$slide.status}
|
||||
|
||||
<a class="btn btn-default"
|
||||
href="{$link->getAdminLink('AdminModules')}&configure=ps_imageslider&id_slide={$slide.id_slide}">
|
||||
<i class="icon-edit"></i>
|
||||
{l s='Edit' d='Admin.Actions'}
|
||||
</a>
|
||||
<a class="btn btn-default"
|
||||
href="{$link->getAdminLink('AdminModules')}&configure=ps_imageslider&delete_id_slide={$slide.id_slide}">
|
||||
<i class="icon-trash"></i>
|
||||
{l s='Delete' d='Admin.Actions'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
44
modules/ps_imageslider/views/templates/hook/slider.tpl
Normal file
44
modules/ps_imageslider/views/templates/hook/slider.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
{*
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $homeslider.slides}
|
||||
<div class="homeslider-container" data-interval="{$homeslider.speed}" data-wrap="{$homeslider.wrap}" data-pause="{$homeslider.pause}">
|
||||
<ul class="rslides">
|
||||
{foreach from=$homeslider.slides item=slide}
|
||||
<li class="slide">
|
||||
<a href="{$slide.url}">
|
||||
<img src="{$slide.image_url}" alt="{$slide.legend|escape}" />
|
||||
{if $slide.title || $slide.description }
|
||||
<span class="caption">
|
||||
<h2>{$slide.title}</h2>
|
||||
<div>{$slide.description nofilter}</div>
|
||||
</span>
|
||||
{/if}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user