summaryrefslogtreecommitdiff
path: root/libtemplate
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-10-03 15:54:23 +0200
committerlouis <louis.braun@gmx.de>2014-10-03 15:54:23 +0200
commit91a0681ab8b2752b5ebd7cfebdd1456708d6ed69 (patch)
tree24c0d8bb48829882bdec0ec7717cc0cba91551c6 /libtemplate
parent7766972eece16b450621d0e5c72f35733af5b238 (diff)
downloadvdr-plugin-skindesigner-91a0681ab8b2752b5ebd7cfebdd1456708d6ed69.tar.gz
vdr-plugin-skindesigner-91a0681ab8b2752b5ebd7cfebdd1456708d6ed69.tar.bz2
changed skin handling and added themes support for skins
Diffstat (limited to 'libtemplate')
-rw-r--r--libtemplate/xmlparser.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libtemplate/xmlparser.c b/libtemplate/xmlparser.c
index 228488b..8c21ed9 100644
--- a/libtemplate/xmlparser.c
+++ b/libtemplate/xmlparser.c
@@ -177,11 +177,14 @@ void cXmlParser::DeleteDocument(void) {
string cXmlParser::GetPath(string xmlFile) {
string activeSkin = Setup.OSDSkin;
- string theme = "default";
- if (!activeSkin.compare("skindesigner")) {
- theme = Setup.OSDTheme;
+ string activeTheme = Setup.OSDTheme;
+ string path = "";
+ if (!xmlFile.compare("globals.xml")) {
+ path = *cString::sprintf("%s%s/themes/%s/%s", *config.skinPath, activeSkin.c_str(), activeTheme.c_str(), xmlFile.c_str());
+ } else {
+ path = *cString::sprintf("%s%s/xmlfiles/%s", *config.skinPath, activeSkin.c_str(), xmlFile.c_str());
}
- return *cString::sprintf("%s%s/xmlfiles/%s", *config.skinPath, theme.c_str(), xmlFile.c_str());
+ return path;
}
void cXmlParser::ParseGlobalColors(xmlNodePtr node) {