{#** * 2007-2019 PrestaShop and Contributors * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 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/OSL-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 https://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *#} {% extends '@PrestaShop/Admin/layout.html.twig' %} {% set layoutTitle = 'Theme & Logo'|trans({}, 'Admin.Navigation.Menu') ~ ' > ' ~ 'Theme'|trans({}, 'Admin.Design.Feature') %} {% set layoutHeaderToolbarBtn = { 'add': { 'href': path('admin_themes_import'), 'desc': 'Add new theme'|trans({}, 'Admin.Design.Feature'), 'icon': 'add' }, 'export': { 'href': path('admin_themes_export_current'), 'desc': 'Export current theme'|trans({}, 'Admin.Design.Feature'), 'icon': 'cloud_download' } } %} {% block content %}
{% if not isSingleShopContext %}

{{ 'You must select a shop from the above list if you wish to choose a theme.'|trans({}, 'Admin.Design.Help') }}

{% endif %} {% if isInstalledRtlLanguage %} {% include '@PrestaShop/Admin/Improve/Design/Theme/Blocks/rtl_configuration.html.twig' %} {% endif %} {{ form_start(shopLogosForm.shop_logos, {'action': path('admin_themes_upload_logos')}) }} {% if not isInstalledRtlLanguage and isSingleShopContext and isMultiShopFeatureUsed %} {% include '@PrestaShop/Admin/Improve/Design/Theme/Blocks/multishop_switch.html.twig' %} {% endif %}
{{ 'Logo'|trans({}, 'Admin.Global') }}
{% include '@PrestaShop/Admin/Improve/Design/Theme/Blocks/logo_configuration.html.twig' %}
{{ form_rest(shopLogosForm.shop_logos) }} {{ form_end(shopLogosForm.shop_logos) }}
{{ 'My theme for %name% shop'|trans({'%name%': shopName}, 'Admin.Design.Feature') }}
{% embed '@PrestaShop/Admin/Improve/Design/Theme/Blocks/Partials/theme_card.html.twig' with { 'themeName': currentlyUsedTheme.name, 'themeVersion': currentlyUsedTheme.get('version'), 'themeAuthor': currentlyUsedTheme.get('author.name'), 'isActive': true } %} {% block image %} {{ currentlyUsedTheme.name }} {% endblock %} {% block button_container %} {% endblock %} {% endembed %} {% if notUsedThemes is not empty %} {% for theme in notUsedThemes %} {% embed '@PrestaShop/Admin/Improve/Design/Theme/Blocks/Partials/theme_card.html.twig' with { 'themeName': theme.name, 'themeVersion': theme.get('version'), 'themeAuthor': theme.get('author.name'), 'isActive': false } %} {% block image %} {{ theme.name }} {% endblock %} {% block button_container %}
{% endblock %} {% endembed %} {% endfor %} {% include '@PrestaShop/Admin/Improve/Design/Theme/Blocks/use_theme_modal.html.twig' %} {% include '@PrestaShop/Admin/Improve/Design/Theme/Blocks/delete_theme_modal.html.twig' %} {% endif %} {% embed '@PrestaShop/Admin/Improve/Design/Theme/Blocks/Partials/theme_catalog_card.html.twig' %} {% block image %} {{ 'Visit the theme catalog'|trans({}, 'Admin.Design.Feature') }} {% endblock %} {% block description %} {{ 'Explore more than a thousand themes'|trans({}, 'Admin.Design.Feature') }} {% endblock %} {% block button_container %} {{ 'Visit the theme catalog'|trans({}, 'Admin.Design.Feature') }} {% endblock %} {% endembed %} {% include '@PrestaShop/Admin/Improve/Design/Theme/Blocks/layouts_configuration.html.twig' %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}