wikifab/simple-embed-video 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wikifab/simple-embed-video

Composer 安装命令:

composer require wikifab/simple-embed-video

包简介

Mediawiki extension to integrate Video url from Youtube, vimeo, dailymotion, or others to come...

README 文档

README

Description :

This extension allow you to display a video with just its link and service (as Youtube, Vimeo and Dailymotion). The user has to choose with some buttons a service and then the link's field appears.

Installation

Firstly this extension requires PageForm and EmbedVideo, two Mediawiki's extensions.

Download and extract the extension in the "extension" repository of your project. Your extension repository name has to be : SimpleEmbedVideo.

Once it's done,find the file LocalSettings.php and write at the end :

wfLoadExtension( 'SimpleEmbedVideo' );

Use

Create the Semantic Properties

First, you need to create the following Semantic Properties:

  • TutoVideoService (Text)
  • TutoVideoURL (Text)

Create the Semantic Template

Then, you need to create a Semantic template (called "TutoVideo") with the following code:

<h3 class="VideoTitle">Vidéo d'introduction</h3>
<div class="allSizeScreenButton">
<span class="resizeButton smallButton"> </span>
<span class="resizeButton mediumButton"></span>
<span class="resizeButton largeButton"></span>
</div>
<div class="videoMainContainer">
<div class="videoContainer">
{{#ev:{{{TutoVideoService|}}} | {{{TutoVideoURL|}}} }}
</div>
</div>

This code will display the video and create 3 buttons which rezise screen video.

For more information, refer to the MediaWiki PageForm extension.

Create the Semantic Form

On your MediaWiki page, where you want display a video from its link, enter this code :

<div class="multipleTemplateHideButton">
{{{for template|TutoVideo|multiple|minimum=0|maximum instances=1|add button text=+ Ajouter une vidéo}}}
{{#formLinkVideo:{{{field|TutoVideoService|dropdown|class=embedVideoDropdown}}} | {{{field|TutoVideoURL|class=embedVideoUrlInput}}}}} 
{{{end template}}}
</div>

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固