Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 483834dd9d
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (28 sloc) 0.924 kb
<?php if (!defined('APPLICATION')) exit();
require_once $this->FetchViewLocation('helper_functions');
?>
<div class="Box BoxPromoted">
<h4><?php echo T('Promoted Content'); ?></h4>
<div class="PanelInfo DataList">
<?php
$Content = $this->Data('Content');
$ContentItems = sizeof($Content);
if ($Content):
if ($this->Group):
$Content = array_chunk($Content, $this->Group);
endif;
foreach ($Content as $ContentChunk):
if ($this->Group):
echo '<div class="PromotedGroup">';
foreach ($ContentChunk as $ContentItem):
WritePromotedContent($ContentItem, $this);
endforeach;
echo '</div>';
else:
WritePromotedContent($ContentChunk, $this);
endif;
endforeach;
endif;
?>
</div>
</div>
Jump to Line
Something went wrong with that request. Please try again.