Contact Bank: WordPress Form Builder for Contact Forms - Version 2.0.1

Version Description

  • Few Bugs Fixed
  • Add how to add Shortcode to your Page/Post.
  • Updated Languages
Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 Contact Bank: WordPress Form Builder for Contact Forms
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

Files changed (53) hide show
  1. assets/css/prettyPhoto.css +939 -0
  2. assets/css/stylesheet.css +1 -0
  3. assets/css/system-message.css +1 -1
  4. assets/images/how-to-setup-short-code-cb.png +0 -0
  5. assets/images/prettyPhoto/dark_rounded/btnNext.png +0 -0
  6. assets/images/prettyPhoto/dark_rounded/btnPrevious.png +0 -0
  7. assets/images/prettyPhoto/dark_rounded/contentPattern.png +0 -0
  8. assets/images/prettyPhoto/dark_rounded/default_thumbnail.gif +0 -0
  9. assets/images/prettyPhoto/dark_rounded/loader.gif +0 -0
  10. assets/images/prettyPhoto/dark_rounded/sprite.png +0 -0
  11. assets/images/prettyPhoto/dark_square/btnNext.png +0 -0
  12. assets/images/prettyPhoto/dark_square/btnPrevious.png +0 -0
  13. assets/images/prettyPhoto/dark_square/contentPattern.png +0 -0
  14. assets/images/prettyPhoto/dark_square/default_thumbnail.gif +0 -0
  15. assets/images/prettyPhoto/dark_square/loader.gif +0 -0
  16. assets/images/prettyPhoto/dark_square/sprite.png +0 -0
  17. assets/images/prettyPhoto/default/default_thumb.png +0 -0
  18. assets/images/prettyPhoto/default/loader.gif +0 -0
  19. assets/images/prettyPhoto/default/sprite.png +0 -0
  20. assets/images/prettyPhoto/default/sprite_next.png +0 -0
  21. assets/images/prettyPhoto/default/sprite_prev.png +0 -0
  22. assets/images/prettyPhoto/default/sprite_x.png +0 -0
  23. assets/images/prettyPhoto/default/sprite_y.png +0 -0
  24. assets/images/prettyPhoto/facebook/btnNext.png +0 -0
  25. assets/images/prettyPhoto/facebook/btnPrevious.png +0 -0
  26. assets/images/prettyPhoto/facebook/contentPatternBottom.png +0 -0
  27. assets/images/prettyPhoto/facebook/contentPatternLeft.png +0 -0
  28. assets/images/prettyPhoto/facebook/contentPatternRight.png +0 -0
  29. assets/images/prettyPhoto/facebook/contentPatternTop.png +0 -0
  30. assets/images/prettyPhoto/facebook/default_thumbnail.gif +0 -0
  31. assets/images/prettyPhoto/facebook/loader.gif +0 -0
  32. assets/images/prettyPhoto/facebook/sprite.png +0 -0
  33. assets/images/prettyPhoto/light_rounded/btnNext.png +0 -0
  34. assets/images/prettyPhoto/light_rounded/btnPrevious.png +0 -0
  35. assets/images/prettyPhoto/light_rounded/default_thumbnail.gif +0 -0
  36. assets/images/prettyPhoto/light_rounded/loader.gif +0 -0
  37. assets/images/prettyPhoto/light_rounded/sprite.png +0 -0
  38. assets/images/prettyPhoto/light_square/btnNext.png +0 -0
  39. assets/images/prettyPhoto/light_square/btnPrevious.png +0 -0
  40. assets/images/prettyPhoto/light_square/default_thumbnail.gif +0 -0
  41. assets/images/prettyPhoto/light_square/loader.gif +0 -0
  42. assets/images/prettyPhoto/light_square/sprite.png +0 -0
  43. assets/js/jquery.prettyPhoto.js +670 -0
  44. contact-bank.php +17 -7
  45. includes/cb_text.php +1 -1
  46. includes/cb_textarea.php +1 -1
  47. lib/cb-class-tracking.php +86 -0
  48. lib/install-script.php +3 -1
  49. readme.txt +10 -3
  50. views/contact_bank_layout_settings.php +6 -6
  51. views/contact_view.php +14 -1
  52. views/dashboard.php +14 -1
  53. views/shortcode.php +27 -0
