From 4cbce369abb1e6398cd413f1584132e50b708dcd Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Wed, 24 Mar 2004 22:02:47 +0000 Subject: [PATCH] Smarty - include in LocalSettings, updated css --- config/index.php | 4 +++ stylesheets/montparnasse.css | 66 ++++++++++++++++++++++++++++++++++-- stylesheets/paddington.css | 65 +++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+), 3 deletions(-) diff --git a/config/index.php b/config/index.php index 4e2d3bf3cd..8291146d92 100644 --- a/config/index.php +++ b/config/index.php @@ -659,9 +659,13 @@ if( \$wgCommandLineMode ) { " . ($conf->Encoding ? "\$wgInputEncoding = \$wgOutputEncoding = \"{$conf->Encoding}\";" : "" ) . " \$wgUsePHPTal = false; +\$wgUseSmarty = false; if ( \$wgUsePHPTal ) { ini_set( \"include_path\", \"\$IP/PHPTAL-NP-0.7.0/libs:\" . ini_get(\"include_path\") ); } +if ( \$wgUseSmarty ) { + ini_set( \"include_path\", \"\$IP/Smarty-2.6.2/libs/:\" . ini_get(\"include_path\") ); +} "; } diff --git a/stylesheets/montparnasse.css b/stylesheets/montparnasse.css index 16b7c4eac1..ee2595d51a 100644 --- a/stylesheets/montparnasse.css +++ b/stylesheets/montparnasse.css @@ -146,7 +146,67 @@ p.subtitle , p.languages , p.actions { /* Okay, we can let the others back in.... */ - - - +/* Print-specific things to hide */ +.urlexpansion, .printfooter { + display: none; + } +/* automatically generated edit summaries */ +#autocomment { color: gray; } + +/* Table of contents */ +#toc { + border: 1px solid #8888aa; + background-color: #f7f8ff; + padding: 5px; + font-size: 95%; +} +.tocindent { + margin-left: 2em; +} +.tocline { + margin-bottom: 0px; +} +.toctoggle, .editsection { + font-size: smaller; +} + +/* images */ +div.floatright { float: right; margin: 0 0 1em 1em; } +div.floatright p { font-style: italic; } +div.floatleft { float: left; margin: 0.3em 0.5em 0.5em 0; } +div.floatleft p { font-style: italic; } + +/* thumbnails */ +div.thumbnail-none, div.thumbnail-right, div.thumbnail-left { + padding: 2px; + border:1px solid #8888aa; + background:#CCCCCC; + margin: 0.3em 0 0.5em; + font-size: 85%; + text-align: center; +} + +div.thumbnail-none p, div.thumbnail-right p, div.thumbnail-left p { + margin-top:3px; margin-bottom:3px; + text-align: left; +} + +div.thumbnail-right { + float: right; + margin-left:0.5em; +} + +div.thumbnail-left { + float: left; + margin-right:0.5em; +} +/* table standards */ +table.rimage { + float:right; + width:1pt; + margin-left:1em; + margin-bottom:1em; + text-align:center; + font-size:smaller; + } diff --git a/stylesheets/paddington.css b/stylesheets/paddington.css index ee456f848a..c1291079c2 100644 --- a/stylesheets/paddington.css +++ b/stylesheets/paddington.css @@ -120,3 +120,68 @@ p.languages { margin-left: 148px; } +/* Print-specific things to hide */ +.urlexpansion, .printfooter { + display: none; +} + +/* automatically generated edit summaries */ +#autocomment { color: gray; } + +/* Table of contents */ +#toc { + border: 1px solid #8888aa; + background-color: #f7f8ff; + padding: 5px; + font-size: 95%; +} +.tocindent { + margin-left: 2em; +} +.tocline { + margin-bottom: 0px; +} +.toctoggle, .editsection { + font-size: smaller; +} + +/* images */ +div.floatright { float: right; margin: 0 0 1em 1em; } +div.floatright p { font-style: italic; } +div.floatleft { float: left; margin: 0.3em 0.5em 0.5em 0; } +div.floatleft p { font-style: italic; } + +/* thumbnails */ +div.thumbnail-none, div.thumbnail-right, div.thumbnail-left { + padding: 2px; + border:1px solid #8888aa; + background:#CCCCCC; + margin: 0.3em 0 0.5em; + font-size: 85%; + text-align: center; +} + +div.thumbnail-none p, div.thumbnail-right p, div.thumbnail-left p { + margin-top:3px; margin-bottom:3px; + text-align: left; +} + +div.thumbnail-right { + float: right; + margin-left:0.5em; +} + +div.thumbnail-left { + float: left; + margin-right:0.5em; +} + +/* table standards */ +table.rimage { + float:right; + width:1pt; + margin-left:1em; + margin-bottom:1em; + text-align:center; + font-size:smaller; + } -- 2.20.1