2 // Avoid direct call to this file.
3 // PHPWIKI_VERSION is defined in lib/prepend.php
4 if (!defined('PHPWIKI_VERSION')) {
12 * This file defines the Crao theme of PhpWiki.
15 require_once('lib/WikiTheme.php');
17 class WikiTheme_Crao extends WikiTheme {
20 // CSS file defines fonts, colors and background images for this
21 // style. The companion '*-heavy.css' file isn't defined, it's just
22 // expected to be in the same directory that the base style is in.
24 // This should result in phpwiki-printer.css being used when
25 // printing or print-previewing with style "PhpWiki" selected.
26 $this->setDefaultCSS('Crao',
27 array('' => 'crao.css',
30 // This allows one to manually select "Printer" style (when browsing page)
31 // to see what the printer style looks like.
32 //$this->addAlternateCSS(_("Printer"), 'phpwiki-printer.css');
33 //$this->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
34 //$this->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
38 * The logo image appears on every page and links to the HomePage.
40 //$this->addImageAlias('logo', 'logo.png');
43 * The Signature image is shown after saving an edited page. If this
44 * is not set, any signature defined in index.php will be used. If it
45 * is not defined by index.php or in here then the "Thank you for
46 * editing..." screen will be omitted.
49 // Comment this next line out to enable signature.
50 $this->addImageAlias('signature', false);
55 $this->setLinkIcon('http');
56 $this->setLinkIcon('https');
57 $this->setLinkIcon('ftp');
58 $this->setLinkIcon('mailto');
59 $this->setLinkIcon('interwiki');
60 $this->setLinkIcon('*', 'url');
62 $this->setButtonSeparator(HTML::raw(" | "));
65 * WikiWords can automatically be split by inserting spaces between
66 * the words. The default is to leave WordsSmashedTogetherLikeSo.
68 $this->setAutosplitWikiWords(false);
71 * You may adjust the formats used for formatting dates and times
72 * below. (These examples give the default formats.)
73 * Formats are given as format strings to PHP strftime() function See
74 * http://www.php.net/manual/en/function.strftime.php for details.
75 * Do not include the server's zone (%Z), times are converted to the
78 //$this->setDateFormat("%B %d, %Y");
79 //$this->setTimeFormat("%I:%M %p");
82 * To suppress times in the "Last edited on" messages, give a
83 * give a second argument of false:
85 //$this->setDateFormat("%B %d, %Y", false);
86 $this->setDateFormat("%A %e %B %Y"); // must not contain time
87 //$this->setDateFormat("%x"); // must not contain time
88 $this->setTimeFormat("%H:%M:%S");
89 //$this->setTimeFormat("%X");
94 $WikiTheme = new WikiTheme_Crao('Crao');
100 // c-hanging-comment-ender-p: nil
101 // indent-tabs-mode: nil