定制 justcoded/wordpress-theme-boilerplate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

justcoded/wordpress-theme-boilerplate

最新稳定版本:3.1.2

Composer 安装命令:

composer require justcoded/wordpress-theme-boilerplate

包简介

WordPress theme boilerplate with better code structure and OOP support.

README 文档

README

This package contains Theme Boilerplate, which has a lot of improvements and security patches, according to standard WordPress theme boilerplates (like underscore, etc.). The code is object-oriented and works with PSR-4 autoload.

Requirements

Theme core files (base classes) are presented as separate wordpress plugin package called WordPress Theme Framework. They were moved as a plugin to provide easier support and updates population through different site installations.

This solution makes possible to deliver new updates and hot fixes without modifying the theme code.

What's Inside?

Better File Structure

The organization of a theme is very similar to modern PHP Frameworks. We totally separated registration of hooks and components, query logic, and the templates.

We tried to keep as much standard WordPress features as possible, so all "views" work in the same Template Hierarchy as standard templates, just grouped by content types (with folders).

File structure

Template Inheritance

We added modern template inheritance system based on layouts (very similar to Laravel and Yii frameworks). Some WordPress developers call it a "Theme Wrapper". Markup is handled by one layout file (or more if needed) instead of being scattered across all template files as in typical themes. Stay DRY!

Security and Optimization

Theme files are nice and clean, and Theme Framework has a lot of hooks to make your WordPress more secure and keep the final generated HTML clean and optimized.

Documentation

Read our Wiki to find out all features.

统计信息

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

GitHub 信息

  • Stars: 56
  • Watchers: 5
  • Forks: 18
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-21