Ver Fonte

finishing case change & adding edit with form icon

Garrick van Buren há 12 anos atrás
pai
commit
f9e9379d90
3 ficheiros alterados com 8 adições e 6 exclusões
  1. 3 3
      README.md
  2. 2 0
      assets/scripts/foreground.js
  3. 3 3
      foreground.skin.php

+ 3 - 3
README.md

@@ -8,13 +8,13 @@ It uses the Zurb Foundation (http://foundation.zurb.com) CSS framework.
 
 Clone this repository to your `skins` directory and create a symlink to the main skin file.
 
-    ln -s Foreground/foreground.php Foreground.php
+    ln -s foreground/foreground.php foreground.php
 
 Then add the following line to your `LocalSettings.php` file.
 
-    require_once($IP.'/skins/Foreground/foreground.php');
+    require_once($IP.'/skins/foreground/foreground.php');
 
-Now find the `$wgDefaultSkin` variable and set it to `Foreground`.
+Now find the `$wgDefaultSkin` variable and set it to `foreground`.
 
 ## License
 

+ 2 - 0
assets/scripts/foreground.js

@@ -7,10 +7,12 @@ jQuery(document).ready(function() {
   jQuery('li#ca-nstab-user a').addClass('icon-user').text(' ' + jQuery('li#ca-nstab-user a').text());
   jQuery('li#ca-talk a').addClass('icon-comments').text(' ' + jQuery('li#ca-talk a').text());
   jQuery('li#ca-edit a').addClass('icon-edit').text(' ' + jQuery('li#ca-edit a').text());
+  jQuery('li#ca-form_edit a').addClass('icon-edit-sign').text(' ' + jQuery('li#ca-form_edit a').text());
   jQuery('li#ca-history a').addClass('icon-archive').text(' ' + jQuery('li#ca-history a').text());
   jQuery('li#ca-delete a').addClass('icon-remove').text(' ' + jQuery('li#ca-delete a').text());
   jQuery('li#ca-move a').addClass('icon-truck').text(' ' + jQuery('li#ca-move a').text());
   jQuery('li#ca-protect a').addClass('icon-shield').text(' ' + jQuery('li#ca-protect a').text());
+  jQuery('li#ca-unprotect a').addClass('icon-shield').text(' ' + jQuery('li#ca-unprotect a').text());
   jQuery('li#ca-watch a').addClass('icon-star').text(' ' + jQuery('li#ca-watch a').text());
   jQuery('li#ca-purge a').addClass('icon-refresh').text(' ' + jQuery('li#ca-purge a').text());
   jQuery('li#t-smwbrowselink a').addClass('icon-eye-open').text(' ' + jQuery('li#t-smwbrowselink a').text());

+ 3 - 3
foreground.skin.php

@@ -7,8 +7,8 @@
  * @ingroup Skins
  */
 
-class SkinForeground extends SkinTemplate {
-	public $skinname = 'foreground', $stylename = 'foreground', $template = 'ForegroundTemplate', $useHeadElement = true;
+class Skinforeground extends SkinTemplate {
+	public $skinname = 'foreground', $stylename = 'foreground', $template = 'foregroundTemplate', $useHeadElement = true;
 
 	public function setupSkinUserCss(OutputPage $out) {
 		parent::setupSkinUserCss($out);
@@ -25,7 +25,7 @@ class SkinForeground extends SkinTemplate {
 	}
 
 }
-class ForegroundTemplate extends BaseTemplate {
+class foregroundTemplate extends BaseTemplate {
 	public function execute() {
 		global $wgUser;
 		wfSuppressWarnings();