wordpress/wp-content/themes/basic/themify/customizer/class-themify-customizer.php
/**
		 * Checks if the user enabled advanced or basic mode.
		 * Saves option to database to fetch when customizer mode is not indicated by $_GET var.
		 *
		 * @since 2.0.6
		 *
		 * @return bool
		 */
Checks if the user enabled advanced or basic mode.
Saves option to database to fetch when customizer mode is not indicated by $_GET var.



@return bool
Checks if the user enabled advanced or basic mode . Saves option to database to fetch when customizer mode is not indicated by $_GET var . @return bool
function is_advanced_mode() {
			if (!isset($this->mode)) {
				$key = 'themify_customizer';
				if (isset($_GET[$key]) && ( 'advanced' === $_GET[$key] || 'basic' === $_GET[$key] )) {
				    $this->mode =$_GET[$key];
				    delete_option($key);
				    add_option($key,$this->mode, '', false );
				} else {
					$this->mode = 'advanced' === get_option($key, 'basic')? 'advanced' : 'basic';
				}
			}
			return 'advanced' === $this->mode;
		}
function is_advanced_mode ( ) { if ( ! isset ( $ this -> mode ) ) { $ key = 'themify_customizer' ; if ( isset ( $ _GET [ $ key ] ) && ( 'advanced' === $ _GET [ $ key ] || 'basic' === $ _GET [ $ key ] ) ) { $ this -> mode = $ _GET [ $ key ] ; delete_option ( $ key ) ; add_option ( $ key , $ this -> mode , '' , false ) ; } else { $ this -> mode = 'advanced' === get_option ( $ key , 'basic' ) ? 'advanced' : 'basic' ; } } return 'advanced' === $ this -> mode ; }
Checks if the user enabled advanced or basic mode.
Checks if the user enabled advanced or basic mode .
// Check that var set is only 'advanced' or 'basic' since it will be saved to db