@@ -19,12 +19,12 @@ if ( isset( Authentication::$user )) {
1919 $ _header_staff = null ;
2020}
2121
22- if ( Common::$ config ->bnetdocs ->asset_versioning ) {
23- if ( ! is_null ( VersionInfo:: $ version -> bnetdocs )) {
24- $ _unique_css = ' ?v= ' . VersionInfo::$ version ->bnetdocs [ 1 ];
25- } else {
26- $ _unique_css = ' ?v= ' . date ( ' YmdHis ' );
27- }
22+ if ( ! Common::$ config ->bnetdocs ->asset_versioning ) {
23+ $ _unique_asset = '' ;
24+ } else if ( ! is_null ( VersionInfo::$ version ->bnetdocs )) {
25+ $ _unique_asset = ' ?v= ' . VersionInfo:: $ version -> bnetdocs [ 1 ];
26+ } else {
27+ $ _unique_asset = ' ?v= ' . date ( ' YmdHis ' );
2828}
2929
3030$ _campaign_battleforthenet = (
@@ -53,21 +53,21 @@ $_campaign_vultr = (
5353<?php } ?>
5454 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
5555<?php if (Common::$ config ->bnetdocs ->mobile_site_enabled ) { ?>
56- <link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ('/a/main.css ' . $ _unique_css ); ?> " type="text/css" media="(min-width:1000px)"/>
57- <link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ('/a/main-mobile.css ' . $ _unique_css ); ?> " type="text/css" media="(max-width:999px)"/>
56+ <link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ('/a/main.css ' . $ _unique_asset ); ?> " type="text/css" media="(min-width:1000px)"/>
57+ <link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ('/a/main-mobile.css ' . $ _unique_asset ); ?> " type="text/css" media="(max-width:999px)"/>
5858<?php } else { ?>
59- <link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ('/a/main.css ' . $ _unique_css ); ?> " type="text/css" media="all"/>
59+ <link rel="stylesheet" href="<?php echo Common::relativeUrlToAbsolute ('/a/main.css ' . $ _unique_asset ); ?> " type="text/css" media="all"/>
6060<?php }
6161 foreach ($ this ->additional_css as $ path ) { ?>
62- <link rel="stylesheet" type="text/css" href="<?php echo Common::relativeUrlToAbsolute ($ path . $ _unique_css ); ?> " media="all"/>
62+ <link rel="stylesheet" type="text/css" href="<?php echo Common::relativeUrlToAbsolute ($ path . $ _unique_asset ); ?> " media="all"/>
6363<?php } ?>
64- <link rel="icon" href="<?php echo Common::relativeUrlToAbsolute (" /a/VSZX0bJ.png " ); ?> " type="image/png" sizes="156x174"/>
65- <link rel="stylesheet" type="text/css" href="<?php echo Common::relativeUrlToAbsolute (" /a/font/SourceSansPro-Regular-201508251844.css " ); ?> "/>
66- <link rel="stylesheet" type="text/css" href="<?php echo Common::relativeUrlToAbsolute (" /a/font/SourceCodePro-Regular-201508251844.css " ); ?> "/>
67- <script type="text/javascript" src="<?php echo Common::relativeUrlToAbsolute (" /a/BNETDocs.js " ); ?> " async><![CDATA[]]></script>
64+ <link rel="icon" href="<?php echo Common::relativeUrlToAbsolute (' /a/VSZX0bJ.png ' ); ?> " type="image/png" sizes="156x174"/>
65+ <link rel="stylesheet" type="text/css" href="<?php echo Common::relativeUrlToAbsolute (' /a/font/SourceSansPro-Regular-201508251844.css ' ); ?> "/>
66+ <link rel="stylesheet" type="text/css" href="<?php echo Common::relativeUrlToAbsolute (' /a/font/SourceCodePro-Regular-201508251844.css ' ); ?> "/>
67+ <script type="text/javascript" src="<?php echo Common::relativeUrlToAbsolute (' /a/BNETDocs.js ' . $ _unique_asset ); ?> " async><![CDATA[]]></script>
6868 <?php echo $ _campaign_battleforthenet ; ?>
69- <link rel="alternate" href="<?php echo Common::relativeUrlToAbsolute (" /news.rss " ); ?> " type="application/rss+xml" title="BNETDocs News"/>
70- <link rel="license" href="<?php echo Common::relativeUrlToAbsolute (" /legal " ); ?> "/>
69+ <link rel="alternate" href="<?php echo Common::relativeUrlToAbsolute (' /news.rss ' ); ?> " type="application/rss+xml" title="BNETDocs News"/>
70+ <link rel="license" href="<?php echo Common::relativeUrlToAbsolute (' /legal ' ); ?> "/>
7171 <meta name="keywords" content="battle.net,starcraft,warcraft,diablo,blizzard,logon sequences,packets,information,protocols,reference,programming,coding"/>
7272<?php if (!empty ($ description )) { ?>
7373 <meta name="description" content="<?php echo $ description ; ?> "/>
0 commit comments