diff options
| author | czaks <marcin@6irc.net> | 2014-06-14 18:34:09 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-06-14 18:34:09 +0200 |
| commit | a4dc0d03b75b92155d6c2573278c16d5c781af1c (patch) | |
| tree | 255ed69e4ba16961bfdee15532a8b0d14c186e82 /templates/themes/catalog/theme.php | |
| parent | b12612ac576f0bb2c4f82e55d0596d40db77150d (diff) | |
| parent | 91570ef083c20e779596583def6f9a7ce6a751bd (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.php | 7 |
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, |
