• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP template_menu函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中template_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP template_menu函数的具体用法?PHP template_menu怎么用?PHP template_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: ssi_menubar

/**
 * Display a menu bar, like is displayed at the top of the forum.
 *
 * @param string $output_method
 */
function ssi_menubar($output_method = 'echo')
{
    global $context;
    if ($output_method == 'echo') {
        template_menu();
    } else {
        return $context['menu_buttons'];
    }
}
开发者ID:scripple,项目名称:Elkarte,代码行数:14,代码来源:SSI.php


示例2: template_body_above

/**
 * Section above the main contents of the page, after opening the body tag
 */
function template_body_above()
{
    global $context, $settings, $scripturl, $txt, $modSettings;
    // Go to top/bottom of page links and skipnav link for a11y.
    echo '
	<a id="top" href="#skipnav">', $txt['skip_nav'], '</a>
	<a href="#top" id="gotop" title="', $txt['go_up'], '">&#8593;</a>
	<a href="#bot" id="gobottom" title="', $txt['go_down'], '">&#8595;</a>';
    // Skip nav link.
    echo '
	<div id="top_section">
		<div class="wrapper">';
    echo '
		</div>';
    // WAI-ARIA a11y tweaks have been applied here.
    echo '
		<div class="wrapper">
		<div class="menu_bg">
			<div class="menu_bg_margin">
				<div class="menu_bg_content">
					<div class="menu_bg_center">
					
					<div class="community_name">
					<div class="floatleft">
					<a href="', $scripturl, '">', $context['forum_name'], '</a>
					</div>
					</div>
					
					', template_menu(), '';
    call_template_callbacks('th', $context['theme_header_callbacks']);
    echo '		
					</div>
				</div>
			</div>
		</div>
		</div>
		
	</div>
	<div id="wrapper" class="wrapper">
		<div id="upper_section"', empty($context['minmax_preferences']['upshrink']) ? '' : ' style="display: none;" aria-hidden="true"', '>';
    call_template_callbacks('uc', $context['upper_content_callbacks']);
    echo '
		</div>';
    // Show the navigation tree.
    theme_linktree();
    // The main content should go here. @todo - Skip nav link.
    echo '
		<div id="main_content_section"><a id="skipnav"></a>';
}
开发者ID:meetdilip,项目名称:meet,代码行数:52,代码来源:index.template.php


示例3: template_body_above

function template_body_above()
{
    global $context, $scripturl, $txt;
    echo '
	<div data-role="page" id="the-page">
		<div data-role="header" class="ui-bar ui-bar-b">
			<a data-iconpos="notext" data-mini="true" data-role="button" data-icon="search" href="', $scripturl, '?action=search">', $txt['search'], '</a>
			<h1><a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : $context['page_title'], '</a></h1>
		</div>';
    template_menu();
    echo '
		<div data-role="content">';
    //-- Main content goes here --
}
开发者ID:ahrasis,项目名称:themes,代码行数:14,代码来源:index.template.php


示例4: template_body_above


