summaryrefslogtreecommitdiff
path: root/protected/modules/cms/components/views/advert.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-22 10:56:25 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-22 10:56:25 +0200
commit2a8b46329775b8503519d432a52dba13e8547d8e (patch)
tree74aca6815e0cdc617dd125b894591d00f04a44c0 /protected/modules/cms/components/views/advert.php
parent12c8482bf883988c0fc5ed4c8972396af63e8258 (diff)
cms integriert (yaycms)
Diffstat (limited to 'protected/modules/cms/components/views/advert.php')
-rw-r--r--protected/modules/cms/components/views/advert.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/protected/modules/cms/components/views/advert.php b/protected/modules/cms/components/views/advert.php
new file mode 100644
index 0000000..676348f
--- /dev/null
+++ b/protected/modules/cms/components/views/advert.php
@@ -0,0 +1,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>