Responsive Lightbox & Gallery - Version 1.0.0

Version Description

Initial release

=

Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Responsive Lightbox & Gallery
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

Files changed (65) hide show
  1. assets/prettyphoto/README +30 -0
  2. assets/prettyphoto/css/prettyPhoto.css +170 -0
  3. assets/prettyphoto/images/prettyPhoto/dark_rounded/btnNext.png +0 -0
  4. assets/prettyphoto/images/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
  5. assets/prettyphoto/images/prettyPhoto/dark_rounded/contentPattern.png +0 -0
  6. assets/prettyphoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
  7. assets/prettyphoto/images/prettyPhoto/dark_rounded/loader.gif +0 -0
  8. assets/prettyphoto/images/prettyPhoto/dark_rounded/sprite.png +0 -0
  9. assets/prettyphoto/images/prettyPhoto/dark_square/btnNext.png +0 -0
  10. assets/prettyphoto/images/prettyPhoto/dark_square/btnPrevious.png +0 -0
  11. assets/prettyphoto/images/prettyPhoto/dark_square/contentPattern.png +0 -0
  12. assets/prettyphoto/images/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
  13. assets/prettyphoto/images/prettyPhoto/dark_square/loader.gif +0 -0
  14. assets/prettyphoto/images/prettyPhoto/dark_square/sprite.png +0 -0
  15. assets/prettyphoto/images/prettyPhoto/default/default_thumb.png +0 -0
  16. assets/prettyphoto/images/prettyPhoto/default/loader.gif +0 -0
  17. assets/prettyphoto/images/prettyPhoto/default/sprite.png +0 -0
  18. assets/prettyphoto/images/prettyPhoto/default/sprite_next.png +0 -0
  19. assets/prettyphoto/images/prettyPhoto/default/sprite_prev.png +0 -0
  20. assets/prettyphoto/images/prettyPhoto/default/sprite_x.png +0 -0
  21. assets/prettyphoto/images/prettyPhoto/default/sprite_y.png +0 -0
  22. assets/prettyphoto/images/prettyPhoto/facebook/btnNext.png +0 -0
  23. assets/prettyphoto/images/prettyPhoto/facebook/btnPrevious.png +0 -0
  24. assets/prettyphoto/images/prettyPhoto/facebook/contentPatternBottom.png +0 -0
  25. assets/prettyphoto/images/prettyPhoto/facebook/contentPatternLeft.png +0 -0
  26. assets/prettyphoto/images/prettyPhoto/facebook/contentPatternRight.png +0 -0
  27. assets/prettyphoto/images/prettyPhoto/facebook/contentPatternTop.png +0 -0
  28. assets/prettyphoto/images/prettyPhoto/facebook/default_thumbnail.gif +0 -0
  29. assets/prettyphoto/images/prettyPhoto/facebook/loader.gif +0 -0
  30. assets/prettyphoto/images/prettyPhoto/facebook/sprite.png +0 -0
  31. assets/prettyphoto/images/prettyPhoto/light_rounded/btnNext.png +0 -0
  32. assets/prettyphoto/images/prettyPhoto/light_rounded/btnPrevious.png +0 -0
  33. assets/prettyphoto/images/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
  34. assets/prettyphoto/images/prettyPhoto/light_rounded/loader.gif +0 -0
  35. assets/prettyphoto/images/prettyPhoto/light_rounded/sprite.png +0 -0
  36. assets/prettyphoto/images/prettyPhoto/light_square/btnNext.png +0 -0
  37. assets/prettyphoto/images/prettyPhoto/light_square/btnPrevious.png +0 -0
  38. assets/prettyphoto/images/prettyPhoto/light_square/default_thumbnail.gif +0 -0
  39. assets/prettyphoto/images/prettyPhoto/light_square/loader.gif +0 -0
  40. assets/prettyphoto/images/prettyPhoto/light_square/sprite.png +0 -0
  41. assets/prettyphoto/js/jquery.prettyPhoto.js +7 -0
  42. assets/swipebox/README.md +57 -0
  43. assets/swipebox/lib/ios-orientationchange-fix.js +56 -0
  44. assets/swipebox/source/img/icons.png +0 -0
  45. assets/swipebox/source/img/icons.svg +1 -0
  46. assets/swipebox/source/img/loader.gif +0 -0
  47. assets/swipebox/source/jquery.swipebox.js +451 -0
  48. assets/swipebox/source/jquery.swipebox.min.js +1 -0
  49. assets/swipebox/source/swipebox.css +223 -0
  50. css/images/bg_fallback.png +0 -0
  51. css/images/icon_sprite.png +0 -0
  52. css/images/slider_handles.png +0 -0
  53. css/images/slider_handles@2x.png +0 -0
  54. css/images/ui-icons_222222_256x240.png +0 -0
  55. css/images/ui-icons_454545_256x240.png +0 -0
  56. css/responsive-lightbox-admin.css +9 -0
  57. css/responsive-lightbox-front.css +179 -0
  58. css/wp-like-ui-theme.css +774 -0
  59. images/logo-dfactory.png +0 -0
  60. index.php +2 -0
  61. js/responsive-lightbox-admin.js +36 -0
  62. js/responsive-lightbox-front.js +58 -0
  63. languages/responsive-lightbox.pot +400 -0
  64. readme.txt +51 -0
  65. responsive-lightbox.php +1028 -0
