From 81f17df33b1b8d2a2d50feb04e368f3ac6e134f6 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Thu, 20 May 2004 10:44:47 +0000 Subject: [PATCH] Removed CardSet, not needed with Gabriel's solution --- includes/CardSet.php | 48 ------------------------- includes/Skin.php | 7 ---- includes/TabbedCardSet.php | 74 -------------------------------------- 3 files changed, 129 deletions(-) delete mode 100644 includes/CardSet.php delete mode 100644 includes/TabbedCardSet.php diff --git a/includes/CardSet.php b/includes/CardSet.php deleted file mode 100644 index 956a18e26c..0000000000 --- a/includes/CardSet.php +++ /dev/null @@ -1,48 +0,0 @@ -mLabels = array(); - $this->mBodies = array(); - $this->mTitle = $title; - } - - // Add a card to the set. The body of the card is expected to be - // HTML, not wikitext. - function addCard( $label, $body ) - { - $this->mLabels[] = $label; - $this->mBodies[] = $body; - } - - // Return the HTML of this CardSet - function renderToOutpage( &$out ) - { - for ( $i=0; $imLabels ); $i++ ) - { - $s .= "
\n" . $this->mLabels[$i] . "\n" - . $this->mBodies[$i] . "
\n"; - } - - $out->addHTML( $s ); - } - -} // end of: class CardSet - -?> diff --git a/includes/Skin.php b/includes/Skin.php index 8ccb6f2aa3..336a868c58 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2,7 +2,6 @@ require_once( "Feed.php" ); require_once( "Image.php" ); -require_once( "CardSet.php" ); # See skin.doc @@ -2698,12 +2697,6 @@ class Skin { return $toolbar; } - // Return a new cardset. - // By overloading this function, Skins can alter the appearance of e.g. the preferences - function newCardSet( $title = "") - { - return new CardSet( $title ); - } } require_once( "SkinStandard.php" ); diff --git a/includes/TabbedCardSet.php b/includes/TabbedCardSet.php deleted file mode 100644 index 59b7fe424d..0000000000 --- a/includes/TabbedCardSet.php +++ /dev/null @@ -1,74 +0,0 @@ -
\n"; - - for ( $i=0; $imLabels ); $i++ ) - { - $s .= "

". - $this->mLabels[$i] . "

" . $this->mBodies[$i] . "
\n\n"; - } - $s .= "
\n\n
\n
    \n"; - - for ( $i=0; $imLabels ); $i++ ) - { - $selected = ($i==0 ? "class=\"selected\"" : ""); - $s .= "
  • ". - $this->mLabels[$i] . "
  • "; - } - - $s .= "
\n\n"; - - $out->addScript(" - - " ); - - $out->setOnloadHandler( $out->getOnloadHandler() . "inittabs();" ); - $out->addHTML( $s ); - } - -} // end of: class CardSet - -?> -- 2.20.1