Rules added

This commit is contained in:
Michael 2022-12-03 21:15:08 +00:00
parent b6f7d31036
commit 16b76919c0
6 changed files with 141 additions and 107 deletions

View file

@ -664,7 +664,6 @@ class System
/** /**
* Fetch the system rules * Fetch the system rules
* @todo We should have got a better way to store and fetch the rules
* *
* @return array * @return array
*/ */
@ -674,7 +673,8 @@ class System
$id = 0; $id = 0;
if (DI::config()->get('system', 'tosdisplay')) { if (DI::config()->get('system', 'tosdisplay')) {
$html = BBCode::convert(DI::config()->get('system', 'tostext'), false, BBCode::EXTERNAL); $rulelist = DI::config()->get('system', 'tosrules') ?: DI::config()->get('system', 'tostext');
$html = BBCode::convert($rulelist, false, BBCode::EXTERNAL);
$msg = HTML::toPlaintext($html, 0, true); $msg = HTML::toPlaintext($html, 0, true);
foreach (explode("\n", $msg) as $line) { foreach (explode("\n", $msg) as $line) {

View file

@ -57,11 +57,13 @@ class Tos extends BaseAdmin
$displaytos = !empty($_POST['displaytos']); $displaytos = !empty($_POST['displaytos']);
$displayprivstatement = !empty($_POST['displayprivstatement']); $displayprivstatement = !empty($_POST['displayprivstatement']);
$tostext = (!empty($_POST['tostext']) ? strip_tags(trim($_POST['tostext'])) : ''); $tostext = (!empty($_POST['tostext']) ? strip_tags(trim($_POST['tostext'])) : '');
$tosrules = (!empty($_POST['tosrules']) ? strip_tags(trim($_POST['tosrules'])) : '');
$this->config->set('system', 'tosdisplay', $displaytos); $this->config->set('system', 'tosdisplay', $displaytos);
$this->config->set('system', 'tosprivstatement', $displayprivstatement); $this->config->set('system', 'tosprivstatement', $displayprivstatement);
$this->config->set('system', 'tostext', $tostext); $this->config->set('system', 'tostext', $tostext);
$this->config->set('system', 'tosrules', $tosrules);
$this->baseUrl->redirect('admin/tos'); $this->baseUrl->redirect('admin/tos');
} }
@ -79,6 +81,7 @@ class Tos extends BaseAdmin
'$preview' => $this->t('Privacy Statement Preview'), '$preview' => $this->t('Privacy Statement Preview'),
'$privtext' => $this->tos->privacy_complete, '$privtext' => $this->tos->privacy_complete,
'$tostext' => ['tostext', $this->t('The Terms of Service'), $this->config->get('system', 'tostext'), $this->t('Enter the Terms of Service for your node here. You can use BBCode. Headers of sections should be [h2] and below.')], '$tostext' => ['tostext', $this->t('The Terms of Service'), $this->config->get('system', 'tostext'), $this->t('Enter the Terms of Service for your node here. You can use BBCode. Headers of sections should be [h2] and below.')],
'$tosrules' => ['tosrules', $this->t('The rules'), $this->config->get('system', 'tosrules'), $this->t('Enter your system rules here. Each line represents one rule.')],
'$form_security_token' => self::getFormSecurityToken('admin_tos'), '$form_security_token' => self::getFormSecurityToken('admin_tos'),
'$submit' => $this->t('Save Settings'), '$submit' => $this->t('Save Settings'),
]); ]);

View file

