项目作者: KristianH

项目描述 :
Oxid eShop Admin Theme Manager
高级语言: PHP
项目地址: git://github.com/KristianH/admin-theme-manager.git
创建时间: 2019-02-14T08:57:58Z
项目社区:https://github.com/KristianH/admin-theme-manager

开源协议:GNU General Public License v3.0

下载


admin-theme-manager

Oxid eShop Admin Theme Manager for Oxid eShop V6

This repository contains a Oxid Eshop module to manage admin themes.
The admin theme management base on shop theme management.

functions

  • new admin menu item to manage admin themes
  • extends shop classes:
    • \OxidEsales\Eshop\Core\Config
    • \OxidEsales\Eshop\Core\Language
    • \OxidEsales\Eshop\Application\Controller\Admin\NavigationTree
  • de/activate stand-alone admin themes
  • managing child themes

how to install

composer require khvt/admin-theme-manager

how to create a admin theme

  1. create the theme folder in source/Application/views/{themeId}/
  2. create the configuration file in source/Application/views/{themeId}/adminTheme.php
  3. fill the adminTheme.php file with the theme parameters:
    1. <?php
    2. $themeParameter = [
    3. 'id' => 'admin_child',
    4. 'title' => 'Oxid Child Admin',
    5. 'description' => 'This is OXID eShop\'s inofficial admin theme.',
    6. 'thumbnail' => 'theme.png',
    7. 'version' => '1',
    8. 'parentTheme' => 'admin',
    9. 'author' => '<a href="http://www.oxid-esales.com" title="OXID eSales AG">OXID eSales AG</a>',
    10. 'parentVersions' => array('1'),
    11. 'settings' => array(
    12. array(
    13. 'group' => 'images',
    14. 'name' => 'aDetailImageSizes',
    15. 'type' => 'aarr',
    16. 'value' => array(
    17. 'oxpic1' => '540*340',
    18. 'oxpic2' => '540*340',
    19. 'oxpic3' => '540*340',
    20. 'oxpic4' => '540*340',
    21. 'oxpic5' => '540*340',
    22. 'oxpic6' => '540*340',
    23. 'oxpic7' => '540*340',
    24. 'oxpic8' => '540*340',
    25. 'oxpic9' => '540*340',
    26. 'oxpic10' => '540*340',
    27. 'oxpic11' => '540*340',
    28. 'oxpic12' => '540*340',
    29. ),
    30. ),
    31. ),
    32. ];
  4. create the theme folder in source/out/{themeId}
  5. create your required subfolders in source/Application/views/{themeId}/ (de, en, tpl, for example) and fill it with content :-)