discuz template syntax, discuz template
Discuz! Look at this document!
Directly execute PHP code tag:
//Equivalent to
//Equivalent to
//Equivalent to
//Equivalent to
Directly output variables, which is equivalent to PHP's . The curly braces can be omitted but are not recommended. (The module program can only be called here after processing):
//Generally, the output content is not a simple variable
//Usage conditions: 1-Variables need to be processed by functions 2-The output is a variable, not an array
Ad embed point code:
//This is discuz embedded advertising. It is recommended that you customize the advertising space. The customized advertising space will automatically generate the calling code in the background. We only need to paste it. Just copy
Plug-in hook tag:
hook is the keyword, which means index_top is defined as a hook
Loop syntax (multiple loops possible)
Loop writing with array keys
HTML statement for loop output
Loop output HTML Statement
DIY area and background data call tag:
//Try your best Avoid using the DIY function of discuz, because the maintenance is huge. You can directly customize the module or module code through the background
{block XXX} (data call module)
Discuz! After the language pack is loaded, the usage in the template file:
{lang forum_category_modedby}
The language package is in the ./source/language/ directory and is stored in the form of a PHP array
http://www.bkjia.com/PHPjc/988270.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/988270.htmlTechArticlediscuz template syntax, discuz template Discuz! The analysis of X template is mainly the ./source/class/class_template.php file It is parsed and processed. If you need to know more about it, please take a look at this file! ...