Browse Source

Create announcements-tpl

master
Marc Schlagenhauf 3 years ago
committed by GitHub
parent
commit
eb75cfdf4f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 68 additions and 0 deletions
  1. +68
    -0
      chunks/announcements/announcements-tpl

+ 68
- 0
chunks/announcements/announcements-tpl View File

@ -0,0 +1,68 @@
[[!If?
&subject=`[[+teaserimage]]`
&operator=`!empty`
&then=`
<!-- Evtl. andere Lösung? -->
<div class="box announcement-image" style="background-image:url(/[[+teaserimage]]);">
<h4>[[+pagetitle]]</h4>
[[+content]]
</div>`
&else=`
[[If?
&subject=`[[+announcements-color]]`
&operator=`=`
&operand=`rot`
&then=`
<div class="box announcement-red">
<h4>[[+pagetitle]]</h4>
[[+content]]
</div>`
]]
[[If?
&subject=`[[+announcements-color]]`
&operator=`=`
&operand=`gelb`
&then=`
<div class="box announcement-yellow">
<h4>[[+pagetitle]]</h4>
[[+content]]
</div>`
]]
[[If?
&subject=`[[+announcements-color]]`
&operator=`=`
&operand=`grün`
&then=`
<div class="box announcement-green">
<h4>[[+pagetitle]]</h4>
[[+content]]
</div>`
]]
[[If?
&subject=`[[+announcements-color]]`
&operator=`=`
&operand=`blau`
&then=`
<div class="box announcement-blue">
<h4>[[+pagetitle]]</h4>
[[+content]]
</div>`
]]
[[If?
&subject=`[[+announcements-color]]`
&operator=`=`
&operand=`grau`
&then=`
<div class="box info">
<h4>[[+pagetitle]]</h4>
[[+content]]
</div>`
]]
`
]]

Loading…
Cancel
Save