updated plugin GP Premium
version 2.1.2
This commit is contained in:
parent
2bfae7880a
commit
dee8d18381
@ -1 +1 @@
|
|||||||
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render'), 'version' => '23a4d8b0f7e7ae758a6400ce615c1bfc');
|
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render'), 'version' => '3b04b8f2f126925df9bb349c0dc708ad');
|
@ -8,5 +8,5 @@
|
|||||||
|
|
||||||
.components-generatepress-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold}
|
.components-generatepress-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold}
|
||||||
|
|
||||||
.is-root-container>.wp-block{max-width:var(--gp-block-element-width);margin-left:auto;margin-right:auto}.left-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout,.right-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout{padding:10px}body.left-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout .block-editor-block-list__block,body.right-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout .block-editor-block-list__block{margin-top:0;margin-bottom:0}.gpp-block-element-panel>.components-base-control{margin-bottom:20px}.gpp-block-element-panel .components-notice{margin:0}.gpp-block-element-panel .components-notice .components-notice__content{margin:0}.gpp-element-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gpp-element-panel-label .components-panel__body-toggle.components-button svg.components-panel__icon{margin:0 10px 0 0}button.gpp-block-elements-template-button{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:5px;margin:0 0 10px;padding:5px}button.gpp-block-elements-template-button:hover{border-color:var(--wp-admin-theme-color)}button.gpp-block-elements-template-button .gpp-block-template-label{font-size:13px;color:#888;padding:5px}.element-has-parent #generate_premium_elements{display:none}.gpp-block-element-template-panel{background:#fafafa}.gpp-hook-select .gpp-block-element-search-select{width:100%;position:relative}.gpp-hook-select .components-text-control__input{position:relative;z-index:1;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;background-size:13px 13px}.gpp-hook-select .select-search__select{background:#fff;border:1px solid #ddd}.gpp-hook-select .select-search__options{list-style:none}.gpp-hook-select .select-search__row:not(:first-child){border-top:1px solid #eee}.gpp-hook-select .select-search__row{margin:0}.gpp-hook-select .select-search__option,.gpp-hook-select .select-search__not-found{display:block;height:36px;width:100%;padding:0 16px;background:#fff;border:none;outline:none;text-align:left;cursor:pointer;margin:0}.gpp-hook-select .select-search__option.select-search__is-selected{background:#007cba;color:#fff}.gpp-hook-select .select-search__option.select-search__is-highlighted,.gpp-hook-select .select-search__option:not(.select-search__is-selected):hover{background:#fafafa}.gpp-hook-select .select-search__option.select-search__is-highlighted.select-search__is-selected,.gpp-hook-select .select-search__option.select-search__is-selected:hover{background:#007cba;color:#fff}.gpp-hook-select .select-search__group-header{font-size:10px;text-transform:uppercase;background:#eee;padding:8px 16px}.gpp-hook-select .gpp-block-element-search-select.is-disabled{opacity:0.5}.gpp-hook-select .gpp-block-element-search-select.is-loading .select-search__value::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath fill='%232F2D37' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");background-size:11px}.gpp-hook-select .gpp-block-element-search-select:not(.is-disabled) .select-search__input{cursor:pointer}.gpp-hook-select .gpp-block-element-search-select:not(.select-search--multiple) .select-search__select{position:absolute;z-index:2;top:35px;right:0;left:0;border-radius:3px;overflow:auto;max-height:360px}.gpp-hook-select .select-search__not-found{height:auto;padding:16px;text-align:center;color:#888}
|
.editor-styles-wrapper .is-root-container>.wp-block{max-width:var(--gp-block-element-width);margin-left:auto;margin-right:auto}.left-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout,.right-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout{padding:10px}body.left-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout .block-editor-block-list__block,body.right-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout .block-editor-block-list__block{margin-top:0;margin-bottom:0}.gpp-block-element-panel>.components-base-control{margin-bottom:20px}.gpp-block-element-panel .components-notice{margin:0}.gpp-block-element-panel .components-notice .components-notice__content{margin:0}.gpp-element-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gpp-element-panel-label .components-panel__body-toggle.components-button svg.components-panel__icon{margin:0 10px 0 0}button.gpp-block-elements-template-button{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:5px;margin:0 0 10px;padding:5px}button.gpp-block-elements-template-button:hover{border-color:var(--wp-admin-theme-color)}button.gpp-block-elements-template-button .gpp-block-template-label{font-size:13px;color:#888;padding:5px}.element-has-parent #generate_premium_elements{display:none}.gpp-block-element-template-panel{background:#fafafa}.gpp-hook-select .gpp-block-element-search-select{width:100%;position:relative}.gpp-hook-select .components-text-control__input{position:relative;z-index:1;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;background-size:13px 13px}.gpp-hook-select .select-search__select{background:#fff;border:1px solid #ddd}.gpp-hook-select .select-search__options{list-style:none}.gpp-hook-select .select-search__row:not(:first-child){border-top:1px solid #eee}.gpp-hook-select .select-search__row{margin:0}.gpp-hook-select .select-search__option,.gpp-hook-select .select-search__not-found{display:block;height:36px;width:100%;padding:0 16px;background:#fff;border:none;outline:none;text-align:left;cursor:pointer;margin:0}.gpp-hook-select .select-search__option.select-search__is-selected{background:#007cba;color:#fff}.gpp-hook-select .select-search__option.select-search__is-highlighted,.gpp-hook-select .select-search__option:not(.select-search__is-selected):hover{background:#fafafa}.gpp-hook-select .select-search__option.select-search__is-highlighted.select-search__is-selected,.gpp-hook-select .select-search__option.select-search__is-selected:hover{background:#007cba;color:#fff}.gpp-hook-select .select-search__group-header{font-size:10px;text-transform:uppercase;background:#eee;padding:8px 16px}.gpp-hook-select .gpp-block-element-search-select.is-disabled{opacity:0.5}.gpp-hook-select .gpp-block-element-search-select.is-loading .select-search__value::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath fill='%232F2D37' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");background-size:11px}.gpp-hook-select .gpp-block-element-search-select:not(.is-disabled) .select-search__input{cursor:pointer}.gpp-hook-select .gpp-block-element-search-select:not(.select-search--multiple) .select-search__select{position:absolute;z-index:2;top:35px;right:0;left:0;border-radius:3px;overflow:auto;max-height:360px}.gpp-hook-select .select-search__not-found{height:auto;padding:16px;text-align:center;color:#888}
|
||||||
|
|
||||||
|
@ -1315,7 +1315,7 @@ class GeneratePress_Block_Elements {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( 'post-meta' === $link_type ) {
|
if ( 'post-meta' === $link_type ) {
|
||||||
if ( ! empty( $block['attrs']['gpDynamicLinkCustomField'] ) ) {
|
if ( ! empty( $settings['gpDynamicLinkCustomField'] ) ) {
|
||||||
$custom_field = get_post_meta( $id, $settings['gpDynamicLinkCustomField'], true );
|
$custom_field = get_post_meta( $id, $settings['gpDynamicLinkCustomField'], true );
|
||||||
|
|
||||||
if ( $custom_field ) {
|
if ( $custom_field ) {
|
||||||
|
@ -356,7 +356,7 @@ class GeneratePress_Site_Layout {
|
|||||||
$admin_css = '';
|
$admin_css = '';
|
||||||
|
|
||||||
if ( 'full-width' === $this->content_area ) {
|
if ( 'full-width' === $this->content_area ) {
|
||||||
$admin_css .= 'body .wp-block{max-width: 100%}';
|
$admin_css .= 'html .editor-styles-wrapper .wp-block{max-width: 100%}';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $this->content_area ) {
|
if ( $this->content_area ) {
|
||||||
@ -368,11 +368,11 @@ class GeneratePress_Site_Layout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $this->content_width ) {
|
if ( $this->content_width ) {
|
||||||
$admin_css .= 'body .wp-block{max-width: ' . absint( $this->content_width ) . 'px;}';
|
$admin_css .= 'html .editor-styles-wrapper .wp-block{max-width: ' . absint( $this->content_width ) . 'px;}';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $admin_css ) {
|
if ( $admin_css ) {
|
||||||
wp_add_inline_style( 'generate-block-editor-styles', $admin_css );
|
wp_add_inline_style( 'wp-edit-blocks', $admin_css );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* Plugin Name: GP Premium
|
* Plugin Name: GP Premium
|
||||||
* Plugin URI: https://generatepress.com
|
* Plugin URI: https://generatepress.com
|
||||||
* Description: The entire collection of GeneratePress premium modules.
|
* Description: The entire collection of GeneratePress premium modules.
|
||||||
* Version: 2.1.1
|
* Version: 2.1.2
|
||||||
* Requires at least: 5.2
|
* Requires at least: 5.2
|
||||||
* Requires PHP: 5.6
|
* Requires PHP: 5.6
|
||||||
* Author: Tom Usborne
|
* Author: Tom Usborne
|
||||||
@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||||||
exit; // Exit if accessed directly.
|
exit; // Exit if accessed directly.
|
||||||
}
|
}
|
||||||
|
|
||||||
define( 'GP_PREMIUM_VERSION', '2.1.1' );
|
define( 'GP_PREMIUM_VERSION', '2.1.2' );
|
||||||
define( 'GP_PREMIUM_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
define( 'GP_PREMIUM_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
||||||
define( 'GP_PREMIUM_DIR_URL', plugin_dir_url( __FILE__ ) );
|
define( 'GP_PREMIUM_DIR_URL', plugin_dir_url( __FILE__ ) );
|
||||||
define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' );
|
define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' );
|
||||||
|
@ -304,7 +304,7 @@ class GeneratePress_Pro_Dashboard {
|
|||||||
if ( in_array( $current_screen->id, $dashboard_pages ) ) {
|
if ( in_array( $current_screen->id, $dashboard_pages ) ) {
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
'generate-pro-dashboard',
|
'generate-pro-dashboard',
|
||||||
GP_PREMIUM_DIR_URL . '/dist/style-dashboard.css',
|
GP_PREMIUM_DIR_URL . 'dist/style-dashboard.css',
|
||||||
array( 'wp-components' ),
|
array( 'wp-components' ),
|
||||||
GP_PREMIUM_VERSION
|
GP_PREMIUM_VERSION
|
||||||
);
|
);
|
||||||
@ -312,7 +312,7 @@ class GeneratePress_Pro_Dashboard {
|
|||||||
if ( 'appearance_page_generate-options' === $current_screen->id ) {
|
if ( 'appearance_page_generate-options' === $current_screen->id ) {
|
||||||
wp_enqueue_script(
|
wp_enqueue_script(
|
||||||
'generate-pro-dashboard',
|
'generate-pro-dashboard',
|
||||||
GP_PREMIUM_DIR_URL . '/dist/dashboard.js',
|
GP_PREMIUM_DIR_URL . 'dist/dashboard.js',
|
||||||
array(),
|
array(),
|
||||||
GP_PREMIUM_VERSION,
|
GP_PREMIUM_VERSION,
|
||||||
true
|
true
|
||||||
|
@ -110,6 +110,10 @@ function generate_premium_control_inline_scripts() {
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ( function_exists( 'wp_set_script_translations' ) ) {
|
||||||
|
wp_set_script_translations( 'generate-pro-customizer-controls', 'gp-premium' );
|
||||||
|
}
|
||||||
|
|
||||||
wp_localize_script(
|
wp_localize_script(
|
||||||
'generate-pro-customizer-controls',
|
'generate-pro-customizer-controls',
|
||||||
'gpCustomizerControls',
|
'gpCustomizerControls',
|
||||||
|
@ -3,9 +3,9 @@ Contributors: edge22
|
|||||||
Donate link: https://generatepress.com
|
Donate link: https://generatepress.com
|
||||||
Tags: generatepress
|
Tags: generatepress
|
||||||
Requires at least: 5.2
|
Requires at least: 5.2
|
||||||
Tested up to: 5.8.1
|
Tested up to: 5.9
|
||||||
Requires PHP: 5.6
|
Requires PHP: 5.6
|
||||||
Stable tag: 2.1.1
|
Stable tag: 2.1.2
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
@ -27,6 +27,12 @@ In most cases, #1 will work fine and is way easier.
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 2.1.2 =
|
||||||
|
* Elements: Fix custom field value in dynamic container links
|
||||||
|
* Elements: Fix block widths in the editor
|
||||||
|
* General: Fix double slashes in dashboard file request
|
||||||
|
* General: Fix missing Customizer translations
|
||||||
|
|
||||||
= 2.1.1 =
|
= 2.1.1 =
|
||||||
* Menu Plus: Fix mobile header sticky auto hide
|
* Menu Plus: Fix mobile header sticky auto hide
|
||||||
* Site Library: Fix broken CSS variables on import
|
* Site Library: Fix broken CSS variables on import
|
||||||
|
Loading…
Reference in New Issue
Block a user