L1MO1337
Заблокирован
		- Сообщения
 - 124
 
- Решения
 - 3
 
- Реакции
 - 14
 
- Баллы
 - 45
 
Добавил виджет на контакты в профиль, но он есть даже тогда, когда у человека они не заполнены и выглядит это мягко говоря не очень.

Код виджета:
	
	
	
		
				
			
Код виджета:
		Код:
	
	<xf:if contentcheck="true">
    <div class="block custom-widget">
        <div class="block-container">
            <div class="block-body">
                <div class="block-row">
                    <xf:contentcheck>
                       <p>Контакты</p>
                        <a href="https://site.ru/account/account-details" p class="changecontacts">Изменить</a>
                        <xf:macro template="custom_fields_macros" name="custom_fields_view"
                                  arg-type="users"
                                  arg-group="contact"
                                  arg-set="{$context.user.Profile.custom_fields}"
                                  arg-additionalFilters="{{ ['profile'] }}"
                                  arg-valueClass="pairs pairs--justified pairs--customField" />
                    </xf:contentcheck>
                </div>
            </div>
        </div>
    </div>
</xf:if>
	
				
						


