summaryrefslogtreecommitdiff
path: root/templates/themes/catalog/theme.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-06-14 18:34:09 +0200
committerczaks <marcin@6irc.net>2014-06-14 18:34:09 +0200
commita4dc0d03b75b92155d6c2573278c16d5c781af1c (patch)
tree255ed69e4ba16961bfdee15532a8b0d14c186e82 /templates/themes/catalog/theme.php
parentb12612ac576f0bb2c4f82e55d0596d40db77150d (diff)
parent91570ef083c20e779596583def6f9a7ce6a751bd (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Diffstat (limited to 'templates/themes/catalog/theme.php')
-rw-r--r--templates/themes/catalog/theme.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php
index cf2095d0..0a95c8df 100644
--- a/templates/themes/catalog/theme.php
+++ b/templates/themes/catalog/theme.php
@@ -60,6 +60,13 @@
$recent_posts[] = $post;
}
+ $required_scripts = array('js/jquery.mixitup.min.js', 'js/jquery.tooltipster.min.js', 'js/catalog.js');
+
+ foreach($required_scripts as $i => $s) {
+ if (!in_array($s, $config['additional_javascript']))
+ $config['additional_javascript'][] = $s;
+ }
+
file_write($config['dir']['home'] . $board_name . '/catalog.html', Element('themes/catalog/catalog.html', Array(
'settings' => $settings,
'config' => $config,