Made template modifications

This commit is contained in:
Travis Burtrum 2014-02-04 02:41:13 -05:00
parent f204adc15f
commit a1d36a2982
6 changed files with 104 additions and 2 deletions

View File

@ -3503,6 +3503,8 @@ function theme_copyright($get_it = false)
echo ' echo '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">' . $forum_copyright . ' <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">' . $forum_copyright . '
| <a href="http://www.runescape.com/" title="Runescape" target="_blank" class="new_win">RuneScape &copy; 1999&ndash;2014, Jagex Ltd.</a>
| <a href="http://mopar.com/" title="Mopar" target="_blank" class="new_win">Mopar name and logos &copy; Chrysler Group LLC</a>
</span>'; </span>';
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 B

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -167,6 +167,21 @@ function template_html_above()
// Output any remaining HTML headers. (from mods, maybe?) // Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers']; echo $context['html_headers'];
// xxx analytics
echo "
<script type=\"text/javascript\"><!-- // --><![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6877554-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]></script>";
// xxx end analytics
echo ' echo '
</head> </head>
<body>'; <body>';
@ -176,11 +191,13 @@ function template_body_above()
{ {
global $context, $settings, $options, $scripturl, $txt, $modSettings; global $context, $settings, $options, $scripturl, $txt, $modSettings;
// xxx replaced this logo with DL moparscape link
// <img class="floatright" id="smflogo" src="', $settings['images_url'], '/smflogo.gif" alt="Simple Machines Forum" />
echo ' echo '
<div id="mainframe"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '> <div id="mainframe"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
<div class="tborder"> <div class="tborder">
<div class="catbg"> <div class="catbg">
<img class="floatright" id="smflogo" src="', $settings['images_url'], '/smflogo.gif" alt="Simple Machines Forum" /> <a href="//www.moparscape.org/moparscape.html"><img class="floatright" id="smflogo" src="/dlmoparscape.png" alt="Download MoparScape Here!" /></a>
<h1 id="forum_name">'; <h1 id="forum_name">';
if (empty($context['header_logo_url_html_safe'])) if (empty($context['header_logo_url_html_safe']))
@ -361,6 +378,21 @@ function template_body_above()
// Show the menu here, according to the menu sub template. // Show the menu here, according to the menu sub template.
template_menu(); template_menu();
// xxx top ads
echo '<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>';
// xxx end top ads
// Show the navigation tree. // Show the navigation tree.
theme_linktree(); theme_linktree();
@ -376,6 +408,21 @@ function template_body_below()
echo ' echo '
</div>'; </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! // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo ' echo '
<div id="footerarea" class="headerpadding topmargin clearfix"> <div id="footerarea" class="headerpadding topmargin clearfix">

View File

@ -161,6 +161,21 @@ function template_html_above()
// Output any remaining HTML headers. (from mods, maybe?) // Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers']; echo $context['html_headers'];
// xxx analytics
echo "
<script type=\"text/javascript\"><!-- // --><![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6877554-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]></script>";
// xxx end analytics
echo ' echo '
</head> </head>
<body>'; <body>';
@ -181,8 +196,10 @@ function template_body_above()
// the upshrink image, right-floated // the upshrink image, right-floated
echo ' echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />'; <img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
// echo '
// ', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
echo ' echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', ' <a href="//www.moparscape.org/moparscape.html"><img class="floatright" id="smflogo" src="/dlmoparscape.png" alt="Download MoparScape Here!" /></a>
</div> </div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '> <div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<div class="user">'; <div class="user">';
@ -309,6 +326,21 @@ function template_body_above()
// Show the menu here, according to the menu sub template. // Show the menu here, according to the menu sub template.
template_menu(); template_menu();
// xxx top ads
echo '<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>';
// xxx end top ads
echo ' echo '
<br class="clear" /> <br class="clear" />
</div></div>'; </div></div>';
@ -328,9 +360,30 @@ function template_body_below()
{ {
global $context, $settings, $options, $scripturl, $txt, $modSettings; global $context, $settings, $options, $scripturl, $txt, $modSettings;
// xxx bottom ads
// orig:
/*
echo ' echo '
</div> </div>
</div></div>'; </div></div>';
*/
echo '
</div>
</div>
<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! // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo ' echo '