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


PHP XenForo_Template_Helper_Core::link方法代码示例

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


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

示例1: array

<?php

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
$__output .= '<li id="photos" class="profileContent" data-loadUrl="' . XenForo_Template_Helper_Core::link('gallery/authors/photos', $user, array('profile' => '1')) . '">
	' . 'Đang tải' . '...
	<noscript><a href="' . XenForo_Template_Helper_Core::link('gallery/authors/photos', $user, array()) . '">' . 'Xem' . '</a></noscript>
</li>';
开发者ID:Sywooch,项目名称:forums,代码行数:10,代码来源:S.11,L.2,sonnb_xengallery_member_view_tabs_content.php

示例2: array

<?php

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
$this->addRequiredExternal('css', 'message_simple');
$__output .= '

<li class="comment secondaryContent ' . ($comment['isIgnored'] ? 'ignored' : '') . '">
	' . XenForo_Template_Helper_Core::callHelper('avatarhtml', array($comment, true, array('user' => '$comment', 'size' => 's', 'img' => 'true'), '')) . '

	<div class="commentInfo">
		<div class="commentContent">
			' . XenForo_Template_Helper_Core::callHelper('usernamehtml', array($comment, '', true, array('class' => 'poster'))) . '
			<article><blockquote>' . XenForo_Template_Helper_Core::callHelper('bodytext', array('0' => $comment['message'])) . '</blockquote></article>
		</div>
		<div class="commentControls">
			' . XenForo_Template_Helper_Core::callHelper('datetimehtml', array($comment['comment_date'], array('time' => '$comment.comment_date', 'class' => 'muted'))) . '
			';
if ($comment['canDelete']) {
    $__output .= '<a href="' . XenForo_Template_Helper_Core::link('profile-posts/comment-delete', $profilePost, array('comment' => $comment['profile_post_comment_id'])) . '" class="OverlayTrigger item control delete"><span></span>' . 'Xóa' . '</a>';
}
$__output .= '
		</div>
	</div>
</li>';
开发者ID:Sywooch,项目名称:forums,代码行数:27,代码来源:S.10,L.2,profile_post_comment.php

示例3: htmlspecialchars

';
$__extraData['searchBar']['forum'] = '';
$__compilerVar7 = '';
$__compilerVar7 .= '<label title="' . 'Search only ' . htmlspecialchars($forum['title'], ENT_QUOTES, 'UTF-8') . '' . '"><input type="checkbox" name="nodes[]" value="' . htmlspecialchars($forum['node_id'], ENT_QUOTES, 'UTF-8') . '"
	id="search_bar_nodes" class="Disabler AutoChecker" checked="checked"
	data-uncheck="#search_bar_thread" /> ' . 'Search this forum only' . '</label>
	<ul id="search_bar_nodes_Disabler">
		<li><label><input type="checkbox" name="type[post][group_discussion]" value="1"
			id="search_bar_group_discussion" class="AutoChecker"
			data-uncheck="#search_bar_thread" /> ' . 'Hiển thị kết quả dạng Chủ đề' . '</label></li>
	</ul>';
$__extraData['searchBar']['forum'] .= $__compilerVar7;
unset($__compilerVar7);
$__output .= '

<form action="' . XenForo_Template_Helper_Core::link('posts/delete', $post, array()) . '" method="post" class="xenForm formOverlay" id="delete-post">

	';
$__compilerVar8 = '';
if ($canHardDelete) {
    $__compilerVar8 .= '
	<dl class="ctrlUnit">
		<dt>' . 'Kiểu xóa' . ':</dt>
		<dd>
			<ul>
				<li><label for="ctrl_soft_delete">
					<input type="radio" name="hard_delete" id="ctrl_soft_delete" value="0" class="Disabler" checked="checked" /> ' . 'Không hiển thị công cộng' . '</label>
					<ul id="ctrl_soft_delete_Disabler">
						<li><input type="text" name="reason" class="textCtrl" placeholder="' . 'Lý do' . '..." /></li>
					</ul>
					<p class="hint">' . 'Bài viết sẽ vẫn xem được bởi quản lý và có thể khôi phục sau này.' . '</p>
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.2,post_delete.php

示例4: htmlspecialchars

<?php

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
$__extraData['title'] = '';
$__extraData['title'] .= 'Stop Ignoring ' . htmlspecialchars($user['username'], ENT_QUOTES, 'UTF-8') . '';
$__output .= '

';
$__extraData['navigation'] = array();
$__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::link('full:account/ignored', false, array()), 'value' => 'Danh sách đen');
$__output .= '

';
$this->addRequiredExternal('css', 'delete_confirmation');
$__output .= '

