?
Path : /home/admin/public_html/old/board/components/com_kunena/template/default/announcement/ |
Current File : /home/admin/public_html/old/board/components/com_kunena/template/default/announcement/show.php |
<?php /** * @version $Id: show.php 4336 2011-01-31 06:05:12Z severdia $ * Kunena Component * @package Kunena * * @Copyright (C) 2008 - 2011 Kunena Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.org **/ // Dont allow direct linking defined( '_JEXEC' ) or die(); $document=JFactory::getDocument(); $document->setTitle(JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS') . ' - ' . $this->config->board_title); //FIXME: announcement show only 5 ann. in table ?> <div class="kblock"> <div class="kheader"> <h2> <span> <?php echo $this->app->getCfg('sitename'); ?> <?php echo JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS'); ?> <?php if ($this->canEdit) echo "| " . CKunenaLink::GetAnnouncementLink('add', NULL, JText::_('COM_KUNENA_ANN_ADD'), JText::_('COM_KUNENA_ANN_ADD')); ?> </span> </h2> </div> <div class="kcontainer"> <div class="kbody"> <table class="kannouncement"> <tbody id="kannouncement_body"> <tr class="ksth"> <th class="kcol-annid"><?php echo JText::_('COM_KUNENA_ANN_ID'); ?></th> <th class="kcol-anndate"><?php echo JText::_('COM_KUNENA_ANN_DATE'); ?></th> <th class="kcol-anntitle"><?php echo JText::_('COM_KUNENA_ANN_TITLE'); ?></th> <?php if ($this->canEdit): ?> <th class="kcol-annpublish"><?php echo JText::_('COM_KUNENA_ANN_PUBLISH'); ?></th> <th class="kcol-annedit"><?php echo JText::_('COM_KUNENA_ANN_EDIT'); ?></th> <th class="kcol-anndelete"><?php echo JText::_('COM_KUNENA_ANN_DELETE'); ?></th> <?php endif; ?> </tr> <?php $k=0; if (!empty($this->announcements)) foreach ($this->announcements as $ann) : $k=1 - $k; ?> <tr class="krow<?php echo $k;?>"> <td class="kcol-first kcol-annid"><?php echo intval($ann->id); ?></td> <td class="kcol-mid kcol-anndate"><?php echo CKunenaTimeformat::showDate($ann->created, 'date_today'); ?></td> <td class="kcol-mid kcol-anntitle"> <div class="overflow"><?php echo CKunenaLink::GetAnnouncementLink('read', intval($ann->id), KunenaParser::parseText ($ann->title), KunenaParser::parseText ($ann->title), 'follow'); ?></div> </td> <?php if ($this->canEdit): ?> <td class="kcol-mid kcol-annpublish"> <?php if ($ann->published > 0) { echo JText::_('COM_KUNENA_ANN_PUBLISHED'); } else { echo JText::_('COM_KUNENA_ANN_UNPUBLISHED'); } ?> </td> <td class="kcol-mid kcol-annedit"> <?php echo CKunenaLink::GetAnnouncementLink('edit', intval($ann->id), JText::_('COM_KUNENA_ANN_EDIT'),JText::_('COM_KUNENA_ANN_EDIT')); ?> </td> <td class="kcol-mid kcol-anndelete"> <?php echo CKunenaLink::GetAnnouncementLink('delete', intval($ann->id), JText::_('COM_KUNENA_ANN_DELETE'), JText::_('COM_KUNENA_ANN_DELETE')); ?> </td> <?php endif; ?> </tr> <?php endforeach; ?> </tbody> </table> </div> </div> </div>