/apps/timeline/templates/default/data.tpl

http://zoop.googlecode.com/ · Smarty Template · 11 lines · 11 code · 0 blank · 0 comment · 0 complexity · 8e4d4bcb801b5131c9b751d4e12598d8 MD5 · raw file

  1. <data>
  2. {foreach from=$entries item=thisEntry}
  3. <event
  4. start="{$thisEntry->start|date_format:'%b %d %Y %H:%M:%S %Z'}"
  5. {if $thisEntry->is_duration}end="{$thisEntry->end|date_format:'%b %d %Y %H:%M:%S %Z'}"{/if}
  6. isDuration="{if $thisEntry->is_duration}true{else}false{/if}"
  7. title="{$thisEntry->title}"
  8. >
  9. </event>
  10. {/foreach}
  11. </data>