only show the remote_self option if admin allows it
This commit is contained in:
parent
f515def280
commit
25d83f780d
|
@ -157,6 +157,7 @@ function crepair_content(&$a) {
|
||||||
'$label_poll' => t('Poll/Feed URL'),
|
'$label_poll' => t('Poll/Feed URL'),
|
||||||
'$label_photo' => t('New photo from this URL'),
|
'$label_photo' => t('New photo from this URL'),
|
||||||
'$label_remote_self' => t('Remote Self'),
|
'$label_remote_self' => t('Remote Self'),
|
||||||
|
'$allow_remote_self' => get_config('system','allow_users_remote_self'),
|
||||||
'$remote_self' => array('remote_self', t('Mirror postings from this contact'), $contact['remote_self'], t('Mark this contact as remote_self, this will cause friendica to repost new entries from this contact.')),
|
'$remote_self' => array('remote_self', t('Mirror postings from this contact'), $contact['remote_self'], t('Mark this contact as remote_self, this will cause friendica to repost new entries from this contact.')),
|
||||||
'$contact_name' => $contact['name'],
|
'$contact_name' => $contact['name'],
|
||||||
'$contact_nick' => $contact['nick'],
|
'$contact_nick' => $contact['nick'],
|
||||||
|
|
|
@ -37,9 +37,10 @@
|
||||||
<label id="crepair-photo-label" class="crepair-label" for="crepair-photo">{{$label_photo}}</label>
|
<label id="crepair-photo-label" class="crepair-label" for="crepair-photo">{{$label_photo}}</label>
|
||||||
<input type="text" id="crepair-photo" class="crepair-input" name="photo" value="" />
|
<input type="text" id="crepair-photo" class="crepair-input" name="photo" value="" />
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
{{if $allow_remote_self eq 1}}
|
||||||
<h4>{{$label_remote_self}}</h4>
|
<h4>{{$label_remote_self}}</h4>
|
||||||
{{include file="field_checkbox.tpl" field=$remote_self}}
|
{{include file="field_checkbox.tpl" field=$remote_self}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<input type="submit" name="submit" value="{{$lbl_submit}}" />
|
<input type="submit" name="submit" value="{{$lbl_submit}}" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue