Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : advanced.php
<?php

tie_build_theme_option(
	array(
		'title' => esc_html__( 'Advanced Settings', TIELABS_TEXTDOMAIN ),
		'id'    => 'advanced-settings-tab',
		'type'  => 'tab-title',
	));

tie_build_theme_option(
	array(
		'type'  => 'header',
		'id'    => 'advanced-settings',
		'title' => esc_html__( 'Advanced Settings', TIELABS_TEXTDOMAIN ),
	));

tie_build_theme_option(
	array(
		'name' => esc_html__( 'Add a link to the theme options page to the Toolbar', TIELABS_TEXTDOMAIN ),
		'id'   => 'theme_toolbar',
		'type' => 'checkbox',
	));

tie_build_theme_option(
	array(
		'name' => esc_html__( 'Use the Classic Widgets Page', TIELABS_TEXTDOMAIN ),
		'hint' => esc_html__( 'Disable the new Widgets Block editor added in WordPress 5.8', TIELABS_TEXTDOMAIN ),
		'id'   => 'classic_widgets_page',
		'type' => 'checkbox',
	));

tie_build_theme_option(
	array(
		'name' => esc_html__( 'Disable the custom styles in the editor', TIELABS_TEXTDOMAIN ),
		'id'   => 'disable_editor_styles',
		'type' => 'checkbox',
	));

tie_build_theme_option(
	array(
		'name' => esc_html__( 'Disable the Posts Switcher', TIELABS_TEXTDOMAIN ),
		'id'   => 'disable_switcher',
		'hint' => esc_html__( 'This will disable the Switcher page, all notifications and hide the plugin from the Bundeled plugins installing page.', TIELABS_TEXTDOMAIN ),
		'type' => 'checkbox',
	));

tie_build_theme_option(
	array(
		'title' => esc_html__( 'Advanced Menus Options', TIELABS_TEXTDOMAIN ),
		'id'    => 'mega-menus-head',
		'type'  => 'header',
	));
	
tie_build_theme_option(
	array(
		'name'   => esc_html__( 'Disable ALL built-in advanced Menus options', TIELABS_TEXTDOMAIN ),
		'id'     => 'disable_advanced_menus',
		'type'   => 'checkbox',
		'toggle' => '',
		'class'  => 'advaned-menus-options',
		'hint'   => esc_html__( 'Use this option to disable the built-in advanced menus options if you want to use a third party mega menus plugin.', TIELABS_TEXTDOMAIN ),
	));

$backend_megamenus_options = array(
	'color' => esc_html__( 'Color', TIELABS_TEXTDOMAIN ),
	'label' => esc_html__( 'Label', TIELABS_TEXTDOMAIN ),
	'icon'  => esc_html__( 'Icon', TIELABS_TEXTDOMAIN ),
	'mega'  => esc_html__( 'Mega Menus', TIELABS_TEXTDOMAIN ),
);

echo '<div class="advaned-menus-options">';
	foreach ( $backend_megamenus_options as $menu_option => $menu_text ) {
		tie_build_theme_option(
			array(
				'name' => sprintf( esc_html__( 'Disable the %s options', TIELABS_TEXTDOMAIN ), '"'.$menu_text.'"' ),
				'id'   => 'disable_advanced_menus_'.$menu_option,
				'type' => 'checkbox',
			));
	}
echo '</div>';
	
tie_build_theme_option(
	array(
		'type'  => 'header',
		'id'    => 'reset-all-settings',
		'title' => esc_html__( 'Reset All Settings', TIELABS_TEXTDOMAIN ),
	));

	?>

	<div class="option-item">
		<a id="tie-reset-settings" class="tie-primary-button button button-primary button-hero tie-button-red" href="<?php print wp_nonce_url( admin_url( 'admin.php?page=tie-theme-options&reset-settings' ), 'reset-theme-settings', 'reset_nonce' ) ?>" data-message="<?php esc_html_e( 'This action can not be Undo. Clicking "OK" will reset your theme options to the default installation. Click "Cancel" to stop this operation.', TIELABS_TEXTDOMAIN); ?>"><?php esc_html_e( 'Reset All Settings', TIELABS_TEXTDOMAIN ); ?></a>
	</div>

© 2026 GrazzMean