\r
$daoTheme = new wsDAOTheme($this->con);\r
$theme = $daoTheme->getThemeOfBook($this->args['book_id'], true);\r
-\r
+ $themeRoot = WS_THEMES . '/' . $theme->theme_id . '/';\r
if ($theme->parametres->backgroundImage != '' && in_array($theme->parametres->repeat, array(2, 3))) {\r
- $themeRoot = WS_THEMES . '/' . $theme->theme_id . '/' . $theme->parametres->backgroundImage;\r
- $dim = getimagesize($themeRoot);\r
+ $dim = getimagesize($themeRoot . $theme->parametres->backgroundImage);\r
$b = $this->xml->addChild('background');\r
$b->addChild('width', $dim[0]);\r
$b->addChild('height', $dim[1]);\r
$b->addChild('url', 'http://' . $_SERVER['HTTP_HOST'] . WEBROOT . '/fluidbook/themes/' . $theme->theme_id . '/' . $theme->parametres->backgroundImage);\r
}\r
+\r
+ if ($theme->parametres->topBar != '') {\r
+ $dim = getimagesize($themeRoot . $theme->parametres->topBar);\r
+ $b = $this->xml->addChild('topbar');\r
+ $b->addChild('width', $dim[0]);\r
+ $b->addChild('height', $dim[1]);\r
+ $b->addChild('url', 'http://' . $_SERVER['HTTP_HOST'] . WEBROOT . '/fluidbook/themes/' . $theme->theme_id . '/' . $theme->parametres->topBar);\r
+ }\r
}\r
\r
public function saveLinks() {\r
if ($theme->parametres->logoLoader != '') {\r
$flexLight->addBitmap($themeRoot . $theme->parametres->logoLoader, 'logoLoader');\r
}\r
+ if($theme->parametres->topBar!=''){\r
+ $flexLight->addBitmap($themeRoot . $theme->parametres->topBar, 'topBar');\r
+ \r
+ }\r
if ($theme->parametres->logo != '') {\r
$flex->addBitmap($themeRoot . $theme->parametres->logo, 'logo');\r
}\r