assets/css/prettyPhoto.css ADDED
@@ -0,0 +1,939 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*div.pp_default .pp_content .ppt
2
+ {
3
+ position:absolute;
4
+ top:auto;
5
+ right:auto;
6
+ bottom:0;
7
+ left:0;
8
+ z-index:9999;
9
+ overflow:hidden;
10
+ width:100%;
11
+ text-align:center;
12
+ font-size:14px;
13
+ padding:15px 0px 15px 0px;
14
+ text-align: left;
15
+ display:none;
16
+ }
17
+ /*div.ppt{color:#fff;display:none;font-size:17px;z-index:9999;margin:0 0 5px 15px}*/
18
+ /*div.pp_default .pp_content .ppt{background-color:#000;background-color:rgba(0,0,0,.7)}
19
+ div.pp_default .pp_content .ppt h5
20
+ {
21
+ margin:0px;
22
+ padding:5px;
23
+ }
24
+ div.pp_default .pp_content .ppt p
25
+ {
26
+ padding:5px;
27
+ margin-bottom 0px;
28
+ }*/
29
+ /*.fbx-caption
30
+ {
31
+ position:fixed;z-index:100007;
32
+ }*/
33
+ div.pp_default .pp_content .pp_description {
34
+ position: absolute;
35
+ top: auto;
36
+ right: auto;
37
+ bottom: 0;
38
+ left: 0;
39
+ z-index: 9999;
40
+ overflow: hidden;
41
+ width: 100%;
42
+ font-size: 14px;
43
+ padding: 0px;
44
+ text-align: left;
45
+ display: none;
46
+ color: #ffffff;
47
+ clear: both;
48
+ background-color: rgba(0, 0, 0, .7);
49
+ }
50
+
51
+ div.pp_default .pp_content .pp_description h5 {
52
+ margin: 0px !important;
53
+ padding: 10px !important;
54
+ line-height: 1.5em !important;
55
+ }
56
+
57
+ div.pp_default .pp_content .pp_description p {
58
+ padding: 10px !important;
59
+ margin-bottom: 0px !important;
60
+ line-height: 1.5em !important;
61
+ }
62
+
63
+ /*.pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0}
64
+ div.pp_default .pp_content .pp_description{position:absolute;margin-right:85px;color:#fff}
65
+ div.pp_default .pp_content .pp_description{position:absolute;color:#fff;margin:0 85px 0 0}
66
+ div.pp_default .pp_content .pp_description{margin:0 37px 0 0}
67
+ div.pp_default .pp_content .pp_description{display:none;margin:0;clear:both;}*/
68
+ div.pp_default .pp_content .ppt {
69
+ border-radius: 0 0 3px 3px
70
+ }
71
+
72
+ div.pp_default .pp_content .ppt {
73
+ border-radius: 0
74
+ }
75
+
76
+
77
+
78
+
79
+ div.pp_default .pp_content .ppt {
80
+ color: #f8f8f8
81
+ }
82
+
83
+ /*div.pp_default .pp_content_container .pp_left{background:url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y;padding-left:13px}*//*div.pp_default .pp_content_container .pp_right{background:url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y;padding-right:13px}*/
84
+ div.pp_default .pp_next:hover {
85
+ background: url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat;
86
+ cursor: pointer
87
+ }
88
+
89
+ div.pp_default .pp_previous:hover {
90
+ background: url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat;
91
+ cursor: pointer
92
+ }
93
+
94
+ div.pp_default .pp_expand {
95
+ background: url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat;
96
+ cursor: pointer;
97
+ width: 28px;
98
+ height: 28px
99
+ }
100
+
101
+ div.pp_default .pp_expand:hover {
102
+ background: url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat;
103
+ cursor: pointer
104
+ }
105
+
106
+ div.pp_default .pp_contract {
107
+ background: url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat;
108
+ cursor: pointer;
109
+ width: 28px;
110
+ height: 28px
111
+ }
112
+
113
+ div.pp_default .pp_contract:hover {
114
+ background: url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat;
115
+ cursor: pointer
116
+ }
117
+
118
+ div.pp_default .pp_close {
119
+ width: 30px;
120
+ height: 30px;
121
+ background: url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat;
122
+ cursor: pointer
123
+ }
124
+
125
+ div.pp_default .pp_gallery ul li a {
126
+ background: url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8;
127
+ border: 1px solid #aaa
128
+ }
129
+
130
+ div.pp_default .pp_social {
131
+ margin-top: 7px
132
+ }
133
+
134
+ div.pp_default .pp_gallery a.pp_arrow_previous, div.pp_default .pp_gallery a.pp_arrow_next {
135
+ position: static;
136
+ left: auto
137
+ }
138
+
139
+ div.pp_default .pp_nav .pp_play, div.pp_default .pp_nav .pp_pause {
140
+ background: url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat;
141
+ height: 30px;
142
+ width: 30px
143
+ }
144
+
145
+ div.pp_default .pp_nav .pp_pause {
146
+ background-position: -51px -29px
147
+ }
148
+
149
+ div.pp_default a.pp_arrow_previous, div.pp_default a.pp_arrow_next {
150
+ background: url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat;
151
+ height: 20px;
152
+ width: 20px;
153
+ margin: 4px 0 0
154
+ }
155
+
156
+ div.pp_default a.pp_arrow_next {
157
+ left: 52px;
158
+ background-position: -82px -3px
159
+ }
160
+
161
+ div.pp_default .pp_content_container .pp_details {
162
+ margin-top: 5px
163
+ }
164
+
165
+ div.pp_default .pp_nav {
166
+ clear: none;
167
+ height: 30px;
168
+ width: 110px;
169
+ position: relative
170
+ }
171
+
172
+ div.pp_default .pp_nav .currentTextHolder {
173
+ font-family: Georgia;
174
+ font-style: italic;
175
+ color: #999;
176
+ font-size: 11px;
177
+ left: 75px;
178
+ line-height: 25px;
179
+ position: absolute;
180
+ top: 2px;
181
+ margin: 0;
182
+ padding: 0 0 0 10px
183
+ }
184
+
185
+ 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 {
186
+ opacity: 0.7
187
+ }
188
+
189
+ /*div.pp_default .pp_description{font-size:11px;font-weight:700;line-height:14px;margin:5px 50px 5px 0}*/
190
+ /*div.pp_default .pp_bottom .pp_left{background:url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat}
191
+ div.pp_default .pp_bottom .pp_middle{background:url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x}
192
+ div.pp_default .pp_bottom .pp_right{background:url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat}*/
193
+ div.pp_default .pp_loaderIcon {
194
+ background: url(../images/prettyPhoto/default/loader.gif) center center no-repeat
195
+ }
196
+
197
+ div.light_rounded .pp_top .pp_left {
198
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat
199
+ }
200
+
201
+ div.light_rounded .pp_top .pp_right {
202
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat
203
+ }
204
+
205
+ div.light_rounded .pp_next:hover {
206
+ background: url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat;
207
+ cursor: pointer
208
+ }
209
+
210
+ div.light_rounded .pp_previous:hover {
211
+ background: url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat;
212
+ cursor: pointer
213
+ }
214
+
215
+ div.light_rounded .pp_expand {
216
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat;
217
+ cursor: pointer
218
+ }
219
+
220
+ div.light_rounded .pp_expand:hover {
221
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat;
222
+ cursor: pointer
223
+ }
224
+
225
+ div.light_rounded .pp_contract {
226
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat;
227
+ cursor: pointer
228
+ }
229
+
230
+ div.light_rounded .pp_contract:hover {
231
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat;
232
+ cursor: pointer
233
+ }
234
+
235
+ div.light_rounded .pp_close {
236
+ width: 75px;
237
+ height: 22px;
238
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat;
239
+ cursor: pointer
240
+ }
241
+
242
+ div.light_rounded .pp_nav .pp_play {
243
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat;
244
+ height: 15px;
245
+ width: 14px
246
+ }
247
+
248
+ div.light_rounded .pp_nav .pp_pause {
249
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat;
250
+ height: 15px;
251
+ width: 14px
252
+ }
253
+
254
+ div.light_rounded .pp_arrow_previous {
255
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat
256
+ }
257
+
258
+ div.light_rounded .pp_arrow_next {
259
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat
260
+ }
261
+
262
+ div.light_rounded .pp_bottom .pp_left {
263
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat
264
+ }
265
+
266
+ div.light_rounded .pp_bottom .pp_right {
267
+ background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat
268
+ }
269
+
270
+ div.dark_rounded .pp_top .pp_left {
271
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat
272
+ }
273
+
274
+ div.dark_rounded .pp_top .pp_right {
275
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat
276
+ }
277
+
278
+ div.dark_rounded .pp_content_container .pp_left {
279
+ background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y
280
+ }
281
+
282
+ div.dark_rounded .pp_content_container .pp_right {
283
+ background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y
284
+ }
285
+
286
+ div.dark_rounded .pp_next:hover {
287
+ background: url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat;
288
+ cursor: pointer
289
+ }
290
+
291
+ div.dark_rounded .pp_previous:hover {
292
+ background: url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat;
293
+ cursor: pointer
294
+ }
295
+
296
+ div.dark_rounded .pp_expand {
297
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat;
298
+ cursor: pointer
299
+ }
300
+
301
+ div.dark_rounded .pp_expand:hover {
302
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat;
303
+ cursor: pointer
304
+ }
305
+
306
+ div.dark_rounded .pp_contract {
307
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat;
308
+ cursor: pointer
309
+ }
310
+
311
+ div.dark_rounded .pp_contract:hover {
312
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat;
313
+ cursor: pointer
314
+ }
315
+
316
+ div.dark_rounded .pp_close {
317
+ width: 75px;
318
+ height: 22px;
319
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat;
320
+ cursor: pointer
321
+ }
322
+
323
+ /*div.dark_rounded .pp_description{margin-right:85px;color:#fff}*/
324
+ div.dark_rounded .pp_nav .pp_play {
325
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat;
326
+ height: 15px;
327
+ width: 14px
328
+ }
329
+
330
+ div.dark_rounded .pp_nav .pp_pause {
331
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat;
332
+ height: 15px;
333
+ width: 14px
334
+ }
335
+
336
+ div.dark_rounded .pp_arrow_previous {
337
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat
338
+ }
339
+
340
+ div.dark_rounded .pp_arrow_next {
341
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat
342
+ }
343
+
344
+ div.dark_rounded .pp_bottom .pp_left {
345
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat
346
+ }
347
+
348
+ div.dark_rounded .pp_bottom .pp_right {
349
+ background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat
350
+ }
351
+
352
+ div.dark_rounded .pp_loaderIcon {
353
+ background: url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat
354
+ }
355
+
356
+ div.dark_square .pp_left, div.dark_square .pp_middle, div.dark_square .pp_right, div.dark_square .pp_content {
357
+ background: #000
358
+ }
359
+
360
+ /*div.dark_square .pp_description{color:#fff;margin:0 85px 0 0}*/
361
+ div.dark_square .pp_loaderIcon {
362
+ background: url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat
363
+ }
364
+
365
+ div.dark_square .pp_expand {
366
+ background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat;
367
+ cursor: pointer
368
+ }
369
+
370
+ div.dark_square .pp_expand:hover {
371
+ background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat;
372
+ cursor: pointer
373
+ }
374
+
375
+ div.dark_square .pp_contract {
376
+ background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat;
377
+ cursor: pointer
378
+ }
379
+
380
+ div.dark_square .pp_contract:hover {
381
+ background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat;
382
+ cursor: pointer
383
+ }
384
+
385
+ div.dark_square .pp_close {
386
+ width: 75px;
387
+ height: 22px;
388
+ background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat;
389
+ cursor: pointer
390
+ }
391
+
392
+ div.dark_square .pp_nav {
393
+ clear: none;
394
+ }
395
+
396
+ div.dark_square .pp_nav .pp_play {
397
+ background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat;
398
+ height: 15px;
399
+ width: 14px
400
+ }
401
+
402
+ div.dark_square .pp_nav .pp_pause {
403
+ background: url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat;
404
+ height: 15px;
405
+ width: 14px
406
+ }
407
+
408
+ div.dark_square .pp_arrow_previous {
409
+ background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat
410
+ }
411
+
412
+ div.dark_square .pp_arrow_next {
413
+ background: url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat
414
+ }
415
+
416
+ div.dark_square .pp_next:hover {
417
+ background: url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat;
418
+ cursor: pointer
419
+ }
420
+
421
+ div.dark_square .pp_previous:hover {
422
+ background: url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat;
423
+ cursor: pointer
424
+ }
425
+
426
+ div.light_square .pp_expand {
427
+ background: url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat;
428
+ cursor: pointer
429
+ }
430
+
431
+ div.light_square .pp_expand:hover {
432
+ background: url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat;
433
+ cursor: pointer
434
+ }
435
+
436
+ div.light_square .pp_contract {
437
+ background: url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat;
438
+ cursor: pointer
439
+ }
440
+
441
+ div.light_square .pp_contract:hover {
442
+ background: url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat;
443
+ cursor: pointer
444
+ }
445
+
446
+ div.light_square .pp_close {
447
+ width: 75px;
448
+ height: 22px;
449
+ background: url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat;
450
+ cursor: pointer
451
+ }
452
+
453
+ div.light_square .pp_nav .pp_play {
454
+ background: url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat;
455
+ height: 15px;
456
+ width: 14px
457
+ }
458
+
459
+ div.light_square .pp_nav .pp_pause {
460
+ background: url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat;
461
+ height: 15px;
462
+ width: 14px
463
+ }
464
+
465
+ div.light_square .pp_arrow_previous {
466
+ background: url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat
467
+ }
468
+
469
+ div.light_square .pp_arrow_next {
470
+ background: url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat
471
+ }
472
+
473
+ div.light_square .pp_next:hover {
474
+ background: url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat;
475
+ cursor: pointer
476
+ }
477
+
478
+ div.light_square .pp_previous:hover {
479
+ background: url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat;
480
+ cursor: pointer
481
+ }
482
+
483
+ div.facebook .pp_top .pp_left {
484
+ background: url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat
485
+ }
486
+
487
+ div.facebook .pp_top .pp_middle {
488
+ background: url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x
489
+ }
490
+
491
+ div.facebook .pp_top .pp_right {
492
+ background: url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat
493
+ }
494
+
495
+ div.facebook .pp_content_container .pp_left {
496
+ background: url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y
497
+ }
498
+
499
+ div.facebook .pp_content_container .pp_right {
500
+ background: url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y
501
+ }
502
+
503
+ div.facebook .pp_expand {
504
+ background: url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat;
505
+ cursor: pointer
506
+ }
507
+
508
+ div.facebook .pp_expand:hover {
509
+ background: url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat;
510
+ cursor: pointer
511
+ }
512
+
513
+ div.facebook .pp_contract {
514
+ background: url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat;
515
+ cursor: pointer
516
+ }
517
+
518
+ div.facebook .pp_contract:hover {
519
+ background: url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat;
520
+ cursor: pointer
521
+ }
522
+
523
+ div.facebook .pp_close {
524
+ width: 22px;
525
+ height: 22px;
526
+ background: url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat;
527
+ cursor: pointer
528
+ }
529
+
530
+ /*div.facebook .pp_description{margin:0 37px 0 0}*/
531
+ div.facebook .pp_loaderIcon {
532
+ background: url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat
533
+ }
534
+
535
+ div.facebook .pp_arrow_previous {
536
+ background: url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat;
537
+ height: 22px;
538
+ margin-top: 0;
539
+ width: 22px
540
+ }
541
+
542
+ div.facebook .pp_arrow_previous.disabled {
543
+ background-position: 0 -96px;
544
+ cursor: default
545
+ }
546
+
547
+ div.facebook .pp_arrow_next {
548
+ background: url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat;
549
+ height: 22px;
550
+ margin-top: 0;
551
+ width: 22px
552
+ }
553
+
554
+ div.facebook .pp_arrow_next.disabled {
555
+ background-position: -32px -96px;
556
+ cursor: default
557
+ }
558
+
559
+ div.facebook .pp_nav {
560
+ margin-top: 0
561
+ }
562
+
563
+ div.facebook .pp_nav p {
564
+ font-size: 15px;
565
+ padding: 0 3px 0 4px
566
+ }
567
+
568
+ div.facebook .pp_nav .pp_play {
569
+ background: url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat;
570
+ height: 22px;
571
+ width: 22px
572
+ }
573
+
574
+ div.facebook .pp_nav .pp_pause {
575
+ background: url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat;
576
+ height: 22px;
577
+ width: 22px
578
+ }
579
+
580
+ div.facebook .pp_next:hover {
581
+ background: url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat;
582
+ cursor: pointer
583
+ }
584
+
585
+ div.facebook .pp_previous:hover {
586
+ background: url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat;
587
+ cursor: pointer
588
+ }
589
+
590
+ div.facebook .pp_bottom .pp_left {
591
+ background: url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat
592
+ }
593
+
594
+ div.facebook .pp_bottom .pp_middle {
595
+ background: url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x
596
+ }
597
+
598
+ div.facebook .pp_bottom .pp_right {
599
+ background: url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat
600
+ }
601
+
602
+ div.pp_pic_holder a:focus {
603
+ outline: none
604
+ }
605
+
606
+ div.pp_overlay {
607
+ background: #000;
608
+ display: none;
609
+ left: 0;
610
+ position: absolute;
611
+ top: 0;
612
+ width: 100%;
613
+ z-index: 9500
614
+ }
615
+
616
+ div.pp_pic_holder {
617
+ display: none;
618
+ position: absolute;
619
+ width: 100px;
620
+ z-index: 10000;
621
+ box-sizing:content-box !important;
622
+ }
623
+
624
+ .pp_content {
625
+ height: 40px;
626
+ min-width: 40px
627
+ }
628
+
629
+ * html .pp_content {
630
+ width: 40px
631
+ }
632
+
633
+ .pp_content_container {
634
+ position: relative;
635
+ text-align: left;
636
+ width: 100%
637
+ }
638
+
639
+ .pp_content_container .pp_left {
640
+ padding-left: 15px;
641
+ }
642
+
643
+ .pp_content_container .pp_right {
644
+
645
+ }
646
+
647
+ .pp_content_container .pp_details {
648
+ float: left;
649
+ margin: 10px 0 2px
650
+ }
651
+
652
+ /*.pp_description{display:none;margin:0;clear:both;}*/
653
+ .pp_social {
654
+ float: left;
655
+ margin: 0
656
+ }
657
+
658
+ .pp_social .facebook {
659
+ float: left;
660
+ margin-left: 5px;
661
+ width: 55px;
662
+ overflow: hidden
663
+ }
664
+
665
+ .pp_social .twitter {
666
+ float: left
667
+ }
668
+
669
+ .pp_nav {
670
+ clear: right;
671
+ float: left;
672
+ margin: 3px 10px 0 0
673
+ }
674
+
675
+ .pp_nav p {
676
+ float: left;
677
+ white-space: nowrap;
678
+ margin: 2px 4px
679
+ }
680
+
681
+ .pp_nav .pp_play, .pp_nav .pp_pause {
682
+ float: left;
683
+ margin-right: 4px;
684
+ text-indent: -10000px
685
+ }
686
+
687
+ a.pp_arrow_previous, a.pp_arrow_next {
688
+ display: block;
689
+ float: left;
690
+ height: 15px;
691
+ margin-top: 3px;
692
+ overflow: hidden;
693
+ text-indent: -10000px;
694
+ width: 14px
695
+ }
696
+
697
+ .pp_hoverContainer {
698
+ position: absolute;
699
+ top: 0;
700
+ width: 100%;
701
+ z-index: 2000;
702
+ }
703
+
704
+ .pp_gallery {
705
+ display: none;
706
+ left: 50%;
707
+ margin-top: -50px;
708
+ position: absolute;
709
+ z-index: 10000
710
+ }
711
+
712
+ .pp_gallery div {
713
+ float: left;
714
+ overflow: hidden;
715
+ position: relative
716
+ }
717
+
718
+ .pp_gallery ul {
719
+ float: left;
720
+ height: 35px;
721
+ position: relative;
722
+ white-space: nowrap;
723
+ margin: 0 0 0 5px;
724
+ padding: 0
725
+ }
726
+
727
+ .pp_gallery ul a {
728
+ border: 1px rgba(0, 0, 0, 0.5) solid;
729
+ display: block;
730
+ float: left;
731
+ height: 33px;
732
+ overflow: hidden
733
+ }
734
+
735
+ .pp_gallery ul a img {
736
+ border: 0
737
+ }
738
+
739
+ .pp_gallery li {
740
+ display: block;
741
+ float: left;
742
+ margin: 0 5px 0 0;
743
+ padding: 0
744
+ }
745
+
746
+ .pp_gallery li.default a {
747
+ background: url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;
748
+ display: block;
749
+ height: 33px;
750
+ width: 50px
751
+ }
752
+
753
+ .pp_gallery .pp_arrow_previous, .pp_gallery .pp_arrow_next {
754
+ margin-top: 7px !important
755
+ }
756
+
757
+ a.pp_next {
758
+ background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
759
+ display: block;
760
+ float: right;
761
+ height: 100%;
762
+ text-indent: -10000px;
763
+ width: 49%
764
+ }
765
+
766
+ a.pp_previous {
767
+ background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
768
+ display: block;
769
+ float: left;
770
+ height: 100%;
771
+ text-indent: -10000px;
772
+ width: 49%
773
+ }
774
+
775
+ a.pp_expand, a.pp_contract {
776
+ cursor: pointer;
777
+ display: none;
778
+ height: 20px;
779
+ position: absolute;
780
+ right: 30px;
781
+ text-indent: -10000px;
782
+ top: 10px;
783
+ width: 20px;
784
+ z-index: 20000
785
+ }
786
+
787
+ a.pp_close {
788
+ position: absolute;
789
+ right: 0;
790
+ top: 0;
791
+ display: block;
792
+ line-height: 22px;
793
+ text-indent: -10000px
794
+ }
795
+
796
+ .pp_loaderIcon {
797
+ display: block;
798
+ height: 24px;
799
+ left: 50%;
800
+ position: absolute;
801
+ top: 50%;
802
+ width: 24px;
803
+ margin: -12px 0 0 -12px
804
+ }
805
+
806
+ #pp_full_res {
807
+ line-height: 1 !important
808
+ }
809
+
810
+ #pp_full_res .pp_inline {
811
+ text-align: left
812
+ }
813
+
814
+ #pp_full_res .pp_inline p {
815
+ margin: 0 0 15px
816
+ }
817
+
818
+ /*div.pp_default .pp_content,div.light_rounded .pp_content{background-color:#fff}*/
819
+ 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 {
820
+ color: #000
821
+ }
822
+
823
+ 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 {
824
+ border-color: #fff
825
+ }
826
+
827
+ 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 {
828
+ position: relative
829
+ }
830
+
831
+ 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 {
832
+ background: #fff
833
+ }
834
+
835
+ div.light_rounded .pp_description, div.light_square .pp_description {
836
+ margin-right: 85px
837
+ }
838
+
839
+ 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 {
840
+ margin-top: 12px !important
841
+ }
842
+
843
+ 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 {
844
+ background-position: 0 -87px;
845
+ cursor: default
846
+ }
847
+
848
+ 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 {
849
+ background-position: -22px -87px;
850
+ cursor: default
851
+ }
852
+
853
+ div.light_rounded .pp_loaderIcon, div.light_square .pp_loaderIcon {
854
+ background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat
855
+ }
856
+
857
+ div.dark_rounded .pp_top .pp_middle, div.dark_rounded .pp_content, div.dark_rounded .pp_bottom .pp_middle {
858
+ background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat
859
+ }
860
+
861
+ div.dark_rounded .currentTextHolder, div.dark_square .currentTextHolder {
862
+ color: #c4c4c4
863
+ }
864
+
865
+ div.dark_rounded #pp_full_res .pp_inline, div.dark_square #pp_full_res .pp_inline {
866
+ color: #fff
867
+ }
868
+
869
+ .pp_top, .pp_bottom {
870
+ height: 20px;
871
+ position: relative
872
+ }
873
+
874
+ * html .pp_top, * html .pp_bottom {
875
+ padding: 0 20px
876
+ }
877
+
878
+ .pp_top .pp_left, .pp_bottom .pp_left {
879
+ height: 20px;
880
+ left: 0;
881
+ position: absolute;
882
+ width: 20px
883
+ }
884
+
885
+ .pp_top .pp_middle, .pp_bottom .pp_middle {
886
+ height: 20px;
887
+ left: 20px;
888
+ position: absolute;
889
+ right: 20px
890
+ }
891
+
892
+ * html .pp_top .pp_middle, * html .pp_bottom .pp_middle {
893
+ left: 0;
894
+ position: static
895
+ }
896
+
897
+ .pp_top .pp_right, .pp_bottom .pp_right {
898
+ height: 20px;
899
+ left: auto;
900
+ position: absolute;
901
+ right: 0;
902
+ top: 0;
903
+ width: 20px
904
+ }
905
+
906
+ .pp_fade, .pp_gallery li.default a img {
907
+ display: none
908
+ }
909
+ div.pp_default .pp_top .pp_middle {
910
+ background-color: #ffffff;
911
+ }
912
+ .pp_pic_holder.pp_default {
913
+ background-color: #ffffff;
914
+ }
915
+ div.pp_default .pp_content_container .pp_left {
916
+ background-color: #ffffff;
917
+ padding-left: 16px;
918
+ }
919
+
920
+ div.pp_default .pp_content_container .pp_right {
921
+ background-color: #ffffff;
922
+ padding-right: 13px;
923
+ }
924
+
925
+ div.pp_default .pp_bottom .pp_middle {
926
+ background-color: #ffffff;
927
+ }
928
+
929
+ div.pp_default .pp_content, div.light_rounded .pp_content {
930
+ background-color: #ffffff;
931
+ }
932
+
933
+ .pp_details {
934
+ background-color: #ffffff;
935
+ }
936
+
937
+ .ppt {
938
+ display: none !important;
939
+ }
assets/css/stylesheet.css CHANGED
@@ -1,3 +1,4 @@
 
