Файл: upload/core/templates/default/pages/profile/profile.html
Строк: 134
<?php
<style>
:root {
--background-profile: url({{ user.background }});
--header-image: url({{ user.header }});
}
</style>
<div class="home_us tematic profile">
{{ breadcrumbs_html|raw }}
<script type="application/ld+json">{{ breadcrumbs_json|raw }}</script>
{% if ban %}
<div class="info-head_box">
<div class="title_head_box">Пользователь заблокирован</div>
<div class="flex_head-info">
<div class="title_flex-info">Причина блокировки:</div>
<div class="info_flex-info">{{ ban.reason }}</div>
</div>
<div class="flex_head-info">
<div class="title_flex-info">Дата блокировки:</div>
<div class="info_flex-info">{{ ban.start }}</div>
</div>
<div class="flex_head-info">
<div class="title_flex-info">Конец блокировки:</div>
<div class="info_flex-info">{{ ban.end }}</div>
</div>
</div>
{% endif %}
<div class="head_user_back"></div>
<div class="user_profile">
<div class="prof_flex">
<div class="ava_in_name-or-rt">
<div class="user_profile-ava">
<img src="{{ user.avatar }}">
</div>
<div class="name_or-rating">
<div class="username_us">
{{ user.login }} {{ user.online|raw }}
</div>
<div class="rating_us">
<div class="rating_flex user">
<span class="only-star"><i class="fas fa-star"></i></span>
<span>{{ user.rating_num }}</span>
<div class="star_rating">{{ user.rating_stars|raw }}</div>
</div>
</div>
<div class="prefix_us-group" style="{{ user.group_style }}">{{ user.group_name }}</div>
</div>
</div>
{% if is_owner %}
<a class="btn button" href="{{ home }}/account">Редактировать</a>
{% elseif is_auth %}
<a class="btn button" href="{{ home }}/mes/{{ user.id }}">Сообщение</a>
{% endif %}
</div>
</div>
{% if user.description %}
<div class="profile_page_name non-bg">
<div class="profile_page_desc">
<div class="label_box">О себе</div>
<div class="box_text">{{ user.description|raw }}</div>
</div>
</div>
{% endif %}
<div class="profile_page_name {% if works|length > 0 %}non-bg{% endif %}">
<div class="work_page_name {% if works|length > 0 %}non-bg{% endif %}">
{% if is_owner %}
Мои услуги
{% else %}
Услуги пользователя
{% endif %}
</div>
</div>
<div class="user_profile rating-box items">
{% if works is empty %}
<div class="otz_box non-rating">
<div class="us_info rating-box non-rating-info">Предложения отсутствуют.</div>
</div>
{% else %}
{% if is_owner %}
<form action="{{ home }}/up-all-works" method="post" class="up-all-form">
<input type="hidden" name="csrf_token" value="{{ csrf }}">
<button type="submit" class="up-all-btn">Поднять предложения</button>
</form>
{% endif %}
<div class="category_list profile works-list-profile">
{% for w in works %}
{{ w|raw }}
{% endfor %}
</div>
{% if show_more_works %}
<div class="bottom_wr-but">
<div class="load_more-button"
id="load-more-works"
data-offset="{{ works_limit }}"
data-id="{{ user.id }}">
Показать ещё
</div>
</div>
{% endif %}
{% endif %}
</div>
<div class="profile_page_name {% if comments|length > 0 %}non-bg{% endif %}">
<div class="work_page_name {% if comments|length > 0 %}non-bg{% endif %}">
{% if is_owner %}
Мои отзывы
{% else %}
Отзывы пользователя
{% endif %}
</div>
</div>
<div class="user_profile rating-box comments-container">
{% if comments is empty %}
<div class="otz_box non-rating">
<div class="us_info rating-box non-rating-info">Рейтинг отсутствует.</div>
</div>
{% else %}
{% for c in comments %}
{{ c|raw }}
{% endfor %}
{% endif %}
</div>
{% if show_more_comments %}
<div class="bottom_cm-but">
<div class="load_more-button comments"
id="load-more-comments"
data-offset="{{ comments_limit }}"
data-id="{{ user.id }}">
Показать ещё
</div>
</div>
{% endif %}
</div>
?>