You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
867 B
30 lines
867 B
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Direct access not allowed.
|
|
}
|
|
|
|
use XTS\Options;
|
|
|
|
/**
|
|
* Maintenance.
|
|
*/
|
|
Options::add_section(
|
|
array(
|
|
'id' => 'maintenance',
|
|
'name' => esc_html__( 'Maintenance', 'woodmart' ),
|
|
'priority' => 160,
|
|
'icon' => 'dashicons dashicons-hammer',
|
|
)
|
|
);
|
|
|
|
Options::add_field(
|
|
array(
|
|
'id' => 'maintenance_mode',
|
|
'name' => esc_html__( 'Enable maintenance mode', 'woodmart' ),
|
|
'description' => esc_html__( 'If enabled you need to create maintenance page in Dashboard - Pages - Add new. Choose "Template" to be "Maintenance" in "Page attributes". Or you can import the page from our demo in Dashboard - Woodmart - Base import', 'woodmart' ),
|
|
'type' => 'switcher',
|
|
'section' => 'maintenance',
|
|
'default' => false,
|
|
'priority' => 10,
|
|
)
|
|
);
|
|
|