2 // Avoid direct call to this file.
3 // PHPWIKI_VERSION is defined in lib/prepend.php
4 if (!defined('PHPWIKI_VERSION')) {
10 * This file defines the Crao theme of PhpWiki.
13 require_once 'lib/WikiTheme.php';
15 class WikiTheme_Crao extends WikiTheme {
18 // CSS file defines fonts, colors and background images for this
19 // style. The companion '*-heavy.css' file isn't defined, it's just
20 // expected to be in the same directory that the base style is in.
22 // This should result in phpwiki-printer.css being used when
23 // printing or print-previewing with style "PhpWiki" selected.
24 $this->setDefaultCSS('Crao', array(''=> 'crao.css', 'print' => ''));
27 * The Signature image is shown after saving an edited page. If this
28 * is not set, any signature defined in index.php will be used. If it
29 * is not defined by index.php or in here then the "Thank you for
30 * editing..." screen will be omitted.
33 // Comment this next line out to enable signature.
34 $this->addImageAlias('signature', false);
39 $this->setLinkIcon('http');
40 $this->setLinkIcon('https');
41 $this->setLinkIcon('ftp');
42 $this->setLinkIcon('mailto');
43 $this->setLinkIcon('interwiki');
44 $this->setLinkIcon('*', 'url');
46 $this->setButtonSeparator(HTML::raw(" | "));
49 * WikiWords can automatically be split by inserting spaces between
50 * the words. The default is to leave WordsSmashedTogetherLikeSo.
52 $this->setAutosplitWikiWords(false);
55 * You may adjust the formats used for formatting dates and times
56 * below. (These examples give the default formats.)
57 * Formats are given as format strings to PHP strftime() function See
58 * http://www.php.net/manual/en/function.strftime.php for details.
59 * Do not include the server's zone (%Z), times are converted to the
62 //$this->setDateFormat("%B %d, %Y");
63 //$this->setTimeFormat("%I:%M %p");
66 * To suppress times in the "Last edited on" messages, give a
67 * give a second argument of false:
69 //$this->setDateFormat("%B %d, %Y", false);
70 $this->setDateFormat("%A %e %B %Y"); // must not contain time
71 //$this->setDateFormat("%x"); // must not contain time
72 $this->setTimeFormat("%H:%M:%S");
73 //$this->setTimeFormat("%X");
78 $WikiTheme = new WikiTheme_Crao('Crao');
84 // c-hanging-comment-ender-p: nil
85 // indent-tabs-mode: nil