forked from dingproject/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-campaign.tpl.php
More file actions
24 lines (21 loc) · 885 Bytes
/
node-campaign.tpl.php
File metadata and controls
24 lines (21 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// $Id$
/**
* @file
* Template to render campaign nodes.
*/
if ($node->campaign_type == "image-only"): ?>
<div class="campaign-image campaign-type-<?php print $node->campaign_type; ?> clearfix">
<?php print l($node->field_campaign_image['0']['view'], $node->field_campaign_link['0']['url'], $options= array('html'=>TRUE,'query' => $node->field_campaign_link['0']['query'])); ?>
</div>
<?php else: ?>
<div class="campaign-text clearfix">
<div class="campaign-inner">
<div class="campaign-type-<?php print $node->campaign_type;?>">
<div class="campaign-theme campaign-theme-<?php print $node->campaign_theme; ?>">
<?php print l(filter_xss($node->content['body']['#value']), $node->field_campaign_link['0']['url'], $options= array('html'=>TRUE,'query' => $node->field_campaign_link['0']['query'])); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>