Include state js and php in all pages.

As we can now start / stop the software from any page, via a modal,
we need the state's php and js files to do so.
This commit is contained in:
Kyle Johnson 2014-11-15 19:48:04 +00:00
parent f38a9c9f06
commit 2db5d66134
1 changed files with 4 additions and 1 deletions

View File

@ -24,8 +24,9 @@ function xhtmlHeaders( $file, $title )
$skinCssPhpFile = getSkinFile( 'css/skin.css.php' ); $skinCssPhpFile = getSkinFile( 'css/skin.css.php' );
$skinJsFile = getSkinFile( 'js/skin.js' ); $skinJsFile = getSkinFile( 'js/skin.js' );
$skinJsPhpFile = getSkinFile( 'js/skin.js.php' ); $skinJsPhpFile = getSkinFile( 'js/skin.js.php' );
$jqueryJsFile = getSkinFile( 'js/jquery-2.1.1.min.js'); $jqueryJsFile = getSkinFile( 'js/jquery-2.1.1.min.js');
$statePhpFile = getSkinFile( 'views/js/state.js.php' );
$stateJsFile = getSkinFile( 'views/js/state.js');
$bootstrapCssFile = getSkinFile( 'css/bootstrap.css' ); $bootstrapCssFile = getSkinFile( 'css/bootstrap.css' );
$bootstrapJsFile = getSkinFile( 'js/bootstrap.min.js' ); $bootstrapJsFile = getSkinFile( 'js/bootstrap.min.js' );
@ -89,6 +90,7 @@ function xhtmlHeaders( $file, $title )
<!-- <!--
<?php <?php
require_once( $skinJsPhpFile ); require_once( $skinJsPhpFile );
require_once( $statePhpFile );
?> ?>
//--> //-->
//]]> //]]>
@ -119,6 +121,7 @@ function xhtmlHeaders( $file, $title )
<?php <?php
} }
?> ?>
<script type="text/javascript" src="<?= $stateJsFile ?>"></script>
</head> </head>
<?php <?php
} }