Browse Source

Add scripts to catalog page

main
8chan 10 years ago
committed by Fredrick Brennan
parent
commit
e856917b00
  1. 7
      templates/themes/catalog/theme.php

7
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,

Loading…
Cancel
Save