From: Hypolite Petovan Date: Fri, 26 Apr 2019 13:22:08 +0000 (-0400) Subject: Make the site admin theme setting link go to the currently selected theme X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d8125eb3db1fe7db0a97302d2cf34e39b299e94b;p=friendica.git Make the site admin theme setting link go to the currently selected theme --- diff --git a/src/Module/Admin/Site.php b/src/Module/Admin/Site.php index b6b6f51794..1bafa9ab39 100644 --- a/src/Module/Admin/Site.php +++ b/src/Module/Admin/Site.php @@ -588,7 +588,7 @@ class Site extends BaseAdminModule '$touch_icon' => ['touch_icon', L10n::t('Touch icon'), Config::get('system', 'touch_icon'), L10n::t('Link to an icon that will be used for tablets and mobiles.')], '$additional_info' => ['additional_info', L10n::t('Additional Info'), $additional_info, L10n::t('For public servers: you can add additional information here that will be listed at %s/servers.', get_server())], '$language' => ['language', L10n::t('System language'), Config::get('system', 'language'), '', $lang_choices], - '$theme' => ['theme', L10n::t('System theme'), Config::get('system', 'theme'), L10n::t('Default system theme - may be over-ridden by user profiles - Change default theme settings'), $theme_choices], + '$theme' => ['theme', L10n::t('System theme'), Config::get('system', 'theme'), L10n::t('Default system theme - may be over-ridden by user profiles - Change default theme settings'), $theme_choices], '$theme_mobile' => ['theme_mobile', L10n::t('Mobile system theme'), Config::get('system', 'mobile-theme', '---'), L10n::t('Theme for mobile devices'), $theme_choices_mobile], '$ssl_policy' => ['ssl_policy', L10n::t('SSL link policy'), (string)intval(Config::get('system', 'ssl_policy')), L10n::t('Determines whether generated links should be forced to use SSL'), $ssl_choices], '$force_ssl' => ['force_ssl', L10n::t('Force SSL'), Config::get('system', 'force_ssl'), L10n::t('Force all Non-SSL requests to SSL - Attention: on some systems it could lead to endless loops.')], diff --git a/view/templates/admin/site.tpl b/view/templates/admin/site.tpl index a4df56279d..823753768e 100644 --- a/view/templates/admin/site.tpl +++ b/view/templates/admin/site.tpl @@ -1,4 +1,12 @@ -
+ +

{{$title}} - {{$page}}

diff --git a/view/theme/frio/templates/admin/site.tpl b/view/theme/frio/templates/admin/site.tpl index 2cebb620bc..4c0a6ce066 100644 --- a/view/theme/frio/templates/admin/site.tpl +++ b/view/theme/frio/templates/admin/site.tpl @@ -11,6 +11,11 @@ $(element).addClass('in'); window.scroll(0, $(element).offset().top - 120); } + + $("#cnftheme").click(function(){ + document.location.assign("{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val()); + return false; + }); });