# LiteBox - A light weight Popup Window #
Tags: popup, popup window, onclick popup, popup video, youtube popup, vimeo popup, youtube, vimeo
Requires at least: 3.5
Tested up to: 3.9.1
Stable tag: 1.0
License: MIT X11-License
License URI: http://opensource.org/licenses/MIT

A Simple plugin that enables popup for your video content.

## Description ##

Litebox is a free,easy to use wordpress plugin for window popup. Its  built in PHP and uses a light weight jQuery plugin litebox.
This plugin enables a popup window for youtube , vimeo , dailymotion, kickstarter videos.
Using it is as  simple as the adding shotcodes to your post and page or if preferred adding the shortcodes to the required theme template files.
A demo can be found [here] (http://phpcentre.net/plugins/wordpress-plugin-litebox "Litebox Demo")


### Plugin Features ###
* Support for youtube,vimeo,dailymotion,kickstarter videos.
* Reveal Speed of the popup window adjustable.
* Position of the the popup window adjustable. 
* Ability to change the background color of the popup overlay.
* Support to javascript function that can be executed at various times during the popup event.




### Shortcode Quickstart Example ###

Add the shortcodes to your post or pages.The href attribute should be the url of your video content.

   <pre>
   [litebox href="http://www.youtube.com/watch?v=EmSOTxW3lNI"]
   youtube
   [/litebox]
   </pre>

## #Shortcode Theme file Example ###
 Add the function with the shortcodes to your theme template files.
  </pre>
  &lt;?php 
  echo do_shortcode('[litebox href="http://vimeo.com/45427826"]vimeo[/litebox]'); 
  ?&gt;
 </pre>
## Installation ##

### System requirements ###
* PHP 5
* Web browser with enabled Javscript (required for popup)

### Installation ###
1. Download the .zip file of the plugin and extract the content
2. Upload the complete `litebox` folder to the `/wp-content/plugins/` directory
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Go to to litebox settings page and select the default options which should be used.
5. That's it! You're done. Now you can place your shortcodes to your post/pages or your theme files. 

## Frequently Asked Questions ##

### How do I install this plugin? ###
You can install as others regular wordpress plugin. No different way. Please see on installation tab.

### Why can't I see the popup window onclick ###
Make sure the syntax of your javascript function is correct.

### Why is the popup window blank ###
Check the parameters of the url attribute you provided.

### How can I style the anchor text ###
Use the class -litebox- to style the anchor text in your css file. 


## Screenshots ##
1. Youtube popup example
2. Vimeo popup example
3. Options Page - Basic Settings
4. Options Page - Advanced Settings


## Changelog ##

### 1.0 ###
* Initial Release

## Upgrade Notice ##