<form action="' . XenForo_Template_Helper_Core::link('account/stop-ignoring', false, array()) . '" method="post" class="deleteConfirmForm">
	<p>' . 'Please confirm that you want to stop ignoring ' . htmlspecialchars($user['username'], ENT_QUOTES, 'UTF-8') . '.' . '</p>

	<input type="hidden" name="user_id" value="' . htmlspecialchars($user['user_id'], ENT_QUOTES, 'UTF-8') . '" />
	<input type="hidden" name="_xfToken" value="' . htmlspecialchars($visitor['csrf_token_page'], ENT_QUOTES, 'UTF-8') . '" />
	<input type="hidden" name="_xfConfirm" value="1" />
	<input type="submit" value="' . 'Stop Ignoring ' . htmlspecialchars($user['username'], ENT_QUOTES, 'UTF-8') . '' . '" accesskey="s" class="button primary" />
</form>';
开发者ID:Sywooch,项目名称:forums,代码行数:27,代码来源:S.10,L.2,account_stop_ignoring.php

示例5: foreach

<?php

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
if ($message['position'] == 0 and $morethread['samecat']) {
    $__output .= '
';
    $this->addRequiredExternal('css', 'MoreThread_main');
    $__output .= '
<div class="clear"></div>
<div class="vietxf_MoreThread">
    <div class="section">
        <h4 class="heading">' . '[VietXf] More Threads in same category' . '</h4>
        <ul class="secondaryContent">
            ';
    foreach ($morethread['samecat'] as $thread) {
        $__output .= '
            <li><a href="' . XenForo_Template_Helper_Core::link('threads', $thread, array()) . '">' . htmlspecialchars($thread['title'], ENT_QUOTES, 'UTF-8') . '</a><span class="morethread_time">' . htmlspecialchars($thread['post_date'], ENT_QUOTES, 'UTF-8') . '</span></li>
            ';
    }
    $__output .= '
        </ul>
    </div>
</div>
<div class="clear"></div>
';
}
$__output .= '
';
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.1,MoreThread_main.php

示例6: htmlspecialchars

<?php

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
$__extraData['title'] = '';
$__extraData['title'] .= 'Stop following ' . htmlspecialchars($followed['username'], ENT_QUOTES, 'UTF-8') . '';
$__output .= '

';
$__extraData['navigation'] = array();
$__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::link('full:account/following', false, array()), 'value' => 'Theo dõi');
$__output .= '

';
$this->addRequiredExternal('css', 'delete_confirmation');
$__output .= '

<form action="' . XenForo_Template_Helper_Core::link('account/stop-following', $followed, array()) . '" method="post" class="deleteConfirmForm">
	<p>' . 'Please confirm that you want to stop following ' . htmlspecialchars($followed['username'], ENT_QUOTES, 'UTF-8') . '.' . '</p>

	<input type="hidden" name="user_id" value="' . htmlspecialchars($followed['user_id'], ENT_QUOTES, 'UTF-8') . '" />
	<input type="hidden" name="_xfToken" value="' . htmlspecialchars($visitor['csrf_token_page'], ENT_QUOTES, 'UTF-8') . '" />
	<input type="submit" value="' . 'Stop following ' . htmlspecialchars($followed['username'], ENT_QUOTES, 'UTF-8') . '' . '" accesskey="s" class="button primary" />
</form>';
开发者ID:Sywooch,项目名称:forums,代码行数:26,代码来源:S.11,L.2,account_stop_following.php

示例7: htmlspecialchars

    die;
}
$__output = '';
$__extraData['title'] = '';
$__extraData['title'] .= htmlspecialchars($user['username'], ENT_QUOTES, 'UTF-8') . ' - ' . 'Report Member';
$__output .= '
';
$__extraData['h1'] = '';
$__extraData['h1'] .= 'Report Member';
$__output .= '

';
$__extraData['navigation'] = array();
$__extraData['navigation'][] = array('href' => XenForo_Template_Helper_Core::link('full:members', $user, array()), 'value' => htmlspecialchars($user['username'], ENT_QUOTES, 'UTF-8'));
$__output .= '

<form action="' . XenForo_Template_Helper_Core::link('members/report', $user, array()) . '" method="post" class="xenForm formOverlay AutoValidator">

	<dl class="ctrlUnit">
		<dt><label for="ctrl_message">' . 'Lý do báo cáo' . ':</label></dt>
		<dd><textarea name="message" id="ctrl_message" rows="2" class="textCtrl Elastic"></textarea></dd>
	</dl>

	<dl class="ctrlUnit submitUnit">
		<dt></dt>
		<dd><input type="submit" value="' . 'Report Member' . '" accesskey="s" class="button primary" /></dd>
	</dl>

	<input type="hidden" name="_xfConfirm" value="1" />
	<input type="hidden" name="_xfToken" value="' . htmlspecialchars($visitor['csrf_token_page'], ENT_QUOTES, 'UTF-8') . '" />
