Releases: justcoded/wordpress-theme-framework
Update code style standards
Updated code style standards according to latest WP Code sniffer 0.14.1
Page Builder autocomplete fields
- Page Builder extension clean up for new fields added in 2.6-2.7 versions of SiteOrigin Page Builder
- Posts search/selector based on Select2
- Terms search/selector based on Select2
Usage example:
'posts' => array(
'type' => 'select-posts',
'post_types' => 'page,employee',
'label' => __( 'Posts', 'boilerplate' ),
),
'terms' => array(
'type' => 'select-terms',
'taxonomies' => 'category',
'label' => __( 'Terms', 'boilerplate' ),
),
FakerPress Supports
Now you can set patterns for your custom fields data in Post Type definition classes. They will be used with FakerPress plugin to quickly generate dummy data to present a good looking website before posting a production content.
New View, Postmeta, Termmeta components
- Added Singleton pattern trait to be used in all classes which should be defined only once
- Updated single-feature classes to use Singleton trait.
- View component is totally rebuilt and now implements Theme Wrapper technique. To wrap a template you need to call
$this->extends('..view name...');
at the beginning of your view file - View
render()
method is renamed asinclude()
method, this is more logical - Removed custom fields getters from model class (because of misunderstanding inside the code when used it). Created new classes Postmeta, Termmeta with similar features. To get some custom field you will need to write something like this:
$fields = new Postmeta(); echo $fields->my_field;
Remove unnecessary rewrite rules
Remove rewrite rules for "cms" folder from base Theme class
Refactored namespaces and class names
As a part of https://github.com/justcoded/wordpress-starter refactoring namespaces and class names, new version and new package name
Load More component hot fix
- Prevent multi-click load
- Hide load more button on last page
Page Builder widgets preview hotfix
Fixed missing css and js for widget preview modal
Ability to set preview images for widgets based on SiteOrigin Widgets Bundle.
Standard feature of SiteOrigin Widgets Bundle is a preview button.
By default it tries to load widget content as it shown on frontend. However we can have big troubles with styles etc.
So we decide to add preview as screenshots with captions.
PageBuilder v2.5.10 Notices hotfix
For some reason Page Builder call render twice till the page loads. Since Layout classes already loaded to memory row/cell/col counters are not reset in this case.
We added one more hook, which is called on render start. It resets these counters to prevent Notices about missing cells.