title is translated, so we can't use it to determine which page we are on, so use view

This commit is contained in:
Isaac Connor 2018-02-08 09:29:42 -08:00
parent 16604e3ee4
commit c47c81b810
1 changed files with 8 additions and 3 deletions

View File

@ -22,6 +22,7 @@
function xhtmlHeaders( $file, $title ) { function xhtmlHeaders( $file, $title ) {
global $css; global $css;
global $skin; global $skin;
global $view;
# This idea is that we always include the classic css files, # This idea is that we always include the classic css files,
# and then any different skin only needs to contain things that are different. # and then any different skin only needs to contain things that are different.
@ -132,7 +133,7 @@ echo output_link_if_exists( array(
?> ?>
<script src='https://www.google.com/recaptcha/api.js'></script> <script src='https://www.google.com/recaptcha/api.js'></script>
<?php <?php
} else if ( $title == 'Event' ) { } else if ( $view == 'event' ) {
?> ?>
<link href="skins/<?php echo $skin ?>/js/video-js.css" rel="stylesheet"> <link href="skins/<?php echo $skin ?>/js/video-js.css" rel="stylesheet">
<link href="skins/<?php echo $skin ?>/js/video-js-skin.css" rel="stylesheet"> <link href="skins/<?php echo $skin ?>/js/video-js-skin.css" rel="stylesheet">
@ -140,7 +141,11 @@ echo output_link_if_exists( array(
<script src="./js/videojs.zoomrotate.js"></script> <script src="./js/videojs.zoomrotate.js"></script>
<script src="skins/<?php echo $skin ?>/js/moment.min.js"></script> <script src="skins/<?php echo $skin ?>/js/moment.min.js"></script>
<?php <?php
} else if ( $title == 'Watch' ) { } else if ( $view == 'montagereview' ) {
?>
<script src="skins/<?php echo $skin ?>/js/moment.min.js"></script>
<?php
} else if ( $view == 'watch' ) {
?> ?>
<link href="<?php echo cache_bust($viewCssFileExtra) ?>" rel="stylesheet"> <link href="<?php echo cache_bust($viewCssFileExtra) ?>" rel="stylesheet">
<?php <?php