{** * Modern page template, allows for different layouts with just stylesheets * * @package saurus4 * *} {$title} {if $current_class == 'section' || $current_class == 'article'} {/if}
{init_trail name="parents"}
{init_sites name="langs"} {if sizeof($langs) > 1} {/if}

{$site_slogan}

    {strip} {********** Site menu **********} {init_sections name="sections_1" level="1" classes="section,link"} {foreach from=$sections_1 item="section_1"}
  • is_selected} class="active"{/if}>{$section_1->buttons}{$section_1->title}
  • {if $section_1->is_selected} {assign var="current_section_1" value=$section_1->id} {assign var="current_section_1_title" value=$section_1->title} {/if} {foreachelse}
  • {$sections_1_newbutton}
  • {/foreach} {********** /Site menu **********} {/strip}
{if $section_1->is_selected} {assign var="current_section_1" value=$section_1->id} {init_sections name="sections_2" parent=$section_1->id} {if $sections_2_count > 0} {elseif $in_editor} {/if} {/if}
{sysword word='seda sona ei ole lisatud' type='saurus4'} {sysword word='see on lisatud' type='saurus4'}
{********** Polls **********} {init_objects name="polls" classes="poll" parent=$saurus4.constants.sticky_links.$site_extension} {*********** loop over polls **********} {foreach from=$polls item=poll} {init_object name="object" id=$poll->id}

{$object->buttons}{$poll->title}

{********* VOTING *********} {**** 1. RESULTS: if user is already VOTED or poll is EXPIRED or in editor-area *} {if $object->is_voted || $object->is_expired || $in_editor}

{sysword word="poll_results" type="Visual design"}:

    {foreach from=$object->answers item=answer}
  1. {$answer->title} - {$answer->count}
  2. {/foreach}
{**** 2. VOTE FORM: if user is NOT VOTED and poll is NOT EXPIRED *} {else}
    {foreach from=$object->answers item=answer}
  • {/foreach}
{/if} {*user is voted or not*} {********* SHOW VOTERS INFO if not anonymous poll *********} {if !$object->is_anonymous}

{sysword word="poll_voters" type="Visual design"}

:
    {foreach from=$object->voters item=voter}
  1. {$voter->user_firstname} {$voter->user_lastname} ({$voter->time})
  2. {/foreach}
{/if} {foreachelse} {$polls_newbutton} {/foreach} {*********** loop over polls **********}
{********** 'include' the content **********} {print_content} {********** /'include' the content **********}