当用户是帖子所有者时,我想隐藏一些对象(例如{postrow.POST_LIKERS_COUNT}
)。
<div style="float: right; margin-top: 5px; margin-bottom: 5px;"
class="postlove">
<!-- IF (not S_USER_LOGGED_IN) --><span class="plus-likes">+</span>
<span class="counter-likes" id="like_{postrow.POST_ID}">
{postrow.POST_LIKERS_COUNT}</span>
<!-- ELSEIF S_USER_LOGGED_IN -->
<span class="plus-likes">+</span>
<span class="counter-likes" id="like_{postrow.POST_ID}">
{postrow.POST_LIKERS_COUNT}</span>
<!-- IF DISABLE != 1 -->
<!-- IF !postrow.DISABLE -->
<a href="{postrow.POST_LIKE_URL}" data-ajax="toggle_love">
<!-- ENDIF -->
<!-- ENDIF --><span class="button-like {postrow.POST_LIKE_CLASS}"
id="likeimg_{postrow.POST_ID}"></span>
<!-- IF !postrow.DISABLE -->
<!-- IF DISABLE != 1 -->
</a>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
</div>
<div style="margin-top: 15px;">
<p>Liked: {postrow.POST_LIKERS}</p>
</div>