Jump to content

If Statement In Html Comments


webmaster
 Share

Recommended Posts

I have recently deployed phpbb on a site and noticed in the template file some weird code. The files are plain HTML, and as far as I know no special handlers were added. What kind of code is this? I don't recognize it as php.

<ul class="linklist">	<li class="icon-home"><a accesskey="h" href="{U_INDEX}">{L_INDEX}</a></li>	<!-- IF not S_IS_BOT --> 					<!-- IF S_WATCH_FORUM_LINK -->	<li><!-- IF S_WATCHING_FORUM -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a title="{S_WATCH_FORUM_TITLE}" href="{S_WATCH_FORUM_LINK}">{S_WATCH_FORUM_TITLE}</a></li>	<!-- ENDIF --> 					<!-- IF U_WATCH_TOPIC -->	<li><!-- IF S_WATCHING_TOPIC -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a title="{L_WATCH_TOPIC}" href="{U_WATCH_TOPIC}">{L_WATCH_TOPIC}</a></li>	<!-- ENDIF --> 					<!-- IF U_BOOKMARK_TOPIC -->	<li class="icon-bookmark"><a title="{L_BOOKMARK_TOPIC}" href="{U_BOOKMARK_TOPIC}">{L_BOOKMARK_TOPIC}</a></li>	<!-- ENDIF --> 					<!-- IF U_BUMP_TOPIC -->	<li class="icon-bump"><a title="{L_BUMP_TOPIC}" href="{U_BUMP_TOPIC}">{L_BUMP_TOPIC}</a></li>	<!-- ENDIF --> 				<!-- ENDIF -->	<li class="rightside"><!-- IF U_TEAM --><a href="{U_TEAM}">{L_THE_TEAM}</a> • <!-- ENDIF --><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> • <!-- ENDIF -->{S_TIMEZONE}</li></ul><span class="corners-bottom" /></div></div>

Edited by nbwebdesign
Link to comment
Share on other sites

It's just a custom template markup system - that code will then be parsed by a PHP script into proper HTML, substituting all the tokens with actual content.

Link to comment
Share on other sites

It's nothing really simple. If you want to get an idea of how complicated it is, look within the include files of PHPBB for template.php and look at the source code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...