1 |
87dbc3bf
|
Benjamin Luce
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
?>
|
10 |
|
|
<?php if ($prefix): ?>
|
11 |
|
|
<?php print $prefix; ?>
|
12 |
|
|
<?php endif; ?>
|
13 |
|
|
<fieldset <?php print $attributes; ?>>
|
14 |
|
|
<?php if ($title): ?>
|
15 |
|
|
<?php if ($collapsible): ?>
|
16 |
|
|
<legend class="panel-heading">
|
17 |
|
|
<a href="#<?php print $id; ?>" class="panel-title fieldset-legend" data-toggle="collapse">
|
18 |
|
|
<?php print $title; ?>
|
19 |
|
|
</a>
|
20 |
|
|
</legend>
|
21 |
|
|
<?php else: ?>
|
22 |
|
|
<legend class="panel-heading">
|
23 |
|
|
<div class="panel-title fieldset-legend">
|
24 |
|
|
<?php print $title; ?>
|
25 |
|
|
</div>
|
26 |
|
|
</legend>
|
27 |
|
|
<?php endif; ?>
|
28 |
|
|
<?php endif; ?>
|
29 |
|
|
<?php if ($collapsible): ?>
|
30 |
|
|
<div id="<?php print $id; ?>" class="panel-collapse collapse fade<?php print (!$collapsed ? ' in' : ''); ?>">
|
31 |
|
|
<?php endif; ?>
|
32 |
|
|
<div class="panel-body">
|
33 |
|
|
<?php if ($description): ?>
|
34 |
|
|
<p class="help-block">
|
35 |
|
|
<?php print $description; ?>
|
36 |
|
|
</p>
|
37 |
|
|
<?php endif; ?>
|
38 |
|
|
<?php print $content; ?>
|
39 |
|
|
</div>
|
40 |
|
|
<?php if ($collapsible): ?>
|
41 |
|
|
</div>
|
42 |
|
|
<?php endif; ?>
|
43 |
|
|
</fieldset>
|
44 |
|
|
<?php if ($suffix): ?>
|
45 |
|
|
<?php print $suffix; ?>
|
46 |
|
|
<?php endif; ?> |