kermage/themeplate 问题修复 & 功能扩展

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

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

kermage/themeplate

Composer 安装命令:

composer require kermage/themeplate

包简介

A toolkit to handle everything related in developing a full-featured WordPress theme.

README 文档

README

"A toolkit to handle everything related in developing a full-featured WordPress site"

  • Add meta boxes to posts, terms, users, and menu items
  • Register custom post types and custom taxonomies
  • Create options pages and add custom admin columns
  • Frontend markup cleaner with a clean navwalker

Features

  • Fully compatible with the new block editor: Gutenberg
  • Work similarly to native WordPress function/methods
  • Look seamlessly beautiful to WordPress pages/panels
  • Easy, simple, and straightforward as much as possible

Getting Started

1. Install the toolkit

  • As a theme required plugin: Refer here
  • As a must-use plugin: Refer here

2. Add to theme's functions.php or plugin's main php file

if ( class_exists( 'ThemePlate' ) ) :
	ThemePlate( array(
		'title' => 'Project Name',
		'key'   => 'project_prefix'
	) );
	require_once 'post-types.php';
	require_once 'settings.php';
	require_once 'meta-boxes.php';
endif;
  • Initialize with an array consisting of a title and a key to be used as:
    • page and menu title in the pre-created options page
    • prefix to the registered option names and in every meta key
  • Require files containing the definition of ThemePlate-d items

3. Define items to be ThemePlate-d

  • ThemePlate()->post_type( $args );
  • ThemePlate()->taxonomy( $args );
  • ThemePlate()->settings( $args );
  • ThemePlate()->post_meta( $args );
  • ThemePlate()->term_meta( $args );
  • ThemePlate()->user_meta( $args );
  • ThemePlate()->menu_meta( $args );
  • ThemePlate()->page( $args );
  • ThemePlate()->column( $args );

See the Wiki section

Yeoman Generator

Check generator-themeplate to kickstart a ThemePlate powered WP site.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2020-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固