Update ReduxFramework to version 3.6.2
@@ -998,7 +998,6 @@ pre {
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
border: 0 solid transparent;
|
||||
float: right;
|
||||
font-size: 9px;
|
||||
height: 9px;
|
||||
line-height: 9px;
|
||||
|
||||
@@ -1 +1 @@
|
||||
.redux-container .redux-action_bar{float:left}.redux-container #expand_options,.redux-sidebar,.cb-enable,.cb-disable,.cb-enable span,.cb-disable span,#redux-footer #redux-share{float:right}.redux-main{border-left:0px;margin-left:0px;border-right:1px solid #d8d8d8;margin-right:201px}.redux-group-tab-link-a{padding-left:0px;padding-right:30px}.redux-group-tab-link-a i{padding-left:10px;padding-right:5px}.redux-group-tab-link-a span.group_title{padding-left:0px;padding-right:30px}.redux-container .expand_options,.redux-sidebar,.cb-enable,.cb-disable,.cb-enable span,.cb-disable span,#redux-footer #redux-share{float:right}.redux_slider{margin-left:0px;margin-right:15px}.redux-action_bar{float:left !important}.expand_options{float:right !important;border:1px solid #f00}.redux_field_th{padding:20px 0 20px 10px !important}.field-desc{text-align:right}.redux-container-ace_editor,.redux-container-border,.redux-container-spacing,.redux-container-dimensions{direction:ltr !important}.redux-container-border .field-border-input,.redux-container-border .redux-color-init,.redux-container-border .redux-border-style,.redux-container-sorter,.redux-container-border,.redux-container-spacing,.redux-container-spacing .field-spacing-input,.redux-container-dimensions .redux-dimensions-container,.redux-container-text label,.redux-container-checkbox input,.typography-font-bar,.typography-style-bar,.redux-color.redux-typography-color,.redux-typography-subsets{float:right !important}.input-append{margin-right:10px;direction:ltr !important}.redux-container-slider,.redux-container-spinner,.redux-container-switch{direction:ltr !important;float:right;margin:0}.redux-main .redux-typography-container .typography-preview{text-align:center !important;direction:ltr !important}.redux-info-field .redux-info-icon{margin-left:15px}#redux-share{float:right !important}
|
||||
.redux-container .redux-action_bar{float:left}.redux-container #expand_options,.redux-sidebar,.cb-enable,.cb-disable,.cb-enable span,.cb-disable span,#redux-footer #redux-share{float:right}.redux-main{border-left:0px;margin-left:0px;border-right:1px solid #d8d8d8;margin-right:201px}.redux-group-tab-link-a{padding-left:0px;padding-right:30px}.redux-group-tab-link-a i{padding-left:10px;padding-right:5px}.redux-group-tab-link-a span.group_title{padding-left:0px;padding-right:30px}.redux-container .expand_options,.redux-sidebar,.cb-enable,.cb-disable,.cb-enable span,.cb-disable span,#redux-footer #redux-share{float:right}.redux_slider{margin-left:0px;margin-right:15px}.redux-action_bar{float:left !important}.expand_options{float:right !important;border:1px solid #f00}.redux_field_th{padding:20px 0 20px 10px !important}.field-desc{text-align:right}.redux-container-ace_editor,.redux-container-border,.redux-container-spacing,.redux-container-dimensions{direction:ltr !important}.redux-container-border .field-border-input,.redux-container-border .redux-color-init,.redux-container-border .redux-border-style,.redux-container-sorter,.redux-container-border,.redux-container-spacing,.redux-container-spacing .field-spacing-input,.redux-container-dimensions .redux-dimensions-container,.redux-container-text label,.redux-container-checkbox input,.typography-font-bar,.typography-style-bar,.redux-color.redux-typography-color,.redux-typography-subsets{float:right !important}.input-append{margin-right:10px;direction:ltr !important}.redux-container-slider,.redux-container-spinner,.redux-container-switch{direction:ltr !important;float:right;margin:0}.redux-main .redux-typography-container .typography-preview{text-align:center !important;direction:ltr !important}.redux-info-field .redux-info-icon{margin-left:15px}#redux-share{float:right !important}.redux-sidebar .redux-menu-warning,.redux-sidebar .redux-menu-error,.redux-sidebar .hasSubSections .extraIconSubsections{float:left}
|
||||
|
||||
@@ -115,4 +115,12 @@
|
||||
|
||||
#redux-share {
|
||||
float:right !important;
|
||||
}
|
||||
|
||||
.redux-sidebar {
|
||||
.redux-menu-warning,
|
||||
.redux-menu-error,
|
||||
.hasSubSections .extraIconSubsections {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 124 KiB |
|
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 180 B |
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 120 B |
|
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 105 B |
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 110 B |
|
Before Width: | Height: | Size: 107 B After Width: | Height: | Size: 107 B |
|
Before Width: | Height: | Size: 101 B After Width: | Height: | Size: 101 B |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 138 B |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
@@ -1537,8 +1537,15 @@ function redux_change( variable ) {
|
||||
jQuery( '#redux-compiler-hook' ).val( 1 );
|
||||
}
|
||||
|
||||
// var test = jQuery( variable ).parents( '.redux-field-container:first' );
|
||||
// if ( test.hasClass( 'redux-container-typography' ) && redux.field_objects.typography ) {
|
||||
// redux.field_objects.typography.change( test );
|
||||
// }
|
||||
|
||||
var rContainer = jQuery( variable ).parents( '.redux-container:first' );
|
||||
|
||||
var parentID = jQuery( variable ).closest( '.redux-group-tab' ).attr( 'id' );
|
||||
|
||||
// Let's count down the errors now. Fancy. ;)
|
||||
var id = parentID.split( '_' );
|
||||
id = id[0];
|
||||
@@ -1793,3 +1800,19 @@ function colorNameToHex( colour ) {
|
||||
return colour;
|
||||
}
|
||||
|
||||
function redux_hook( object, functionName, callback, before ) {
|
||||
(function( originalFunction ) {
|
||||
object[functionName] = function() {
|
||||
|
||||
if ( before === true ) {
|
||||
callback.apply( this, [returnValue, originalFunction, arguments] );
|
||||
}
|
||||
var returnValue = originalFunction.apply( this, arguments );
|
||||
if ( before !== true ) {
|
||||
callback.apply( this, [returnValue, originalFunction, arguments] );
|
||||
}
|
||||
|
||||
return returnValue;
|
||||
};
|
||||
}( object[functionName] ));
|
||||
}
|
||||
@@ -69,7 +69,7 @@
|
||||
// Please update the build number with each push, no matter how small.
|
||||
// This will make for easier support when we ask users what version they are using.
|
||||
|
||||
public static $_version = '3.6.0.1';
|
||||
public static $_version = '3.6.2';
|
||||
public static $_dir;
|
||||
public static $_url;
|
||||
public static $_upload_dir;
|
||||
@@ -1739,7 +1739,7 @@
|
||||
$hint_status = get_user_meta( $current_user->ID, 'ignore_hints' ) ? get_user_meta( $current_user->ID, 'ignore_hints', true ) : 'true';
|
||||
|
||||
// current page parameters
|
||||
$curPage = $_GET['page'];
|
||||
$curPage = esc_attr( $_GET['page'] );
|
||||
|
||||
$curTab = '0';
|
||||
if ( isset ( $_GET['tab'] ) ) {
|
||||
@@ -2950,6 +2950,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
// if ( isset ( $field['type'] ) && $field['type'] == 'typography' ) {
|
||||
// if ( ! is_array( $plugin_options[ $field['id'] ] ) && ! empty( $plugin_options[ $field['id'] ] ) ) {
|
||||
// $plugin_options[ $field['id'] ] = json_decode( $plugin_options[ $field['id'] ], true );
|
||||
// }
|
||||
// }
|
||||
|
||||
if ( isset( $this->extensions[ $field['type'] ] ) && method_exists( $this->extensions[ $field['type'] ], '_validate_values' ) ) {
|
||||
$plugin_options = $this->extensions[ $field['type'] ]->_validate_values( $plugin_options, $field );
|
||||
}
|
||||
|
||||
// Default 'not_empty 'flag to false.
|
||||
$isNotEmpty = false;
|
||||
|
||||
@@ -2974,7 +2984,10 @@
|
||||
if ( ! $isNotEmpty ) {
|
||||
|
||||
// Empty id and not checking for 'not_empty. Bail out...
|
||||
continue;
|
||||
if (!isset($field['validate_callback'])) {
|
||||
continue;
|
||||
}
|
||||
//continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3054,10 +3067,14 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ( is_array( $plugin_options[ $field['id'] ] ) ) {
|
||||
$pofi = $plugin_options[ $field['id'] ];
|
||||
if ( isset( $plugin_options[ $field['id'] ] ) ) {
|
||||
if ( is_array( $plugin_options[ $field['id'] ] ) ) {
|
||||
$pofi = $plugin_options[ $field['id'] ];
|
||||
} else {
|
||||
$pofi = trim( $plugin_options[ $field['id'] ] );
|
||||
}
|
||||
} else {
|
||||
$pofi = trim( $plugin_options[ $field['id'] ] );
|
||||
$pofi = null;
|
||||
}
|
||||
|
||||
$validation = new $validate ( $this, $field, $pofi, $options[ $field['id'] ] );
|
||||
@@ -3086,6 +3103,7 @@
|
||||
$this->errors[] = $callbackvalues['error'];
|
||||
}
|
||||
// TODO - This warning message is failing. Hmm.
|
||||
// No it isn't. Problem was in the sample-config - kp
|
||||
if ( isset ( $callbackvalues['warning'] ) ) {
|
||||
$this->warnings[] = $callbackvalues['warning'];
|
||||
}
|
||||
@@ -3211,7 +3229,8 @@
|
||||
$icon = str_replace( 'el-icon-', 'el el-', $icon );
|
||||
}
|
||||
|
||||
$section[ $nextK ]['class'] = isset ( $section[ $nextK ]['class'] ) ? $section[ $nextK ]['class'] : '';
|
||||
$sections[ $nextK ]['class'] = isset($sections[ $nextK ]['class']) ? $sections[ $nextK ]['class'] : '';
|
||||
$section[ $nextK ]['class'] = isset ( $section[ $nextK ]['class'] ) ? $section[ $nextK ]['class'] : $sections[ $nextK ]['class'];
|
||||
$string .= '<li id="' . esc_attr( $nextK . $suffix ) . '_section_group_li" class="redux-group-tab-link-li ' . esc_attr( $hide_sub ) . esc_attr( $section[ $nextK ]['class'] ) . ( $icon ? ' hasIcon' : '' ) . '">';
|
||||
$string .= '<a href="javascript:void(0);" id="' . esc_attr( $nextK . $suffix ) . '_section_group_li_a" class="redux-group-tab-link-a" data-key="' . esc_attr( $nextK ) . '" data-rel="' . esc_attr( $nextK . $suffix ) . '">' . $icon . '<span class="group_title">' . wp_kses_post( $sections[ $nextK ]['title'] ) . '</span></a>';
|
||||
$string .= '</li>';
|
||||
@@ -3253,7 +3272,8 @@
|
||||
* @return void
|
||||
*/
|
||||
public function _section_desc( $section ) {
|
||||
$id = trim( rtrim( $section['id'], '_section' ), $this->args['opt_name'] );
|
||||
$id = rtrim( $section['id'], '_section' );
|
||||
$id = str_replace($this->args['opt_name'], '', $id);
|
||||
|
||||
if ( isset ( $this->sections[ $id ]['desc'] ) && ! empty ( $this->sections[ $id ]['desc'] ) ) {
|
||||
echo '<div class="redux-section-desc">' . $this->sections[ $id ]['desc'] . '</div>';
|
||||
@@ -3958,7 +3978,7 @@
|
||||
foreach ( $this->args['admin_bar_links'] as $idx => $arr ) {
|
||||
if ( is_array( $arr ) && ! empty( $arr ) ) {
|
||||
foreach ( $arr as $x => $y ) {
|
||||
if ( strpos( strtolower( $y ), 'redux' ) >= 0 ) {
|
||||
if ( strpos( strtolower( $y ), 'redux' ) !== false ) {
|
||||
$msg = __( '<strong>Redux Framework Notice: </strong>There are references to the Redux Framework support site in your config\'s <code>admin_bar_links</code> argument. This is sample data. Please change or remove this data before shipping your product.', 'redux-framework' );
|
||||
$this->display_arg_change_notice( 'admin', $msg );
|
||||
$this->omit_admin_items = true;
|
||||
@@ -3973,7 +3993,7 @@
|
||||
foreach ( $this->args['share_icons'] as $idx => $arr ) {
|
||||
if ( is_array( $arr ) && ! empty( $arr ) ) {
|
||||
foreach ( $arr as $x => $y ) {
|
||||
if ( strpos( strtolower( $y ), 'redux' ) >= 0 ) {
|
||||
if ( strpos( strtolower( $y ), 'redux' ) !== false ) {
|
||||
$msg = __( '<strong>Redux Framework Notice: </strong>There are references to the Redux Framework support site in your config\'s <code>share_icons</code> argument. This is sample data. Please change or remove this data before shipping your product.', 'redux-framework' );
|
||||
$this->display_arg_change_notice( 'share', $msg );
|
||||
$this->omit_share_icons = true;
|
||||
|
||||
@@ -110,7 +110,7 @@ class Browser
|
||||
|
||||
const OPERATING_SYSTEM_UNKNOWN = 'unknown';
|
||||
|
||||
public function Browser($userAgent = "")
|
||||
public function __construct($userAgent = "")
|
||||
{
|
||||
$this->reset();
|
||||
if ($userAgent != "") {
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
// Get the current page. To avoid errors, we'll set
|
||||
// the redux page slug if the GET is empty.
|
||||
$pageName = empty( $_GET['page'] ) ? '&page=' . self::$_parent->args['page_slug'] : '&page=' . $_GET['page'];
|
||||
$pageName = empty( $_GET['page'] ) ? '&page=' . self::$_parent->args['page_slug'] : '&page=' . esc_attr( $_GET['page'] );
|
||||
|
||||
// Ditto for the current tab.
|
||||
$curTab = empty( $_GET['tab'] ) ? '&tab=0' : '&tab=' . esc_attr( $_GET['tab'] );
|
||||
@@ -151,8 +151,8 @@
|
||||
$userid = $current_user->ID;
|
||||
|
||||
// Get the notice id
|
||||
$id = $_GET['id'];
|
||||
$val = $_GET['dismiss'];
|
||||
$id = esc_attr( $_GET['id'] );
|
||||
$val = esc_attr( $_GET['dismiss'] );
|
||||
|
||||
// Add the dismiss request to the user meta.
|
||||
update_user_meta( $userid, 'ignore_' . $id, $val );
|
||||
|
||||