43 lines
862 B
PHP
43 lines
862 B
PHP
<?php
|
|
|
|
/**
|
|
* @var $metabox
|
|
* @var $page
|
|
* @var $wpcfto_title
|
|
* @var $wpcfto_sub_title
|
|
* @var $wpcfto_logo
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
} //Exit if accessed directly
|
|
|
|
if(empty($wpcfto_title)) $wpcfto_title = $page['page_title'];
|
|
|
|
?>
|
|
|
|
<?php
|
|
$id = $metabox['id'];
|
|
$sections = $metabox['args'][ $id ];
|
|
$source_id = 'data-source="settings"';
|
|
|
|
|
|
do_action( "wpcfto_settings_screen_{$id}_before" );
|
|
|
|
if ( ! empty( $sections ) ) : ?>
|
|
|
|
<div class="wpcfto-settings"
|
|
v-bind:class="'data-' + data.length"
|
|
data-vue="<?php echo sanitize_text_field( $id ); ?>" <?php echo stm_wpcfto_filtered_output( $source_id ); ?>>
|
|
|
|
<?php include STM_WPCFTO_PATH . '/settings/view/header.php'; ?>
|
|
|
|
<?php require_once( STM_WPCFTO_PATH . '/metaboxes/metabox-display.php' ); ?>
|
|
|
|
|
|
</div>
|
|
|
|
<?php endif;
|
|
|
|
do_action( "wpcfto_settings_screen_{$id}_after" );
|