//.........这里部分代码省略.........
    if ($context['user']['is_logged'] && $context['in_maintenance'] && $context['user']['is_admin']) {
        echo '
		<div id="fnotice" class="themepadding">', $txt['maintain_mode_on'], '</div>';
    }
    echo '
		<div id="ftop">
			<div id="fheader"><div class="bwgrid">
				<div class="bwcell8"><div class="themepadding">
					<a href="', $scripturl, '"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/theme/logo.png', '" style="max-width: 100%;" alt="" /></a>
					', !empty($settings['site_slogan']) ? '<div class="subtitle">' . $settings['site_slogan'] . '</div>' : '', '
				</div></div>
				<div class="bwcell8"><div class="themepadding">
					<div id="qsearch" class="bwfloatright">
						<form id="search_form" class="floatright" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
							<input type="text" name="search" value="" id="qsearch_search" class="input_text" />
							<input type="hidden" name="advanced" value="0" />';
    // Search within current topic?
    if (!empty($context['current_topic'])) {
        echo '
							<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
    } elseif (!empty($context['current_board'])) {
        echo '
							<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
    }
    echo '
						</form>
					</div>';
    if (!empty($settings['enable_news'])) {
        echo '<div id="qnews" class="floatright">', $txt['news'], ': ', $context['random_news_line'], '</div>';
    }
    echo '	<br><br>
				</div></div>
			</div></div>
		</div>
		<div id="fcontent">
			<div id="fmenu">';
    // If the user is logged in, display stuff like their name, new messages, etc.
    if ($context['user']['is_logged']) {
        echo '
				<div class="greeting">';
        if (!empty($context['user']['avatar'])) {
            echo '
					<div class="roundavatar" style="float: left; vertical-align: 50%; ">', $context['user']['avatar']['image'], '</div>';
        }
        echo '
					<span class="floatleft">
						<ul class="horiz_list floatleft">
							<li><a class="', $context['current_action'] == 'profile' ? 'active ' : '', '" href="', $scripturl, '?action=profile"><strong>', $context['user']['name'], '</strong></a></li>
							<li><a class="', $context['current_action'] == 'unread' ? 'active ' : '', '" href="', $scripturl, '?action=unread">', $txt['o_unread'], '</a></li>
							<li><a class="', $context['current_action'] == 'unreadreplies' ? 'active ' : '', '" href="', $scripturl, '?action=unreadreplies">', $txt['o_replies'], '</a></li>';
        // Are there any members waiting for approval?
        if (!empty($context['unapproved_members'])) {
            echo '
							<li><a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $txt['o_approve'] . '</a><em class="dark_notice">' . $context['unapproved_members'], '</em></li>';
        }
        if (!empty($context['open_mod_reports']) && $context['show_open_reports']) {
            echo '
							<li><a href="', $scripturl, '?action=moderate;area=reports">', $txt['o_reports'], '</a><em class="dark_notice">', $context['open_mod_reports'], '</em></li>';
        }
        // finally, add in the ones we left out
        foreach ($context['menu_buttons'] as $act => $button) {
            if (!in_array($act, array('profile', 'pm'))) {
                continue;
            }
            echo '
							<li><a class="', $context['current_action'] == $act ? 'active ' : '', '" href="', $button['href'], '">', $button['title'], '</a></li>';
        }
        echo '
						</ul>
					</span>
				</div>';
    } elseif (!empty($context['show_login_bar'])) {
        echo '
				<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
				<form id="guest_form" class="themepadding" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
					<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
					<input type="text" name="user" size="10" class="input_text" />
					<input type="password" name="passwrd" size="10" class="input_password" />
					<select name="cookielength">
						<option value="60">', $txt['one_hour'], '</option>
						<option value="1440">', $txt['one_day'], '</option>
						<option value="10080">', $txt['one_week'], '</option>
						<option value="43200">', $txt['one_month'], '</option>
						<option value="-1" selected="selected">', $txt['forever'], '</option>
					</select>
					<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
					<div class="info">', $txt['quick_login_dec'], '</div>';
        if (!empty($modSettings['enableOpenID'])) {
            echo '
					<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';
        }
        echo '
					<input type="hidden" name="hash_passwrd" value="" />
				</form>';
    }
    echo '	<div style="clear: both;" id="fmainmenu">', template_menu(), '</div>
			</div>
			<div id="fbody">
				<div class="themepadding">', theme_linktree(), '</div>';
}
开发者ID:Bloc67,项目名称:ShelfLife,代码行数:101,代码来源:index.template.php


示例5: template_body_above


