root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / panels / two_brick / two-brick.tpl.php @ fbb05e21
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Adativetheme implementation to present a Panels layout.
|
5 |
*
|
6 |
* Available variables:
|
7 |
* - $content: An array of content, each item in the array is keyed to one
|
8 |
* panel of the layout.
|
9 |
* - $css_id: unique id if present.
|
10 |
* - $panel_prefix: prints a wrapper when this template is used in certain context,
|
11 |
* such as when rendered by Display Suite or other module - the wrapper is
|
12 |
* added by Adaptivetheme in the appropriate process function.
|
13 |
* - $panel_suffix: closing element for the $prefix.
|
14 |
*
|
15 |
* @see adaptivetheme_preprocess_two_brick()
|
16 |
* @see adaptivetheme_preprocess_node()
|
17 |
* @see adaptivetheme_process_node()
|
18 |
*/
|
19 |
|
20 |
// Ensure variables are always set. In the last hours before cutting a stable
|
21 |
// release I found these are not set when inside a Field Collection using Display
|
22 |
// Suite, even though they are initialized in the templates preprocess function.
|
23 |
// This is a workaround, that may or may not go away.
|
24 |
$panel_prefix = isset($panel_prefix) ? $panel_prefix : ''; |
25 |
$panel_suffix = isset($panel_suffix) ? $panel_suffix : ''; |
26 |
?>
|
27 |
<?php print $panel_prefix; ?> |
28 |
<div class="two-brick at-panel panel-display clearfix" <?php if (!empty($css_id)): print "id=\"$css_id\""; endif; ?>> |
29 |
<?php if ($content['two_brick_top']): ?> |
30 |
<div class="region region-two-brick-top region-conditional-stack"> |
31 |
<div class="region-inner clearfix"> |
32 |
<?php print $content['two_brick_top']; ?> |
33 |
</div>
|
34 |
</div>
|
35 |
<?php endif; ?> |
36 |
<div class="panel-row row-1 clearfix"> |
37 |
<div class="region region-two-brick-left-above"> |
38 |
<div class="region-inner clearfix"> |
39 |
<?php print $content['two_brick_left_above']; ?> |
40 |
</div>
|
41 |
</div>
|
42 |
<div class="region region-two-brick-right-above"> |
43 |
<div class="region-inner clearfix"> |
44 |
<?php print $content['two_brick_right_above']; ?> |
45 |
</div>
|
46 |
</div>
|
47 |
</div>
|
48 |
<?php if ($content['two_brick_middle']): ?> |
49 |
<div class="region region-two-brick-middle region-conditional-stack"> |
50 |
<div class="region-inner clearfix"> |
51 |
<?php print $content['two_brick_middle']; ?> |
52 |
</div>
|
53 |
</div>
|
54 |
<?php endif; ?> |
55 |
<div class="panel-row row-2 clearfix"> |
56 |
<div class="region region-two-brick-left-below"> |
57 |
<div class="region-inner clearfix"> |
58 |
<?php print $content['two_brick_left_below']; ?> |
59 |
</div>
|
60 |
</div>
|
61 |
<div class="region region-two-brick-right-below"> |
62 |
<div class="region-inner clearfix"> |
63 |
<?php print $content['two_brick_right_below']; ?> |
64 |
</div>
|
65 |
</div>
|
66 |
</div>
|
67 |
<?php if ($content['two_brick_bottom']): ?> |
68 |
<div class="region region-two-brick-bottom region-conditional-stack"> |
69 |
<div class="region-inner clearfix"> |
70 |
<?php print $content['two_brick_bottom']; ?> |
71 |
</div>
|
72 |
</div>
|
73 |
<?php endif; ?> |
74 |
</div>
|
75 |
<?php print $panel_suffix; ?> |