forked from leftypol/leftypol
allowed enabling multiple themes simultaneously
This commit is contained in:
parent
bb67062cd5
commit
d9b82cfe4f
5 changed files with 29 additions and 21 deletions
|
@ -8,17 +8,17 @@
|
|||
// - boards (board list changed)
|
||||
// - post (a post has been made)
|
||||
|
||||
$b = new Basic();
|
||||
$b = new RecentPosts();
|
||||
$b->build($action, $settings);
|
||||
}
|
||||
|
||||
// Wrap functions in a class so they don't interfere with normal Tinyboard operations
|
||||
class Basic {
|
||||
class RecentPosts {
|
||||
public function build($action, $settings) {
|
||||
global $config, $_theme;
|
||||
|
||||
if($action == 'all') {
|
||||
copy($config['dir']['homepage'] . '/' . $_theme . '/recent.css', $config['dir']['home'] . 'recent.css');
|
||||
//copy($config['dir']['homepage'] . '/' . $_theme . '/recent.css', $config['dir']['home'] . 'recent.css');
|
||||
}
|
||||
|
||||
$this->excluded = explode(' ', $settings['exclude']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue