本文整理汇总了PHP中XenForo_Template_Helper_Core::date方法的典型用法代码示例。如果您正苦于以下问题:PHP XenForo_Template_Helper_Core::date方法的具体用法?PHP XenForo_Template_Helper_Core::date怎么用?PHP XenForo_Template_Helper_Core::date使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XenForo_Template_Helper_Core
的用法示例。
在下文中一共展示了XenForo_Template_Helper_Core::date方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderXml
public function renderXml()
{
$system =& $this->_params['system'];
$widgets =& $this->_params['widgets'];
$document = new DOMDocument('1.0', 'utf-8');
$document->formatOutput = true;
$rootNode = $document->createElement('widget_framework');
$rootNode->setAttribute('version', $system['version_string']);
$document->appendChild($rootNode);
foreach ($widgets as $widget) {
$widgetNode = $document->createElement('widget');
$widgetNode->setAttribute('title', $widget['title']);
$widgetNode->setAttribute('class', $widget['class']);
$optionsNode = $document->createElement('options');
$optionsString = $widget['options'];
if (!is_string($optionsString)) {
$optionsString = serialize($optionsString);
}
$optionsData = XenForo_Helper_DevelopmentXml::createDomCdataSection($document, $optionsString);
$optionsNode->appendChild($optionsData);
$widgetNode->appendChild($optionsNode);
$widgetNode->setAttribute('position', $widget['position']);
$widgetNode->setAttribute('display_order', $widget['display_order']);
$widgetNode->setAttribute('active', $widget['active']);
$rootNode->appendChild($widgetNode);
}
$this->setDownloadFileName('widget_framework-widgets-' . XenForo_Template_Helper_Core::date(XenForo_Application::$time, 'YmdHi') . '.xml');
return $document->saveXml();
}
示例2:
<dd>
<ul>
<li><label for="ctrl_gender_male"><input type="radio" name="gender" value="male" id="ctrl_gender_male" ' . ($visitor['gender'] == 'male' ? ' checked="checked"' : '') . ' /> ' . 'Male' . '</label></li>
<li><label for="ctrl_gender_female"><input type="radio" name="gender" value="female" id="ctrl_gender_female" ' . ($visitor['gender'] == 'female' ? ' checked="checked"' : '') . ' /> ' . 'Female' . '</label></li>
<li><label for="ctrl_gender_"><input type="radio" name="gender" value="" id="ctrl_gender_" ' . ($visitor['gender'] == '' ? ' checked="checked"' : '') . ' /> (' . 'unspecified' . ')</label></li>
</ul>
</dd>
</dl>
<dl class="ctrlUnit OptOut">
<dt>' . 'Date of Birth' . ':</dt>
<dd>
';
if ($visitor['dob_day'] && $visitor['dob_month'] && $visitor['dob_year']) {
$__compilerVar3 .= '
' . XenForo_Template_Helper_Core::date($birthday['timeStamp'], $birthday['format']) . '
<p class="explain">' . 'Once your birthday has been entered, it cannot be changed. Please contact an administrator if it is incorrect.' . '</p>
';
} else {
$__compilerVar3 .= '
';
$__compilerVar4 = '';
$__compilerVar4 .= '<ul dir="ltr" id="helper_birthday">
<li><select name="dob_month" class="textCtrl autoSize">
<option value="0" ' . ($visitor['dob_month'] == 0 ? ' selected="selected"' : '') . '> </option>
<option value="1" ' . ($visitor['dob_month'] == 1 ? ' selected="selected"' : '') . '>' . 'January' . '</option>
<option value="2" ' . ($visitor['dob_month'] == 2 ? ' selected="selected"' : '') . '>' . 'February' . '</option>
<option value="3" ' . ($visitor['dob_month'] == 3 ? ' selected="selected"' : '') . '>' . 'March' . '</option>
<option value="4" ' . ($visitor['dob_month'] == 4 ? ' selected="selected"' : '') . '>' . 'April' . '</option>
<option value="5" ' . ($visitor['dob_month'] == 5 ? ' selected="selected"' : '') . '>' . 'May' . '</option>
<option value="6" ' . ($visitor['dob_month'] == 6 ? ' selected="selected"' : '') . '>' . 'June' . '</option>
示例3: unset
if (trim($__compilerVar2) !== '') {
$__compilerVar1 .= '
<div class="secondaryContent">
' . $__compilerVar2 . '
</div>
';
}
unset($__compilerVar2);
$__compilerVar1 .= '
<div class="wikiContent primaryContent">
' . $history['HTML'] . '
</div>
<div class="sectionFooter">
' . 'Applied By' . ' ' . htmlspecialchars($history['username'], ENT_QUOTES, 'UTF-8') . ': ' . '' . XenForo_Template_Helper_Core::date($history['history_date'], '') . ' at ' . XenForo_Template_Helper_Core::time($history['history_date'], '') . '' . '
</div>
</div>
<div class="sectionMain" style="padding-right: 18px; padding-bottom: 5px;">
<textarea name="history_content" style="height:260px; width:100%;" class="textCtrl">' . $history['history_content'] . '</textarea>
</div>
';
$__compilerVar3 = '';
if ($sidebar) {
$__compilerVar3 .= '
';
$this->addRequiredExternal('css', 'member_list');
$__compilerVar3 .= '
示例4: array
$__compilerVar18 = '';
$__compilerVar18 .= '
<article>' . $templateHtml . '</article>
';
$__output .= $this->callTemplateHook('pagenode_container_article', $__compilerVar18, array());
unset($__compilerVar18);
$__output .= '
<div class="bottomContent">
';
if ($page['log_visits']) {
$__output .= '
<div class="pageCounter">
<dl class="pairsInline pageStats">
<dt>' . 'Published' . ':</dt> <dd>' . XenForo_Template_Helper_Core::date($page['publish_date'], '') . '</dd>
<dt>' . 'Page views' . ':</dt> <dd>' . XenForo_Template_Helper_Core::numberFormat($page['view_count'], '0') . '</dd>
</dl>
</div>
';
}
$__output .= '
';
$__compilerVar19 = '';
$__compilerVar19 .= XenForo_Template_Helper_Core::link('canonical:pages', $page, array());
$__compilerVar20 = '';
$__compilerVar21 = '';
$__compilerVar21 .= '
';
$__compilerVar22 = '';
示例5: htmlspecialchars
$__compilerVar9 .= htmlspecialchars($subMedia['media_hours'], ENT_QUOTES, 'UTF-8') . ':';
}
$__compilerVar9 .= htmlspecialchars($subMedia['media_minutes'], ENT_QUOTES, 'UTF-8') . ':' . htmlspecialchars($subMedia['media_seconds'], ENT_QUOTES, 'UTF-8') . '</b></div>
';
}
$__compilerVar9 .= '
<a href="' . XenForo_Template_Helper_Core::link('media', $subMedia, array()) . '"><img src="' . XenForo_Template_Helper_Core::callHelper('medio', array('0' => $subMedia)) . '" border="0" style="width: 100%;" alt="' . htmlspecialchars($subMedia['media_title'], ENT_QUOTES, 'UTF-8') . '" /></a>
</div>
<div style="height: 34px; overflow: hidden; margin-top: 10px;">
<a href="' . XenForo_Template_Helper_Core::link('media', $subMedia, array()) . '"><b>' . htmlspecialchars($subMedia['media_title'], ENT_QUOTES, 'UTF-8') . '</b></a>
</div>
<div style="white-space: nowrap; overflow: hidden;">
' . '' . XenForo_Template_Helper_Core::date($subMedia['media_date'], '') . ' lúc ' . XenForo_Template_Helper_Core::time($subMedia['media_date'], '') . '' . '<br />
' . 'Đăng bởi' . ' <a href="' . XenForo_Template_Helper_Core::link('media/user', $subMedia, array()) . '">' . htmlspecialchars($subMedia['username'], ENT_QUOTES, 'UTF-8') . '</a><br />
<a href="' . XenForo_Template_Helper_Core::link('media/category', $subMedia, array()) . '">' . htmlspecialchars($subMedia['category_name'], ENT_QUOTES, 'UTF-8') . '</a>
</div>
</div>
</li>';
$__output .= $__compilerVar9;
unset($__compilerVar9);
$__output .= '
';
}
$__output .= '
</ul>
';
} else {
$__output .= '
示例6: array
';
if ($history['history_current']) {
$__compilerVar2 .= '
<td>(<a href="' . XenForo_Template_Helper_Core::link('wiki', $history, array()) . '">' . 'Current' . '</a>)</td>
';
} else {
$__compilerVar2 .= '
<td>
(<a href="' . XenForo_Template_Helper_Core::link('wiki/archive/compare', $history, array()) . '">' . 'Compare' . '</a>)
(<a href="' . XenForo_Template_Helper_Core::link('wiki/archive', $history, array()) . '">' . 'Xem' . '</a>)
</td>
';
}
$__compilerVar2 .= '
<td><a href="' . XenForo_Template_Helper_Core::link('wiki', $history, array()) . '">' . htmlspecialchars($history['page_name'], ENT_QUOTES, 'UTF-8') . '</a></td>
<td>' . '' . XenForo_Template_Helper_Core::date($history['history_date'], '') . ' lúc ' . XenForo_Template_Helper_Core::time($history['history_date'], '') . '' . '</td>
<td>
';
if ($history['user_id']) {
$__compilerVar2 .= '
<a href="' . XenForo_Template_Helper_Core::link('members', $history, array()) . '" class="username">' . htmlspecialchars($history['username'], ENT_QUOTES, 'UTF-8') . '</a>
';
} else {
$__compilerVar2 .= '
' . htmlspecialchars($history['username'], ENT_QUOTES, 'UTF-8') . '
';
}
$__compilerVar2 .= '
</td>
<td>
';
示例7: htmlspecialchars
}
$__output .= '
</dd>
</dl>
<dl class="ctrlUnit">
<dt>' . 'Điểm cảnh cáo' . ':</dt>
<dd>
' . XenForo_Template_Helper_Core::numberFormat($warning['points'], '0') . '
';
if ($warning['is_expired']) {
$__output .= '<span class="muted">(' . 'Expired' . ')</span>
';
} else {
if ($warning['expiry_date'] > 0) {
$__output .= '<span class="muted">(' . 'Expires ' . XenForo_Template_Helper_Core::date($warning['expiry_date'], '') . '' . ')</span>
';
}
}
$__output .= '
</dd>
</dl>
';
if ($canDeleteWarning and $canExpireWarning) {
$__output .= '
<ul class="tabs Tabs" data-panes="#WarningActionTabs_' . htmlspecialchars($warning['warning_id'], ENT_QUOTES, 'UTF-8') . ' > form">
<li><a href="javascript:">' . 'Delete Warning' . '</a></li>
<li><a href="javascript:">' . 'Update Warning' . '</a></li>
</ul>
';
示例8: unset
$__compilerVar38 .= $__compilerVar42;
unset($__compilerVar42);
}
$__compilerVar38 .= '
';
$__compilerVar43 = '';
$__compilerVar43 .= '
';
$__compilerVar44 = '';
$__compilerVar44 .= '
';
if (XenForo_Template_Helper_Core::styleProperty('messageShowRegisterDate') and $post['user_id']) {
$__compilerVar44 .= '
<dl class="pairsJustified">
<dt>' . 'Tham gia ngày' . ':</dt>
<dd>' . XenForo_Template_Helper_Core::date($post['register_date'], '') . '</dd>
</dl>
';
}
$__compilerVar44 .= '
';
if (XenForo_Template_Helper_Core::styleProperty('messageShowMessageCount') and $post['user_id']) {
$__compilerVar44 .= '
<dl class="pairsJustified">
<dt>' . 'Bài viết' . ':</dt>
<dd><a href="' . XenForo_Template_Helper_Core::link('search/member', '', array('user_id' => $post['user_id'])) . '" class="concealed" rel="nofollow">' . XenForo_Template_Helper_Core::numberFormat($post['message_count'], '0') . '</a></dd>
</dl>
';
}
$__compilerVar44 .= '
示例9: htmlspecialchars
';
$__extraData['h1'] = '';
$__extraData['h1'] .= htmlspecialchars($page['page_name'], ENT_QUOTES, 'UTF-8') . ' - ' . 'Historical';
$__output .= '
';
$__extraData['pageDescription'] = array();
$__extraData['pageDescription']['content'] = '';
$__extraData['pageDescription']['content'] .= 'Applied By' . '
';
if ($history['user_id']) {
$__extraData['pageDescription']['content'] .= '<a href="' . XenForo_Template_Helper_Core::link('members', $history, array()) . '" class="username">' . htmlspecialchars($history['username'], ENT_QUOTES, 'UTF-8') . '</a>';
} else {
$__extraData['pageDescription']['content'] .= htmlspecialchars($history['username'], ENT_QUOTES, 'UTF-8');
}
$__extraData['pageDescription']['content'] .= ':
' . '' . XenForo_Template_Helper_Core::date($history['history_date'], '') . ' at ' . XenForo_Template_Helper_Core::time($history['history_date'], '') . '' . '
';
$__output .= '
';
$__extraData['quickNavSelected'] = '';
$__extraData['quickNavSelected'] .= 'wiki-' . htmlspecialchars($page['page_id'], ENT_QUOTES, 'UTF-8');
$__output .= '
';
$__extraData['navigation'] = array();
$__extraData['navigation'] = XenForo_Template_Helper_Core::appendBreadCrumbs($__extraData['navigation'], $breadCrumbs);
$__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::link('full:wiki/history', $page, array()), 'value' => 'History');
$__output .= '
';
示例10: htmlspecialchars
<div class="attribution type">' . htmlspecialchars($media['media_title'], ENT_QUOTES, 'UTF-8') . '</div>
<blockquote>
<div class="bbCodeMedio" style="background: url(\'' . XenForo_Template_Helper_Core::callHelper('medio', array('0' => $media)) . '\') no-repeat;">
<a href="' . XenForo_Template_Helper_Core::link('media/popout', $media, array()) . '" class="OverlayTrigger">
<img src="styles/8wayrun/EWRmedio_play.png" />
</a>
</div>
</blockquote>
</div>
</div>';
$__output .= $__compilerVar1;
unset($__compilerVar1);
$__output .= '
' . 'Duration' . ': ' . '' . htmlspecialchars($media['media_minutes'], ENT_QUOTES, 'UTF-8') . ' minutes' . ' ' . '' . htmlspecialchars($media['media_seconds'], ENT_QUOTES, 'UTF-8') . ' seconds' . '<br>
Uploaded on ' . '' . XenForo_Template_Helper_Core::date($media['media_date'], '') . ' at ' . XenForo_Template_Helper_Core::time($media['media_date'], '') . '' . ' by <a href="' . XenForo_Template_Helper_Core::link('media/user', $media, array()) . '">' . htmlspecialchars($media['username'], ENT_QUOTES, 'UTF-8') . '</a><br>
<a href="' . XenForo_Template_Helper_Core::link('media/category', $media, array()) . '">' . htmlspecialchars($media['category_name'], ENT_QUOTES, 'UTF-8') . '</a> - <a href="' . XenForo_Template_Helper_Core::link('media/service', $media, array()) . '">' . htmlspecialchars($media['service_name'], ENT_QUOTES, 'UTF-8') . '</a>
';
$__compilerVar2 = '';
$this->addRequiredExternal('css', 'bb_code');
$__compilerVar2 .= '
<div class="bbCodeBlock bbCodeQuote' . ($ignored ? ' ignored' : '') . '"' . ($nameHtml ? ' data-author="' . htmlspecialchars($nameHtml, ENT_QUOTES, 'UTF-8') . '"' : '') . '>
<aside>
';
if ($nameHtml) {
$__compilerVar2 .= '
<div class="attribution type">' . '' . $nameHtml . ' said' . ':
';
示例11: array
$__compilerVar110 .= '
<dl><dt>' . 'Giới tính' . ':</dt> <dd>';
if ($user['gender'] == 'male') {
$__compilerVar110 .= 'Nam';
} else {
$__compilerVar110 .= 'Nữ';
}
$__compilerVar110 .= '</dd></dl>
';
}
$__compilerVar110 .= '
';
if ($birthday) {
$__compilerVar110 .= '
<dl><dt>' . 'Sinh nhật' . ':</dt> <dd>' . XenForo_Template_Helper_Core::date($birthday['timeStamp'], $birthday['format']) . ' ';
if ($birthday['age']) {
$__compilerVar110 .= '(' . 'Tuổi' . ': ' . XenForo_Template_Helper_Core::numberFormat($birthday['age'], '0') . ')';
}
$__compilerVar110 .= '</dd></dl>
';
}
$__compilerVar110 .= '
';
if ($user['homepage']) {
$__compilerVar110 .= '
<dl><dt>' . 'Web' . ':</dt> <dd><a href="' . XenForo_Template_Helper_Core::string('censor', array('0' => htmlspecialchars($user['homepage'], ENT_QUOTES, 'UTF-8'), '1' => 'x')) . '" rel="nofollow" target="_blank">' . XenForo_Template_Helper_Core::string('censor', array('0' => htmlspecialchars($user['homepage'], ENT_QUOTES, 'UTF-8'))) . '</a></dd></dl>
';
}
$__compilerVar110 .= '
示例12: foreach
';
if ($replyBans) {
$__output .= '
<table class="dataTable">
<tr class="dataRow subtle">
<th width="20%">' . 'User' . '</th>
<th width="38%">' . 'Reason' . '</th>
<th width="32%">' . 'End Date' . '</th>
<th width="10%">' . 'Delete' . '</th>
</tr>
';
foreach ($replyBans as $ban) {
$__output .= '
<tr class="dataRow">
<td>' . XenForo_Template_Helper_Core::callHelper('usernamehtml', array($ban, '', false, array())) . '</td>
<td><span title="' . 'by ' . htmlspecialchars($ban['ban_username'], ENT_QUOTES, 'UTF-8') . '' . ', ' . XenForo_Template_Helper_Core::date($ban['ban_date'], '') . '">';
if ($ban['reason']) {
$__output .= htmlspecialchars($ban['reason'], ENT_QUOTES, 'UTF-8');
} else {
$__output .= 'N/A';
}
$__output .= '</span></td>
<td>';
if ($ban['expiry_date']) {
$__output .= XenForo_Template_Helper_Core::callHelper('datetimehtml', array($ban['expiry_date'], array('time' => htmlspecialchars($ban['expiry_date'], ENT_QUOTES, 'UTF-8'))));
} else {
$__output .= 'N/A';
}
$__output .= '</td>
<td><input type="checkbox" name="delete[]" value="' . htmlspecialchars($ban['user_id'], ENT_QUOTES, 'UTF-8') . '" />
</tr>
示例13: array
}
$__compilerVar17 .= '
</div>
<div class="sectionFooter">
<div style="float: right;">
';
if ($perms['like']) {
$__compilerVar17 .= '
(<a href="' . XenForo_Template_Helper_Core::link('wiki/like', $page, array()) . '" class="LikeLink item control ' . ($wiki['like_date'] ? 'unlike' : 'like') . '" data-container="#likes-wiki-' . htmlspecialchars($page['page_id'], ENT_QUOTES, 'UTF-8') . '"><span></span><span class="LikeLabel">' . ($page['like_date'] ? 'Không thích nữa' : 'Thích') . '</span></a>)
';
}
$__compilerVar17 .= '
(' . htmlspecialchars($page['page_views'], ENT_QUOTES, 'UTF-8') . ' ' . 'Đọc' . ')
</div>
' . 'Lần sửa cuối' . ': ' . '' . XenForo_Template_Helper_Core::date($page['page_date'], '') . ' lúc ' . XenForo_Template_Helper_Core::time($page['page_date'], '') . '' . '
';
if ($page['cache']) {
$__compilerVar17 .= '(Cached)';
}
$__compilerVar17 .= '
</div>
</div>
';
$__compilerVar22 = '';
if ($sidebar) {
$__compilerVar22 .= '
';
$this->addRequiredExternal('css', 'member_list');
$__compilerVar22 .= '
示例14: array
}
$__compilerVar3 .= '
';
}
$__compilerVar3 .= '
';
$__output .= $this->callTemplateHook('member_card_links', $__compilerVar3, array());
unset($__compilerVar3);
$__output .= '
</div>
<dl class="userStats pairsInline">
';
$__compilerVar4 = '';
$__compilerVar4 .= '
<dt>' . 'Member Since' . ':</dt> <dd>' . XenForo_Template_Helper_Core::date($user['register_date'], '') . '</dd>
<!-- slot: pre_messages -->
<dt>' . 'Messages' . ':</dt> <dd><a href="' . XenForo_Template_Helper_Core::link('search/member', '', array('user_id' => $user['user_id'])) . '" class="concealed" rel="nofollow">' . XenForo_Template_Helper_Core::numberFormat($user['message_count'], '0') . '</a></dd>
<!-- slot: pre_likes -->
<dt>' . 'Likes Received' . ':</dt> <dd>' . XenForo_Template_Helper_Core::numberFormat($user['like_count'], '0') . '</dd>
<!-- slot: pre_trophies -->
<dt>' . 'Trophy Points' . ':</dt> <dd><a href="' . XenForo_Template_Helper_Core::link('members/trophies', $user, array()) . '" class="concealed OverlayTrigger">' . XenForo_Template_Helper_Core::numberFormat($user['trophy_points'], '0') . '</a></dd>
';
if ($canViewWarnings) {
$__compilerVar4 .= '
<dt>' . 'Warning Points' . ':</dt> <dd><a href="' . XenForo_Template_Helper_Core::link('members', $user, array()) . '#warnings" class="concealed">' . XenForo_Template_Helper_Core::numberFormat($user['warning_points'], '0') . '</a></dd>
';
}
$__compilerVar4 .= '
';
示例15: array
}
$__compilerVar7 .= '
';
}
$__compilerVar7 .= '
';
$__output .= $this->callTemplateHook('member_card_links', $__compilerVar7, array());
unset($__compilerVar7);
$__output .= '
</div>
<dl class="userStats pairsInline">
';
$__compilerVar8 = '';
$__compilerVar8 .= '
<dt>' . 'Làm thành viên từ' . ':</dt> <dd>' . XenForo_Template_Helper_Core::date($user['register_date'], '') . '</dd>
<!-- slot: pre_messages -->
<dt>' . 'Bài viết' . ':</dt> <dd><a href="' . XenForo_Template_Helper_Core::link('search/member', '', array('user_id' => $user['user_id'])) . '" class="concealed" rel="nofollow">' . XenForo_Template_Helper_Core::numberFormat($user['message_count'], '0') . '</a></dd>
<!-- slot: pre_likes -->
<dt>' . 'Đã được thích' . ':</dt> <dd>' . XenForo_Template_Helper_Core::numberFormat($user['like_count'], '0') . '</dd>
<!-- slot: pre_trophies -->
<dt>' . 'Điểm thành tích' . ':</dt> <dd><a href="' . XenForo_Template_Helper_Core::link('members/trophies', $user, array()) . '" class="concealed OverlayTrigger">' . XenForo_Template_Helper_Core::numberFormat($user['trophy_points'], '0') . '</a></dd>
';
if ($canViewWarnings) {
$__compilerVar8 .= '
<dt>' . 'Điểm cảnh cáo' . ':</dt> <dd><a href="' . XenForo_Template_Helper_Core::link('members', $user, array()) . '#warnings" class="concealed">' . XenForo_Template_Helper_Core::numberFormat($user['warning_points'], '0') . '</a></dd>
';
}
$__compilerVar8 .= '
';