{{assign var=GettedValues value=$smarty.get}}
{{assign var=FilterGet value=''}}
{{assign var=FilterGet2 value=''}}
{{if $GettedValues|@count gt 0}}

{{if $GettedValues.year neq ''}}
	{{assign var=FilterGet2 value=$FilterGet2|concat:'y-'|concat:$GettedValues.year|concat:'/'}}
{{/if}}

{{if $GettedValues.month neq ''}}
	{{assign var=FilterGet2 value=$FilterGet2|concat:'m-'|concat:$GettedValues.month|concat:'/'}}
{{/if}}



{{createOptions CollectionID=238 Column=1 var=EventTypes}}
{{foreach from=$EventTypes item=v key=k name=n}}
				{{assign var=val value='type'|concat:$k}}
				{{if $GettedValues.$val eq 'on'}}{{assign var=FilterGet value=$FilterGet|concat:'&type'|concat:$k|concat:'=on'}}{{/if}}
{{/foreach}}

{{if $FilterGet neq ''}}{{assign var=FilterGet value='?filter=1'|concat:$FilterGet}}{{/if}}

{{/if}}

	<li><a  href="/events/{{$FilterGet2}}{{$FilterGet}}" class="level2 first{{assign var=tmp value=$smarty.server.REQUEST_URI|explode:'/events/'}}{{if $tmp|@count gt 1}} selected{{/if}}">Monthly View</a></li>
	<li><a href="/events-weekly/{{$FilterGet2}}{{$FilterGet}}" {{assign var=tmp value=$smarty.server.REQUEST_URI|explode:'/events-weekly/'}}{{if $tmp|@count gt 1}}class="selected"{{/if}}>Weekly View</a></li>
	<li><a href="/events-daily/{{$FilterGet2}}{{$FilterGet}}" {{assign var=tmp value=$smarty.server.REQUEST_URI|explode:'/events-daily/'}}{{if $tmp|@count gt 1}}class="selected"{{/if}}>Daily View</a></li>