<div class='opaque calBox' style="width:200px">
	{if $calendar_type eq "tiki_actions"}
		<div class='box-title'>
			<a href="{$item_url}">
				{$cellhead}
			</a>
			{if isset($infocals.$cellcalendarId.custompriorities) and $infocals.$cellcalendarId.custompriorities eq 'y'
				and $cellprio}
				<span class='calprio{$cellprio}' id='calprio'>
					{$cellprio}
				</span>
			{/if}
			{if $prefs.calendar_sticky_popup eq "y"}
				<span style="right:2px; position:absolute">
					<a href="javascript:void(0)" onclick="nd();return false;">
						{icon _id="close" alt="{tr}Close{/tr}" width="16" height="16"}
					</a>
				</span>
			{/if}
		</div>
	{else}
		<div style="float:right">
			{if $prefs.calendar_sticky_popup eq "y"}
				{button _noborder='y' _text="{tr}Export event{/tr}" _icon="task_submitted" href="tiki-calendar_export_ical.php" calendarItem=$cellid export='y' _auto_args="calendarItem,export"}
				{if $tiki_p_change_events eq 'y' || $celluser eq $user}
					{button _noborder='y' _text="{tr}Edit event{/tr}" _icon="page_edit" href="tiki-calendar_edit_item.php" calitemId=$cellid _auto_args="calitemId"}
					{button _noborder='y' _text="{tr}Delete event{/tr}" _icon="cross" href="tiki-calendar_edit_item.php" calitemId=$cellid delete="y" _auto_args="calitemId,delete"}
				{/if}
				{button _noborder='y' _text="{tr}View event{/tr}" _icon="magnifier" href="tiki-calendar_edit_item.php" viewcalitemId=$cellid _auto_args="viewcalitemId"}
			{/if}
			{button _noborder='y' _text="{tr}Close{/tr}" _icon="close" href="javascript:void(0)" _onclick="nd();return false;"}
		</div>
	{/if}
	{if $group_by_item ne 'y'}
		<strong{if isset($cellstatus) and $cellstatus eq '2'} style="text-decoration:line-through"{/if}>
			{if $allday}
				{$cellstart|tiki_short_date}
				{if $cellend - $cellstart >=86400}&ndash; {$cellend|tiki_short_date}
					<br />
				{/if}
				({tr}All day{/tr})
			{else}
				{if ($cellend - $cellstart < 86400)}
					{$cellstart|tiki_short_time} &ndash; {$cellend|tiki_short_time}
				{else}
					{$cellstart|tiki_short_date}&nbsp;({$cellstart|tiki_short_time}) &ndash; {$cellend|tiki_short_date}&nbsp;({$cellend|tiki_short_time})
				{/if}
			{/if}
		</strong>
		<br />
	{/if}
	<a href="tiki-calendar_edit_item.php?viewcalitemId={$cellid}" title="{tr}Details{/tr}"{if isset($cellstatus) and $cellstatus eq '2'} style="text-decoration:line-through"{/if}>
		{$cellname|escape}
	</a>
	<br />
	{if $show_description eq 'y'}
		<div class="box-data">
			{$celldescription|truncate:250:'...'}
		</div>
		<br />
	{/if}
	{if isset($show_participants) and $show_participants eq 'y' and $cellparticipants}
		<span class="box-title">
			{tr}Organized by:{/tr}
		</span>
		{$cellorganizers}
		<br />
		<span class="box-title">
			{tr}Participants:{/tr}
		</span>
		{$cellparticipants}
		<br />
		<br />
	{/if}
	{* need to check $cellCalendarId separately to eliminate notice fro some reason *}
	{if isset($cellcalendarId) and isset($infocals.$cellcalendarId.custompriorities)
		and $infocals.$cellcalendarId.custompriorities eq 'y' and $cellprio}
		<span class='box-title'>
			{tr}Priority:{/tr}
		</span>
		{$cellprio}
		<br />
	{/if}
	{if isset($show_category) and $show_category eq 'y' and isset($infocals.$cellcalendarId.customcategories)
		and $infocals.$cellcalendarId.customcategories eq 'y' and $cellcategory}
		<span class='box-title'>
			{tr}Classification:{/tr}
		</span>
		{$cellcategory|escape}
		<br />
	{/if}
	{if isset($show_location) and $show_location eq 'y' and isset($infocals.$cellcalendarId.customlocations)
		and $infocals.$cellcalendarId.customlocations eq 'y' and $celllocation}
		<span class='box-title'>
			{tr}Location:{/tr}
		</span>
		{$celllocation|escape}
		<br />
	{/if}
	{if isset($show_url) and $show_url eq 'y' and isset($infocals.$cellcalendarId.customurl)
		and $infocals.$cellcalendarId.customurl eq 'y' and $cellurl}
		<span class='box-title'>
			{tr}Website:{/tr}
		</span>
		<a href="{$cellurl|escape:'url'}" title="{$cellurl|escape:'url'}">
			 {$cellurl|truncate:32:'...'}
		 </a>
		<br />
	{/if}
	{if isset($show_calname) and $show_calname eq 'y' and $cellcalname}
		<span class='box-title'>
			{tr}Calendar:{/tr}
		</span>
		<span style="height:12px;width:12px;{if !empty($infocals.$cellcalendarId.custombgcolor)}background-color:#{$infocals.$cellcalendarId.custombgcolor};{/if}{if !empty($infocals.$cellcalendarId.customfgcolor)}border-color:#{$infocals.$cellcalendarId.customfgcolor};{/if}border-width:1px;border-style:solid;">
			&nbsp;{$cellcalname|escape}&nbsp;
		</span>
		<br />
	{/if}
	<br />
	{if isset($show_status) and $show_status eq 'y'}
		<div class="statusbox status{$cellstatus}">
			{if $cellstatus eq 0}
				{tr}Tentative{/tr}
			{elseif $cellstatus eq 1}
				{tr}Confirmed{/tr}
			{elseif $cellstatus eq 2}
				{tr}Cancelled{/tr}
			{/if}
		</div>
	{/if}
</div>
