updated plugin GP Premium
version 1.11.2
This commit is contained in:
@ -33,7 +33,6 @@ body {
|
||||
}
|
||||
.generate_sections_control .section {
|
||||
border: 1px solid #DFDFDF;
|
||||
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
||||
margin: 6px 0px 8px;
|
||||
overflow: hidden;
|
||||
@ -184,8 +183,6 @@ input#custom_id {
|
||||
.top-padding input,
|
||||
.bottom-padding input {
|
||||
width: 100%;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@ -194,6 +191,10 @@ input#custom_id {
|
||||
margin-top: 15px !important;
|
||||
}
|
||||
|
||||
#generate-sections-modal-dialog .media-frame-title .dashicons-arrow-down {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.gs-grid-container {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
@ -246,8 +247,6 @@ input#custom_id {
|
||||
.gs-grid-25,
|
||||
.gs-grid-20,
|
||||
.gs-grid-12 {
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
@ -326,8 +325,6 @@ textarea.no-rich-edit {
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=meta.css.map */
|
||||
|
||||
.wp-picker-container .wp-color-result.button {
|
||||
height: 24px;
|
||||
margin: 0 6px 6px 0px;
|
||||
|
@ -16,10 +16,7 @@
|
||||
border-radius: 30px;
|
||||
background: #ddd;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
|
||||
-webkit-transition: all .2s ease-in-out;
|
||||
-ms-transition: all .2s ease-in-out;
|
||||
cursor: pointer;
|
||||
transition: all .2s ease-in-out;
|
||||
}
|
||||
.lcs_cursor {
|
||||
@ -31,10 +28,7 @@
|
||||
border-radius: 100%;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.1);
|
||||
z-index: 10;
|
||||
|
||||
-webkit-transition: all .2s linear;
|
||||
-ms-transition: all .2s linear;
|
||||
z-index: 10;
|
||||
transition: all .2s linear;
|
||||
}
|
||||
.lcs_label {
|
||||
@ -49,10 +43,7 @@
|
||||
top: 5px;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
opacity: 0;
|
||||
|
||||
-webkit-transition: all .2s ease-in-out .1s;
|
||||
-ms-transition: all .2s ease-in-out .1s;
|
||||
opacity: 0;
|
||||
transition: all .2s ease-in-out .1s;
|
||||
}
|
||||
.lcs_label.lcs_label_on {
|
||||
|
@ -13,7 +13,7 @@
|
||||
// Variable for some backgrounds ( grid )
|
||||
var image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==',
|
||||
// html stuff for wpColorPicker copy of the original color-picker.js
|
||||
_before = '<button type="button" class="button wp-color-result" aria-expanded="false" style="position:relative;"><span class="wp-color-result-text">' + wpColorPickerL10n.pick + '</span></button>',
|
||||
_before = '<button type="button" class="button wp-color-result" aria-expanded="false" style="position:relative;"><span class="wp-color-result-text">' + gpSectionsColorPickerL10n.pick + '</span></button>',
|
||||
_after = '<div class="wp-picker-holder" />',
|
||||
_wrap = '<div class="wp-picker-container" />',
|
||||
_button = '<input type="button" class="button button-small" />',
|
||||
@ -63,14 +63,14 @@
|
||||
// Set up HTML structure, hide things
|
||||
el.addClass( 'wp-color-picker' ).wrap( _wrap );
|
||||
self.wrap = el.parent();
|
||||
self.toggler = $( _before ).insertBefore( el ).css( { backgroundColor : self.initialValue } ).attr( 'title', wpColorPickerL10n.pick ).attr( 'data-current', wpColorPickerL10n.current );
|
||||
self.toggler = $( _before ).insertBefore( el ).css( { backgroundColor : self.initialValue } ).attr( 'title', gpSectionsColorPickerL10n.pick ).attr( 'data-current', gpSectionsColorPickerL10n.current );
|
||||
self.pickerContainer = $( _after ).insertAfter( el );
|
||||
self.button = $( _button );
|
||||
|
||||
if ( self.options.defaultColor ) {
|
||||
self.button.addClass( 'wp-picker-default' ).val( wpColorPickerL10n.defaultString );
|
||||
self.button.addClass( 'wp-picker-default' ).val( gpSectionsColorPickerL10n.defaultString );
|
||||
} else {
|
||||
self.button.addClass( 'wp-picker-clear' ).val( wpColorPickerL10n.clear );
|
||||
self.button.addClass( 'wp-picker-clear' ).val( gpSectionsColorPickerL10n.clear );
|
||||
}
|
||||
|
||||
el.wrap( '<span class="wp-picker-input-wrap hidden" />' ).after( self.button );
|
||||
@ -83,7 +83,7 @@
|
||||
palettes : self.options.palettes,
|
||||
change : function( event, ui ) {
|
||||
if ( self.options.alpha ) {
|
||||
self.toggler.css( { 'background-image' : 'url(' + image + ')' } ).html( '<span class="wp-color-result-text" style="position:relative;z-index:1;">' + wpColorPickerL10n.pick + '</span><span />' );
|
||||
self.toggler.css( { 'background-image' : 'url(' + image + ')' } ).html( '<span class="wp-color-result-text" style="position:relative;z-index:1;">' + gpSectionsColorPickerL10n.pick + '</span><span />' );
|
||||
self.toggler.find( 'span' ).last().css( {
|
||||
'width' : '100%',
|
||||
'height' : '100%',
|
||||
@ -337,4 +337,4 @@
|
||||
// Auto Call plugin is class is color-picker
|
||||
jQuery( document ).ready( function( $ ) {
|
||||
$( '.color-picker' ).wpColorPicker();
|
||||
} );
|
||||
} );
|
||||
|
@ -174,6 +174,19 @@ if ( ! function_exists( 'generate_sections_metabox_scripts' ) ) {
|
||||
wp_enqueue_style( 'wp-color-picker' );
|
||||
wp_enqueue_script( 'wp-color-picker-alpha', plugin_dir_url( __FILE__ ) . 'js/wp-color-picker-alpha.min.js', array( 'wp-color-picker' ), GENERATE_SECTIONS_VERSION );
|
||||
|
||||
wp_localize_script(
|
||||
'wp-color-picker-alpha',
|
||||
'gpSectionsColorPickerL10n',
|
||||
array(
|
||||
'defaultLabel' => __( 'Color value', 'gp-premium' ),
|
||||
'pick' => __( 'Select Color', 'gp-premium' ),
|
||||
'defaultString' => __( 'Default', 'gp-premium' ),
|
||||
'defaultAriaLabel' => __( 'Select default color', 'gp-premium' ),
|
||||
'clear' => __( 'Clear', 'gp-premium' ),
|
||||
'clearAriaLabel' => __( 'Clear color', 'gp-premium' ),
|
||||
)
|
||||
);
|
||||
|
||||
wp_enqueue_media();
|
||||
|
||||
if ( function_exists( 'wp_enqueue_editor' ) ) {
|
||||
|
Reference in New Issue
Block a user