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

7 133 octets ajoutés ,  27 mai 2009 à 03:49
m
aucun résumé de modification
m
m
 
(9 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) #####
//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 53 : Ligne 51 :
/* open the remaining sockets for this server */
/* open the remaining sockets for this server */
</pre>
</pre>
=== /includes/media/Bitmap.php ===
<pre>
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 );
}
</pre>
=== /includes/GlobalFunctions.php ===
<pre>
return $wgShowHostnames
##### HACK GWiki (Affichage nom d'hôte et temps de génération) #####
? 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 );
##### END HACK #####
</pre>
=== /includes/Wiki.php ===
<pre>
// 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 #####
</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') ?>" />&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>
=== /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>
=== /skins/monobook/main.css ===
Suppression de tous les styles de la classe <code>[[GWiki:Fichier modifié/main.css|#p-personal]]</code>.