use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Model\User;
+use Friendica\Module\Tos;
use Friendica\Util\DateTimeFormat;
require_once 'include/enotify.php';
$tpl = $arr['template'];
+ $tos = new Tos();
+
$o = replace_macros($tpl, [
'$oidhtml' => $oidhtml,
'$invitations' => Config::get('system', 'invitation_only'),
'$importt' => L10n::t('Import your profile to this friendica instance'),
'$showtoslink' => Config::get('system', 'tosdisplay'),
'$tostext' => L10n::t('Terms of Service'),
+ '$showprivstatement' => Config::get('system', 'tosprivstatement'),
+ '$privstatement' => $tos->privblock,
'$baseurl' => System::baseurl(),
'$form_security_token' => get_form_security_token("register")
]);
{{if $showtoslink}}
<p><a href="{{$baseurl}}/tos">{{$tostext}}</a></p>
{{/if}}
+ {{if $showprivstatement}}
+ <h4>{{$privstatement.0}}</h4>
+ {{for $i=1 to 3}}
+ <p>{{$privstatement[$i]}}</p>
+ {{/for}}
+ {{/if}}
<div id="register-submit-wrapper">
<input type="submit" name="submit" id="register-submit-button" value="{{$regbutt|escape:'html'}}" />
{{if $showtoslink}}
<p><a href="{{$baseurl}}/tos">{{$tostext}}</a></p>
{{/if}}
+ {{if $showprivstatement}}
+ <h4>{{$privstatement.0}}</h4>
+ {{for $i=1 to 3}}
+ <p>{{$privstatement[$i]}}</p>
+ {{/for}}
+ {{/if}}
<div id="register-submit-wrapper" class="pull-right">
<button type="submit" name="submit" id="register-submit-button" class="btn btn-primary" value="{{$regbutt|escape:'html'}}">{{$regbutt|escape:'html'}}</button>