<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="context/main_template/macros/master"
      i18n:domain="plone">

<body> 
    
    <metal:content-core fill-slot="content-core">
        <metal:block use-macro="context/folder_listing/macros/content-core">
            <!-- we don't want the dl -->
            <metal:entries fill-slot="entries">
                <metal:block use-macro="context/folder_listing/macros/entries">
                    <metal:entry fill-slot="entry">
                <div class="tileItem visualIEFloatFix" 
                     tal:define="item_object item/getObject;">

                    <a href="#" 
                       tal:condition="exists:item_object/image_thumb"
                       tal:attributes="href python:test(item_type in use_view_action, item_url+'/view', item_url)">
                        <img src="" alt=""
                             tal:replace="structure python: path('nocall:item_object/tag')(scale='thumb', css_class='tileImage')" />
                    </a>

                    <h2 class="tileHeadline"
                        metal:define-macro="listitem">

                        <a href="#"
                           class="summary url"
                           tal:attributes="href python:test(item_type in use_view_action, item_url+'/view', item_url);"
                           tal:content="item_title_or_id">
                            Item Title
                        </a>

                    </h2>

                    <div class="documentByLine" tal:condition="python: site_properties.allowAnonymousViewAbout or not isAnon">
                    <tal:event condition="python: item_type == 'Event'">
                        <span tal:condition="python: item_type == 'Event' and item.location"
                              i18n:translate="label_event_byline_with_location">
                            (<span tal:content="string:${item/location}"
                                   class="location"
                                   i18n:name="location">Oslo</span>, from
                             <abbr class="dtstart"
                                   tal:attributes="title python:item_start"
                                   tal:content="python:toLocalizedTime(item_start,long_format=1)"
                                   i18n:name="start">from date</abbr> to
                             <abbr class="dtend"
                                   tal:attributes="title python:item_end"
                                   tal:content="python:toLocalizedTime(item_end,long_format=1)"
                                   i18n:name="end">to date</abbr>)
                        </span>
                        <span tal:condition="python: item_type == 'Event' and not item.location"
                              i18n:translate="label_event_byline_without_location">
                            (from
                             <abbr class="dtstart"
                                   tal:attributes="title python:item_start"
                                   tal:content="python:toLocalizedTime(item_start,long_format=1)"
                                   i18n:name="start">from date</abbr> to
                             <abbr class="dtend"
                                   tal:attributes="title python:item_end"
                                   tal:content="python:toLocalizedTime(item_end,long_format=1)"
                                   i18n:name="end">to date</abbr>)
                        </span>
                    </tal:event>
                    <tal:newsitem condition="python: item_type == 'News Item'">
                        <tal:name tal:condition="item_creator"
                            tal:define="author python:pas_member.info(item_creator)">
                          <span class="documentAuthor" i18n:translate="label_by_author">
                            by
                          <a href="#"
                             tal:attributes="href string:${navigation_root_url}/author/${item_creator}"
                             tal:content="author/name_or_id"
                             tal:omit-tag="not:author"
                             i18n:name="author">
                            Bob Dobalina
                          </a>
                          </span>
                        </tal:name>
                        &mdash;
                        <span class="documentModified">
                              <tal:mod i18n:translate="box_last_modified">
                              last modified
                              </tal:mod>
                              <span tal:replace="python:toLocalizedTime(item_modified,long_format=1)">
                                      August 16, 2001 at 23:35:59
                              </span>
                        </span>
                    </tal:newsitem>
                    </div>

                    <p class="tileBody" tal:condition="item_description">
                        <span class="description" tal:content="item_description">
                            description
                        </span>
                    </p>

                    <p class="tileFooter">
                        <a href=""
                           tal:attributes="href python:test(item_type in use_view_action, item_url+'/view', item_url);"
                           i18n:translate="read_more">
                        Read More&hellip;
                        </a>
                    </p>

                    <div class="visualClear"><!-- --></div>

                </div>
                    </metal:entry>
                </metal:block>
            </metal:entries>
        </metal:block>
    </metal:content-core>
    
</body>
</html>
