mirror of
https://github.com/Circlepuller/Tinyboard.git
synced 2025-01-17 13:28:31 +01:00
Bugfixes to AC theme
This commit is contained in:
parent
2671adf7d5
commit
dcd5c78203
BIN
templates/themes/awsumchan/icon.ico
Normal file
BIN
templates/themes/awsumchan/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -5,7 +5,7 @@
|
||||
$theme['name'] = 'AwsumChan';
|
||||
// Description (you can use Tinyboard markup here)
|
||||
$theme['description'] = 'A combination of the RecentPosts and Basic themes, made specially for AwsumChan.';
|
||||
$theme['version'] = 'v1.0';
|
||||
$theme['version'] = 'v1.1';
|
||||
|
||||
// Theme configuration
|
||||
$theme['config'] = [];
|
||||
@ -24,12 +24,20 @@
|
||||
];
|
||||
|
||||
$theme['config'][] = [
|
||||
'title' => 'Logo Destination',
|
||||
'title' => 'Logo file',
|
||||
'name' => 'logo',
|
||||
'type' => 'text',
|
||||
'default' => 'logo.png',
|
||||
'comment' => '(optional, leave blank to disable)'
|
||||
];
|
||||
|
||||
$theme['config'][] = [
|
||||
'title' => 'Favicon file',
|
||||
'name' => 'favicon',
|
||||
'type' => 'text',
|
||||
'default' => 'favicon.ico',
|
||||
'comment' => '(optional, leave blank to disable)'
|
||||
];
|
||||
|
||||
$theme['config'][] = [
|
||||
'title' => '# of recent entries',
|
||||
|
@ -19,13 +19,14 @@
|
||||
public function build($action, $settings) {
|
||||
global $config, $_theme;
|
||||
|
||||
if ($action == 'all') {
|
||||
if ($action === 'all') {
|
||||
copy('templates/themes/awsumchan/' . $settings['basecss'], $config['dir']['home'] . $settings['css']);
|
||||
|
||||
if ($settings['logo'] !== '')
|
||||
copy('templates/themes/awsumchan/logo.png', $config['dir']['home'] . $settings['logo']);
|
||||
|
||||
copy('templates/themes/awsumchan/favicon.ico', $config['dir']['home'] . 'favicon.ico');
|
||||
if ($settings['favicon'] !== '')
|
||||
copy('templates/themes/awsumchan/icon.ico', $config['dir']['home'] . $settings['favicon']);
|
||||
}
|
||||
|
||||
$this->excluded = explode(' ', $settings['exclude']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user