From 8113ee1c4aeb2b9586c1736c38faafce53dc8e53 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 12 Mar 2015 10:19:56 +0100 Subject: some work on feature/addon settings --- mod/settings.php | 6 ++--- view/css/mod_settings.css | 14 ----------- view/tpl/settings_addons.tpl | 55 ++++++++++++++++++++++++-------------------- 3 files changed, 32 insertions(+), 43 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 8752a47b2..c47d21d02 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -678,11 +678,9 @@ function settings_content(&$a) { '$title' => t('Feature/Addon Settings'), '$diaspora_enabled' => $diaspora_enabled, '$dsprdesc' => t('Settings for the built-in Diaspora emulator'), - '$pubcomments' => $pubcomments, + '$pubcomments' => array('dspr_pubcomment', t('Allow any Diaspora member to comment on your public posts'), $pubcomments, '', $yes_no), '$dsprtitle' => t('Diaspora Policy Settings'), - '$dsprhelp' => t('Allow any Diaspora member to comment on your public posts.'), - '$dsprhijack' => t('Prevent your hashtags from being redirected to other sites'), - '$hijacking' => $hijacking, + '$hijacking' => array('dspr_hijack', t('Prevent your hashtags from being redirected to other sites'), $hijacking, '', $yes_no), '$dsprsubmit' => t('Submit Diaspora Policy Settings'), '$settings_addons' => $settings_addons )); diff --git a/view/css/mod_settings.css b/view/css/mod_settings.css index 2dcd7d2d8..7eff8e45b 100644 --- a/view/css/mod_settings.css +++ b/view/css/mod_settings.css @@ -1,17 +1,3 @@ -#dspr-pubcomment-label, #dspr-hijack-label { - float: left; - width: 350px; - margin-bottom: 25px; -} - -#dspr-pubcomment-checkbox, #dspr-hijack-checkbox { - float: left; -} - -#settings-dspr-wrapper { - margin-top: 15px; -} - .group { margin-left: 10px; } diff --git a/view/tpl/settings_addons.tpl b/view/tpl/settings_addons.tpl index a41f4802b..a1b18e441 100755 --- a/view/tpl/settings_addons.tpl +++ b/view/tpl/settings_addons.tpl @@ -1,28 +1,33 @@ -
-

{{$title}}

+
+
+

{{$title}}

+
+
+ +
+ {{if $diaspora_enabled}} +
+ +
+
- - - -{{if $diaspora_enabled}} -
- -
-
- - -
- - -
-
- - - -
-{{/if}} -{{$settings_addons}} - - + {{include file="field_checkbox.tpl" field=$pubcomments}} + {{include file="field_checkbox.tpl" field=$hijacking}} +
+ +
+
+
+
+ {{/if}} +
+ {{$settings_addons}} +
-- cgit v1.2.3