コード例 #1
0
ファイル: index.template.php プロジェクト: Bloc67/ShelfLife
function template_body_below()
{
    global $context, $settings, $options, $scripturl, $txt, $modSettings;
    echo '
			</div>
		</div>
		<div id="fbottom" class="themepadding">
			<div class="bwgrid">
				<div class="bwcell8">
					', my_theme_copyright(), '
					', $context['show_load_time'] ? '<br><em class="smalltext">' . $txt['page_created'] . $context['load_time'] . $txt['seconds_with'] . $context['load_queries'] . $txt['queries'] . '</em>' : '', '
				</div>
				<div class="bwcell8"><div class="bwfloatright">
					', !empty($settings['extra_copyrights']) ? implode("<br>", $settings['extra_copyrights']) : '', '
				</div></div>
			</div>
		</div>
	</div>';
}
コード例 #2
0
ファイル: index.template.php プロジェクト: norv/EosAlpha
function template_body_below()
{
    global $context, $settings, $options, $scripturl, $txt, $modSettings, $fbxml, $twitter_widgets, $plusone;
    echo '<div class="clear"></div>
		</div></div></div>';
    // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
    echo '
  	<script type="text/javascript">
	// <![CDATA[
	';
    if (isset($context['need_pager_script_fragment'])) {
        echo <<<EOT

\tjQuery(document).ready(function() {
\t\t\$('.pagelinks .prefix').click(function() {
\t\t\tif(\$('#directpager').length <= 0) {
\t\t\t\t\$(this).attr('data-save', \$(this).html());
\t\t\t\t\$(this).html('<form action="' + \$(this).attr('data-urltemplate') + '" id="directpager" method="post">{$txt["page_go_to"]}<input name="directpager_pagenr" id="directpager_pagenr" size=3 /></form>');
\t\t\t\t\$('#directpager_pagenr').focus();
\t\t\t}
\t\t\t\$('#directpager').submit(function() {

\t\t\t\tvar newstart = (parseInt(\$('#directpager_pagenr').val()) - 1) * parseInt(\$(this).parent().attr('data-perpage'));
\t\t\t\tif(newstart < 0)
\t\t\t\t\tnewstart = 0;
\t\t\t\t\$(this).attr('action', \$(this).attr('action').replace(/\\[\\[PAGE\\]\\]/g, newstart));
\t\t\t\t\$(this).submit();
\t\t\t\treturn(false);
\t\t\t});
\t\t});

\t\t\$('.pagelinks .prefix').live('mouseleave',function(event) {
\t\t\t\$(this).html(\$(this).attr('data-save'));
\t\t});
\t\treturn;
\t});
EOT;
    }
    if (isset($context['need_synhlt'])) {
        // include syntax highlighter js when needed.
        echo '
	var t3 = document.createElement(\'SCRIPT\');
	t3.type = "text/javascript";
	t3.async = true;
	t3.src = "', $settings['default_theme_url'], '/prettify/prettify.js";
	anchor.parentNode.insertBefore(t3, anchor);
    t3 = document.createElement(\'SCRIPT\');
    t3.type = "text/javascript";
    t3.async = true;
    t3.src = "', $settings['default_theme_url'], '/scripts/min/prettyphoto.js";
    anchor.parentNode.insertBefore(t3, anchor);
	';
    }
    $context['inline_footer_script'] .= $txt['jquery_timeago_loc'];
    if (isset($context['want_GA_embedded'])) {
        echo '
	var _gaq = _gaq || [];
	_gaq.push([\'_setAccount\', \'', $modSettings['GA_tracker_id'], '\']);
	_gaq.push([\'_setDomainName\', \'', $modSettings['GA_domain_name'], '\']);
   	_gaq.push([\'_trackPageview\']);
	
	var ga = document.createElement(\'script\');
	var sa = document.getElementsByTagName(\'script\')[0];
	ga.async = true;
	ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
	sa.parentNode.insertBefore(ga, sa);
	';
    }
    echo '
	// ]]>
	</script>
	', $context['template_hooks']['global']['footer'], '
	<footer>
	<div class="clear" id="footer_section">';
    // Show the load time?
    if ($context['show_load_time']) {
        $loadtime = '@%%__loadtime__%%@';
    }
    //$loadtime = $context['load_time']. 's CPU, '.$context['load_queries'] . $txt['queries'];
    $time_now = forum_time(false);
    $tz = date_default_timezone_get();
    echo '
	<div class="righttext floatright">', $loadtime, '<br><a onclick="Eos_Confirm(\'\', \'', $txt['clear_cookies_warning'], '\', Clear_Cookies);" href="#">', $txt['clear_cookies'], '</a> | ', $txt['forum_time'], strftime($modSettings['time_format'], $time_now) . ' ' . $tz, '</div>
	<div class="copyright">', my_theme_copyright(), '</div>
	<div><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="Valid HTML"><span>HTML</span></a> |
	', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a>' : '';
    if ($context['mobile']) {
        echo '
	| <a href="', $scripturl, '?mobile=0" >Full version</a>';
    } else {
        echo '
	| <a href="', $scripturl, '?mobile=1" >Mobile</a>';
    }
    echo '
	</div>
	</div>
	</footer>';
    if (isset($context['want_piwik_embedded'])) {
        echo <<<EOT
\t
\t<script src="{$modSettings['piwik_uri']}/piwik.js"></script>
\t<script>
\tvar pkBaseURL = "{$modSettings['piwik_uri']}";
\ttry {
\t\tvar piwikTracker = Piwik.getTracker(pkBaseURL + "/piwik.php", {$modSettings['piwik_tracker_id']});
\t\tpiwikTracker.trackPageView();
\t\tpiwikTracker.enableLinkTracking();
\t}
\tcatch( err ) {
\t}
\t</script>
\t<noscript>
\t  <div style="width:0px;height:0px;"><img src="{$modSettings['piwik_uri']}/piwik.php?idsite=1" style="border:0" alt="" /></div>
\t</noscript>
EOT;
    }
}
コード例 #3
0
ファイル: index.template.php プロジェクト: norv/EosAlpha
function template_body_below()
{
    global $context, $settings, $options, $scripturl, $txt, $modSettings, $fbxml, $twitter_widgets, $plusone;
    echo '<div class="clear"></div>
		</div></div></div>';
    // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
    echo '
  	<script type="text/javascript">
	// <![CDATA[
	';
    if (isset($context['need_pager_script_fragment'])) {
        echo <<<EOT

\tjQuery(document).ready(function() {
\t\t\$('.pagelinks .prefix').click(function() {
\t\t\tif(\$('#directpager').length <= 0) {
\t\t\t\t\$(this).attr('data-save', \$(this).html());
\t\t\t\t\$(this).html('<form action="' + \$(this).attr('data-urltemplate') + '" id="directpager" method="post">{$txt["page_go_to"]}<input name="directpager_pagenr" id="directpager_pagenr" size=3 /></form>');
\t\t\t\t\$('#directpager_pagenr').focus();
\t\t\t}
\t\t\t\$('#directpager').submit(function() {

\t\t\t\tvar newstart = (parseInt(\$('#directpager_pagenr').val()) - 1) * parseInt(\$(this).parent().attr('data-perpage'));
\t\t\t\tif(newstart < 0)
\t\t\t\t\tnewstart = 0;
\t\t\t\t\$(this).attr('action', \$(this).attr('action').replace(/\\[\\[PAGE\\]\\]/g, newstart));
\t\t\t\t\$(this).submit();
\t\t\t\treturn(false);
\t\t\t});
\t\t});

\t\t\$('.pagelinks .prefix').live('mouseleave',function(event) {
\t\t\t\$(this).html(\$(this).attr('data-save'));
\t\t});
\t\treturn;
\t});
EOT;
    }
    if (isset($context['need_synhlt'])) {
        // include syntax highlighter js when needed.
        echo '
	var t3 = document.createElement(\'SCRIPT\');
	t3.type = "text/javascript";
	t3.async = true;
	t3.src = "', $settings['theme_url'], '/scripts/shlt.js?ver=1.1.0";
	anchor.parentNode.insertBefore(t3, anchor);';
    }
    $context['inline_footer_script'] .= $txt['jquery_timeago_loc'];
    echo '
	// ]]>
	</script>
	', $context['template_hooks']['global']['footer'], '
	<footer>
	<div class="clear" id="footer_section">';
    // Show the load time?
    if ($context['show_load_time']) {
        $loadtime = '@%%__loadtime__%%@';
    }
    //$loadtime = $context['load_time']. 's CPU, '.$context['load_queries'] . $txt['queries'];
    $time_now = forum_time(false);
    $tz = date_default_timezone_get();
    echo '
	<div class="righttext floatright">', $loadtime, '<br><a onclick="Eos_Confirm(\'\', \'', $txt['clear_cookies_warning'], '\', Clear_Cookies);" href="#">', $txt['clear_cookies'], '</a> | ', $txt['forum_time'], strftime($modSettings['time_format'], $time_now) . ' ' . $tz, '</div>
	<div class="copyright">', my_theme_copyright(), '</div>
	<div><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="Valid HTML"><span>HTML</span></a> |
	', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a>' : '';
    if ($context['mobile']) {
        echo '
	| <a href="', $scripturl, '?mobile=0" >Full version</a>';
    } else {
        echo '
	| <a href="', $scripturl, '?mobile=1" >Mobile</a>';
    }
    echo '
	</div>
	</div>
	</footer>';
}