| 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 ReduxFrameworkLegacy/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"> </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 |
?> |
| 75 |
</div> |
| 76 |
<?php |
| 77 |
// print '</div>'; |
| 78 |
} |
| 79 |
|
| 80 |
/** |
| 81 |
* action 'redux/page-after-sections-{opt_name}' |
| 82 |
* |
| 83 |
* @deprecated |
| 84 |
* |
| 85 |
* @param object $this ReduxFrameworkLegacy |
| 86 |
*/ |
| 87 |
do_action( "redux/page-after-sections-{$this->parent->args['opt_name']}", $this ); // REMOVE LATER |
| 88 |
|
| 89 |
/** |
| 90 |
* action 'redux/page/{opt_name}/sections/after' |
| 91 |
* |
| 92 |
* @param object $this ReduxFrameworkLegacy |
| 93 |
*/ |
| 94 |
do_action( "redux/page/{$this->parent->args['opt_name']}/sections/after", $this ); |
| 95 |
?> |
| 96 |
<div class="clear"></div> |
| 97 |
<!-- Footer Block --> |
| 98 |
<?php $this->get_template( 'footer.tpl.php' ); ?> |
| 99 |
<div id="redux-sticky-padder" style="display: none;"> </div> |
| 100 |
</div> |
| 101 |
<div class="clear"></div> |
| 102 |
|