aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/media.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/media.php
parentab324b42a3223b882145852c49a17bfa72099174 (diff)
downloadwcms-2722f77adf442481fb37f795e92ac8af672b2ed1.tar.gz
wcms-2722f77adf442481fb37f795e92ac8af672b2ed1.zip
disable javascript config option, close #114
Diffstat (limited to 'app/view/templates/media.php')
-rw-r--r--app/view/templates/media.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/view/templates/media.php b/app/view/templates/media.php
index a8b7157..7f2101b 100644
--- a/app/view/templates/media.php
+++ b/app/view/templates/media.php
@@ -185,7 +185,12 @@ $this->layout('layout', ['title' => 'media', 'stylesheets' => [$css . 'home.css'
</main>
+<?php if(!Wcms\Config::disablejavascript()) { ?>
+
<script src="<?= Wcms\Model::jspath() ?>media.bundle.js"></script>
+<?php } ?>
+
+
<?php $this->stop('page') ?> \ No newline at end of file