balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

content.tpl.php (2922B)


      1 <?php
      2 /**
      3  * The template for the main content of the panel.
      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 ?>
     12 <!-- Header Block -->
     13 <?php $this->get_template( 'header.tpl.php' ); ?>
     14 
     15 <!-- Intro Text -->
     16 <?php if ( isset( $this->parent->args['intro_text'] ) ) { ?>
     17 	<div id="redux-intro-text"><?php echo wp_kses_post( $this->parent->args['intro_text'] ); ?></div>
     18 <?php } ?>
     19 
     20 <?php $this->get_template( 'menu-container.tpl.php' ); ?>
     21 
     22 <div class="redux-main">
     23 	<!-- Stickybar -->
     24 	<?php $this->get_template( 'header-stickybar.tpl.php' ); ?>
     25 	<div id="redux_ajax_overlay">&nbsp;</div>
     26 	<?php foreach ( $this->parent->sections as $k => $section ) { ?>
     27 		<?php if ( isset( $section['customizer_only'] ) && true === $section['customizer_only'] ) { ?>
     28 			<?php continue; ?>
     29 		<?php } // phpcs:ignore Squiz.PHP.NonExecutableCode.Unreachable ?>
     30 
     31 		<?php $section['class'] = isset( $section['class'] ) ? ' ' . $section['class'] : ''; ?>
     32 
     33 		<?php $disabled = ''; ?>
     34 		<?php if ( isset( $section['disabled'] ) && $section['disabled'] ) { ?>
     35 			<?php $disabled = 'disabled '; ?>
     36 		<?php } ?>
     37 
     38 		<div
     39 			id="<?php echo esc_attr( $k ); ?>_section_group"
     40 			class="redux-group-tab <?php echo esc_attr( $disabled ); ?><?php echo esc_attr( $section['class'] ); ?>"
     41 			data-rel="<?php echo esc_attr( $k ); ?>">
     42 
     43 			<?php $display = true; ?>
     44 
     45 			<?php if ( isset( $_GET['page'] ) && $this->parent->args['page_slug'] === $_GET['page'] ) { // phpcs:ignore WordPress.Security.NonceVerification ?>
     46 				<?php if ( isset( $section['panel'] ) && false === $section['panel'] ) { ?>
     47 					<?php $display = false; ?>
     48 				<?php } ?>
     49 			<?php } ?>
     50 
     51 			<?php
     52 			if ( $display ) {
     53 				/**
     54 				 * Action 'redux/page/{opt_name}/section/before'
     55 				 *
     56 				 * @param object $this ReduxFramework
     57 				 */
     58 
     59 				// phpcs:ignore WordPress.NamingConventions.ValidHookName
     60 				do_action( "redux/page/{$this->parent->args['opt_name']}/section/before", $section );
     61 
     62 				$this->output_section( $k );
     63 
     64 				/**
     65 				 * Action 'redux/page/{opt_name}/section/after'
     66 				 *
     67 				 * @param object $this ReduxFramework
     68 				 */
     69 
     70 				// phpcs:ignore WordPress.NamingConventions.ValidHookName
     71 				do_action( "redux/page/{$this->parent->args['opt_name']}/section/after", $section );
     72 			}
     73 			?>
     74 		</div> <!-- section group -->
     75 	<?php } ?>
     76 
     77 	<?php
     78 	/**
     79 	 * Action 'redux/page/{opt_name}/sections/after'
     80 	 *
     81 	 * @param object $this ReduxFramework
     82 	 */
     83 
     84 	// phpcs:ignore WordPress.NamingConventions.ValidHookName
     85 	do_action( "redux/page/{$this->parent->args['opt_name']}/sections/after", $this );
     86 	?>
     87 	<div class="clear"></div>
     88 	<!-- Footer Block -->
     89 	<?php $this->get_template( 'footer.tpl.php' ); ?>
     90 	<div id="redux-sticky-padder" style="display: none;">&nbsp;</div>
     91 	</div> <!-- redux main -->
     92 <div class="clear"></div>