Giter Site home page Giter Site logo

wl-video-short's Introduction

wl-video-short

A wordpress plugin providing a shortcode for video features with several options

Tested and works back to IE9, Firefox 47, Safari 9.1.1, and Crome 51.0.2704.103 (64-bit).

Sample Use

[videoshort id="anID" video_id="171439497" service="vimeo" video_height="360" video_width="640"  max_height="500" min_height="300" limit_width="true" max_width="1000"  thumb_url="http://fullurl.jpg" thumb_alt="Alt text" thumb_back="#FFFFFF" video_back="#333333" crop_direction="center" click_label="Click Here" autoplay="true" repeat="true"]<h2>A title</h2><p>Lorum ipsum</p><a href="#">Link</a>[/videoshort]

Attributes/Options

  • id: [Str] A unique ID
    • Example: UniqueID
  • video_id: [Str] Vimeo or YouTube ID
    • Example: 171439497
  • service: [Str] Video provider, youtube or vimeo
    • Example: vimeo
    • Options: youtube/vimeo
  • video_height: [INT] Original video height
    • Example: 360
  • video_width: [INT] Original video width
    • Example: 640
  • max_height: [INT] Maximum height of video area
    • Example: 500
  • min_height: [INT] Minimum height of video area
    • Example: 300
  • breakpoint: [INT] Breakpoint width to switch from max-height to min-height
    • Example: 800
  • limit_width: [BOOL] Limit the video and image or allow full width
    • Example: true
    • Options: true/false
  • max_width: [INT] If limit_width is true, how wide should the video and image area be
    • Example: 1000
  • thumb_url: [STR] Full url to the placeholder image
  • thumb_alt: [STR] Alt text for the placeholder image
    • Example: Alt text
  • thumb_back: [STR] Hexadecimal code (with hash) for the background color of the placeholder image
    • Example: #000000
  • video_back: [STR] Hexadecimal code (with hash) for the background color of the video
    • Example: #333333
  • crop_direction: [STR] Angle the image and video should crop
    • Example: center
    • Options: top/center/bottom
  • click_label: [STR] Optional text to be centered vertically and horizontally over the placeholder image and used for the click event. If no text is entered, video should be set to repeat as there will be no way to restart the video after it finishes.
    • Example: Click here
  • autoplay: [BOOL] Set the video to load without a click event
    • Example: true
    • Options: true/false
  • repeat: [BOOL] Set the video to loop
    • Example: true
    • Options: true/false
  • mute: [BOOL] Set the video to mute or not
    • Example: true
    • Options: true/false

Content

[STR] Text or HTML content to be centered vertically and horizontally over the video

  • Example:

    A title

    Lorum ipsum

    Link

wl-video-short's People

Contributors

perlarenee avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.