//.........这里部分代码省略.........
        if (!empty($context['open_mod_reports']) && $context['show_open_reports']) {
            echo '
					<li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
        }
        echo '
					<li>', $context['current_time'], '</li>
				</ul>';
    } elseif (!empty($context['show_login_bar'])) {
        echo '
				<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
				<form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
					<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
					<input type="text" name="user" size="10" class="input_text" />
					<input type="password" name="passwrd" size="10" class="input_password" />
					<select name="cookielength">
						<option value="60">', $txt['one_hour'], '</option>
						<option value="1440">', $txt['one_day'], '</option>
						<option value="10080">', $txt['one_week'], '</option>
						<option value="43200">', $txt['one_month'], '</option>
						<option value="-1" selected="selected">', $txt['forever'], '</option>
					</select>
					<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
					<div class="info">', $txt['quick_login_dec'], '</div>';
        if (!empty($modSettings['enableOpenID'])) {
            echo '
					<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';
        }
        echo '
					<input type="hidden" name="hash_passwrd" value="" />
				</form>';
    }
    echo '
			</div>
			<div class="news normaltext">
				<form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
					<input type="text" name="search" value="" class="input_text" />&nbsp;
					<input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
					<input type="hidden" name="advanced" value="0" />';
    // Search within current topic?
    if (!empty($context['current_topic'])) {
        echo '
					<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
    } elseif (!empty($context['current_board'])) {
        echo '
					<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
    }
    echo '</form>';
    // Show a random news item? (or you could pick one from news_lines...)
    if (!empty($settings['enable_news'])) {
        echo '
				<h2>', $txt['news'], ': </h2>
				<p>', $context['random_news_line'], '</p>';
    }
    echo '
			</div>
		</div>
		<br class="clear" />';
    // Define the upper_section toggle in JavaScript.
    echo '
		<script type="text/javascript"><!-- // --><![CDATA[
			var oMainHeaderToggle = new smc_Toggle({
				bToggleEnabled: true,
				bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'false' : 'true', ',
				aSwappableContainers: [
					\'upper_section\'
				],
				aSwapImages: [
					{
						sId: \'upshrink\',
						srcExpanded: smf_images_url + \'/upshrink.png\',
						altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
						srcCollapsed: smf_images_url + \'/upshrink2.png\',
						altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
					}
				],
				oThemeOptions: {
					bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
					sOptionName: \'collapse_header\',
					sSessionVar: ', JavaScriptEscape($context['session_var']), ',
					sSessionId: ', JavaScriptEscape($context['session_id']), '
				},
				oCookieOptions: {
					bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
					sCookieName: \'upshrink\'
				}
			});
		// ]]></script>';
    // Show the menu here, according to the menu sub template.
    template_menu();
    echo '
		<br class="clear" />
	</div></div>';
    // The main content should go here.
    echo '
	<div id="content_section"><div class="frame">
		<div id="main_content_section">';
    // Custom banners and shoutboxes should be placed here, before the linktree.
    // Show the navigation tree.
    theme_linktree();
}
开发者ID:Roph,项目名称:RMRKMon,代码行数:101,代码来源:index.template.php


示例6: template_body_above


//.........这里部分代码省略.........
					<option value="members"', $selected == 'members' ? ' selected' : '', '>', $txt['search_members'], ' </option>
				</select></label>';
        // Search within current topic?
        if (!empty($context['current_topic'])) {
            echo '
				<input type="hidden" name="sd_topic" value="', $context['current_topic'], '">';
        } elseif (!empty($context['current_board'])) {
            echo '
				<input type="hidden" name="sd_brd[', $context['current_board'], ']" value="', $context['current_board'], '">';
        }
        echo '
				<button type="submit" name="search2" value="', $txt['search'], '" >', $txt['search'], '</button>
				<input type="hidden" name="advanced" value="0">
			</form></div>';
    }
    echo '
		</div>
	</div>
		<div id="upper_section">
			<div id="inner_section">
				<div id="inner_wrap">
					<div class="user">
						', $context['current_time'], '
					</div>';
    // Show a random news item? (or you could pick one from news_lines...)
    if (!empty($settings['enable_news']) && !empty($context['random_news_line'])) {
        echo '
					<div class="news">
						<h2>', $txt['news'], ': </h2>
						<p>', $context['random_news_line'], '</p>
					</div>';
    }
    echo '
					<hr class="clear">
				</div>';
    // Show the menu here, according to the menu sub template, followed by the navigation tree.
    theme_linktree();
    global $context, $settings, $scripturl, $txt, $modSettings;
    require_once $settings['theme_dir'] . '/konusal-com.php';
    if (empty($context['current_board']) && empty($context['current_action'])) {
        global $context, $options, $txt;
        // Here's where the "Info Center" starts...
        echo '
	<div class="roundframe" id="info_center">
		<div class="title_bar">
			<h3 class="titlebg">
				<span class="toggle_up floatright" id="upshrink_ic" title="', $txt['hide_infocenter'], '" style="display: none;"></span>
				<a href="#" id="upshrink_link">', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '</a>
			</h3>
		</div>
		<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';
        top10();
        echo '
		</div>
	</div>';
        // Info center collapse object.
        echo '
	<script><!-- // --><![CDATA[
		var oInfoCenterToggle = new smc_Toggle({
			bToggleEnabled: true,
			bCurrentlyCollapsed: ', empty($options['collapse_header_ic']) ? 'false' : 'true', ',
			aSwappableContainers: [
				\'upshrinkHeaderIC\'
			],
			aSwapImages: [
				{
					sId: \'upshrink_ic\',
					altExpanded: ', JavaScriptEscape($txt['hide_infocenter']), ',
					altCollapsed: ', JavaScriptEscape($txt['show_infocenter']), '
				}
			],
			aSwapLinks: [
				{
					sId: \'upshrink_link\',
					msgExpanded: ', JavaScriptEscape(sprintf($txt['info_center_title'], $context['forum_name_html_safe'])), ',
					msgCollapsed: ', JavaScriptEscape(sprintf($txt['info_center_title'], $context['forum_name_html_safe'])), '
				}
			],
			oThemeOptions: {
				bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
				sOptionName: \'collapse_header_ic\',
				sSessionId: smf_session_id,
				sSessionVar: smf_session_var,
			},
			oCookieOptions: {
				bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
				sCookieName: \'upshrinkIC\'
			}
		});
	// ]]></script>';
    }
    template_menu();
    echo '
			</div>
		</div>';
    // The main content should go here.
    echo '
		<div id="content_section">             
			<div class="scrollbar-light" id="main_content_section" >';
}
开发者ID:snrj,项目名称:konusal-m-theme,代码行数:101,代码来源:index.template.php


示例7: template_main_above


//.........这里部分代码省略.........
        // Show the total time logged in?
        if (!empty($context['user']['total_time_logged_in'])) {
            echo '
							', $txt['totalTimeLogged1'];
            // If days is just zero, don't bother to show it.
            if ($context['user']['total_time_logged_in']['days'] > 0) {
                echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
            }
            // Same with hours - only show it if it's above zero.
            if ($context['user']['total_time_logged_in']['hours'] > 0) {
                echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
            }
            // But, let's always show minutes - Time wasted here: 0 minutes ;).
            echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
        }
        echo '
							<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
							<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
							', $context['current_time'];
    } else {
        echo '
							', $txt['welcome_guest'], '<br />
							', $context['current_time'], '<br />

							<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

							<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
								<div style="text-align: right;">
									<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
									<select name="cookielength">
										<option value="60">', $txt['smf53'], '</option>
										<option value="1440">', $txt['smf47'], '</option>
										<option value="10080">', $txt['smf48'], '</option>
										<option value="43200">', $txt['smf49'], '</option>
										<option value="-1" selected="selected">', $txt['smf50'], '</option>
									</select>
									<input type="submit" value="', $txt[34], '" /><br />
									', $txt['smf52'], '
									<input type="hidden" name="hash_passwrd" value="" />
								</div>
							</form>';
    }
    echo '
						</td></tr></table>
					</div>

					<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
						<div style="margin-top: 7px;">
							<b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />&nbsp;
							<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />&nbsp;
							<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
							<input type="hidden" name="advanced" value="0" />';
    // Search within current topic?
    if (!empty($context['current_topic'])) {
        echo '
							<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
    } elseif (!empty($context['current_board'])) {
        echo '
							<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
    }
    echo '
						</div>
					</form>

				</td>
				<td style="width: 262px; ', !$context['right_to_left'] ? 'padding-left' : 'padding-right', ': 6px;" valign="top">';
    // Show a random news item? (or you could pick one from news_lines...)
    if (!empty($settings['enable_news'])) {
        echo '
					<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
					<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif); margin-bottom: 8px;">
						<img src="', $settings['images_url'], '/', $context['user']['language'], '/newsbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
						<div style="height: 50px; overflow: auto; padding: 5px;" class="smalltext">', $context['random_news_line'], '</div>
					</div>';
    }
    // The "key stats" box.
    echo '
					<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
					<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
						<img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
						<div style="', !$context['browser']['is_ie'] ? 'min-height: 35px;' : 'height: 4em;', ' padding: 5px;" class="smalltext">
							<b>', $context['common_stats']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats']['total_topics'], '</b> ', $txt[64], ' ', $txt[525], ' <span style="white-space: nowrap;"><b>', $context['common_stats']['total_members'], '</b> ', $txt[19], '</span><br />
							', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
						</div>
					</div>';
    echo '
				</td>
			</tr>
		</table>

		<a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 2ex 2px 0;" border="0" /></a>';
    // Show the menu here, according to the menu sub template.
    template_menu();
    echo '
	</div>';
    // The main content should go here.  A table is used because IE 6 just can't handle a div.
    echo '
	<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
		<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}
开发者ID:alencarmo,项目名称:OCF,代码行数:101,代码来源:index.template.php


示例8: template_body_above

/**
 * Section above the main contents of the page, after opening the body tag
 */
function template_body_above()
{
    global $context, $settings, $scripturl, $txt, $modSettings;
    // Go to top/bottom of page links and skipnav link for a11y.
    echo '
	<a id="top" href="#skipnav">', $txt['skip_nav'], '</a>
	<a href="#top" id="gotop" title="', $txt['go_up'], '">&#8593;</a>
	<a href="#bot" id="gobottom" title="', $txt['go_down'], '">&#8595;</a>';
    // Skip nav link.
    echo '
	<div id="top_section">
		<div class="wrapper">';
    call_template_callbacks('th', $context['theme_header_callbacks']);
    echo '
		</div>
		<div id="header" class="wrapper centerheader"', empty($context['minmax_preferences']['upshrink']) ? '' : ' style="display: none;" aria-hidden="true"', '>

			<div id="logobox">';
    if (!empty($settings['header_logo_url'])) {
        echo '
			<h1 id="forumtitle">
			    <a href="', $scripturl, '"><img id="logo" src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" title="', $context['forum_name_html_safe'], '" /></a>
			</h1>';
    } else {
        echo '
			<h1 id="forumtitle">
				<a href="', $scripturl, '">', $context['forum_name'], '</a>
			</h1>';
    }
    echo '
		</div>', empty($settings['site_slogan']) ? '' : '';
    echo '
			    <div id="siteslogan" class="bluelkslogan">' . $settings['site_slogan'] . '<br /></div>', '
			   </div>';
    // Show the menu here, according to the menu sub template.
    // WAI-ARIA a11y tweaks have been applied here.
    echo '
		<div id="menu_nav" role="navigation">
			', template_menu(), '
		</div>
	</div>
	<div id="wrapper" class="wrapper">
		<div id="upper_section"', empty($context['minmax_preferences']['upshrink']) ? '' : ' style="display: none;" aria-hidden="true"', '>';
    call_template_callbacks('uc', $context['upper_content_callbacks']);
    echo '
		</div>';
    // Show the navigation tree.
    theme_linktree();
    // The main content should go here. @todo - Skip nav link.
    echo '
		<div id="main_content_section"><a id="skipnav"></a>';
}
开发者ID:BurkeKnight-Enterprises,项目名称:BKE-Blue-Elk-Theme,代码行数:55,代码来源:index.template.php


示例9: template_body_above