assets/prettyphoto/README ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prettyPhoto v3.1.4
2
+ © Copyright, Stephane Caron
3
+ http://www.no-margin-for-errors.com
4
+
5
+
6
+ ============================= Released under =============================
7
+
8
+ Creative Commons 2.5
9
+ http://creativecommons.org/licenses/by/2.5/
10
+
11
+ OR
12
+
13
+ GPLV2 license
14
+ http://www.gnu.org/licenses/gpl-2.0.html
15
+
16
+ You are free to use prettyPhoto in commercial projects as long as the
17
+ copyright header is left intact.
18
+
19
+ ============================ More information ============================
20
+ http://www.no-margin-for-errors.com/projects/prettyPhoto/
21
+
22
+
23
+ ============================== Description ===============================
24
+
25
+ prettyPhoto is a jQuery based lightbox clone. Not only does it support images,
26
+ it also add support for videos, flash, YouTube, iFrame. It's a full blown
27
+ media modal box.
28
+
29
+ Please refer to http://www.no-margin-for-errors.com/projects/prettyPhoto/
30
+ for all the details on how to use.
assets/prettyphoto/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}
assets/prettyphoto/images/prettyPhoto/dark_rounded/btnNext.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_rounded/btnPrevious.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_rounded/contentPattern.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_rounded/loader.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_rounded/sprite.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_square/btnNext.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_square/btnPrevious.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_square/contentPattern.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_square/default_thumbnail.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_square/loader.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/dark_square/sprite.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/default/default_thumb.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/default/loader.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/default/sprite.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/default/sprite_next.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/default/sprite_prev.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/default/sprite_x.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/default/sprite_y.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/btnNext.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/btnPrevious.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/contentPatternBottom.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/contentPatternLeft.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/contentPatternRight.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/contentPatternTop.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/default_thumbnail.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/loader.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/facebook/sprite.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_rounded/btnNext.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_rounded/btnPrevious.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_rounded/default_thumbnail.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_rounded/loader.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_rounded/sprite.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_square/btnNext.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_square/btnPrevious.png ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_square/default_thumbnail.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_square/loader.gif ADDED
Binary file
assets/prettyphoto/images/prettyPhoto/light_square/sprite.png ADDED
Binary file
assets/prettyphoto/js/jquery.prettyPhoto.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
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.5
6
+ ------------------------------------------------------------------------- */
7
+ (function(e){function t(){var e=location.href;hashtag=e.indexOf("#prettyPhoto")!==-1?decodeURI(e.substring(e.indexOf("#prettyPhoto")+1,e.length)):false;return hashtag}function n(){if(typeof theRel=="undefined")return;location.hash=theRel+"/"+rel_index+"/"}function r(){if(location.href.indexOf("#prettyPhoto")!==-1)location.hash="prettyPhoto"}function i(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n="[\\?&]"+e+"=([^&#]*)";var r=new RegExp(n);var i=r.exec(t);return i==null?"":i[1]}e.prettyPhoto={version:"3.1.5"};e.fn.prettyPhoto=function(s){function g(){e(".pp_loaderIcon").hide();projectedTop=scroll_pos["scrollTop"]+(d/2-a["containerHeight"]/2);if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:a["contentHeight"],width:a["contentWidth"]},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:v/2-a["containerWidth"]/2<0?0:v/2-a["containerWidth"]/2,width:a["containerWidth"]},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a["height"]).width(a["width"]);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&S(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(settings.allow_expand){if(a["resized"]){e("a.pp_expand,a.pp_contract").show()}else{e("a.pp_expand").hide()}}if(settings.autoplay_slideshow&&!m&&!f)e.prettyPhoto.startSlideshow();settings.changepicturecallback();f=true});C();s.ajaxcallback()}function y(t){$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(){e(".pp_loaderIcon").show();t()})}function b(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function w(e,t){resized=false;E(e,t);imageWidth=e,imageHeight=t;if((p>v||h>d)&&doresize&&settings.allow_resize&&!u){resized=true,fitting=false;while(!fitting){if(p>v){imageWidth=v-200;imageHeight=t/e*imageWidth}else if(h>d){imageHeight=d-200;imageWidth=e/t*imageHeight}else{fitting=true}h=imageHeight,p=imageWidth}if(p>v||h>d){w(p,h)}E(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(h),containerWidth:Math.floor(p)+settings.horizontal_padding*2,contentHeight:Math.floor(l),contentWidth:Math.floor(c),resized:resized}}function E(t,n){t=parseFloat(t);n=parseFloat(n);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();l=n+detailsHeight;c=t;h=l+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();p=t}function S(e){if(e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)){return"youtube"}else if(e.match(/vimeo\.com/i)){return"vimeo"}else if(e.match(/\b.mov\b/i)){return"quicktime"}else if(e.match(/\b.swf\b/i)){return"flash"}else if(e.match(/\biframe=true\b/i)){return"iframe"}else if(e.match(/\bajax=true\b/i)){return"ajax"}else if(e.match(/\bcustom=true\b/i)){return"custom"}else if(e.substr(0,1)=="#"){return"inline"}else{return"image"}}function x(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=T();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=d/2+scroll_pos["scrollTop"]-contentHeight/2;if(projectedTop<0)projectedTop=0;if(contentHeight>d)return;$pp_pic_holder.css({top:projectedTop,left:v/2+scroll_pos["scrollLeft"]-contentwidth/2})}}function T(){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 N(){d=e(window).height(),v=e(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height(e(document).height()).width(v)}function C(){if(isSet&&settings.overlay_gallery&&S(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30;itemsPerPage=Math.floor((a["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;e.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}}function k(t){if(settings.social_tools)facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));settings.markup=settings.markup.replace("{pp_social}","");e("body").append(settings.markup);$pp_pic_holder=e(".pp_pic_holder"),$ppt=e(".ppt"),$pp_overlay=e("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var n=0;n<pp_images.length;n++){if(!pp_images[n].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname="default";img_src=""}else{classname="";img_src=pp_images[n]}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=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){e.prettyPhoto.changeGalleryPage("next");e.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){e.prettyPhoto.changeGalleryPage("previous");e.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(t){e(this).find("a").click(function(){e.prettyPhoto.changePage(t);e.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){e.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){if(!settings.modal)e.prettyPhoto.close()});e("a.pp_close").bind("click",function(){e.prettyPhoto.close();return false});if(settings.allow_expand){e("a.pp_expand").bind("click",function(t){if(e(this).hasClass("pp_expand")){e(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{e(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}y(function(){e.prettyPhoto.open()});return false})}$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){e.prettyPhoto.changePage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){e.prettyPhoto.changePage("next");e.prettyPhoto.stopSlideshow();return false});x()}s=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:false,opacity:.8,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"> <div class="ppt"> </div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> <div class="pp_social">{pp_social}</div> <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </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>'},s);var o=this,u=false,a,f,l,c,h,p,d=e(window).height(),v=e(window).width(),m;doresize=true,scroll_pos=T();e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){x();N()});if(s.keyboard_shortcuts){e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:e.prettyPhoto.changePage("next");t.preventDefault();break;case 27:if(!settings.modal)e.prettyPhoto.close();t.preventDefault();break}}}})}e.prettyPhoto.initialize=function(){settings=s;if(settings.theme=="pp_default")settings.horizontal_padding=16;theRel=e(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=galleryRegExp.exec(theRel)?true:false;pp_images=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("href")}):e.makeArray(e(this).attr("href"));pp_titles=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):""}):e.makeArray(e(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("title")?e(t).attr("title"):""}):e.makeArray(e(this).attr("title"));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray(e(this).attr("href"),pp_images);rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this));k(this);if(settings.allow_resize)e(window).bind("scroll.prettyphoto",function(){x()});e.prettyPhoto.open();return false};e.prettyPhoto.open=function(t){if(typeof settings=="undefined"){settings=s;pp_images=e.makeArray(arguments[0]);pp_titles=arguments[1]?e.makeArray(arguments[1]):e.makeArray("");pp_descriptions=arguments[2]?e.makeArray(arguments[2]):e.makeArray("");isSet=pp_images.length>1?true:false;set_position=arguments[3]?arguments[3]:0;k(t.target)}if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden");b(e(pp_images).size());e(".pp_loaderIcon").show();if(settings.deeplinking)n();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)}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+e(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()}movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString();movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):settings.default_height.toString();u=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150);u=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150);u=true}$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(S(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position<e(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(){a=w(imgPreloader.width,imgPreloader.height);g()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");e.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":a=w(movie_width,movie_height);movie_id=i("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)movie_id=movie_id.substr(0,movie_id.indexOf("?"));if(movie_id.indexOf("&")>0)movie_id=movie_id.substr(0,movie_id.indexOf("&"))}movie="http://www.youtube.com/embed/"+movie_id;i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":a=w(movie_width,movie_height);movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;var n=movie_id.match(t);movie="http://player.vimeo.com/video/"+n[3]+"?title=0&byline=0&portrait=0";if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=a["width"]+"/embed/?moog_width="+a["width"];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,a["height"]).replace(/{path}/g,movie);break;case"quicktime":a=w(movie_width,movie_height);a["height"]+=15;a["contentHeight"]+=15;a["containerHeight"]+=15;toInject=settings.quicktime_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":a=w(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,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":a=w(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,a["width"]).replace(/{height}/g,a["height"]).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;a=w(movie_width,movie_height);doresize=true;skipInjection=true;e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()});break;case"custom":a=w(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=e(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(e("body")).show();doresize=false;a=w(e(myClone).width(),e(myClone).height());doresize=true;e(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()}});return false};e.prettyPhoto.changePage=function(t){currentGalleryPage=0;if(t=="previous"){set_position--;if(set_position<0)set_position=e(pp_images).size()-1}else if(t=="next"){set_position++;if(set_position>e(pp_images).size()-1)set_position=0}else{set_position=t}rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){e(".pp_contract").removeClass("pp_contract").addClass("pp_expand")}y(function(){e.prettyPhoto.open()})};e.prettyPhoto.changeGalleryPage=function(e){if(e=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0}else if(e=="previous"){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage}else{currentGalleryPage=e}slide_speed=e=="next"||e=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};e.prettyPhoto.startSlideshow=function(){if(typeof m=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){e.prettyPhoto.stopSlideshow();return false});m=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)}else{e.prettyPhoto.changePage("next")}};e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){e.prettyPhoto.startSlideshow();return false});clearInterval(m);m=undefined};e.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;e.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");e(this).remove();e(window).unbind("scroll.prettyphoto");r();settings.callback();doresize=true;f=false;delete settings})};if(!pp_alreadyInitialized&&t()){pp_alreadyInitialized=true;hashIndex=t();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){e("a["+s.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)};})(jQuery);var pp_alreadyInitialized=false
assets/swipebox/README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Swipebox
2
+ ================================
3
+
4
+ A touchable jQuery lightbox.
5
+
6
+ [View project page](http://brutaldesign.github.com/swipebox)
7
+
8
+ ##What is Swipebox ?
9
+
10
+ Swipebox is a jQuery "lightbox" plugin for desktop, mobile and tablet.
11
+
12
+ ##Features
13
+
14
+ - Swipe gestures for mobile
15
+ - Keyboard Navigation for desktop
16
+ - CSS transitions with jQuery fallback
17
+ - Retina support for UI icons
18
+ - Easy CSS customization
19
+
20
+ ###Compatibility
21
+
22
+ Chrome, Safari, Firefox, Opera, IE8+, IOS4+, Android, windows phone.
23
+
24
+ ##Usage
25
+
26
+ ###Javascript
27
+
28
+ Include jquery and the swipebox script in your head tags or right before your body closing tag.
29
+
30
+ `<script src="lib/jquery-1.9.0.js"></script>`
31
+
32
+ `<script src="source/jquery.swipebox.min.js"></script>`
33
+
34
+ ###CSS
35
+
36
+ Include the swipebox CSS style in your head tags.
37
+
38
+ `<link rel="stylesheet" href="source/swipebox.css">`
39
+
40
+ ###HTML
41
+
42
+ Use a specific class for your links and use the title attribute as caption.
43
+
44
+ `<a href="big/image.jpg" class="swipebox" title="My Caption">`
45
+
46
+ ###Fire the plugin
47
+
48
+ Bind the swipebox behaviour on every link with the "swipebox" class.
49
+
50
+ `$(".swipebox").swipebox();`
51
+
52
+
53
+ ###Need a couple of options?
54
+
55
+
56
+ `useCSS : true, // false will force the use of jQuery for animations`
57
+ `hideBarsDelay : 3000 // 0 to always show caption and action bar`
assets/swipebox/lib/ios-orientationchange-fix.js ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! A fix for the iOS orientationchange zoom bug.
2
+ Script by @scottjehl, rebound by @wilto.
3
+ MIT / GPLv2 License.
4
+ */
5
+ (function(w){
6
+
7
+ // This fix addresses an iOS bug, so return early if the UA claims it's something else.
8
+ var ua = navigator.userAgent;
9
+ if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && /OS [1-5]_[0-9_]* like Mac OS X/i.test(ua) && ua.indexOf( "AppleWebKit" ) > -1 ) ){
10
+ return;
11
+ }
12
+
13
+ var doc = w.document;
14
+
15
+ if( !doc.querySelector ){ return; }
16
+
17
+ var meta = doc.querySelector( "meta[name=viewport]" ),
18
+ initialContent = meta && meta.getAttribute( "content" ),
19
+ disabledZoom = initialContent + ",maximum-scale=1",
20
+ enabledZoom = initialContent + ",maximum-scale=10",
21
+ enabled = true,
22
+ x, y, z, aig;
23
+
24
+ if( !meta ){ return; }
25
+
26
+ function restoreZoom(){
27
+ meta.setAttribute( "content", enabledZoom );
28
+ enabled = true;
29
+ }
30
+
31
+ function disableZoom(){
32
+ meta.setAttribute( "content", disabledZoom );
33
+ enabled = false;
34
+ }
35
+
36
+ function checkTilt( e ){
37
+ aig = e.accelerationIncludingGravity;
38
+ x = Math.abs( aig.x );
39
+ y = Math.abs( aig.y );
40
+ z = Math.abs( aig.z );
41
+
42
+ // If portrait orientation and in one of the danger zones
43
+ if( (!w.orientation || w.orientation === 180) && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
44
+ if( enabled ){
45
+ disableZoom();
46
+ }
47
+ }
48
+ else if( !enabled ){
49
+ restoreZoom();
50
+ }
51
+ }
52
+
53
+ w.addEventListener( "orientationchange", restoreZoom, false );
54
+ w.addEventListener( "devicemotion", checkTilt, false );
55
+
56
+ })( this );
assets/swipebox/source/img/icons.png ADDED
Binary file
assets/swipebox/source/img/icons.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="120" height="24" viewBox="0 0 120 24" fill="#ffffff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M 17.384,17.705q0.00,0.536 -0.375,0.911l-1.821,1.821q-0.375,0.375 -0.911,0.375t-0.911-0.375l-3.938-3.938l-3.938,3.938q-0.375,0.375 -0.911,0.375t-0.911-0.375l-1.821-1.821q-0.375-0.375 -0.375-0.911t 0.375-0.911l 3.938-3.938l-3.938-3.938q-0.375-0.375 -0.375-0.911t 0.375-0.911l 1.821-1.821q 0.375-0.375 0.911-0.375t 0.911,0.375l 3.938,3.938l 3.938-3.938q 0.375-0.375 0.911-0.375t 0.911,0.375l 1.821,1.821q 0.375,0.375 0.375,0.911 t-0.375,0.911l-3.938,3.938l 3.938,3.938q 0.375,0.375 0.375,0.911zM 57.938,21.067l-8.732-8.719q-0.496-0.496 -0.496-1.212t 0.496-1.212l 8.732-8.719q 0.496-0.496 1.212-0.496t 1.212,0.496l 1.004,1.004q 0.496,0.496 0.496,1.212t-0.496,1.212l-6.509,6.509l 6.509,6.496q 0.496,0.509 0.496,1.219t-0.496,1.205l-1.004,1.004q-0.496,0.496 -1.212,0.496t-1.212-0.496zM 110.719,11.143q0.00,0.696 -0.496,1.219l-8.732,8.719q-0.496,0.496 -1.205,0.496t-1.205-0.496l-1.018-1.004q-0.496-0.522 -0.496-1.219q0.00-0.71 0.496-1.205l 6.509-6.509l-6.509-6.496q-0.496-0.522 -0.496-1.219q0.00-0.71 0.496-1.205l 1.018-1.004q 0.482-0.509 1.205-0.509t 1.205,0.509l 8.732,8.719q 0.496,0.496 0.496,1.205z"></path></svg>
assets/swipebox/source/img/loader.gif ADDED
Binary file
assets/swipebox/source/jquery.swipebox.js ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+
3
+ @author Constantin Saguin - @brutaldesign
4
+ @link http://bsign.co
5
+ @github http://github.com/brutaldesign/swipebox
6
+ @version 1.1.2
7
+ @license MIT License
8
+
9
+ ----------------------------------------------------------------------------------------------*/
10
+
11
+ ;(function (window, document, $, undefined) {
12
+
13
+ $.swipebox = function(elem, options) {
14
+
15
+ var defaults = {
16
+ useCSS : true,
17
+ hideBarsDelay : 3000
18
+ },
19
+
20
+ plugin = this,
21
+ $elem = $(elem),
22
+ elem = elem,
23
+ selector = elem.selector,
24
+ $selector = $(selector),
25
+ isTouch = document.createTouch !== undefined || ('ontouchstart' in window) || ('onmsgesturechange' in window) || navigator.msMaxTouchPoints,
26
+ supportSVG = !!(window.SVGSVGElement),
27
+ html = '<div id="swipebox-overlay">\
28
+ <div id="swipebox-slider"></div>\
29
+ <div id="swipebox-caption"></div>\
30
+ <div id="swipebox-action">\
31
+ <a id="swipebox-close"></a>\
32
+ <a id="swipebox-prev"></a>\
33
+ <a id="swipebox-next"></a>\
34
+ </div>\
35
+ </div>';
36
+
37
+ plugin.settings = {}
38
+
39
+ plugin.init = function(){
40
+
41
+ plugin.settings = $.extend({}, defaults, options);
42
+
43
+ $selector.click(function(e){
44
+ e.preventDefault();
45
+ e.stopPropagation();
46
+ index = $elem.index($(this));
47
+ ui.target = $(e.target);
48
+ ui.init(index);
49
+ });
50
+ }
51
+
52
+ var ui = {
53
+
54
+ init : function(index){
55
+ this.target.trigger('swipebox-start');
56
+ this.build();
57
+ this.openSlide(index);
58
+ this.openImg(index);
59
+ this.preloadImg(index+1);
60
+ this.preloadImg(index-1);
61
+ },
62
+
63
+ build : function(){
64
+ var $this = this;
65
+
66
+ $('body').append(html);
67
+
68
+ if($this.doCssTrans()){
69
+ $('#swipebox-slider').css({
70
+ '-webkit-transition' : 'left 0.4s ease',
71
+ '-moz-transition' : 'left 0.4s ease',
72
+ '-o-transition' : 'left 0.4s ease',
73
+ '-khtml-transition' : 'left 0.4s ease',
74
+ 'transition' : 'left 0.4s ease'
75
+ });
76
+ $('#swipebox-overlay').css({
77
+ '-webkit-transition' : 'opacity 1s ease',
78
+ '-moz-transition' : 'opacity 1s ease',
79
+ '-o-transition' : 'opacity 1s ease',
80
+ '-khtml-transition' : 'opacity 1s ease',
81
+ 'transition' : 'opacity 1s ease'
82
+ });
83
+ $('#swipebox-action, #swipebox-caption').css({
84
+ '-webkit-transition' : '0.5s',
85
+ '-moz-transition' : '0.5s',
86
+ '-o-transition' : '0.5s',
87
+ '-khtml-transition' : '0.5s',
88
+ 'transition' : '0.5s'
89
+ });
90
+ }
91
+
92
+
93
+ if(supportSVG){
94
+ var bg = $('#swipebox-action #swipebox-close').css('background-image');
95
+ bg = bg.replace('png', 'svg');
96
+ $('#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close').css({
97
+ 'background-image' : bg
98
+ });
99
+ }
100
+
101
+ $elem.each(function(){
102
+ $('#swipebox-slider').append('<div class="slide"></div>');
103
+ });
104
+
105
+ $this.setDim();
106
+ $this.actions();
107
+ $this.keyboard();
108
+ $this.gesture();
109
+ $this.animBars();
110
+
111
+ $(window).resize(function() {
112
+ $this.setDim();
113
+ }).resize();
114
+ },
115
+
116
+ setDim : function(){
117
+ var sliderCss = {
118
+ width : $(window).width(),
119
+ height : window.innerHeight ? window.innerHeight : $(window).height() // fix IOS bug
120
+ }
121
+
122
+ $('#swipebox-overlay').css(sliderCss);
123
+
124
+ },
125
+
126
+ supportTransition : function() {
127
+ var prefixes = 'transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition'.split(' ');
128
+ for(var i = 0; i < prefixes.length; i++) {
129
+ if(document.createElement('div').style[prefixes[i]] !== undefined) {
130
+ return prefixes[i];
131
+ }
132
+ }
133
+ return false;
134
+ },
135
+
136
+ doCssTrans : function(){
137
+ if(plugin.settings.useCSS && this.supportTransition() ){
138
+ return true;
139
+ }
140
+ },
141
+
142
+ gesture : function(){
143
+ if ( isTouch ){
144
+ var $this = this,
145
+ distance = null,
146
+ swipMinDistance = 10,
147
+ startCoords = {},
148
+ endCoords = {};
149
+ var b = $('#swipebox-caption, #swipebox-action');
150
+
151
+ b.addClass('visible-bars');
152
+ $this.setTimeout();
153
+
154
+ $('body').bind('touchstart', function(e){
155
+
156
+ $(this).addClass('touching');
157
+
158
+ endCoords = e.originalEvent.targetTouches[0];
159
+ startCoords.pageX = e.originalEvent.targetTouches[0].pageX;
160
+
161
+ $('.touching').bind('touchmove',function(e){
162
+ e.preventDefault();
163
+ e.stopPropagation();
164
+ endCoords = e.originalEvent.targetTouches[0];
165
+
166
+ });
167
+
168
+ return false;
169
+
170
+ }).bind('touchend',function(e){
171
+ e.preventDefault();
172
+ e.stopPropagation();
173
+
174
+ distance = endCoords.pageX - startCoords.pageX;
175
+
176
+ if( distance >= swipMinDistance ){
177
+ // swipeLeft
178
+ $this.getPrev();
179
+ }
180
+
181
+ else if( distance <= - swipMinDistance ){
182
+ // swipeRight
183
+ $this.getNext();
184
+
185
+ }else{
186
+ // tap
187
+ if(!b.hasClass('visible-bars')){
188
+ $this.showBars();
189
+ $this.setTimeout();
190
+ }else{
191
+ $this.clearTimeout();
192
+ $this.hideBars();
193
+ }
194
+
195
+ }
196
+
197
+ $('.touching').off('touchmove').removeClass('touching');
198
+
199
+ });
200
+
201
+ }
202
+ },
203
+
204
+ setTimeout: function(){
205
+ if(plugin.settings.hideBarsDelay > 0){
206
+ var $this = this;
207
+ $this.clearTimeout();
208
+ $this.timeout = window.setTimeout( function(){
209
+ $this.hideBars() },
210
+ plugin.settings.hideBarsDelay
211
+ );
212
+ }
213
+ },
214
+
215
+ clearTimeout: function(){
216
+ window.clearTimeout(this.timeout);
217
+ this.timeout = null;
218
+ },
219
+
220
+ showBars : function(){
221
+ var b = $('#swipebox-caption, #swipebox-action');
222
+ if(this.doCssTrans()){
223
+ b.addClass('visible-bars');
224
+ }else{
225
+ $('#swipebox-caption').animate({ top : 0 }, 500);
226
+ $('#swipebox-action').animate({ bottom : 0 }, 500);
227
+ setTimeout(function(){
228
+ b.addClass('visible-bars');
229
+ }, 1000);
230
+ }
231
+ },
232
+
233
+ hideBars : function(){
234
+ var b = $('#swipebox-caption, #swipebox-action');
235
+ if(this.doCssTrans()){
236
+ b.removeClass('visible-bars');
237
+ }else{
238
+ $('#swipebox-caption').animate({ top : '-50px' }, 500);
239
+ $('#swipebox-action').animate({ bottom : '-50px' }, 500);
240
+ setTimeout(function(){
241
+ b.removeClass('visible-bars');
242
+ }, 1000);
243
+ }
244
+ },
245
+
246
+ animBars : function(){
247
+ var $this = this;
248
+ var b = $('#swipebox-caption, #swipebox-action');
249
+
250
+ b.addClass('visible-bars');
251
+ $this.setTimeout();
252
+
253
+ $('#swipebox-slider').click(function(e){
254
+ if(!b.hasClass('visible-bars')){
255
+ $this.showBars();
256
+ $this.setTimeout();
257
+ }
258
+ });
259
+
260
+ $('#swipebox-action').hover(function() {
261
+ $this.showBars();
262
+ b.addClass('force-visible-bars');
263
+ $this.clearTimeout();
264
+
265
+ },function() {
266
+ b.removeClass('force-visible-bars');
267
+ $this.setTimeout();
268
+
269
+ });
270
+ },
271
+
272
+ keyboard : function(){
273
+ var $this = this;
274
+ $(window).bind('keyup', function(e){
275
+ e.preventDefault();
276
+ e.stopPropagation();
277
+ if (e.keyCode == 37){
278
+ $this.getPrev();
279
+ }
280
+ else if (e.keyCode==39){
281
+ $this.getNext();
282
+ }
283
+ else if (e.keyCode == 27) {
284
+ $this.closeSlide();
285
+ }
286
+ });
287
+ },
288
+
289
+ actions : function(){
290
+ var $this = this;
291
+
292
+ if( $elem.length < 2 ){
293
+ $('#swipebox-prev, #swipebox-next').hide();
294
+ }else{
295
+ $('#swipebox-prev').bind('click touchend', function(e){
296
+ e.preventDefault();
297
+ e.stopPropagation();
298
+ $this.getPrev();
299
+ $this.setTimeout();
300
+ });
301
+
302
+ $('#swipebox-next').bind('click touchend', function(e){
303
+ e.preventDefault();
304
+ e.stopPropagation();
305
+ $this.getNext();
306
+ $this.setTimeout();
307
+ });
308
+ }
309
+
310
+ $('#swipebox-close').bind('click touchend', function(e){
311
+ $this.closeSlide();
312
+ });
313
+ },
314
+
315
+ setSlide : function (index, isFirst){
316
+ isFirst = isFirst || false;
317
+
318
+ var slider = $('#swipebox-slider');
319
+
320
+ if(this.doCssTrans()){
321
+ slider.css({ left : (-index*100)+'%' });
322
+ }else{
323
+ slider.animate({ left : (-index*100)+'%' });
324
+ }
325
+
326
+ $('#swipebox-slider .slide').removeClass('current');
327
+ $('#swipebox-slider .slide').eq(index).addClass('current');
328
+ this.setTitle(index);
329
+
330
+ if( isFirst ){
331
+ slider.fadeIn();
332
+ }
333
+
334
+ $('#swipebox-prev, #swipebox-next').removeClass('disabled');
335
+ if(index == 0){
336
+ $('#swipebox-prev').addClass('disabled');
337
+ }else if( index == $elem.length - 1 ){
338
+ $('#swipebox-next').addClass('disabled');
339
+ }
340
+ },
341
+
342
+ openSlide : function (index){
343
+
344
+ $('html').addClass('swipebox');
345
+ $(window).trigger('resize'); // fix scroll bar visibility on desktop
346
+ this.setSlide(index, true);
347
+ },
348
+
349
+ preloadImg : function (index){
350
+ var $this = this;
351
+ setTimeout(function(){
352
+ $this.openImg(index);
353
+ }, 1000);
354
+ },
355
+
356
+ openImg : function (index){
357
+ var $this = this;
358
+ if(index < 0 || index >= $elem.length){
359
+ return false;
360
+ }
361
+
362
+ $this.loadImg($elem.eq(index).attr('href'), function(){
363
+ $('#swipebox-slider .slide').eq(index).html(this);
364
+ });
365
+ },
366
+
367
+
368
+ setTitle : function(index, isFirst){
369
+ $('#swipebox-caption').empty();
370
+
371
+ if($elem.eq(index).attr('title')){
372
+ $('#swipebox-caption').append($elem.eq(index).attr('title'));
373
+ }
374
+ },
375
+
376
+ loadImg : function (src, callback){
377
+ var img = $('<img>').on('load', function(){
378
+ callback.call(img);
379
+ });
380
+
381
+ img.attr('src',src);
382
+ },
383
+
384
+ getNext : function (){
385
+ var $this = this;
386
+ index = $('#swipebox-slider .slide').index($('#swipebox-slider .slide.current'));
387
+ if(index+1 < $elem.length){
388
+ index++;
389
+ $this.setSlide(index);
390
+ $this.preloadImg(index+1);
391
+ }
392
+ else{
393
+
394
+ $('#swipebox-slider').addClass('rightSpring');
395
+ setTimeout(function(){
396
+ $('#swipebox-slider').removeClass('rightSpring');
397
+ },500);
398
+ }
399
+ },
400
+
401
+ getPrev : function (){
402
+ var $this = this;
403
+ index = $('#swipebox-slider .slide').index($('#swipebox-slider .slide.current'));
404
+ if(index > 0){
405
+ index--;
406
+ $this.setSlide(index);
407
+ $this.preloadImg(index-1);
408
+ }
409
+ else{
410
+
411
+ $('#swipebox-slider').addClass('leftSpring');
412
+ setTimeout(function(){
413
+ $('#swipebox-slider').removeClass('leftSpring');
414
+ },500);
415
+ }
416
+ },
417
+
418
+
419
+ closeSlide : function (){
420
+ var $this = this;
421
+ $(window).trigger('resize');
422
+ $('html').removeClass('swipebox');
423
+ $this.destroy();
424
+ },
425
+
426
+ destroy : function(){
427
+ var $this = this;
428
+ $(window).unbind('keyup');
429
+ $('body').unbind('touchstart');
430
+ $('body').unbind('touchmove');
431
+ $('body').unbind('touchend');
432
+ $('#swipebox-slider').unbind();
433
+ $('#swipebox-overlay').remove();
434
+ $elem.removeData('_swipebox');
435
+ $this.target.trigger('swipebox-destroy');
436
+ }
437
+
438
+ }
439
+
440
+ plugin.init();
441
+
442
+ }
443
+
444
+ $.fn.swipebox = function(options){
445
+ if (!$.data(this, "_swipebox")) {
446
+ var swipebox = new $.swipebox(this, options);
447
+ this.data('_swipebox', swipebox);
448
+ }
449
+ }
450
+
451
+ }(window, document, jQuery));
assets/swipebox/source/jquery.swipebox.min.js ADDED
@@ -0,0 +1 @@
 
1
+ ;(function(e,t,n,r){n.swipebox=function(i,s){var o={useCSS:true,hideBarsDelay:3e3},u=this,a=n(i),i=i,f=i.selector,l=n(f),c=t.createTouch!==r||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,h=!!e.SVGSVGElement,p='<div id="swipebox-overlay"> <div id="swipebox-slider"></div> <div id="swipebox-caption"></div> <div id="swipebox-action"> <a id="swipebox-close"></a> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div>';u.settings={};u.init=function(){u.settings=n.extend({},o,s);l.click(function(e){e.preventDefault();e.stopPropagation();index=a.index(n(this));d.target=n(e.target);d.init(index)})};var d={init:function(e){this.target.trigger("swipebox-start");this.build();this.openSlide(e);this.openImg(e);this.preloadImg(e+1);this.preloadImg(e-1)},build:function(){var t=this;n("body").append(p);if(t.doCssTrans()){n("#swipebox-slider").css({"-webkit-transition":"left 0.4s ease","-moz-transition":"left 0.4s ease","-o-transition":"left 0.4s ease","-khtml-transition":"left 0.4s ease",transition:"left 0.4s ease"});n("#swipebox-overlay").css({"-webkit-transition":"opacity 1s ease","-moz-transition":"opacity 1s ease","-o-transition":"opacity 1s ease","-khtml-transition":"opacity 1s ease",transition:"opacity 1s ease"});n("#swipebox-action, #swipebox-caption").css({"-webkit-transition":"0.5s","-moz-transition":"0.5s","-o-transition":"0.5s","-khtml-transition":"0.5s",transition:"0.5s"})}if(h){var r=n("#swipebox-action #swipebox-close").css("background-image");r=r.replace("png","svg");n("#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close").css({"background-image":r})}a.each(function(){n("#swipebox-slider").append('<div class="slide"></div>')});t.setDim();t.actions();t.keyboard();t.gesture();t.animBars();n(e).resize(function(){t.setDim()}).resize()},setDim:function(){var t={width:n(e).width(),height:e.innerHeight?e.innerHeight:n(e).height()};n("#swipebox-overlay").css(t)},supportTransition:function(){var e="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(var n=0;n<e.length;n++){if(t.createElement("div").style[e[n]]!==r){return e[n]}}return false},doCssTrans:function(){if(u.settings.useCSS&&this.supportTransition()){return true}},gesture:function(){if(c){var e=this,t=null,r=10,i={},s={};var o=n("#swipebox-caption, #swipebox-action");o.addClass("visible-bars");e.setTimeout();n("body").bind("touchstart",function(e){n(this).addClass("touching");s=e.originalEvent.targetTouches[0];i.pageX=e.originalEvent.targetTouches[0].pageX;n(".touching").bind("touchmove",function(e){e.preventDefault();e.stopPropagation();s=e.originalEvent.targetTouches[0]});return false}).bind("touchend",function(u){u.preventDefault();u.stopPropagation();t=s.pageX-i.pageX;if(t>=r){e.getPrev()}else if(t<=-r){e.getNext()}else{if(!o.hasClass("visible-bars")){e.showBars();e.setTimeout()}else{e.clearTimeout();e.hideBars()}}n(".touching").off("touchmove").removeClass("touching")})}},setTimeout:function(){if(u.settings.hideBarsDelay>0){var t=this;t.clearTimeout();t.timeout=e.setTimeout(function(){t.hideBars()},u.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout);this.timeout=null},showBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.addClass("visible-bars")}else{n("#swipebox-caption").animate({top:0},500);n("#swipebox-action").animate({bottom:0},500);setTimeout(function(){e.addClass("visible-bars")},1e3)}},hideBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.removeClass("visible-bars")}else{n("#swipebox-caption").animate({top:"-50px"},500);n("#swipebox-action").animate({bottom:"-50px"},500);setTimeout(function(){e.removeClass("visible-bars")},1e3)}},animBars:function(){var e=this;var t=n("#swipebox-caption, #swipebox-action");t.addClass("visible-bars");e.setTimeout();n("#swipebox-slider").click(function(n){if(!t.hasClass("visible-bars")){e.showBars();e.setTimeout()}});n("#swipebox-action").hover(function(){e.showBars();t.addClass("force-visible-bars");e.clearTimeout()},function(){t.removeClass("force-visible-bars");e.setTimeout()})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault();e.stopPropagation();if(e.keyCode==37){t.getPrev()}else if(e.keyCode==39){t.getNext()}else if(e.keyCode==27){t.closeSlide()}})},actions:function(){var e=this;if(a.length<2){n("#swipebox-prev, #swipebox-next").hide()}else{n("#swipebox-prev").bind("click touchend",function(t){t.preventDefault();t.stopPropagation();e.getPrev();e.setTimeout()});n("#swipebox-next").bind("click touchend",function(t){t.preventDefault();t.stopPropagation();e.getNext();e.setTimeout()})}n("#swipebox-close").bind("click touchend",function(t){e.closeSlide()})},setSlide:function(e,t){t=t||false;var r=n("#swipebox-slider");if(this.doCssTrans()){r.css({left:-e*100+"%"})}else{r.animate({left:-e*100+"%"})}n("#swipebox-slider .slide").removeClass("current");n("#swipebox-slider .slide").eq(e).addClass("current");this.setTitle(e);if(t){r.fadeIn()}n("#swipebox-prev, #swipebox-next").removeClass("disabled");if(e==0){n("#swipebox-prev").addClass("disabled")}else if(e==a.length-1){n("#swipebox-next").addClass("disabled")}},openSlide:function(t){n("html").addClass("swipebox");n(e).trigger("resize");this.setSlide(t,true)},preloadImg:function(e){var t=this;setTimeout(function(){t.openImg(e)},1e3)},openImg:function(e){var t=this;if(e<0||e>=a.length){return false}t.loadImg(a.eq(e).attr("href"),function(){n("#swipebox-slider .slide").eq(e).html(this)})},setTitle:function(e,t){n("#swipebox-caption").empty();if(a.eq(e).attr("title")){n("#swipebox-caption").append(a.eq(e).attr("title"))}},loadImg:function(e,t){var r=n("<img>").on("load",function(){t.call(r)});r.attr("src",e)},getNext:function(){var e=this;index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index+1<a.length){index++;e.setSlide(index);e.preloadImg(index+1)}else{n("#swipebox-slider").addClass("rightSpring");setTimeout(function(){n("#swipebox-slider").removeClass("rightSpring")},500)}},getPrev:function(){var e=this;index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index>0){index--;e.setSlide(index);e.preloadImg(index-1)}else{n("#swipebox-slider").addClass("leftSpring");setTimeout(function(){n("#swipebox-slider").removeClass("leftSpring")},500)}},closeSlide:function(){var t=this;n(e).trigger("resize");n("html").removeClass("swipebox");t.destroy()},destroy:function(){var t=this;n(e).unbind("keyup");n("body").unbind("touchstart");n("body").unbind("touchmove");n("body").unbind("touchend");n("#swipebox-slider").unbind();n("#swipebox-overlay").remove();a.removeData("_swipebox");t.target.trigger("swipebox-destroy")}};u.init()};n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}}})(window,document,jQuery);
assets/swipebox/source/swipebox.css ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .swipebox {
2
+ overflow: hidden!important;
3
+ }
4
+
5
+ #swipebox-overlay img {
6
+ border: none!important;
7
+ }
8
+
9
+ #swipebox-overlay {
10
+ width: 100%;
11
+ height: 100%;
12
+ position: fixed;
13
+ top: 0;
14
+ left: 0;
15
+ z-index: 99999!important;
16
+ overflow: hidden;
17
+ -webkit-user-select: none;
18
+ -moz-user-select: none;
19
+ user-select: none;
20
+ }
21
+
22
+ #swipebox-slider {
23
+ height: 100%;
24
+ left: 0;
25
+ top: 0;
26
+ width: 100%;
27
+ white-space: nowrap;
28
+ position: absolute;
29
+ display: none;
30
+ }
31
+
32
+ #swipebox-slider .slide {
33
+ background: url("img/loader.gif") no-repeat center center;
34
+ height: 100%;
35
+ width: 100%;
36
+ line-height: 1px;
37
+ text-align: center;
38
+ display: inline-block;
39
+ }
40
+
41
+ #swipebox-slider .slide:before {
42
+ content: "";
43
+ display: inline-block;
44
+ height: 50%;
45
+ width: 1px;
46
+ margin-right: -1px;
47
+ }
48
+
49
+ #swipebox-slider .slide img {
50
+ display: inline-block;
51
+ max-height: 100%;
52
+ max-width: 100%;
53
+ margin: 0;
54
+ padding: 0;
55
+ width: auto;
56
+ height: auto;
57
+ vertical-align: middle;
58
+ }
59
+
60
+ #swipebox-action, #swipebox-caption {
61
+ position: absolute;
62
+ left: 0;
63
+ z-index: 999;
64
+ height: 50px;
65
+ width: 100%;
66
+ }
67
+
68
+ #swipebox-action {
69
+ bottom: -50px;
70
+ }
71
+ #swipebox-action.visible-bars {
72
+ bottom: 0;
73
+ }
74
+
75
+ #swipebox-action.force-visible-bars {
76
+ bottom: 0!important;
77
+ }
78
+
79
+ #swipebox-caption {
80
+ top: -50px;
81
+ text-align: center;
82
+ }
83
+ #swipebox-caption.visible-bars {
84
+ top: 0;
85
+ }
86
+
87
+ #swipebox-caption.force-visible-bars {
88
+ top: 0!important;
89
+ }
90
+
91
+ #swipebox-action #swipebox-prev, #swipebox-action #swipebox-next,
92
+ #swipebox-action #swipebox-close {
93
+ background-image: url("img/icons.png");
94
+ background-repeat: no-repeat;
95
+ border: none!important;
96
+ text-decoration: none!important;
97
+ cursor: pointer;
98
+ position: absolute;
99
+ width: 50px;
100
+ height: 50px;
101
+ top: 0;
102
+ }
103
+
104
+ #swipebox-action #swipebox-close {
105
+ background-position: 15px 12px;
106
+ left: 40px;
107
+ }
108
+
109
+ #swipebox-action #swipebox-prev {
110
+ background-position: -32px 13px;
111
+ right: 100px;
112
+ }
113
+
114
+ #swipebox-action #swipebox-next {
115
+ background-position: -78px 13px;
116
+ right: 40px;
117
+ }
118
+
119
+ #swipebox-action #swipebox-prev.disabled,
120
+ #swipebox-action #swipebox-next.disabled {
121
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30);
122
+ opacity: 0.3;
123
+ }
124
+
125
+ #swipebox-slider.rightSpring {
126
+ -moz-animation: rightSpring 0.3s;
127
+ -webkit-animation: rightSpring 0.3s;
128
+ }
129
+
130
+ #swipebox-slider.leftSpring {
131
+ -moz-animation: leftSpring 0.3s;
132
+ -webkit-animation: leftSpring 0.3s;
133
+ }
134
+
135
+ @-moz-keyframes rightSpring {
136
+ 0% {
137
+ margin-left: 0px;
138
+ }
139
+
140
+ 50% {
141
+ margin-left: -30px;
142
+ }
143
+
144
+ 100% {
145
+ margin-left: 0px;
146
+ }
147
+ }
148
+
149
+ @-moz-keyframes leftSpring {
150
+ 0% {
151
+ margin-left: 0px;
152
+ }
153
+
154
+ 50% {
155
+ margin-left: 30px;
156
+ }
157
+
158
+ 100% {
159
+ margin-left: 0px;
160
+ }
161
+ }
162
+
163
+ @-webkit-keyframes rightSpring {
164
+ 0% {
165
+ margin-left: 0px;
166
+ }
167
+
168
+ 50% {
169
+ margin-left: -30px;
170
+ }
171
+
172
+ 100% {
173
+ margin-left: 0px;
174
+ }
175
+ }
176
+
177
+ @-webkit-keyframes leftSpring {
178
+ 0% {
179
+ margin-left: 0px;
180
+ }
181
+
182
+ 50% {
183
+ margin-left: 30px;
184
+ }
185
+
186
+ 100% {
187
+ margin-left: 0px;
188
+ }
189
+ }
190
+
191
+ /* Skin
192
+ --------------------------*/
193
+ #swipebox-overlay {
194
+ background: #0d0d0d;
195
+ }
196
+
197
+ #swipebox-action, #swipebox-caption {
198
+ text-shadow: 1px 1px 1px black;
199
+ background-color: #0d0d0d;
200
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0d0d0d), color-stop(100%, #000000));
201
+ background-image: -webkit-linear-gradient(#0d0d0d, #000000);
202
+ background-image: -moz-linear-gradient(#0d0d0d, #000000);
203
+ background-image: -o-linear-gradient(#0d0d0d, #000000);
204
+ background-image: linear-gradient(#0d0d0d, #000000);
205
+ -webkit-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
206
+ -moz-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
207
+ box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
208
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=95);
209
+ opacity: 0.95;
210
+ }
211
+
212
+ #swipebox-action {
213
+ -webkit-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
214
+ -moz-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
215
+ box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
216
+ }
217
+
218
+ #swipebox-caption {
219
+ color: white!important;
220
+ font-size: 15px;
221
+ line-height: 43px;
222
+ font-family: Helvetica, Arial, sans-serif;
223
+ }
css/images/bg_fallback.png ADDED
Binary file
css/images/icon_sprite.png ADDED
Binary file
css/images/slider_handles.png ADDED
Binary file
css/images/slider_handles@2x.png ADDED
Binary file
css/images/ui-icons_222222_256x240.png ADDED
Binary file
css/images/ui-icons_454545_256x240.png ADDED
Binary file
css/responsive-lightbox-admin.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ .responsive-lightbox-settings { width:68%; margin-right:20px; }
2
+ .responsive-lightbox-settings h3 { font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif; font-weight: bold; }
3
+ .responsive-lightbox-settings hr, .df-credits hr { border: solid #ddd; border-width: 1px 0 0; clear: both; height: 0; -moz-box-shadow: 0px 1px 0px #fff; -webkit-box-shadow: 0px 1px 0px #fff; box-shadow: 0px 1px 0px #fff; margin:15px 0; }
4
+ .df-credits { width:28%; max-width:350px; margin-top:20px; border:1px solid #ddd; background:#fcfcfc; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
5
+ .df-credits h3 { margin-top:5px; }
6
+ .df-credits h3.metabox-title { background: #f9f9f9 url(images/bg_fallback.png) 0 -50px repeat-x; background: -moz-linear-gradient(top, #2e9fd2 0%, #21759B 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2e9fd2), color-stop(100%,#21759B)); background: -webkit-linear-gradient(top, #2e9fd2 0%,#21759B 100%); background: -o-linear-gradient(top, #2e9fd2 0%,#21759B 100%); background: -ms-linear-gradient(top, #2e9fd2 0%,#21759B 100%); background: linear-gradient(top, #2e9fd2 0%,#21759B 100%); -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset; -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset; border: 1px solid; border-color: #21759b; border-bottom-color: #1e6a8d; -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5); box-shadow: inset 0 1px 0 rgba(120,200,230,0.5); color: #fff; text-decoration: none; text-shadow: 0 1px 0 rgba(0,0,0,0.5); margin:0; line-height:32px; font-weight:normal; padding:0 10px; }
7
+ .df-credits .inner { padding:15px 10px; }
8
+ .df-credits .df-link { font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; font-style:italic; margin:0; }
9
+ .df-credits .df-link a { vertical-align: middle; padding: 5px 0 0 4px; }
css/responsive-lightbox-front.css ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ajaxed-comments {
2
+ padding-top: 10px;
3
+ display: none;
4
+ }
5
+ .wp-default #ajaxed-comments-box, .ac-mini-info-box.wp-default {
6
+ width: 100%;
7
+ font-family: sans-serif;
8
+ font-size: 12px;
9
+ line-height: 1.4em;
10
+ padding: 0;
11
+ background-color: #FFEBE8;
12
+ border-color: #CC0000;
13
+ border-radius: 3px 3px 3px 3px;
14
+ border-style: solid;
15
+ border-width: 1px;
16
+ color: #333;
17
+ text-align: center;
18
+ }
19
+ .wp-default .ac-inside-box, .ac-mini-info-box.wp-default div {
20
+ padding: 10px;
21
+ }
22
+ .bootstrap #ajaxed-comments-box, .ac-mini-info-box.bootstrap {
23
+ width: 100%;
24
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
25
+ font-size: 14px;
26
+ line-height: 20px;
27
+ padding: 0;
28
+ background-color: #F2DEDE;
29
+ border-color: #EED3D7;
30
+ border-radius: 4px 4px 4px 4px;
31
+ border-style: solid;
32
+ border-width: 1px;
33
+ color: #B94A48;
34
+ text-align: center;
35
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
36
+ }
37
+ .bootstrap .ac-inside-box, .ac-mini-info-box.bootstrap div {
38
+ padding: 8px 14px;
39
+ }
40
+ #ac-spinner {
41
+ background: url('../../../../wp-admin/images/wpspin_light.gif') no-repeat;
42
+ background-size: 16px 16px;
43
+ display: none;
44
+ opacity: 0.7;
45
+ filter: alpha(opacity=70);
46
+ width: 16px;
47
+ height: 16px;
48
+ margin-left: 0.3em;
49
+ position: relative;
50
+ vertical-align: middle;
51
+ }
52
+ .ac-comm-spinner {
53
+ background: url('../../../../wp-admin/images/wpspin_light.gif') no-repeat;
54
+ background-size: 16px 16px;
55
+ display: none;
56
+ opacity: 0.7;
57
+ filter: alpha(opacity=70);
58
+ width: 16px;
59
+ height: 16px;
60
+ margin-left: 0.3em;
61
+ position: relative;
62
+ vertical-align: middle;
63
+ }
64
+ .ac-mini-info-box {
65
+ display: none;
66
+ }
67
+ .ac-textarea {
68
+ width: 0;
69
+ }
70
+ .ac-textarea textarea {
71
+ width: 100%;
72
+ height: 150px;
73
+ }
74
+ .ac-hide-row-actions {
75
+ visibility: hidden;
76
+ }
77
+ .edit-time-remaining {
78
+ margin-left: 0.3em;
79
+ }
80
+ a.ac-button, span.ac-button {
81
+ padding:0 0.3em 0 0;
82
+ }
83
+ a.ac-button.wp-default, span.ac-button.wp-default {
84
+ font-family: sans-serif;
85
+ line-height: 18px;
86
+ padding: 0 8px;
87
+ background: linear-gradient(to bottom, #FEFEFE, #F4F4F4) repeat scroll 0 0 #F3F3F3;
88
+ border-color: #BBB;
89
+ color: #333;
90
+ text-shadow: 0 1px 0 #FFF;
91
+ -moz-box-sizing: border-box;
92
+ border-radius: 3px 3px 3px 3px;
93
+ border-style: solid;
94
+ border-width: 1px;
95
+ cursor: pointer;
96
+ display: inline-block;
97
+ font-size: 12px;
98
+ font-style:normal;
99
+ margin: 0 0.1em;
100
+ text-decoration: none;
101
+ white-space: nowrap;
102
+ outline: none;
103
+ }
104
+ span.ac-button.wp-default {
105
+ cursor: default;
106
+ }
107
+ span.ac-button.wp-default.disabled {
108
+ background: linear-gradient(to bottom, #EEE, #E4E4E4) repeat scroll 0 0 #E3E3E3;
109
+ color: #AAA;
110
+ cursor: default;
111
+ }
112
+ a.ac-button.wp-default:hover, a.ac-button.wp-default:focus {
113
+ background: linear-gradient(to bottom, #FFFFFF, #F3F3F3) repeat scroll 0 0 #F3F3F3;
114
+ border-color: #999999;
115
+ color: #222222;
116
+ }
117
+ a.ac-button.bootstrap, span.ac-button.bootstrap {
118
+ font-family: sans-serif;
119
+ display: inline-block;
120
+ *display: inline;
121
+ padding: 4px 12px;
122
+ margin-right:0.3em;
123
+ margin-bottom: 0;
124
+ *margin-left: .3em;
125
+ line-height: 20px;
126
+ color: #333333;
127
+ text-align: center;
128
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
129
+ font-style:normal;
130
+ vertical-align: middle;
131
+ cursor: pointer;
132
+ color: #ffffff;
133
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
134
+ background-color: #006dcc;
135
+ *background-color: #0044cc;
136
+ background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
137
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
138
+ background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
139
+ background-image: -o-linear-gradient(top, #0088cc, #0044cc);
140
+ background-image: linear-gradient(to bottom, #0088cc, #0044cc);
141
+ background-repeat: repeat-x;
142
+ border-style: solid;
143
+ border-width: 1px;
144
+ border-color: #0044cc #0044cc #002a80;
145
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
146
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
147
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
148
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
149
+ padding: 2px 10px;
150
+ font-size: 12px;
151
+ text-decoration: none;
152
+ -webkit-border-radius: 3px;
153
+ -moz-border-radius: 3px;
154
+ border-radius: 3px;
155
+ }
156
+ span.ac-button.bootstrap {
157
+ cursor: default;
158
+ }
159
+ span.ac-button.bootstrap.disabled {
160
+ color: #ffffff;
161
+ background-color: #0044cc;
162
+ *background-color: #003bb3;
163
+ cursor: default;
164
+ background-image: none;
165
+ opacity: 0.65;
166
+ filter: alpha(opacity=65);
167
+ -webkit-box-shadow: none;
168
+ -moz-box-shadow: none;
169
+ box-shadow: none;
170
+ }
171
+ a.ac-button.bootstrap:hover, a.ac-button.bootstrap:focus {
172
+ color: #ffffff;
173
+ background-color: #0044cc;
174
+ *background-color: #003bb3;background-position: 0 -15px;
175
+ -webkit-transition: background-position 0.1s linear;
176
+ -moz-transition: background-position 0.1s linear;
177
+ -o-transition: background-position 0.1s linear;
178
+ transition: background-position 0.1s linear;
179
+ }
css/wp-like-ui-theme.css ADDED
@@ -0,0 +1,774 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery UI CSS Framework 1.8.7
3
+ *
4
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT or GPL Version 2 licenses.
6
+ * http://jquery.org/license
7
+ *
8
+ * http://docs.jquery.com/UI/Theming/API
9
+ */
10
+
11
+ /* Layout helpers
12
+ ----------------------------------*/
13
+ .ui-helper-hidden { display: none; }
14
+ .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
15
+ .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
16
+ .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
17
+ .ui-helper-clearfix { display: inline-block; }
18
+ /* required comment for clearfix to work in Opera \*/
19
+ * html .ui-helper-clearfix { height:1%; }
20
+ .ui-helper-clearfix { display:block; }
21
+ /* end clearfix */
22
+ .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
23
+
24
+
25
+ /* Interaction Cues
26
+ ----------------------------------*/
27
+ .ui-state-disabled { cursor: default !important; }
28
+
29
+
30
+ /* Icons
31
+ ----------------------------------*/
32
+
33
+ /* states and images */
34
+ .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
35
+
36
+
37
+ /* Misc visuals
38
+ ----------------------------------*/
39
+
40
+ /* Overlays */
41
+ .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
42
+
43
+
44
+ /*
45
+ * jQuery UI CSS Framework 1.8.7
46
+ *
47
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
48
+ * Dual licensed under the MIT or GPL Version 2 licenses.
49
+ * http://jquery.org/license
50
+ *
51
+ * http://docs.jquery.com/UI/Theming/API
52
+ *
53
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ctl=themeroller
54
+ */
55
+
56
+
57
+ /* Component containers
58
+ ----------------------------------*/
59
+ .ui-widget { font-family: Arial,sans-serif; font-size: 1.1em; }
60
+ .ui-widget .ui-widget { font-size: 1em; }
61
+ .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Arial,sans-serif; font-size: 1em; }
62
+ .ui-widget-content { border: 1px solid #dfdfdf; background: #ffffff; color: #333333; font-size:12px; }
63
+ .ui-widget-content a { color: #333333; }
64
+ .ui-widget-header { border: 1px solid #dfdfdf; color: #333333; font-weight: normal; }
65
+ .ui-widget-header {
66
+ background: #f3f3f3 url(images/bg_fallback.png) 0 0 repeat-x; /* Old browsers */
67
+ background: -moz-linear-gradient(top, #f9f9f9 0%, #ececec 100%); /* FF3.6+ */
68
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ececec)); /* Chrome,Safari4+ */
69
+ background: -webkit-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* Chrome10+,Safari5.1+ */
70
+ background: -o-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* Opera11.10+ */
71
+ background: -ms-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* IE10+ */
72
+ background: linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* W3C */
73
+ }
74
+ .ui-widget-header a { color: #333333; }
75
+
76
+ /* Interaction states
77
+ ----------------------------------*/
78
+ .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #dfdfdf; font-weight: normal; color: #333333; }
79
+ .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
80
+ background: #f9f9f9 url(images/bg_fallback.png) 0 0 repeat-x; /* Old browsers */
81
+ background: -moz-linear-gradient(top, #f9f9f9 0%, #ececec 100%); /* FF3.6+ */
82
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ececec)); /* Chrome,Safari4+ */
83
+ background: -webkit-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* Chrome10+,Safari5.1+ */
84
+ background: -o-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* Opera11.10+ */
85
+ background: -ms-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* IE10+ */
86
+ background: linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* W3C */
87
+ -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
88
+ -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
89
+ box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
90
+ }
91
+ .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #333333; text-decoration: none; }
92
+ .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #bbbbbb; font-weight: normal; color: #313131; }
93
+ .ui-state-hover a, .ui-state-hover a:hover { color: #313131; text-decoration: none; }
94
+ .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
95
+ outline: none;
96
+ color: #ffffff;
97
+ border-color: #21759b #21759b #1e6a8d;
98
+ background: #f9f9f9 url(images/bg_fallback.png) 0 -50px repeat-x; /* Old browsers */
99
+ background: -moz-linear-gradient(top, #2e9fd2 0%, #21759B 100%); /* FF3.6+ */
100
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2e9fd2), color-stop(100%,#21759B)); /* Chrome,Safari4+ */
101
+ background: -webkit-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Chrome10+,Safari5.1+ */
102
+ background: -o-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Opera11.10+ */
103
+ background: -ms-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* IE10+ */
104
+ background: linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* W3C */
105
+ -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
106
+ -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
107
+ box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
108
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
109
+ }
110
+ .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #fff; text-decoration: none; }
111
+ .ui-widget :active { outline: none; }
112
+
113
+ /* Interaction Cues
114
+ ----------------------------------*/
115
+ .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { border: 1px solid #e6db55; background: #ffffe0; color: #333; }
116
+ .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #333; }
117
+ .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error { border: 1px solid #cc0000; background: #ffebe8; color: #333; }
118
+ .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
119
+ .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
120
+ .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: normal; }
121
+ .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { font-weight: normal; }
122
+ .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
123
+
124
+ /* Icons
125
+ ----------------------------------*/
126
+
127
+ /* states and images */
128
+ .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
129
+ .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
130
+ .ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
131
+ .ui-state-default .ui-icon { background-image: url(images/ui-icons_454545_256x240.png); }
132
+ .ui-state-hover .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
133
+ .ui-state-focus .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
134
+ .ui-state-active .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
135
+ .ui-state-highlight .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
136
+ .ui-state-error .ui-icon, .ui-state-error-text .ui-icon { background: url(images/icon_sprite.png) -16px 0 no-repeat !important; }
137
+ .ui-state-highlight .ui-icon, .ui-state-error .ui-icon { margin-top: -1px; }
138
+
139
+ /* positioning */
140
+ .ui-icon-carat-1-n { background-position: 0 0; }
141
+ .ui-icon-carat-1-ne { background-position: -16px 0; }
142
+ .ui-icon-carat-1-e { background-position: -32px 0; }
143
+ .ui-icon-carat-1-se { background-position: -48px 0; }
144
+ .ui-icon-carat-1-s { background-position: -64px 0; }
145
+ .ui-icon-carat-1-sw { background-position: -80px 0; }
146
+ .ui-icon-carat-1-w { background-position: -96px 0; }
147
+ .ui-icon-carat-1-nw { background-position: -112px 0; }
148
+ .ui-icon-carat-2-n-s { background-position: -128px 0; }
149
+ .ui-icon-carat-2-e-w { background-position: -144px 0; }
150
+ .ui-icon-triangle-1-n { background-position: 0 -16px; }
151
+ .ui-icon-triangle-1-ne { background-position: -16px -16px; }
152
+ .ui-icon-triangle-1-e { background-position: -32px -16px; }
153
+ .ui-icon-triangle-1-se { background-position: -48px -16px; }
154
+ .ui-icon-triangle-1-s { background-position: -64px -16px; }
155
+ .ui-icon-triangle-1-sw { background-position: -80px -16px; }
156
+ .ui-icon-triangle-1-w { background-position: -96px -16px; }
157
+ .ui-icon-triangle-1-nw { background-position: -112px -16px; }
158
+ .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
159
+ .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
160
+ .ui-icon-arrow-1-n { background-position: 0 -32px; }
161
+ .ui-icon-arrow-1-ne { background-position: -16px -32px; }
162
+ .ui-icon-arrow-1-e { background-position: -32px -32px; }
163
+ .ui-icon-arrow-1-se { background-position: -48px -32px; }
164
+ .ui-icon-arrow-1-s { background-position: -64px -32px; }
165
+ .ui-icon-arrow-1-sw { background-position: -80px -32px; }
166
+ .ui-icon-arrow-1-w { background-position: -96px -32px; }
167
+ .ui-icon-arrow-1-nw { background-position: -112px -32px; }
168
+ .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
169
+ .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
170
+ .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
171
+ .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
172
+ .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
173
+ .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
174
+ .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
175
+ .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
176
+ .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
177
+ .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
178
+ .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
179
+ .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
180
+ .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
181
+ .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
182
+ .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
183
+ .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
184
+ .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
185
+ .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
186
+ .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
187
+ .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
188
+ .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
189
+ .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
190
+ .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
191
+ .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
192
+ .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
193
+ .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
194
+ .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
195
+ .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
196
+ .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
197
+ .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
198
+ .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
199
+ .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
200
+ .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
201
+ .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
202
+ .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
203
+ .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
204
+ .ui-icon-arrow-4 { background-position: 0 -80px; }
205
+ .ui-icon-arrow-4-diag { background-position: -16px -80px; }
206
+ .ui-icon-extlink { background-position: -32px -80px; }
207
+ .ui-icon-newwin { background-position: -48px -80px; }
208
+ .ui-icon-refresh { background-position: -64px -80px; }
209
+ .ui-icon-shuffle { background-position: -80px -80px; }
210
+ .ui-icon-transfer-e-w { background-position: -96px -80px; }
211
+ .ui-icon-transferthick-e-w { background-position: -112px -80px; }
212
+ .ui-icon-folder-collapsed { background-position: 0 -96px; }
213
+ .ui-icon-folder-open { background-position: -16px -96px; }
214
+ .ui-icon-document { background-position: -32px -96px; }
215
+ .ui-icon-document-b { background-position: -48px -96px; }
216
+ .ui-icon-note { background-position: -64px -96px; }
217
+ .ui-icon-mail-closed { background-position: -80px -96px; }
218
+ .ui-icon-mail-open { background-position: -96px -96px; }
219
+ .ui-icon-suitcase { background-position: -112px -96px; }
220
+ .ui-icon-comment { background-position: -128px -96px; }
221
+ .ui-icon-person { background-position: -144px -96px; }
222
+ .ui-icon-print { background-position: -160px -96px; }
223
+ .ui-icon-trash { background-position: -176px -96px; }
224
+ .ui-icon-locked { background-position: -192px -96px; }
225
+ .ui-icon-unlocked { background-position: -208px -96px; }
226
+ .ui-icon-bookmark { background-position: -224px -96px; }
227
+ .ui-icon-tag { background-position: -240px -96px; }
228
+ .ui-icon-home { background-position: 0 -112px; }
229
+ .ui-icon-flag { background-position: -16px -112px; }
230
+ .ui-icon-calendar { background-position: -32px -112px; }
231
+ .ui-icon-cart { background-position: -48px -112px; }
232
+ .ui-icon-pencil { background-position: -64px -112px; }
233
+ .ui-icon-clock { background-position: -80px -112px; }
234
+ .ui-icon-disk { background-position: -96px -112px; }
235
+ .ui-icon-calculator { background-position: -112px -112px; }
236
+ .ui-icon-zoomin { background-position: -128px -112px; }
237
+ .ui-icon-zoomout { background-position: -144px -112px; }
238
+ .ui-icon-search { background-position: -160px -112px; }
239
+ .ui-icon-wrench { background-position: -176px -112px; }
240
+ .ui-icon-gear { background-position: -192px -112px; }
241
+ .ui-icon-heart { background-position: -208px -112px; }
242
+ .ui-icon-star { background-position: -224px -112px; }
243
+ .ui-icon-link { background-position: -240px -112px; }
244
+ .ui-icon-cancel { background-position: 0 -128px; }
245
+ .ui-icon-plus { background-position: -16px -128px; }
246
+ .ui-icon-plusthick { background-position: -32px -128px; }
247
+ .ui-icon-minus { background-position: -48px -128px; }
248
+ .ui-icon-minusthick { background-position: -64px -128px; }
249
+ .ui-icon-close { background-position: -80px -128px; }
250
+ .ui-icon-closethick { background-position: -96px -128px; }
251
+ .ui-icon-key { background-position: -112px -128px; }
252
+ .ui-icon-lightbulb { background-position: -128px -128px; }
253
+ .ui-icon-scissors { background-position: -144px -128px; }
254
+ .ui-icon-clipboard { background-position: -160px -128px; }
255
+ .ui-icon-copy { background-position: -176px -128px; }
256
+ .ui-icon-contact { background-position: -192px -128px; }
257
+ .ui-icon-image { background-position: -208px -128px; }
258
+ .ui-icon-video { background-position: -224px -128px; }
259
+ .ui-icon-script { background-position: -240px -128px; }
260
+ .ui-icon-alert { background-position: 0 -144px; }
261
+ .ui-icon-info { background: url(images/icon_sprite.png) 0 0 no-repeat !important; }
262
+ .ui-icon-notice { background-position: -32px -144px; }
263
+ .ui-icon-help { background-position: -48px -144px; }
264
+ .ui-icon-check { background-position: -64px -144px; }
265
+ .ui-icon-bullet { background-position: -80px -144px; }
266
+ .ui-icon-radio-off { background-position: -96px -144px; }
267
+ .ui-icon-radio-on { background-position: -112px -144px; }
268
+ .ui-icon-pin-w { background-position: -128px -144px; }
269
+ .ui-icon-pin-s { background-position: -144px -144px; }
270
+ .ui-icon-play { background-position: 0 -160px; }
271
+ .ui-icon-pause { background-position: -16px -160px; }
272
+ .ui-icon-seek-next { background-position: -32px -160px; }
273
+ .ui-icon-seek-prev { background-position: -48px -160px; }
274
+ .ui-icon-seek-end { background-position: -64px -160px; }
275
+ .ui-icon-seek-start { background-position: -80px -160px; }
276
+ /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
277
+ .ui-icon-seek-first { background-position: -80px -160px; }
278
+ .ui-icon-stop { background-position: -96px -160px; }
279
+ .ui-icon-eject { background-position: -112px -160px; }
280
+ .ui-icon-volume-off { background-position: -128px -160px; }
281
+ .ui-icon-volume-on { background-position: -144px -160px; }
282
+ .ui-icon-power { background-position: 0 -176px; }
283
+ .ui-icon-signal-diag { background-position: -16px -176px; }
284
+ .ui-icon-signal { background-position: -32px -176px; }
285
+ .ui-icon-battery-0 { background-position: -48px -176px; }
286
+ .ui-icon-battery-1 { background-position: -64px -176px; }
287
+ .ui-icon-battery-2 { background-position: -80px -176px; }
288
+ .ui-icon-battery-3 { background-position: -96px -176px; }
289
+ .ui-icon-circle-plus { background-position: 0 -192px; }
290
+ .ui-icon-circle-minus { background-position: -16px -192px; }
291
+ .ui-icon-circle-close { background-position: -32px -192px; }
292
+ .ui-icon-circle-triangle-e { background-position: -48px -192px; }
293
+ .ui-icon-circle-triangle-s { background-position: -64px -192px; }
294
+ .ui-icon-circle-triangle-w { background-position: -80px -192px; }
295
+ .ui-icon-circle-triangle-n { background-position: -96px -192px; }
296
+ .ui-icon-circle-arrow-e { background-position: -112px -192px; }
297
+ .ui-icon-circle-arrow-s { background-position: -128px -192px; }
298
+ .ui-icon-circle-arrow-w { background-position: -144px -192px; }
299
+ .ui-icon-circle-arrow-n { background-position: -160px -192px; }
300
+ .ui-icon-circle-zoomin { background-position: -176px -192px; }
301
+ .ui-icon-circle-zoomout { background-position: -192px -192px; }
302
+ .ui-icon-circle-check { background-position: -208px -192px; }
303
+ .ui-icon-circlesmall-plus { background-position: 0 -208px; }
304
+ .ui-icon-circlesmall-minus { background-position: -16px -208px; }
305
+ .ui-icon-circlesmall-close { background-position: -32px -208px; }
306
+ .ui-icon-squaresmall-plus { background-position: -48px -208px; }
307
+ .ui-icon-squaresmall-minus { background-position: -64px -208px; }
308
+ .ui-icon-squaresmall-close { background-position: -80px -208px; }
309
+ .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
310
+ .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
311
+ .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
312
+ .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
313
+ .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
314
+ .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
315
+
316
+
317
+ /* Misc visuals
318
+ ----------------------------------*/
319
+
320
+ /* Corner radius */
321
+ .ui-corner-tl { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; }
322
+ .ui-corner-tr { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
323
+ .ui-corner-bl { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
324
+ .ui-corner-br { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
325
+ .ui-corner-top { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; }
326
+ .ui-corner-bottom { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
327
+ .ui-corner-right { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; border-top-right-radius: 3px; -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
328
+ .ui-corner-left { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; border-top-left-radius: 3px; -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
329
+ .ui-corner-all { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
330
+
331
+ /* Overlays */
332
+ .ui-widget-overlay { background: #262b33; opacity: .70;filter:Alpha(Opacity=70); }
333
+ .ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #000000; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
334
+ * jQuery UI Resizable 1.8.7
335
+ *
336
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
337
+ * Dual licensed under the MIT or GPL Version 2 licenses.
338
+ * http://jquery.org/license
339
+ *
340
+ * http://docs.jquery.com/UI/Resizable#theming
341
+ */
342
+ .ui-resizable { position: relative;}
343
+ .ui-resizable-handle { position: absolute; font-size: 0.1px; z-index: 999; display: block;}
344
+ .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
345
+ .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
346
+ .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
347
+ .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
348
+ .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
349
+ .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
350
+ .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
351
+ .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
352
+ .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
353
+ * jQuery UI Selectable 1.8.7
354
+ *
355
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
356
+ * Dual licensed under the MIT or GPL Version 2 licenses.
357
+ * http://jquery.org/license
358
+ *
359
+ * http://docs.jquery.com/UI/Selectable#theming
360
+ */
361
+ .ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
362
+ /*
363
+ * jQuery UI Accordion 1.8.7
364
+ *
365
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
366
+ * Dual licensed under the MIT or GPL Version 2 licenses.
367
+ * http://jquery.org/license
368
+ *
369
+ * http://docs.jquery.com/UI/Accordion#theming
370
+ */
371
+ /* IE/Win - Fix animation bug - #4615 */
372
+ .ui-accordion { width: 100%; }
373
+ .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 0.2em; zoom: 1; height:30px; line-height:30px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
374
+ .ui-accordion .ui-accordion-header.ui-state-active { -moz-border-radius: 3px 3px 0 0; -webkit-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; }
375
+ .ui-accordion .ui-accordion-content { -moz-border-radius: 0 0 3px 3px; -webkit-border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px; }
376
+ .ui-accordion .ui-accordion-li-fix { display: inline; }
377
+ .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
378
+ .ui-accordion .ui-accordion-header a { display: block; font-size: 12px; font-weight: normal; padding: 0 .5em 0 1em; }
379
+ .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
380
+ .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; display:none; }
381
+ .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; overflow: auto; display: none; zoom: 1; }
382
+ .ui-accordion .ui-accordion-content-active { display: block; }/*
383
+ * jQuery UI Autocomplete 1.8.7
384
+ *
385
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
386
+ * Dual licensed under the MIT or GPL Version 2 licenses.
387
+ * http://jquery.org/license
388
+ *
389
+ * http://docs.jquery.com/UI/Autocomplete#theming
390
+ */
391
+ .ui-autocomplete {
392
+ position: absolute; cursor: default; z-index: 3;
393
+ -moz-border-radius: 0;
394
+ -webkit-border-radius: 0;
395
+ border-radius: 0;
396
+ -moz-box-shadow: 0 1px 5px rgba(0,0,0,0.3);
397
+ -webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.3);
398
+ box-shadow: 0 1px 5px rgba(0,0,0,0.3);
399
+ }
400
+
401
+ /* workarounds */
402
+ * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
403
+
404
+ /*
405
+ * jQuery UI Menu 1.8.7
406
+ *
407
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
408
+ * Dual licensed under the MIT or GPL Version 2 licenses.
409
+ * http://jquery.org/license
410
+ *
411
+ * http://docs.jquery.com/UI/Menu#theming
412
+ */
413
+ .ui-menu {
414
+ list-style:none;
415
+ padding: 2px;
416
+ margin: 0;
417
+ display:block;
418
+ float: left;
419
+ }
420
+ .ui-menu .ui-menu {
421
+ margin-top: -3px;
422
+ }
423
+ .ui-menu .ui-menu-item {
424
+ margin:0;
425
+ padding: 0;
426
+ zoom: 1;
427
+ float: left;
428
+ clear: left;
429
+ width: 100%;
430
+ }
431
+ .ui-menu .ui-menu-item a {
432
+ text-decoration:none;
433
+ display:block;
434
+ padding:.2em .4em;
435
+ line-height:1.5;
436
+ zoom:1;
437
+ }
438
+ .ui-menu .ui-menu-item a.ui-state-hover,
439
+ .ui-menu .ui-menu-item a.ui-state-active {
440
+ font-weight: normal;
441
+ margin: -1px;
442
+ background: #5f83b9;
443
+ color: #FFFFFF;
444
+ text-shadow: 0px 1px 1px #234386;
445
+ border-color: #466086;
446
+ -moz-border-radius: 0;
447
+ -webkit-border-radius: 0;
448
+ border-radius: 0;
449
+ }
450
+ /*
451
+ * jQuery UI Button 1.8.7
452
+ *
453
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
454
+ * Dual licensed under the MIT or GPL Version 2 licenses.
455
+ * http://jquery.org/license
456
+ *
457
+ * http://docs.jquery.com/UI/Button#theming
458
+ */
459
+ .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; -webkit-user-select: none; -moz-user-select: none; user-select: none; } /* the overflow property removes extra width in IE */
460
+ .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
461
+ button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
462
+ .ui-button-icons-only { width: 3.4em; }
463
+ button.ui-button-icons-only { width: 3.7em; }
464
+
465
+ /* button animation properties */
466
+ .ui-button {
467
+ -webkit-transition: -webkit-box-shadow 0.25s ease-in-out;
468
+ -moz-transition: -moz-box-shadow 0.25s ease-in-out;
469
+ -o-transition: -o-box-shadow 0.25s ease-in-out;
470
+ }
471
+
472
+ /*states*/
473
+ .ui-button.ui-state-hover {
474
+ -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
475
+ -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
476
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
477
+ }
478
+
479
+ /*button text element */
480
+ .ui-button .ui-button-text { display: block; line-height: 23px; font-size: 12px; font-weight: normal; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
481
+ .ui-button.ui-state-active .ui-button-text { display: block; font-size: 12px; font-weight: normal; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); border: 1px solid #21759B #21759B #1E6A8D; }
482
+ .ui-button-text-only .ui-button-text { padding: 0 1em; }
483
+ .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
484
+ .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: 0 1em 0 2.1em; }
485
+ .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: 0 2.1em .0 1em; }
486
+ .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
487
+ /* no icon support for input elements, provide padding by default */
488
+ input.ui-button { font-size: 12px; font-weight: normal; padding: 0 1em !important; height: 30px; line-height:30px; }
489
+ /*remove submit button internal padding in Firefox*/
490
+ input.ui-button::-moz-focus-inner {
491
+ border: 0;
492
+ padding: 0;
493
+ }
494
+ /* fix webkits handling of the box model */
495
+ @media screen and (-webkit-min-device-pixel-ratio:0) {
496
+ input.ui-button {
497
+ height: 30px !important;
498
+ vertical-align: bottom;
499
+ }
500
+ }
501
+
502
+ /*button icon element(s) */
503
+ .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
504
+ .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
505
+ .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
506
+ .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
507
+ .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
508
+
509
+ /*button sets*/
510
+ .ui-buttonset { margin-right: 7px; }
511
+ .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
512
+ .ui-buttonset .ui-button.ui-state-active { color: #ffffff; border-color: #21759B #21759B #1E6A8D; }
513
+ .ui-buttonset .ui-button.ui-state-active {
514
+ background: #f9f9f9 url(images/bg_fallback.png) 0 -50px repeat-x; /* Old browsers */
515
+ background: -moz-linear-gradient(top, #2e9fd2 0%, #21759B 100%); /* FF3.6+ */
516
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2e9fd2), color-stop(100%,#21759B)); /* Chrome,Safari4+ */
517
+ background: -webkit-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Chrome10+,Safari5.1+ */
518
+ background: -o-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Opera11.10+ */
519
+ background: -ms-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* IE10+ */
520
+ background: linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* W3C */
521
+ -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
522
+ -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
523
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
524
+ }
525
+
526
+ /* workarounds */
527
+ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
528
+ /*
529
+ * jQuery UI Dialog 1.8.7
530
+ *
531
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
532
+ * Dual licensed under the MIT or GPL Version 2 licenses.
533
+ * http://jquery.org/license
534
+ *
535
+ * http://docs.jquery.com/UI/Dialog#theming
536
+ */
537
+ .ui-dialog { position: absolute; padding: 0; width: 300px; overflow: hidden; }
538
+ .ui-dialog {
539
+ -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.6);
540
+ -moz-box-shadow: 0 2px 12px rgba(0,0,0,0.6);
541
+ box-shadow: 0 2px 12px rgba(0,0,0,0.6);
542
+ outline:none;
543
+ }
544
+ .ui-dialog .ui-dialog-titlebar { padding: 0.7em 1em 0.6em 1em; position: relative; border: none; border-bottom: 1px solid #dfdfdf; -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; }
545
+ .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .2em 0; font-size: 12px; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
546
+ .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .8em; top: 60%; width: 16px; margin: -10px 0 0 0; padding: 0; height: 16px; overflow:hidden; border:none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }
547
+ .ui-dialog .ui-dialog-titlebar-close span { display: block; background: url(images/icon_sprite.png) 0 -16px no-repeat; top:0; left:0; margin:0; }
548
+ .ui-dialog .ui-dialog-titlebar-close span.ui-button-text { display:none; }
549
+ .ui-dialog .ui-dialog-titlebar-close:hover span { background-position: -16px -16px; }
550
+ .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; border:none; background:none; }
551
+ .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
552
+ .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
553
+ .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
554
+ .ui-dialog .ui-dialog-buttonpane button {
555
+ margin: .5em .4em .5em 0;
556
+ cursor: pointer;
557
+ outline: none;
558
+ color: #ffffff;
559
+ border-color: #21759b #21759b #1e6a8d;
560
+ background: #f9f9f9 url(images/bg_fallback.png) 0 -50px repeat-x; /* Old browsers */
561
+ background: -moz-linear-gradient(top, #2e9fd2 0%, #21759B 100%); /* FF3.6+ */
562
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2e9fd2), color-stop(100%,#21759B)); /* Chrome,Safari4+ */
563
+ background: -webkit-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Chrome10+,Safari5.1+ */
564
+ background: -o-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Opera11.10+ */
565
+ background: -ms-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* IE10+ */
566
+ background: linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* W3C */
567
+ -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
568
+ -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
569
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
570
+ }
571
+ .ui-dialog .ui-dialog-buttonpane .ui-button-text {
572
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
573
+ }
574
+ .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
575
+ .ui-draggable .ui-dialog-titlebar { cursor: move; }
576
+ /*
577
+ * jQuery UI Slider 1.8.16
578
+ *
579
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
580
+ * Dual licensed under the MIT or GPL Version 2 licenses.
581
+ * http://jquery.org/license
582
+ *
583
+ * http://docs.jquery.com/UI/Slider#theming
584
+ */
585
+ .ui-slider { position: relative; text-align: left; background: #f1f1f1; border: none; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset; box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset; display: inline-block; *display: inline !important; *zoom: 1; }
586
+ .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 17px; height: 21px; cursor: default; background: url(images/slider_handles.png) 0 0 no-repeat; outline: none; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; border: none; }
587
+ .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background: #2e9fd2; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.4) inset; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.4) inset; box-shadow: 0 1px 3px rgba(0,0,0,0.4) inset; }
588
+ .ui-slider .ui-slider-handle.ui-state-active { background-position: -17px 0; }
589
+
590
+ .ui-slider-horizontal { height: 7px; }
591
+ .ui-slider-horizontal .ui-slider-handle { top: -5px; margin-left: -.6em; }
592
+ .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
593
+ .ui-slider-horizontal .ui-slider-range-min { left: 0; }
594
+ .ui-slider-horizontal .ui-slider-range-max { right: 0; }
595
+
596
+ .ui-slider-vertical { width: 7px; height: 100px; }
597
+ .ui-slider-vertical .ui-slider-handle { left: -.4em; margin-left: 0; margin-bottom: -.6em; }
598
+ .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
599
+ .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
600
+ .ui-slider-vertical .ui-slider-range-max { top: 0; }/*
601
+ * jQuery UI Tabs 1.8.7
602
+ *
603
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
604
+ * Dual licensed under the MIT or GPL Version 2 licenses.
605
+ * http://jquery.org/license
606
+ *
607
+ * http://docs.jquery.com/UI/Tabs#theming
608
+ */
609
+ .ui-tabs { position: relative; zoom: 1; border: 0; background: transparent; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
610
+ .ui-tabs .ui-tabs-nav { margin: 0; padding: 0; background: transparent; border-width: 0 0 1px 0; }
611
+ .ui-tabs .ui-tabs-nav {
612
+ -moz-border-radius: 0;
613
+ -webkit-border-radius: 0;
614
+ border-radius: 0;
615
+ }
616
+ .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset; -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;}
617
+ .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; font-size: 12px; font-weight: normal; outline: none; }
618
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; background: #fff; border-color: #dfdfdf; }
619
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; outline: none; color:#333; }
620
+ .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
621
+ .ui-tabs .ui-tabs-panel { display: block; border-width: 0 1px 1px 1px; padding: 1em 1.4em; background: none; }
622
+ .ui-tabs .ui-tabs-panel { background: #FFF;
623
+ -moz-border-radius: 0;
624
+ -webkit-border-radius: 0;
625
+ border-radius: 0;
626
+ }
627
+ .ui-tabs .ui-tabs-hide { display: none !important; }
628
+ /*
629
+ * jQuery UI Datepicker 1.8.7
630
+ *
631
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
632
+ * Dual licensed under the MIT or GPL Version 2 licenses.
633
+ * http://jquery.org/license
634
+ *
635
+ * http://docs.jquery.com/UI/Datepicker#theming
636
+ */
637
+ .ui-datepicker { width: 17em; padding: 0; display: none; border-color: #DDDDDD; }
638
+ .ui-datepicker {
639
+ -moz-box-shadow: 0 4px 8px rgba(0,0,0,0.5);
640
+ -webkit-box-shadow: 0 4px 8px rgba(0,0,0,0.5);
641
+ box-shadow: 0 4px 8px rgba(0,0,0,0.5);
642
+ }
643
+ .ui-datepicker .ui-datepicker-header { position:relative; padding:.35em 0; border: none; border-bottom: 1px solid #dfdfdf; -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; }
644
+ .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 6px; width: 1.8em; height: 1.8em; }
645
+ .ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { border: 1px none; }
646
+ .ui-datepicker .ui-datepicker-prev { left:2px; }
647
+ .ui-datepicker .ui-datepicker-next { right:2px; }
648
+ .ui-datepicker .ui-datepicker-prev span { background-position: 0px -32px !important; }
649
+ .ui-datepicker .ui-datepicker-next span { background-position: -16px -32px !important; }
650
+ .ui-datepicker .ui-datepicker-prev-hover span { background-position: 0px -48px !important; }
651
+ .ui-datepicker .ui-datepicker-next-hover span { background-position: -16px -48px !important; }
652
+ .ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; background: url(images/icon_sprite.png) no-repeat; }
653
+ .ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; font-size: 12px; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
654
+ .ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
655
+ .ui-datepicker select.ui-datepicker-month-year {width: 100%;}
656
+ .ui-datepicker select.ui-datepicker-month,
657
+ .ui-datepicker select.ui-datepicker-year { width: 49%;}
658
+ .ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
659
+ .ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: normal; border: 0; }
660
+ .ui-datepicker td { border: 0; padding: 1px; }
661
+ .ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: center; text-decoration: none; }
662
+ .ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
663
+ .ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; width:auto; overflow:visible; height:25px; line-height:22px; padding: 0 10px 1px; }
664
+ .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
665
+ .ui-datepicker table .ui-state-highlight { }
666
+ .ui-datepicker table .ui-state-hover {
667
+ border: 1px solid #dfdfdf;
668
+ background: #f9f9f9 url(images/bg_fallback.png) 0 0 repeat-x; /* Old browsers */
669
+ background: -moz-linear-gradient(top, #f9f9f9 0%, #ececec 100%); /* FF3.6+ */
670
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ececec)); /* Chrome,Safari4+ */
671
+ background: -webkit-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* Chrome10+,Safari5.1+ */
672
+ background: -o-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* Opera11.10+ */
673
+ background: -ms-linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* IE10+ */
674
+ background: linear-gradient(top, #f9f9f9 0%,#ececec 100%); /* W3C */
675
+ -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
676
+ -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
677
+ box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
678
+ }
679
+ .ui-datepicker-calendar .ui-state-default { background:none; border-color:#fff; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
680
+ .ui-datepicker-calendar .ui-state-active, .ui-datepicker-calendar .ui-state-active.ui-state-hover {
681
+ outline: none;
682
+ color: #ffffff;
683
+ border-color: #21759b #21759b #1e6a8d;
684
+ background: #f9f9f9 url(images/bg_fallback.png) 0 -50px repeat-x; /* Old browsers */
685
+ background: -moz-linear-gradient(top, #2e9fd2 0%, #21759B 100%); /* FF3.6+ */
686
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2e9fd2), color-stop(100%,#21759B)); /* Chrome,Safari4+ */
687
+ background: -webkit-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Chrome10+,Safari5.1+ */
688
+ background: -o-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Opera11.10+ */
689
+ background: -ms-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* IE10+ */
690
+ background: linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* W3C */
691
+ -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
692
+ -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
693
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255,255,255,0.4) inset;
694
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
695
+ font-weight: normal;
696
+ }
697
+
698
+ /* with multiple calendars */
699
+ .ui-datepicker.ui-datepicker-multi { width:auto; }
700
+ .ui-datepicker-multi .ui-datepicker-group { float:left; }
701
+ .ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
702
+ .ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
703
+ .ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
704
+ .ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
705
+ .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
706
+ .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
707
+ .ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
708
+ .ui-datepicker-row-break { clear:both; width:100%; }
709
+
710
+ /* RTL support */
711
+ .ui-datepicker-rtl { direction: rtl; }
712
+ .ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
713
+ .ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
714
+ .ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
715
+ .ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
716
+ .ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
717
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
718
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
719
+ .ui-datepicker-rtl .ui-datepicker-group { float:right; }
720
+ .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
721
+ .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
722
+
723
+ /* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
724
+ .ui-datepicker-cover {
725
+ display: none; /*sorry for IE5*/
726
+ display/**/: block; /*sorry for IE5*/
727
+ position: absolute; /*must have*/
728
+ z-index: -1; /*must have*/
729
+ filter: mask(); /*must have*/
730
+ top: -4px; /*must have*/
731
+ left: -4px; /*must have*/
732
+ width: 200px; /*must have*/
733
+ height: 200px; /*must have*/
734
+ }
735
+ /*
736
+ * jQuery UI Progressbar 1.8.16
737
+ *
738
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
739
+ * Dual licensed under the MIT or GPL Version 2 licenses.
740
+ * http://jquery.org/license
741
+ *
742
+ * http://docs.jquery.com/UI/Progressbar#theming
743
+ */
744
+ .ui-progressbar { height: 10px; text-align: left; border: 0 none; background: #f1f1f1; border: none; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset; box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset;
745
+ }
746
+ .ui-progressbar .ui-progressbar-value { margin: -1px; height:100%; border: 0 none; }
747
+ .ui-progressbar .ui-progressbar-value { background: #2e9fd2; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.4) inset; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.4) inset; box-shadow: 0 1px 3px rgba(0,0,0,0.4) inset;
748
+ }
749
+
750
+ /* Extra Input Field Styling */
751
+ .ui-form textarea, .ui-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]) {
752
+ color:#333;
753
+ padding: 3px;
754
+ -webkit-border-radius: 2px;
755
+ -moz-border-radius: 2px;
756
+ border-radius: 2px;
757
+ border: 1px solid #dfdfdf;
758
+ outline: none;
759
+ -webkit-transition: all 0.25s ease-in-out;
760
+ -moz-transition: all 0.25 ease-in-out;
761
+ -o-transition: all 0.25s ease-in-out;
762
+ -moz-box-sizing: border-box;
763
+ font-family:Arial, Helvetica, sans-serif;
764
+ font-size:12px;
765
+ }
766
+ .ui-form textarea:hover, .ui-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):hover {
767
+ border: 1px solid #dfdfdf;
768
+ }
769
+ .ui-form textarea:focus, .ui-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):focus {
770
+ border: 1px solid #aaa;
771
+ -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
772
+ -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
773
+ box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
774
+ }
images/logo-dfactory.png ADDED
Binary file
index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ // Silence is golden.
js/responsive-lightbox-admin.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ $('#rl_script, #rl_galleries, #rl_image_links, #rl_deactivation_delete, #rl_sw_animation, #rl_sw_hide_bars, #rl_pp_animation_speed, #rl_pp_slideshow, #rl_pp_slideshow_autoplay, #rl_pp_title, #rl_pp_allow_resize, #rl_pp_theme, #rl_pp_hide_flash, #rl_pp_wmode, #rl_pp_video_autoplay, #rl_pp_modal, #rl_pp_deeplinking, #rl_pp_overlay_gallery, #rl_pp_keyboard_shortcuts, #rl_pp_social').buttonset();
4
+
5
+ $('#rl-slideshow-yes, #rl-slideshow-no').change(function()
6
+ {
7
+ if($('#rl-slideshow-yes:checked').val() === 'yes')
8
+ {
9
+ $('#rl_pp_slideshow_delay').fadeIn(300);
10
+ }
11
+ else if($('#rl-slideshow-no:checked').val() === 'no')
12
+ {
13
+ $('#rl_pp_slideshow_delay').fadeOut(300);
14
+ }
15
+ });
16
+
17
+ $('#rl-hide-bars-yes, #rl-hide-bars-no').change(function()
18
+ {
19
+ if($('#rl-hide-bars-yes:checked').val() === 'yes')
20
+ {
21
+ $('#rl_sw_hide_bars_delay').fadeIn(300);
22
+ }
23
+ else if($('#rl-hide-bars-no:checked').val() === 'no')
24
+ {
25
+ $('#rl_sw_hide_bars_delay').fadeOut(300);
26
+ }
27
+ });
28
+
29
+ $(document).on('click', 'input#reset_rl_configuration', function(event) {
30
+ if(confirm(rlArgs.resetScriptToDefaults)) {
31
+ return true;
32
+ } else {
33
+ return false;
34
+ }
35
+ });
36
+ });
js/responsive-lightbox-front.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ function rlUniqueArr(v, i, s) {
4
+ return s.indexOf(v) === i;
5
+ }
6
+
7
+ if(rlArgs.script === 'swipebox') {
8
+ $('a[rel="'+rlArgs.selector+'"]').swipebox({
9
+ useCSS: rlArgs.animation,
10
+ hideBarsDelay: (rlArgs.hideBars === '1' ? parseInt(rlArgs.hideBarsDelay) : 0),
11
+ });
12
+
13
+ if(rlArgs.activeGalleries === '1') {
14
+ var rlGalleriesArr = new Array();
15
+
16
+ jQuery.each($('a').filter(function() {
17
+ return this.rel.match(new RegExp(rlArgs.selector+'\\[gallery-\\d+\\]'));
18
+ }), function(i) {
19
+ rlGalleriesArr[i] = $(this).attr('rel');
20
+ });
21
+
22
+ var rlUniqueGalleriesArr = rlGalleriesArr.filter(rlUniqueArr);
23
+
24
+ for(var i = 0; i < rlUniqueGalleriesArr.length; i++)
25
+ {
26
+ $('a[rel="'+rlUniqueGalleriesArr[i]+'"]').swipebox({
27
+ useCSS: rlArgs.animation,
28
+ hideBarsDelay: (rlArgs.hideBars === '1' ? parseInt(rlArgs.hideBarsDelay) : 0),
29
+ });
30
+ }
31
+ }
32
+ } else {
33
+ $('a[rel*="'+rlArgs.selector+'"]').prettyPhoto({
34
+ animation_speed: rlArgs.animationSpeed,
35
+ slideshow: (rlArgs.slideshow === '1' ? parseInt(rlArgs.slideshowDelay) : false),
36
+ autoplay_slideshow: (rlArgs.slideshowAutoplay === '1' ? true : false),
37
+ opacity: rlArgs.opacity,
38
+ show_title: (rlArgs.showTitle === '1' ? true : false),
39
+ allow_resize: (rlArgs.allowResize === '1' ? true : false),
40
+ default_width: parseInt(rlArgs.width),
41
+ default_height: parseInt(rlArgs.height),
42
+ counter_separator_label: rlArgs.separator,
43
+ theme: rlArgs.theme,
44
+ horizontal_padding: parseInt(rlArgs.horizontalPadding),
45
+ hideflash: (rlArgs.hideFlash === '1' ? true : false),
46
+ wmode: rlArgs.wmode,
47
+ autoplay: (rlArgs.videoAutoplay === '1' ? true : false),
48
+ modal: (rlArgs.modal === '1' ? true : false),
49
+ deeplinking: (rlArgs.deeplinking === '1' ? true : false),
50
+ overlay_gallery: (rlArgs.overlayGallery === '1' ? true : false),
51
+ keyboard_shortcuts: (rlArgs.keyboardShortcuts === '1' ? true : false),
52
+ social_tools: (rlArgs.social === '1' ? '<div class="pp_social"><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="http://www.facebook.com/plugins/like.php?locale=en_US&href='+location.href+'&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>' : ''),
53
+ changepicturecallback: function(){},
54
+ callback: function(){},
55
+ ie6_fallback: true
56
+ });
57
+ }
58
+ });
languages/responsive-lightbox.pot ADDED
@@ -0,0 +1,400 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Responsive Lightbox\n"
4
+ "POT-Creation-Date: 2013-07-03 12:26+0100\n"
5
+ "PO-Revision-Date: 2013-07-03 12:26+0100\n"
6
+ "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
+ "Language-Team: dFactory <info@dfactory.eu>\n"
8
+ "Language: English\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.5\n"
13
+ "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../responsive-lightbox.php:129
19
+ msgid "prettyPhoto"
20
+ msgstr ""
21
+
22
+ #: ../responsive-lightbox.php:131
23
+ msgid "slow"
24
+ msgstr ""
25
+
26
+ #: ../responsive-lightbox.php:132
27
+ msgid "normal"
28
+ msgstr ""
29
+
30
+ #: ../responsive-lightbox.php:133
31
+ msgid "fast"
32
+ msgstr ""
33
+
34
+ #: ../responsive-lightbox.php:136
35
+ msgid "default"
36
+ msgstr ""
37
+
38
+ #: ../responsive-lightbox.php:137
39
+ msgid "light rounded"
40
+ msgstr ""
41
+
42
+ #: ../responsive-lightbox.php:138
43
+ msgid "dark rounded"
44
+ msgstr ""
45
+
46
+ #: ../responsive-lightbox.php:139
47
+ msgid "light square"
48
+ msgstr ""
49
+
50
+ #: ../responsive-lightbox.php:140
51
+ msgid "dark square"
52
+ msgstr ""
53
+
54
+ #: ../responsive-lightbox.php:141
55
+ msgid "facebook"
56
+ msgstr ""
57
+
58
+ #: ../responsive-lightbox.php:144
59
+ msgid "window"
60
+ msgstr ""
61
+
62
+ #: ../responsive-lightbox.php:145
63
+ msgid "transparent"
64
+ msgstr ""
65
+
66
+ #: ../responsive-lightbox.php:146
67
+ msgid "opaque"
68
+ msgstr ""
69
+
70
+ #: ../responsive-lightbox.php:147
71
+ msgid "direct"
72
+ msgstr ""
73
+
74
+ #: ../responsive-lightbox.php:148
75
+ msgid "gpu"
76
+ msgstr ""
77
+
78
+ #: ../responsive-lightbox.php:153
79
+ msgid "SwipeBox"
80
+ msgstr ""
81
+
82
+ #: ../responsive-lightbox.php:155
83
+ msgid "CSS"
84
+ msgstr ""
85
+
86
+ #: ../responsive-lightbox.php:156
87
+ msgid "jQuery"
88
+ msgstr ""
89
+
90
+ #: ../responsive-lightbox.php:162
91
+ msgid "rel"
92
+ msgstr ""
93
+
94
+ #: ../responsive-lightbox.php:163
95
+ msgid "class"
96
+ msgstr ""
97
+
98
+ #: ../responsive-lightbox.php:167
99
+ msgid "Enable"
100
+ msgstr ""
101
+
102
+ #: ../responsive-lightbox.php:168
103
+ msgid "Disable"
104
+ msgstr ""
105
+
106
+ #: ../responsive-lightbox.php:173 ../responsive-lightbox.php:209
107
+ msgid "General settings"
108
+ msgstr ""
109
+
110
+ #: ../responsive-lightbox.php:178 ../responsive-lightbox.php:218
111
+ msgid "Lightbox settings"
112
+ msgstr ""
113
+
114
+ #: ../responsive-lightbox.php:210
115
+ msgid "Lightbox script"
116
+ msgstr ""
117
+
118
+ #: ../responsive-lightbox.php:211
119
+ msgid "Selector"
120
+ msgstr ""
121
+
122
+ #: ../responsive-lightbox.php:212
123
+ msgid "Galleries"
124
+ msgstr ""
125
+
126
+ #: ../responsive-lightbox.php:213
127
+ msgid "Image links"
128
+ msgstr ""
129
+
130
+ #: ../responsive-lightbox.php:214
131
+ msgid "Deactivation"
132
+ msgstr ""
133
+
134
+ #: ../responsive-lightbox.php:222
135
+ msgid "Animation"
136
+ msgstr ""
137
+
138
+ #: ../responsive-lightbox.php:223
139
+ msgid "Top and bottom bars"
140
+ msgstr ""
141
+
142
+ #: ../responsive-lightbox.php:227
143
+ msgid "Animation speed"
144
+ msgstr ""
145
+
146
+ #: ../responsive-lightbox.php:228
147
+ msgid "Slideshow"
148
+ msgstr ""
149
+
150
+ #: ../responsive-lightbox.php:229
151
+ msgid "Slideshow autoplay"
152
+ msgstr ""
153
+
154
+ #: ../responsive-lightbox.php:230
155
+ msgid "Opacity"
156
+ msgstr ""
157
+
158
+ #: ../responsive-lightbox.php:231
159
+ msgid "Show title"
160
+ msgstr ""
161
+
162
+ #: ../responsive-lightbox.php:232
163
+ msgid "Allow resize big images"
164
+ msgstr ""
165
+
166
+ #: ../responsive-lightbox.php:233
167
+ msgid "Width"
168
+ msgstr ""
169
+
170
+ #: ../responsive-lightbox.php:234
171
+ msgid "Height"
172
+ msgstr ""
173
+
174
+ #: ../responsive-lightbox.php:235
175
+ msgid "Theme"
176
+ msgstr ""
177
+
178
+ #: ../responsive-lightbox.php:236
179
+ msgid "Horizontal padding"
180
+ msgstr ""
181
+
182
+ #: ../responsive-lightbox.php:237
183
+ msgid "Hide Flash"
184
+ msgstr ""
185
+
186
+ #: ../responsive-lightbox.php:238
187
+ msgid "Flash Window Mode (wmode)"
188
+ msgstr ""
189
+
190
+ #: ../responsive-lightbox.php:239
191
+ msgid "Video autoplay"
192
+ msgstr ""
193
+
194
+ #: ../responsive-lightbox.php:240
195
+ msgid "Modal"
196
+ msgstr ""
197
+
198
+ #: ../responsive-lightbox.php:241
199
+ msgid "Deeplinking"
200
+ msgstr ""
201
+
202
+ #: ../responsive-lightbox.php:242
203
+ msgid "Overlay gallery"
204
+ msgstr ""
205
+
206
+ #: ../responsive-lightbox.php:243
207
+ msgid "Keyboard shortcuts"
208
+ msgstr ""
209
+
210
+ #: ../responsive-lightbox.php:244
211
+ msgid "Social (Twitter, Facebook)"
212
+ msgstr ""
213
+
214
+ #: ../responsive-lightbox.php:262
215
+ msgid "Select your preffered ligthbox effect script."
216
+ msgstr ""
217
+
218
+ #: ../responsive-lightbox.php:272
219
+ msgid "Select to which rel selector lightbox effect will be applied to."
220
+ msgstr ""
221
+
222
+ #: ../responsive-lightbox.php:290
223
+ msgid "Add lightbox to WordPress image galleries by default"
224
+ msgstr ""
225
+
226
+ #: ../responsive-lightbox.php:308
227
+ msgid "Add lightbox to WordPress image links by default"
228
+ msgstr ""
229
+
230
+ #: ../responsive-lightbox.php:326
231
+ msgid "Delete settings on plugin deactivation"
232
+ msgstr ""
233
+
234
+ #: ../responsive-lightbox.php:344
235
+ msgid "Select a method of applying a lightbox effect."
236
+ msgstr ""
237
+
238
+ #: ../responsive-lightbox.php:362
239
+ msgid "Disable if you don't want to display top and bottom bars."
240
+ msgstr ""
241
+
242
+ #: ../responsive-lightbox.php:366
243
+ msgid "Enter the time for images animation (in miliseconds)"
244
+ msgstr ""
245
+
246
+ #: ../responsive-lightbox.php:384
247
+ msgid "Select animation speed for lightbox effect"
248
+ msgstr ""
249
+
250
+ #: ../responsive-lightbox.php:402
251
+ msgid "Display images as slideshow"
252
+ msgstr ""
253
+
254
+ #: ../responsive-lightbox.php:406
255
+ msgid "Enter time (in miliseconds)"
256
+ msgstr ""
257
+
258
+ #: ../responsive-lightbox.php:424
259
+ msgid "Automatically start slideshow"
260
+ msgstr ""
261
+
262
+ #: ../responsive-lightbox.php:434
263
+ msgid "Value between 0 and 1 (for e.g. 0.5)"
264
+ msgstr ""
265
+
266
+ #: ../responsive-lightbox.php:452
267
+ msgid "Display image tiltle"
268
+ msgstr ""
269
+
270
+ #: ../responsive-lightbox.php:470
271
+ msgid "Resize the photos bigger than viewport."
272
+ msgstr ""
273
+
274
+ #: ../responsive-lightbox.php:480 ../responsive-lightbox.php:490
275
+ msgid "in pixels"
276
+ msgstr ""
277
+
278
+ #: ../responsive-lightbox.php:508
279
+ msgid "Select theme for lightbox effect"
280
+ msgstr ""
281
+
282
+ #: ../responsive-lightbox.php:518
283
+ msgid "Horizontal padding (in pixels)"
284
+ msgstr ""
285
+
286
+ #: ../responsive-lightbox.php:536
287
+ msgid ""
288
+ "Hides all the flash object on a page. Enable this if flash appears over "
289
+ "prettyPhoto"
290
+ msgstr ""
291
+
292
+ #: ../responsive-lightbox.php:554
293
+ msgid "Select flash window mode"
294
+ msgstr ""
295
+
296
+ #: ../responsive-lightbox.php:572
297
+ msgid "Automatically start videos"
298
+ msgstr ""
299
+
300
+ #: ../responsive-lightbox.php:590
301
+ msgid "If set to true, only the close button will close the window"
302
+ msgstr ""
303
+
304
+ #: ../responsive-lightbox.php:608
305
+ msgid "Allow prettyPhoto to update the url to enable deeplinking"
306
+ msgstr ""
307
+
308
+ #: ../responsive-lightbox.php:626
309
+ msgid "If enabled, a gallery will overlay the fullscreen image on mouse over"
310
+ msgstr ""
311
+
312
+ #: ../responsive-lightbox.php:644
313
+ msgid "Set to false if you open forms inside prettyPhoto"
314
+ msgstr ""
315
+
316
+ #: ../responsive-lightbox.php:662
317
+ msgid "Display links to Facebook and Twitter"
318
+ msgstr ""
319
+
320
+ #: ../responsive-lightbox.php:755
321
+ msgid ""
322
+ "Changes were not saved because there was attempt to save settings of "
323
+ "inactive script. The site has been reloaded to the proper script settings."
324
+ msgstr ""
325
+
326
+ #: ../responsive-lightbox.php:767
327
+ msgid "Settings of SwipeBox script were restored to defaults."
328
+ msgstr ""
329
+
330
+ #: ../responsive-lightbox.php:773
331
+ msgid "Settings of prettyPhoto script were restored to defaults."
332
+ msgstr ""
333
+
334
+ #: ../responsive-lightbox.php:777
335
+ msgid ""
336
+ "Changes were not set to defaults because there was attempt to reset settings "
337
+ "of inactive script. The site has been reloaded to the proper script settings."
338
+ msgstr ""
339
+
340
+ #: ../responsive-lightbox.php:791 ../responsive-lightbox.php:792
341
+ #: ../responsive-lightbox.php:806 ../responsive-lightbox.php:838
342
+ msgid "Responsive Lightbox"
343
+ msgstr ""
344
+
345
+ #: ../responsive-lightbox.php:831
346
+ msgid "Reset to defaults"
347
+ msgstr ""
348
+
349
+ #: ../responsive-lightbox.php:840
350
+ msgid "Need support?"
351
+ msgstr ""
352
+
353
+ #: ../responsive-lightbox.php:841
354
+ msgid ""
355
+ "If you are having problems with this plugin, please talk about them in the"
356
+ msgstr ""
357
+
358
+ #: ../responsive-lightbox.php:841
359
+ msgid "Support forum"
360
+ msgstr ""
361
+
362
+ #: ../responsive-lightbox.php:843
363
+ msgid "Do you like this plugin?"
364
+ msgstr ""
365
+
366
+ #: ../responsive-lightbox.php:844
367
+ msgid "Rate it 5"
368
+ msgstr ""
369
+
370
+ #: ../responsive-lightbox.php:844
371
+ msgid "on WordPress.org"
372
+ msgstr ""
373
+
374
+ #: ../responsive-lightbox.php:845
375
+ msgid "Blog about it & link to the"
376
+ msgstr ""
377
+
378
+ #: ../responsive-lightbox.php:845
379
+ msgid "plugin page"
380
+ msgstr ""
381
+
382
+ #: ../responsive-lightbox.php:846
383
+ msgid "Check out our other"
384
+ msgstr ""
385
+
386
+ #: ../responsive-lightbox.php:846
387
+ msgid "WordPress plugins"
388
+ msgstr ""
389
+
390
+ #: ../responsive-lightbox.php:871
391
+ msgid "Are you sure you want to reset scripts settings to defaults?"
392
+ msgstr ""
393
+
394
+ #: ../responsive-lightbox.php:997
395
+ msgid "Support"
396
+ msgstr ""
397
+
398
+ #: ../responsive-lightbox.php:1019
399
+ msgid "Settings"
400
+ msgstr ""
readme.txt ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Responsive Lightbox ===
2
+ Contributors: dfactory
3
+ Donate link: http://www.dfactory.eu/
4
+ Tags: gallery, images, lightbox, photos, template, theme, lightbox, photo, image, picture, slideshow, modal, overlay
5
+ Requires at least: 3.3
6
+ Tested up to: 3.5.2
7
+ Stable tag: 1.0.0
8
+ License: MIT License
9
+ License URI: http://opensource.org/licenses/MIT
10
+
11
+ Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overaly) effect optimized for mobile devices.
12
+
13
+ == Description ==
14
+
15
+ [Responsive Lightbox](http://www.dfactory.eu/plugins/responsive-lightbox/) allows users to view larger versions of images and galleries in a lightbox (overaly) effect optimized for mobile devices.
16
+
17
+ For more information, check out plugin page at [dFactory](http://www.dfactory.eu/) or see the [Live demo](http://www.dfactory.eu/plugins/responsive-lightbox/) on our site.
18
+
19
+ = Features include: =
20
+
21
+ * Select from 2 responsive lightbox scripts
22
+ * Automatically add lightbox to WordPress image galleries
23
+ * Automatically add lightbox to WordPress image links
24
+ * Enter a selector for lightbox
25
+ * Highly customizable settings for each lightbox scripts
26
+ * .pot file for translations included
27
+
28
+
29
+ == Installation ==
30
+
31
+ 1. Install Responsive Lightbox either via the WordPress.org plugin directory, or by uploading the files to your server</li>
32
+ 1. Activate the plugin through the 'Plugins' menu in WordPress</li>
33
+ 1. Go to the Responsive Lightbox settings and set your desired options.</li>
34
+
35
+ == Frequently Asked Questions ==
36
+
37
+ No questions yet.
38
+
39
+ == Screenshots ==
40
+
41
+ 1. screenshot-1.png
42
+ 2. screenshot-2.jpg
43
+
44
+ == Changelog ==
45
+
46
+ = 1.0.0 =
47
+ Initial release
48
+
49
+ == Upgrade Notice ==
50
+
51
+ Initial release of Responsive Lightbox
responsive-lightbox.php ADDED
@@ -0,0 +1,1028 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Responsive Lightbox
4
+ Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overaly) effect optimized for mobile devices.
5
+ Version: 1.0.0
6
+ Author: dFactory
7
+ Author URI: http://www.dfactory.eu/
8
+ Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
9
+ License: MIT License
10
+ License URI: http://opensource.org/licenses/MIT
11
+
12
+ Responsive Lightbox
13
+ Copyright (C) 2013, Digital Factory - info@digitalfactory.pl
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+
22
+
23
+ class Responsive_Lightbox
24
+ {
25
+ private $defaults = array(
26
+ 'settings' => array(
27
+ 'script' => 'swipebox',
28
+ 'selector' => 'lightbox',
29
+ 'galleries' => TRUE,
30
+ 'image_links' => TRUE,
31
+ 'deactivation_delete' => FALSE
32
+ ),
33
+ 'configuration' => array(
34
+ 'prettyphoto' => array(
35
+ 'animation_speed' => 'normal',
36
+ 'slideshow' => FALSE,
37
+ 'slideshow_delay' => 5000,
38
+ 'slideshow_autoplay' => FALSE,
39
+ 'opacity' => 75,
40
+ 'show_title' => TRUE,
41
+ 'allow_resize' => TRUE,
42
+ 'width' => 600,
43
+ 'height' => 360,
44
+ 'separator' => '/',
45
+ 'theme' => 'pp_default',
46
+ 'horizontal_padding' => 20,
47
+ 'hide_flash' => FALSE,
48
+ 'wmode' => 'opaque',
49
+ 'video_autoplay' => FALSE,
50
+ 'modal' => FALSE,
51
+ 'deeplinking' => FALSE,
52
+ 'overlay_gallery' => TRUE,
53
+ 'keyboard_shortcuts' => TRUE,
54
+ 'social' => FALSE
55
+ ),
56
+ 'swipebox' => array(
57
+ 'animation' => 'css',
58
+ 'hide_bars' => TRUE,
59
+ 'hide_bars_delay' => 5000
60
+ )
61
+ )
62
+ );
63
+ private $scripts = array();
64
+ private $options = array();
65
+ private $selectors = array();
66
+ private $tabs = array();
67
+ private $galleries = array();
68
+ private $gallery_no = 0;
69
+
70
+
71
+ public function __construct()
72
+ {
73
+ register_activation_hook(__FILE__, array(&$this, 'activation'));
74
+ register_deactivation_hook(__FILE__, array(&$this, 'deactivation'));
75
+
76
+ $this->options = array_merge(array('settings' => get_option('rl_settings')), array('configuration' => get_option('rl_configuration')));
77
+
78
+ //actions
79
+ add_action('plugins_loaded', array(&$this, 'load_textdomain'));
80
+ add_action('plugins_loaded', array(&$this, 'load_defaults'));
81
+ add_action('admin_init', array(&$this, 'register_settings'));
82
+ add_action('admin_menu', array(&$this, 'admin_menu_options'));
83
+ add_action('wp_enqueue_scripts', array(&$this, 'front_comments_scripts_styles'));
84
+ add_action('admin_enqueue_scripts', array(&$this, 'admin_comments_scripts_styles'));
85
+
86
+ //filters
87
+ add_filter('plugin_action_links', array(&$this, 'plugin_settings_link'), 10, 2);
88
+ add_filter('plugin_row_meta', array(&$this, 'plugin_extend_links'), 10, 2);
89
+ add_filter('post_gallery', array(&$this, 'gallery_attributes'), 1000);
90
+
91
+ if($this->options['settings']['galleries'] === TRUE)
92
+ {
93
+ add_filter('wp_get_attachment_link', array(&$this, 'add_gallery_lightbox_selector'), 1000, 6);
94
+ }
95
+
96
+ if($this->options['settings']['image_links'] === TRUE)
97
+ {
98
+ add_filter('image_send_to_editor', array(&$this, 'add_links_lightbox_selector'), 1000);
99
+ }
100
+ }
101
+
102
+
103
+ public function gallery_attributes($style)
104
+ {
105
+ ++$this->gallery_no;
106
+
107
+ return $style;
108
+ }
109
+
110
+
111
+ public function add_gallery_lightbox_selector($link, $id, $size, $permalink, $icon, $text)
112
+ {
113
+ $link = (preg_match('/<a.*? rel=("|\').*?("|\')>/', $link) === 1 ? preg_replace('/(<a.*? rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 '.$this->options['settings']['selector'].'[gallery-'.$this->gallery_no.']'.'$2', $link) : preg_replace('/(<a.*?)>/', '$1 rel="'.$this->options['settings']['selector'].'[gallery-'.$this->gallery_no.']'.'">', $link));
114
+
115
+ return (preg_match('/<a.*? href=("|\').*?("|\')>/', $link) === 1 ? preg_replace('/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1'.wp_get_attachment_url($id).'$2', $link) : preg_replace('/(<a.*?)>/', '$1 href="'.wp_get_attachment_url($id).'">', $link));
116
+ }
117
+
118
+
119
+ public function add_links_lightbox_selector($link)
120
+ {
121
+ return (preg_match('/<a.*? rel=".*?">/', $link) === 1 ? preg_replace('/(<a.*? rel=".*?)(".*?>)/', '$1 '.$this->options['settings']['selector'].'$2', $link) : preg_replace('/(<a.*?)>/', '$1 rel="'.$this->options['settings']['selector'].'">', $link));
122
+ }
123
+
124
+
125
+ public function load_defaults()
126
+ {
127
+ $this->scripts = array(
128
+ 'prettyphoto' => array(
129
+ 'name' => __('prettyPhoto', 'responsive-lightbox'),
130
+ 'animation_speeds' => array(
131
+ 'slow' => __('slow', 'responsive-lightbox'),
132
+ 'normal' => __('normal', 'responsive-lightbox'),
133
+ 'fast' => __('fast', 'responsive-lightbox')
134
+ ),
135
+ 'themes' => array(
136
+ 'pp_default' => __('default', 'responsive-lightbox'),
137
+ 'light_rounded' => __('light rounded', 'responsive-lightbox'),
138
+ 'dark_rounded' => __('dark rounded', 'responsive-lightbox'),
139
+ 'light_square' => __('light square', 'responsive-lightbox'),
140
+ 'dark_square' => __('dark square', 'responsive-lightbox'),
141
+ 'facebook' => __('facebook', 'responsive-lightbox')
142
+ ),
143
+ 'wmodes' => array(
144
+ 'window' => __('window', 'responsive-lightbox'),
145
+ 'transparent' => __('transparent', 'responsive-lightbox'),
146
+ 'opaque' => __('opaque', 'responsive-lightbox'),
147
+ 'direct' => __('direct', 'responsive-lightbox'),
148
+ 'gpu' => __('gpu', 'responsive-lightbox')
149
+ )
150
+
151
+ ),
152
+ 'swipebox' => array(
153
+ 'name' => __('SwipeBox', 'responsive-lightbox'),
154
+ 'animations' => array(
155
+ 'css' => __('CSS', 'responsive-lightbox'),
156
+ 'jquery' => __('jQuery', 'responsive-lightbox')
157
+ )
158
+ )
159
+ );
160
+
161
+ $this->selectors = array(
162
+ 'rel' => __('rel', 'responsive-lightbox'),
163
+ 'class' => __('class', 'responsive-lightbox')
164
+ );
165
+
166
+ $this->choices = array(
167
+ 'yes' => __('Enable', 'responsive-lightbox'),
168
+ 'no' => __('Disable', 'responsive-lightbox')
169
+ );
170
+
171
+ $this->tabs = array(
172
+ 'general-settings' => array(
173
+ 'name' => __('General settings', 'responsive-lightbox'),
174
+ 'key' => 'rl_settings',
175
+ 'submit' => 'save_rl_settings'
176
+ ),
177
+ 'configuration' => array(
178
+ 'name' => __('Lightbox settings', 'responsive-lightbox'),
179
+ 'key' => 'rl_configuration',
180
+ 'submit' => 'save_rl_configuration',
181
+ 'reset' => 'reset_rl_configuration'
182
+ )
183
+ );
184
+ }
185
+
186
+
187
+ public function activation()
188
+ {
189
+ add_option('rl_settings', $this->defaults['settings'], '', 'no');
190
+ add_option('rl_configuration', $this->defaults['configuration'], '', 'no');
191
+ }
192
+
193
+
194
+ public function deactivation()
195
+ {
196
+ if($this->options['settings']['deactivation_delete'] === TRUE)
197
+ {
198
+ delete_option('rl_settings');
199
+ delete_option('rl_configuration');
200
+ }
201
+ }
202
+
203
+
204
+ public function register_settings()
205
+ {
206
+ register_setting('rl_settings', 'rl_settings', array(&$this, 'validate_options'));
207
+
208
+ //general settings
209
+ add_settings_section('rl_settings', __('General settings', 'responsive-lightbox'), '', 'rl_settings');
210
+ add_settings_field('rl_script', __('Lightbox script', 'responsive-lightbox'), array(&$this, 'rl_script'), 'rl_settings', 'rl_settings');
211
+ add_settings_field('rl_selector', __('Selector', 'responsive-lightbox'), array(&$this, 'rl_selector'), 'rl_settings', 'rl_settings');
212
+ add_settings_field('rl_galleries', __('Galleries', 'responsive-lightbox'), array(&$this, 'rl_galleries'), 'rl_settings', 'rl_settings');
213
+ add_settings_field('rl_image_links', __('Image links', 'responsive-lightbox'), array(&$this, 'rl_image_links'), 'rl_settings', 'rl_settings');
214
+ add_settings_field('rl_deactivation_delete', __('Deactivation', 'responsive-lightbox'), array(&$this, 'rl_deactivation_delete'), 'rl_settings', 'rl_settings');
215
+
216
+ //configuration
217
+ register_setting('rl_configuration', 'rl_configuration', array(&$this, 'validate_options'));
218
+ add_settings_section('rl_configuration', __('Lightbox settings', 'responsive-lightbox').': '.$this->scripts[$this->options['settings']['script']]['name'], '', 'rl_configuration');
219
+
220
+ if($this->options['settings']['script'] === 'swipebox')
221
+ {
222
+ add_settings_field('rl_sw_animation', __('Animation type', 'responsive-lightbox'), array(&$this, 'rl_sw_animation'), 'rl_configuration', 'rl_configuration');
223
+ add_settings_field('rl_sw_hide_bars', __('Top and bottom bars', 'responsive-lightbox'), array(&$this, 'rl_sw_hide_bars'), 'rl_configuration', 'rl_configuration');
224
+ }
225
+ elseif($this->options['settings']['script'] === 'prettyphoto')
226
+ {
227
+ add_settings_field('rl_pp_animation_speed', __('Animation speed', 'responsive-lightbox'), array(&$this, 'rl_pp_animation_speed'), 'rl_configuration', 'rl_configuration');
228
+ add_settings_field('rl_pp_slideshow', __('Slideshow', 'responsive-lightbox'), array(&$this, 'rl_pp_slideshow'), 'rl_configuration', 'rl_configuration');
229
+ add_settings_field('rl_pp_slideshow_autoplay', __('Slideshow autoplay', 'responsive-lightbox'), array(&$this, 'rl_pp_slideshow_autoplay'), 'rl_configuration', 'rl_configuration');
230
+ add_settings_field('rl_pp_opacity', __('Opacity', 'responsive-lightbox'), array(&$this, 'rl_pp_opacity'), 'rl_configuration', 'rl_configuration');
231
+ add_settings_field('rl_pp_title', __('Show title', 'responsive-lightbox'), array(&$this, 'rl_pp_title'), 'rl_configuration', 'rl_configuration');
232
+ add_settings_field('rl_pp_allow_resize', __('Allow resize big images', 'responsive-lightbox'), array(&$this, 'rl_pp_allow_resize'), 'rl_configuration', 'rl_configuration');
233
+ add_settings_field('rl_pp_width', __('Width', 'responsive-lightbox'), array(&$this, 'rl_pp_width'), 'rl_configuration', 'rl_configuration');
234
+ add_settings_field('rl_pp_height', __('Height', 'responsive-lightbox'), array(&$this, 'rl_pp_height'), 'rl_configuration', 'rl_configuration');
235
+ add_settings_field('rl_pp_theme', __('Theme', 'responsive-lightbox'), array(&$this, 'rl_pp_theme'), 'rl_configuration', 'rl_configuration');
236
+ add_settings_field('rl_pp_horizontal_padding', __('Horizontal padding', 'responsive-lightbox'), array(&$this, 'rl_pp_horizontal_padding'), 'rl_configuration', 'rl_configuration');
237
+ add_settings_field('rl_pp_hide_flash', __('Hide Flash', 'responsive-lightbox'), array(&$this, 'rl_pp_hide_flash'), 'rl_configuration', 'rl_configuration');
238
+ add_settings_field('rl_pp_wmode', __('Flash Window Mode (wmode)', 'responsive-lightbox'), array(&$this, 'rl_pp_wmode'), 'rl_configuration', 'rl_configuration');
239
+ add_settings_field('rl_pp_video_autoplay', __('Video autoplay', 'responsive-lightbox'), array(&$this, 'rl_pp_video_autoplay'), 'rl_configuration', 'rl_configuration');
240
+ add_settings_field('rl_pp_modal', __('Modal', 'responsive-lightbox'), array(&$this, 'rl_pp_modal'), 'rl_configuration', 'rl_configuration');
241
+ add_settings_field('rl_pp_deeplinking', __('Deeplinking', 'responsive-lightbox'), array(&$this, 'rl_pp_deeplinking'), 'rl_configuration', 'rl_configuration');
242
+ add_settings_field('rl_pp_overlay_gallery', __('Overlay gallery', 'responsive-lightbox'), array(&$this, 'rl_pp_overlay_gallery'), 'rl_configuration', 'rl_configuration');
243
+ add_settings_field('rl_pp_keyboard_shortcuts', __('Keyboard shortcuts', 'responsive-lightbox'), array(&$this, 'rl_pp_keyboard_shortcuts'), 'rl_configuration', 'rl_configuration');
244
+ add_settings_field('rl_pp_social', __('Social (Twitter, Facebook)', 'responsive-lightbox'), array(&$this, 'rl_pp_social'), 'rl_configuration', 'rl_configuration');
245
+ }
246
+ }
247
+
248
+
249
+ public function rl_script()
250
+ {
251
+ echo '
252
+ <div id="rl_script">';
253
+
254
+ foreach($this->scripts as $val => $trans)
255
+ {
256
+ echo '
257
+ <input id="rl-script-'.$val.'" type="radio" name="rl_settings[script]" value="'.$val.'" '.checked($val, $this->options['settings']['script'], FALSE).' />
258
+ <label for="rl-script-'.$val.'">'.$trans['name'].'</label>';
259
+ }
260
+
261
+ echo '
262
+ <p class="description">'.__('Select your preffered ligthbox effect script.', 'responsive-lightbox').'</p>
263
+ </div>';
264
+ }
265
+
266
+
267
+ public function rl_selector()
268
+ {
269
+ echo '
270
+ <div id="rl_selector">
271
+ <input type="text" value="'.$this->options['settings']['selector'].'" name="rl_settings[selector]" />
272
+ <p class="description">'.__('Select to which rel selector lightbox effect will be applied to.', 'responsive-lightbox').'</p>
273
+ </div>';
274
+ }
275
+
276
+
277
+ public function rl_galleries()
278
+ {
279
+ echo '
280
+ <div id="rl_galleries">';
281
+
282
+ foreach($this->choices as $val => $trans)
283
+ {
284
+ echo '
285
+ <input id="rl-galleries-'.$val.'" type="radio" name="rl_settings[galleries]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['galleries'], FALSE).' />
286
+ <label for="rl-galleries-'.$val.'">'.$trans.'</label>';
287
+ }
288
+
289
+ echo '
290
+ <p class="description">'.__('Add lightbox to WordPress image galleries by default', 'responsive-lightbox').'</p>
291
+ </div>';
292
+ }
293
+
294
+
295
+ public function rl_image_links()
296
+ {
297
+ echo '
298
+ <div id="rl_image_links">';
299
+
300
+ foreach($this->choices as $val => $trans)
301
+ {
302
+ echo '
303
+ <input id="rl-image-links-'.$val.'" type="radio" name="rl_settings[image_links]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['image_links'], FALSE).' />
304
+ <label for="rl-image-links-'.$val.'">'.$trans.'</label>';
305
+ }
306
+
307
+ echo '
308
+ <p class="description">'.__('Add lightbox to WordPress image links by default', 'responsive-lightbox').'</p>
309
+ </div>';
310
+ }
311
+
312
+
313
+ public function rl_deactivation_delete()
314
+ {
315
+ echo '
316
+ <div id="rl_deactivation_delete">';
317
+
318
+ foreach($this->choices as $val => $trans)
319
+ {
320
+ echo '
321
+ <input id="rl-deactivation-delete-'.$val.'" type="radio" name="rl_settings[deactivation_delete]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['deactivation_delete'], FALSE).' />
322
+ <label for="rl-deactivation-delete-'.$val.'">'.$trans.'</label>';
323
+ }
324
+
325
+ echo '
326
+ <p class="description">'.__('Delete settings on plugin deactivation', 'responsive-lightbox').'</p>
327
+ </div>';
328
+ }
329
+
330
+
331
+ public function rl_sw_animation()
332
+ {
333
+ echo '
334
+ <div id="rl_sw_animation">';
335
+
336
+ foreach($this->scripts['swipebox']['animations'] as $val => $trans)
337
+ {
338
+ echo '
339
+ <input id="rl-animation-'.$val.'" type="radio" name="rl_configuration[swipebox][animation]" value="'.$val.'" '.checked($val, $this->options['configuration']['swipebox']['animation'], FALSE).' />
340
+ <label for="rl-animation-'.$val.'">'.$trans.'</label>';
341
+ }
342
+
343
+ echo '
344
+ <p class="description">'.__('Select a method of applying a lightbox effect.', 'responsive-lightbox').'</p>
345
+ </div>';
346
+ }
347
+
348
+
349
+ public function rl_sw_hide_bars()
350
+ {
351
+ echo '
352
+ <div id="rl_sw_hide_bars">';
353
+
354
+ foreach($this->choices as $val => $trans)
355
+ {
356
+ echo '
357
+ <input id="rl-hide-bars-'.$val.'" type="radio" name="rl_configuration[swipebox][hide_bars]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['swipebox']['hide_bars'], FALSE).' />
358
+ <label for="rl-hide-bars-'.$val.'">'.$trans.'</label>';
359
+ }
360
+
361
+ echo '
362
+ <p class="description">'.__('Disable if you don\'t want to display top and bottom bars.', 'responsive-lightbox').'</p>
363
+ </div>
364
+ <div id="rl_sw_hide_bars_delay"'.($this->options['configuration']['swipebox']['hide_bars'] === FALSE ? ' style="display: none;"' : '').'>
365
+ <input type="text" name="rl_configuration[swipebox][hide_bars_delay]" value="'.$this->options['configuration']['swipebox']['hide_bars_delay'].'" />
366
+ <p class="description">'.__('Enter the time for images animation (in miliseconds)', 'responsive-lightbox').'</p>
367
+ </div>';
368
+ }
369
+
370
+
371
+ public function rl_pp_animation_speed()
372
+ {
373
+ echo '
374
+ <div id="rl_pp_animation_speed">';
375
+
376
+ foreach($this->scripts['prettyphoto']['animation_speeds'] as $val => $trans)
377
+ {
378
+ echo '
379
+ <input id="rl-animation-speed-'.$val.'" type="radio" name="rl_configuration[prettyphoto][animation_speed]" value="'.$val.'" '.checked($val, $this->options['configuration']['prettyphoto']['animation_speed'], FALSE).' />
380
+ <label for="rl-animation-speed-'.$val.'">'.$trans.'</label>';
381
+ }
382
+
383
+ echo '
384
+ <p class="description">'.__('Select animation speed for lightbox effect', 'responsive-lightbox').'</p>
385
+ </div>';
386
+ }
387
+
388
+
389
+ public function rl_pp_slideshow()
390
+ {
391
+ echo '
392
+ <div id="rl_pp_slideshow">';
393
+
394
+ foreach($this->choices as $val => $trans)
395
+ {
396
+ echo '
397
+ <input id="rl-slideshow-'.$val.'" type="radio" name="rl_configuration[prettyphoto][slideshow]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow'], FALSE).' />
398
+ <label for="rl-slideshow-'.$val.'">'.$trans.'</label>';
399
+ }
400
+
401
+ echo '
402
+ <p class="description">'.__('Display images as slideshow', 'responsive-lightbox').'</p>
403
+ </div>
404
+ <div id="rl_pp_slideshow_delay"'.($this->options['configuration']['prettyphoto']['slideshow'] === FALSE ? ' style="display: none;"' : '').'>
405
+ <input type="text" name="rl_configuration[prettyphoto][slideshow_delay]" value="'.$this->options['configuration']['prettyphoto']['slideshow_delay'].'" />
406
+ <p class="description">'.__('Enter time (in miliseconds)', 'responsive-lightbox').'</p>
407
+ </div>';
408
+ }
409
+
410
+
411
+ public function rl_pp_slideshow_autoplay()
412
+ {
413
+ echo '
414
+ <div id="rl_pp_slideshow_autoplay">';
415
+
416
+ foreach($this->choices as $val => $trans)
417
+ {
418
+ echo '
419
+ <input id="rl-slideshow-autoplay-'.$val.'" type="radio" name="rl_configuration[prettyphoto][slideshow_autoplay]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow_autoplay'], FALSE).' />
420
+ <label for="rl-slideshow-autoplay-'.$val.'">'.$trans.'</label>';
421
+ }
422
+
423
+ echo '
424
+ <p class="description">'.__('Automatically start slideshow', 'responsive-lightbox').'</p>
425
+ </div>';
426
+ }
427
+
428
+
429
+ public function rl_pp_opacity()
430
+ {
431
+ echo '
432
+ <div id="rl_pp_opacity">
433
+ <input type="text" name="rl_configuration[prettyphoto][opacity]" value="'.$this->options['configuration']['prettyphoto']['opacity'].'" />
434
+ <p class="description">'.__('Value between 0 and 1 (for e.g. 0.5)', 'responsive-lightbox').'</p>
435
+ </div>';
436
+ }
437
+
438
+
439
+ public function rl_pp_title()
440
+ {
441
+ echo '
442
+ <div id="rl_pp_title">';
443
+
444
+ foreach($this->choices as $val => $trans)
445
+ {
446
+ echo '
447
+ <input id="rl-show-title-'.$val.'" type="radio" name="rl_configuration[prettyphoto][show_title]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['show_title'], FALSE).' />
448
+ <label for="rl-show-title-'.$val.'">'.$trans.'</label>';
449
+ }
450
+
451
+ echo '
452
+ <p class="description">'.__('Display image tiltle', 'responsive-lightbox').'</p>
453
+ </div>';
454
+ }
455
+
456
+
457
+ public function rl_pp_allow_resize()
458
+ {
459
+ echo '
460
+ <div id="rl_pp_allow_resize">';
461
+
462
+ foreach($this->choices as $val => $trans)
463
+ {
464
+ echo '
465
+ <input id="rl-allow-resize-'.$val.'" type="radio" name="rl_configuration[prettyphoto][allow_resize]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['allow_resize'], FALSE).' />
466
+ <label for="rl-allow-resize-'.$val.'">'.$trans.'</label>';
467
+ }
468
+
469
+ echo '
470
+ <p class="description">'.__('Resize the photos bigger than viewport.', 'responsive-lightbox').'</p>
471
+ </div>';
472
+ }
473
+
474
+
475
+ public function rl_pp_width()
476
+ {
477
+ echo '
478
+ <div id="rl_pp_width">
479
+ <input type="text" name="rl_configuration[prettyphoto][width]" value="'.$this->options['configuration']['prettyphoto']['width'].'" />
480
+ <p class="description">'.__('in pixels', 'responsive-lightbox').'</p>
481
+ </div>';
482
+ }
483
+
484
+
485
+ public function rl_pp_height()
486
+ {
487
+ echo '
488
+ <div id="rl_pp_height">
489
+ <input type="text" name="rl_configuration[prettyphoto][height]" value="'.$this->options['configuration']['prettyphoto']['height'].'" />
490
+ <p class="description">'.__('in pixels', 'responsive-lightbox').'</p>
491
+ </div>';
492
+ }
493
+
494
+
495
+ public function rl_pp_theme()
496
+ {
497
+ echo '
498
+ <div id="rl_pp_theme">';
499
+
500
+ foreach($this->scripts['prettyphoto']['themes'] as $val => $trans)
501
+ {
502
+ echo '
503
+ <input id="rl-theme-'.$val.'" type="radio" name="rl_configuration[prettyphoto][theme]" value="'.$val.'" '.checked($val, $this->options['configuration']['prettyphoto']['theme'], FALSE).' />
504
+ <label for="rl-theme-'.$val.'">'.$trans.'</label>';
505
+ }
506
+
507
+ echo '
508
+ <p class="description">'.__('Select theme for lightbox effect', 'responsive-lightbox').'</p>
509
+ </div>';
510
+ }
511
+
512
+
513
+ public function rl_pp_horizontal_padding()
514
+ {
515
+ echo '
516
+ <div id="rl_pp_horizontal_padding">
517
+ <input type="text" name="rl_configuration[prettyphoto][horizontal_padding]" value="'.$this->options['configuration']['prettyphoto']['horizontal_padding'].'" />
518
+ <p class="description">'.__('Horizontal padding (in pixels)', 'responsive-lightbox').'</p>
519
+ </div>';
520
+ }
521
+
522
+
523
+ public function rl_pp_hide_flash()
524
+ {
525
+ echo '
526
+ <div id="rl_pp_hide_flash">';
527
+
528
+ foreach($this->choices as $val => $trans)
529
+ {
530
+ echo '
531
+ <input id="rl-hide-flash-'.$val.'" type="radio" name="rl_configuration[prettyphoto][hide_flash]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['hide_flash'], FALSE).' />
532
+ <label for="rl-hide-flash-'.$val.'">'.$trans.'</label>';
533
+ }
534
+
535
+ echo '
536
+ <p class="description">'.__('Hides all the flash object on a page. Enable this if flash appears over prettyPhoto', 'responsive-lightbox').'</p>
537
+ </div>';
538
+ }
539
+
540
+
541
+ public function rl_pp_wmode()
542
+ {
543
+ echo '
544
+ <div id="rl_pp_wmode">';
545
+
546
+ foreach($this->scripts['prettyphoto']['wmodes'] as $val => $trans)
547
+ {
548
+ echo '
549
+ <input id="rl-wmode-'.$val.'" type="radio" name="rl_configuration[prettyphoto][wmode]" value="'.$val.'" '.checked($val, $this->options['configuration']['prettyphoto']['wmode'], FALSE).' />
550
+ <label for="rl-wmode-'.$val.'">'.$trans.'</label>';
551
+ }
552
+
553
+ echo '
554
+ <p class="description">'.__('Select flash window mode', 'responsive-lightbox').'</p>
555
+ </div>';
556
+ }
557
+
558
+
559
+ public function rl_pp_video_autoplay()
560
+ {
561
+ echo '
562
+ <div id="rl_pp_video_autoplay">';
563
+
564
+ foreach($this->choices as $val => $trans)
565
+ {
566
+ echo '
567
+ <input id="rl-video-autoplay-'.$val.'" type="radio" name="rl_configuration[prettyphoto][video_autoplay]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['video_autoplay'], FALSE).' />
568
+ <label for="rl-video-autoplay-'.$val.'">'.$trans.'</label>';
569
+ }
570
+
571
+ echo '
572
+ <p class="description">'.__('Automatically start videos', 'responsive-lightbox').'</p>
573
+ </div>';
574
+ }
575
+
576
+
577
+ public function rl_pp_modal()
578
+ {
579
+ echo '
580
+ <div id="rl_pp_modal">';
581
+
582
+ foreach($this->choices as $val => $trans)
583
+ {
584
+ echo '
585
+ <input id="rl-modal-close-'.$val.'" type="radio" name="rl_configuration[prettyphoto][modal]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['modal'], FALSE).' />
586
+ <label for="rl-modal-close-'.$val.'">'.$trans.'</label>';
587
+ }
588
+
589
+ echo '
590
+ <p class="description">'.__('If set to true, only the close button will close the window', 'responsive-lightbox').'</p>
591
+ </div>';
592
+ }
593
+
594
+
595
+ public function rl_pp_deeplinking()
596
+ {
597
+ echo '
598
+ <div id="rl_pp_deeplinking">';
599
+
600
+ foreach($this->choices as $val => $trans)
601
+ {
602
+ echo '
603
+ <input id="rl-deeplinking-'.$val.'" type="radio" name="rl_configuration[prettyphoto][deeplinking]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['deeplinking'], FALSE).' />
604
+ <label for="rl-deeplinking-'.$val.'">'.$trans.'</label>';
605
+ }
606
+
607
+ echo '
608
+ <p class="description">'.__('Allow prettyPhoto to update the url to enable deeplinking', 'responsive-lightbox').'</p>
609
+ </div>';
610
+ }
611
+
612
+
613
+ public function rl_pp_overlay_gallery()
614
+ {
615
+ echo '
616
+ <div id="rl_pp_overlay_gallery">';
617
+
618
+ foreach($this->choices as $val => $trans)
619
+ {
620
+ echo '
621
+ <input id="rl-overlay-gallery-'.$val.'" type="radio" name="rl_configuration[prettyphoto][overlay_gallery]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['overlay_gallery'], FALSE).' />
622
+ <label for="rl-overlay-gallery-'.$val.'">'.$trans.'</label>';
623
+ }
624
+
625
+ echo '
626
+ <p class="description">'.__('If enabled, a gallery will overlay the fullscreen image on mouse over', 'responsive-lightbox').'</p>
627
+ </div>';
628
+ }
629
+
630
+
631
+ public function rl_pp_keyboard_shortcuts()
632
+ {
633
+ echo '
634
+ <div id="rl_pp_keyboard_shortcuts">';
635
+
636
+ foreach($this->choices as $val => $trans)
637
+ {
638
+ echo '
639
+ <input id="rl-keyboard-shortcuts-'.$val.'" type="radio" name="rl_configuration[prettyphoto][keyboard_shortcuts]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['keyboard_shortcuts'], FALSE).' />
640
+ <label for="rl-keyboard-shortcuts-'.$val.'">'.$trans.'</label>';
641
+ }
642
+
643
+ echo '
644
+ <p class="description">'.__('Set to false if you open forms inside prettyPhoto', 'responsive-lightbox').'</p>
645
+ </div>';
646
+ }
647
+
648
+
649
+ public function rl_pp_social()
650
+ {
651
+ echo '
652
+ <div id="rl_pp_social">';
653
+
654
+ foreach($this->choices as $val => $trans)
655
+ {
656
+ echo '
657
+ <input id="rl-social-'.$val.'" type="radio" name="rl_configuration[prettyphoto][social]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['social'], FALSE).' />
658
+ <label for="rl-social-'.$val.'">'.$trans.'</label>';
659
+ }
660
+
661
+ echo '
662
+ <p class="description">'.__('Display links to Facebook and Twitter', 'responsive-lightbox').'</p>
663
+ </div>';
664
+ }
665
+
666
+
667
+ /**
668
+ * Validates settings
669
+ */
670
+ public function validate_options($input)
671
+ {
672
+ if(isset($_POST['save_rl_settings']))
673
+ {
674
+ //script
675
+ $input['script'] = (isset($input['script']) && in_array($input['script'], array_keys($this->scripts)) ? $input['script'] : $this->options['settings']['script']);
676
+
677
+ //selector
678
+ $input['selector'] = sanitize_text_field(isset($input['selector']) && $input['selector'] !== '' ? $input['selector'] : $this->options['settings']['selector']);
679
+
680
+ //checkboxes
681
+ $input['galleries'] = (isset($input['galleries']) && in_array($input['galleries'], array_keys($this->choices)) ? ($input['galleries'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['galleries']);
682
+ $input['image_links'] = (isset($input['image_links']) && in_array($input['image_links'], array_keys($this->choices)) ? ($input['image_links'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['image_links']);
683
+ $input['deactivation_delete'] = (isset($input['deactivation_delete']) && in_array($input['deactivation_delete'], array_keys($this->choices)) ? ($input['deactivation_delete'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['deactivation_delete']);
684
+ }
685
+ elseif(isset($_POST['save_rl_configuration']))
686
+ {
687
+ if($this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox')
688
+ {
689
+ //animation
690
+ $input['swipebox']['animation'] = (isset($input['swipebox']['animation']) && in_array($input['swipebox']['animation'], array_keys($this->scripts['swipebox']['animations'])) ? $input['swipebox']['animation'] : $this->options['configuration']['swipebox']['animation']);
691
+
692
+ //hide bars
693
+ $input['swipebox']['hide_bars'] = (isset($input['swipebox']['hide_bars']) && in_array($input['swipebox']['hide_bars'], array_keys($this->choices)) ? ($input['swipebox']['hide_bars'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['swipebox']['hide_bars']);
694
+ $input['swipebox']['hide_bars_delay'] = (int)($input['swipebox']['hide_bars_delay'] > 0 ? $input['swipebox']['hide_bars_delay'] : $this->options['configuration']['swipebox']['hide_bars_delay']);
695
+ }
696
+ elseif($this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto')
697
+ {
698
+ //animation speed
699
+ $input['prettyphoto']['animation_speed'] = (isset($input['prettyphoto']['animation_speed']) && in_array($input['prettyphoto']['animation_speed'], array_keys($this->scripts['prettyphoto']['animation_speeds'])) ? $input['prettyphoto']['animation_speed'] : $this->options['configuration']['prettyphoto']['animation_speed']);
700
+
701
+ //slideshows
702
+ $input['prettyphoto']['slideshow'] = (isset($input['prettyphoto']['slideshow']) && in_array($input['prettyphoto']['slideshow'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['slideshow']);
703
+ $input['prettyphoto']['slideshow_delay'] = (int)($input['prettyphoto']['slideshow_delay'] > 0 ? $input['prettyphoto']['slideshow_delay'] : $this->options['configuration']['prettyphoto']['slideshow_delay']);
704
+ $input['prettyphoto']['slideshow_autoplay'] = (isset($input['prettyphoto']['slideshow_autoplay']) && in_array($input['prettyphoto']['slideshow_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow_autoplay'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['slideshow_autoplay']);
705
+
706
+ //opacity
707
+ $input['prettyphoto']['opacity'] = (int)$input['prettyphoto']['opacity'];
708
+
709
+ //title
710
+ $input['prettyphoto']['show_title'] = (isset($input['prettyphoto']['show_title']) && in_array($input['prettyphoto']['show_title'], array_keys($this->choices)) ? ($input['prettyphoto']['show_title'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['show_title']);
711
+
712
+ //resize
713
+ $input['prettyphoto']['allow_resize'] = (isset($input['prettyphoto']['allow_resize']) && in_array($input['prettyphoto']['allow_resize'], array_keys($this->choices)) ? ($input['prettyphoto']['allow_resize'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['allow_resize']);
714
+
715
+ //dimensions
716
+ $input['prettyphoto']['width'] = (int)($input['prettyphoto']['width'] > 0 ? $input['prettyphoto']['width'] : $this->options['configuration']['prettyphoto']['width']);
717
+ $input['prettyphoto']['height'] = (int)($input['prettyphoto']['height'] > 0 ? $input['prettyphoto']['height'] : $this->options['configuration']['prettyphoto']['height']);
718
+
719
+ //separator
720
+ $input['prettyphoto']['separator'] = sanitize_text_field(isset($input['prettyphoto']['separator']) && $input['prettyphoto']['separator'] !== '' ? $input['prettyphoto']['separator'] : $this->options['configuration']['prettyphoto']['separator']);
721
+
722
+ //theme
723
+ $input['prettyphoto']['theme'] = (isset($input['prettyphoto']['theme']) && in_array($input['prettyphoto']['theme'], array_keys($this->scripts['prettyphoto']['themes'])) ? $input['prettyphoto']['theme'] : $this->options['configuration']['prettyphoto']['theme']);
724
+
725
+ //padding
726
+ $input['prettyphoto']['horizontal_padding'] = (int)($input['prettyphoto']['horizontal_padding'] > 0 ? $input['prettyphoto']['horizontal_padding'] : $this->options['configuration']['prettyphoto']['horizontal_padding']);
727
+
728
+ //flash
729
+ $input['prettyphoto']['hide_flash'] = (isset($input['prettyphoto']['hide_flash']) && in_array($input['prettyphoto']['hide_flash'], array_keys($this->choices)) ? ($input['prettyphoto']['hide_flash'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['hide_flash']);
730
+ $input['prettyphoto']['wmode'] = (isset($input['prettyphoto']['wmode']) && in_array($input['prettyphoto']['wmode'], array_keys($this->scripts['prettyphoto']['wmodes'])) ? $input['prettyphoto']['wmode'] : $this->options['configuration']['prettyphoto']['wmode']);
731
+
732
+ //video autoplay
733
+ $input['prettyphoto']['video_autoplay'] = (isset($input['prettyphoto']['video_autoplay']) && in_array($input['prettyphoto']['video_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['video_autoplay'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['video_autoplay']);
734
+
735
+ //modal
736
+ $input['prettyphoto']['modal'] = (isset($input['prettyphoto']['modal']) && in_array($input['prettyphoto']['modal'], array_keys($this->choices)) ? ($input['prettyphoto']['modal'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['modal']);
737
+
738
+ //deeplinking
739
+ $input['prettyphoto']['deeplinking'] = (isset($input['prettyphoto']['deeplinking']) && in_array($input['prettyphoto']['deeplinking'], array_keys($this->choices)) ? ($input['prettyphoto']['deeplinking'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['deeplinking']);
740
+
741
+ //overlay gallery
742
+ $input['prettyphoto']['overlay_gallery'] = (isset($input['prettyphoto']['overlay_gallery']) && in_array($input['prettyphoto']['overlay_gallery'], array_keys($this->choices)) ? ($input['prettyphoto']['overlay_gallery'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['overlay_gallery']);
743
+
744
+ //keyboard shortcuts
745
+ $input['prettyphoto']['keyboard_shortcuts'] = (isset($input['prettyphoto']['keyboard_shortcuts']) && in_array($input['prettyphoto']['keyboard_shortcuts'], array_keys($this->choices)) ? ($input['prettyphoto']['keyboard_shortcuts'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['keyboard_shortcuts']);
746
+
747
+ //social
748
+ $input['prettyphoto']['social'] = (isset($input['prettyphoto']['social']) && in_array($input['prettyphoto']['social'], array_keys($this->choices)) ? ($input['prettyphoto']['social'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['social']);
749
+ }
750
+ else
751
+ {
752
+ //clear input to not change settings
753
+ $input = array();
754
+
755
+ add_settings_error('save_script_settings', 'invalid_script_page', __('Changes were not saved because there was attempt to save settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox'), 'error');
756
+ }
757
+
758
+ //we have to merge rest of the scripts settings
759
+ $input = array_merge($this->options['configuration'], $input);
760
+ }
761
+ elseif(isset($_POST['reset_rl_configuration']))
762
+ {
763
+ if($this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox')
764
+ {
765
+ $input['swipebox'] = $this->defaults['configuration']['swipebox'];
766
+
767
+ add_settings_error('reset_swipebox_settings', 'swipebox_reset', __('Settings of SwipeBox script were restored to defaults.', 'responsive-lightbox'), 'updated');
768
+ }
769
+ elseif($this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto')
770
+ {
771
+ $input['prettyphoto'] = $this->defaults['configuration']['prettyphoto'];
772
+
773
+ add_settings_error('reset_prettyphoto_settings', 'prettyphoto_reset', __('Settings of prettyPhoto script were restored to defaults.', 'responsive-lightbox'), 'updated');
774
+ }
775
+ else
776
+ {
777
+ add_settings_error('reset_script_settings', 'reset_invalid_script_page', __('Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox'), 'error');
778
+ }
779
+
780
+ //we have to merge rest of the scripts settings
781
+ $input = array_merge($this->options['configuration'], $input);
782
+ }
783
+
784
+ return $input;
785
+ }
786
+
787
+
788
+ public function admin_menu_options()
789
+ {
790
+ $watermark_settings_page = add_options_page(
791
+ __('Responsive Lightbox', 'responsive-lightbox'),
792
+ __('Responsive Lightbox', 'responsive-lightbox'),
793
+ 'manage_options',
794
+ 'responsive-lightbox',
795
+ array(&$this, 'options_page')
796
+ );
797
+ }
798
+
799
+
800
+ public function options_page()
801
+ {
802
+ $tab_key = (isset($_GET['tab']) ? $_GET['tab'] : 'general-settings');
803
+
804
+ echo '
805
+ <div class="wrap">'.screen_icon().'
806
+ <h2>'.__('Responsive Lightbox', 'responsive-lightbox').'</h2>
807
+ <h2 class="nav-tab-wrapper">';
808
+
809
+ foreach($this->tabs as $key => $name)
810
+ {
811
+ echo '
812
+ <a class="nav-tab '.($tab_key == $key ? 'nav-tab-active' : '').'" href="'.esc_url(admin_url('options-general.php?page=responsive-lightbox&tab='.$key)).'">'.$name['name'].'</a>';
813
+ }
814
+
815
+ echo '
816
+ </h2>
817
+ <div class="metabox-holder postbox-container responsive-lightbox-settings">
818
+ <form action="options.php" method="post">
819
+ <input type="hidden" name="script_r" value="'.$this->options['settings']['script'].'" />';
820
+
821
+ wp_nonce_field('update-options');
822
+ settings_fields($this->tabs[$tab_key]['key']);
823
+ do_settings_sections($this->tabs[$tab_key]['key']);
824
+
825
+ echo '
826
+ <p class="submit">';
827
+
828
+ submit_button('', 'primary', $this->tabs[$tab_key]['submit'], FALSE);
829
+
830
+ echo ' ';
831
+ echo ($tab_key === 'configuration' ? submit_button(__('Reset to defaults', 'responsive-lightbox'), 'secondary', $this->tabs[$tab_key]['reset'], FALSE) : '');
832
+
833
+ echo '
834
+ </p>
835
+ </form>
836
+ </div>
837
+ <div class="df-credits postbox-container">
838
+ <h3 class="metabox-title">'.__('Responsive Lightbox', 'responsive-lightbox').'</h3>
839
+ <div class="inner">
840
+ <h3>'.__('Need support?', 'responsive-lightbox').'</h3>
841
+ <p>'.__('If you are having problems with this plugin, please talk about them in the', 'responsive-lightbox').' <a href="http://dfactory.eu/support/" target="_blank" title="'.__('Support forum', 'responsive-lightbox').'">'.__('Support forum', 'responsive-lightbox').'</a></p>
842
+ <hr />
843
+ <h3>'.__('Do you like this plugin?', 'responsive-lightbox').'</h3>
844
+ <p><a href="http://wordpress.org/support/view/plugin-reviews/responsive-lightbox" target="_blank" title="'.__('Rate it 5', 'responsive-lightbox').'">'.__('Rate it 5', 'responsive-lightbox').'</a> '.__('on WordPress.org', 'responsive-lightbox').'<br />'.
845
+ __('Blog about it & link to the', 'responsive-lightbox').' <a href="http://dfactory.eu/plugins/responsive-lightbox/" target="_blank" title="'.__('plugin page', 'responsive-lightbox').'">'.__('plugin page', 'responsive-lightbox').'</a><br />'.
846
+ __('Check out our other', 'responsive-lightbox').' <a href="http://dfactory.eu/plugins/" target="_blank" title="'.__('WordPress plugins', 'responsive-lightbox').'">'.__('WordPress plugins', 'responsive-lightbox').'</a>
847
+ </p>
848
+ <hr />
849
+ <p class="df-link">Created by <a href="http://www.dfactory.eu" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="'.plugins_url('/images/logo-dfactory.png' , __FILE__ ).'" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
850
+ </div>
851
+ </div>
852
+ <div class="clear"></div>
853
+ </div>';
854
+ }
855
+
856
+
857
+ public function admin_comments_scripts_styles($page)
858
+ {
859
+ if(is_admin() && $page === 'settings_page_responsive-lightbox')
860
+ {
861
+ wp_enqueue_script(
862
+ 'responsive-lightbox-admin',
863
+ plugins_url('js/responsive-lightbox-admin.js', __FILE__),
864
+ array('jquery', 'jquery-ui-core', 'jquery-ui-button')
865
+ );
866
+
867
+ wp_localize_script(
868
+ 'responsive-lightbox-admin',
869
+ 'rlArgs',
870
+ array(
871
+ 'resetScriptToDefaults' => __('Are you sure you want to reset scripts settings to defaults?', 'responsive-lightbox')
872
+ )
873
+ );
874
+
875
+ wp_enqueue_style(
876
+ 'responsive-lightbox-admin',
877
+ plugins_url('css/responsive-lightbox-admin.css', __FILE__)
878
+ );
879
+
880
+ wp_enqueue_style(
881
+ 'responsive-lightbox-wplike',
882
+ plugins_url('css/wp-like-ui-theme.css', __FILE__)
883
+ );
884
+ }
885
+ }
886
+
887
+
888
+ public function front_comments_scripts_styles()
889
+ {
890
+ $args = array(
891
+ 'script' => $this->options['settings']['script'],
892
+ 'selector' => $this->options['settings']['selector'],
893
+ 'activeGalleries' => $this->getBooleanValue($this->options['settings']['galleries'])
894
+ );
895
+
896
+ if($this->options['settings']['script'] === 'prettyphoto')
897
+ {
898
+ wp_enqueue_script(
899
+ 'responsive-lightbox-prettyphoto',
900
+ plugins_url('assets/prettyphoto/js/jquery.prettyPhoto.js', __FILE__),
901
+ array('jquery')
902
+ );
903
+
904
+ wp_enqueue_style(
905
+ 'responsive-lightbox-front',
906
+ plugins_url('assets/prettyphoto/css/prettyPhoto.css', __FILE__)
907
+ );
908
+
909
+ $args = array_merge(
910
+ $args,
911
+ array(
912
+ 'animationSpeed' => $this->options['configuration']['prettyphoto']['animation_speed'],
913
+ 'slideshow' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['slideshow']),
914
+ 'slideshowDelay' => $this->options['configuration']['prettyphoto']['slideshow_delay'],
915
+ 'slideshowAutoplay' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['slideshow_autoplay']),
916
+ 'opacity' => sprintf('%.2f', ($this->options['configuration']['prettyphoto']['opacity'] / 100)),
917
+ 'showTitle' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['show_title']),
918
+ 'allowResize' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['allow_resize']),
919
+ 'width' => $this->options['configuration']['prettyphoto']['width'],
920
+ 'height' => $this->options['configuration']['prettyphoto']['height'],
921
+ 'separator' => $this->options['configuration']['prettyphoto']['separator'],
922
+ 'theme' => $this->options['configuration']['prettyphoto']['theme'],
923
+ 'horizontalPadding' => $this->options['configuration']['prettyphoto']['horizontal_padding'],
924
+ 'hideFlash' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['hide_flash']),
925
+ 'wmode' => $this->options['configuration']['prettyphoto']['wmode'],
926
+ 'videoAutoplay' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['video_autoplay']),
927
+ 'modal' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['modal']),
928
+ 'deeplinking' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['deeplinking']),
929
+ 'overlayGallery' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['overlay_gallery']),
930
+ 'keyboardShortcuts' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['keyboard_shortcuts']),
931
+ 'social' => $this->getBooleanValue($this->options['configuration']['prettyphoto']['social'])
932
+ )
933
+ );
934
+ }
935
+ elseif($this->options['settings']['script'] === 'swipebox')
936
+ {
937
+ wp_enqueue_script(
938
+ 'responsive-lightbox-swipebox',
939
+ plugins_url('assets/swipebox/source/jquery.swipebox.min.js', __FILE__),
940
+ array('jquery')
941
+ );
942
+
943
+ wp_enqueue_style(
944
+ 'responsive-lightbox-front',
945
+ plugins_url('assets/swipebox/source/swipebox.css', __FILE__)
946
+ );
947
+
948
+ $args = array_merge(
949
+ $args,
950
+ array(
951
+ 'animation' => ($this->options['configuration']['swipebox']['animation'] === 'css' ? TRUE : FALSE),
952
+ 'hideBars' => $this->getBooleanValue($this->options['configuration']['swipebox']['hide_bars']),
953
+ 'hideBarsDelay' => $this->options['configuration']['swipebox']['hide_bars_delay']
954
+ )
955
+ );
956
+ }
957
+
958
+ wp_enqueue_script(
959
+ 'responsive-lightbox-front',
960
+ plugins_url('js/responsive-lightbox-front.js', __FILE__),
961
+ array('jquery')
962
+ );
963
+
964
+ wp_localize_script('responsive-lightbox-front', 'rlArgs', $args);
965
+ }
966
+
967
+
968
+ private function getBooleanValue($option)
969
+ {
970
+ return ($option === TRUE ? 1 : 0);
971
+ }
972
+
973
+
974
+ /**
975
+ * Loads textdomain
976
+ */
977
+ public function load_textdomain()
978
+ {
979
+ load_plugin_textdomain('responsive-lightbox', FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
980
+ }
981
+
982
+
983
+ /**
984
+ * Add links to Support Forum
985
+ */
986
+ public function plugin_extend_links($links, $file)
987
+ {
988
+ if (!current_user_can('install_plugins'))
989
+ return $links;
990
+
991
+ $plugin = plugin_basename(__FILE__);
992
+
993
+ if ($file == $plugin)
994
+ {
995
+ return array_merge(
996
+ $links,
997
+ array(sprintf('<a href="http://www.dfactory.eu/support/forum/responsive-lightbox/" target="_blank">%s</a>', __('Support', 'responsive-lightbox')))
998
+ );
999
+ }
1000
+
1001
+ return $links;
1002
+ }
1003
+
1004
+
1005
+ /**
1006
+ * Add links to Settings page
1007
+ */
1008
+ function plugin_settings_link($links, $file)
1009
+ {
1010
+ if(!is_admin() || !current_user_can('manage_options'))
1011
+ return $links;
1012
+
1013
+ static $plugin;
1014
+
1015
+ $plugin = plugin_basename(__FILE__);
1016
+
1017
+ if($file == $plugin)
1018
+ {
1019
+ $settings_link = sprintf('<a href="%s">%s</a>', admin_url('options-general.php').'?page=responsive-lightbox', __('Settings', 'responsive-lightbox'));
1020
+ array_unshift($links, $settings_link);
1021
+ }
1022
+
1023
+ return $links;
1024
+ }
1025
+ }
1026
+
1027
+ $responsive_lightbox = new Responsive_Lightbox();
1028
+ ?>