扩展:Pluso
Jump to navigation
Jump to search
Pluso 发布状态: 稳定版 |
|||
---|---|---|---|
![]() |
|||
实现 | Skin | ||
描述 | Adds social buttons in the left menu and the page title. | ||
作者 | Alexandr Efremov | ||
最新版本 | 0.4 (2017-09-10) | ||
MediaWiki | 1.25+ | ||
许可协议 | GNU General Public License 2.0 or later | ||
下载 | |||
|
|||
|
|||
翻译Pluso扩展如果在translatewiki.net可用 | |||
检查使用和版本矩阵。 |
Pluso extension adds a widget Pluso in the sidebar and the page title, advertisement of pluso.ru browser plugins and external javascript from pluso.ru loaded into a document.
安装
- 下载文件,并将其放置在您
extensions/
文件夹中的Pluso
目录内。
- 将下列代码放置在您的LocalSettings.php的底部:
wfLoadExtension( 'Pluso' );
$wgPlusoHeader = false;
Enter your ID in LocalSettings.php , is an optional parameter:
$wgPlusoUserID = 'xxxxxxx';
完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。
致使用MediaWiki 1.24或更早版本的用户:
上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()
如果您需要在早期版本(MediaWiki 1.24和更早版本)中安装此扩展,而不是wfLoadExtension( 'Pluso' );
,您需要使用:
require_once "$IP/extensions/Pluso/Pluso.php";
配置
默认配置
默认 |
---|
$wgPlusoUserID = '';
$wgPlusoSidebar = true;
$wgPlusoBackgroundSidebar = 'transparent';
$wgPlusoThemeSidebar = ["small","square","multiline","horizontal","nocounter"];
$wgPlusoThemeSidebar = '04';
$wgPlusoServicesSidebar = 'vkontakte,odnoklassniki,facebook,twitter,google,moimir';
$wgPlusoHeader = true;
$wgPlusoMain = false;
$wgPlusoBackgroundHeader = 'transparent';
$wgPlusoOptionsHeader = ["small","square","line","horizontal","counter"]
$wgPlusoThemeHeader = '08';
$wgPlusoServicesHeader = "vkontakte,odnoklassniki,facebook,twitter, google, moimir";
|
配置参数
参数 | 默认 | 描述 |
---|---|---|
$wgPlusoUserID | ID - not required, but is recommended for viewing statistics | |
$wgPlusoSidebar | true | Enables or disables the display of the widget Pluso in the sidebar |
$wgPlusoHeader | true | Enables or disables the display of the widget Pluso in the title |
$wgPlusoMain | true | Enables or disables the display of the widget Pluso on the main page |
$wgPlusoServicesSidebar | vkontakte, odnoklassniki, facebook, twitter, google, moimir | Service codes used in the sidebar |
$wgPlusoServicesHeader | vkontakte, odnoklassniki, facebook, twitter, google, moimir | Service codes used in the title |
$wgPlusoThemeSidebar | 04 | The skin used in the sidebar |
$wgPlusoOptionsSidebar | ["small","square","multiline","horizontal","nocounter"] | Settings:
All parameters are required |
$wgPlusoOptionsHeader | ["small","square","multiline","horizontal","nocounter"] | Settings:
All parameters are required |
$wgPlusoThemeHeader | 08 | The skin used in the title |
$wgPlusoBackgroundHeader | transparent | Background used in the sidebar (you can use color codes #FFF) |
$wgPlusoBackgroundSidebar | transparent | Background used in the title (you can use color codes #FFF) |
Basic service codes
The list of service codes that you can use parameters $wgPlusoServicesSidebar and $wgPlusoServicesHeader:
|
|
|
|
|
Changes
- Removed jquery, replaced by setIndicators
- Added the ability to change options, such as the shape of an icon, etc.