-
Notifications
You must be signed in to change notification settings - Fork 10
Home
WordPress Theme Framework is a collection of object-oriented code base to build more effective and modern-structured WordPress themes. These framework allows you to convert your WordPress theme into a better organized theme, following Model-View concept.
Our mini framework features:
- Better organized templates system.
- Easy Post Types or Taxonomies registration.
- Base Model, Postmeta, Termmeta class.
- Advanced Theme registration class.
- Easy creation of Admin options pages.
- Ajax load more component
- Supports numerous plugins:
- WooCommerce
- Autoptimize, WP Super Cache (easy customization of scripts optimization)
- Contact Form 7 (auto save all requests to DB)
- Just Custom Fields
- Just TinyMce Custom Styles
- Just Responsive Images
We didn't added "Controllers" level, because WordPress has it's own routing system and replacing it with one more level will impact the site speed. So basically it's very close to standard WordPress theme with much better organization of custom logic parts, custom queries etc.
You can now place all templates under "views" folder with section-by-section break down.
Search your templates easily under page
, post
, search
folders. Or create new folder
for your new Custom Post type and place all your templates there.
Modern layouts system, taken from Laravel and Yii PHP Frameworks. Under views
folder you can have
different nested layouts
to keep header and footer in the same place. All repeatable wrappers
from section templates can be moved just as a new layout.
The template system is patched with standard WordPress hooks, which were added in version 4.7.
We support all WordPress standard template hierarchy. Our patch just adds /views/{section}
prefix to the list of available templates.
Use our base Post_Type
or Taxonomy
class to register your own Post Types or Taxonomies.
It has more intuitive options; built-in support for redirects, if you don't need a single page.
A lot of registered constants simplify the development, because your IDE will help you to set correct supports values, post statuses or order by values in WP_Query.
Base Model class has wrappers for WP_Query, which works correctly with Custom Archives of Custom Post Types. Standard custom archives doesn't have pagination, if you want to print them manually.
These helpers will help you to write mo clean code and get postmeta / termmeta from ACF fields or Just Custom Fields.
Nice organized Theme registration class, which has a lot of hooks to patch standard WordPress installation with better security and SEO optimizations.
Built in wrapper for Titan Framework to rapidly build Admin option pages
You can find theme build example here: https://github.com/justcoded/wordpress-theme-boilerplate.
Next: