<file_sep><?php
/*
|| --------------------------------------------------------------------------------------------
|| Admin Panel Config
|| --------------------------------------------------------------------------------------------
||
|| @package     Dilaz Panel Options
|| @subpackage  Config
|| @since       Dilaz Panel 2.4.1
|| @author      Rodgath, https://github.com/Rodgath
|| @copyright   Copyright (C) 2017, Rodgath LTD
|| @link        https://github.com/Rodgath/Dilaz-Panel
|| @License     GPL-2.0+
|| @License URI http://www.gnu.org/licenses/gpl-2.0.txt
|| 
|| NOTE: Rename this file from "config-sample.php" to "config.php". If you
||       don't rename it, all your config parameters will be overwritten
||       when updating Dilaz Panel Options.
|| 
*/

defined('ABSPATH') || exit;

# Option parameters
$parameters = array(
	'option_name'      => 'dilaz_options', # must be unique. Used to save settings.
	'option_prefix'    => 'dilaz_panel', # must be unique. Not used to save settings.
	'use_type'         => 'theme', # 'theme' if used within a theme OR 'plugin' if used within a plugin
	'default_options'  => true, # whether to load default options. Always set to "false" on a live site.
	'custom_options'   => true, # whether to load custom options. Always set to "false" on a live site.
	'page_slug'        => 'dilaz_panel', # should be unique.
	'page_title'       => __('Dilaz Panel', 'dilaz-panel'), # The text to be displayed in the title tags of the page when the menu is selected.
	'menu_title'       => __('Dilaz Panel', 'dilaz-panel'), # The text to be used for the menu.
	'options_view_cap' => array('manage_options'), # The capabilities required for this menu to be displayed to the user.
	'options_save_cap' => array('manage_options'), # The capabilities required for the user to save the options for this panel.
	'menu_icon'        => '', # dashicon menu icon.
	'menu_position'    => null, # position in menu order. Works with top-level menu only.
	'parent_slug'      => '', # The slug name for the parent menu (or the file name of a standard WordPress admin page).
	'admin_bar_menu'   => true, # 'true' to show panel in admin bar menu.
	'import_export'    => true, # 'true' to enable import/export field.
	'log_title'        => __('Changelog', 'dilaz-panel'),
	'log_url'          => '#', # leave empty to disable.
	'doc_title'        => __('Documentation', 'dilaz-panel'),
	'doc_url'          => '#', # leave empty to disable.
	'support_title'    => __('Support', 'dilaz-panel'),
	'support_url'      => '#', # leave empty to disable.
);<file_sep><?php 
/*
|| --------------------------------------------------------------------------------------------
|| Custom Options' Fields Example
|| --------------------------------------------------------------------------------------------
||
|| @package    Dilaz Panel
|| @subpackage Custom Options
|| @since      Dilaz Panel 1.1
|| @author     Rodgath, https://github.com/Rodgath
|| @copyright  Copyright (C) 2017, Rodgath LTD
|| @link       https://github.com/Rodgath/Dilaz-Panel
|| @license    http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|| 
|| NOTE 1: Rename this file from "custom-options-sample.php" to "custom-options.php". If you
||         don't rename it, all your options and settings will be overwritten
||         when updating Dilaz Panel Options.
|| 
|| NOTE 2: Add all your theme/plugin custom options in this file
|| 
*/

defined('ABSPATH') || exit;


/**
 * Add custom panel into dilaz panel
 *
 * @param array	 $dilaz_panel               all registered dilaz panel
 * @param string $parameters['option_name'] panel option name
 * @param array  $options                   panel options
 *
 * @return array
 */
add_filter('panel_option_filter_'. $parameters['option_name'], function($options) {
	
	# BOX - Test Beta
	# =============================================================================================
	$options[] = array(
		'id'   => 'custom_options_main',
		'name' => __('Custom Options Main', 'dilaz-panel'),
		'type' => 'heading',
		'icon' => 'mdi-settings'
	);
	
		# TAB - Beta Tab 1
		# *****************************************************************************************
		$options[] = array(
			'id'   => 'custom_options_sub',
			'name' => __('Custom Options Sub', 'dilaz-panel'),
			'type' => 'subheading'
		);
			
			# FIELDS - Beta Tab 1
			# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
			$options[] = array(
				'id'	  => 'custom_1',
				'name'	  => __('Custom One:', 'dilaz-panel'),
				'desc'	  => '',
				'type'	  => 'select',
				'options' => array(
					'one'   => __('One', 'dilaz-panel'), 
					'two'   => __('Two', 'dilaz-panel'),
					'three' => __('Three', 'dilaz-panel')
				),
				'std'	  => 'default'
			);
			$options[] = array(
				'id'	  => 'custom_2',
				'name'	  => __('Custom Two:', 'dilaz-panel'),
				'desc'	  => '',
				'type'	  => 'radio',
				'options' => array(
					'yes'   => __('Yes', 'dilaz-panel'), 
					'no'    => __('No', 'dilaz-panel')
				),
				'std'     => 'no'
			);
			$options[] = array(
				'id'	  => 'custom_3',
				'name'	  => __('Custom Three:', 'dilaz-panel'),
				'desc'	  => '',
				'type'	  => 'radio',
				'options' => array(
					'yes'   => __('Yes', 'dilaz-panel'), 
					'no'    => __('No', 'dilaz-panel')
				),
				'std'     => 'no'
			);
	
	return $options;
	
}, 10);


/**
 * Insert panel field before a specific field
 *
 * @param array	 $dilaz_panel               all registered dilaz panel
 * @param string $parameters['option_name'] panel option name
 * @param array  $options                   panel options
 *
 * @return array
 */
add_filter('panel_option_filter_'. $parameters['option_name'], function($options) {
	
	# array data to be inserted
	$insert_custom_data = [];
	
	$insert_custom_data[] = array(
		'id'	  => 'custom_2_b',
		'name'	  => __('INSERTED - Custom Two B:', 'dilaz-panel'),
		'desc'	  => __('Custom Two B inserted before Custom Two C.', 'dilaz-panel'),
		'type'	  => 'radio',
		'options' => array(
			'yes'   => __('Yes', 'dilaz-panel'), 
			'no'    => __('No', 'dilaz-panel')
		),
		'std'     => 'yes'
	);
	
	$insert_custom_data[] = array(
		'id'	  => 'custom_2_c',
		'name'	  => __('INSERTED - Custom Two C:', 'dilaz-panel'),
		'desc'	  => __('Custom Two C inserted before Custom Three.', 'dilaz-panel'),
		'type'	  => 'radio',
		'options' => array(
			'yes'   => __('Yes', 'dilaz-panel'), 
			'no'    => __('No', 'dilaz-panel')
		),
		'std'     => 'yes'
	);
	
	$insert = DilazPanelFunctions::insertField($options, 'custom_options_main', 'custom_3', $insert_custom_data, 'before');
	
	return $insert;
	
}, 10);


/**
 * Insert panel sub-tab inside a specific tab before a specific sub-tab
 *
 * @param array	 $dilaz_panel               all registered dilaz panel
 * @param string $parameters['option_name'] panel option name
 * @param array  $options                   panel options
 *
 * @return array
 */
add_filter('panel_option_filter_'. $parameters['option_name'], function($options) {
	
	# array data to be inserted
	$insert_custom_data = [];
	
		# TAB - INSERTED Sub-Tab
		# *****************************************************************************************
		$insert_custom_data[] = array(
			'id'   => 'inserted_custom_tab_before',
			'name' => __('INSERTED Sub-Tab [Before]', 'dilaz-panel'),
			'type' => 'subheading'
		);
			
			# FIELDS - INSERTED Sub-Tab fields
			# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
			$insert_custom_data[] = array(
				'id'   => 'custom_switch',
				'name' => __('Custom Switch:', 'dilaz-panel'),
				'desc' => __('On/Off switch option.', 'dilaz-panel'),
				'type' => 'switch',
				'options' => array(
					1 => __('On', 'dilaz-panel'), 
					0 => __('Off', 'dilaz-panel'),
				),
				'std'  => 1,
				'class' => ''
			);
			
	$insert = DilazPanelFunctions::insertField($options, 'custom_options_main', 'custom_options_sub', $insert_custom_data, 'before');
	
	return $insert;
	
}, 10);


/**
 * Insert panel sub-tab inside a specific tab as the last sub-tab
 *
 * @param array	 $dilaz_panel               all registered dilaz panel
 * @param string $parameters['option_name'] panel option name
 * @param array  $options                   panel options
 *
 * @return array
 */
add_filter('panel_option_filter_'. $parameters['option_name'], function($options) {
	
	# array data to be inserted
	$insert_custom_data = [];
	
		# TAB - INSERTED Sub-Tab
		# *****************************************************************************************
		$insert_custom_data[] = array(
			'id'   => 'inserted_custom_tab_last',
			'name' => __('INSERTED Sub-Tab [Last]', 'dilaz-panel'),
			'type' => 'subheading'
		);
			
			# FIELDS - INSERTED Sub-Tab fields
			# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
			$insert_custom_data[] = array(
				'id'   => 'custom_buttonset',
				'name' => __('Custom Button Set:', 'dilaz-panel'),
				'desc' => __('Set multiple options using buttonset.', 'dilaz-panel'),
				'type' => 'buttonset',
				'options' => array(
					'yes'   => __('Yes', 'dilaz-panel'), 
					'no'    => __('No', 'dilaz-panel'),
					'maybe' => __('Maybe', 'dilaz-panel')
				),
				'std'  => 'no',
				'class' => ''
			);
			
	$insert = DilazPanelFunctions::insertField($options, 'custom_options_main', '', $insert_custom_data, 'last');
	
	return $insert;
	
}, 10);

<file_sep># CHANGELOG

## Version 2


###### v2.4.10
```
= ADDED - 'item_url' to use-type parameters
= UPDATED - default-options.php
```
###### v2.4.9
```
= IPROVED - 'radioimage' field sample
= ADDED - 'radioimage_tiled' field sample
```
###### v2.4.8
```
= ADDED - WordPress version check
= ADDED - dilaz_panel_get_use_type() to check current panel "use type"
= ADDED - dilaz_panel_theme_params() to fetch theme object parameters
= ADDED - dilaz_panel_plugin_params() to fetch plugin object parameters
= ADDED - new "use_type" check incase the user adds neither 'plugin' nor 'theme'
= ADDED - code field sample options in default-options.php
````
###### v2.4.7
```
= ADDED - PHP version check
= FIXED - 'DilazPanelFunctions' class check in custom-options-sample.php
```
###### v2.4.6
```
= REMOVED 'options_cap' from config parameters
= ADDED 'options_view_cap' to config parameters
= ADDED 'options_save_cap' to config parameters
```
###### v2.4.5
```
= IMPROVED - Import/Export field is now loaded via 'panel_option_filter_$option_name' hook
= ADDED - 'id' fields to 'heading' and 'subheading' field types
= ADDED - custom options example
```
###### v2.4.4
```
= REMOVED - Font Awesome webfont icons for tab icons
= ADDED - Material Design webfont icons for tab icons
```
###### v2.4.3
```
= FIXED - Empty plugin data returned when there's multiple PHP files in the plugin root directory
```
###### v2.4.2
```
= FIXED - Check if 'DilazPanel' class has been loaded in includes/load.php
```
###### v2.4.1
```
= ADDED - /config-sample.php - Helps in preserving config parameters during updates
```
###### v2.4
```
= FIXED - includes/use-type.php bugs
```
###### v2.3
```
= ADDED - 'menu_position' admin parameter
= ADDED - 'parent_slug' admin parameter
```
###### v2.2
```
= ADDED - 'DilazPanel' plugin requirement error notifications
```
###### v2.1
```
= ADDED - includes/load.php file
= IMPROVED - made admin.php file minimal by moving most of the code into includes/load.php
= FIXED - 'user-type' error notifications
```
###### v2.0.1
```
= MOVED - 'option_name' into parameters
= ADDED - panel attributes field (panel-atts)
= ADDED - $option_args field
```
## Version 1
###### v1.0
```
Initial release.
<file_sep><?php
/*
|| --------------------------------------------------------------------------------------------
|| Theme/Plugin Panel Options
|| --------------------------------------------------------------------------------------------
||
|| @package		Dilaz Panel
|| @subpackage	Main Options
|| @since		Dilaz Panel 1.1
|| @author		Rodgath, https://github.com/Rodgath
|| @copyright	Copyright (C) 2017, Rodgath LTD
|| @link		https://github.com/Rodgath/Dilaz-Panel
|| @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|| 
|| NOTE 1: Rename this file from "options-sample.php" to "options.php". If you
||         don't rename it, all your options and settings will be overwritten
||         when updating Dilaz Panel Options.
|| 
|| NOTE 2: Add all your theme/plugin options in this file
|| 
*/

defined('ABSPATH') || exit;

<file_sep><?php
/*
|| --------------------------------------------------------------------------------------------
|| Default Panel Import/Export Option Fields
|| --------------------------------------------------------------------------------------------
||
|| @package    Dilaz Panel
|| @subpackage Import/Export Fields
|| @since      Dilaz Panel 1.1
|| @author     Rodgath, https://github.com/Rodgath
|| @copyright  Copyright (C) 2017, Rodgath LTD
|| @link       https://github.com/Rodgath/Dilaz-Panel
|| @license    http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|| 
*/

defined('ABSPATH') || exit;

/**
 * Add Import/Export option fields to the bottom of the panel
 *
 * @param array	 $dilaz_panel               all registered dilaz panel
 * @param string $parameters['option_name'] panel option name
 * @param array  $options                   panel options
 *
 * @return array
 */
