From 6312f49b03c4d8718497a087b26ad7a32a71bb19 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Fri, 18 May 2007 13:37:49 +0000 Subject: [PATCH] ~ Moved cover size config to the template as it's visual and makes more sense for it to be there. --- config/config.inc.php | 1 - lib/global.php | 4 +++- templates/default/config.inc.php | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 templates/default/config.inc.php diff --git a/config/config.inc.php b/config/config.inc.php index d017463..a699209 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -8,7 +8,6 @@ /* music_directory must match you MPD music_directory config */ $_CONFIG['music_directory'] = '/home/danbee/Music'; $_CONFIG['album_cover_name'] = 'folder.jpg'; - $_CONFIG['album_cover_size'] = 130; /* Template to use for displaying the pages */ $_CONFIG['template'] = 'default'; diff --git a/lib/global.php b/lib/global.php index 8d5c75f..6029d8e 100644 --- a/lib/global.php +++ b/lib/global.php @@ -22,7 +22,9 @@ $smarty->cache_dir = 'smarty/cache/'; $smarty->assign('version', $version); - $smarty->assign('template', $_CONFIG['template']); + $smarty->assign('template', $_CONFIG['template']); + + require("templates/${_CONFIG['template']}/config.inc.php"); include('lib/mpd.class.php'); $mympd = new mpd('localhost',6600); diff --git a/templates/default/config.inc.php b/templates/default/config.inc.php new file mode 100644 index 0000000..6d8b5d2 --- /dev/null +++ b/templates/default/config.inc.php @@ -0,0 +1,5 @@ +