From 55d09161923516513d19ded2a8b8a2edd9694664 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 2 Sep 2004 02:15:54 +0000 Subject: [PATCH] moving templates from /templates/ to /skins/ . xhtml_slim.pt is now MonoBook.pt, xhtml_minimal.pt is now Chick.pt, xhtml_slim_wikimediawiki.pt is now WikimediaWiki.pt --- includes/SkinPHPTal.php | 6 +- skins/Chick.php | 2 +- skins/Chick.pt | 100 ++++++++++++++++++++++++ skins/DaVinci.php | 1 + skins/Mono.php | 1 + skins/MonoBook.pt | 150 ++++++++++++++++++++++++++++++++++++ skins/WikimediaWiki.php | 7 +- skins/WikimediaWiki.pt | 164 ++++++++++++++++++++++++++++++++++++++++ 8 files changed, 424 insertions(+), 7 deletions(-) create mode 100644 skins/Chick.pt create mode 100644 skins/MonoBook.pt create mode 100644 skins/WikimediaWiki.pt diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index dc2272947c..ec79d3d0df 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -60,8 +60,8 @@ class SkinPHPTal extends Skin { function initPage( &$out ) { parent::initPage( $out ); - $this->skinname = 'davinci'; - $this->template = 'xhtml_slim'; + $this->skinname = 'monobook'; + $this->template = 'MonoBook'; } # initialize various variables and generate the template @@ -75,7 +75,7 @@ class SkinPHPTal extends Skin { extract( $wgRequest->getValues( 'oldid', 'diff' ) ); $this->initPage( $out ); - $tpl = new PHPTAL($this->template . '.pt', 'templates'); + $tpl = new PHPTAL($this->template . '.pt', 'skins'); #if ( $wgUseDatabaseMessages ) { // uncomment this to fall back to GetText $tpl->setTranslator(new MediaWiki_I18N()); diff --git a/skins/Chick.php b/skins/Chick.php index db7ad68b63..eb17b14e11 100644 --- a/skins/Chick.php +++ b/skins/Chick.php @@ -5,7 +5,7 @@ class SkinChick extends SkinPHPTal { function initPage( &$out ) { SkinPHPTal::initPage( $out ); $this->skinname = 'chick'; - $this->template = 'xhtml_minimal'; + $this->template = 'Chick'; } function suppressUrlExpansion() { return true; } function printSource() { return ''; } diff --git a/skins/Chick.pt b/skins/Chick.pt new file mode 100644 index 0000000000..24943f3eb9 --- /dev/null +++ b/skins/Chick.pt @@ -0,0 +1,100 @@ + + + + + ${headlinks} + Exciting xhtml slimfast + + + + + + + + + +
+

Leonardo da Vinci

+
From Wikipedia, the free encyclopedia.
+
+
+
+ + + ${bodytext} + +
+ +
+ Views: + Linktext +
+ +
+ Personal Tools: + Log in +
+ +
+ Navigation: + Main Page + Community Portal + Current Events + Recent Changes + Random Page + Help + Donations +
+ +
+ Toolbox: + What links here + Related Changes + + Feeds: + rss + + Contributions + Email this user + Upload a file + Special Pages +
+ +
+ Other languages: + English +
+ +
+ + + ${reporttime} + + diff --git a/skins/DaVinci.php b/skins/DaVinci.php index 34889944d1..13e65151ab 100644 --- a/skins/DaVinci.php +++ b/skins/DaVinci.php @@ -6,6 +6,7 @@ class SkinDaVinci extends SkinPHPTal { function initPage( &$out ) { SkinPHPTal::initPage( $out ); $this->skinname = 'davinci'; + $this->template = 'MonoBook'; } } ?> diff --git a/skins/Mono.php b/skins/Mono.php index 91371f7cea..7b8d629015 100644 --- a/skins/Mono.php +++ b/skins/Mono.php @@ -6,6 +6,7 @@ class SkinMono extends SkinPHPTal { function initPage( &$out ) { SkinPHPTal::initPage( $out ); $this->skinname = 'mono'; + $this->template = 'MonoBook'; } } ?> diff --git a/skins/MonoBook.pt b/skins/MonoBook.pt new file mode 100644 index 0000000000..33b6b8f966 --- /dev/null +++ b/skins/MonoBook.pt @@ -0,0 +1,150 @@ + + + + + ${headlinks} + Exciting xhtml slimfast + + + + + + + + + +
+
+
+ +
+

Leonardo da Vinci

+
+

From Wikipedia, the free encyclopedia.

+
+
+
+ + ${bodytext} + + +
+
+
+
+
+
+
Views
+ +
+
+
Personal Tools
+
+ +
+
+ + + + +
+
Language
+
+ +
+
+
+
+ +
+ ${reporttime} + + diff --git a/skins/WikimediaWiki.php b/skins/WikimediaWiki.php index 2d316cce91..78236e7ab8 100644 --- a/skins/WikimediaWiki.php +++ b/skins/WikimediaWiki.php @@ -2,16 +2,17 @@ # Tentative to make a skin for wikimedia.org # $Id$ -require_once( 'Skin.php' ); require_once($IP.'/includes/SkinPHPTal.php'); $wgExtraSkins['wikimediawiki'] = 'Wikimediawiki'; +require_once('MonoBook.php'); + class SkinWikimediawiki extends SkinMonoBook { function initPage( &$out ) { SkinPHPTal::initPage( $out ); - $this->skinname = "wikimediawiki"; - $this->template = "xhtml_slim_wikimediawiki"; + $this->skinname = 'wikimediawiki'; + $this->template = 'WikimediaWiki'; } # build array of common navigation links diff --git a/skins/WikimediaWiki.pt b/skins/WikimediaWiki.pt new file mode 100644 index 0000000000..a33daebeb3 --- /dev/null +++ b/skins/WikimediaWiki.pt @@ -0,0 +1,164 @@ + + + + + ${headlinks} + Exciting xhtml slimfast + + + + + + + + + +
+
+
+ +
+

Leonardo da Vinci

+
+

From Wikipedia, the free encyclopedia.

+
+
+
+ + ${bodytext} + + +
+
+
+
+
+
+
Views
+ +
+
+
Personal Tools
+
+ +
+
+ + + + +
+
Language
+
+ +
+
+
+
+ +
+ ${reporttime} + + -- 2.20.1