//.........这里部分代码省略.........
        echo '
			<form id="languages_form" action="" method="get" class="floatright">
				<select id="language_select" name="language" onchange="this.form.submit()">';
        foreach ($context['languages'] as $language) {
            echo '
					<option value="', $language['filename'], '"', isset($context['user']['language']) && $context['user']['language'] == $language['filename'] ? ' selected="selected"' : '', '>', str_replace('-utf8', '', $language['name']), '</option>';
        }
        echo '
				</select>
				<noscript>
					<input type="submit" value="', $txt['quick_mod_go'], '" />
				</noscript>
			</form>';
    }
    if ($context['allow_search']) {
        echo '
			<form id="search_form" class="floatright" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
				<input type="search" name="search" value="" class="input_text">&nbsp;';
        // Using the quick search dropdown?
        $selected = !empty($context['current_topic']) ? 'current_topic' : (!empty($context['current_board']) ? 'current_board' : 'all');
        echo '
			<select name="search_selection">
				<option value="all"', $selected == 'all' ? ' selected' : '', '>', $txt['search_entireforum'], ' </option>';
        // Can't limit it to a specific topic if we are not in one
        if (!empty($context['current_topic'])) {
            echo '
				<option value="topic"', $selected == 'current_topic' ? ' selected' : '', '>', $txt['search_thistopic'], '</option>';
        }
        // Can't limit it to a specific board if we are not in one
        if (!empty($context['current_board'])) {
            echo '
					<option value="board"', $selected == 'current_board' ? ' selected' : '', '>', $txt['search_thisbrd'], '</option>';
        }
        echo '
					<option value="members"', $selected == 'members' ? ' selected' : '', '>', $txt['search_members'], ' </option>
				</select>';
        // Search within current topic?
        if (!empty($context['current_topic'])) {
            echo '
				<input type="hidden" name="sd_topic" value="', $context['current_topic'], '">';
        } elseif (!empty($context['current_board'])) {
            echo '
				<input type="hidden" name="sd_brd[', $context['current_board'], ']" value="', $context['current_board'], '">';
        }
        echo '
				<input type="submit" name="search2" value="', $txt['search'], '" class="button_submit">
				<input type="hidden" name="advanced" value="0">
			</form>';
    }
    echo '
		</div>
	</div>';
    echo '
		<!-- Uses a header that scrolls with the text, rather than staying
  locked at the top -->
<div class="mdl-layout mdl-js-layout mdl-layout--overlay-drawer-button">
  <div class="mdl-layout__drawer">
    <span class="mdl-layout-title">', $context['user']['name'], '</span>
    <nav class="mdl-navigation">
      ', template_menu_mdl(), '
    </nav>
  </div>
  <main class="mdl-layout__content">
    <div class="page-content">
	';
    echo '
	<div id="header">
		<a id="top" href="', $scripturl, '"><img id="hlogo" src="', $settings['theme_url'], '/images/logo.png" alt="' . $context['forum_name_html_safe'] . '"></a>
	';
    echo '
	</div>
	<div id="wrapper">
		<div id="upper_section">
			<div id="inner_section">
				<div id="inner_wrap">
					<div class="user">
						', $context['current_time'], '
					</div>';
    // Show a random news item? (or you could pick one from news_lines...)
    if (!empty($settings['enable_news']) && !empty($context['random_news_line'])) {
        echo '
					<div class="news">
						<h2>', $txt['news'], ': </h2>
						<p>', $context['random_news_line'], '</p>
					</div>';
    }
    echo '
					<hr class="clear">
				</div>';
    // Show the menu here, according to the menu sub template, followed by the navigation tree.
    template_menu();
    theme_linktree();
    echo '
			</div>
		</div>';
    // The main content should go here.
    echo '
		<div id="content_section">
			<div id="main_content_section">';
}
开发者ID:Roph,项目名称:rmrk8,代码行数:101,代码来源:index.template.php


示例10: template_body_above

function template_body_above()
{
    global $context, $settings, $options, $scripturl, $txt, $modSettings;
    echo '
    <div id="wrapper">
	   <div id="topbar">
			<div id="memb_time">
						<span>', $context['current_time'], '</span>
					</div>
					  <div id="user_area">';
    // If the user is logged in, display stuff like their name, new messages, etc.
    if ($context['user']['is_logged']) {
        if (!empty($context['user']['avatar'])) {
            echo '
							<p class="your_avatar"><a href="', $scripturl, '?action=profile">' . $context['user']['avatar']['image'] . '</a></p>';
        }
        echo '
							<ul>
								<li class="user_greeting">', $txt['hello_member_ndt'], ' ', $context['user']['name'], '</li>';
        echo '
								<li><a href="', $scripturl, '?action=unread">', $txt['show_unread'], '</a></li>
								<li><a class="last" href="', $scripturl, '?action=unreadreplies">', $txt['show_replies'], '</a></li>';
        echo '
							</ul>';
    } else {
        echo '
				  <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
				  <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
					<input type="text" name="user" class="userlog"  size="10" />
					<input type="password" name="passwrd" class="userlog"  size="10" />
					<input type="submit" value="', $txt['login'], '" class="button_submit" />
					<input type="hidden" name="hash_passwrd" value="" />
				</form>';
    }
    echo '
	  </div>
	</div>';
    echo '
          <div id="header">
			 <div id="logo">
				<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="' . $settings['images_url'] . '/theme/logo.png" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" />' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" />', '</a>
			  </div></div>';
    echo '

			<div id="bodyarea">
		      <div id="navibar">
               <div id="center-menu">
		       ', template_menu(), '
		       </div>
              </div>';
    theme_linktree();
}
开发者ID:valek0972,项目名称:hackits,代码行数:52,代码来源:index.template.php


