mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 09:27:24 +01:00
Add scripts to catalog page
This commit is contained in:
parent
ce53832fdf
commit
255ed9330c
@ -66,6 +66,13 @@
|
|||||||
$recent_posts[] = $post;
|
$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(
|
file_write($config['dir']['home'] . $board_name . '/catalog.html', Element('themes/catalog/catalog.html', Array(
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user