<?php
/**
 * Kunena Component
 * @package     Kunena.Template.Crypsis
 * @subpackage  Layout.Announcement
 *
 * @copyright   (C) 2008 - 2016 Kunena Team. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link        http://www.kunena.org
 **/
defined('_JEXEC') or die;

$row = $this->row;
$announcement = $this->announcement;
?>

<tr>
	<td class="nowrap hidden-xs">
		<?php echo $announcement->displayField('created', 'date_today'); ?>
	</td>

	<td class="nowrap">
		<div class="overflow">
			<?php echo JHtml::_('kunenaforum.link', $announcement->getUri(), $announcement->displayField('title'),
				null, 'follow'); ?>
		</div>
	</td>

	<?php if ($this->checkbox) : ?>
	<td class="center">
		<?php if ($this->canPublish()) echo JHtml::_('kunenagrid.published', $row, $announcement->published, '', true); ?>
	</td>
	<td class="center">
		<?php if ($this->canEdit()) echo JHtml::_('kunenagrid.task', $row, 'tick.png', JText::_('COM_KUNENA_ANN_EDIT'),
			'edit', '', true); ?>
	</td>
	<td class="center">
		<?php if ($this->canDelete()) echo JHtml::_('kunenagrid.task', $row, 'publish_x.png',
			JText::_('COM_KUNENA_ANN_DELETE'), 'delete', '', true); ?>
	</td>
	<td>
		<?php echo $announcement->getAuthor()->username; ?>
	</td>
	<?php endif; ?>

	<td class="center hidden-xs">
		<?php echo $announcement->displayField('id'); ?>
	</td>

	<?php if ($this->checkbox) : ?>
	<td class="center">
		<?php echo JHtml::_('kunenagrid.id', $row, $announcement->id); ?>
	</td>
	<?php endif; ?>

</tr>
