GWiki:Fichier modifié
Révision datée du 31 mars 2009 à 22:39 par Ouroboros (discussion | contributions) (Ajoût de la bannière de publicité.)
Liste des fichiers modifiés
/includes/Skin.php
if ( !empty( $allCats['normal'] ) ) { $t = $embed . implode ( "{$pop} {$sep} {$embed}" , $allCats['normal'] ) . $pop; ##### HACK GWiki (Catégories contenant des parenthèses cachées) ##### $t = preg_replace('% \\| <span[^>]*>([^\\(\\)>]*?)\\s\\((.*?)(Drop|Collection|Recyclage|Vente)\\)</a></span>%s', '', $t); ##### END HACK ##### $msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escapenoentities' ), count( $allCats['normal'] ) ); $s .= '<div id="mw-normal-catlinks">' . $this->makeLinkObj( Title::newFromText( wfMsgForContent('pagecategorieslink') ), $msg ) . $colon . $t . '</div>'; }
function getPoweredBy() { global $wgStylePath; ##### HACK GWiki (Modification chemin du logo) ##### $url = htmlspecialchars( "$wgStylePath/monobook/copyright/mediawiki.png" ); ##### END HACK ##### $img = '<a href="http://www.mediawiki.org/"><img src="'.$url.'" alt="Powered by MediaWiki" /></a>'; return $img; }
/includes/SquidUpdate.php
} else { $msg = 'PURGE ' . $firsturl . " HTTP/1.0\r\n". "Connection: Keep-Alive\r\n\r\n"; #$this->debug($msg); @fputs($socket,$msg); #$this->debug("..."); # HACK GWiki : @fread est trop lent, le test qui en découle est supprimé, on part du principe que Squid ne répondra que par des codes 200 et 404 # $res = @fread($socket,512); #$this->debug("\n"); /* Squid only returns http headers with 200 or 404 status, if there's more returned something's wrong */ # if (strlen($res) > 250) { # fclose($socket); # $failed = true; # $totalsockets -= $sockspersq; # } else { @stream_set_blocking($socket,false); $sockets[] = $socket; # } } } else { /* open the remaining sockets for this server */
/includes/media/Bitmap.php
if ( $mimeType == 'image/jpeg' ) { ##### HACK GWiki (quality 90 au lieu de 80 par défaut) ##### $quality = "-quality 90"; // 80% ##### END HACK ##### # Sharpening, see bug 6193 if ( ( $physicalWidth + $physicalHeight ) / ( $srcWidth + $srcHeight ) < $wgSharpenReductionThreshold ) { $sharpen = "-sharpen " . wfEscapeShellArg( $wgSharpenParameter ); }
/includes/GlobalFunctions.php
return $wgShowHostnames ##### HACK GWiki (Affichage nom d'hôte et temps de génération) ##### ? sprintf( "Page générée par %s en %01.3f secondes", wfHostname(), $elapsed ) : sprintf( "Page générée en %01.3f secondes", $elapsed ); ##### END HACK #####
/includes/Wiki.php
// Namespace might change when using redirects // Check for redirects ... $file = $title->getNamespace() == NS_IMAGE ? $article->getFile() : null; if( ( $action == 'view' || $action == 'render' ) // ... for actions that show content && !$request->getVal( 'oldid' ) && // ... and are not old revisions ##### HACK GWiki (Correction des redirects dans l'espace de nom Image:) ##### $request->getVal( 'redirect' ) != 'no'/* && // ... unless explicitly told not to // ... and the article is not a non-redirect image page with associated file !( is_object( $file ) && $file->exists() && !$file->getRedirected() ) */) ##### END HACK #####
/includes/templates/Userlogin.php
Ajoût de sauts à la ligne
<input type='submit' name="wpLoginattempt" id="wpLoginattempt" tabindex="5" value="<?php $this->msg('login') ?>" /> <?php if( $this->data['useemail'] && $this->data['canreset']) { ?><input type='submit' name="wpMailmypassword" id="wpMailmypassword" tabindex="6" value="<?php $this->msg('mailmypassword') ?>" /> <?php } ?><!-- HACK GWiki --><br /><br /><br /><br /><br /><!-- END HACK --> </td>
/skins/MonoBook.php
Ajoût feuilles de style
<?php } ?><meta http-equiv="imagetoolbar" content="no" /><![endif]--> <!-- Styles supplementaires GWiki --> <link rel="stylesheet" type="text/css" href="<?php $this->text('stylepath') ?>/monobook/css/gwiki.css?<?php echo $GLOBALS['wgStyleVersion'] ?>" /> <!-- Changement du background toutes les 24h --> <link rel="stylesheet" type="text/css" href="<?php $this->text('stylepath') ?>/monobook/php/background.php" /> <?php print Skin::makeGlobalVariablesScript( $this->data ); ?>
Ajoût JavaScripts
<!-- Scripts supplementaires GWiki --> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/monobook/js/jquery.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/monobook/js/jquery.cycle.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/monobook/js/gwiki.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script> </head>
Ajoût de la balise google et déplacement du bloc 'p-logo' (voir plus bas)
<!--googleoff: snippet--> <!-- pub --> <?php global $wgUser; if (!$wgUser->isLoggedIn()) { ?> <div id="p-advertisement" class="portlet"> <!-- COMCLICK France : Haut de page --> <iframe src="http://fl01.ct2.comclick.com/aff_frame.ct2?id_regie=1&num_editeur=18443&num_site=1&num_emplacement=10" WIDTH="728" HEIGHT="90" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" bordercolor="#000000"> </iframe> <!-- FIN TAG --> </div> <?php } ?> <!-- end pub --> <div class="portlet" id="p-logo"> <a style="background-image: url(<?php $this->text('logopath') ?>);" <?php ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a> </div> <div id="globalWrapper"> <div id="column-content">
Ajoût de la balise google
<!--googleon: snippet--><!-- end content -->
Suppression de ce bloc, car déplacé juste après l'ouverture de la balise 'BODY'
<div class="portlet" id="p-logo"> <a style="background-image: url(<?php $this->text('logopath') ?>);" <?php ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php echo $skin->tooltipAndAccesskey('n-mainpage') ?>></a> </div>
Ajoût des icônes Arena et NcSoft
// Generate additional footer links ?> <div id="f-arenaico"><a href="http://www.arena.net/"><img src="<?php $this->text('stylepath') ?>/monobook/copyright/arena.png" alt='ArenaNet' /></a></div> <div id="f-ncsoftico"><a href="http://www.ncsoft.com/"><img src="<?php $this->text('stylepath') ?>/monobook/copyright/ncsoft.png" alt='NcSoft' /></a></div> <ul id="f-list"> <?php
Suppression du lien 'privacy' et de l'affichage de 'lastmod' et 'viewcount'
$footerlinks = array( 'numberofwatchingusers', 'credits', 'copyright', 'about', 'disclaimer', 'tagline', );
Modification de l'affichage de 'reporttime' (voir GlobalFunctions.php)
<?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?> <span style="color:#808080;"><?php $this->html('reporttime') ?></span> <?php if ( $this->data['debug'] ): ?>
Avant la fermeture de la balise 'BODY'
<!-- Google Analytic --> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-1299287-1"); pageTracker._trackPageview(); } catch(err) {}</script> <!-- FIN Google Analytic --> </body></html>
/skins/monobook/main.css
Suppression de tous les styles de la classe #p-personal
.
Liste des fichiers intègres
/skins/common/wikibits.js
→ le JS est dans gwiki.js maintenant.
/skins/monobook/main.css
→ le CSS est dans gwiki.css maintenant.