update
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{*
|
||||
* 2020 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* 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 Anvanto (anvantoco@gmail.com)
|
||||
* @copyright 2020 anvanto.com
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
var PS_ALLOW_ACCENTED_CHARS_URL = {$PS_ALLOW_ACCENTED_CHARS_URL|escape:'html':'UTF-8'};
|
||||
var anblog_del_img_txt = "{$anblog_del_img_txt|escape:'html':'UTF-8'}";
|
||||
var anblog_del_img_mess = "{$anblog_del_img_mess|escape:'html':'UTF-8'}";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
select#shops {
|
||||
width: 75% !important;
|
||||
}
|
||||
</style>
|
||||
54
modules/anblog/views/templates/admin/prerender/tree.tpl
Normal file
54
modules/anblog/views/templates/admin/prerender/tree.tpl
Normal file
@@ -0,0 +1,54 @@
|
||||
{*
|
||||
* 2020 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* 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 Anvanto (anvantoco@gmail.com)
|
||||
* @copyright 2020 anvanto.com
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{function name=printList}
|
||||
<ol class="level{$level|escape:'htmlall':'UTF-8'} {if $level == 1}sortable{/if}" >
|
||||
{foreach $items as $item}
|
||||
<li id="list_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}" class="{if $item['id_anblogcat'] == $selected}selected{/if}">
|
||||
<div>
|
||||
<span class="disclose">
|
||||
<span>
|
||||
</span>
|
||||
</span>
|
||||
{$item['title']|escape:'htmlall':'UTF-8'}
|
||||
(ID:{$item['id_anblogcat']|escape:'htmlall':'UTF-8'})
|
||||
<span class="quickedit" rel="id_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}">E</span>
|
||||
<span class="quickdel" rel="id_{$item['id_anblogcat']|escape:'htmlall':'UTF-8'}">D</span>
|
||||
</div>
|
||||
{if isset($item['children'])}
|
||||
{assign var=level value=$level+1}
|
||||
{call name=printList level=$level items=$item['children']}
|
||||
{else}
|
||||
{assign var=level value=$level-1}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{/function}
|
||||
|
||||
{call name=printList level=1 items=$tree}
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
{*
|
||||
* 2020 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* 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 Anvanto (anvantoco@gmail.com)
|
||||
* @copyright 2020 anvanto.com
|
||||
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{function name=printList}
|
||||
<ol class="level{$level|escape:'htmlall'} {if $level == 1}sortable{/if}" >
|
||||
{foreach $items as $item}
|
||||
<li id="list_{$item['id_anblogcat']|escape:'htmlall'}">
|
||||
<div>
|
||||
<input type="checkbox"
|
||||
value="{$item['randkey']|escape:'htmlall'}" name="chk_cat[]" id="chk-{$item['id_anblogcat']|escape:'htmlall'}" {if in_array($current_item,$select)}checked="checked"{/if}/>
|
||||
<label for="chk-'.$menu['id_anblogcat'].'">{if isset($item['title'])}{$item['title']|escape:'htmlall'}{/if} { (ID:{$item['id_anblogcat']|escape:'htmlall'})</label>';
|
||||
<span class="quickedit" rel="id_{$item['id_anblogcat']|escape:'htmlall'}">E</span>
|
||||
<span class="quickdel" rel="id_{$item['id_anblogcat']|escape:'htmlall'}">D</span>
|
||||
</div>
|
||||
{if isset($item['children'])}
|
||||
{assign var=level value=$level+1}
|
||||
{call name=printList level=$level items=$item['children']}
|
||||
{else}
|
||||
{assign var=level value=$level-1}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{/function}
|
||||
|
||||
{call name=printList level=1 items=$tree}
|
||||
Reference in New Issue
Block a user