add_filter('panel_option_filter_'. $parameters['option_name'], function($options) {
	
	# MAIN TAB - Export / Import
	# =============================================================================================
	$options[] = array(
		'name' => __('Export / Import', 'dilaz-panel'),
		'type' => 'heading',
		'icon' => 'mdi-download'
	);
		
		# SUB TAB - Export
		# *****************************************************************************************
		$options[] = array(
			'name' => __('Export', 'dilaz-panel'),
			'type' => 'subheading',
		);
			
			# FIELDS - Export
			# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
			$options[] = array(
				'id'    => 'export',
				'name'  => __('Export', 'dilaz-panel'),
				'desc'  => __('Export', 'dilaz-panel'),
				'type'  => 'export',
				'std'   => '',
				'class' => ''
			);
		
		# SUB TAB - Import
		# *****************************************************************************************
		$options[] = array(
			'name' => __('Import', 'dilaz-panel'),
			'type' => 'subheading',
		);
			
			# FIELDS - Import
			# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
			$options[] = array(
				'id'    => 'import',
				'name'  => __('Import', 'dilaz-panel'),
				'desc'  => __('Import', 'dilaz-panel'),
				'type'  => 'import',
				'std'   => '',
				'class' => 'last'
			);
		
		
	return $options;
	
}, 100);<file_sep><?php
/*
|| --------------------------------------------------------------------------------------------
|| Admin Options Panel
|| --------------------------------------------------------------------------------------------
||
|| @package     Dilaz Panel
|| @subpackage  Panel
|| @version     2.4.10
|| @since       Dilaz Panel 1.0
|| @author      Rodgath, https://github.com/Rodgath
|| @copyright   Copyright (C) 2017, Rodgath LTD
|| @link        https://github.com/Rodgath/Dilaz-Panel
|| @License     GPL-2.0+
|| @License URI http://www.gnu.org/licenses/gpl-2.0.txt
|| 
|| NOTE: This options panel requires Dilaz Panel plugin installed. 
|| 
*/

defined('ABSPATH') || exit;

# Load config
file_exists(dirname(__FILE__) .'/config.php') ? require_once dirname(__FILE__) .'/config.php' : require_once dirname(__FILE__) .'/config-sample.php';

# Load metabox options
require_once dirname(__FILE__) .'/includes/load.php';<file_sep><?php
/*
|| --------------------------------------------------------------------------------------------
|| Default Panel Option Fields
|| --------------------------------------------------------------------------------------------
||
|| @package    Dilaz Panel
|| @subpackage Default Options
|| @since      Dilaz Panel 1.1
|| @author     Rodgath, https://github.com/Rodgath
|| @copyright  Copyright (C) 2017, Rodgath LTD
|| @link       https://github.com/Rodgath/Dilaz-Panel
|| @license    http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|| 
|| NOTE 1: This file is for experimetation and demo purposes. Do not use this file to add your options, 
||         othersise all your options and settings will be overwritten when updating this panel.
|| 
|| NOTE 2: Use "options.php" file to add your plugin/theme options.
|| 
*/

defined('ABSPATH') || exit;


# MAIN TAB - General Settings
# =============================================================================================
$options[] = array(
	'id'   => 'general-options',
	'name' => __('General Options', 'dilaz-panel'),
	'type' => 'heading',
	'icon' => 'mdi-settings'
);
	
	# SUB TAB - Simple Options Set
	# *****************************************************************************************
	// $options[] = array(
		// 'id'   => 'general',
		// 'name' => __('General', 'dilaz-panel'),
		// 'type' => 'subheading',
	// );
		
		# FIELDS - Alpha Tab 1
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'info',
			'name' => __('Info Box Title', 'dilaz-panel'),
			'desc' => __('Sample info description goes here.', 'dilaz-panel'),
			'type' => 'info',
		);
		$options[] = array(
			'id'   => 'range',
			'name' => __('Range:', 'dilaz-panel'),
			'desc' => __('Set range between two minimum and maximum values.', 'dilaz-panel'),
			'type' => 'range',
			'args' => array(
				'min'    => array( 8, 	__('Min', 'dilaz-panel') ), 
				'max'    => array( 100,	__('Max', 'dilaz-panel') ), 
				'step'   => '2', 
				'prefix' => '',
				'suffix' => '%'
			),
			'std' => array('min_std' => 20, 'max_std' => 45),
		);
		$options[] = array(
			'id'    => 'slider',
			'name'  => __('Slider:', 'dilaz-panel'),
			'desc'  => __('Select value from range slider.', 'dilaz-panel'),
			'type'  => 'slider',
			'args'  => array('min' => 8, 'max' => 100, 'step' => 2, 'suffix' => '%'),
			'std'   => '40',
			'class' => ''
		);
		// $options[] = array(
			// 'id'   => 'info',
			// 'name' => __('Info Box Title', 'dilaz-panel'),
			// 'desc' => __('Sample info description goes here.', 'dilaz-panel'),
			// 'type' => 'info',
		// );
		$options[] = array(
			'id'   => 'switchenable',
			'name' => __('Switch Enable/Disable:', 'dilaz-panel'),
			'desc' => __('Enable/disable switch option.', 'dilaz-panel'),
			'type' => 'switch',
			'options' => array(
				'enable'  => __('Enable', 'dilaz-panel'), 
				'disable' => __('Disable', 'dilaz-panel'),
			),
			'std'  => 'disable',
			'class' => ''
		);
		$options[] = array(
			'id'   => 'switch',
			'name' => __('Switch:', 'dilaz-panel'),
			'desc' => __('On/Off switch option.', 'dilaz-panel'),
			'type' => 'switch',
			'options' => array(
				1 => __('On', 'dilaz-panel'), 
				0 => __('Off', 'dilaz-panel'),
			),
			'std'  => 0,
			'class' => ''
		);
		$options[] = array(
			'id'   => 'buttonset',
			'name' => __('Button Set:', 'dilaz-panel'),
			'desc' => __('Set multiple options using buttonset.', 'dilaz-panel'),
			'type' => 'buttonset',
			'options' => array(
				'yes'   => __('Yes', 'dilaz-panel'), 
				'no'    => __('No', 'dilaz-panel'),
				'maybe' => __('Maybe', 'dilaz-panel')
			),
			'std'  => 'no',
			'class' => ''
		);
		$options[] = array(
			'id'   => 'background',
			'name' => __('Background:', 'dilaz-panel'),
			'desc' => __('Background style.', 'dilaz-panel'),
			'type' => 'background',
			'options' => array( 
				'image'      => true,
				'repeat'     => true,
				'size'       => true,
				'position'   => true,
				'attachment' => true,
				'origin'     => true,
				'color'      => true,
			),
			'std'   => array( 
				'image'      => '', 
				'repeat'     => '',
				'size'       => '',
				'position'   => '',
				'attachment' => '',
				'origin'     => '',
				'color'      => '', 
			),
			'class' => ''
		);
		$options[] = array(
			'id'    => 'textarea',
			'name'  => __('Textarea:', 'dilaz-panel'),
			'desc'  => __('Enter text content. HTML tags are NOT enabled (use code field for HTML tags).', 'dilaz-panel'),
			'type'  => 'textarea',
			'args'  => array('rows' => 5),
			'std'   => 'Sample textarea content goes here.',
			'class' => ''
		);
		$options[] = array(
			'id'    => 'code',
			'name'  => __('Code:', 'dilaz-panel'),
			'desc'  => __('Enter code content. HTML tags are enabled.', 'dilaz-panel'),
			'type'  => 'code',
			'args'  => array('rows' => 5),
			'std'   => '<b>Sample code content goes here.</b>',
			'class' => ''
		);
		$options[] = array(
			'id'    => 'editor',
			'name'  => __('WP Editor:', 'dilaz-panel'),
			'desc'  => __('Enter text content.', 'dilaz-panel'),
			'type'  => 'editor',
			'args'  => array(
				'editor' => array(
					'wpautop'       => false,
					'media_buttons' => false,
					// 'textarea_rows' => 11,
					'editor_height' => 320,
					// 'tabindex'      => 1,
					'editor_css'    => '',
					'teeny'         => true,
					// 'tinymce'       => array(),
					'quicktags'     => false
				)
			),
			'std'   => 'Sample textarea content goes here.',
			'class' => ''
		);
		$options[] = array(
			'id'    => 'text',
			'name'  => __('Text:', 'dilaz-panel'),
			'desc'  => __('Text field example.', 'dilaz-panel'),
			'type'  => 'text',
			'std'   => '',
			'class' => ''
		);
		$options[] = array(
			'id'	  => 'multi_text_inline',
			'name'	  => __('Multiple Text (Inline 3 Columns):', 'dilaz-panel'),
			'desc'	  => __('Set any number of multiple text field options.', 'dilaz-panel'),
			'type'	  => 'multitext',
			'options' => array(
				'text1' => array('name' => __('Text 1', 'dilaz-panel'), 'default' => __('Sample One', 'dilaz-panel')),
				'text2' => array('name' => __('Text 2', 'dilaz-panel'), 'default' => __('Sample Two', 'dilaz-panel')),
				'text3' => array('name' => __('Text 3', 'dilaz-panel'), 'default' => __('Sample Three', 'dilaz-panel')),
				'text4' => array('name' => __('Text 4', 'dilaz-panel'), 'default' => __('Sample Four', 'dilaz-panel')),
				'text5' => array('name' => __('Text 5', 'dilaz-panel'), 'default' => __('Sample Five', 'dilaz-panel')),
				'text6' => array('name' => __('Text 6', 'dilaz-panel'), 'default' => __('Sample Six', 'dilaz-panel')),
			),
			'args' => array('inline' => true, 'cols' => 3),
		);
		$options[] = array(
			'id'	  => 'multi_text',
			'name'	  => __('Multiple Text (Single Columns):', 'dilaz-panel'),
			'desc'	  => __('Set any number of multiple text field options.', 'dilaz-panel'),
			'type'	  => 'multitext',
			'options' => array(
				'text1' => array('name' => __('Text 1', 'dilaz-panel'), 'default' => 'Sample One'),
				'text2' => array('name' => __('Text 2', 'dilaz-panel'), 'default' => 'Sample Two'),
				'text3' => array('name' => __('Text 3', 'dilaz-panel'), 'default' => 'Sample Three')
			),
			'args' => array(),
		);

