diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-05-15 21:30:11 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-05-15 21:30:11 +0200 |
| commit | 5759435f4da8ec800ba9af0fbbf7d6691e9ed56c (patch) | |
| tree | a3e6f6c676743e89b11804a03bd4f1e837983be9 /protected/views/sitecontent | |
| parent | 94bdb31c204cdae3ca820828d4731f11f6ffeeae (diff) | |
diverse Layoutings
Diffstat (limited to 'protected/views/sitecontent')
| -rw-r--r-- | protected/views/sitecontent/_short.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protected/views/sitecontent/_short.php b/protected/views/sitecontent/_short.php new file mode 100644 index 0000000..bff61cf --- /dev/null +++ b/protected/views/sitecontent/_short.php @@ -0,0 +1,9 @@ + +<?php +if(strlen(strip_tags($data->content))>300) { + $tmp = str_split(strip_tags($data->content),297); + $myBeschreibung = $tmp[0]."..."; +} else { + $myBeschreibung = strip_tags($data->content); +}?> +<?php echo CHTML::link("<h6>".$data->title."</h6><p>".$myBeschreibung."</p>" ,array("/cms/sitecontent/view","id"=>$data->id)); ?>
\ No newline at end of file |
