summaryrefslogtreecommitdiff
path: root/protected/modules/cms/components/views
diff options
context:
space:
mode:
Diffstat (limited to 'protected/modules/cms/components/views')
-rw-r--r--protected/modules/cms/components/views/advert.php16
-rw-r--r--protected/modules/cms/components/views/search.php6
2 files changed, 22 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>
diff --git a/protected/modules/cms/components/views/search.php b/protected/modules/cms/components/views/search.php
new file mode 100644
index 0000000..1163abd
--- /dev/null
+++ b/protected/modules/cms/components/views/search.php
@@ -0,0 +1,6 @@
+<?php
+echo CHtml::beginForm(array('/cms/sitecontent/search'));
+echo CHtml::textField('search', '', array('size' => 10));
+echo CHtml::submitButton('Suche');
+echo CHtml::endForm();
+?>