chore(bundle): Added initial support for bundled bower files and installed ones

Issue: #104
parent 1f9f6f3e
......@@ -96,6 +96,13 @@
$_SESSION['CORE_ROOT'] = CORE_ROOT;
$App = new NxFitAdmin($_COOKIE['_nx_fb_usr']);
if (is_dir(dirname(__FILE__) . "/bower_components")) {
$bowerPath = 'bower_components';
}
if (is_dir(dirname(__FILE__) . "/../bundle/bowser")) {
$bowerPath = '../bundle/bowser';
}
?>
<!DOCTYPE html>
<html lang="en">
......@@ -151,6 +158,7 @@
<!--suppress JSUnusedLocalSymbols -->
<script type="application/javascript">
var fitbitUserId = '<?php echo $_COOKIE['_nx_fb_usr']; ?>';
<?php echo "var bowerPath = '" . $bowerPath . "';\n"; ?>
</script>
<!-- Bootstrap and necessary plugins -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment