本文整理汇总了PHP中KunenaDate类的典型用法代码示例。如果您正苦于以下问题:PHP KunenaDate类的具体用法?PHP KunenaDate怎么用?PHP KunenaDate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KunenaDate类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
}
}
开发者ID:proyectoseb,项目名称:University,代码行数:30,代码来源:view.php
示例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;
}
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:35,代码来源:display.php
示例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();
}
}
}
开发者ID:densem-2013,项目名称:exikom,代码行数:39,代码来源:view.php
示例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');
}
开发者ID:ZerGabriel,项目名称:Kunena-Addons,代码行数:39,代码来源:class.php
示例5: echo
?>
<tr class="krow<?php echo ($i^=1)+1;?>">
<td class="kcol-first kid">
<?php echo $j; ?>
</td>
<td class="kcol-mid kbanned-user">
<a href="#"><?php echo CKunenaLink::GetProfileLink ( intval($userban->userid) ); ?> </a>
</td>
<td class="kcol-mid kbanned-from">
<span><?php echo $userban->blocked ? JText::_('COM_KUNENA_BAN_BANLEVEL_JOOMLA') : JText::_('COM_KUNENA_BAN_BANLEVEL_KUNENA'); ?></span>
</td>
<td class="kcol-mid kbanned-start">
<span><?php echo KunenaDate::getInstance($userban->created_time)->toKunena('datetime'); ?></span>
</td>
<td class="kcol-mid kbanned-expire">
<span><?php echo $userban->isLifetime() ? JText::_('COM_KUNENA_BAN_LIFETIME') : KunenaDate::getInstance($userban->expiration)->toKunena('datetime'); ?></span>
</td>
</tr>
<?php endforeach; ?>
<?php else : ?>
<tr class="krow2">
<td colspan="5" class="kcol-first">
<?php echo JText::_('COM_KUNENA_BAN_NO_BANNED_USERS'); ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:31,代码来源:default_banmanager.php
示例6: 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) {
//.........这里部分代码省略.........
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:101,代码来源:view.html.php
示例7: getModificationDate
/**
* Return ban modification date.
*
* @return KunenaDate
*/
public function getModificationDate()
{
return KunenaDate::getInstance($this->modified_time);
}
开发者ID:giabmf11,项目名称:Kunena-Forum,代码行数:9,代码来源:ban.php
示例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
}
?>
开发者ID:OminiaVincit,项目名称:Kunena-Forum,代码行数:31,代码来源:list.php
示例9:
?>
<span class="ktopic-latest-post">
<?php
echo $this->getTopicLink($this->topic, 'last', JText::_('COM_KUNENA_GEN_LAST_POST'));
echo ' ' . JText::_('COM_KUNENA_BY') . ' ' . $this->topic->getLastPostAuthor()->getLink();
?>
</span>
</div>
<div class="klatest-post-info">
<span class="ktopic-date" title="<?php
echo KunenaDate::getInstance($this->topic->last_post_time)->toKunena('config_post_dateformat_hover');
?>
">
<?php
echo KunenaDate::getInstance($this->topic->last_post_time)->toKunena('config_post_dateformat');
?>
</span>
</div>
</td>
<?php
if (!empty($this->topicActions)) {
?>
<td class="kcol-mid ktopicmoderation"><input class ="kcheck" type="checkbox" name="topics[<?php
echo $this->topic->id;
?>
]" value="1" /></td>
<?php
}
?>
开发者ID:laiello,项目名称:senluonirvana,代码行数:31,代码来源:default_row.php
示例10:
echo KunenaDate::getInstance($this->registerdate)->toKunena('date_today');
?>
</span></li><?php
}
?>
<?php
if (!empty($this->lastvisitdate)) {
?>
<li><strong><?php
echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE');
?>
:</strong> <span title="<?php
echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('ago');
?>
"><?php
echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('date_today');
?>
</span></li><?php
}
?>
<li><strong><?php
echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE');
?>
:</strong> GMT <?php
echo $this->localtime->toTimezone();
?>
</li>
<li><strong><?php
echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME');
?>
:</strong> <?php
开发者ID:laiello,项目名称:senluonirvana,代码行数:31,代码来源:edit_summary.php
示例11:
$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>
开发者ID:OminiaVincit,项目名称:Kunena-Forum,代码行数:31,代码来源:posts_row.php
示例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>
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:31,代码来源:default_summary.php
示例13: if
$PMlink = $private->getInboxLink($PMCount ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $PMCount) : JText::_('COM_KUNENA_PMS_INBOX'));
} else {
$PMlink = $this->profile->profileIcon('private');
}
?>
<?php if ($this->avatarlink) : ?>
<div class="kavatar-lg"><?php echo $this->avatarlink; ?></div>
<?php endif; ?>
<div id="kprofile-stats">
<ul>
<?php if ( !empty($this->banReason) ) { ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_BANINFO'); ?>:</strong> <?php echo $this->escape($this->banReason); ?></li><?php } ?>
<li><span class="kicon-button kbuttononline-<?php echo $this->profile->isOnline('yes', 'no') ?>"><span class="online-<?php echo $this->profile->isOnline('yes', 'no') ?>"><span><?php echo $this->profile->isOnline(JText::_('COM_KUNENA_ONLINE'), JText::_('COM_KUNENA_OFFLINE')); ?></span></span></span></li>
<?php if (!empty($this->usertype)): ?><li class="usertype"><?php echo $this->escape($this->usertype); ?></li><?php endif; ?>
<?php if (!empty($this->rank_title)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_RANK'); ?>: </strong><?php echo $this->escape($this->rank_title); ?></li><?php endif; ?>
<?php if (!empty($this->rank_image)): ?><li class="kprofile-rank"><?php echo $this->rank_image; ?></li><?php endif; ?>
<?php if (!empty($this->registerdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_REGISTERDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->registerdate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->registerdate)->toKunena('date_today'); ?></span></li><?php endif; ?>
<?php if (!empty($this->lastvisitdate)): ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTVISITDATE'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->lastvisitdate)->toKunena('date_today'); ?></span></li><?php endif; ?>
<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_TIMEZONE'); ?>:</strong> GMT <?php echo $this->localtime->toTimezone(); ?></li>
<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LOCAL_TIME'); ?>:</strong> <?php echo $this->localtime->toKunena('time'); ?></li>
<?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->usermedals)) : ?><li><?php foreach ( $this->usermedals as $medal ) : echo $medal,' '; endforeach ?></li><?php endif ?>
<li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_PROFILEVIEW'); ?>:</strong> <?php echo intval($this->profile->uhits); ?></li>
<li><?php echo $this->displayKarma(); ?></li>
<?php if ($PMlink) {
?>
<li><?php echo $PMlink; ?></li>
<?php } ?>
<?php if( !empty($this->personalText) ) { ?><li><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_ABOUTME'); ?>:</strong> <?php echo KunenaHtmlParser::parseText($this->personalText); ?></li><?php } ?>
</ul>
</div>
开发者ID:rich20,项目名称:Kunena,代码行数:31,代码来源:edit_summary.php
示例14: fillTopicInfo
function fillTopicInfo($matches)
{
switch ($matches[1]) {
case 'ROW':
return $matches[2] . ($this->position & 1 ? 'odd' : 'even') . ($this->topic->ordering ? " {$matches[2]}sticky" : '');
case 'TOPIC_ICON':
return $this->topic->getIcon();
case 'TOPIC_NEW_COUNT':
return $this->topic->unread ? $this->getTopicLink($this->topic, 'unread', '<sup class="kindicator-new">(' . $this->topic->unread . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR') . ')</sup>') : '';
case 'DATE':
$date = new KunenaDate($matches[2]);
return $date->toSpan('config_post_dateformat', 'config_post_dateformat_hover');
}
}
开发者ID:sillysachin,项目名称:teamtogether,代码行数:14,代码来源:view.html.php
示例15: 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>
开发者ID:rich20,项目名称:Kunena,代码行数:31,代码来源:user_row.php
示例16: 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
示例17:
?>
" 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;
?>
">
开发者ID:giabmf11,项目名称:Kunena-Forum,代码行数:31,代码来源:default.php
示例18:
}
?>
<?php
}
?>
<div class="klatest-subject ks">
<?php
echo JText::_('COM_KUNENA_GEN_LAST_POST') . ': ' . $this->getLastPostLink($category);
?>
</div>
<div class="klatest-subject-by ks hidden-phone">
<?php
echo JText::_('COM_KUNENA_BY') . ' ';
echo $last->getLastPostAuthor()->getLink();
echo '<br /><span class="nowrap" title="' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat_hover') . '">' . KunenaDate::getInstance($last->last_post_time)->toKunena('config_post_dateformat') . '</span>';
?>
</div>
</td>
<?php
} else {
?>
<td class="kcol-mid kcol-knoposts"><?php
echo JText::_('COM_KUNENA_NO_POSTS');
?>
</td>
<?php
}
?>
</tr>
开发者ID:juanferden,项目名称:adoperp,代码行数:31,代码来源:list_embed.php
示例19:
</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>
开发者ID:anawu2006,项目名称:PeerLearning,代码行数:31,代码来源:default.php
示例20: 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 $this->me->getLink() ?></strong></li>
<li class="kms"><strong><?php echo JText::_('COM_KUNENA_MYPROFILE_LASTLOGIN'); ?>:</strong> <span title="<?php echo KunenaDate::getInstance($this->me->lastvisitDate)->toKunena('ago'); ?>"><?php echo KunenaDate::getInstance($this->me->lastvisitDate)->toKunena('config_post_dateformat'); ?></span></li>
<?php if ($this->logout->enabled()) : ?>
<li>
<form action="<?php echo KunenaRoute::_('index.php?option=com_kunena') ?>" method="post" name="login">
<input type="hidden" name="view" value="user" />
<input type="hidden" name="task" value="logout" />
[K=TOKEN]
<input type="submit" name="submit" class="kbutton" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGOUT'); ?>" />
</form>
</li>
<?php endif; ?>
</ul>
</td>
<!-- Module position -->
<?php if ($this->moduleHtml) : ?>
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:31,代码来源:logout.php
注:本文中的KunenaDate类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论