1
  .widget_premium_feature_contact
2
  {
3
  color: #FF0000;
1
+
2
  .widget_premium_feature_contact
3
  {
4
  color: #FF0000;
assets/css/system-message.css CHANGED
@@ -36,7 +36,7 @@ Version: 1.0
36
 
37
  .message.red {
38
  display: block;
39
- background : url(../images/icons/icon-error.png) no-repeat 10px 8px #F8E9E9;
40
  border: 1px solid #E4BBBC;
41
  color: #b80000;
42
  }
36
 
37
  .message.red {
38
  display: block;
39
+ background : 10px 8px #F8E9E9;
40
  border: 1px solid #E4BBBC;
41
  color: #b80000;
42
  }
assets/images/how-to-setup-short-code-cb.png ADDED
Binary file
assets/images/prettyPhoto/dark_rounded/btnNext.png ADDED
Binary file
assets/images/prettyPhoto/dark_rounded/btnPrevious.png ADDED
Binary file
assets/images/prettyPhoto/dark_rounded/contentPattern.png ADDED
Binary file
assets/images/prettyPhoto/dark_rounded/default_thumbnail.gif ADDED
Binary file
assets/images/prettyPhoto/dark_rounded/loader.gif ADDED
File without changes
assets/images/prettyPhoto/dark_rounded/sprite.png ADDED
File without changes
assets/images/prettyPhoto/dark_square/btnNext.png ADDED
File without changes
assets/images/prettyPhoto/dark_square/btnPrevious.png ADDED
Binary file
assets/images/prettyPhoto/dark_square/contentPattern.png ADDED
Binary file
assets/images/prettyPhoto/dark_square/default_thumbnail.gif ADDED
Binary file
assets/images/prettyPhoto/dark_square/loader.gif ADDED
Binary file
assets/images/prettyPhoto/dark_square/sprite.png ADDED
Binary file
assets/images/prettyPhoto/default/default_thumb.png ADDED
Binary file
assets/images/prettyPhoto/default/loader.gif ADDED
Binary file
assets/images/prettyPhoto/default/sprite.png ADDED
Binary file
assets/images/prettyPhoto/default/sprite_next.png ADDED
Binary file
assets/images/prettyPhoto/default/sprite_prev.png ADDED
Binary file
assets/images/prettyPhoto/default/sprite_x.png ADDED
Binary file
assets/images/prettyPhoto/default/sprite_y.png ADDED
Binary file
assets/images/prettyPhoto/facebook/btnNext.png ADDED
Binary file
assets/images/prettyPhoto/facebook/btnPrevious.png ADDED
Binary file
assets/images/prettyPhoto/facebook/contentPatternBottom.png ADDED
Binary file
assets/images/prettyPhoto/facebook/contentPatternLeft.png ADDED
Binary file
assets/images/prettyPhoto/facebook/contentPatternRight.png ADDED
Binary file
assets/images/prettyPhoto/facebook/contentPatternTop.png ADDED
Binary file
assets/images/prettyPhoto/facebook/default_thumbnail.gif ADDED
Binary file
assets/images/prettyPhoto/facebook/loader.gif ADDED
Binary file
assets/images/prettyPhoto/facebook/sprite.png ADDED
Binary file
assets/images/prettyPhoto/light_rounded/btnNext.png ADDED
Binary file
assets/images/prettyPhoto/light_rounded/btnPrevious.png ADDED
Binary file
assets/images/prettyPhoto/light_rounded/default_thumbnail.gif ADDED
Binary file
assets/images/prettyPhoto/light_rounded/loader.gif ADDED
Binary file
assets/images/prettyPhoto/light_rounded/sprite.png ADDED
Binary file
assets/images/prettyPhoto/light_square/btnNext.png ADDED
Binary file
assets/images/prettyPhoto/light_square/btnPrevious.png ADDED
Binary file
assets/images/prettyPhoto/light_square/default_thumbnail.gif ADDED
Binary file
assets/images/prettyPhoto/light_square/loader.gif ADDED
Binary file
assets/images/prettyPhoto/light_square/sprite.png ADDED
Binary file
assets/js/jquery.prettyPhoto.js ADDED
@@ -0,0 +1,670 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
8
+ (function (e) {
9
+ function t() {
10
+ var e = location.href;
11
+ hashtag = e.indexOf("#prettyPhoto") !== -1 ? decodeURI(e.substring(e.indexOf("#prettyPhoto") + 1, e.length)) : false;
12
+ return hashtag
13
+ }
14
+
15
+ function n() {
16
+ if (typeof theRel == "undefined")
17
+ return;
18
+ location.hash = theRel + "/" + rel_index + "/"
19
+ }
20
+
21
+ function r() {
22
+ if (location.href.indexOf("#prettyPhoto") !== -1)
23
+ location.hash = "prettyPhoto"
24
+ }
25
+
26
+ function i(e, t) {
27
+ e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
28
+ var n = "[\\?&]" + e + "=([^&#]*)";
29
+ var r = new RegExp(n);
30
+ var i = r.exec(t);
31
+ return i == null ? "" : i[1]
32
+ }
33
+
34
+ e.prettyPhoto = {
35
+ version: "3.1.5"
36
+ };
37
+ e.fn.prettyPhoto = function (s) {
38
+ function g() {
39
+ e(".pp_loaderIcon").hide();
40
+ projectedTop = scroll_pos["scrollTop"] + (d / 2 - a["containerHeight"] / 2);
41
+ if (projectedTop < 0)
42
+ projectedTop = 0;
43
+ $ppt.fadeTo(settings.animation_speed, 1);
44
+ $pp_pic_holder.find(".pp_content").animate({
45
+ height: a["contentHeight"],
46
+ width: a["contentWidth"]
47
+ }, settings.animation_speed);
48
+ $pp_pic_holder.animate({
49
+ top: projectedTop,
50
+ left: v / 2 - a["containerWidth"] / 2 < 0 ? 0 : v / 2 - a["containerWidth"] / 2,
51
+ width: a["containerWidth"]
52
+ }, settings.animation_speed, function () {
53
+ $pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a["height"]).width(a["width"]);
54
+ $pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);
55
+ if (isSet && S(pp_images[set_position]) == "image") {
56
+ $pp_pic_holder.find(".pp_hoverContainer").show()
57
+ } else {
58
+ $pp_pic_holder.find(".pp_hoverContainer").hide()
59
+ }
60
+ if (settings.allow_expand) {
61
+ if (a["resized"]) {
62
+ e("a.pp_expand,a.pp_contract").show()
63
+ } else {
64
+ e("a.pp_expand").hide()
65
+ }
66
+ }
67
+ if (settings.autoplay_slideshow && !m && !f)
68
+ e.prettyPhoto.startSlideshow();
69
+ settings.changepicturecallback();
70
+ f = true
71
+ });
72
+ C();
73
+ s.ajaxcallback()
74
+ }
75
+
76
+ function y(t) {
77
+ $pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility", "hidden");
78
+ $pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed, function () {
79
+ e(".pp_loaderIcon").show();
80
+ t()
81
+ })
82
+ }
83
+
84
+ function b(t) {
85
+ t > 1 ? e(".pp_nav").show() : e(".pp_nav").hide()
86
+ }
87
+
88
+ function w(e, t) {
89
+ resized = false;
90
+ E(e, t);
91
+ imageWidth = e, imageHeight = t;
92
+ if ((p > v || h > d) && doresize && settings.allow_resize && !u) {
93
+ resized = true, fitting = false;
94
+ while (!fitting) {
95
+ if (p > v) {
96
+ imageWidth = v - 200;
97
+ imageHeight = t / e * imageWidth
98
+ } else if (h > d) {
99
+ imageHeight = d - 200;
100
+ imageWidth = e / t * imageHeight
101
+ } else {
102
+ fitting = true
103
+ }
104
+ h = imageHeight, p = imageWidth
105
+ }
106
+ if (p > v || h > d) {
107
+ w(p, h)
108
+ }
109
+ E(imageWidth, imageHeight)
110
+ }
111
+ return {
112
+ width: Math.floor(imageWidth),
113
+ height: Math.floor(imageHeight),
114
+ containerHeight: Math.floor(h),
115
+ containerWidth: Math.floor(p) + settings.horizontal_padding * 2,
116
+ contentHeight: Math.floor(l),
117
+ contentWidth: Math.floor(c),
118
+ resized: resized
119
+ }
120
+ }
121
+
122
+ function E(t, n) {
123
+ t = parseFloat(t);
124
+ n = parseFloat(n);
125
+ $pp_details = $pp_pic_holder.find(".pp_details");
126
+ $pp_details.width(t);
127
+ detailsHeight = parseFloat($pp_details.css("marginTop")) + parseFloat($pp_details.css("marginBottom"));
128
+ $pp_details = $pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({
129
+ position: "absolute",
130
+ top: -1e4
131
+ });
132
+ detailsHeight += $pp_details.height();
133
+ detailsHeight = detailsHeight <= 34 ? 36 : detailsHeight;
134
+ $pp_details.remove();
135
+ $pp_title = $pp_pic_holder.find(".ppt");
136
+ $pp_title.width(t);
137
+ titleHeight = parseFloat($pp_title.css("marginTop")) + parseFloat($pp_title.css("marginBottom"));
138
+ $pp_title = $pp_title.clone().appendTo(e("body")).css({
139
+ position: "absolute",
140
+ top: -1e4
141
+ });
142
+ titleHeight += $pp_title.height();
143
+ $pp_title.remove();
144
+ l = n + detailsHeight;
145
+ c = t;
146
+ h = l + titleHeight + $pp_pic_holder.find(".pp_top").height() + $pp_pic_holder.find(".pp_bottom").height();
147
+ p = t
148
+ }
149
+
150
+ function S(e) {
151
+ if (e.match(/youtube\.com\/watch/i) || e.match(/youtu\.be/i)) {
152
+ return "youtube"
153
+ } else if (e.match(/vimeo\.com/i)) {
154
+ return "vimeo"
155
+ } else if (e.match(/\b.mov\b/i)) {
156
+ return "quicktime"
157
+ } else if (e.match(/\b.swf\b/i)) {
158
+ return "flash"
159
+ } else if (e.match(/\biframe=true\b/i)) {
160
+ return "iframe"
161
+ } else if (e.match(/\bajax=true\b/i)) {
162
+ return "ajax"
163
+ } else if (e.match(/\bcustom=true\b/i)) {
164
+ return "custom"
165
+ } else if (e.substr(0, 1) == "#") {
166
+ return "inline"
167
+ } else {
168
+ return "image"
169
+ }
170
+ }
171
+
172
+ function x() {
173
+ if (doresize && typeof $pp_pic_holder != "undefined") {
174
+ scroll_pos = T();
175
+ contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width();
176
+ projectedTop = d / 2 + scroll_pos["scrollTop"] - contentHeight / 2;
177
+ if (projectedTop < 0)
178
+ projectedTop = 0;
179
+ if (contentHeight > d)
180
+ return;
181
+ $pp_pic_holder.css({
182
+ top: projectedTop,
183
+ left: v / 2 + scroll_pos["scrollLeft"] - contentwidth / 2
184
+ })
185
+ }
186
+ }
187
+
188
+ function T() {
189
+ if (self.pageYOffset) {
190
+ return {
191
+ scrollTop: self.pageYOffset,
192
+ scrollLeft: self.pageXOffset
193
+ }
194
+ } else if (document.documentElement && document.documentElement.scrollTop) {
195
+ return {
196
+ scrollTop: document.documentElement.scrollTop,
197
+ scrollLeft: document.documentElement.scrollLeft
198
+ }
199
+ } else if (document.body) {
200
+ return {
201
+ scrollTop: document.body.scrollTop,
202
+ scrollLeft: document.body.scrollLeft
203
+ }
204
+ }
205
+ }
206
+
207
+ function N() {
208
+ d = e(window).height(), v = e(window).width();
209
+ if (typeof $pp_overlay != "undefined")
210
+ $pp_overlay.height(e(document).height()).width(v)
211
+ }
212
+
213
+ function C() {
214
+ if (isSet && settings.overlay_gallery && S(pp_images[set_position]) == "image") {
215
+ itemWidth = 52 + 5;
216
+ navWidth = settings.theme == "facebook" || settings.theme == "pp_default" ? 50 : 30;
217
+ itemsPerPage = Math.floor((a["containerWidth"] - 100 - navWidth) / itemWidth);
218
+ itemsPerPage = itemsPerPage < pp_images.length ? itemsPerPage : pp_images.length;
219
+ totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1;
220
+ if (totalPage == 0) {
221
+ navWidth = 0;
222
+ $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()
223
+ } else {
224
+ $pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show()
225
+ }
226
+ galleryWidth = itemsPerPage * itemWidth;
227
+ fullGalleryWidth = pp_images.length * itemWidth;
228
+ $pp_gallery.css("margin-left", -(galleryWidth / 2 + navWidth / 2)).find("div:first").width(galleryWidth + 5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected");
229
+ goToPage = Math.floor(set_position / itemsPerPage) < totalPage ? Math.floor(set_position / itemsPerPage) : totalPage;
230
+ e.prettyPhoto.changeGalleryPage(goToPage);
231
+ $pp_gallery_li.filter(":eq(" + set_position + ")").addClass("selected")
232
+ } else {
233
+ $pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")
234
+ }
235
+ }
236
+
237
+ function k(t) {
238
+ if (settings.social_tools)
239
+ facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href));
240
+ settings.markup = settings.markup.replace("{pp_social}", "");
241
+ e("body").append(settings.markup);
242
+ $pp_pic_holder = e(".pp_pic_holder"), $ppt = e(".ppt"), $pp_overlay = e("div.pp_overlay");
243
+ if (isSet && settings.overlay_gallery) {
244
+ currentGalleryPage = 0;
245
+ toInject = "";
246
+ for (var n = 0; n < pp_images.length; n++) {
247
+ if (!pp_images[n].match(/\b(jpg|jpeg|png|gif)\b/gi)) {
248
+ classname = "default";
249
+ img_src = ""
250
+ } else {
251
+ classname = "";
252
+ img_src = pp_images[n]
253
+ }
254
+ toInject += "<li class='" + classname + "'><a href='#'><img src='" + img_src + "' width='50' alt='' /></a></li>"
255
+ }
256
+ toInject = settings.gallery_markup.replace(/{gallery}/g, toInject);
257
+ $pp_pic_holder.find("#pp_full_res").after(toInject);
258
+ $pp_gallery = e(".pp_pic_holder .pp_gallery"), $pp_gallery_li = $pp_gallery.find("li");
259
+ $pp_gallery.find(".pp_arrow_next").click(function () {
260
+ e.prettyPhoto.changeGalleryPage("next");
261
+ e.prettyPhoto.stopSlideshow();
262
+ return false
263
+ });
264
+ $pp_gallery.find(".pp_arrow_previous").click(function () {
265
+ e.prettyPhoto.changeGalleryPage("previous");
266
+ e.prettyPhoto.stopSlideshow();
267
+ return false
268
+ });
269
+ $pp_pic_holder.find(".pp_content").hover(function () {
270
+ $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()
271
+ }, function () {
272
+ $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()
273
+ });
274
+ itemWidth = 52 + 5;
275
+ $pp_gallery_li.each(function (t) {
276
+ e(this).find("a").click(function () {
277
+ e.prettyPhoto.changePage(t);
278
+ e.prettyPhoto.stopSlideshow();
279
+ return false
280
+ })
281
+ })
282
+ }
283
+ if (settings.slideshow) {
284
+ $pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');
285
+ $pp_pic_holder.find(".pp_nav .pp_play").click(function () {
286
+ e.prettyPhoto.startSlideshow();
287
+ return false
288
+ })
289
+ }
290
+ $pp_pic_holder.attr("class", "pp_pic_holder " + settings.theme);
291
+ $pp_overlay.css({
292
+ opacity: 0,
293
+ height: e(document).height(),
294
+ width: e(window).width()
295
+ }).bind("click", function () {
296
+ if (!settings.modal)
297
+ e.prettyPhoto.close()
298
+ });
299
+ e("a.pp_close").bind("click", function () {
300
+ e.prettyPhoto.close();
301
+ return false
302
+ });
303
+ if (settings.allow_expand) {
304
+ e("a.pp_expand").bind("click", function (t) {
305
+ if (e(this).hasClass("pp_expand")) {
306
+ e(this).removeClass("pp_expand").addClass("pp_contract");
307
+ doresize = false
308
+ } else {
309
+ e(this).removeClass("pp_contract").addClass("pp_expand");
310
+ doresize = true
311
+ }
312
+ y(function () {
313
+ e.prettyPhoto.open()
314
+ });
315
+ return false
316
+ })
317
+ }
318
+ $pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click", function () {
319
+ e.prettyPhoto.changePage("previous");
320
+ e.prettyPhoto.stopSlideshow();
321
+ return false
322
+ });
323
+ $pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click", function () {
324
+ e.prettyPhoto.changePage("next");
325
+ e.prettyPhoto.stopSlideshow();
326
+ return false
327
+ });
328
+ x()
329
+ }
330
+
331
+ s = jQuery.extend({
332
+ hook: "rel",
333
+ animation_speed: "fast",
334
+ ajaxcallback: function () {
335
+ },
336
+ slideshow: 5e3,
337
+ autoplay_slideshow: false,
338
+ opacity: .8,
339
+ show_title: true,
340
+ allow_resize: true,
341
+ allow_expand: false,
342
+ default_width: 500,
343
+ default_height: 344,
344
+ counter_separator_label: "/",
345
+ theme: "pp_default",
346
+ horizontal_padding: 20,
347
+ hideflash: false,
348
+ wmode: "opaque",
349
+ autoplay: true,
350
+ modal: false,
351
+ deeplinking: true,
352
+ overlay_gallery: false,
353
+ overlay_gallery_max: 30,
354
+ keyboard_shortcuts: true,
355
+ changepicturecallback: function () {
356
+ },
357
+ callback: function () {
358
+ },
359
+ ie6_fallback: true,
360
+ 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"> <div class="pp_description"></div> </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> <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>',
361
+ gallery_markup: '<div class="pp_gallery"> </div>',
362
+ image_markup: '<img id="fullResImage" src="{path}" />',
363
+ 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>',
364
+ 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>',
365
+ iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',
366
+ inline_markup: '<div class="pp_inline">{content}</div>',
367
+ custom_markup: "",
368
+ social_tools: ''
369
+ //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>'
370
+ }, s);
371
+ var o = this, u = false, a, f, l, c, h, p, d = e(window).height(), v = e(window).width(), m;
372
+ doresize = true, scroll_pos = T();
373
+ e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto", function () {
374
+ x();
375
+ N()
376
+ });
377
+ if (s.keyboard_shortcuts) {
378
+ e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto", function (t) {
379
+ if (typeof $pp_pic_holder != "undefined") {
380
+ if ($pp_pic_holder.is(":visible")) {
381
+ switch (t.keyCode) {
382
+ case 37:
383
+ e.prettyPhoto.changePage("previous");
384
+ t.preventDefault();
385
+ break;
386
+ case 39:
387
+ e.prettyPhoto.changePage("next");
388
+ t.preventDefault();
389
+ break;
390
+ case 27:
391
+ if (!settings.modal)
392
+ e.prettyPhoto.close();
393
+ t.preventDefault();
394
+ break
395
+ }
396
+ }
397
+ }
398
+ })
399
+ }
400
+ e.prettyPhoto.initialize = function () {
401
+ settings = s;
402
+ if (settings.theme == "pp_default")
403
+ settings.horizontal_padding = 16;
404
+ theRel = e(this).attr(settings.hook);
405
+ galleryRegExp = /\[(?:.*)\]/;
406
+ isSet = galleryRegExp.exec(theRel) ? true : false;
407
+ pp_images = isSet ? jQuery.map(o, function (t, n) {
408
+ if (e(t).attr(settings.hook).indexOf(theRel) != -1)
409
+ return e(t).attr("href")
410
+ }) : e.makeArray(e(this).attr("href"));
411
+ pp_titles = isSet ? jQuery.map(o, function (t, n) {
412
+ if (e(t).attr(settings.hook).indexOf(theRel) != -1)
413
+ return e(t).find("img").attr("alt") ? e(t).find("img").attr("alt") : ""
414
+ }) : e.makeArray(e(this).find("img").attr("alt"));
415
+ pp_descriptions = isSet ? jQuery.map(o, function (t, n) {
416
+ if (e(t).attr(settings.hook).indexOf(theRel) != -1)
417
+ return e(t).attr("data-title") ? e(t).attr("data-title") : ""
418
+ }) : e.makeArray(e(this).attr("data-title"));
419
+ if (pp_images.length > settings.overlay_gallery_max)
420
+ settings.overlay_gallery = false;
421
+ set_position = jQuery.inArray(e(this).attr("href"), pp_images);
422
+ rel_index = isSet ? set_position : e("a[" + settings.hook + "^='" + theRel + "']").index(e(this));
423
+ k(this);
424
+ if (settings.allow_resize)
425
+ e(window).bind("scroll.prettyphoto", function () {
426
+ x()
427
+ });
428
+ e.prettyPhoto.open();
429
+ return false
430
+ };
431
+ e.prettyPhoto.open = function (t) {
432
+ if (typeof settings == "undefined") {
433
+ settings = s;
434
+ pp_images = e.makeArray(arguments[0]);
435
+ pp_titles = arguments[1] ? e.makeArray(arguments[1]) : e.makeArray("");
436
+ pp_descriptions = arguments[2] ? e.makeArray(arguments[2]) : e.makeArray("");
437
+ isSet = pp_images.length > 1 ? true : false;
438
+ set_position = arguments[3] ? arguments[3] : 0;
439
+ k(t.target)
440
+ }
441
+ if (settings.hideflash)
442
+ e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "hidden");
443
+ b(e(pp_images).size());
444
+ e(".pp_loaderIcon").show();
445
+ if (settings.deeplinking)
446
+ n();
447
+ if (settings.social_tools) {
448
+ facebook_like_link = settings.social_tools.replace("{location_href}", encodeURIComponent(location.href));
449
+ $pp_pic_holder.find(".pp_social").html(facebook_like_link)
450
+ }
451
+ if ($ppt.is(":hidden"))
452
+ $ppt.css("opacity", 0).show();
453
+ $pp_overlay.show().fadeTo(settings.animation_speed, settings.opacity);
454
+ $pp_pic_holder.find(".currentTextHolder").text(set_position + 1 + settings.counter_separator_label + e(pp_images).size());
455
+ if (typeof pp_descriptions[set_position] != "undefined" && pp_descriptions[set_position] != "") {
456
+ $pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))
457
+ } else {
458
+ $pp_pic_holder.find(".pp_description").hide()
459
+ }
460
+ movie_width = parseFloat(i("width", pp_images[set_position])) ? i("width", pp_images[set_position]) : settings.default_width.toString();
461
+ movie_height = parseFloat(i("height", pp_images[set_position])) ? i("height", pp_images[set_position]) : settings.default_height.toString();
462
+ u = false;
463
+ if (movie_height.indexOf("%") != -1) {
464
+ movie_height = parseFloat(e(window).height() * parseFloat(movie_height) / 100 - 150);
465
+ u = true
466
+ }
467
+ if (movie_width.indexOf("%") != -1) {
468
+ movie_width = parseFloat(e(window).width() * parseFloat(movie_width) / 100 - 150);
469
+ u = true
470
+ }
471
+ $pp_pic_holder.fadeIn(function () {
472
+ settings.show_title && pp_titles[set_position] != "" && typeof pp_titles[set_position] != "undefined" ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html(" ");
473
+ imgPreloader = "";
474
+ skipInjection = false;
475
+ switch (S(pp_images[set_position])) {
476
+ case"image":
477
+ imgPreloader = new Image;
478
+ nextImage = new Image;
479
+ if (isSet && set_position < e(pp_images).size() - 1)
480
+ nextImage.src = pp_images[set_position + 1];
481
+ prevImage = new Image;
482
+ if (isSet && pp_images[set_position - 1])
483
+ prevImage.src = pp_images[set_position - 1];
484
+ $pp_pic_holder.find("#pp_full_res")[0].innerHTML = settings.image_markup.replace(/{path}/g, pp_images[set_position]);
485
+ imgPreloader.onload = function () {
486
+ a = w(imgPreloader.width, imgPreloader.height);
487
+ g()
488
+ };
489
+ imgPreloader.onerror = function () {
490
+ alert("Image cannot be loaded. Make sure the path is correct and image exist.");
491
+ e.prettyPhoto.close()
492
+ };
493
+ imgPreloader.src = pp_images[set_position];
494
+ break;
495
+ case"youtube":
496
+ a = w(movie_width, movie_height);
497
+ movie_id = i("v", pp_images[set_position]);
498
+ if (movie_id == "") {
499
+ movie_id = pp_images[set_position].split("youtu.be/");
500
+ movie_id = movie_id[1];
501
+ if (movie_id.indexOf("?") > 0)
502
+ movie_id = movie_id.substr(0, movie_id.indexOf("?"));
503
+ if (movie_id.indexOf("&") > 0)
504
+ movie_id = movie_id.substr(0, movie_id.indexOf("&"))
505
+ }
506
+ movie = "http://www.youtube.com/embed/" + movie_id;
507
+ i("rel", pp_images[set_position]) ? movie += "?rel=" + i("rel", pp_images[set_position]) : movie += "?rel=1";
508
+ if (settings.autoplay)
509
+ movie += "&autoplay=1";
510
+ toInject = settings.iframe_markup.replace(/{width}/g, a["width"]).replace(/{height}/g, a["height"]).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, movie);
511
+ break;
512
+ case"vimeo":
513
+ a = w(movie_width, movie_height);
514
+ movie_id = pp_images[set_position];
515
+ var t = /http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;
516
+ var n = movie_id.match(t);
517
+ movie = "http://player.vimeo.com/video/" + n[3] + "?title=0&byline=0&portrait=0";
518
+ if (settings.autoplay)
519
+ movie += "&autoplay=1;";
520
+ vimeo_width = a["width"] + "/embed/?moog_width=" + a["width"];
521
+ toInject = settings.iframe_markup.replace(/{width}/g, vimeo_width).replace(/{height}/g, a["height"]).replace(/{path}/g, movie);
522
+ break;
523
+ case"quicktime":
524
+ a = w(movie_width, movie_height);
525
+ a["height"] += 15;
526
+ a["contentHeight"] += 15;
527
+ a["containerHeight"] += 15;
528
+ 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);
529
+ break;
530
+ case"flash":
531
+ a = w(movie_width, movie_height);
532
+ flash_vars = pp_images[set_position];
533
+ flash_vars = flash_vars.substring(pp_images[set_position].indexOf("flashvars") + 10, pp_images[set_position].length);
534
+ filename = pp_images[set_position];
535
+ filename = filename.substring(0, filename.indexOf("?"));
536
+ 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);
537
+ break;
538
+ case"iframe":
539
+ a = w(movie_width, movie_height);
540
+ frame_url = pp_images[set_position];
541
+ frame_url = frame_url.substr(0, frame_url.indexOf("iframe") - 1);
542
+ toInject = settings.iframe_markup.replace(/{width}/g, a["width"]).replace(/{height}/g, a["height"]).replace(/{path}/g, frame_url);
543
+ break;
544
+ case"ajax":
545
+ doresize = false;
546
+ a = w(movie_width, movie_height);
547
+ doresize = true;
548
+ skipInjection = true;
549
+ e.get(pp_images[set_position], function (e) {
550
+ toInject = settings.inline_markup.replace(/{content}/g, e);
551
+ $pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject;
552
+ g()
553
+ });
554
+ break;
555
+ case"custom":
556
+ a = w(movie_width, movie_height);
557
+ toInject = settings.custom_markup;
558
+ break;
559
+ case"inline":
560
+ myClone = e(pp_images[set_position]).clone().append('<br clear="all" />').css({
561
+ width: settings.default_width
562
+ }).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show();
563
+ doresize = false;
564
+ a = w(e(myClone).width(), e(myClone).height());
565
+ doresize = true;
566
+ e(myClone).remove();
567
+ toInject = settings.inline_markup.replace(/{content}/g, e(pp_images[set_position]).html());
568
+ break
569
+ }
570
+ if (!imgPreloader && !skipInjection) {
571
+ $pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject;
572
+ g()
573
+ }
574
+ });
575
+ return false
576
+ };
577
+ e.prettyPhoto.changePage = function (t) {
578
+ currentGalleryPage = 0;
579
+ if (t == "previous") {
580
+ set_position--;
581
+ if (set_position < 0)
582
+ set_position = e(pp_images).size() - 1
583
+ } else if (t == "next") {
584
+ set_position++;
585
+ if (set_position > e(pp_images).size() - 1)
586
+ set_position = 0
587
+ } else {
588
+ set_position = t
589
+ }
590
+ rel_index = set_position;
591
+ if (!doresize)
592
+ doresize = true;
593
+ if (settings.allow_expand) {
594
+ e(".pp_contract").removeClass("pp_contract").addClass("pp_expand")
595
+ }
596
+ y(function () {
597
+ e.prettyPhoto.open()
598
+ })
599
+ };
600
+ e.prettyPhoto.changeGalleryPage = function (e) {
601
+ if (e == "next") {
602
+ currentGalleryPage++;
603
+ if (currentGalleryPage > totalPage)
604
+ currentGalleryPage = 0
605
+ } else if (e == "previous") {
606
+ currentGalleryPage--;
607
+ if (currentGalleryPage < 0)
608
+ currentGalleryPage = totalPage
609
+ } else {
610
+ currentGalleryPage = e
611
+ }
612
+ slide_speed = e == "next" || e == "previous" ? settings.animation_speed : 0;
613
+ slide_to = currentGalleryPage * itemsPerPage * itemWidth;
614
+ $pp_gallery.find("ul").animate({
615
+ left: -slide_to
616
+ }, slide_speed)
617
+ };
618
+ e.prettyPhoto.startSlideshow = function () {
619
+ if (typeof m == "undefined") {
620
+ $pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function () {
621
+ e.prettyPhoto.stopSlideshow();
622
+ return false
623
+ });
624
+ m = setInterval(e.prettyPhoto.startSlideshow, settings.slideshow)
625
+ } else {
626
+ e.prettyPhoto.changePage("next")
627
+ }
628
+ };
629
+ e.prettyPhoto.stopSlideshow = function () {
630
+ $pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function () {
631
+ e.prettyPhoto.startSlideshow();
632
+ return false
633
+ });
634
+ clearInterval(m);
635
+ m = undefined
636
+ };
637
+ e.prettyPhoto.close = function () {
638
+ if ($pp_overlay.is(":animated"))
639
+ return;
640
+ e.prettyPhoto.stopSlideshow();
641
+ $pp_pic_holder.stop().find("object,embed").css("visibility", "hidden");
642
+ e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed, function () {
643
+ e(this).remove()
644
+ });
645
+ $pp_overlay.fadeOut(settings.animation_speed, function () {
646
+ if (settings.hideflash)
647
+ e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility", "visible");
648
+ e(this).remove();
649
+ e(window).unbind("scroll.prettyphoto");
650
+ r();
651
+ settings.callback();
652
+ doresize = true;
653
+ f = false;
654
+ delete settings
655
+ })
656
+ };
657
+ if (!pp_alreadyInitialized && t()) {
658
+ pp_alreadyInitialized = true;
659
+ hashIndex = t();
660
+ hashRel = hashIndex;
661
+ hashIndex = hashIndex.substring(hashIndex.indexOf("/") + 1, hashIndex.length - 1);
662
+ hashRel = hashRel.substring(0, hashRel.indexOf("/"));
663
+ setTimeout(function () {
664
+ e("a[" + s.hook + "^='" + hashRel + "']:eq(" + hashIndex + ")").trigger("click")
665
+ }, 50)
666
+ }
667
+ return this.unbind("click.prettyphoto").bind("click.prettyphoto", e.prettyPhoto.initialize)
668
+ };
669
+ })(jQuery);
670
+ var pp_alreadyInitialized = false
contact-bank.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
- Plugin Name: Contact Bank Standard Version
4
  Plugin URI: http://tech-banker.com
