{* $Id: mod-since_last_visit_new.tpl 58195 2016-04-06 11:05:45Z chibaguy $ *}
{if $user}
	{tikimodule error=$module_params.error title=$tpl_module_title name="since_last_visit_new" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
		<div style="margin-bottom: 5px; text-align:center;">
			{if $prefs.feature_calendar eq 'y' && $date_as_link eq 'y'}
				<a class="linkmodule" href="tiki-calendar.php?todate={$slvn_info.lastLogin}" title="{tr}click to edit{/tr}">
			{/if}
			<b>{$slvn_info.lastLogin|tiki_short_date}</b>
			{if $prefs.feature_calendar eq 'y'}
				</a>
			{/if}
		</div>
		{if $slvn_info.cant == 0}
			<div class="separator">{tr}Nothing has changed{/tr}</div>
		{else}
			{if $use_jquery_ui eq "y"}
				{assign var=fragment value=1}
				<div class="tabs">
					<ul class="nav nav-tabs">
						{foreach key=pos item=slvn_item from=$slvn_info.items}
							{if $slvn_item.count > 0}
								<li class="text-center">
									<a data-toggle="tab" href="#fragment-{$fragment}">
										{if $pos eq "blogs"}
											{icon name="bold" size=1 ititle="Blogs"}
										{elseif $pos eq "blogPosts"}
											{icon name="bold" size=1 ititle="{tr}Blog Posts{/tr}"}
										{elseif $pos eq "articles"}
											{icon name="newspaper-o" size=1 ititle="{tr}Articles{/tr}"}
										{elseif $pos eq "posts"}
											{icon name="comments" size=1 ititle="{tr}Forums{/tr}"}
										{elseif $pos eq "fileGalleries"}
											{icon name="folder-open" size=1 ititle="{tr}File Galleries{/tr}"}
										{elseif $pos eq "files"}
											{icon name="file-o" size=1 ititle="{tr}Files{/tr}"}
										{elseif $pos eq "imageGalleries"}
											{icon name="file-image-o" size=1 ititle="{tr}Image Galleries{/tr}"}
										{elseif $pos eq "images"}
											{icon name="file-image-o" size=1 ititle="{tr}Images{/tr}"}
										{elseif $pos eq "polls"}
											{icon name="tasks" size=1 ititle="{tr}Poll{/tr}"}
										{elseif $pos eq "pages"}
											{icon name="file-text-o" size=1 ititle="{tr}Wiki{/tr}"}
										{elseif $pos eq "comments"}
											{icon name="comments-o" size=1 ititle="{tr}Comments{/tr}"}
										{elseif $pos eq "forums"}
											{icon name="comments" size=1 ititle="{tr}Forums{/tr}"}
										{elseif $pos eq "trackers"}
											{icon name="database" size=1 ititle="{tr}Tracker Items{/tr} ({tr}New{/tr})"}
										{elseif $pos eq "utrackers"}
											{icon name="database" size=1 ititle="{tr}Tracker Items{/tr} ({tr}Updated{/tr})"}
										{elseif $pos eq "users"}
											{icon name="group" size=1 ititle="{tr}Users{/tr}"}
										{elseif $pos eq "calendar"}
											{icon name="calendar" size=1 ititle="{tr}Calendars{/tr}"}
										{elseif $pos eq "events"}
											{icon name="calendar" size=1 ititle="{tr}Events{/tr}"}
										{else}
											{$pos}
										{/if}
									</a>
								</li>
								{assign var=fragment value=$fragment+1}
							{/if}
						{/foreach}
					</ul>
				</div>
				{assign var=fragment value=1}
			{/if}
			<div class="tab-content">
			{foreach key=pos item=slvn_item from=$slvn_info.items}
				{if $slvn_item.count > 0}
					{if $use_jquery_ui eq "y"}<div id="fragment-{$fragment}" class="tab-pane{if $fragment eq 1} active{/if}">{/if}
					{assign var=cname value=$slvn_item.cname}
					{if $slvn_item.count eq $module_rows}
						<div class="separator"><a class="separator" href="javascript:flip('{$cname}');">{tr}Multiple{/tr} {$slvn_item.label}, {tr}including{/tr}</a></div>
					{else}
						<div class="separator"><a class="separator" href="javascript:flip('{$cname}');">{$slvn_item.count}&nbsp;{$slvn_item.label}</a></div>
					{/if}
					{assign var=showcname value="show_"|cat:$cname}

					{if $pos eq 'trackers' or $pos eq 'utrackers'}
						<div id="{$cname}">

							{****** Parse out the trackers *****}
							{foreach key=tp item=tracker from=$slvn_item.tid}
								{assign var=tcname value=$tracker.cname}
								<div class="separator" style="margin-left: 10px; display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}{$default_folding}{else}{$opposite_folding}{/if};">
									{assign var=showtcname value="show_"|cat:$tcname}
									<a class="separator" href="javascript:flip('{$tcname}');">{$tracker.count}&nbsp;{$tracker.label|escape}</a>
									<div id="{$tcname}" style="display:{if !isset($cookie.$showtcname) or $cookie.$showtcname eq 'y'}{$default_folding}{else}{$opposite_folding}{/if};">
										{if $nonums != 'y'}<ol>{else}<ul>{/if}
										{section name=xx loop=$tracker.list}
											<li><a class="linkmodule"
														href="{$tracker.list[xx].href|escape}"
														title="{$tracker.list[xx].title|escape}">{if $tracker.list[xx].label == ''}-{else}{$tracker.list[xx].label|escape}{/if}
													</a>
											</li>
										{/section}
										{if $nonums != 'y'}</ol>{else}</ul>{/if}
									</div>
								</div>
							{/foreach}
							{****** End tracker section *****}
						</div>
					{else}
						<div id="{$cname}" style="display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}{$default_folding}{else}{$opposite_folding}{/if};">
							{if $nonums != 'y'}<ol>{else}<ul>{/if}
							{section name=ix loop=$slvn_item.list}
								<li>
									<a class="linkmodule"
										href="{$slvn_item.list[ix].href|escape}"
										title="{$slvn_item.list[ix].title|escape}"
									>
										{if $slvn_item.list[ix].label == ''}-{else}{$slvn_item.list[ix].label|escape}{/if}
									</a>
								</li>
							{/section}
							{if $nonums != 'y'}</ol>{else}</ul>{/if}
						</div>
					{/if}
					{if $use_jquery_ui eq "y"}
						</div>
						{assign var=fragment value=$fragment+1}
					{/if}
				{/if}
			{/foreach}
			</div>
		{/if}
	{/tikimodule}
{/if}
