view.phtml
745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
echo N2Html::openTag('div', $attributes); ?>
<?php
if ($lt) {
echo N2Html::tag('div', $ltAttributes, $lt);
}
if ($rt) {
echo N2Html::tag('div', $rtAttributes, $rt);
}
if ($lb) {
echo N2Html::tag('div', $lbAttributes, $lb);
}
if ($rb) {
echo N2Html::tag('div', $rbAttributes, $rb);
}
if ($center) {
echo N2Html::tag('div', $centerAttributes, $center);
}
if ($overlay) {
if ($overlay === true) {
echo N2Html::tag('div', array(
'class' => 'n2-box-overlay n2-on-hover'
), $rb);
} else {
echo $overlay;
}
}
?>
<?php
if (!empty($placeholderContent)):
?>
<div class="n2-box-placeholder">
<?php echo $placeholderContent; ?>
</div>
<?php
endif;
?>
</div>