From e10b15762c36aee2b3c2c6f8bed1e4392a0d1676 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 13 Apr 2005 11:07:43 +0000 Subject: [PATCH] I think I forgot to commit this --- skins/disabled/HTMLDump.php | 200 ++++++++++++++++++++++++++++++++++++ 1 file changed, 200 insertions(+) create mode 100644 skins/disabled/HTMLDump.php diff --git a/skins/disabled/HTMLDump.php b/skins/disabled/HTMLDump.php new file mode 100644 index 0000000000..5d943892d2 --- /dev/null +++ b/skins/disabled/HTMLDump.php @@ -0,0 +1,200 @@ +template = 'HTMLDumpTemplate'; + } + + function getNavigationLinks() { + $links = parent::getNavigationLinks(); + foreach ( $links as $index => $link ) { + if ( $link['href'] == 'recentchanges-url' ) { + unset( $links[$index] ); + } + if ( $link['href'] == 'randompage-url' ) { + unset( $links[$index] ); + } + } + return $links; + } + + function buildContentActionUrls() { + $content_actions = array(); + $nskey = $this->getNameSpaceKey(); + $content_actions[$nskey] = $this->tabAction( + $this->mTitle->getSubjectPage(), + $nskey, + !$this->mTitle->isTalkPage() ); + + $content_actions['talk'] = $this->tabAction( + $this->mTitle->getTalkPage(), + 'talk', + $this->mTitle->isTalkPage(), + '', + true); + return $content_actions; + } + + function makeBrokenLinkObj( &$nt, $text = '', $query = '', $trail = '', $prefix = '' ) { + if ( !isset( $nt ) ) { + return "{$prefix}{$text}{$trail}"; + } + + if ( $text == '' ) { + $text = $nt->getPrefixedText(); + } + return $prefix . $text . $trail; + } +} + +/** + * @todo document + * @package MediaWiki + * @subpackage Skins + */ +class HTMLDumpTemplate extends QuickTemplate { + /** + * Template filter callback for MonoBook 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() { + $this->modifySetup(); + $this->reallyExecute(); + } + + + function modifySetup() { + /* + foreach ( $this->data['navigation_urls'] as $index => $link ) { + if ( $link['text'] == 'recentchanges' ) { + unset( $this->data['navigation_urls'][$index] ); + } elseif ( $link['text'] */ + } + + function reallyExecute() { +?> + + + + html('headlinks') ?> + <?php $this->text('pagetitle') ?> + + + + + + + data['jsvarurl' ]) { ?> + + + data['nsclass' ]) { ?>class="text('nsclass') ?>"> +
+
+
+ + data['sitenotice']) { ?>
html('sitenotice') ?>
+

text('title') ?>

+
+

msg('tagline') ?>

+
html('subtitle') ?>
+ data['undelete']) { ?>
html('undelete') ?>
+ data['newtalk'] ) { ?>
html('newtalk') ?>
+ + html('bodytext') ?> + data['catlinks']) { ?> + +
+
+
+
+
+
+
Views
+
    + data['content_actions'] as $key => $action) { + ?>
  • class="" + >
  • +
+
+ + +
+
msg('navigation') ?>
+
+
    + data['navigation_urls'] as $navlink) { ?> +
  • +
+
+
+ data['language_urls'] ) { ?>
+
msg('otherlanguages') ?>
+
+
    + data['language_urls'] as $langlink) { ?> +
  • + +
  • + +
+
+
+ +
+
+ +
+ html('reporttime') ?> + + + -- 2.20.1