当前位置: 首页>>代码示例>>PHP>>正文


PHP CKunenaLink::GetAnnouncementLink方法代码示例

本文整理汇总了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>
开发者ID:rich20,项目名称:Kunena,代码行数:31,代码来源:edit.php

示例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>
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:31,代码来源:list.php

示例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' ) ?>
开发者ID:rich20,项目名称:Kunena,代码行数:31,代码来源:default.php

示例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 -->
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:31,代码来源:announcement.php


注:本文中的CKunenaLink::GetAnnouncementLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。