From 6b054dcd2708aba2d6f19c83d3ed0e1dd6cc9666 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 21 Apr 2017 08:47:33 +0200 Subject: [PATCH 1/2] open/close config block for superblock addon --- superblock/superblock.php | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/superblock/superblock.php b/superblock/superblock.php index 1462c184..c86c6aad 100755 --- a/superblock/superblock.php +++ b/superblock/superblock.php @@ -6,7 +6,7 @@ * Description: block people * Version: 1.0 * Author: Mike Macgirvin - * + * */ function superblock_install() { @@ -36,29 +36,34 @@ function superblock_uninstall() { function superblock_addon_settings(&$a,&$s) { - if(! local_user()) + if(! local_user()) { return; + } - /* Add our stylesheet to the page so we can make our settings look nice */ - - $a->page['htmlhead'] .= '' . "\r\n"; + /* Add our stylesheet to the page so we can make our settings look nice */ + $a->page['htmlhead'] .= '' . "\r\n"; $words = get_pconfig(local_user(),'system','blocked'); - if(! $words) + if(! $words) { $words = ''; + } - $s .= '
'; - $s .= '

' . t('"Superblock" Settings') . '

'; - $s .= '
'; - $s .= ''; - $s .= ''; - $s .= '
'; + $s .= ''; + $s .= '

' . t('"Superblock"') . '

'; + $s .= '
'; + $s .= ''; + $s .= '
'; return; - } function superblock_addon_settings_post(&$a,&$b) { From bf21d2b350bf73b813c3a8e5097a178cc4352503 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 21 Apr 2017 08:47:51 +0200 Subject: [PATCH 2/2] regen superblock master messages.po --- superblock/lang/C/messages.po | 37 +++++++++++++---------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/superblock/lang/C/messages.po b/superblock/lang/C/messages.po index 8089438b..035c0f7c 100644 --- a/superblock/lang/C/messages.po +++ b/superblock/lang/C/messages.po @@ -1,6 +1,6 @@ -# ADDON blockem +# ADDON superblock # Copyright (C) -# This file is distributed under the same license as the Friendica blockem addon package. +# This file is distributed under the same license as the Friendica superblock addon package. # # #, fuzzy @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-02-27 05:01-0500\n" +"POT-Creation-Date: 2017-04-21 08:45+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,35 +17,26 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: blockem.php:51 -msgid "\"Blockem\" Settings" +#: superblock.php:53 superblock.php:57 +msgid "\"Superblock\"" msgstr "" -#: blockem.php:53 +#: superblock.php:60 msgid "Comma separated profile URLS to block" msgstr "" -#: blockem.php:57 -msgid "Submit" +#: superblock.php:64 +msgid "Save Settings" msgstr "" -#: blockem.php:70 -msgid "BLOCKEM Settings saved." +#: superblock.php:76 +msgid "SUPERBLOCK Settings saved." msgstr "" -#: blockem.php:105 -#, php-format -msgid "Blocked %s - Click to open/close" +#: superblock.php:148 +msgid "Block Completely" msgstr "" -#: blockem.php:160 -msgid "Unblock Author" -msgstr "" - -#: blockem.php:162 -msgid "Block Author" -msgstr "" - -#: blockem.php:194 -msgid "blockem settings updated" +#: superblock.php:168 +msgid "superblock settings updated" msgstr ""