Différences entre les versions de « GWiki:Fichier modifié »

3 642 octets ajoutés ,  9 février 2009 à 01:52
aucun résumé de modification
m
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) #####
//echo $t;
$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);
##### FIN HACK #####
##### 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/common/images/poweredby_mediawiki_88x31.png" );
$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%
##### FIN HACK #####
##### 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&#233;n&#233;r&#233;e par %s en %01.3f secondes", wfHostname(), $elapsed )
? sprintf( "Page g&#233;n&#233;r&#233;e par %s en %01.3f secondes", wfHostname(), $elapsed )
: sprintf( "Page g&#233;n&#233;r&#233;e en %01.3f secondes", $elapsed );
: sprintf( "Page g&#233;n&#233;r&#233;e en %01.3f secondes", $elapsed );
//? sprintf( "<!-- Served by %s in %01.3f secs. -->", wfHostname(), $elapsed )
##### END HACK #####
//: sprintf( "<!-- Served in %01.3f secs. -->", $elapsed );
##### FIN HACK #####
</pre>
</pre>


Ligne 92 : Ligne 88 :


=== /includes/templates/Userlogin.php ===
=== /includes/templates/Userlogin.php ===
Ajoût de sauts à la ligne
<pre>
<pre>
TODO
<input type='submit' name="wpLoginattempt" id="wpLoginattempt" tabindex="5" value="<?php $this->msg('login') ?>" />&nbsp;<?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>
</pre>


=== /skins/MonoBook.php ===
=== /skins/MonoBook.php ===
Ajoût feuilles de style
<pre>
<pre>
TODO
<?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 et déplacement du bloc 'p-logo' (voir plus bas)
<pre>
<!--googleoff: snippet-->
<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>
 
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>