header.tpl.php (2107B)
1 <?php 2 /** 3 * The template for the panel header area. 4 * Override this template by specifying the path where it is stored (templates_path) in your Redux config. 5 * 6 * @author Redux Framework 7 * @package ReduxFramework/Templates 8 * @version: 4.0.0 9 */ 10 11 $tip_title = esc_html__( 'Developer Mode Enabled', 'redux-framework' ); 12 13 if ( $this->parent->args_class->dev_mode_forced ) { 14 $is_debug = false; 15 $is_localhost = false; 16 $debug_bit = ''; 17 18 if ( Redux_Helpers::is_wp_debug() ) { 19 $is_debug = true; 20 $debug_bit = esc_html__( 'WP_DEBUG is enabled', 'redux-framework' ); 21 } 22 23 $localhost_bit = ''; 24 if ( Redux_Helpers::is_local_host() ) { 25 $is_localhost = true; 26 $localhost_bit = esc_html__( 'you are working in a localhost environment', 'redux-framework' ); 27 } 28 29 $conjunction_bit = ''; 30 if ( $is_localhost && $is_debug ) { 31 $conjunction_bit = ' ' . esc_html__( 'and', 'redux-framework' ) . ' '; 32 } 33 34 $tip_msg = esc_html__( 'This has been automatically enabled because', 'redux-framework' ) . ' ' . $debug_bit . $conjunction_bit . $localhost_bit . '.'; 35 } else { 36 $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 } 38 39 ?> 40 <div id="redux-header"> 41 <?php if ( ! empty( $this->parent->args['display_name'] ) ) { ?> 42 <div class="display_header"> 43 <?php if ( isset( $this->parent->args['dev_mode'] ) && $this->parent->args['dev_mode'] ) { ?> 44 <div 45 class="redux-dev-mode-notice-container redux-dev-qtip" 46 qtip-title="<?php echo esc_attr( $tip_title ); ?>" 47 qtip-content="<?php echo esc_attr( $tip_msg ); ?>"> 48 <span class="redux-dev-mode-notice"><?php esc_html_e( 'Developer Mode Enabled', 'redux-framework' ); ?></span> 49 </div> 50 <?php } ?> 51 <h2><?php echo wp_kses_post( $this->parent->args['display_name'] ); ?></h2> 52 <?php if ( ! empty( $this->parent->args['display_version'] ) ) { ?> 53 <span><?php echo wp_kses_post( $this->parent->args['display_version'] ); ?></span> 54 <?php } ?> 55 </div> 56 <?php } ?> 57 <div class="clear"></div> 58 </div>