khvt/admin-theme-manager

此包已被废弃且不再维护。未建议替代包。

Oxid eShop V6 管理员主题管理器

安装: 22

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 3

开放问题: 0

类型:oxideshop-module

1.0.1 2019-05-08 08:08 UTC

This package is auto-updated.

Last update: 2022-05-08 16:08:06 UTC


README

Oxid eShop V6 管理员主题管理器

此仓库包含一个Oxid Eshop模块,用于管理管理员主题。管理员主题管理基于商店主题管理。

函数

  • 新增管理员菜单项以管理管理员主题
  • 扩展商店类
    • \OxidEsales\Eshop\Core\Config
    • \OxidEsales\Eshop\Core\Language
    • \OxidEsales\Eshop\Application\Controller\Admin\NavigationTree
  • 启用/禁用独立管理员主题
  • 管理子主题

如何安装

composer require khvt/admin-theme-manager

如何创建管理员主题

  1. 在源代码目录下创建主题文件夹 Application/views/{themeId}/
  2. 在源代码目录下创建配置文件 Application/views/{themeId}/adminTheme.php
  3. 在adminTheme.php文件中填写主题参数
<?php
$themeParameter = [
    'id'          => 'admin_child',
    'title'       => 'Oxid Child Admin',
    'description' => 'This is OXID eShop\'s inofficial admin theme.',
    'thumbnail'   => 'theme.png',
    'version'     => '1',
    'parentTheme' => 'admin',
    'author'      => '<a href="http://www.oxid-esales.com" title="OXID eSales AG">OXID eSales AG</a>',
    'parentVersions' => array('1'),
    'settings'       => array(
        array(
            'group' => 'images',
            'name'  => 'aDetailImageSizes',
            'type'  => 'aarr',
            'value' => array(
                'oxpic1'  => '540*340',
                'oxpic2'  => '540*340',
                'oxpic3'  => '540*340',
                'oxpic4'  => '540*340',
                'oxpic5'  => '540*340',
                'oxpic6'  => '540*340',
                'oxpic7'  => '540*340',
                'oxpic8'  => '540*340',
                'oxpic9'  => '540*340',
                'oxpic10' => '540*340',
                'oxpic11' => '540*340',
                'oxpic12' => '540*340',
            ),
        ),
    ),
];
  1. 在源代码目录下创建主题文件夹 source/out/{themeId}
  2. source/Application/views/{themeId}/ 中创建所需的子文件夹(例如 de, en, tpl)并填充内容:-)