示例11: template_body_above

function template_body_above()
{
    global $context, $settings, $scripturl, $txt, $modSettings;
    // Wrapper div now echoes permanently for better layout options. h1 a is now target for "Go up" links.
    echo '
	<div id="ust">
		<div class="frame">';
    // If the user is logged in, display some things that might be useful.
    if ($context['user']['is_logged']) {
        // Firstly, the user's menu
        echo '
			<ul class="floatleft" id="top_info">
				<li>
					<a href="', $scripturl, '?action=profile"', !empty($context['self_profile']) ? ' class="active"' : '', ' id="profile_menu_top" onclick="return false;">';
        if (!empty($context['user']['avatar'])) {
            echo $context['user']['avatar']['image'];
        }
        echo $context['user']['name'], ' &#9660;</a>
					<div id="profile_menu" class="top_menu"></div>
				</li>';
        // Secondly, PMs if we're doing them
        if ($context['allow_pm']) {
            echo '
				<li>
					<a href="', $scripturl, '?action=pm"', !empty($context['self_pm']) ? ' class="active"' : '', ' id="pm_menu_top">', $txt['pm_short'], !empty($context['user']['unread_messages']) ? ' <span class="amt">' . $context['user']['unread_messages'] . '</span>' : '', '</a>
					<div id="pm_menu" class="top_menu scrollable"></div>
				</li>';
        }
        // Thirdly, alerts
        echo '
				<li>
					<a href="', $scripturl, '?action=profile;area=showalerts;u=', $context['user']['id'], '"', !empty($context['self_alerts']) ? ' class="active"' : '', ' id="alerts_menu_top">', $txt['alerts'], !empty($context['user']['alerts']) ? ' <span class="amt">' . $context['user']['alerts'] . '</span>' : '', '</a>
					<div id="alerts_menu" class="top_menu scrollable"></div>
				</li>';
        // And now we're done.
        echo '
			</ul>';
    } else {
        echo '
			<ul class="floatleft welcome">
				<li>', sprintf($txt[$context['can_register'] ? 'welcome_guest_register' : 'welcome_guest'], $txt['guest_title'], $context['forum_name_html_safe'], $scripturl . '?action=login', 'return reqOverlayDiv(this.href, ' . JavaScriptEscape($txt['login']) . ');', $scripturl . '?action=signup'), '</li>
			</ul>';
    }
    // Show a random news item? (or you could pick one from news_lines...)
    if (!empty($settings['enable_news']) && !empty($context['random_news_line'])) {
        echo '
					<div class="news">
						<h2>', $txt['news'], ': </h2>
						<p>', $context['random_news_line'], '</p>
					</div>';
    }
    global $db_prefix, $scripturl, $smcFunc;
    $request = $smcFunc['db_query']('', "SELECT f.ID_FILE, f.ID_MEMBER, f.date, f.ID_CAT, f.totaldownloads, f.title AS ftitle,\n\t  c.title, m.real_Name, m.ID_MEMBER AS mID_MEMBER\n\t  FROM {$db_prefix}down_file AS f, {$db_prefix}down_cat AS c, {$db_prefix}members AS m\n\t  WHERE f.ID_CAT = '7'\n\t  AND f.approved = '1'\n\t  AND f.ID_MEMBER = m.ID_MEMBER\n\t  ORDER BY RAND()\n\t  LIMIT 1");
    while ($row = $smcFunc['db_fetch_assoc']($request)) {
        echo '
		  <div class="solborder rightla"><a href="', $scripturl, '?action=downloads;sa=view;id=', $row['ID_FILE'], '" title="', $row['ftitle'], '">' . shorten_subject($row['ftitle'], 30) . '</a></div>';
    }
    echo '
		</div>
	</div>';
    echo '
	<div class="menuyeri">
	<div id="mcolor" class="floatright">
			<a class="mor" href="', $scripturl, '?variant=mor" title=""></a>
			<a class="red" href="', $scripturl, '?variant=red" title=""></a>
			<a class="blue" href="', $scripturl, '?variant=blue" title=""></a>
			<a class="green" href="', $scripturl, '?variant=green" title=""></a>
			<a class="orange" href="', $scripturl, '?variant=orange" title=""></a>	
			<a class="black" href="', $scripturl, '?variant=black" title=""></a>
    </div>
		<div class="frame">
			<a href="', $scripturl, '" title="Smf Destek"><img id="logos" src="' . $settings['images_url'] . '/theme/logo.png" alt="smfdestek" title="Smf Destek"></a>';
    template_menu();
    if ($context['allow_search']) {
        echo '
			<form id="aramaz" class="floatright" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
				<input type="search" name="search" value="" class="aramaz">&nbsp;';
        // Search within current topic?
        if (!empty($context['current_topic'])) {
            echo '
				<input type="hidden" name="sd_topic" value="', $context['current_topic'], '">';
        } elseif (!empty($context['current_board'])) {
            echo '
				<input type="hidden" name="sd_brd[', $context['current_board'], ']" value="', $context['current_board'], '">';
        }
        echo '
			</form>';
    }
    echo '
		  </div>
	</div>';
    echo '
	<div id="wrapper">
			<div id="inner_section">';
    // Show the menu here, according to the menu sub template, followed by the navigation tree.
    theme_linktree();
    echo '
		</div>';
    // The main content should go here.
}
开发者ID:CeeMoo,项目名称:pisi,代码行数:100,代码来源:index.template.php