# MAIN TAB - Media Options
# =============================================================================================
$options[] = array(
	'id'   => 'media-options',
	'name' => __('Media Options', 'dilaz-panel'),
	'type' => 'heading',
	'icon' => 'mdi-monitor'
);
	
	# SUB TAB - Image
	# *****************************************************************************************
	$options[] = array(
		'id'   => 'image_files_example',
		'name' => __('Image', 'dilaz-panel'),
		'type' => 'subheading',
	);
		
		# FIELDS - Image options
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'image_multiple',
			'name' => __('Image File (Multiple):', 'dilaz-panel'),
			'desc' => __('Select/Upload multiple image files from media library.', 'dilaz-panel'),
			'type' => 'upload',
			'std'  => '',
			'args' => array(
				'file_type' => 'image', 
				'multiple'  => true
			),
		);
		$options[] = array( 
			'id'   => 'image_single',
			'name' => __('Image File:', 'dilaz-panel'),
			'desc' => __('Select/Upload single image file from media library.', 'dilaz-panel'),
			'type' => 'upload',
			'std'  => '',
			'args' => array(
				'file_type' => 'image',
				'show_thumb' => false,
			),
		);
	
	# SUB TAB - Audio
	# *****************************************************************************************
	$options[] = array(
		'id'   => 'audio_files_example',
		'name' => __('Audio', 'dilaz-panel'),
		'type' => 'subheading',
	);
		
		# FIELDS - Audio options
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'audio_multiple',
			'name' => __('Audio File (Multiple):', 'dilaz-panel'),
			'desc' => __('Select/Upload multiple audio files from media library.', 'dilaz-panel'),
			'type' => 'upload',
			'std'  => '',
			'args' => array(
				'file_type' => 'audio',  
				'multiple'  => true
			),
		);
		$options[] = array(
			'id'   => 'audio_single',
			'name' => __('Audio File:', 'dilaz-panel'),
			'desc' => __('Select/Upload single audio file from media library.', 'dilaz-panel'),
			'type' => 'upload',
			'std'  => '',
			'args' => array(
				'file_type' => 'audio',
			),
		);
	
	# SUB TAB - Video
	# *****************************************************************************************
	$options[] = array(
		'id'   => 'video_files_example',
		'name' => __('Video', 'dilaz-panel'),
		'type' => 'subheading',
	);
		
		# FIELDS - Video options
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'video_multiple',
			'name' => __('Video File (Multiple):', 'dilaz-panel'),
			'desc' => __('Select/Upload multiple video files from media library.', 'dilaz-panel'),
			'type' => 'upload',
			'std'  => '',
			'args' => array(
				'file_type' => 'video',
				'multiple'  => true
			),
		);
		$options[] = array(
			'id'   => 'video_single',
			'name' => __('Video File:', 'dilaz-panel'),
			'desc' => __('Select/Upload single video file from media library.', 'dilaz-panel'),
			'type' => 'upload',
			'std'  => '',
			'args' => array(
				'file_type' => 'video',
			),
		);

