summaryrefslogtreecommitdiff
path: root/protected/views
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2014-05-08 14:36:06 +0200
committerPatrick Seeger <pseeger@ccwn.org>2014-05-08 14:36:06 +0200
commit1605cc08545606471973f6be130afca015bb35fe (patch)
tree0e145401b8c09e55b27ad60f28798ca6c2aa2f17 /protected/views
parent94a8598fa257e8838e7761e0b003677c0bb908d2 (diff)
Ausblenden von alten Veranstaltungen und alte Dinge
Diffstat (limited to 'protected/views')
-rw-r--r--protected/views/angebot/_short.php11
-rw-r--r--protected/views/veranstaltung/index.php2
-rw-r--r--protected/views/verein/view.php3
3 files changed, 15 insertions, 1 deletions
diff --git a/protected/views/angebot/_short.php b/protected/views/angebot/_short.php
new file mode 100644
index 0000000..ccbb0ff
--- /dev/null
+++ b/protected/views/angebot/_short.php
@@ -0,0 +1,11 @@
+<?php
+if(strlen(strip_tags($data->beschreibung))>50) {
+ $tmp = str_split(strip_tags($data->beschreibung),47);
+ $myBeschreibung = $tmp[0]."...";
+} else {
+ $myBeschreibung = strip_tags($data->beschreibung);
+}
+if(strlen($myBeschreibung)> 0) {
+ $myBeschreibung=" (Beschreibung:".$myBeschreibung.")";
+}
+echo CHTML::link("<strong>".$data->name."</strong>".$myBeschreibung,array("speisTrank/view","id"=>$data->id)); ?><br /><br /> \ No newline at end of file
diff --git a/protected/views/veranstaltung/index.php b/protected/views/veranstaltung/index.php
index c7e1145..4415f85 100644
--- a/protected/views/veranstaltung/index.php
+++ b/protected/views/veranstaltung/index.php
@@ -13,7 +13,7 @@ $this->menu=array(
<?php $this->widget('zii.widgets.CListView', array(
- 'dataProvider'=>$model->published()->sorted()->search(),
+ 'dataProvider'=>$model->published()->thisYear()->sorted()->search(),
'itemView'=>'_short_all', // refers to the partial view named '_post'
'sortableAttributes'=>array(
'startzeit', 'titel'
diff --git a/protected/views/verein/view.php b/protected/views/verein/view.php
index 937a99b..76ddd88 100644
--- a/protected/views/verein/view.php
+++ b/protected/views/verein/view.php
@@ -9,6 +9,9 @@ $this->pageTitle = $model->name . ' - ' . Yii::app()->name;
array('label'=>'Vereine verwalten', 'url'=>array('index')),
);*/
+if ($model->hintergrund && ""!=$model->hintergrund) {
+ $this->astafAdditionalStyle="background-repeat:no-repeat;background-image: url('".$model->hintergrund."');";
+}
?>
<h3><?php echo $model->name; ?></h3>