</form>';
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.2,member_report.php

示例8: htmlspecialchars

<?php

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
$__output .= 'Your account is currently awaiting confirmation. Confirmation was sent to ' . htmlspecialchars($visitor['email'], ENT_QUOTES, 'UTF-8') . '.' . '<br />
<a href="' . XenForo_Template_Helper_Core::link('account-confirmation/resend', false, array()) . '" class="OverlayTrigger">' . 'Resend Confirmation Email' . '</a>';
开发者ID:Sywooch,项目名称:forums,代码行数:8,代码来源:S.10,L.1,notice_confirm_email.php

示例9: url

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
$this->addRequiredExternal('css', 'xenforo_member_list_item');
$__output .= '

<li class="primaryContent memberListItem">
	<div class="avatar Av1s">
		<span class="img s" style="background-image: url(\'' . XenForo_Template_Helper_Core::callHelper('avatar', array('0' => $event, '1' => 's')) . '\');"></span>
	</div>

	<div class="extra"><i>' . htmlspecialchars($event['event_venue'], ENT_QUOTES, 'UTF-8') . '</i></div>

	<div class="member">
		<h3 class="username"><a href="' . XenForo_Template_Helper_Core::link('events', $event, array()) . '"><b>' . htmlspecialchars($event['event_title'], ENT_QUOTES, 'UTF-8') . '</b></a></h3>

		<div class="userInfo dimmed">
			';
if ($event['event_address']) {
    $__output .= '
				<i>' . htmlspecialchars($event['event_address'], ENT_QUOTES, 'UTF-8') . ', ' . htmlspecialchars($event['event_citystate'], ENT_QUOTES, 'UTF-8') . '</i><br />
			';
} else {
    $__output .= '
				<i>' . htmlspecialchars($event['event_venue'], ENT_QUOTES, 'UTF-8') . '</i><br />
			';
}
$__output .= '
			<b>' . htmlspecialchars($event['formatted_strtime'], ENT_QUOTES, 'UTF-8') . '</b> ' . 'to' . ' <b>' . htmlspecialchars($event['formatted_endtime'], ENT_QUOTES, 'UTF-8') . '</b> (' . htmlspecialchars($event['formatted_timezone'], ENT_QUOTES, 'UTF-8') . ')
		</div>		
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.10,L.2,EWRatendo_Daily_Bit.php

示例10: foreach

