承接 multidimensional/amazon-widget 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

multidimensional/amazon-widget

Composer 安装命令:

composer require multidimensional/amazon-widget

包简介

A MediaWiki Extension for adding Amazon Associate Widgets to your Wiki.

README 文档

README

Latest Stable Version Minimum PHP Version License Total Downloads

A MediaWiki Extension for adding Amazon Associate Widgets to your Wiki.

Requirements

  • Mediawiki 1.25+

Installation

Download the extension and add it to your extensions folder, or install it by adding it to your composer.local.json file:

{
    "require": {
        "multidimensional/amazon-widget": "*"
    }
}

Activate the extension in LocalSettings.php and set your Amazon tag.

wfLoadExtension( 'AmazonWidget' );
$wgAmazonWidgetTag = 'YOUR-AMAZON-TAG-HERE-20';

That's it!

Usage in MediaWiki

To use the Amazon tag, it is very easy. There are two elements that are required:

  • ASIN (product code)
  • Link ID (from your Amazon Associates link)

Example:

<amazon asin="B07N7RXQF6"
    id="5d90afe84e9cd34fb5a0f1fac6b9bf8d"/>

You can also add advanced tags:

  • Width (pixel count or percentage)
  • Height (pixel count or percentage)
  • Style (any css style information)

Example:

<amazon asin="B07N7RXQF6"
    id="5d90afe84e9cd34fb5a0f1fac6b9bf8d"
    width="200"
    height="150"
    style="float:right;"/>

Additional configuration options can be hardcoded in your LocalSettings.php file.

Amazon Links

You can also use this Extension to generate links to Amazon products by including text to include in the link by using the following style of tag:

<amazon asin="B07N7RXQF6"
    id="5d90afe84e9cd34fb5a0f1fac6b9bf8d">
    Link Text</amazon>

Note that advanced settings cannot be used with these tags.

Advanced Configuration

Hard coded settings can also be added in your LocalSettings.php file. These will affect appearances across all Widgets, but note that your cache will need to be cleared for all changes to take effect.

Here are the default values:

$wgAmazonWidgetRegion = 'US';
$wgAmazonWidgetWidth = 120;
$wgAmazonWidgetHeight = 240;
$wgAmazonWidgetNewWindow = false;
$wgAmazonWidgetBorder = true;
$wgAmazonWidgetBackground = 'ffffff';
$wgAmazonWidgetTitleColor = '0066c0';
$wgAmazonWidgetPriceColor = '333333';
$wgAmazonWidgetMarketplace = 'amazon';

License

The MIT License (MIT)

Copyright (c) 2019 multidimension.al

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固