عرض مشاركة واحدة
قديم 04-15-2019, 09:02 PM
المشاركة 8
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
افتراضي رد: العبارات الشرطية في Xenforo 2.0 مفيدة جدا لاصحاب المواقع
تم تحميل الملف بالمشاركة ووضع باقى الاكواد هنا بالدرس

19. How can I show the content only when creating a thread?
كود:
<xf:if is="$template == 'forum_post_thread'">
Show content...
</xf:if
20. How can I hide the content only when creating a thread?
كود:
<xf:if is="$template != 'forum_post_thread'">
Hide content..
</xf:if>
21. How can I show the content only when creating a resource?
كود:
<xf:if is="$template == 'xfrm_category_add_resource'">
Show content..
</xf:if>
22. How can I hide the content only when creating a resource?
كود:
<xf:if is="$template != 'xfrm_category_add_resource'">
Hide content..
</xf:if>
23. How can I show you only when viewing the search page?
كود:
<xf:if is="$template == 'search_form'">
Show content..
</xf:if>
24. How can I hide you only when viewing the search page?
كود:
<xf:if is="$template != 'search_form'">
Hide content..
</xf:if>
25. How can I show content only in what's new?
كود:
<xf:if is="$template == 'whats_new'">
Show content..
</xf:if>
26. How can I hide content only in what's new?
كود:
<xf:if is="$template != 'whats_new'">
Hide content..
</xf:if>
27. How can I show content message on in a conversation?
كود:
<xf:if is="$template == 'conversation_view'">
Show content..
</xf:if>
28. How can I hide content message on in a conversation?
كود:
<xf:if is="$template != 'conversation_view'">
Hide content..
</xf:if>
29. How can I show only on the conversation list?
كود:
<xf:if is="$template == 'conversation_list'">
Show content..
</xf:if>
30. How can I hide only on the conversation list?
كود:
<xf:if is="$template != 'conversation_list'">
Hide content..
</xf:if>
31. How can I show only resources on the homepage?
كود:
<xf:if is="$template == 'xfrm_overview'">
Show content..
</xf:if>
32. How can I hide only resources on the homepage?
كود:
<xf:if is="$template != 'xfrm_overview'">
Hide content..
</xf:if>
33. How can I show only when viewing sources content?
كود:
<xf:if is="$template == 'xfrm_resource_view'">
Show content..
</xf:if>
34. How can I hide only when viewing sources content?
كود:
<xf:if is="$template != 'xfrm_resource_view'">
Hide content..
</xf:if>
35. How can I show when the thread is displayed?
كود:
<xf:if is="$template == 'thread_view'">
Show content..
</xf:if>
36. How can I hide when the thread is displayed?
كود:
<xf:if is="$template !='thread_view'">
Hide content..
</xf:if>
37. How can I show it in the thread list?
كود:
<xf:if is="$template =='forum_view'">
Show content..
</xf:if>
38. How can I hide it in the thread list?
كود:
<xf:if is="$template !== 'forum_view'">
Hide content..
</xf:if>