[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Git][arabeyes-general/wiki][master] Skin updates and new extensions
- To: git at arabeyes dot org
- Subject: [Git][arabeyes-general/wiki][master] Skin updates and new extensions
- From: Youssef Chahibi <git at arabeyes dot org>
- Date: Sat, 18 Feb 2017 09:24:31 -0500
Youssef Chahibi pushed to branch master at arabeyes-general / wiki
Commits:
d7c606ad by Youssef Chahibi at 2017-02-18T09:22:03-05:00
Skin updates and new extensions
- - - - -
8 changed files:
- WikiSettings.php
- skins/Arabeyes/components/arabeyes.less
- skins/Arabeyes/components/personalMenu.less
- skins/Arabeyes/images/bg.png
- + skins/Arabeyes/images/kuwaitnet.jpg
- skins/Arabeyes/images/logo.png
- skins/Arabeyes/images/topbg.png
- skins/Arabeyes/images/userbg.gif
Changes:
=====================================
WikiSettings.php
=====================================
--- a/WikiSettings.php
+++ b/WikiSettings.php
@@ -31,7 +31,6 @@ $wgArticlePath = "/$1";
$wgCapitalLinks = true;
# Path to the GNU diff3 utility. Used for conflict resolution.
-$wgDiff = "/usr/bin/diff";
$wgDiff3 = "/usr/bin/diff3";
## If you use ImageMagick (or any other shell command) on a
@@ -79,55 +78,58 @@ $wgRightsPage = "FreeBSD Documentation License"; # Set to the title of a wiki pa
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
-## Set $wgCacheDirectory to a writable directory on the web server
-## to make your wiki go slightly faster. The directory should not
-## be publically accessible from the web.
-$wgCacheDirectory = "$IP/cache";
-
## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
-$wgSessionCacheType = CACHE_DB;
$wgMessageCacheType = CACHE_ACCEL;
+$wgCacheDirectory = "$IP/cache";
$wgUseLocalMessageCache = true;
$wgParserCacheType = CACHE_DB;
$wgMemCachedServers = [];
-$wgUseGzip = true;
-$wgEnableSidebarCache = true;
+$wgSessionCacheType = CACHE_DB;
+# $wgUseGzip = true;
+#$wgEnableSidebarCache = true;
+#$wgCompressRevisions = true; // If true, search and replaces won't work anymore
-# NO DB HITS!
-$wgDisableCounters = true;
-$wgMiserMode = true;
+$wgJobRunRate = 0;
# Text cache
-$wgCompressRevisions = true; // use with care (see talk page)
+# $wgCompressRevisions = true; // use with care (see talk page)
$wgRevisionCacheExpiry = 3*24*3600;
$wgParserCacheExpireTime = 14*24*3600;
-# File caching
-$wgUseFileCache = true;
-
-$wgShowArchiveThumbnails = false;
+# $wgCachePages = true;
+$wgUseFileCache = true; /* default: false */
+$wgFileCacheDepth = 0;
-# Job queue
-$wgJobRunRate=0;
+# Load.php expires
+// Default 30 * 24 * 60 * 60
+$wgResourceLoaderMaxage['versioned']['server'] = 12 * 30 * 24 * 60 * 60;
+// Default 30 * 24 * 60 * 60
+$wgResourceLoaderMaxage['versioned']['client'] = 12 * 30 * 24 * 60 * 60;
+// Default 30 * 24 * 60 * 60
+$wgResourceLoaderMaxage['unversioned']['server'] = 12 * 30 * 24 * 60 * 60;
+// Default 5 * 60
+$wgResourceLoaderMaxage['unversioned']['client'] = 12 * 30 * 24 * 60 * 60;
/**
* User administration
*/
# Users can customise their css and js. I need this to test a new look for the wiki
-$wgAllowUserJs = true;
-$wgAllowUserCss = true;
+#$wgAllowUserJs = true;
+#$wgAllowUserCss = true;
# Log IP addresses in recent list.
$wgPutIPinRC = true;
# Sysops can ban IP ranges and users.
$wgSysopRangeBans = true;
-$wgSysopRangeBans = true;
# Permissions
+$wgAutoConfirmAge = 604800; /* one week */
$wgGroupPermissions['*']['edit'] = false;
-$wgGroupPermissions['*']['createaccount'] = true;
+$wgShowIPinHeader = false;
+$wgGroupPermissions['autoconfirmed']['delete'] = true;
+$wgGroupPermissions['autoconfirmed']['undelete'] = true;
# Emails
$wgEnableEmail = true;
@@ -151,7 +153,7 @@ $wgDefaultSkin = "arabeyes";
## KuwaitNet logo
$wgFooterIcons['poweredby']['kuwaitnet'] = array(
- "src" => "https://kuwaitnet.net/images/kuwaitnet.jpg", // you may also use a direct path to the source, e.g. "http://example.com/my/custom/path/to/MyCustomLogo.png"
+ "src" => "$wgResourceBasePath/skins/Arabeyes/images/kuwaitnet.jpg", // you may also use a direct path to the source, e.g. "http://example.com/my/custom/path/to/MyCustomLogo.png"
"url" => "https://kuwaitnet.net",
"alt" => "مستضاف برعاية من كويت نت",
// For HiDPI support, you can specify paths to larger versions of the icon.
@@ -234,6 +236,13 @@ wfLoadExtension( 'ParserFunctions' );
# Echo
require_once "$IP/extensions/Echo/Echo.php";
+# Thanks
+wfLoadExtension( 'Thanks' );
+
+# Nuke
+wfLoadExtension( 'Nuke' );
+
+
# Syntax highlighting
#wfLoadExtension( 'SyntaxHighlight_GeSHi' );
@@ -243,6 +252,9 @@ require_once "$IP/extensions/Echo/Echo.php";
#$wgScribuntoUseGeSHi = true;
#$wgScribuntoUseCodeEditor = true;
+wfLoadExtension( 'UserMerge' );
+// By default nobody can use this function, enable for bureaucrat?
+$wgGroupPermissions['bureaucrat']['usermerge'] = true;
#
/**
@@ -253,11 +265,6 @@ wfLoadExtension( 'Babel' );
wfLoadExtension( 'cldr' );
-#wfLoadExtension( 'CleanChanges' );
-$wgCCTrailerFilter = true;
-$wgCCUserFilter = false;
-$wgDefaultUserOptions['usenewrc'] = 1;
-
wfLoadExtension( 'LocalisationUpdate' );
$wgLocalisationUpdateDirectory = "$IP/cache";
@@ -297,3 +304,8 @@ function addMainpageMessageGroup( $id ) {
# Allow titles to be changed (for main page)
$wgRestrictDisplayTitle=false;
+# ULS
+$wgULSLanguages=array("en" => "English", "ar" => "Arabic");
+$wgULSGeoService=false;
+$wgULSIMEEnabled=false;
+
=====================================
skins/Arabeyes/components/arabeyes.less
=====================================
--- a/skins/Arabeyes/components/arabeyes.less
+++ b/skins/Arabeyes/components/arabeyes.less
@@ -5,12 +5,12 @@
/* Custom logo and panel */
body {
- background: url(/skins/Arabeyes/images/bg.png?d0b65) top right repeat;
+ background: url(/skins/Arabeyes/images/bg.png) top right repeat;
}
div#mw-head {
height: 40px;
- background: transparent url(/skins/Arabeyes/images/topbg.png?00fbd) top left repeat-x;
+ background: transparent url(/skins/Arabeyes/images/topbg.png) top left repeat-x;
}
#p-logo a {
@@ -35,7 +35,7 @@ div#mw-panel div.portal h3 {
font-weight: 400;
line-height: 1em;
display: block;
- background: url(/skins/Arabeyes/images/userbg.gif?188ec) repeat-x;
+ background: url(/skins/Arabeyes/images/userbg.gif) repeat-x;
border-top: 1px solid #A5D07A;
border-bottom: 1px solid #A5D07A;
padding: 0.25em 0 0.25em 1em !important;
@@ -66,8 +66,9 @@ div#mw-panel div.portal {
/* User bar */
#p-personal a.new {
- color: #ba0000 !important;
- font-weight: normal !important;
+ /*color: #b76363 !important; */
+ color: #fe8585 !important;
+ font-weight: normal !important;
}
/* Links */
=====================================
skins/Arabeyes/components/personalMenu.less
=====================================
--- a/skins/Arabeyes/components/personalMenu.less
+++ b/skins/Arabeyes/components/personalMenu.less
@@ -41,5 +41,13 @@
/* Show "Not logged in" text in gray */
#pt-anonuserpage {
- color: #707070;
+ color: #9e9e9e;
+}
+
+#pt-notifications-notice .oo-ui-labelElement-label {
+ color:#222 !important;
+}
+
+#pt-notifications-alert .oo-ui-labelElement-label {
+ color:#222 !important;
}
=====================================
skins/Arabeyes/images/bg.png
=====================================
Binary files a/skins/Arabeyes/images/bg.png and b/skins/Arabeyes/images/bg.png differ
=====================================
skins/Arabeyes/images/kuwaitnet.jpg
=====================================
Binary files /dev/null and b/skins/Arabeyes/images/kuwaitnet.jpg differ
=====================================
skins/Arabeyes/images/logo.png
=====================================
Binary files a/skins/Arabeyes/images/logo.png and b/skins/Arabeyes/images/logo.png differ
=====================================
skins/Arabeyes/images/topbg.png
=====================================
Binary files a/skins/Arabeyes/images/topbg.png and b/skins/Arabeyes/images/topbg.png differ
=====================================
skins/Arabeyes/images/userbg.gif
=====================================
Binary files a/skins/Arabeyes/images/userbg.gif and b/skins/Arabeyes/images/userbg.gif differ
View it on GitLab: https://git.arabeyes.org/arabeyes-general/wiki/commit/d7c606ad745263d4437a38e0fbde89ba4a750dc2