aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/home.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-08-12 17:43:19 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-08-12 17:43:19 +0200
commit2722f77adf442481fb37f795e92ac8af672b2ed1 (patch)
tree20ec1fe296e66276cc852e1d88e7da3f96052a19 /app/view/templates/home.php
parentab324b42a3223b882145852c49a17bfa72099174 (diff)
downloadwcms-2722f77adf442481fb37f795e92ac8af672b2ed1.tar.gz
wcms-2722f77adf442481fb37f795e92ac8af672b2ed1.zip
disable javascript config option, close #114
Diffstat (limited to 'app/view/templates/home.php')
-rw-r--r--app/view/templates/home.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php
index 387ef0c..3d0b497 100644
--- a/app/view/templates/home.php
+++ b/app/view/templates/home.php
@@ -236,9 +236,15 @@
<?php $this->insert('footer', ['footer' => $footer]) ?>
+
+<?php if(!Wcms\Config::disablejavascript()) { ?>
+
<script src="<?= Wcms\Model::jspath() ?>home.bundle.js"></script>
<?php } ?>
+<?php } ?>
+
+
<?php $this->stop() ?> \ No newline at end of file