PluginProbe
QuadMenu – Mega Menu / 1.8.8
QuadMenu – Mega Menu v1.8.8
3.3.8 3.3.7 3.3.6 trunk 1.8.4 1.8.5 1.8.7 1.8.8 1.8.9 1.9.0 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 88 releases
quadmenu / lib / ReduxCore / templates / panel / content.tpl.php

content.tpl.php in QuadMenu – Mega Menu 1.8.8, at lib/ReduxCore/templates/panel/content.tpl.php

99 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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: 3.5.4.18
9 */
10 ?>
11 <!-- Header Block -->
12 <?php $this->get_template( 'header.tpl.php' ); ?>
13
14 <!-- Intro Text -->
15 <?php if ( isset( $this->parent->args['intro_text'] ) ) { ?>
16 <div id="redux-intro-text"><?php echo wp_kses_post( $this->parent->args['intro_text'] ); ?></div>
17 <?php } ?>
18
19 <?php $this->get_template( 'menu_container.tpl.php' ); ?>
20
21 <div class="redux-main">
22 <!-- Stickybar -->
23 <?php $this->get_template( 'header_stickybar.tpl.php' ); ?>
24 <div id="redux_ajax_overlay">&nbsp;</div>
25 <?php
26 foreach ($this->parent->sections as $k => $section) {
27 if ( isset( $section['customizer_only'] ) && $section['customizer_only'] == true ) {
28 continue;
29 }
30
31 //$active = ( ( is_numeric($this->parent->current_tab) && $this->parent->current_tab == $k ) || ( !is_numeric($this->parent->current_tab) && $this->parent->current_tab === $k ) ) ? ' style="display: block;"' : '';
32 $section['class'] = isset( $section['class'] ) ? ' ' . $section['class'] : '';
33 echo '<div id="' . $k . '_section_group' . '" class="redux-group-tab' . esc_attr( $section['class'] ) . '" data-rel="' . $k . '">';
34 //echo '<div id="' . $k . '_nav-bar' . '"';
35 /*
36 if ( !empty( $section['tab'] ) ) {
37
38 echo '<div id="' . $k . '_section_tabs' . '" class="redux-section-tabs">';
39
40 echo '<ul>';
41
42 foreach ($section['tab'] as $subkey => $subsection) {
43 //echo '-=' . $subkey . '=-';
44 echo '<li style="display:inline;"><a href="#' . $k . '_section-tab-' . $subkey . '">' . $subsection['title'] . '</a></li>';
45 }
46
47 echo '</ul>';
48 foreach ($section['tab'] as $subkey => $subsection) {
49 echo '<div id="' . $k .'sub-'.$subkey. '_section_group' . '" class="redux-group-tab" style="display:block;">';
50 echo '<div id="' . $k . '_section-tab-' . $subkey . '">';
51 echo "hello ".$subkey;
52 do_settings_sections( $this->parent->args['opt_name'] . $k . '_tab_' . $subkey . '_section_group' );
53 echo "</div>";
54 echo "</div>";
55 }
56 echo "</div>";
57 } else {
58 */
59
60 // Don't display in the
61 $display = true;
62 if ( isset( $_GET['page'] ) && $_GET['page'] == $this->parent->args['page_slug'] ) {
63 if ( isset( $section['panel'] ) && $section['panel'] == "false" ) {
64 $display = false;
65 }
66 }
67
68 if ( $display ) {
69 do_action( "redux/page/{$this->parent->args['opt_name']}/section/before", $section );
70 $this->output_section( $k );
71 do_action( "redux/page/{$this->parent->args['opt_name']}/section/after", $section );
72 }
73 //}
74 ?></div><?php
75 //print '</div>';
76 }
77
78 /**
79 * action 'redux/page-after-sections-{opt_name}'
80 *
81 * @deprecated
82 *
83 * @param object $this ReduxFramework
84 */
85 do_action( "redux/page-after-sections-{$this->parent->args['opt_name']}", $this ); // REMOVE LATER
86
87 /**
88 * action 'redux/page/{opt_name}/sections/after'
89 *
90 * @param object $this ReduxFramework
91 */
92 do_action( "redux/page/{$this->parent->args['opt_name']}/sections/after", $this );
93 ?>
94 <div class="clear"></div>
95 <!-- Footer Block -->
96 <?php $this->get_template( 'footer.tpl.php' ); ?>
97 <div id="redux-sticky-padder" style="display: none;">&nbsp;</div>
98 </div>
99 <div class="clear"></div>