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


PHP XenForo_Template_Helper_Core::time方法代码示例

本文整理汇总了PHP中XenForo_Template_Helper_Core::time方法的典型用法代码示例。如果您正苦于以下问题:PHP XenForo_Template_Helper_Core::time方法的具体用法?PHP XenForo_Template_Helper_Core::time怎么用?PHP XenForo_Template_Helper_Core::time使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XenForo_Template_Helper_Core的用法示例。


在下文中一共展示了XenForo_Template_Helper_Core::time方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

    $__output .= '
		<ol class="alerts alertsScroller">
		';
    foreach ($alerts as $date => $alertsDay) {
        $__output .= '
			<li class="alertGroup">
				<h2 class="textHeading">' . htmlspecialchars($date, ENT_QUOTES, 'UTF-8') . '</h2>
				<ol>
				';
        foreach ($alertsDay as $alert) {
            $__output .= '
					<li id="alert' . htmlspecialchars($alert['alert_id'], ENT_QUOTES, 'UTF-8') . '" class="primaryContent ' . ($alert['new'] ? 'new' : '') . ($alert['unviewed'] ? ' unviewed' : '') . '" data-author="' . htmlspecialchars($alert['user']['username'], ENT_QUOTES, 'UTF-8') . '">
						' . XenForo_Template_Helper_Core::callHelper('avatarhtml', array($alert['user'], true, array('user' => '$alert.user', 'size' => 's', 'img' => 'true', 'class' => 'plainImage'), '')) . '
						<div class="alertText">
							<h3>' . $alert['template'] . '</h3>
							<div class="timeRow"><span class="time muted">' . XenForo_Template_Helper_Core::time($alert['event_date'], '') . '</span>';
            if ($alert['new']) {
                $__output .= '<span class="newIcon"></span>';
            }
            $__output .= '</div>
						</div>
					</li>
				';
        }
        $__output .= '
				</ol>
			</li>
		';
    }
    $__output .= '
		</ol>
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.9,L.2,account_alerts.php

示例2: array

}
$__compilerVar1 .= '
	</div>

	<div class="sectionFooter">
		<div style="float: right;">
			';
if ($perms['like']) {
    $__compilerVar1 .= '
				(<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'] ? 'Unlike' : 'Like') . '</span></a>)
			';
}
$__compilerVar1 .= '
			(' . htmlspecialchars($page['page_views'], ENT_QUOTES, 'UTF-8') . ' ' . 'Views' . ')
		</div>
		' . 'Last Modified' . ': ' . '' . XenForo_Template_Helper_Core::date($page['page_date'], '') . ' at ' . XenForo_Template_Helper_Core::time($page['page_date'], '') . '' . '
		';
if ($page['cache']) {
    $__compilerVar1 .= '(Cached)';
}
$__compilerVar1 .= '
	</div>
</div>

';
$__compilerVar6 = '';
if ($sidebar) {
    $__compilerVar6 .= '
';
    $this->addRequiredExternal('css', 'member_list');
    $__compilerVar6 .= '
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.1,L.1,EWRcarta_PageView_NoSide.php

示例3: array

		<div class="secondaryContent">
			<h3>
				' . 'Media Details' . '
				<div style="float: right;">
					';
if ($perms['mod'] || $media['user_id'] === $visitor['user_id']) {
    $__extraData['sidebar'] .= '
						(<a href="' . XenForo_Template_Helper_Core::link('media/edit', $media, array()) . '">' . 'Sửa' . '</a>)
					';
}
$__extraData['sidebar'] .= '
				</div>
			</h3>

			<div style="text-align: center;">
				<span style="font-size: 1.4em"><b>' . '' . XenForo_Template_Helper_Core::date($media['media_date'], '') . ' lúc ' . XenForo_Template_Helper_Core::time($media['media_date'], '') . '' . '</b></span><br />
				' . 'Đăng bởi' . ' <a href="' . XenForo_Template_Helper_Core::link('media/user', $media, array()) . '">' . htmlspecialchars($media['username'], ENT_QUOTES, 'UTF-8') . '</a><br />
				<br />
				' . $media['HTML'] . '<br />
				<br />

				';
$__compilerVar20 = '';
$__compilerVar20 .= '
						';
foreach ($customs as $custom) {
    $__compilerVar20 .= '
							<dl>
								<dt>' . htmlspecialchars($custom['name'], ENT_QUOTES, 'UTF-8') . ':</dt>
								<dd>' . htmlspecialchars($custom['value'], ENT_QUOTES, 'UTF-8') . '</dd>
							</dl>
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.10,L.2,EWRmedio_MediaView.php

示例4: 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 .= '
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.1,L.2,EWRmedio_ServiceView.php

示例5: 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 .= '
开发者ID:Sywooch,项目名称:forums,代码行数:30,代码来源:S.10,L.1,EWRcarta_PageArchive_NoSide.php

示例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>
		';
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.2,EWRcarta_PageHistory_Simple.php

示例7: 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 .= '

';
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.1,EWRcarta_PageCompare.php

示例8: 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' . ':
				';
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.9,L.1,EWRmedio_BBcode_Full.php

示例9: 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 .= '
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.2,EWRcarta_PageView_NoSide.php

示例10: unset

					<div class="messageUserBlock">
						<div class="avatarHolder">
							' . $__compilerVar5 . '
						</div>
					</div>
				';
        }
        unset($__compilerVar5);
        $__output .= '
				';
    }
    $__output .= '

				<div class="messageContent baseHtml">
					<div class="postedBy">
						<span class="posted iconKey"><div class="sticky"></div>' . 'by ' . '<a href="' . XenForo_Template_Helper_Core::link('members', $news, array()) . '" class="username">' . htmlspecialchars($news['username'], ENT_QUOTES, 'UTF-8') . '</a>' . ' at ' . '<a href="' . XenForo_Template_Helper_Core::link('threads', $news, array()) . '">' . XenForo_Template_Helper_Core::time($news['post_date'], 'absolute') . '</a>' . '' . '</span>
						<span class="views">(' . XenForo_Template_Helper_Core::numberFormat($news['view_count'], '0') . ' ' . 'Đọc' . ' / ' . XenForo_Template_Helper_Core::numberFormat($news['first_post_likes'], '0') . ' ' . 'Thích' . ')</span>
						<span class="comments iconKey"><div class="new"></div><a href="' . XenForo_Template_Helper_Core::link('threads/unread', $news, array()) . '">' . XenForo_Template_Helper_Core::numberFormat($news['reply_count'], '0') . ' ' . 'Bình luận' . '</a></span>
					</div>

					<div class="newsText">' . $news['messageHtml'] . '</div>
					<div class="clearFix"></div>
				</div>

				<div class="sectionFooter">
					';
    if ($option['social']) {
        $__output .= '
						';
        $__compilerVar6 = '';
        $__compilerVar6 .= '
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.1,L.2,EWRblock_RecentNews.php


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