该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Shrinking Video

描述

Have a video that you want your website viewers to watch? Watching a video would typically restrict the viewer from viewing the rest of the webpage. Shrinking video solves that problem by shrinking the video to the upper right corner of the screen once the user scrolls past the video. Once the user scrolls back up to the page the video unshrinks and returns to its normal position.

Features

  • Shortcode [shrinkingvideo] to specify which video to shrink
  • Control over where the video is shrunk. ( top right, top left, bottom left, bottom right )
  • Supports any video supported by wordpresses embed system

Shortcode

Shrinking Video uses the shortcode [shrinkingvideo] in order to specify which video to apply the changes to.

The following shortcode accepts 5 attributes.
[shrinkingvideo src=”” height=”” width=”” class=”” position=””]

  • The src attribute is required and should be the url to the video.
  • The height attribute is optional and is used to define the height of the video. The default value is 394.
  • The width attribute is optional and is used to define the width of the video. The default value is 700.
  • The class attribute is optional and is used to apply a css class to the videos wrapper element.
  • The position attribute is optional and is used to specify where to display the shrunked video. Accepts values “top right”, “top left”, “bottom left”, “bottom right”. The default value is “top right”.

屏幕截图

安装

  1. Upload the plugin files to the /wp-content/plugins directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the shortcode [shrinkingvideo src=” height=” width=”] on a page that you wish to apply the new video to.

常见问题

What videos are supported?

Any video that wordpress supports through their embed system is supported with Shrinking Video.

How do I select the video that I want to shrink?

Shrinking Video uses the shortcode [shrinkingvideo src=”] to specify which video to shrink. For more information on the shortcode goto other notes or view the readme.txt.

How do I change the position of the shrunken video?

To control where the video is shrunk to change the position attribute of the shortcode [shrinkingvideo]. For more information on the shortcode goto other notes or view the readme.txt.

评价

此插件暂无评价。

贡献者及开发者

「Shrinking Video」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Shrinking Video」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

Version 1.1.0

  • Updated shortcode to accept a position attribute
  • Updated shortcode to accept a class attribute for css styling

Version 1.0.0

  • Initial release of Shrinking Video