@@ -11,29 +11,29 @@ |
||
| 11 | 11 | $redux_tip_title = esc_html__( 'Developer Mode Enabled', 'redux-framework' ); |
| 12 | 12 | |
| 13 | 13 | if ( $this->parent->args_class->dev_mode_forced ) { |
| 14 | - $redux_is_debug = false; |
|
| 15 | - $redux_is_localhost = false; |
|
| 16 | - $redux_debug_bit = ''; |
|
| 14 | + $redux_is_debug = false; |
|
| 15 | + $redux_is_localhost = false; |
|
| 16 | + $redux_debug_bit = ''; |
|
| 17 | 17 | |
| 18 | - if ( Redux_Helpers::is_wp_debug() ) { |
|
| 19 | - $redux_is_debug = true; |
|
| 20 | - $redux_debug_bit = esc_html__( 'WP_DEBUG is enabled', 'redux-framework' ); |
|
| 21 | - } |
|
| 18 | + if ( Redux_Helpers::is_wp_debug() ) { |
|
| 19 | + $redux_is_debug = true; |
|
| 20 | + $redux_debug_bit = esc_html__( 'WP_DEBUG is enabled', 'redux-framework' ); |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - $redux_localhost_bit = ''; |
|
| 24 | - if ( Redux_Helpers::is_local_host() ) { |
|
| 25 | - $redux_is_localhost = true; |
|
| 26 | - $redux_localhost_bit = esc_html__( 'you are working in a localhost environment', 'redux-framework' ); |
|
| 27 | - } |
|
| 23 | + $redux_localhost_bit = ''; |
|
| 24 | + if ( Redux_Helpers::is_local_host() ) { |
|
| 25 | + $redux_is_localhost = true; |
|
| 26 | + $redux_localhost_bit = esc_html__( 'you are working in a localhost environment', 'redux-framework' ); |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | - $redux_conjunction_bit = ''; |
|
| 30 | - if ( $redux_is_localhost && $redux_is_debug ) { |
|
| 31 | - $redux_conjunction_bit = ' ' . esc_html__( 'and', 'redux-framework' ) . ' '; |
|
| 32 | - } |
|
| 29 | + $redux_conjunction_bit = ''; |
|
| 30 | + if ( $redux_is_localhost && $redux_is_debug ) { |
|
| 31 | + $redux_conjunction_bit = ' ' . esc_html__( 'and', 'redux-framework' ) . ' '; |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - $redux_tip_msg = esc_html__( 'This has been automatically enabled because', 'redux-framework' ) . ' ' . $redux_debug_bit . $conjunction_bit . $redux_localhost_bit . '.'; |
|
| 34 | + $redux_tip_msg = esc_html__( 'This has been automatically enabled because', 'redux-framework' ) . ' ' . $redux_debug_bit . $conjunction_bit . $redux_localhost_bit . '.'; |
|
| 35 | 35 | } else { |
| 36 | - $redux_tip_msg = esc_html__( 'If you are not a developer, your theme/plugin author shipped with developer mode enabled. Contact them directly to fix it.', 'redux-framework' ); |
|
| 36 | + $redux_tip_msg = esc_html__( 'If you are not a developer, your theme/plugin author shipped with developer mode enabled. Contact them directly to fix it.', 'redux-framework' ); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | ?> |
@@ -16,30 +16,30 @@ discard block |
||
| 16 | 16 | <div id="redux-footer-sticky"> |
| 17 | 17 | <div id="redux-footer"> |
| 18 | 18 | <?php |
| 19 | - if ( isset( $this->parent->args['share_icons'] ) ) { |
|
| 20 | - $redux_skip_icons = false; |
|
| 19 | + if ( isset( $this->parent->args['share_icons'] ) ) { |
|
| 20 | + $redux_skip_icons = false; |
|
| 21 | 21 | |
| 22 | - if ( ! $this->parent->args['dev_mode'] && $this->parent->args_class->omit_icons ) { |
|
| 23 | - $redux_skip_icons = true; |
|
| 24 | - } |
|
| 25 | - ?> |
|
| 22 | + if ( ! $this->parent->args['dev_mode'] && $this->parent->args_class->omit_icons ) { |
|
| 23 | + $redux_skip_icons = true; |
|
| 24 | + } |
|
| 25 | + ?> |
|
| 26 | 26 | <div id="redux-share"> |
| 27 | 27 | <?php |
| 28 | - foreach ( $this->parent->args['share_icons'] as $redux_links ) { |
|
| 29 | - if ( $redux_skip_icons ) { |
|
| 30 | - continue; |
|
| 31 | - } |
|
| 32 | - // SHIM, use URL now. |
|
| 33 | - if ( isset( $redux_links['link'] ) && ! empty( $redux_links['link'] ) ) { |
|
| 34 | - $redux_links['url'] = $redux_links['link']; |
|
| 35 | - unset( $redux_links['link'] ); |
|
| 36 | - } |
|
| 37 | - if ( isset( $redux_links['icon'] ) && ! empty( $redux_links['icon'] ) ) { |
|
| 38 | - if ( strpos( $redux_links['icon'], 'el-icon' ) !== false && strpos( $redux_links['icon'], 'el ' ) === false ) { |
|
| 39 | - $redux_links['icon'] = 'el ' . $redux_links['icon']; |
|
| 40 | - } |
|
| 41 | - } |
|
| 42 | - ?> |
|
| 28 | + foreach ( $this->parent->args['share_icons'] as $redux_links ) { |
|
| 29 | + if ( $redux_skip_icons ) { |
|
| 30 | + continue; |
|
| 31 | + } |
|
| 32 | + // SHIM, use URL now. |
|
| 33 | + if ( isset( $redux_links['link'] ) && ! empty( $redux_links['link'] ) ) { |
|
| 34 | + $redux_links['url'] = $redux_links['link']; |
|
| 35 | + unset( $redux_links['link'] ); |
|
| 36 | + } |
|
| 37 | + if ( isset( $redux_links['icon'] ) && ! empty( $redux_links['icon'] ) ) { |
|
| 38 | + if ( strpos( $redux_links['icon'], 'el-icon' ) !== false && strpos( $redux_links['icon'], 'el ' ) === false ) { |
|
| 39 | + $redux_links['icon'] = 'el ' . $redux_links['icon']; |
|
| 40 | + } |
|
| 41 | + } |
|
| 42 | + ?> |
|
| 43 | 43 | <a href="<?php echo esc_url( $redux_links['url'] ); ?>" title="<?php echo esc_attr( $redux_links['title'] ); ?>" target="_blank"> |
| 44 | 44 | <?php if ( isset( $redux_links['icon'] ) && ! empty( $redux_links['icon'] ) ) { ?> |
| 45 | 45 | <i class="<?php echo esc_attr( $redux_links['icon'] ); ?>"></i> |
@@ -54,15 +54,15 @@ discard block |
||
| 54 | 54 | <div class="redux-action_bar"> |
| 55 | 55 | <span class="spinner"></span> |
| 56 | 56 | <?php |
| 57 | - if ( false === $this->parent->args['hide_save'] ) { |
|
| 58 | - submit_button( esc_html__( 'Save Changes', 'redux-framework' ), 'primary', 'redux_save', false, array( 'id' => 'redux_bottom_save' ) ); |
|
| 59 | - } |
|
| 57 | + if ( false === $this->parent->args['hide_save'] ) { |
|
| 58 | + submit_button( esc_html__( 'Save Changes', 'redux-framework' ), 'primary', 'redux_save', false, array( 'id' => 'redux_bottom_save' ) ); |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | - if ( false === $this->parent->args['hide_reset'] ) { |
|
| 62 | - submit_button( esc_html__( 'Reset Section', 'redux-framework' ), 'secondary', $this->parent->args['opt_name'] . '[defaults-section]', false, array( 'id' => 'redux-defaults-section-bottom' ) ); |
|
| 63 | - submit_button( esc_html__( 'Reset All', 'redux-framework' ), 'secondary', $this->parent->args['opt_name'] . '[defaults]', false, array( 'id' => 'redux-defaults-bottom' ) ); |
|
| 64 | - } |
|
| 65 | - ?> |
|
| 61 | + if ( false === $this->parent->args['hide_reset'] ) { |
|
| 62 | + submit_button( esc_html__( 'Reset Section', 'redux-framework' ), 'secondary', $this->parent->args['opt_name'] . '[defaults-section]', false, array( 'id' => 'redux-defaults-section-bottom' ) ); |
|
| 63 | + submit_button( esc_html__( 'Reset All', 'redux-framework' ), 'secondary', $this->parent->args['opt_name'] . '[defaults]', false, array( 'id' => 'redux-defaults-bottom' ) ); |
|
| 64 | + } |
|
| 65 | + ?> |
|
| 66 | 66 | </div> |
| 67 | 67 | <div class="clear"></div> |
| 68 | 68 | </div> |