定制 level-level/clarkson-core 二次开发

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

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

level-level/clarkson-core

最新稳定版本:1.8.1

Composer 安装命令:

composer require level-level/clarkson-core

包简介

A plugin to write Object-Oriented code in combination with the Twig templating engine while keeping the WordPress Way of working in mind.

README 文档

README

Test

Clarkson Core

A plugin to write Object-Oriented code in combination with the Twig templating engine while keeping the WordPress Way of working in mind.

⚠️ Maintenance Mode Only

This project is no longer receiving new features. It will only receive maintenance releases for PHP and WordPress compatibility updates as needed. If you're looking for active development, please consider alternatives (such as Timber) or feel free to fork this project.

Documentation and getting started

Check out the getting started with Clarkson Core guide if you are just getting to know the project.

Overview

Installation

composer require level-level/clarkson-Core

or read the installation guide.

Template Hierachy

Uses the internal Template Hierarchy so you can replace index.php with index.twig or archive-company.php with archive-company.twig and still have all Posts or CPT's available in "The Loop".

{% extends "layouts/full-width.twig" %}

{% block content %}
    {% for object in objects %}
        {% include 'partials/teaser.twig' %}
    {% endfor %}
{% endblock %}

Autoloading of WordPress-object classes per Custom Post Type.

It autoloads default objects that behave just like WP_Post and other native WordPress object but with some more handy stuff. When you register a Custom Post Type ll_company your custom class ll_company gets loaded in the Twig context as objects variable within the archive-company.twig.

Read up on Clarkson objects and how they are initiated.

More documentation

Tests

Currently

  1. Clone repository git@github.com:level-level/Clarkson-Core.git clarkson-core.
  2. Run composer install in the new clarkson-core directory.
  3. Run composer run test.

统计信息

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

GitHub 信息

  • Stars: 24
  • Watchers: 11
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2017-10-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固