From d9dc19768289cabcf452d8e2eb2a1defd25e9ab2 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Wed, 16 Jan 2008 02:15:06 +0000 Subject: [PATCH] new skin: modern --- skins/Modern.deps.php | 13 ++ skins/Modern.php | 279 +++++++++++++++++++++++++++ skins/modern/bullet.gif | Bin 0 -> 50 bytes skins/modern/discussionitem_icon.gif | Bin 0 -> 949 bytes skins/modern/external.png | Bin 0 -> 165 bytes skins/modern/file_icon.gif | Bin 0 -> 921 bytes skins/modern/footer-grad.png | Bin 0 -> 149 bytes skins/modern/link_icon.gif | Bin 0 -> 942 bytes skins/modern/lock_icon.gif | Bin 0 -> 918 bytes skins/modern/mail_icon.gif | Bin 0 -> 918 bytes skins/modern/main.css | 279 +++++++++++++++++++++++++++ 11 files changed, 571 insertions(+) create mode 100644 skins/Modern.deps.php create mode 100644 skins/Modern.php create mode 100644 skins/modern/bullet.gif create mode 100644 skins/modern/discussionitem_icon.gif create mode 100644 skins/modern/external.png create mode 100644 skins/modern/file_icon.gif create mode 100644 skins/modern/footer-grad.png create mode 100644 skins/modern/link_icon.gif create mode 100644 skins/modern/lock_icon.gif create mode 100644 skins/modern/mail_icon.gif create mode 100644 skins/modern/main.css diff --git a/skins/Modern.deps.php b/skins/Modern.deps.php new file mode 100644 index 0000000000..73adcb40cc --- /dev/null +++ b/skins/Modern.deps.php @@ -0,0 +1,13 @@ +skinname = 'modern'; + $this->stylename = 'modern'; + $this->template = 'ModernTemplate'; + } +} + +/** + * @todo document + * @addtogroup Skins + */ +class ModernTemplate extends QuickTemplate { + /** + * Template filter callback for Modern skin. + * Takes an associative array of data set from a SkinTemplate-based + * class, and a wrapper for MediaWiki's localization database, and + * outputs a formatted page. + * + * @access private + */ + function execute() { + global $wgUser; + $skin = $wgUser->getSkin(); + + // Suppress warnings to prevent notices about missing indexes in $this->data + wfSuppressWarnings(); + +?> +data['xhtmlnamespaces'] as $tag => $ns) { + ?>xmlns:xml:lang="text('lang') ?>" lang="text('lang') ?>" dir="text('dir') ?>"> + + + html('headlinks') ?> + <?php $this->text('pagetitle') ?> + + data['printable']) ) { ?>media="print" href="text('stylepath') ?>/common/commonPrint.css?" /> + + + data ); ?> + + + +html('headscripts') ?> +data['jsvarurl' ]) { ?> + + +data['pagecss' ]) { ?> + +data['usercss' ]) { ?> + +data['userjs' ]) { ?> + +data['userjsprev']) { ?> + +data['trackbackhtml']) print $this->data['trackbackhtml']; ?> + +data['body_ondblclick']) { ?> ondblclick="text('body_ondblclick') ?>" +data['body_onload' ]) { ?> onload="text('body_onload') ?>" + class="mediawiki text('nsclass') ?> text('dir') ?> text('pageclass') ?>"> + + +
+

data['displaytitle']!=""?$this->html('title'):$this->text('title') ?>

+
+ +
+ +
+ + + data['sidebar'] as $bar => $cont) { ?> +
tooltip('p-'.$bar) ?>> +
+
+ +
+
+ + + + + + +
+
msg('toolbox') ?>
+
+ +
+
+ + +data['language_urls'] ) { ?> +
+
msg('otherlanguages') ?>
+
+
    +data['language_urls'] as $langlink) { ?> +
  • + +
+
+
+ + +
+ + +
+
msg('views') ?>
+
+ +
+
+ + +
+ data['sitenotice']) { ?>
html('sitenotice') ?>
+ +

msg('tagline') ?>

+
html('subtitle') ?>
+ + data['undelete']) { ?>
html('undelete') ?>
+ data['newtalk'] ) { ?>
html('newtalk') ?>
+ data['showjumplinks']) { ?> + + html('bodytext') ?> + data['catlinks']) { ?> +
+ +
+ +
+ + +
+
msg('personaltools') ?>
+
+ +
+
+ + + + + + html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?> +html('reporttime') ?> +data['debug'] ): ?> + + + + diff --git a/skins/modern/bullet.gif b/skins/modern/bullet.gif new file mode 100644 index 0000000000000000000000000000000000000000..b43de48a4701e5123846ee5f0357b65065eca04a GIT binary patch literal 50 zcmZ?wbhEHbWM$xGXkcJS?wRxd|9{1wEQ|~cj0`#qKmd|qVB+lQU%C4M|KgUF4AuZl Cg$<e4KpXQG};@9n0zwW&DZTIzWdv1I`eE9IGBbP27zkK-4kK^}#oVfqv?4uv& zAN{=i^w*VVzpg&}b?eoyyRU!Wd;Rd6Ymss zZewO(k>dE2+|J9S5+qQu;bBwr43)+YI}8uEatX^@B+OXAkl`s~5+~5X(B#0x#m&O7 zSE8AfOHkG*B*B2;07o|)!wS}f15V6a(*-9@Nhn)#XG`HzE|b;U*WYhqWMr@g0JP%O A$^ZZW literal 0 HcmV?d00001 diff --git a/skins/modern/external.png b/skins/modern/external.png new file mode 100644 index 0000000000000000000000000000000000000000..419c06fb960b0b665791c90044a78621616a4cb8 GIT binary patch literal 165 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2VGmzZ%#=aj&i3a$DxTeiKV?6WB%rpNP(#|lX z{f7XTR~%D;3fN16{DL7O3{u|AZa^UmPZ!4!iE!1^jzSC$EX7 z>#2$@InOtpuqyg8<+R}9g-+|v&13&5`dCp`{|95_8^+nQkC>(b&0z3!^>bP0l+XkK DO07OF literal 0 HcmV?d00001 diff --git a/skins/modern/file_icon.gif b/skins/modern/file_icon.gif new file mode 100644 index 0000000000000000000000000000000000000000..847f6485efb453b6340f92f6d40db60a776a3b92 GIT binary patch literal 921 zcmZ?wbhEHb6krfw_|CxK=jZoda8h@7ckkX0E6#q|aPjM=%U^d~`?l-)x4k#N9k~7d z@SX3+?tMS`;K!MVKh8h?dGX25tIvO4dG_o2i=Ve%{<`z}*WK5@?!Wo<=-uxp?|(n} z@cY@vKQBN1dGqDZyRUygeE<9D``<4={(bxP@5k@|zyAFH{pbJRfB*me`ws*RqhK@y z208>3f3h$#FfcOcfE)tK6AT<>49pxd9vc=MY-VTGh~Z#JWMI@#TGVjEVBwKYL2a=X ziH$7`3<{=vEfq~J9Q@2dT_PF>j&KOb8bwSnNOlpXJ&Y9{gTtIdEy>Ygr+Asp9P4=xl08ppixp0tmzs>ZdH oY9Y@{cQ@`XF*kM=$_WnTw<=(|8@@N_Do_i9r>mdKI;Vst0HqovSO5S3 literal 0 HcmV?d00001 diff --git a/skins/modern/link_icon.gif b/skins/modern/link_icon.gif new file mode 100644 index 0000000000000000000000000000000000000000..815ccb1b1ca04a07ba4d90178e909fae30c26889 GIT binary patch literal 942 zcmZ?wbhEHb6krfw_|Cv!Rv=?lA?xSoXWJlW-y-KVSut>yO6Y90u(|3{^EKiY>ZB|; zOkZxCv&yVstySqp`?_r&VM~4{tofO<@n^y2pVhm6{ui9oveU17U)b~`X|s=J%{`X8 z_+)8!cX!*qpKH!EbshRO`{b|rr+=-w_-os>Upue;I&ts!&F7~tKmL2;#ot%2UOjpD z@5TFnAHM$k_VXXZC>RX^`i6kwPZmZ71~CR5khP#Z!NAeYpvxiSv0=f%W)9Y}2n~gW zt*x8_Gc*(zEIi1^En`zK;ZS1}lNe`NMFHdCR#5>7367NoM_PGgVm9o!aNq#LG}(YD zH$E&p+9j-|{lH}6qLwxxO`nPx4vguX!UB2@9F9&c?3_CCS_u~#8kqzYX2t0wJOHxf cG+a)s+Q8h%$jA^gqaky7k&s78}-D?A&I)Z>QO@L#8K>np`|*eD{X({oDFi zE*RgsW_bIC;e*=-5AFbw(b-ecPae2GdEoWzQPlG%u`iyaPntAo(V|7`)~&m7ZO+@* z-S6Kn{P1r1M_wNsX|9<)Z@9%#g zU>F6XAuuo@p!k!8k%2)62!Q~UCm1-286r7EW-LrN*vP@2Cb5v|CRNKE3`spQHjC~p=q<3mGg8zU>9PR54^ tj;#E4+4s(5Iy#-7z{DZpaNt1WMLy5mM^`KvnNACc9q!s|V4%QY4FEFIiq8N5 literal 0 HcmV?d00001 diff --git a/skins/modern/mail_icon.gif b/skins/modern/mail_icon.gif new file mode 100644 index 0000000000000000000000000000000000000000..50a87a9a0689ac0dbaed5410b2c7f0fd107ae7b2 GIT binary patch literal 918 zcmZ?wbhEHb6krfw_|CxK=jWHQ@aa2qg%2+JpA!8SFJ9cV`Bm@U4;wFh+IIQ#&a0pI zUjMT1#+O64z8<~v_2j*8r|y5d@c8@1$KS6#`*G{#&pWSv-hK7+{+nM9-~M{??$?Wt zzh8d({rdBtw_pBz`1a@1_rG6%{{8v;-=Dw#{{8#^R$To5|Nji5U^D~4HOux0sbe9%m4rY literal 0 HcmV?d00001 diff --git a/skins/modern/main.css b/skins/modern/main.css new file mode 100644 index 0000000000..f3a3eb0db6 --- /dev/null +++ b/skins/modern/main.css @@ -0,0 +1,279 @@ +body { + margin: 0 0 0 0; + padding: 0 0 0 0; + font-size: 10pt; + + font-family: sans-serif; + color: black; + background-color: #f0f0f0; +} + +#mw_header { + position: absolute; + top: 0; + left: 0; + margin: 0 0 0 0; + padding: 0 0em 0 0em; + border: none; + height: 2em; + width: 100%; + + background-color: #003366; + color: white; +} + +#mw_header h1 { + margin: 0 0 0 0.5em; + padding: 0 0 0 0; + text-decoration: none; + font-size: 150%; +} + +#p-personal { + position: absolute; + top: 2em; + left: 0; + height: 1.5em; + margin: 0 0 0 0; + padding: 0 0 0 0; + width: 100%; + +} + +#p-personal div.pBody { + margin: 0 0 0 0; + padding: 0 0 0 0; + height: 1.5em; + font-variant: small-caps; +} + +#p-personal h5 { + display: none; +} + +#p-personal ul { + margin: 0 0 0 0; + padding: 0 0 0 0; + display: block; + height: 1.5em; + background-color: #3c78b5; +} + +#p-personal li { + display: block; float: left; + height: 1.5em; + margin: 0 0 0 0; + vertical-align: middle; + + font-weight: bold; + text-transform: lowercase; +} + +#p-personal li a { + text-decoration: none; + color: white; + padding: 0 1em 0 1em; +} + +#p-personal li a:hover { + text-decoration: none; + color: white; +} + +#p-personal li:hover { + background-color: #003366; +} + +#jump-to-nav { + display: none; +} + +#mw_content { + margin: 0 0 0 14em; + + background-color: white; + border-top: solid 1px #bbbbbb; + border-left: solid 1px #bbbbbb; + border-bottom: solid 1px #bbbbbb; + + line-height: 1.5em; + padding: 1em 1em 1em 1em; +} + +#mw_portlets { + width: 14em; + float: left; + + border-right: solid 1px #bbbbbb; + background-color: #f0f0f0; +} + +#mw_main { + padding: 0 0 0 0; + margin: 0 0 0 0; + margin-top: 3.5em; +} + +#mw_clear { + margin: 0 0 0 0; + padding: 0 0 0 0; + clear: both; +} + +.portlet { + padding: 0 0 0 0; + margin: 0 0 0 0; +} + +.portlet div.pBody { + padding: 1em 0 1em 0; +} + +#searchBody { + text-align: center; +} + +#searchInput { + display: block; + margin-left: auto; + margin-right: auto; + clear: both; +} + +.portlet h5 { + padding: 0.3em 0 0.3em 1em; + margin: 0 0 0 0; + background-color: #dddddd; + font-weight: bold; + border-bottom: solid 1px #3c78b5; +} + +.portlet ul { + margin: 0 0 0 1.5em; + padding: 0 0 0 0; +} + +li { + list-style-image: url(bullet.gif); +} + +#p-cactions { + height: 1.5em; + display: block; + padding: 0 0 0 0; +} + +#p-cactions div.pBody { + margin: 0 0 0 0; + padding: 0 0 0 0; +} + +#p-cactions a, +#p-cactions a:hover { + color: black; + text-decoration: none; +} + +#p-cactions ul { + display: inline; + margin: 0 0 0 0; + padding: 0 0 0 0; +} + +#p-cactions li { + margin: 0 0.5em 0 0.5em; + padding: 0 0.2em 0 0.2em; + display: block; + float: left; + height: 1.5em; + text-transform: lowercase; +} + +#p-cactions li.selected { + background-color: #bbbbbb; +} + +#p-cactions li a, +#p-cactions li a:hover, +#p-cactions li a:visited { + text-decoration: underline; + color: #003366; +} + +#p-cactions li.selected a, +#p-cactions li.selected a:hover, +#p-cactions li.selected a:visited { + text-decoration: none; + color: white; +} + +#p-cactions h5 { + display: none; +} + +#siteSub { + display: none; +} + +#footer { + background-color: #f0f0f0; + background: url(footer-grad.png) repeat-x 0 0; + padding: 10px 1em 0 1em; + + color: #444444; +} + +#footer a, +#footer a:hover, +#footer a:visited { + color: #444444; + text-decoration: underline; +} + +img { + border: none; +} + +#footer li { + display: inline; + list-style-type: none; + padding: 0 0 0 0; + margin: 0 0 0 0; +} + +#footer ul { + padding: 0 0 0 0; + margin: 0 0 0 0; +} + +div.printfooter { + display: none; +} + +p { + margin: 0 0 0 0; +} + +#contentSub { + color: #888; + font-size: small; + padding-left: 2em; +} + +#mw_portlets form { + margin: 0 0 0 0; + padding: 0 0 0 0; +} + +a, a:hover, a:visited { + text-decoration: underline; + color: #003366; +} + +span.editsection { + font-size: small; +} + +h1, h2 { + border-bottom: solid 1px #003366; +} -- 2.20.1