if ($sidebar['users']) {
    $__extraData['sidebar'] .= '
	<div class="section mediaNav" id="Users">
		<div class="secondaryContent">
			<h3>' . 'Top Contributors' . '</h3>

			<div class="pairsJustified">
			';
    foreach ($sidebar['users'] as $subUser) {
        $__extraData['sidebar'] .= '
				<dl>
					<dt>
						';
        if ($user['user_id'] != $subUser['user_id']) {
            $__extraData['sidebar'] .= '
							<a href="' . XenForo_Template_Helper_Core::link('media/user', $subUser, array()) . '">' . htmlspecialchars($subUser['username'], ENT_QUOTES, 'UTF-8') . '</a>
						';
        } else {
            $__extraData['sidebar'] .= '
							<b>' . htmlspecialchars($subUser['username'], ENT_QUOTES, 'UTF-8') . '</b>
						';
        }
        $__extraData['sidebar'] .= '
					</dt>
					<dd>(' . htmlspecialchars($subUser['count'], ENT_QUOTES, 'UTF-8') . ')</dd>
				</dl>
			';
    }
    $__extraData['sidebar'] .= '
			</div>
		</div>
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.9,L.2,EWRmedio_UserPlaylists.php

示例11: array

    if (XenForo_Template_Helper_Core::styleProperty('messageShowOccupation') and $post['occupation']) {
        $__compilerVar44 .= '
					<dl class="pairsJustified">
						<dt>' . 'Nghề nghiệp' . ':</dt>
						<dd itemprop="role">' . XenForo_Template_Helper_Core::string('censor', array('0' => htmlspecialchars($post['occupation'], ENT_QUOTES, 'UTF-8'))) . '</dd>
					</dl>
				';
    }
    $__compilerVar44 .= '
				
				';
    if (XenForo_Template_Helper_Core::styleProperty('messageShowLocation') and $post['location']) {
        $__compilerVar44 .= '
					<dl class="pairsJustified">
						<dt>' . 'Nơi ở' . ':</dt>
						<dd><a href="' . XenForo_Template_Helper_Core::link('misc/location-info', '', array('location' => XenForo_Template_Helper_Core::string('censor', array('0' => $post['location'], '1' => '-')))) . '" target="_blank" rel="nofollow" itemprop="address" class="concealed">' . XenForo_Template_Helper_Core::string('censor', array('0' => htmlspecialchars($post['location'], ENT_QUOTES, 'UTF-8'))) . '</a></dd>
					</dl>
				';
    }
    $__compilerVar44 .= '
			
				';
    if (XenForo_Template_Helper_Core::styleProperty('messageShowHomepage') and $post['homepage']) {
        $__compilerVar44 .= '
					<dl class="pairsJustified">
						<dt>' . 'Web' . ':</dt>
						<dd><a href="' . XenForo_Template_Helper_Core::string('censor', array('0' => htmlspecialchars($post['homepage'], ENT_QUOTES, 'UTF-8'), '1' => '-')) . '" rel="nofollow" target="_blank" itemprop="url">' . XenForo_Template_Helper_Core::string('censor', array('0' => htmlspecialchars($post['homepage'], ENT_QUOTES, 'UTF-8'))) . '</a></dd>
					</dl>
				';
    }
    $__compilerVar44 .= '
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.2,post.php

示例12: htmlspecialchars

    die;
}
$__output = '';
$__output .= '<li id="thread-' . htmlspecialchars($thread['thread_id'], ENT_QUOTES, 'UTF-8') . '" class="searchResult thread primaryContent' . ($thread['isIgnored'] ? ' ignored' : '') . '" data-author="' . htmlspecialchars($thread['username'], ENT_QUOTES, 'UTF-8') . '">

	<div class="listBlock posterAvatar">' . XenForo_Template_Helper_Core::callHelper('avatarhtml', array($thread, true, array('user' => '$thread', 'size' => 's', 'img' => 'true'), '')) . '</div>

	<div class="listBlock main">
		<div class="titleText">
			<span class="contentType">' . 'Chủ đề' . '</span>
			<h3 class="title' . ($thread['isNew'] ? ' new' : '') . '"><a href="' . XenForo_Template_Helper_Core::link('threads', $thread, array()) . '">' . XenForo_Template_Helper_Core::callHelper('threadPrefix', array('0' => $thread)) . XenForo_Template_Helper_Core::callHelper('highlight', array('0' => $thread['title'], '1' => $search['search_query'], '2' => 'highlight')) . '</a></h3>
		</div>

		<blockquote class="snippet">
			<a href="' . XenForo_Template_Helper_Core::link('threads', $thread, array()) . '">' . XenForo_Template_Helper_Core::callHelper('snippet', array('0' => $post['message'], '1' => '150', '2' => array('term' => $search['search_query'], 'emClass' => 'highlight', 'stripQuotes' => '1'))) . '</a>
		</blockquote>

		<div class="meta">
			';
if ($enableInlineMod and $thread['canInlineMod']) {
    $__output .= '<input type="checkbox" name="threads[]" value="' . htmlspecialchars($thread['thread_id'], ENT_QUOTES, 'UTF-8') . '" class="InlineModCheck" id="inlineModCheck-thread-' . htmlspecialchars($thread['thread_id'], ENT_QUOTES, 'UTF-8') . '" data-target="#thread-' . htmlspecialchars($thread['thread_id'], ENT_QUOTES, 'UTF-8') . '" title="' . 'Chọn chủ đề' . ': ' . htmlspecialchars($thread['title'], ENT_QUOTES, 'UTF-8') . '" />';
}
$__output .= '
			' . 'Chủ đề bởi' . ': ' . XenForo_Template_Helper_Core::callHelper('usernamehtml', array($thread, '', false, array())) . ',
			' . XenForo_Template_Helper_Core::callHelper('datetimehtml', array($thread['post_date'], array('time' => '$thread.post_date'))) . ',
			' . '' . XenForo_Template_Helper_Core::numberFormat($thread['reply_count'], '0') . ' lần trả lời' . ',
			' . 'trong diễn đàn' . ': <a href="' . XenForo_Template_Helper_Core::link('forums', $forum, array()) . '">' . htmlspecialchars($forum['title'], ENT_QUOTES, 'UTF-8') . '</a>
		</div>
	</div>

</li>';
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.11,L.2,search_result_thread.php

示例13: array

			<dt></dt>
			<dd><a href="' . XenForo_Template_Helper_Core::link('register/twitter', '', array('reg' => '1')) . '" class="twitterLogin" tabindex="10"><span>' . 'Log in with Twitter' . '</span></a></dd>
		</dl>
	';
    }
    $__compilerVar3 .= '
	
	';
    if ($xenOptions['googleClientId']) {
        $__compilerVar3 .= '
		';
        $this->addRequiredExternal('css', 'google');
        $__compilerVar3 .= '
		<dl class="ctrlUnit">
			<dt></dt>
			<dd><span class="googleLogin GoogleLogin JsOnly" tabindex="10" data-client-id="' . htmlspecialchars($xenOptions['googleClientId'], ENT_QUOTES, 'UTF-8') . '" data-redirect-url="' . XenForo_Template_Helper_Core::link('register/google', '', array('code' => '__CODE__', 'csrf' => $session['sessionCsrf'])) . '"><span>' . 'Log in with Google' . '</span></span></dd>
		</dl>
	';
    }
    $__compilerVar3 .= '
	
	<input type="hidden" name="cookie_check" value="1" />
	<input type="hidden" name="_xfToken" value="' . htmlspecialchars($visitor['csrf_token_page'], ENT_QUOTES, 'UTF-8') . '" />
	<input type="hidden" name="redirect" value="' . ($redirect ? htmlspecialchars($redirect, ENT_QUOTES, 'UTF-8') : htmlspecialchars($requestPaths['requestUri'], ENT_QUOTES, 'UTF-8')) . '" />
	';
    if ($postData) {
        $__compilerVar3 .= '
		<input type="hidden" name="postData" value="' . htmlspecialchars(XenForo_Template_Helper_Core::callHelper('json', array('0' => $postData)), ENT_QUOTES, 'UTF-8', true) . '" />
	';
    }
    $__compilerVar3 .= '
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.1,L.2,error_with_login.php

示例14: array

<?php

if (!class_exists('XenForo_Application', false)) {
    die;
}
$__output = '';
$__extraData['title'] = '';
$__extraData['title'] .= 'Manage Watched Threads';
$__output .= '

<form action="' . XenForo_Template_Helper_Core::link('watched/threads/all/manage', false, array()) . '" method="post" class="xenForm formOverlay">

	';
if ($action == 'watch_no_email') {
    $__output .= '
		<p>' . 'Are you sure you want to update your email notification settings for all threads?' . '</p>
	';
} else {
    $__output .= '
		<p>' . 'Are you sure you want to stop watching all threads?' . '</p>
	';
}
$__output .= '
	
	<dl class="ctrlUnit submitUnit">
		<dt></dt>
		<dd>
			<input type="submit" value="' . 'Save Changes' . '" class="button primary" />
		</dd>
	</dl>
开发者ID:Sywooch,项目名称:forums,代码行数:30,代码来源:S.11,L.1,watch_threads_all_manage.php

示例15: foreach

						<span class="itemPageNav">
							<span>...</span>
							';
    foreach ($conversation['lastPageNumbers'] as $pageNumber) {
        $__output .= '
								<a href="' . XenForo_Template_Helper_Core::link('conversations', $conversation, array('page' => $pageNumber)) . '">' . htmlspecialchars($pageNumber, ENT_QUOTES, 'UTF-8') . '</a>
							';
    }
    $__output .= '
						</span>
					';
}
$__output .= '
				</div>
			</div>
		</div>
	</div>
		
	<div class="listBlock stats pairsJustified">
		<dl class="major"><dt>' . 'Trả lời' . ':</dt> <dd>' . XenForo_Template_Helper_Core::numberFormat($conversation['reply_count'], '0') . '</dd></dl>
		<dl class="minor"><dt>' . 'Những người tham gia' . ':</dt> <dd>' . XenForo_Template_Helper_Core::numberFormat($conversation['recipient_count'], '0') . '</dd></dl>
	</div>

	<div class="listBlock lastPost">
		<dl class="lastPostInfo">
			<dt>' . XenForo_Template_Helper_Core::callHelper('usernamehtml', array($conversation['last_message'], '', false, array())) . '</dt>
			<dd class="muted"><a href="' . XenForo_Template_Helper_Core::link('conversations/message', $conversation, array('message_id' => $conversation['last_message_id'])) . '" class="dateTime">' . XenForo_Template_Helper_Core::callHelper('datetimehtml', array($conversation['last_message_date'], array('time' => '$conversation.last_message_date'))) . '</a></dd>
		</dl>
	</div>
	
</li>';
开发者ID:Sywooch,项目名称:forums,代码行数:31,代码来源:S.1,L.2,conversation_list_item.php


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