From 8a89cfb158986dd6be4c820188326f10f0bc1a94 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 15 Aug 2016 22:45:07 -0700 Subject: move schema settings into the display settings main so we can set theme:schema theme selectors in settings --- view/theme/redbasic/php/config.php | 36 +++++++++++++++++------------- view/theme/redbasic/tpl/theme_settings.tpl | 3 --- view/tpl/settings_display.tpl | 3 +++ 3 files changed, 24 insertions(+), 18 deletions(-) (limited to 'view') diff --git a/view/theme/redbasic/php/config.php b/view/theme/redbasic/php/config.php index 04cf4f904..8f256bde4 100644 --- a/view/theme/redbasic/php/config.php +++ b/view/theme/redbasic/php/config.php @@ -1,11 +1,30 @@ App::$channel['channel_theme'], '$expert' => $expert, '$title' => t("Theme settings"), - '$schema' => array('redbasic_schema', t('Select scheme'), $arr['schema'], '', $scheme_choices), '$narrow_navbar' => array('redbasic_narrow_navbar',t('Narrow navbar'),$arr['narrow_navbar'], '', array(t('No'),t('Yes'))), '$nav_bg' => array('redbasic_nav_bg', t('Navigation bar background color'), $arr['nav_bg']), '$nav_gradient_top' => array('redbasic_nav_gradient_top', t('Navigation bar gradient top color'), $arr['nav_gradient_top']), diff --git a/view/theme/redbasic/tpl/theme_settings.tpl b/view/theme/redbasic/tpl/theme_settings.tpl index 0ec6d1741..9672d3d05 100644 --- a/view/theme/redbasic/tpl/theme_settings.tpl +++ b/view/theme/redbasic/tpl/theme_settings.tpl @@ -1,6 +1,3 @@ -{{if $theme == redbasic}} -{{include file="field_select.tpl" field=$schema}} -{{/if}} {{include file="field_checkbox.tpl" field=$align_left}} {{include file="field_checkbox.tpl" field=$narrow_navbar}} {{include file="field_input.tpl" field=$converse_width}} diff --git a/view/tpl/settings_display.tpl b/view/tpl/settings_display.tpl index cf79671fd..2e11fdbaa 100755 --- a/view/tpl/settings_display.tpl +++ b/view/tpl/settings_display.tpl @@ -20,6 +20,9 @@ {{if $theme}} {{include file="field_themeselect.tpl" field=$theme}} {{/if}} + {{if $schema}} + {{include file="field_select.tpl" field=$schema}} + {{/if}} {{if $mobile_theme}} {{include file="field_themeselect.tpl" field=$mobile_theme}} {{/if}} -- cgit v1.2.3