PHP HTML -шаблон, если условия
<?php if( $condition ): ?>
<a href="http://yahoo.com">This will only display if $condition is true</a>
<?php elseif($anotherCondition) : ?>
more html
<?php else : ?>
even more html
<?php endif; ?>
Wicked Wolf