1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Template Functions

Discussion in 'Styling and Customization Questions' started by Brad L, Jun 25, 2015.

  1. Brad L

    Brad L Well-Known Member

    Is there a list of template functions somewhere?
     
  2. Arty

    Arty Well-Known Member

    Look in function _setupDefaults() in library/XenForo/Template/Compiler.php
     
    Brad L likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Not sure if this is what you mean?

    These are the PHP functions you can use in conditional statements:
    • is_array
    • is_object
    • is_string
    • isset
    • empty
    • array
    • array_key_exists
    • count
    • in_array
    • array_search
    • preg_match
    • preg_match_all
    • strpos
    • stripos
    • strlen
    • trim
    • ceil
    • floor
    • round
    • max
    • min
    • mt_rand
    • rand

    These are the PHP functions you can use in xen:calc:
    • abs
    • ceil
    • floor
    • max
    • min
    • pow
    • round
     
    Brad L likes this.

Share This Page