HowTo Отключить симпатии в профиле

klerk

Team member
VIP Hard
Verified
Joined
Feb 19, 2016
Messages
11,032
Reaction score
8,190
CP -> Внешний вид -> Стили -> Default Style -> Шаблоны -> profile_post
Заменить код:

Code:
               <div class="publicControls">
               <xen:contentcheck>
                   <xen:hook name="profile_post_public_controls" params="{xen:array 'profilePost={$profilePost}'}">
                   <xen:if is="{$profilePost.canLike}">
                       <a href="{xen:link 'profile-posts/like', $profilePost}" class="LikeLink item control {xen:if $profilePost.like_date, unlike, like}" data-container="#likes-wp-{$profilePost.profile_post_id}"><span></span><span class="LikeLabel">{xen:if $profilePost.like_date, {xen:phrase unlike}, {xen:phrase like}}</span></a>
                   </xen:if>
                   <xen:if is="{$profilePost.canComment}">
                       <a href="{xen:link 'profile-posts/comment', $profilePost}" class="CommentPoster item control postComment" data-commentArea="#commentSubmit-{$profilePost.profile_post_id}"><span></span>{xen:phrase comment_verb}</a>
                   </xen:if>
                   </xen:hook>
               </xen:contentcheck>
               </div>
на:
Code:
               <div class="publicControls">
               <xen:contentcheck>
                   <xen:hook name="profile_post_public_controls" params="{xen:array 'profilePost={$profilePost}'}">
                   <xen:if is="{$profilePost.canComment}">
                       <a href="{xen:link 'profile-posts/comment', $profilePost}" class="CommentPoster item control postComment" data-commentArea="#commentSubmit-{$profilePost.profile_post_id}"><span></span>{xen:phrase comment_verb}</a>
                   </xen:if>
                   </xen:hook>
               </xen:contentcheck>
               </div>

Отключить симпатии в профиле | в комментариях / ответах в сообщениях профилей

CP -> Внешний вид -> Стили -> Default Style -> Шаблоны -> profile_post_comment
Заменить код:

Code:
               <div class="publicControls">
               <xen:contentcheck>
                   <xen:if is="{$comment.canLike}">
                      <a href="{xen:link 'profile-posts/comments/like', $comment}" class="LikeLink item control {xen:if $comment.like_date, unlike, like}" data-container="#likes-pc-{$comment.profile_post_comment_id}"><span></span><span class="LikeLabel">{xen:if $comment.like_date, {xen:phrase unlike}, {xen:phrase like}}</span></a>
                   </xen:if>
               </xen:contentcheck>
               </div>
на:
Code:
               <div class="publicControls">
               <xen:contentcheck>
               </xen:contentcheck>
               </div>

Чтобы вернуть все обратно - необходимо добавить недостающий код обратно.
 
Top