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', array(''=> 'crao.css', 'print' => ''));
29 * The Signature image is shown after saving an edited page. If this
30 * is not set, any signature defined in index.php will be used. If it
31 * is not defined by index.php or in here then the "Thank you for
32 * editing..." screen will be omitted.
35 // Comment this next line out to enable signature.
36 $this->addImageAlias('signature', false);
41 $this->setLinkIcon('http');
42 $this->setLinkIcon('https');
43 $this->setLinkIcon('ftp');
44 $this->setLinkIcon('mailto');
45 $this->setLinkIcon('interwiki');
46 $this->setLinkIcon('*', 'url');
48 $this->setButtonSeparator(HTML::raw(" | "));
51 * WikiWords can automatically be split by inserting spaces between
52 * the words. The default is to leave WordsSmashedTogetherLikeSo.
54 $this->setAutosplitWikiWords(false);
57 * You may adjust the formats used for formatting dates and times
58 * below. (These examples give the default formats.)
59 * Formats are given as format strings to PHP strftime() function See
60 * http://www.php.net/manual/en/function.strftime.php for details.
61 * Do not include the server's zone (%Z), times are converted to the
64 //$this->setDateFormat("%B %d, %Y");
65 //$this->setTimeFormat("%I:%M %p");
68 * To suppress times in the "Last edited on" messages, give a
69 * give a second argument of false:
71 //$this->setDateFormat("%B %d, %Y", false);
72 $this->setDateFormat("%A %e %B %Y"); // must not contain time
73 //$this->setDateFormat("%x"); // must not contain time
74 $this->setTimeFormat("%H:%M:%S");
75 //$this->setTimeFormat("%X");
80 $WikiTheme = new WikiTheme_Crao('Crao');
86 // c-hanging-comment-ender-p: nil
87 // indent-tabs-mode: nil