greenpeace/planet4-gpch-plugin-blocks 问题修复 & 功能扩展

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

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

greenpeace/planet4-gpch-plugin-blocks

最新稳定版本:v1.41

Composer 安装命令:

composer require greenpeace/planet4-gpch-plugin-blocks

包简介

Provides Planet4 content blocks specific to Greenpeace Switzerland

README 文档

README

Content Blocks, specific to the GPCH installation of Planet4.

Install

Install dependencies:

npm install --save-dev

composer install --ignore-platform-reqs

Coding Standards

Any new code added is required to implement Wordpress coding standards

Javascript: Use JSHint

Set JSHint to use .jshintrc provided in this repository.

Example for PHPStorm:

  • Settings -> Languages & Frameworks -> Javascript -> Code Quality Tools -> JSHint
  • ☑ Enable
  • ☑ Use config files
  • Location: ☑ Default

Build

Make sure your files are formatted correctly: npm run format

Make sure your files pass ESLint with the provided config: npm run lint:js

Build files for production: npm run build

Build styles: sass assets/css/source/style.scss assets/css/style.css --style=compressed

Autoloader

To generate autoload files, run composer dump-autoload

Translations

  1. Generate .pot files: Use wp-cli or PoEdit. PoEdit is the preferred option as it reads strings from all files including Twig templates.
  2. Create the .po and .mo files for each language using Poedit
  3. Transform the po files into additional JSON for use with Javascript.

See the guide in dev docs

Example: wp i18n make-json planet4-gpch-plugin-blocks-de_CH.po --no-purge

Then rename the files to use the handle instead of the auto generated md5 string in the filename.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固