From d31fa22d52574e66c5167d55b36a14566fcd165c Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 22 Mar 2004 23:44:50 +0000 Subject: [PATCH] xhtml tweaks, added classes for special page styling --- includes/Skin.php | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 9d0b8154e1..2836a244da 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -15,6 +15,10 @@ if( $wgUseSmarty ) { $wgValidSkinNames[] = "Smarty"; $wgValidSkinNames[] = "Montparnasse"; } +if( $wgUsePHPTal ) { + #$wgValidSkinNames[] = "PHPTal"; + $wgValidSkinNames[] = "DaVinci"; +} include_once( "RecentChange.php" ); @@ -290,7 +294,7 @@ class Skin { } $s .= "\n
\n
" . - ""; + "
"; $shove = ($qb != 0); $left = ($qb == 1 || $qb == 3); @@ -363,7 +367,7 @@ class Skin { $s = "\n
\n"; $s .= "\n
"; + $s .= "
"; wfProfileOut( "$fname-1" ); wfProfileIn( "$fname-2" ); @@ -687,7 +691,7 @@ class Skin { $titleObj = Title::newFromText( $mp ); $s = "escapeLocalURL() . "\">getLogo() . "\" alt=\"" . "[{$mp}]\">"; + . $this->getLogo() . "\" alt=\"" . "[{$mp}]\" />"; return $s; } @@ -1420,7 +1424,7 @@ class Skin { global $wgOut; if ( "" == $alt ) { $alt = $this->fnamePart( $url ); } - $s = "\"{$alt}\""; + $s = "\"{$alt}\""; return $s; } @@ -1519,11 +1523,11 @@ class Skin { { $s = str_replace( "$1", $name, wfMsg("missingimage") ); } else { - $s = "" . - "\"{$alt}\""; + $s = "\n \n" . + " \"{$alt}\"\n "; } if ( "" != $align ) { - $s = "
{$s}
"; + $s = "
{$s}\n
"; } return $prefix.$s.$postfix; } @@ -1665,14 +1669,14 @@ class Skin { if ( $thumbUrl == "" ) { $s .= str_replace( "$1", $name, wfMsg("missingimage") ); } else { - $s .= "" . - "\"{$alt}\"" . - "" . - "\"{$more}\""; - } - $s .= "{$label}

"; + $s .= "\n".' '."\n". + ' '.$alt.'' ."\n". + ' ' ."\n". + ' '.$more.' '."\n"; + } + $s .= ' '.$label."

\n"; return $s; } @@ -1720,7 +1724,7 @@ class Skin { function beginImageHistoryList() { $s = "\n

" . wfMsg( "imghistory" ) . "

\n" . - "

" . wfMsg( "imghistlegend" ) . "\n

    "; + "

    " . wfMsg( "imghistlegend" ) . "\n

      "; return $s; } @@ -1744,7 +1748,7 @@ class Skin { # Spacer image $r = "" ; - $r .= "" ; $r .= "" ; + $r .= "" ; $r .= "" ; if ( $rc_type == RC_MOVE ) { $r .= "  "; @@ -1874,7 +1878,7 @@ class Skin { # Get rc_xxxx variables extract( $rcObj->mAttribs ); - $r .= ""; + $r .= ""; $r .= "       " ; if ( $rc_new ) $r .= $N ; else $r .= " " ; @@ -1955,7 +1959,7 @@ class Skin { $s = ""; if ( $date != $this->lastdate ) { if ( "" != $this->lastdate ) { $s .= "
    \n"; } - $s .= "

    {$date}

    \n
      "; + $s .= "

      {$date}

      \n
        "; $this->lastdate = $date; } $s .= "
      • "; @@ -2370,5 +2374,9 @@ include_once( "SkinCologneBlue.php" ); if( $wgUseSmarty ) { include_once( "SkinSmarty.php" ); } +if( $wgUsePHPTal ) { + include_once( "SkinPHPTal.php" ); +} + ?> -- 2.20.1