feat: move common functionality to generic classes
This commit is contained in:
parent
2e27f6e449
commit
c0628bc7e3
7 changed files with 92 additions and 172 deletions
|
@ -10,7 +10,9 @@ declare(strict_types=1);
|
|||
|
||||
namespace footnotes\includes\settings\customcss;
|
||||
|
||||
require_once plugin_dir_path( __DIR__ ) . 'settings/class-settings-section.php';
|
||||
require_once plugin_dir_path( __DIR__ ) . 'class-settings-section.php';
|
||||
|
||||
use footnotes\includes\settings\SettingsSection;
|
||||
|
||||
// Import settings groups.
|
||||
//use footnotes\includes\settings\custom-css\...;
|
||||
|
@ -48,9 +50,9 @@ class CustomCSSSettingsSection extends SettingsSection {
|
|||
}
|
||||
|
||||
protected function load_dependencies(): void {
|
||||
require_once plugin_dir_path( __DIR__ ) . 'settings/class-setting.php';
|
||||
// Require settings groups.
|
||||
//require_once plugin_dir_path( __DIR__ ) . 'settings/custom-css/...';
|
||||
parent::load_dependencies();
|
||||
|
||||
//require_once plugin_dir_path( __DIR__ ) . 'general/class-reference-container-settings-group.php';
|
||||
}
|
||||
|
||||
protected function add_settings_groups(): void {
|
||||
|
|
Reference in a new issue