Files
wyczarujprezent.pl/modules/masseditproduct/views/templates/admin/doc_tree.tpl
2024-10-28 22:14:22 +01:00

38 lines
1.5 KiB
Smarty

{*
* 2007-2021 PrestaShop
*
* 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 Goryachev Dmitry <dariusakafest@gmail.com>
* @copyright 2007-2021 Goryachev Dmitry
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if (is_array($tree) && count($tree))}
{foreach from=$tree key=name item=tree_item}
{assign var='format_name' value = str_replace('_', ' ', $name)}
<li>
<a {if !is_array($tree_item)}data-tab="{$tree_item|escape:'quotes':'UTF-8'}" href="#"{/if}>{$format_name|escape:'quotes':'UTF-8'}</a>
{if (is_array($tree_item) && count($tree_item))}
<ul>
{include file="./doc_tree.tpl" tree=$tree_item}
</ul>
{/if}
</li>
{/foreach}
{/if}