# MAIN TAB - Color Options
# =============================================================================================
$options[] = array(
	'id'   => 'color-options',
	'name' => __('Color Options', 'dilaz-panel'),
	'type' => 'heading',
	'icon' => 'mdi-format-color-fill'
);
	
	# SUB TAB - Color
	# *****************************************************************************************
	// $options[] = array(
		// 'id'   => 'color',
		// 'name' => __('Color', 'dilaz-panel'),
		// 'type' => 'subheading',
	// );
		
		# FIELDS - Color options
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'link',
			'name' => __('Link Example:', 'dilaz-panel'),
			'desc' => __('Link multiple color properties.', 'dilaz-panel'),
			'type' => 'multicolor',
			'options' => array(
				'regular' => array('color' => '#111111', 'name' => __('Regular', 'dilaz-panel')),
				'hover'   => array('color' => '#333333', 'name' => __('Hover', 'dilaz-panel')),
				'visited' => array('color' => '#555555', 'name' => __('Visited', 'dilaz-panel')),
				'active'  => array('color' => '#999999', 'name' => __('Active', 'dilaz-panel')),
			),
		);
		$options[] = array(
			'id'   => 'multicolor',
			'name' => __('Multicolor:', 'dilaz-panel'),
			'desc' => __('General multiple color properties.', 'dilaz-panel'),
			'type' => 'multicolor',
			'options' => array(
				'color1' => array('color' => '#111111', 'name' => __('Color 1', 'dilaz-panel')),
				'color2' => array('color' => '#333333', 'name' => __('Color 2', 'dilaz-panel')),
				'color3' => array('color' => '#555555', 'name' => __('Color 3', 'dilaz-panel')),
				'color4' => array('color' => '#777777', 'name' => __('Color 4', 'dilaz-panel')),
				'color5' => array('color' => '#999999', 'name' => __('Color 5', 'dilaz-panel')),
			),
		);
		$options[] = array(
			'id'   => 'color',
			'name' => __('Color:', 'dilaz-panel'),
			'desc' => __('Single color option.', 'dilaz-panel'),
			'type' => 'color', 
			'std'  => '#ff2211',
			'class' => ''
		);

# MAIN TAB - General Settings
# =============================================================================================
$options[] = array(
	'id'   => 'repeatable-options',
	'name' => __('Repeatable Options', 'dilaz-panel'),
	'type' => 'heading',
	'icon' => 'mdi-view-list'
);
	
	# TAB - Repeatable Options Set
	# *****************************************************************************************
	// $options[] = array(
		// 'id'   => '',
		// 'name' => __('', 'dilaz-panel'),
		// 'type'  => 'subheading'
	// );
		
		# FIELDS - Alpha Tab 1
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'repeatable_one',
			'name' => __('Repeatable (Single Field per Row):', 'dilaz-panel'),
			'desc' => __('Single row items repeatable field. ', 'dilaz-panel'),
			'type' => 'repeatable',
			'args' => array(
				'sortable' => true,
				'removable' => true,
				'add_more' => true,
				'add_text' => __('Add More', 'dilaz-panel'),
			),
			'options' => array(
				array(
					array('label' => '', 'value' => 'Row 1 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 2 - Value 2'), 
				)
			),
		);
		$options[] = array(
			'id'   => 'repeatable_two',
			'name' => __('Repeatable (Multiple Fields per Row):', 'dilaz-panel'),
			'desc' => __('Multiple row items repeatable field. You can add any number item fields per row.', 'dilaz-panel'),
			'type' => 'repeatable',
			'args' => array(
				'sortable' => true,
				'removable' => true,
				'add_more' => true,
				'add_text' => __('Add More Custom', 'dilaz-panel'),
			),
			'options' => array(
				array(
					array('label' => 'Label One', 'value' => 'Row 1 - Value 1', 'size' => 15), 
					array('label' => 'Label Two', 'value' => 'Row 1 - Value 2', 'size' => 15), 
					array('label' => 'Label Three', 'value' => 'Row 1 - Value 3', 'size' => 15), 
					array('label' => 'Label Four', 'value' => 'Row 1 - Value 4', 'size' => 15), 
				),
				array(
					array('label' => 'Label One', 'value' => 'Row 2 - Value 1', 'size' => 15), 
					array('label' => 'Label Two', 'value' => 'Row 2 - Value 2', 'size' => 15), 
					array('label' => 'Label Three', 'value' => 'Row 2 - Value 3', 'size' => 15), 
					array('label' => 'Label Four', 'value' => 'Row 2 - Value 4', 'size' => 15), 
				)
			),
		);
		$options[] = array(
			'id'   => 'repeatable_three',
			'name' => __('Repeatable (Add More Field Disabled):', 'dilaz-panel'),
			'desc' => __('Add more button is disabled.', 'dilaz-panel'),
			'type' => 'repeatable',
			'args' => array(
				'sortable' => true,
				'removable' => true,
				'add_more' => false,
			),
			'options' => array(
				array(
					array('label' => '', 'value' => 'Row 1 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 2 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 3 - Value 1'), 
				)
			),
		);
		$options[] = array(
			'id'   => 'repeatable_four',
			'name' => __('Repeatable (Sorting Disabled):', 'dilaz-panel'),
			'desc' => __('Field sorting is disabled.', 'dilaz-panel'),
			'type' => 'repeatable',
			'args' => array(
				'sortable' => false,
				'removable' => true,
				'add_more' => true,
			),
			'options' => array(
				array(
					array('label' => '', 'value' => 'Row 1 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 2 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 3 - Value 1'), 
				)
			),
		);
		$options[] = array(
			'id'   => 'repeatable_five',
			'name' => __('Repeatable (Sorting Disabled for First 2 Fields):', 'dilaz-panel'),
			'desc' => __('Field sorting is disabled for the first 2 items.', 'dilaz-panel'),
			'type' => 'repeatable',
			'args' => array(
				'sortable' => true,
				'not_sortable' => 2,
				'add_more' => true,
			),
			'options' => array(
				array(
					array('label' => '', 'value' => 'Row 1 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 2 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 3 - Value 1'), 
				)
			),
		);
		$options[] = array(
			'id'   => 'repeatable_six',
			'name' => __('Repeatable (Removal Disabled):', 'dilaz-panel'),
			'desc' => __('Field removal is disabled.', 'dilaz-panel'),
			'type' => 'repeatable',
			'args' => array(
				'removable' => false,
				'add_more' => true,
			),
			'options' => array(
				array(
					array('label' => '', 'value' => 'Row 1 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 2 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 3 - Value 1'), 
				)
			),
		);
		$options[] = array(
			'id'   => 'repeatable_seven',
			'name' => __('Repeatable (Removal Disabled for the 1st and 2nd Fields):', 'dilaz-panel'),
			'desc' => __('Field removal is disabled for the 1st and 2nd items.', 'dilaz-panel'),
			'type' => 'repeatable',
			'args' => array(
				'not_removable' => 2,
				'add_more' => true,
			),
			'options' => array(
				array(
					array('label' => '', 'value' => 'Row 1 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 2 - Value 1'), 
				),
				array(
					array('label' => '', 'value' => 'Row 3 - Value 1'), 
				)
			),
		);

