Beispiel #1
0
 function _findFile($file, $missing_okay = false)
 {
     if (file_exists($this->_path . "themes/" . $this->_name . "/{$file}")) {
         return "themes/" . $this->_name . "/{$file}";
     }
     if (file_exists($this->_path . "themes/Sidebar/{$file}")) {
         return "themes/Sidebar/{$file}";
     }
     return parent::_findFile($file, $missing_okay);
 }
Beispiel #2
0
}
// This is the actual date status handler. 
// Note that it receives the date object as well as separate 
// values of year, month and date.
function dateStatusFunc(date, y, m, d) {
    if (dateExists(date, y, m, d)) return "existing";
    else return false;
}'));
            } else {
                $this->addMoreHeaders(JavaScript('
function dateStatusFunc(date, y, m, d) { return false;}'));
            }
        }
    }
}
$WikiTheme = new Theme_Sidebar('Sidebar');
// CSS file defines fonts, colors and background images for this
// style.  The companion '*-heavy.css' file isn't defined, it's just
// expected to be in the same directory that the base style is in.
$WikiTheme->setDefaultCSS(_("Sidebar"), 'sidebar.css');
//$WikiTheme->addAlternateCSS('PhpWiki', 'phpwiki.css');
//$WikiTheme->setDefaultCSS('PhpWiki', 'phpwiki.css');
$WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
$WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
/**
 * The logo image appears on every page and links to the HomePage.
 */
//$WikiTheme->addImageAlias('logo', 'logo.png');
/**
 * The Signature image is shown after saving an edited page. If this
 * is not set, any signature defined in index.php will be used. If it