示例12: template_body_above


//.........这里部分代码省略.........
															<select name="cookielength" class="form-control">
																<option value="60">', $txt['one_hour'], '</option>
																<option value="1440">', $txt['one_day'], '</option>
																<option value="10080">', $txt['one_week'], '</option>
																<option value="43200">', $txt['one_month'], '</option>
																<option value="-1" selected="selected">', $txt['forever'], '</option>
															</select>
														</div>
														<div>
															<a href="#" onclick="document.getElementById(\'login-form\').submit()" class="btn mdc-text-blue-800 btn-flat waves-attach waves-button waves-effect">', $txt['login'], '</a>
															<a class="btn mdc-text-blue-800 btn-flat waves-attach waves-button" href="', $scripturl, '?action=register">', $txt['register'], '
															</a>
															<span class="oculto">
																<input type="submit" value="', $txt['login'], '" class="btn btn-default" />
															</span>
														</div>
													</div>
												</div>
											</form>
														';
    } else {
        echo '
											<div class="bienvenido">
												', $txt['welmsg_welcome'] . ' ' . $context['user']['name'] . '
											</div>
														';
        echo '
											<div>
												<a class="btn mdc-text-blue-800 btn-flat waves-attach waves-button" href="', $scripturl, '?action=unread"> ', $txt['view_unread_category'], '
												</a>
								        <a class="btn mdc-text-blue-800 btn-flat waves-attach waves-button" href="', $scripturl, '?action=unreadreplies"> ', $txt['replies'], '</a>
											</div>';
        // Is the forum in maintenance mode?
        if ($context['in_maintenance'] && $context['user']['is_admin']) {
            echo '<span class="notice">', $txt['maintain_mode_on'], '</span>';
        }
        // Are there any members waiting for approval?
        if (!empty($context['unapproved_members'])) {
            echo '<span>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</span>';
        }
        if (!empty($context['open_mod_reports']) && $context['show_open_reports']) {
            echo '<span><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></span>';
        }
    }
    echo '
										</div>
										<div class="col-md-6">
										';
    //aqui para noticias en dispositivos grandes
    echo '
											<div class="te 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP template_open函数代码示例发布时间:2022-05-23
下一篇:
PHP template_list函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap