tj-digital/zeus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tj-digital/zeus

最新稳定版本:v1.4.0

Composer 安装命令:

composer require tj-digital/zeus

包简介

Zeus Bundle

README 文档

README

Contains any useful components

To use this within your application, create your own Kernel class extending the one in this package, then in your _construct function add parent::__construct(); this will then register all the base classes found in Zeus.

The Zeus Kernel class constructor accepts an array of configuration options for the various modules that the base class sets up and manages, called in the registerClasses method. This allows for individual module configuration, as well as a top level option to disable all custom actions/filters called within each module.

The purpose of this additional level of configuration is to allow project specific customisation and reduce conflicts where existing methods may override new actions/filters when called in a custom theme.

Below is the full list of available configuration options (available within the Kernel class file ):

private $moduleConfigs = [
    'gravityforms' => [
        'disabled' => false,
        'enableStyling' => true,
        'pushToGTM' => true,
        'populateCustomFields' => true,
    ],
    'acf' => [
        'disabled' => false,
        'hideAdmin' => true,
        'settingsPage' => true,
        'allowedBlocks' => true
    ],
    'dashboard' => [
        'disabled' => false,
        'disableWidgets' => true,
        'disableComments' => true,
        'removeAdminColumns' => true,
    ],
    'duplicate' => [
        'disabled' => false,
    ],
    'manifest' => [
        'disabled' => false,
    ],
    'optimsewp' => [
        'disabled' => false,
        'disableJquery' => true,
        'disableScripts' => true,
        'disableEmojis' => true,
        'disableHeadLinks' => true,
        'disableRestAPI' => true,
        'disableAdminBar' => true,
    ],
    'tinymce' => [
        'disabled' => false,
    ],
    'twig' => [
        'disabled' => false,
    ],
    'yoast' => [
        'disabled' => false,
        'disableAdminFilters' => true,
        'disableOptimisations' => true,
    ]
];

To use a customised configuration in your theme's extended Kernel, implement as below:

use NanoSoup\Zeus\Kernel as KernelBase;

class Kernel extends KernelBase
{
    public function __construct()
    {
        $kernelModuleConfig = [
            'acf' => [
                'addSettingsPage' => false,
                // Add as many of the configuration options above as required
                // ensuring you place options under the correct array key module name
            ]
        ];
        parent::__construct($kernelModuleConfig);

        $this->registerClasses();
    }
}

统计信息

  • 总下载量: 1.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固