本文整理汇总了PHP中CKunenaLink::GetAnnouncementLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaLink::GetAnnouncementLink方法的具体用法?PHP CKunenaLink::GetAnnouncementLink怎么用?PHP CKunenaLink::GetAnnouncementLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaLink
的用法示例。
在下文中一共展示了CKunenaLink::GetAnnouncementLink方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: myValidate
}
return false;
}
// ]]>');
?>
<div id="Kunena">
<?php
$this->displayMenu ();
$this->displayLoginBox ();
?>
<div class="kblock kannouncement">
<div class="kheader">
<h2><?php echo JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS'); ?>: <?php echo $this->announcement->id ? JText::_('COM_KUNENA_ANN_EDIT') : JText::_('COM_KUNENA_ANN_ADD'); ?></h2>
</div>
<div class="kcontainer" id="kannouncement">
<div class="kactions"><?php echo CKunenaLink::GetAnnouncementLink('show',NULL, JText::_('COM_KUNENA_ANN_CPANEL'), JText::_('COM_KUNENA_ANN_CPANEL')); ?></div>
<div class="kbody">
<div class="kanndesc">
<form class="form-validate" action="<?php echo CKunenaLink::GetAnnouncementURL('doedit'); ?>" method="post" name="editform" onsubmit="return myValidate(this);">
<?php echo JHTML::_( 'form.token' ); ?>
<div>
<label>
<?php echo JText::_('COM_KUNENA_ANN_TITLE'); ?>:
<input class="klarge required" type="text" name="title" value="<?php echo $this->escape($this->announcement->title) ;?>"/>
</label>
<label>
<?php echo JText::_('COM_KUNENA_ANN_SORTTEXT'); ?>:
<textarea class="ksmall required" rows="80" cols="4" name="sdescription"><?php echo $this->escape($this->announcement->sdescription); ?></textarea>
</label>
</div>
<div>
示例2: intval
<dt>
<?php echo intval($ann->id); ?>
</dt>
<dd class="tk-ann-date">
<?php echo KunenaDate::getInstance($ann->created)->toKunena('date_today'); ?>
</dd>
<dd class="tk-ann-title">
<?php echo CKunenaLink::GetAnnouncementLink('read', intval($ann->id), KunenaHtmlParser::parseText ($ann->title), KunenaHtmlParser::parseText ($ann->title), 'follow'); ?>
</dd>
<dd class="tk-ann-publish">
<?php
if ($ann->published > 0) {
echo JText::_('COM_KUNENA_ANN_PUBLISHED');
} else {
echo JText::_('COM_KUNENA_ANN_UNPUBLISHED');
}
?>
</dd>
<dd class="tk-ann-edit">
<?php echo CKunenaLink::GetAnnouncementLink('edit', intval($ann->id), JText::_('COM_KUNENA_ANN_EDIT'),JText::_('COM_KUNENA_ANN_EDIT')); ?>
</dd>
<dd class="tk-ann-delete">
<?php echo CKunenaLink::GetAnnouncementLink('delete', intval($ann->id), JText::_('COM_KUNENA_ANN_DELETE'), JText::_('COM_KUNENA_ANN_DELETE')); ?>
</dd>
</dl>
</li>
<?php endforeach; ?>
</ul>
<span class="corners-bottom"><span></span></span>
</div>
</div>
示例3: defined
* @link http://www.kunena.org
**/
defined ( '_JEXEC' ) or die ();
$document = JFactory::getDocument();
$document->setTitle(JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS') . ' - ' . $this->config->board_title);
?>
<div id="kannounce">
<h2 class="kheader">
<a href="" title="<?php echo JText::_('COM_KUNENA_VIEW_COMMON_ANNOUNCE_LIST') ?>" rel="kannounce-detailsbox">
<?php echo KunenaHtmlParser::parseText($this->announcement->title) ?>
</a>
</h2>
<?php if ($this->canEdit) : ?>
<div class="kactions">
<?php echo CKunenaLink::GetAnnouncementLink( 'edit', $this->announcement->id, JText::_('COM_KUNENA_ANN_EDIT'), JText::_('COM_KUNENA_ANN_EDIT')); ?> |
<?php echo CKunenaLink::GetAnnouncementLink( 'delete', $this->announcement->id, JText::_('COM_KUNENA_ANN_DELETE'), JText::_('COM_KUNENA_ANN_DELETE')); ?> |
<?php echo CKunenaLink::GetAnnouncementLink( 'add',NULL, JText::_('COM_KUNENA_ANN_ADD'), JText::_('COM_KUNENA_ANN_ADD')); ?> |
<?php echo CKunenaLink::GetAnnouncementLink( 'show', NULL, JText::_('COM_KUNENA_ANN_CPANEL'), JText::_('COM_KUNENA_ANN_CPANEL')); ?>
</div>
<?php endif; ?>
<div class="kdetailsbox" id="kannounce-detailsbox">
<ul class="kheader-desc">
<?php if ($this->announcement->showdate > 0) : ?>
<li class="kannounce-date"><?php echo KunenaDate::getInstance($this->announcement->created)->toKunena('date_today') ?></li>
<?php endif; ?>
<li class="kannounce-desc"><p><?php echo !empty($this->announcement->description) ? KunenaHtmlParser::parseBBCode($this->announcement->description) : KunenaHtmlParser::parseBBCode($this->announcement->sdescription); ?></p></li>
</ul>
</div>
</div>
<?php echo $this->getModulePosition ( 'kunena_announcement' ) ?>
示例4: if
<div class="kblock kannouncement">
<div class="kheader">
<span class="ktoggler"><a class="ktoggler close" title="<?php echo JText::_('COM_KUNENA_TOGGLER_COLLAPSE') ?>" rel="kannouncement"></a></span>
<h2><?php echo CKunenaLink::GetAnnouncementLink( 'read', $this->announcement->id, $this->annTitle, JText::_('COM_KUNENA_ANN_READMORE'),'follow'); ?></h2>
</div>
<div class="kcontainer" id="kannouncement">
<?php if ($this->canEdit) : ?>
<div class="kactions">
<?php echo CKunenaLink::GetAnnouncementLink( 'edit', $this->announcement->id, JText::_('COM_KUNENA_ANN_EDIT'), JText::_('COM_KUNENA_ANN_EDIT')); ?> |
<?php echo CKunenaLink::GetAnnouncementLink( 'delete', $this->announcement->id, JText::_('COM_KUNENA_ANN_DELETE'), JText::_('COM_KUNENA_ANN_DELETE')); ?> |
<?php echo CKunenaLink::GetAnnouncementLink( 'add',NULL, JText::_('COM_KUNENA_ANN_ADD'), JText::_('COM_KUNENA_ANN_ADD')); ?> |
<?php echo CKunenaLink::GetAnnouncementLink( 'show', NULL, JText::_('COM_KUNENA_ANN_CPANEL'), JText::_('COM_KUNENA_ANN_CPANEL')); ?>
</div>
<?php endif; ?>
<div class="kbody">
<div class="kanndesc">
<?php if ($this->announcement->showdate) : ?>
<div class="anncreated"><?php echo $this->annDate->toKunena('date_today') ?></div>
<?php endif; ?>
<div class="anndesc">
<?php echo $this->annDescription; ?>
<?php if (!empty($this->announcement->description)) : ?>
...<br /><?php echo CKunenaLink::GetAnnouncementLink( 'read', $this->announcement->id, JText::_('COM_KUNENA_ANN_READMORE'), JText::_('COM_KUNENA_ANN_READMORE'),'follow'); ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php echo $this->getModulePosition ( 'kunena_announcement' ) ?>
<!-- / ANNOUNCEMENTS BOX -->