Beispiel #1
0
 function getCSS()
 {
     // FIXME: this is a hack which will not be needed once
     //        we have dynamic CSS.
     $css = WikiTheme::getCSS();
     $css->pushcontent(HTML::style(array('type' => 'text/css'), new RawXml(sprintf("<!--\nbody {background-image: url(%s);}\n-->", $this->getImageURL('uhhbackground.jpg')))));
     return $css;
 }
Beispiel #2
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 #3
0
 function getCSS()
 {
     // FIXME: this is a hack which will not be needed once
     //        we have dynamic CSS.
     $css = WikiTheme::getCSS();
     $css->pushcontent(HTML::style(array('type' => 'text/css'), new RawXml(sprintf("<!--\nbody {background-image: url(%s);}\n-->\n", $this->getImageURL('bgpaper8')))));
     //for non-browse pages, like former editpage, message etc.
     //$this->getImageURL('bggranular')));
     return $css;
 }
Beispiel #4
0
<?php

rcs_id('$Id: themeinfo.php,v 1.3 2005/09/18 13:04:37 rurban Exp $');
/*
 * This file defines the default appearance ("theme") of PhpWiki.
 */
require_once 'lib/Theme.php';
$WikiTheme = new WikiTheme('Crao');
// 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.
// This should result in phpwiki-printer.css being used when
// printing or print-previewing with style "PhpWiki" selected.
$WikiTheme->setDefaultCSS('Crao', array('' => 'crao.css', 'print' => ''));
// This allows one to manually select "Printer" style (when browsing page)
// to see what the printer style looks like.
//$WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css');
//$WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
//$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
 * is not defined by index.php or in here then the "Thank you for
 * editing..." screen will be omitted.
 */
// Comment this next line out to enable signature.
$WikiTheme->addImageAlias('signature', false);
Beispiel #5
0
<?php

rcs_id('$Id: themeinfo.php,v 1.35 2005/09/18 13:04:37 rurban Exp $');
/*
 * This file defines the default appearance ("theme") of PhpWiki.
 */
require_once 'lib/Theme.php';
$WikiTheme = new WikiTheme('default');
// 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.
// This should result in phpwiki-printer.css being used when
// printing or print-previewing with style "PhpWiki" or "MacOSX" selected.
$WikiTheme->setDefaultCSS('PhpWiki', array('' => 'phpwiki.css', 'print' => 'phpwiki-printer.css'));
// This allows one to manually select "Printer" style (when browsing page)
// to see what the printer style looks like.
$WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css', 'print, screen');
$WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
$WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
/**
 * The logo image appears on every page and links to the HomePage.
 */
$WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
/**
 * The Signature image is shown after saving an edited page. If this
 * is set to false then the "Thank you for editing..." screen will
 * be omitted.
 */
$WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
// Uncomment this next line to disable the signature.
//$WikiTheme->addImageAlias('signature', false);