本文整理汇总了PHP中XenForo_Template_Helper_Core::datetime方法的典型用法代码示例。如果您正苦于以下问题:PHP XenForo_Template_Helper_Core::datetime方法的具体用法?PHP XenForo_Template_Helper_Core::datetime怎么用?PHP XenForo_Template_Helper_Core::datetime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XenForo_Template_Helper_Core
的用法示例。
在下文中一共展示了XenForo_Template_Helper_Core::datetime方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if (!class_exists('XenForo_Application', false)) {
die;
}
$__output = '';
$__output .= '<div class="primaryContent">
<div class="subHeading">' . 'Contributing Editors' . '</div>
<div class="secondaryContent wikiPage wikiEditors">
<table style="width: 100%;">
';
foreach ($editors as $user) {
$__output .= '
';
$__compilerVar2 = '';
$__compilerVar2 .= '<div class="editor">
<div class="editorAcitivy">
<span class="muted">' . 'Hoạt động cuối' . ': ' . XenForo_Template_Helper_Core::datetime($user['date'], '') . '</span>
</div>
<div class="editorUser">
' . XenForo_Template_Helper_Core::callHelper('avatarhtml', array($user, true, array('user' => '$user', 'size' => 's', 'img' => 'true'), '')) . '
<div class="userInfo">' . XenForo_Template_Helper_Core::callHelper('usernamehtml', array($user, '', true, array())) . '</div>
</div>
<div class="editorInfo">
<span class="muted">' . 'Edits' . ': ' . htmlspecialchars($user['count'], ENT_QUOTES, 'UTF-8') . '</span>
</div>
</div>';
$__output .= $__compilerVar2;
unset($__compilerVar2);
$__output .= '
';
示例2: unset
</li>';
$__output .= $__compilerVar7;
unset($__compilerVar7);
$__output .= '
';
}
$__output .= '
';
foreach ($comments as $comment) {
$__output .= '
';
$__compilerVar8 = '';
$__compilerVar8 .= '<li id="comment_' . htmlspecialchars($comment['comment_id'], ENT_QUOTES, 'UTF-8') . '" class="comment secondaryContent ' . ($comment['isIgnored'] ? 'ignored' : '') . '" itemscope="itemscope" itemtype="http://schema.org/Comment" itemprop="comment">
<meta itemprop="commentTime" content="' . XenForo_Template_Helper_Core::datetime($comment['comment_date'], '') . '">
<meta itemprop="creator" content="' . htmlspecialchars($comment['username'], ENT_QUOTES, 'UTF-8') . '">
' . XenForo_Template_Helper_Core::callHelper('avatarhtml', array($comment, true, array('user' => '$comment', 'size' => 's', 'img' => 'true'), '')) . '
<div class="commentInfo">
';
$__compilerVar9 = '';
$__compilerVar9 .= '
';
if ($comment['isDeleted']) {
$__compilerVar9 .= '
<li class="deletedNotice"><span class="icon Tooltip" title="' . 'Bị xóa' . '" data-tipclass="iconTip flipped"></span>' . 'This message has been removed from public view.' . '</li>
';
} else {
if ($comment['isModerated']) {
$__compilerVar9 .= '
示例3: foreach
<table class="dataTable">
<tr class="dataRow">
<th>' . 'Diễn đàn' . '</th>
<th>' . 'Tiêu đề' . '</th>
<th>' . 'Date' . '</th>
</tr>
';
foreach ($similarThreads as $index => $similarThread) {
$__compilerVar227 .= '
<tr class="dataRow">
<td>' . htmlspecialchars($similarThread['nodetitle'], ENT_QUOTES, 'UTF-8') . '</td>
<td><a href="' . XenForo_Template_Helper_Core::link('threads', $similarThread, array()) . '" title="' . htmlspecialchars($similarThread['title'], ENT_QUOTES, 'UTF-8') . '">' . htmlspecialchars($similarThread['title'], ENT_QUOTES, 'UTF-8') . '</a></td>
<td>' . XenForo_Template_Helper_Core::datetime($similarThread['post_date'], '') . '</td>
</tr>
';
}
$__compilerVar227 .= '
</table>
</div>
<br />
';
}
$__compilerVar227 .= '
示例4: htmlspecialchars
<br><br>
' . 'Android' . ' = ' . htmlspecialchars($android, ENT_QUOTES, 'UTF-8') . '
<br>
' . 'iPad' . ' = ' . htmlspecialchars($ipad, ENT_QUOTES, 'UTF-8') . '
<br>
' . 'iPhone' . ' = ' . htmlspecialchars($iphone, ENT_QUOTES, 'UTF-8') . '
<br><br>
<table class="dataTable">
<tr class="dataRow">
<th>' . 'User Name' . '</th>
<th>' . 'IP' . '</th>
<th>' . 'User Agent' . '</th>
<th>' . 'View Date' . '</th>
</tr>
';
foreach ($results as $result) {
$__output .= '
<tr class="dataRow useragentDataRow">
<td><a href="' . XenForo_Template_Helper_Core::link('members/' . htmlspecialchars($result['user_id'], ENT_QUOTES, 'UTF-8') . '/', false, array()) . '" />' . htmlspecialchars($result['username'], ENT_QUOTES, 'UTF-8') . '</a></td>
<td><a href="http://whatismyipaddress.com/ip/' . htmlspecialchars($result['ip'], ENT_QUOTES, 'UTF-8') . '" target="_blank">' . htmlspecialchars($result['ip'], ENT_QUOTES, 'UTF-8') . '</a></td>
<td>' . htmlspecialchars($result['user_agent'], ENT_QUOTES, 'UTF-8') . '</td>
<td>' . XenForo_Template_Helper_Core::datetime($result['view_date'], '') . '</td>
</tr>
';
}
$__output .= '
</table>';
示例5: foreach
<a class="menuHeader">' . 'Suggested Thread' . '<span class="close">X</span></a>
<ul>
';
foreach ($extraThreadItems['suggestedThreads'] as $_extraThread) {
$__compilerVar1 .= '
<li>
<div class="thumbnail">
<a class="threadThumbnail" href="' . XenForo_Template_Helper_Core::link('members', $_extraThread, array()) . '">
<img src="' . XenForo_Template_Helper_Core::callHelper('avatar', array('0' => $_extraThread, '1' => 's')) . '" alt="" />
</a>
</div>
<div class="threadDetail">
<a href="' . XenForo_Template_Helper_Core::link('threads', $_extraThread, array()) . '" class="threadTitle" title="" class="' . ($_extraThread['hasPreview'] ? 'PreviewTooltip' : '') . '"
data-previewUrl="' . ($_extraThread['hasPreview'] ? XenForo_Template_Helper_Core::link('threads/preview', $_extraThread, array()) : '') . '"
>' . htmlspecialchars($_extraThread['title'], ENT_QUOTES, 'UTF-8') . '</a>
<span class="bretiDate">' . XenForo_Template_Helper_Core::datetime($_extraThread['post_date'], '') . '</span>
</div>
</li>
';
}
$__compilerVar1 .= '
</ul>
</div>
<script>
$(".bretiRandomThread").appendTo(\'body\');
$triggered = false;
$(\'.bretiRandomThread .close\').click(function(){
$(".bretiRandomThread").remove();
});
if($(document).scrollTop() > ($(document).height() - $(window).height()-500)){
$triggered = true;
示例6: array
$__output = '';
$__extraData['title'] = '';
$__extraData['title'] .= 'Quản lý nội tuyến - Gộp bài viết';
$__output .= '
<form action="' . XenForo_Template_Helper_Core::link('inline-mod/post/merge', false, array()) . '" method="post" class="xenForm formOverlay">
<p>' . 'Bạn có chắc muốn gộp ' . htmlspecialchars($postCount, ENT_QUOTES, 'UTF-8') . ' bài viết lại?' . '</p>
<dl class="ctrlUnit">
<dt><label for="ctrl_target_post_id">' . 'Gộp vào bài viết' . ':</label></dt>
<dd>
<select name="target_post_id" id="ctrl_target_post_id" class="textCtrl">
';
foreach ($posts as $post) {
$__output .= '
<option value="' . htmlspecialchars($post['post_id'], ENT_QUOTES, 'UTF-8') . '">' . htmlspecialchars($post['username'], ENT_QUOTES, 'UTF-8') . ', ' . XenForo_Template_Helper_Core::datetime($post['post_date'], 'absolute') . '</option>
';
}
$__output .= '
</select>
</dd>
</dl>
<dl class="ctrlUnit fullWidth surplusLabel">
<dt><label for="ctrl_new_message">' . 'Merged Message' . ':</label></dt>
<dd>' . $editorTemplate . '</dd>
</dl>
<dl class="ctrlUnit submitUnit">
<dt></dt>
<dd><input type="submit" name="save" value="' . 'Gộp bài' . '" accesskey="s" class="button primary" /></dd>
示例7: htmlspecialchars
if (!class_exists('XenForo_Application', false)) {
die;
}
$__output = '';
$__output .= '<li>
<div class="secondaryContent">
<div class="views">
<b>' . htmlspecialchars($playlist['count'], ENT_QUOTES, 'UTF-8') . '</b><br />
' . 'videos' . '
</div>
<div class="thumb">
<a href="' . XenForo_Template_Helper_Core::link('media/playlist', $playlist, array()) . '"><img src="' . XenForo_Template_Helper_Core::callHelper('medio', array('0' => $playlist)) . '" border="0" alt="' . htmlspecialchars($playlist['playlist_name'], ENT_QUOTES, 'UTF-8') . '" /></a>
</div>
<div class="info">
<a href="' . XenForo_Template_Helper_Core::link('media/playlist', $playlist, array()) . '"><b>' . htmlspecialchars($playlist['playlist_name'], ENT_QUOTES, 'UTF-8') . '</b></a><br />
<div class="muted">
' . 'Playlist by ' . '<a href="' . XenForo_Template_Helper_Core::link('media/user', $playlist, array()) . '">' . htmlspecialchars($playlist['username'], ENT_QUOTES, 'UTF-8') . '</a>' . '' . '
' . 'Last updated:' . ': ';
if ($playlist['playlist_date']) {
$__output .= XenForo_Template_Helper_Core::datetime($playlist['playlist_date'], '');
} else {
$__output .= 'Never';
}
$__output .= '
</div>
</div>
</div>
</li>';
示例8: htmlspecialchars
$__compilerVar8 .= '
';
}
$__compilerVar8 .= '
<div class="img" data-height="' . htmlspecialchars($album['cover']['medium_height'], ENT_QUOTES, 'UTF-8') . '" data-width="' . htmlspecialchars($album['cover']['medium_width'], ENT_QUOTES, 'UTF-8') . '">
<a class="" href="' . XenForo_Template_Helper_Core::link('gallery/albums', $album, array()) . '" style="width:220px; height: ' . htmlspecialchars($imageHeightReal, ENT_QUOTES, 'UTF-8') . 'px; max-height: ' . htmlspecialchars($imageHeightReal, ENT_QUOTES, 'UTF-8') . 'px;" >
<img class="lazy" alt="' . htmlspecialchars($album['title'], ENT_QUOTES, 'UTF-8') . '" title="' . htmlspecialchars($album['title'], ENT_QUOTES, 'UTF-8') . '" data-src="' . ($album['cover']['thumbnailUrl'] ? htmlspecialchars($album['cover']['thumbnailUrl'], ENT_QUOTES, 'UTF-8') : XenForo_Template_Helper_Core::styleProperty('sonnbXG_albumEmpty')) . '" />
<noscript><img alt="' . htmlspecialchars($album['title'], ENT_QUOTES, 'UTF-8') . '" title="' . htmlspecialchars($album['title'], ENT_QUOTES, 'UTF-8') . '" src="' . ($album['cover']['thumbnailUrl'] ? htmlspecialchars($album['cover']['thumbnailUrl'], ENT_QUOTES, 'UTF-8') : XenForo_Template_Helper_Core::styleProperty('sonnbXG_albumEmpty')) . '" /></noscript>
</a>
</div>
<meta itemprop="thumbnailUrl" content="' . ($album['cover']['thumbnailUrl'] ? htmlspecialchars($album['cover']['thumbnailUrl'], ENT_QUOTES, 'UTF-8') : XenForo_Template_Helper_Core::styleProperty('sonnbXG_albumEmpty')) . '">
<meta itemprop="contentURL" content="' . XenForo_Template_Helper_Core::link('full:gallery/albums', $album, array()) . '">
<meta itemprop="caption" content="' . htmlspecialchars($album['title'], ENT_QUOTES, 'UTF-8') . '">
<meta itemprop="publisher" content="' . XenForo_Template_Helper_Core::link('full:members', $album, array()) . '">
<meta itemprop="datePublished" content="' . XenForo_Template_Helper_Core::datetime($album['album_date'], '') . '">
<div class="infoAlbum clearfix">
<div class="titleAlbum">
<h3 style="text-align: left;">
<a href="' . XenForo_Template_Helper_Core::link('gallery/albums', $album, array()) . '">' . htmlspecialchars($album['title'], ENT_QUOTES, 'UTF-8') . '</a>
</h3>
</div>
<div class="dateInfo">
';
if ($album['photo_count']) {
$__compilerVar8 .= htmlspecialchars($album['photo_count'], ENT_QUOTES, 'UTF-8') . ' ' . 'photos';
}
if ($album['video_count']) {
$__compilerVar8 .= ($album['photo_count'] ? ' - ' : '') . htmlspecialchars($album['video_count'], ENT_QUOTES, 'UTF-8') . ' ' . 'videos';
}
示例9: array
<?php
if (!class_exists('XenForo_Application', false)) {
die;
}
$__output = '';
$__output .= '<li><a href="' . XenForo_Template_Helper_Core::link('threads', $_extraThread, array()) . '" title="" class="' . ($_extraThread['hasPreview'] ? 'PreviewTooltip' : '') . '"
data-previewUrl="' . ($_extraThread['hasPreview'] ? XenForo_Template_Helper_Core::link('threads/preview', $_extraThread, array()) : '') . '"
>' . htmlspecialchars($_extraThread['title'], ENT_QUOTES, 'UTF-8') . '</a> - <span class="bretiDate">' . XenForo_Template_Helper_Core::datetime($_extraThread['post_date'], '') . '</span></li>';
示例10: array
}
$__extraData['sidebar'] .= '
';
$__compilerVar68 = '';
$__extraData['sidebar'] .= $this->callTemplateHook('resource_view_sidebar_below_support_button', $__compilerVar68, array('resource' => $resource));
unset($__compilerVar68);
$__extraData['sidebar'] .= '
';
if ($thread) {
$__extraData['sidebar'] .= '<a class="callToAction" href="' . XenForo_Template_Helper_Core::link('threads', $thread, array()) . '"><span>
' . 'Discuss This Resource' . '
';
if ($thread['reply_count']) {
$__extraData['sidebar'] .= '<small class="minorText">' . 'Trả lời' . ': ' . XenForo_Template_Helper_Core::numberFormat($thread['reply_count'], '0') . ', ' . 'Mới nhất' . ': ' . XenForo_Template_Helper_Core::datetime($thread['last_post_date'], '') . '</small>';
}
$__extraData['sidebar'] .= '
</span></a>';
}
$__extraData['sidebar'] .= '
';
$__compilerVar69 = '';
$__extraData['sidebar'] .= $this->callTemplateHook('resource_view_sidebar_below_discussion_button', $__compilerVar69, array('resource' => $resource));
unset($__compilerVar69);
$__extraData['sidebar'] .= '
';
$__compilerVar70 = '';
$__compilerVar70 .= '
示例11: htmlspecialchars
$__extraData['title'] = '';
$__extraData['title'] .= 'Link Check';
$__output .= '
' . 'Limit' . ': ' . htmlspecialchars($limit, ENT_QUOTES, 'UTF-8') . '
<br />
' . 'Offset' . ': ' . htmlspecialchars($offset, ENT_QUOTES, 'UTF-8') . '
<table class="dataTable">
<tr class="dataRow">
<th>' . 'Đăng' . '</th>
<th>' . 'Date' . '</th>
<th>' . 'Tên chủ đề' . '</th>
<th>' . 'Status' . '</th>
<th>' . 'URL' . '</th>
</tr>
';
foreach ($posts as $post) {
$__output .= '
<tr class="dataRow">
<td><a href="' . XenForo_Template_Helper_Core::link('posts', $post, array()) . '" target="_blank" />' . htmlspecialchars($post['post_id'], ENT_QUOTES, 'UTF-8') . '</a></td>
<td>' . XenForo_Template_Helper_Core::datetime($post['post_date'], '') . '</td>
<td>' . htmlspecialchars($post['title'], ENT_QUOTES, 'UTF-8') . '</td>
<td>' . htmlspecialchars($post['status'], ENT_QUOTES, 'UTF-8') . '</td>
<td><a href="' . htmlspecialchars($post['url'], ENT_QUOTES, 'UTF-8') . '" target="_blank" />' . htmlspecialchars($post['url'], ENT_QUOTES, 'UTF-8') . '</a></td>
</tr>
';
}
$__output .= '
</table>';
示例12: array
<?php
if (!class_exists('XenForo_Application', false)) {
die;
}
$__output = '';
$__output .= '<dl>
<dt>' . 'Most Online Users' . ':</dt>
<dd class="Tooltip" title="' . XenForo_Template_Helper_Core::datetime($ragtek_mostOnlineUsersTime, 'absolute') . '">
';
if ($visitor['is_admin']) {
$__output .= '
<a class="OverlayTrigger" href="' . XenForo_Template_Helper_Core::link('misc/reset-most-online', '', array('redirect' => $requestPaths['requestUri'])) . '">' . XenForo_Template_Helper_Core::numberFormat($ragtek_mostOnlineUsersCounter, '0') . '</a>
';
} else {
$__output .= XenForo_Template_Helper_Core::numberFormat($ragtek_mostOnlineUsersCounter, '0') . '
';
}
$__output .= '
</dd>
</dl>
';
示例13: array
<?php
if (!class_exists('XenForo_Application', false)) {
die;
}
$__output = '';
$__extraData['title'] = '';
$__extraData['title'] .= 'Báo cáo đã đóng: ' . XenForo_Template_Helper_Core::datetime($minimumTimestamp, 'absolute') . ' - ' . XenForo_Template_Helper_Core::datetime($maximumTimestamp, 'absolute') . '';
$__output .= '
';
$__extraData['navigation'] = array();
$__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::link('full:reports', false, array()), 'value' => 'Mục đã được báo cáo nội dung xấu');
$__output .= '
';
$__extraData['topctrl'] = '';
$__extraData['topctrl'] .= '<a href="' . XenForo_Template_Helper_Core::link('reports', false, array()) . '" class="callToAction"><span>' . 'Báo cáo chưa duyệt' . '</span></a>';
$__output .= '
';
$this->addRequiredExternal('css', 'report');
$__output .= '
';
$this->addRequiredExternal('css', 'discussion_list');
$__output .= '
<div class="discussionList section">
<dl class="sectionHeaders">
<dt class="posterAvatar"><a><span></span></a></dt>
<dd class="main">
示例14: array
$__compilerVar6 .= '<a href="' . XenForo_Template_Helper_Core::link('threads/poll/edit', $thread, array()) . '" class="editLink">' . 'Edit' . '</a>';
}
$__compilerVar6 .= '
';
if ($poll['close_date']) {
$__compilerVar6 .= '
<div class="pollNotes closeDate muted">
';
if ($poll['open']) {
$__compilerVar6 .= '
' . 'This poll will close on ' . XenForo_Template_Helper_Core::datetime($poll['close_date'], 'absolute') . '.' . '
';
} else {
$__compilerVar6 .= '
' . 'Poll closed ' . XenForo_Template_Helper_Core::datetime($poll['close_date'], '') . '.' . '
';
}
$__compilerVar6 .= '
</div>
';
}
$__compilerVar6 .= '
</div>
' . $__compilerVar3 . '
</div>
</div>
<input type="hidden" name="_xfToken" value="' . htmlspecialchars($visitor['csrf_token_page'], ENT_QUOTES, 'UTF-8') . '" />
</form>
示例15: array
<?php
if (!class_exists('XenForo_Application', false)) {
die;
}
$__output = '';
$__extraData['title'] = '';
$__extraData['title'] .= 'Closed Reports: ' . XenForo_Template_Helper_Core::datetime($minimumTimestamp, 'absolute') . ' - ' . XenForo_Template_Helper_Core::datetime($maximumTimestamp, 'absolute') . '';
$__output .= '
';
$__extraData['navigation'] = array();
$__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::link('full:reports', false, array()), 'value' => 'Reported Items');
$__output .= '
';
$__extraData['topctrl'] = '';
$__extraData['topctrl'] .= '<a href="' . XenForo_Template_Helper_Core::link('reports', false, array()) . '" class="callToAction"><span>' . 'Active Reports' . '</span></a>';
$__output .= '
';
$this->addRequiredExternal('css', 'report');
$__output .= '
';
$this->addRequiredExternal('css', 'discussion_list');
$__output .= '
<div class="discussionList section">
<dl class="sectionHeaders">
<dt class="posterAvatar"><a><span></span></a></dt>
<dd class="main">