本文整理汇总了PHP中KunenaDate::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaDate::getInstance方法的具体用法?PHP KunenaDate::getInstance怎么用?PHP KunenaDate::getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KunenaDate
的用法示例。
在下文中一共展示了KunenaDate::getInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayAll
public function displayAll()
{
if ($this->me->isAdmin()) {
if ($this->config->board_offline) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice');
}
if ($this->config->debug) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice');
}
}
if ($this->me->isBanned()) {
$banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true);
if (!$banned->isLifetime()) {
$this->app->enqueueMessage(JText::sprintf('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice');
} else {
$this->app->enqueueMessage(JText::_('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS'), 'notice');
}
}
$this->state = $this->get('State');
$this->ktemplate->initialize();
if (JFactory::getApplication()->isAdmin()) {
$this->displayLayout();
} else {
$this->document->addHeadLink(KunenaRoute::_(), 'canonical', 'rel', '');
include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
if ($this->config->get('credits', 1)) {
$this->poweredBy();
}
}
}
示例2: before
/**
* Prepare login display.
*
* @return boolean
*/
protected function before()
{
parent::before();
$login = KunenaLogin::getInstance();
if (!$login->enabled()) {
return false;
}
$this->me = KunenaUserHelper::getMyself();
$this->name = $this->me->exists() ? 'Widget/Login/Logout' : 'Widget/Login/Login';
$this->my = JFactory::getUser();
if ($this->my->guest) {
$this->registrationUrl = $login->getRegistrationUrl();
$this->resetPasswordUrl = $login->getResetUrl();
$this->remindUsernameUrl = $login->getRemindUrl();
$this->rememberMe = $login->getRememberMe();
} else {
$this->lastvisitDate = KunenaDate::getInstance($this->my->lastvisitDate);
$private = KunenaFactory::getPrivateMessaging();
if ($private) {
$count = $private->getUnreadCount($this->me->userid);
$this->inboxCount = $count ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $count) : JText::_('COM_KUNENA_PMS_INBOX');
$this->pm_link = $private->getInboxURL();
}
// Display announcements.
if ($this->me->isModerator()) {
$this->announcementsUrl = KunenaForumAnnouncementHelper::getUrl('list');
}
}
return true;
}
示例3: displayAll
public function displayAll()
{
if ($this->inLayout) {
throw new LogicException(sprintf('HMVC template should not call %s::%s()', __CLASS__, __FUNCTION__));
}
if ($this->me->isAdmin()) {
if ($this->config->board_offline) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_FORUM_IS_OFFLINE'), 'notice');
}
if ($this->config->debug) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_WARNING_DEBUG'), 'notice');
}
}
if ($this->me->isBanned()) {
$banned = KunenaUserBan::getInstanceByUserid($this->me->userid, true);
if (!$banned->isLifetime()) {
$this->app->enqueueMessage(JText::sprintf('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS_EXPIRY', KunenaDate::getInstance($banned->expiration)->toKunena('date_today')), 'notice');
} else {
$this->app->enqueueMessage(JText::_('COM_KUNENA_POST_ERROR_USER_BANNED_NOACCESS'), 'notice');
}
}
$this->state = $this->get('State');
$this->ktemplate->initialize();
$menu = $this->app->getMenu();
$home = $menu->getItems('type', 'alias');
$juricurrent = JURI::current();
if (JFactory::getApplication()->isAdmin()) {
$this->displayLayout();
} elseif ($home) {
$this->document->addHeadLink($juricurrent, 'canonical', 'rel', '');
include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
} else {
$this->document->addHeadLink(KunenaRoute::_(), 'canonical', 'rel', '');
include JPATH_SITE . '/' . $this->ktemplate->getFile('html/display.php');
if ($this->config->get('credits', 1)) {
$this->poweredBy();
}
}
}
示例4: _display
protected function _display()
{
// Load language files.
KunenaFactory::loadLanguage();
KunenaFactory::loadLanguage('com_kunena.templates');
$this->params->def('greeting', 1);
$this->document = JFactory::getDocument();
$this->me = KunenaFactory::getUser();
$token = JSession::getFormToken();
$login = KunenaLogin::getInstance();
if (!$this->me->exists()) {
$this->type = 'login';
$this->login = null;
if ($login) {
$this->lostPasswordUrl = $login->getResetURL();
$this->lostUsernameUrl = $login->getRemindURL();
$this->registerUrl = $login->getRegistrationURL();
$this->remember = JPluginHelper::isEnabled('system', 'remember');
}
} else {
$this->type = 'logout';
$this->logout = null;
$this->lastvisitDate = KunenaDate::getInstance($this->me->lastvisitDate);
if ($login) {
$this->logout = $login->getLogoutURL();
$this->recentPosts = JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=topics', JText::_('MOD_KUNENALOGIN_RECENT'));
$this->myPosts = JHtml::_('kunenaforum.link', 'index.php?option=com_kunena&view=topics&layout=user&mode=default', JText::_('MOD_KUNENALOGIN_MYPOSTS'));
}
// Private messages
$private = KunenaFactory::getPrivateMessaging();
$this->privateMessages = '';
if ($this->params->get('showmessage') && $private) {
$count = $private->getUnreadCount($this->me->userid);
$this->privateMessages = $private->getInboxLink($count ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $count) : JText::_('COM_KUNENA_PMS_INBOX'));
}
}
$this->return = $this->getReturnURL();
require JModuleHelper::getLayoutPath('mod_kunenalogin');
}
示例5: displayCommon
/**
* @param null $tpl
*
* @throws Exception
*/
protected function displayCommon($tpl = null)
{
$userid = JFactory::getApplication()->input->getInt('userid');
$this->_db = JFactory::getDBO();
$this->do = JFactory::getApplication()->input->getWord('layout');
if (!$userid) {
$this->user = JFactory::getUser();
} else {
$this->user = JFactory::getUser($userid);
}
if ($this->user->id == 0 || $this->me->userid == 0 && !$this->config->pubprofile) {
$this->app->enqueueMessage(JText::_('COM_KUNENA_PROFILEPAGE_NOT_ALLOWED_FOR_GUESTS'), 'notice');
return;
}
$integration = KunenaFactory::getProfile();
$activityIntegration = KunenaFactory::getActivityIntegration();
$template = KunenaFactory::getTemplate();
$this->params = $template->params;
if (get_class($integration) == 'KunenaProfileNone') {
$this->app->enqueueMessage(JText::_('COM_KUNENA_PROFILE_DISABLED'), 'notice');
return;
}
$this->allow = true;
$this->profile = KunenaFactory::getUser($this->user->id);
if (!$this->profile->exists()) {
$this->profile->save();
}
if ($this->profile->userid == $this->me->userid) {
if ($this->do != 'edit') {
$this->editlink = $this->profile->getLink(JText::_('COM_KUNENA_EDIT') . ' »', JText::_('COM_KUNENA_EDIT') . ' »', 'nofollow', 'edit', '');
} else {
$this->editlink = $this->profile->getLink(JText::_('COM_KUNENA_BACK') . ' »', JText::_('COM_KUNENA_BACK') . ' »', 'nofollow', '', '');
}
}
$this->name = $this->user->username;
if ($this->config->showuserstats) {
$this->rank_image = $this->profile->getRank(0, 'image');
$this->rank_title = $this->profile->getRank(0, 'title');
$this->posts = $this->profile->posts;
$this->thankyou = $this->profile->thankyou;
$this->userpoints = $activityIntegration->getUserPoints($this->profile->userid);
$this->usermedals = $activityIntegration->getUserMedals($this->profile->userid);
}
if ($this->config->userlist_joindate || $this->me->isModerator()) {
$this->registerdate = $this->user->registerDate;
}
if ($this->config->userlist_lastvisitdate || $this->me->isModerator()) {
$this->lastvisitdate = $this->user->lastvisitDate;
}
if (!isset($this->lastvisitdate) || $this->lastvisitdate == "0000-00-00 00:00:00") {
$this->lastvisitdate = null;
}
$this->avatarlink = $this->profile->getAvatarImage('kavatar', 'profile');
$this->personalText = $this->profile->personalText;
$this->signature = $this->profile->signature;
$this->signatureHtml = KunenaHtmlParser::parseBBCode($this->signature, null, $this->config->maxsig);
$this->localtime = KunenaDate::getInstance('now', $this->user->getParam('timezone', $this->app->get('offset', null)));
try {
$offset = new DateTimeZone($this->user->getParam('timezone', $this->app->get('offset', null)));
} catch (Exception $e) {
$offset = null;
}
$this->localtime->setTimezone($offset);
$this->moderator = KunenaAccess::getInstance()->getModeratorStatus($this->profile);
$this->admin = $this->profile->isAdmin();
switch ($this->profile->gender) {
case 1:
$this->genderclass = 'male';
$this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_MALE');
break;
case 2:
$this->genderclass = 'female';
$this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_FEMALE');
break;
default:
$this->genderclass = 'unknown';
$this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_UNKNOWN');
}
if ($this->profile->location) {
$this->locationlink = '<a href="http://maps.google.com?q=' . $this->escape($this->profile->location) . '" target="_blank">' . $this->escape($this->profile->location) . '</a>';
} else {
$this->locationlink = JText::_('COM_KUNENA_LOCATION_UNKNOWN');
}
$this->online = $this->profile->isOnline();
$this->showUnusedSocial = true;
if (!preg_match("~^(?:f|ht)tps?://~i", $this->profile->websiteurl)) {
$this->websiteurl = 'http://' . $this->profile->websiteurl;
} else {
$this->websiteurl = $this->profile->websiteurl;
}
$avatar = KunenaFactory::getAvatarIntegration();
$this->editavatar = $avatar instanceof KunenaAvatarKunena ? true : false;
$this->banInfo = KunenaUserBan::getInstanceByUserid($userid, true);
$this->canBan = $this->banInfo->canBan();
if ($this->config->showbannedreason) {
//.........这里部分代码省略.........
示例6:
<b>✔</b>
</span>
<?php endif; ?>
</span>
<span class="p-nickname" data-scribe="element:screen_name" dir="ltr">
@<b><?php echo $this->user_screen_name ?></b>
</span>
</a>
</div>
<div class="content e-entry-content" data-scribe="component:tweet">
<p class="e-entry-title">
<?php echo $this->tweet_text ?>
</p>
<div class="dateline collapsible-container">
<a class="u-url customisable-highlight long-permalink" data-scribe="element:full_timestamp" data-datetime="<?php echo JFactory::getDate($this->tweet_created_at)->toISO8601(); ?>" href="https://twitter.com/<?php echo $this->user_name ?>/status/<?php echo $this->tweetid ?>">
<time class="dt-updated" title="Time posted: <?php echo KunenaDate::getInstance($this->tweet_created_at)->toKunena('ago'); ?>" datetime="<?php echo JFactory::getDate($this->tweet_created_at)->toISO8601(); ?>" pubdate=""><?php echo KunenaDate::getInstance($this->tweet_created_at)->toKunena('datetime'); ?></time>
</a>
</div>
</div>
<div class="footer customisable-border" data-scribe="component:footer">
<span class="stats-narrow customisable-border">
<span class="stats" data-scribe="component:stats">
<a data-scribe="element:retweet_count" title="View Tweet on Twitter" href="https://twitter.com/<?php echo $this->user_screen_name ?>/status/<?php echo $this->tweetid ?>">
<span class="stats-retweets">
<strong><?php echo $this->retweet_count; ?></strong>
Retweets
</span>
</a>
<a data-scribe="element:favorite_count" title="View Tweet on Twitter" href="https://twitter.com/<?php echo $this->user_screen_name ?>/status/<?php echo $this->tweetid ?>">
<span class="stats-favorites">
<strong><?php echo $this->favorite_count; ?></strong>
示例7: if
<tbody>
<tr class="krow1">
<?php if ($this->me->getAvatarImage('welcome')) : ?>
<td class="kprofilebox-left">
<?php echo $this->me->getAvatarImage('kavatar', 'welcome'); ?>
</td>
<?php endif; ?>
<td class="kprofileboxcnt">
<ul class="kprofilebox-link">
<?php if (!empty($this->privateMessagesLink)) : ?><li><?php echo $this->privateMessagesLink ?></li><?php endif ?>
<?php if (!empty($this->editProfileLink)) : ?><li><?php echo $this->editProfileLink ?></li><?php endif ?>
<?php if (!empty($this->announcementsLink)) : ?><li><?php echo $this->announcementsLink ?></li><?php endif ?>
</ul>
<ul class="kprofilebox-welcome">
<li><?php echo JText::_('COM_KUNENA_PROFILEBOX_WELCOME'); ?>, <strong><?php echo CKunenaLink::GetProfileLink ( intval($this->me->userid) ); ;?></strong></li>
<li class="kms"><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->me->lastvisitDate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->me->lastvisitDate)->toKunena('date_today'); ?></span></li>
<?php if ($this->logout) : ?>
<li>
<form action="<?php echo KunenaRoute::_('index.php?option=com_kunena') ?>" method="post" name="login">
<input type="submit" name="submit" class="kbutton" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGOUT'); ?>" />
<input type="hidden" name="option" value="<?php echo $this->logout['option']; ?>" />
<?php if (!empty($this->logout['view'])) : ?>
<input type="hidden" name="view" value="<?php echo $this->logout['view']; ?>" />
<?php endif; ?>
<input type="hidden" name="task" value="<?php echo $this->logout['task']; ?>" />
<input type="hidden" name="<?php echo $this->logout['field_return']; ?>" value="[K=RETURN_URL]" />
[K=TOKEN]
</form>
</li>
<?php endif; ?>
</ul>
示例8:
?>
"><?php
echo KunenaDate::getInstance($user->registerDate)->toKunena('datetime_today');
?>
</td>
<?php
}
?>
<?php
if ($this->config->userlist_lastvisitdate) {
?>
<td class="kcol-mid" title="<?php
echo KunenaDate::getInstance($lastvisitDate)->toKunena('ago');
?>
"><?php
echo KunenaDate::getInstance($lastvisitDate)->toKunena('datetime_today');
?>
</td>
<?php
}
?>
<?php
if ($this->config->userlist_userhits) {
?>
<td class="kcol-mid"><?php
echo $this->escape($profile->uhits);
?>
</td>
<?php
}
?>
示例9: intval
<?php
if ($this->config->avataroncat > 0) :
$useravatar = KunenaFactory::getUser((int)$last->last_post_userid)->getAvatarImage('klist-avatar', 'list');
if ($useravatar) : ?>
<li class="klatest-avatar"> <?php echo CKunenaLink::GetProfileLink ( intval($last->last_post_userid), $useravatar ); ?></li>
<?php endif; ?>
<?php endif; ?>
<li class="ktopic-title">
<?php echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': '. CKunenaLink::GetThreadPageLink ( 'view', intval($last->id), intval($last->last_topic_id), intval($last->getLastPostLocation()), intval($this->config->messages_per_page), KunenaHtmlParser::parseText($last->last_topic_subject, 30), intval($last->last_post_id) );?>
</li>
<li class="ktopic-details">
<?php
echo JText::_('COM_KUNENA_BY') . ' ';
echo CKunenaLink::GetProfileLink ( intval($last->last_post_userid), $this->escape($last->last_post_guest_name) );
echo KunenaDate::getInstance($last->last_post_time)->toSpan('config_post_dateformat','config_post_dateformat_hover');
?>
</li>
</ul>
</td>
<?php else : ?>
<td class="kcol-mid kcol-knoposts"><?php echo JText::_('COM_KUNENA_NO_POSTS'); ?></td>
<?php endif ?>
<td class="kcategory-actions">
<?php echo CKunenaLink::GetCategoryActionLink ( 'unsubscribe', $this->category->id, JText::_('COM_KUNENA_BUTTON_UNSUBSCRIBE_CATEGORY'), 'nofollow', '', JText::_('COM_KUNENA_BUTTON_UNSUBSCRIBE_CATEGORY_LONG'), '&userid='.$this->me->userid ); ?>
</td>
</tr>
</tbody>
</table>
</li>
示例10:
echo $this->escape($this->message->subject);
?>
</h4>
<div class="kmessage-timeby">
<span class="kmessage-time" title="<?php
echo KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat_hover');
?>
">
<?php
echo JText::_('COM_KUNENA_POSTED_AT');
?>
<?php
echo KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat');
?>
</span>
<span class="kmessage-by">
<?php
echo JText::_('COM_KUNENA_BY') . ' ' . $this->message->getAuthor()->getLink();
?>
</span>
</div>
<div class="kmessage-avatar"><?php
示例11:
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
<?php
if ($message->modified_by && $this->config->editmarkup) {
$dateshown = $datehover = '';
if ($message->modified_time) {
$datehover = 'title="' . KunenaDate::getInstance($message->modified_time)->toKunena('config_post_dateformat_hover') . '"';
$dateshown = KunenaDate::getInstance($message->modified_time)->toKunena('config_post_dateformat') . ' ';
}
?>
<div class="alert alert-info hidden-phone" <?php
echo $datehover;
?>
>
<?php
echo JText::_('COM_KUNENA_EDITING_LASTEDIT') . ': ' . $dateshown . JText::_('COM_KUNENA_BY') . ' ' . $message->getModifier()->getLink() . '.';
?>
<?php
if ($message->modified_reason) {
echo JText::_('COM_KUNENA_REASON') . ': ' . $this->escape($message->modified_reason);
}
?>
</div>
示例12: if
<?php echo $this->profile->socialButton('msn', $this->showUnusedSocial) ?>
</div>
<div class="kiconrow">
<?php echo $this->profile->socialButton('blogspot', $this->showUnusedSocial) ?>
<?php echo $this->profile->socialButton('flickr', $this->showUnusedSocial) ?>
<?php echo $this->profile->socialButton('bebo', $this->showUnusedSocial) ?>
</div>
</div>
<div class="kprofile-rightcol1">
<ul>
<li><span class="kicon-profile kicon-profile-location"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCATION') ?>:</strong> <?php echo $this->locationlink ?></li>
<li><span class="kicon-profile kicon-profile-gender-unknown"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER') ?>:</strong> <?php echo $this->gender ?></li>
<li><span class="kicon-profile kicon-profile-birthdate"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE') ?>:</strong> <?php //echo KunenaDate::getInstance($this->profile->birthdate)->toKunena('date', 'ago', 'utc') ?></li>
</ul>
</div>
</div>
<div id="kprofile-leftcolbot">
<div class="kprofile-leftcol2">
<ul>
<?php if ($this->config->showemail && (!$this->profile->hideEmail || $this->me->isModerator())) : ?><li><span class="kicon-profile kicon-profile-email"></span><?php echo JHTML::_('email.cloak', $this->user->email) ?></li><?php endif; ?>
<?php if (!empty($this->profile->websiteurl)):?><li><span class="kicon-profile kicon-profile-website"></span><a href="http://<?php echo $this->escape($this->profile->websiteurl) ?>" target="_blank"><?php echo KunenaHtmlParser::parseText($this->profile->websitename) ?></a></li><?php endif ?>
<?php if (!empty($this->registerdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_REGISTERDATE') ?>:</strong> <?php echo KunenaDate::getInstance($this->registerdate)->toSpan('date_today', 'ago', 'utc') ?></li><?php endif; ?>
<?php if (!empty($this->lastvisitdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE') ?>:</strong> <?php echo KunenaDate::getInstance($this->lastvisitdate)->toSpan('date_today', 'ago', 'utc') ?></li><?php endif; ?>
<?php if (!empty($this->posts)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_POSTS') ?>:</strong> <?php echo intval($this->posts) ?></li><?php endif; ?>
<?php if (!empty($this->userpoints)): ?><li><strong><?php echo JText::_('COM_KUNENA_AUP_POINTS') ?></strong> <?php echo intval($this->userpoints) ?></li><?php endif; ?>
<?php if (!empty($this->thankyou)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_THANKYOU_RECEIVED') ?></strong> <?php echo intval($this->thankyou) ?></li><?php endif; ?>
<?php if (!empty($this->pmLink)) : ?><li><?php echo $this->pmLink ?></li><?php endif ?>
<?php if (!empty($this->usermedals)) : ?><li><?php foreach ( $this->usermedals as $medal ) : echo $medal,' '; endforeach ?></li><?php endif ?>
</ul>
</div>
</div>
示例13: if
JHTML::_('behavior.calendar');
JHTML::_('behavior.tooltip');
?>
<div id="kprofile-rightcoltop">
<div class="kprofile-rightcol2">
<?php
echo $this->loadTemplate('social');
?>
</div>
<div class="kprofile-rightcol1">
<ul>
<li><span class="kicon-profile kicon-profile-location"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCATION'); ?>:</strong> <?php echo $this->locationlink; ?></li>
<!-- The gender determines the suffix on the span class- gender-male & gender-female -->
<li><span class="kicon-profile kicon-profile-gender-<?php echo $this->genderclass; ?>"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_GENDER'); ?>:</strong> <?php echo $this->gender; ?></li>
<li class="bd"><span class="kicon-profile kicon-profile-birthdate"></span><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BIRTHDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->profile->birthdate)->toKunena('ago', 0); ?>"><?php echo KunenaDate::getInstance($this->profile->birthdate)->toKunena('date', 0); ?></span>
<!-- <a href="#" title=""><span class="bday-remind"></span></a> -->
</li>
</ul>
</div>
</div>
<div class="clrline"></div>
<div id="kprofile-rightcolbot">
<div class="kprofile-rightcol2">
<ul>
<?php if ($this->config->showemail && (!$this->profile->hideEmail || $this->me->isModerator())): ?><li><span class="kicon-profile kicon-profile-email"></span><?php echo JHTML::_('email.cloak', $this->user->email) ?></li><?php endif; ?>
<?php // FIXME: we need a better way to add http/https ?>
<li><?php if (!empty($this->profile->websiteurl)):?><span class="kicon-profile kicon-profile-website"></span><?php endif;?><a href="http://<?php echo $this->escape($this->profile->websiteurl); ?>" target="_blank"><?php echo KunenaHtmlParser::parseText($this->profile->websitename); ?></a></li>
</ul>
</div>
示例14: 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' ) ?>
示例15:
$useravatar = $profile->getAvatarImage('klist-avatar', 'list');
if ($useravatar) {
?>
<span class="ktopic-latest-post-avatar"> <?php
echo $this->message->getAuthor()->getLink($useravatar);
?>
</span>
<?php
}
}
?>
<span class="ktopic-posted-time" title="<?php
echo KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat_hover');
?>
"> <?php
echo JText::_('COM_KUNENA_POSTED_AT') . ' ' . KunenaDate::getInstance($this->message->time)->toKunena('config_post_dateformat');
?>
</span>
<?php
if ($this->message->userid) {
?>
<br />
<span class="ktopic-by"><?php
echo JText::_('COM_KUNENA_BY') . ' ' . $this->message->getAuthor()->getLink();
?>
</span>
<?php
}
?>
</div>
</td>