# MAIN TAB - Typography Options
# =============================================================================================
$options[] = array(
	'id'   => 'typography-options',
	'name' => __('Typography Options', 'dilaz-panel'),
	'type' => 'heading',
	'icon' => 'mdi-format-font'
);
	
	# SUB TAB - Typography
	# *****************************************************************************************
	// $options[] = array(
		// 'id'   => 'typography',
		// 'name' => __('Typography', 'dilaz-panel'),
		// 'type' => 'subheading',
	// );
		
		# FIELDS - Typography options
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'font',
			'name' => __('Font:', 'dilaz-panel'),
			'desc' => __('Typography style with many option properties.', 'dilaz-panel'),
			'type' => 'font',
			'options' => array( 
				'family' => true,
				'backup' => true, 
				'subset' => true,
				'weight' => true,
				'size'   => true, 
				'height' => true, 
				'style'  => true, 
				'case'   => true, 
				'color'  => true
			),
			'std' => array(
				'family' => 'Trebuchet', 
				'backup' => false, 
				'subset' => false, 
				'weight' => false,
				'size'   => '18', 
				'height' => false,
				'style'  => false,
				'case'   => false,
				'color'  => false,
			),
			'class' => ''
		);
		$options[] = array(
			'id'   => 'font_2',
			'name' => __('Font 2:', 'dilaz-panel'),
			'desc' => __('Typography style with few option properties.', 'dilaz-panel'),
			'type' => 'font',
			'options' => array( 
				'family' => true, 
				'backup' => true, 
				'subset' => false, 
				'weight' => true, 
				'size'   => true, 
				'height' => true, 
				'style'  => true, 
				'case'   => true, 
				'color'  => true, 
			),
			'std' => array(
				'family' => 'Trebuchet', 
				'backup' => false,
				'subset' => false,
				'weight' => false,
				'size'   => false,
				'height' => false,
				'style'  => 'italic',
				'case'   => false,
				'color'  => false,
			),
			'class' => ''
		);

# MAIN TAB - Choice Options
# =============================================================================================
$options[] = array(
	'id'   => 'choice-options',
	'name' => __('Choice Options', 'dilaz-panel'),
	'type' => 'heading',
	'icon' => 'mdi-tune'
);
	
	# SUB TAB - Choice
	# *****************************************************************************************
	// $options[] = array(
		// 'id'   => 'choice',
		// 'name' => __('Choice', 'dilaz-panel'),
		// 'type' => 'subheading',
	// );
	
		# FIELDS - Choice options
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'   => 'radioimage',
			'name' => __('Radio Image:', 'dilaz-panel'),
			'desc' => __('Images used as radio option fields.', 'dilaz-panel'),
			'type' => 'radioimage',
			'options' => array(
				'teal.css'  => array('src' => $parameters['dir_url'] .'assets/images/colors/teal.png', 'alt' => 'teal'),
				'cyan.css'  => array('src' => $parameters['dir_url'] .'assets/images/colors/cyan.png', 'alt' => 'cyan'),
				'amber.css' => array('src' => $parameters['dir_url'] .'assets/images/colors/amber.png', 'alt' => 'amber'),
			),
			'std'   => 'amber.css',
			'class' => ''
		);
		$options[] = array(
			'id'   => 'radioimage_tiled',
			'name' => __('Radio Image Tiled Background:', 'dilaz-panel'),
			'desc' => __('Images used as radio option fields.', 'dilaz-panel'),
			'type' => 'radioimage',
			'options' => array(
				$parameters['dir_url'] .'assets/images/bg/crissXcross.png' => array('src' => $parameters['dir_url'] .'assets/images/bg/crissXcross.png', 'alt' => 'crissXcross'),
				$parameters['dir_url'] .'assets/images/bg/nistri.png' => array('src' => $parameters['dir_url'] .'assets/images/bg/nistri.png', 'alt' => 'nistri'),
			),
			'std'   => $parameters['dir_url'] .'assets/images/bg/nistri.png',
			'args'  => array('tiled_bg' => true),
			'class' => ''
		);
		$options[] = array(
			'id'   => 'radio',
			'name' => __('Radio:', 'dilaz-panel'),
			'desc' => __('Tiled radio options selection.', 'dilaz-panel'),
			'type' => 'radio',
			'options' => array(
				'one'   => __('One', 'dilaz-panel'), 
				'two'   => __('Two', 'dilaz-panel'),
				'three' => __('Three', 'dilaz-panel')
			),
			'std'   => 'two',
			'class' => '',
		);
		$options[] = array(
			'id'   => 'radio_inline',
			'name' => __('Radio Inline:', 'dilaz-panel'),
			'desc' => __('Inline radio options selection.', 'dilaz-panel'),
			'type' => 'radio',
			'options' => array(
				'one'   => __('One', 'dilaz-panel'),
				'two'   => __('Two', 'dilaz-panel'),
				'three' => __('Three', 'dilaz-panel'),
			),
			'std'   => 'two',
			'class' => '',
			'args'  => array('inline' => true),
		);
		$options[] = array(
			'id'   => 'multicheck',
			'name' => __('Multicheck:', 'dilaz-panel'),
			'desc' => __('Tiled multiple checkbox options selection.', 'dilaz-panel'),
			'type' => 'multicheck',
			'options' => array(
				'mon' => __('Monday', 'dilaz-panel'),
				'tue' => __('Tuesday', 'dilaz-panel'),
				'wed' => __('Wednesday', 'dilaz-panel'),
				'thu' => __('Thursday', 'dilaz-panel'),
				'fri' => __('Friday', 'dilaz-panel'),
				'sat' => __('Saturday', 'dilaz-panel'),
				'sun' => __('Sunday', 'dilaz-panel')
			),
			'std'   => array('thu', 'sat', 'sun'),
			'class' => '',
		);
		$options[] = array(
			'id'   => 'multicheck_inline',
			'name' => __('Multicheck Inline:', 'dilaz-panel'),
			'desc' => __('Inline multiple checkbox options selection.', 'dilaz-panel'),
			'type' => 'multicheck',
			'options' => array(
				'mon' => __('Monday', 'dilaz-panel'),
				'tue' => __('Tuesday', 'dilaz-panel'),
				'wed' => __('Wednesday', 'dilaz-panel'),
				'thu' => __('Thursday', 'dilaz-panel'),
				'fri' => __('Friday', 'dilaz-panel'),
				'sat' => __('Saturday', 'dilaz-panel'),
				'sun' => __('Sunday', 'dilaz-panel')
			),
			'std'   => array('tue', 'fri'),
			'class' => '',
			'args'  => array('inline' => true, 'cols' => 4),
		);
		$options[] = array(
			'id'    => 'checkbox',
			'name'  => __('Checkbox:', 'dilaz-panel'),
			'desc'  => __('Select the preferred layout type.', 'dilaz-panel'),
			'type'  => 'checkbox',
			'std'   => true,
			'class' => ''
		);
		$options[] = array(
			'id'   => 'term_select',
			'name' => __('Term Select:', 'dilaz-panel'),
			'desc' => '',
			'type' => 'queryselect',
			'std'  => '',
			'args' => array(
				'select2'      => 'select2multiple',
				'query_type'   => 'term',
				'placeholder'  => __('Select category', 'dilaz-panel'),
				'select2width' => '50%',
				'min_input'    => 1,
				'max_input'    => 100,
				'max_options'  => 10,
				'query_args'   => array(
					'taxonomy'   => 'category',
					'hide_empty' => false,
					'orderby'    => 'term_id',
					'order'      => 'ASC',
				),
			),
		);
		$options[] = array(
			'id'   => 'user_select',
			'name' => __('User Select:', 'dilaz-panel'),
			'desc' => '',
			'type' => 'queryselect',
			'std'  => '',
			'args' => array(
				'select2'      => 'select2multiple',
				'query_type'   => 'user',
				'placeholder'  => __('Select user', 'dilaz-panel'),
				'select2width' => '50%',
				'min_input'    => 1,
				'max_input'    => 100,
				'max_options'  => 10,
				'query_args'   => array(
					'orderby' => 'ID',
					'order'   => 'ASC',
				),
			),
		);
		$options[] = array(
			'id'   => 'post_select',
			'name' => __('Post Select:', 'dilaz-panel'),
			'desc' => '',
			'type' => 'queryselect',
			'std'  => '',
			'args' => array(
				'select2'      => 'select2multiple',
				'query_type'   => 'post',
				'placeholder'  => __('Type to select a post', 'dilaz-panel'),
				'select2width' => '50%',
				'min_input'    => 1,
				'max_input'    => 100,
				'max_options'  => 10,
				'query_args'   => array(
					'posts_per_page' => -1,
					'post_status'    => array('publish'),
					'post_type'      => array('post'),
					'order'          => 'ASC',
					'orderby'        => 'ID',
				),
			),
		);
		$options[] = array(
			'id'   => 'page_select',
			'name' => __('Page Select:', 'dilaz-panel'),
			'desc' => '',
			'type' => 'queryselect',
			'std'  => '',
			'args' => array(
				'select2'      => 'select2multiple',
				'query_type'   => 'page',
				'placeholder'  => __('Type to select a page', 'dilaz-panel'),
				'select2width' => '50%',
				'min_input'    => 1,
				'max_input'    => 100,
				'max_options'  => 10,
				'query_args'   => array(
					'posts_per_page' => -1,
					'post_status'    => array('publish'),
					'post_type'      => array('page'),
					'order'          => 'ASC',
					'orderby'        => 'ID',
				),
			),
		);
		$options[] = array(
			'id'   => 'select_multiple_two',
			'name' => __('"Select2" Multi-Select Field:', 'dilaz-panel'),
			'desc' => __('Select the preferred header type', 'dilaz-panel'),
			'type' => 'multiselect',
			'options' => array( 
				'one'   => __('One', 'dilaz-panel'), 
				'two'   => __('Two', 'dilaz-panel'),
				'three' => __('Three', 'dilaz-panel'),
				'four'  => __('Four', 'dilaz-panel')
			),
			'args'  => array( 'select2' => 'select2multiple' ),
			'std'   => 'normal',
			'class' => ''
		);
		$options[] = array(
			'id'   => 'select_multiple_one',
			'name' => __('Default Milti-Select Field:', 'dilaz-panel'),
			'desc' => __('Select the preferred header type', 'dilaz-panel'),
			'type' => 'multiselect',
			'options' => array( 
				'one'   => __('One', 'dilaz-panel'), 
				'two'   => __('Two', 'dilaz-panel'),
				'three' => __('Three', 'dilaz-panel'),
				'four'  => __('Four', 'dilaz-panel')
			),
			'std'   => 'normal',
			'class' => ''
		);
		$options[] = array(
			'id'   => 'select_two',
			'name' => __('"Select2" Select Field:', 'dilaz-panel'),
			'desc' => __('Select the preferred header type', 'dilaz-panel'),
			'type' => 'select',
			'options' => array( 
				'one'   => __('One', 'dilaz-panel'), 
				'two'   => __('Two', 'dilaz-panel'),
				'three' => __('Three', 'dilaz-panel'),
				'four'  => __('Four', 'dilaz-panel')
			),
			'args'  => array( 'select2' => 'select2single' ),
			'std'   => 'normal',
			'class' => ''
		);
		$options[] = array(
			'id'   => 'select_one',
			'name' => __('Default Select Field:', 'dilaz-panel'),
			'desc' => __('Select the preferred header type', 'dilaz-panel'),
			'type' => 'select',
			'options' => array( 
				'one'   => __('One', 'dilaz-panel'), 
				'two'   => __('Two', 'dilaz-panel'),
				'three' => __('Three', 'dilaz-panel'),
				'four'  => __('Four', 'dilaz-panel')
			),
			'std'   => 'normal',
			'class' => ''
		);
		
