This allows you to edit files using your favourite editor (IDE), and do version control with auto sync. Read more
Important: you should use a child theme, otherwise automatic theme updates will erase the data.
*/
public bool $is_file_system_storage;
/**
* @label Live Reload mode: interval (in seconds)
* @instructions Controls how often the refresh requests are sent when on-page Live Reload Mode is enabled. A smaller number means faster updates, but it also increases server load.
* Default value is defined by the Settings_Storage.
*/
public int $live_reload_interval_seconds;
/**
* @label Live Reload mode: inactive delay (in seconds)
* @instructions Controls the period after which Live Reload Mode is paused when no mouse events are registered. A smaller number decreases server load but may increase your waiting time.
* Default value is defined by the Settings_Storage.
*/
public int $live_reload_inactive_delay_seconds;
/**
* @label Optimize Layout and Post Selection admin screen performance
* @instructions Enable this setting to improve loading speed by disabling third-party scripts on Layout and Post Selection screens.
Note: This can significantly reduce load times on plugin-heavy sites. However, with some themes, it may cause layout issues on these admin screens.
*/
public bool $is_cpt_admin_optimization_enabled;
/**
* @label Disable automatic reports
* @instructions Automatic error and usage reports to developers, enabling faster issue resolution and plugin improvement.
The reports do not include any private or sensitive information.
Note: In Advanced Views Pro, the license key/domain pair is always sent, regardless of this setting.
*/
public bool $is_automatic_reports_disabled;
/**
* @a-type tab
* @label Defaults
*/
public bool $defaults;
/**
* @a-type select
* @label Template engine
* @instructions Controls the template engine setting for new Layouts and Post Selections.
* Default value is defined by the Settings_Storage.
*/
public string $template_engine;
/**
* @a-type select
* @label Web components type
* @instructions Controls the web component setting for new Layouts and Post Selections.
* @choices {"classic":"Classic (no CSS isolation)","shadow_root_template":"Declarative Shadow DOM (CSS isolated, server-side)","shadow_dom":"JS Shadow DOM (CSS isolated, client-side)","none":"None"}
* Default value is defined by the Settings_Storage.
*/
public string $web_components_type;
/**
* @a-type select
* @label Classes generation
* @instructions Controls classes generation in the Default Template for new Layouts and Post Selections.
* @choices {"bem":"BEM style","none":"None"}
* Default value is defined by the Settings_Storage.
*/
public string $classes_generation;
/**
* @label Sass Template (for File System Storage)
* @instructions When present, this value is used as the default for the 'style.scss' file of Layout and Post Selection, which is useful e.g. when Tailwind is in use.
If skipped, 'style.scss' creation will be omitted.
* @a-type textarea
*/
public string $sass_template;
/**
* @label TypeScript Template (for File System Storage)
* @instructions When present, this value is used as the default for the 'script.ts' file of Layout and Post Selection.
If skipped, 'script.ts' creation will be omitted.
* @a-type textarea
*/
public string $ts_template;
/**
* @a-type tab
* @label Git repositories
* @a-pro The field must be not required or have default value!
*/
public bool $git_repositories_tab;
/**
* @var Git_Repository[]
* @item \Org\Wplake\Advanced_Views\Acf\Groups\Git_Repository
* @label Git Repositories
* @instructions By saving Layouts and Post Selections in your GitLab repository, you can create your own library and reuse them on other websites.
Read more
* @button_label Add Repository
* @a-no-tab 1
* @layout block
*/
public array $git_repositories;
/**
* @return array
*/
protected static function getLocationRules(): array {
return array(
array(
'options_page == ' . Settings_Page::SLUG,
),
);
}
/**
* @return array
* @throws Exception
*/
public static function getGroupInfo(): array {
$group_info = parent::getGroupInfo();
return array_merge(
$group_info,
array(
'title' => __( 'Settings', 'acf-views' ),
'style' => 'seamless',
)
);
}
}