wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-options.php
/**
		 * Add maintenance in plugin setting page.
		 *
		 * @access public
		 */
Add maintenance in plugin setting page.
@access public
Add maintenance in plugin setting page . @access public
function builder_maintenance_field() {
			$pre = $this->current_tab . '_maintenance_';
			$output = sprintf('<p><label for="%s" class="label"><input type="checkbox" id="%s" name="%s"%s value="1">%s</label></p><p class="description">%s</p>',
				$pre . 'mode' ,
				$pre . 'mode' ,
				$this->option_name . '[' .$pre . 'mode]' ,
				checked( true, isset($this->option_value[$pre.'mode']), false ) ? ' checked="checked"' : '',
				__( 'Enable Maintenance Mode', 'themify' ),
				__( 'Once it is enabled, only logged-in useres can see your site.', 'themify' )
			);
			$selected_value = !empty($this->option_value[$pre.'page']) ? $this->option_value[$pre.'page'] : '';
			$selected_page = empty($selected_value) ? '' : get_page_by_path( $selected_value, OBJECT, 'page' );
			$output .= sprintf('<br/><div class="tb_maintenance_page"><select id="%s" name="%s">%s<option>%s</option></select><p class="description">%s</p></div>',
				$pre . 'page' ,
				$this->option_name . '[' .$pre . 'page]' ,
				empty($selected_value) ? '<option></option>' : sprintf('<option value="%s" selected="selected">%s</option>',$selected_value,$selected_page->post_title),
				__( 'Loading...', 'themify' ),
				__( 'Select a page to show for public users', 'themify' )
			);
			echo $output;
		}
function builder_maintenance_field ( ) { $ pre = $ this -> current_tab . '_maintenance_' ; $ output = sprintf ( '<p><label for="%s" class="label"><input type="checkbox" id="%s" name="%s"%s value="1">%s</label></p><p class="description">%s</p>' , $ pre . 'mode' , $ pre . 'mode' , $ this -> option_name . '[' . $ pre . 'mode]' , checked ( true , isset ( $ this -> option_value [ $ pre . 'mode' ] ) , false ) ? ' checked="checked"' : '' , __ ( 'Enable Maintenance Mode' , 'themify' ) , __ ( 'Once it is enabled, only logged-in useres can see your site.' , 'themify' ) ) ; $ selected_value = ! empty ( $ this -> option_value [ $ pre . 'page' ] ) ? $ this -> option_value [ $ pre . 'page' ] : '' ; $ selected_page = empty ( $ selected_value ) ? '' : get_page_by_path ( $ selected_value , OBJECT , 'page' ) ; $ output .= sprintf ( '<br/><div class="tb_maintenance_page"><select id="%s" name="%s">%s<option>%s</option></select><p class="description">%s</p></div>' , $ pre . 'page' , $ this -> option_name . '[' . $ pre . 'page]' , empty ( $ selected_value ) ? '<option></option>' : sprintf ( '<option value="%s" selected="selected">%s</option>' , $ selected_value , $ selected_page -> post_title ) , __ ( 'Loading...' , 'themify' ) , __ ( 'Select a page to show for public users' , 'themify' ) ) ; echo $ output ; }
Add maintenance in plugin setting page.
Add maintenance in plugin setting page .