XF 2.0 PHP equivalent to template code

LPH

Well-known member
Licensed customer
Are there 'easy' means to change template code into PHP? For example,

Rich (BB code):
<xf:avatar user="$user" size="xs" />

What would be the equivalent?

I'm asking in order to better understand how to grab an avatar outside XenForo as well as other features. The avatar example is just so that I can go forward with more searching and trying to figure out XenForo 2.
 
Check out the XF\Template\Compiler\Tag folder

Thank you. This is the thread which prompted my question, is there an easy means? @Chris D explanation is for the dynamic and now I’m trying to put it all together- pull custom if available, pull gravitas if Set, pull dynamic but I’m wanting to make sure I’m understanding correctly. I suspected this is done in the template and can “easily “be converted to PHP.
 
Back
Top Bottom