updated plugin GP Premium version 2.5.0

This commit is contained in:
2024-10-09 12:44:25 +00:00
committed by Gitium
parent 627ec103fe
commit a35dc419bc
45 changed files with 2109 additions and 52 deletions

View File

@ -46,9 +46,9 @@ td.generate-element-row-content {
width: 75%;
}
#generate_premium_elements .handlediv,
#generate_premium_elements .hndle,
#generate_premium_elements .postbox-header {
.metabox-holder #generate_premium_elements .handlediv,
.metabox-holder #generate_premium_elements .hndle,
.metabox-holder #generate_premium_elements .postbox-header {
display: none;
}
@ -140,6 +140,10 @@ ul.element-metabox-tabs {
overflow: hidden;
}
.edit-post-layout__metaboxes ul.element-metabox-tabs {
margin: 0;
}
ul.element-metabox-tabs li {
width: auto;
flex: none;

View File

@ -112,7 +112,7 @@ class GeneratePress_Elements_Helper {
public static function should_execute_php() {
$php = true;
if ( defined( 'DISALLOW_FILE_EDIT' ) ) {
if ( defined( 'DISALLOW_FILE_EDIT' ) && true === DISALLOW_FILE_EDIT ) {
$php = false;
}

View File

@ -216,7 +216,7 @@ class GeneratePress_Elements_Metabox {
*/
public function register_metabox() {
// Title not translated on purpose.
add_meta_box( 'generate_premium_elements', 'Element', array( $this, 'element_fields' ), 'gp_elements', 'normal', 'high' );
add_meta_box( 'generate_premium_elements', __( 'Display Rules', 'gp-premium' ), array( $this, 'element_fields' ), 'gp_elements', 'normal', 'high' );
add_meta_box( 'generate_page_hero_template_tags', __( 'Template Tags', 'gp-premium' ), array( $this, 'template_tags' ), 'gp_elements', 'side', 'low' );
remove_meta_box( 'slugdiv', 'gp_elements', 'normal' );
}
@ -279,7 +279,7 @@ class GeneratePress_Elements_Metabox {
<li data-type="hook" <?php echo ( 'hook' === $type || 'block' === $type ) ? 'class="is-selected" ' : ''; ?>data-tab="hook-settings">
<a href="#">
<?php echo 'block' === $type ? esc_attr__( 'Display Rules', 'gp-premium' ) : esc_attr__( 'Settings', 'gp-premium' ); ?>
<?php echo 'block' === $type ? esc_attr__( 'Rules', 'gp-premium' ) : esc_attr__( 'Settings', 'gp-premium' ); ?>
</a>
</li>

View File

@ -93,6 +93,7 @@ function generate_elements_dashboard_tab( $tabs ) {
'name' => __( 'Elements', 'gp-premium' ),
'url' => admin_url( 'edit.php?post_type=gp_elements' ),
'class' => 'edit-gp_elements' === $screen->id ? 'active' : '',
'id' => 'gp-elements-tab',
);
return $tabs;