diff options
Diffstat (limited to 'protected/views')
| -rw-r--r-- | protected/views/angebot/_short.php | 11 | ||||
| -rw-r--r-- | protected/views/veranstaltung/index.php | 2 | ||||
| -rw-r--r-- | protected/views/verein/view.php | 3 |
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> |
