本文整理汇总了PHP中theme_copyright函数的典型用法代码示例。如果您正苦于以下问题:PHP theme_copyright函数的具体用法?PHP theme_copyright怎么用?PHP theme_copyright使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了theme_copyright函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: template_fronthtml_below
/**
* The sub template below the content.
*/
function template_fronthtml_below()
{
global $context, $scripturl, $txt, $modSettings;
echo '
<div id="footer_section">
<div class="frame">';
// There is now a global "Go to top" link at the right.
echo '
<ul class="floatright">
<li><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', !empty($modSettings['requireAgreement']) ? '| <a href="' . $scripturl . '?action=help;sa=rules">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#top_section">', $txt['go_up'], ' ▲</a></li>
</ul>
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
</ul>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p>', sprintf($txt['page_created_full'], $context['load_time'], $context['load_queries']), '</p>';
}
echo '
</div>
</div>
</div>
</div>';
// load in any javascipt that could be defered to the end of the page
template_javascript(true);
echo '
</body>
</html>';
}
开发者ID:thunderamur,项目名称:PortaMx-Virgo-2.0-Beta-2,代码行数:33,代码来源:Frontpage.template.php
示例2: template_body_below
function template_body_below()
{
global $context;
echo '
</div>';
// Page index is going here. We need to strip out some characters too.
if (isset($context['page_index'])) {
echo '
<div class="ui-bar-c pageindex">
<div class="pagenav">
', str_replace(array('[', ']'), '', !empty($context['page_index']) ? $context['page_index'] : ''), '
</div>
</div>';
}
// Show the copyright.
echo '
<div data-role="footer" data-theme="b" data-position="fixed" id="footer">
<a data-iconpos="notext" data-mini="true" data-role="button" data-rel="back" data-icon="back" href="">Back</a>
<p>', theme_copyright(), '</p>
</div>
</div>';
}
开发者ID:ahrasis,项目名称:themes,代码行数:22,代码来源:index.template.php
示例3: template_main_below
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '</td>
</tr></table>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
}
echo '
</div>';
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if ($context['browser']['is_ie'] && !$context['browser']['is_ie4'] || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox']) {
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari']) {
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
} elseif ($context['browser']['is_firefox']) {
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}';
} else {
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';
}
echo '
// ]]></script>';
}
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body>
</html>';
//.........这里部分代码省略.........
开发者ID:alencarmo,项目名称:OCF,代码行数:101,代码来源:index.template.php
示例4: template_print_below
function template_print_below()
{
global $context, $settings, $options;
echo '
<div class="copyright">', theme_copyright(), '</div>
</body>
</html>';
}
开发者ID:norv,项目名称:EosAlpha,代码行数:8,代码来源:Reports.template.php
示例5: template_body_below
function template_body_below()
{
global $context, $txt, $scripturl, $modSettings;
echo '
</div>
<script> jQuery(document).ready(function(){
jQuery(\'.scrollbar-light\').scrollbar();
});</script>
</div>';
echo '<div class="konusalalt"><div class="floatleft">';
boardnewslide();
echo '</div><div >';
echo '</div></div>';
// Show the XHTML, RSS and WAP2 links, as well as the copyright.
// Footer is now full-width by default. Frame inside it will match theme wrapper width automatically.
echo '</div>
<div id="footer_section">
<div class="frame">';
// There is now a global "Go to top" link at the right.
echo '
<ul class="floatright">
<li><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', !empty($modSettings['requireAgreement']) ? '| <a href="' . $scripturl . '?action=help;sa=rules">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#top_section">', $txt['go_up'], ' ▲</a></li>
</ul>
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
</ul>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p>', sprintf($txt['page_created_full'], $context['load_time'], $context['load_queries']), '</p>';
}
echo '
</div>
</div>';
}
开发者ID:snrj,项目名称:konusal-m-theme,代码行数:35,代码来源:index.template.php
示例6: template_print_below
/**
* Interface for the bit down the print page.
*/
function template_print_below()
{
global $txt, $context;
echo '
</div>
<div class="print_options">';
// Show the text / image links
if (!empty($context['viewing_attach'])) {
echo '
<a href="', $context['view_attach_mode']['text'], '">', $txt['print_page_text'], '</a> | <strong><a href="', $context['view_attach_mode']['images'], '">', $txt['print_page_images'], '</a></strong>';
} else {
echo '
<strong><a href="', $context['view_attach_mode']['text'], '">', $txt['print_page_text'], '</a></strong> | <a href="', $context['view_attach_mode']['images'], '">', $txt['print_page_images'], '</a>';
}
echo '
</div>
<div id="footer" class="smalltext">
', theme_copyright(), '
</div>
</body>
</html>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:25,代码来源:Printpage.template.php
示例7: template_body_below
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</div>';
// xxx bottom ads
echo '<div id="bottom_ads" class="headerpadding topmargin clearfix"><center>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3055920918910714";
google_ad_slot = "6430061462";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center></div>';
// xxx end bottom ads
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea" class="headerpadding topmargin clearfix">
<ul class="reset smalltext">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl, '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p class="smalltext" id="show_loadtime">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
echo '
</div>
</div>';
}
开发者ID:sk8rdude461,项目名称:moparscape.org-smf,代码行数:37,代码来源:index.template.php
示例8: template_body_below
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</div>
</div>
</div>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<footer>
<div class="container">
<div class="row">
<div class="social_icons col-lg-12">';
if (!empty($settings['facebook_check'])) {
echo '
<a href="', !empty($settings['facebook_text']) ? $settings['facebook_text'] : 'http://www.facebook.com ', '"><img src="', $settings['images_url'], '/social_icons/facebook.png" alt="', $txt['rs_facebook'], '" /></a>';
}
if (!empty($settings['twitter_check'])) {
echo '
<a href="', !empty($settings['twitter_text']) ? $settings['twitter_text'] : 'http://www.twitter.com', '"><img src="', $settings['images_url'], '/social_icons/twitter.png" alt="', $txt['rs_twitter'], '" /></a>';
}
if (!empty($settings['youtube_check'])) {
echo '
<a href="', !empty($settings['youtube_text']) ? $settings['youtube_text'] : 'http://www.youtube.com', '"><img src="', $settings['images_url'], '/social_icons/youtube.png" alt="', $txt['rs_youtube'], '" /></a>';
}
if (!empty($settings['rss_check'])) {
echo '
<a href="', !empty($settings['rss_text']) ? $settings['rss_text'] : $scripturl . '?action=.xml;type=rss', '"><img src="', $settings['images_url'], '/social_icons/rss.png" alt="', $txt['rs_rss'], '" /></a>';
}
echo '
</div>
<div class="col-lg-12">
', theme_copyright(), '
</div>
<div class="col-lg-12">
Reseller by <a href="http://smftricks.com">Daniiel</a>. Designed by <a href="http://briancasillas.url.ph">Brian</a>
</div>
<div class="col-lg-12">
', !empty($settings['reseller_copyright']) ? $settings['reseller_copyright'] : $context['forum_name'] . ' ©', '
</div>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
echo '
</div>
</div>
</footer>';
}
开发者ID:juanitotaveras,项目名称:Polyphasic.xyz,代码行数:50,代码来源:index.template.php
示例9: template_kb_print_below
function template_kb_print_below()
{
global $context;
echo '
<br /><br />
<div style="text-align: center;" class="smalltext">', theme_copyright(), '
<p>', $context['kbprint'], '</p>
</div>
</body>
</html>';
}
开发者ID:VBGAMER45,项目名称:SMFMods,代码行数:11,代码来源:KB.template.php
示例10: template_print_below
function template_print_below()
{
global $context, $settings, $options;
echo '
<br /><br />
<div align="center" class="smalltext">', theme_copyright(), '</div>
</td>
</tr>
</table>
</body>
</html>';
}
开发者ID:VBGAMER45,项目名称:SMFMods,代码行数:12,代码来源:Printpage.template.php
示例11: template_print_below
/**
* Footer of the print page.
*/
function template_print_below()
{
echo '
<div class="copyright">', theme_copyright(), '</div>
</body>
</html>';
}
开发者ID:kode54,项目名称:hydrogenaudio-elkarte-theme,代码行数:10,代码来源:Reports.template.php
示例12: template_body_below
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</div>
</div>
</div>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
// Footer is now full-width by default. Frame inside it will match theme wrapper width automatically.
echo '
<div id="footer_section">
<div class="frame">';
// Thee is now a global "Go to top" link above the copyright.
echo '
<a href="#top" id="bot"><img src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['go_up'], '" /></a>
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl, '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
echo '
</div>
</div>';
}
开发者ID:Glyph13,项目名称:SMF2.1,代码行数:30,代码来源:index.template.php
示例13: template_print_below
function template_print_below()
{
global $context, $settings, $options;
echo '
</dl>
<div id="footer" class="smalltext">
', theme_copyright(), '
</div>
</body>
</html>';
}
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:11,代码来源:Printpage.template.php
示例14: template_body_below
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</div>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea">
<div id="footer_section">
<div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><strong>Insidious II by <a href="http://www.skin-box.com/" target="_blank" class="new_win" title=""><span>Skin-Box</span></a> | <a href="http://www.ravershost.com/" target="_blank" class="new_win" title=""><span>Free Hosting</span></a></strong></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl, '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
}
echo '
</div>
</div>
</div>';
}
开发者ID:valek0972,项目名称:hackits,代码行数:27,代码来源:index.template.php
示例15: template_main_below
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</td></tr>
</table>';
// Show a vB style login for quick login?
if ($context['show_quick_login']) {
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%">
<tr><td nowrap="nowrap" align="right">
<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'], '"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '><br />
<input type="text" name="user" size="7" />
<input type="password" name="passwrd" size="7" />
<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="" />
</form>
</td></tr>
</table>';
} else {
echo '
<br />';
}
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<br />
<table cellspacing="0" cellpadding="3" border="0" align="center" width="95%" class="tborder">
<tr style="background-color: #ffffff;">
<td width="28%" valign="middle" align="right">
<a href="http://www.mysql.com/" target="_blank"><img src="', $settings['images_url'], '/mysql.gif" alt="', $txt['powered_by_mysql'], '" width="88" height="31" border="0" /></a>
<a href="http://www.php.net/" target="_blank"><img src="', $settings['images_url'], '/php.gif" alt="', $txt['powered_by_php'], '" width="88" height="31" border="0" /></a>
</td>
<td width="44%" valign="middle" align="center">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="left">
<a href="http://validator.w3.org/check/referer" target="_blank"><img src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="88" height="31" border="0" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="88" height="31" border="0" /></a>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<div align="center" class="smalltext">
', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '
</div>';
}
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';
// And then we're done!
echo '
</body>
</html>';
}
开发者ID:alencarmo,项目名称:OCF,代码行数:67,代码来源:index.template.php
示例16: template_body_below
function template_body_below()
{
global $context, $txt, $scripturl, $modSettings;
echo '
</div>';
// Show the XHTML, RSS and WAP2 links, as well as the copyright.
// Footer is now full-width by default. Frame inside it will match theme wrapper width automatically.
echo '
<div id="footer_section">
<div class="frame">';
// There is now a global "Go to top" link at the right.
echo '
<ul class="floatright">
<li><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', !empty($modSettings['requireAgreement']) ? '| <a href="' . $scripturl . '?action=help;sa=rules">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#ust">', $txt['go_up'], ' ▲</a></li>
</ul>
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li><a href="http://smf.konusal.com/"><span>Smf</span></a> <a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p>', sprintf($txt['page_created_full'], $context['load_time'], $context['load_queries']), '</p>';
}
echo '
</div>
</div>';
}
开发者ID:CeeMoo,项目名称:pisi,代码行数:28,代码来源:index.template.php
示例17: template_tp_print_below
function template_tp_print_below()
{
global $context;
echo '
<br /><br />
<div align="center" class="smalltext">', theme_copyright(), '
<p>', $context['TPortal']['print'], '</p>
</div>
</body>
</html>';
}
开发者ID:DiegoCortes,项目名称:TinyPortal,代码行数:11,代码来源:TPprint.template.php
示例18: template_nolayer_below
function template_nolayer_below()
{
echo '<small id="nolayer_copyright">', theme_copyright(), '</small>
</div></body></html>';
}
开发者ID:DiegoCortes,项目名称:TinyPortal,代码行数:5,代码来源:TPsubs.template.php
示例19: template_body_below
/**
* Section down the page, before closing body
*/
function template_body_below()
{
global $context, $txt, $settings;
echo '
</div>
</div>';
// Show RSS link, as well as the copyright.
// Footer is full-width. Wrapper inside automatically matches admin width setting.
echo '
<div id="footer_section"><a id="bot"></a>
<div class="wrapper">
<ul>
<li class="copyright"><div>';
if (!empty($settings['facebook_id'])) {
echo '
<a href="', $settings['facebook_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/facebook.png" alt="', $txt['facebook'], '" title="', $txt['facebook'], '" /></a>';
}
if (!empty($settings['twitter_id'])) {
echo '
<a href="', $settings['twitter_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/twitter.png" alt="', $txt['twitter'], '" title="', $txt['twitter'], '" /></a>';
}
if (!empty($settings['github_id'])) {
echo '
<a href="', $settings['github_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/github.png" alt="', $txt['github'], '" title="', $txt['github'], '" /></a>';
}
if (!empty($settings['steam_id'])) {
echo '
<a href="', $settings['steam_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/steam.png" alt="', $txt['steam'], '" title="', $txt['steam'], '" /></a>';
}
if (!empty($settings['googleplus_id'])) {
echo '
<a href="', $settings['googleplus_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/googleplus.png" alt="', $txt['googleplus'], '" title="', $txt['googleplus'], '" /></a>';
}
if (!empty($settings['pinterest_id'])) {
echo '
<a href="', $settings['pinterest_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/pinterest.png" alt="', $txt['pinterest'], '" title="', $txt['pinterest'], '" /></a>';
}
if (!empty($settings['youtube_id'])) {
echo '
<a href="', $settings['youtube_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/youtube.png" alt="', $txt['youtube'], '" title="', $txt['youtube'], '" /></a>';
}
if (!empty($settings['linkedin_id'])) {
echo '
<a href="', $settings['linkedin_id'], '" target="_blank"><img src="' . $settings['images_url'] . '/social/linkedin.png" alt="', $txt['linkedin'], '" title="', $txt['linkedin'], '" /></a>';
}
echo '
<a id="button_rss" href="' . $context['newsfeed_urls']['rss'] . '" class="rssfeeds new_win"><img src="' . $settings['images_url'] . '/social/rss.png" border="0" alt="', $txt['rss'], '" title="', $txt['rss'], '" /></a>';
echo '</div>';
if (!empty($settings['custom_copyright'])) {
echo '
' . $settings['custom_copyright'] . '</br />';
}
echo ' ', theme_copyright(), '
<br />Blue Elk Theme by: <a href="http://www.burkeknight.com/" target="_blank">BurkeKnight Enterprises</a></li></ul>';
// Show the load time?
if ($context['show_load_time']) {
echo '
<p>', sprintf($txt['page_created_full'], $context['load_time'], $context['load_queries']), '</p>';
}
}
开发者ID:BurkeKnight-Enterprises,项目名称:BKE-Blue-Elk-Theme,代码行数:63,代码来源:index.template.php
示例20: template_footer
function template_footer()
{
global $context, $settings, $modSettings, $time_start, $db_count;
// Show the load time? (only makes sense for the footer.)
$context['show_load_time'] = !empty($modSettings['timeLoadPageEnable']);
$context['load_time'] = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $time_start)), 3);
$context['load_queries'] = $db_count;
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template'])) {
$settings['theme_url'] = $settings['actual_theme_url'];
$settings['images_url'] = $settings['actual_images_url'];
$settings['theme_dir'] = $settings['actual_theme_dir'];
}
foreach (array_reverse($context['template_layers']) as $layer) {
loadSubTemplate($layer . '_below', true);
}
// Do not remove hard-coded text - it's in here so users cannot change the text easily. (as if it were in language file)
if (!theme_copyright(true) && !empty($context['template_layers']) && SMF !== 'SSI' && !WIRELESS) {
// DO NOT MODIFY THIS SECTION. DO NOT REMOVE YOUR COPYRIGHT.
// DOING SO VOIDS YOUR LICENSE AND IS ILLEGAL.
echo '
<div style="text-align: center !important; display: block !important; visibility: visible !important; font-size: large !important; font-weight: bold; color: black !important; background-color: white !important;">
Sorry, the copyright must be in the template.<br />
Please notify this forum\'s administrator that this site is missing the copyright message for <a href="http://www.simplemachines.org/" style="color: black !important; font-size: large !important;">SMF</a> so they can rectify the situation. Display of copyright is a <a href="http://www.simplemachines.org/about/license.php" style="color: red;">legal requirement</a>. For more information on this please visit the <a href="http://www.simplemachines.org">Simple Machines</a> website.', empty($context['user']['is_admin']) ? '' : '<br />
Not sure why this message is appearing? <a href="http://www.simplemachines.org/redirect/index.php?copyright_error">Take a look at some common causes.</a>', '
</div>';
log_error('Copyright removed!!');
}
}
开发者ID:Kheros,项目名称:MMOver,代码行数:28,代码来源:Subs.php
注:本文中的theme_copyright函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论