Code: Select all
data-skip-responsive="true"data-last-responsive="true"> {L_FAQ}
<!-- IF S_USER_LOGGED_IN --><span class="site_logo"></span><!-- ELSE --><span class="site_logo_guest"></span><!-- ENDIF -->
Code: Select all
<!-- IF S_USER_LOGGED_IN -->
<a href="{% if U_SITE_HOME %}{{ U_SITE_HOME }}{% else %}{{ U_INDEX }}{% endif %}" title="{% if U_SITE_HOME %}{{ L_SITE_HOME }}{% else %}{{ L_INDEX }}{% endif %}">
<div class="carbon-topper"></div><img src="{T_THEME_PATH}/images/carbon-logo.jpg" class="carbon-image-wrapper" alt="">
</a>
<!-- ELSE -->
<a href="{% if U_SITE_HOME %}{{ U_SITE_HOME }}{% else %}{{ U_INDEX }}{% endif %}" title="{% if U_SITE_HOME %}{{ L_SITE_HOME }}{% else %}{{ L_INDEX }}{% endif %}">
<div class="carbon-topper"></div><img src="{T_THEME_PATH}/images/carbon-logo-guest.jpg" class="carbon-image-wrapper" alt="">
</a>
<!-- ENDIF -->
They are not - they are in html
If you open includes/functions.php , near the end of the file you'll find a long list of common template variables. Each individual file, viewforum.php for example, will have it's own list of template variables available at the end of the file. For example one of them is S_VIEWFORUM which you could use to display something in overall_header.html only for viewforum.php. The variables prepended with S_ are switches set to to true of false, the ones with L_ are from the language files. Most of the others hold values or arrays.
That's from phpBB's custom template engine starting with phpBB 2.0 in the early 2000's. phpBB also supports Twig syntax and I suspect that phpBB's template engine will get the axe in the future.However i would have never thought that comments tags <!-- and --> were used as control code in PHP
Code: Select all
<!-- IF 0 -->Comment text or some code to be removed<!-- ENDIF -->