Bureaucrates, Vérificateurs IP, emailconfirmed, Administrateurs d’interface, Patrouilleurs, Administrateurs système, Administrateurs (MediaWiki Sémantique), Conservateurs (Médiawiki Sémantique), Administrateurs
55 954
modifications
m (A protégé « GWiki:Fichier modifié » [edit=sysop:move=sysop]) |
m |
||
(5 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 6 : | Ligne 6 : | ||
$t = $embed . implode ( "{$pop} {$sep} {$embed}" , $allCats['normal'] ) . $pop; | $t = $embed . implode ( "{$pop} {$sep} {$embed}" , $allCats['normal'] ) . $pop; | ||
##### HACK GWiki (Catégories contenant des parenthèses cachées) ##### | ##### HACK GWiki (Catégories contenant des parenthèses cachées) ##### | ||
$t = preg_replace('% \\| <span[^>]*>([^\\(\\)>]*?)\\s\\((.*?)(Drop|Collection|Recyclage|Vente)\\)</a></span>%s', '', $t); | $t = preg_replace('% \\| <span[^>]*>([^\\(\\)>]*?)\\s\\((.*?)(Drop|Collection|Recyclage|Vente)\\)</a></span>%s', '', $t); | ||
##### | ##### END HACK ##### | ||
$msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escapenoentities' ), count( $allCats['normal'] ) ); | $msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escapenoentities' ), count( $allCats['normal'] ) ); | ||
Ligne 20 : | Ligne 19 : | ||
global $wgStylePath; | global $wgStylePath; | ||
##### HACK GWiki (Modification chemin du logo) ##### | ##### HACK GWiki (Modification chemin du logo) ##### | ||
$url = htmlspecialchars( "$wgStylePath/monobook/copyright/mediawiki.png" ); | $url = htmlspecialchars( "$wgStylePath/monobook/copyright/mediawiki.png" ); | ||
##### END HACK ##### | ##### END HACK ##### | ||
Ligne 59 : | Ligne 57 : | ||
##### HACK GWiki (quality 90 au lieu de 80 par défaut) ##### | ##### HACK GWiki (quality 90 au lieu de 80 par défaut) ##### | ||
$quality = "-quality 90"; // 80% | $quality = "-quality 90"; // 80% | ||
##### | ##### END HACK ##### | ||
# Sharpening, see bug 6193 | # Sharpening, see bug 6193 | ||
if ( ( $physicalWidth + $physicalHeight ) / ( $srcWidth + $srcHeight ) < $wgSharpenReductionThreshold ) { | if ( ( $physicalWidth + $physicalHeight ) / ( $srcWidth + $srcHeight ) < $wgSharpenReductionThreshold ) { | ||
Ligne 72 : | Ligne 70 : | ||
? sprintf( "Page générée par %s en %01.3f secondes", wfHostname(), $elapsed ) | ? 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 ); | : sprintf( "Page générée en %01.3f secondes", $elapsed ); | ||
##### END HACK ##### | |||
##### | |||
</pre> | </pre> | ||
Ligne 87 : | Ligne 83 : | ||
$request->getVal( 'redirect' ) != 'no'/* && // ... unless explicitly told not to | $request->getVal( 'redirect' ) != 'no'/* && // ... unless explicitly told not to | ||
// ... and the article is not a non-redirect image page with associated file | // ... and the article is not a non-redirect image page with associated file | ||
!( is_object( $file ) && $file->exists() && !$file->getRedirected() ) */) | !( is_object( $file ) && $file->exists() && !$file->getRedirected() ) */) | ||
##### END HACK ##### | ##### END HACK ##### | ||
</pre> | |||
=== /includes/templates/Userlogin.php === | |||
Ajoût de sauts à la ligne | |||
<pre> | |||
<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> | |||
</pre> | |||
=== /skins/MonoBook.php === | |||
Ajoût feuilles de style | |||
<pre> | |||
<?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 ); ?> | |||
</pre> | |||
Ajoût JavaScripts | |||
<pre> | |||
<!-- 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> | |||
</pre> | |||
Ajoût de la balise google, de la bannière de publicité et déplacement du bloc 'p-logo' (voir plus bas) | |||
<pre> | |||
<!--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"> | |||
</pre> | |||
Déplacement des liens interlangues ("<?php $this->languageBox(); ?>") | |||
<pre> | |||
<?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?> | |||
<?php $this->languageBox(); ?> | |||
<h1 id="firstHeading" class="firstHeading"><?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?></h1> | |||
</pre> | |||
A commenter | |||
<pre> | |||
//if ( !isset( $sidebar['LANGUAGES'] ) ) $sidebar['LANGUAGES'] = true; | |||
</pre> | |||
Remplacer la fonction languageBox() | |||
<pre> | |||
function languageBox() { | |||
if( $this->data['language_urls'] ) { | |||
?> | |||
<div style="font-size: 1em; font-style: italic; float: right; margin-top: 5px; overflow: hidden;"> | |||
<?php foreach($this->data['language_urls'] as $langlink) { ?> | |||
<a href="<?php echo htmlspecialchars($langlink['href']) ?>"> | |||
<img src="<?php $this->text('stylepath' ) ?>/monobook/icone/interlanguage/<?php echo $langlink['class'] ?>.png?<?php echo $GLOBALS['wgStyleVersion'] ?>" title="<?php echo $langlink['text'] ?>" alt="<?php echo $langlink['text'] ?>"/> | |||
</a> | |||
<?php } ?> | |||
</div> | |||
<?php | |||
} | |||
} | |||
</pre> | |||
Ajoût de la balise google | |||
<pre> | |||
<!--googleon: snippet--><!-- end content --> | |||
</pre> | |||
Suppression de ce bloc, car déplacé juste après l'ouverture de la balise 'BODY' | |||
<pre> | |||
<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> | |||
</pre> | |||
Ajoût des icônes Arena et NcSoft | |||
<pre> | |||
// 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 | |||
</pre> | |||
Suppression du lien 'privacy' et de l'affichage de 'lastmod' et 'viewcount' | |||
<pre> | |||
$footerlinks = array( | |||
'numberofwatchingusers', 'credits', 'copyright', | |||
'about', 'disclaimer', 'tagline', | |||
); | |||
</pre> | |||
Modification de l'affichage de 'reporttime' (voir GlobalFunctions.php) | |||
<pre> | |||
<?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?> | |||
<span style="color:#808080;"><?php $this->html('reporttime') ?></span> | |||
<?php if ( $this->data['debug'] ): ?> | |||
</pre> | |||
Avant la fermeture de la balise 'BODY' | |||
<pre> | |||
<!-- 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> | |||
</pre> | </pre> | ||
modifications