Advertisement
croc

Xenforo Syntax Reference

Jul 14th, 2016
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. Although the Xenforo template syntax is very scary at first glance, after spending a few hours or days with it, it starts to make sense! There really are only 7 special tags in the XenSyntax.
  2.  
  3. <xen:edithint template=" " />
  4.     Displays a tab above the editor to let you quickly switch to the specified template.
  5.  
  6. <xen:require css=" " />
  7. <xen:require js=" " />
  8. <xen:require template=" " />
  9.     Functions in a similar manner to a PHP require statement.
  10.    
  11. <xen:include css=" " />
  12. <xen:include js=" " />
  13. <xen:include template=" " />
  14.     Functions in a similar manner to a PHP include statement.
  15.        
  16. <xen:foreach loop=" " value=" ">
  17.  
  18. <xen:contentcheck></xen:contentcheck>
  19.     Checks to see if content exists between the tags.
  20.  
  21. <xen:if is=" ">
  22.  
  23. <xen:else />
  24.  
  25. </xen:if>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement