* @property string $pref_pays Country
* @property integer $pref_postal_adress Postal adress to use, one of self::POSTAL_ADDRESS*
* @property integer $pref_postal_staff_member Staff member ID from which retrieve postal address
+ * @property boolean $pref_disable_members_socials
* @property string $pref_lang Default instance language
* @property integer $pref_numrows Default number of rows in lists
* @property integer $pref_log History, one of self::LOG_*
'pref_pays' => '',
'pref_postal_adress' => self::POSTAL_ADDRESS_FROM_PREFS,
'pref_postal_staff_member' => '',
+ 'pref_disable_members_socials' => false,
'pref_lang' => I18n::DEFAULT_LANG,
'pref_numrows' => 30,
'pref_log' => self::LOG_ENABLED,
</div>
{# Social networks attached to the contact information fieldset #}
- {% if fieldset.id == 3 and not (masschange ?? false) %}
+ {% if fieldset.id == 3 and not (masschange ?? false) and preferences.pref_disable_members_socials != 1 %}
{% include "elements/edit_socials.html.twig" with {socials: member.socials} %}
{% endif %}
{% endfor %}
#}
{% if tabbed ?? false == true %}
<div id="social" class="ui{{ tab == 'social' ? ' active' }} tab segment" data-tab="social">
+ <div class="ui stackable two column grid">
+ <div class="ten wide column">
{% block social_edit %}
{% for social in socials %}
<div class="inline field stored">
</a>
</div>
{% endblock %}
+ </div>
+ <div class="six wide column">
+ <div class="field inline">
+ <div class="ui right aligned toggle checkbox">
+ <input type="checkbox" name="pref_disable_members_socials" id="pref_disable_members_socials" value="1" {% if preferences.pref_disable_members_socials %} checked="checked"{% endif %}/>
+ <label for="pref_disable_members_socials">{{ _T("Disable social networks on member form") }}</label>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
{% else %}
<div id="social" class="ui styled fluid accordion field">
</div>
</div>
{# Social networks attached to the contact information fieldset #}
- {% if display_element.id == '3' %}
+ {% if display_element.id == '3' and preferences.pref_disable_members_socials != 1 %}
{% include "elements/display_socials.html.twig" with {socials: member.socials} %}
{% endif %}
{% endfor %}