HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/themes/Avada/includes/metaboxes/tabs/tab_fusion_template.php
<?php
/**
 * Fusion Template Metabox options.
 *
 * @author     ThemeFusion
 * @copyright  (c) Copyright by ThemeFusion
 * @link       https://avada.com
 * @package    Avada
 * @subpackage Core
 */

/**
 * Footer page settings.
 *
 * @param array $sections An array of our sections.
 * @return array
 */
function avada_page_options_tab_fusion_template( $sections ) {

	$sections['fusion_template'] = [
		'label'    => esc_html__( 'Template', 'Avada' ),
		'id'       => 'fusion_template',
		'alt_icon' => 'fusiona-template',
		'fields'   => [
			'live_header' => [
				'id'          => 'live_header',
				'label'       => esc_html__( 'Show Header in Live Editor', 'Avada' ),
				'choices'     => [
					'yes' => esc_attr__( 'Yes', 'Avada' ),
					'no'  => esc_attr__( 'No', 'Avada' ),
				],
				'description' => esc_html__( 'Choose to show or hide the header in Live Editor.', 'Avada' ),
				'type'        => 'radio-buttonset',
				'map'         => 'yesno',
				'default'     => 'no',
			],
			'live_ptb'    => [
				'id'          => 'live_ptb',
				'label'       => esc_html__( 'Show Page Title Bar in Live Editor', 'Avada' ),
				'choices'     => [
					'yes' => esc_attr__( 'Yes', 'Avada' ),
					'no'  => esc_attr__( 'No', 'Avada' ),
				],
				'description' => esc_html__( 'Choose to show or hide the page title bar in Live Editor.', 'Avada' ),
				'type'        => 'radio-buttonset',
				'map'         => 'yesno',
				'default'     => 'no',
			],
			'live_footer' => [
				'id'          => 'live_footer',
				'label'       => esc_html__( 'Show Footer in Live Editor', 'Avada' ),
				'choices'     => [
					'yes' => esc_attr__( 'Yes', 'Avada' ),
					'no'  => esc_attr__( 'No', 'Avada' ),
				],
				'description' => esc_html__( 'Choose to show or hide the footer in Live Editor.', 'Avada' ),
				'type'        => 'radio-buttonset',
				'map'         => 'yesno',
				'default'     => 'no',
			],
		],
	];

	return $sections;
}

/* Omit closing PHP tag to avoid "Headers already sent" issues. */