[ticket/7138] Allow simple header and footer for trigger_error() messages

Adds a template condition using S_SIMPLE_MESSAGE that must be set to true
before calling trigger_error() which will automatically use the simple
header and footer files in the template directory instead of the overall
header and footer files.

PHPBB3-7138
This commit is contained in:
David King 2011-11-13 16:30:11 +01:00 committed by Joas Schilling
parent 00f792f16f
commit b371d62dd3

View file

@ -1,4 +1,8 @@
<!-- INCLUDE overall_header.html --> <!-- IF S_SIMPLE_MESSAGE -->
<!-- INCLUDE simple_header.html -->
<!-- ELSE -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
<div class="panel" id="message"> <div class="panel" id="message">
<div class="inner"><span class="corners-top"><span></span></span> <div class="inner"><span class="corners-top"><span></span></span>
@ -8,4 +12,8 @@
<span class="corners-bottom"><span></span></span></div> <span class="corners-bottom"><span></span></span></div>
</div> </div>
<!-- INCLUDE overall_footer.html --> <!-- IF S_SIMPLE_MESSAGE -->
<!-- INCLUDE simple_footer.html -->
<!-- ELSE -->
<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->