<div class="pageelement peNews" id="nive-element${context.GetID()}"
     tal:define="css context.data.cssClass; link view.ResolveLink(context.data.link)" i18n:domain="nive">

<tal:block tal:condition="css not in (u'teaser', u'teasers', u'line')">
<span class="dateright">${view.FmtDateNumbers(context.data.publish)}</span> 
<h4 tal:content="structure context.GetTitle()"/> 
<div id="news${context.id}" class="header">
<img tal:define="furl view.FileUrl('image', context)" tal:condition="furl" src="${furl}" 
     title="news" i18n:attributes="news" />
<div class="itext">
<p tal:condition="context.data.textblock" tal:replace="structure context.data.textblock"></p>
<a tal:condition="link" tal:attributes="href link" i18n:translate="">&gt; more</a>
</div>
</div>
</tal:block>

<tal:block tal:condition="css == u'teaser'">
<div class="teaser">
<img tal:condition="context.files.get('image')"
          tal:attributes="src view.FileUrl('image', context); title context.GetTitle()" />
<div class="itext">
<h3 tal:content="structure context.GetTitle()"/>
<p tal:condition="context.data.textblock" tal:replace="structure context.data.textblock"></p>
<a tal:condition="link" tal:attributes="href link" i18n:translate="">&gt; more</a>
<span class="date">${view.FmtDateNumbers(context.data.publish)}</span>
</div>
</div>
</tal:block>

<tal:block tal:condition="css == u'teasers'">
<div class="teaser_s">
<img tal:condition="context.files.get('image')"
          tal:attributes="src view.FileUrl('image', context); title context.GetTitle()" />
<div class="itext">
<h3 tal:content="structure context.GetTitle()"/>
<p tal:condition="context.data.textblock" tal:replace="structure context.data.textblock"></p>
<a tal:condition="link" tal:attributes="href link" i18n:translate="">&gt; more</a>
<span class="date">${view.FmtDateNumbers(context.data.publish)}</span>
</div>
</div>
</tal:block>

<tal:block tal:condition="css == u'line'">
<div class="newsline" onClick="$('#news${context.id}').toggle()" style="cursor:pointer;"
     ><h4 tal:content="structure context.GetTitle()"/> 
      <span class="date">${view.FmtDateNumbers(context.data.publish)}</span> 
      <a i18n:translate="">&gt; open</a></div>
<div id="news${context.id}" class="header" style="display:none;">
<img tal:define="furl view.FileUrl('image', context)" tal:condition="furl" src="${furl}" 
     title="news" i18n:attributes="news" />
<div class="itext">
<p tal:condition="context.data.textblock" tal:replace="structure context.data.textblock"></p>
<a tal:condition="link" tal:attributes="href link" i18n:translate="">&gt; more</a>
</div>
</div>
</tal:block>

</div>
