mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
All sound stuff is now handled directly by BattleSound, using the HTML5 audio API. The main complicated thing we do with sound is loop music with an intro. This is unfortunately not supported by ANY sound library out there (I had to manually add support for it myself to soundManager!) https://github.com/scottschiller/SoundManager2/pull/13 In the end, I don't think the existing libraries out there actually give us anything I care about.
109 lines
4.6 KiB
PHP
109 lines
4.6 KiB
PHP
<?php
|
|
|
|
if ((substr($_SERVER['REMOTE_ADDR'],0,11) === '69.164.163.') ||
|
|
(substr(@$_SERVER['HTTP_X_FORWARDED_FOR'],0,11) === '69.164.163.')) {
|
|
die('website disabled');
|
|
}
|
|
|
|
/********************************************************************
|
|
* Header
|
|
********************************************************************/
|
|
|
|
function ThemeHeaderTemplate() {
|
|
global $panels;
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html><head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title><?php if ($panels->pagetitle) echo htmlspecialchars($panels->pagetitle).' - '; ?>Pokémon Showdown</title>
|
|
|
|
<?php if ($panels->pagedescription) { ?>
|
|
<meta name="description" content="<?php echo htmlspecialchars($panels->pagedescription); ?>" />
|
|
<?php } ?>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE8" />
|
|
<link rel="stylesheet" href="//play.pokemonshowdown.com/style/font-awesome.css" />
|
|
<link rel="stylesheet" href="//pokemonshowdown.com/theme/panels.css" />
|
|
<link rel="stylesheet" href="//pokemonshowdown.com/theme/main.css" />
|
|
<link rel="stylesheet" href="//play.pokemonshowdown.com/style/battle.css?" />
|
|
<link rel="stylesheet" href="//play.pokemonshowdown.com/style/replay.css?" />
|
|
<link rel="stylesheet" href="//play.pokemonshowdown.com/style/utilichart.css?" />
|
|
|
|
<!-- Workarounds for IE bugs to display trees correctly. -->
|
|
<!--[if lte IE 6]><style> li.tree { height: 1px; } </style><![endif]-->
|
|
<!--[if IE 7]><style> li.tree { zoom: 1; } </style><![endif]-->
|
|
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-26211653-1']);
|
|
_gaq.push(['_setDomainName', 'pokemonshowdown.com']);
|
|
_gaq.push(['_setAllowLinker', true]);
|
|
_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>
|
|
</head><body>
|
|
|
|
<div class="pfx-topbar">
|
|
<div class="header">
|
|
<ul class="nav">
|
|
<li><a class="button nav-first<?php if ($panels->tab === 'home') echo ' cur'; ?>" href="//pokemonshowdown.com/"><img src="//pokemonshowdown.com/images/pokemonshowdownbeta.png" alt="Pokémon Showdown! (beta)" /> Home</a></li>
|
|
<li><a class="button<?php if ($panels->tab === 'pokedex') echo ' cur'; ?>" href="//dex.pokemonshowdown.com/">Pokédex</a></li>
|
|
<li><a class="button<?php if ($panels->tab === 'replay') echo ' cur'; ?>" href="/">Replays</a></li>
|
|
<li><a class="button<?php if ($panels->tab === 'ladder') echo ' cur'; ?>" href="//pokemonshowdown.com/ladder/">Ladder</a></li>
|
|
<li><a class="button nav-last" href="//pokemonshowdown.com/forums/">Forum</a></li>
|
|
</ul>
|
|
<ul class="nav nav-play">
|
|
<li><a class="button greenbutton nav-first nav-last" href="http://play.pokemonshowdown.com/">Play</a></li>
|
|
</ul>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
|
|
/********************************************************************
|
|
* Footer
|
|
********************************************************************/
|
|
|
|
function ThemeScriptsTemplate() {
|
|
?>
|
|
<script src="//play.pokemonshowdown.com/js/lib/jquery-1.11.0.min.js"></script>
|
|
<script src="//play.pokemonshowdown.com/js/lib/lodash.core.js"></script>
|
|
<script src="//play.pokemonshowdown.com/js/lib/backbone.js"></script>
|
|
<script src="//dex.pokemonshowdown.com/js/panels.js"></script>
|
|
<?php
|
|
}
|
|
|
|
function ThemeFooterTemplate() {
|
|
global $panels;
|
|
?>
|
|
<?php $panels->scripts(); ?>
|
|
|
|
<script src="//play.pokemonshowdown.com/js/lib/jquery-cookie.js"></script>
|
|
<script src="//play.pokemonshowdown.com/js/lib/html-sanitizer-minified.js"></script>
|
|
<script src="//play.pokemonshowdown.com/js/battle-sound.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/config/config.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/js/battledata.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/pokedex-mini.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/pokedex-mini-bw.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/graphics.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/pokedex.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/items.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/moves.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/abilities.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/data/teambuilder-tables.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/js/battle-tooltips.js?"></script>
|
|
<script src="//play.pokemonshowdown.com/js/battle.js?"></script>
|
|
<script src="/js/replay.js?"></script>
|
|
|
|
</body></html>
|
|
<?php
|
|
}
|