I've been reading some joomla
code today and I'm often encountering statements like the following:
<?php if ( intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) : ?>
<tr>
<td colspan="2" class="modifydate"><?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2'))); ?> </td>
</tr>
<?php endif; ?>
The way I read it, it seems to translate to the following syntax:
if (condition) :
// do something here
endif;
I'm not familiar with this syntax (:
after the if
statement). Can anyone point me to the right place?