mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-26 10:14:50 -05:00
Move Analytics/ads into config
This stuff isn't really relevant to anyone trying to develop at home, anyway.
This commit is contained in:
parent
bd134f4ccf
commit
49cb741f10
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -23,6 +23,7 @@ package-lock.json
|
||||||
/play.pokemonshowdown.com/js/client-main.js
|
/play.pokemonshowdown.com/js/client-main.js
|
||||||
/play.pokemonshowdown.com/js/client-core.js
|
/play.pokemonshowdown.com/js/client-core.js
|
||||||
/play.pokemonshowdown.com/js/client-connection.js
|
/play.pokemonshowdown.com/js/client-connection.js
|
||||||
|
/play.pokemonshowdown.com/ads.txt
|
||||||
|
|
||||||
/pokemonshowdown.com/.well-known/
|
/pokemonshowdown.com/.well-known/
|
||||||
/pokemonshowdown.com/.pages-cached/
|
/pokemonshowdown.com/.pages-cached/
|
||||||
|
|
@ -34,3 +35,4 @@ package-lock.json
|
||||||
/replay.pokemonshowdown.com/js/
|
/replay.pokemonshowdown.com/js/
|
||||||
/replay.pokemonshowdown.com/caches/
|
/replay.pokemonshowdown.com/caches/
|
||||||
/replay.pokemonshowdown.com/theme/wrapper.inc.php
|
/replay.pokemonshowdown.com/theme/wrapper.inc.php
|
||||||
|
/replay.pokemonshowdown.com/ads.txt
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
google.com, pub-6535472412829264, DIRECT, f08c47fec0942fa0
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
<?php
|
|
||||||
include_once __DIR__ . '/../config/config.inc.php';
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
|
@ -10,16 +7,11 @@ include_once __DIR__ . '/../config/config.inc.php';
|
||||||
|
|
||||||
<link rel="stylesheet" href="/style/global.css?v14" />
|
<link rel="stylesheet" href="/style/global.css?v14" />
|
||||||
|
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<?php
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-26211653-1"></script>
|
include_once __DIR__ . '/../config/config.inc.php';
|
||||||
<script>
|
include_once __DIR__ . '/../config/ads-landing.inc.php';
|
||||||
window.dataLayer = window.dataLayer || [];
|
@insertAtHead();
|
||||||
function gtag(){dataLayer.push(arguments);}
|
?>
|
||||||
gtag('js', new Date());
|
|
||||||
|
|
||||||
gtag('config', 'UA-26211653-1');
|
|
||||||
</script>
|
|
||||||
<!-- End Google Analytics -->
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
@ -104,21 +96,9 @@ include_once __DIR__ . '/../config/config.inc.php';
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
<div class="main-spacer"><?php @insertAboveIntro(); ?></div>
|
||||||
|
|
||||||
<section class="section" style="max-width: 850px">
|
<section class="section" style="max-width: 850px">
|
||||||
|
|
||||||
<div class="main-spacer"><div id="ad-div">
|
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
||||||
<!-- PS home 1 -->
|
|
||||||
<ins class="adsbygoogle"
|
|
||||||
style="display:block"
|
|
||||||
data-ad-client="ca-pub-6535472412829264"
|
|
||||||
data-ad-slot="6218061333"
|
|
||||||
data-ad-format="auto"></ins>
|
|
||||||
<script>
|
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
||||||
</script>
|
|
||||||
</div></div>
|
|
||||||
|
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<!--div class="screenshot"><img src="/images/screenshot-desktop.png" alt="" width="549" height="288" style="border:1px solid #AAAAAA;box-shadow: 3px 3px 3px rgba(0,0,0,.2);image-rendering: -moz-auto;" /></div-->
|
<!--div class="screenshot"><img src="/images/screenshot-desktop.png" alt="" width="549" height="288" style="border:1px solid #AAAAAA;box-shadow: 3px 3px 3px rgba(0,0,0,.2);image-rendering: -moz-auto;" /></div-->
|
||||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/daw9GoZWWSI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/daw9GoZWWSI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||||
|
|
@ -270,20 +250,7 @@ if (BrowserDetect.OS === 'Mac') {
|
||||||
|
|
||||||
<div class="under-main" style="clear:both;padding-top:1px">
|
<div class="under-main" style="clear:both;padding-top:1px">
|
||||||
|
|
||||||
<div class="main-spacer"><div id="ad-div2">
|
<div class="main-spacer"><?php @insertBelowIntro(); ?></div>
|
||||||
<?php /*
|
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
||||||
<!-- PS home 2 -->
|
|
||||||
<ins class="adsbygoogle"
|
|
||||||
style="display:block"
|
|
||||||
data-ad-client="ca-pub-6535472412829264"
|
|
||||||
data-ad-slot="7694794531"
|
|
||||||
data-ad-format="auto"></ins>
|
|
||||||
<script>
|
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
||||||
</script>
|
|
||||||
*/ ?>
|
|
||||||
</div></div>
|
|
||||||
<div style="clear:both;padding-top:1px"></div>
|
<div style="clear:both;padding-top:1px"></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -397,19 +364,7 @@ foreach ($latestNewsCache as $topic_id) {
|
||||||
<?php
|
<?php
|
||||||
if (++$count >= 2) break;
|
if (++$count >= 2) break;
|
||||||
if ($count === 1) {
|
if ($count === 1) {
|
||||||
?>
|
@insertBetweenNews();
|
||||||
<div style="margin:10px 0"><div style="text-align:center" id="ad-div3">
|
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
||||||
<!-- PS Home 3 LR -->
|
|
||||||
<ins class="adsbygoogle"
|
|
||||||
style="display:inline-block;width:336px;height:280px"
|
|
||||||
data-ad-client="ca-pub-6535472412829264"
|
|
||||||
data-ad-slot="9252930937"></ins>
|
|
||||||
<script>
|
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
|
||||||
</script>
|
|
||||||
</div></div>
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -426,3 +381,5 @@ foreach ($latestNewsCache as $topic_id) {
|
||||||
<small><a href="/rules">Rules</a> | <a href="/privacy">Privacy policy</a> | <a href="/credits">Credits</a> | <a href="/contact">Contact</a></small>
|
<small><a href="/rules">Rules</a> | <a href="/privacy">Privacy policy</a> | <a href="/credits">Credits</a> | <a href="/contact">Contact</a></small>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<?php @insertAtEnd(); ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user