menu-container.tpl.php (1204B)
1 <?php 2 /** 3 * The template for the menu container 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 <div class="redux-sidebar"> 13 <ul class="redux-group-menu"> 14 <?php 15 foreach ( $this->parent->sections as $k => $section ) { 16 $the_title = isset( $section['title'] ) ? $section['title'] : ''; 17 $skip_sec = false; 18 foreach ( $this->parent->options_class->hidden_perm_sections as $num => $section_title ) { 19 if ( $section_title === $the_title ) { 20 $skip_sec = true; 21 } 22 } 23 24 if ( isset( $section['customizer_only'] ) && true === $section['customizer_only'] ) { 25 continue; 26 } 27 28 if ( false === $skip_sec ) { 29 echo( $this->parent->section_menu( $k, $section ) ); // phpcs:ignore WordPress.Security.EscapeOutput 30 $skip_sec = false; 31 } 32 } 33 34 /** 35 * Action 'redux/page/{opt_name}/menu/after' 36 * 37 * @param object $this ReduxFramework 38 */ 39 do_action( "redux/page/{$this->parent->args['opt_name']}/menu/after", $this ); // phpcs:ignore WordPress.NamingConventions.ValidHookName 40 ?> 41 </ul> 42 </div>