| 1 |
<?php |
| 2 |
/** |
| 3 |
* The template for the main panel container. |
| 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.7.8 |
| 9 |
*/ |
| 10 |
|
| 11 |
|
| 12 |
$expanded = ( $this->parent->args['open_expanded'] ) ? ' fully-expanded' : '' . ( ! empty( $this->parent->args['class'] ) ? ' ' . esc_attr( $this->parent->args['class'] ) : '' ); |
| 13 |
$nonce = wp_create_nonce( "redux_ajax_nonce" . $this->parent->args['opt_name'] ); |
| 14 |
?> |
| 15 |
<div class="redux-container<?php echo esc_attr( $expanded ); ?>"> |
| 16 |
<?php $action = ( $this->parent->args['database'] == "network" && $this->parent->args['network_admin'] && is_network_admin() ? './edit.php?action=redux_' . $this->parent->args['opt_name'] : './options.php' ) ?> |
| 17 |
<form method="post" |
| 18 |
action="<?php echo esc_attr($action); ?>" |
| 19 |
data-nonce="<?php echo esc_attr($nonce); ?>" |
| 20 |
enctype="multipart/form-data" |
| 21 |
id="redux-form-wrapper"> |
| 22 |
<?php // $this->parent->args['opt_name'] is sanitized in the Framework class, no need to re-sanitize it. ?> |
| 23 |
<input type="hidden" id="redux-compiler-hook" |
| 24 |
name="<?php echo $this->parent->args['opt_name']; ?>[compiler]" |
| 25 |
value=""/> |
| 26 |
<?php // $this->parent->args['opt_name'] is sanitized in the Framework class, no need to re-sanitize it. ?> |
| 27 |
<input type="hidden" id="currentSection" |
| 28 |
name="<?php echo $this->parent->args['opt_name']; ?>[redux-section]" |
| 29 |
value=""/> |
| 30 |
<?php // $this->parent->args['opt_name'] is sanitized in the Framework class, no need to re-sanitize it. ?> |
| 31 |
<?php if ( ! empty( $this->parent->no_panel ) ) { ?> |
| 32 |
<input type="hidden" |
| 33 |
name="<?php echo $this->parent->args['opt_name']; ?>[redux-no_panel]" |
| 34 |
value="<?php echo esc_attr(implode( '|', $this->parent->no_panel )); ?>" |
| 35 |
/> |
| 36 |
<?php } ?> |
| 37 |
<?php |
| 38 |
// Must run or the page won't redirect properly |
| 39 |
$this->init_settings_fields(); |
| 40 |
|
| 41 |
// Last tab? |
| 42 |
$this->parent->options['last_tab'] = ( isset( $_GET['tab'] ) && ! isset( $this->parent->transients['last_save_mode'] ) ) ? esc_attr( $_GET['tab'] ) : ''; |
| 43 |
?> |
| 44 |
<?php // $this->parent->args['opt_name'] is sanitized in the Framework class, no need to re-sanitize it. ?> |
| 45 |
<input type="hidden" |
| 46 |
id="last_tab" |
| 47 |
name="<?php echo $this->parent->args['opt_name']; ?>[last_tab]" |
| 48 |
value="<?php echo esc_attr( $this->parent->options['last_tab'] ); ?>" |
| 49 |
/> |
| 50 |
|
| 51 |
<?php $this->get_template( 'content.tpl.php' ); ?> |
| 52 |
|
| 53 |
</form> |
| 54 |
</div> |
| 55 |
|
| 56 |
<?php if ( isset( $this->parent->args['footer_text'] ) ) { ?> |
| 57 |
<div id="redux-sub-footer"><?php echo wp_kses_post( $this->parent->args['footer_text'] ); ?></div> |
| 58 |
<?php } ?> |
| 59 |
|