refactor(admin): drop homepage mixed content model and publish-resource preset
This commit is contained in:
1 parent
fb1a4e110c
commit
0ad41715e2
7 files changed
+13
-54
No files matched your search
@@ -126,11 +126,6 @@ trait AKSRT_Admin_Homepage_Settings_Rest {
|
||||
if (array_key_exists('homepage_sticky_tabs_enabled', $params)) {
|
||||
$settings['homepage_sticky_tabs_enabled'] = !empty($params['homepage_sticky_tabs_enabled']);
|
||||
}
|
||||
if (isset($params['homepage_content_model'])) {
|
||||
$settings['homepage_content_model'] = in_array($params['homepage_content_model'], ['post', 'mixed'], true)
|
||||
? $params['homepage_content_model']
|
||||
: 'mixed';
|
||||
}
|
||||
if (array_key_exists('home_list_sort_dropdown', $params)) {
|
||||
$settings['home_list_sort_dropdown'] = !empty($params['home_list_sort_dropdown']);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user