footer.tpl.php (2520B)
1 <?php 2 /** 3 * The template for the panel footer 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 // Exit if accessed directly. 12 defined( 'ABSPATH' ) || exit; 13 14 ?> 15 <div id="redux-sticky-padder" style="display: none;"> </div> 16 <div id="redux-footer-sticky"> 17 <div id="redux-footer"> 18 <?php 19 if ( isset( $this->parent->args['share_icons'] ) ) { 20 $skip_icons = false; 21 22 if ( ! $this->parent->args['dev_mode'] && $this->parent->args_class->omit_icons ) { 23 $skip_icons = true; 24 } 25 ?> 26 <div id="redux-share"> 27 <?php 28 foreach ( $this->parent->args['share_icons'] as $links ) { 29 if ( $skip_icons ) { 30 continue; 31 } 32 // SHIM, use URL now. 33 if ( isset( $links['link'] ) && ! empty( $links['link'] ) ) { 34 $links['url'] = $links['link']; 35 unset( $links['link'] ); 36 } 37 if ( isset( $links['icon'] ) && ! empty( $links['icon'] ) ) { 38 if ( strpos( $links['icon'], 'el-icon' ) !== false && strpos( $links['icon'], 'el ' ) === false ) { 39 $links['icon'] = 'el ' . $links['icon']; 40 } 41 } 42 ?> 43 <a href="<?php echo esc_url( $links['url'] ); ?>" title="<?php echo esc_attr( $links['title'] ); ?>" target="_blank"> 44 <?php if ( isset( $links['icon'] ) && ! empty( $links['icon'] ) ) { ?> 45 <i class="<?php echo esc_attr( $links['icon'] ); ?>"></i> 46 <?php } else { ?> 47 <img src="<?php echo esc_url( $links['img'] ); ?>"/> 48 <?php } ?> 49 </a> 50 <?php } ?> 51 </div> 52 <?php } ?> 53 54 <div class="redux-action_bar"> 55 <span class="spinner"></span> 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 } 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 ?> 66 </div> 67 <div class="redux-ajax-loading" alt="<?php esc_html_e( 'Working...', 'redux-framework' ); ?>"> </div> 68 <div class="clear"></div> 69 </div> 70 </div>