# TAB - Conditionals
# =============================================================================================
$options[] = array(
	'id'   => 'conditionals',
	'name' => __('Conditionals', 'dilaz-panel'),
	'type' => 'heading',
	'icon' => 'mdi-toggle-switch'
);
	
	# SUB TAB - Conditionals
	# *****************************************************************************************
	// $options[] = array(
		// 'id'   => 'conditionals',
		// 'name' => __('Conditionals', 'dilaz-panel'),
		// 'type' => 'subheading',
	// );
		
		# FIELDS - Conditional options
		# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
		$options[] = array(
			'id'	  => 'continent',
			'name'	  => __('Continent:', 'dilaz-panel'),
			'desc'	  => '',
			'type'	  => 'select',
			'options' => array(
				''   => __('Select Continent', 'dilaz-panel'),
				'eu' => __('Europe', 'dilaz-panel'),
				'na' => __('North America', 'dilaz-panel'),
			),
			'std'  => 'default',
			'args' => array('inline' => true),
		);
		$options[] = array(
			'id'      => 'eu_country',
			'name'    => __('Europe Country:', 'dilaz-panel'),
			'desc'    => '',
			'type'    => 'radio',
			'options' => array(
				'de' => __('Germany', 'dilaz-panel'),
				'gb' => __('United Kingdom', 'dilaz-panel'),
			),
			'std'      => 'default',
			'args'     => array('inline' => true),
			'req_args' => array(
				'continent' => 'eu'
			),
			'req_action' => 'show',
		);
		$options[] = array(
			'id'      => 'na_country',
			'name'    => __('North America Country:', 'dilaz-panel'),
			'desc'    => '',
			'type'    => 'radio',
			'options' => array(
				'us' => __('United States', 'dilaz-panel'),
				'ca' => __('Canada', 'dilaz-panel'),
			),
			'std'      => 'default',
			'args'     => array('inline' => true),
			'req_args' => array(
				'continent' => 'na'
			),
			'req_cond'   => 'AND',
			'req_action' => 'show',
		);
		$options[] = array(
			'id'      => 'de_division',
			'name'    => __('Germany Division:', 'dilaz-panel'),
			'desc'    => '',
			'type'    => 'multicheck',
			'options' => array(
				'hh' => __('Hamburg', 'dilaz-panel'),
				'be' => __('Berlin', 'dilaz-panel'),
				'sh' => __('Schleswig-Holstein', 'dilaz-panel'),
			),
			'std'      => 'default',
			'args'     => array('inline' => true),
			'req_args' => array(
				'continent'  => 'eu',
				'eu_country' => 'de'
			),
			'req_cond'   => 'AND',
			'req_action' => 'show',
		);
		$options[] = array(
			'id'      => 'gb_division',
			'name'    => __('United Kingdom Division:', 'dilaz-panel'),
			'desc'    => '',
			'type'    => 'multicheck',
			'options' => array(
				'abd' => __('Aberdeen City', 'dilaz-panel'),
				'bir' => __('Birmingham', 'dilaz-panel'),
				'lce' => __('Leicester', 'dilaz-panel'),
				'man' => __('Manchester', 'dilaz-panel'),
			),
			'std'      => 'default',
			'args'     => array('inline' => true),
			'req_args' => array(
				'continent'  => 'eu',
				'eu_country' => 'gb'
			),
			'req_cond'   => 'AND',
			'req_action' => 'show',
		);
		$options[] = array(
			'id'      => 'us_division',
			'name'    => __('US State:', 'dilaz-panel'),
			'desc'    => '',
			'type'    => 'multicheck',
			'options' => array(
				'wa' => __('Washington', 'dilaz-panel'),
				'oh' => __('Ohio', 'dilaz-panel'),
				'mt' => __('Montana', 'dilaz-panel'),
				'ga' => __('Georgia', 'dilaz-panel'),
			),
			'std'      => 'default',
			'args'     => array('inline' => true),
			'req_args' => array(
				'continent'  => 'na',
				'na_country' => 'us'
			),
			'req_cond'   => 'AND',
			'req_action' => 'show',
		);
		$options[] = array(
			'id'      => 'us_division',
			'name'    => __('Canada Division:', 'dilaz-panel'),
			'desc'    => '',
			'type'    => 'multicheck',
			'options' => array(
				'on' => __('Ontario', 'dilaz-panel'),
				'sk' => __('Saskatchewan', 'dilaz-panel'),
				'qc' => __('Quebec', 'dilaz-panel'),
			),
			'std'      => 'default',
			'args'     => array('inline' => true),
			'req_args' => array(
				'continent'  => 'na',
				'na_country' => 'ca'
			),
			'req_cond'   => 'AND',
			'req_action' => 'show',
		);
		
	
