summaryrefslogtreecommitdiff
path: root/protected/modules/cms/components/views/advert.php
blob: 676348fc02eabd5f938a12f58cc5f6c639b1fa57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
$url = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('CmsAssets'));         
$file = $url . DIRECTORY_SEPARATOR . 'jquery.jshowoff.min.js';
Yii::app()->clientScript->registerScriptFile($file);
Yii::app()->clientScript->registerScript('advertising', "$('#adverts').jshowoff({links: false, controls:false});");

echo '<div id="adverts">';
foreach($adverts as $advert) {
	echo '<div class="advert">';
	echo $advert->content;
	echo '</div>';
}

echo '</div>';
?>
<div style="clear:both;"></div>