@ -83,9 +83,22 @@ class Tos extends BaseModule
$tpl = Renderer::getMarkupTemplate('tos.tpl'); $tpl = Renderer::getMarkupTemplate('tos.tpl');
if ($this->config->get('system', 'tosdisplay')) { if ($this->config->get('system', 'tosdisplay')) {
$lines = $this->config->get('system', 'tosrules');
if (!empty($lines)) {
$rules = "[list=1]";
foreach (explode("\n", $lines) as $line) {
$rules .= "\n[*]" . $line;
}
$rules .= "\n[/list]\n";
} else {
$rules = '';
}
return Renderer::replaceMacros($tpl, [ return Renderer::replaceMacros($tpl, [
'$title' => $this->t('Terms of Service'), '$title' => $this->t('Terms of Service'),
'$tostext' => BBCode::convert($this->config->get('system', 'tostext')), '$tostext' => BBCode::convert($this->config->get('system', 'tostext')),
'$rulestitle' => $this->t('Rules'),
'$rules' => BBCode::convert($rules),
'$displayprivstatement' => $this->config->get('system', 'tosprivstatement'), '$displayprivstatement' => $this->config->get('system', 'tosprivstatement'),
'$privstatementtitle' => $this->t('Privacy Statement'), '$privstatementtitle' => $this->t('Privacy Statement'),
'$privacy_operate' => $this->t('At the time of registration, and for providing communications between the user account and their contacts, the user has to provide a display name (pen name), an username (nickname) and a working email address. The names will be accessible on the profile page of the account by any visitor of the page, even if other profile details are not displayed. The email address will only be used to send the user notifications about interactions, but wont be visibly displayed. The listing of an account in the node\'s user directory or the global user directory is optional and can be controlled in the user settings, it is not necessary for communication.'), '$privacy_operate' => $this->t('At the time of registration, and for providing communications between the user account and their contacts, the user has to provide a display name (pen name), an username (nickname) and a working email address. The names will be accessible on the profile page of the account by any visitor of the page, even if other profile details are not displayed. The email address will only be used to send the user notifications about interactions, but wont be visibly displayed. The listing of an account in the node\'s user directory or the global user directory is optional and can be controlled in the user settings, it is not necessary for communication.'),

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2022.12-dev\n" "Project-Id-Version: 2022.12-dev\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-01 18:01-0500\n" "POT-Creation-Date: 2022-12-03 21:11+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -1262,7 +1262,7 @@ msgid "Public post"
msgstr "" msgstr ""
#: src/Content/Conversation.php:396 src/Content/Widget/VCard.php:113 #: src/Content/Conversation.php:396 src/Content/Widget/VCard.php:113
#: src/Model/Profile.php:465 src/Module/Admin/Logs/View.php:93 #: src/Model/Profile.php:469 src/Module/Admin/Logs/View.php:93
#: src/Module/Post/Edit.php:177 #: src/Module/Post/Edit.php:177
msgid "Message" msgid "Message"
msgstr "" msgstr ""
@ -1516,7 +1516,7 @@ msgstr ""
msgid "show more" msgid "show more"
msgstr "" msgstr ""
#: src/Content/Item.php:294 src/Model/Item.php:2919 #: src/Content/Item.php:294 src/Model/Item.php:2914
msgid "event" msgid "event"
msgstr "" msgstr ""
@ -1525,7 +1525,7 @@ msgstr ""
msgid "status" msgid "status"
msgstr "" msgstr ""
#: src/Content/Item.php:303 src/Model/Item.php:2921 #: src/Content/Item.php:303 src/Model/Item.php:2916
#: src/Module/Post/Tag/Add.php:123 #: src/Module/Post/Tag/Add.php:123
msgid "photo" msgid "photo"
msgstr "" msgstr ""
@ -1539,31 +1539,31 @@ msgstr ""
msgid "Follow Thread" msgid "Follow Thread"
msgstr "" msgstr ""
#: src/Content/Item.php:387 src/Model/Contact.php:1197 #: src/Content/Item.php:387 src/Model/Contact.php:1209
msgid "View Status" msgid "View Status"
msgstr "" msgstr ""
#: src/Content/Item.php:388 src/Content/Item.php:406 src/Model/Contact.php:1135 #: src/Content/Item.php:388 src/Content/Item.php:406 src/Model/Contact.php:1147
#: src/Model/Contact.php:1189 src/Model/Contact.php:1198 #: src/Model/Contact.php:1201 src/Model/Contact.php:1210
#: src/Module/Directory.php:157 src/Module/Settings/Profile/Index.php:234 #: src/Module/Directory.php:157 src/Module/Settings/Profile/Index.php:234
msgid "View Profile" msgid "View Profile"
msgstr "" msgstr ""
#: src/Content/Item.php:389 src/Model/Contact.php:1199 #: src/Content/Item.php:389 src/Model/Contact.php:1211
msgid "View Photos" msgid "View Photos"
msgstr "" msgstr ""
#: src/Content/Item.php:390 src/Model/Contact.php:1190 #: src/Content/Item.php:390 src/Model/Contact.php:1202
#: src/Model/Contact.php:1200 #: src/Model/Contact.php:1212
msgid "Network Posts" msgid "Network Posts"
msgstr "" msgstr ""
#: src/Content/Item.php:391 src/Model/Contact.php:1191 #: src/Content/Item.php:391 src/Model/Contact.php:1203
#: src/Model/Contact.php:1201 #: src/Model/Contact.php:1213
msgid "View Contact" msgid "View Contact"
msgstr "" msgstr ""
#: src/Content/Item.php:392 src/Model/Contact.php:1202 #: src/Content/Item.php:392 src/Model/Contact.php:1214
msgid "Send PM" msgid "Send PM"
msgstr "" msgstr ""
@ -1588,7 +1588,7 @@ msgid "Languages"
msgstr "" msgstr ""
#: src/Content/Item.php:403 src/Content/Widget.php:80 #: src/Content/Item.php:403 src/Content/Widget.php:80
#: src/Model/Contact.php:1192 src/Model/Contact.php:1203 #: src/Model/Contact.php:1204 src/Model/Contact.php:1215
#: src/Module/Contact/Follow.php:167 view/theme/vier/theme.php:196 #: src/Module/Contact/Follow.php:167 view/theme/vier/theme.php:196
msgid "Connect/Follow" msgid "Connect/Follow"
msgstr "" msgstr ""
@ -1774,9 +1774,9 @@ msgstr ""
msgid "Information about this friendica instance" msgid "Information about this friendica instance"
msgstr "" msgstr ""
#: src/Content/Nav.php:265 src/Module/Admin/Tos.php:76 #: src/Content/Nav.php:265 src/Module/Admin/Tos.php:78
#: src/Module/BaseAdmin.php:95 src/Module/Register.php:176 #: src/Module/BaseAdmin.php:95 src/Module/Register.php:176
#: src/Module/Tos.php:87 #: src/Module/Tos.php:98
msgid "Terms of Service" msgid "Terms of Service"
msgstr "" msgstr ""
@ -1920,8 +1920,8 @@ msgid ""
"<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">%2$s</a> %3$s" "<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">%2$s</a> %3$s"
msgstr "" msgstr ""
#: src/Content/Text/BBCode.php:1245 src/Model/Item.php:3541 #: src/Content/Text/BBCode.php:1245 src/Model/Item.php:3536
#: src/Model/Item.php:3547 src/Model/Item.php:3548 #: src/Model/Item.php:3542 src/Model/Item.php:3543
msgid "Link to source" msgid "Link to source"
msgstr "" msgstr ""
@ -1954,7 +1954,7 @@ msgid "The end"
msgstr "" msgstr ""
#: src/Content/Text/HTML.php:882 src/Content/Widget/VCard.php:109 #: src/Content/Text/HTML.php:882 src/Content/Widget/VCard.php:109
#: src/Model/Profile.php:459 src/Module/Contact/Profile.php:427 #: src/Model/Profile.php:463 src/Module/Contact/Profile.php:427
msgid "Follow" msgid "Follow"
msgstr "" msgstr ""
@ -2081,7 +2081,7 @@ msgstr ""
msgid "Organisations" msgid "Organisations"
msgstr "" msgstr ""
#: src/Content/Widget.php:523 src/Model/Contact.php:1629 #: src/Content/Widget.php:523 src/Model/Contact.php:1641
msgid "News" msgid "News"
msgstr "" msgstr ""
@ -2150,7 +2150,7 @@ msgid "Matrix:"
msgstr "" msgstr ""
#: src/Content/Widget/VCard.php:104 src/Model/Event.php:82 #: src/Content/Widget/VCard.php:104 src/Model/Event.php:82
#: src/Model/Event.php:109 src/Model/Event.php:471 src/Model/Event.php:961 #: src/Model/Event.php:109 src/Model/Event.php:471 src/Model/Event.php:958
#: src/Model/Profile.php:373 src/Module/Calendar/Event/Form.php:239 #: src/Model/Profile.php:373 src/Module/Calendar/Event/Form.php:239
#: src/Module/Contact/Profile.php:369 src/Module/Directory.php:147 #: src/Module/Contact/Profile.php:369 src/Module/Directory.php:147
#: src/Module/Notifications/Introductions.php:187 #: src/Module/Notifications/Introductions.php:187
@ -2158,13 +2158,13 @@ msgstr ""
msgid "Location:" msgid "Location:"
msgstr "" msgstr ""
#: src/Content/Widget/VCard.php:107 src/Model/Profile.php:472 #: src/Content/Widget/VCard.php:107 src/Model/Profile.php:476
#: src/Module/Notifications/Introductions.php:201 #: src/Module/Notifications/Introductions.php:201
msgid "Network:" msgid "Network:"
msgstr "" msgstr ""
#: src/Content/Widget/VCard.php:111 src/Model/Contact.php:1193 #: src/Content/Widget/VCard.php:111 src/Model/Contact.php:1205
#: src/Model/Contact.php:1204 src/Model/Profile.php:461 #: src/Model/Contact.php:1216 src/Model/Profile.php:465
#: src/Module/Contact/Profile.php:419 #: src/Module/Contact/Profile.php:419
msgid "Unfollow" msgid "Unfollow"
msgstr "" msgstr ""
@ -2861,77 +2861,77 @@ msgstr ""
msgid "Legacy module file not found: %s" msgid "Legacy module file not found: %s"
msgstr "" msgstr ""
#: src/Model/Contact.php:1210 src/Module/Moderation/Users/Pending.php:102 #: src/Model/Contact.php:1222 src/Module/Moderation/Users/Pending.php:102
#: src/Module/Notifications/Introductions.php:132 #: src/Module/Notifications/Introductions.php:132
#: src/Module/Notifications/Introductions.php:204 #: src/Module/Notifications/Introductions.php:204
msgid "Approve" msgid "Approve"
msgstr "" msgstr ""
#: src/Model/Contact.php:1625 #: src/Model/Contact.php:1637
msgid "Organisation" msgid "Organisation"
msgstr "" msgstr ""
#: src/Model/Contact.php:1633 #: src/Model/Contact.php:1645
msgid "Forum" msgid "Forum"
msgstr "" msgstr ""
#: src/Model/Contact.php:2819 #: src/Model/Contact.php:2831
msgid "Disallowed profile URL." msgid "Disallowed profile URL."
msgstr "" msgstr ""
#: src/Model/Contact.php:2824 src/Module/Friendica.php:82 #: src/Model/Contact.php:2836 src/Module/Friendica.php:82
msgid "Blocked domain" msgid "Blocked domain"
msgstr "" msgstr ""
#: src/Model/Contact.php:2829 #: src/Model/Contact.php:2841
msgid "Connect URL missing." msgid "Connect URL missing."
msgstr "" msgstr ""
#: src/Model/Contact.php:2838 #: src/Model/Contact.php:2850
msgid "" msgid ""
"The contact could not be added. Please check the relevant network " "The contact could not be added. Please check the relevant network "
"credentials in your Settings -> Social Networks page." "credentials in your Settings -> Social Networks page."
msgstr "" msgstr ""
#: src/Model/Contact.php:2880 #: src/Model/Contact.php:2892
msgid "The profile address specified does not provide adequate information." msgid "The profile address specified does not provide adequate information."
msgstr "" msgstr ""
#: src/Model/Contact.php:2882 #: src/Model/Contact.php:2894
msgid "No compatible communication protocols or feeds were discovered." msgid "No compatible communication protocols or feeds were discovered."
msgstr "" msgstr ""
#: src/Model/Contact.php:2885 #: src/Model/Contact.php:2897
msgid "An author or name was not found." msgid "An author or name was not found."
msgstr "" msgstr ""
#: src/Model/Contact.php:2888 #: src/Model/Contact.php:2900
msgid "No browser URL could be matched to this address." msgid "No browser URL could be matched to this address."
msgstr "" msgstr ""
#: src/Model/Contact.php:2891 #: src/Model/Contact.php:2903
msgid "" msgid ""
"Unable to match @-style Identity Address with a known protocol or email " "Unable to match @-style Identity Address with a known protocol or email "
"contact." "contact."
msgstr "" msgstr ""
#: src/Model/Contact.php:2892 #: src/Model/Contact.php:2904
msgid "Use mailto: in front of address to force email check." msgid "Use mailto: in front of address to force email check."
msgstr "" msgstr ""
#: src/Model/Contact.php:2898 #: src/Model/Contact.php:2910
msgid "" msgid ""
"The profile address specified belongs to a network which has been disabled " "The profile address specified belongs to a network which has been disabled "
"on this site." "on this site."
msgstr "" msgstr ""
#: src/Model/Contact.php:2903 #: src/Model/Contact.php:2915
msgid "" msgid ""
"Limited profile. This person will be unable to receive direct/personal " "Limited profile. This person will be unable to receive direct/personal "
"notifications from you." "notifications from you."
msgstr "" msgstr ""
#: src/Model/Contact.php:2962 #: src/Model/Contact.php:2974
msgid "Unable to retrieve contact information." msgid "Unable to retrieve contact information."
msgstr "" msgstr ""
@ -2940,12 +2940,12 @@ msgid "l F d, Y \\@ g:i A \\G\\M\\TP (e)"
msgstr "" msgstr ""
#: src/Model/Event.php:75 src/Model/Event.php:92 src/Model/Event.php:469 #: src/Model/Event.php:75 src/Model/Event.php:92 src/Model/Event.php:469
#: src/Model/Event.php:943 #: src/Model/Event.php:940
msgid "Starts:" msgid "Starts:"
msgstr "" msgstr ""
#: src/Model/Event.php:78 src/Model/Event.php:98 src/Model/Event.php:470 #: src/Model/Event.php:78 src/Model/Event.php:98 src/Model/Event.php:470
#: src/Model/Event.php:947 #: src/Model/Event.php:944
msgid "Finishes:" msgid "Finishes:"
msgstr "" msgstr ""
@ -3005,32 +3005,32 @@ msgstr ""
msgid "Delete event" msgid "Delete event"
msgstr "" msgstr ""
#: src/Model/Event.php:899 src/Module/Debug/Localtime.php:38 #: src/Model/Event.php:896 src/Module/Debug/Localtime.php:38
msgid "l F d, Y \\@ g:i A" msgid "l F d, Y \\@ g:i A"
msgstr "" msgstr ""
#: src/Model/Event.php:900 #: src/Model/Event.php:897
msgid "D g:i A" msgid "D g:i A"
msgstr "" msgstr ""
#: src/Model/Event.php:901 #: src/Model/Event.php:898
msgid "g:i A" msgid "g:i A"
msgstr "" msgstr ""
#: src/Model/Event.php:962 src/Model/Event.php:964 #: src/Model/Event.php:959 src/Model/Event.php:961
msgid "Show map" msgid "Show map"
msgstr "" msgstr ""
#: src/Model/Event.php:963 #: src/Model/Event.php:960
msgid "Hide map" msgid "Hide map"
msgstr "" msgstr ""
#: src/Model/Event.php:1056 #: src/Model/Event.php:1053
#, php-format #, php-format
msgid "%s's birthday" msgid "%s's birthday"
msgstr "" msgstr ""
#: src/Model/Event.php:1057 #: src/Model/Event.php:1054
#, php-format #, php-format
msgid "Happy Birthday %s" msgid "Happy Birthday %s"
msgstr "" msgstr ""
@ -3084,61 +3084,61 @@ msgstr ""
msgid "Detected languages in this post:\\n%s" msgid "Detected languages in this post:\\n%s"
msgstr "" msgstr ""
#: src/Model/Item.php:2923 #: src/Model/Item.php:2918
msgid "activity" msgid "activity"
msgstr "" msgstr ""
#: src/Model/Item.php:2925 #: src/Model/Item.php:2920
msgid "comment" msgid "comment"
msgstr "" msgstr ""
#: src/Model/Item.php:2928 #: src/Model/Item.php:2923
msgid "post" msgid "post"
msgstr "" msgstr ""
#: src/Model/Item.php:3069 #: src/Model/Item.php:3064
#, php-format #, php-format
msgid "Content warning: %s" msgid "Content warning: %s"
msgstr "" msgstr ""
#: src/Model/Item.php:3453 #: src/Model/Item.php:3448
msgid "bytes" msgid "bytes"
msgstr "" msgstr ""
#: src/Model/Item.php:3484 #: src/Model/Item.php:3479
#, php-format #, php-format
msgid "%2$s (%3$d%%, %1$d vote)" msgid "%2$s (%3$d%%, %1$d vote)"
msgid_plural "%2$s (%3$d%%, %1$d votes)" msgid_plural "%2$s (%3$d%%, %1$d votes)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3486 #: src/Model/Item.php:3481
#, php-format #, php-format
msgid "%2$s (%1$d vote)" msgid "%2$s (%1$d vote)"
msgid_plural "%2$s (%1$d votes)" msgid_plural "%2$s (%1$d votes)"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3491 #: src/Model/Item.php:3486
#, php-format #, php-format
msgid "%d voter. Poll end: %s" msgid "%d voter. Poll end: %s"
msgid_plural "%d voters. Poll end: %s" msgid_plural "%d voters. Poll end: %s"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3493 #: src/Model/Item.php:3488
#, php-format #, php-format
msgid "%d voter." msgid "%d voter."
msgid_plural "%d voters." msgid_plural "%d voters."
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: src/Model/Item.php:3495 #: src/Model/Item.php:3490
#, php-format #, php-format
msgid "Poll end: %s" msgid "Poll end: %s"
msgstr "" msgstr ""
#: src/Model/Item.php:3529 src/Model/Item.php:3530 #: src/Model/Item.php:3524 src/Model/Item.php:3525
msgid "View on separate page" msgid "View on separate page"
msgstr "" msgstr ""
@ -3169,129 +3169,129 @@ msgstr ""
msgid "About:" msgid "About:"
msgstr "" msgstr ""
#: src/Model/Profile.php:463 #: src/Model/Profile.php:467
msgid "Atom feed" msgid "Atom feed"
msgstr "" msgstr ""
#: src/Model/Profile.php:470 #: src/Model/Profile.php:474
msgid "This website has been verified to belong to the same person." msgid "This website has been verified to belong to the same person."
msgstr "" msgstr ""
#: src/Model/Profile.php:507 #: src/Model/Profile.php:511
msgid "F d" msgid "F d"
msgstr "" msgstr ""
#: src/Model/Profile.php:571 src/Model/Profile.php:660 #: src/Model/Profile.php:575 src/Model/Profile.php:664
msgid "[today]" msgid "[today]"
msgstr "" msgstr ""
#: src/Model/Profile.php:580 #: src/Model/Profile.php:584
msgid "Birthday Reminders" msgid "Birthday Reminders"
msgstr "" msgstr ""
#: src/Model/Profile.php:581 #: src/Model/Profile.php:585
msgid "Birthdays this week:" msgid "Birthdays this week:"
msgstr "" msgstr ""
#: src/Model/Profile.php:609 #: src/Model/Profile.php:613
msgid "g A l F d" msgid "g A l F d"
msgstr "" msgstr ""
#: src/Model/Profile.php:647 #: src/Model/Profile.php:651
msgid "[No description]" msgid "[No description]"
msgstr "" msgstr ""
#: src/Model/Profile.php:673 #: src/Model/Profile.php:677
msgid "Event Reminders" msgid "Event Reminders"
msgstr "" msgstr ""
#: src/Model/Profile.php:674 #: src/Model/Profile.php:678
msgid "Upcoming events the next 7 days:" msgid "Upcoming events the next 7 days:"
msgstr "" msgstr ""
#: src/Model/Profile.php:869 #: src/Model/Profile.php:873
#, php-format #, php-format
msgid "OpenWebAuth: %1$s welcomes %2$s" msgid "OpenWebAuth: %1$s welcomes %2$s"
msgstr "" msgstr ""
#: src/Model/Profile.php:1009 #: src/Model/Profile.php:1013
msgid "Hometown:" msgid "Hometown:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1010 #: src/Model/Profile.php:1014
msgid "Marital Status:" msgid "Marital Status:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1011 #: src/Model/Profile.php:1015
msgid "With:" msgid "With:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1012 #: src/Model/Profile.php:1016
msgid "Since:" msgid "Since:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1013 #: src/Model/Profile.php:1017
msgid "Sexual Preference:" msgid "Sexual Preference:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1014 #: src/Model/Profile.php:1018
msgid "Political Views:" msgid "Political Views:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1015 #: src/Model/Profile.php:1019
msgid "Religious Views:" msgid "Religious Views:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1016 #: src/Model/Profile.php:1020
msgid "Likes:" msgid "Likes:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1017 #: src/Model/Profile.php:1021
msgid "Dislikes:" msgid "Dislikes:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1018 #: src/Model/Profile.php:1022
msgid "Title/Description:" msgid "Title/Description:"
msgstr "" msgstr ""
#: src/Model/Profile.php:1019 src/Module/Admin/Summary.php:217 #: src/Model/Profile.php:1023 src/Module/Admin/Summary.php:217
#: src/Module/Moderation/Summary.php:77 #: src/Module/Moderation/Summary.php:77
msgid "Summary" msgid "Summary"
msgstr "" msgstr ""
#: src/Model/Profile.php:1020 #: src/Model/Profile.php:1024
msgid "Musical interests" msgid "Musical interests"
msgstr "" msgstr ""
#: src/Model/Profile.php:1021 #: src/Model/Profile.php:1025
msgid "Books, literature" msgid "Books, literature"
msgstr "" msgstr ""
#: src/Model/Profile.php:1022 #: src/Model/Profile.php:1026
msgid "Television" msgid "Television"
msgstr "" msgstr ""
#: src/Model/Profile.php:1023 #: src/Model/Profile.php:1027
msgid "Film/dance/culture/entertainment" msgid "Film/dance/culture/entertainment"
msgstr "" msgstr ""
#: src/Model/Profile.php:1024 #: src/Model/Profile.php:1028
msgid "Hobbies/Interests" msgid "Hobbies/Interests"
msgstr "" msgstr ""
#: src/Model/Profile.php:1025 #: src/Model/Profile.php:1029
msgid "Love/romance" msgid "Love/romance"
msgstr "" msgstr ""
#: src/Model/Profile.php:1026 #: src/Model/Profile.php:1030
msgid "Work/employment" msgid "Work/employment"
msgstr "" msgstr ""
#: src/Model/Profile.php:1027 #: src/Model/Profile.php:1031
msgid "School/education" msgid "School/education"
msgstr "" msgstr ""
#: src/Model/Profile.php:1028 #: src/Model/Profile.php:1032
msgid "Contact information and Social Networks" msgid "Contact information and Social Networks"
msgstr "" msgstr ""
@ -3583,7 +3583,7 @@ msgstr ""
#: src/Module/Admin/Logs/View.php:84 src/Module/Admin/Queue.php:72 #: src/Module/Admin/Logs/View.php:84 src/Module/Admin/Queue.php:72
#: src/Module/Admin/Site.php:437 src/Module/Admin/Storage.php:138 #: src/Module/Admin/Site.php:437 src/Module/Admin/Storage.php:138
#: src/Module/Admin/Summary.php:216 src/Module/Admin/Themes/Details.php:90 #: src/Module/Admin/Summary.php:216 src/Module/Admin/Themes/Details.php:90
#: src/Module/Admin/Themes/Index.php:111 src/Module/Admin/Tos.php:75 #: src/Module/Admin/Themes/Index.php:111 src/Module/Admin/Tos.php:77
#: src/Module/Moderation/Users/Create.php:61 #: src/Module/Moderation/Users/Create.php:61
#: src/Module/Moderation/Users/Pending.php:96 #: src/Module/Moderation/Users/Pending.php:96
msgid "Administration" msgid "Administration"
@ -3620,7 +3620,7 @@ msgstr ""
#: src/Module/Admin/Addons/Index.php:69 src/Module/Admin/Features.php:87 #: src/Module/Admin/Addons/Index.php:69 src/Module/Admin/Features.php:87
#: src/Module/Admin/Logs/Settings.php:81 src/Module/Admin/Site.php:440 #: src/Module/Admin/Logs/Settings.php:81 src/Module/Admin/Site.php:440
#: src/Module/Admin/Themes/Index.php:113 src/Module/Admin/Tos.php:83 #: src/Module/Admin/Themes/Index.php:113 src/Module/Admin/Tos.php:86
#: src/Module/Settings/Account.php:560 src/Module/Settings/Addons.php:81 #: src/Module/Settings/Account.php:560 src/Module/Settings/Addons.php:81
#: src/Module/Settings/Connectors.php:159 #: src/Module/Settings/Connectors.php:159
#: src/Module/Settings/Connectors.php:244 #: src/Module/Settings/Connectors.php:244
@ -5154,21 +5154,21 @@ msgstr ""
msgid "[Unsupported]" msgid "[Unsupported]"
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:77 #: src/Module/Admin/Tos.php:79
msgid "Display Terms of Service" msgid "Display Terms of Service"
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:77 #: src/Module/Admin/Tos.php:79
msgid "" msgid ""
"Enable the Terms of Service page. If this is enabled a link to the terms " "Enable the Terms of Service page. If this is enabled a link to the terms "
"will be added to the registration form and the general information page." "will be added to the registration form and the general information page."
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:78 #: src/Module/Admin/Tos.php:80
msgid "Display Privacy Statement" msgid "Display Privacy Statement"
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:78 #: src/Module/Admin/Tos.php:80
#, php-format #, php-format
msgid "" msgid ""
"Show some informations regarding the needed information to operate the node " "Show some informations regarding the needed information to operate the node "
@ -5176,20 +5176,28 @@ msgid ""
"\">EU-GDPR</a>." "\">EU-GDPR</a>."
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:79 #: src/Module/Admin/Tos.php:81
msgid "Privacy Statement Preview" msgid "Privacy Statement Preview"
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:81 #: src/Module/Admin/Tos.php:83
msgid "The Terms of Service" msgid "The Terms of Service"
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:81 #: src/Module/Admin/Tos.php:83
msgid "" msgid ""
"Enter the Terms of Service for your node here. You can use BBCode. Headers " "Enter the Terms of Service for your node here. You can use BBCode. Headers "
"of sections should be [h2] and below." "of sections should be [h2] and below."
msgstr "" msgstr ""
#: src/Module/Admin/Tos.php:84
msgid "The rules"
msgstr ""
#: src/Module/Admin/Tos.php:84
msgid "Enter your system rules here. Each line represents one rule."
msgstr ""
#: src/Module/Api/ApiResponse.php:279 #: src/Module/Api/ApiResponse.php:279
#, php-format #, php-format
msgid "API endpoint %s %s is not implemented" msgid "API endpoint %s %s is not implemented"
@ -10238,7 +10246,7 @@ msgstr ""
msgid "Exception thrown in %s:%d" msgid "Exception thrown in %s:%d"
msgstr "" msgstr ""
#: src/Module/Tos.php:57 src/Module/Tos.php:91 #: src/Module/Tos.php:57 src/Module/Tos.php:104
msgid "" msgid ""
"At the time of registration, and for providing communications between the " "At the time of registration, and for providing communications between the "
"user account and their contacts, the user has to provide a display name (pen " "user account and their contacts, the user has to provide a display name (pen "
@ -10251,14 +10259,14 @@ msgid ""
"settings, it is not necessary for communication." "settings, it is not necessary for communication."
msgstr "" msgstr ""
#: src/Module/Tos.php:58 src/Module/Tos.php:92 #: src/Module/Tos.php:58 src/Module/Tos.php:105
msgid "" msgid ""
"This data is required for communication and is passed on to the nodes of the " "This data is required for communication and is passed on to the nodes of the "
"communication partners and is stored there. Users can enter additional " "communication partners and is stored there. Users can enter additional "
"private data that may be transmitted to the communication partners accounts." "private data that may be transmitted to the communication partners accounts."
msgstr "" msgstr ""
#: src/Module/Tos.php:59 src/Module/Tos.php:93 #: src/Module/Tos.php:59 src/Module/Tos.php:106
#, php-format #, php-format
msgid "" msgid ""
"At any point in time a logged in user can export their account data from the " "At any point in time a logged in user can export their account data from the "
@ -10269,10 +10277,14 @@ msgid ""
"communication partners." "communication partners."
msgstr "" msgstr ""
#: src/Module/Tos.php:62 src/Module/Tos.php:90 #: src/Module/Tos.php:62 src/Module/Tos.php:103
msgid "Privacy Statement" msgid "Privacy Statement"
msgstr "" msgstr ""
#: src/Module/Tos.php:100
msgid "Rules"
msgstr ""
#: src/Module/Update/Display.php:45 #: src/Module/Update/Display.php:45
msgid "Parameter uri_id is missing." msgid "Parameter uri_id is missing."
msgstr "" msgstr ""

View file

@ -6,6 +6,7 @@
{{include file="field_checkbox.tpl" field=$displaytos}} {{include file="field_checkbox.tpl" field=$displaytos}}
{{include file="field_checkbox.tpl" field=$displayprivstatement}} {{include file="field_checkbox.tpl" field=$displayprivstatement}}
{{include file="field_textarea.tpl" field=$tostext}} {{include file="field_textarea.tpl" field=$tostext}}
{{include file="field_textarea.tpl" field=$tosrules}}
<div class="submit"><input type="submit" name="page_tos" value="{{$submit}}" /></div> <div class="submit"><input type="submit" name="page_tos" value="{{$submit}}" /></div>
</form> </form>
<h2>{{$preview}}</h2> <h2>{{$preview}}</h2>

View file

@ -2,6 +2,11 @@
{{$tostext nofilter}} {{$tostext nofilter}}
{{if $rules}}
<h2>{{$rulestitle}}</h2>
{{$rules nofilter}}
{{/if}}
{{if $displayprivstatement}} {{if $displayprivstatement}}
<h2>{{$privstatementtitle nofilter}}</h2> <h2>{{$privstatementtitle nofilter}}</h2>
<p>{{$privacy_operate nofilter}}</p> <p>{{$privacy_operate nofilter}}</p>