return wp_parse_args($options, $options);<file_sep># Dilaz Panel Options Sample
This helps you to integrate [Dilaz Panel Plugin](https://github.com/Rodgath/Dilaz-Panel) into your WordPress theme/plugin development. 

## How to use
1. Download and install [Dilaz Panel](https://github.com/Rodgath/Dilaz-Panel/archive/master.zip) plugin.
2. Download [Dilaz Panel Options](https://github.com/Rodgath/Dilaz-Panel-Options/archive/master.zip).
3. Add *Dilaz-Panel-Options* to the root directory of your theme or plugin. <br />
   i) For example: <br />
      > *wp-content/themes/__theme-name__/Dilaz-Panel-Options*
      
      __OR__
      
      > *wp-content/plugins/__plugin-name__/Dilaz-Panel-Options* <br />
      
   ii) You can optionally rename *Dilaz-Panel-Options* folder.
4. Add the code provided below in your themes __functions.php__ file or in your plugin's __main/index__ file. 
```php
/**
 * Admin Panel Options
 */
require_once 'Dilaz-Panel-Options/admin.php';
```
5. Open ```Dilaz-Panel-Options``` folder and rename ```config-sample.php``` to ```config.php```.
6. Open ```Dilaz-Panel-Options/config.php``` and edit the parameters as you want. Simple guidelines are provided beside each parameter setting.
7. Open ```Dilaz-Panel-Options/options``` folder and rename ```options-sample.php``` to ```options.php```.
8. Open ```Dilaz-Panel-Options/options/options.php``` and add your admin options. 

***

__NOTE:__
1. ```Dilaz-Panel-Options/custom-options-sample.php``` contains examples showing how to use actions hooks to add custom admin options to any Dilaz Panel implementation.
2. ```Dilaz-Panel-Options/default-options.php``` contains default options as examples for all possible admin fields.
3. ```Dilaz-Panel-Options/import-export.php``` contains import/export option settings.

***

## *config.php* parameters

| Parameter     | Type    | Default | Since (Dilaz Panel) | Details |
| :------------- |:----------|:----------| :-------------| :----- |
| `option_name`   | *string* | dilaz_options | v2.3 | Used to save settings. Must be unique. |
| `option_prefix` | *string* | dilaz_panel | v2.0 | Not used to save settings. Must be unique. |
| `use_type` | *string* | theme | v2.0 | Where the panel is used. Enter `theme` if used within a theme OR `plugin` if used within a plugin |
| `default_options` | *boolean* | true | v2.0 | Whether to load default options. |
| `custom_options` | *boolean* | true | v2.0 | Whether to load custom options. |
| `page_slug` | *string* | dilaz_panel | v2.0 | Must be unique. |
| `page_title` | *string* | Dilaz Panel | v2.0 | The text to be displayed in the title tags of the page when the menu is selected. |
| `menu_title` | *string* | Dilaz Panel | v2.0 | The text to be used for the menu. |
| `options_view_cap` | *array* | array('manage_options') | v2.7.8 | The capabilities required for this menu to be displayed to the user. |
| `options_save_cap` | *array* | array('manage_options') | v2.7.8 | The capabilities required for the user to save the options for the panel. |
| `menu_icon` | *string* | null | v2.0 | Dashicon menu icon. |
| `menu_position` | *int* | null | v2.3 | Position in menu order. Works with top-level menu only. |
| `parent_slug` | *string* | null | v2.3 | The slug name for the parent menu (or the file name of a standard WordPress admin page). |
| `admin_bar_menu` | *boolean* | true | v2.0 | 'true' to show panel in admin bar menu. |
| `import_export` | *boolean* | true | v2.0 | 'true' to enable import/export field. |
| `log_title` | *string* | Changelog | v2.0 | Changlelog title. |
| `log_url` | *string* | # | v2.0 | Changlelog url. Leave empty to disable. |
| `doc_title` | *string* | Documentation | v2.0 | Documentation title. |
| `doc_url` | *string* | # | v2.0 | Documentation url. Leave empty to disable. |
| `support_title` | *string* | Support | v2.0 | Support title. |
| `support_url` | *string* | # | v2.0 | Support url. Leave empty to disable. |
| ~~`options_cap`~~ | *string* | manage_options | v2.0 | __Deprecated__ since v2.7.8. |

*** 

## Download 

To get a local working copy of the development repository, do:

    git clone https://github.com/Rodgath/Dilaz-Panel-Options.git

Alternatively, you can download the latest development version as a tarball
as follows:

    wget --content-disposition https://github.com/Rodgath/Dilaz-Panel-Options/tarball/master

OR 

    curl -LJO https://github.com/Rodgath/Dilaz-Panel-Options/tarball/master
    
 
