$directories = array();
$directories[] = isset($serendipity['template']) ? $serendipity['template'] . '/' : '';
- if ( isset($serendipity['template_engine']) ) {
+ if (isset($serendipity['template_engine']) && $serendipity['template_engine'] != 'default') {
$directories[] = $serendipity['template_engine'] . '/';
}
+
$directories[] = $serendipity['defaultTemplate'] .'/';
$directories[] = 'default/';
foreach ($directories as $directory) {
$templateFile = $serendipity['templatePath'] . $directory . $file;
-
if (file_exists($serendipity['serendipityPath'] . $templateFile)) {
return $serendipity[$key] . $templateFile;
}
function serendipity_printStylesheet($file, $dir = '') {
global $serendipity;
- return str_replace(
+ return "/* $dir */\n" . str_replace(
array(
'{TEMPLATE_PATH}',
'{LANG_DIRECTION}'
// The version string
$serendipity['version'] = '1.1-alpha6';
-// Name of folder for the default theme
-$serendipity['defaultTemplate'] = 'carl_contest';
-
// Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'.
$serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true);
serendipity_load_configuration($_SESSION['serendipityAuthorid']);
}
+// Name of folder for the default theme
+$serendipity['defaultTemplate'] = 'carl_contest';
+
$serendipity['lang'] = serendipity_getSessionLanguage(); // @see function declaration for todo
// Try to fix some path settings. It seems common users have this setting wrong
.serendipityPrettyButton {\r
padding: 1px;\r
background: url({TEMPLATE_PATH}img/button_background.png) repeat-x top;\r
+ background-color: #95accc;\r
color: #1D2E3F;\r
+ height: 20px;\r
font-weight: bold;\r
font-size: 0.9em;\r
border: 1px outset #000;\r
height: 100px; }\r
\r
\r
-.further_links {\r
+.serendipityAdminContent .further_links {\r
float: right;\r
font-size: 0.8em;\r
border: 1px solid black;\r
margin: 5px;\r
padding: 0px;\r
}\r
+\r
+#serendipityAdminBodyImageSelectorTree .serendipityAdminContent {\r
+ width: auto;\r
+}\r
+\r
+#serendipityAdminBodyImageSelector .serendipityAdminContent {\r
+ width: auto;\r
+ margin: 0px;\r
+}
\ No newline at end of file
.serendipityPrettyButton {
padding: 1px;
background: url({TEMPLATE_PATH}img/button_background.png) repeat-x top;
+ background-color: #95accc;
color: #1D2E3F;
font-weight: bold;
font-size: 0.9em;
#footerContainer {
text-align: center;
margin: 0px auto 0px auto;
+ white-space: nowrap;
+}
+
+
+#serendipityAdminBodyImageSelectorTree .serendipityAdminContent {
+ padding: 0px;
}
/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */