diff options
| author | 8chan <admin@8chan.co> | 2014-06-12 17:26:21 +0000 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-06-12 17:27:18 +0000 |
| commit | e856917b00b6ede3b5e163b38d4b85780d45664e (patch) | |
| tree | d1a4658e90e3cc707acdae95fdf56d0c51167368 | |
| parent | 1d6f46d9bbcf84368be9cd3920e034387da27514 (diff) | |
Add scripts to catalog page
| -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, |
