Version Description
- First commit
=
Download this release
Release Info
Developer | mra13 |
Plugin | WP Video Lightbox |
Version | 1.3 |
Comparing to | |
See all releases |
Version 1.3
- css/prettyPhoto.css +170 -0
- images/backgrounds/Thumbs.db +0 -0
- images/backgrounds/bodyBackground.jpg +0 -0
- images/backgrounds/checkmark.gif +0 -0
- images/prettyPhoto/dark_rounded/btnNext.png +0 -0
- images/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
- images/prettyPhoto/dark_rounded/contentPattern.png +0 -0
- images/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
- images/prettyPhoto/dark_rounded/loader.gif +0 -0
- images/prettyPhoto/dark_rounded/sprite.png +0 -0
- images/prettyPhoto/dark_square/btnNext.png +0 -0
- images/prettyPhoto/dark_square/btnPrevious.png +0 -0
- images/prettyPhoto/dark_square/contentPattern.png +0 -0
- images/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
- images/prettyPhoto/dark_square/loader.gif +0 -0
- images/prettyPhoto/dark_square/sprite.png +0 -0
- images/prettyPhoto/default/default_thumb.png +0 -0
- images/prettyPhoto/default/loader.gif +0 -0
- images/prettyPhoto/default/sprite.png +0 -0
- images/prettyPhoto/default/sprite_next.png +0 -0
- images/prettyPhoto/default/sprite_prev.png +0 -0
- images/prettyPhoto/default/sprite_x.png +0 -0
- images/prettyPhoto/default/sprite_y.png +0 -0
- images/prettyPhoto/facebook/btnNext.png +0 -0
- images/prettyPhoto/facebook/btnPrevious.png +0 -0
- images/prettyPhoto/facebook/contentPatternBottom.png +0 -0
- images/prettyPhoto/facebook/contentPatternLeft.png +0 -0
- images/prettyPhoto/facebook/contentPatternRight.png +0 -0
- images/prettyPhoto/facebook/contentPatternTop.png +0 -0
- images/prettyPhoto/facebook/default_thumbnail.gif +0 -0
- images/prettyPhoto/facebook/loader.gif +0 -0
- images/prettyPhoto/facebook/sprite.png +0 -0
- images/prettyPhoto/light_rounded/btnNext.png +0 -0
- images/prettyPhoto/light_rounded/btnPrevious.png +0 -0
- images/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
- images/prettyPhoto/light_rounded/loader.gif +0 -0
- images/prettyPhoto/light_rounded/sprite.png +0 -0
- images/prettyPhoto/light_square/btnNext.png +0 -0
- images/prettyPhoto/light_square/btnPrevious.png +0 -0
- images/prettyPhoto/light_square/default_thumbnail.gif +0 -0
- images/prettyPhoto/light_square/loader.gif +0 -0
- images/prettyPhoto/light_square/sprite.png +0 -0
- js/jquery.prettyPhoto.js +83 -0
- readme.txt +47 -0
- wp-video-lightbox.php +206 -0
css/prettyPhoto.css
ADDED
@@ -0,0 +1,170 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
div.pp_default .pp_top,div.pp_default .pp_top .pp_middle,div.pp_default .pp_top .pp_left,div.pp_default .pp_top .pp_right,div.pp_default .pp_bottom,div.pp_default .pp_bottom .pp_left,div.pp_default .pp_bottom .pp_middle,div.pp_default .pp_bottom .pp_right{height:13px}
|
2 |
+
div.pp_default .pp_top .pp_left{background:url(../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat}
|
3 |
+
div.pp_default .pp_top .pp_middle{background:url(../images/prettyPhoto/default/sprite_x.png) top left repeat-x}
|
4 |
+
div.pp_default .pp_top .pp_right{background:url(../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat}
|
5 |
+
div.pp_default .pp_content .ppt{color:#f8f8f8}
|
6 |
+
div.pp_default .pp_content_container .pp_left{background:url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y;padding-left:13px}
|
7 |
+
div.pp_default .pp_content_container .pp_right{background:url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y;padding-right:13px}
|
8 |
+
div.pp_default .pp_next:hover{background:url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat;cursor:pointer}
|
9 |
+
div.pp_default .pp_previous:hover{background:url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat;cursor:pointer}
|
10 |
+
div.pp_default .pp_expand{background:url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat;cursor:pointer;width:28px;height:28px}
|
11 |
+
div.pp_default .pp_expand:hover{background:url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat;cursor:pointer}
|
12 |
+
div.pp_default .pp_contract{background:url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat;cursor:pointer;width:28px;height:28px}
|
13 |
+
div.pp_default .pp_contract:hover{background:url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat;cursor:pointer}
|
14 |
+
div.pp_default .pp_close{width:30px;height:30px;background:url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat;cursor:pointer}
|
15 |
+
div.pp_default .pp_gallery ul li a{background:url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8;border:1px solid #aaa}
|
16 |
+
div.pp_default .pp_social{margin-top:7px}
|
17 |
+
div.pp_default .pp_gallery a.pp_arrow_previous,div.pp_default .pp_gallery a.pp_arrow_next{position:static;left:auto}
|
18 |
+
div.pp_default .pp_nav .pp_play,div.pp_default .pp_nav .pp_pause{background:url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat;height:30px;width:30px}
|
19 |
+
div.pp_default .pp_nav .pp_pause{background-position:-51px -29px}
|
20 |
+
div.pp_default a.pp_arrow_previous,div.pp_default a.pp_arrow_next{background:url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat;height:20px;width:20px;margin:4px 0 0}
|
21 |
+
div.pp_default a.pp_arrow_next{left:52px;background-position:-82px -3px}
|
22 |
+
div.pp_default .pp_content_container .pp_details{margin-top:5px}
|
23 |
+
div.pp_default .pp_nav{clear:none;height:30px;width:110px;position:relative}
|
24 |
+
div.pp_default .pp_nav .currentTextHolder{font-family:Georgia;font-style:italic;color:#999;font-size:11px;left:75px;line-height:25px;position:absolute;top:2px;margin:0;padding:0 0 0 10px}
|
25 |
+
div.pp_default .pp_close:hover,div.pp_default .pp_nav .pp_play:hover,div.pp_default .pp_nav .pp_pause:hover,div.pp_default .pp_arrow_next:hover,div.pp_default .pp_arrow_previous:hover{opacity:0.7}
|
26 |
+
div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0}
|
27 |
+
div.pp_default .pp_bottom .pp_left{background:url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat}
|
28 |
+
div.pp_default .pp_bottom .pp_middle{background:url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x}
|
29 |
+
div.pp_default .pp_bottom .pp_right{background:url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat}
|
30 |
+
div.pp_default .pp_loaderIcon{background:url(../images/prettyPhoto/default/loader.gif) center center no-repeat}
|
31 |
+
div.light_rounded .pp_top .pp_left{background:url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat}
|
32 |
+
div.light_rounded .pp_top .pp_right{background:url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat}
|
33 |
+
div.light_rounded .pp_next:hover{background:url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat;cursor:pointer}
|
34 |
+
div.light_rounded .pp_previous:hover{background:url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat;cursor:pointer}
|
35 |
+
div.light_rounded .pp_expand{background:url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer}
|
36 |
+
div.light_rounded .pp_expand:hover{background:url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer}
|
37 |
+
div.light_rounded .pp_contract{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer}
|
38 |
+
div.light_rounded .pp_contract:hover{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer}
|
39 |
+
div.light_rounded .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer}
|
40 |
+
div.light_rounded .pp_nav .pp_play{background:url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
|
41 |
+
div.light_rounded .pp_nav .pp_pause{background:url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
|
42 |
+
div.light_rounded .pp_arrow_previous{background:url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat}
|
43 |
+
div.light_rounded .pp_arrow_next{background:url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat}
|
44 |
+
div.light_rounded .pp_bottom .pp_left{background:url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat}
|
45 |
+
div.light_rounded .pp_bottom .pp_right{background:url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat}
|
46 |
+
div.dark_rounded .pp_top .pp_left{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat}
|
47 |
+
div.dark_rounded .pp_top .pp_right{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat}
|
48 |
+
div.dark_rounded .pp_content_container .pp_left{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y}
|
49 |
+
div.dark_rounded .pp_content_container .pp_right{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y}
|
50 |
+
div.dark_rounded .pp_next:hover{background:url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat;cursor:pointer}
|
51 |
+
div.dark_rounded .pp_previous:hover{background:url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat;cursor:pointer}
|
52 |
+
div.dark_rounded .pp_expand{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat;cursor:pointer}
|
53 |
+
div.dark_rounded .pp_expand:hover{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat;cursor:pointer}
|
54 |
+
div.dark_rounded .pp_contract{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat;cursor:pointer}
|
55 |
+
div.dark_rounded .pp_contract:hover{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat;cursor:pointer}
|
56 |
+
div.dark_rounded .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat;cursor:pointer}
|
57 |
+
div.dark_rounded .pp_description{margin-right:85px;color:#fff}
|
58 |
+
div.dark_rounded .pp_nav .pp_play{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
|
59 |
+
div.dark_rounded .pp_nav .pp_pause{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
|
60 |
+
div.dark_rounded .pp_arrow_previous{background:url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat}
|
61 |
+
div.dark_rounded .pp_arrow_next{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat}
|
62 |
+
div.dark_rounded .pp_bottom .pp_left{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat}
|
63 |
+
div.dark_rounded .pp_bottom .pp_right{background:url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat}
|
64 |
+
div.dark_rounded .pp_loaderIcon{background:url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat}
|
65 |
+
div.dark_square .pp_left,div.dark_square .pp_middle,div.dark_square .pp_right,div.dark_square .pp_content{background:#000}
|
66 |
+
div.dark_square .pp_description{color:#fff;margin:0 85px 0 0}
|
67 |
+
div.dark_square .pp_loaderIcon{background:url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat}
|
68 |
+
div.dark_square .pp_expand{background:url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat;cursor:pointer}
|
69 |
+
div.dark_square .pp_expand:hover{background:url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat;cursor:pointer}
|
70 |
+
div.dark_square .pp_contract{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat;cursor:pointer}
|
71 |
+
div.dark_square .pp_contract:hover{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat;cursor:pointer}
|
72 |
+
div.dark_square .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat;cursor:pointer}
|
73 |
+
div.dark_square .pp_nav{clear:none}
|
74 |
+
div.dark_square .pp_nav .pp_play{background:url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
|
75 |
+
div.dark_square .pp_nav .pp_pause{background:url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
|
76 |
+
div.dark_square .pp_arrow_previous{background:url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat}
|
77 |
+
div.dark_square .pp_arrow_next{background:url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat}
|
78 |
+
div.dark_square .pp_next:hover{background:url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat;cursor:pointer}
|
79 |
+
div.dark_square .pp_previous:hover{background:url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat;cursor:pointer}
|
80 |
+
div.light_square .pp_expand{background:url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat;cursor:pointer}
|
81 |
+
div.light_square .pp_expand:hover{background:url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat;cursor:pointer}
|
82 |
+
div.light_square .pp_contract{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat;cursor:pointer}
|
83 |
+
div.light_square .pp_contract:hover{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat;cursor:pointer}
|
84 |
+
div.light_square .pp_close{width:75px;height:22px;background:url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat;cursor:pointer}
|
85 |
+
div.light_square .pp_nav .pp_play{background:url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat;height:15px;width:14px}
|
86 |
+
div.light_square .pp_nav .pp_pause{background:url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat;height:15px;width:14px}
|
87 |
+
div.light_square .pp_arrow_previous{background:url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat}
|
88 |
+
div.light_square .pp_arrow_next{background:url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat}
|
89 |
+
div.light_square .pp_next:hover{background:url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat;cursor:pointer}
|
90 |
+
div.light_square .pp_previous:hover{background:url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat;cursor:pointer}
|
91 |
+
div.facebook .pp_top .pp_left{background:url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat}
|
92 |
+
div.facebook .pp_top .pp_middle{background:url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x}
|
93 |
+
div.facebook .pp_top .pp_right{background:url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat}
|
94 |
+
div.facebook .pp_content_container .pp_left{background:url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y}
|
95 |
+
div.facebook .pp_content_container .pp_right{background:url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y}
|
96 |
+
div.facebook .pp_expand{background:url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat;cursor:pointer}
|
97 |
+
div.facebook .pp_expand:hover{background:url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat;cursor:pointer}
|
98 |
+
div.facebook .pp_contract{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat;cursor:pointer}
|
99 |
+
div.facebook .pp_contract:hover{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat;cursor:pointer}
|
100 |
+
div.facebook .pp_close{width:22px;height:22px;background:url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat;cursor:pointer}
|
101 |
+
div.facebook .pp_description{margin:0 37px 0 0}
|
102 |
+
div.facebook .pp_loaderIcon{background:url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat}
|
103 |
+
div.facebook .pp_arrow_previous{background:url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat;height:22px;margin-top:0;width:22px}
|
104 |
+
div.facebook .pp_arrow_previous.disabled{background-position:0 -96px;cursor:default}
|
105 |
+
div.facebook .pp_arrow_next{background:url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat;height:22px;margin-top:0;width:22px}
|
106 |
+
div.facebook .pp_arrow_next.disabled{background-position:-32px -96px;cursor:default}
|
107 |
+
div.facebook .pp_nav{margin-top:0}
|
108 |
+
div.facebook .pp_nav p{font-size:15px;padding:0 3px 0 4px}
|
109 |
+
div.facebook .pp_nav .pp_play{background:url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat;height:22px;width:22px}
|
110 |
+
div.facebook .pp_nav .pp_pause{background:url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat;height:22px;width:22px}
|
111 |
+
div.facebook .pp_next:hover{background:url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat;cursor:pointer}
|
112 |
+
div.facebook .pp_previous:hover{background:url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat;cursor:pointer}
|
113 |
+
div.facebook .pp_bottom .pp_left{background:url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat}
|
114 |
+
div.facebook .pp_bottom .pp_middle{background:url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x}
|
115 |
+
div.facebook .pp_bottom .pp_right{background:url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat}
|
116 |
+
div.pp_pic_holder a:focus{outline:none}
|
117 |
+
div.pp_overlay{background:#000;display:none;left:0;position:absolute;top:0;width:100%;z-index:9500}
|
118 |
+
div.pp_pic_holder{display:none;position:absolute;width:100px;z-index:10000}
|
119 |
+
.pp_content{height:40px;min-width:40px}
|
120 |
+
* html .pp_content{width:40px}
|
121 |
+
.pp_content_container{position:relative;text-align:left;width:100%}
|
122 |
+
.pp_content_container .pp_left{padding-left:20px}
|
123 |
+
.pp_content_container .pp_right{padding-right:20px}
|
124 |
+
.pp_content_container .pp_details{float:left;margin:10px 0 2px}
|
125 |
+
.pp_description{display:none;margin:0}
|
126 |
+
.pp_social{float:left;margin:0}
|
127 |
+
.pp_social .facebook{float:left;margin-left:5px;width:55px;overflow:hidden}
|
128 |
+
.pp_social .twitter{float:left}
|
129 |
+
.pp_nav{clear:right;float:left;margin:3px 10px 0 0}
|
130 |
+
.pp_nav p{float:left;white-space:nowrap;margin:2px 4px}
|
131 |
+
.pp_nav .pp_play,.pp_nav .pp_pause{float:left;margin-right:4px;text-indent:-10000px}
|
132 |
+
a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-top:3px;overflow:hidden;text-indent:-10000px;width:14px}
|
133 |
+
.pp_hoverContainer{position:absolute;top:0;width:100%;z-index:2000}
|
134 |
+
.pp_gallery{display:none;left:50%;margin-top:-50px;position:absolute;z-index:10000}
|
135 |
+
.pp_gallery div{float:left;overflow:hidden;position:relative}
|
136 |
+
.pp_gallery ul{float:left;height:35px;position:relative;white-space:nowrap;margin:0 0 0 5px;padding:0}
|
137 |
+
.pp_gallery ul a{border:1px rgba(0,0,0,0.5) solid;display:block;float:left;height:33px;overflow:hidden}
|
138 |
+
.pp_gallery ul a img{border:0}
|
139 |
+
.pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}
|
140 |
+
.pp_gallery li.default a{background:url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;display:block;height:33px;width:50px}
|
141 |
+
.pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}
|
142 |
+
a.pp_next{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%}
|
143 |
+
a.pp_previous{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%}
|
144 |
+
a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}
|
145 |
+
a.pp_close{position:absolute;right:0;top:0;display:block;line-height:22px;text-indent:-10000px}
|
146 |
+
.pp_loaderIcon{display:block;height:24px;left:50%;position:absolute;top:50%;width:24px;margin:-12px 0 0 -12px}
|
147 |
+
#pp_full_res{line-height:1!important}
|
148 |
+
#pp_full_res .pp_inline{text-align:left}
|
149 |
+
#pp_full_res .pp_inline p{margin:0 0 15px}
|
150 |
+
div.ppt{color:#fff;display:none;font-size:17px;z-index:9999;margin:0 0 5px 15px}
|
151 |
+
div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff}
|
152 |
+
div.pp_default #pp_full_res .pp_inline,div.light_rounded .pp_content .ppt,div.light_rounded #pp_full_res .pp_inline,div.light_square .pp_content .ppt,div.light_square #pp_full_res .pp_inline,div.facebook .pp_content .ppt,div.facebook #pp_full_res .pp_inline{color:#000}
|
153 |
+
div.pp_default .pp_gallery ul li a:hover,div.pp_default .pp_gallery ul li.selected a,.pp_gallery ul a:hover,.pp_gallery li.selected a{border-color:#fff}
|
154 |
+
div.pp_default .pp_details,div.light_rounded .pp_details,div.dark_rounded .pp_details,div.dark_square .pp_details,div.light_square .pp_details,div.facebook .pp_details{position:relative}
|
155 |
+
div.light_rounded .pp_top .pp_middle,div.light_rounded .pp_content_container .pp_left,div.light_rounded .pp_content_container .pp_right,div.light_rounded .pp_bottom .pp_middle,div.light_square .pp_left,div.light_square .pp_middle,div.light_square .pp_right,div.light_square .pp_content,div.facebook .pp_content{background:#fff}
|
156 |
+
div.light_rounded .pp_description,div.light_square .pp_description{margin-right:85px}
|
157 |
+
div.light_rounded .pp_gallery a.pp_arrow_previous,div.light_rounded .pp_gallery a.pp_arrow_next,div.dark_rounded .pp_gallery a.pp_arrow_previous,div.dark_rounded .pp_gallery a.pp_arrow_next,div.dark_square .pp_gallery a.pp_arrow_previous,div.dark_square .pp_gallery a.pp_arrow_next,div.light_square .pp_gallery a.pp_arrow_previous,div.light_square .pp_gallery a.pp_arrow_next{margin-top:12px!important}
|
158 |
+
div.light_rounded .pp_arrow_previous.disabled,div.dark_rounded .pp_arrow_previous.disabled,div.dark_square .pp_arrow_previous.disabled,div.light_square .pp_arrow_previous.disabled{background-position:0 -87px;cursor:default}
|
159 |
+
div.light_rounded .pp_arrow_next.disabled,div.dark_rounded .pp_arrow_next.disabled,div.dark_square .pp_arrow_next.disabled,div.light_square .pp_arrow_next.disabled{background-position:-22px -87px;cursor:default}
|
160 |
+
div.light_rounded .pp_loaderIcon,div.light_square .pp_loaderIcon{background:url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat}
|
161 |
+
div.dark_rounded .pp_top .pp_middle,div.dark_rounded .pp_content,div.dark_rounded .pp_bottom .pp_middle{background:url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat}
|
162 |
+
div.dark_rounded .currentTextHolder,div.dark_square .currentTextHolder{color:#c4c4c4}
|
163 |
+
div.dark_rounded #pp_full_res .pp_inline,div.dark_square #pp_full_res .pp_inline{color:#fff}
|
164 |
+
.pp_top,.pp_bottom{height:20px;position:relative}
|
165 |
+
* html .pp_top,* html .pp_bottom{padding:0 20px}
|
166 |
+
.pp_top .pp_left,.pp_bottom .pp_left{height:20px;left:0;position:absolute;width:20px}
|
167 |
+
.pp_top .pp_middle,.pp_bottom .pp_middle{height:20px;left:20px;position:absolute;right:20px}
|
168 |
+
* html .pp_top .pp_middle,* html .pp_bottom .pp_middle{left:0;position:static}
|
169 |
+
.pp_top .pp_right,.pp_bottom .pp_right{height:20px;left:auto;position:absolute;right:0;top:0;width:20px}
|
170 |
+
.pp_fade,.pp_gallery li.default a img{display:none}
|
images/backgrounds/Thumbs.db
ADDED
Binary file
|
images/backgrounds/bodyBackground.jpg
ADDED
Binary file
|
images/backgrounds/checkmark.gif
ADDED
Binary file
|
images/prettyPhoto/dark_rounded/btnNext.png
ADDED
Binary file
|
images/prettyPhoto/dark_rounded/btnPrevious.png
ADDED
Binary file
|
images/prettyPhoto/dark_rounded/contentPattern.png
ADDED
Binary file
|
images/prettyPhoto/dark_rounded/default_thumbnail.gif
ADDED
Binary file
|
images/prettyPhoto/dark_rounded/loader.gif
ADDED
Binary file
|
images/prettyPhoto/dark_rounded/sprite.png
ADDED
Binary file
|
images/prettyPhoto/dark_square/btnNext.png
ADDED
Binary file
|
images/prettyPhoto/dark_square/btnPrevious.png
ADDED
Binary file
|
images/prettyPhoto/dark_square/contentPattern.png
ADDED
Binary file
|
images/prettyPhoto/dark_square/default_thumbnail.gif
ADDED
Binary file
|
images/prettyPhoto/dark_square/loader.gif
ADDED
Binary file
|
images/prettyPhoto/dark_square/sprite.png
ADDED
Binary file
|
images/prettyPhoto/default/default_thumb.png
ADDED
Binary file
|
images/prettyPhoto/default/loader.gif
ADDED
Binary file
|
images/prettyPhoto/default/sprite.png
ADDED
Binary file
|
images/prettyPhoto/default/sprite_next.png
ADDED
Binary file
|
images/prettyPhoto/default/sprite_prev.png
ADDED
Binary file
|
images/prettyPhoto/default/sprite_x.png
ADDED
Binary file
|
images/prettyPhoto/default/sprite_y.png
ADDED
Binary file
|
images/prettyPhoto/facebook/btnNext.png
ADDED
Binary file
|
images/prettyPhoto/facebook/btnPrevious.png
ADDED
Binary file
|
images/prettyPhoto/facebook/contentPatternBottom.png
ADDED
Binary file
|
images/prettyPhoto/facebook/contentPatternLeft.png
ADDED
Binary file
|
images/prettyPhoto/facebook/contentPatternRight.png
ADDED
Binary file
|
images/prettyPhoto/facebook/contentPatternTop.png
ADDED
Binary file
|
images/prettyPhoto/facebook/default_thumbnail.gif
ADDED
Binary file
|
images/prettyPhoto/facebook/loader.gif
ADDED
Binary file
|
images/prettyPhoto/facebook/sprite.png
ADDED
Binary file
|
images/prettyPhoto/light_rounded/btnNext.png
ADDED
Binary file
|
images/prettyPhoto/light_rounded/btnPrevious.png
ADDED
Binary file
|
images/prettyPhoto/light_rounded/default_thumbnail.gif
ADDED
Binary file
|
images/prettyPhoto/light_rounded/loader.gif
ADDED
Binary file
|
images/prettyPhoto/light_rounded/sprite.png
ADDED
Binary file
|
images/prettyPhoto/light_square/btnNext.png
ADDED
Binary file
|
images/prettyPhoto/light_square/btnPrevious.png
ADDED
Binary file
|
images/prettyPhoto/light_square/default_thumbnail.gif
ADDED
Binary file
|
images/prettyPhoto/light_square/loader.gif
ADDED
Binary file
|
images/prettyPhoto/light_square/sprite.png
ADDED
Binary file
|
js/jquery.prettyPhoto.js
ADDED
@@ -0,0 +1,83 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/* ------------------------------------------------------------------------
|
2 |
+
Class: prettyPhoto
|
3 |
+
Use: Lightbox clone for jQuery
|
4 |
+
Author: Stephane Caron (http://www.no-margin-for-errors.com)
|
5 |
+
Version: 3.1.4
|
6 |
+
------------------------------------------------------------------------- */
|
7 |
+
|
8 |
+
(function($){$.prettyPhoto={version:'3.1.4'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({hook:'rel',animation_speed:'fast',ajaxcallback:function(){},slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> \
|
9 |
+
<div class="ppt"> </div> \
|
10 |
+
<div class="pp_top"> \
|
11 |
+
<div class="pp_left"></div> \
|
12 |
+
<div class="pp_middle"></div> \
|
13 |
+
<div class="pp_right"></div> \
|
14 |
+
</div> \
|
15 |
+
<div class="pp_content_container"> \
|
16 |
+
<div class="pp_left"> \
|
17 |
+
<div class="pp_right"> \
|
18 |
+
<div class="pp_content"> \
|
19 |
+
<div class="pp_loaderIcon"></div> \
|
20 |
+
<div class="pp_fade"> \
|
21 |
+
<a href="#" class="pp_expand" title="Expand the image">Expand</a> \
|
22 |
+
<div class="pp_hoverContainer"> \
|
23 |
+
<a class="pp_next" href="#">next</a> \
|
24 |
+
<a class="pp_previous" href="#">previous</a> \
|
25 |
+
</div> \
|
26 |
+
<div id="pp_full_res"></div> \
|
27 |
+
<div class="pp_details"> \
|
28 |
+
<div class="pp_nav"> \
|
29 |
+
<a href="#" class="pp_arrow_previous">Previous</a> \
|
30 |
+
<p class="currentTextHolder">0/0</p> \
|
31 |
+
<a href="#" class="pp_arrow_next">Next</a> \
|
32 |
+
</div> \
|
33 |
+
<p class="pp_description"></p> \
|
34 |
+
<div class="pp_social">{pp_social}</div> \
|
35 |
+
<a class="pp_close" href="#">Close</a> \
|
36 |
+
</div> \
|
37 |
+
</div> \
|
38 |
+
</div> \
|
39 |
+
</div> \
|
40 |
+
</div> \
|
41 |
+
</div> \
|
42 |
+
<div class="pp_bottom"> \
|
43 |
+
<div class="pp_left"></div> \
|
44 |
+
<div class="pp_middle"></div> \
|
45 |
+
<div class="pp_right"></div> \
|
46 |
+
</div> \
|
47 |
+
</div> \
|
48 |
+
<div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \
|
49 |
+
<a href="#" class="pp_arrow_previous">Previous</a> \
|
50 |
+
<div> \
|
51 |
+
<ul> \
|
52 |
+
{gallery} \
|
53 |
+
</ul> \
|
54 |
+
</div> \
|
55 |
+
<a href="#" class="pp_arrow_next">Next</a> \
|
56 |
+
</div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:'',social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal)
|
57 |
+
$.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a["+settings.hook+"^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize)
|
58 |
+
$(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;}
|
59 |
+
$.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=(arguments[3])?arguments[3]:0;_build_overlay(event.target);}
|
60 |
+
if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking)
|
61 |
+
setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);}
|
62 |
+
if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(typeof pp_descriptions[set_position]!='undefined'&&pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();}
|
63 |
+
movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;}
|
64 |
+
if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;}
|
65 |
+
$pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(' ');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')>0)
|
66 |
+
movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&')>0)
|
67 |
+
movie_id=movie_id.substr(0,movie_id.indexOf('&'));}
|
68 |
+
movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&byline=0&portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('<br clear="all" />').css({'width':settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');}
|
69 |
+
_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};}
|
70 |
+
$.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;}
|
71 |
+
$.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':((windowWidth/2)-(pp_dimensions['containerWidth']/2)<0)?0:(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();}
|
72 |
+
if(settings.allow_expand){if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}}
|
73 |
+
if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();pp_settings.ajaxcallback();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;}
|
74 |
+
function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight)
|
75 |
+
return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide();}else{$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show();};galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css('margin-left',-((galleryWidth/2)+(navWidth/2))).find('div:first').width(galleryWidth+5).find('ul').width(fullGalleryWidth).find('li.selected').removeClass('selected');goToPage=(Math.floor(set_position/itemsPerPage)<totalPage)?Math.floor(set_position/itemsPerPage):totalPage;$.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(':eq('+set_position+')').addClass('selected');}else{$pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');}}
|
76 |
+
function _build_overlay(caller){if(settings.social_tools)
|
77 |
+
facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));settings.markup=settings.markup.replace('{pp_social}','');$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder'),$ppt=$('.ppt'),$pp_overlay=$('div.pp_overlay');if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var i=0;i<pp_images.length;i++){if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname='default';img_src='';}else{classname='';img_src=pp_images[i];}
|
78 |
+
toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
|
79 |
+
$pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});}
|
80 |
+
$pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});if(settings.allow_expand){$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});}
|
81 |
+
$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);}
|
82 |
+
return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#prettyPhoto')!==-1)?decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash=theRel+'/'+rel_index+'/';};function clearHashtag(){if(location.href.indexOf('#prettyPhoto')!==-1)location.hash="prettyPhoto";}
|
83 |
+
function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false;
|
readme.txt
ADDED
@@ -0,0 +1,47 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
=== WP Video Lightbox ===
|
2 |
+
Contributors: Tips and Tricks HQ
|
3 |
+
Donate link: http://www.tipsandtricks-hq.com/
|
4 |
+
Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox
|
5 |
+
Requires at least: 3.0
|
6 |
+
Tested up to: 3.4
|
7 |
+
Stable tag: 1.3
|
8 |
+
License: GPLv2 or later
|
9 |
+
|
10 |
+
Very easy to use WordPress lightbox plugin to display YouTube and Vimeo videos in an elegant lightbox overlay.
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
The WordPress Video Lightbox plugin allows you to embed videos on a page using lightbox overlay display. This plugin can be used to display images, flash, YouTube, Vimeo, iFrame etc in a lightbox overlay. The embedded videos can be viewed on iPhone and iPad too.
|
15 |
+
|
16 |
+
For video tutorial, screenshots, detailed documentation, support and updates, please visit: [WP Video Lightbox plugin page](http://www.tipsandtricks-hq.com/?p=2700)
|
17 |
+
|
18 |
+
== Usage ==
|
19 |
+
|
20 |
+
You need to embed the appropriate shortcode on a post/page to display the specific type of media (Youtube, Vimeo, Flash etc).
|
21 |
+
Instructions for using the shortcodes are available at the following URL:
|
22 |
+
[WP Video Lightbox Details Usage Instruction](http://www.tipsandtricks-hq.com/wp-content/uploads/docs/WP-Video-Lightbox-Plugin-Usage-Guide.pdf)
|
23 |
+
|
24 |
+
== Installation ==
|
25 |
+
|
26 |
+
Upload the plugin to the plugins directory via WordPress Plugin Uploader (Plugins->Add New->Upload->Choose File->Install Now) and Activate it.
|
27 |
+
|
28 |
+
== Changelog ==
|
29 |
+
|
30 |
+
= 1.3 =
|
31 |
+
* First commit
|
32 |
+
|
33 |
+
== Frequently Asked Questions ==
|
34 |
+
|
35 |
+
= Can this plugin be used to embed a YouTube video? =
|
36 |
+
Yes
|
37 |
+
|
38 |
+
= Can this plugin be used to embed a Vimeo video? =
|
39 |
+
Yes
|
40 |
+
|
41 |
+
== Screenshots ==
|
42 |
+
|
43 |
+
None
|
44 |
+
|
45 |
+
== Upgrade Notice ==
|
46 |
+
|
47 |
+
|
wp-video-lightbox.php
ADDED
@@ -0,0 +1,206 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: WP Video Lightbox
|
4 |
+
Version: 1.3
|
5 |
+
Plugin URI: http://www.tipsandtricks-hq.com/?p=2700
|
6 |
+
Author: Ruhul Amin
|
7 |
+
Author URI: http://www.tipsandtricks-hq.com/
|
8 |
+
Description: Simple video lightbox plugin to display videos in a nice overlay popup. It also supports images, flash, YouTube, iFrame.
|
9 |
+
*/
|
10 |
+
define('WP_LICENSE_MANAGER_VERSION', "1.3");
|
11 |
+
define('WP_VID_LIGHTBOX_URL', plugins_url('',__FILE__));
|
12 |
+
|
13 |
+
add_shortcode('video_lightbox_vimeo5', 'wp_vid_lightbox_vimeo5_handler');
|
14 |
+
add_shortcode('video_lightbox_youtube', 'wp_vid_lightbox_youtube_handler');
|
15 |
+
|
16 |
+
function wp_vid_lightbox_vimeo5_handler($atts)
|
17 |
+
{
|
18 |
+
extract(shortcode_atts(array(
|
19 |
+
'video_id' => '',
|
20 |
+
'width' => '',
|
21 |
+
'height' => '',
|
22 |
+
'anchor' => '',
|
23 |
+
), $atts));
|
24 |
+
if(empty($video_id) || empty($width) || empty($height) ||empty($anchor)){
|
25 |
+
return "<p>Error! You must specify a value for the Video ID, Width, Height and Anchor parameters to use this shortcode!</p>";
|
26 |
+
}
|
27 |
+
|
28 |
+
if (preg_match("/http/", $anchor)){ // Use the image as the anchor
|
29 |
+
$anchor_replacement = '<img src="'.$anchor.'" class="video_lightbox_anchor_image" alt="" />';
|
30 |
+
}
|
31 |
+
else {
|
32 |
+
$anchor_replacement = $anchor;
|
33 |
+
}
|
34 |
+
$href_content = 'http://vimeo.com/'.$video_id.'?width='.$width.'&height='.$height;
|
35 |
+
$output = "";
|
36 |
+
$output .= '<a rel="wp-video-lightbox" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
|
37 |
+
return $output;
|
38 |
+
}
|
39 |
+
|
40 |
+
function wp_vid_lightbox_youtube_handler($atts)
|
41 |
+
{
|
42 |
+
extract(shortcode_atts(array(
|
43 |
+
'video_id' => '',
|
44 |
+
'width' => '',
|
45 |
+
'height' => '',
|
46 |
+
'anchor' => '',
|
47 |
+
), $atts));
|
48 |
+
if(empty($video_id) || empty($width) || empty($height) ||empty($anchor)){
|
49 |
+
return "<p>Error! You must specify a value for the Video ID, Width, Height and Anchor parameters to use this shortcode!</p>";
|
50 |
+
}
|
51 |
+
|
52 |
+
if (preg_match("/http/", $anchor)){ // Use the image as the anchor
|
53 |
+
$anchor_replacement = '<img src="'.$anchor.'" class="video_lightbox_anchor_image" alt="" />';
|
54 |
+
}
|
55 |
+
else{
|
56 |
+
$anchor_replacement = $anchor;
|
57 |
+
}
|
58 |
+
$href_content = 'http://www.youtube.com/watch?v='.$video_id.'?width='.$width.'&height='.$height;
|
59 |
+
$output = '<a rel="wp-video-lightbox" href="'.$href_content.'" title="">'.$anchor_replacement.'</a>';
|
60 |
+
return $output;
|
61 |
+
}
|
62 |
+
|
63 |
+
function wp_vid_lightbox_head_content()
|
64 |
+
{
|
65 |
+
echo '<link type="text/css" rel="stylesheet" href="'.WP_VID_LIGHTBOX_URL.'/css/prettyPhoto.css" />';
|
66 |
+
}
|
67 |
+
function wp_vid_lightbox_init()
|
68 |
+
{
|
69 |
+
if (!is_admin())
|
70 |
+
{
|
71 |
+
wp_enqueue_script('jquery');
|
72 |
+
wp_register_script('jquery.prettyphoto', WP_VID_LIGHTBOX_URL.'/js/jquery.prettyPhoto.js', array('jquery'), '3.1.4');
|
73 |
+
wp_enqueue_script('jquery.prettyphoto');
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
function wp_vid_footer_content()
|
78 |
+
{
|
79 |
+
wp_vid_lightbox_style();
|
80 |
+
}
|
81 |
+
|
82 |
+
function wp_vid_lightbox_style()
|
83 |
+
{
|
84 |
+
$vid_lightbox_rel = "wp-video-lightbox";
|
85 |
+
$vid_lightbox_speed = 'fast';
|
86 |
+
$vid_lightbox_slideshow = '5000';
|
87 |
+
$vid_lightbox_autoplay_slideshow = 'false';
|
88 |
+
$vid_lightbox_opacity = '0.80';
|
89 |
+
$vid_lightbox_show_title = 'true';
|
90 |
+
$vid_lightbox_allow_resize = 'true';
|
91 |
+
$default_width = '640';
|
92 |
+
$default_height = '480';
|
93 |
+
$vid_lightbox_counterlabel = '/';
|
94 |
+
$vid_lightbox_theme = 'pp_default';
|
95 |
+
$vid_lightbox_horizontal_padding = '20';
|
96 |
+
$vid_lightbox_hideflash = 'false';
|
97 |
+
$vid_lightbox_wmode = 'opaque';
|
98 |
+
$vid_lightbox_autoplay = 'false';
|
99 |
+
$vid_lightbox_modal = 'false';
|
100 |
+
$vid_lightbox_deeplinking = 'false';
|
101 |
+
$vid_lightbox_overlay_gallery = 'true';
|
102 |
+
$vid_lightbox_keyboard_shortcuts = 'true';
|
103 |
+
$vid_lightbox_changepicturecallback = 'function(){}';
|
104 |
+
$vid_lightbox_callback = 'function(){}';
|
105 |
+
$vid_lightbox_markup = '<div class="pp_pic_holder"> \
|
106 |
+
<div class="ppt"> </div> \
|
107 |
+
<div class="pp_top"> \
|
108 |
+
<div class="pp_left"></div> \
|
109 |
+
<div class="pp_middle"></div> \
|
110 |
+
<div class="pp_right"></div> \
|
111 |
+
</div> \
|
112 |
+
<div class="pp_content_container"> \
|
113 |
+
<div class="pp_left"> \
|
114 |
+
<div class="pp_right"> \
|
115 |
+
<div class="pp_content"> \
|
116 |
+
<div class="pp_loaderIcon"></div> \
|
117 |
+
<div class="pp_fade"> \
|
118 |
+
<a href="#" class="pp_expand" title="Expand the image">Expand</a> \
|
119 |
+
<div class="pp_hoverContainer"> \
|
120 |
+
<a class="pp_next" href="#">next</a> \
|
121 |
+
<a class="pp_previous" href="#">previous</a> \
|
122 |
+
</div> \
|
123 |
+
<div id="pp_full_res"></div> \
|
124 |
+
<div class="pp_details"> \
|
125 |
+
<div class="pp_nav"> \
|
126 |
+
<a href="#" class="pp_arrow_previous">Previous</a> \
|
127 |
+
<p class="currentTextHolder">0/0</p> \
|
128 |
+
<a href="#" class="pp_arrow_next">Next</a> \
|
129 |
+
</div> \
|
130 |
+
<p class="pp_description"></p> \
|
131 |
+
{pp_social} \
|
132 |
+
<a class="pp_close" href="#">Close</a> \
|
133 |
+
</div> \
|
134 |
+
</div> \
|
135 |
+
</div> \
|
136 |
+
</div> \
|
137 |
+
</div> \
|
138 |
+
</div> \
|
139 |
+
<div class="pp_bottom"> \
|
140 |
+
<div class="pp_left"></div> \
|
141 |
+
<div class="pp_middle"></div> \
|
142 |
+
<div class="pp_right"></div> \
|
143 |
+
</div> \
|
144 |
+
</div> \
|
145 |
+
<div class="pp_overlay"></div>';
|
146 |
+
$vid_lightbox_gallery_markup = '<div class="pp_gallery"> \
|
147 |
+
<a href="#" class="pp_arrow_previous">Previous</a> \
|
148 |
+
<div> \
|
149 |
+
<ul> \
|
150 |
+
{gallery} \
|
151 |
+
</ul> \
|
152 |
+
</div> \
|
153 |
+
<a href="#" class="pp_arrow_next">Next</a> \
|
154 |
+
</div>';
|
155 |
+
$vid_lightbox_image_markup = '<img id="fullResImage" src="{path}" />';
|
156 |
+
$vid_lightbox_flash_markup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>';
|
157 |
+
$vid_lightbox_quicktime_markup = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>';
|
158 |
+
$vid_lightbox_iframe_markup = '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>';
|
159 |
+
$vid_lightbox_inline_markup = '<div class="pp_inline">{content}</div>';
|
160 |
+
$output = <<<EOHTML
|
161 |
+
<script type="text/javascript" charset="utf-8">
|
162 |
+
/* <![CDATA[ */
|
163 |
+
jQuery(document).ready(function($) {
|
164 |
+
$("a[rel^='{$vid_lightbox_rel}']").prettyPhoto({
|
165 |
+
animation_speed: '{$vid_lightbox_speed}',
|
166 |
+
slideshow: {$vid_lightbox_slideshow},
|
167 |
+
autoplay_slideshow: {$vid_lightbox_autoplay_slideshow},
|
168 |
+
opacity: {$vid_lightbox_opacity},
|
169 |
+
show_title: {$vid_lightbox_show_title},
|
170 |
+
allow_resize: {$vid_lightbox_allow_resize},
|
171 |
+
default_width: {$default_width},
|
172 |
+
default_height: {$default_height},
|
173 |
+
counter_separator_label: '{$vid_lightbox_counterlabel}',
|
174 |
+
theme: '{$vid_lightbox_theme}',
|
175 |
+
horizontal_padding: {$vid_lightbox_horizontal_padding},
|
176 |
+
hideflash: {$vid_lightbox_hideflash},
|
177 |
+
wmode: '{$vid_lightbox_wmode}',
|
178 |
+
autoplay: {$vid_lightbox_autoplay},
|
179 |
+
modal: {$vid_lightbox_modal},
|
180 |
+
deeplinking: {$vid_lightbox_deeplinking},
|
181 |
+
overlay_gallery: {$vid_lightbox_overlay_gallery},
|
182 |
+
keyboard_shortcuts: {$vid_lightbox_keyboard_shortcuts},
|
183 |
+
changepicturecallback: {$vid_lightbox_changepicturecallback},
|
184 |
+
callback: {$vid_lightbox_callback},
|
185 |
+
ie6_fallback: true,
|
186 |
+
markup: '{$vid_lightbox_markup}',
|
187 |
+
gallery_markup: '{$vid_lightbox_gallery_markup}',
|
188 |
+
image_markup: '{$vid_lightbox_image_markup}',
|
189 |
+
flash_markup: '{$vid_lightbox_flash_markup}',
|
190 |
+
quicktime_markup: '{$vid_lightbox_quicktime_markup}',
|
191 |
+
iframe_markup: '{$vid_lightbox_iframe_markup}',
|
192 |
+
inline_markup: '{$vid_lightbox_inline_markup}',
|
193 |
+
custom_markup: '',
|
194 |
+
social_tools: false
|
195 |
+
});
|
196 |
+
});
|
197 |
+
/* ]]> */
|
198 |
+
</script>
|
199 |
+
EOHTML;
|
200 |
+
echo $output;
|
201 |
+
}
|
202 |
+
|
203 |
+
add_action('init', 'wp_vid_lightbox_init');
|
204 |
+
add_action('wp_head', 'wp_vid_lightbox_head_content');
|
205 |
+
add_action('wp_footer', 'wp_vid_footer_content');
|
206 |
+
?>
|