diff --git a/main/template/default/social/user_block.tpl b/main/template/default/social/user_block.tpl index da2fa01f63..69f0e57a4d 100644 --- a/main/template/default/social/user_block.tpl +++ b/main/template/default/social/user_block.tpl @@ -22,7 +22,7 @@
- {{ social_avatar_block }} + {{ social_avatar_block }} {% if user.icon_status %}
@@ -102,27 +102,30 @@ {% set linkedin_url = '' %} {% for extra in user.extra %} {% if extra.value.getField().getVariable() == 'skype' %} - {% set skype_account = extra.value.getValue() | remove_xss %} + {% set skype_account %} + + {{ 'Skype'|get_lang }} + + {% endset %} {% endif %} - {% if extra.value.getField().getVariable() == 'linkedin_url' %} - {% set linkedin_url = extra.value.getValue() | remove_xss %} + {% set linkedin_url %} + + {{ 'LinkedIn'|get_lang }} + + {% endset %} {% endif %} {% endfor %} {% if 'allow_show_skype_account'|api_get_setting == 'true' and not skype_account is empty %}
  • - - {{ 'Skype'|get_lang }} - + {{ skype_account | remove_xss}}
  • {% endif %} {% if 'allow_show_linkedin_url'|api_get_setting == 'true' and not linkedin_url is empty %}
  • - - {{ 'LinkedIn'|get_lang }} - + {{ linkedin_url | remove_xss}}
  • {% endif %} {% endif %} diff --git a/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php b/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php index e92c533945..5cb7f2b996 100644 --- a/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php +++ b/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php @@ -1,4 +1,5 @@