5
  Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It"s Really That Easy.
6
  Author: Tech Banker
7
- Version: 2.0.0
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -54,6 +54,7 @@ function create_global_menus_for_contact_bank()
54
  add_menu_page("Contact Bank", __("Contact Bank", contact_bank), "read", "dashboard","",CONTACT_BK_PLUGIN_URL . "/assets/images/icon.png");
55
  add_submenu_page("dashboard", "Dashboard", __("Dashboard", contact_bank), "read", "dashboard","dashboard");
56
  add_submenu_page("","","", "read", "contact_bank","contact_bank");
 
57
  add_submenu_page("dashboard", "Form Entries", __("Form Entries", contact_bank), "read", "frontend_data","frontend_data");
58
  add_submenu_page("dashboard", "Email Settings", __("Email Settings", contact_bank), "read", "contact_email", "contact_email");
59
  add_submenu_page("dashboard", "Global Settings", __("Global Settings", contact_bank), "read", "layout_settings", "layout_settings");
@@ -140,6 +141,12 @@ function pro_version()
140
  include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_bank_pro_version.php";
141
  include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
142
  }
 
 
 
 
 
 
143
 
144
  function backend_plugin_js_scripts_contact_bank()
145
  {
@@ -152,14 +159,13 @@ function backend_plugin_js_scripts_contact_bank()
152
  wp_enqueue_script("jquery.dataTables.min", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.dataTables.min.js");
153
  wp_enqueue_script("jquery.validate.min", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.validate.min.js");
154
  wp_enqueue_script("bootstrap.js", CONTACT_BK_PLUGIN_URL ."/assets/js/bootstrap.js");
 
155
  }
156
  function frontend_plugin_js_scripts_contact_bank()
157
  {
158
  wp_enqueue_script("jquery");
159
  wp_enqueue_script("jquery.Tooltip.js", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.Tooltip.js");
160
  wp_enqueue_script("jquery.validate.min", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.validate.min.js");
161
-
162
-
163
  }
164
  function backend_plugin_css_styles_contact_bank()
165
  {
@@ -168,6 +174,7 @@ function backend_plugin_css_styles_contact_bank()
168
  wp_enqueue_style("font-awesome", CONTACT_BK_PLUGIN_URL ."/assets/css/font-awesome/css/font-awesome.css");
169
  wp_enqueue_style("system-message", CONTACT_BK_PLUGIN_URL ."/assets/css/system-message.css");
170
  wp_enqueue_style("css3_grid_style", CONTACT_BK_PLUGIN_URL ."/assets/css/css3_grid_style.css");
 
171
  }
172
  function frontend_plugin_css_styles_contact_bank()
173
  {
@@ -444,10 +451,9 @@ add_action( "admin_enqueue_scripts", "contact_bank_enqueue_pointer_script_style"
444
  function thsp_pointer_print_scripts() {
445
 
446
  $pointer_content = "<h3>Contact Bank</h3>";
447
- $pointer_content .= "<p>If you are using Contact Bank for the first time, you can view this <a href=http://www.youtube.com/embed/EcqbsXmPbaI target=_blank>video</a> to setup the Plugin.</p>";
448
  ?>
449
  <script type="text/javascript">
450
- //<![CDATA[
451
  jQuery(document).ready( function($) {
452
  $("#toplevel_page_dashboard").pointer({
453
  content:"<?php echo $pointer_content; ?>",
@@ -464,7 +470,6 @@ function thsp_pointer_print_scripts() {
464
  }
465
  }).pointer("open");
466
  });
467
- //]]>
468
  </script>
469
  <?php
470
  }
@@ -476,6 +481,11 @@ function plugin_load_textdomain()
476
  }
477
  }
478
  add_action("plugins_loaded", "plugin_load_textdomain");
 
 
 
 
 
479
  /*************************************************************************************/
480
  add_action("admin_bar_menu", "add_contact_bank_icon",100);
481
  // add_action Hook called for function frontend_plugin_css_scripts_contact_bank
1
  <?php
2
  /**
3
+ Plugin Name: Contact Bank Standard Edition
4
  Plugin URI: http://tech-banker.com
5
  Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It"s Really That Easy.
6
  Author: Tech Banker
7
+ Version: 2.0.1
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
54
  add_menu_page("Contact Bank", __("Contact Bank", contact_bank), "read", "dashboard","",CONTACT_BK_PLUGIN_URL . "/assets/images/icon.png");
55
  add_submenu_page("dashboard", "Dashboard", __("Dashboard", contact_bank), "read", "dashboard","dashboard");
56
  add_submenu_page("","","", "read", "contact_bank","contact_bank");
57
+ add_submenu_page("dashboard", "Short-Codes", __("Short-Codes", contact_bank), "read", "short_code", "short_code" );
58
  add_submenu_page("dashboard", "Form Entries", __("Form Entries", contact_bank), "read", "frontend_data","frontend_data");
59
  add_submenu_page("dashboard", "Email Settings", __("Email Settings", contact_bank), "read", "contact_email", "contact_email");
60
  add_submenu_page("dashboard", "Global Settings", __("Global Settings", contact_bank), "read", "layout_settings", "layout_settings");
141
  include_once CONTACT_BK_PLUGIN_DIR ."/views/contact_bank_pro_version.php";
142
  include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
143
  }
144
+ function short_code()
145
+ {
146
+ include_once CONTACT_BK_PLUGIN_DIR ."/views/header.php";
147
+ include_once CONTACT_BK_PLUGIN_DIR ."/views/shortcode.php";
148
+ include_once CONTACT_BK_PLUGIN_DIR ."/views/footer.php";
149
+ }
150
 
151
  function backend_plugin_js_scripts_contact_bank()
152
  {
159
  wp_enqueue_script("jquery.dataTables.min", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.dataTables.min.js");
160
  wp_enqueue_script("jquery.validate.min", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.validate.min.js");
161
  wp_enqueue_script("bootstrap.js", CONTACT_BK_PLUGIN_URL ."/assets/js/bootstrap.js");
162
+ wp_enqueue_script("jquery.prettyPhoto.js", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.prettyPhoto.js");
163
  }
164
  function frontend_plugin_js_scripts_contact_bank()
165
  {
166
  wp_enqueue_script("jquery");
167
  wp_enqueue_script("jquery.Tooltip.js", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.Tooltip.js");
168
  wp_enqueue_script("jquery.validate.min", CONTACT_BK_PLUGIN_URL ."/assets/js/jquery.validate.min.js");
 
 
169
  }
170
  function backend_plugin_css_styles_contact_bank()
171
  {
174
  wp_enqueue_style("font-awesome", CONTACT_BK_PLUGIN_URL ."/assets/css/font-awesome/css/font-awesome.css");
175
  wp_enqueue_style("system-message", CONTACT_BK_PLUGIN_URL ."/assets/css/system-message.css");
176
  wp_enqueue_style("css3_grid_style", CONTACT_BK_PLUGIN_URL ."/assets/css/css3_grid_style.css");
177
+ wp_enqueue_style("prettyPhoto", CONTACT_BK_PLUGIN_URL ."/assets/css/prettyPhoto.css");
178
  }
179
  function frontend_plugin_css_styles_contact_bank()
180
  {
451
  function thsp_pointer_print_scripts() {
452
 
453
  $pointer_content = "<h3>Contact Bank</h3>";
454
+ $pointer_content .= "<p>If you are using Contact Bank for the first time, you can view this <a href='http://tech-banker.com/contact-bank/' target='_blank'>link</a> to know about the features.</p>";
455
  ?>
456
  <script type="text/javascript">
 
457
  jQuery(document).ready( function($) {
458
  $("#toplevel_page_dashboard").pointer({
459
  content:"<?php echo $pointer_content; ?>",
470
  }
471
  }).pointer("open");
472
  });
 
473
  </script>
474
  <?php
475
  }
481
  }
482
  }
483
  add_action("plugins_loaded", "plugin_load_textdomain");
484
+ $version = get_option("contact-bank-version-number");
485
+ if($version != "2.0")
486
+ {
487
+ add_action('admin_init', 'plugin_install_script_for_contact_bank');
488
+ }
489
  /*************************************************************************************/
490
  add_action("admin_bar_menu", "add_contact_bank_icon",100);
491
  // add_action Hook called for function frontend_plugin_css_scripts_contact_bank
includes/cb_text.php CHANGED
@@ -188,7 +188,7 @@
188
  name="ux_checkbox_trim_filter" value="0" />
189
  <span class="rdl"><?php _e( "Trim", contact_bank ); ?></span>
190
  <br>
191
- <i class="widget_premium_feature_contact"><?php _e(" (Avialable in Premium Versions)", contact_bank); ?></i>
192
  </div>
193
 
194
 
188
  name="ux_checkbox_trim_filter" value="0" />
189
  <span class="rdl"><?php _e( "Trim", contact_bank ); ?></span>
190
  <br>
191
+ <i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Versions)", contact_bank); ?></i>
192
  </div>
193
 
194
 
includes/cb_textarea.php CHANGED
@@ -185,7 +185,7 @@ if(count($control_id) != 0)
185
  name="ux_checkbox_trim_filter" value="0" />
186
  <span class="rdl"><?php _e( "Trim", contact_bank ); ?></span>
187
  <br>
188
- <i class="widget_premium_feature_contact"><?php _e(" (Avialable in Premium Versions)", contact_bank); ?></i>
189
  </div>
190
 
191
  </div>
185
  name="ux_checkbox_trim_filter" value="0" />
186
  <span class="rdl"><?php _e( "Trim", contact_bank ); ?></span>
187
  <br>
188
+ <i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Versions)", contact_bank); ?></i>
189
  </div>
190
 
191
  </div>
lib/cb-class-tracking.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( !class_exists( 'TrackingForContactBank' ) ) {
4
+ class TrackingForContactBank {
5
+
6
+ /**
7
+ * Class constructor
8
+ */
9
+ function __construct() {
10
+ global $blog_id, $wpdb;
11
+
12
+ $pts = array();
13
+ foreach ( get_post_types( array( 'public' => true ) ) as $pt ) {
14
+ $count = wp_count_posts( $pt );
15
+ $pts[$pt] = $count->publish;
16
+ }
17
+
18
+ $comments_count = wp_count_comments();
19
+
20
+ // wp_get_theme was introduced in 3.4, for compatibility with older versions, let's do a workaround for now.
21
+ if ( function_exists( 'wp_get_theme' ) ) {
22
+ $theme_data = wp_get_theme();
23
+ $theme = array(
24
+ 'name' => $theme_data->display( 'Name', false, false ),
25
+ 'theme_uri' => $theme_data->display( 'ThemeURI', false, false ),
26
+ 'version' => $theme_data->display( 'Version', false, false ),
27
+ 'author' => $theme_data->display( 'Author', false, false ),
28
+ 'author_uri' => $theme_data->display( 'AuthorURI', false, false ),
29
+ );
30
+
31
+ } else {
32
+ $theme_data = (object) get_theme_data( get_stylesheet_directory() . '/style.css' );
33
+ $theme = array(
34
+ 'version' => $theme_data->Version,
35
+ 'name' => $theme_data->Name,
36
+ 'author' => $theme_data->Author,
37
+ 'template' => $theme_data->Template,
38
+ );
39
+ }
40
+ $plugins = array();
41
+ foreach ( get_option( 'active_plugins' ) as $plugin_path ) {
42
+ if ( !function_exists( 'get_plugin_data' ) )
43
+ require_once( ABSPATH . 'wp-admin/includes/admin.php' );
44
+
45
+ $plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin_path );
46
+
47
+ $slug = str_replace( '/' . basename( $plugin_path ), '', $plugin_path );
48
+ $plugins[$slug] = array(
49
+ 'version' => $plugin_info['Version'],
50
+ 'name' => $plugin_info['Name'],
51
+ 'plugin_uri' => $plugin_info['PluginURI'],
52
+ 'author' => $plugin_info['AuthorName'],
53
+ 'author_uri' => $plugin_info['AuthorURI'],
54
+ );
55
+ }
56
+
57
+ $data = array(
58
+ 'site' => array(
59
+ 'hash' => site_url(),
60
+ 'version' => get_bloginfo( 'version' ),
61
+ 'multisite' => is_multisite(),
62
+ 'users' => $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->users INNER JOIN $wpdb->usermeta ON ({$wpdb->users}.ID = {$wpdb->usermeta}.user_id) WHERE 1 = 1 AND ( {$wpdb->usermeta}.meta_key = %s )", 'wp_' . $blog_id . '_capabilities' ) ),
63
+ 'lang' => get_locale(),
64
+ ),
65
+ 'theme' => $theme,
66
+ 'plugins' => $plugins,
67
+ 'email' => get_option( 'admin_email' ),
68
+ 'param'=>'class_tracking',
69
+ 'action'=>'license_validator'
70
+ );
71
+ $url = get_option("contact-bank-updation-check-url");
72
+ $response = wp_remote_post( $url, array(
73
+ 'method' => 'POST',
74
+ 'timeout' => 45,
75
+ 'redirection' => 5,
76
+ 'httpversion' => '1.0',
77
+ 'blocking' => true,
78
+ 'headers' => array(),
79
+ 'body' => $data
80
+ )
81
+ );
82
+ }
83
+ }
84
+
85
+ $TrackingForContactBank = new TrackingForContactBank;
86
+ }
lib/install-script.php CHANGED
@@ -1,9 +1,11 @@
1
  <?php
2
  global $wpdb;
3
  require_once(ABSPATH . "wp-admin/includes/upgrade.php");
 
4
  $version = get_option("contact-bank-version-number");
5
  if($version != "2.0")
6
  {
 
7
  if (count($wpdb->get_var('SHOW TABLES LIKE "' . contact_bank_form_settings_Table() . '"')) == 0)
8
  {
9
  create_contact_bank_form_settings();
@@ -103,7 +105,7 @@ if($version != "2.0")
103
  (
104
  $wpdb->prepare
105
  (
106
- "SELECT * FROM ".create_control_Table()." where field_id != 14 ",""
107
  )
108
  );
109
 
1
  <?php
2
  global $wpdb;
3
  require_once(ABSPATH . "wp-admin/includes/upgrade.php");
4
+ update_option("contact-bank-updation-check-url","http://tech-banker.com/wp-admin/admin-ajax.php");
5
  $version = get_option("contact-bank-version-number");
6
  if($version != "2.0")
7
  {
8
+ include_once CONTACT_BK_PLUGIN_DIR ."/lib/cb-class-tracking.php";
9
  if (count($wpdb->get_var('SHOW TABLES LIKE "' . contact_bank_form_settings_Table() . '"')) == 0)
10
  {
11
  create_contact_bank_form_settings();
105
  (
106
  $wpdb->prepare
107
  (
108
+ "SELECT * FROM ".create_control_Table()." where field_id not in (9,12,13,14,15)",""
109
  )
110
  );
111
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
4
  Requires at least: 2.9
5
  Tested up to: 3.8.1
6
- Stable tag: 2.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -19,11 +19,11 @@ It provides a powerful engine for uploading and managing dynamic forms with more
19
 
20
  ***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
21
 
22
- ***March 12, 2014: We're happy to announce that Contact Bank reached 12,650+ plugin downloads in only 5 months. We frequently receive positive feedback from people using our Contact Bank Plugin for WordPress. Thanks so much for your support!***
23
 
24
  <a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
25
 
26
- <a href="http://tech-banker.com/contct-bank/" target="_blank">Upgrade to Pro Version</a>
27
 
28
  <a href="https://www.facebook.com/TechBanker/" target="_blank">Like & Support us on Facebook</a>
29
 
@@ -130,6 +130,13 @@ Visit [here](http://tech-banker.com/contact-bank) to upgrade to Pro Version now.
130
 
131
  == Changelog ==
132
 
 
 
 
 
 
 
 
133
  = 2.0.0 =
134
 
135
  * Major Release
3
  Tags: admin, advanced form, AJAX, best contact form plugin, buddypress, category, comment, comments, contact, contact bank, contact form, contact form 7, contact form builder, contact form plugin, contact forms, contact me, contact us, contacts, content, easy contact form, easy contact plugin, email, Facebook, feed, feedback, feedback form, form, form builder, forms, gallery, google, image, images, javascript, jquery, link, links, login, media, page, pages, plugin, Post, posts, request, rss, seo, shortcode, sidebar, stats, text, web form, widget, wordpress
4
  Requires at least: 2.9
5
  Tested up to: 3.8.1
6
+ Stable tag: 2.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
19
 
20
  ***The Contact Bank WordPress Plugin is now proudly maintained by <a href="http://www.tech-banker.com">Tech Banker Pte Ltd.</a> since March 2014.***
21
 
22
+ ***March 12, 2014: We're happy to announce that Contact Bank reached 13,050+ plugin downloads in only 5 months. We frequently receive positive feedback from people using our Contact Bank Plugin for WordPress. Thanks so much for your support!***
23
 
24
  <a href="http://tech-banker.com/forum/contact-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
25
 
26
+ <a href="http://tech-banker.com/contact-bank/" target="_blank">Upgrade to Pro Version</a>
27
 
28
  <a href="https://www.facebook.com/TechBanker/" target="_blank">Like & Support us on Facebook</a>
29
 
130
 
131
  == Changelog ==
132
 
133
+ = 2.0.1 =
134
+
135
+ * Few Bugs Fixed
136
+ * Add how to add Shortcode to your Page/Post.
137
+ * Updated Languages
138
+
139
+
140
  = 2.0.0 =
141
 
142
  * Major Release
views/contact_bank_layout_settings.php CHANGED
@@ -4,7 +4,7 @@
4
  <div class="widget-layout">
5
  <div class="widget-layout-title">
6
  <h4><?php _e( "Global Settings", contact_bank ); ?>
7
- <i class="widget_premium_feature_contact"><?php _e(" (Premium Feature avialable in Paid Version)", contact_bank); ?></i></h4>
8
 
9
  </div>
10
  <div class="widget-layout-body">
@@ -58,7 +58,7 @@
58
  <div class="widget-layout">
59
  <div class="widget-layout-title">
60
  <h4><?php _e( "Label Settings", contact_bank ); ?>
61
- <i class="widget_premium_feature_contact"><?php _e(" (Avialable in Premium Versions)", contact_bank); ?></i>
62
  </h4>
63
  <span class="tools">
64
  <a data-target="#label_settings" data-toggle="collapse">
@@ -246,7 +246,7 @@
246
  </div>
247
  <div class="widget-layout">
248
  <div class="widget-layout-title">
249
- <h4><?php _e( "Input Field Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Avialable in Premium Versions)", contact_bank); ?></i></h4>
250
  <span class="tools">
251
  <a data-target="#input_settings" data-toggle="collapse">
252
  <i class="icon-chevron-down"></i>
@@ -456,7 +456,7 @@
456
  <div class="layout-span6">
457
  <div class="widget-layout">
458
  <div class="widget-layout-title">
459
- <h4><?php _e( "Submit Button Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Avialable in Premium Versions)", contact_bank); ?></i></h4>
460
  <span class="tools">
461
  <a data-target="#submit_settings" data-toggle="collapse">
462
  <i class="icon-chevron-down"></i>
@@ -649,7 +649,7 @@
649
  </div>
650
  <div class="widget-layout">
651
  <div class="widget-layout-title">
652
- <h4><?php _e( "Success Message Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Avialable in Premium Versions)", contact_bank); ?></i></h4>
653
  <span class="tools">
654
  <a data-target="#success_settings" data-toggle="collapse">
655
  <i class="icon-chevron-down"></i>
@@ -777,7 +777,7 @@
777
  </div>
778
  <div class="widget-layout">
779
  <div class="widget-layout-title">
780
- <h4><?php _e( "Error Message Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Avialable in Premium Versions)", contact_bank); ?></i></h4>
781
  <span class="tools">
782
  <a data-target="#error_settings" data-toggle="collapse">
783
  <i class="icon-chevron-down"></i>
4
  <div class="widget-layout">
5
  <div class="widget-layout-title">
6
  <h4><?php _e( "Global Settings", contact_bank ); ?>
7
+ <i class="widget_premium_feature_contact"><?php _e(" (Premium Feature available in Paid Version)", contact_bank); ?></i></h4>
8
 
9
  </div>
10
  <div class="widget-layout-body">
58
  <div class="widget-layout">
59
  <div class="widget-layout-title">
60
  <h4><?php _e( "Label Settings", contact_bank ); ?>
61
+ <i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Versions)", contact_bank); ?></i>
62
  </h4>
63
  <span class="tools">
64
  <a data-target="#label_settings" data-toggle="collapse">
246
  </div>
247
  <div class="widget-layout">
248
  <div class="widget-layout-title">
249
+ <h4><?php _e( "Input Field Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Versions)", contact_bank); ?></i></h4>
250
  <span class="tools">
251
  <a data-target="#input_settings" data-toggle="collapse">
252
  <i class="icon-chevron-down"></i>
456
  <div class="layout-span6">
457
  <div class="widget-layout">
458
  <div class="widget-layout-title">
459
+ <h4><?php _e( "Submit Button Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Versions)", contact_bank); ?></i></h4>
460
  <span class="tools">
461
  <a data-target="#submit_settings" data-toggle="collapse">
462
  <i class="icon-chevron-down"></i>
649
  </div>
650
  <div class="widget-layout">
651
  <div class="widget-layout-title">
652
+ <h4><?php _e( "Success Message Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Versions)", contact_bank); ?></i></h4>
653
  <span class="tools">
654
  <a data-target="#success_settings" data-toggle="collapse">
655
  <i class="icon-chevron-down"></i>
777
  </div>
778
  <div class="widget-layout">
779
  <div class="widget-layout-title">
780
+ <h4><?php _e( "Error Message Settings", contact_bank ); ?><i class="widget_premium_feature_contact"><?php _e(" (Available in Premium Versions)", contact_bank); ?></i></h4>
781
  <span class="tools">
782
  <a data-target="#error_settings" data-toggle="collapse">
783
  <i class="icon-chevron-down"></i>
views/contact_view.php CHANGED
@@ -204,7 +204,8 @@
204
  <input class="btn btn-info layout-span2" style="float: right;" type="submit" id="submit_button"
205
  name="submit_button"
206
  value="<?php _e("Save Form", contact_bank); ?>"/>
207
- <div class="separator-doubled"></div>
 
208
  <div id="form_success_message" class="message green" style="display: none;">
209
  <span>
210
  <strong><?php _e("Form Submitted. Kindly wait for the redirect.", contact_bank); ?></strong>
@@ -465,6 +466,18 @@
465
  </div>
466
  </form>
467
  <script type="text/javascript">
 
 
 
 
 
 
 
 
 
 
 
 
468
  jQuery("#ux_dynamic_form_submit").validate
469
  ({
470
  rules:
204
  <input class="btn btn-info layout-span2" style="float: right;" type="submit" id="submit_button"
205
  name="submit_button"
206
  value="<?php _e("Save Form", contact_bank); ?>"/>
207
+ <div class="separator-doubled" style="margin-bottom: 5px;"></div>
208
+ <a rel="prettyPhoto[contact]" href="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code-cb.png";?>">How to setup Short-Codes for Contact Bank into your WordPress Page/Post?</a>
209
  <div id="form_success_message" class="message green" style="display: none;">
210
  <span>
211
  <strong><?php _e("Form Submitted. Kindly wait for the redirect.", contact_bank); ?></strong>
466
  </div>
467
  </form>
468
  <script type="text/javascript">
469
+ jQuery(document).ready(function()
470
+ {
471
+ jQuery("a[rel^=\"prettyPhoto\"]").prettyPhoto
472
+ ({
473
+ animation_speed: 1000,
474
+ slideshow: 4000,
475
+ autoplay_slideshow: false,
476
+ opacity: 0.80,
477
+ show_title: false,
478
+ allow_resize: true
479
+ });
480
+ });
481
  jQuery("#ux_dynamic_form_submit").validate
482
  ({
483
  rules:
views/dashboard.php CHANGED
@@ -41,7 +41,8 @@ $last_form_id = $wpdb->get_var
41
  <a class="btn btn-danger" href="#"
42
  onclick="restore_factory_settings();"><?php _e("Restore Factory Settings", contact_bank); ?>
43
  </a>
44
- <div class="separator-doubled"></div>
 
45
  <div class="fluid-layout">
46
  <div class="layout-span9" style="min-height:600px;">
47
  <div class="widget-layout">
@@ -164,6 +165,18 @@ $last_form_id = $wpdb->get_var
164
  </div>
165
  <script type="text/javascript">
166
  jQuery(".hovertip").tooltip();
 
 
 
 
 
 
 
 
 
 
 
 
167
  oTable = jQuery("#data-table-form").dataTable
168
  ({
169
  "bJQueryUI": false,
41
  <a class="btn btn-danger" href="#"
42
  onclick="restore_factory_settings();"><?php _e("Restore Factory Settings", contact_bank); ?>
43
  </a>
44
+ <div class="separator-doubled" style="margin-bottom: 5px;"></div>
45
+ <a rel="prettyPhoto[contact]" href="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code-cb.png";?>">How to setup Short-Codes for Contact Bank into your WordPress Page/Post?</a>
46
  <div class="fluid-layout">
47
  <div class="layout-span9" style="min-height:600px;">
48
  <div class="widget-layout">
165
  </div>
166
  <script type="text/javascript">
167
  jQuery(".hovertip").tooltip();
168
+ jQuery(document).ready(function()
169
+ {
170
+ jQuery("a[rel^=\"prettyPhoto\"]").prettyPhoto
171
+ ({
172
+ animation_speed: 1000,
173
+ slideshow: 4000,
174
+ autoplay_slideshow: false,
175
+ opacity: 0.80,
176
+ show_title: false,
177
+ allow_resize: true
178
+ });
179
+ });
180
  oTable = jQuery("#data-table-form").dataTable
181
  ({
182
  "bJQueryUI": false,
views/shortcode.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <form id="shortcode" class="layout-form" method="post">
2
+ <div class="fluid-layout">
3
+ <div class="layout-span12">
4
+
5
+ <div class="widget-layout">
6
+ <div class="widget-layout-title">
7
+ <h4>
8
+ <?php _e("How to setup Short-Codes for Contact Bank into your WordPress Page/Post?", contact_bank); ?>
9
+ </h4>
10
+ </div>
11
+ <div class="widget-layout-body">
12
+ <a class="btn btn-info" href="admin.php?page=dashboard"><?php _e("Back to Dashboard", contact_bank); ?></a>
13
+ <div class="separator-doubled"></div>
14
+ <div class="fluid-layout">
15
+ <div class="layout-span12">
16
+ <div class="widget-layout">
17
+ <div class="widget-layout-body">
18
+ <img src="<?php echo CONTACT_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code-cb.png";?>" />
19
+ </div>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </form>