<?php 
/**
 * [PHPFOX_HEADER]
 *
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Miguel Espinoza
 * @package 		Phpfox
 * @version 		$Id: index.html.php 3830 2011-12-19 12:55:57Z Miguel_Espinoza $
 */

defined('PHPFOX') or exit('NO DICE!'); 

?>
<div id="announcements_holder">
	{if is_array($aAnnouncements) && empty($aAnnouncements)}
	<div class="extra_info">
		{_p var='that_announcement_cannot_be_found'}
	</div>
	{elseif $aAnnouncements === false}
	<div class="extra_info">
		{_p var='no_announcements_have_been_added'}
	</div>
	{else}
		{foreach from=$aAnnouncements item=aAnnouncement name=announcement}		
			<div class="js_announcement_{$aAnnouncement.announcement_id} article">
				<div class="js_announcement_{$aAnnouncement.announcement_id}_subject h3">
					{if !empty($aAnnouncement.content_var) && !isset($aAnnouncement.is_specific)}
						<a href="{url link='announcement.view' id=$aAnnouncement.announcement_id}">
							{_p var=$aAnnouncement.subject_var}
						</a>
					{/if}
					<div class="announcement_{$aAnnouncement.announcement_id}_date extra_info">
						{$aAnnouncement.posted_on}
					</div>
				</div>
				<div class="js_announcement_{$aAnnouncement.announcement_id}_content">
					{if count($aAnnouncements) > 1}
						{_p var=$aAnnouncement.intro_var}
					{else}
						{_p var=$aAnnouncement.content_var}
					{/if}
				</div>
			</div>
			<div class="clear"></div>
		{/foreach}
	{/if}
</div>