WP Photo Album Plus - Version 8.0.00.011

Version Description

= 7.7.07 =

  • This version addresses various minor bug fixes and feature requests.
Download this release

Release Info

Developer opajaap
Plugin Icon wp plugin WP Photo Album Plus
Version 8.0.00.011
Comparing to
See all releases

Code changes from version 8.0.00.010 to 8.0.00.011

changelog.txt CHANGED
@@ -12,6 +12,7 @@ Ajax is always activated, because there can no longer be conflicts due to inacce
12
  * Widgets do no longer show up anywhere if the corresponding feature is not enabled. e.g. Notify widget - Enable email. etc.
13
  * The shortcode to display the most recently uploaded photo did not work when additionally the album was specified e.g.
14
  [wppa type="photo" photo="#last,12"] or [wppa type="photo" album="12" photo="#last"]. Fixed. Works also for type="mphoto" and type="xphoto".
 
15
 
16
  = 7.7.07 =
17
 
12
  * Widgets do no longer show up anywhere if the corresponding feature is not enabled. e.g. Notify widget - Enable email. etc.
13
  * The shortcode to display the most recently uploaded photo did not work when additionally the album was specified e.g.
14
  [wppa type="photo" photo="#last,12"] or [wppa type="photo" album="12" photo="#last"]. Fixed. Works also for type="mphoto" and type="xphoto".
15
+ * Fixed a slideshow filmstrip layout issue for theme twentytwentyone.
16
 
17
  = 7.7.07 =
18
 
js/wppa-admin-scripts.js CHANGED
@@ -1,7 +1,7 @@
1
  /* admin-scripts.js */
2
  /* Package: wp-photo-album-plus
3
  /*
4
- /* Version 8.0.00.009
5
  /* Various js routines used in admin pages
6
  */
7
 
@@ -178,217 +178,12 @@ function wppaReUpload( event, photo, expectedName, reload ) {
178
  xhr.send( formData );
179
  }
180
 
181
- /* This functions does the init after loading settings page. do not put this code in the document.ready function!!! */
182
- function wppaInitSettings() {
183
- wppaCheckSlideOnlyLink();
184
- wppaCheckAlbumWidgetLink();
185
- wppaCheckAlbumNavigatorWidgetLink();
186
- wppaCheckSlideLink();
187
- wppaCheckCoverImg();
188
- wppaCheckTagLink()
189
- wppaCheckRating();
190
- wppaCheckComments();
191
- wppaCheckCustom();
192
- wppaCheckNumbar();
193
- wppaCheckWatermark();
194
- wppaCheckPopup();
195
- wppaCheckGravatar();
196
- wppaCheckUserUpload();
197
- wppaCheckFotomoto();
198
- wppaCheckLinkPageErr('sphoto');
199
- wppaCheckLinkPageErr('mphoto');
200
- wppaCheckLinkPageErr('xphoto');
201
- wppaCheckLinkPageErr('topten_widget');
202
- wppaCheckLinkPageErr('slideonly_widget');
203
- wppaCheckLinkPageErr('potd');
204
- wppaCheckLinkPageErr('comment_widget');
205
- wppaCheckLinkPageErr('thumbnail_widget');
206
- wppaCheckLinkPageErr('lasten_widget');
207
- wppaCheckLinkPageErr('album_widget');
208
- wppaCheckLinkPageErr('tagcloud');
209
- wppaCheckLinkPageErr('multitag');
210
- wppaCheckLinkPageErr('super_view');
211
- wppaCheckSplitNamedesc();
212
- wppaCheckCoverType();
213
- wppaCheckNewpag();
214
- wppaCheckCDN();
215
- wppaCheckAutoPage();
216
- wppaCheckGps();
217
- wppaCheckFontPreview();
218
- wppaCheckSmWidgetLink();
219
-
220
- var tab = new Array('O','I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII');
221
- var sub = new Array('A','B','C','D','E','F','G','H','I','J','K','L','M','X','Y');
222
-
223
- for (table=1; table<13; table++) {
224
- var cookie = wppa_getCookie('table_'+table);
225
- if (cookie == 'on') {
226
- wppaShowTable(table); // Refreshes cookie, so it 'never' forgets
227
- }
228
- else {
229
- wppaHideTable(table); // Refreshes cookie, so it 'never' forgets
230
- }
231
- for (subtab=0; subtab<15; subtab++) {
232
- cookie = wppa_getCookie('table_'+tab[table-1]+'-'+sub[subtab]);
233
- if (cookie == 'on') {
234
- wppaToggleSubTable(tab[table-1],sub[subtab]);
235
- }
236
- }
237
- wppaToggleSubTable(tab[table-1],'Z');
238
- }
239
- }
240
-
241
- // Quick sel on settings page will be released at version 5.5.0
242
- function wppaQuickSel() {
243
- var tab = new Array('O','I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII');
244
- var sub = new Array('A','B','C','D','E','F','G','H','I','J','K','L','M','X','Y');
245
- var tag;
246
- var _cls;
247
-
248
- // Open Tables and subtables
249
- for ( table = 1; table < 13; table++ ) {
250
- if ( table < 13 ) {
251
- wppaShowTable(table); // was Show Refreshes cookie, so it 'never' forgets
252
- }
253
- else {
254
- wppaHideTable(table); // Refreshes cookie, so it 'never' forgets
255
- }
256
- wppa_tablecookieoff(table);
257
- for (subtab=0; subtab<15; subtab++) {
258
- cookie = wppa_getCookie('table_'+tab[table-1]+'-'+sub[subtab]);
259
- if (cookie == 'on') {
260
- wppaToggleSubTable(tab[table-1],sub[subtab]);
261
- }
262
- var selection = jQuery('.wppa-'+tab[table-1]+'-'+sub[subtab]);
263
- if ( selection.length > 0 ) {
264
- selection.removeClass('wppa-none');
265
- // For compatibility we fake all subtables are closed, because we close almost everything later on
266
- wppaSubTabOn[tab[table-1]+'-'+sub[subtab]] = false;//true;
267
- wppa_tablecookieoff(tab[table-1]+'-'+sub[subtab]);
268
- }
269
- }
270
- }
271
-
272
- // Find tags
273
- tag1 = jQuery("#wppa-quick-selbox-1").val();
274
- tag2 = jQuery("#wppa-quick-selbox-2").val();
275
-
276
- // Both empty? close all (sub)tables
277
- if ( tag1 == '-' && tag2 == '-' ) {
278
- jQuery( '._wppatag-' ).addClass( 'wppa-none' );
279
- for ( table = 1; table < 13; table++ ) {
280
- wppaHideTable( table );
281
- }
282
- }
283
- // Hide not wanted items
284
- else {
285
- if ( tag1 != '-' ) {
286
- jQuery( '._wppatag-'+tag1 ).addClass('wppa-none');
287
- }
288
- if ( tag2 != '-' ) {
289
- jQuery( '._wppatag-'+tag2 ).addClass('wppa-none');
290
- }
291
- }
292
- }
293
-
294
- function wppaToggleTable(table) {
295
- if (jQuery('#wppa_table_'+table).css('display')=='none') {
296
- jQuery('#wppa_table_'+table).css('display', 'inline');
297
- wppa_tablecookieon(table);
298
- }
299
- else {
300
- jQuery('#wppa_table_'+table).css('display', 'none');
301
- wppa_tablecookieoff(table);
302
- }
303
-
304
- }
305
-
306
- var wppaSubTabOn = new Array();
307
-
308
- function wppaToggleSubTable(table,subtable) {
309
-
310
- // Hide
311
- if (wppaSubTabOn[table+'-'+subtable]) {
312
- jQuery('.wppa-'+table+'-'+subtable).addClass('wppa-none');
313
- jQuery('.wppa-'+table+'-'+subtable+'-help').css('display','none');
314
- wppaSubTabOn[table+'-'+subtable] = false;
315
- wppa_tablecookieoff(table+'-'+subtable);
316
- }
317
-
318
- // Show
319
- else {
320
- jQuery('.wppa-'+table+'-'+subtable).removeClass('wppa-none');
321
- jQuery('.wppa-'+table+'-'+subtable+'-h').css('display','');
322
- wppaSubTabOn[table+'-'+subtable] = true;
323
- wppa_tablecookieon(table+'-'+subtable);
324
- }
325
-
326
- }
327
-
328
- function wppaHideTable(table) {
329
- jQuery('#wppa_table_'+table).css('display', 'none');
330
- jQuery('#wppa_tableHide-'+table).css('display', 'none');
331
- jQuery('#wppa_tableShow-'+table).css('display', 'inline');
332
- wppa_tablecookieoff(table);
333
- }
334
-
335
- function wppaShowTable(table) {
336
- jQuery('#wppa_table_'+table).css('display', 'block');
337
- jQuery('#wppa_tableHide-'+table).css('display', 'inline');
338
- jQuery('#wppa_tableShow-'+table).css('display', 'none');
339
- wppa_tablecookieon(table);
340
- }
341
 
342
  var _wppaRefreshAfter = false;
343
  function wppaRefreshAfter() {
344
  _wppaRefreshAfter = true;
345
  }
346
 
347
- function wppaFollow( id, clas ) {
348
-
349
- if ( jQuery('#'+id).prop('checked') ) {
350
- jQuery('.'+clas).css('display', '');
351
- }
352
- else {
353
- jQuery('.'+clas).css('display', 'none');
354
- }
355
- }
356
-
357
- // Check for concurrent lightbox and video.
358
- // This is not possible because the controls can not be reached.
359
- function wppaCheckSlideVideoControls() {
360
-
361
- var link = document.getElementById( 'slideshow_linktype' ).value;
362
- if ( link == 'none' ) {
363
- return;
364
- }
365
-
366
- alert('Warning! '+
367
- "\n"+
368
- 'You can not have video controls on a videoslide when there is a link on the slide.'+
369
- "\n"+
370
- 'The videoslide will not show controls and will also not autoplay');
371
- }
372
-
373
- function wppaCheckFotomoto() {
374
- var on = document.getElementById("fotomoto_on").checked;
375
- if ( on ) {
376
- jQuery(".wppa_fotomoto").css('display', '');
377
- }
378
- else {
379
- jQuery(".wppa_fotomoto").css('display', 'none');
380
- }
381
- }
382
-
383
- function wppaCheckFontPreview() {
384
- var font = document.getElementById('textual_watermark_font').value;
385
- var type = document.getElementById('textual_watermark_type').value;
386
- var fsrc = wppaFontDirectory+'wmf'+font+'-'+type+'.png';
387
- var tsrc = wppaFontDirectory+'wmf'+type+'-'+font+'.png';
388
- jQuery('#wm-font-preview').attr('src', fsrc);
389
- jQuery('#wm-type-preview').attr('src', tsrc);
390
- }
391
-
392
  /* Adjust visibility of selection radiobutton if fixed photo is chosen or not */
393
  /* Also: hide/show order# stuff */
394
  function wppaCheckWidgetMethod() {
@@ -431,245 +226,6 @@ function wppaCheckWidgetMethod() {
431
  }
432
 
433
 
434
- /* Check for CDN type */
435
- function wppaCheckCDN() {
436
- var cdn = document.getElementById('cdn_service').value;
437
- if ( cdn == 'cloudinary' || cdn == 'cloudinarymaintenance' ) jQuery('.cloudinary').css('display', '');
438
- else jQuery('.cloudinary').css('display', 'none');
439
- }
440
-
441
-
442
- function wppaCheckAutoPage() {
443
- var auto = document.getElementById('auto_page').checked;
444
- if ( auto ) jQuery('.autopage').css('display', '');
445
- else jQuery('.autopage').css('display', 'none');
446
- }
447
-
448
-
449
- /* Enables or disables rating system settings */
450
- function wppaCheckRating() {
451
- var Rt = document.getElementById('rating_on').checked;
452
- if (Rt) {
453
- jQuery('.wppa_rating').css('color', '#333');
454
- jQuery('.wppa_rating_html').css('visibility', 'visible');
455
- jQuery('.wppa_rating_').css('display', '');
456
- }
457
- else {
458
- jQuery('.wppa_rating').css('color', '#999');
459
- jQuery('.wppa_rating_html').css('visibility', 'hidden');
460
- jQuery('.wppa_rating_').css('display', 'none');
461
- }
462
- }
463
-
464
- function wppaCheckComments() {
465
- var Cm = document.getElementById('show_comments').checked;
466
- if (Cm) {
467
- jQuery('.wppa_comment').css('color', '#333');
468
- jQuery('.wppa_comment_html').css('visibility', 'visible');
469
- jQuery('.wppa_comment_').css('display', '');
470
- }
471
- else {
472
- jQuery('.wppa_comment').css('color', '#999');
473
- jQuery('.wppa_comment_html').css('visibility', 'hidden');
474
- jQuery('.wppa_comment_').css('display', 'none');
475
- }
476
-
477
- }
478
-
479
- function wppaCheckCoverType() {
480
- var Type = document.getElementById('cover_type').value;
481
- var Pos = document.getElementById('coverphoto_pos').value;
482
-
483
- if ( Type == 'imagefactory' || Type == 'imagefactory-mcr' ) {
484
- jQuery('.wppa_imgfact_').css('display', '');
485
- /* if ( Pos == 'left' || Pos == 'right' )
486
- alert('To avoid layout problems: please set Cover photo position ( Table IV-D3 ) to \'top\' or \'bottom\'!');
487
- */ }
488
- else jQuery('.wppa_imgfact_').css('display', 'none');
489
-
490
- if ( Type == 'longdesc' ) {
491
- /* if ( Pos == 'top' || Pos == 'bottom' )
492
- alert('To avoid layout problems: please set Cover photo position ( Table IV-D3 ) to \'left\' or \'right\'!');
493
- */ }
494
- }
495
-
496
- function wppaCheckNewpag() {
497
- var Np = document.getElementById('newpag_create').checked;
498
- if ( Np ) jQuery('.wppa_newpag').css('display', '');
499
- else jQuery('.wppa_newpag').css('display', 'none');
500
- }
501
-
502
- function wppaCheckCustom() {
503
- var Cm = document.getElementById('custom_on').checked;
504
- if (Cm) {
505
- jQuery('.wppa_custom').css('color', '#333');
506
- jQuery('.wppa_custom_html').css('visibility', 'visible');
507
- jQuery('.wppa_custom_').css('display', '');
508
- }
509
- else {
510
- jQuery('.wppa_custom').css('color', '#999');
511
- jQuery('.wppa_custom_html').css('visibility', 'hidden');
512
- jQuery('.wppa_custom_').css('display', 'none');
513
- }
514
- }
515
-
516
- function wppaCheckWidgetLink() {
517
- if (document.getElementById('wlp').value == '-1') {
518
- jQuery('.wppa_wlu').css('display', '');
519
- jQuery('.wppa_wlt').css('visibility', 'hidden');
520
- }
521
- else {
522
- jQuery('.wppa_wlu').css('display', 'none');
523
- jQuery('.wppa_wlt').css('visibility', 'visible');
524
- }
525
- }
526
-
527
- function wppaCheckSmWidgetLink() {
528
- if (document.getElementById('widget_sm_linktype').value == 'home') {
529
- jQuery('.wppa_smrp').css('visibility', 'hidden');
530
- }
531
- else {
532
- jQuery('.wppa_smrp').css('visibility', '');
533
- }
534
- }
535
-
536
-
537
- function wppaCheckSlideOnlyLink() {
538
- var lvalue = document.getElementById('slideonly_widget_linktype').value;
539
- if (lvalue == 'none' || lvalue == 'file' || lvalue == 'widget' || lvalue == 'lightbox' || lvalue == 'fullpopup') {
540
- jQuery('.wppa_solp').css('visibility', 'hidden');
541
- }
542
- else {
543
- jQuery('.wppa_solp').css('visibility', 'visible');
544
- }
545
- if (lvalue == 'none' || lvalue == 'lightbox' || lvalue == 'fullpopup') {
546
- jQuery('.wppa_solb').css('visibility', 'hidden');
547
- }
548
- else {
549
- jQuery('.wppa_solb').css('visibility', 'visible');
550
- }
551
- }
552
-
553
- function wppaCheckAlbumWidgetLink() {
554
- var lvalue = document.getElementById('album_widget_linktype').value;
555
- if (lvalue == 'lightbox') {
556
- jQuery('.wppa_awlp').css('visibility', 'hidden');
557
- }
558
- else {
559
- jQuery('.wppa_awlp').css('visibility', 'visible');
560
- }
561
- if (lvalue == 'lightbox') {
562
- jQuery('.wppa_awlb').css('visibility', 'hidden');
563
- }
564
- else {
565
- jQuery('.wppa_awlb').css('visibility', 'visible');
566
- }
567
- }
568
-
569
- function wppaCheckAlbumNavigatorWidgetLink() {
570
- var lvalue = document.getElementById('album_navigator_widget_linktype').value;
571
- if (lvalue == 'lightbox') {
572
- jQuery('.wppa_anwlp').css('visibility', 'hidden');
573
- }
574
- else {
575
- jQuery('.wppa_anwlp').css('visibility', 'visible');
576
- }
577
- if (lvalue == 'lightbox') {
578
- jQuery('.wppa_anwlb').css('visibility', 'hidden');
579
- }
580
- else {
581
- jQuery('.wppa_anwlb').css('visibility', 'visible');
582
- }
583
- }
584
-
585
- function wppaCheckSlideLink() {
586
- var lvalue = document.getElementById('slideshow_linktype').value;
587
- if (lvalue == 'none' || lvalue == 'lightbox' || lvalue == 'fullpopup') {
588
- jQuery('.wppa_sslb').css('visibility', 'hidden');
589
- }
590
- else {
591
- jQuery('.wppa_sslb').css('visibility', 'visible');
592
- }
593
- }
594
-
595
- function wppaCheckCoverImg() {
596
- var lvalue = document.getElementById('coverimg_linktype').value;
597
- if (lvalue == 'none' || lvalue == 'lightbox' || lvalue == 'fullpopup') {
598
- jQuery('.wppa_covimgbl').css('visibility', 'hidden');
599
- }
600
- else {
601
- jQuery('.wppa_covimgbl').css('visibility', 'visible');
602
- }
603
- }
604
-
605
- function wppaCheckTagLink() {
606
- var lvalue = document.getElementById('tagcloud_linktype').value;
607
- /* */
608
- }
609
-
610
- function wppaCheckMTagLink() {
611
- var lvalue = document.getElementById('multitag_linktype').value;
612
- /* */
613
- }
614
-
615
- function wppaCheckNumbar() {
616
- var Nb = document.getElementById('show_slideshownumbar').checked;
617
- if (Nb) {
618
- jQuery('.wppa_numbar').css('display', '');
619
- }
620
- else {
621
- jQuery('.wppa_numbar').css('display', 'none');
622
- }
623
- }
624
-
625
- function wppaCheckWatermark() {
626
- var Wm = document.getElementById('watermark_on').checked;
627
- if (Wm) {
628
- jQuery('.wppa_watermark').css('display', '');
629
- }
630
- else {
631
- jQuery('.wppa_watermark').css('display', 'none');
632
- }
633
- }
634
-
635
- function wppaCheckPopup() {
636
- if (document.getElementById('use_thumb_popup').checked) {
637
- jQuery('.wppa_popup').css('display', '');
638
- }
639
- else {
640
- jQuery('.wppa_popup').css('display', 'none');
641
- }
642
- }
643
-
644
- function wppaCheckGravatar() {
645
- if ( ! document.getElementById('comment_gravatar') ) return;
646
- if (document.getElementById('comment_gravatar').value == 'url') {
647
- jQuery('.wppa_grav').css('display', '');
648
- }
649
- else {
650
- jQuery('.wppa_grav').css('display', 'none');
651
- }
652
- }
653
-
654
- function wppaCheckUserUpload() {
655
- if (document.getElementById('user_upload_on').checked) {
656
- jQuery('.wppa_feup').css('display', '');
657
- }
658
- else {
659
- jQuery('.wppa_feup').css('display', 'none');
660
- }
661
- }
662
-
663
- function wppaCheckSplitNamedesc() {
664
- if (document.getElementById('split_namedesc').checked) {
665
- jQuery('.swap_namedesc').css('display', 'none');
666
- jQuery('.hide_empty').css('display', '');
667
- }
668
- else {
669
- jQuery('.swap_namedesc').css('display', '');
670
- jQuery('.hide_empty').css('display', 'none');
671
- }
672
- }
673
 
674
  function wppa_tablecookieon(i) {
675
  wppa_setCookie('table_'+i, 'on', '365');
@@ -1918,20 +1474,6 @@ function wppaSetComBgCol( id ) {
1918
  }
1919
  }
1920
 
1921
- function wppaCheckLinkPageErr(slug) {
1922
-
1923
- var type = 'nil';
1924
- if ( document.getElementById(slug+'_linktype') ) type = document.getElementById(slug+'_linktype').value;
1925
- var page = document.getElementById(slug+'_linkpage').value;
1926
-
1927
- if ( page == '0' && ( type == 'nil' || type == 'photo' || type == 'single' || type == 'album' || type == 'content' || type == 'slide' || type == 'plainpage' )) {
1928
- jQuery('#'+slug+'-err').css({display:''});
1929
- }
1930
- else {
1931
- jQuery('#'+slug+'-err').css({display:'none'});
1932
- }
1933
- }
1934
-
1935
  function wppaAddCat(val, id) {
1936
  wppaAddTag(val, id);
1937
  }
1
  /* admin-scripts.js */
2
  /* Package: wp-photo-album-plus
3
  /*
4
+ /* Version 8.0.00.011
5
  /* Various js routines used in admin pages
6
  */
7
 
178
  xhr.send( formData );
179
  }
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
  var _wppaRefreshAfter = false;
183
  function wppaRefreshAfter() {
184
  _wppaRefreshAfter = true;
185
  }
186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  /* Adjust visibility of selection radiobutton if fixed photo is chosen or not */
188
  /* Also: hide/show order# stuff */
189
  function wppaCheckWidgetMethod() {
226
  }
227
 
228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
 
230
  function wppa_tablecookieon(i) {
231
  wppa_setCookie('table_'+i, 'on', '365');
1474
  }
1475
  }
1476
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1477
  function wppaAddCat(val, id) {
1478
  wppaAddTag(val, id);
1479
  }
js/wppa-admin-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var wppaImageDirectory,wppaAjaxUrl,wppa_moveup_url="#",wppa_import="Import",wppa_update="Update",wppaUploadToThisAlbum="Upload to this album",wppaCropper=[];function checkjQueryRev(e,t,a){var p=parseFloat(jQuery.fn.jquery);t.checked&&p<a&&(alert(e+"\nThe version of your jQuery library: "+p+" is too low for this feature. It requires version "+a),t.checked="")}function wppaReUpload(e,o,t,r){document.getElementById("wppa-re-up-form-"+o);var a=document.getElementById("wppa-re-up-file-"+o),i=document.getElementById("wppa-re-up-butn-"+o);e.preventDefault();a=a.files[0];if(a.type.match("image.*")){if(0==t.length)alert("Filename will be set to "+a.name);else if(a.name!=t&&!confirm("Filename is different.\nIf you continue, the filename will not be updated!.\n\nContinue?"))return void jQuery("#re-up-"+o).css("display","none");i.value="Uploading...",i.style.color="black";t=new FormData;t.append("photo",a,a.name);var l=new XMLHttpRequest,a="?action=wppa&wppa-action=update-photo&photo-id="+o+"&item=file&wppa-nonce="+document.getElementById("photo-nonce-"+o).value;l.open("POST",wppaAjaxUrl+a,!0),l.onload=function(){if(200===l.status){var e=wppaTrim(l.responseText).split("||");switch(""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),e[1]){case"0":var t,a,p,n=JSON.parse(e[2]);for(t in n)switch(p=n[t],t){case"remark":p=(p=(p=p.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\\/g,""),a="0"!=e[1]?'<span style="color:red;" >'+p+"</span>":'<span style="color:green;" >'+p+"</span>",r&&(a+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+o).html(a);break;case"photourl":wppaCropper[o]?wppaCropper[o].replace(p):jQuery("#photourl-"+o).attr("src",p),jQuery("#thumba-"+o).attr("href",p);break;case"thumburl":jQuery("#thumburl-"+o).attr("src",p);break;case"magickstack":jQuery("#magickstack-"+o).html(p),0<p.length?jQuery("#imstackbutton-"+o).css("display","inline"):jQuery("#imstackbutton-"+o).css("display","none");break;default:jQuery("#"+t+"-"+o).html(p)}i.value="Upload",jQuery("#re-up-"+o).css("display","none");break;case"99":document.getElementById("photoitem-"+o).innerHTML='<span style="color:red">'+e[2]+"</span>";break;default:document.getElementById("remark-"+o).innerHTML='<span style="color:red">'+e[2]+" ("+e[1]+")</span>",i.value="Error occured",i.style.color="red"}}else alert("An error occurred!")},l.send(t)}else alert("File is not an image file!")}function wppaInitSettings(){wppaCheckSlideOnlyLink(),wppaCheckAlbumWidgetLink(),wppaCheckAlbumNavigatorWidgetLink(),wppaCheckSlideLink(),wppaCheckCoverImg(),wppaCheckTagLink(),wppaCheckRating(),wppaCheckComments(),wppaCheckCustom(),wppaCheckNumbar(),wppaCheckWatermark(),wppaCheckPopup(),wppaCheckGravatar(),wppaCheckUserUpload(),wppaCheckFotomoto(),wppaCheckLinkPageErr("sphoto"),wppaCheckLinkPageErr("mphoto"),wppaCheckLinkPageErr("xphoto"),wppaCheckLinkPageErr("topten_widget"),wppaCheckLinkPageErr("slideonly_widget"),wppaCheckLinkPageErr("potd"),wppaCheckLinkPageErr("comment_widget"),wppaCheckLinkPageErr("thumbnail_widget"),wppaCheckLinkPageErr("lasten_widget"),wppaCheckLinkPageErr("album_widget"),wppaCheckLinkPageErr("tagcloud"),wppaCheckLinkPageErr("multitag"),wppaCheckLinkPageErr("super_view"),wppaCheckSplitNamedesc(),wppaCheckCoverType(),wppaCheckNewpag(),wppaCheckCDN(),wppaCheckAutoPage(),wppaCheckGps(),wppaCheckFontPreview(),wppaCheckSmWidgetLink();var e=new Array("O","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"),t=new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","X","Y");for(table=1;table<13;table++){var a=wppa_getCookie("table_"+table);for(("on"==a?wppaShowTable:wppaHideTable)(table),subtab=0;subtab<15;subtab++)"on"==wppa_getCookie("table_"+e[table-1]+"-"+t[subtab])&&wppaToggleSubTable(e[table-1],t[subtab]);wppaToggleSubTable(e[table-1],"Z")}}function wppaQuickSel(){var e=new Array("O","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"),t=new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","X","Y");for(table=1;table<13;table++)for((table<13?wppaShowTable:wppaHideTable)(table),wppa_tablecookieoff(table),subtab=0;subtab<15;subtab++){cookie=wppa_getCookie("table_"+e[table-1]+"-"+t[subtab]),"on"==cookie&&wppaToggleSubTable(e[table-1],t[subtab]);var a=jQuery(".wppa-"+e[table-1]+"-"+t[subtab]);0<a.length&&(a.removeClass("wppa-none"),wppaSubTabOn[e[table-1]+"-"+t[subtab]]=!1,wppa_tablecookieoff(e[table-1]+"-"+t[subtab]))}if(tag1=jQuery("#wppa-quick-selbox-1").val(),tag2=jQuery("#wppa-quick-selbox-2").val(),"-"==tag1&&"-"==tag2)for(jQuery("._wppatag-").addClass("wppa-none"),table=1;table<13;table++)wppaHideTable(table);else"-"!=tag1&&jQuery("._wppatag-"+tag1).addClass("wppa-none"),"-"!=tag2&&jQuery("._wppatag-"+tag2).addClass("wppa-none")}function wppaToggleTable(e){"none"==jQuery("#wppa_table_"+e).css("display")?(jQuery("#wppa_table_"+e).css("display","inline"),wppa_tablecookieon(e)):(jQuery("#wppa_table_"+e).css("display","none"),wppa_tablecookieoff(e))}jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll",function(){wppaMakeLazyVisible("windowon")}),wppaMakeLazyVisible("docready")});var wppaSubTabOn=new Array;function wppaToggleSubTable(e,t){wppaSubTabOn[e+"-"+t]?(jQuery(".wppa-"+e+"-"+t).addClass("wppa-none"),jQuery(".wppa-"+e+"-"+t+"-help").css("display","none"),wppaSubTabOn[e+"-"+t]=!1,wppa_tablecookieoff(e+"-"+t)):(jQuery(".wppa-"+e+"-"+t).removeClass("wppa-none"),jQuery(".wppa-"+e+"-"+t+"-h").css("display",""),wppaSubTabOn[e+"-"+t]=!0,wppa_tablecookieon(e+"-"+t))}function wppaHideTable(e){jQuery("#wppa_table_"+e).css("display","none"),jQuery("#wppa_tableHide-"+e).css("display","none"),jQuery("#wppa_tableShow-"+e).css("display","inline"),wppa_tablecookieoff(e)}function wppaShowTable(e){jQuery("#wppa_table_"+e).css("display","block"),jQuery("#wppa_tableHide-"+e).css("display","inline"),jQuery("#wppa_tableShow-"+e).css("display","none"),wppa_tablecookieon(e)}var _wppaRefreshAfter=!1;function wppaRefreshAfter(){_wppaRefreshAfter=!0}function wppaFollow(e,t){jQuery("#"+e).prop("checked")?jQuery("."+t).css("display",""):jQuery("."+t).css("display","none")}function wppaCheckSlideVideoControls(){"none"!=document.getElementById("slideshow_linktype").value&&alert("Warning! \nYou can not have video controls on a videoslide when there is a link on the slide.\nThe videoslide will not show controls and will also not autoplay")}function wppaCheckFotomoto(){document.getElementById("fotomoto_on").checked?jQuery(".wppa_fotomoto").css("display",""):jQuery(".wppa_fotomoto").css("display","none")}function wppaCheckFontPreview(){var e=document.getElementById("textual_watermark_font").value,t=document.getElementById("textual_watermark_type").value,a=wppaFontDirectory+"wmf"+e+"-"+t+".png",e=wppaFontDirectory+"wmf"+t+"-"+e+".png";jQuery("#wm-font-preview").attr("src",a),jQuery("#wm-type-preview").attr("src",e)}function wppaCheckWidgetMethod(){var e,t,a;if("4"==document.getElementById("wppa-wm").value?(document.getElementById("wppa-wp").style.visibility="visible","day-of-week"==(a=jQuery("#wppa-wp").val())||"day-of-month"==a||"day-of-year"==a?jQuery(".wppa-order").css("visibility",""):jQuery(".wppa-order").css("visibility","hidden")):(document.getElementById("wppa-wp").style.visibility="hidden",jQuery(".wppa-order").css("visibility","hidden")),"1"==document.getElementById("wppa-wm").value)for(e=document.getElementsByName("wppa-widget-photo"),t=0;t<e.length;)e[t].style.visibility="visible",t++;else for(e=document.getElementsByName("wppa-widget-photo"),t=0;t<e.length;)e[t].style.visibility="hidden",t++}function wppaCheckCDN(){var e=document.getElementById("cdn_service").value;"cloudinary"==e||"cloudinarymaintenance"==e?jQuery(".cloudinary").css("display",""):jQuery(".cloudinary").css("display","none")}function wppaCheckAutoPage(){document.getElementById("auto_page").checked?jQuery(".autopage").css("display",""):jQuery(".autopage").css("display","none")}function wppaCheckRating(){document.getElementById("rating_on").checked?(jQuery(".wppa_rating").css("color","#333"),jQuery(".wppa_rating_html").css("visibility","visible"),jQuery(".wppa_rating_").css("display","")):(jQuery(".wppa_rating").css("color","#999"),jQuery(".wppa_rating_html").css("visibility","hidden"),jQuery(".wppa_rating_").css("display","none"))}function wppaCheckComments(){document.getElementById("show_comments").checked?(jQuery(".wppa_comment").css("color","#333"),jQuery(".wppa_comment_html").css("visibility","visible"),jQuery(".wppa_comment_").css("display","")):(jQuery(".wppa_comment").css("color","#999"),jQuery(".wppa_comment_html").css("visibility","hidden"),jQuery(".wppa_comment_").css("display","none"))}function wppaCheckCoverType(){var e=document.getElementById("cover_type").value;document.getElementById("coverphoto_pos").value;"imagefactory"==e||"imagefactory-mcr"==e?jQuery(".wppa_imgfact_").css("display",""):jQuery(".wppa_imgfact_").css("display","none")}function wppaCheckNewpag(){document.getElementById("newpag_create").checked?jQuery(".wppa_newpag").css("display",""):jQuery(".wppa_newpag").css("display","none")}function wppaCheckCustom(){document.getElementById("custom_on").checked?(jQuery(".wppa_custom").css("color","#333"),jQuery(".wppa_custom_html").css("visibility","visible"),jQuery(".wppa_custom_").css("display","")):(jQuery(".wppa_custom").css("color","#999"),jQuery(".wppa_custom_html").css("visibility","hidden"),jQuery(".wppa_custom_").css("display","none"))}function wppaCheckWidgetLink(){"-1"==document.getElementById("wlp").value?(jQuery(".wppa_wlu").css("display",""),jQuery(".wppa_wlt").css("visibility","hidden")):(jQuery(".wppa_wlu").css("display","none"),jQuery(".wppa_wlt").css("visibility","visible"))}function wppaCheckSmWidgetLink(){"home"==document.getElementById("widget_sm_linktype").value?jQuery(".wppa_smrp").css("visibility","hidden"):jQuery(".wppa_smrp").css("visibility","")}function wppaCheckSlideOnlyLink(){var e=document.getElementById("slideonly_widget_linktype").value;"none"==e||"file"==e||"widget"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_solp").css("visibility","hidden"):jQuery(".wppa_solp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_solb").css("visibility","hidden"):jQuery(".wppa_solb").css("visibility","visible")}function wppaCheckAlbumWidgetLink(){var e=document.getElementById("album_widget_linktype").value;"lightbox"==e?jQuery(".wppa_awlp").css("visibility","hidden"):jQuery(".wppa_awlp").css("visibility","visible"),"lightbox"==e?jQuery(".wppa_awlb").css("visibility","hidden"):jQuery(".wppa_awlb").css("visibility","visible")}function wppaCheckAlbumNavigatorWidgetLink(){var e=document.getElementById("album_navigator_widget_linktype").value;"lightbox"==e?jQuery(".wppa_anwlp").css("visibility","hidden"):jQuery(".wppa_anwlp").css("visibility","visible"),"lightbox"==e?jQuery(".wppa_anwlb").css("visibility","hidden"):jQuery(".wppa_anwlb").css("visibility","visible")}function wppaCheckSlideLink(){var e=document.getElementById("slideshow_linktype").value;"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_sslb").css("visibility","hidden"):jQuery(".wppa_sslb").css("visibility","visible")}function wppaCheckCoverImg(){var e=document.getElementById("coverimg_linktype").value;"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_covimgbl").css("visibility","hidden"):jQuery(".wppa_covimgbl").css("visibility","visible")}function wppaCheckTagLink(){document.getElementById("tagcloud_linktype").value}function wppaCheckMTagLink(){document.getElementById("multitag_linktype").value}function wppaCheckNumbar(){document.getElementById("show_slideshownumbar").checked?jQuery(".wppa_numbar").css("display",""):jQuery(".wppa_numbar").css("display","none")}function wppaCheckWatermark(){document.getElementById("watermark_on").checked?jQuery(".wppa_watermark").css("display",""):jQuery(".wppa_watermark").css("display","none")}function wppaCheckPopup(){document.getElementById("use_thumb_popup").checked?jQuery(".wppa_popup").css("display",""):jQuery(".wppa_popup").css("display","none")}function wppaCheckGravatar(){document.getElementById("comment_gravatar")&&("url"==document.getElementById("comment_gravatar").value?jQuery(".wppa_grav").css("display",""):jQuery(".wppa_grav").css("display","none"))}function wppaCheckUserUpload(){document.getElementById("user_upload_on").checked?jQuery(".wppa_feup").css("display",""):jQuery(".wppa_feup").css("display","none")}function wppaCheckSplitNamedesc(){document.getElementById("split_namedesc").checked?(jQuery(".swap_namedesc").css("display","none"),jQuery(".hide_empty").css("display","")):(jQuery(".swap_namedesc").css("display",""),jQuery(".hide_empty").css("display","none"))}function wppa_tablecookieon(e){wppa_setCookie("table_"+e,"on","365")}function wppa_tablecookieoff(e){wppa_setCookie("table_"+e,"off","365")}function wppaCookieCheckbox(e,t){e.checked?wppa_setCookie(t,"on","365"):wppa_setCookie(t,"off","365")}function wppa_move_up(e){document.location=wppa_moveup_url+e+"&wppa-nonce="+document.getElementById("wppa-nonce").value}function checkColor(e){var t=e.substr(5),e=jQuery("#"+t).val();jQuery("#colorbox-"+t).css("background-color",e)}function checkAll(e,t){e=document.getElementById(e);e&&(e.checked?jQuery(t).prop("checked",!0):jQuery(t).prop("checked",!1))}function impUpd(e,t){e.checked?(jQuery(t).val(wppa_update),jQuery(".hideifupdate").css("display","none")):(jQuery(t).val(wppa_import),jQuery(".hideifupdate").css("display",""))}function wppaAjaxDeletePhoto(t,e,a){var p="",n="",p=e||'<div style="padding-left:5px;" >';a?n=a:aftrer="</div>",wppaFeAjaxLog("in");var o=wppaGetXmlHttp(),a=wppaAjaxUrl+"?action=wppa&wppa-action=delete-photo&photo-id="+t;a+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,o.open("GET",a,!0),o.send(),o.onreadystatechange=function(){switch(o.readyState){case 1:document.getElementById("remark-"+t).innerHTML="server connection established";break;case 2:document.getElementById("remark-"+t).innerHTML="request received";break;case 3:document.getElementById("remark-"+t).innerHTML="processing request";break;case 4:var e;200==o.status?("ER"==(e=wppaTrim(o.responseText).split("||"))[0]?(e[3]&&alert(e[3]),jQuery("#wppa-delete-"+t).css("text-decoration","line-through")):""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),0==e[1]?document.getElementById("remark-"+t).innerHTML=e[2]:(document.getElementById("photoitem-"+t).innerHTML=p+e[2]+n,wppaProcessFull(e[3],e[4])),jQuery(window).trigger("scroll"),wppaFeAjaxLog("out")):document.getElementById("photoitem-"+t).innerHTML=p+'<span style="color:red;" >Comm error '+o.status+": "+o.statusText+"</span>"+n}}}function wppaAjaxUndeletePhoto(t){wppaFeAjaxLog("in");var a=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=undelete-photo&photo-id="+t;e+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,a.open("GET",e,!0),a.send(),a.onreadystatechange=function(){switch(a.readyState){case 1:document.getElementById("remark-"+t).innerHTML="server connection established";break;case 2:document.getElementById("remark-"+t).innerHTML="request received";break;case 3:document.getElementById("remark-"+t).innerHTML="processing request";break;case 4:var e;200==a.status?("ER"==(e=wppaTrim(a.responseText).split("||"))[0]?(e[3]&&alert(e[3]),jQuery("#wppa-delete-"+t).css("text-decoration","line-through")):""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),0==e[1]?document.getElementById("remark-"+t).innerHTML=e[2]:document.getElementById("photoitem-"+t).innerHTML='<div style="padding-left:5px;" >'+e[2]+"</div>",wppaFeAjaxLog("out")):document.getElementById("photoitem-"+t).innerHTML=before+'<span style="color:red;" >Comm error '+a.status+": "+a.statusText+"</span>"+after}}}function wppaAjaxApplyWatermark(t,e,a){wppaFeAjaxLog("in");var p=wppaGetXmlHttp();jQuery("#wppa-water-spin-"+t).css({visibility:"visible"});var n="action=wppa&wppa-action=watermark-photo&photo-id="+t;n+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,e&&(n+="&wppa-watermark-file="+e),a&&(n+="&wppa-watermark-pos="+a),p.open("POST",wppaAjaxUrl,!0),p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(n),p.onreadystatechange=function(){var e;4==p.readyState&&(200==p.status?(""!=(e=wppaTrim(p.responseText).split("||"))[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?(document.getElementById("remark-"+t).innerHTML=e[2],setTimeout(function(){document.location.reload(!0)},500)):document.getElementById("remark-"+t).innerHTML='<span style="color:red">'+e[2]+"</span>",jQuery("#wppa-water-spin-"+t).css({visibility:"hidden"}),wppaFeAjaxLog("out")):document.getElementById("remark-"+t).innerHTML='<span style="color:red;" >Comm error '+p.status+": "+p.statusText+"</span>")}}function wppaAjaxUpdateIptc(l,e,t,a){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-iptc&photo-id="+l+"&item="+e+"&wppa-nonce="+document.getElementById("photo-nonce-"+l).value+"&value="+wppaEncode(t)+"&tagname="+a,async:!0,type:"POST",timeout:6e4,beforeSend:function(e){jQuery("#remark-"+l).html("Working, please wait...")},success:function(e,t,a){var p=wppaTrim(e).split("||");if(""!=p[0]&&alert("The server returned unexpected output:\n"+p[0]),"99"===p[1])jQuery("#photoitem-"+l).html(bef+'<span style="color:red">'+p[2]+"</span>"+aft);else{var n,o,r,i=JSON.parse(p[2]);for(n in i)switch(r=i[n],n){case"remark":r=(r=(r=r.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\\/g,""),o="0"!=p[1]?'<span style="color:red;" >'+r+"</span>":'<span style="color:green;" >'+r+"</span>",jQuery("#remark-"+l).html(o);break;case"photourl":wppaCropper[l]?wppaCropper[l].replace(r):jQuery("#photourl-"+l).attr("src",r),jQuery("#thumba-"+l).attr("href",r);break;case"thumburl":jQuery("#thumburl-"+l).attr("src",r);break;case"magickstack":jQuery("#magickstack-"+l).html(r),0<r.length?jQuery("#imstackbutton-"+l).css("display","inline"):jQuery("#imstackbutton-"+l).css("display","none")}}wppaFeAjaxLog("out")},error:function(e,t,a){jQuery("#remark-"+l).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+a+", status = "+t,"force")},complete:function(e,t,a){jQuery("#wppa-admin-spinner").css("display","none"),jQuery(window).trigger("scroll")}})}function wppaAjaxUpdatePhoto(l,s,e,u,c,d){c=c||"",d=d||"",wppaFeAjaxLog("in"),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-photo&photo-id="+l+"&item="+s+"&wppa-nonce="+document.getElementById("photo-nonce-"+l).value+"&value="+wppaEncode(e),async:!0,type:"POST",timeout:6e4,beforeSend:function(e){"description"==s&&jQuery("#wppa-photo-spin-"+l).css({visibility:"visible"}),jQuery("#remark-"+l).html("Working, please wait...")},success:function(e,t,a){var p=wppaTrim(e).split("||");if(""!=p[0]&&alert("The server returned unexpected output:\n"+p[0]),"99"===p[1])jQuery("#photoitem-"+l).html(c+'<span style="color:red">'+p[2]+"</span>"+d);else{var n,o,r,i=JSON.parse(p[2]);for(n in i)switch(r=i[n],n){case"remark":r=(r=(r=r.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\\/g,""),o="0"!=p[1]?'<span style="color:red;" >'+r+"</span>":'<span style="color:green;" >'+r+"</span>",u&&(o+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+l).html(o);break;case"photourl":wppaCropper[l]?wppaCropper[l].replace(r):jQuery("#photourl-"+l).attr("src",r),jQuery("#thumba-"+l).attr("href",r);break;case"thumburl":jQuery("#thumburl-"+l).attr("src",r);break;case"magickstack":jQuery("#magickstack-"+l).html(r),0<r.length?jQuery("#imstackbutton-"+l).css("display","inline"):jQuery("#imstackbutton-"+l).css("display","none");break;default:jQuery("#"+n+"-"+l).html(r)}}"description"==s&&jQuery("#wppa-photo-spin-"+l).css({visibility:"hidden"}),wppaFeAjaxLog("out")},error:function(e,t,a){jQuery("#remark-"+l).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+a+", status = "+t,"force")},complete:function(e,t,a){var p=(p=document.location.href).replace(/&pano-val=./,"");u?setTimeout(function(){document.location.href=p},300):(jQuery("#wppa-admin-spinner").css("display","none"),jQuery(window).trigger("scroll"))}})}function wppaChangeScheduleAlbum(e,t){jQuery(t).prop("checked")?jQuery(".wppa-datetime-"+e).css("display","inline"):(jQuery(".wppa-datetime-"+e).css("display","none"),wppaAjaxUpdateAlbum(e,"scheduledtm",Math.rand()))}function wppaChangeScheduleDelAlbum(e,t){jQuery(t).prop("checked")?jQuery(".wppa-datetimedel-"+e).css("display","inline"):(jQuery(".wppa-datetimedel-"+e).css("display","none"),wppaAjaxUpdateAlbum(e,"scheduledel",Math.rand()))}var _wppaRefreshAfter=!1,wppaAjaxAlbumCount=0,wppaAlbumUpdateMatrix=new Array;function wppaAjaxUpdateAlbum(e,t,a,p){var n=0==jQuery("#wppaalbumdesc:visible").length;jQuery("#wppaalbumdesc-html").click();for(var o=wppaAlbumUpdateMatrix.length,r=0,i=!1,l=-1;r<o;)wppaAlbumUpdateMatrix[r][0]==e&&wppaAlbumUpdateMatrix[r][1]==t&&(i=!0,l=r),r++;i||(wppaAlbumUpdateMatrix[o]=[e,t,"undefined",!1,!1,p],l=o),wppaAlbumUpdateMatrix[l][3]="number"==typeof a?a:a.value,wppaAlbumUpdateMatrix[l][5]=p,wppaAjaxUpdateAlbumMonitor(n)}function wppaAjaxUpdateAlbumMonitor(e){for(var t=wppaAlbumUpdateMatrix.length,a=0;a<t;)wppaAlbumUpdateMatrix[a][2]==wppaAlbumUpdateMatrix[a][3]||wppaAlbumUpdateMatrix[a][4]||(wppaAlbumUpdateMatrix[a][4]=!0,_wppaAjaxUpdateAlbum(wppaAlbumUpdateMatrix[a][0],wppaAlbumUpdateMatrix[a][1],wppaAlbumUpdateMatrix[a][3],e,wppaAlbumUpdateMatrix[a][5])),a++;e&&jQuery("#wppaalbumdesc-tmce").click()}function _wppaAjaxUpdateAlbum(r,i,l,s,u){wppaAjaxAlbumCount++;jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-album&album-id="+r+"&item="+i+"&wppa-nonce="+document.getElementById("album-nonce-"+r).value+"&value="+wppaEncode(l),async:!0,type:"POST",timeout:6e4,beforeSend:function(e){"description"==i&&jQuery("#wppa-album-spin").css({visibility:"visible"}),jQuery("#albumstatus-"+r).html("Working, please wait... ("+wppaAjaxAlbumCount+")")},success:function(e,t,a){e=wppaTrim(e).split("||");if(wppaAjaxAlbumCount--,""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?0==wppaAjaxAlbumCount?jQuery("#albumstatus-"+r).html(e[2]):jQuery("#albumstatus-"+r).html("Working, please wait... ("+wppaAjaxAlbumCount+")"):jQuery("#albumstatus-"+r).html='<span style="color:red">'+e[2]+" ("+e[1]+")</span>",void 0!==e[3]&&wppaProcessFull(e[3],e[4]),u&&"0"==e[1])return jQuery("#albumstatus-"+r).after('<span style="color:blue;font-weight:bold;"> Reloading...</span>'),jQuery("#wppa-admin-spinner").fadeIn(),void setTimeout(function(){wppaReload()},100);"description"==i&&jQuery("#wppa-album-spin").css({visibility:"hidden"});for(var p=0,n=-1,o=wppaAlbumUpdateMatrix.length;p<o;)wppaAlbumUpdateMatrix[p][0]==r&&wppaAlbumUpdateMatrix[p][1]==i&&(n=p),p++;wppaAlbumUpdateMatrix[n][2]=l||0,wppaAlbumUpdateMatrix[n][4]=!1,wppaAlbumUpdateMatrix[n][5]=!1,wppaAjaxUpdateAlbumMonitor(s)},error:function(e,t,a){wppaAjaxAlbumCount--,jQuery("#albumstatus-"+r).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("_wppaAjaxUpdateAlbum failed. Error = "+a+", status = "+t,"force")},complete:function(e,t,a){}})}function wppaProcessFull(e,t){"full"==e&&(jQuery("#full").css("display",""),jQuery("#notfull").css("display","none")),"notfull"==e&&(jQuery("#full").css("display","none"),0<t?jQuery("#notfull").attr("value",wppaUploadToThisAlbum+" (max "+t+")"):jQuery("#notfull").attr("value",wppaUploadToThisAlbum),jQuery("#notfull").css("display",""))}function wppaAjaxUpdateCommentStatus(t,a,e){var p=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=update-comment-status&wppa-photo-id="+t+"&wppa-comment-id="+a+"&wppa-comment-status="+e+"&wppa-nonce="+document.getElementById("photo-nonce-"+t).value;p.onreadystatechange=function(){var e;4==p.readyState&&(200==p.status?(""!=(e=wppaTrim(p.responseText).split("||"))[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?jQuery("#remark-"+t).html(e[2]):jQuery("#remark-"+t).html('<span style="color:red">'+e[2]+"</span>"),jQuery("#wppa-comment-spin-"+a).css("visibility","hidden")):jQuery("#remark-"+t).html('<span style="color:red;" >Comm error '+p.status+": "+p.statusText+"</span>"))},p.open("GET",e,!0),p.send()}function wppaAjaxUpdateOptionCheckBox(t,e){var a=wppaGetXmlHttp(),p=wppaAjaxUrl+"?action=wppa&wppa-action=update-option&wppa-option="+t;p+="&wppa-nonce="+document.getElementById("wppa-nonce").value,e.checked?p+="&value=yes":p+="&value=no",a.onreadystatechange=function(){switch(a.readyState){case 1:case 2:case 3:jQuery("#img_"+t).attr("src",wppaImageDirectory+"spinner.gif");break;case 4:var e=wppaTrim(a.responseText).split("||");""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),404!=a.status?("0"===e[1]?(jQuery("#img_"+t).attr("src",wppaImageDirectory+"tick.png"),jQuery("#img_"+t).attr("title",e[2])):(jQuery("#img_"+t).attr("src",wppaImageDirectory+"cross.png"),jQuery("#img_"+t).attr("title","Error #"+e[1]+", message: "+e[2]+", status: "+a.status)),e[3]&&alert(e[3]),_wppaRefreshAfter&&(_wppaRefreshAfter=!1,document.location.reload(!0))):(jQuery("#img_"+t).attr("src",wppaImageDirectory+"cross.png"),jQuery("#img_"+t).attr("title","Communication error, status = "+a.status)),wppaCheckInconsistencies()}},a.open("GET",p,!0),a.send()}var wppaAlwaysContinue=100;function wppaMaintenanceProc(p,e,r){if(!r&&!e&&"yes"==document.getElementById(p+"_continue").value)return document.getElementById(p+"_continue").value="no",document.getElementById(p+"_button").value="Start!",void(0<jQuery("#"+p+"_togo").html()&&(jQuery("#"+p+"_status").html("Pausing..."),jQuery("#"+p+"_button").css("display","none")));r||(document.getElementById(p+"_continue").value="yes",document.getElementById(p+"_button").value="Stop!",""==jQuery("#"+p+"_status").html()&&jQuery("#"+p+"_status").html("Wait...")),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=maintenance&slug="+p+"&wppa-nonce="+jQuery("#wppa-nonce").val()+(r?"&wppa-cron":""),async:!0,type:"POST",timeout:3e5,beforeSend:function(e){},success:function(e,t,a){var p=e.split("||"),n=p[1],o=!1;return n?(10<p[0].length&&(alert("An error occurred:\n"+p[0]),o=!0),jQuery("#"+n+"_status").html(p[2]),jQuery("#"+n+"_togo").html(p[3]),jQuery("#"+n+"_button").css("display",""),o||"0"==p[3]?"reload"==p[4]?(alert("This page will now be reloaded to finish the operation. Please stay tuned..."),void wppaReload()):void setTimeout("wppaMaintenanceProc('"+n+"', false)",20):void("yes"!=document.getElementById(n+"_continue").value?r||jQuery("#"+n+"_status").html("Pending"):setTimeout("wppaMaintenanceProc('"+n+"', true)",20))):(alert("The server returned unexpected output:\n"+e+"\nIf the current procedure has a Skip One button, press it before retrying. Reloading page..."),void wppaReload())},error:function(e,t,a){wppaConsoleLog("wppaMaintenanceProc failed. Slug = "+p+", Error = "+a+", status = "+t,"force"),jQuery("#"+p+"_status").html("Server error #"+(11-wppaAlwaysContinue));t=!1;--wppaAlwaysContinue<1&&(t=confirm("10 Server errors happened.\nDo you want to continue?"))&&(wppaAlwaysContinue=100),(t||0<wppaAlwaysContinue)&&("wppa_remake"==p&&wppaAjaxUpdateOptionValue("wppa_remake_skip_one",0),"wppa_regen_thumbs"==p&&wppaAjaxUpdateOptionValue("wppa_regen_thumbs_skip_one",0),"wppa_create_o1_files"==p&&wppaAjaxUpdateOptionValue("wppa_create_o1_files_skip_one",0),setTimeout("wppaMaintenanceProc('"+p+"', true)",2e3))},complete:function(e,t,a){}})}function wppaAjaxPopupWindow(e){switch(e){case"wppa_list_index":0;break;case"wppa_list_errorlog":0;break;case"wppa_list_rating":0;break;case"wppa_list_session":0;break;case"wppa_list_comments":0}var t=.9*wppaWindowWidth(),a=wppaGetXmlHttp(),p=wppaAjaxUrl,e="action=wppa&wppa-action=maintenancepopup&slug="+e;e+="&wppa-nonce="+document.getElementById("wppa-nonce").value,a.open("POST",p,!1),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(e),4==a.readyState&&200==a.status&&(a=(e=wppaEntityDecode(a.responseText).split("|"))[0],e[0]="",e=e.join("|").substring(1),t={modal:!0,resizable:!0,width:t,show:{effect:"fadeIn",duration:800},closeText:wppaCloseText},jQuery("#wppa-modal-container").html(e).dialog(t).dialog("open"),jQuery("#wppa-modal-container").css({width:"100%"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",padding:"8px",backgroundColor:"#cccccc",boxSizing:"content-box",zIndex:"9999"}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-dialog-title").html("<h2>"+a+"</h2>"),jQuery(".ui-button").css({position:"absolute",top:"12px",right:"12px"}),jQuery(".ui-button").attr("title",wppaCloseText))}function wppaAjaxUpdateOptionValue(l,e,t){var a="action=wppa&wppa-action=update-option&wppa-option="+wppaEncode(l)+"&wppa-nonce="+document.getElementById("wppa-nonce").value;0!=e&&(a+="number"==typeof e?"&value="+e:t?"&value="+wppaGetSelectionEnumByClass("."+l,","):"&value="+wppaEncode(e.value)),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e5,beforeSend:function(e){jQuery("#img_"+l.replace("#","H")).attr("src",wppaImageDirectory+"spinner.gif")},success:function(e,t,a){e=wppaTrim(e).split("||");if(""!=e[0])alert("The server returned unexpected output:\n"+e[0]);else if("0"===e[1]?(jQuery("#img_"+l.replace("#","H")).attr("src",wppaImageDirectory+"tick.png"),e[3]&&alert(e[3]),_wppaRefreshAfter&&(_wppaRefreshAfter=!1,document.location.reload(!0))):(jQuery("#img_"+l.replace("#","H")).attr("src",wppaImageDirectory+"cross.png"),e[3]&&alert(e[3])),jQuery("#img_"+l.replace("#","H")).attr("title",e[2]),e[4])for(var p,n,o,r=e[4].split(";"),i=0;i<r.length;)p=r[i].split(":"),n=jQuery("#"+p[0]).html(),o=p[1],""!=n&&""==o&&(o='<input type="button" class="button-secundary" style="border-radius:3px;font-size:11px;height:18px;margin: 0 4px;padding:0px;color:red;background-color:pink;" onclick="document.location.reload(true)" value="Reload" />'),jQuery("#"+p[0]).html(o),i++},error:function(e){jQuery("#img_"+l.replace("#","H")).attr("src",wppaImageDirectory+"cross.png"),document.getElementById("img_"+l).title="Communication error"},complete:function(e){wppaCheckInconsistencies(),"spinner_shape"!=l&&"icon_corner_style"!=l||(wppaAjaxGetSpinnerHtml("normal","wppa-spin-pre-1"),wppaAjaxGetSpinnerHtml("lightbox","wppa-spin-pre-2")),"svg_color"!=l&&"svg_bg_color"!=l||wppaAjaxGetSpinnerHtml("normal","wppa-spin-pre-1"),"ovl_svg_color"!=l&&"ovl_svg_bg_color"!=l||wppaAjaxGetSpinnerHtml("lightbox","wppa-spin-pre-2")}})}function wppaEncode(e){if(void 0!==e){if("number"==typeof e)return e;for(var t=(p=(p=e.replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,p="";a<t.length;)p+=t[a],++a<t.length&&(p+="||PLUS||");return p}}function wppaCheckInconsistencies(){jQuery("#use_thumb_popup").prop("checked")&&"lightbox"==jQuery("#thumb_linktype").val()?jQuery(".popup-lightbox-err").css("display",""):jQuery(".popup-lightbox-err").css("display","none")}function wppaGetXmlHttp(){return xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),xmlhttp}function wppaPhotoStatusChange(e){if(jQuery("#psdesc-"+e).css({display:"none"}),jQuery("#status-"+e)){if(elm=document.getElementById("status-"+e),"pending"!=elm.value&&"scheduled"!=elm.value||jQuery("#photoitem-"+e).css({backgroundColor:"#ffebe8",borderColor:"#cc0000"}),"publish"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#ffffe0",borderColor:"#e6db55"}),"featured"==elm.value){jQuery("#photoitem-"+e).css({backgroundColor:"#e0ffe0",borderColor:"#55ee55"});var t=document.getElementById("pname-"+e).value.split(".");if(1<t.length)for(var a=0;a<t.length;)"jpg"!=t[a]&&"JPG"!=t[a]||jQuery("#psdesc-"+e).css({display:""}),a++}"gold"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#eeeecc",borderColor:"#ddddbb"}),"silver"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#ffffff",borderColor:"#eeeeee"}),"bronze"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#ddddbb",borderColor:"#ccccaa"}),"scheduled"==elm.value?jQuery(".wppa-datetime-"+e).css("display",""):jQuery(".wppa-datetime-"+e).css("display","none"),jQuery("#scheduledel-"+e).prop("checked")?jQuery(".wppa-del-datetime-"+e).css("display",""):jQuery(".wppa-del-datetime-"+e).css("display","none")}}function wppaSetComBgCol(e){"approved"==jQuery("#com-stat-"+e).val()?jQuery("#com-tr-"+e).css({backgroundColor:"#ffffe0"}):jQuery("#com-tr-"+e).css({backgroundColor:"#ffebe8"})}function wppaCheckLinkPageErr(e){var t="nil";document.getElementById(e+"_linktype")&&(t=document.getElementById(e+"_linktype").value),"0"!=document.getElementById(e+"_linkpage").value||"nil"!=t&&"photo"!=t&&"single"!=t&&"album"!=t&&"content"!=t&&"slide"!=t&&"plainpage"!=t?jQuery("#"+e+"-err").css({display:"none"}):jQuery("#"+e+"-err").css({display:""})}function wppaAddCat(e,t){wppaAddTag(e,t)}function wppaAddTag(e,t){t=document.getElementById(t);e&&(t.value?t.value+=","+e:t.value=e,"-clear-"==e&&(t.value=""))}function wppaRefresh(e){e=new String(document.location).split("#")[0]+"#"+e;document.location=e}function wppaReload(e){e?(url=document.location.href.split("#"),document.location.href=url[0]+e,setTimeout(function(){document.location.reload(!0)},10)):document.location.reload(!0)}var wppaFeCount=0;function wppaFeAjaxLog(e){"in"==e&&(0==wppaFeCount&&jQuery("#wppa-fe-exit").css("display","none"),wppaFeCount++,jQuery("#wppa-fe-count").html(wppaFeCount)),"out"==e&&(1==wppaFeCount&&(jQuery("#wppa-fe-count").html(""),jQuery("#wppa-fe-exit").css("display","inline"),wppaFeCount--),1<wppaFeCount&&(wppaFeCount--,jQuery("#wppa-fe-count").html(wppaFeCount)))}function wppaArrayToEnum(e,t){temp=e.sort(function(e,t){return e-t});for(var a,p="",n=-1,o=-2,r=0,i=!1,l=0;l<e.length;)0!=(a=e[l].valueOf())&&(r=n,a==++r?i=!0:i?(p+=n==o?t+n+t+a:t+t+n+t+a,i=!1):p+=t+a,i||(o=a,o++),n=a),l++;for(i&&(p+=".."+n);"."==p.substr(0,1);)p=p.substr(1);for(;p.substr(0,1)==t;)p=p.substr(1);return p}function wppaGetSelEnumToId(e,t){p=jQuery("."+e);var a=[];for(i=0,j=0;i<p.length;)p[i].selected&&(a[j]=p[i].value,j++),i++;jQuery("#"+t).val(wppaArrayToEnum(a,"."))}function wppaGetSelectionEnumByClass(e,t){var a,p=[],n=0,o=0;for(t=t||".",a=jQuery(e),o=n=0;n<a.length;)a[n].selected&&(p[o]=a[n].value,o++),n++;return wppaArrayToEnum(p,t)}function wppaEditSearch(e,t){t=jQuery("#"+t).val();0==t.length?alert("Please enter searchstring"):document.location.href=e+"&wppa-searchstring="+t}function wppaEditTrash(e){document.location.href=e}function wppaExportDbTable(p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=export-table&table="+p,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){jQuery("#"+p+"-spin").css("display","inline")},success:function(e,t,a){e=e.split("||");"0"==e[1]?document.location=e[2]:alert("Error: "+e[1]+"\n\n"+e[2])},error:function(e,t,a){alert("Export Db Table "+p+" failed. Error = "+a+", status = "+t)},complete:function(e,t,a){jQuery("#"+p+"-spin").css("display","none")}})}function wppaDismissAdminNotice(e,t){wppaAjaxUpdateOptionCheckBox(e,t),jQuery("#wppa-wr-").css("display","none")}function wppaAjaxUpdateTogo(n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=gettogo&slug="+n,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){},success:function(e,t,a){var p=e.split("|");jQuery("#"+n+"_togo").html(p[0]);e=jQuery("#"+n+"_status").html(),p=p[1];""!=e&&""==p&&(p='<input type="button" class="button-secundary" style="border-radius:3px;font-size:11px;height:18px;margin: 0 4px;padding:0px;color:red;background-color:pink;" onclick="document.location.reload(true)" value="Reload" />'),jQuery("#"+n+"_status").html(p),setTimeout(function(){wppaAjaxUpdateTogo(n)},5e3)},error:function(e){},complete:function(e){}})}function wppaIsEmpty(e){return(null==e||void 0===e||""==e||0==e)&&!0}function wppaTimedConfirm(e){var t={modal:!0,resizable:!1,width:400,show:{effect:"fadeIn",duration:800},closeText:"X",buttons:[{text:"NO",click:function(){jQuery(this).dialog("close")}},{text:"YES",click:function(){jQuery(this).dialog("close")}}]};jQuery("#wppa-modal-container").html(e).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",padding:"8px",backgroundColor:"#cccccc",boxSizing:"content-box",zIndex:"9999"}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"32px"}),jQuery(".ui-button").css({float:"right",position:"relative",bottom:"40px"}),jQuery(".ui-dialog-titlebar-close").css({display:"none"}),jQuery(".ui-button").attr("title",wppaCloseText),setTimeout(function(){jQuery(".ui-button").trigger("click")},6e4)}function wppaAjaxGetSpinnerHtml(e,p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-option&wppa-option=getspinnerpreview&type="+e+"&wppa-nonce="+document.getElementById("wppa-nonce").value,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){},success:function(e,t,a){e=e.split("|");jQuery("#"+p).html(e[0])},error:function(e){},complete:function(e){}})}function wppaDragHorizon(t){var a=0,p=0;function n(e){(e=e||window.event).preventDefault(),a=p-e.clientY,p=e.clientY,t.style.top=t.offsetTop-a+"px"}function o(){document.onmouseup=null,document.onmousemove=null}t.onmousedown=function(e){(e=e||window.event).preventDefault(),pos3=e.clientX,p=e.clientY,document.onmouseup=o,document.onmousemove=n}}function wppaAjaxReplaceLog(){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=maintenancepopup&slug=wppa_list_errorlog&raw=1&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:1e5,beforeSend:function(e){jQuery("#wppa-spinner").show()},success:function(e,t,a){e=wppaEntityDecode(e),jQuery("#wppa-logbody").html(e),jQuery("#wppa-spinner").hide()}})}
1
+ var wppaImageDirectory,wppaAjaxUrl,wppa_moveup_url="#",wppa_import="Import",wppa_update="Update",wppaUploadToThisAlbum="Upload to this album",wppaCropper=[];function checkjQueryRev(e,t,a){var p=parseFloat(jQuery.fn.jquery);t.checked&&p<a&&(alert(e+"\nThe version of your jQuery library: "+p+" is too low for this feature. It requires version "+a),t.checked="")}function wppaReUpload(e,o,t,r){document.getElementById("wppa-re-up-form-"+o);var a=document.getElementById("wppa-re-up-file-"+o),u=document.getElementById("wppa-re-up-butn-"+o);e.preventDefault();a=a.files[0];if(a.type.match("image.*")){if(0==t.length)alert("Filename will be set to "+a.name);else if(a.name!=t&&!confirm("Filename is different.\nIf you continue, the filename will not be updated!.\n\nContinue?"))return void jQuery("#re-up-"+o).css("display","none");u.value="Uploading...",u.style.color="black";t=new FormData;t.append("photo",a,a.name);var i=new XMLHttpRequest,a="?action=wppa&wppa-action=update-photo&photo-id="+o+"&item=file&wppa-nonce="+document.getElementById("photo-nonce-"+o).value;i.open("POST",wppaAjaxUrl+a,!0),i.onload=function(){if(200===i.status){var e=wppaTrim(i.responseText).split("||");switch(""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),e[1]){case"0":var t,a,p,n=JSON.parse(e[2]);for(t in n)switch(p=n[t],t){case"remark":p=(p=(p=p.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\\/g,""),a="0"!=e[1]?'<span style="color:red;" >'+p+"</span>":'<span style="color:green;" >'+p+"</span>",r&&(a+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+o).html(a);break;case"photourl":wppaCropper[o]?wppaCropper[o].replace(p):jQuery("#photourl-"+o).attr("src",p),jQuery("#thumba-"+o).attr("href",p);break;case"thumburl":jQuery("#thumburl-"+o).attr("src",p);break;case"magickstack":jQuery("#magickstack-"+o).html(p),0<p.length?jQuery("#imstackbutton-"+o).css("display","inline"):jQuery("#imstackbutton-"+o).css("display","none");break;default:jQuery("#"+t+"-"+o).html(p)}u.value="Upload",jQuery("#re-up-"+o).css("display","none");break;case"99":document.getElementById("photoitem-"+o).innerHTML='<span style="color:red">'+e[2]+"</span>";break;default:document.getElementById("remark-"+o).innerHTML='<span style="color:red">'+e[2]+" ("+e[1]+")</span>",u.value="Error occured",u.style.color="red"}}else alert("An error occurred!")},i.send(t)}else alert("File is not an image file!")}jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll",function(){wppaMakeLazyVisible("windowon")}),wppaMakeLazyVisible("docready")});var _wppaRefreshAfter=!1;function wppaRefreshAfter(){_wppaRefreshAfter=!0}function wppaCheckWidgetMethod(){var e,t,a;if("4"==document.getElementById("wppa-wm").value?(document.getElementById("wppa-wp").style.visibility="visible","day-of-week"==(a=jQuery("#wppa-wp").val())||"day-of-month"==a||"day-of-year"==a?jQuery(".wppa-order").css("visibility",""):jQuery(".wppa-order").css("visibility","hidden")):(document.getElementById("wppa-wp").style.visibility="hidden",jQuery(".wppa-order").css("visibility","hidden")),"1"==document.getElementById("wppa-wm").value)for(e=document.getElementsByName("wppa-widget-photo"),t=0;t<e.length;)e[t].style.visibility="visible",t++;else for(e=document.getElementsByName("wppa-widget-photo"),t=0;t<e.length;)e[t].style.visibility="hidden",t++}function wppa_tablecookieon(e){wppa_setCookie("table_"+e,"on","365")}function wppa_tablecookieoff(e){wppa_setCookie("table_"+e,"off","365")}function wppaCookieCheckbox(e,t){e.checked?wppa_setCookie(t,"on","365"):wppa_setCookie(t,"off","365")}function wppa_move_up(e){document.location=wppa_moveup_url+e+"&wppa-nonce="+document.getElementById("wppa-nonce").value}function checkColor(e){var t=e.substr(5),e=jQuery("#"+t).val();jQuery("#colorbox-"+t).css("background-color",e)}function checkAll(e,t){e=document.getElementById(e);e&&(e.checked?jQuery(t).prop("checked",!0):jQuery(t).prop("checked",!1))}function impUpd(e,t){e.checked?(jQuery(t).val(wppa_update),jQuery(".hideifupdate").css("display","none")):(jQuery(t).val(wppa_import),jQuery(".hideifupdate").css("display",""))}function wppaAjaxDeletePhoto(t,e,a){var p="",n="",p=e||'<div style="padding-left:5px;" >';a?n=a:aftrer="</div>",wppaFeAjaxLog("in");var o=wppaGetXmlHttp(),a=wppaAjaxUrl+"?action=wppa&wppa-action=delete-photo&photo-id="+t;a+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,o.open("GET",a,!0),o.send(),o.onreadystatechange=function(){switch(o.readyState){case 1:document.getElementById("remark-"+t).innerHTML="server connection established";break;case 2:document.getElementById("remark-"+t).innerHTML="request received";break;case 3:document.getElementById("remark-"+t).innerHTML="processing request";break;case 4:var e;200==o.status?("ER"==(e=wppaTrim(o.responseText).split("||"))[0]?(e[3]&&alert(e[3]),jQuery("#wppa-delete-"+t).css("text-decoration","line-through")):""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),0==e[1]?document.getElementById("remark-"+t).innerHTML=e[2]:(document.getElementById("photoitem-"+t).innerHTML=p+e[2]+n,wppaProcessFull(e[3],e[4])),jQuery(window).trigger("scroll"),wppaFeAjaxLog("out")):document.getElementById("photoitem-"+t).innerHTML=p+'<span style="color:red;" >Comm error '+o.status+": "+o.statusText+"</span>"+n}}}function wppaAjaxUndeletePhoto(t){wppaFeAjaxLog("in");var a=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=undelete-photo&photo-id="+t;e+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,a.open("GET",e,!0),a.send(),a.onreadystatechange=function(){switch(a.readyState){case 1:document.getElementById("remark-"+t).innerHTML="server connection established";break;case 2:document.getElementById("remark-"+t).innerHTML="request received";break;case 3:document.getElementById("remark-"+t).innerHTML="processing request";break;case 4:var e;200==a.status?("ER"==(e=wppaTrim(a.responseText).split("||"))[0]?(e[3]&&alert(e[3]),jQuery("#wppa-delete-"+t).css("text-decoration","line-through")):""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),0==e[1]?document.getElementById("remark-"+t).innerHTML=e[2]:document.getElementById("photoitem-"+t).innerHTML='<div style="padding-left:5px;" >'+e[2]+"</div>",wppaFeAjaxLog("out")):document.getElementById("photoitem-"+t).innerHTML=before+'<span style="color:red;" >Comm error '+a.status+": "+a.statusText+"</span>"+after}}}function wppaAjaxApplyWatermark(t,e,a){wppaFeAjaxLog("in");var p=wppaGetXmlHttp();jQuery("#wppa-water-spin-"+t).css({visibility:"visible"});var n="action=wppa&wppa-action=watermark-photo&photo-id="+t;n+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,e&&(n+="&wppa-watermark-file="+e),a&&(n+="&wppa-watermark-pos="+a),p.open("POST",wppaAjaxUrl,!0),p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(n),p.onreadystatechange=function(){var e;4==p.readyState&&(200==p.status?(""!=(e=wppaTrim(p.responseText).split("||"))[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?(document.getElementById("remark-"+t).innerHTML=e[2],setTimeout(function(){document.location.reload(!0)},500)):document.getElementById("remark-"+t).innerHTML='<span style="color:red">'+e[2]+"</span>",jQuery("#wppa-water-spin-"+t).css({visibility:"hidden"}),wppaFeAjaxLog("out")):document.getElementById("remark-"+t).innerHTML='<span style="color:red;" >Comm error '+p.status+": "+p.statusText+"</span>")}}function wppaAjaxUpdateIptc(i,e,t,a){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-iptc&photo-id="+i+"&item="+e+"&wppa-nonce="+document.getElementById("photo-nonce-"+i).value+"&value="+wppaEncode(t)+"&tagname="+a,async:!0,type:"POST",timeout:6e4,beforeSend:function(e){jQuery("#remark-"+i).html("Working, please wait...")},success:function(e,t,a){var p=wppaTrim(e).split("||");if(""!=p[0]&&alert("The server returned unexpected output:\n"+p[0]),"99"===p[1])jQuery("#photoitem-"+i).html(bef+'<span style="color:red">'+p[2]+"</span>"+aft);else{var n,o,r,u=JSON.parse(p[2]);for(n in u)switch(r=u[n],n){case"remark":r=(r=(r=r.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\\/g,""),o="0"!=p[1]?'<span style="color:red;" >'+r+"</span>":'<span style="color:green;" >'+r+"</span>",jQuery("#remark-"+i).html(o);break;case"photourl":wppaCropper[i]?wppaCropper[i].replace(r):jQuery("#photourl-"+i).attr("src",r),jQuery("#thumba-"+i).attr("href",r);break;case"thumburl":jQuery("#thumburl-"+i).attr("src",r);break;case"magickstack":jQuery("#magickstack-"+i).html(r),0<r.length?jQuery("#imstackbutton-"+i).css("display","inline"):jQuery("#imstackbutton-"+i).css("display","none")}}wppaFeAjaxLog("out")},error:function(e,t,a){jQuery("#remark-"+i).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+a+", status = "+t,"force")},complete:function(e,t,a){jQuery("#wppa-admin-spinner").css("display","none"),jQuery(window).trigger("scroll")}})}function wppaAjaxUpdatePhoto(i,l,e,s,c,d){c=c||"",d=d||"",wppaFeAjaxLog("in"),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-photo&photo-id="+i+"&item="+l+"&wppa-nonce="+document.getElementById("photo-nonce-"+i).value+"&value="+wppaEncode(e),async:!0,type:"POST",timeout:6e4,beforeSend:function(e){"description"==l&&jQuery("#wppa-photo-spin-"+i).css({visibility:"visible"}),jQuery("#remark-"+i).html("Working, please wait...")},success:function(e,t,a){var p=wppaTrim(e).split("||");if(""!=p[0]&&alert("The server returned unexpected output:\n"+p[0]),"99"===p[1])jQuery("#photoitem-"+i).html(c+'<span style="color:red">'+p[2]+"</span>"+d);else{var n,o,r,u=JSON.parse(p[2]);for(n in u)switch(r=u[n],n){case"remark":r=(r=(r=r.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/\\/g,""),o="0"!=p[1]?'<span style="color:red;" >'+r+"</span>":'<span style="color:green;" >'+r+"</span>",s&&(o+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+i).html(o);break;case"photourl":wppaCropper[i]?wppaCropper[i].replace(r):jQuery("#photourl-"+i).attr("src",r),jQuery("#thumba-"+i).attr("href",r);break;case"thumburl":jQuery("#thumburl-"+i).attr("src",r);break;case"magickstack":jQuery("#magickstack-"+i).html(r),0<r.length?jQuery("#imstackbutton-"+i).css("display","inline"):jQuery("#imstackbutton-"+i).css("display","none");break;default:jQuery("#"+n+"-"+i).html(r)}}"description"==l&&jQuery("#wppa-photo-spin-"+i).css({visibility:"hidden"}),wppaFeAjaxLog("out")},error:function(e,t,a){jQuery("#remark-"+i).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+a+", status = "+t,"force")},complete:function(e,t,a){var p=(p=document.location.href).replace(/&pano-val=./,"");s?setTimeout(function(){document.location.href=p},300):(jQuery("#wppa-admin-spinner").css("display","none"),jQuery(window).trigger("scroll"))}})}function wppaChangeScheduleAlbum(e,t){jQuery(t).prop("checked")?jQuery(".wppa-datetime-"+e).css("display","inline"):(jQuery(".wppa-datetime-"+e).css("display","none"),wppaAjaxUpdateAlbum(e,"scheduledtm",Math.rand()))}function wppaChangeScheduleDelAlbum(e,t){jQuery(t).prop("checked")?jQuery(".wppa-datetimedel-"+e).css("display","inline"):(jQuery(".wppa-datetimedel-"+e).css("display","none"),wppaAjaxUpdateAlbum(e,"scheduledel",Math.rand()))}var _wppaRefreshAfter=!1,wppaAjaxAlbumCount=0,wppaAlbumUpdateMatrix=new Array;function wppaAjaxUpdateAlbum(e,t,a,p){var n=0==jQuery("#wppaalbumdesc:visible").length;jQuery("#wppaalbumdesc-html").click();for(var o=wppaAlbumUpdateMatrix.length,r=0,u=!1,i=-1;r<o;)wppaAlbumUpdateMatrix[r][0]==e&&wppaAlbumUpdateMatrix[r][1]==t&&(u=!0,i=r),r++;u||(wppaAlbumUpdateMatrix[o]=[e,t,"undefined",!1,!1,p],i=o),wppaAlbumUpdateMatrix[i][3]="number"==typeof a?a:a.value,wppaAlbumUpdateMatrix[i][5]=p,wppaAjaxUpdateAlbumMonitor(n)}function wppaAjaxUpdateAlbumMonitor(e){for(var t=wppaAlbumUpdateMatrix.length,a=0;a<t;)wppaAlbumUpdateMatrix[a][2]==wppaAlbumUpdateMatrix[a][3]||wppaAlbumUpdateMatrix[a][4]||(wppaAlbumUpdateMatrix[a][4]=!0,_wppaAjaxUpdateAlbum(wppaAlbumUpdateMatrix[a][0],wppaAlbumUpdateMatrix[a][1],wppaAlbumUpdateMatrix[a][3],e,wppaAlbumUpdateMatrix[a][5])),a++;e&&jQuery("#wppaalbumdesc-tmce").click()}function _wppaAjaxUpdateAlbum(r,u,i,l,s){wppaAjaxAlbumCount++;jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-album&album-id="+r+"&item="+u+"&wppa-nonce="+document.getElementById("album-nonce-"+r).value+"&value="+wppaEncode(i),async:!0,type:"POST",timeout:6e4,beforeSend:function(e){"description"==u&&jQuery("#wppa-album-spin").css({visibility:"visible"}),jQuery("#albumstatus-"+r).html("Working, please wait... ("+wppaAjaxAlbumCount+")")},success:function(e,t,a){e=wppaTrim(e).split("||");if(wppaAjaxAlbumCount--,""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?0==wppaAjaxAlbumCount?jQuery("#albumstatus-"+r).html(e[2]):jQuery("#albumstatus-"+r).html("Working, please wait... ("+wppaAjaxAlbumCount+")"):jQuery("#albumstatus-"+r).html='<span style="color:red">'+e[2]+" ("+e[1]+")</span>",void 0!==e[3]&&wppaProcessFull(e[3],e[4]),s&&"0"==e[1])return jQuery("#albumstatus-"+r).after('<span style="color:blue;font-weight:bold;"> Reloading...</span>'),jQuery("#wppa-admin-spinner").fadeIn(),void setTimeout(function(){wppaReload()},100);"description"==u&&jQuery("#wppa-album-spin").css({visibility:"hidden"});for(var p=0,n=-1,o=wppaAlbumUpdateMatrix.length;p<o;)wppaAlbumUpdateMatrix[p][0]==r&&wppaAlbumUpdateMatrix[p][1]==u&&(n=p),p++;wppaAlbumUpdateMatrix[n][2]=i||0,wppaAlbumUpdateMatrix[n][4]=!1,wppaAlbumUpdateMatrix[n][5]=!1,wppaAjaxUpdateAlbumMonitor(l)},error:function(e,t,a){wppaAjaxAlbumCount--,jQuery("#albumstatus-"+r).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("_wppaAjaxUpdateAlbum failed. Error = "+a+", status = "+t,"force")},complete:function(e,t,a){}})}function wppaProcessFull(e,t){"full"==e&&(jQuery("#full").css("display",""),jQuery("#notfull").css("display","none")),"notfull"==e&&(jQuery("#full").css("display","none"),0<t?jQuery("#notfull").attr("value",wppaUploadToThisAlbum+" (max "+t+")"):jQuery("#notfull").attr("value",wppaUploadToThisAlbum),jQuery("#notfull").css("display",""))}function wppaAjaxUpdateCommentStatus(t,a,e){var p=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=update-comment-status&wppa-photo-id="+t+"&wppa-comment-id="+a+"&wppa-comment-status="+e+"&wppa-nonce="+document.getElementById("photo-nonce-"+t).value;p.onreadystatechange=function(){var e;4==p.readyState&&(200==p.status?(""!=(e=wppaTrim(p.responseText).split("||"))[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?jQuery("#remark-"+t).html(e[2]):jQuery("#remark-"+t).html('<span style="color:red">'+e[2]+"</span>"),jQuery("#wppa-comment-spin-"+a).css("visibility","hidden")):jQuery("#remark-"+t).html('<span style="color:red;" >Comm error '+p.status+": "+p.statusText+"</span>"))},p.open("GET",e,!0),p.send()}function wppaAjaxUpdateOptionCheckBox(t,e){var a=wppaGetXmlHttp(),p=wppaAjaxUrl+"?action=wppa&wppa-action=update-option&wppa-option="+t;p+="&wppa-nonce="+document.getElementById("wppa-nonce").value,e.checked?p+="&value=yes":p+="&value=no",a.onreadystatechange=function(){switch(a.readyState){case 1:case 2:case 3:jQuery("#img_"+t).attr("src",wppaImageDirectory+"spinner.gif");break;case 4:var e=wppaTrim(a.responseText).split("||");""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),404!=a.status?("0"===e[1]?(jQuery("#img_"+t).attr("src",wppaImageDirectory+"tick.png"),jQuery("#img_"+t).attr("title",e[2])):(jQuery("#img_"+t).attr("src",wppaImageDirectory+"cross.png"),jQuery("#img_"+t).attr("title","Error #"+e[1]+", message: "+e[2]+", status: "+a.status)),e[3]&&alert(e[3]),_wppaRefreshAfter&&(_wppaRefreshAfter=!1,document.location.reload(!0))):(jQuery("#img_"+t).attr("src",wppaImageDirectory+"cross.png"),jQuery("#img_"+t).attr("title","Communication error, status = "+a.status)),wppaCheckInconsistencies()}},a.open("GET",p,!0),a.send()}var wppaAlwaysContinue=100;function wppaMaintenanceProc(p,e,r){if(!r&&!e&&"yes"==document.getElementById(p+"_continue").value)return document.getElementById(p+"_continue").value="no",document.getElementById(p+"_button").value="Start!",void(0<jQuery("#"+p+"_togo").html()&&(jQuery("#"+p+"_status").html("Pausing..."),jQuery("#"+p+"_button").css("display","none")));r||(document.getElementById(p+"_continue").value="yes",document.getElementById(p+"_button").value="Stop!",""==jQuery("#"+p+"_status").html()&&jQuery("#"+p+"_status").html("Wait...")),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=maintenance&slug="+p+"&wppa-nonce="+jQuery("#wppa-nonce").val()+(r?"&wppa-cron":""),async:!0,type:"POST",timeout:3e5,beforeSend:function(e){},success:function(e,t,a){var p=e.split("||"),n=p[1],o=!1;return n?(10<p[0].length&&(alert("An error occurred:\n"+p[0]),o=!0),jQuery("#"+n+"_status").html(p[2]),jQuery("#"+n+"_togo").html(p[3]),jQuery("#"+n+"_button").css("display",""),o||"0"==p[3]?"reload"==p[4]?(alert("This page will now be reloaded to finish the operation. Please stay tuned..."),void wppaReload()):void setTimeout("wppaMaintenanceProc('"+n+"', false)",20):void("yes"!=document.getElementById(n+"_continue").value?r||jQuery("#"+n+"_status").html("Pending"):setTimeout("wppaMaintenanceProc('"+n+"', true)",20))):(alert("The server returned unexpected output:\n"+e+"\nIf the current procedure has a Skip One button, press it before retrying. Reloading page..."),void wppaReload())},error:function(e,t,a){wppaConsoleLog("wppaMaintenanceProc failed. Slug = "+p+", Error = "+a+", status = "+t,"force"),jQuery("#"+p+"_status").html("Server error #"+(11-wppaAlwaysContinue));t=!1;--wppaAlwaysContinue<1&&(t=confirm("10 Server errors happened.\nDo you want to continue?"))&&(wppaAlwaysContinue=100),(t||0<wppaAlwaysContinue)&&("wppa_remake"==p&&wppaAjaxUpdateOptionValue("wppa_remake_skip_one",0),"wppa_regen_thumbs"==p&&wppaAjaxUpdateOptionValue("wppa_regen_thumbs_skip_one",0),"wppa_create_o1_files"==p&&wppaAjaxUpdateOptionValue("wppa_create_o1_files_skip_one",0),setTimeout("wppaMaintenanceProc('"+p+"', true)",2e3))},complete:function(e,t,a){}})}function wppaAjaxPopupWindow(e){switch(e){case"wppa_list_index":0;break;case"wppa_list_errorlog":0;break;case"wppa_list_rating":0;break;case"wppa_list_session":0;break;case"wppa_list_comments":0}var t=.9*wppaWindowWidth(),a=wppaGetXmlHttp(),p=wppaAjaxUrl,e="action=wppa&wppa-action=maintenancepopup&slug="+e;e+="&wppa-nonce="+document.getElementById("wppa-nonce").value,a.open("POST",p,!1),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(e),4==a.readyState&&200==a.status&&(a=(e=wppaEntityDecode(a.responseText).split("|"))[0],e[0]="",e=e.join("|").substring(1),t={modal:!0,resizable:!0,width:t,show:{effect:"fadeIn",duration:800},closeText:wppaCloseText},jQuery("#wppa-modal-container").html(e).dialog(t).dialog("open"),jQuery("#wppa-modal-container").css({width:"100%"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",padding:"8px",backgroundColor:"#cccccc",boxSizing:"content-box",zIndex:"9999"}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-dialog-title").html("<h2>"+a+"</h2>"),jQuery(".ui-button").css({position:"absolute",top:"12px",right:"12px"}),jQuery(".ui-button").attr("title",wppaCloseText))}function wppaAjaxUpdateOptionValue(i,e,t){var a="action=wppa&wppa-action=update-option&wppa-option="+wppaEncode(i)+"&wppa-nonce="+document.getElementById("wppa-nonce").value;0!=e&&(a+="number"==typeof e?"&value="+e:t?"&value="+wppaGetSelectionEnumByClass("."+i,","):"&value="+wppaEncode(e.value)),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e5,beforeSend:function(e){jQuery("#img_"+i.replace("#","H")).attr("src",wppaImageDirectory+"spinner.gif")},success:function(e,t,a){e=wppaTrim(e).split("||");if(""!=e[0])alert("The server returned unexpected output:\n"+e[0]);else if("0"===e[1]?(jQuery("#img_"+i.replace("#","H")).attr("src",wppaImageDirectory+"tick.png"),e[3]&&alert(e[3]),_wppaRefreshAfter&&(_wppaRefreshAfter=!1,document.location.reload(!0))):(jQuery("#img_"+i.replace("#","H")).attr("src",wppaImageDirectory+"cross.png"),e[3]&&alert(e[3])),jQuery("#img_"+i.replace("#","H")).attr("title",e[2]),e[4])for(var p,n,o,r=e[4].split(";"),u=0;u<r.length;)p=r[u].split(":"),n=jQuery("#"+p[0]).html(),o=p[1],""!=n&&""==o&&(o='<input type="button" class="button-secundary" style="border-radius:3px;font-size:11px;height:18px;margin: 0 4px;padding:0px;color:red;background-color:pink;" onclick="document.location.reload(true)" value="Reload" />'),jQuery("#"+p[0]).html(o),u++},error:function(e){jQuery("#img_"+i.replace("#","H")).attr("src",wppaImageDirectory+"cross.png"),document.getElementById("img_"+i).title="Communication error"},complete:function(e){wppaCheckInconsistencies(),"spinner_shape"!=i&&"icon_corner_style"!=i||(wppaAjaxGetSpinnerHtml("normal","wppa-spin-pre-1"),wppaAjaxGetSpinnerHtml("lightbox","wppa-spin-pre-2")),"svg_color"!=i&&"svg_bg_color"!=i||wppaAjaxGetSpinnerHtml("normal","wppa-spin-pre-1"),"ovl_svg_color"!=i&&"ovl_svg_bg_color"!=i||wppaAjaxGetSpinnerHtml("lightbox","wppa-spin-pre-2")}})}function wppaEncode(e){if(void 0!==e){if("number"==typeof e)return e;for(var t=(p=(p=e.replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,p="";a<t.length;)p+=t[a],++a<t.length&&(p+="||PLUS||");return p}}function wppaCheckInconsistencies(){jQuery("#use_thumb_popup").prop("checked")&&"lightbox"==jQuery("#thumb_linktype").val()?jQuery(".popup-lightbox-err").css("display",""):jQuery(".popup-lightbox-err").css("display","none")}function wppaGetXmlHttp(){return xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),xmlhttp}function wppaPhotoStatusChange(e){if(jQuery("#psdesc-"+e).css({display:"none"}),jQuery("#status-"+e)){if(elm=document.getElementById("status-"+e),"pending"!=elm.value&&"scheduled"!=elm.value||jQuery("#photoitem-"+e).css({backgroundColor:"#ffebe8",borderColor:"#cc0000"}),"publish"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#ffffe0",borderColor:"#e6db55"}),"featured"==elm.value){jQuery("#photoitem-"+e).css({backgroundColor:"#e0ffe0",borderColor:"#55ee55"});var t=document.getElementById("pname-"+e).value.split(".");if(1<t.length)for(var a=0;a<t.length;)"jpg"!=t[a]&&"JPG"!=t[a]||jQuery("#psdesc-"+e).css({display:""}),a++}"gold"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#eeeecc",borderColor:"#ddddbb"}),"silver"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#ffffff",borderColor:"#eeeeee"}),"bronze"==elm.value&&jQuery("#photoitem-"+e).css({backgroundColor:"#ddddbb",borderColor:"#ccccaa"}),"scheduled"==elm.value?jQuery(".wppa-datetime-"+e).css("display",""):jQuery(".wppa-datetime-"+e).css("display","none"),jQuery("#scheduledel-"+e).prop("checked")?jQuery(".wppa-del-datetime-"+e).css("display",""):jQuery(".wppa-del-datetime-"+e).css("display","none")}}function wppaSetComBgCol(e){"approved"==jQuery("#com-stat-"+e).val()?jQuery("#com-tr-"+e).css({backgroundColor:"#ffffe0"}):jQuery("#com-tr-"+e).css({backgroundColor:"#ffebe8"})}function wppaAddCat(e,t){wppaAddTag(e,t)}function wppaAddTag(e,t){t=document.getElementById(t);e&&(t.value?t.value+=","+e:t.value=e,"-clear-"==e&&(t.value=""))}function wppaRefresh(e){e=new String(document.location).split("#")[0]+"#"+e;document.location=e}function wppaReload(e){e?(url=document.location.href.split("#"),document.location.href=url[0]+e,setTimeout(function(){document.location.reload(!0)},10)):document.location.reload(!0)}var wppaFeCount=0;function wppaFeAjaxLog(e){"in"==e&&(0==wppaFeCount&&jQuery("#wppa-fe-exit").css("display","none"),wppaFeCount++,jQuery("#wppa-fe-count").html(wppaFeCount)),"out"==e&&(1==wppaFeCount&&(jQuery("#wppa-fe-count").html(""),jQuery("#wppa-fe-exit").css("display","inline"),wppaFeCount--),1<wppaFeCount&&(wppaFeCount--,jQuery("#wppa-fe-count").html(wppaFeCount)))}function wppaArrayToEnum(e,t){temp=e.sort(function(e,t){return e-t});for(var a,p="",n=-1,o=-2,r=0,u=!1,i=0;i<e.length;)0!=(a=e[i].valueOf())&&(r=n,a==++r?u=!0:u?(p+=n==o?t+n+t+a:t+t+n+t+a,u=!1):p+=t+a,u||(o=a,o++),n=a),i++;for(u&&(p+=".."+n);"."==p.substr(0,1);)p=p.substr(1);for(;p.substr(0,1)==t;)p=p.substr(1);return p}function wppaGetSelEnumToId(e,t){p=jQuery("."+e);var a=[];for(i=0,j=0;i<p.length;)p[i].selected&&(a[j]=p[i].value,j++),i++;jQuery("#"+t).val(wppaArrayToEnum(a,"."))}function wppaGetSelectionEnumByClass(e,t){var a,p=[],n=0,o=0;for(t=t||".",a=jQuery(e),o=n=0;n<a.length;)a[n].selected&&(p[o]=a[n].value,o++),n++;return wppaArrayToEnum(p,t)}function wppaEditSearch(e,t){t=jQuery("#"+t).val();0==t.length?alert("Please enter searchstring"):document.location.href=e+"&wppa-searchstring="+t}function wppaEditTrash(e){document.location.href=e}function wppaExportDbTable(p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=export-table&table="+p,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){jQuery("#"+p+"-spin").css("display","inline")},success:function(e,t,a){e=e.split("||");"0"==e[1]?document.location=e[2]:alert("Error: "+e[1]+"\n\n"+e[2])},error:function(e,t,a){alert("Export Db Table "+p+" failed. Error = "+a+", status = "+t)},complete:function(e,t,a){jQuery("#"+p+"-spin").css("display","none")}})}function wppaDismissAdminNotice(e,t){wppaAjaxUpdateOptionCheckBox(e,t),jQuery("#wppa-wr-").css("display","none")}function wppaAjaxUpdateTogo(n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=gettogo&slug="+n,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){},success:function(e,t,a){var p=e.split("|");jQuery("#"+n+"_togo").html(p[0]);e=jQuery("#"+n+"_status").html(),p=p[1];""!=e&&""==p&&(p='<input type="button" class="button-secundary" style="border-radius:3px;font-size:11px;height:18px;margin: 0 4px;padding:0px;color:red;background-color:pink;" onclick="document.location.reload(true)" value="Reload" />'),jQuery("#"+n+"_status").html(p),setTimeout(function(){wppaAjaxUpdateTogo(n)},5e3)},error:function(e){},complete:function(e){}})}function wppaIsEmpty(e){return(null==e||void 0===e||""==e||0==e)&&!0}function wppaTimedConfirm(e){var t={modal:!0,resizable:!1,width:400,show:{effect:"fadeIn",duration:800},closeText:"X",buttons:[{text:"NO",click:function(){jQuery(this).dialog("close")}},{text:"YES",click:function(){jQuery(this).dialog("close")}}]};jQuery("#wppa-modal-container").html(e).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",padding:"8px",backgroundColor:"#cccccc",boxSizing:"content-box",zIndex:"9999"}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"32px"}),jQuery(".ui-button").css({float:"right",position:"relative",bottom:"40px"}),jQuery(".ui-dialog-titlebar-close").css({display:"none"}),jQuery(".ui-button").attr("title",wppaCloseText),setTimeout(function(){jQuery(".ui-button").trigger("click")},6e4)}function wppaAjaxGetSpinnerHtml(e,p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-option&wppa-option=getspinnerpreview&type="+e+"&wppa-nonce="+document.getElementById("wppa-nonce").value,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){},success:function(e,t,a){e=e.split("|");jQuery("#"+p).html(e[0])},error:function(e){},complete:function(e){}})}function wppaDragHorizon(t){var a=0,p=0;function n(e){(e=e||window.event).preventDefault(),a=p-e.clientY,p=e.clientY,t.style.top=t.offsetTop-a+"px"}function o(){document.onmouseup=null,document.onmousemove=null}t.onmousedown=function(e){(e=e||window.event).preventDefault(),pos3=e.clientX,p=e.clientY,document.onmouseup=o,document.onmousemove=n}}function wppaAjaxReplaceLog(){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=maintenancepopup&slug=wppa_list_errorlog&raw=1&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:1e5,beforeSend:function(e){jQuery("#wppa-spinner").show()},success:function(e,t,a){e=wppaEntityDecode(e),jQuery("#wppa-logbody").html(e),jQuery("#wppa-spinner").hide()}})}
js/wppa-all.js CHANGED
@@ -1,7 +1,7 @@
1
  // wppa-utils
2
  var wppaDebug;wppaJsUtilsVersion="8.0.00.007";var wppaMakeLazyVisibleScrollEndTimer,wppaDebugCounter=0;function wppaAnimate(e,t,a,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),i&&setTimeout(i,10)):jQuery(e).stop().animate(t,a,p,i)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){e=wppaTrimLeft(e,t);return e=wppaTrimRight(e,t)}function wppaTrimLeft(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(0,i)==t;)p=(a=a.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(p-i)==t;)p=(a=a.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);p=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),i=0;i<p.length;i++)if(t=p[i].substr(0,p[i].indexOf("=")),a=p[i].substr(p[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(i=Math.floor(a/6e4))*1e3,t=Math.floor(a/1e3),console.log("At: "+p+":"+i+":"+t+"."+(a-=1e3*t)+" message: "+e))}function wppaSvgHtml(e,t,a,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}t=t||"32px",a="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==a&&(a="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+a+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&(wppaConsoleLog("Doing wppaMakeLazyVisible("+e+")","force"),!wppaLazyBusy)){wppaLazyBusy=!0;var t,a=new Date,p=a.getTime(),i=p-wppaLastLazy;if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var n=0,e=jQuery("*[data-src]");e.each(function(){t=jQuery(this).attr("data-src"),(wppaIsElementInViewport(this)||wppaIsMobile)&&(jQuery(this).attr("src",t),jQuery(this).removeAttr("data-src"),n++)}),0<n&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&(setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery("div").getNiceScroll().resize()},1500)),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),wppaConsoleLog("MakeLazyVisible done after "+i+" ms in "+((p=(a=new Date).getTime())-wppaLastLazy)+" ms. Processed "+n+" out of "+e.length+" elements","force"),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var t=jQuery(e);t[0]&&"BODY"!=t[0].nodeName;){if("none"==jQuery(t[0]).css("display"))return!1;t=jQuery(t[0]).parent()}"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){a=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==a?t:(wppaIsMini[e]?a/2:a)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,t,a=jQuery;wppaOvlOpen&&(t=wppaIsFs()?(a(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(a(".wppa-pctl-div-lb").css({position:"initial"}),a("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(t-=20),t<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(t/12-4))&&(a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?a(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):a(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),a(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,t,a){},error:function(e,t,a){wppaConsoleLog("wppaServerLog failed. Error = "+a+", status = "+t,"force")}})}function wppaTimNow(){return(new Date).getTime()}
3
  // wppa
4
- wppaWppaVer="8.0.00.008";var wppaIsChrome=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),wppaIsSafari=!1,wppaOvlActivePanorama=0,wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",wppaGlobalFsIconSize=32,wppaFsFillcolor="#999999",wppaFsBgcolor="transparent",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlTypes,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlClosing=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomData=[],wppaSphericData=[],wppaFsPolicy="lightbox",wppaOvlGlobal,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaIsIpad=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips()}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var p=jQuery(this).attr("id").substr(6);wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisible("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisible("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",wppaAdjustAllFilmstrips),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery(".wppa-thumb-area").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".albumlist").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".wppa-div").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize()},2e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisible("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var p=jQuery(this).attr("href");p&&("jpg"!=(p=(p=p.split("."))[p.length-1])&&"jpeg"!=p&&"png"!=p||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(p){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(e){return jQuery(".wppa-container").each(function(){var p=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[p]&&_wppaDoAutocol(p,e)}),(e<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(e+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}),jQuery("canvas").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p);if(e){var a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o=wppaGetContainerWidth(p);if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:o})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:o},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var r=document.getElementById("wppa-albumlist-"+p).clientWidth,i=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,n=i-1,s=parseInt((r+wppaCoverSpacing)/i-wppaCoverSpacing);if(wppaColWidth[p]!=r||wppaMCRWidth[p]!=s){wppaColWidth[p]=r,wppaMCRWidth[p]=s;for(var l=0;l<a.length;){switch(l%i){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case n:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:s},wppaResponseSpeed)}}else 1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(s=o-wppaThumbnailAreaDelta-7,t=Math.max(1,parseInt(s/(r+wppaMinThumbSpace))),t=parseInt((s-t*r)/(t+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:t})),jQuery(".thumbnail-frame-comalt-"+p).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var w,u=1,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");c;)w=c*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+u+"-"+p).css("height",w),u++,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*o),wppaFilmStripLength[p]=o-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",o),jQuery(".wppa-simg-"+p).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",o+10),jQuery(".wppa-mimg-"+p).css("width",o),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(o/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*o),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,o,p=jQuery("#wppa-real-calendar-"+e).width();0<p&&(a=!0,t=p*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=p/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),p=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:p,marginBottom:p}),o=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:o})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){wppaConsoleLog("Slide history stack update failed")}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var e=new google.maps.LatLng(e,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:e},t=new google.maps.Map(document.getElementById("map-canvas-"+p),a),o=new google.maps.Marker({position:e,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p),r="";for(n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var n,i=jQuery(".wppa-ss-phototext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(e=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?e+="?":e+="&",e+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=e)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){p=jQuery(p).length;6<p&&(p=6),p<2&&(p=2),jQuery(e).attr("size",p)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var p=jQuery(this).attr("id").substr(5),e=wppaGetContainerWidth(p)-wppaThumbnailAreaDelta,e=e/parseInt((e+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin))-wppaTfMargin;jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+p).css("width",e+"px"),jQuery("#grid-"+p).masonry({itemSelector:".grid-item-"+p,columnWidth:e,gutter:wppaTfMargin,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var p=parseInt(wppaGlobalFsIconSize/4),e=p;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(p+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var p=document.documentElement;p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullScreen&&p.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.0.00.006";function wppaStoreSlideInfo(p,a,e,t,i,w,r,o,n,l,s,d,u,_,m,c,y,h,S,g,x,f,I,j,Q,b,v,N,T,C,k,R,F){n=wppaRepairScriptTags(n),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=N,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+N+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]=wppaRepairBrTags(r),_wppaNames[p][a]=o,_wppaDsc[p][a]=n,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=y,""!=h?_wppaLinkTarget[p][a]=h:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=N,_wppaAudioHtml[p][a]=T,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(o=_wppaRealId[p],_wppaLat[p][o[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][o[_wppaNxtIdx[p]]],_wppaLon[p][o[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,o=_wppaNxtIdx[p],n=(wppaNumbarMax-1)/2;o<n?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-n<o?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=o+n+.5-1,(i=o-n+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(n=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",n,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",n,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,o="#theimg"+e+"-"+p,n="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(o,wppaAnimationSpeed),setTimeout(wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:-l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"none":wppaFadeIn(n,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(o,wppaAnimationSpeed),wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),o=e.naturalWidth;void 0===o&&(o=parseInt(e.style.maxWidth));var n=e.naturalHeight;void 0===n&&(n=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,y,h,S,g,x,f,e=wppaStretch;if(u)j=w-d,h=y=0,x=S=w,f=g=(c=parseInt(j*n/o))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=o||f-d<=n?l<(n+d)/(o+d)?(c=f-d,j=parseInt(c*o/n)):(j=x-d,c=parseInt(j*n/o)):(j=o,c=n),"default"!=_&&"none"!=_){switch(_){case"top":h=0;break;case"center":h=parseInt((f-(c+d))/2);break;case"bottom":h=f-(c+d);break;case"fit":h=0,g=f=c+d}jQuery("#"+a).css({marginTop:h,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":y=0;break;case"center":y=parseInt((w-x)/2);break;case"right":y=w-x}y<0&&(y=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:y})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-h:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var o,n,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaNames[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),n=".pdf"==(o=_wppaHiresUrl[p][e]).substr(o.length-4,o.length),s+='<a href="'+i+'" onclick="wppaStopAudio();wppaStopShow('+p+');" style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'">'+(n?"<iframe "+l+' src="'+o+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if(document.getElementById("wppa-filmstrip-"+p)){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var o=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(o))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):(o=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(o<i?2:i<o-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w+"px"}):(i<o-1.5*w||o+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0)),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var n=0;n<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][n]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+n+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==n?(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]))),n++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?jQuery("#wppa-next-pagelink-"+p).trigger("click"):0<e.length&&jQuery(e).trigger("click")):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).trigger("click"):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t,i="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(i).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(i).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":if(wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a){if(!wppaSlideWrap[p])return void wppaPrev(p);(t=_wppaCurIdx[p]-1)<0&&(t=_wppaSlides[p].length-1)}if("r"==a){if(!wppaSlideWrap[p])return void wppaNext(p);(t=_wppaCurIdx[p]+1)==_wppaSlides[p].length&&(t=0)}wppaGotoKeepState(p,t);break;default:alert("Unimplemented instruction: "+e+" on: "+i)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden"))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
@@ -13,6 +13,6 @@ var wppaJsPopupVersion="7.5.03";function wppaPopUp(p,t,e,r,i,a,o,n,d,s){var c,l,
13
  // wppa-touch
14
  var wppaJsTouchVersion="7.5.03",wppaTriggerElementID=null,wppaFingerCount=0,wppaStartX=0,wppaStartY=0,wppaCurX=0,wppaCurY=0,wppaDeltaX=0,wppaDeltaY=0,wppaHorzDiff=0,wppaVertDiff=0,wppaMinLength=72,wppaSwipeLength=0,wppaSwipeAngle=null,wppaSwipeDirection=null,wppaSwipeOnLightbox=!1,wppaSwipeMocc=0,wppaMobileTimeStart=0;function wppaStartTime(){var p=(new Date).getTime();return wppaMobileTimeStart=p,!0}function wppaInTime(){return(new Date).getTime()-wppaMobileTimeStart<250}function wppaTapLink(p,e){wppaInTime()&&(_bumpClickCount(p),document.location.href=e)}function wppaTouchStart(p,e,a){-1==(wppaSwipeMocc=a)&&(wppaSwipeOnLightbox=!0,p.preventDefault()),1==(wppaFingerCount=p.touches.length)?(wppaStartX=p.touches[0].pageX,wppaStartY=p.touches[0].pageY,wppaTriggerElementID=e):wppaTouchCancel()}function wppaTouchMove(p){wppaSwipeOnLightbox&&p.preventDefault(),1==p.touches.length?(wppaCurX=p.touches[0].pageX,wppaCurY=p.touches[0].pageY):wppaTouchCancel()}function wppaTouchEnd(p){wppaSwipeOnLightbox&&p.preventDefault(),1==wppaFingerCount&&0!=wppaCurX&&(wppaSwipeLength=Math.round(Math.sqrt(Math.pow(wppaCurX-wppaStartX,2)+Math.pow(wppaCurY-wppaStartY,2))),wppaMinLength<=wppaSwipeLength&&(wppaCalculateAngle(),wppaDetermineSwipeDirection(),wppaProcessingRoutine())),wppaTouchCancel()}function wppaTouchCancel(){wppaTriggerElementID=wppaSwipeDirection=wppaSwipeAngle=null,wppaSwipeOnLightbox=!1,wppaSwipeMocc=wppaSwipeLength=wppaVertDiff=wppaHorzDiff=wppaDeltaY=wppaDeltaX=wppaCurY=wppaCurX=wppaStartY=wppaStartX=wppaFingerCount=0}function wppaCalculateAngle(){var p=wppaStartX-wppaCurX,e=wppaCurY-wppaStartY,a=(Math.round(Math.sqrt(Math.pow(p,2)+Math.pow(e,2))),Math.atan2(e,p));(wppaSwipeAngle=Math.round(180*a/Math.PI))<0&&(wppaSwipeAngle=360-Math.abs(wppaSwipeAngle))}function wppaDetermineSwipeDirection(){wppaSwipeDirection=wppaSwipeAngle<=45&&0<=wppaSwipeAngle||wppaSwipeAngle<=360&&315<=wppaSwipeAngle?"left":135<=wppaSwipeAngle&&wppaSwipeAngle<=225?"right":45<wppaSwipeAngle&&wppaSwipeAngle<135?"down":"up"}function wppaProcessingRoutine(){document.getElementById(wppaTriggerElementID);if(wppaSwipeOnLightbox)"left"==wppaSwipeDirection?wppaOvlShowNext():"right"==wppaSwipeDirection&&wppaOvlShowPrev();else{if("right"==wppaSwipeDirection){if(idx=_wppaCurIdx[wppaSwipeMocc]-1,idx<0){if(!wppaSlideWrap)return;idx=_wppaSlides[wppaSwipeMocc].length-1}wppaGotoKeepState(wppaSwipeMocc,idx)}if("left"==wppaSwipeDirection){if(idx=_wppaCurIdx[wppaSwipeMocc]+1,idx==_wppaSlides[wppaSwipeMocc].length){if(!wppaSlideWrap)return;idx=0}wppaGotoKeepState(wppaSwipeMocc,idx)}}wppaTouchCancel()}
15
  // wppa-zoom
16
- var wppaJsZoomVersion="8.0.00.006";function wppaDoZoomPan(n,a){var m=jQuery;a&&(wppaZoomData[n]=a);var o=l(n);if(!o.initialized&&!o.abort){if(o.isLightbox&&m("#wppa-ovl-spin").show(),!o.image.complete)return wppaConsoleLog("Loading image "+n),void setTimeout(function(){wppaDoZoomPan(n)},200);wppaConsoleLog("Loading image "+n+" complete"),m(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),o.manual=!1,o.deltaX=0,o.deltaY=0,o.deltaFactor=1,o.busy=!1,o.div=m("#wppa-pan-div-"+o.itemId),o.canvas=document.getElementById("wppa-pan-canvas-"+o.itemId),o.left=m("#wppa-pctl-left-"+o.itemId),o.right=m("#wppa-pctl-right-"+o.itemId),o.up=m("#wppa-pctl-up-"+o.itemId),o.down=m("#wppa-pctl-down-"+o.itemId),o.zoomin=m("#wppa-pctl-zoomin-"+o.itemId),o.zoomout=m("#wppa-pctl-zoomout-"+o.itemId),o.prev=m("#wppa-pctl-prev-"+o.itemId),o.next=m("#wppa-pctl-next-"+o.itemId),o.exit=m("#wppa-exit-btn-2"),o.canvasWidth=o.width,o.canvasHeight=o.height,o.savedCanvasX=0,o.savedCanvasY=0,o.fromHeight=o.image.height,o.fromWidth=o.image.width,o.imageRatio=o.image.width/o.image.height,o.fromX=0,o.fromY=0,o.centerX=o.fromX+o.fromWidth/2,o.centerY=o.fromY+o.fromHeight/2,o.ctx=null,o.buttondown=!1,o.enableManual=!0,o.ctrlbarUpdate=!0,o.pause=!1,o.time=0,o.right.on("touchstart",function(a){e(n)}),o.right.on("touchend",function(a){h(n)}),o.left.on("touchstart",function(a){i(n)}),o.left.on("touchend",function(a){h(n)}),o.up.on("touchstart",function(a){s(n)}),o.up.on("touchend",function(a){h(n)}),o.down.on("touchstart",function(a){r(n)}),o.down.on("touchend",function(a){h(n)}),o.zoomin.on("touchstart",function(a){c(n)}),o.zoomin.on("touchend",function(a){h(n)}),o.zoomout.on("touchstart",function(a){u(n)}),o.zoomout.on("touchend",function(a){h(n)}),o.canvas&&(o.canvas.addEventListener("touchstart",function(a){f(n,a)}),o.canvas.addEventListener("touchmove",function(a){g(n,a)}),o.canvas.addEventListener("touchend",function(a){w(n)})),o.canvas&&(o.canvas.addEventListener("mousedown",function(a){f(n,a)}),o.canvas.addEventListener("mousemove",function(a){g(n,a)}),o.canvas.addEventListener("mouseup",function(a){w(n)}),o.canvas.addEventListener("mouseleave",function(a){(o=l(n)).manual&&l(n,{pause:!0})}),o.canvas.addEventListener("mouseenter",function(a){var t;l(t=n,{pause:!1}).manual&&p(t)}),document.getElementById("wppa-pan-canvas-"+o.itemId).addEventListener("wheel",function(a){var t;t=n,(a=a).preventDefault(),a.stopPropagation(),o=l(t),l(t,{deltaFactor:1+a.deltaY*o.zoomsensitivity/(wppaIsChrome?1e4:1e3),manual:!1,burrondown:!1}),p(t),setTimeout(function(){l(t,{deltaFactor:1})},25)})),o.right.on("mousedown",function(a){e(n)}),o.right.on("mouseup",function(a){h(n)}),o.left.on("mousedown",function(a){i(n)}),o.left.on("mouseup",function(a){h(n)}),o.up.on("mousedown",function(a){s(n)}),o.up.on("mouseup",function(a){h(n)}),o.down.on("mousedown",function(a){r(n)}),o.down.on("mouseup",function(a){h(n)}),o.zoomin.off("mousedown"),o.zoomin.on("mousedown",function(a){c(n)}),o.zoomin.off("mouseup"),o.zoomin.on("mouseup",function(a){h(n)}),o.zoomout.on("mousedown",function(a){u(n)}),o.zoomout.on("mouseup",function(a){h(n)}),o.isLightbox&&(m("body").on("quitimage",function(a){var t;t=n,wppaConsoleLog("Zoom Quit Image"),o=l(t,{abort:!0}),m(o.canvas).hide(),m("#wppa-pctl-div-"+o.itemId).hide()}),m("#wppa-pctl-div-"+o.itemId).on("click",function(a){wppaKillEvent(a)})),o.isLightbox?(m(window).off("resize",wppaOvlShowSame),m(window).on("resize",wppaOvlShowSame)):m(window).on("resize",function(a){t(n)}),t(n),o.initialized=!0,l(n,o),m("#wppa-ovl-spin").hide(),wppaProtect()}function p(a){var t,n,o,e,i,s=l(a);s.canvas&&(L()<s.time+10?wppaConsoleLog("Skipped render "+a):(l(a,{time:L()}),(s.isLightbox&&!wppaOvlOpen||!s.isLightbox&&wppaOvlOpen)&&(s=l(0,{abort:!0})),s.abort?l(a,{manual:!1,buttondown:!1,pause:!1,ctx:null}):s.busy||(wppaDebugCounter++,wppaConsoleLog("Render zoom "+a+" "+wppaDebugCounter),(s=l(a,{busy:!0})).manual||(s.fromX+=s.deltaX,s.fromY+=s.deltaY,t=s.fromHeight/s.deltaFactor,n=s.fromWidth/s.deltaFactor,50<t&&1!=s.deltaFactor&&(wppaIsFs()||t<=s.image.height)?(s.fromX-=(n-s.fromWidth)/2,s.fromY-=(t-s.fromHeight)/2,s.fromWidth=n,s.fromHeight=t):s.buttondown=!1),s.fromX=Math.max(0,Math.min(s.image.width-s.fromWidth,s.fromX)),s.fromY=Math.max(0,Math.min(s.image.height-s.fromHeight,s.fromY)),o=screen.width/screen.height,e=(1-s.image.width/s.fromWidth)*s.canvas.width/2,i=(1-s.image.height/s.fromHeight)*s.canvas.height/2,s.ctx=s.canvas.getContext("2d"),o>s.imageRatio&&t>s.image.height&&wppaIsFs()||o<=s.imageRatio&&n>s.image.width&&wppaIsFs()?(s.enableManual=!1,s.ctx.clearRect(0,0,s.canvas.width,s.canvas.height),s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,e,i,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"default"})):(s.enableManual=!0,s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,0,0,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"grab"})),wppaIsFs()?(s.fsMaskTop=i-(s.canvas.height-screen.height)/2,s.fsMaskLeft=e-(s.canvas.width-screen.width)/2,s.fsMaskBottom=screen.height-s.fsMaskTop,s.fsMaskRight=screen.width-s.fsMaskLeft):(s.fsMaskTop=0,s.fsMaskLeft=0,s.fsMaskBottom=0,s.fsMaskRight=0),s.ctrlbarUpdate&&(wppaAdjustControlbar(),s.ctrlbarUpdate=!1),s.busy=!1,wppaIsElementInViewport(s.canvas)||(s.buttondown=!1),l(a,s),s.pause||!s.manual&&!s.buttondown||setTimeout(function(){p(a)},10),s.pause&&l(a,{pause:!1}))))}function t(a){var t,n,o,e,i,s,r,c,d,u=l(a);u&&(u.isLightbox?(m("#wppa-overlay-ic").css("display",""),e=(n=!wppaIsFs())?(o=window.innerWidth||screen.width,window.innerHeight||screen.height):(o=screen.width,screen.height),r=0,d=(c=8)+(u.controls?u.icsize+10:0)+10,n?(c+=2*u.borderWidth,d+=2*u.borderWidth):c=40,t=n?e-d>(o-c)/u.imageRatio:(screenRatio=screen.width/screen.height,screenRatio<u.imageRatio),n&&t&&(r=(e-(s=(i=o-c)/u.imageRatio)-d)/2+20),n&&!t&&(s=(i=u.imageRatio*(e-(u.controls?u.icsize:0)-48))/u.imageRatio,r=20),!n&&t&&(i=(s=screen.height)*u.imageRatio,r=0),n||t||(s=(i=screen.width)/u.imageRatio,r=(screen.height-s)/2),m("#wppa-ovl-pan-container").css({marginTop:r}),m("#wppa-overlay-ic").css({marginTop:0,marginLeft:0}),u.canvasWidth=i,u.canvasHeight=s,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight,n?(m("#wppa-ovl-pan-container").css({backgroundColor:u.backgroundColor,padding:u.padding,borderRadius:u.borderRadius+"px",borderWidth:u.borderWidth+"px",width:i,marginLeft:0}),t?m("#wppa-overlay-ic").css({left:4}):m("#wppa-overlay-ic").css({left:(o-i)/2})):(m("#wppa-overlay-ic").css({marginLeft:0}),m("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",borderWidth:"0px",width:i,left:(o-i)/2,position:"fixed"}))):(u.canvasWidth=m(u.div).parent().width(),u.canvasHeight=u.canvasWidth/u.imageRatio,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight),u.ctrlbarUpdate=!0,l(a,u),setTimeout(function(){p(a)},250))}function e(a){var t=l(a),t=t.image.naturalWidth/t.canvas.width;t<1.5&&(t=1.5),l(a,{deltaX:t*=1.5,buttondown:!0,manual:!1}),p(a)}function i(a){var t=l(a),t=t.image.naturalWidth/t.canvas.width;t<1.5&&(t=1.5),l(a,{deltaX:-(t*=1.5),buttondown:!0,manual:!1}),p(a)}function s(a){var t=l(a),t=t.image.naturalHeight/t.canvas.height;t<1.5&&(t=1.5),l(a,{deltaY:-(t*=1.5),buttondown:!0,manual:!1}),p(a)}function r(a){var t=l(a),t=t.image.naturalHeight/t.canvas.height;t<1.5&&(t=1.5),l(a,{deltaY:t*=1.5,buttondown:!0,manual:!1}),p(a)}function c(a){l(a,{deltaFactor:1.005,buttondown:!0,manual:!1}),p(a)}function u(a){l(a,{deltaFactor:.995,buttondown:!0,manual:!1}),p(a)}function h(a){l(a,{deltaX:0,deltaY:0,deltaFactor:1,buttondown:!1})}function f(a,t){var n=l(a),o=v(t).X,e=v(t).Y;if(wppaIsFs()&&n.isLightbox&&(o<n.fsMaskLeft||o>n.fsMaskRight||e<n.fsMaskTop||e>n.fsMaskBottom))return l(0,{abort:!0}),void jQuery("#wppa-overlay-bg").trigger("click");n.enableManual&&(l(a,{manual:!0,savedCanvasX:o=b(a,t).X,savedCanvasY:e=b(a,t).Y,buttondown:!1}),p(a))}function g(a,t){var n,o=l(a),e=b(a,t).X,i=b(a,t).Y;o.manual&&(n=o.canvas.width/o.fromWidth,t=(o.savedCanvasX-e)/n+o.fromX,n=(o.savedCanvasY-i)/n+o.fromY,0<t&&0<n&&t+o.fromWidth<o.image.width&&n+o.fromHeight<o.image.height&&l(a,{fromX:t,fromY:n,savedCanvasX:e,savedCanvasY:i}))}function w(a){l(a,{manual:!1})}function l(a,t){if(!wppaZoomData[a])return!1;if(t)for(var n in t)wppaZoomData[a][n]=t[n];return wppaZoomData[a]}function v(a){var t;return a=a.touches?(t=a.touches[0].screenX,a.touches[0].screenY):(t=a.screenX,a.screenY),{X:t,Y:a}}function b(a,t){var n;return t=t.touches?(a=l(a),n=t.touches[0].screenX-a.fsMaskLeft,t.touches[0].screenY-a.fsMaskTop):(n=t.offsetX,t.offsetY),{X:n,Y:t}}function L(){return d=new Date,d.getTime()}}
17
  // wppa-spheric
18
- var wppaJsSphericVersion="8.0.00.006";function wppaDoSphericPan(t,n){var c=jQuery;n&&(wppaSphericData[t]=n);var s=v(t,s);if(!s.initialized&&!s.abort&&(!s.isLightbox||wppaOvlOpen)){if(!s.isLightbox&&!wppaIsElementInViewport(c("#wppa-pan-div-"+t)))return setTimeout(function(){wppaDoSphericPan(t)},1e3),void v(t,{vtime:g()});s.wppaRenderer&&(s.wppaRenderer.state.reset(),s.wppaSphere.dispose(),s.wppaSphereMaterial.dispose(),s.texture.dispose()),s.isLightbox&&wppaOvlOpen&&c("#wppa-ovl-spin").show(),s.manCtrl=!1,s.butDown=!1,s.lon=180,s.lat=0,s.dFov=0,s.abort=!1,s.aspect=2,s.div=c("#wppa-pan-div-"+t),s.left=c("#wppa-pctl-left-"+t),s.right=c("#wppa-pctl-right-"+t),s.up=c("#wppa-pctl-up-"+t),s.down=c("#wppa-pctl-down-"+t),s.zoomin=c("#wppa-pctl-zoomin-"+t),s.zoomout=c("#wppa-pctl-zoomout-"+t),s.prev=c("#wppa-pctl-prev-"+t),s.next=c("#wppa-pctl-next-"+t),s.pause=!1,s.mFakt=wppaIsMobile?"2":"1",s.time=0,s.isLightbox&&(wppaGlobalOvlPanoramaId++,s.uId=wppaGlobalOvlPanoramaId),c(s.div).html(""),s.wppaRenderer||(s.wppaRenderer=new THREE.WebGLRenderer),s.wppaRenderer.setSize(s.width,s.height),c(s.div).append(s.wppaRenderer.domElement),s.wppaScene=new THREE.Scene,s.wppaSphere=new THREE.SphereGeometry(100,100,40),s.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),s.texture=(new THREE.TextureLoader).load(s.url),s.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:s.texture}),s.wppaSphereMesh=new THREE.Mesh(s.wppaSphere,s.wppaSphereMaterial),s.wppaScene.add(s.wppaSphereMesh),s.right.on("touchstart",function(n){u(t)}),s.right.on("touchend",function(n){f(t)}),s.left.on("touchstart",function(n){l(t)}),s.left.on("touchend",function(n){f(t)}),s.up.on("touchstart",function(n){h(t)}),s.up.on("touchend",function(n){f(t)}),s.down.on("touchstart",function(n){m(t)}),s.down.on("touchend",function(n){f(t)}),s.zoomin.on("touchstart",function(n){i(t)}),s.zoomin.on("touchend",function(n){f(t)}),s.zoomout.on("touchstart",function(n){r(t)}),s.zoomout.on("touchend",function(n){f(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchstart",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchmove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchend",function(n){p(t)})),s.right.on("mousedown",function(n){u(t)}),s.right.on("mouseup",function(n){f(t)}),s.left.on("mousedown",function(n){l(t)}),s.left.on("mouseup",function(n){f(t)}),s.up.on("mousedown",function(n){h(t)}),s.up.on("mouseup",function(n){f(t)}),s.down.on("mousedown",function(n){m(t)}),s.down.on("mouseup",function(n){f(t)}),s.zoomin.off("mousedown"),s.zoomin.on("mousedown",function(n){i(t)}),s.zoomin.off("mouseup"),s.zoomin.on("mouseup",function(n){f(t)}),s.zoomout.on("mousedown",function(n){r(t)}),s.zoomout.on("mouseup",function(n){f(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas").on("mousedown",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mousemove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mouseup",function(n){p(t)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("wheel",function(n){var e;e=t,(n=n).preventDefault(),n.stopPropagation(),s=v(e),v(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-n.deltaY*s.zoomsensitivity/(wppaIsChrome?60:6)}),w(e),setTimeout(function(){v(e,{dFov:0})},25)})),s.isLightbox&&(c("body").on("quitimage",function(n){var e;s=v(e=t,{abort:!0,autorun:!1}),clearTimeout(s.timer),c("#wppa-pan-div-"+e+" canvas").hide(),c("#wppa-pctl-div-"+e).hide()}),c("#wppa-pctl-div-"+t).on("click",function(n){wppaKillEvent(n)})),v(t,s),s.isLightbox?(c(window).off("wpparesizeend",wppaOvlShowSame),c(window).on("wpparesizeend",wppaOvlShowSame)):c(window).on("wpparesizeend",function(n){e(t)}),wppaProtect(),c(document).on("tabbychange",function(n){var e;e=t,s.wppaRenderer.state.reset(),s=v(e,{initialized:!1,abort:!0}),setTimeout(function(){v(e,{abort:!1}),wppaDoSphericPan(e)},200),wppaConsoleLog("(setTimeout) redo spheric after tabbychange mocc="+e)}),e(t)}function w(n){var e=v(n),t=wppaIsElementInViewport(c("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25)){if(!t)return!(g()<e.vtime+1e3)&&(setTimeout(function(){w(n)},1e3),void v(n,{vtime:g()}));v(n,{time:g()}),e.isLightbox&&(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0),e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),c("#wppa-ovl-spin").hide(),e.manCtrl,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){w(n)},25)),v(n,e))}}function e(n){var e=!wppaIsFs();if(s=v(n)){if(s.isLightbox){if(!wppaOvlOpen)return;c("#wppa-overlay-ic").css("display",""),c("#wppa-overlay-ic").css("width","");var t,a,o=(e=!wppaIsFs())?(a=window.innerWidth||screen.width,window.innerHeight||screen.height):(a=screen.width,screen.height),p=8,i=8+(s.controls?s.icsize+10:0)+30;e&&(p+=2*s.borderWidth,i+=2*s.borderWidth),t=(a-p)/2+i<o,i=e?t?(o-(u=(r=a-p)/2)-i)/2+20:(r=2*(u=o-i),20):(r=screen.width,u=screen.height,0),s.aspect=r/u,c("#wppa-ovl-pan-container").css({top:i}),c("#wppa-overlay-ic").css({top:0}),e?(c("#wppa-ovl-pan-container").css({backgroundColor:s.backgroundColor,padding:s.padding+"px",borderRadius:s.borderRadius+"px",width:r,marginLeft:0}),t?c("#wppa-overlay-ic").css({left:4,marginLeft:0}):c("#wppa-overlay-ic").css({left:(a-r)/2,marginLeft:0})):(c("#wppa-overlay-ic").css({marginLeft:0}),c("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:r,left:(a-r)/2})),s.wppaRenderer.setSize(r,u)}else{var r=c(s.div).parent().width(),u=parseInt(r/2);if(!s.wppaRenderer)return;s.wppaRenderer.setSize(r,u)}s.width=r,s.height=u,v(n,s),s.timer=setTimeout(function(){w(n)},250)}}function a(n,e){e.preventDefault(),e.stopPropagation(),s=v(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),e.touches?v(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):v(n,{sX:e.clientX,sY:e.clientY}),v(n,{sLon:s.lon,sLat:s.lat}),w(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(s=v(n)).manCtrl&&(e.touches?v(n,{lon:.1*(s.sX-e.touches[0].clientX)+s.sLon,lat:.1*(e.touches[0].clientY-s.sY)+s.sLat,pause:!1}):v(n,{lon:.1*(s.sX-e.clientX)+s.sLon,lat:.1*(e.clientY-s.sY)+s.sLat,pause:!1}),w(n))}function p(n){v(n,{manCtrl:!1})}function i(n){s=v(n),v(n,{dFov:-.4*s.mFakt,butDown:!0}),w(n)}function r(n){s=v(n),v(n,{dFov:.4*s.mFakt,butDown:!0}),w(n)}function u(n){s=v(n),v(n,{dX:.2*s.mFakt,butDown:!0}),w(n)}function l(n){s=v(n),v(n,{dX:-.2*s.mFakt,butDown:!0}),w(n)}function h(n){s=v(n),v(n,{dY:.2*s.mFakt,butDown:!0}),w(n)}function m(n){s=v(n),v(n,{dY:-.2*s.mFakt,butDown:!0}),w(n)}function f(n){s=v(n),v(n,{dX:0,dY:0,dFov:0,butDown:!1})}function v(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}}
1
  // wppa-utils
2
  var wppaDebug;wppaJsUtilsVersion="8.0.00.007";var wppaMakeLazyVisibleScrollEndTimer,wppaDebugCounter=0;function wppaAnimate(e,t,a,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),i&&setTimeout(i,10)):jQuery(e).stop().animate(t,a,p,i)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){e=wppaTrimLeft(e,t);return e=wppaTrimRight(e,t)}function wppaTrimLeft(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(0,i)==t;)p=(a=a.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(p-i)==t;)p=(a=a.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);p=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),i=0;i<p.length;i++)if(t=p[i].substr(0,p[i].indexOf("=")),a=p[i].substr(p[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(i=Math.floor(a/6e4))*1e3,t=Math.floor(a/1e3),console.log("At: "+p+":"+i+":"+t+"."+(a-=1e3*t)+" message: "+e))}function wppaSvgHtml(e,t,a,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}t=t||"32px",a="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==a&&(a="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+a+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&(wppaConsoleLog("Doing wppaMakeLazyVisible("+e+")","force"),!wppaLazyBusy)){wppaLazyBusy=!0;var t,a=new Date,p=a.getTime(),i=p-wppaLastLazy;if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var n=0,e=jQuery("*[data-src]");e.each(function(){t=jQuery(this).attr("data-src"),(wppaIsElementInViewport(this)||wppaIsMobile)&&(jQuery(this).attr("src",t),jQuery(this).removeAttr("data-src"),n++)}),0<n&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&(setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery("div").getNiceScroll().resize()},1500)),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),wppaConsoleLog("MakeLazyVisible done after "+i+" ms in "+((p=(a=new Date).getTime())-wppaLastLazy)+" ms. Processed "+n+" out of "+e.length+" elements","force"),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var t=jQuery(e);t[0]&&"BODY"!=t[0].nodeName;){if("none"==jQuery(t[0]).css("display"))return!1;t=jQuery(t[0]).parent()}"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){a=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==a?t:(wppaIsMini[e]?a/2:a)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,t,a=jQuery;wppaOvlOpen&&(t=wppaIsFs()?(a(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(a(".wppa-pctl-div-lb").css({position:"initial"}),a("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(t-=20),t<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(t/12-4))&&(a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?a(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):a(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),a(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,t,a){},error:function(e,t,a){wppaConsoleLog("wppaServerLog failed. Error = "+a+", status = "+t,"force")}})}function wppaTimNow(){return(new Date).getTime()}
3
  // wppa
4
+ wppaWppaVer="8.0.00.011";var wppaIsChrome=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),wppaIsSafari=!1,wppaOvlActivePanorama=0,wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",wppaGlobalFsIconSize=32,wppaFsFillcolor="#999999",wppaFsBgcolor="transparent",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlTypes,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlClosing=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomData=[],wppaSphericData=[],wppaFsPolicy="lightbox",wppaOvlGlobal,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaIsIpad=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeNiceTimer,wppaResizeEndTimer,wppaScrollEndTimer;function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips()}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var p=jQuery(this).attr("id").substr(6);wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",wppaAdjustAllFilmstrips),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){wppaResizeNice()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){void 0!==jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisibleScrollEnd("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var p=jQuery(this).attr("href");p&&("jpg"!=(p=(p=p.split("."))[p.length-1])&&"jpeg"!=p&&"png"!=p||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}function wppaResizeNice(){clearTimeout(wppaResizeNiceTimer),wppaResizeNiceTimer=setTimeout(function(){_wppaResizeNice()},200)}function _wppaResizeNice(){wppaConsoleLog("Doing wppaResizeNice","force"),"function"==typeof jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize(),jQuery("div").each(function(){"function"==typeof jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()})}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(p){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(e){return jQuery(".wppa-container").each(function(){var p=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[p]&&_wppaDoAutocol(p,e)}),(e<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(e+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}),jQuery("canvas").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p);if(e){var a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o=wppaGetContainerWidth(p);if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:o})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:o},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var r=document.getElementById("wppa-albumlist-"+p).clientWidth,i=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,n=i-1,s=parseInt((r+wppaCoverSpacing)/i-wppaCoverSpacing);if(wppaColWidth[p]!=r||wppaMCRWidth[p]!=s){wppaColWidth[p]=r,wppaMCRWidth[p]=s;for(var l=0;l<a.length;){switch(l%i){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case n:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:s},wppaResponseSpeed)}}else 1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(s=o-wppaThumbnailAreaDelta-7,t=Math.max(1,parseInt(s/(r+wppaMinThumbSpace))),t=parseInt((s-t*r)/(t+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:t})),jQuery(".thumbnail-frame-comalt-"+p).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var w,u=1,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");c;)w=c*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+u+"-"+p).css("height",w),u++,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*o),wppaFilmStripLength[p]=o-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",o),jQuery(".wppa-simg-"+p).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",o+10),jQuery(".wppa-mimg-"+p).css("width",o),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(o/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*o),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,o,p=jQuery("#wppa-real-calendar-"+e).width();0<p&&(a=!0,t=p*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=p/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),p=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:p,marginBottom:p}),o=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:o})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){wppaConsoleLog("Slide history stack update failed")}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var e=new google.maps.LatLng(e,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:e},t=new google.maps.Map(document.getElementById("map-canvas-"+p),a),o=new google.maps.Marker({position:e,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p),r="";for(n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var n,i=jQuery(".wppa-ss-phototext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(e=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?e+="?":e+="&",e+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=e)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){p=jQuery(p).length;6<p&&(p=6),p<2&&(p=2),jQuery(e).attr("size",p)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var p=jQuery(this).attr("id").substr(5),e=wppaGetContainerWidth(p)-wppaThumbnailAreaDelta,e=e/parseInt((e+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin))-wppaTfMargin;jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+p).css("width",e+"px"),jQuery("#grid-"+p).masonry({itemSelector:".grid-item-"+p,columnWidth:e,gutter:wppaTfMargin,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var p=parseInt(wppaGlobalFsIconSize/4),e=p;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(p+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var p=document.documentElement;p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullScreen&&p.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.0.00.006";function wppaStoreSlideInfo(p,a,e,t,i,w,r,o,n,l,s,d,u,_,m,c,y,h,S,g,x,f,I,j,Q,b,v,N,T,C,k,R,F){n=wppaRepairScriptTags(n),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=N,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+N+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]=wppaRepairBrTags(r),_wppaNames[p][a]=o,_wppaDsc[p][a]=n,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=y,""!=h?_wppaLinkTarget[p][a]=h:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=N,_wppaAudioHtml[p][a]=T,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(o=_wppaRealId[p],_wppaLat[p][o[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][o[_wppaNxtIdx[p]]],_wppaLon[p][o[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,o=_wppaNxtIdx[p],n=(wppaNumbarMax-1)/2;o<n?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-n<o?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=o+n+.5-1,(i=o-n+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(n=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",n,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",n,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,o="#theimg"+e+"-"+p,n="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(o,wppaAnimationSpeed),setTimeout(wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:-l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"none":wppaFadeIn(n,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(o,wppaAnimationSpeed),wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),o=e.naturalWidth;void 0===o&&(o=parseInt(e.style.maxWidth));var n=e.naturalHeight;void 0===n&&(n=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,y,h,S,g,x,f,e=wppaStretch;if(u)j=w-d,h=y=0,x=S=w,f=g=(c=parseInt(j*n/o))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=o||f-d<=n?l<(n+d)/(o+d)?(c=f-d,j=parseInt(c*o/n)):(j=x-d,c=parseInt(j*n/o)):(j=o,c=n),"default"!=_&&"none"!=_){switch(_){case"top":h=0;break;case"center":h=parseInt((f-(c+d))/2);break;case"bottom":h=f-(c+d);break;case"fit":h=0,g=f=c+d}jQuery("#"+a).css({marginTop:h,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":y=0;break;case"center":y=parseInt((w-x)/2);break;case"right":y=w-x}y<0&&(y=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:y})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-h:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var o,n,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaNames[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),n=".pdf"==(o=_wppaHiresUrl[p][e]).substr(o.length-4,o.length),s+='<a href="'+i+'" onclick="wppaStopAudio();wppaStopShow('+p+');" style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'">'+(n?"<iframe "+l+' src="'+o+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if(document.getElementById("wppa-filmstrip-"+p)){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var o=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(o))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):(o=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(o<i?2:i<o-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w+"px"}):(i<o-1.5*w||o+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0)),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var n=0;n<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][n]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+n+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==n?(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]))),n++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?jQuery("#wppa-next-pagelink-"+p).trigger("click"):0<e.length&&jQuery(e).trigger("click")):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).trigger("click"):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t,i="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(i).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(i).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":if(wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a){if(!wppaSlideWrap[p])return void wppaPrev(p);(t=_wppaCurIdx[p]-1)<0&&(t=_wppaSlides[p].length-1)}if("r"==a){if(!wppaSlideWrap[p])return void wppaNext(p);(t=_wppaCurIdx[p]+1)==_wppaSlides[p].length&&(t=0)}wppaGotoKeepState(p,t);break;default:alert("Unimplemented instruction: "+e+" on: "+i)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden"))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
13
  // wppa-touch
14
  var wppaJsTouchVersion="7.5.03",wppaTriggerElementID=null,wppaFingerCount=0,wppaStartX=0,wppaStartY=0,wppaCurX=0,wppaCurY=0,wppaDeltaX=0,wppaDeltaY=0,wppaHorzDiff=0,wppaVertDiff=0,wppaMinLength=72,wppaSwipeLength=0,wppaSwipeAngle=null,wppaSwipeDirection=null,wppaSwipeOnLightbox=!1,wppaSwipeMocc=0,wppaMobileTimeStart=0;function wppaStartTime(){var p=(new Date).getTime();return wppaMobileTimeStart=p,!0}function wppaInTime(){return(new Date).getTime()-wppaMobileTimeStart<250}function wppaTapLink(p,e){wppaInTime()&&(_bumpClickCount(p),document.location.href=e)}function wppaTouchStart(p,e,a){-1==(wppaSwipeMocc=a)&&(wppaSwipeOnLightbox=!0,p.preventDefault()),1==(wppaFingerCount=p.touches.length)?(wppaStartX=p.touches[0].pageX,wppaStartY=p.touches[0].pageY,wppaTriggerElementID=e):wppaTouchCancel()}function wppaTouchMove(p){wppaSwipeOnLightbox&&p.preventDefault(),1==p.touches.length?(wppaCurX=p.touches[0].pageX,wppaCurY=p.touches[0].pageY):wppaTouchCancel()}function wppaTouchEnd(p){wppaSwipeOnLightbox&&p.preventDefault(),1==wppaFingerCount&&0!=wppaCurX&&(wppaSwipeLength=Math.round(Math.sqrt(Math.pow(wppaCurX-wppaStartX,2)+Math.pow(wppaCurY-wppaStartY,2))),wppaMinLength<=wppaSwipeLength&&(wppaCalculateAngle(),wppaDetermineSwipeDirection(),wppaProcessingRoutine())),wppaTouchCancel()}function wppaTouchCancel(){wppaTriggerElementID=wppaSwipeDirection=wppaSwipeAngle=null,wppaSwipeOnLightbox=!1,wppaSwipeMocc=wppaSwipeLength=wppaVertDiff=wppaHorzDiff=wppaDeltaY=wppaDeltaX=wppaCurY=wppaCurX=wppaStartY=wppaStartX=wppaFingerCount=0}function wppaCalculateAngle(){var p=wppaStartX-wppaCurX,e=wppaCurY-wppaStartY,a=(Math.round(Math.sqrt(Math.pow(p,2)+Math.pow(e,2))),Math.atan2(e,p));(wppaSwipeAngle=Math.round(180*a/Math.PI))<0&&(wppaSwipeAngle=360-Math.abs(wppaSwipeAngle))}function wppaDetermineSwipeDirection(){wppaSwipeDirection=wppaSwipeAngle<=45&&0<=wppaSwipeAngle||wppaSwipeAngle<=360&&315<=wppaSwipeAngle?"left":135<=wppaSwipeAngle&&wppaSwipeAngle<=225?"right":45<wppaSwipeAngle&&wppaSwipeAngle<135?"down":"up"}function wppaProcessingRoutine(){document.getElementById(wppaTriggerElementID);if(wppaSwipeOnLightbox)"left"==wppaSwipeDirection?wppaOvlShowNext():"right"==wppaSwipeDirection&&wppaOvlShowPrev();else{if("right"==wppaSwipeDirection){if(idx=_wppaCurIdx[wppaSwipeMocc]-1,idx<0){if(!wppaSlideWrap)return;idx=_wppaSlides[wppaSwipeMocc].length-1}wppaGotoKeepState(wppaSwipeMocc,idx)}if("left"==wppaSwipeDirection){if(idx=_wppaCurIdx[wppaSwipeMocc]+1,idx==_wppaSlides[wppaSwipeMocc].length){if(!wppaSlideWrap)return;idx=0}wppaGotoKeepState(wppaSwipeMocc,idx)}}wppaTouchCancel()}
15
  // wppa-zoom
16
+ var wppaJsZoomVersion="8.0.00.011";function wppaDoZoomPan(n,t){var m=jQuery;t&&(wppaZoomData[n]=t);var o=l(n);if(!o.initialized&&!o.abort){if(o.isLightbox&&m("#wppa-ovl-spin").show(),!o.image.complete)return wppaConsoleLog("Loading image "+n),void setTimeout(function(){wppaDoZoomPan(n)},200);wppaConsoleLog("Loading image "+n+" complete"),m(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),o.manual=!1,o.deltaX=0,o.deltaY=0,o.deltaFactor=1,o.busy=!1,o.div=m("#wppa-pan-div-"+o.itemId),o.canvas=document.getElementById("wppa-pan-canvas-"+o.itemId),o.left=m("#wppa-pctl-left-"+o.itemId),o.right=m("#wppa-pctl-right-"+o.itemId),o.up=m("#wppa-pctl-up-"+o.itemId),o.down=m("#wppa-pctl-down-"+o.itemId),o.zoomin=m("#wppa-pctl-zoomin-"+o.itemId),o.zoomout=m("#wppa-pctl-zoomout-"+o.itemId),o.prev=m("#wppa-pctl-prev-"+o.itemId),o.next=m("#wppa-pctl-next-"+o.itemId),o.exit=m("#wppa-exit-btn-2"),o.canvasWidth=o.width,o.canvasHeight=o.height,o.savedCanvasX=0,o.savedCanvasY=0,o.fromHeight=o.image.height,o.fromWidth=o.image.width,o.imageRatio=o.image.width/o.image.height,o.fromX=0,o.fromY=0,o.centerX=o.fromX+o.fromWidth/2,o.centerY=o.fromY+o.fromHeight/2,o.ctx=null,o.buttondown=!1,o.enableManual=!0,o.ctrlbarUpdate=!0,o.pause=!1,o.time=0,o.right.on("touchstart",function(t){e(n)}),o.right.on("touchend",function(t){h(n)}),o.left.on("touchstart",function(t){i(n)}),o.left.on("touchend",function(t){h(n)}),o.up.on("touchstart",function(t){s(n)}),o.up.on("touchend",function(t){h(n)}),o.down.on("touchstart",function(t){r(n)}),o.down.on("touchend",function(t){h(n)}),o.zoomin.on("touchstart",function(t){c(n)}),o.zoomin.on("touchend",function(t){h(n)}),o.zoomout.on("touchstart",function(t){u(n)}),o.zoomout.on("touchend",function(t){h(n)}),o.canvas&&(o.canvas.addEventListener("touchstart",function(t){f(n,t)}),o.canvas.addEventListener("touchmove",function(t){g(n,t)}),o.canvas.addEventListener("touchend",function(t){w(n)})),o.canvas&&(o.canvas.addEventListener("mousedown",function(t){f(n,t)}),o.canvas.addEventListener("mousemove",function(t){g(n,t)}),o.canvas.addEventListener("mouseup",function(t){w(n)}),o.canvas.addEventListener("mouseleave",function(t){(o=l(n)).manual&&l(n,{pause:!0})}),o.canvas.addEventListener("mouseenter",function(t){var a;l(a=n,{pause:!1}).manual&&p(a)}),document.getElementById("wppa-pan-canvas-"+o.itemId).addEventListener("wheel",function(t){var a;a=n,(t=t).preventDefault(),t.stopPropagation(),o=l(a),l(a,{deltaFactor:1+t.deltaY*o.zoomsensitivity/(wppaIsChrome?1e4:1e3),manual:!1,burrondown:!1}),p(a),setTimeout(function(){l(a,{deltaFactor:1})},25)})),o.right.on("mousedown",function(t){e(n)}),o.right.on("mouseup",function(t){h(n)}),o.left.on("mousedown",function(t){i(n)}),o.left.on("mouseup",function(t){h(n)}),o.up.on("mousedown",function(t){s(n)}),o.up.on("mouseup",function(t){h(n)}),o.down.on("mousedown",function(t){r(n)}),o.down.on("mouseup",function(t){h(n)}),o.zoomin.off("mousedown"),o.zoomin.on("mousedown",function(t){c(n)}),o.zoomin.off("mouseup"),o.zoomin.on("mouseup",function(t){h(n)}),o.zoomout.on("mousedown",function(t){u(n)}),o.zoomout.on("mouseup",function(t){h(n)}),o.isLightbox&&(m("body").on("quitimage",function(t){var a;a=n,wppaConsoleLog("Zoom Quit Image"),o=l(a,{abort:!0}),m(o.canvas).hide(),m("#wppa-pctl-div-"+o.itemId).hide()}),m("#wppa-pctl-div-"+o.itemId).on("click",function(t){wppaKillEvent(t)})),o.isLightbox?(m(window).off("resize",wppaOvlShowSame),m(window).on("resize",wppaOvlShowSame)):m(window).on("resize",function(t){a(n)}),a(n),o.initialized=!0,l(n,o),m("#wppa-ovl-spin").hide(),wppaProtect()}function p(t){var a,n,o,e,i,s=l(t);s.canvas&&(L()<s.time+10?wppaConsoleLog("Skipped render "+t):(l(t,{time:L()}),(s.isLightbox&&!wppaOvlOpen||!s.isLightbox&&wppaOvlOpen)&&(s=l(0,{abort:!0})),s.abort?l(t,{manual:!1,buttondown:!1,pause:!1,ctx:null}):s.busy||(wppaDebugCounter++,wppaConsoleLog("Render zoom "+t+" "+wppaDebugCounter),(s=l(t,{busy:!0})).manual||(s.fromX+=s.deltaX,s.fromY+=s.deltaY,a=s.fromHeight/s.deltaFactor,n=s.fromWidth/s.deltaFactor,50<a&&1!=s.deltaFactor&&(wppaIsFs()||a<=s.image.height)?(s.fromX-=(n-s.fromWidth)/2,s.fromY-=(a-s.fromHeight)/2,s.fromWidth=n,s.fromHeight=a):s.buttondown=!1),s.fromX=Math.max(0,Math.min(s.image.width-s.fromWidth,s.fromX)),s.fromY=Math.max(0,Math.min(s.image.height-s.fromHeight,s.fromY)),o=screen.width/screen.height,e=(1-s.image.width/s.fromWidth)*s.canvas.width/2,i=(1-s.image.height/s.fromHeight)*s.canvas.height/2,s.ctx=s.canvas.getContext("2d"),o>s.imageRatio&&a>s.image.height&&wppaIsFs()||o<=s.imageRatio&&n>s.image.width&&wppaIsFs()?(s.enableManual=!1,s.ctx.clearRect(0,0,s.canvas.width,s.canvas.height),s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,e,i,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"default"})):(s.enableManual=!0,s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,0,0,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"grab"})),wppaIsFs()?(s.fsMaskTop=i-(s.canvas.height-screen.height)/2,s.fsMaskLeft=e-(s.canvas.width-screen.width)/2,s.fsMaskBottom=screen.height-s.fsMaskTop,s.fsMaskRight=screen.width-s.fsMaskLeft):(s.fsMaskTop=0,s.fsMaskLeft=0,s.fsMaskBottom=0,s.fsMaskRight=0),s.ctrlbarUpdate&&(wppaAdjustControlbar(),s.ctrlbarUpdate=!1),s.busy=!1,wppaIsElementInViewport(s.canvas)||(s.buttondown=!1),l(t,s),s.pause||!s.manual&&!s.buttondown||setTimeout(function(){p(t)},10),s.pause&&l(t,{pause:!1}))))}function a(t){var a,n,o,e,i,s,r,c,d,u=l(t);u&&(u.isLightbox?(m("#wppa-overlay-ic").css("display",""),e=(n=!wppaIsFs())?(o=window.innerWidth||screen.width,window.innerHeight||screen.height):(o=screen.width,screen.height),r=0,d=(c=8)+(u.controls?u.icsize+10:0)+10,n?(c+=2*u.borderWidth,d+=2*u.borderWidth):c=40,a=n?e-d>(o-c)/u.imageRatio:(screenRatio=screen.width/screen.height,screenRatio<u.imageRatio),n&&a&&(r=(e-(s=(i=o-c)/u.imageRatio)-d)/2+20),n&&!a&&(s=(i=u.imageRatio*(e-(u.controls?u.icsize:0)-48))/u.imageRatio,r=20),!n&&a&&(i=(s=screen.height)*u.imageRatio,r=0),n||a||(s=(i=screen.width)/u.imageRatio,r=(screen.height-s)/2),m("#wppa-ovl-pan-container").css({top:r}),m("#wppa-overlay-ic").css({top:0,marginLeft:0}),u.canvasWidth=i,u.canvasHeight=s,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight,n?(m("#wppa-ovl-pan-container").css({backgroundColor:u.backgroundColor,padding:u.padding,borderRadius:u.borderRadius+"px",borderWidth:u.borderWidth+"px",width:i,marginLeft:0}),a?m("#wppa-overlay-ic").css({left:4}):m("#wppa-overlay-ic").css({left:(o-i)/2})):(m("#wppa-overlay-ic").css({marginLeft:0}),m("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",borderWidth:"0px",width:i,left:(o-i)/2,position:"fixed"}))):(u.canvasWidth=m(u.div).parent().width(),u.canvasHeight=u.canvasWidth/u.imageRatio,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight),u.ctrlbarUpdate=!0,l(t,u),setTimeout(function(){p(t)},250))}function e(t){var a=l(t),a=a.image.naturalWidth/a.canvas.width;a<1.5&&(a=1.5),l(t,{deltaX:a*=1.5,buttondown:!0,manual:!1}),p(t)}function i(t){var a=l(t),a=a.image.naturalWidth/a.canvas.width;a<1.5&&(a=1.5),l(t,{deltaX:-(a*=1.5),buttondown:!0,manual:!1}),p(t)}function s(t){var a=l(t),a=a.image.naturalHeight/a.canvas.height;a<1.5&&(a=1.5),l(t,{deltaY:-(a*=1.5),buttondown:!0,manual:!1}),p(t)}function r(t){var a=l(t),a=a.image.naturalHeight/a.canvas.height;a<1.5&&(a=1.5),l(t,{deltaY:a*=1.5,buttondown:!0,manual:!1}),p(t)}function c(t){l(t,{deltaFactor:1.005,buttondown:!0,manual:!1}),p(t)}function u(t){l(t,{deltaFactor:.995,buttondown:!0,manual:!1}),p(t)}function h(t){l(t,{deltaX:0,deltaY:0,deltaFactor:1,buttondown:!1})}function f(t,a){var n=l(t),o=v(a).X,e=v(a).Y;if(wppaIsFs()&&n.isLightbox&&(o<n.fsMaskLeft||o>n.fsMaskRight||e<n.fsMaskTop||e>n.fsMaskBottom))return l(0,{abort:!0}),void jQuery("#wppa-overlay-bg").trigger("click");n.enableManual&&(l(t,{manual:!0,savedCanvasX:o=b(t,a).X,savedCanvasY:e=b(t,a).Y,buttondown:!1}),p(t))}function g(t,a){var n,o=l(t),e=b(t,a).X,i=b(t,a).Y;o.manual&&(n=o.canvas.width/o.fromWidth,a=(o.savedCanvasX-e)/n+o.fromX,n=(o.savedCanvasY-i)/n+o.fromY,0<a&&0<n&&a+o.fromWidth<o.image.width&&n+o.fromHeight<o.image.height&&l(t,{fromX:a,fromY:n,savedCanvasX:e,savedCanvasY:i}))}function w(t){l(t,{manual:!1})}function l(t,a){if(!wppaZoomData[t])return!1;if(a)for(var n in a)wppaZoomData[t][n]=a[n];return wppaZoomData[t]}function v(t){var a;return t=t.touches?(a=t.touches[0].screenX,t.touches[0].screenY):(a=t.screenX,t.screenY),{X:a,Y:t}}function b(t,a){var n;return a=a.touches?(t=l(t),n=a.touches[0].screenX-t.fsMaskLeft,a.touches[0].screenY-t.fsMaskTop):(n=a.offsetX,a.offsetY),{X:n,Y:a}}function L(){return d=new Date,d.getTime()}}
17
  // wppa-spheric
18
+ var wppaJsSphericVersion="8.0.00.011";function wppaDoSphericPan(t,n){var c=jQuery;n&&(wppaSphericData[t]=n);var s=f(t,s);if(!s.initialized&&!s.abort&&(!s.isLightbox||wppaOvlOpen)){if(!s.isLightbox&&!wppaIsElementInViewport(c("#wppa-pan-div-"+t)))return setTimeout(function(){wppaDoSphericPan(t)},1e3),void f(t,{vtime:g()});s.wppaRenderer&&(s.wppaRenderer.state.reset(),s.wppaSphere.dispose(),s.wppaSphereMaterial.dispose(),s.texture.dispose()),s.isLightbox&&wppaOvlOpen&&c("#wppa-ovl-spin").show(),s.manCtrl=!1,s.butDown=!1,s.lon=180,s.lat=0,s.dFov=0,s.abort=!1,s.aspect=2,s.div=c("#wppa-pan-div-"+t),s.left=c("#wppa-pctl-left-"+t),s.right=c("#wppa-pctl-right-"+t),s.up=c("#wppa-pctl-up-"+t),s.down=c("#wppa-pctl-down-"+t),s.zoomin=c("#wppa-pctl-zoomin-"+t),s.zoomout=c("#wppa-pctl-zoomout-"+t),s.prev=c("#wppa-pctl-prev-"+t),s.next=c("#wppa-pctl-next-"+t),s.pause=!1,s.mFakt=wppaIsMobile?"2":"1",s.time=0,s.isLightbox&&(wppaGlobalOvlPanoramaId++,s.uId=wppaGlobalOvlPanoramaId),c(s.div).html(""),s.wppaRenderer||(s.wppaRenderer=new THREE.WebGLRenderer),s.wppaRenderer.setSize(s.width,s.height),c(s.div).append(s.wppaRenderer.domElement),s.wppaScene=new THREE.Scene,s.wppaSphere=new THREE.SphereGeometry(100,100,40),s.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),s.texture=(new THREE.TextureLoader).load(s.url),s.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:s.texture}),s.wppaSphereMesh=new THREE.Mesh(s.wppaSphere,s.wppaSphereMaterial),s.wppaScene.add(s.wppaSphereMesh),s.right.on("touchstart",function(n){u(t)}),s.right.on("touchend",function(n){v(t)}),s.left.on("touchstart",function(n){l(t)}),s.left.on("touchend",function(n){v(t)}),s.up.on("touchstart",function(n){h(t)}),s.up.on("touchend",function(n){v(t)}),s.down.on("touchstart",function(n){m(t)}),s.down.on("touchend",function(n){v(t)}),s.zoomin.on("touchstart",function(n){i(t)}),s.zoomin.on("touchend",function(n){v(t)}),s.zoomout.on("touchstart",function(n){r(t)}),s.zoomout.on("touchend",function(n){v(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchstart",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchmove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchend",function(n){p(t)})),s.right.on("mousedown",function(n){u(t)}),s.right.on("mouseup",function(n){v(t)}),s.left.on("mousedown",function(n){l(t)}),s.left.on("mouseup",function(n){v(t)}),s.up.on("mousedown",function(n){h(t)}),s.up.on("mouseup",function(n){v(t)}),s.down.on("mousedown",function(n){m(t)}),s.down.on("mouseup",function(n){v(t)}),s.zoomin.off("mousedown"),s.zoomin.on("mousedown",function(n){i(t)}),s.zoomin.off("mouseup"),s.zoomin.on("mouseup",function(n){v(t)}),s.zoomout.on("mousedown",function(n){r(t)}),s.zoomout.on("mouseup",function(n){v(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas").on("mousedown",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mousemove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mouseup",function(n){p(t)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("wheel",function(n){var e;e=t,(n=n).preventDefault(),n.stopPropagation(),s=f(e),f(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-n.deltaY*s.zoomsensitivity/(wppaIsChrome?60:6)}),w(e),setTimeout(function(){f(e,{dFov:0})},25)})),s.isLightbox&&(c("body").on("quitimage",function(n){var e;s=f(e=t,{abort:!0,autorun:!1}),clearTimeout(s.timer),clearInterval(s.intervalTimer),c("#wppa-pan-div-"+e+" canvas").hide(),c("#wppa-pctl-div-"+e).hide()}),c("#wppa-pctl-div-"+t).on("click",function(n){wppaKillEvent(n)})),f(t,s),s.isLightbox?(c(window).off("wpparesizeend",wppaOvlShowSame),c(window).on("wpparesizeend",wppaOvlShowSame)):c(window).on("wpparesizeend",function(n){e(t)}),wppaProtect(),c(document).on("tabbychange",function(n){var e;e=t,s.wppaRenderer.state.reset(),s=f(e,{initialized:!1,abort:!0}),setTimeout(function(){f(e,{abort:!1}),wppaDoSphericPan(e)},200),wppaConsoleLog("(setTimeout) redo spheric after tabbychange mocc="+e)}),e(t),s.intervalTimer=setInterval(function(){e(t)},1e3)}function w(n){var e=f(n),t=wppaIsElementInViewport(c("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25)){if(!t)return!(g()<e.vtime+1e3)&&(setTimeout(function(){w(n)},1e3),void f(n,{vtime:g()}));f(n,{time:g()}),e.isLightbox&&(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0),e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),c("#wppa-ovl-spin").hide(),e.manCtrl,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){w(n)},25)),f(n,e))}}function e(n){var e=!wppaIsFs();if(s=f(n)){if(s.isLightbox){if(!wppaOvlOpen)return;c("#wppa-overlay-ic").css("display",""),c("#wppa-overlay-ic").css("width","");var t,a,o=(e=!wppaIsFs())?(a=window.innerWidth||screen.width,window.innerHeight||screen.height):(a=screen.width,screen.height),p=8,i=8+(s.controls?s.icsize+10:0)+30;e&&(p+=2*s.borderWidth,i+=2*s.borderWidth),t=(a-p)/2+i<o,i=e?t?(o-(u=(r=a-p)/2)-i)/2+20:(r=2*(u=o-i),20):(r=screen.width,u=screen.height,0),s.aspect=r/u,c("#wppa-ovl-pan-container").css({top:i}),c("#wppa-overlay-ic").css({top:0}),e?(c("#wppa-ovl-pan-container").css({backgroundColor:s.backgroundColor,padding:s.padding+"px",borderRadius:s.borderRadius+"px",width:r,marginLeft:0}),t?c("#wppa-overlay-ic").css({left:4,marginLeft:0}):c("#wppa-overlay-ic").css({left:(a-r)/2,marginLeft:0})):(c("#wppa-overlay-ic").css({marginLeft:0}),c("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:r,left:(a-r)/2})),s.wppaRenderer.setSize(r,u)}else{var r=c(s.div).parent().width(),u=parseInt(r/2);if(!s.wppaRenderer)return;s.wppaRenderer.setSize(r,u)}s.width=r,s.height=u,f(n,s),s.timer=setTimeout(function(){w(n)},250)}}function a(n,e){e.preventDefault(),e.stopPropagation(),s=f(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),e.touches?f(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):f(n,{sX:e.clientX,sY:e.clientY}),f(n,{sLon:s.lon,sLat:s.lat}),w(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(s=f(n)).manCtrl&&(e.touches?f(n,{lon:.1*(s.sX-e.touches[0].clientX)+s.sLon,lat:.1*(e.touches[0].clientY-s.sY)+s.sLat,pause:!1}):f(n,{lon:.1*(s.sX-e.clientX)+s.sLon,lat:.1*(e.clientY-s.sY)+s.sLat,pause:!1}),w(n))}function p(n){f(n,{manCtrl:!1})}function i(n){s=f(n),f(n,{dFov:-.4*s.mFakt,butDown:!0}),w(n)}function r(n){s=f(n),f(n,{dFov:.4*s.mFakt,butDown:!0}),w(n)}function u(n){s=f(n),f(n,{dX:.2*s.mFakt,butDown:!0}),w(n)}function l(n){s=f(n),f(n,{dX:-.2*s.mFakt,butDown:!0}),w(n)}function h(n){s=f(n),f(n,{dY:.2*s.mFakt,butDown:!0}),w(n)}function m(n){s=f(n),f(n,{dY:-.2*s.mFakt,butDown:!0}),w(n)}function v(n){s=f(n),f(n,{dX:0,dY:0,dFov:0,butDown:!1})}function f(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}}
js/wppa-spheric.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
- var wppaJsSphericVersion = '8.0.00.006';
6
 
7
  // The main proccedure
8
  function wppaDoSphericPan(mocc, xdata) {
@@ -154,6 +154,10 @@ function wppaDoSphericPan(mocc, xdata) {
154
  $(document).on("tabbychange",function(e){tabbyChange(mocc,e)});
155
 
156
  resize(mocc);
 
 
 
 
157
 
158
  function render(mocc){
159
 
@@ -548,6 +552,7 @@ function wppaDoSphericPan(mocc, xdata) {
548
  autorun:false
549
  });
550
  clearTimeout(data.timer);
 
551
  $("#wppa-pan-div-"+mocc+" canvas").hide();
552
  $("#wppa-pctl-div-"+mocc).hide();
553
  // data.wppaRenderer.state.reset();
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
+ var wppaJsSphericVersion = '8.0.00.011';
6
 
7
  // The main proccedure
8
  function wppaDoSphericPan(mocc, xdata) {
154
  $(document).on("tabbychange",function(e){tabbyChange(mocc,e)});
155
 
156
  resize(mocc);
157
+ data.intervalTimer = setInterval(function(){resize(mocc)},1000);
158
+ // setTimeout(function(){resize(mocc)},1000);
159
+ // setTimeout(function(){resize(mocc)},2000);
160
+ // resize(mocc);
161
 
162
  function render(mocc){
163
 
552
  autorun:false
553
  });
554
  clearTimeout(data.timer);
555
+ clearInterval(data.intervalTimer);
556
  $("#wppa-pan-div-"+mocc+" canvas").hide();
557
  $("#wppa-pctl-div-"+mocc).hide();
558
  // data.wppaRenderer.state.reset();
js/wppa-spheric.min.js CHANGED
@@ -1 +1 @@
1
- var wppaJsSphericVersion="8.0.00.006";function wppaDoSphericPan(t,n){var c=jQuery;n&&(wppaSphericData[t]=n);var s=v(t,s);if(!s.initialized&&!s.abort&&(!s.isLightbox||wppaOvlOpen)){if(!s.isLightbox&&!wppaIsElementInViewport(c("#wppa-pan-div-"+t)))return setTimeout(function(){wppaDoSphericPan(t)},1e3),void v(t,{vtime:g()});s.wppaRenderer&&(s.wppaRenderer.state.reset(),s.wppaSphere.dispose(),s.wppaSphereMaterial.dispose(),s.texture.dispose()),s.isLightbox&&wppaOvlOpen&&c("#wppa-ovl-spin").show(),s.manCtrl=!1,s.butDown=!1,s.lon=180,s.lat=0,s.dFov=0,s.abort=!1,s.aspect=2,s.div=c("#wppa-pan-div-"+t),s.left=c("#wppa-pctl-left-"+t),s.right=c("#wppa-pctl-right-"+t),s.up=c("#wppa-pctl-up-"+t),s.down=c("#wppa-pctl-down-"+t),s.zoomin=c("#wppa-pctl-zoomin-"+t),s.zoomout=c("#wppa-pctl-zoomout-"+t),s.prev=c("#wppa-pctl-prev-"+t),s.next=c("#wppa-pctl-next-"+t),s.pause=!1,s.mFakt=wppaIsMobile?"2":"1",s.time=0,s.isLightbox&&(wppaGlobalOvlPanoramaId++,s.uId=wppaGlobalOvlPanoramaId),c(s.div).html(""),s.wppaRenderer||(s.wppaRenderer=new THREE.WebGLRenderer),s.wppaRenderer.setSize(s.width,s.height),c(s.div).append(s.wppaRenderer.domElement),s.wppaScene=new THREE.Scene,s.wppaSphere=new THREE.SphereGeometry(100,100,40),s.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),s.texture=(new THREE.TextureLoader).load(s.url),s.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:s.texture}),s.wppaSphereMesh=new THREE.Mesh(s.wppaSphere,s.wppaSphereMaterial),s.wppaScene.add(s.wppaSphereMesh),s.right.on("touchstart",function(n){u(t)}),s.right.on("touchend",function(n){f(t)}),s.left.on("touchstart",function(n){l(t)}),s.left.on("touchend",function(n){f(t)}),s.up.on("touchstart",function(n){h(t)}),s.up.on("touchend",function(n){f(t)}),s.down.on("touchstart",function(n){m(t)}),s.down.on("touchend",function(n){f(t)}),s.zoomin.on("touchstart",function(n){i(t)}),s.zoomin.on("touchend",function(n){f(t)}),s.zoomout.on("touchstart",function(n){r(t)}),s.zoomout.on("touchend",function(n){f(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchstart",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchmove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchend",function(n){p(t)})),s.right.on("mousedown",function(n){u(t)}),s.right.on("mouseup",function(n){f(t)}),s.left.on("mousedown",function(n){l(t)}),s.left.on("mouseup",function(n){f(t)}),s.up.on("mousedown",function(n){h(t)}),s.up.on("mouseup",function(n){f(t)}),s.down.on("mousedown",function(n){m(t)}),s.down.on("mouseup",function(n){f(t)}),s.zoomin.off("mousedown"),s.zoomin.on("mousedown",function(n){i(t)}),s.zoomin.off("mouseup"),s.zoomin.on("mouseup",function(n){f(t)}),s.zoomout.on("mousedown",function(n){r(t)}),s.zoomout.on("mouseup",function(n){f(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas").on("mousedown",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mousemove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mouseup",function(n){p(t)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("wheel",function(n){var e;e=t,(n=n).preventDefault(),n.stopPropagation(),s=v(e),v(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-n.deltaY*s.zoomsensitivity/(wppaIsChrome?60:6)}),w(e),setTimeout(function(){v(e,{dFov:0})},25)})),s.isLightbox&&(c("body").on("quitimage",function(n){var e;s=v(e=t,{abort:!0,autorun:!1}),clearTimeout(s.timer),c("#wppa-pan-div-"+e+" canvas").hide(),c("#wppa-pctl-div-"+e).hide()}),c("#wppa-pctl-div-"+t).on("click",function(n){wppaKillEvent(n)})),v(t,s),s.isLightbox?(c(window).off("wpparesizeend",wppaOvlShowSame),c(window).on("wpparesizeend",wppaOvlShowSame)):c(window).on("wpparesizeend",function(n){e(t)}),wppaProtect(),c(document).on("tabbychange",function(n){var e;e=t,s.wppaRenderer.state.reset(),s=v(e,{initialized:!1,abort:!0}),setTimeout(function(){v(e,{abort:!1}),wppaDoSphericPan(e)},200),wppaConsoleLog("(setTimeout) redo spheric after tabbychange mocc="+e)}),e(t)}function w(n){var e=v(n),t=wppaIsElementInViewport(c("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25)){if(!t)return!(g()<e.vtime+1e3)&&(setTimeout(function(){w(n)},1e3),void v(n,{vtime:g()}));v(n,{time:g()}),e.isLightbox&&(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0),e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),c("#wppa-ovl-spin").hide(),e.manCtrl,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){w(n)},25)),v(n,e))}}function e(n){var e=!wppaIsFs();if(s=v(n)){if(s.isLightbox){if(!wppaOvlOpen)return;c("#wppa-overlay-ic").css("display",""),c("#wppa-overlay-ic").css("width","");var t,a,o=(e=!wppaIsFs())?(a=window.innerWidth||screen.width,window.innerHeight||screen.height):(a=screen.width,screen.height),p=8,i=8+(s.controls?s.icsize+10:0)+30;e&&(p+=2*s.borderWidth,i+=2*s.borderWidth),t=(a-p)/2+i<o,i=e?t?(o-(u=(r=a-p)/2)-i)/2+20:(r=2*(u=o-i),20):(r=screen.width,u=screen.height,0),s.aspect=r/u,c("#wppa-ovl-pan-container").css({top:i}),c("#wppa-overlay-ic").css({top:0}),e?(c("#wppa-ovl-pan-container").css({backgroundColor:s.backgroundColor,padding:s.padding+"px",borderRadius:s.borderRadius+"px",width:r,marginLeft:0}),t?c("#wppa-overlay-ic").css({left:4,marginLeft:0}):c("#wppa-overlay-ic").css({left:(a-r)/2,marginLeft:0})):(c("#wppa-overlay-ic").css({marginLeft:0}),c("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:r,left:(a-r)/2})),s.wppaRenderer.setSize(r,u)}else{var r=c(s.div).parent().width(),u=parseInt(r/2);if(!s.wppaRenderer)return;s.wppaRenderer.setSize(r,u)}s.width=r,s.height=u,v(n,s),s.timer=setTimeout(function(){w(n)},250)}}function a(n,e){e.preventDefault(),e.stopPropagation(),s=v(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),e.touches?v(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):v(n,{sX:e.clientX,sY:e.clientY}),v(n,{sLon:s.lon,sLat:s.lat}),w(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(s=v(n)).manCtrl&&(e.touches?v(n,{lon:.1*(s.sX-e.touches[0].clientX)+s.sLon,lat:.1*(e.touches[0].clientY-s.sY)+s.sLat,pause:!1}):v(n,{lon:.1*(s.sX-e.clientX)+s.sLon,lat:.1*(e.clientY-s.sY)+s.sLat,pause:!1}),w(n))}function p(n){v(n,{manCtrl:!1})}function i(n){s=v(n),v(n,{dFov:-.4*s.mFakt,butDown:!0}),w(n)}function r(n){s=v(n),v(n,{dFov:.4*s.mFakt,butDown:!0}),w(n)}function u(n){s=v(n),v(n,{dX:.2*s.mFakt,butDown:!0}),w(n)}function l(n){s=v(n),v(n,{dX:-.2*s.mFakt,butDown:!0}),w(n)}function h(n){s=v(n),v(n,{dY:.2*s.mFakt,butDown:!0}),w(n)}function m(n){s=v(n),v(n,{dY:-.2*s.mFakt,butDown:!0}),w(n)}function f(n){s=v(n),v(n,{dX:0,dY:0,dFov:0,butDown:!1})}function v(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}}
1
+ var wppaJsSphericVersion="8.0.00.011";function wppaDoSphericPan(t,n){var c=jQuery;n&&(wppaSphericData[t]=n);var s=f(t,s);if(!s.initialized&&!s.abort&&(!s.isLightbox||wppaOvlOpen)){if(!s.isLightbox&&!wppaIsElementInViewport(c("#wppa-pan-div-"+t)))return setTimeout(function(){wppaDoSphericPan(t)},1e3),void f(t,{vtime:g()});s.wppaRenderer&&(s.wppaRenderer.state.reset(),s.wppaSphere.dispose(),s.wppaSphereMaterial.dispose(),s.texture.dispose()),s.isLightbox&&wppaOvlOpen&&c("#wppa-ovl-spin").show(),s.manCtrl=!1,s.butDown=!1,s.lon=180,s.lat=0,s.dFov=0,s.abort=!1,s.aspect=2,s.div=c("#wppa-pan-div-"+t),s.left=c("#wppa-pctl-left-"+t),s.right=c("#wppa-pctl-right-"+t),s.up=c("#wppa-pctl-up-"+t),s.down=c("#wppa-pctl-down-"+t),s.zoomin=c("#wppa-pctl-zoomin-"+t),s.zoomout=c("#wppa-pctl-zoomout-"+t),s.prev=c("#wppa-pctl-prev-"+t),s.next=c("#wppa-pctl-next-"+t),s.pause=!1,s.mFakt=wppaIsMobile?"2":"1",s.time=0,s.isLightbox&&(wppaGlobalOvlPanoramaId++,s.uId=wppaGlobalOvlPanoramaId),c(s.div).html(""),s.wppaRenderer||(s.wppaRenderer=new THREE.WebGLRenderer),s.wppaRenderer.setSize(s.width,s.height),c(s.div).append(s.wppaRenderer.domElement),s.wppaScene=new THREE.Scene,s.wppaSphere=new THREE.SphereGeometry(100,100,40),s.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),s.texture=(new THREE.TextureLoader).load(s.url),s.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:s.texture}),s.wppaSphereMesh=new THREE.Mesh(s.wppaSphere,s.wppaSphereMaterial),s.wppaScene.add(s.wppaSphereMesh),s.right.on("touchstart",function(n){u(t)}),s.right.on("touchend",function(n){v(t)}),s.left.on("touchstart",function(n){l(t)}),s.left.on("touchend",function(n){v(t)}),s.up.on("touchstart",function(n){h(t)}),s.up.on("touchend",function(n){v(t)}),s.down.on("touchstart",function(n){m(t)}),s.down.on("touchend",function(n){v(t)}),s.zoomin.on("touchstart",function(n){i(t)}),s.zoomin.on("touchend",function(n){v(t)}),s.zoomout.on("touchstart",function(n){r(t)}),s.zoomout.on("touchend",function(n){v(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchstart",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchmove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("touchend",function(n){p(t)})),s.right.on("mousedown",function(n){u(t)}),s.right.on("mouseup",function(n){v(t)}),s.left.on("mousedown",function(n){l(t)}),s.left.on("mouseup",function(n){v(t)}),s.up.on("mousedown",function(n){h(t)}),s.up.on("mouseup",function(n){v(t)}),s.down.on("mousedown",function(n){m(t)}),s.down.on("mouseup",function(n){v(t)}),s.zoomin.off("mousedown"),s.zoomin.on("mousedown",function(n){i(t)}),s.zoomin.off("mouseup"),s.zoomin.on("mouseup",function(n){v(t)}),s.zoomout.on("mousedown",function(n){r(t)}),s.zoomout.on("mouseup",function(n){v(t)}),s.enableManual&&0<c("#wppa-pan-div-"+t+" canvas").length&&(c("#wppa-pan-div-"+t+" canvas").on("mousedown",function(n){a(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mousemove",function(n){o(t,n)}),c("#wppa-pan-div-"+t+" canvas").on("mouseup",function(n){p(t)}),c("#wppa-pan-div-"+t+" canvas")[0].addEventListener("wheel",function(n){var e;e=t,(n=n).preventDefault(),n.stopPropagation(),s=f(e),f(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-n.deltaY*s.zoomsensitivity/(wppaIsChrome?60:6)}),w(e),setTimeout(function(){f(e,{dFov:0})},25)})),s.isLightbox&&(c("body").on("quitimage",function(n){var e;s=f(e=t,{abort:!0,autorun:!1}),clearTimeout(s.timer),clearInterval(s.intervalTimer),c("#wppa-pan-div-"+e+" canvas").hide(),c("#wppa-pctl-div-"+e).hide()}),c("#wppa-pctl-div-"+t).on("click",function(n){wppaKillEvent(n)})),f(t,s),s.isLightbox?(c(window).off("wpparesizeend",wppaOvlShowSame),c(window).on("wpparesizeend",wppaOvlShowSame)):c(window).on("wpparesizeend",function(n){e(t)}),wppaProtect(),c(document).on("tabbychange",function(n){var e;e=t,s.wppaRenderer.state.reset(),s=f(e,{initialized:!1,abort:!0}),setTimeout(function(){f(e,{abort:!1}),wppaDoSphericPan(e)},200),wppaConsoleLog("(setTimeout) redo spheric after tabbychange mocc="+e)}),e(t),s.intervalTimer=setInterval(function(){e(t)},1e3)}function w(n){var e=f(n),t=wppaIsElementInViewport(c("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25)){if(!t)return!(g()<e.vtime+1e3)&&(setTimeout(function(){w(n)},1e3),void f(n,{vtime:g()}));f(n,{time:g()}),e.isLightbox&&(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0),e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),c("#wppa-ovl-spin").hide(),e.manCtrl,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){w(n)},25)),f(n,e))}}function e(n){var e=!wppaIsFs();if(s=f(n)){if(s.isLightbox){if(!wppaOvlOpen)return;c("#wppa-overlay-ic").css("display",""),c("#wppa-overlay-ic").css("width","");var t,a,o=(e=!wppaIsFs())?(a=window.innerWidth||screen.width,window.innerHeight||screen.height):(a=screen.width,screen.height),p=8,i=8+(s.controls?s.icsize+10:0)+30;e&&(p+=2*s.borderWidth,i+=2*s.borderWidth),t=(a-p)/2+i<o,i=e?t?(o-(u=(r=a-p)/2)-i)/2+20:(r=2*(u=o-i),20):(r=screen.width,u=screen.height,0),s.aspect=r/u,c("#wppa-ovl-pan-container").css({top:i}),c("#wppa-overlay-ic").css({top:0}),e?(c("#wppa-ovl-pan-container").css({backgroundColor:s.backgroundColor,padding:s.padding+"px",borderRadius:s.borderRadius+"px",width:r,marginLeft:0}),t?c("#wppa-overlay-ic").css({left:4,marginLeft:0}):c("#wppa-overlay-ic").css({left:(a-r)/2,marginLeft:0})):(c("#wppa-overlay-ic").css({marginLeft:0}),c("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:r,left:(a-r)/2})),s.wppaRenderer.setSize(r,u)}else{var r=c(s.div).parent().width(),u=parseInt(r/2);if(!s.wppaRenderer)return;s.wppaRenderer.setSize(r,u)}s.width=r,s.height=u,f(n,s),s.timer=setTimeout(function(){w(n)},250)}}function a(n,e){e.preventDefault(),e.stopPropagation(),s=f(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),e.touches?f(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):f(n,{sX:e.clientX,sY:e.clientY}),f(n,{sLon:s.lon,sLat:s.lat}),w(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(s=f(n)).manCtrl&&(e.touches?f(n,{lon:.1*(s.sX-e.touches[0].clientX)+s.sLon,lat:.1*(e.touches[0].clientY-s.sY)+s.sLat,pause:!1}):f(n,{lon:.1*(s.sX-e.clientX)+s.sLon,lat:.1*(e.clientY-s.sY)+s.sLat,pause:!1}),w(n))}function p(n){f(n,{manCtrl:!1})}function i(n){s=f(n),f(n,{dFov:-.4*s.mFakt,butDown:!0}),w(n)}function r(n){s=f(n),f(n,{dFov:.4*s.mFakt,butDown:!0}),w(n)}function u(n){s=f(n),f(n,{dX:.2*s.mFakt,butDown:!0}),w(n)}function l(n){s=f(n),f(n,{dX:-.2*s.mFakt,butDown:!0}),w(n)}function h(n){s=f(n),f(n,{dY:.2*s.mFakt,butDown:!0}),w(n)}function m(n){s=f(n),f(n,{dY:-.2*s.mFakt,butDown:!0}),w(n)}function v(n){s=f(n),f(n,{dX:0,dY:0,dFov:0,butDown:!1})}function f(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}}
js/wppa-zoom.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
- var wppaJsZoomVersion = '8.0.00.006';
6
 
7
  // The main proccedure
8
  function wppaDoZoomPan(mocc, xdata) {
@@ -366,8 +366,8 @@ function wppaDoZoomPan(mocc, xdata) {
366
  }
367
 
368
  // Set css common for all 4 situations
369
- $("#wppa-ovl-pan-container").css({marginTop:topMarg});
370
- $("#wppa-overlay-ic").css({marginTop:0,marginLeft:0});
371
 
372
  data.canvasWidth = newWidth;
373
  data.canvasHeight = newHeight;
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
+ var wppaJsZoomVersion = '8.0.00.011';
6
 
7
  // The main proccedure
8
  function wppaDoZoomPan(mocc, xdata) {
366
  }
367
 
368
  // Set css common for all 4 situations
369
+ $("#wppa-ovl-pan-container").css({top:topMarg});
370
+ $("#wppa-overlay-ic").css({top:0,marginLeft:0});
371
 
372
  data.canvasWidth = newWidth;
373
  data.canvasHeight = newHeight;
js/wppa-zoom.min.js CHANGED
@@ -1 +1 @@
1
- var wppaJsZoomVersion="8.0.00.006";function wppaDoZoomPan(n,a){var m=jQuery;a&&(wppaZoomData[n]=a);var o=l(n);if(!o.initialized&&!o.abort){if(o.isLightbox&&m("#wppa-ovl-spin").show(),!o.image.complete)return wppaConsoleLog("Loading image "+n),void setTimeout(function(){wppaDoZoomPan(n)},200);wppaConsoleLog("Loading image "+n+" complete"),m(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),o.manual=!1,o.deltaX=0,o.deltaY=0,o.deltaFactor=1,o.busy=!1,o.div=m("#wppa-pan-div-"+o.itemId),o.canvas=document.getElementById("wppa-pan-canvas-"+o.itemId),o.left=m("#wppa-pctl-left-"+o.itemId),o.right=m("#wppa-pctl-right-"+o.itemId),o.up=m("#wppa-pctl-up-"+o.itemId),o.down=m("#wppa-pctl-down-"+o.itemId),o.zoomin=m("#wppa-pctl-zoomin-"+o.itemId),o.zoomout=m("#wppa-pctl-zoomout-"+o.itemId),o.prev=m("#wppa-pctl-prev-"+o.itemId),o.next=m("#wppa-pctl-next-"+o.itemId),o.exit=m("#wppa-exit-btn-2"),o.canvasWidth=o.width,o.canvasHeight=o.height,o.savedCanvasX=0,o.savedCanvasY=0,o.fromHeight=o.image.height,o.fromWidth=o.image.width,o.imageRatio=o.image.width/o.image.height,o.fromX=0,o.fromY=0,o.centerX=o.fromX+o.fromWidth/2,o.centerY=o.fromY+o.fromHeight/2,o.ctx=null,o.buttondown=!1,o.enableManual=!0,o.ctrlbarUpdate=!0,o.pause=!1,o.time=0,o.right.on("touchstart",function(a){e(n)}),o.right.on("touchend",function(a){h(n)}),o.left.on("touchstart",function(a){i(n)}),o.left.on("touchend",function(a){h(n)}),o.up.on("touchstart",function(a){s(n)}),o.up.on("touchend",function(a){h(n)}),o.down.on("touchstart",function(a){r(n)}),o.down.on("touchend",function(a){h(n)}),o.zoomin.on("touchstart",function(a){c(n)}),o.zoomin.on("touchend",function(a){h(n)}),o.zoomout.on("touchstart",function(a){u(n)}),o.zoomout.on("touchend",function(a){h(n)}),o.canvas&&(o.canvas.addEventListener("touchstart",function(a){f(n,a)}),o.canvas.addEventListener("touchmove",function(a){g(n,a)}),o.canvas.addEventListener("touchend",function(a){w(n)})),o.canvas&&(o.canvas.addEventListener("mousedown",function(a){f(n,a)}),o.canvas.addEventListener("mousemove",function(a){g(n,a)}),o.canvas.addEventListener("mouseup",function(a){w(n)}),o.canvas.addEventListener("mouseleave",function(a){(o=l(n)).manual&&l(n,{pause:!0})}),o.canvas.addEventListener("mouseenter",function(a){var t;l(t=n,{pause:!1}).manual&&p(t)}),document.getElementById("wppa-pan-canvas-"+o.itemId).addEventListener("wheel",function(a){var t;t=n,(a=a).preventDefault(),a.stopPropagation(),o=l(t),l(t,{deltaFactor:1+a.deltaY*o.zoomsensitivity/(wppaIsChrome?1e4:1e3),manual:!1,burrondown:!1}),p(t),setTimeout(function(){l(t,{deltaFactor:1})},25)})),o.right.on("mousedown",function(a){e(n)}),o.right.on("mouseup",function(a){h(n)}),o.left.on("mousedown",function(a){i(n)}),o.left.on("mouseup",function(a){h(n)}),o.up.on("mousedown",function(a){s(n)}),o.up.on("mouseup",function(a){h(n)}),o.down.on("mousedown",function(a){r(n)}),o.down.on("mouseup",function(a){h(n)}),o.zoomin.off("mousedown"),o.zoomin.on("mousedown",function(a){c(n)}),o.zoomin.off("mouseup"),o.zoomin.on("mouseup",function(a){h(n)}),o.zoomout.on("mousedown",function(a){u(n)}),o.zoomout.on("mouseup",function(a){h(n)}),o.isLightbox&&(m("body").on("quitimage",function(a){var t;t=n,wppaConsoleLog("Zoom Quit Image"),o=l(t,{abort:!0}),m(o.canvas).hide(),m("#wppa-pctl-div-"+o.itemId).hide()}),m("#wppa-pctl-div-"+o.itemId).on("click",function(a){wppaKillEvent(a)})),o.isLightbox?(m(window).off("resize",wppaOvlShowSame),m(window).on("resize",wppaOvlShowSame)):m(window).on("resize",function(a){t(n)}),t(n),o.initialized=!0,l(n,o),m("#wppa-ovl-spin").hide(),wppaProtect()}function p(a){var t,n,o,e,i,s=l(a);s.canvas&&(L()<s.time+10?wppaConsoleLog("Skipped render "+a):(l(a,{time:L()}),(s.isLightbox&&!wppaOvlOpen||!s.isLightbox&&wppaOvlOpen)&&(s=l(0,{abort:!0})),s.abort?l(a,{manual:!1,buttondown:!1,pause:!1,ctx:null}):s.busy||(wppaDebugCounter++,wppaConsoleLog("Render zoom "+a+" "+wppaDebugCounter),(s=l(a,{busy:!0})).manual||(s.fromX+=s.deltaX,s.fromY+=s.deltaY,t=s.fromHeight/s.deltaFactor,n=s.fromWidth/s.deltaFactor,50<t&&1!=s.deltaFactor&&(wppaIsFs()||t<=s.image.height)?(s.fromX-=(n-s.fromWidth)/2,s.fromY-=(t-s.fromHeight)/2,s.fromWidth=n,s.fromHeight=t):s.buttondown=!1),s.fromX=Math.max(0,Math.min(s.image.width-s.fromWidth,s.fromX)),s.fromY=Math.max(0,Math.min(s.image.height-s.fromHeight,s.fromY)),o=screen.width/screen.height,e=(1-s.image.width/s.fromWidth)*s.canvas.width/2,i=(1-s.image.height/s.fromHeight)*s.canvas.height/2,s.ctx=s.canvas.getContext("2d"),o>s.imageRatio&&t>s.image.height&&wppaIsFs()||o<=s.imageRatio&&n>s.image.width&&wppaIsFs()?(s.enableManual=!1,s.ctx.clearRect(0,0,s.canvas.width,s.canvas.height),s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,e,i,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"default"})):(s.enableManual=!0,s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,0,0,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"grab"})),wppaIsFs()?(s.fsMaskTop=i-(s.canvas.height-screen.height)/2,s.fsMaskLeft=e-(s.canvas.width-screen.width)/2,s.fsMaskBottom=screen.height-s.fsMaskTop,s.fsMaskRight=screen.width-s.fsMaskLeft):(s.fsMaskTop=0,s.fsMaskLeft=0,s.fsMaskBottom=0,s.fsMaskRight=0),s.ctrlbarUpdate&&(wppaAdjustControlbar(),s.ctrlbarUpdate=!1),s.busy=!1,wppaIsElementInViewport(s.canvas)||(s.buttondown=!1),l(a,s),s.pause||!s.manual&&!s.buttondown||setTimeout(function(){p(a)},10),s.pause&&l(a,{pause:!1}))))}function t(a){var t,n,o,e,i,s,r,c,d,u=l(a);u&&(u.isLightbox?(m("#wppa-overlay-ic").css("display",""),e=(n=!wppaIsFs())?(o=window.innerWidth||screen.width,window.innerHeight||screen.height):(o=screen.width,screen.height),r=0,d=(c=8)+(u.controls?u.icsize+10:0)+10,n?(c+=2*u.borderWidth,d+=2*u.borderWidth):c=40,t=n?e-d>(o-c)/u.imageRatio:(screenRatio=screen.width/screen.height,screenRatio<u.imageRatio),n&&t&&(r=(e-(s=(i=o-c)/u.imageRatio)-d)/2+20),n&&!t&&(s=(i=u.imageRatio*(e-(u.controls?u.icsize:0)-48))/u.imageRatio,r=20),!n&&t&&(i=(s=screen.height)*u.imageRatio,r=0),n||t||(s=(i=screen.width)/u.imageRatio,r=(screen.height-s)/2),m("#wppa-ovl-pan-container").css({marginTop:r}),m("#wppa-overlay-ic").css({marginTop:0,marginLeft:0}),u.canvasWidth=i,u.canvasHeight=s,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight,n?(m("#wppa-ovl-pan-container").css({backgroundColor:u.backgroundColor,padding:u.padding,borderRadius:u.borderRadius+"px",borderWidth:u.borderWidth+"px",width:i,marginLeft:0}),t?m("#wppa-overlay-ic").css({left:4}):m("#wppa-overlay-ic").css({left:(o-i)/2})):(m("#wppa-overlay-ic").css({marginLeft:0}),m("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",borderWidth:"0px",width:i,left:(o-i)/2,position:"fixed"}))):(u.canvasWidth=m(u.div).parent().width(),u.canvasHeight=u.canvasWidth/u.imageRatio,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight),u.ctrlbarUpdate=!0,l(a,u),setTimeout(function(){p(a)},250))}function e(a){var t=l(a),t=t.image.naturalWidth/t.canvas.width;t<1.5&&(t=1.5),l(a,{deltaX:t*=1.5,buttondown:!0,manual:!1}),p(a)}function i(a){var t=l(a),t=t.image.naturalWidth/t.canvas.width;t<1.5&&(t=1.5),l(a,{deltaX:-(t*=1.5),buttondown:!0,manual:!1}),p(a)}function s(a){var t=l(a),t=t.image.naturalHeight/t.canvas.height;t<1.5&&(t=1.5),l(a,{deltaY:-(t*=1.5),buttondown:!0,manual:!1}),p(a)}function r(a){var t=l(a),t=t.image.naturalHeight/t.canvas.height;t<1.5&&(t=1.5),l(a,{deltaY:t*=1.5,buttondown:!0,manual:!1}),p(a)}function c(a){l(a,{deltaFactor:1.005,buttondown:!0,manual:!1}),p(a)}function u(a){l(a,{deltaFactor:.995,buttondown:!0,manual:!1}),p(a)}function h(a){l(a,{deltaX:0,deltaY:0,deltaFactor:1,buttondown:!1})}function f(a,t){var n=l(a),o=v(t).X,e=v(t).Y;if(wppaIsFs()&&n.isLightbox&&(o<n.fsMaskLeft||o>n.fsMaskRight||e<n.fsMaskTop||e>n.fsMaskBottom))return l(0,{abort:!0}),void jQuery("#wppa-overlay-bg").trigger("click");n.enableManual&&(l(a,{manual:!0,savedCanvasX:o=b(a,t).X,savedCanvasY:e=b(a,t).Y,buttondown:!1}),p(a))}function g(a,t){var n,o=l(a),e=b(a,t).X,i=b(a,t).Y;o.manual&&(n=o.canvas.width/o.fromWidth,t=(o.savedCanvasX-e)/n+o.fromX,n=(o.savedCanvasY-i)/n+o.fromY,0<t&&0<n&&t+o.fromWidth<o.image.width&&n+o.fromHeight<o.image.height&&l(a,{fromX:t,fromY:n,savedCanvasX:e,savedCanvasY:i}))}function w(a){l(a,{manual:!1})}function l(a,t){if(!wppaZoomData[a])return!1;if(t)for(var n in t)wppaZoomData[a][n]=t[n];return wppaZoomData[a]}function v(a){var t;return a=a.touches?(t=a.touches[0].screenX,a.touches[0].screenY):(t=a.screenX,a.screenY),{X:t,Y:a}}function b(a,t){var n;return t=t.touches?(a=l(a),n=t.touches[0].screenX-a.fsMaskLeft,t.touches[0].screenY-a.fsMaskTop):(n=t.offsetX,t.offsetY),{X:n,Y:t}}function L(){return d=new Date,d.getTime()}}
1
+ var wppaJsZoomVersion="8.0.00.011";function wppaDoZoomPan(n,t){var m=jQuery;t&&(wppaZoomData[n]=t);var o=l(n);if(!o.initialized&&!o.abort){if(o.isLightbox&&m("#wppa-ovl-spin").show(),!o.image.complete)return wppaConsoleLog("Loading image "+n),void setTimeout(function(){wppaDoZoomPan(n)},200);wppaConsoleLog("Loading image "+n+" complete"),m(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),o.manual=!1,o.deltaX=0,o.deltaY=0,o.deltaFactor=1,o.busy=!1,o.div=m("#wppa-pan-div-"+o.itemId),o.canvas=document.getElementById("wppa-pan-canvas-"+o.itemId),o.left=m("#wppa-pctl-left-"+o.itemId),o.right=m("#wppa-pctl-right-"+o.itemId),o.up=m("#wppa-pctl-up-"+o.itemId),o.down=m("#wppa-pctl-down-"+o.itemId),o.zoomin=m("#wppa-pctl-zoomin-"+o.itemId),o.zoomout=m("#wppa-pctl-zoomout-"+o.itemId),o.prev=m("#wppa-pctl-prev-"+o.itemId),o.next=m("#wppa-pctl-next-"+o.itemId),o.exit=m("#wppa-exit-btn-2"),o.canvasWidth=o.width,o.canvasHeight=o.height,o.savedCanvasX=0,o.savedCanvasY=0,o.fromHeight=o.image.height,o.fromWidth=o.image.width,o.imageRatio=o.image.width/o.image.height,o.fromX=0,o.fromY=0,o.centerX=o.fromX+o.fromWidth/2,o.centerY=o.fromY+o.fromHeight/2,o.ctx=null,o.buttondown=!1,o.enableManual=!0,o.ctrlbarUpdate=!0,o.pause=!1,o.time=0,o.right.on("touchstart",function(t){e(n)}),o.right.on("touchend",function(t){h(n)}),o.left.on("touchstart",function(t){i(n)}),o.left.on("touchend",function(t){h(n)}),o.up.on("touchstart",function(t){s(n)}),o.up.on("touchend",function(t){h(n)}),o.down.on("touchstart",function(t){r(n)}),o.down.on("touchend",function(t){h(n)}),o.zoomin.on("touchstart",function(t){c(n)}),o.zoomin.on("touchend",function(t){h(n)}),o.zoomout.on("touchstart",function(t){u(n)}),o.zoomout.on("touchend",function(t){h(n)}),o.canvas&&(o.canvas.addEventListener("touchstart",function(t){f(n,t)}),o.canvas.addEventListener("touchmove",function(t){g(n,t)}),o.canvas.addEventListener("touchend",function(t){w(n)})),o.canvas&&(o.canvas.addEventListener("mousedown",function(t){f(n,t)}),o.canvas.addEventListener("mousemove",function(t){g(n,t)}),o.canvas.addEventListener("mouseup",function(t){w(n)}),o.canvas.addEventListener("mouseleave",function(t){(o=l(n)).manual&&l(n,{pause:!0})}),o.canvas.addEventListener("mouseenter",function(t){var a;l(a=n,{pause:!1}).manual&&p(a)}),document.getElementById("wppa-pan-canvas-"+o.itemId).addEventListener("wheel",function(t){var a;a=n,(t=t).preventDefault(),t.stopPropagation(),o=l(a),l(a,{deltaFactor:1+t.deltaY*o.zoomsensitivity/(wppaIsChrome?1e4:1e3),manual:!1,burrondown:!1}),p(a),setTimeout(function(){l(a,{deltaFactor:1})},25)})),o.right.on("mousedown",function(t){e(n)}),o.right.on("mouseup",function(t){h(n)}),o.left.on("mousedown",function(t){i(n)}),o.left.on("mouseup",function(t){h(n)}),o.up.on("mousedown",function(t){s(n)}),o.up.on("mouseup",function(t){h(n)}),o.down.on("mousedown",function(t){r(n)}),o.down.on("mouseup",function(t){h(n)}),o.zoomin.off("mousedown"),o.zoomin.on("mousedown",function(t){c(n)}),o.zoomin.off("mouseup"),o.zoomin.on("mouseup",function(t){h(n)}),o.zoomout.on("mousedown",function(t){u(n)}),o.zoomout.on("mouseup",function(t){h(n)}),o.isLightbox&&(m("body").on("quitimage",function(t){var a;a=n,wppaConsoleLog("Zoom Quit Image"),o=l(a,{abort:!0}),m(o.canvas).hide(),m("#wppa-pctl-div-"+o.itemId).hide()}),m("#wppa-pctl-div-"+o.itemId).on("click",function(t){wppaKillEvent(t)})),o.isLightbox?(m(window).off("resize",wppaOvlShowSame),m(window).on("resize",wppaOvlShowSame)):m(window).on("resize",function(t){a(n)}),a(n),o.initialized=!0,l(n,o),m("#wppa-ovl-spin").hide(),wppaProtect()}function p(t){var a,n,o,e,i,s=l(t);s.canvas&&(L()<s.time+10?wppaConsoleLog("Skipped render "+t):(l(t,{time:L()}),(s.isLightbox&&!wppaOvlOpen||!s.isLightbox&&wppaOvlOpen)&&(s=l(0,{abort:!0})),s.abort?l(t,{manual:!1,buttondown:!1,pause:!1,ctx:null}):s.busy||(wppaDebugCounter++,wppaConsoleLog("Render zoom "+t+" "+wppaDebugCounter),(s=l(t,{busy:!0})).manual||(s.fromX+=s.deltaX,s.fromY+=s.deltaY,a=s.fromHeight/s.deltaFactor,n=s.fromWidth/s.deltaFactor,50<a&&1!=s.deltaFactor&&(wppaIsFs()||a<=s.image.height)?(s.fromX-=(n-s.fromWidth)/2,s.fromY-=(a-s.fromHeight)/2,s.fromWidth=n,s.fromHeight=a):s.buttondown=!1),s.fromX=Math.max(0,Math.min(s.image.width-s.fromWidth,s.fromX)),s.fromY=Math.max(0,Math.min(s.image.height-s.fromHeight,s.fromY)),o=screen.width/screen.height,e=(1-s.image.width/s.fromWidth)*s.canvas.width/2,i=(1-s.image.height/s.fromHeight)*s.canvas.height/2,s.ctx=s.canvas.getContext("2d"),o>s.imageRatio&&a>s.image.height&&wppaIsFs()||o<=s.imageRatio&&n>s.image.width&&wppaIsFs()?(s.enableManual=!1,s.ctx.clearRect(0,0,s.canvas.width,s.canvas.height),s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,e,i,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"default"})):(s.enableManual=!0,s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,0,0,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"grab"})),wppaIsFs()?(s.fsMaskTop=i-(s.canvas.height-screen.height)/2,s.fsMaskLeft=e-(s.canvas.width-screen.width)/2,s.fsMaskBottom=screen.height-s.fsMaskTop,s.fsMaskRight=screen.width-s.fsMaskLeft):(s.fsMaskTop=0,s.fsMaskLeft=0,s.fsMaskBottom=0,s.fsMaskRight=0),s.ctrlbarUpdate&&(wppaAdjustControlbar(),s.ctrlbarUpdate=!1),s.busy=!1,wppaIsElementInViewport(s.canvas)||(s.buttondown=!1),l(t,s),s.pause||!s.manual&&!s.buttondown||setTimeout(function(){p(t)},10),s.pause&&l(t,{pause:!1}))))}function a(t){var a,n,o,e,i,s,r,c,d,u=l(t);u&&(u.isLightbox?(m("#wppa-overlay-ic").css("display",""),e=(n=!wppaIsFs())?(o=window.innerWidth||screen.width,window.innerHeight||screen.height):(o=screen.width,screen.height),r=0,d=(c=8)+(u.controls?u.icsize+10:0)+10,n?(c+=2*u.borderWidth,d+=2*u.borderWidth):c=40,a=n?e-d>(o-c)/u.imageRatio:(screenRatio=screen.width/screen.height,screenRatio<u.imageRatio),n&&a&&(r=(e-(s=(i=o-c)/u.imageRatio)-d)/2+20),n&&!a&&(s=(i=u.imageRatio*(e-(u.controls?u.icsize:0)-48))/u.imageRatio,r=20),!n&&a&&(i=(s=screen.height)*u.imageRatio,r=0),n||a||(s=(i=screen.width)/u.imageRatio,r=(screen.height-s)/2),m("#wppa-ovl-pan-container").css({top:r}),m("#wppa-overlay-ic").css({top:0,marginLeft:0}),u.canvasWidth=i,u.canvasHeight=s,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight,n?(m("#wppa-ovl-pan-container").css({backgroundColor:u.backgroundColor,padding:u.padding,borderRadius:u.borderRadius+"px",borderWidth:u.borderWidth+"px",width:i,marginLeft:0}),a?m("#wppa-overlay-ic").css({left:4}):m("#wppa-overlay-ic").css({left:(o-i)/2})):(m("#wppa-overlay-ic").css({marginLeft:0}),m("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",borderWidth:"0px",width:i,left:(o-i)/2,position:"fixed"}))):(u.canvasWidth=m(u.div).parent().width(),u.canvasHeight=u.canvasWidth/u.imageRatio,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight),u.ctrlbarUpdate=!0,l(t,u),setTimeout(function(){p(t)},250))}function e(t){var a=l(t),a=a.image.naturalWidth/a.canvas.width;a<1.5&&(a=1.5),l(t,{deltaX:a*=1.5,buttondown:!0,manual:!1}),p(t)}function i(t){var a=l(t),a=a.image.naturalWidth/a.canvas.width;a<1.5&&(a=1.5),l(t,{deltaX:-(a*=1.5),buttondown:!0,manual:!1}),p(t)}function s(t){var a=l(t),a=a.image.naturalHeight/a.canvas.height;a<1.5&&(a=1.5),l(t,{deltaY:-(a*=1.5),buttondown:!0,manual:!1}),p(t)}function r(t){var a=l(t),a=a.image.naturalHeight/a.canvas.height;a<1.5&&(a=1.5),l(t,{deltaY:a*=1.5,buttondown:!0,manual:!1}),p(t)}function c(t){l(t,{deltaFactor:1.005,buttondown:!0,manual:!1}),p(t)}function u(t){l(t,{deltaFactor:.995,buttondown:!0,manual:!1}),p(t)}function h(t){l(t,{deltaX:0,deltaY:0,deltaFactor:1,buttondown:!1})}function f(t,a){var n=l(t),o=v(a).X,e=v(a).Y;if(wppaIsFs()&&n.isLightbox&&(o<n.fsMaskLeft||o>n.fsMaskRight||e<n.fsMaskTop||e>n.fsMaskBottom))return l(0,{abort:!0}),void jQuery("#wppa-overlay-bg").trigger("click");n.enableManual&&(l(t,{manual:!0,savedCanvasX:o=b(t,a).X,savedCanvasY:e=b(t,a).Y,buttondown:!1}),p(t))}function g(t,a){var n,o=l(t),e=b(t,a).X,i=b(t,a).Y;o.manual&&(n=o.canvas.width/o.fromWidth,a=(o.savedCanvasX-e)/n+o.fromX,n=(o.savedCanvasY-i)/n+o.fromY,0<a&&0<n&&a+o.fromWidth<o.image.width&&n+o.fromHeight<o.image.height&&l(t,{fromX:a,fromY:n,savedCanvasX:e,savedCanvasY:i}))}function w(t){l(t,{manual:!1})}function l(t,a){if(!wppaZoomData[t])return!1;if(a)for(var n in a)wppaZoomData[t][n]=a[n];return wppaZoomData[t]}function v(t){var a;return t=t.touches?(a=t.touches[0].screenX,t.touches[0].screenY):(a=t.screenX,t.screenY),{X:a,Y:t}}function b(t,a){var n;return a=a.touches?(t=l(t),n=a.touches[0].screenX-t.fsMaskLeft,a.touches[0].screenY-t.fsMaskTop):(n=a.offsetX,a.offsetY),{X:n,Y:a}}function L(){return d=new Date,d.getTime()}}
js/wppa.js CHANGED
@@ -3,7 +3,7 @@
3
  // contains common vars and functions
4
  //
5
 
6
- wppaWppaVer = '8.0.00.010';
7
 
8
  var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
9
  var wppaIsSafari = false;
@@ -352,8 +352,8 @@ function wppaDoInit() {
352
  jQuery(window).on('DOMContentLoaded load resize scroll wheel orientationchange',wppaSizeArea);
353
 
354
  // Make Lazy load images visible
355
- jQuery(window).on('DOMContentLoaded load resize wppascrollend orientationchange', function(){wppaMakeLazyVisible('doinitwindowon')});
356
- jQuery('.wppa-divnicewrap').on('DOMContentLoaded load resize wppascrollend wheelend orientationchange', function(){wppaMakeLazyVisible('doinitnicewrapon')});
357
 
358
  // Init masonryplus
359
  jQuery(window).on('DOMContentLoaded load resize wppascrollend orientationchange', wppaInitMasonryPlus);
@@ -366,34 +366,7 @@ function wppaDoInit() {
366
 
367
  setTimeout( function() {
368
 
369
- jQuery("div").each(function(){
370
- if (jQuery(this).getNiceScroll) {
371
- jQuery(this).getNiceScroll().resize();
372
- }
373
- });
374
-
375
- /*
376
- jQuery(".wppa-thumb-area").each(function(){
377
- if (jQuery(this).getNiceScroll) {
378
- jQuery(this).getNiceScroll().resize();
379
- }
380
- });
381
-
382
- jQuery(".albumlist").each(function(){
383
- if (jQuery(this).getNiceScroll) {
384
- jQuery(this).getNiceScroll().resize();
385
- }
386
- });
387
-
388
- jQuery(".wppa-div").each(function(){
389
- if (jQuery(this).getNiceScroll) {
390
- jQuery(this).getNiceScroll().resize();
391
- }
392
- });
393
- */
394
- if (jQuery("body").getNiceScroll) {
395
- jQuery("body").getNiceScroll().resize();
396
- }
397
 
398
  }, 1000);
399
  });
@@ -412,7 +385,7 @@ function wppaDoInit() {
412
 
413
  jQuery(document).on("tabbychange",function(){
414
 
415
- if (jQuery("div").getNiceScroll) {
416
  setTimeout(function(){
417
  jQuery("div").getNiceScroll().resize();
418
  wppaDoAllAutocols();
@@ -422,16 +395,8 @@ function wppaDoInit() {
422
  wppaDoAllAutocols();
423
  jQuery(window).trigger("resize");
424
  jQuery("#wppa-ovl-spin").hide();
425
- wppaMakeLazyVisible("tabbychange");
426
  },1500);
427
- /*
428
- setTimeout(function(){
429
- wppaDoAllAutocols();
430
- },2500);
431
- setTimeout(function(){
432
- wppaDoAllAutocols();
433
- },5000);
434
- */
435
  });
436
 
437
  // Lightbox global
@@ -455,6 +420,28 @@ function wppaDoInit() {
455
  jQuery("div").on("touchmove", wppaMakeLazyVisibleScrollEnd);
456
  }
457
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
458
  // resize end listener
459
  var wppaResizeEndTimer;
460
  jQuery(document).ready(function(){
3
  // contains common vars and functions
4
  //
5
 
6
+ wppaWppaVer = '8.0.00.011';
7
 
8
  var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
9
  var wppaIsSafari = false;
352
  jQuery(window).on('DOMContentLoaded load resize scroll wheel orientationchange',wppaSizeArea);
353
 
354
  // Make Lazy load images visible
355
+ jQuery(window).on('DOMContentLoaded load resize wppascrollend orientationchange', function(){wppaMakeLazyVisibleScrollEnd('doinitwindowon')});
356
+ jQuery('.wppa-divnicewrap').on('DOMContentLoaded load resize wppascrollend wheelend orientationchange', function(){wppaMakeLazyVisibleScrollEnd('doinitnicewrapon')});
357
 
358
  // Init masonryplus
359
  jQuery(window).on('DOMContentLoaded load resize wppascrollend orientationchange', wppaInitMasonryPlus);
366
 
367
  setTimeout( function() {
368
 
369
+ wppaResizeNice();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
 
371
  }, 1000);
372
  });
385
 
386
  jQuery(document).on("tabbychange",function(){
387
 
388
+ if ( typeof jQuery("div").getNiceScroll != "undefined" ) {
389
  setTimeout(function(){
390
  jQuery("div").getNiceScroll().resize();
391
  wppaDoAllAutocols();
395
  wppaDoAllAutocols();
396
  jQuery(window).trigger("resize");
397
  jQuery("#wppa-ovl-spin").hide();
398
+ wppaMakeLazyVisibleScrollEnd("tabbychange");
399
  },1500);
 
 
 
 
 
 
 
 
400
  });
401
 
402
  // Lightbox global
420
  jQuery("div").on("touchmove", wppaMakeLazyVisibleScrollEnd);
421
  }
422
 
423
+ // Resize all nicescrollers
424
+ var wppaResizeNiceTimer;
425
+ function wppaResizeNice() {
426
+
427
+ clearTimeout(wppaResizeNiceTimer);
428
+ // wppaConsoleLog('ResizeNice skipped', "force");
429
+ wppaResizeNiceTimer = setTimeout(function(){_wppaResizeNice()}, 200);
430
+ }
431
+ function _wppaResizeNice() {
432
+
433
+ wppaConsoleLog("Doing wppaResizeNice", "force");
434
+
435
+ if ( typeof jQuery("body").getNiceScroll == "function" ) {
436
+ jQuery("body").getNiceScroll().resize();
437
+ }
438
+ jQuery("div").each(function(){
439
+ if ( typeof jQuery(this).getNiceScroll == "function" ) {
440
+ jQuery(this).getNiceScroll().resize();
441
+ }
442
+ });
443
+ }
444
+
445
  // resize end listener
446
  var wppaResizeEndTimer;
447
  jQuery(document).ready(function(){
js/wppa.min.js CHANGED
@@ -1 +1 @@
1
- wppaWppaVer="8.0.00.010";var wppaIsChrome=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),wppaIsSafari=!1,wppaOvlActivePanorama=0,wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",wppaGlobalFsIconSize=32,wppaFsFillcolor="#999999",wppaFsBgcolor="transparent",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlTypes,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlClosing=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomData=[],wppaSphericData=[],wppaFsPolicy="lightbox",wppaOvlGlobal,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaIsIpad=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips()}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var p=jQuery(this).attr("id").substr(6);wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisible("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisible("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",wppaAdjustAllFilmstrips),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery("div").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisible("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var p=jQuery(this).attr("href");p&&("jpg"!=(p=(p=p.split("."))[p.length-1])&&"jpeg"!=p&&"png"!=p||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(p){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(e){return jQuery(".wppa-container").each(function(){var p=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[p]&&_wppaDoAutocol(p,e)}),(e<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(e+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}),jQuery("canvas").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p);if(e){var a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o=wppaGetContainerWidth(p);if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:o})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:o},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var r=document.getElementById("wppa-albumlist-"+p).clientWidth,i=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,n=i-1,s=parseInt((r+wppaCoverSpacing)/i-wppaCoverSpacing);if(wppaColWidth[p]!=r||wppaMCRWidth[p]!=s){wppaColWidth[p]=r,wppaMCRWidth[p]=s;for(var l=0;l<a.length;){switch(l%i){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case n:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:s},wppaResponseSpeed)}}else 1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(s=o-wppaThumbnailAreaDelta-7,t=Math.max(1,parseInt(s/(r+wppaMinThumbSpace))),t=parseInt((s-t*r)/(t+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:t})),jQuery(".thumbnail-frame-comalt-"+p).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var w,u=1,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");c;)w=c*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+u+"-"+p).css("height",w),u++,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*o),wppaFilmStripLength[p]=o-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",o),jQuery(".wppa-simg-"+p).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",o+10),jQuery(".wppa-mimg-"+p).css("width",o),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(o/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*o),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,o,p=jQuery("#wppa-real-calendar-"+e).width();0<p&&(a=!0,t=p*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=p/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),p=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:p,marginBottom:p}),o=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:o})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){wppaConsoleLog("Slide history stack update failed")}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var e=new google.maps.LatLng(e,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:e},t=new google.maps.Map(document.getElementById("map-canvas-"+p),a),o=new google.maps.Marker({position:e,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p),r="";for(n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var n,i=jQuery(".wppa-ss-phototext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(e=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?e+="?":e+="&",e+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=e)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){p=jQuery(p).length;6<p&&(p=6),p<2&&(p=2),jQuery(e).attr("size",p)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var p=jQuery(this).attr("id").substr(5),e=wppaGetContainerWidth(p)-wppaThumbnailAreaDelta,e=e/parseInt((e+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin))-wppaTfMargin;jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+p).css("width",e+"px"),jQuery("#grid-"+p).masonry({itemSelector:".grid-item-"+p,columnWidth:e,gutter:wppaTfMargin,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var p=parseInt(wppaGlobalFsIconSize/4),e=p;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(p+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var p=document.documentElement;p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullScreen&&p.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
1
+ wppaWppaVer="8.0.00.011";var wppaIsChrome=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),wppaIsSafari=!1,wppaOvlActivePanorama=0,wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",wppaGlobalFsIconSize=32,wppaFsFillcolor="#999999",wppaFsBgcolor="transparent",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlTypes,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlClosing=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomData=[],wppaSphericData=[],wppaFsPolicy="lightbox",wppaOvlGlobal,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaIsIpad=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeNiceTimer,wppaResizeEndTimer,wppaScrollEndTimer;function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips()}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var p=jQuery(this).attr("id").substr(6);wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisibleScrollEnd("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",wppaAdjustAllFilmstrips),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){wppaResizeNice()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){void 0!==jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisibleScrollEnd("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var p=jQuery(this).attr("href");p&&("jpg"!=(p=(p=p.split("."))[p.length-1])&&"jpeg"!=p&&"png"!=p||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}function wppaResizeNice(){clearTimeout(wppaResizeNiceTimer),wppaResizeNiceTimer=setTimeout(function(){_wppaResizeNice()},200)}function _wppaResizeNice(){wppaConsoleLog("Doing wppaResizeNice","force"),"function"==typeof jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize(),jQuery("div").each(function(){"function"==typeof jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()})}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(p){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(e){return jQuery(".wppa-container").each(function(){var p=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[p]&&_wppaDoAutocol(p,e)}),(e<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(e+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}),jQuery("canvas").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p);if(e){var a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o=wppaGetContainerWidth(p);if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:o})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:o},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var r=document.getElementById("wppa-albumlist-"+p).clientWidth,i=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,n=i-1,s=parseInt((r+wppaCoverSpacing)/i-wppaCoverSpacing);if(wppaColWidth[p]!=r||wppaMCRWidth[p]!=s){wppaColWidth[p]=r,wppaMCRWidth[p]=s;for(var l=0;l<a.length;){switch(l%i){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case n:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:s},wppaResponseSpeed)}}else 1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(s=o-wppaThumbnailAreaDelta-7,t=Math.max(1,parseInt(s/(r+wppaMinThumbSpace))),t=parseInt((s-t*r)/(t+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:t})),jQuery(".thumbnail-frame-comalt-"+p).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var w,u=1,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");c;)w=c*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+u+"-"+p).css("height",w),u++,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*o),wppaFilmStripLength[p]=o-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",o),jQuery(".wppa-simg-"+p).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",o+10),jQuery(".wppa-mimg-"+p).css("width",o),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(o/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*o),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,o,p=jQuery("#wppa-real-calendar-"+e).width();0<p&&(a=!0,t=p*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=p/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),p=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:p,marginBottom:p}),o=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:o})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){wppaConsoleLog("Slide history stack update failed")}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var e=new google.maps.LatLng(e,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:e},t=new google.maps.Map(document.getElementById("map-canvas-"+p),a),o=new google.maps.Marker({position:e,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p),r="";for(n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var n,i=jQuery(".wppa-ss-phototext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(e=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?e+="?":e+="&",e+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=e)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){p=jQuery(p).length;6<p&&(p=6),p<2&&(p=2),jQuery(e).attr("size",p)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var p=jQuery(this).attr("id").substr(5),e=wppaGetContainerWidth(p)-wppaThumbnailAreaDelta,e=e/parseInt((e+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin))-wppaTfMargin;jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+p).css("width",e+"px"),jQuery("#grid-"+p).masonry({itemSelector:".grid-item-"+p,columnWidth:e,gutter:wppaTfMargin,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var p=parseInt(wppaGlobalFsIconSize/4),e=p;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(p+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var p=document.documentElement;p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullScreen&&p.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
theme/wppa-style.css CHANGED
@@ -47,6 +47,7 @@
47
  .wppa-box {
48
  padding: 3px 6px 3px 6px;
49
  box-sizing: border-box;
 
50
  }
51
  .wppa-filmstrip-box {
52
  box-sizing: content-box;
@@ -353,7 +354,7 @@ border: 0;
353
  }
354
 
355
  .filmwindow {
356
- /* position: absolute; */
357
  }
358
 
359
  .wppa-filmthumb-active {
47
  .wppa-box {
48
  padding: 3px 6px 3px 6px;
49
  box-sizing: border-box;
50
+ position:relative;
51
  }
52
  .wppa-filmstrip-box {
53
  box-sizing: content-box;
354
  }
355
 
356
  .filmwindow {
357
+ position: absolute !important;
358
  }
359
 
360
  .wppa-filmthumb-active {
wppa-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
- * Version 8.0.00.010
7
  *
8
  */
9
 
@@ -125,6 +125,33 @@ global $wppa_api_version;
125
  }
126
  }
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  /* ADMIN PAGE PHP's */
129
 
130
  // Album admin page
@@ -182,7 +209,6 @@ function wppa_page_export() {
182
  function wppa_page_options() {
183
  require_once 'wppa-settings-autosave.php';
184
  require_once 'wppa-setting-functions.php';
185
- require_once 'wppa-setting-see-also.php';
186
 
187
  // jQuery Easing for Nicescroller
188
  $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
+ * Version 8.0.00.011
7
  *
8
  */
9
 
125
  }
126
  }
127
 
128
+ add_action( 'admin_head', 'wppa_inject_js' );
129
+
130
+ function wppa_inject_js() {
131
+ global $wppa_api_version;
132
+
133
+ echo '
134
+ <script type="text/javascript" >
135
+ wppaImageDirectory = "'.wppa_get_imgdir().'";
136
+ wppaAjaxUrl = "'.admin_url('admin-ajax.php').'";
137
+ wppaPhotoDirectory = "'.WPPA_UPLOAD_URL.'/";
138
+ wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/";
139
+ wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/";
140
+ wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/";
141
+ wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'";
142
+ wppaVersion = "'.$wppa_api_version.'";
143
+ wppaSiteUrl = "'.site_url().'";
144
+ wppaWppaUrl = "'.WPPA_URL.'";
145
+ wppaIncludeUrl = "'.trim(includes_url(), '/').'";
146
+ wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'";
147
+ wppaLazyLoad = '.(wppa_switch( 'lazy' ) ? 'true' : 'false' ).';
148
+ wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus').'";
149
+ wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus').'";
150
+ wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'";
151
+ wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";
152
+ </script>';
153
+ }
154
+
155
  /* ADMIN PAGE PHP's */
156
 
157
  // Album admin page
209
  function wppa_page_options() {
210
  require_once 'wppa-settings-autosave.php';
211
  require_once 'wppa-setting-functions.php';
 
212
 
213
  // jQuery Easing for Nicescroller
214
  $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.0.00.010
6
  *
7
  */
8
 
@@ -3446,7 +3446,6 @@ global $wppa;
3446
  if ( $iret !== false ) {
3447
  delete_option( 'wppa_'.WPPA_IPTC.'_lastkey' );
3448
  $title = __( 'IPTC data cleared' , 'wp-photo-album-plus');
3449
- $alert = __( 'Refresh this page to clear table X' , 'wp-photo-album-plus');
3450
  update_option( 'wppa_index_need_remake', 'yes' );
3451
  }
3452
  else {
@@ -3461,7 +3460,6 @@ global $wppa;
3461
  if ( $iret !== false ) {
3462
  delete_option( 'wppa_'.WPPA_EXIF.'_lastkey' );
3463
  $title = __( 'EXIF data cleared' , 'wp-photo-album-plus');
3464
- $alert = __( 'Refresh this page to clear table XI' , 'wp-photo-album-plus');
3465
  update_option( 'wppa_index_need_remake', 'yes' );
3466
  }
3467
  else {
@@ -3763,14 +3761,14 @@ global $wppa;
3763
  if ( $ca ) update_option ( 'wppa_crypt_albums_status', 'Required' );
3764
  if ( $cp ) update_option ( 'wppa_crypt_photos_status', 'Required' );
3765
  wppa( 'error', '4711' );
3766
- $alert .= __( 'You must run Table VIII-A13 and VIII-A14 first before you can switch to encrypted urls.', 'wp-photo-album-plus' );
3767
  }
3768
  if ( wppa_switch( 'use_photo_names_in_urls' ) ) {
3769
- $alert .= ' ' . __( 'Table IV-A3 will be switched off.', 'wp-photo-album-plus' );
3770
  wppa_update_option( 'wppa_use_photo_names_in_urls', 'no' );
3771
  }
3772
  if ( wppa_switch( 'use_album_names_in_urls' ) ) {
3773
- $alert .= ' ' . __( 'Table IV-A4 will be switched off.', 'wp-photo-album-plus' );
3774
  wppa_update_option( 'wppa_use_album_names_in_urls', 'no' );
3775
  }
3776
  }
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.0.00.011
6
  *
7
  */
8
 
3446
  if ( $iret !== false ) {
3447
  delete_option( 'wppa_'.WPPA_IPTC.'_lastkey' );
3448
  $title = __( 'IPTC data cleared' , 'wp-photo-album-plus');
 
3449
  update_option( 'wppa_index_need_remake', 'yes' );
3450
  }
3451
  else {
3460
  if ( $iret !== false ) {
3461
  delete_option( 'wppa_'.WPPA_EXIF.'_lastkey' );
3462
  $title = __( 'EXIF data cleared' , 'wp-photo-album-plus');
 
3463
  update_option( 'wppa_index_need_remake', 'yes' );
3464
  }
3465
  else {
3761
  if ( $ca ) update_option ( 'wppa_crypt_albums_status', 'Required' );
3762
  if ( $cp ) update_option ( 'wppa_crypt_photos_status', 'Required' );
3763
  wppa( 'error', '4711' );
3764
+ $alert .= __( 'You renuw Album and Photo crypt codes first before you can switch to encrypted urls. See Maintenance I, items 18 and 20.', 'wp-photo-album-plus' );
3765
  }
3766
  if ( wppa_switch( 'use_photo_names_in_urls' ) ) {
3767
+ $alert .= ' ' . __( 'Photo names in urls will be switched off.', 'wp-photo-album-plus' );
3768
  wppa_update_option( 'wppa_use_photo_names_in_urls', 'no' );
3769
  }
3770
  if ( wppa_switch( 'use_album_names_in_urls' ) ) {
3771
+ $alert .= ' ' . __( 'Album names in urls will be switched off.', 'wp-photo-album-plus' );
3772
  wppa_update_option( 'wppa_use_album_names_in_urls', 'no' );
3773
  }
3774
  }
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 8.0.00.010
7
  *
8
  */
9
 
@@ -3993,13 +3993,13 @@ global $blog_id;
3993
  function wppa_container_wrapper( $key ) {
3994
  switch( $key ) {
3995
  case 'open':
3996
- if ( wppa( 'max_width' ) ) {
3997
  wppa_out( '<div' .
3998
  ' id="wppa-container-wrapper-' . wppa( 'mocc' ) . '"' .
3999
  ( wppa( 'align' ) == 'left' ? ' class="alignleft"' : '' ) .
4000
  ( wppa( 'align' ) == 'right' ? ' class="alignright"' : '' ) .
4001
- ' style="' .
4002
- 'max-width:' . wppa( 'max_width' ) . 'px;'
4003
  );
4004
  switch( wppa( 'align' ) ) {
4005
  case 'left':
@@ -4016,12 +4016,12 @@ function wppa_container_wrapper( $key ) {
4016
  wppa_out( '"' .
4017
  ' >'
4018
  );
4019
- }
4020
  break;
4021
  case 'close':
4022
- if ( wppa( 'max_width' ) ) {
4023
  wppa_out( '</div>' );
4024
- }
4025
  break;
4026
  default:
4027
  wppa_dbg_msg( 'Missing or wrong arg in wppa_container_wrapper()', 'red', 'force' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 8.0.00.011
7
  *
8
  */
9
 
3993
  function wppa_container_wrapper( $key ) {
3994
  switch( $key ) {
3995
  case 'open':
3996
+ // if ( wppa( 'max_width' ) ) {
3997
  wppa_out( '<div' .
3998
  ' id="wppa-container-wrapper-' . wppa( 'mocc' ) . '"' .
3999
  ( wppa( 'align' ) == 'left' ? ' class="alignleft"' : '' ) .
4000
  ( wppa( 'align' ) == 'right' ? ' class="alignright"' : '' ) .
4001
+ ' style="position:relative;' .
4002
+ ( wppa( 'max_width' ) ? 'max-width:' . wppa( 'max_width' ) . 'px;' : '' )
4003
  );
4004
  switch( wppa( 'align' ) ) {
4005
  case 'left':
4016
  wppa_out( '"' .
4017
  ' >'
4018
  );
4019
+ // }
4020
  break;
4021
  case 'close':
4022
+ // if ( wppa( 'max_width' ) ) {
4023
  wppa_out( '</div>' );
4024
+ // }
4025
  break;
4026
  default:
4027
  wppa_dbg_msg( 'Missing or wrong arg in wppa_container_wrapper()', 'red', 'force' );
wppa-init.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file loads required php files and contains all functions used in init actions.
6
  *
7
- * Version 8.0.00.010
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
@@ -75,13 +75,12 @@ if ( PHP_VERSION_ID >= 50300 ) require_once 'wppa-cloudinary.php';
75
  /* DO THE ADMIN/NON ADMIN SPECIFIC STUFF */
76
  if ( is_admin() ) {
77
  require_once 'wppa-admin.php';
 
78
  }
79
  require_once 'wppa-non-admin.php';
80
 
81
  /* ADD AJAX */
82
- // if ( defined( 'DOING_AJAX' ) ) {
83
- require_once 'wppa-ajax.php';
84
- // }
85
 
86
  // To fix a problem in Windows local host systems:
87
  function wppa_trims( $txt ) {
@@ -254,7 +253,6 @@ function wppa_admin_bar_init() {
254
  }
255
 
256
  function wppa_maintenance_messages() {
257
- require_once 'wppa-setting-see-also.php';
258
 
259
  if ( ! current_user_can( 'wppa_settings' ) ) {
260
  return;
@@ -262,30 +260,30 @@ require_once 'wppa-setting-see-also.php';
262
 
263
  // Cron jobs postponed?
264
  if ( wppa_get_option( 'wppa_maint_ignore_cron' ) == 'yes' ) {
265
- wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '0' ) );
266
  }
267
 
268
  // Check for pending actions
269
  if ( wppa_get_option( 'wppa_remove_empty_albums_status' ) && wppa_get_option( 'wppa_remove_empty_albums_user', wppa_get_user() ) == wppa_get_user() ) {
270
- wppa_warning_message( __( 'Remove empty albums needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '31' ) );
271
  }
272
  if ( wppa_get_option( 'wppa_apply_new_photodesc_all_status' ) && wppa_get_option( 'wppa_apply_new_photodesc_all_user', wppa_get_user() ) == wppa_get_user() ) {
273
- wppa_warning_message( __( 'Applying new photo description needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '28' ) );
274
  }
275
  if ( wppa_get_option( 'wppa_append_to_photodesc_status' ) && wppa_get_option( 'wppa_append_to_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
276
- wppa_warning_message( __( 'Appending to photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '29' ) );
277
  }
278
  if ( wppa_get_option( 'wppa_remove_from_photodesc_status' ) && wppa_get_option( 'wppa_remove_from_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
279
- wppa_warning_message( __( 'Removing from photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '30' ) );
280
  }
281
  if ( wppa_get_option( 'wppa_remove_file_extensions_status' ) && wppa_get_option( 'wppa_remove_file_extensions_user', wppa_get_user() ) == wppa_get_user() ) {
282
- wppa_warning_message( __( 'Removing file extensions needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '32' ) );
283
  }
284
  if ( wppa_get_option( 'wppa_regen_thumbs_status' ) && wppa_get_option( 'wppa_regen_thumbs_user', wppa_get_user() ) == wppa_get_user() ) {
285
- wppa_warning_message( __( 'Regenerating the Thumbnails needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '4' ) );
286
  }
287
  if ( wppa_get_option( 'wppa_rerate_status' ) && wppa_get_option( 'wppa_rerate_user', wppa_get_user() ) == wppa_get_user() ) {
288
- wppa_warning_message( __( 'Rerating needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '5' ) );
289
  }
290
 
291
 
@@ -337,7 +335,6 @@ function wppa_cat_message() {
337
 
338
  // Print admin messages on config conflicts
339
  function wppa_check_config_conflicts() {
340
- require_once 'wppa-setting-see-also.php';
341
  global $wpdb;
342
 
343
  $any = false;
4
  *
5
  * This file loads required php files and contains all functions used in init actions.
6
  *
7
+ * Version 8.0.00.011
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
75
  /* DO THE ADMIN/NON ADMIN SPECIFIC STUFF */
76
  if ( is_admin() ) {
77
  require_once 'wppa-admin.php';
78
+ require_once 'wppa-setting-see-also.php';
79
  }
80
  require_once 'wppa-non-admin.php';
81
 
82
  /* ADD AJAX */
83
+ require_once 'wppa-ajax.php';
 
 
84
 
85
  // To fix a problem in Windows local host systems:
86
  function wppa_trims( $txt ) {
253
  }
254
 
255
  function wppa_maintenance_messages() {
 
256
 
257
  if ( ! current_user_can( 'wppa_settings' ) ) {
258
  return;
260
 
261
  // Cron jobs postponed?
262
  if ( wppa_get_option( 'wppa_maint_ignore_cron' ) == 'yes' ) {
263
+ wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '0', '', '', true ) );
264
  }
265
 
266
  // Check for pending actions
267
  if ( wppa_get_option( 'wppa_remove_empty_albums_status' ) && wppa_get_option( 'wppa_remove_empty_albums_user', wppa_get_user() ) == wppa_get_user() ) {
268
+ wppa_warning_message( __( 'Remove empty albums needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '31', '', '', true ) );
269
  }
270
  if ( wppa_get_option( 'wppa_apply_new_photodesc_all_status' ) && wppa_get_option( 'wppa_apply_new_photodesc_all_user', wppa_get_user() ) == wppa_get_user() ) {
271
+ wppa_warning_message( __( 'Applying new photo description needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '28', '', '', true ) );
272
  }
273
  if ( wppa_get_option( 'wppa_append_to_photodesc_status' ) && wppa_get_option( 'wppa_append_to_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
274
+ wppa_warning_message( __( 'Appending to photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '29', '', '', true ) );
275
  }
276
  if ( wppa_get_option( 'wppa_remove_from_photodesc_status' ) && wppa_get_option( 'wppa_remove_from_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
277
+ wppa_warning_message( __( 'Removing from photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '30', '', '', true ) );
278
  }
279
  if ( wppa_get_option( 'wppa_remove_file_extensions_status' ) && wppa_get_option( 'wppa_remove_file_extensions_user', wppa_get_user() ) == wppa_get_user() ) {
280
+ wppa_warning_message( __( 'Removing file extensions needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '32', '', '', true ) );
281
  }
282
  if ( wppa_get_option( 'wppa_regen_thumbs_status' ) && wppa_get_option( 'wppa_regen_thumbs_user', wppa_get_user() ) == wppa_get_user() ) {
283
+ wppa_warning_message( __( 'Regenerating the Thumbnails needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '4', '', '', true ) );
284
  }
285
  if ( wppa_get_option( 'wppa_rerate_status' ) && wppa_get_option( 'wppa_rerate_user', wppa_get_user() ) == wppa_get_user() ) {
286
+ wppa_warning_message( __( 'Rerating needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '5', '', '', true ) );
287
  }
288
 
289
 
335
 
336
  // Print admin messages on config conflicts
337
  function wppa_check_config_conflicts() {
 
338
  global $wpdb;
339
 
340
  $any = false;
wppa-picture.php CHANGED
@@ -622,14 +622,11 @@ function wppa_get_spheric_pan_html( $args ) {
622
  $result .=
623
 
624
  '<script>' .
625
- /*
626
- // Create image object and add the image url to it
627
- ( $lightbox ?
628
- 'var image = document.getElementById(\'wppa-pre-curr\');' :
629
- 'var image = new Image();'
630
- ) .
631
- 'image.src = "' . $url . '";' .
632
- */
633
  'var data' . $mocc . ' =
634
  { mocc :' . $mocc . ',
635
  id :' . $id . ',
622
  $result .=
623
 
624
  '<script>' .
625
+
626
+ // Create image object and add the image url to it to preload it
627
+ // 'var image = new Image();' .
628
+ // 'image.src = "' . $url . '";' .
629
+
 
 
 
630
  'var data' . $mocc . ' =
631
  { mocc :' . $mocc . ',
632
  id :' . $id . ',
wppa-setting-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.010
7
  *
8
  */
9
 
@@ -51,7 +51,7 @@ global $wppa_opt;
51
  $text . '
52
  </span>';
53
 
54
-
55
 
56
  return $html;
57
  }
@@ -71,6 +71,8 @@ function wppa_number($xslug, $min, $max, $text = '', $onchange = '') {
71
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
72
  $html .= '<span style="float:left">'.$text.'</span>';
73
 
 
 
74
  return $html;
75
  }
76
 
@@ -91,6 +93,8 @@ global $wppa_opt;
91
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
92
  $html .= '<span style="float:left">'.$text.'</span>';
93
 
 
 
94
  return $html;
95
  }
96
 
@@ -131,10 +135,12 @@ function wppa_edit( $xslug, $value, $width = '90%', $minwidth = '', $text = '',
131
  />' .
132
  $text;
133
 
 
 
134
  return $html;
135
  }
136
 
137
- function wppa_textarea($xslug, $buttonlabel = '') {
138
 
139
  $slug = substr( $xslug, 5 );
140
  if ( wppa_switch( 'use_wp_editor') ) { // New style textarea, use wp_editor
@@ -158,6 +164,7 @@ function wppa_textarea($xslug, $buttonlabel = '') {
158
 
159
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
160
  }
 
161
  return $html;
162
  }
163
 
@@ -184,67 +191,6 @@ global $wppa_opt;
184
  return $html;
185
  }
186
 
187
- function wppa_checkbox_warn($xslug, $onchange = '', $class = '', $warning = '') {
188
- global $wppa_defaults;
189
-
190
- $slug = substr( $xslug, 5 );
191
- $warning = (__('Warning!', 'wp-photo-album-plus')).'<br />'.$warning;
192
- $tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug."\n".__('Values = yes, no', 'wp-photo-album-plus');
193
- $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
194
- $html = '<input style="float:left; height: 15px; margin: 0px; padding: 0px;" type="checkbox" id="'.$slug.'"'.$title;
195
- if ( wppa_switch( $slug ) ) $html .= ' checked="checked"';
196
- if ($onchange != '') $html .= ' onchange="'.esc_attr('alert(\''.$warning.'\'); '.$onchange.';wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this);').'"';
197
- else $html .= ' onchange="alert(\''.$warning.'\'); wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this)"';
198
-
199
- if ($class != '') $html .= ' class="'.$class.'"';
200
- $html .= ' /><img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;"';
201
- if ($class != '') $html .= ' class="'.$class.'"';
202
- $html .= ' />';
203
-
204
- return $html;
205
- }
206
-
207
- function wppa_checkbox_warn_off($xslug, $onchange = '', $class = '', $warning = '', $is_help = true) {
208
- global $wppa_defaults;
209
-
210
- $slug = substr( $xslug, 5 );
211
- $warning = (__('Warning!', 'wp-photo-album-plus')).'<br />'.$warning;
212
- if ( $is_help) $warning .= '<br />'.(__('Please read the help', 'wp-photo-album-plus'));
213
- $tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug."\n".__('Values = yes, no', 'wp-photo-album-plus');
214
- $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
215
- $html = '<input style="float:left; height: 15px; margin: 0px; padding: 0px;" type="checkbox" id="'.$slug.'"'.$title;
216
- if ( wppa_switch( $slug ) ) $html .= ' checked="checked"';
217
- if ($onchange != '') $html .= ' onchange="'.esc_attr('if (!this.checked) alert(\''.$warning.'\'); '.$onchange.';wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this);').'"';
218
- else $html .= ' onchange="if (!this.checked) alert(\''.$warning.'\'); wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this)"';
219
-
220
- if ($class != '') $html .= ' class="'.$class.'"';
221
- $html .= ' /><img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;"';
222
- if ($class != '') $html .= ' class="'.$class.'"';
223
- $html .= ' />';
224
-
225
- return $html;
226
- }
227
-
228
- function wppa_checkbox_warn_on($xslug, $onchange = '', $class = '', $warning = '') {
229
- global $wppa_defaults;
230
-
231
- $slug = substr( $xslug, 5 );
232
- $warning = (__('Warning!', 'wp-photo-album-plus')).'<br />'.$warning.'<br />'.(__('Please read the help', 'wp-photo-album-plus'));
233
- $tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug."\n".__('Values = yes, no', 'wp-photo-album-plus');
234
- $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
235
- $html = '<input style="float:left; height: 15px; margin: 0px; padding: 0px;" type="checkbox" id="'.$slug.'"'.$title;
236
- if ( wppa_switch( $slug ) ) $html .= ' checked="checked"';
237
- if ($onchange != '') $html .= ' onchange="'.esc_attr('if (this.checked) alert(\''.$warning.'\'); '.$onchange.';wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this);').'"';
238
- else $html .= ' onchange="if (this.checked) alert(\''.$warning.'\'); wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this)"';
239
-
240
- if ($class != '') $html .= ' class="'.$class.'"';
241
- $html .= ' /><img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;"';
242
- if ($class != '') $html .= ' class="'.$class.'"';
243
- $html .= ' />';
244
-
245
- return $html;
246
- }
247
-
248
  function wppa_checkbox_e($xslug, $curval, $onchange = '', $class = '', $enabled = true) {
249
 
250
  $slug = substr( $xslug, 5 );
@@ -283,7 +229,7 @@ global $wppa_opt;
283
  if ($class != '') $html .= ' class="'.$class.'"';
284
  $html .= '>';
285
 
286
- $val = wppa_get_option( $xslug ); // value can be yes or no in Table 0 !! so do not use wppa_opt()
287
  $idx = 0;
288
  $cnt = count($opts);
289
  while ($idx < $cnt) {
@@ -302,6 +248,7 @@ global $wppa_opt;
302
  $html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
303
 
304
  $html .= wppa_setting_star( $onchange );
 
305
 
306
  return $html;
307
  }
@@ -327,7 +274,7 @@ global $wppa_opt;
327
  ' class="'.$class.'"' .
328
  ' >';
329
 
330
- $val = wppa_get_option( $xslug ); // value can be yes or no in Table 0 !! so do not use wppa_opt()
331
  $idx = 0;
332
  $cnt = count( $opts );
333
 
@@ -528,14 +475,14 @@ function wppa_doit_button_new( $slug, $height = '18' ) {
528
  return $result;
529
  }
530
 
531
- function wppa_popup_button( $slug ) {
532
 
533
  $label = __('Show!', 'wp-photo-album-plus');
534
  $result = '
535
  <input
536
  type="button"
537
  class="wppa-doit-button"
538
- style="height: 18px;"
539
  value="' . esc_attr($label) . '"
540
  onclick="wppaAjaxPopupWindow(\''.$slug.'\')"
541
  />';
@@ -757,10 +704,13 @@ function wppa_setting_new( $slug, $xnum, $name, $desc, $html, $help, $show = tru
757
  global $wppa_defaults;
758
  global $no_default;
759
  global $wppa_opt;
760
- global $wppa_setting_class;
761
  global $wppa_requested_subtab;
762
  global $wppa_requested_items;
763
  global $wppa_cur_subtab_id;
 
 
 
 
764
 
765
  // Is this item requested?
766
  $is_requested = false;
@@ -769,6 +719,20 @@ global $wppa_cur_subtab_id;
769
  $is_requested = true;
770
  }
771
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
772
 
773
  // Default helptext
774
  if ( ! $help ) {
@@ -801,13 +765,9 @@ global $wppa_cur_subtab_id;
801
  // Make the helptext
802
  if ( $help ) {
803
  $is_dflt = true;
804
- $help = nl2br( $help );
805
- $helptext = wp_kses( $help, array( 'a' => array( 'href' => array(), 'title' => array() ),
806
- 'br' => array(),
807
- 'em' => array(),
808
- 'b' => array(),
809
- 'i' => array(),
810
- ) );
811
  if ( ! $no_default ) {
812
  if ( $slugs && wppa_dflt($slugs[0]) ) {
813
  $helptext .= '<br />' . __( 'The default for this setting is:', 'wp-photo-album-plus' );
@@ -835,11 +795,10 @@ global $wppa_cur_subtab_id;
835
  // Start the item
836
  echo
837
  '<tr
838
- id="wppa-setting-item-' . $slugs[0] . '"
839
- class="wppa-setting-new ' . $slugs[0] . ' ' . $wppa_setting_class . '"
840
- style="color:#333;' .
841
  ( $show ? '' : 'display:none;' ) .
842
- ( $is_requested ? 'background-color:#eeffee;' : '' ) .
843
  '"
844
  >';
845
 
@@ -872,11 +831,11 @@ global $wppa_cur_subtab_id;
872
  class=""
873
  title="' . esc_attr( __( 'Click for help', 'wp-photo-album-plus' ) ) . '"
874
  onclick="
875
- if ( jQuery( \'#help-' . $slugs[0] . '\' ).css(\'display\') == \'none\' ) {
876
- jQuery( \'#help-' . $slugs[0] . '\' ).css(\'display\',\'\');
877
  }
878
  else {
879
- jQuery( \'#help-' . $slugs[0] . '\' ).css(\'display\',\'none\');
880
  }"
881
  value="&nbsp;?&nbsp;"
882
  />
@@ -890,7 +849,7 @@ global $wppa_cur_subtab_id;
890
  if ( $help ) {
891
  echo '
892
  <tr
893
- id="help-' . $slugs[0] . '"
894
  class="wppa-setting-new"
895
  style="display:none;"
896
  >
@@ -898,6 +857,7 @@ global $wppa_cur_subtab_id;
898
  <td></td>
899
  <td
900
  style="color:#000077;"
 
901
  >
902
  <small>
903
  <i>' .
@@ -955,7 +915,7 @@ global $wppa_cur_subtab_id;
955
  </div>';
956
  }
957
 
958
- // Open the new style setting box
959
  function wppa_setting_box_header_new( $tab, $cols = false ) {
960
  global $wppa_cur_tab;
961
  global $wppa_cur_subtab;
@@ -1014,7 +974,7 @@ global $wppa_cur_subtab;
1014
 
1015
  }
1016
 
1017
- // Closing the settings table
1018
  function wppa_setting_box_footer_new() {
1019
  echo '</tbody></table></div>';
1020
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.00.011
7
  *
8
  */
9
 
51
  $text . '
52
  </span>';
53
 
54
+ $html .= wppa_setting_star( $onchange );
55
 
56
  return $html;
57
  }
71
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
72
  $html .= '<span style="float:left">'.$text.'</span>';
73
 
74
+ $html .= wppa_setting_star( $onchange );
75
+
76
  return $html;
77
  }
78
 
93
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
94
  $html .= '<span style="float:left">'.$text.'</span>';
95
 
96
+ $html .= wppa_setting_star( $onchange );
97
+
98
  return $html;
99
  }
100
 
135
  />' .
136
  $text;
137
 
138
+ $html .= wppa_setting_star( $onchange );
139
+
140
  return $html;
141
  }
142
 
143
+ function wppa_textarea($xslug, $buttonlabel = '' ) {
144
 
145
  $slug = substr( $xslug, 5 );
146
  if ( wppa_switch( 'use_wp_editor') ) { // New style textarea, use wp_editor
164
 
165
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
166
  }
167
+
168
  return $html;
169
  }
170
 
191
  return $html;
192
  }
193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  function wppa_checkbox_e($xslug, $curval, $onchange = '', $class = '', $enabled = true) {
195
 
196
  $slug = substr( $xslug, 5 );
229
  if ($class != '') $html .= ' class="'.$class.'"';
230
  $html .= '>';
231
 
232
+ $val = wppa_opt( $xslug );
233
  $idx = 0;
234
  $cnt = count($opts);
235
  while ($idx < $cnt) {
248
  $html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
249
 
250
  $html .= wppa_setting_star( $onchange );
251
+ $html .= wppa_setting_star( $postaction );
252
 
253
  return $html;
254
  }
274
  ' class="'.$class.'"' .
275
  ' >';
276
 
277
+ $val = wppa_opt( $xslug );
278
  $idx = 0;
279
  $cnt = count( $opts );
280
 
475
  return $result;
476
  }
477
 
478
+ function wppa_popup_button( $slug, $height = '18' ) {
479
 
480
  $label = __('Show!', 'wp-photo-album-plus');
481
  $result = '
482
  <input
483
  type="button"
484
  class="wppa-doit-button"
485
+ style="height: ' . $height . 'px;"
486
  value="' . esc_attr($label) . '"
487
  onclick="wppaAjaxPopupWindow(\''.$slug.'\')"
488
  />';
704
  global $wppa_defaults;
705
  global $no_default;
706
  global $wppa_opt;
 
707
  global $wppa_requested_subtab;
708
  global $wppa_requested_items;
709
  global $wppa_cur_subtab_id;
710
+ global $wppa_cur_tab;
711
+
712
+ // Unique item id
713
+ $item_id = $wppa_cur_tab . '-' . $wppa_cur_subtab_id . '-' . str_replace( array( ' ', '.' ), '-', $xnum );
714
 
715
  // Is this item requested?
716
  $is_requested = false;
719
  $is_requested = true;
720
  }
721
  }
722
+
723
+ // Bg color
724
+ $error = isset( $_REQUEST['wppa-error'] );
725
+ if ( $is_requested ) {
726
+ if ( $error ) {
727
+ $bgcolor = '#ffeeee';
728
+ }
729
+ else {
730
+ $bgcolor = '#eeffee';
731
+ }
732
+ }
733
+ else {
734
+ $bgcolor = '#ffffff';
735
+ }
736
 
737
  // Default helptext
738
  if ( ! $help ) {
765
  // Make the helptext
766
  if ( $help ) {
767
  $is_dflt = true;
768
+
769
+ $helptext = $help;
770
+
 
 
 
 
771
  if ( ! $no_default ) {
772
  if ( $slugs && wppa_dflt($slugs[0]) ) {
773
  $helptext .= '<br />' . __( 'The default for this setting is:', 'wp-photo-album-plus' );
795
  // Start the item
796
  echo
797
  '<tr
798
+ id="wppa-setting-item-' . $item_id . '"
799
+ class="wppa-setting-new ' . $item_id . '"
800
+ style="color:#333;background-color:' . $bgcolor . ';' .
801
  ( $show ? '' : 'display:none;' ) .
 
802
  '"
803
  >';
804
 
831
  class=""
832
  title="' . esc_attr( __( 'Click for help', 'wp-photo-album-plus' ) ) . '"
833
  onclick="
834
+ if ( jQuery( \'#help-' . $item_id . '\' ).css(\'display\') == \'none\' ) {
835
+ jQuery( \'#help-' . $item_id . '\' ).css(\'display\',\'\');
836
  }
837
  else {
838
+ jQuery( \'#help-' . $item_id . '\' ).css(\'display\',\'none\');
839
  }"
840
  value="&nbsp;?&nbsp;"
841
  />
849
  if ( $help ) {
850
  echo '
851
  <tr
852
+ id="help-' . $item_id . '"
853
  class="wppa-setting-new"
854
  style="display:none;"
855
  >
857
  <td></td>
858
  <td
859
  style="color:#000077;"
860
+ colspan="' . ( count( $htmls ) ) . '"
861
  >
862
  <small>
863
  <i>' .
915
  </div>';
916
  }
917
 
918
+ // The new style setting box header
919
  function wppa_setting_box_header_new( $tab, $cols = false ) {
920
  global $wppa_cur_tab;
921
  global $wppa_cur_subtab;
974
 
975
  }
976
 
977
+ // The new style setting box footer
978
  function wppa_setting_box_footer_new() {
979
  echo '</tbody></table></div>';
980
  }
wppa-setting-see-also.php CHANGED
@@ -3,11 +3,10 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.010
7
  *
8
  */
9
 
10
-
11
  global $wppa_tab_names;
12
  global $wppa_subtab_names;
13
 
@@ -95,9 +94,10 @@ global $wppa_subtab_names;
95
  '3' => __('QR Code widget settings', 'wp-photo-album-plus'),
96
  ),
97
  'links' => array(
98
- '1' => __('Links from standard images', 'wp-photo-album-plus'),
99
- '2' => __('Links from items and images in widgets', 'wp-photo-album-plus'),
100
- '3' => __('Other links', 'wp-photo-album-plus'),
 
101
  ),
102
  'users' => array(
103
  '1' => __('Frontend (user) upload related settings', 'wp-photo-album-plus'),
@@ -129,7 +129,8 @@ global $wppa_subtab_names;
129
  '6' => __('Miscellaneous admin related settings', 'wp-photo-album-plus' ),
130
  ),
131
  'maintenance' => array(
132
- '1' => __('Maintenance procedures', 'wp-photo-album-plus'),
 
133
  ),
134
  'exif' => array(
135
  '1' => __('EXIF tags and their labels as found in the uploaded photos', 'wp-photo-album-plus'),
@@ -163,7 +164,7 @@ global $wppa_subtab_names;
163
  );
164
 
165
  // See also
166
- function wppa_see_also( $tab, $subtab = '', $items = '', $switch = '', $value = '' ) {
167
  global $wppa_tab_names;
168
  global $wppa_subtab_names;
169
 
@@ -190,6 +191,9 @@ global $wppa_subtab_names;
190
  if ( $items !== '' ) {
191
  $link .= '&wppa-item=' . sanitize_text_field( $items );
192
  }
 
 
 
193
 
194
  // Make the htnl
195
  $result = '
@@ -197,7 +201,6 @@ global $wppa_subtab_names;
197
  href="' . $link . '"
198
  title="' . esc_attr( 'Jump to related (sub)tab', 'wp-photo-album-plus' ) . '"
199
  style="cursor:pointer;"
200
-
201
  >' .
202
  __( 'See also', 'wp-photo-album-plus' ) . ': ' . $wppa_tab_names[$tab] . ' -> ' . $wppa_subtab_names[$tab][$subtab] . '
203
  </a>&nbsp;';
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.00.011
7
  *
8
  */
9
 
 
10
  global $wppa_tab_names;
11
  global $wppa_subtab_names;
12
 
94
  '3' => __('QR Code widget settings', 'wp-photo-album-plus'),
95
  ),
96
  'links' => array(
97
+ '1' => __('System Links configuration', 'wp-photo-album-plus'),
98
+ '2' => __('Links from standard images', 'wp-photo-album-plus'),
99
+ '3' => __('Links from items and images in widgets', 'wp-photo-album-plus'),
100
+ '4' => __('Other links', 'wp-photo-album-plus'),
101
  ),
102
  'users' => array(
103
  '1' => __('Frontend (user) upload related settings', 'wp-photo-album-plus'),
129
  '6' => __('Miscellaneous admin related settings', 'wp-photo-album-plus' ),
130
  ),
131
  'maintenance' => array(
132
+ '1' => __('Regular maintenance procedures', 'wp-photo-album-plus'),
133
+ '2' => __('Clearing and other irreversable maintenance procedures', 'wp-photo-album-plus'),
134
  ),
135
  'exif' => array(
136
  '1' => __('EXIF tags and their labels as found in the uploaded photos', 'wp-photo-album-plus'),
164
  );
165
 
166
  // See also
167
+ function wppa_see_also( $tab, $subtab = '', $items = '', $switch = '', $value = '', $error = false ) {
168
  global $wppa_tab_names;
169
  global $wppa_subtab_names;
170
 
191
  if ( $items !== '' ) {
192
  $link .= '&wppa-item=' . sanitize_text_field( $items );
193
  }
194
+ if ( $error ) {
195
+ $link .= '&wppa-error=1';
196
+ }
197
 
198
  // Make the htnl
199
  $result = '
201
  href="' . $link . '"
202
  title="' . esc_attr( 'Jump to related (sub)tab', 'wp-photo-album-plus' ) . '"
203
  style="cursor:pointer;"
 
204
  >' .
205
  __( 'See also', 'wp-photo-album-plus' ) . ': ' . $wppa_tab_names[$tab] . ' -> ' . $wppa_subtab_names[$tab][$subtab] . '
206
  </a>&nbsp;';
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.010
7
  *
8
  */
9
 
@@ -14,18 +14,13 @@ global $wpdb;
14
  global $wppa;
15
  global $wppa_opt;
16
  global $blog_id;
17
- global $wppa_status;
18
  global $opts_error;
19
  global $wppa_api_version;
20
  global $wp_roles;
21
- global $wppa_table;
22
- global $wppa_subtable;
23
  global $wppa_revno;
24
  global $no_default;
25
- global $wppa_tags; $wppa_tags = array();
26
  global $wp_version;
27
  global $wppa_supported_camara_brands;
28
- global $wppa_setting_class;
29
  global $wppa_cur_tab;
30
  global $wppa_cur_mtab;
31
  global $wppa_requested_subtab;
@@ -398,45 +393,53 @@ global $wppa_subtab_names;
398
  wppa_error_message(__("Please remove 'define( 'DISABLE_WP_CRON', true );' from wp-config.php", 'wp-photo-album-plus' ) );
399
  }
400
 
401
- // Check for inconsistencies
402
  if ( ( wppa_opt( 'thumbtype' ) == 'default' ) && (
403
  wppa_opt( 'tf_width' ) < wppa_opt( 'thumbsize' ) ||
404
  wppa_opt( 'tf_width_alt') < wppa_opt( 'thumbsize_alt' ) ||
405
  wppa_opt( 'tf_height' ) < wppa_opt( 'thumbsize' ) ||
406
  wppa_opt( 'tf_height_alt') < wppa_opt( 'thumbsize_alt' ) ) ) {
407
- wppa_warning_message( __( 'A thumbframe width or height should not be smaller than a thumbnail size.' , 'wp-photo-album-plus') . wppa_see_also( 'thumbs', '1', '1.2.5..8' ) );
408
  }
409
 
410
  // Check for 'many' albums
411
  if ( wppa_opt( 'photo_admin_max_albums' ) ) { // Not OFF
412
  $abs = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums" );
413
  if ( wppa_opt( 'photo_admin_max_albums' ) < $abs ) {
414
- wppa_warning_message( __( 'This system contains more albums than the maximum set in <b>Admin -> VI -> Photo admin max albums</b>', 'wp-photo-album-plus' ) . ' ' .
415
  __( 'No problem, but some widgets may not work and some album selectionboxes will revert to a simple input field asking for an album id.', 'wp-photo-album-plus' ) . ' ' .
416
- __( 'If you do not have pageload performance problems, you may increase the number in <b>Admin -> VI -> Photo admin max albums</b>', 'wp-photo-album-plus' ) . ' ' .
417
- __( 'If there are many empty albums, you can simply remove them by running <b>Advanced settings -> Maintenance -> Remove empty albums</b>', 'wp-photo-album-plus' ) );
418
  }
419
  }
420
 
421
  // Check for availability of hires urls in case panorama is on
422
  if ( wppa_switch( 'enable_panorama' ) ) {
423
  if ( ! wppa_switch( 'keep_source' ) ) {
424
- wppa_warning_message( __( 'You enabled the display of complex panoramic photos', 'wp-photo-album-plus' ) . '<br />' .
425
- __( 'It is strongly recommended that you save sourcefiles (<b>Files -> Keep sourcefiles</b>) during upload in order to preserve resolution.', 'wp-photo-album-plus' ) );
426
  }
427
  }
428
 
429
  // Check on configuration when Grid covertype has been selected.
430
  if ( wppa_opt( 'cover_type' ) == 'grid' ) {
431
- $stdmsg = __( 'You selected covertype "Grid with images only" in <b>Albums -> III -> Cover type</b>', 'wp-photo-album-plus' ) . '<br />' .
432
  __( 'To assure proper layout, please correct the following configuration issues.', 'wp-photo-album-plus' ) . '<br />';
 
 
433
  if ( wppa_opt( 'max_cover_width' ) > wppa_opt( 'smallsize' ) ) {
434
- $msg = __( '<b>Albums -> I -> Max Cover width</b> may not be larger than <b>Albums -> I -> Coverphoto size</b>', 'wp-photo-album-plus' );
435
- wppa_warning_message( $stdmsg . $msg );
 
436
  }
437
  if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' && ! ( wppa_switch( 'cover_use_thumb' ) ) ) {
438
- $msg = __( '<b>Thumbnails -> I -> Thumbnail Aspect</b> may not be set to "--- same as fullsize ---", or tick <b>Albums -> III -> Use thumb on cover</b>', 'wp-photo-album-plus' );
439
- wppa_warning_message( $stdmsg . $msg );
 
 
 
 
 
440
  }
441
  }
442
 
@@ -446,7 +449,7 @@ global $wppa_subtab_names;
446
 
447
  $result = wppa_search_magick();
448
  $mes = __('Image Magick is detected on your server', 'wp-photo-album-plus') . '. ';
449
- $mes .= __('To be able to use the most advanted features of WPPA, the Imagic shellcommand <b>convert</b> must be available', 'wp-photo-album-plus') . '.<br />';
450
 
451
  // Shell command found
452
  if ( ! empty( $result ) ) {
@@ -456,7 +459,7 @@ global $wppa_subtab_names;
456
  }
457
  update_option( 'wppa_image_magick', $result[0][0] );
458
  $wppa_opt['wppa_image_magick'] = $result[0][0];
459
- $mes .= sprintf( __('The location <b>%s</b> has been entered in <b>Advanced settings -> Misc -> III -> Image Magick</b>', 'wp-photo-album-plus'), $result[0][0] ) . '.<br />';
460
  $mes .= __('You may change it into a different path that contains the Imagick <b>convert</b> command at any time', 'wp-photo-album-plus') . '.<br />';
461
  $mes .= __('To disable ImageMagick, enter <b>none</b>', 'wp-photo-album-plus');
462
  }
@@ -471,6 +474,13 @@ global $wppa_subtab_names;
471
  }
472
  }
473
 
 
 
 
 
 
 
 
474
  // Check for ttf support
475
  if ( ! function_exists( 'imagettfbbox' ) ) {
476
  wppa_error_message( __('Your PHP version does not support TrueType fonts. This means that you can not apply textual watermarks', 'wp-photo-album-plus' ) );
@@ -689,7 +699,7 @@ global $wppa_subtab_names;
689
  wppa_setting_tab( 'links', $wppa_tab_names['links'], $basic );
690
  wppa_setting_tab( 'users', $wppa_tab_names['users'], $advan && wppa_switch( 'user_upload_on' ) );
691
  wppa_setting_tab( 'email', $wppa_tab_names['email'], $advan && wppa_switch( 'email_on' ) );
692
- wppa_setting_tab( 'share', $wppa_tab_names['share'], $advan && wppa_switch( 'share_on' ) || wppa_switch( 'share_on_lightbox' ) );
693
  wppa_setting_tab( 'system', $wppa_tab_names['system'], $advan );
694
  wppa_setting_tab( 'files', $wppa_tab_names['files'], $advan );
695
  wppa_setting_tab( 'new', $wppa_tab_names['new'], $advan );
@@ -778,6 +788,14 @@ global $wppa_subtab_names;
778
  }
779
  jQuery( "#"+clas+"-cm" ).hide();
780
  }
 
 
 
 
 
 
 
 
781
  var heartbeat = 0;
782
  setInterval( function() {
783
  heartbeat++;
@@ -790,7 +808,8 @@ global $wppa_subtab_names;
790
  jQuery(document).ready(function(){setTimeout(function(){
791
  if (jQuery(".' . $subtab . '").attr("data-inactive") == "1") jQuery(".' . $subtab . '").trigger("click");
792
  },100)});' : ''
793
- ) . '
 
794
  </script>';
795
  }
796
 
@@ -805,563 +824,562 @@ global $wppa_subtab_names;
805
  case 'generaladv': {
806
  // On this tab you can select the features you want to use
807
  {
808
- $desc = $wppa_subtab_names[$tab]['1'];
809
- wppa_setting_tab_description($desc);
810
- wppa_setting_box_header_new($tab);
811
 
812
- $name = __('Enable Photo', 'wp-photo-album-plus');
813
- $desc = __('Enables photo support', 'wp-photo-album-plus');
814
- $help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus');
815
- $slug = '';
816
- $html = '<input type="checkbox" style="float:left;" checked disabled >' . wppa_see_also( 'photos', '1' );
817
- wppa_setting_new($slug, '0', $name, $desc, $html, $help);
818
-
819
- $name = __('Enable Video', 'wp-photo-album-plus');
820
- $desc = __('Enables video support.', 'wp-photo-album-plus');
821
- $help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus');
822
- $slug = 'wppa_enable_video';
823
- $onch = 'wppaRefreshAfter();';
824
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'misc', '1', '7.8', 'enable_video' ) . wppa_see_also( 'users', '1', '2', 'enable_video' );
825
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
826
 
827
- $name = __('Enable pdf', 'wp-photo-album-plus');
828
- $desc = __('Enables the support of pdf files', 'wp-photo-album-plus');
829
- $help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus');
830
- $slug = 'wppa_enable_pdf';
831
- $html = wppa_checkbox($slug) . ( wppa_opt( 'art_monkey_link' ) == 'new' ? wppa_see_also( 'links', '3', '3' ) : '' );
832
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
833
 
834
- $name = __('Enable Audio', 'wp-photo-album-plus');
835
- $desc = __('Enables audio support.', 'wp-photo-album-plus');
836
- $help = __('Check this box to enable the upload and display of audio files', 'wp-photo-album-plus');
837
- $slug = 'wppa_enable_audio';
838
- $onch = 'wppaRefreshAfter();';
839
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '3', 'enable_audio' );
840
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
841
 
842
- $name = __('Enable Comments', 'wp-photo-album-plus');
843
- $desc = __('Enables the comments system.', 'wp-photo-album-plus');
844
- $help = __('Display the comments box under the slideshow images and let users enter their comments on individual photos.', 'wp-photo-album-plus');
845
- $slug = 'wppa_show_comments';
846
- $onch = 'wppaRefreshAfter();';
847
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'comments', '1', '', 'show_comments' );
848
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
849
 
850
- $name = __('Enable Ratings', 'wp-photo-album-plus');
851
- $desc = __('Enables the rating system.', 'wp-photo-album-plus');
852
- $help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus');
853
- $slug = 'wppa_rating_on';
854
- $onch = 'wppaRefreshAfter();';
855
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'rating', '1', '', 'rating_on' );
856
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
857
 
858
- $name = __('Enable User uploads', 'wp-photo-album-plus');
859
- $desc = __('Enables frontend upload.', 'wp-photo-album-plus');
860
- $help = '';
861
- $slug = 'wppa_user_upload_on';
862
- $onch = 'wppaRefreshAfter();';
863
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '', 'user_upload_on' );
864
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
865
 
866
- $name = __('Enable Email', 'wp-photo-album-plus');
867
- $desc = __('Enables sending emails when albums, photos or comments are entered.', 'wp-photo-album-plus');
868
- $help = __('See Tab Emails for detailed settings', 'wp-photo-album-plus');
869
- $slug = 'wppa_email_on';
870
- $onch = 'wppaRefreshAfter();';
871
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'email', '1', '', 'email_on' );
872
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
873
 
874
- $name = __('Enable EXIF', 'wp-photo-album-plus');
875
- $desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
876
- $help = __('You will need this if you enabled the display of exif data in the photo descriptions.', 'wp-photo-album-plus');
877
- $slug = 'wppa_save_exif';
878
- $onch = 'wppaRefreshAfter();';
879
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'exif', '1', '', 'save_exif' );
880
- wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
881
-
882
- $name = __('Enable IPTC', 'wp-photo-album-plus');
883
- $desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
884
- $help = __('You will need this if you enabled the display of iptc data in the photo descriptions.', 'wp-photo-album-plus');
885
- $slug = 'wppa_save_iptc';
886
- $onch = 'wppaRefreshAfter();';
887
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'iptc', '1', '', 'save_iptc' );
888
- wppa_setting_new($slug, '9', $name, $desc, $html, $help, function_exists('exif_read_data') );
889
-
890
- $name = __('Enable GPX', 'wp-photo-album-plus');
891
- $desc = __('Store the gpx data from the photo into the exif db table', 'wp-photo-album-plus');
892
- $help = __('You will need this if you enabled the display of gpx data in the photo descriptions.', 'wp-photo-album-plus');
893
- $slug = 'wppa_save_gpx';
894
- $onch = 'wppaRefreshAfter();';
895
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'gpx', '1', '', 'save_gpx' );
896
- wppa_setting_new($slug, '10', $name, $desc, $html, $help, function_exists('exif_read_data') && wppa_switch( 'save_exif' ) );
897
-
898
- $name = __('Enable Custom data albums', 'wp-photo-album-plus');
899
- $desc = __('Define up to 10 custom data fields for albums.', 'wp-photo-album-plus');
900
- $help = '';
901
- $slug = 'wppa_album_custom_fields';
902
- $onch = 'wppaRefreshAfter();';
903
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '1', '', 'album_custom_fields' );
904
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
905
 
906
- $name = __('Enable Custom data photos', 'wp-photo-album-plus');
907
- $desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus');
908
- $help = '';
909
- $slug = 'wppa_custom_fields';
910
- $onch = 'wppaRefreshAfter();';
911
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '2', '', 'custom_fields' );
912
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
913
 
914
- $name = __('Enable Watermark', 'wp-photo-album-plus');
915
- $desc = __('Enable the application of watermarks.', 'wp-photo-album-plus');
916
- $help = '';
917
- $slug = 'wppa_watermark_on';
918
- $onch = 'wppaRefreshAfter();';
919
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'watermark', '1', '', 'watermark_on' );
920
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
921
 
922
- $name = __('Enable shortcode [photo ..]', 'wp-photo-album-plus');
923
- $desc = __('Make the use of shortcode [photo ..] possible', 'wp-photo-album-plus');
924
- $help = __('Only disable this when there is a conflict with another plugin', 'wp-photo-album-plus');
925
- $slug = 'wppa_photo_shortcode_enabled';
926
- $onch = 'wppaRefreshAfter();';
927
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'photos', '2', '', 'photo_shortcode_enabled' );
928
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
929
 
930
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
931
  }
932
  }
933
  break;
934
 
935
  case 'layout': {
936
  // General layout settings
937
- $desc = $wppa_subtab_names[$tab]['1'];
938
  {
939
- wppa_setting_tab_description($desc);
940
- wppa_setting_box_header_new($tab);
 
941
 
942
- $name = __('WPPA display boxes', 'wp-photo-album-plus');
943
- $desc = __('Background and border colors.', 'wp-photo-album-plus');
944
- $help = __('Enter valid CSS colors for backgrounds and borders. E.g. #cccccc, gray, lightblue, transparent', 'wp-photo-album-plus');
945
- $slug1 = 'wppa_bgcolor';
946
- $slug2 = 'wppa_bcolor';
947
- $slug = array($slug1, $slug2);
948
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
949
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Border:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
950
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
951
 
952
- $name = __('Border thickness', 'wp-photo-album-plus');
953
- $desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus');
954
- $help = __('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus');
955
- $slug = 'wppa_bwidth';
956
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
957
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
958
 
959
- $name = __('Border radius', 'wp-photo-album-plus');
960
- $desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus');
961
- $help = __('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus');
962
- $slug = 'wppa_bradius';
963
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
964
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
965
 
966
- $name = __('Box spacing', 'wp-photo-album-plus');
967
- $desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus');
968
- $help = '';
969
- $slug = 'wppa_box_spacing';
970
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
971
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
972
 
973
- $name = __('Initial Width', 'wp-photo-album-plus');
974
- $desc = __('The starting width of the wppa display boxes', 'wp-photo-album-plus');
975
- $help = '';
976
- $slug = 'wppa_initial_colwidth';
977
- $html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
978
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
979
 
980
- $name = __('Sticky header size', 'wp-photo-album-plus');
981
- $desc = __('The height of your sticky header.', 'wp-photo-album-plus');
982
- $help = __('If your theme has a sticky header, enter its height here.', 'wp-photo-album-plus');
983
- $slug = 'wppa_sticky_header_size';
984
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
985
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
986
 
987
- $name = __('Area max size', 'wp-photo-album-plus');
988
- $desc = __('The max height of the thumbnail and album cover areas', 'wp-photo-album-plus');
989
- $help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus');
990
- $slug = 'wppa_area_size';
991
- $html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus'));
992
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
993
 
994
- $name = __('Use nicescroller', 'wp-photo-album-plus');
995
- $desc = __('Use nice scrollbars on thumbnail and album cover areas', 'wp-photo-album-plus');
996
- $help = '';
997
- $slug = 'wppa_nicescroll';
998
- $html = wppa_checkbox($slug);
999
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1000
 
1001
- $name = __('Max Pagelinks', 'wp-photo-album-plus');
1002
- $desc = __('The maximum number of pagelinks to be displayed.', 'wp-photo-album-plus');
1003
- $help = '';
1004
- $slug = 'wppa_pagelinks_max';
1005
- $html = wppa_input($slug, '40px', '', __('pages', 'wp-photo-album-plus'));
1006
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1007
 
1008
- $name = __('Cover Photo and popups', 'wp-photo-album-plus');
1009
- $desc = __('Background and Border colors.', 'wp-photo-album-plus');
1010
- $help = __('Enter valid CSS colors for Cover photo and popup backgrounds and borders.', 'wp-photo-album-plus');
1011
- $slug1 = 'wppa_bgcolor_img';
1012
- $slug2 = 'wppa_bcolor_img';
1013
- $slug = array($slug1, $slug2);
1014
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1015
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Border:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1016
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
1017
 
1018
- $name = __('Modal render box', 'wp-photo-album-plus');
1019
- $desc = __('The background for the Ajax modal rendering box.', 'wp-photo-album-plus');
1020
- $help = __('Recommended color: your theme background color.', 'wp-photo-album-plus');
1021
- $slug1 = 'wppa_bgcolor_modal';
1022
- $slug2 = 'wppa_bcolor_modal';
1023
- $slug = array($slug1, $slug2);
1024
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1025
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
1026
 
1027
- wppa_setting_box_footer_new();
1028
  }
1029
  // Breadcrumb specifications
1030
- $desc = $wppa_subtab_names[$tab]['2'];
1031
  {
1032
- wppa_setting_tab_description($desc);
1033
- wppa_setting_box_header_new($tab);
 
1034
 
1035
- $name = __('Breadcrumb on posts', 'wp-photo-album-plus');
1036
- $desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
1037
- $help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus');
1038
- $slug = 'wppa_show_bread_posts';
1039
- $html = wppa_checkbox($slug);
1040
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
1041
 
1042
- $name = __('Breadcrumb on pages', 'wp-photo-album-plus');
1043
- $desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
1044
- $help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus');
1045
- $slug = 'wppa_show_bread_pages';
1046
- $html = wppa_checkbox($slug);
1047
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
1048
 
1049
- $name = __('Breadcrumb on search results', 'wp-photo-album-plus');
1050
- $desc = __('Show breadcrumb navigation bars on the search results page.', 'wp-photo-album-plus');
1051
- $help = __('Indicate whether a breadcrumb navigation should be displayed above the search results.', 'wp-photo-album-plus');
1052
- $slug = 'wppa_bc_on_search';
1053
- $html = wppa_checkbox($slug);
1054
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
1055
 
1056
- $name = __('Breadcrumb on topten displays', 'wp-photo-album-plus');
1057
- $desc = __('Show breadcrumb navigation bars on topten displays.', 'wp-photo-album-plus');
1058
- $help = __('Indicate whether a breadcrumb navigation should be displayed above the topten displays.', 'wp-photo-album-plus');
1059
- $slug = 'wppa_bc_on_topten';
1060
- $html = wppa_checkbox($slug);
1061
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
1062
 
1063
- $name = __('Breadcrumb on last ten displays', 'wp-photo-album-plus');
1064
- $desc = __('Show breadcrumb navigation bars on last ten displays.', 'wp-photo-album-plus');
1065
- $help = __('Indicate whether a breadcrumb navigation should be displayed above the last ten displays.', 'wp-photo-album-plus');
1066
- $slug = 'wppa_bc_on_lasten';
1067
- $html = wppa_checkbox($slug);
1068
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
1069
 
1070
- $name = __('Breadcrumb on comment ten displays', 'wp-photo-album-plus');
1071
- $desc = __('Show breadcrumb navigation bars on comment ten displays.', 'wp-photo-album-plus');
1072
- $help = __('Indicate whether a breadcrumb navigation should be displayed above the comment ten displays.', 'wp-photo-album-plus');
1073
- $slug = 'wppa_bc_on_comten';
1074
- $html = wppa_checkbox($slug);
1075
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
1076
 
1077
- $name = __('Breadcrumb on tag result displays', 'wp-photo-album-plus');
1078
- $desc = __('Show breadcrumb navigation bars on tag result displays.', 'wp-photo-album-plus');
1079
- $help = __('Indicate whether a breadcrumb navigation should be displayed above the tag result displays.', 'wp-photo-album-plus');
1080
- $slug = 'wppa_bc_on_tag';
1081
- $html = wppa_checkbox($slug);
1082
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
1083
 
1084
- $name = __('Breadcrumb on featured ten displays', 'wp-photo-album-plus');
1085
- $desc = __('Show breadcrumb navigation bars on featured ten displays.', 'wp-photo-album-plus');
1086
- $help = __('Indicate whether a breadcrumb navigation should be displayed above the featured ten displays.', 'wp-photo-album-plus');
1087
- $slug = 'wppa_bc_on_featen';
1088
- $html = wppa_checkbox($slug);
1089
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1090
 
1091
- $name = __('Breadcrumb on related photos displays', 'wp-photo-album-plus');
1092
- $desc = __('Show breadcrumb navigation bars on related photos displays.', 'wp-photo-album-plus');
1093
- $help = __('Indicate whether a breadcrumb navigation should be displayed above the related photos displays.', 'wp-photo-album-plus');
1094
- $slug = 'wppa_bc_on_related';
1095
- $html = wppa_checkbox($slug);
1096
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1097
 
1098
- $name = __('Home', 'wp-photo-album-plus');
1099
- $desc = __('Show "Home" in breadcrumb.', 'wp-photo-album-plus');
1100
- $help = __('Indicate whether the breadcrumb navigation should start with a "Home"-link', 'wp-photo-album-plus');
1101
- $slug = 'wppa_show_home';
1102
- $html = wppa_checkbox($slug);
1103
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
1104
 
1105
- $name = __('Home text', 'wp-photo-album-plus');
1106
- $desc = __('The text to use as "Home"', 'wp-photo-album-plus');
1107
- $help = ' ';
1108
- $slug = 'wppa_home_text';
1109
- $html = wppa_input($slug, '100px;');
1110
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
1111
 
1112
- $name = __('Page', 'wp-photo-album-plus');
1113
- $desc = __('Show the page(s) in breadcrumb.', 'wp-photo-album-plus');
1114
- $help = __('Indicate whether the breadcrumb navigation should show the page(hierarchy)', 'wp-photo-album-plus');
1115
- $slug = 'wppa_show_page';
1116
- $html = wppa_checkbox($slug);
1117
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
1118
 
1119
- $name = __('Photo name', 'wp-photo-album-plus');
1120
- $desc = __('Show name of photo above slideshow.', 'wp-photo-album-plus');
1121
- $help = '';
1122
- $slug = 'wppa_show_pname';
1123
- $html = wppa_checkbox($slug);
1124
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
1125
 
1126
- $name = __('Separator', 'wp-photo-album-plus');
1127
- $desc = __('Breadcrumb separator symbol.', 'wp-photo-album-plus');
1128
- $help = __('Select the desired breadcrumb separator element.', 'wp-photo-album-plus');
1129
- $help .= '<br />'.__('A text string may contain valid html.', 'wp-photo-album-plus');
1130
- $help .= '<br />'.__('An image will be scaled automatically if you set the navigation font size.', 'wp-photo-album-plus');
1131
- $slug = 'wppa_bc_separator';
1132
- $opts = array('&amp;raquo', '&amp;rsaquo', '&amp;gt', '&amp;bull', __('Text (html):', 'wp-photo-album-plus'), __('Image (url):', 'wp-photo-album-plus'));
1133
- $vals = array('raquo', 'rsaquo', 'gt', 'bull', 'txt', 'url');
1134
- $html = wppa_select($slug, $opts, $vals);
1135
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
1136
-
1137
- $name = __('Html', 'wp-photo-album-plus');
1138
- $desc = __('Breadcrumb separator text.', 'wp-photo-album-plus');
1139
- $help = __('Enter the HTML code that produces the separator symbol you want.', 'wp-photo-album-plus');
1140
- $help .= '<br />'.__('It may be as simple as \'-\' (without the quotes) or as complex as a tag like <div>..</div>.', 'wp-photo-album-plus');
1141
- $slug = 'wppa_bc_txt';
1142
- $html = wppa_input($slug, '90%', '300px');
1143
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
1144
 
1145
- $name = __('Image Url', 'wp-photo-album-plus');
1146
- $desc = __('Full url to separator image.', 'wp-photo-album-plus');
1147
- $help = __('Enter the full url to the image you want to use for the separator symbol.', 'wp-photo-album-plus');
1148
- $slug = 'wppa_bc_url';
1149
- $html = wppa_input($slug, '90%', '300px');
1150
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
 
1151
 
1152
- $name = __('Pagelink position', 'wp-photo-album-plus');
1153
- $desc = __('The location for the pagelinks bar.', 'wp-photo-album-plus');
1154
- $help = '';
1155
- $slug = 'wppa_pagelink_pos';
1156
- $opts = array(__('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'), __('Both', 'wp-photo-album-plus'));
1157
- $vals = array('top', 'bottom', 'both');
1158
- $html = wppa_select($slug, $opts, $vals);
1159
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
1160
 
1161
- $name = __('Thumblink on slideshow', 'wp-photo-album-plus');
1162
- $desc = __('Show a thumb link on slideshow bc.', 'wp-photo-album-plus');
1163
- $help = __('Show a link to thumbnail display on an breadcrumb above a slideshow', 'wp-photo-album-plus');
1164
- $slug = 'wppa_bc_slide_thumblink';
1165
- $html = wppa_checkbox($slug);
1166
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
 
 
1167
 
1168
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
1169
  }
1170
  // Navigation symbol specifications
1171
- $desc = $wppa_subtab_names[$tab]['3'];
1172
  {
1173
- wppa_setting_tab_description($desc);
1174
- wppa_setting_box_header_new($tab);
 
1175
 
1176
- $name = __('Navigation icon size', 'wp-photo-album-plus');
1177
- $desc = __('The size of navigation icons', 'wp-photo-album-plus');
1178
- $help = '';
1179
- $slug = 'wppa_nav_icon_size';
1180
- $opts = array( '1.5em',
1181
- '16px',
1182
- '20px',
1183
- '24px',
1184
- '32px',
1185
- );
1186
- $vals = array( 'default',
1187
- '16',
1188
- '20',
1189
- '24',
1190
- '32',
1191
- );
1192
- $html = wppa_select($slug, $opts, $vals);
1193
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
1194
 
1195
- $name = __('Navigation icon size slideshow', 'wp-photo-album-plus');
1196
- $desc = __('The size of navigation icons on the slide', 'wp-photo-album-plus');
1197
- $help = '';
1198
- $slug = 'wppa_nav_icon_size_slide';
1199
- $opts = array( '16px',
1200
- '20px',
1201
- '24px',
1202
- '32px',
1203
- '48px',
1204
- );
1205
- $vals = array( '16',
1206
- '20',
1207
- '24',
1208
- '32',
1209
- 'default',
1210
- );
1211
- $html = wppa_select($slug, $opts, $vals);
1212
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
1213
 
1214
- $name = __('Icon size rating', 'wp-photo-album-plus');
1215
- $desc = __('The size of rating stars', 'wp-photo-album-plus');
1216
- $help = '';
1217
- $slug = 'wppa_icon_size_rating';
1218
- $opts = array( '1em+3px',
1219
- '16px',
1220
- '18px',
1221
- '20px',
1222
- '24px',
1223
- '32px',
1224
- );
1225
- $vals = array( 'default',
1226
- '16',
1227
- '18',
1228
- '20',
1229
- '24',
1230
- '32',
1231
- );
1232
- $html = wppa_select($slug, $opts, $vals);
1233
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
1234
 
1235
- $name = __('Navigation icon size panorama', 'wp-photo-album-plus');
1236
- $desc = __('The size of navigation icons on panorama photos', 'wp-photo-album-plus');
1237
- $help = '';
1238
- $slug = 'wppa_nav_icon_size_panorama';
1239
- $opts = array( '16px',
1240
- '20px',
1241
- '24px',
1242
- '32px',
1243
- '40px',
1244
- '48px',
1245
- );
1246
- $vals = array( '16',
1247
- '20',
1248
- '24',
1249
- '32',
1250
- '40',
1251
- '48',
1252
- );
1253
- $html = wppa_select($slug, $opts, $vals);
1254
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
1255
 
1256
- $name = __('Icon size fullsize page', 'wp-photo-album-plus');
1257
- $desc = __('The size of navigation icons for the fullsize page', 'wp-photo-album-plus');
1258
- $help = '';
1259
- $slug = 'wppa_nav_icon_size_global_fs';
1260
- $opts = array( '16px',
1261
- '20px',
1262
- '24px',
1263
- '32px',
1264
- '40px',
1265
- '48px',
1266
- );
1267
- $vals = array( '16',
1268
- '20',
1269
- '24',
1270
- '32',
1271
- '40',
1272
- '48',
1273
- );
1274
- $html = wppa_select($slug, $opts, $vals);
1275
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
1276
 
1277
- $name = __('Navigation symbols style', 'wp-photo-album-plus');
1278
- $desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
1279
- $help = __('Use gif/png if you have excessive pageload times due to many slideshows on a page', 'wp-photo-album-plus');
1280
- $slug = 'wppa_icon_corner_style';
1281
- $opts = array(__('none', 'wp-photo-album-plus'), __('light', 'wp-photo-album-plus'), __('medium', 'wp-photo-album-plus'), __('heavy', 'wp-photo-album-plus'), __('use gif/png, no svg', 'wp-photo-album-plus'));
1282
- $vals = array('none', 'light', 'medium', 'heavy', 'gif');
1283
- $html = wppa_select($slug, $opts, $vals);
1284
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
1285
 
1286
- $name = __('Spinner design', 'wp-photo-album-plus');
1287
- $desc = __('Shape of the loader symbol', 'wp-photo-album-plus');
1288
- $help = __('This works only when the previous item is set to any svg style', 'wp-photo-album-plus');
1289
- $slug = 'wppa_spinner_shape';
1290
- $opts = array( __('default', 'wp-photo-album-plus'),
1291
- 'puff',
1292
- 'rings',
1293
- 'tail-spin',
1294
- 'three-dots',
1295
- 'ball-triangle',
1296
- 'spinning-circles',
1297
- 'oval',
1298
- 'hearts',
1299
- 'grid',
1300
- 'circles',
1301
- 'bars',
1302
- 'audio',
1303
- );
1304
- $vals = array( 'default',
1305
- 'puff',
1306
- 'rings',
1307
- 'tail-spin',
1308
- 'three-dots',
1309
- 'ball-triangle',
1310
- 'spinning-circles',
1311
- 'oval',
1312
- 'hearts',
1313
- 'grid',
1314
- 'circles',
1315
- 'bars',
1316
- 'audio',
1317
- );
1318
- $html = wppa_select($slug, $opts, $vals) .
1319
- __('Frontend', 'wp-photo-album-plus') . ':&nbsp;<span id="wppa-spin-pre-1" >&nbsp;</span>' .
1320
- __('Lightbox', 'wp-photo-album-plus') . ':&nbsp;<span id="wppa-spin-pre-2" >&nbsp;</span>';
1321
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
1322
 
1323
- $name = __('Navigation symbols', 'wp-photo-album-plus');
1324
- $desc = __('Navigation symbol background and fill colors.', 'wp-photo-album-plus');
1325
- $help = '';
1326
- $slug1 = 'wppa_svg_bg_color';
1327
- $slug2 = 'wppa_svg_color';
1328
- $slug = array($slug1, $slug2);
1329
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1330
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1331
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
1332
-
1333
- $name = __('Navigation symbols Lightbox', 'wp-photo-album-plus');
1334
- $desc = __('Navigation symbol background and fill colors Lightbox.', 'wp-photo-album-plus');
1335
- $help = '';
1336
- $slug1 = 'wppa_ovl_svg_bg_color';
1337
- $slug2 = 'wppa_ovl_svg_color';
1338
- $slug = array($slug1, $slug2);
1339
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1340
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1341
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1342
 
1343
- $name = __('Fullscreen button', 'wp-photo-album-plus');
1344
- $desc = __('The upper right corner fullscreen button.', 'wp-photo-album-plus');
1345
- $help = '';
1346
- $slug1 = 'wppa_fs_svg_bg_color';
1347
- $slug2 = 'wppa_fs_svg_color';
1348
- $slug = array($slug1, $slug2);
1349
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1350
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1351
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1352
 
1353
- wppa_setting_box_footer_new();
1354
- echo '
1355
- <script type="text/javascript" >
1356
- wppaAjaxGetSpinnerHtml( "normal", "wppa-spin-pre-1" );
1357
- wppaAjaxGetSpinnerHtml( "lightbox", "wppa-spin-pre-2" );
1358
- </script>';
 
 
 
1359
 
 
 
 
 
 
 
1360
  }
1361
  // Multimedia icon and stubfile specifications
1362
- $desc = $wppa_subtab_names[$tab]['4'];
1363
  if ( wppa_switch( 'enable_audio' ) || wppa_switch( 'enable_video' ) || wppa_switch( 'enable_pdf' ) )
1364
  {
 
1365
  wppa_setting_tab_description($desc);
1366
  wppa_setting_box_header_new($tab);
1367
 
@@ -2468,7 +2486,7 @@ global $wppa_subtab_names;
2468
  $desc = __('Use popup effect on thumbnail images.', 'wp-photo-album-plus');
2469
  $help = __('Thumbnails pop-up to a larger image when hovered.', 'wp-photo-album-plus');
2470
  $slug = 'wppa_use_thumb_popup';
2471
- $html = wppa_checkbox($slug);
2472
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2473
 
2474
  $name = __('Align subtext', 'wp-photo-album-plus');
@@ -2497,3090 +2515,3189 @@ global $wppa_subtab_names;
2497
 
2498
  case 'slide': {
2499
  // Sllideshow component specifications
2500
- $desc = $wppa_subtab_names[$tab]['1'];
2501
  {
2502
- wppa_setting_tab_description($desc);
2503
- wppa_setting_box_header_new($tab);
 
2504
 
2505
- $name = __('Maximum Width', 'wp-photo-album-plus');
2506
- $desc = __('The maximum width photos will be displayed in slideshows.', 'wp-photo-album-plus');
2507
- $help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus');
2508
- $help .= '<br />'.__('This is usually the same as the Column Width (Table I-A1), but it may differ.', 'wp-photo-album-plus');
2509
- $slug = 'wppa_fullsize';
2510
- $html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
2511
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
 
2512
 
2513
- $name = __('Maximum Height', 'wp-photo-album-plus');
2514
- $desc = __('The maximum height photos will be displayed in slideshows.', 'wp-photo-album-plus');
2515
- $help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus');
2516
- $help .= '<br />'.__('This setting defines the height of the space reserved for photos in slideshows.', 'wp-photo-album-plus');
2517
- $help .= '<br />'.__('If you change the width of a display by the size=".." shortcode attribute, this value changes proportionally to match the aspect ratio as defined by this and the previous setting.', 'wp-photo-album-plus');
2518
- $slug = 'wppa_maxheight';
2519
- $html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
2520
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
2521
 
2522
- $name = __('Stretch to fit', 'wp-photo-album-plus');
2523
- $desc = __('Stretch photos that are too small.', 'wp-photo-album-plus');
2524
- $help = __('Images will be stretched to the Maximum Size at display time if they are smaller. Leaving unchecked is recommended. It is better to upload photos that fit well the sizes you use!', 'wp-photo-album-plus');
2525
- $slug = 'wppa_enlarge';
2526
- $html = wppa_checkbox($slug);
2527
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
2528
 
2529
- $name = __('Slideshow borderwidth', 'wp-photo-album-plus');
2530
- $desc = __('The width of the border around slideshow images.', 'wp-photo-album-plus');
2531
- $help = __('The border is made by the image background being larger than the image itsself (padding).', 'wp-photo-album-plus');
2532
- $help .= '<br />'.__('Additionally there may be a one pixel outline of a different color. See Table III-A2.', 'wp-photo-album-plus');
2533
- $help .= '<br />'.__('The number you enter here is exclusive the one pixel outline.', 'wp-photo-album-plus');
2534
- $help .= '<br />'.__('If you leave this entry empty, there will be no outline either.', 'wp-photo-album-plus');
2535
- $slug = 'wppa_fullimage_border_width';
2536
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
2537
- $clas = '';
2538
- $tags = 'size,slide,layout';
2539
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
2540
 
2541
- $name = __('Numbar Max', 'wp-photo-album-plus');
2542
- $desc = __('Maximum numbers to display.', 'wp-photo-album-plus');
2543
- $help = __('In order to attempt to fit on one line, the numbers will be replaced by dots - except the current - when there are more than this number of photos in a slideshow.', 'wp-photo-album-plus');
2544
- $slug = 'wppa_numbar_max';
2545
- $html = wppa_input($slug, '40px', '', __('numbers', 'wp-photo-album-plus'));
2546
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
2547
 
2548
- $name = __('Share button size', 'wp-photo-album-plus');
2549
- $desc = __('The size of the social media icons in the Share box', 'wp-photo-album-plus');
2550
- $help = '';
2551
- $slug = 'wppa_share_size';
2552
- $opts = array('16 x 16', '20 x 20', '32 x 32');
2553
- $vals = array('16', '20', '32');
2554
- $html = wppa_select($slug, $opts, $vals) . __('pixels', 'wp-photo-album-plus');
2555
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2556
 
2557
- $name = __('Mini Threshold', 'wp-photo-album-plus');
2558
- $desc = __('Show mini text at slideshow smaller than.', 'wp-photo-album-plus');
2559
- $help = __('Display Next and Prev. as opposed to Next photo and Previous photo when the cotainer is smaller than this size.', 'wp-photo-album-plus');
2560
- $help .= '<br />'.__('Special use in responsive themes.', 'wp-photo-album-plus');
2561
- $slug = 'wppa_mini_treshold';
2562
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
2563
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
2564
 
2565
- $name = __('Slideshow pagesize', 'wp-photo-album-plus');
2566
- $desc = __('The maximum number of slides in a certain view. 0 means no pagination', 'wp-photo-album-plus');
2567
- $help = '';
2568
- $slug = 'wppa_slideshow_pagesize';
2569
- $html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
2570
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
2571
 
2572
- $name = __('Filmstrip Thumbnail Size', 'wp-photo-album-plus');
2573
- $desc = __('The size of the filmstrip images.', 'wp-photo-album-plus');
2574
- $help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
2575
- $help .= '<br />'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
2576
- $slug = 'wppa_film_thumbsize';
2577
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
2578
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
2579
 
2580
- $name = __('Slideonly max', 'wp-photo-album-plus');
2581
- $desc = __('The max number of slides in a slideonly or filmonly display', 'wp-photo-album-plus');
2582
- $help = '';
2583
- $slug = 'wppa_slideonly_max';
2584
- $html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
2585
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
2586
 
2587
- $name = __('Show Share Box', 'wp-photo-album-plus');
2588
- $desc = __('Display the share social media buttons box.', 'wp-photo-album-plus');
2589
- $help = '';
2590
- $slug = 'wppa_share_on';
2591
- $onch = '';
2592
- $html = wppa_checkbox($slug);
2593
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
2594
 
2595
- $name = __('Start/stop', 'wp-photo-album-plus');
2596
- $desc = __('Show the Start/Stop slideshow bar.', 'wp-photo-album-plus');
2597
- $help = __('If checked: display the start/stop slideshow navigation bar above the full-size images and slideshow', 'wp-photo-album-plus');
2598
- $slug = 'wppa_show_startstop_navigation';
2599
- $html = wppa_checkbox($slug);
2600
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
2601
 
2602
- $name = __('Start/stop on Filmonly');
2603
- $desc = __('Show the Start/Stop slideshow bar on filmonly displays.', 'wp-photo-album-plus');
2604
- $help = '';
2605
- $slug = 'wppa_show_startstop_filmonly';
2606
- $html = wppa_checkbox($slug);
2607
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
2608
 
2609
- $name = __('Renew on Filmonly', 'wp-photo-album-plus');
2610
- $desc = __('Show renew link on filmonly displays.', 'wp-photo-album-plus');
2611
- $help = '';
2612
- $slug = 'wppa_show_renew_filmonly';
2613
- $html = wppa_checkbox($slug);
2614
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
2615
 
2616
- $name = __('Browse bar', 'wp-photo-album-plus');
2617
- $desc = __('Show Browse photos bar.', 'wp-photo-album-plus');
2618
- $help = __('If checked: display the preveous/next navigation bar under the full-size images and slideshow', 'wp-photo-album-plus');
2619
- $slug = 'wppa_show_browse_navigation';
2620
- $html = wppa_checkbox($slug);
2621
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
2622
 
2623
- $name = __('Filmstrip', 'wp-photo-album-plus');
2624
- $desc = __('Show Filmstrip navigation bar.', 'wp-photo-album-plus');
2625
- $help = __('If checked: display the filmstrip navigation bar under the full_size images and slideshow', 'wp-photo-album-plus');
2626
- $slug = 'wppa_filmstrip';
2627
- $html = wppa_checkbox($slug);
2628
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
2629
 
2630
- $name = __('Film seam', 'wp-photo-album-plus');
2631
- $desc = __('Show seam between end and start of film.', 'wp-photo-album-plus');
2632
- $help = __('If checked: display the wrap-around point in the filmstrip', 'wp-photo-album-plus');
2633
- $slug = 'wppa_film_show_glue';
2634
- $html = wppa_checkbox($slug);
2635
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
2636
 
2637
- $name = __('Photo name', 'wp-photo-album-plus');
2638
- $desc = __('Display photo name.', 'wp-photo-album-plus');
2639
- $help = __('If checked: display the name of the photo under the slideshow image.', 'wp-photo-album-plus');
2640
- $slug = 'wppa_show_full_name';
2641
- $html = wppa_checkbox($slug);
2642
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
2643
 
2644
- $name = __('Add (Owner)', 'wp-photo-album-plus');
2645
- $desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
2646
- $help = '';
2647
- $slug = 'wppa_show_full_owner';
2648
- $html = wppa_checkbox($slug);
2649
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
2650
 
2651
- $name = __('Owner on new line', 'wp-photo-album-plus');
2652
- $desc = __('Place the (owner) text on a new line.', 'wp-photo-album-plus');
2653
- $help = '';
2654
- $slug = 'wppa_owner_on_new_line';
2655
- $html = wppa_checkbox($slug);
2656
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
2657
 
2658
- $name = __('Photo desc', 'wp-photo-album-plus');
2659
- $desc = __('Display Photo description.', 'wp-photo-album-plus');
2660
- $help = __('If checked: display the description of the photo under the slideshow image.', 'wp-photo-album-plus');
2661
- $slug = 'wppa_show_full_desc';
2662
- $html = wppa_checkbox($slug);
2663
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
2664
 
2665
- $name = __('Hide when empty', 'wp-photo-album-plus');
2666
- $desc = __('Hide the descriptionbox when empty.', 'wp-photo-album-plus');
2667
- $help = '';
2668
- $slug = 'wppa_hide_when_empty';
2669
- $html = wppa_checkbox($slug);
2670
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
2671
 
2672
- $name = __('Big Browse Buttons', 'wp-photo-album-plus');
2673
- $desc = __('Enable invisible browsing buttons.', 'wp-photo-album-plus');
2674
- $help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus');
2675
- $help .= '<br />'.__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
2676
- $slug = 'wppa_show_bbb';
2677
- $html = wppa_checkbox($slug);
2678
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
2679
 
2680
- $name = __('Ugly Browse Buttons', 'wp-photo-album-plus');
2681
- $desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus');
2682
- $help = __('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus');
2683
- $slug = 'wppa_show_ubb';
2684
- $html = wppa_checkbox($slug);
2685
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
2686
 
2687
- $name = __('Start/stop icons', 'wp-photo-album-plus');
2688
- $desc = __('Show start and stop icons at the center of the slide', 'wp-photo-album-plus');
2689
- $help = '';
2690
- $slug = 'wppa_show_start_stop_icons';
2691
- $html = wppa_checkbox($slug);
2692
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
2693
 
2694
- $name = __('Show custom box', 'wp-photo-album-plus');
2695
- $desc = __('Display the custom box in the slideshow', 'wp-photo-album-plus');
2696
- $help = __('You can fill the custom box with any html you like. It will not be checked, so it is your own responsibility to close tags properly.', 'wp-photo-album-plus');
2697
- $help .= '<br />'.__('The position of the box can be defined in Table IX-E.', 'wp-photo-album-plus');
2698
- $slug = 'wppa_custom_on';
2699
- $html = wppa_checkbox($slug);
2700
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
2701
-
2702
- $name = __('Custom content', 'wp-photo-album-plus');
2703
- $desc = __('The content (html) of the custom box.', 'wp-photo-album-plus');
2704
- $help = __('You can fill the custom box with any html you like. It will not be checked, so it is your own responsibility to close tags properly.', 'wp-photo-album-plus');
2705
- $help .= '<br />'.__('The position of the box can be defined in Table IX-E.', 'wp-photo-album-plus');
2706
- $slug = 'wppa_custom_content';
2707
- $html = wppa_textarea($slug, $name);
2708
- wppa_setting_new(false, '27', $name, $desc, $html, $help);
2709
-
2710
- $name = __('Slideshow/Number bar', 'wp-photo-album-plus');
2711
- $desc = __('Display the Slideshow / Number bar.', 'wp-photo-album-plus');
2712
- $help = __('If checked: display the number boxes on slideshow', 'wp-photo-album-plus');
2713
- $slug = 'wppa_show_slideshownumbar';
2714
- $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
2715
- wppa_setting_new($slug, '28', $name, $desc, $html, $help);
2716
 
2717
- $name = __('Numbar', 'wp-photo-album-plus');
2718
- $desc = __('Number bar box background.', 'wp-photo-album-plus');
2719
- $help = '';
2720
- $slug1 = 'wppa_bgcolor_numbar';
2721
- $slug2 = 'wppa_bcolor_numbar';
2722
- $slug = array($slug1, $slug2);
2723
- $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2724
- wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
2725
- '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2726
- wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
2727
- wppa_setting_new($slug, '29', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
2728
-
2729
- $name = __('Numbar active', 'wp-photo-album-plus');
2730
- $desc = __('Number bar active box background.', 'wp-photo-album-plus');
2731
- $help = '';
2732
- $slug1 = 'wppa_bgcolor_numbar_active';
2733
- $slug2 = 'wppa_bcolor_numbar_active';
2734
- $slug = array($slug1, $slug2);
2735
- $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2736
- wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
2737
- '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2738
- wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
2739
- wppa_setting_new($slug, '30', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
2740
-
2741
- $name = __('IPTC system', 'wp-photo-album-plus');
2742
- $desc = __('Enable the iptc system.', 'wp-photo-album-plus');
2743
- $help = __('Display the iptc box under the fullsize images.', 'wp-photo-album-plus');
2744
- $slug = 'wppa_show_iptc';
2745
- $html = wppa_checkbox($slug);
2746
- wppa_setting_new($slug, '31', $name, $desc, $html, $help, wppa_switch('save_iptc'));
2747
 
2748
- $name = __('IPTC open', 'wp-photo-album-plus');
2749
- $desc = __('Display the iptc box initially opened.', 'wp-photo-album-plus');
2750
- $help = __('Display the iptc box under the fullsize images initially open.', 'wp-photo-album-plus');
2751
- $slug = 'wppa_show_iptc_open';
2752
- $html = wppa_checkbox($slug);
2753
- wppa_setting_new($slug, '32', $name, $desc, $html, $help, wppa_switch('save_iptc'));
2754
 
2755
- $name = __('EXIF system', 'wp-photo-album-plus');
2756
- $desc = __('Enable the exif system.', 'wp-photo-album-plus');
2757
- $help = __('Display the exif box under the fullsize images.', 'wp-photo-album-plus');
2758
- $slug = 'wppa_show_exif';
2759
- $html = wppa_checkbox($slug);
2760
- wppa_setting_new($slug, '33', $name, $desc, $html, $help, wppa_switch('save_exif'));
2761
 
2762
- $name = __('EXIF open', 'wp-photo-album-plus');
2763
- $desc = __('Display the exif box initially opened.', 'wp-photo-album-plus');
2764
- $help = __('Display the exif box under the fullsize images initially open.', 'wp-photo-album-plus');
2765
- $slug = 'wppa_show_exif_open';
2766
- $html = wppa_checkbox($slug);
2767
- wppa_setting_new($slug, '34', $name, $desc, $html, $help, wppa_switch('save_exif'));
2768
 
2769
- $name = __('SlideImg', 'wp-photo-album-plus');
2770
- $desc = __('Fullsize Slideshow Photos.', 'wp-photo-album-plus');
2771
- $help = '';
2772
- $help .= '<br />'.__('The colors may be equal or "transparent"', 'wp-photo-album-plus');
2773
- $help .= '<br />'.__('For more information about slideshow image borders see the help on Table I-B4', 'wp-photo-album-plus');
2774
- $slug1 = 'wppa_bgcolor_fullimg';
2775
- $slug2 = 'wppa_bcolor_fullimg';
2776
- $slug = array($slug1, $slug2);
2777
- $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2778
- wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
2779
- '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2780
- wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
2781
- wppa_setting_new($slug, '35', $name, $desc, $html, $help);
2782
-
2783
- $name = __('Navigation type', 'wp-photo-album-plus');
2784
- $desc = __('Select the type of navigation you want.', 'wp-photo-album-plus');
2785
- $help = '';
2786
- $slug = 'wppa_navigation_type';
2787
- $opts = array( __('Icons', 'wp-photo-album-plus'),
2788
- __('Icons on mobile, text on pc', 'wp-photo-album-plus'),
2789
- __('Text', 'wp-photo-album-plus'),
2790
- );
2791
- $vals = array( 'icons',
2792
- 'iconsmobile',
2793
- 'text',
2794
- );
2795
- $html = wppa_select($slug, $opts, $vals);
2796
- wppa_setting_new($slug, '36', $name, $desc, $html, $help);
2797
 
2798
- wppa_setting_box_footer_new();
2799
  }
2800
  // Slideshow component sequence
2801
- $desc = $wppa_subtab_names[$tab]['2'];
2802
  {
2803
- wppa_setting_tab_description($desc);
2804
- wppa_setting_box_header_new($tab);
 
2805
 
2806
- if ( wppa_switch( 'split_namedesc') ) {
2807
- $indexopt = wppa_opt( 'slide_order_split' );
2808
- $indexes = explode(',', $indexopt);
2809
- $names = array(
2810
- __('StartStop', 'wp-photo-album-plus'),
2811
- __('SlideFrame', 'wp-photo-album-plus'),
2812
- __('Name', 'wp-photo-album-plus'),
2813
- __('Desc', 'wp-photo-album-plus'),
2814
- __('Custom', 'wp-photo-album-plus'),
2815
- __('Rating', 'wp-photo-album-plus'),
2816
- __('FilmStrip', 'wp-photo-album-plus'),
2817
- __('Browsebar', 'wp-photo-album-plus'),
2818
- __('Comments', 'wp-photo-album-plus'),
2819
- __('IPTC data', 'wp-photo-album-plus'),
2820
- __('EXIF data', 'wp-photo-album-plus'),
2821
- __('Share box', 'wp-photo-album-plus')
2822
- );
2823
- $enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus');
2824
- $disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus');
2825
- $descs = array(
2826
- __('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus') . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
2827
- __('The Slide Frame', 'wp-photo-album-plus') . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus').'</span>',
2828
- __('Photo Name Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_full_name') ? $enabled : $disabled ) .' )</span>',
2829
- __('Photo Description Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_full_desc') ? $enabled : $disabled ) .' )</span>',
2830
- __('Custom Box', 'wp-photo-album-plus') . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
2831
- __('Rating Bar', 'wp-photo-album-plus') . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
2832
- __('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus') . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
2833
- __('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus') . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
2834
- __('Comments Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
2835
- __('IPTC box', 'wp-photo-album-plus') . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
2836
- __('EXIF box', 'wp-photo-album-plus') . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
2837
- __('Social media share box', 'wp-photo-album-plus') . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
2838
- );
2839
- $i = '0';
2840
- while ( $i < '12' ) {
2841
- $name = $names[$indexes[$i]];
2842
- $desc = $descs[$indexes[$i]];
2843
- $html = $i == '0' ? '&nbsp;' : wppa_moveup_button( 'wppa_moveup', $i );
2844
- $help = '';
2845
- $slug = 'wppa_slide_order';
2846
- wppa_setting_new($slug, $indexes[$i]+1 , $name, $desc, $html, $help);
2847
- $i++;
 
2848
  }
2849
- }
2850
- else {
2851
- $indexopt = wppa_opt( 'slide_order' );
2852
- $indexes = explode(',', $indexopt);
2853
- $names = array(
2854
- __('StartStop', 'wp-photo-album-plus'),
2855
- __('SlideFrame', 'wp-photo-album-plus'),
2856
- __('NameDesc', 'wp-photo-album-plus'),
2857
- __('Custom', 'wp-photo-album-plus'),
2858
- __('Rating', 'wp-photo-album-plus'),
2859
- __('FilmStrip', 'wp-photo-album-plus'),
2860
- __('Browsebar', 'wp-photo-album-plus'),
2861
- __('Comments', 'wp-photo-album-plus'),
2862
- __('IPTC data', 'wp-photo-album-plus'),
2863
- __('EXIF data', 'wp-photo-album-plus'),
2864
- __('Share box', 'wp-photo-album-plus')
2865
- );
2866
- $enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus');
2867
- $disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus');
2868
- $descs = array(
2869
- __('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus') . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
2870
- __('The Slide Frame', 'wp-photo-album-plus') . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus').'</span>',
2871
- __('Photo Name & Description Box', 'wp-photo-album-plus') . ( ( wppa_switch( 'show_full_name') || wppa_switch( 'show_full_desc') ) ? $enabled : $disabled ) .' )</span>',
2872
- __('Custom Box', 'wp-photo-album-plus') . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
2873
- __('Rating Bar', 'wp-photo-album-plus') . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
2874
- __('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus') . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
2875
- __('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus') . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
2876
- __('Comments Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
2877
- __('IPTC box', 'wp-photo-album-plus') . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
2878
- __('EXIF box', 'wp-photo-album-plus') . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
2879
- __('Social media share box', 'wp-photo-album-plus') . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
2880
- );
2881
- $i = '0';
2882
- while ( $i < '11' ) {
2883
- $name = $names[$indexes[$i]];
2884
- $desc = $descs[$indexes[$i]];
2885
- $html = $i == '0' ? '&nbsp;' : wppa_moveup_button( 'wppa_moveup', $i );
2886
- $help = '';
2887
- $slug = 'wppa_slide_order';
2888
- wppa_setting_new($slug, $indexes[$i]+1 , $name, $desc, $html, $help);
2889
- $i++;
2890
  }
2891
- }
2892
 
2893
- $name = __('Swap Namedesc', 'wp-photo-album-plus');
2894
- $desc = __('Swap the order sequence of name and description', 'wp-photo-album-plus');
2895
- $help = '';
2896
- $slug = 'wppa_swap_namedesc';
2897
- $html = wppa_checkbox($slug,'wppaRefreshAfter()');
2898
- wppa_setting_new($slug, '13', $name, $desc, $html, $help, ! wppa_switch( 'split_namedesc' ) );
2899
 
2900
- $name = __('Split Name and Desc', 'wp-photo-album-plus');
2901
- $desc = __('Put Name and Description in separate boxes', 'wp-photo-album-plus');
2902
- $help = '';
2903
- $slug = 'wppa_split_namedesc';
2904
- $html = wppa_checkbox($slug,'wppaRefreshAfter()');
2905
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
2906
 
2907
- wppa_setting_box_footer_new();
2908
  }
2909
  // Slideshow layout settings
2910
- $desc = $wppa_subtab_names[$tab]['3'];
2911
  {
2912
- wppa_setting_tab_description($desc);
2913
- wppa_setting_box_header_new($tab);
 
2914
 
2915
- $name = __('V align', 'wp-photo-album-plus');
2916
- $desc = __('Vertical alignment of slideshow images.', 'wp-photo-album-plus');
2917
- $help = __('Specify the vertical alignment of slideshow images.', 'wp-photo-album-plus');
2918
- $slug = 'wppa_fullvalign';
2919
- $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'), __('fit', 'wp-photo-album-plus'));
2920
- $vals = array('default', 'top', 'center', 'bottom', 'fit');
2921
- $html = wppa_select($slug, $opts, $vals);
2922
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
2923
 
2924
- $name = __('V align', 'wp-photo-album-plus');
2925
- $desc = __('Vertical alignment of slideonly slidshow images.', 'wp-photo-album-plus');
2926
- $help = __('Specify the vertical alignment of slideonly slideshow images.', 'wp-photo-album-plus');
2927
- $slug = 'wppa_fullvalign_slideonly';
2928
- $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'), __('fit', 'wp-photo-album-plus'));
2929
- $vals = array('default', 'top', 'center', 'bottom', 'fit');
2930
- $html = wppa_select($slug, $opts, $vals);
2931
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
2932
 
2933
- $name = __('H align', 'wp-photo-album-plus');
2934
- $desc = __('Horizontal alignment of slideshow images.', 'wp-photo-album-plus');
2935
- $help = __('Specify the horizontal alignment of slideshow images. If you specify --- none --- , no horizontal alignment will take place.', 'wp-photo-album-plus');
2936
- $help .= '<br />'.(__('This setting is only usefull when the Column Width differs from the Maximum Width.', 'wp-photo-album-plus'));
2937
- $help .= '<br />'.(__('(Settings I-A1 and I-B1)', 'wp-photo-album-plus'));
2938
- $slug = 'wppa_fullhalign';
2939
- $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('left', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('right', 'wp-photo-album-plus'));
2940
- $vals = array('default', 'left', 'center', 'right');
2941
- $html = wppa_select($slug, $opts, $vals);
2942
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
2943
 
2944
- $name = __('Full desc align', 'wp-photo-album-plus');
2945
- $desc = __('The alignment of the descriptions under fullsize images and slideshows.', 'wp-photo-album-plus');
2946
- $help = '';
2947
- $slug = 'wppa_fulldesc_align';
2948
- $opts = array(__('Left', 'wp-photo-album-plus'), __('Center', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'));
2949
- $vals = array('left', 'center', 'right');
2950
- $html = wppa_select($slug, $opts, $vals);
2951
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
2952
 
2953
- $name = __('Remove redundant space', 'wp-photo-album-plus');
2954
- $desc = __('Removes unwanted &lt;p> and &lt;br> tags in fullsize descriptions.', 'wp-photo-album-plus');
2955
- $help = __('This setting has only effect when Table IX-A7 (foreign shortcodes) is checked.', 'wp-photo-album-plus');
2956
- $slug = 'wppa_clean_pbr';
2957
- $html = wppa_checkbox($slug);
2958
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
 
2959
 
2960
- $name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
2961
- $desc = __('Adds &lt;br> or &lt;p> and &lt;br> tags in fullsize descriptions.', 'wp-photo-album-plus');
2962
- $help = '';
2963
- $slug = 'wppa_wpautop_on_desc';
2964
- $opts = array( __('--- none ---', 'wp-photo-album-plus'),
2965
- __('Linebreaks only', 'wp-photo-album-plus'),
2966
- __('Linebreaks and paragraphs', 'wp-photo-album-plus'),
2967
- );
2968
- $vals = array('nil', 'nl2br', 'wpautop');
2969
- $html = wppa_select($slug, $opts, $vals);
2970
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2971
 
2972
- $name = __('Auto open comments', 'wp-photo-album-plus');
2973
- $desc = __('Automatic opens comments box when slideshow does not run.', 'wp-photo-album-plus');
2974
- $help = __('Works also on type="xphoto"', 'wp-photo-album-plus');
2975
- $slug = 'wppa_auto_open_comments';
2976
- $html = wppa_checkbox($slug);
2977
- wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('show_comments'));
2978
 
2979
- wppa_setting_box_footer_new();
2980
  }
2981
  // Slideshow dynamic behaviour
2982
- $desc = $wppa_subtab_names[$tab]['4'];
2983
  {
2984
- wppa_setting_tab_description($desc);
2985
- wppa_setting_box_header_new($tab);
 
2986
 
2987
- $name = __('Start', 'wp-photo-album-plus');
2988
- $desc = __('Start slideshow running.', 'wp-photo-album-plus');
2989
- $help = __('If you select "running", the slideshow will start running immediately, if you select "still at first photo", the first photo will be displayed in browse mode.', 'wp-photo-album-plus');
2990
- $help .= '<br />'.__('If you select "still at first norated", the first photo that the visitor did not gave a rating will be displayed in browse mode.', 'wp-photo-album-plus');
2991
- $slug = 'wppa_start_slide';
2992
- $opts = array( __('running', 'wp-photo-album-plus'),
2993
- __('still at first photo', 'wp-photo-album-plus'),
2994
- __('still at first norated', 'wp-photo-album-plus')
2995
- );
2996
- $vals = array( 'run',
2997
- 'still',
2998
- 'norate'
2999
- );
3000
- $html = wppa_select($slug, $opts, $vals);
3001
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
3002
 
3003
- $name = __('Start slideonly', 'wp-photo-album-plus');
3004
- $desc = __('Start slideonly slideshow running.', 'wp-photo-album-plus');
3005
- $help = '';
3006
- $slug = 'wppa_start_slideonly';
3007
- $html = wppa_checkbox($slug);
3008
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3009
 
3010
- $name = __('Video autostart', 'wp-photo-album-plus');
3011
- $desc = __('Autoplay videos in slideshows.', 'wp-photo-album-plus');
3012
- $help = '';
3013
- $slug = 'wppa_start_slide_video';
3014
- $html = wppa_checkbox($slug);
3015
- wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch('enable_video'));
3016
 
3017
- $name = __('Audio autostart', 'wp-photo-album-plus');
3018
- $desc = __('Autoplay audios in slideshows.', 'wp-photo-album-plus');
3019
- $help = '';
3020
- $slug = 'wppa_start_slide_audio';
3021
- $html = wppa_checkbox($slug);
3022
- wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_switch('enable_audio'));
3023
-
3024
- $name = __('Animation type', 'wp-photo-album-plus');
3025
- $desc = __('The way successive slides appear.', 'wp-photo-album-plus');
3026
- $help = __('Select the way the old slide is to be replaced by the new one in the slideshow/browse fullsize display.', 'wp-photo-album-plus');
3027
- $slug = 'wppa_animation_type';
3028
- $opts = array( __('Fade out and in simultaneous', 'wp-photo-album-plus'),
3029
- __('Fade in after fade out', 'wp-photo-album-plus'),
3030
- __('Shift adjacent', 'wp-photo-album-plus'),
3031
- // __('Stack on', 'wp-photo-album-plus'),
3032
- // __('Stack off', 'wp-photo-album-plus'),
3033
- // __('Turn over', 'wp-photo-album-plus')
3034
- );
3035
- $vals = array( 'fadeover',
3036
- 'fadeafter',
3037
- 'swipe',
3038
- // 'stackon',
3039
- // 'stackoff',
3040
- // 'turnover'
3041
- );
3042
- $html = wppa_select($slug, $opts, $vals);
3043
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3044
 
3045
- $name = __('Timeout', 'wp-photo-album-plus');
3046
- $desc = __('Slideshow timeout.', 'wp-photo-album-plus');
3047
- $help = __('Select the time a single slide will be visible when the slideshow is started.', 'wp-photo-album-plus');
3048
- $slug = 'wppa_slideshow_timeout';
3049
- $opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
3050
- $vals = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
3051
- $html = wppa_select($slug, $opts, $vals);
3052
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3053
 
3054
- $name = __('Speed', 'wp-photo-album-plus');
3055
- $desc = __('Slideshow animation speed.', 'wp-photo-album-plus');
3056
- $help = __('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus');
3057
- $help .= '<br />'.__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus');
3058
- $slug = 'wppa_animation_speed';
3059
- $opts = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.', '6 s.', '8 s.', '10 s.');
3060
- $vals = array('10', '200', '400', '800', '1200', '2000', '4000', '6000', '8000', '10000');
3061
- $html = wppa_select($slug, $opts, $vals);
3062
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3063
 
3064
- $name = __('Slide hover pause', 'wp-photo-album-plus');
3065
- $desc = __('Running Slideshow suspends during mouse hover.', 'wp-photo-album-plus');
3066
- $help = '';
3067
- $slug = 'wppa_slide_pause';
3068
- $html = wppa_checkbox($slug);
3069
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3070
 
3071
- $name = __('Slideshow wrap around', 'wp-photo-album-plus');
3072
- $desc = __('The slideshow wraps around the start and end', 'wp-photo-album-plus');
3073
- $help = '';
3074
- $slug = 'wppa_slide_wrap';
3075
- $html = wppa_checkbox($slug);
3076
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3077
 
3078
- $name = __('Film hover goto', 'wp-photo-album-plus');
3079
- $desc = __('Go to slide when hovering filmstrip thumbnail.', 'wp-photo-album-plus');
3080
- $help = __('Do not use this setting when slides have different aspect ratios!', 'wp-photo-album-plus');
3081
- $slug = 'wppa_film_hover_goto';
3082
- $html = wppa_checkbox($slug);
3083
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3084
 
3085
- $name = __('Slide swipe', 'wp-photo-album-plus');
3086
- $desc = __('Enable touch events swipe left-right on slides on touch screens.', 'wp-photo-album-plus');
3087
- $help = '';
3088
- $slug = 'wppa_slide_swipe';
3089
- $html = wppa_checkbox($slug);
3090
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
3091
 
3092
- $name = __('Filmonly continu', 'wp-photo-album-plus');
3093
- $desc = __('The filmstrip will move almost continously', 'wp-photo-album-plus');
3094
- $help = '';
3095
- $slug = 'wppa_filmonly_continuous';
3096
- $html = wppa_checkbox($slug);
3097
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3098
 
3099
- $name = __('Filmonly random', 'wp-photo-album-plus');
3100
- $desc = __('Set sequence in filmonly to random');
3101
- $help = __('Every pageload the sequence will be different', 'wp-photo-album-plus');
3102
- $slug = 'wppa_filmonly_random';
3103
- $html = wppa_checkbox($slug);
3104
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
3105
 
3106
- $name = __('No animate on mobile', 'wp-photo-album-plus');
3107
- $desc = __('Suppress slideshow animations on mobile devices.', 'wp-photo-album-plus');
3108
- $help = '';
3109
- $slug = 'wppa_no_animate_on_mobile';
3110
- $html = wppa_checkbox($slug);
3111
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
3112
 
3113
- wppa_setting_box_footer_new();
3114
  }
3115
  }
3116
  break;
3117
 
3118
  case 'lightbox': {
3119
  // Lightbox overlay configuration settings
3120
- $desc = $wppa_subtab_names[$tab]['1'];
3121
  {
3122
- wppa_setting_tab_description($desc);
3123
- wppa_setting_box_header_new($tab);
 
3124
 
3125
- $name = __('Theme color', 'wp-photo-album-plus');
3126
- $desc = __('The color of the image border and text background.', 'wp-photo-album-plus');
3127
- $help = '';
3128
- $slug = 'wppa_ovl_theme';
3129
- $opts = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
3130
- $vals = array('black', 'white');
3131
- $html = wppa_select($slug, $opts, $vals);
3132
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
3133
 
3134
- $name = __('Theme background color', 'wp-photo-album-plus');
3135
- $desc = __('The color of the outer background.', 'wp-photo-album-plus');
3136
- $help = '';
3137
- $slug = 'wppa_ovl_bgcolor';
3138
- $opts = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
3139
- $vals = array('black', 'white');
3140
- $html = wppa_select($slug, $opts, $vals);
3141
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3142
 
3143
- $name = __('Overlay name', 'wp-photo-album-plus');
3144
- $desc = __('Show the items name.', 'wp-photo-album-plus');
3145
- $help = __('Shows the photos name on a lightbox display.', 'wp-photo-album-plus');
3146
- $slug = 'wppa_ovl_name';
3147
- $html = wppa_checkbox($slug);
3148
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
3149
 
3150
- $name = __('Overlay desc', 'wp-photo-album-plus');
3151
- $desc = __('Show description.', 'wp-photo-album-plus');
3152
- $help = __('Shows the photos description on a lightbox display.', 'wp-photo-album-plus');
3153
- $slug = 'wppa_ovl_desc';
3154
- $html = wppa_checkbox($slug);
3155
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3156
 
3157
- $name = __('Overlay rating', 'wp-photo-album-plus');
3158
- $desc = __('Shows and enables rating on lightbox display.', 'wp-photo-album-plus');
3159
- $help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
3160
- $slug = 'wppa_ovl_rating';
3161
- $html = wppa_checkbox($slug);
3162
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3163
 
3164
- $name = __('Overlay add owner', 'wp-photo-album-plus');
3165
- $desc = __('Add the owner to the photo name on lightbox displays.', 'wp-photo-album-plus');
3166
- $help = __('This setting is independant of the show name switches and is a global setting.', 'wp-photo-album-plus');
3167
- $slug = 'wppa_ovl_add_owner';
3168
- $html = wppa_checkbox($slug);
3169
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3170
 
3171
- $name = __('Overlay show start/stop', 'wp-photo-album-plus');
3172
- $desc = __('Show Start and Stop for running slideshow on lightbox.', 'wp-photo-album-plus');
3173
- $help = '';
3174
- $slug = 'wppa_ovl_show_startstop';
3175
- $html = wppa_checkbox($slug);
3176
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3177
 
3178
- $name = __('Overlay show counter', 'wp-photo-album-plus');
3179
- $desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus');
3180
- $help = '';
3181
- $slug = 'wppa_ovl_show_counter';
3182
- $html = wppa_checkbox($slug);
3183
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3184
 
3185
- $name = __('WPPA+ Lightbox global', 'wp-photo-album-plus');
3186
- $desc = __('Use the wppa+ lightbox also for non-wppa images.', 'wp-photo-album-plus');
3187
- $help = '';
3188
- $slug = 'wppa_lightbox_global';
3189
- $onch = 'wppaSlave( this, "wppa_lightbox_global_set" )';
3190
- $html = wppa_checkbox($slug, $onch);
3191
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3192
 
3193
- $name = __('WPPA+ Lightbox global is a set', 'wp-photo-album-plus');
3194
- $desc = __('Treat the other images as a set.', 'wp-photo-album-plus');
3195
- $help = __('If checked, you can scroll through the non-WPPA images in the lightbox view.', 'wp-photo-album-plus');
3196
- $slug = 'wppa_lightbox_global_set';
3197
- $html = wppa_checkbox($slug);
3198
- wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_switch( 'lightbox_global' ) );
3199
 
3200
- $name = __('Navigation icon size lightbox', 'wp-photo-album-plus');
3201
- $desc = __('The size of navigation icons on lightbox', 'wp-photo-album-plus');
3202
- $help = '';
3203
- $slug = 'wppa_nav_icon_size_lightbox';
3204
- $opts = array( '16px',
3205
- '20px',
3206
- '24px',
3207
- '32px',
3208
- '40px',
3209
- '48px',
3210
- );
3211
- $vals = array( '16',
3212
- '20',
3213
- '24',
3214
- '32',
3215
- '40',
3216
- '48',
3217
- );
3218
- $html = wppa_select($slug, $opts, $vals);
3219
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3220
 
3221
- $name = __('Show Share Buttons Lightbox', 'wp-photo-album-plus');
3222
- $desc = __('Display the share social media buttons on lightbox displays.', 'wp-photo-album-plus');
3223
- $help = '';
3224
- $slug = 'wppa_share_on_lightbox';
3225
- $html = wppa_checkbox($slug);
3226
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
3227
 
3228
- $name = __('Number of text lines', 'wp-photo-album-plus');
3229
- $desc = __('Number of lines on the lightbox description area, exclusive the n/m line.', 'wp-photo-album-plus');
3230
- $help = __('Enter a number in the range from 0 to 24 or auto', 'wp-photo-album-plus');
3231
- $slug = 'wppa_ovl_txt_lines';
3232
- $html = wppa_input($slug, '40px', '', __('lines', 'wp-photo-album-plus'));
3233
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
3234
 
3235
- $name = __('Magnifier cursor size', 'wp-photo-album-plus');
3236
- $desc = __('Select the size of the magnifier cursor.', 'wp-photo-album-plus');
3237
- $help = '';
3238
- $slug = 'wppa_magnifier';
3239
- $opts = array( __('small', 'wp-photo-album-plus'),
3240
- __('medium', 'wp-photo-album-plus'),
3241
- __('large', 'wp-photo-album-plus'),
3242
- __('pointer (hand)', 'wp-photo-album-plus'),
3243
- __('--- none ---', 'wp-photo-album-plus')
3244
- );
3245
- $vals = array( 'magnifier-small.png',
3246
- 'magnifier-medium.png',
3247
- 'magnifier-large.png',
3248
- 'pointer',
3249
- ''
3250
- );
3251
- $onchange = 'jQuery(\'#wppa-cursor\').attr(\'alt\', jQuery(\'#magnifier\').val() );
3252
- document.getElementById(\'wppa-cursor\').src=wppaImageDirectory+document.getElementById(\'magnifier\').value;';
3253
- $html = wppa_select( $slug, $opts, $vals, $onchange ) .
3254
- '&nbsp;&nbsp;<img id="wppa-cursor" src="'.wppa_get_imgdir().wppa_opt( substr( $slug, 5 ) ).'" />';
3255
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
3256
- echo '<script>'.$onchange.'</script>';
3257
-
3258
- $name = __('Border width', 'wp-photo-album-plus');
3259
- $desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
3260
- $help = '';
3261
- $slug = 'wppa_ovl_border_width';
3262
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3263
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
3264
 
3265
- $name = __('Border radius', 'wp-photo-album-plus');
3266
- $desc = __('Border radius for lightbox display.', 'wp-photo-album-plus');
3267
- $help = '';
3268
- $slug = 'wppa_ovl_border_radius';
3269
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3270
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
3271
 
3272
- $name = __('Show Zoom in', 'wp-photo-album-plus');
3273
- $desc = __('Display tooltip "Zoom in" along with the magnifier cursor.', 'wp-photo-album-plus');
3274
- $help = __('If you select ---none--- in Table I-G2 for magnifier size, the tooltop contains the photo name.', 'wp-photo-album-plus');
3275
- $slug = 'wppa_show_zoomin';
3276
- $html = wppa_checkbox($slug);
3277
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
3278
 
3279
- $name = __('Overlay opacity', 'wp-photo-album-plus');
3280
- $desc = __('The opacity of the lightbox overlay background.', 'wp-photo-album-plus');
3281
- $help = '';
3282
- $slug = 'wppa_ovl_opacity';
3283
- $html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
3284
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
3285
 
3286
- $name = __('Click on background', 'wp-photo-album-plus');
3287
- $desc = __('Select the action to be taken on click on background.', 'wp-photo-album-plus');
3288
- $help = '';
3289
- $slug = 'wppa_ovl_onclick';
3290
- $opts = array(__('Nothing', 'wp-photo-album-plus'), __('Exit (close)', 'wp-photo-album-plus'), __('Browse (left/right)', 'wp-photo-album-plus'));
3291
- $vals = array('none', 'close', 'browse');
3292
- $html = wppa_select($slug, $opts, $vals);
3293
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
3294
 
3295
- $name = __('Click on image', 'wp-photo-album-plus');
3296
- $desc = __('Clicking the image (left or right half) will browse the images', 'wp-photo-album-plus');
3297
- $help = '';
3298
- $slug = 'wppa_ovl_browse_on_click';
3299
- $html = wppa_checkbox($slug);
3300
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
 
 
3301
 
3302
- $name = __('Overlay animation speed', 'wp-photo-album-plus');
3303
- $desc = __('The fade-in time of the lightbox images', 'wp-photo-album-plus');
3304
- $help = '';
3305
- $slug = 'wppa_ovl_anim';
3306
- $opts = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '300 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.');
3307
- $vals = array('10', '200', '300', '400', '800', '1200', '2000', '4000');
3308
- $html = wppa_select($slug, $opts, $vals);
3309
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
3310
 
3311
- $name = __('Overlay slideshow speed', 'wp-photo-album-plus');
3312
- $desc = __('The time the lightbox images stay', 'wp-photo-album-plus');
3313
- $help = '';
3314
- $slug = 'wppa_ovl_slide';
3315
- $opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
3316
- $vals = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
3317
- $html = wppa_select($slug, $opts, $vals);
3318
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
3319
 
3320
- $name = __('Use hires files', 'wp-photo-album-plus');
3321
- $desc = __('Use the highest resolution available for lightbox.', 'wp-photo-album-plus');
3322
- $help = __('Ticking this box is recommended for lightbox fullscreen modes.', 'wp-photo-album-plus');
3323
- $slug = 'wppa_lb_hres';
3324
- $html = wppa_checkbox($slug);
3325
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
 
 
3326
 
3327
- $name = __('Video autostart', 'wp-photo-album-plus');
3328
- $desc = __('Videos on lightbox start automatically.', 'wp-photo-album-plus');
3329
- $help = '';
3330
- $slug = 'wppa_ovl_video_start';
3331
- $html = wppa_checkbox($slug);
3332
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
3333
 
3334
- $name = __('Audio autostart', 'wp-photo-album-plus');
3335
- $desc = __('Audio on lightbox start automatically.', 'wp-photo-album-plus');
3336
- $help = '';
3337
- $slug = 'wppa_ovl_audio_start';
3338
- $html = wppa_checkbox($slug);
3339
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
3340
 
3341
- $name = __('Lightbox start mode', 'wp-photo-album-plus');
3342
- $desc = __('The mode lightbox starts in.', 'wp-photo-album-plus');
3343
- $help = '';
3344
- $slug = 'wppa_ovl_mode_initial';
3345
- $opts = array( __('Normal', 'wp-photo-album-plus'),
3346
- __('Fullscreen', 'wp-photo-album-plus'),
3347
- );
3348
- $vals = array( 'normal',
3349
- 'padded',
3350
- );
3351
- $html = wppa_select($slug,$opts,$vals);
3352
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
3353
 
3354
- $name = __('Lightbox start mode mobile', 'wp-photo-album-plus');
3355
- $desc = __('The mode lightbox starts in on mobile devices.', 'wp-photo-album-plus');
3356
- $help = '';
3357
- $slug = 'wppa_ovl_mode_initial_mob';
3358
- $opts = array( __('Normal', 'wp-photo-album-plus'),
3359
- __('Fullscreen', 'wp-photo-album-plus'),
3360
- );
3361
- $vals = array( 'normal',
3362
- 'padded',
3363
- );
3364
- $html = wppa_select($slug,$opts,$vals);
3365
- wppa_setting_new($slug, '27', $name, $desc, $html, $help);
3366
 
3367
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
3368
  }
3369
  }
3370
  break;
3371
 
3372
  case 'comments': {
3373
  // Comments system related settings
3374
- $desc = $wppa_subtab_names[$tab]['1'];
3375
  {
3376
- wppa_setting_tab_description($desc);
3377
- wppa_setting_box_header_new($tab);
 
3378
 
3379
- $name = __('Commenting login', 'wp-photo-album-plus');
3380
- $desc = __('Users must be logged in to comment on photos.', 'wp-photo-album-plus');
3381
- $help = __('Check this box if you want users to be logged in to be able to enter comments on individual photos.', 'wp-photo-album-plus');
3382
- $slug = 'wppa_comment_login';
3383
- $html = wppa_checkbox($slug);
3384
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
3385
 
3386
- $name = __('Comments view login', 'wp-photo-album-plus');
3387
- $desc = __('Users must be logged in to see comments on photos.', 'wp-photo-album-plus');
3388
- $help = __('Check this box if you want users to be logged in to be able to see existing comments on individual photos.', 'wp-photo-album-plus');
3389
- $slug = 'wppa_comment_view_login';
3390
- $html = wppa_checkbox($slug);
3391
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3392
 
3393
- $name = __('Last comment first', 'wp-photo-album-plus');
3394
- $desc = __('Display the newest comment on top.', 'wp-photo-album-plus');
3395
- $help = __('If checked: Display the newest comment on top.', 'wp-photo-album-plus');
3396
- $help .= '<br />'.(__('If unchecked, the comments are listed in the ordere they were entered.', 'wp-photo-album-plus'));
3397
- $slug = 'wppa_comments_desc';
3398
- $html = wppa_checkbox($slug);
3399
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3400
 
3401
- $name = __('Comment moderation', 'wp-photo-album-plus');
3402
- $desc = __('Comments from what users need approval.', 'wp-photo-album-plus');
3403
- $help = __('Select the desired users of which the comments need approval.', 'wp-photo-album-plus');
3404
- $slug = 'wppa_moderate_comment';
3405
- $opts = array( __('All users', 'wp-photo-album-plus'),
3406
- __('Logged out users', 'wp-photo-album-plus'),
3407
- __('No users', 'wp-photo-album-plus'),
3408
- __('Use WP Discussion rules', 'wp-photo-album-plus'),
3409
  );
3410
- $vals = array( 'all',
3411
- 'logout',
3412
- '-none-',
3413
- 'wprules',
3414
  );
3415
- $html = wppa_select($slug, $opts, $vals);
3416
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3417
 
3418
- $name = __('Comment email required', 'wp-photo-album-plus');
3419
- $desc = __('Commenting users must enter their email addresses.', 'wp-photo-album-plus');
3420
- $help = '';
3421
- $slug = 'wppa_comment_email_required';
3422
- $opts = array( __('None', 'wp-photo-album-plus'),
3423
- __('Optional', 'wp-photo-album-plus'),
3424
- __('Required', 'wp-photo-album-plus'),
3425
- );
3426
- $vals = array( 'none',
3427
- 'optional',
3428
- 'required',
3429
- );
3430
- $html = wppa_select($slug, $opts, $vals);
3431
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3432
 
3433
- $name = __('Comment ntfy added', 'wp-photo-album-plus');
3434
- $desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus');
3435
- $help = '';
3436
- $slug = 'wppa_commentnotify_added';
3437
- $html = wppa_checkbox($slug);
3438
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3439
 
3440
- $name = __('ComTen alt display', 'wp-photo-album-plus');
3441
- $desc = __('Display comments at comten thumbnails.', 'wp-photo-album-plus');
3442
- $help = '';
3443
- $slug = 'wppa_comten_alt_display';
3444
- $html = wppa_checkbox($slug);
3445
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3446
 
3447
- $name = __('Comten Thumbnail width', 'wp-photo-album-plus');
3448
- $desc = __('The width of the thumbnail in the alt comment display.', 'wp-photo-album-plus');
3449
- $help = '';
3450
- $slug = 'wppa_comten_alt_thumbsize';
3451
- $html = wppa_input($slug, '50px', '', __('Pixels', 'wp-photo-album-plus'));
3452
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3453
 
3454
- $name = __('Show smiley picker', 'wp-photo-album-plus');
3455
- $desc = __('Display a clickable row of smileys.', 'wp-photo-album-plus');
3456
- $help = '';
3457
- $slug = 'wppa_comment_smiley_picker';
3458
- $html = wppa_checkbox($slug);
3459
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3460
 
3461
- $name = __('Allow clickable links', 'wp-photo-album-plus');
3462
- $desc = __('Make links in comments clickable', 'wp-photo-album-plus');
3463
- $help = '';
3464
- $slug = 'wppa_comment_clickable';
3465
- $html = wppa_checkbox($slug);
3466
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
3467
 
3468
- $name = __('Comment db agreement', 'wp-photo-album-plus');
3469
- $desc = __('User needs to tick a checkbox to agree db storage', 'wp-photo-album-plus');
3470
- $help = '';
3471
- $slug = 'wppa_comment_need_db_agree';
3472
- $html = wppa_checkbox($slug);
3473
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3474
 
3475
- $name = __('Comment needs vote', 'wp-photo-album-plus');
3476
- $desc = __('User needs to give a rating to get his comment published', 'wp-photo-album-plus');
3477
- $help = '';
3478
- $slug = 'wppa_comment_need_vote';
3479
- $html = wppa_checkbox($slug);
3480
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3481
 
3482
- $name = __('Comment Avatar default', 'wp-photo-album-plus');
3483
- $desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus');
3484
- $help = '';
3485
- $slug = 'wppa_comment_gravatar';
3486
- $onchange = 'wppaCheckGravatar()';
3487
- $opts = array( __('--- none ---', 'wp-photo-album-plus'),
3488
- __('mystery man', 'wp-photo-album-plus'),
3489
- __('identicon', 'wp-photo-album-plus'),
3490
- __('monsterid', 'wp-photo-album-plus'),
3491
- __('wavatar', 'wp-photo-album-plus'),
3492
- __('retro', 'wp-photo-album-plus'),
3493
- __('--- url ---', 'wp-photo-album-plus')
3494
- );
3495
- $vals = array( 'none',
3496
- 'mm',
3497
- 'identicon',
3498
- 'monsterid',
3499
- 'wavatar',
3500
- 'retro',
3501
- 'url'
3502
- );
3503
- $html = wppa_select($slug, $opts, $vals, $onchange);
3504
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
3505
 
3506
- $name = __('Comment Avatar url', 'wp-photo-album-plus');
3507
- $desc = __('Comment Avatar default url.', 'wp-photo-album-plus');
3508
- $help = '';
3509
- $slug = 'wppa_comment_gravatar_url';
3510
- $html = wppa_input($slug, '90%', '300px');
3511
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
3512
-
3513
- $name = __('Avatar size', 'wp-photo-album-plus');
3514
- $desc = __('Size of Avatar images.', 'wp-photo-album-plus');
3515
- $help = __('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus');
3516
- $slug = 'wppa_gravatar_size';
3517
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3518
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
3519
 
3520
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
3521
  }
3522
  }
3523
  break;
3524
 
3525
  case 'rating': {
3526
  // Rating system related settings
3527
- $desc = $wppa_subtab_names[$tab]['1'];
3528
  {
3529
- wppa_setting_tab_description($desc);
3530
- wppa_setting_box_header_new($tab);
3531
-
3532
- $name = __('Slideshow rating', 'wp-photo-album-plus');
3533
- $desc = __('Display Slideshow Rating.', 'wp-photo-album-plus');
3534
- $help = __('Display the rating of the photo under the slideshow image.', 'wp-photo-album-plus');
3535
- $slug = '';
3536
- $html = '<input type="checkbox" checked disabled >';
3537
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
3538
-
3539
- $name = __('Thumbnail rating', 'wp-photo-album-plus');
3540
- $desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus');
3541
- $help = __('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus');
3542
- $slug = 'wppa_thumb_text_rating';
3543
- $html = wppa_checkbox($slug);
3544
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3545
-
3546
- $name = __('Lightbox rating', 'wp-photo-album-plus');
3547
- $desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus');
3548
- $help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
3549
- $slug = 'wppa_ovl_rating';
3550
- $html = wppa_checkbox($slug);
3551
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
3552
 
3553
- $name = __('Rating display type', 'wp-photo-album-plus');
3554
- $desc = __('Specify the type of the rating display.', 'wp-photo-album-plus');
3555
- $help = __('If you select "Likes" you must also select "One button vote"', 'wp-photo-album-plus');
3556
- $slug = 'wppa_rating_display_type';
3557
- $opts = array(__('Graphic', 'wp-photo-album-plus'), __('Numeric', 'wp-photo-album-plus'), __('Likes', 'wp-photo-album-plus'));
3558
- $vals = array('graphic', 'numeric', 'likes');
3559
- $postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
3560
- $html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
3561
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3562
 
3563
- $name = __('Rating size', 'wp-photo-album-plus');
3564
- $desc = __('Select the number of voting stars.', 'wp-photo-album-plus');
3565
- $help = '';
3566
- $slug = 'wppa_rating_max';
3567
- $opts = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
3568
- $vals = array('5', '10', '1');
3569
- $html = wppa_select($slug, $opts, $vals) . wppa_see_also( 'maintenance', '1', '5' );
3570
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3571
 
3572
- $name = __('Display precision', 'wp-photo-album-plus');
3573
- $desc = __('Select the desired rating display precision.', 'wp-photo-album-plus');
3574
- $help = '';
3575
- $slug = 'wppa_rating_prec';
3576
- $opts = array('1 '.__('decimal places', 'wp-photo-album-plus'), '2 '.__('decimal places', 'wp-photo-album-plus'), '3 '.__('decimal places', 'wp-photo-album-plus'), '4 '.__('decimal places', 'wp-photo-album-plus'));
3577
- $vals = array('1', '2', '3', '4');
3578
- $html = wppa_select($slug, $opts, $vals);
3579
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3580
 
3581
- $name = __('Rating space', 'wp-photo-album-plus');
3582
- $desc = __('Space between avg and my rating stars', 'wp-photo-album-plus');
3583
- $help = '';
3584
- $slug = 'wppa_ratspacing';
3585
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3586
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
 
 
3587
 
3588
- $name = __('Show rating count', 'wp-photo-album-plus');
3589
- $desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus');
3590
- $help = __('If checked, the number of votes is displayed along with average rating displays.', 'wp-photo-album-plus');
3591
- $slug = 'wppa_show_rating_count';
3592
- $html = wppa_checkbox($slug);
3593
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
 
 
3594
 
3595
- $name = __('Rating login', 'wp-photo-album-plus');
3596
- $desc = __('Users must login to rate photos.', 'wp-photo-album-plus');
3597
- $help = __('If users want to vote for a photo (rating 1..5 stars) the must login first. The avarage rating will always be displayed as long as the rating system is enabled.', 'wp-photo-album-plus');
3598
- $slug = 'wppa_rating_login';
3599
- $html = wppa_checkbox($slug);
3600
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
 
 
3601
 
3602
- $name = __('Rating change', 'wp-photo-album-plus');
3603
- $desc = __('Users may change their ratings.', 'wp-photo-album-plus');
3604
- $help = __('Users may change their ratings.', 'wp-photo-album-plus');
3605
- $help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
3606
- $slug = 'wppa_rating_change';
3607
- $html = wppa_checkbox($slug);
3608
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
3609
 
3610
- $name = __('Rating multi', 'wp-photo-album-plus');
3611
- $desc = __('Users may give multiple votes.', 'wp-photo-album-plus');
3612
- $help = __('Users may give multiple votes. (This has no effect when users may change their votes.)', 'wp-photo-album-plus');
3613
- $slug = 'wppa_rating_multi';
3614
- $html = wppa_checkbox($slug);
3615
- wppa_setting_new($slug, '11', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
3616
 
3617
- $name = __('Rating daily', 'wp-photo-album-plus');
3618
- $desc = __('Users may rate only once per period', 'wp-photo-album-plus');
3619
- $help = '';
3620
- $slug = 'wppa_rating_dayly';
3621
- $opts = array(__('--- off ---', 'wp-photo-album-plus'), __('Week', 'wp-photo-album-plus'), __('Day', 'wp-photo-album-plus'), __('Hour', 'wp-photo-album-plus') );
3622
- $vals = array(0, 7*24*60*60, 24*60*60, 60*60);
3623
- $html = wppa_select($slug, $opts, $vals);
3624
- wppa_setting_new($slug, '12', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
3625
 
3626
- $name = __('Rate own photos', 'wp-photo-album-plus');
3627
- $desc = __('It is allowed to rate photos by the uploader himself.', 'wp-photo-album-plus');
3628
- $help = '';
3629
- $slug = 'wppa_allow_owner_votes';
3630
- $html = wppa_checkbox($slug);
3631
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
 
3632
 
3633
- $name = __('Rating requires comment', 'wp-photo-album-plus');
3634
- $desc = __('Users must clarify their vote in a comment.', 'wp-photo-album-plus');
3635
- $help = '';
3636
- $slug = 'wppa_vote_needs_comment';
3637
- $html = wppa_checkbox($slug);
3638
- wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
3639
 
3640
- $name = __('Next after vote', 'wp-photo-album-plus');
3641
- $desc = __('Goto next slide after voting', 'wp-photo-album-plus');
3642
- $help = __('If checked, the visitor goes straight to the slide following the slide he voted. This will speed up mass voting.', 'wp-photo-album-plus');
3643
- $slug = 'wppa_next_on_callback';
3644
- $html = wppa_checkbox($slug);
3645
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
 
 
3646
 
3647
- $name = __('Star off opacity', 'wp-photo-album-plus');
3648
- $desc = __('Rating star off state opacity value.', 'wp-photo-album-plus');
3649
- $help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus');
3650
- $help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
3651
- $slug = 'wppa_star_opacity';
3652
- $html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
3653
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
3654
 
3655
- $name = __('Notify inappropriate', 'wp-photo-album-plus');
3656
- $desc = __('Notify admin every x times.', 'wp-photo-album-plus');
3657
- $help = __('If this number is positive, there will be a thumb down icon in the rating bar.', 'wp-photo-album-plus');
3658
- $help .= '<br />'.(__('Clicking the thumbdown icon indicates a user dislikes a photo.', 'wp-photo-album-plus'));
3659
- $help .= '<br />'.(__('Admin will be notified by email after every x dislikes.', 'wp-photo-album-plus'));
3660
- $help .= '<br />'.(__('A value of 0 disables this feature.', 'wp-photo-album-plus'));
3661
- $help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
3662
- $slug = 'wppa_dislike_mail_every';
3663
- $html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
3664
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
3665
 
3666
- $name = __('Dislike value', 'wp-photo-album-plus');
3667
- $desc = __('This value counts dislike rating.', 'wp-photo-album-plus');
3668
- $help = (__('This value will be used for a dislike rating on calculation of avarage ratings.', 'wp-photo-album-plus'));
3669
- $help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
3670
- $slug = 'wppa_dislike_value';
3671
- $html = wppa_input($slug, '50px', '', __('points', 'wp-photo-album-plus'));
3672
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
3673
 
3674
- $name = __('Pending after', 'wp-photo-album-plus');
3675
- $desc = __('Set status to pending after xx dislike votes.', 'wp-photo-album-plus');
3676
- $help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
3677
- $help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus');
3678
- $slug = 'wppa_dislike_set_pending';
3679
- $html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
3680
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3681
 
3682
- $name = __('Delete after', 'wp-photo-album-plus');
3683
- $desc = __('Delete photo after xx dislike votes.', 'wp-photo-album-plus');
3684
- $help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
3685
- $help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus');
3686
- $slug = 'wppa_dislike_delete';
3687
- $html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
3688
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
3689
-
3690
- $name = __('Show dislike count', 'wp-photo-album-plus');
3691
- $desc = __('Show the number of dislikes in the rating bar.', 'wp-photo-album-plus');
3692
- $help = __('Displayes the total number of dislike votes for the current photo.', 'wp-photo-album-plus');
3693
- $help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus');
3694
- $slug = 'wppa_dislike_show_count';
3695
- $html = wppa_checkbox($slug);
3696
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
3697
-
3698
- $name = __('Show average rating', 'wp-photo-album-plus');
3699
- $desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus');
3700
- $help = __('If checked, the average rating as well as the current users rating is displayed in max 5 or 10 stars.', 'wp-photo-album-plus');
3701
- $help .= '<br />'.__('If unchecked, only the current users rating is displayed (if any).', 'wp-photo-album-plus');
3702
- $help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this box checked will display the vote count.', 'wp-photo-album-plus');
3703
- $slug = 'wppa_show_avg_rating';
3704
- $html = wppa_checkbox($slug);
3705
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3706
 
3707
- $name = __('Avg and Mine on 2 lines', 'wp-photo-album-plus');
3708
- $desc = __('Display avarage and my rating on different lines', 'wp-photo-album-plus');
3709
- $help = '';
3710
- $slug = 'wppa_show_avg_mine_2';
3711
- $html = wppa_checkbox($slug);
3712
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
3713
-
3714
- $name = __('Single vote button text', 'wp-photo-album-plus');
3715
- $desc = __('The text on the voting button.', 'wp-photo-album-plus');
3716
- $help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
3717
- $slug = 'wppa_vote_button_text';
3718
- $html = wppa_input($slug, '100');
3719
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
3720
-
3721
- $name = __('Single vote button text voted', 'wp-photo-album-plus');
3722
- $desc = __('The text on the voting button when voted.', 'wp-photo-album-plus');
3723
- $help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
3724
- $slug = 'wppa_voted_button_text';
3725
- $html = wppa_input($slug, '100');
3726
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
3727
-
3728
- $name = __('Single vote button thumbnail', 'wp-photo-album-plus');
3729
- $desc = __('Display single vote button below thumbnails.', 'wp-photo-album-plus');
3730
- $help = __('This works only in single vote mode: Table I-E1 set to "one button vote"', 'wp-photo-album-plus');
3731
- $slug = 'wppa_vote_thumb';
3732
- $html = wppa_checkbox($slug);
3733
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
3734
-
3735
- $name = __('Medal bronze when', 'wp-photo-album-plus');
3736
- $desc = __('Photo gets medal bronze when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
3737
- $help = __('When the photo has this number of topscores ( 5 or 10 stars ), it will get a medal. A value of 0 indicates that you do not want this feature.', 'wp-photo-album-plus');
3738
- $slug = 'wppa_medal_bronze_when';
3739
- $html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
3740
- wppa_setting_new($slug, '27', $name, $desc, $html, $help);
3741
-
3742
- $name = __('Medal silver when', 'wp-photo-album-plus');
3743
- $desc = __('Photo gets medal silver when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
3744
- $help = (__('When the photo has this number of topscores ( 5 or 10 stars ), it will get a medal. A value of 0 indicates that you do not want this feature.', 'wp-photo-album-plus'));
3745
- $slug = 'wppa_medal_silver_when';
3746
- $html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
3747
- wppa_setting_new($slug, '28', $name, $desc, $html, $help);
3748
-
3749
- $name = __('Medal gold when', 'wp-photo-album-plus');
3750
- $desc = __('Photo gets medal gold when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
3751
- $help = (__('When the photo has this number of topscores ( 5 or 10 stars ), it will get a medal. A value of 0 indicates that you do not want this feature.', 'wp-photo-album-plus'));
3752
- $slug = 'wppa_medal_gold_when';
3753
- $html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
3754
- wppa_setting_new($slug, '29', $name, $desc, $html, $help);
3755
-
3756
- $name = __('Medal tag color', 'wp-photo-album-plus');
3757
- $desc = __('The color of the tag on the medal.', 'wp-photo-album-plus');
3758
- $help = '';
3759
- $slug = 'wppa_medal_color';
3760
- $opts = array( __('Red', 'wp-photo-album-plus'), __('Green', 'wp-photo-album-plus'), __('Blue', 'wp-photo-album-plus') );
3761
- $vals = array( '1', '2', '3' );
3762
- $html = wppa_select($slug, $opts, $vals);
3763
- wppa_setting_new($slug, '30', $name, $desc, $html, $help);
3764
 
3765
- $name = __('Medal position', 'wp-photo-album-plus');
3766
- $desc = __('The position of the medal on the image.', 'wp-photo-album-plus');
3767
- $help = '';
3768
- $slug = 'wppa_medal_position';
3769
- $opts = array( __('Top left', 'wp-photo-album-plus'), __('Top right', 'wp-photo-album-plus'), __('Bottom left', 'wp-photo-album-plus'), __('Bottom right', 'wp-photo-album-plus') );
3770
- $vals = array( 'topleft', 'topright', 'botleft', 'botright' );
3771
- $html = wppa_select($slug, $opts, $vals);
3772
- wppa_setting_new($slug, '31', $name, $desc, $html, $help);
 
 
 
3773
 
3774
- $name = __('Top criterium', 'wp-photo-album-plus');
3775
- $desc = __('The top sort item used for topten results from shortcodes.', 'wp-photo-album-plus');
3776
- $help = '';
3777
- $slug = 'wppa_topten_sortby';
3778
- $opts = array( __('Mean rating', 'wp-photo-album-plus'),
3779
- __('Rating count', 'wp-photo-album-plus'),
3780
- __('Viewcount', 'wp-photo-album-plus'),
3781
- __('Downloads', 'wp-photo-album-plus'));
3782
- $vals = array( 'mean_rating', 'rating_count', 'views', 'dlcount' );
3783
- $html = wppa_select($slug, $opts, $vals);
3784
- wppa_setting_new($slug, '32', $name, $desc, $html, $help);
3785
 
3786
- $name = __('Contest top creterium', 'wp-photo-album-plus');
3787
- $desc = __('The top sort creterium used for the contest.', 'wp-photo-album-plus');
3788
- $help = '';
3789
- $slug = 'wppa_contest_sortby';
3790
- $opts = array( __('Mean rating', 'wp-photo-album-plus'),
3791
- __('Total rating', 'wp-photo-album-plus'));
3792
- $vals = array( 'average', 'total' );
3793
- $html = wppa_select($slug, $opts, $vals);
3794
- wppa_setting_new($slug, '33', $name, $desc, $html, $help);
 
3795
 
3796
- $name = __('Contest photo numbering', 'wp-photo-album-plus');
3797
- $desc = __('The number to be placed near the preview.', 'wp-photo-album-plus');
3798
- $help = '';
3799
- $slug = 'wppa_contest_number';
3800
- $opts = array( __('--- none ---', 'wp-photo-album-plus'),
3801
- __('Photo id', 'wp-photo-album-plus'),
3802
- __('Sequence number', 'wp-photo-album-plus'));
3803
- $vals = array( 'none', 'id', 'seqno' );
3804
- $html = wppa_select($slug, $opts, $vals);
3805
- wppa_setting_new($slug, '34', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
3806
 
3807
- $name = __('Contest max ranking', 'wp-photo-album-plus');
3808
- $desc = __('The number of photos in the contest results display.', 'wp-photo-album-plus');
3809
- $help = '';
3810
- $slug = 'wppa_contest_max';
3811
- $html = wppa_number($slug, '3', '100');
3812
- wppa_setting_new($slug, '35', $name, $desc, $html, $help);
3813
-
3814
- $name = __('Contest comment visibility', 'wp-photo-album-plus');
3815
- $desc = __('The policy to display comments on the contest display', 'wp-photo-album-plus');
3816
- $help = __('Admin always sees the comments', 'wp-photo-album-plus');
3817
- $slug = 'wppa_contest_comment_policy';
3818
- $opts = array( __('None', 'wp-photo-album-plus' ),
3819
- __('Commenter', 'wp-photo-album-plus'),
3820
- __('Commenter and photo owner', 'wp-photo-album-plus'),
3821
- __('Every visitor', 'wp-photo-album-plus'));
3822
- $vals = array( 'none', 'comowner', 'owners', 'all' );
3823
- $html = wppa_select($slug, $opts, $vals);
3824
- wppa_setting_new($slug, '36', $name, $desc, $html, $help);
3825
 
3826
- wppa_setting_box_footer_new();
3827
  }
3828
  }
3829
  break;
3830
 
3831
  case 'search': {
3832
  // Search albums and photos features related settings
3833
- $desc = $wppa_subtab_names[$tab]['1'];
3834
  {
3835
- wppa_setting_tab_description($desc);
3836
- wppa_setting_box_header_new($tab);
 
3837
 
3838
- $name = __('Search landing page', 'wp-photo-album-plus');
3839
- $desc = __('Display the search results on page.', 'wp-photo-album-plus');
3840
- $help = __('Select the page to be used to display search results. The page MUST contain [wppa].', 'wp-photo-album-plus');
3841
- $help .= '<br />'.__('You may give it the title "Search results" or something alike.', 'wp-photo-album-plus');
3842
- $help .= '<br />'.__('Or you may use the standard page on which you display the generic album.', 'wp-photo-album-plus');
3843
- $slug = 'wppa_search_linkpage';
3844
- wppa_verify_page($slug);
3845
- $pages = $wpdb->get_results( "SELECT ID, post_title, post_content FROM $wpdb->posts
3846
- WHERE post_type = 'page'
3847
- AND post_status = 'publish'
3848
- ORDER BY post_title", ARRAY_A );
3849
- $opts = false;
3850
- $vals = false;
3851
- $opts[] = __('--- Please select a page ---', 'wp-photo-album-plus');
3852
- $vals[] = '0';
3853
- if ($pages) {
3854
-
3855
- // Translate
3856
- foreach ( array_keys($pages) as $index ) {
3857
- $pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
3858
- }
3859
- $pages = wppa_array_sort($pages, 'post_title');
3860
- foreach ($pages as $page) {
3861
- if ( strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false ) {
3862
- $opts[] = __($page['post_title'], 'wp-photo-album-plus');
3863
- $vals[] = $page['ID'];
3864
  }
3865
- else {
3866
- $opts[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
3867
- $vals[] = $page['ID'];
 
 
 
 
 
 
 
3868
  }
3869
  }
3870
- }
3871
- $html1 = wppa_select($slug, $opts, $vals, '', '', true);
3872
 
3873
- $slug2 = 'wppa_search_oc';
3874
- $opts2 = array('1','2','3','4','5');
3875
- $vals2 = array('1','2','3','4','5');
3876
- $html2 = '<div style="float:right;" ><div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug2, $opts2, $vals2).'</div>';
3877
 
3878
- $html = $html1 . $html2;
3879
- wppa_setting_new(false, '1', $name, $desc, $html, $help);
3880
 
3881
- $name = __('Exclude separate', 'wp-photo-album-plus');
3882
- $desc = __('Do not search \'separate\' albums.', 'wp-photo-album-plus');
3883
- $help = __('When checked, albums (and photos in them) that have the parent set to --- separate --- will be excluded from being searched.', 'wp-photo-album-plus');
3884
- $help .= '<br />'.__('Except when you start searching in a \'saparate\' album, with the "search in current section" box ticked.', 'wp-photo-album-plus');
3885
- $slug = 'wppa_excl_sep';
3886
- $html = wppa_checkbox($slug);
3887
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3888
 
3889
- $name = __('Include tags', 'wp-photo-album-plus');
3890
- $desc = __('Do also search the photo tags.', 'wp-photo-album-plus');
3891
- $help = __('When checked, the tags of the photo will also be searched.', 'wp-photo-album-plus');
3892
- $slug = 'wppa_search_tags';
3893
- $html = wppa_checkbox($slug);
3894
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
3895
 
3896
- $name = __('Include categories', 'wp-photo-album-plus');
3897
- $desc = __('Do also search the album categories.', 'wp-photo-album-plus');
3898
- $help = __('When checked, the categories of the album will also be searched.', 'wp-photo-album-plus');
3899
- $slug = 'wppa_search_cats';
3900
- $html = wppa_checkbox($slug);
3901
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3902
 
3903
- $name = __('Include comments', 'wp-photo-album-plus');
3904
- $desc = __('Do also search the comments on photos.', 'wp-photo-album-plus');
3905
- $help = __('When checked, the comments of the photos will also be searched.', 'wp-photo-album-plus');
3906
- $slug = 'wppa_search_comments' ;
3907
- $html = wppa_checkbox($slug);
3908
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3909
 
3910
- $name = __('Photos only', 'wp-photo-album-plus');
3911
- $desc = __('Search for photos only.', 'wp-photo-album-plus');
3912
- $help = __('When checked, only photos will be searched for.', 'wp-photo-album-plus');
3913
- $slug = 'wppa_photos_only';
3914
- $html = wppa_checkbox($slug);
3915
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3916
 
3917
- $name = __('Max albums found', 'wp-photo-album-plus');
3918
- $desc = __('The maximum number of albums to be displayed.', 'wp-photo-album-plus');
3919
- $help = '';
3920
- $slug = 'wppa_max_search_albums';
3921
- $html = wppa_input($slug, '50px');
3922
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3923
 
3924
- $name = __('Max photos found', 'wp-photo-album-plus');
3925
- $desc = __('The maximum number of photos to be displayed.', 'wp-photo-album-plus');
3926
- $help = '';
3927
- $slug = 'wppa_max_search_photos';
3928
- $html = wppa_input($slug, '50px');
3929
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3930
 
3931
- $name = __('Tags OR only', 'wp-photo-album-plus');
3932
- $desc = __('No and / or buttons', 'wp-photo-album-plus');
3933
- $help = __('Hide the and/or radiobuttons and do the or method in the multitag widget and shortcode.', 'wp-photo-album-plus');
3934
- $slug = 'wppa_tags_or_only';
3935
- $html = wppa_checkbox($slug);
3936
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3937
 
3938
- $name = __('Tags add Inverse', 'wp-photo-album-plus');
3939
- $desc = __('Add a checkbox to invert the selection.', 'wp-photo-album-plus');
3940
- $help = __('Adds an Invert (NOT) checkbox on the multitag widget and shortcode.', 'wp-photo-album-plus');
3941
- $slug = 'wppa_tags_not_on';
3942
- $html = wppa_checkbox($slug);
3943
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
3944
 
3945
- $name = __('Floating searchtoken', 'wp-photo-album-plus');
3946
- $desc = __('A match need not start at the first char.', 'wp-photo-album-plus');
3947
- $help = __('A match is found while searching also when the entered token is somewhere in the middle of a word.', 'wp-photo-album-plus');
3948
- $slug = 'wppa_wild_front';
3949
- $html = wppa_checkbox($slug);
3950
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3951
 
3952
- $name = __('Search results display', 'wp-photo-album-plus');
3953
- $desc = __('Select the way the search results should be displayed.', 'wp-photo-album-plus');
3954
- $help = __('If you select anything different from "Albums and thumbnails", "Photos only" is assumed (Table IX-E6).', 'wp-photo-album-plus');
3955
- $slug = 'wppa_search_display_type';
3956
- $opts = array( __('Albums and thumbnails', 'wp-photo-album-plus'),
3957
- __('Slideshow', 'wp-photo-album-plus'),
3958
- __('Slideonly slideshow', 'wp-photo-album-plus'),
3959
- __('Albums only', 'wp-photo-album-plus')
3960
- );
3961
- $vals = array( 'content', 'slide', 'slideonly', 'albums' );
3962
- $html = wppa_select( $slug, $opts, $vals);
3963
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
3964
 
3965
- $name = __('Name max length', 'wp-photo-album-plus');
3966
- $desc = __('Max length of displayed photonames in supersearch selectionlist', 'wp-photo-album-plus');
3967
- $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus');
3968
- $slug = 'wppa_ss_name_max';
3969
- $html = $html = wppa_input($slug, '50px');
3970
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
3971
 
3972
- $name = __('Text max length', 'wp-photo-album-plus');
3973
- $desc = __('Max length of displayed photo text in supersearch selectionlist', 'wp-photo-album-plus');
3974
- $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus');
3975
- $slug = 'wppa_ss_text_max';
3976
- $html = $html = wppa_input($slug, '50px');
3977
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
3978
-
3979
- $name = __('Search toptext', 'wp-photo-album-plus');
3980
- $desc = __('The text at the top of the search box.', 'wp-photo-album-plus');
3981
- $help = __('This is the equivalence of the text you can enter in the widget activation screen to show above the input box, but now for the search shortcode display.', 'wp-photo-album-plus');
3982
- $help .= '<br />'.__('May contain unfiltered HTML.', 'wp-photo-album-plus');
3983
- $slug = 'wppa_search_toptext';
3984
- $html = wppa_textarea($slug, $name);
3985
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
3986
 
3987
- $name = __('Section search text', 'wp-photo-album-plus');
3988
- $desc = __('The labeltext at the checkbox for the \'Search in current section\' checkbox.', 'wp-photo-album-plus');
3989
- $help = ' ';
3990
- $slug = 'wppa_search_in_section';
3991
- $html = wppa_input($slug, '300px;');
3992
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
 
3993
 
3994
- $name = __('Results search text', 'wp-photo-album-plus');
3995
- $desc = __('The labeltext at the checkbox for the \'Search in current results\' checkbox.', 'wp-photo-album-plus');
3996
- $help = ' ';
3997
- $slug = 'wppa_search_in_results';
3998
- $html = wppa_input($slug, '300px;');
3999
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
4000
 
4001
- $name = __('Minimum search token length', 'wp-photo-album-plus');
4002
- $desc = __('The minmum number of chars in a search request.', 'wp-photo-album-plus');
4003
- $help = '';
4004
- $slug = 'wppa_search_min_length';
4005
- $html = wppa_number($slug, '1', '6');
4006
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
4007
 
4008
- $name = __('Exclude from search', 'wp-photo-album-plus');
4009
- $desc = __('Exclude these words from search index.', 'wp-photo-album-plus');
4010
- $help = __('Enter words separated by commas (,)', 'wp-photo-album-plus');
4011
- $slug = 'wppa_search_user_void';
4012
- $html = wppa_input($slug, '90%;');
4013
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
4014
 
4015
- $name = __('Exclude numbers', 'wp-photo-album-plus');
4016
- $desc = __('Exclude numbers from search index.', 'wp-photo-album-plus');
4017
- $help = __('If ticked, photos and albums are not searchable by numbers.', 'wp-photo-album-plus');
4018
- $slug = 'wppa_search_numbers_void';
4019
- $html = wppa_checkbox($slug);
4020
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
 
 
 
 
 
 
 
4021
 
4022
- $name = __('Ignore slash', 'wp-photo-album-plus');
4023
- $desc = __('Ignore slash chracter (/).', 'wp-photo-album-plus');
4024
- $help = '';
4025
- $slug = 'wppa_index_ignore_slash';
4026
- $html = wppa_checkbox($slug);
4027
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
4028
 
4029
- $name = __('Search category box', 'wp-photo-album-plus');
4030
- $desc = __('Add a category selection box', 'wp-photo-album-plus');
4031
- $help = '';
4032
- $slug = 'wppa_search_catbox';
4033
- $html = wppa_checkbox($slug);
4034
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
4035
 
4036
- $name = __('Search selection boxes', 'wp-photo-album-plus');
4037
- $desc = __('Enter number of search selection boxes.', 'wp-photo-album-plus');
4038
- $help = '';
4039
- $slug = 'wppa_search_selboxes';
4040
- $opts = array( '0', '1', '2', '3' );
4041
- $vals = $opts;
4042
- $html = wppa_select( $slug, $opts, $vals );
4043
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
4044
 
4045
- $name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '1');
4046
- $desc = __('Enter caption text', 'wp-photo-album-plus');
4047
- $help = '';
4048
- $slug = 'wppa_search_caption_0';
4049
- $html = wppa_input($slug, '150px;');
4050
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
4051
 
4052
- $name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '1');
4053
- $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
4054
- $help = '';
4055
- $slug = 'wppa_search_selbox_0';
4056
- $html = wppa_textarea($slug);
4057
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
4058
 
4059
- $name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '2');
4060
- $desc = __('Enter caption text', 'wp-photo-album-plus');
4061
- $help = '';
4062
- $slug = 'wppa_search_caption_1';
4063
- $html = wppa_input($slug, '150px;');
4064
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
4065
 
4066
- $name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '2');
4067
- $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
4068
- $help = '';
4069
- $slug = 'wppa_search_selbox_1';
4070
- $html = wppa_textarea($slug);
4071
- wppa_setting_new($slug, '27', $name, $desc, $html, $help);
4072
 
4073
- $name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '3');
4074
- $desc = __('Enter caption text', 'wp-photo-album-plus');
4075
- $help = '';
4076
- $slug = 'wppa_search_caption_2';
4077
- $html = wppa_input($slug, '150px;');
4078
- wppa_setting_new($slug, '28', $name, $desc, $html, $help);
4079
 
4080
- $name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '3');
4081
- $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
4082
- $help = '';
4083
- $slug = 'wppa_search_selbox_2';
4084
- $html = wppa_textarea($slug);
4085
- wppa_setting_new($slug, '29', $name, $desc, $html, $help);
4086
 
4087
- $name = __('Extended duplicate removal', 'wp-photo-album-plus');
4088
- $desc = __('Remove found items from search when name, description and image are identical', 'wp-photo-album-plus');
4089
- $help = '';
4090
- $slug = 'wppa_extended_duplicate_remove';
4091
- $html = wppa_checkbox($slug);
4092
- wppa_setting_new($slug, '30', $name, $desc, $html, $help);
4093
 
4094
- $name = __('Search field placeholder', 'wp-photo-album-plus');
4095
- $desc = __('The text of the placeholder', 'wp-photo-album-plus');
4096
- $help = '';
4097
- $slug = 'wppa_search_placeholder';
4098
- $html = wppa_input($slug, '150px;');
4099
- wppa_setting_new($slug, '31', $name, $desc, $html, $help);
4100
-
4101
- $name = __('Search form method', 'wp-photo-album-plus');
4102
- $desc = __('Either "get" or "post"', 'wp-photo-album-plus');
4103
- $help = __('May be set to "get" to avoid conflicts with other plugins or certain php versions', 'wp-photo-album-plus');
4104
- $slug = 'wppa_search_form_method';
4105
- $html = wppa_select($slug, array('post', 'get'), array('post', 'get'));
4106
- wppa_setting_new($slug, '32', $name, $desc, $html, $help);
4107
-
4108
- $name = __('Use wppa search form', 'wp-photo-album-plus');
4109
- $desc = __('Uses wppa specific form', 'wp-photo-album-plus');
4110
- $help = __('You may need to enable this when other (search) plugins break the wppa search mechanism');
4111
- $slug = 'wppa_use_wppa_search_form';
4112
- $onch = '';
4113
- $html = wppa_checkbox($slug, $onch);
4114
- wppa_setting_new($slug, '33', $name, $desc, $html, $help);
4115
 
4116
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
4117
  }
4118
  }
4119
  break;
4120
 
4121
  case 'widget': {
4122
  // General widget size settings
4123
- $desc = $wppa_subtab_names[$tab]['1'];
4124
  {
4125
- wppa_setting_tab_description($desc);
4126
- wppa_setting_box_header_new($tab);
 
4127
 
4128
- $name = __('Widget width', 'wp-photo-album-plus');
4129
- $desc = __('The useable width within widgets.', 'wp-photo-album-plus');
4130
- $help = __('Widget width for photo of the day, general purpose (default), slideshow (default) and upload widgets.', 'wp-photo-album-plus');
4131
- $slug = 'wppa_widget_width';
4132
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4133
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4134
 
4135
- $name = __('TopTen count', 'wp-photo-album-plus');
4136
- $desc = __('Number of photos in TopTen widget.', 'wp-photo-album-plus');
4137
- $help = __('Enter the maximum number of rated photos in the TopTen widget.', 'wp-photo-album-plus');
4138
- $slug1 = 'wppa_topten_count';
4139
- $html1 = wppa_input($slug1, '40px', '', __('photos', 'wp-photo-album-plus'));
4140
- $slug2 = 'wppa_topten_non_zero';
4141
- $html2 = wppa_checkbox($slug2).__('Non zero only', 'wp-photo-album-plus');
4142
- wppa_setting_new($slug1, '2', $name, $desc, $html1.$html2, $help);
4143
-
4144
- $name = __('TopTen size', 'wp-photo-album-plus');
4145
- $desc = __('Size of thumbnails in TopTen widget.', 'wp-photo-album-plus');
4146
- $help = __('Enter the size for the mini photos in the TopTen widget.', 'wp-photo-album-plus');
4147
- $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4148
- $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4149
- $slug = 'wppa_topten_size';
4150
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4151
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4152
 
4153
- $name = __('Comment count', 'wp-photo-album-plus');
4154
- $desc = __('Number of entries in Comment widget.', 'wp-photo-album-plus');
4155
- $help = __('Enter the maximum number of entries in the Comment widget.', 'wp-photo-album-plus');
4156
- $slug = 'wppa_comten_count';
4157
- $html = wppa_input($slug, '40px', '', __('entries', 'wp-photo-album-plus'));
4158
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
4159
 
4160
- $name = __('Comment size', 'wp-photo-album-plus');
4161
- $desc = __('Size of thumbnails in Comment widget.', 'wp-photo-album-plus');
4162
- $help = __('Enter the size for the mini photos in the Comment widget.', 'wp-photo-album-plus');
4163
- $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4164
- $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4165
- $slug = 'wppa_comten_size';
4166
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4167
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
4168
 
4169
- $name = __('Thumbnail count', 'wp-photo-album-plus');
4170
- $desc = __('Number of photos in Thumbnail widget.', 'wp-photo-album-plus');
4171
- $help = (__('Enter the maximum number of rated photos in the Thumbnail widget.', 'wp-photo-album-plus'));
4172
- $slug = 'wppa_thumbnail_widget_count';
4173
- $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
4174
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4175
 
4176
- $name = __('Thumbnail widget size', 'wp-photo-album-plus');
4177
- $desc = __('Size of thumbnails in Thumbnail widget.', 'wp-photo-album-plus');
4178
- $help = __('Enter the size for the mini photos in the Thumbnail widget.', 'wp-photo-album-plus');
4179
- $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4180
- $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4181
- $slug = 'wppa_thumbnail_widget_size';
4182
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4183
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
4184
 
4185
- $name = __('LasTen count', 'wp-photo-album-plus');
4186
- $desc = __('Number of photos in Last Ten widget.', 'wp-photo-album-plus');
4187
- $help = __('Enter the maximum number of photos in the LasTen widget.', 'wp-photo-album-plus');
4188
- $slug = 'wppa_lasten_count';
4189
- $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
4190
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
4191
 
4192
- $name = __('LasTen size', 'wp-photo-album-plus');
4193
- $desc = __('Size of thumbnails in Last Ten widget.', 'wp-photo-album-plus');
4194
- $help = __('Enter the size for the mini photos in the LasTen widget.', 'wp-photo-album-plus');
4195
- $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4196
- $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4197
- $slug = 'wppa_lasten_size';
4198
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4199
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
4200
 
4201
- $name = __('Album widget count', 'wp-photo-album-plus');
4202
- $desc = __('Number of albums in Album widget.', 'wp-photo-album-plus');
4203
- $help = __('Enter the maximum number of thumbnail photos of albums in the Album widget.', 'wp-photo-album-plus');
4204
- $slug = 'wppa_album_widget_count';
4205
- $html = wppa_input($slug, '40px', '', __('albums', 'wp-photo-album-plus'));
4206
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
4207
 
4208
- $name = __('Album widget size', 'wp-photo-album-plus');
4209
- $desc = __('Size of thumbnails in Album widget.', 'wp-photo-album-plus');
4210
- $help = __('Enter the size for the mini photos in the Album widget.', 'wp-photo-album-plus');
4211
- $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4212
- $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4213
- $slug = 'wppa_album_widget_size';
4214
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4215
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
4216
 
4217
- $name = __('FeaTen count', 'wp-photo-album-plus');
4218
- $desc = __('Number of photos in Featured Ten widget.', 'wp-photo-album-plus');
4219
- $help = __('Enter the maximum number of photos in the FeaTen widget.', 'wp-photo-album-plus');
4220
- $slug = 'wppa_featen_count';
4221
- $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
4222
- $clas = '';
4223
- $tags = 'count,widget';
4224
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
4225
 
4226
- $name = __('FeaTen size', 'wp-photo-album-plus');
4227
- $desc = __('Size of thumbnails in Featured Ten widget.', 'wp-photo-album-plus');
4228
- $help = __('Enter the size for the mini photos in the FeaTen widget.', 'wp-photo-album-plus');
4229
- $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4230
- $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4231
- $slug = 'wppa_featen_size';
4232
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4233
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
4234
 
4235
- $name = __('Tagcloud min size', 'wp-photo-album-plus');
4236
- $desc = __('Minimal fontsize in tagclouds', 'wp-photo-album-plus');
4237
- $help = '';
4238
- $slug = 'wppa_tagcloud_min';
4239
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4240
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
4241
 
4242
- $name = __('Tagcloud max size', 'wp-photo-album-plus');
4243
- $desc = __('Maximal fontsize in tagclouds', 'wp-photo-album-plus');
4244
- $help = '';
4245
- $slug = 'wppa_tagcloud_max';
4246
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4247
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
4248
 
4249
- $name = __('Tagcloud character sizing', 'wp-photo-album-plus');
4250
- $desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
4251
- $help = '';
4252
- $slug = 'wppa_tagcloud_formula';
4253
- $opts = array('linear', 'quadratic', 'cubic');
4254
- $vals = array('linear', 'quadratic', 'cubic');
4255
- $html = wppa_select($slug, $opts, $vals);
4256
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
4257
 
4258
- wppa_setting_box_footer_new();
4259
  }
4260
  // Visibility settings
4261
- $desc = $wppa_subtab_names[$tab]['2'];
4262
  {
4263
- wppa_setting_tab_description($desc);
4264
- wppa_setting_box_header_new($tab);
 
4265
 
4266
- $name = __('Big Browse Buttons in widget', 'wp-photo-album-plus');
4267
- $desc = __('Enable invisible browsing buttons in widget slideshows.', 'wp-photo-album-plus');
4268
- $help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus');
4269
- $help .= '<br />'.__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
4270
- $slug = 'wppa_show_bbb_widget';
4271
- $html = wppa_checkbox($slug);
4272
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
 
4273
 
4274
- $name = __('Ugly Browse Buttons in widget', 'wp-photo-album-plus');
4275
- $desc = __('Enable ugly browsing buttons in widget slideshows.', 'wp-photo-album-plus');
4276
- $help = __('If checked, the fullsize image is covered by browse buttons.', 'wp-photo-album-plus');
4277
- $help .= '<br />'.__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
4278
- $slug = 'wppa_show_ubb_widget';
4279
- $html = wppa_checkbox($slug);
4280
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
4281
 
4282
- $name = __('Album widget tooltip', 'wp-photo-album-plus');
4283
- $desc = __('Show the album description on hoovering thumbnail in album widget', 'wp-photo-album-plus');
4284
- $help = '';
4285
- $slug = 'wppa_show_albwidget_tooltip';
4286
- $html = wppa_checkbox($slug);
4287
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4288
 
4289
- wppa_setting_box_footer_new();
4290
  }
4291
  // QR Code widget settings
4292
- $desc = $wppa_subtab_names[$tab]['3'];
4293
  {
4294
- wppa_setting_tab_description($desc);
4295
- wppa_setting_box_header_new($tab);
 
4296
 
4297
- $name = __('QR Code widget size', 'wp-photo-album-plus');
4298
- $desc = __('The size of the QR code display.', 'wp-photo-album-plus');
4299
- $help = '';
4300
- $slug = 'wppa_qr_size';
4301
- $html = wppa_input($slug, '50px', '', __('pixels', 'wp-photo-album-plus'));
4302
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4303
 
4304
- $name = __('QR color', 'wp-photo-album-plus');
4305
- $desc = __('The display color of the qr code (dark)', 'wp-photo-album-plus');
4306
- $help = __('This color MUST be given in hexadecimal format!', 'wp-photo-album-plus');
4307
- $slug = 'wppa_qr_color';
4308
- $html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
4309
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4310
 
4311
- $name = __('QR background color', 'wp-photo-album-plus');
4312
- $desc = __('The background color of the qr code (light)', 'wp-photo-album-plus');
4313
- $help = '';
4314
- $slug = 'wppa_qr_bgcolor';
4315
- $html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
4316
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4317
 
4318
- $name = __('QR cache', 'wp-photo-album-plus');
4319
- $desc = __('Enable caching QR codes', 'wp-photo-album-plus') . ' ' . sprintf( __('So far %d cache hits, %d miss', 'wp-photo-album-plus'), wppa_get_option('wppa_qr_cache_hits', '0'), wppa_get_option('wppa_qr_cache_miss', '0'));
4320
- $help = __('Enable this to avoid DoS on heavy loads on the qrserver', 'wp-photo-album-plus'); $slug = 'wppa_qr_cache';
4321
- $html = wppa_checkbox($slug);
4322
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
4323
 
4324
- wppa_setting_box_footer_new();
4325
  }
4326
  }
4327
  break;
4328
 
4329
  case 'links': {
4330
- // Links from standard images
4331
- $desc = $wppa_subtab_names[$tab]['1'];
4332
  {
4333
- wppa_setting_tab_description($desc);
4334
- $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
4335
- __('Name', 'wp-photo-album-plus') => 'auto;',
4336
- __('Description', 'wp-photo-album-plus') => 'auto;',
4337
- __('Link type', 'wp-photo-album-plus') => 'auto;',
4338
- __('Landing page', 'wp-photo-album-plus') => 'auto;',
4339
- __('New tab', 'wp-photo-album-plus') => '80px;',
4340
- __('PSO', 'wp-photo-album-plus') => '80px;',
4341
- __('Help', 'wp-photo-album-plus') => '24px;',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4342
  );
4343
- wppa_setting_box_header_new($tab, $coldef);
4344
-
4345
- $name = __('Cover Image', 'wp-photo-album-plus');
4346
- $desc = __('The link from the cover image of an album.', 'wp-photo-album-plus');
4347
- $help = __('Select the type of link the coverphoto points to.', 'wp-photo-album-plus');
4348
- $help .= '<br />'.__('The link from the album title can be configured on the Edit Album page.', 'wp-photo-album-plus');
4349
- $help .= '<br />'.__('This link will be used for the photo also if you select: same as title.', 'wp-photo-album-plus');
4350
- $help .= '<br />'.__('If you specify New Tab on this line, all links from the cover will open a new tab,', 'wp-photo-album-plus');
4351
- $slug1 = 'wppa_coverimg_linktype';
4352
- $slug2 = 'wppa_coverimg_linkpage';
4353
- wppa_verify_page($slug2);
4354
- $slug3 = 'wppa_coverimg_blank';
4355
- $slug4 = 'wppa_coverimg_overrule';
4356
- $slug = array($slug1, $slug2, $slug3, $slug4);
4357
- $opts = array(
4358
- __('no link at all.', 'wp-photo-album-plus'),
4359
- __('the plain photo (file).', 'wp-photo-album-plus'),
4360
- __('same as title.', 'wp-photo-album-plus'),
4361
- __('lightbox.', 'wp-photo-album-plus'),
4362
- __('a slideshow starting at the photo', 'wp-photo-album-plus')
4363
- );
4364
- $vals = array(
4365
- 'none',
4366
- 'file',
4367
- 'same',
4368
- 'lightbox',
4369
- 'slideshowstartatimage'
4370
- );
4371
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4372
- $npag = wppa_need_page($slug1);
4373
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4374
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4375
- $html4 = wppa_checkbox($slug4);
4376
- $html = array($html1, $html2, $html3, $html4);
4377
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4378
 
4379
- $name = __('Thumbnail', 'wp-photo-album-plus');
4380
- $desc = __('Thumbnail link.', 'wp-photo-album-plus');
4381
- $help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
4382
- $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4383
- $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4384
- $slug1 = 'wppa_thumb_linktype';
4385
- $slug2 = 'wppa_thumb_linkpage';
4386
- wppa_verify_page($slug2);
4387
- $slug3 = 'wppa_thumb_blank';
4388
- $slug4 = 'wppa_thumb_overrule';
4389
- $slug = array($slug1, $slug2, $slug3, $slug4);
4390
- $opts = array(
4391
- __('no link at all.', 'wp-photo-album-plus'),
4392
- __('the plain photo (file).', 'wp-photo-album-plus'),
4393
- __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4394
- __('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
4395
- __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4396
- __('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
4397
- __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4398
- __('a plain page without a querystring.', 'wp-photo-album-plus'),
4399
- __('lightbox.', 'wp-photo-album-plus')
4400
- );
4401
- $vals = array(
4402
- 'none',
4403
- 'file',
4404
- 'photo',
4405
- 'slidealbum',
4406
- 'single',
4407
- 'slphoto',
4408
- 'fullpopup',
4409
- 'plainpage',
4410
- 'lightbox'
4411
- );
4412
- if ( wppa_switch( 'auto_page') ) {
4413
- $opts[] = __('Auto Page', 'wp-photo-album-plus');
4414
- $vals[] = 'autopage';
4415
  }
4416
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4417
- $npag = wppa_need_page($slug1);
4418
- $html2 = $npag ? wppa_select($slug2, $opts_page_post, $vals_page_post) : '';
4419
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4420
- $html4 = wppa_checkbox($slug4);
4421
- $html = array($html1, $html2, $html3, $html4);
4422
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
 
 
 
 
 
 
4423
 
4424
- $name = __('Sphoto', 'wp-photo-album-plus');
4425
- $desc = __('Single photo link.', 'wp-photo-album-plus');
4426
- $help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
4427
- $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4428
- $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4429
- $slug1 = 'wppa_sphoto_linktype';
4430
- $slug2 = 'wppa_sphoto_linkpage';
4431
- wppa_verify_page($slug2);
4432
- $slug3 = 'wppa_sphoto_blank';
4433
- $slug4 = 'wppa_sphoto_overrule';
4434
- $slug = array($slug1, $slug2, $slug3, $slug4);
4435
- $opts = array(
4436
- __('no link at all.', 'wp-photo-album-plus'),
4437
- __('the plain photo (file).', 'wp-photo-album-plus'),
4438
- __('the content of the album.', 'wp-photo-album-plus'),
4439
- __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4440
- __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4441
- __('lightbox.', 'wp-photo-album-plus')
4442
- );
4443
- $vals = array(
4444
- 'none',
4445
- 'file',
4446
- 'album',
4447
- 'photo',
4448
- 'single',
4449
- 'lightbox'
4450
- );
4451
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4452
- $npag = wppa_need_page($slug1);
4453
- $html2 = $npag ? wppa_select($slug2, $opts_page, $vals_page) : '';
4454
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4455
- $html4 = wppa_checkbox($slug4);
4456
- $html = array($html1, $html2, $html3, $html4);
4457
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4458
 
4459
- $name = __('Mphoto', 'wp-photo-album-plus');
4460
- $desc = __('Media-like (like WP photo with caption) photo link.', 'wp-photo-album-plus');
4461
- $help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
4462
- $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4463
- $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4464
- $slug1 = 'wppa_mphoto_linktype';
4465
- $slug2 = 'wppa_mphoto_linkpage';
4466
- wppa_verify_page($slug2);
4467
- $slug3 = 'wppa_mphoto_blank';
4468
- $slug4 = 'wppa_mphoto_overrule';
4469
- $slug = array($slug1, $slug2, $slug3, $slug4);
4470
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4471
- $npag = wppa_need_page($slug1);
4472
- $html2 = $npag ? wppa_select($slug2, $opts_page, $vals_page) : '';
4473
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4474
- $html4 = wppa_checkbox($slug4);
4475
- $html = array($html1, $html2, $html3, $html4);
4476
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4477
 
4478
- $name = __('Xphoto', 'wp-photo-album-plus');
4479
- $desc = __('Media-like (like WP photo with - extended - caption) photo link.', 'wp-photo-album-plus');
4480
- $help = __('Select the type of link you want, or no link at all, to act on a photo in the style of a wp photo with - an extended - caption.', 'wp-photo-album-plus');
4481
- $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4482
- $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4483
- $slug1 = 'wppa_xphoto_linktype';
4484
- $slug2 = 'wppa_xphoto_linkpage';
4485
- wppa_verify_page($slug2);
4486
- $slug3 = 'wppa_xphoto_blank';
4487
- $slug4 = 'wppa_xphoto_overrule';
4488
- $slug = array($slug1, $slug2, $slug3, $slug4);
4489
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4490
- $npag = wppa_need_page($slug1);
4491
- $html2 = $npag ? wppa_select($slug2, $opts_page, $vals_page) : '';
4492
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4493
- $html4 = wppa_checkbox($slug4);
4494
- $html = array($html1, $html2, $html3, $html4);
4495
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4496
 
4497
- $name = __('Slideshow', 'wp-photo-album-plus');
4498
- $desc = __('Slideshow fullsize link', 'wp-photo-album-plus');
4499
- $help = __('You can overrule lightbox but not big browse buttons with the photo specifc link.', 'wp-photo-album-plus');
4500
- $help .= '\n\n* '.__('fullsize slideshow can only be set by the WPPA_SET shortcode.', 'wp-photo-album-plus');
4501
- $slug1 = 'wppa_slideshow_linktype';
4502
- $slug2 = 'wppa_slideshow_linkpage';
4503
- wppa_verify_page($slug2);
4504
- $slug3 = 'wppa_slideshow_blank';
4505
- $slug4 = 'wppa_slideshow_overrule';
4506
- $slug = array($slug1, $slug2, $slug3, $slug4);
4507
- $opts = array(
4508
- __('no link at all.', 'wp-photo-album-plus'),
4509
- __('the plain photo (file).', 'wp-photo-album-plus'),
4510
- __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4511
- __('lightbox.', 'wp-photo-album-plus'),
4512
- __('lightbox single photos.', 'wp-photo-album-plus'),
4513
- __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4514
- __('the thumbnails.', 'wp-photo-album-plus'),
4515
- __('fullsize slideshow', 'wp-photo-album-plus') . '*|',
4516
- );
4517
- $vals = array(
4518
- 'none',
4519
- 'file',
4520
- 'single',
4521
- 'lightbox',
4522
- 'lightboxsingle',
4523
- 'fullpopup',
4524
- 'thumbs',
4525
- 'slide',
4526
- );
4527
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4528
- $npag = wppa_need_page($slug1);
4529
- $html2 = $npag ? wppa_select($slug2, $opts_page_post, $vals_page_post) : '';
4530
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4531
- $html4 = wppa_checkbox($slug4);
4532
- $html = array($html1, $html2, $html3, $html4);
4533
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4534
 
4535
- $name = __('Film linktype', 'wp-photo-album-plus');
4536
- $desc = __('Direct access goto image in:', 'wp-photo-album-plus');
4537
- $help = __('Select the action to be taken when the user clicks on a filmstrip image.', 'wp-photo-album-plus');
4538
- $slug1 = 'wppa_film_linktype';
4539
- $slug3 = 'wppa_film_blank';
4540
- $slug4 = 'wppa_film_overrule';
4541
- $opts = array(
4542
- __('slideshow window', 'wp-photo-album-plus'),
4543
- __('lightbox overlay', 'wp-photo-album-plus')
4544
- );
4545
- $vals = array(
4546
- 'slideshow',
4547
- 'lightbox'
4548
- );
4549
- $html1 = wppa_select($slug1, $opts, $vals);
4550
- $html2 = '';
4551
- $html3 = wppa_checkbox($slug3);
4552
- $html4 = wppa_checkbox($slug4);
4553
- $html = array($html1, $html2, $html3, $html4);
4554
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
4555
 
4556
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4557
  }
4558
  // Links from items and images in widgets
4559
- $desc = $wppa_subtab_names[$tab]['2'];
4560
  {
4561
- wppa_setting_tab_description($desc);
4562
- wppa_setting_box_header_new($tab, $coldef);
4563
-
4564
- $name = __('PotdWidget', 'wp-photo-album-plus');
4565
- $desc = __('Photo Of The Day widget link.', 'wp-photo-album-plus');
4566
- $help = __('Select the type of link the photo of the day points to.', 'wp-photo-album-plus');
4567
- $help .= '<br />'.__('If you select \'defined on widget admin page\' you can manually enter a link and title on the Photo of the day Widget Admin page.', 'wp-photo-album-plus');
4568
- $slug1 = 'wppa_potd_linktype';
4569
- $slug2 = 'wppa_potd_linkpage';
4570
- wppa_verify_page($slug2);
4571
- $slug3 = 'wppa_potd_blank';
4572
- $slug4 = 'wppa_potdwidget_overrule';
4573
- $slug = array($slug1, $slug2, $slug3, $slug4);
4574
- $opts = array(
4575
- __('no link at all.', 'wp-photo-album-plus'),
4576
- __('the plain photo (file).', 'wp-photo-album-plus'),
4577
- __('defined on widget admin page.', 'wp-photo-album-plus'),
4578
- __('the content of the album.', 'wp-photo-album-plus'),
4579
- __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4580
- __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4581
- __('a plain page without a querystring.', 'wp-photo-album-plus'),
4582
- __('lightbox.', 'wp-photo-album-plus')
4583
- );
4584
- $vals = array(
4585
- 'none',
4586
- 'file',
4587
- 'custom',
4588
- 'album',
4589
- 'photo',
4590
- 'single',
4591
- 'plainpage',
4592
- 'lightbox'
4593
- );
4594
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();' );
4595
- $npag = wppa_need_page($slug1);
4596
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4597
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4598
- $html4 = wppa_checkbox($slug4);
4599
- $html = array($html1, $html2, $html3, $html4);
4600
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4601
 
4602
- $name = __('SlideWidget', 'wp-photo-album-plus');
4603
- $desc = __('Slideshow widget photo link.', 'wp-photo-album-plus');
4604
- $help = __('Select the type of link the slideshow photos point to.', 'wp-photo-album-plus');
4605
- $slug1 = 'wppa_slideonly_widget_linktype';
4606
- $slug2 = 'wppa_slideonly_widget_linkpage';
4607
- wppa_verify_page($slug2);
4608
- $slug3 = 'wppa_sswidget_blank';
4609
- $slug4 = 'wppa_sswidget_overrule';
4610
- $slug = array($slug1, $slug2, $slug3, $slug4);
4611
- $opts = array(
4612
- __('no link at all.', 'wp-photo-album-plus'),
4613
- __('the plain photo (file).', 'wp-photo-album-plus'),
4614
- __('defined at widget activation.', 'wp-photo-album-plus'),
4615
- __('the content of the album.', 'wp-photo-album-plus'),
4616
- __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4617
- __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4618
- __('a plain page without a querystring.', 'wp-photo-album-plus'),
4619
- __('lightbox.', 'wp-photo-album-plus')
4620
- );
4621
- $vals = array(
4622
- 'none',
4623
- 'file',
4624
- 'widget',
4625
- 'album',
4626
- 'photo',
4627
- 'single',
4628
- 'plainpage',
4629
- 'lightbox'
4630
- );
4631
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4632
- $npag = wppa_need_page($slug1);
4633
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4634
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4635
- $html4 = wppa_checkbox($slug4);
4636
- $html = array($html1, $html2, $html3, $html4);
4637
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
4638
 
4639
- $name = __('Album widget', 'wp-photo-album-plus');
4640
- $desc = __('Album widget thumbnail link', 'wp-photo-album-plus');
4641
- $help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
4642
- '<br />' .
4643
- __('If you tick the ASO box, the album title link settings overrule these settings, but only when the album link page or post is not set to --- the same page or post ---', 'wp-photo-album-plus');
4644
- $slug1 = 'wppa_album_widget_linktype';
4645
- $slug2 = 'wppa_album_widget_linkpage';
4646
- wppa_verify_page($slug2);
4647
- $slug3 = 'wppa_album_widget_blank';
4648
- $slug4 = 'wppa_album_widget_overrule';
4649
- $slug = array($slug1, $slug2, $slug3, $slug4);
4650
- $opts = array(
4651
- __('subalbums and thumbnails.', 'wp-photo-album-plus'),
4652
- __('slideshow', 'wp-photo-album-plus'),
4653
- __('a plain page without a querystring.', 'wp-photo-album-plus'),
4654
- __('lightbox', 'wp-photo-album-plus'),
4655
- );
4656
- $vals = array(
4657
- 'content',
4658
- 'slide',
4659
- 'plainpage',
4660
- 'lightbox',
4661
- );
4662
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4663
- $npag = wppa_need_page($slug1);
4664
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4665
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4666
- $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO&nbsp;</span>'.wppa_checkbox($slug4);
4667
- $html = array($html1, $html2, $html3, $html4);
4668
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
 
 
 
 
 
 
4669
 
4670
- $name = __('Album navigator widget', 'wp-photo-album-plus');
4671
- $desc = __('Album navigator widget link', 'wp-photo-album-plus');
4672
- $help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
4673
- '<br />' .
4674
- __('If you tick the ASO box, the album title link settings overrule these settings, but only when the album link page or post is not set to --- the same page or post ---', 'wp-photo-album-plus');
4675
- $slug1 = 'wppa_album_navigator_widget_linktype';
4676
- $slug2 = 'wppa_album_navigator_widget_linkpage';
4677
- wppa_verify_page($slug2);
4678
- $slug3 = 'wppa_album_navigator_widget_blank';
4679
- $slug4 = 'wppa_album_navigator_widget_overrule';
4680
- $slug = array($slug1, $slug2, $slug3, $slug4);
4681
- $opts = array(
4682
- __('thumbnails', 'wp-photo-album-plus'),
4683
- __('slideshow', 'wp-photo-album-plus'),
4684
- __('subalbums and thumbnails', 'wp-photo-album-plus'),
4685
- __('a plain page without a querystring.', 'wp-photo-album-plus'),
4686
- __('lightbox', 'wp-photo-album-plus'),
4687
- );
4688
- $vals = array(
4689
- 'thumbs',
4690
- 'slide',
4691
- 'content',
4692
- 'plainpage',
4693
- 'lightbox',
4694
- );
4695
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4696
- $npag = wppa_need_page($slug1);
4697
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4698
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4699
- $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO&nbsp;</span>'.wppa_checkbox($slug4);
4700
- $html = array($html1, $html2, $html3, $html4);
4701
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
4702
 
4703
- $name = __('ThumbnailWidget', 'wp-photo-album-plus');
4704
- $desc = __('Thumbnail widget photo link.', 'wp-photo-album-plus');
4705
- $help = __('Select the type of link the thumbnail photos point to.', 'wp-photo-album-plus');
4706
- $slug1 = 'wppa_thumbnail_widget_linktype';
4707
- $slug2 = 'wppa_thumbnail_widget_linkpage';
4708
- wppa_verify_page($slug2);
4709
- $slug3 = 'wppa_thumbnail_widget_blank';
4710
- $slug4 = 'wppa_thumbnail_widget_overrule';
4711
- $slug = array($slug1, $slug2, $slug3, $slug4);
4712
- $opts = array(
4713
- __('no link at all.', 'wp-photo-album-plus'),
4714
- __('the plain photo (file).', 'wp-photo-album-plus'),
4715
- __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4716
- __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4717
- __('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
4718
- __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4719
- __('a plain page without a querystring.', 'wp-photo-album-plus'),
4720
- __('lightbox.', 'wp-photo-album-plus')
4721
- );
4722
- $vals = array(
4723
- 'none',
4724
- 'file',
4725
- 'photo',
4726
- 'single',
4727
- 'slphoto',
4728
- 'fullpopup',
4729
- 'plainpage',
4730
- 'lightbox'
4731
- );
4732
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4733
- $npag = wppa_need_page($slug1);
4734
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';;
4735
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4736
- $html4 = wppa_checkbox($slug4);
4737
- $html = array($html1, $html2, $html3, $html4);
4738
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
4739
 
4740
- $name = __('TopTenWidget', 'wp-photo-album-plus');
4741
- $desc = __('TopTen widget photo link.', 'wp-photo-album-plus');
4742
- $help = __('Select the type of link the top ten photos point to.', 'wp-photo-album-plus');
4743
- $slug1 = 'wppa_topten_widget_linktype';
4744
- $slug2 = 'wppa_topten_widget_linkpage';
4745
- wppa_verify_page($slug2);
4746
- $slug3 = 'wppa_topten_blank';
4747
- $slug4 = 'wppa_topten_overrule';
4748
- $slug = array($slug1, $slug2, $slug3, $slug4);
4749
- $opts = array(
4750
- __('no link at all.', 'wp-photo-album-plus'),
4751
- __('the plain photo (file).', 'wp-photo-album-plus'),
4752
- __('the content of the virtual topten album.', 'wp-photo-album-plus'),
4753
- __('the content of the thumbnails album.', 'wp-photo-album-plus'),
4754
- __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4755
- __('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
4756
- __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4757
- __('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
4758
- __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4759
- __('a plain page without a querystring.', 'wp-photo-album-plus'),
4760
- __('lightbox.', 'wp-photo-album-plus')
4761
- );
4762
- $vals = array(
4763
- 'none',
4764
- 'file',
4765
- 'album',
4766
- 'thumbalbum',
4767
- 'photo',
4768
- 'slidealbum',
4769
- 'single',
4770
- 'slphoto',
4771
- 'fullpopup',
4772
- 'plainpage',
4773
- 'lightbox'
4774
- );
4775
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4776
- $npag = wppa_need_page($slug1);
4777
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4778
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4779
- $html4 = wppa_checkbox($slug4);
4780
- $html = array($html1, $html2, $html3, $html4);
4781
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4782
 
4783
- $name = __('TopTenWidget', 'wp-photo-album-plus');
4784
- $desc = __('TopTen widget album linkpage.', 'wp-photo-album-plus');
4785
- $help = __('Select the linkpage the top ten albums point to.', 'wp-photo-album-plus');
4786
- $slug1 = '';
4787
- $slug2 = 'wppa_topten_widget_album_linkpage';
4788
- wppa_verify_page($slug2);
4789
- $slug3 = ''; // 'wppa_topten_blank';
4790
- $slug4 = ''; // 'wppa_topten_overrule';
4791
- $slug = array($slug1, $slug2, $slug3, $slug4);
4792
- $html1 = '';
4793
- $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
4794
- $html3 = '';
4795
- $html4 = '';
4796
- $html = array($html1, $html2, $html3, $html4);
4797
- $clas = 'wppa_rating';
4798
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4799
 
4800
- $name = __('LasTenWidget', 'wp-photo-album-plus');
4801
- $desc = __('Last Ten widget photo link.', 'wp-photo-album-plus');
4802
- $help = __('Select the type of link the last ten photos point to.', 'wp-photo-album-plus');
4803
- $slug1 = 'wppa_lasten_widget_linktype';
4804
- $slug2 = 'wppa_lasten_widget_linkpage';
4805
- wppa_verify_page($slug2);
4806
- $slug3 = 'wppa_lasten_blank';
4807
- $slug4 = 'wppa_lasten_overrule';
4808
- $slug = array($slug1, $slug2, $slug3, $slug4);
4809
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4810
- $npag = wppa_need_page($slug1);
4811
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4812
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4813
- $html4 = wppa_checkbox($slug4);
4814
- $html = array($html1, $html2, $html3, $html4);
4815
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
4816
 
4817
- $name = __('CommentWidget', 'wp-photo-album-plus');
4818
- $desc = __('Comment widget photo link.', 'wp-photo-album-plus');
4819
- $help = __('Select the type of link the comment widget photos point to.', 'wp-photo-album-plus');
4820
- $slug1 = 'wppa_comment_widget_linktype';
4821
- $slug2 = 'wppa_comment_widget_linkpage';
4822
- wppa_verify_page($slug2);
4823
- $slug3 = 'wppa_comment_blank';
4824
- $slug4 = 'wppa_comment_overrule';
4825
- $slug = array($slug1, $slug2, $slug3, $slug4);
4826
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4827
- $npag = wppa_need_page($slug1);
4828
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4829
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4830
- $html4 = wppa_checkbox($slug4);
4831
- $html = array($html1, $html2, $html3, $html4);
4832
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
4833
 
4834
- $name = __('FeaTenWidget', 'wp-photo-album-plus');
4835
- $desc = __('FeaTen widget photo link.', 'wp-photo-album-plus');
4836
- $help = __('Select the type of link the featured ten photos point to.', 'wp-photo-album-plus');
4837
- $slug1 = 'wppa_featen_widget_linktype';
4838
- $slug2 = 'wppa_featen_widget_linkpage';
4839
- wppa_verify_page($slug2);
4840
- $slug3 = 'wppa_featen_blank';
4841
- $slug4 = 'wppa_featen_overrule';
4842
- $slug = array($slug1, $slug2, $slug3, $slug4);
4843
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4844
- $npag = wppa_need_page($slug1);
4845
- $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4846
- $html3 = $npag ? wppa_checkbox($slug3) : '';
4847
- $html4 = wppa_checkbox($slug4);
4848
- $html = array($html1, $html2, $html3, $html4);
4849
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
4850
 
4851
- $name = __('Tagcloud Link', 'wp-photo-album-plus');
4852
- $desc = __('Configure the link from the tags in the tag cloud.', 'wp-photo-album-plus');
4853
- $help = __('Link the tag words to either the thumbnails or the slideshow.', 'wp-photo-album-plus');
4854
- $help .= '<br />'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
4855
- $slug1 = 'wppa_tagcloud_linktype';
4856
- $slug2 = 'wppa_tagcloud_linkpage';
4857
- wppa_verify_page($slug2);
4858
- $slug3 = 'wppa_tagcloud_blank';
4859
- $slug4 = 'wppa_tagcloud_linkpage_oc';
4860
- $slug = array($slug1, $slug2, $slug3, $slug4);
4861
- $opts1 = array(
4862
- __('thumbnails', 'wp-photo-album-plus'),
4863
- __('slideshow', 'wp-photo-album-plus')
4864
- );
4865
- $vals1 = array(
4866
- 'album',
4867
- 'slide'
4868
- );
4869
- $opts4 = array('1','2','3','4','5');
4870
- $vals4 = array('1','2','3','4','5');
4871
- $html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
4872
- $opts = $opts_page_auto;
4873
- $opts[] = __('--- the same page ---', 'wp-photo-album-plus');
4874
- $vals = $vals_page;
4875
- $vals[] = '-1';
4876
- $html2 = wppa_select($slug2, $opts, $vals, 'wppaRefreshAfter();');
4877
- $html3 = wppa_checkbox($slug3);
4878
- $html4 = '<div style="font-size:9px;foat:left;" class="'.$clas.'" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
4879
- $html = array($html1, $html2, $html3, $html4);
4880
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
4881
 
4882
- $name = __('Multitag Link', 'wp-photo-album-plus');
4883
- $desc = __('Configure the link from the multitag selection.', 'wp-photo-album-plus');
4884
- $help = __('Link to either the thumbnails or the slideshow.', 'wp-photo-album-plus');
4885
- $help .= '<br />'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
4886
- $slug1 = 'wppa_multitag_linktype';
4887
- $slug2 = 'wppa_multitag_linkpage';
4888
- wppa_verify_page($slug2);
4889
- $slug3 = 'wppa_multitag_blank';
4890
- $slug4 = 'wppa_multitag_linkpage_oc';
4891
- $slug = array($slug1, $slug2, $slug3, $slug4);
4892
- $opts1 = array(
4893
- __('thumbnails', 'wp-photo-album-plus'),
4894
- __('slideshow', 'wp-photo-album-plus')
4895
- );
4896
- $vals1 = array(
4897
- 'album',
4898
- 'slide'
4899
- );
4900
- $opts4 = array('1','2','3','4','5');
4901
- $vals4 = array('1','2','3','4','5');
4902
- $html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
4903
- $opts = $opts_page_auto;
4904
- $opts[] = __('--- the same page ---', 'wp-photo-album-plus');
4905
- $vals = $vals_page;
4906
- $vals[] = '-1';
4907
- $html2 = wppa_select($slug2, $opts, $vals);
4908
- $html3 = wppa_checkbox($slug3);
4909
- $html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
4910
- $html = array($html1, $html2, $html3, $html4);
4911
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
4912
 
4913
- $name = __('Bestof Landing', 'wp-photo-album-plus');
4914
- $desc = __('Select the landing page for the BestOf Widget / Box', 'wp-photo-album-plus');
4915
- $help = '';
4916
- $slug1 = '';
4917
- $slug2 = 'wppa_bestof_widget_linkpage';
4918
- wppa_verify_page($slug2);
4919
- $slug3 = '';
4920
- $slug4 = '';
4921
- $slug = array($slug1, $slug2, $slug3, $slug4);
4922
- $html1 = '';
4923
- $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
4924
- $html3 = '';
4925
- $html4 = '';
4926
- $html = array($html1, $html2, $html3, $html4);
4927
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4928
 
4929
- $name = __('SM widget return', 'wp-photo-album-plus');
4930
- $desc = __('Select the return link for social media from widgets', 'wp-photo-album-plus');
4931
- $help = __('If you select Landing page, and it wont work, it may be required to set the Occur to the sequence number of the landing shortcode on the page.', 'wp-photo-album-plus');
4932
- $help .= '<br />'.__('Normally it is 1, but you can try 2 etc. Always create a new shared link to test a setting.', 'wp-photo-album-plus');
4933
- $help .= '<br />'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
4934
- $slug1 = 'wppa_widget_sm_linktype';
4935
- $slug2 = 'wppa_widget_sm_linkpage';
4936
- wppa_verify_page($slug2);
4937
- $slug3 = '';
4938
- $slug4 = 'wppa_widget_sm_linkpage_oc';
4939
- $slug = array($slug1, $slug2, $slug3, $slug4);
4940
- $opts = array(
4941
- __('Home page', 'wp-photo-album-plus'),
4942
- __('Landing page', 'wp-photo-album-plus')
4943
- );
4944
- $vals = array(
4945
- 'home',
4946
- 'landing'
4947
- );
4948
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4949
- $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
4950
- $html3 = '';
4951
- $opts4 = array('1','2','3','4','5');
4952
- $vals4 = array('1','2','3','4','5');
4953
- $html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
4954
- $html = array($html1, $html2, $html3, $html4);
4955
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
4956
 
4957
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4958
  }
4959
  // Other links
4960
- $desc = $wppa_subtab_names[$tab]['3'];
4961
  {
4962
- wppa_setting_tab_description($desc);
4963
- wppa_setting_box_header_new($tab, $coldef);
 
4964
 
4965
- $name = __('Download Link (aka Art Monkey link)', 'wp-photo-album-plus');
4966
- $desc = __('Makes the photo name a download button.', 'wp-photo-album-plus');
4967
- $help = __('Link Photo name in slideshow to file or zip with photoname as filename.', 'wp-photo-album-plus');
4968
- $slug = 'wppa_art_monkey_link';
4969
- $opts = array(
4970
- __('--- none ---', 'wp-photo-album-plus'),
4971
- __('image file', 'wp-photo-album-plus'),
4972
- __('zipped image', 'wp-photo-album-plus'),
4973
- __('New style', 'wp-photo-album-plus'),
4974
- );
4975
- $vals = array(
4976
- 'none',
4977
- 'file',
4978
- 'zip',
4979
- 'new',
4980
- );
4981
- $html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();');
4982
- wppa_setting_new($slug, '1', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
4983
-
4984
- $name = __('Art Monkey Source', 'wp-photo-album-plus');
4985
- $desc = __('Use Source file for art monkey link if available.', 'wp-photo-album-plus');
4986
- $help = '';
4987
- $slug = 'wppa_artmonkey_use_source';
4988
- $html = wppa_checkbox($slug);
4989
- wppa_setting_new($slug, '2', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
4990
 
4991
- if ( wppa_opt( 'art_monkey_link' ) == 'new' ) {
4992
- $name = __('Art Monkey new filetypes', 'wp-photo-album-plus');
4993
- $desc = __('Select filetypes to be downloadable when link is New Style', 'wp-photo-album-plus');
4994
  $help = '';
4995
- $slug = 'wppa_art_monkey_new_types';
4996
- $opts = array( __('Photos only', 'wp-photo-album-plus'),
4997
- __('PDFs only', 'wp-photo-album-plus'),
4998
- __('Both photos and PDFs', 'wp-photo-album-plus')
4999
- );
5000
- $vals = array('photo','pdf','photo-pdf');
5001
- $html = wppa_select($slug, $opts, $vals);
5002
- wppa_setting_new($slug, '3', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5003
- }
5004
 
5005
- $name = __('Art Monkey Display', 'wp-photo-album-plus');
5006
- $desc = __('Select button or link ( text ).', 'wp-photo-album-plus');
5007
- $help = '';
5008
- $slug = 'wppa_art_monkey_display';
5009
- $opts = array(
5010
- __('Button', 'wp-photo-album-plus'),
5011
- __('Textlink', 'wp-photo-album-plus')
5012
- );
5013
- $vals = array(
5014
- 'button',
5015
- 'text'
5016
- );
5017
- $html = wppa_select($slug, $opts, $vals);
5018
- wppa_setting_new($slug, '4', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5019
 
5020
- $name = __('Popup Download Link', 'wp-photo-album-plus');
5021
- $desc = __('Configure the download link on fullsize popups.', 'wp-photo-album-plus');
5022
- $help = __('Link fullsize popup download button to either image or zip file.', 'wp-photo-album-plus');
5023
- $slug = 'wppa_art_monkey_popup_link';
5024
- $opts = array(
5025
- __('image file', 'wp-photo-album-plus'),
5026
- __('zipped image', 'wp-photo-album-plus')
5027
- );
5028
- $vals = array(
5029
- 'file',
5030
- 'zip'
5031
- );
5032
- $html = wppa_select($slug, $opts, $vals);
5033
- wppa_setting_new($slug, '5', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5034
 
5035
- $name = __('Download link on lightbox', 'wp-photo-album-plus');
5036
- $desc = __('Art monkey link on lightbox photo names.', 'wp-photo-album-plus');
5037
- $help = '';
5038
- $slug = 'wppa_art_monkey_on_lightbox';
5039
- $html = wppa_checkbox($slug);
5040
- wppa_setting_new($slug, '6', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5041
 
5042
- $name = __('Album download link', 'wp-photo-album-plus');
5043
- $desc = __('Place an album download link on the album covers and the edit album info page', 'wp-photo-album-plus');
5044
- $help = __('Creates a download zipfile containing the photos of the album', 'wp-photo-album-plus');
5045
- $slug = 'wppa_allow_download_album';
5046
- $html = wppa_checkbox($slug);
5047
- wppa_setting_new($slug, '7', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5048
 
5049
- $name = __('Album download Source', 'wp-photo-album-plus');
5050
- $desc = __('Use Source file for album download link if available.', 'wp-photo-album-plus');
5051
- $help = '';
5052
- $slug = 'wppa_download_album_source';
5053
- $html = wppa_checkbox($slug);
5054
- wppa_setting_new($slug, '8', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5055
 
5056
- $name = __('Super View Landing', 'wp-photo-album-plus');
5057
- $desc = __('The landing page for the Super View widget.', 'wp-photo-album-plus');
5058
- $help = '';
5059
- $slug1 = '';
5060
- $slug2 = 'wppa_super_view_linkpage';
5061
- wppa_verify_page($slug2);
5062
- $slug3 = '';
5063
- $slug4 = '';
5064
- $slug = array($slug1, $slug2, $slug3, $slug4);
5065
- $html1 = __('Defined by the visitor', 'wp-photo-album-plus');
5066
- $html2 = wppa_select($slug2, $opts_page_auto, $vals_page, 'wppaRefreshAfter();');
5067
- $html3 = '';
5068
- $html4 = '';
5069
- $html = array($html1, $html2, $html3, $html4);
5070
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
5071
 
5072
- $name = __('Uploader Landing', 'wp-photo-album-plus');
5073
- $desc = __('Select the landing page for the Uploader Widget', 'wp-photo-album-plus');
5074
- $help = '';
5075
- $slug1 = '';
5076
- $slug2 = 'wppa_upldr_widget_linkpage';
5077
- wppa_verify_page($slug2);
5078
- $slug3 = '';
5079
- $slug4 = '';
5080
- $slug = array($slug1, $slug2, $slug3, $slug4);
5081
- $html1 = '';
5082
- $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
5083
- $html3 = '';
5084
- $html4 = '';
5085
- $html = array($html1, $html2, $html3, $html4);
5086
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
5087
 
5088
- $name = __('Supersearch Landing', 'wp-photo-album-plus');
5089
- $desc = __('Select the landing page for the Supersearch Box', 'wp-photo-album-plus');
5090
- $help = '';
5091
- $slug1 = '';
5092
- $slug2 = 'wppa_supersearch_linkpage';
5093
- wppa_verify_page($slug2);
5094
- $slug3 = '';
5095
- $slug4 = '';
5096
- $slug = array($slug1, $slug2, $slug3, $slug4);
5097
- $html1 = '';
5098
- $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
5099
- $html3 = '';
5100
- $html4 = '';
5101
- $html = array($html1, $html2, $html3, $html4);
5102
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5103
 
5104
- $name = __('Album cover subalbums link', 'wp-photo-album-plus');
5105
- $desc = __('Select the linktype and display type for sub-albums on parent album covers.', 'wp-photo-album-plus');
5106
- $help = '';
5107
- $slug1 = 'wppa_cover_sublinks';
5108
- $slug2 = 'wppa_cover_sublinks_display';
5109
- $slug3 = '';
5110
- $slug4 = '';
5111
- $slug = array($slug1, $slug2, $slug3, $slug4);
5112
- $opts = array(
5113
- __('No link at all', 'wp-photo-album-plus'),
5114
- __('Thumbnails and covers', 'wp-photo-album-plus'),
5115
- __('Slideshow or covers', 'wp-photo-album-plus'),
5116
- __('Subalbum title link', 'wp-photo-album-plus'),
5117
- );
5118
- $vals = array(
5119
- 'none',
5120
- 'content',
5121
- 'slide',
5122
- 'title',
5123
- );
5124
- $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
5125
- $opts = array(
5126
- __('No display at all', 'wp-photo-album-plus'),
5127
- __('A list with sub(sub) albums', 'wp-photo-album-plus'),
5128
- __('A list of children only', 'wp-photo-album-plus'),
5129
- __('An enumeration of names', 'wp-photo-album-plus'),
5130
- __('Micro thumbnails', 'wp-photo-album-plus'),
5131
- );
5132
- $vals = array(
5133
- 'none',
5134
- 'recursivelist',
5135
- 'list',
5136
- 'enum',
5137
- 'microthumbs',
5138
- );
5139
- $html2 = wppa_select($slug2, $opts, $vals);
5140
- $html3 = '';
5141
- $html4 = '';
5142
- $html = array($html1, $html2, $html3, $html4);
5143
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5144
 
5145
- $name = __('Real calendar link', 'wp-photo-album-plus');
5146
- $desc = __('Select the linktype the real calendar day image should link to', 'wp-photo-album-plus');
5147
- $help = '';
5148
- $slug1 = 'wppa_real_calendar_linktype';
5149
- $slug2 = '';
5150
- $slug3 = '';
5151
- $slug4 = '';
5152
- $slug = array($slug1, $slug2, $slug3, $slug4);
5153
- $opts = array(
5154
- __('Slideshow', 'wp-photo-album-plus'),
5155
- __('Lightbox', 'wp-photo-album-plus'),
5156
- );
5157
- $vals = array(
5158
- 'slide',
5159
- 'lightbox',
5160
- );
5161
- $onchange = '';
5162
- $html1 = wppa_select($slug1, $opts, $vals);
5163
- $html2 = '';
5164
- $slug3 = '';
5165
- $slug4 = '';
5166
- $html = array($html1, $html2, $html3, $html4);
5167
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
5168
 
5169
- $name = __('Album id on cover is link', 'wp-photo-album-plus');
5170
- $desc = __('The album number on the cover links to the album admin page of the album', 'wp-photo-album-plus');
5171
- $help = __('Table II-E10: <b>Album id on cover</b> must be enabled. The ids are only links when the user has edit album acces to the album', 'wp-photo-album-plus');
5172
- $slug1 = 'wppa_fe_albid_edit';
5173
- $slug2 = '';
5174
- $slug3 = '';
5175
- $slug4 = '';
5176
- $slug = array($slug1, $slug2, $slug3, $slug4);
5177
- $html1 = wppa_checkbox($slug1);
5178
- $html2 = '';
5179
- $slug3 = '';
5180
- $slug4 = '';
5181
- $html = array($html1, $html2, $html3, $html4);
5182
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5183
 
5184
- wppa_setting_box_footer_new();
5185
  }
5186
  }
5187
  break;
5188
 
5189
  case 'users': {
5190
  // Frontend (user) upload related settings
5191
- $desc = $wppa_subtab_names[$tab]['1'];
5192
  {
5193
- wppa_setting_tab_description($desc);
5194
- wppa_setting_box_header_new($tab);
5195
-
5196
- $name = __('User upload Photos', 'wp-photo-album-plus');
5197
- $desc = __('Enable frontend upload.', 'wp-photo-album-plus');
5198
- $help = '';
5199
- $slug = '';
5200
- $html = '<input type="checkbox" checked disabled >';
5201
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5202
-
5203
- $name = __('User upload Video', 'wp-photo-album-plus');
5204
- $desc = __('Enable frontend upload of video.', 'wp-photo-album-plus');
5205
- $help = '';
5206
- $slug = 'wppa_user_upload_video_on';
5207
- $html = wppa_checkbox($slug);
5208
- wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'enable_video' ));
5209
 
5210
- $name = __('User upload Audio', 'wp-photo-album-plus');
5211
- $desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus');
5212
- $help = '';
5213
- $slug = 'wppa_user_upload_audio_on';
5214
- $html = wppa_checkbox($slug);
5215
- wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_audio' ));
5216
 
5217
- $name = __('User upload login', 'wp-photo-album-plus');
5218
- $desc = __('Frontend upload requires the user is logged in.', 'wp-photo-album-plus');
5219
- $help = '';
5220
- $slug = 'wppa_user_upload_login';
5221
- $onch = 'wppaSlave(this,"wppa_user_opload_roles")';
5222
- $html = wppa_checkbox($slug, $onch);
5223
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5224
 
5225
- $name = __('User upload roles', 'wp-photo-album-plus');
5226
- $desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus');
5227
- $help = '';
5228
- $slug = 'wppa_user_opload_roles';
5229
- $roles = $wp_roles->roles;
5230
- $opts = array();
5231
- $vals = array();
5232
- $opts[] = '-- '.__('Not limited', 'wp-photo-album-plus').' --';
5233
- $vals[] = '';
5234
- foreach (array_keys($roles) as $key) {
5235
- $role = $roles[$key];
5236
- $rolename = translate_user_role( $role['name'] );
5237
- $opts[] = $rolename;
5238
- $vals[] = $key;
5239
- }
5240
- $onch = '';
5241
- $html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
5242
- wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_switch( 'user_upload_login' ) );
5243
 
5244
- $name = __('Progressin bar', 'wp-photo-album-plus');
5245
- $desc = __('Shows the upload progression bar.', 'wp-photo-album-plus');
5246
- $help = '';
5247
- $slug = 'wppa_ajax_upload';
5248
- $html = wppa_checkbox($slug);
5249
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
 
5250
 
5251
- $name = __('Show Copyright', 'wp-photo-album-plus');
5252
- $desc = __('Show a copyright warning on frontend upload form.', 'wp-photo-album-plus');
5253
- $help = '';
5254
- $slug = 'wppa_copyright_on';
5255
- $html = wppa_checkbox($slug, 'wppaSlave(this,\'wppa_copyright_notice\');');
5256
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
5257
 
5258
- $name = __('Copyright notice', 'wp-photo-album-plus');
5259
- $desc = __('The message to be displayed.', 'wp-photo-album-plus');
5260
- $help = '';
5261
- $slug = 'wppa_copyright_notice';
5262
- $html = wppa_textarea($slug, $name);
5263
- wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch( 'copyright_on' ));
5264
-
5265
- $name = __('User Watermark', 'wp-photo-album-plus');
5266
- $desc = __('Uploading users may select watermark settings', 'wp-photo-album-plus');
5267
- $help = __('If checked, anyone who can upload and/or import photos can overrule the default watermark settings.', 'wp-photo-album-plus');
5268
- $slug = 'wppa_watermark_user';
5269
- $html = wppa_checkbox($slug);
5270
- wppa_setting_new($slug, '9', $name, $desc, $html, $help, wppa_switch('watermark_on'));
5271
-
5272
- $name = __('User name', 'wp-photo-album-plus');
5273
- $desc = __('Uploading users may overrule the default name.', 'wp-photo-album-plus');
5274
- $help = __('If checked, the default photo name as defined in Table IX-D13 may be overruled by the user.', 'wp-photo-album-plus');
5275
- $slug1 = 'wppa_name_user';
5276
- $slug2 = 'wppa_name_user_mandatory';
5277
- $html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5278
- wppa_setting_new($slug1, '10', $name, $desc, $html, $help);
5279
-
5280
- $name = __('Apply Newphoto desc user', 'wp-photo-album-plus');
5281
- $desc = __('Give each new frontend uploaded photo a standard description.', 'wp-photo-album-plus');
5282
- $help = __('If checked, each new photo will get the description (template) as specified in Table IX-D5.', 'wp-photo-album-plus');
5283
- $help .= '<br />'.__('Note: If the next item is checked, the user can overwrite this', 'wp-photo-album-plus');
5284
- $slug = 'wppa_apply_newphoto_desc_user';
5285
- $html = wppa_checkbox($slug);
5286
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5287
 
5288
- $name = __('User desc', 'wp-photo-album-plus');
5289
- $desc = __('Uploading users may overrule the default description.', 'wp-photo-album-plus');
5290
- $help = '';
5291
- $slug1 = 'wppa_desc_user';
5292
- $slug2 = 'wppa_desc_user_mandatory';
5293
- $html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5294
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5295
 
5296
- $name = __('User upload custom', 'wp-photo-album-plus');
5297
- $desc = __('Frontend upload can fill in custom data fields.', 'wp-photo-album-plus');
5298
- $help = __('Custom datafields can be defined in Table II-J10', 'wp-photo-album-plus');
5299
- $slug = 'wppa_fe_custom_fields';
5300
- $html = wppa_checkbox($slug);
5301
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5302
 
5303
- $name = __('User upload tags', 'wp-photo-album-plus');
5304
- $desc = __('Frontend upload can add tags.', 'wp-photo-album-plus');
5305
- $help = __('You can configure the details of tag addition in Table IX-D18.x', 'wp-photo-album-plus');
5306
- $slug = 'wppa_fe_upload_tags';
5307
- $html = wppa_checkbox($slug, 'wppaSlave(this,\'wppa_up_tags\');');
5308
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
 
5309
 
5310
- $wppa_setting_class = 'wppa_up_tags';
 
 
 
 
 
5311
 
5312
- $name = __('Tag selection box', 'wp-photo-album-plus').' 1';
5313
- $desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
5314
- $help = '';
5315
- $slug1 = 'wppa_up_tagselbox_on_1';
5316
- $slug2 = 'wppa_up_tagselbox_multi_1';
5317
- $html = '<span style="float:left" >'.__('On:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug1).'<span style="float:left" >'.__('Multi:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug2);
5318
- wppa_setting_new($slug, '15', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
5319
 
5320
- $name = __('Caption box', 'wp-photo-album-plus').' 1';
5321
- $desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
5322
- $help = '';
5323
- $slug = 'wppa_up_tagselbox_title_1';
5324
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5325
- wppa_setting_new($slug, '16', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
5326
-
5327
- $name = __('Tags box', 'wp-photo-album-plus').' 1';
5328
- $desc = __('The tags in the selection box.', 'wp-photo-album-plus');
5329
- $help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
5330
- $slug = 'wppa_up_tagselbox_content_1';
5331
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5332
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
5333
 
5334
- $name = __('Tag selection box', 'wp-photo-album-plus').' 2';
5335
- $desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
5336
- $help = '';
5337
- $slug1 = 'wppa_up_tagselbox_on_2';
5338
- $slug2 = 'wppa_up_tagselbox_multi_2';
5339
- $html = '<span style="float:left" >'.__('On:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug1).'<span style="float:left" >'.__('Multi:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug2);
5340
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
5341
 
5342
- $name = __('Caption box', 'wp-photo-album-plus').' 2';
5343
- $desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
5344
- $help = '';
5345
- $slug = 'wppa_up_tagselbox_title_2';
5346
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5347
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5348
 
5349
- $name = __('Tags box', 'wp-photo-album-plus').' 2';
5350
- $desc = __('The tags in the selection box.', 'wp-photo-album-plus');
5351
- $help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
5352
- $slug = 'wppa_up_tagselbox_content_2';
5353
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5354
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5355
 
5356
- $name = __('Tag selection box', 'wp-photo-album-plus').' 3';
5357
- $desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
5358
- $help = '';
5359
- $slug1 = 'wppa_up_tagselbox_on_3';
5360
- $slug2 = 'wppa_up_tagselbox_multi_3';
5361
- $html = '<span style="float:left" >'.__('On:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug1).'<span style="float:left" >'.__('Multi:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug2);
5362
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
5363
 
5364
- $name = __('Caption box', 'wp-photo-album-plus').' 3';
5365
- $desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
5366
- $help = '';
5367
- $slug = 'wppa_up_tagselbox_title_3';
5368
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5369
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
5370
-
5371
- $name = __('Tags box', 'wp-photo-album-plus').' 3';
5372
- $desc = __('The tags in the selection box.', 'wp-photo-album-plus');
5373
- $help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
5374
- $slug = 'wppa_up_tagselbox_content_3';
5375
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5376
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
5377
-
5378
- $name = __('New tags', 'wp-photo-album-plus');
5379
- $desc = __('Input field for any user defined tags.', 'wp-photo-album-plus');
5380
- $help = '';
5381
- $slug = 'wppa_up_tag_input_on';
5382
- $html = wppa_checkbox($slug);
5383
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
5384
 
5385
- $name = __('New tags caption', 'wp-photo-album-plus');
5386
- $desc = __('The caption above the tags input field.', 'wp-photo-album-plus');
5387
- $help = '';
5388
- $slug = 'wppa_up_tag_input_title';
5389
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5390
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
5391
 
5392
- $name = __('Tags box New', 'wp-photo-album-plus');
5393
- $desc = __('The tags in the New tags input box.', 'wp-photo-album-plus');
5394
- $help = '';
5395
- $slug = 'wppa_up_tagbox_new';
5396
- $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5397
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
5398
 
5399
- $name = __('Preview tags', 'wp-photo-album-plus');
5400
- $desc = __('Show a preview of all tags that will be added to the photo info.', 'wp-photo-album-plus');
5401
- $help = '';
5402
- $slug = 'wppa_up_tag_preview';
5403
- $html = wppa_checkbox($slug);
5404
- wppa_setting_new($slug, '27', $name, $desc, $html, $help);
5405
 
5406
- $wppa_setting_class = '';
 
 
 
 
 
 
5407
 
5408
- $name = __('Camera connect', 'wp-photo-album-plus');
5409
- $desc = __('Connect frontend upload to camara on mobile devices with camera', 'wp-photo-album-plus');
5410
- $help = '';
5411
- $slug = 'wppa_camera_connect';
5412
- $html = wppa_checkbox($slug);
5413
- wppa_setting_new($slug, '28', $name, $desc, $html, $help);
5414
-
5415
- $name = __('Blog It!', 'wp-photo-album-plus');
5416
- $desc = __('Enable blogging photos.', 'wp-photo-album-plus');
5417
- $help = __('Users need the capability edit_posts to directly blog photos.', 'wp-photo-album-plus');
5418
- $slug = 'wppa_blog_it';
5419
- $opts = array( __('disabled', 'wp-photo-album-plus'),
5420
- __('optional', 'wp-photo-album-plus'),
5421
- __('always', 'wp-photo-album-plus'),
5422
- );
5423
- $vals = array( '-none-',
5424
- 'optional',
5425
- 'always',
5426
- );
5427
- $html = wppa_select($slug, $opts, $vals);
5428
- wppa_setting_new($slug, '29', $name, $desc, $html, $help);
5429
 
5430
- $name = __('Blog It need moderation', 'wp-photo-album-plus');
5431
- $desc = __('Posts with blogged photos need moderation.', 'wp-photo-album-plus');
5432
- $help = '';
5433
- $slug = 'wppa_blog_it_moderate';
5434
- $html = wppa_checkbox($slug);
5435
- wppa_setting_new($slug, '30', $name, $desc, $html, $help);
5436
 
5437
- $name = __('Blog It shortcode', 'wp-photo-album-plus');
5438
- $desc = __('Shortcode to be used on the blog post', 'wp-photo-album-plus');
5439
- $help = __('Make sure it contains photo="#id"', 'wp-photo-album-plus');
5440
- $slug = 'wppa_blog_it_shortcode';
5441
- $html = wppa_input($slug, '85%');
5442
- wppa_setting_new($slug, '31', $name, $desc, $html, $help);
5443
 
5444
- $name = __('Frontend ending label', 'wp-photo-album-plus');
5445
- $desc = __('Frontend upload / create / edit dialog closing label text.', 'wp-photo-album-plus');
5446
- $help = '';
5447
- $slug = 'wppa_close_text';
5448
- $opts = array( __('Abort', 'wp-photo-album-plus'), __('Cancel', 'wp-photo-album-plus'), __('Close', 'wp-photo-album-plus'), __('Exit', 'wp-photo-album-plus'), __('Quit', 'wp-photo-album-plus') );
5449
- $vals = array( 'Abort', 'Cancel', 'Close', 'Exit', 'Quit' );
5450
- $html = wppa_select($slug, $opts, $vals);
5451
- wppa_setting_new($slug, '32', $name, $desc, $html, $help);
5452
 
5453
- wppa_setting_box_footer_new();
5454
  }
5455
  }
5456
  break;
5457
 
5458
  case 'email': {
5459
  // Email configuration settings
5460
- $desc = $wppa_subtab_names[$tab]['1'];
5461
  {
5462
- wppa_setting_tab_description($desc);
5463
- wppa_setting_box_header_new($tab);
 
5464
 
5465
- $name = __('Mail on new album', 'wp-photo-album-plus');
5466
- $desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus');
5467
- $help = '';
5468
- $slug = 'wppa_newalbumnotify';
5469
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
5470
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5471
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5472
 
5473
- $name = __('Mail on upload', 'wp-photo-album-plus');
5474
- $desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus');
5475
- $help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
5476
- $slug = 'wppa_feuploadnotify';
5477
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
5478
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5479
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
5480
 
5481
- $name = __('Mail on comment', 'wp-photo-album-plus');
5482
- $desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus');
5483
- $help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus');
5484
- $help .= '<br />' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus');
5485
- $slug1 = 'wppa_commentnotify';
5486
- $slug2 = 'wppa_commentnotify_limit';
5487
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
5488
- $html = wppa_checkbox($slug1) . '<span style="float:left" >&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . '&nbsp;</span>' .
5489
- wppa_checkbox($slug2) . '<span style="float:left" >&nbsp;' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
5490
- wppa_setting_new($slug1, '3', $name, $desc, $html, $help);
5491
-
5492
- $name = __('Mail on previous comment', 'wp-photo-album-plus');
5493
- $desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus');
5494
- $help = '';
5495
- $slug = 'wppa_commentprevious';
5496
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
5497
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5498
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5499
 
5500
- $name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
5501
- $desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus');
5502
- $help = '';
5503
- $slug = 'wppa_moderatephoto';
5504
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
5505
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5506
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
5507
 
5508
- $name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
5509
- $desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus');
5510
- $help = '';
5511
- $slug = 'wppa_moderatecomment';
5512
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
5513
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5514
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
5515
 
5516
- $name = __('Mail on approve photo', 'wp-photo-album-plus');
5517
- $desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
5518
- $help = '';
5519
- $slug = 'wppa_photoapproved';
5520
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
5521
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5522
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
5523
 
5524
- $name = __('Mail on approve comment', 'wp-photo-album-plus');
5525
- $desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus');
5526
- $help = '';
5527
- $slug = 'wppa_commentapproved';
5528
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
5529
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5530
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
5531
 
5532
- $name = __('From site', 'wp-photo-album-plus');
5533
- $desc = __('Enter the subject header', 'wp-photo-album-plus');
5534
- $help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace('&#039;', '', get_bloginfo('name') ).']');
5535
- $slug = 'wppa_email_from_site';
5536
- $html = wppa_input($slug,'90%');
5537
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
5538
 
5539
- $name = __('From email', 'wp-photo-album-plus');
5540
- $desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
5541
- $help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br />' .
5542
- __('Make sure this email address exists.', 'wp-photo-album-plus');
5543
- $slug = 'wppa_email_from_email';
5544
- $html = wppa_input($slug,'90%');
5545
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
5546
 
5547
- $name = __( 'No admin email', 'wp-photo-album-plus' );
5548
- $desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
5549
- $help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
5550
- $slug = 'wppa_void_admin_email';
5551
- $html = wppa_checkbox( $slug );
5552
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5553
 
5554
- $name = __( 'Email policy', 'wp-photo-album-plus' );
5555
- $desc = __( 'Select either "opt-in" or "opt-out"', 'wp-photo-album-plus' );
5556
- $help = __( 'If you select "opt-in", use the "Notify Me" widget to enable the users to subscribe to emails', 'wp-photo-album-plus' );
5557
- $slug = 'wppa_mailinglist_policy';
5558
- $opts = array( 'opt-in', 'opt-out' );
5559
- $vals = array( 'opt-in', 'opt-out' );
5560
- $html = wppa_select( $slug, $opts, $vals );
5561
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5562
 
5563
- $name = __( 'Email callback url', 'wp-photo-album-plus' );
5564
- $desc = __( 'The link in emails will point to', 'wp-photo-album-plus' );
5565
- $help = __( 'Recommendation', 'wp-photo-album-plus' ) . ': ' .
5566
- __( 'Create a page with shortcode', 'wp-photo-album-plus' ) .
5567
- '<b>[wppa type="landing"]</b>. ';
5568
- $slug = 'wppa_mailinglist_callback_url';
5569
- $html = wppa_input($slug, '90%');
5570
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
5571
 
5572
- $name = __('Retry failed mails', 'wp-photo-album-plus');
5573
- $desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
5574
- $help = (__('Retries occur at the background every hour', 'wp-photo-album-plus'));
5575
- $slug = 'wppa_retry_mails';
5576
- $html = wppa_number($slug, '1', '24');
5577
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5578
 
5579
- wppa_setting_box_footer_new();
5580
  }
5581
  // Failed mails
5582
- $desc = $wppa_subtab_names[$tab]['2'];
5583
  {
 
5584
 
5585
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
5586
  __('To', 'wp-photo-album-plus') => 'auto;',
@@ -5612,8 +5729,9 @@ global $wppa_subtab_names;
5612
  }
5613
  }
5614
  // Permanently failed mails
5615
- $desc = $wppa_subtab_names[$tab]['3'];
5616
  {
 
 
5617
  $mails = wppa_get_option( 'wppa_perm_failed_mails', array() );
5618
  if ( count( $mails ) ) {
5619
 
@@ -5641,1140 +5759,1084 @@ global $wppa_subtab_names;
5641
 
5642
  case 'share': {
5643
  // Social media related settings
5644
- $desc = $wppa_subtab_names[$tab]['1'];
5645
  {
5646
- wppa_setting_tab_description($desc);
5647
- wppa_setting_box_header_new($tab);
5648
-
5649
- $name = __('Hide when running', 'wp-photo-album-plus');
5650
- $desc = __('Hide the SM box when slideshow runs.', 'wp-photo-album-plus');
5651
- $help = '';
5652
- $slug = 'wppa_share_hide_when_running';
5653
- $html = wppa_checkbox($slug);
5654
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5655
 
5656
- $name = __('Show Share Box Widget', 'wp-photo-album-plus');
5657
- $desc = __('Display the share social media buttons box in widgets.', 'wp-photo-album-plus');
5658
- $help = __('This setting applies to normal slideshows in widgets, not to the slideshowwidget as that is a slideonly display.', 'wp-photo-album-plus');
5659
- $slug = 'wppa_share_on_widget';
5660
- $html = wppa_checkbox($slug);
5661
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
5662
 
5663
- $name = __('Show Share Buttons Thumbs', 'wp-photo-album-plus');
5664
- $desc = __('Display the share social media buttons under thumbnails.', 'wp-photo-album-plus');
5665
- $help = '';
5666
- $slug = 'wppa_share_on_thumbs';
5667
- $html = wppa_checkbox($slug);
5668
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
5669
 
5670
- $name = __('Show Share Buttons Mphoto', 'wp-photo-album-plus');
5671
- $desc = __('Display the share social media buttons on mphoto displays.', 'wp-photo-album-plus');
5672
- $help = '';
5673
- $slug = 'wppa_share_on_mphoto';
5674
- $html = wppa_checkbox($slug);
5675
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5676
 
5677
- $name = __('Void pages share', 'wp-photo-album-plus');
5678
- $desc = __('Do not show share on these pages', 'wp-photo-album-plus');
5679
- $help = __('Use this for pages that require the user is logged in', 'wp-photo-album-plus');
5680
- $slug = 'wppa_sm_void_pages';
5681
- $opts = $opts_page_post;
5682
- $opts[0] = __('--- Select one or more pages ---', 'wp-photo-album-plus');
5683
- $opts[] = __('--- none ---', 'wp-photo-album-plus');
5684
- $vals = $vals_page_post;
5685
- $vals[] = '0';
5686
- $html = wppa_select_m($slug, $opts, $vals, '', '', true);
5687
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
5688
 
5689
- $name = __('Show QR Code', 'wp-photo-album-plus');
5690
- $desc = __('Display the QR code in the share box.', 'wp-photo-album-plus');
5691
- $help = '';
5692
- $slug = 'wppa_share_qr';
5693
- $html = wppa_checkbox($slug);
5694
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
 
 
 
 
 
5695
 
5696
- $name = __('Show Twitter button', 'wp-photo-album-plus');
5697
- $desc = __('Display the Twitter button in the share box.', 'wp-photo-album-plus');
5698
- $help = '';
5699
- $slug = 'wppa_share_twitter';
5700
- $html = wppa_checkbox($slug);
5701
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
5702
 
5703
- $name = __('The creator\'s Twitter account', 'wp-photo-album-plus');
5704
- $desc = __('The Twitter @username a twitter card should be attributed to.', 'wp-photo-album-plus');
5705
- $help = __('If you want to share the image directly - by a so called twitter card - you must enter your twitter account name here', 'wp-photo-album-plus');
5706
- $slug = 'wppa_twitter_account';
5707
- $html = wppa_input($slug, '150px' );
5708
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
5709
 
5710
- $name = __('Show Google+ button', 'wp-photo-album-plus');
5711
- $desc = __('Display the Google+ button in the share box.', 'wp-photo-album-plus');
5712
- $help = '';
5713
- $slug = 'wppa_share_google';
5714
- $html = wppa_checkbox($slug);
5715
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
5716
 
5717
- $name = __('Show Pinterest button', 'wp-photo-album-plus');
5718
- $desc = __('Display the Pintrest button in the share box.', 'wp-photo-album-plus');
5719
- $help = '';
5720
- $slug = 'wppa_share_pinterest';
5721
- $html = wppa_checkbox($slug);
5722
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
5723
 
5724
- $name = __('Show LinkedIn button', 'wp-photo-album-plus');
5725
- $desc = __('Display the LinkedIn button in the share box.', 'wp-photo-album-plus');
5726
- $help = '';
5727
- $slug = 'wppa_share_linkedin';
5728
- $html = wppa_checkbox($slug);
5729
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5730
 
5731
- $name = __('Show Facebook share button', 'wp-photo-album-plus');
5732
- $desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
5733
- $help = '';
5734
- $slug = 'wppa_share_facebook';
5735
- $html = wppa_checkbox($slug);
5736
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5737
 
5738
- $name = __('Show Facebook like button', 'wp-photo-album-plus');
5739
- $desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
5740
- $help = '';
5741
- $slug = 'wppa_facebook_like';
5742
- $html = wppa_checkbox($slug);
5743
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
5744
 
5745
- $name = __('Display type', 'wp-photo-album-plus');
5746
- $desc = __('Select the Facebook button display type.', 'wp-photo-album-plus');
5747
- $help = '';
5748
- $slug = 'wppa_fb_display';
5749
- $opts = array( __('Standard', 'wp-photo-album-plus'), __('Button', 'wp-photo-album-plus'), __('Button with counter', 'wp-photo-album-plus'), __('Box with counter', 'wp-photo-album-plus') );
5750
- $vals = array( 'standard', 'button', 'button_count', 'box_count' );
5751
- $html = wppa_select($slug, $opts, $vals);
5752
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5753
 
5754
- $name = __('Show Facebook comment box', 'wp-photo-album-plus');
5755
- $desc = __('Display the Facebook comment dialog box in the share box.', 'wp-photo-album-plus');
5756
- $help = '';
5757
- $slug = 'wppa_facebook_comments';
5758
- $html = wppa_checkbox($slug);
5759
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
 
 
5760
 
5761
- $name = __('Facebook User Id', 'wp-photo-album-plus');
5762
- $desc = __('Enter your facebook user id to be able to moderate comments and sends', 'wp-photo-album-plus');
5763
- $help = '';
5764
- $slug = 'wppa_facebook_admin_id';
5765
- $html = wppa_input($slug, '200px');
5766
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
5767
 
5768
- $name = __('Facebook App Id', 'wp-photo-album-plus');
5769
- $desc = __('Enter your facebook app id to be able to moderate comments and sends', 'wp-photo-album-plus');
5770
- $help = '';
5771
- $slug = 'wppa_facebook_app_id';
5772
- $html = wppa_input($slug, '200px');
5773
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
5774
 
5775
- $name = __('Facebook js SDK', 'wp-photo-album-plus');
5776
- $desc = __('Load Facebook js SDK', 'wp-photo-album-plus');
5777
- $help = __('Uncheck this box only when there is a conflict with an other plugin that also loads the Facebook js SDK.', 'wp-photo-album-plus');
5778
- $slug = 'wppa_load_facebook_sdk';
5779
- $html = wppa_checkbox($slug);
5780
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
 
 
 
 
 
 
 
5781
 
5782
- $name = __('Share single image', 'wp-photo-album-plus');
5783
- $desc = __('Share a link to a single image, not the slideshow.', 'wp-photo-album-plus');
5784
- $help = __('The sharelink points to a page with a single image rather than to the page with the photo in the slideshow.', 'wp-photo-album-plus');
5785
- $slug = 'wppa_share_single_image';
5786
- $html = wppa_checkbox($slug);
5787
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
5788
 
5789
- wppa_setting_box_footer_new();
5790
  }
5791
  // Search Engine Optimalisation settings
5792
- $desc = $wppa_subtab_names[$tab]['2'];
5793
  {
5794
- wppa_setting_tab_description($desc);
5795
- wppa_setting_box_header_new($tab);
 
5796
 
5797
- $name = __('Meta on page', 'wp-photo-album-plus');
5798
- $desc = __('Meta tags for photos on the page.', 'wp-photo-album-plus');
5799
- $help = __('If checked, the header of the page will contain metatags that refer to featured photos on the page in the page context.', 'wp-photo-album-plus');
5800
- $slug = 'wppa_meta_page';
5801
- $html = wppa_checkbox($slug);
5802
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5803
 
5804
- $name = __('Meta all', 'wp-photo-album-plus');
5805
- $desc = __('Meta tags for all featured photos.', 'wp-photo-album-plus');
5806
- $help = __('If checked, the header of the page will contain metatags that refer to all featured photo files.', 'wp-photo-album-plus');
5807
- $help .= '<br />'.__('If you have many featured photos, you might wish to uncheck this item to reduce the size of the page header.', 'wp-photo-album-plus');
5808
- $slug = 'wppa_meta_all';
5809
- $html = wppa_checkbox($slug);
5810
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
5811
 
5812
- $name = __('Add og meta tags', 'wp-photo-album-plus');
5813
- $desc = __('Add og meta tags to the page header.', 'wp-photo-album-plus');
5814
- $help = '';
5815
- $slug = 'wppa_og_tags_on';
5816
- $warn = __('Turning this off may affect the functionality of social media items in the share box that rely on open graph tags information.', 'wp-photo-album-plus');
5817
- $html = wppa_checkbox_warn_off($slug, '', '', $warn, false);
5818
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
5819
 
5820
- $name = __('Image Alt attribute type', 'wp-photo-album-plus');
5821
- $desc = __('Select kind of HTML alt="" content for images.', 'wp-photo-album-plus');
5822
- $help = '';
5823
- $slug = 'wppa_alt_type';
5824
- $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('photo name', 'wp-photo-album-plus'), __('name without file-ext', 'wp-photo-album-plus'), __('set in album admin', 'wp-photo-album-plus') );
5825
- $vals = array( 'none', 'fullname', 'namenoext', 'custom');
5826
- $html = wppa_select($slug, $opts, $vals);
5827
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5828
 
5829
- wppa_setting_box_footer_new();
5830
  }
5831
  }
5832
  break;
5833
 
5834
  case 'system': {
5835
  // System behaviour related settings
5836
- $desc = $wppa_subtab_names[$tab]['1'];
5837
  {
5838
- wppa_setting_tab_description($desc);
5839
- wppa_setting_box_header_new($tab);
5840
-
5841
- $name = __('Modal boxes', 'wp-photo-album-plus');
5842
- $desc = __('Place Ajax rendered content in modal boxes', 'wp-photo-album-plus');
5843
- $help = '';
5844
- $slug = 'wppa_ajax_render_modal';
5845
- $html = wppa_checkbox($slug);
5846
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5847
-
5848
- $name = __('Ajax scroll', 'wp-photo-album-plus');
5849
- $desc = __('Scroll into position after an ajax call changed the page content', 'wp-photo-album-plus');
5850
- $help = '';
5851
- $slug = 'wppa_ajax_scroll';
5852
- $html = wppa_checkbox($slug);
5853
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
5854
-
5855
- $name = __('Non Ajax scroll', 'wp-photo-album-plus');
5856
- $desc = __('Scroll into position after a wppa link changed the page content', 'wp-photo-album-plus');
5857
- $help = '';
5858
- $slug = 'wppa_non_ajax_scroll';
5859
- $html = wppa_checkbox($slug);
5860
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
5861
-
5862
- $name = __('Photo names in urls', 'wp-photo-album-plus');
5863
- $desc = __('Display photo names in urls.', 'wp-photo-album-plus');
5864
- $help = __('Urls to wppa+ displays will contain photonames instead of numbers.', 'wp-photo-album-plus');
5865
- $help .= '<br />'.__('It is your responsibility to avoid duplicate names of photos in the same album.', 'wp-photo-album-plus');
5866
- $slug = 'wppa_use_photo_names_in_urls';
5867
- $html = wppa_checkbox($slug);
5868
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5869
-
5870
- $name = __('Album names in urls', 'wp-photo-album-plus');
5871
- $desc = __('Display album names in urls.', 'wp-photo-album-plus');
5872
- $help = __('Urls to wppa+ displays will contain albumnames instead of numbers.', 'wp-photo-album-plus');
5873
- $help .= '<br />'.__('It is your responsibility to avoid duplicate names of albums in the system.', 'wp-photo-album-plus');
5874
- $slug = 'wppa_use_album_names_in_urls';
5875
- $html = wppa_checkbox($slug);
5876
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
5877
-
5878
- $name = __('Use short query args', 'wp-photo-album-plus');
5879
- $desc = __('Use &album=... &photo=...', 'wp-photo-album-plus');
5880
- $help = __('Urls to wppa+ displays will contain &album=... &photo=... instead of &wppa-album=... &wppa-photo=...', 'wp-photo-album-plus');
5881
- $help .= '<br />'.__('Use this setting only when there are no conflicts with other plugins that may interprete arguments like &album= etc.', 'wp-photo-album-plus');
5882
- $slug = 'wppa_use_short_qargs';
5883
- $html = wppa_checkbox($slug);
5884
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
5885
 
5886
- $name = __('Enable pretty links', 'wp-photo-album-plus');
5887
- $desc = __('Enable the generation and understanding of pretty links.', 'wp-photo-album-plus');
5888
- $help = __('If checked, links to social media and the qr code will have "/token1/token2/" etc instead of "&arg1=..&arg2=.." etc.', 'wp-photo-album-plus');
5889
- $help .= '<br />'.__('These types of links will be interpreted and cause a redirection on entering.', 'wp-photo-album-plus');
5890
- $help .= '<br />'.__('It is recommended to check this box. It shortens links dramatically and simplifies qr codes.', 'wp-photo-album-plus');
5891
- $help .= '<br />'.__('However, you may encounter conflicts with themes and/or other plugins, so test it throughly!', 'wp-photo-album-plus');
5892
- $help .= '<br />'.__('Table IV-A2 (Photo names in urls) must be UNchecked for this setting to work!', 'wp-photo-album-plus');
5893
- $slug = 'wppa_use_pretty_links';
5894
- $opts = array( __( 'None', 'wp-photo-album-plus' ),
5895
- __( 'Classic', 'wp-photo-album-plus' ),
5896
- __( 'Compressed', 'wp-photo-album-plus' ),
5897
- );
5898
- $vals = array( '-none-', 'classic', 'compressed' );
5899
- $html = wppa_select($slug, $opts, $vals );
5900
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
5901
 
5902
- $name = __('Enable encrypted links', 'wp-photo-album-plus');
5903
- $desc = __('Encrypt album and photo ids in links.', 'wp-photo-album-plus');
5904
- $help = '';
5905
- $slug = 'wppa_use_encrypted_links';
5906
- $onch = 'alert(\''.__('The page will be reloaded.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
5907
- $html = wppa_checkbox($slug, $onch);
5908
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
5909
 
5910
- $name = __('Refuse unencrypted', 'wp-photo-album-plus');
5911
- $desc = __('When encrypted is enabled, refuse unencrypted urls.', 'wp-photo-album-plus');
5912
- $help = '';
5913
- $slug = 'wppa_refuse_unencrypted';
5914
- $html = wppa_checkbox($slug);
5915
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
5916
 
5917
- $name = __('Update addressline', 'wp-photo-album-plus');
5918
- $desc = __('Update the addressline after an ajax action or next slide.', 'wp-photo-album-plus');
5919
- $help = __('If checked, refreshing the page will show the current content and the browsers back and forth arrows will browse the history on the page.', 'wp-photo-album-plus');
5920
- $help .= '<br />'.__('If unchecked, refreshing the page will re-display the content of the original page.', 'wp-photo-album-plus');
5921
- $help .= '<br />'.__('This will only work on browsers that support history.pushState() and therefor NOT in IE', 'wp-photo-album-plus');
5922
- $slug = 'wppa_update_addressline';
5923
- $html = wppa_checkbox($slug);
5924
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
5925
 
5926
- $name = __('Render shortcode always', 'wp-photo-album-plus');
5927
- $desc = __('This will skip the check on proper initialisation.', 'wp-photo-album-plus');
5928
- $help = __('This setting is required for certain themes like Gantry to prevent the display of wppa placeholders like [WPPA+ Photo display].', 'wp-photo-album-plus');
5929
- $slug = 'wppa_render_shortcode_always';
5930
- $html = wppa_checkbox($slug);
5931
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5932
 
5933
- $name = __('Track viewcounts', 'wp-photo-album-plus');
5934
- $desc = __('Register number of views of albums and photos.', 'wp-photo-album-plus');
5935
- $help = '';
5936
- $slug = 'wppa_track_viewcounts';
5937
- $html = wppa_checkbox($slug);
5938
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5939
 
5940
- $name = __('Track clickcounts', 'wp-photo-album-plus');
5941
- $desc = __('Register number of clicks on photos that link to an url.', 'wp-photo-album-plus');
5942
- $help = '';
5943
- $slug = 'wppa_track_clickcounts';
5944
- $html = wppa_checkbox($slug);
5945
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
5946
 
5947
- $name = __('Auto page', 'wp-photo-album-plus');
5948
- $desc = __('Create a wp page for every fullsize image.', 'wp-photo-album-plus');
5949
- $help = '';
5950
- $slug = 'wppa_auto_page';
5951
- $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
5952
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5953
 
5954
- $name = __('Auto page display', 'wp-photo-album-plus');
5955
- $desc = __('The type of display on the autopage pages.', 'wp-photo-album-plus');
5956
- $help = '';
5957
- $slug = 'wppa_auto_page_type';
5958
- $opts = array(__('Single photo', 'wp-photo-album-plus'), __('Media type photo', 'wp-photo-album-plus'), __('In the style of a slideshow', 'wp-photo-album-plus') );
5959
- $vals = array('photo', 'mphoto', 'slphoto');
5960
- $html = wppa_select($slug, $opts, $vals);
5961
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
5962
 
5963
- $name = __('Auto page links', 'wp-photo-album-plus');
5964
- $desc = __('The location for the pagelinks.', 'wp-photo-album-plus');
5965
- $help = '';
5966
- $slug = 'wppa_auto_page_links';
5967
- $opts = array(__('none', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'), __('At top and bottom', 'wp-photo-album-plus'));
5968
- $vals = array('none', 'top', 'bottom', 'both');
5969
- $html = wppa_select($slug, $opts, $vals);
5970
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
5971
 
5972
- $name = __('Defer javascript', 'wp-photo-album-plus');
5973
- $desc = __('Put javascript near the end of the page.', 'wp-photo-album-plus');
5974
- $help = (__('If checkd: May fix layout problems and broken slideshows. May speed up or slow down page appearing.', 'wp-photo-album-plus'));
5975
- $slug = 'wppa_defer_javascript';
5976
- $html = wppa_checkbox($slug);
5977
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
5978
 
5979
- $name = __('Inline styles', 'wp-photo-album-plus');
5980
- $desc = __('Set style specifications inline.', 'wp-photo-album-plus');
5981
- $help = __('If checked: May fix layout problems, but slows down page appearing.', 'wp-photo-album-plus');
5982
- $slug = 'wppa_inline_css';
5983
- $html = wppa_checkbox($slug);
5984
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
5985
 
5986
- $name = __('Custom style', 'wp-photo-album-plus');
5987
- $desc = __('Enter custom style specs here.', 'wp-photo-album-plus');
5988
- $help = '';
5989
- $slug = 'wppa_custom_style';
5990
- $html = wppa_textarea($slug, $name);
5991
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
5992
 
5993
- $name = __('Custom style Chrome', 'wp-photo-album-plus');
5994
- $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
5995
- $help = '';
5996
- $slug = 'wppa_custom_style_chrome';
5997
- $html = wppa_textarea($slug, $name);
5998
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
5999
 
6000
- $name = __('Custom style Firefox', 'wp-photo-album-plus');
6001
- $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6002
- $help = '';
6003
- $slug = 'wppa_custom_style_firefox';
6004
- $html = wppa_textarea($slug, $name);
6005
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
6006
 
6007
- $name = __('Custom style Safari', 'wp-photo-album-plus');
6008
- $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6009
- $help = '';
6010
- $slug = 'wppa_custom_style_safari';
6011
- $html = wppa_textarea($slug, $name);
6012
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
6013
 
6014
- $name = __('Custom style Edge', 'wp-photo-album-plus');
6015
- $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6016
- $help = '';
6017
- $slug = 'wppa_custom_style_edge';
6018
- $html = wppa_textarea($slug, $name);
6019
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
6020
 
6021
- $name = __('Custom style IE', 'wp-photo-album-plus');
6022
- $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6023
- $help = '';
6024
- $slug = 'wppa_custom_style_ie';
6025
- $html = wppa_textarea($slug, $name);
6026
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
6027
 
6028
- $name = __('Custom style Opera', 'wp-photo-album-plus');
6029
- $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6030
- $help = '';
6031
- $slug = 'wppa_custom_style_opera';
6032
- $html = wppa_textarea($slug, $name);
6033
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
6034
 
6035
- $name = __('Use customized style file', 'wp-photo-album-plus');
6036
- $desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
6037
- $help = '';
6038
- $slug = 'wppa_use_custom_style_file';
6039
- $html = wppa_checkbox($slug);
6040
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
6041
 
6042
- $name = __('Use customized theme file', 'wp-photo-album-plus');
6043
- $desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
6044
- $help = '';
6045
- $slug = 'wppa_use_custom_theme_file';
6046
- $html = wppa_checkbox($slug);
6047
- wppa_setting_new($slug, '27', $name, $desc, $html, $help);
6048
 
6049
- $name = __('Enable photo html access', 'wp-photo-album-plus');
6050
- $desc = __('Creates .htaccess files in .../uploads/wppa/ and .../uploads/wppa/thumbs/', 'wp-photo-album-plus');
6051
- $help = '';
6052
- $slug = 'wppa_cre_uploads_htaccess';
6053
- $opts = array( __('create \'all access\' .htaccess files', 'wp-photo-album-plus'),
6054
- __('remove .htaccess files', 'wp-photo-album-plus'),
6055
- __('create \'no hotlinking\' .htaccess files', 'wp-photo-album-plus'),
6056
- __('do not change existing .htaccess file(s)', 'wp-photo-album-plus'),
6057
- );
6058
- $vals = array( 'grant',
6059
- 'remove',
6060
- 'nohot',
6061
- 'custom',
6062
- );
6063
- $html = wppa_select($slug, $opts, $vals);
6064
- wppa_setting_new($slug, '28', $name, $desc, $html, $help);
6065
 
6066
- $name = __('Lazy load', 'wp-photo-album-plus');
6067
- $desc = __('Load photos from the server at the moment they will show up.', 'wp-photo-album-plus');
6068
- $help = '';
6069
- $slug = 'wppa_lazy';
6070
- $html = wppa_checkbox($slug);
6071
- wppa_setting_new($slug, '29', $name, $desc, $html, $help);
6072
 
6073
- $name = __('Thumbs first', 'wp-photo-album-plus');
6074
- $desc = __('When displaying album content: thumbnails before subalbums.', 'wp-photo-album-plus');
6075
- $help = '';
6076
- $slug = 'wppa_thumbs_first';
6077
- $html = wppa_checkbox($slug);
6078
- wppa_setting_new($slug, '30', $name, $desc, $html, $help);
6079
 
6080
- $name = __('Login links', 'wp-photo-album-plus');
6081
- $desc = __('You must login to... links to login page.', 'wp-photo-album-plus');
6082
- $help = '';
6083
- $slug = 'wppa_login_links';
6084
- $onch = 'wppaRefreshAfter();';
6085
- $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'miscadv', '1', '6', 'login_links' );
6086
- wppa_setting_new($slug, '31', $name, $desc, $html, $help);
6087
 
6088
- $name = __('Relative urls', 'wp-photo-album-plus');
6089
- $desc = __('Use relative urls only.', 'wp-photo-album-plus');
6090
- $help = '';
6091
- $slug = 'wppa_relative_urls';
6092
- $html = wppa_checkbox($slug);
6093
- wppa_setting_new($slug, '32', $name, $desc, $html, $help);
6094
 
6095
- $name = __('Capitalize tags and cats', 'wp-photo-album-plus');
6096
- $desc = __('Format tags and cats to start with one capital character', 'wp-photo-album-plus');
6097
- $help = '';
6098
- $slug = 'wppa_capitalize_tags';
6099
- $html = wppa_checkbox($slug);
6100
- wppa_setting_new($slug, '33', $name, $desc, $html, $help);
6101
-
6102
- $name = __('Enable Admins Choice', 'wp-photo-album-plus');
6103
- $desc = __('Enable the creation of zipfiles with selected photos.', 'wp-photo-album-plus');
6104
- $help = __('Activate the Admins Choice widget to make the zipfiles downloadable.', 'wp-photo-album-plus');
6105
- $slug = 'wppa_admins_choice';
6106
- $opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
6107
- __( 'Admins and superusers', 'wp-photo-album-plus' ),
6108
- __( 'All loggedin users', 'wp-photo-album-plus' )
6109
- );
6110
- $vals = array( 'none', 'admin', 'login' );
6111
- $html = wppa_select($slug, $opts, $vals);
6112
- wppa_setting_new($slug, '34', $name, $desc, $html, $help);
6113
 
6114
- $name = __('Tag Admins Choice', 'wp-photo-album-plus');
6115
- $desc = __('Tag photos with Admins Choice user', 'wp-photo-album-plus');
6116
- $help = '';
6117
- $slug = 'wppa_choice_is_tag';
6118
- $html = wppa_checkbox($slug);
6119
- wppa_setting_new($slug, '35', $name, $desc, $html, $help);
6120
 
6121
- $name = __('Admins choice me only', 'wp-photo-album-plus');
6122
- $desc = __('Shows the link to the current users zipfile only', 'wp-photo-album-plus');
6123
- $help = '';
6124
- $slug = 'wppa_admins_choice_meonly';
6125
- $html = wppa_checkbox($slug);
6126
- wppa_setting_new($slug, '36', $name, $desc, $html, $help);
6127
-
6128
- $name = __('Admins choice action', 'wp-photo-album-plus');
6129
- $desc = __('Select the action to be taken after clicking the "My Choice" link', 'wp-photo-album-plus');
6130
- $help = __('If set to album, the link is only shown to users who have album admin rights', 'wp-photo-album-plus');
6131
- $slug = 'wppa_admins_choice_action';
6132
- $opts = array(__('To zipfile', 'wp-photo-album-plus'), __('To album', 'wp-photo-album-plus'), __('To album and zip', 'wp-photo-album-plus'));
6133
- $vals = array('zip', 'album', 'both');
6134
- $html = wppa_select($slug, $opts, $vals);
6135
- wppa_setting_new($slug, '37', $name, $desc, $html, $help);
6136
 
6137
- $name = __('Make owner like photoname', 'wp-photo-album-plus');
6138
- $desc = __('Change the owner to the user who\'s display name equals photoname.', 'wp-photo-album-plus');
6139
- $help = '';
6140
- $slug = 'wppa_owner_to_name';
6141
- $html = wppa_checkbox($slug);
6142
- wppa_setting_new($slug, '38', $name, $desc, $html, $help);
6143
 
6144
- $name = __('No rightclick', 'wp-photo-album-plus');
6145
- $desc = __('Disable right mouseclick on all images', 'wp-photo-album-plus');
6146
- $help = '';
6147
- $slug = 'wppa_no_rightclick';
6148
- $html = wppa_checkbox( $slug );
6149
- wppa_setting_new($slug, '39', $name, $desc, $html, $help);
6150
 
6151
- $name = __('Nice scroll on window', 'wp-photo-album-plus');
6152
- $desc = __('Apply the nice scroller on the browserwindow', 'wp-photo-album-plus');
6153
- $help = '';
6154
- $slug = 'wppa_nicescroll_window';
6155
- $html = wppa_checkbox( $slug );
6156
- wppa_setting_new($slug, '40', $name, $desc, $html, $help);
6157
-
6158
- $name = __('Nice scroller options', 'wp-photo-album-plus');
6159
- $desc = __('The nice scroller configuration options', 'wp-photo-album-plus');
6160
- $help = __('Enter options, one per line, seperated by commas(,).', 'wp-photo-album-plus');
6161
- $help .= '<br />' .
6162
- sprintf( __('Click %s here %s for documentation and a full list of available options', 'wp-photo-album-plus'),
6163
- '<a href="' . WPPA_URL . '/vendor/nicescroll/README.txt" target="_blank" >',
6164
- '</a>'
6165
- ) .
6166
- '<br />';
6167
- $slug = 'wppa_nicescroll_opts';
6168
- $html = wppa_textarea( $slug );
6169
- wppa_setting_new($slug, '41', $name, $desc, $html, $help);
6170
-
6171
- $name = __('Response speed', 'wp-photo-album-plus');
6172
- $desc = __('The speed of responsive size adjustments', 'wp-photo-album-plus');
6173
- $help = '';
6174
- $slug = 'wppa_response_speed';
6175
- $opts = array( __( 'very slow', 'wp-photo-album-plus' ),
6176
- __( 'slow', 'wp-photo-album-plus' ),
6177
- __( 'normal', 'wp-photo-album-plus' ),
6178
- __( 'fast', 'wp-photo-album-plus' ),
6179
- __( 'very fast', 'wp-photo-album-plus' ),
6180
- __( 'off', 'wp-photo-album-plus' ),
6181
- );
6182
- $vals = array( '750', '500', '350', '200', '100', '0' );
6183
- $html = wppa_select($slug, $opts, $vals);
6184
- wppa_setting_new( $slug, '42', $name, $desc, $html, $help );
6185
 
6186
- $name = __('Enable request info', 'wp-photo-album-plus');
6187
- $desc = __('Shows a button under the slideshow image to request info by email', 'wp-photo-album-plus');
6188
- $help = '';
6189
- $slug = 'wppa_request_info';
6190
- $html = wppa_checkbox( $slug );
6191
- wppa_setting_new($slug, '43', $name, $desc, $html, $help);
6192
 
6193
- $name = __('Dialog text', 'wp-photo-album-plus');
6194
- $desc = __('The text to display in the dialog box', 'wp-photo-album-plus');
6195
- $help = '';
6196
- $slug = 'wppa_request_info_text';
6197
- $html = wppa_input($slug, '90%');
6198
- wppa_setting_new($slug, '44', $name, $desc, $html, $help);
6199
 
6200
- $name = __('Gallery not A<b></b>lbum', 'wp-photo-album-plus');
6201
- $desc = __('Use the name Gallery rather than A<b></b>lbum', 'wp-photo-album-plus');
6202
- $help = '';
6203
- $slug = 'wppa_album_use_gallery';
6204
- $html = wppa_checkbox($slug);
6205
- wppa_setting_new($slug, '45', $name, $desc, $html, $help);
6206
 
6207
- $name = __('Fullscreen policy', 'wp-photo-album-plus');
6208
- $desc = __('Select the desired fullscreen policy', 'wp-photo-album-plus');
6209
- $help = '';
6210
- $slug = 'wppa_fs_policy';
6211
- $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('On lightbox only', 'wp-photo-album-plus'), __('The entire page', 'wp-photo-album-plus') );
6212
- $vals = array('none', 'lightbox', 'global');
6213
- $html = wppa_select($slug, $opts, $vals, '');
6214
- wppa_setting_new($slug, '46', $name, $desc, $html, $help);
6215
 
6216
- wppa_setting_box_footer_new();
6217
  }
6218
  }
6219
  break;
6220
 
6221
  case 'files': {
6222
  // Original source file related settings
6223
- $desc = $wppa_subtab_names[$tab]['1'];
6224
  {
6225
- wppa_setting_tab_description($desc);
6226
- wppa_setting_box_header_new($tab);
 
6227
 
6228
- $name = __('Keep sourcefiles', 'wp-photo-album-plus');
6229
- $desc = __('Keep the original uploaded and imported photo files.', 'wp-photo-album-plus');
6230
- $help = __('The files will be kept in a separate directory with subdirectories for each album', 'wp-photo-album-plus');
6231
- $help .= '<br />'.__('These files can be used to update the photos used in displaying in wppa+ and optionally for downloading original, un-downsized images.', 'wp-photo-album-plus');
6232
- $slug = 'wppa_keep_source';
6233
- $html = wppa_checkbox($slug);
6234
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
6235
 
6236
- $name = __('Source directory', 'wp-photo-album-plus');
6237
- $desc = __('The path to the directory where the original photofiles will be saved.', 'wp-photo-album-plus');
6238
- $help = __('You may change the directory path, but it can not be an url.', 'wp-photo-album-plus');
6239
- $help .= '<br />'.__('The parent of the directory that you enter here must exist and be writable.', 'wp-photo-album-plus');
6240
- $help .= '<br />'.__('The directory itsself will be created if it does not exist yet.', 'wp-photo-album-plus');
6241
- $slug = 'wppa_source_dir';
6242
- $html = wppa_input($slug, '90%');
6243
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
6244
 
6245
- $name = __('Keep sync', 'wp-photo-album-plus');
6246
- $desc = __('Keep source synchronously with wppa system.', 'wp-photo-album-plus');
6247
- $help = __('If checked, photos that are deleted from wppa, will also be removed from the sourcefiles.', 'wp-photo-album-plus');
6248
- $help .= '<br />'.__('Also, copying or moving photos to different albums, will also copy/move the sourcefiles.', 'wp-photo-album-plus');
6249
- $slug = 'wppa_keep_sync';
6250
- $html = wppa_checkbox($slug);
6251
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
6252
 
6253
- wppa_setting_box_footer_new();
6254
  }
6255
  }
6256
  break;
6257
 
6258
  case 'new': {
6259
  // New albums / photos related settings
6260
- $desc = $wppa_subtab_names[$tab]['1'];
6261
  {
6262
- wppa_setting_tab_description($desc);
6263
- wppa_setting_box_header_new($tab);
 
6264
 
6265
- $opts = array( __('--- off ---', 'wp-photo-album-plus'),
6266
- sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus'), '1'),
6267
- sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
6268
- sprintf( _n('%d day', '%d days', '2', 'wp-photo-album-plus'), '2'),
6269
- sprintf( _n('%d day', '%d days', '3', 'wp-photo-album-plus'), '3'),
6270
- sprintf( _n('%d day', '%d days', '4', 'wp-photo-album-plus'), '4'),
6271
- sprintf( _n('%d day', '%d days', '5', 'wp-photo-album-plus'), '5'),
6272
- sprintf( _n('%d day', '%d days', '6', 'wp-photo-album-plus'), '6'),
6273
- sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus'), '1'),
6274
- sprintf( _n('%d day', '%d days', '8', 'wp-photo-album-plus'), '8'),
6275
- sprintf( _n('%d day', '%d days', '9', 'wp-photo-album-plus'), '9'),
6276
- sprintf( _n('%d day', '%d days', '10', 'wp-photo-album-plus'), '10'),
6277
- sprintf( _n('%d week', '%d weeks', '2', 'wp-photo-album-plus'), '2'),
6278
- sprintf( _n('%d week', '%d weeks', '3', 'wp-photo-album-plus'), '3'),
6279
- sprintf( _n('%d week', '%d weeks', '4', 'wp-photo-album-plus'), '4'),
6280
- sprintf( _n('%d month', '%d months', '1', 'wp-photo-album-plus'), '1'),
6281
- );
6282
- $vals = array( 0,
6283
- 60*60,
6284
- 60*60*24,
6285
- 60*60*24*2,
6286
- 60*60*24*3,
6287
- 60*60*24*4,
6288
- 60*60*24*5,
6289
- 60*60*24*6,
6290
- 60*60*24*7,
6291
- 60*60*24*8,
6292
- 60*60*24*9,
6293
- 60*60*24*10,
6294
- 60*60*24*7*2,
6295
- 60*60*24*7*3,
6296
- 60*60*24*7*4,
6297
- 60*60*24*30,
6298
- );
6299
 
6300
- $name = __('New Album', 'wp-photo-album-plus');
6301
- $desc = __('Maximum time an album is indicated as New', 'wp-photo-album-plus');
6302
- $help = '';
6303
- $slug = 'wppa_max_album_newtime';
6304
- $html = wppa_select($slug, $opts, $vals);
6305
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
6306
 
6307
- $name = __('New Photo', 'wp-photo-album-plus');
6308
- $desc = __('Maximum time a photo is indicated as New', 'wp-photo-album-plus');
6309
- $help = '';
6310
- $slug = 'wppa_max_photo_newtime';
6311
- $html = wppa_select($slug, $opts, $vals);
6312
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
6313
 
6314
- $name = __('Modified Album', 'wp-photo-album-plus');
6315
- $desc = __('Maximum time an album is indicated as Modified', 'wp-photo-album-plus');
6316
- $help = '';
6317
- $slug = 'wppa_max_album_modtime';
6318
- $html = wppa_select($slug, $opts, $vals);
6319
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
6320
 
6321
- $name = __('Modified Photo', 'wp-photo-album-plus');
6322
- $desc = __('Maximum time a photo is indicated as Modified', 'wp-photo-album-plus');
6323
- $help = '';
6324
- $slug = 'wppa_max_photo_modtime';
6325
- $html = wppa_select($slug, $opts, $vals);
6326
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
6327
 
6328
- $name = __('Use text labels', 'wp-photo-album-plus');
6329
- $desc = __('Use editable text for the New and Modified labels', 'wp-photo-album-plus');
6330
- $help = __('If UNticked, you can specify the urls for custom images to be used.', 'wp-photo-album-plus');
6331
- $slug = 'wppa_new_mod_label_is_text';
6332
- $onch = 'wppaRefreshAfter();';
6333
- $html = wppa_checkbox($slug,$onch);
6334
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
6335
 
6336
- $opts = array(
6337
- __('Red', 'wp-photo-album-plus'),
6338
- __('Orange', 'wp-photo-album-plus'),
6339
- __('Yellow', 'wp-photo-album-plus'),
6340
- __('Green', 'wp-photo-album-plus'),
6341
- __('Blue', 'wp-photo-album-plus'),
6342
- __('Purple', 'wp-photo-album-plus'),
6343
- __('Black/white', 'wp-photo-album-plus'),
6344
- );
6345
- $vals = array(
6346
- 'red',
6347
- 'orange',
6348
- 'yellow',
6349
- 'green',
6350
- 'blue',
6351
- 'purple',
6352
- 'black',
6353
- );
6354
 
6355
- $name = __('New label', 'wp-photo-album-plus');
6356
- $desc = __('Specify the "New" indicator details.', 'wp-photo-album-plus');
6357
- $help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
6358
- $slug1 = 'wppa_new_label_text';
6359
- $slug2 = 'wppa_new_label_color';
6360
- $html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
6361
- $html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
6362
- wppa_setting_new($slug1, '6', $name, $desc, $html1.' '.$html2, $help);
6363
-
6364
- $name = __('Modified label', 'wp-photo-album-plus');
6365
- $desc = __('Specify the "Modified" indicator details.', 'wp-photo-album-plus');
6366
- $help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
6367
- $slug1 = 'wppa_mod_label_text';
6368
- $slug2 = 'wppa_mod_label_color';
6369
- $html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
6370
- $html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
6371
- wppa_setting_new($slug1, '7', $name, $desc, $html1.' '.$html2, $help);
6372
-
6373
- $name = __('New label', 'wp-photo-album-plus');
6374
- $desc = __('Specify the "New" indicator url.', 'wp-photo-album-plus');
6375
- $help = ' ';
6376
- $slug = 'wppa_new_label_url';
6377
- $html = wppa_input($slug, '300px');
6378
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
6379
 
6380
- $name = __('Modified label', 'wp-photo-album-plus');
6381
- $desc = __('Specify the "Modified" indicator url.', 'wp-photo-album-plus');
6382
- $help = ' ';
6383
- $slug = 'wppa_mod_label_url';
6384
- $html = wppa_input($slug, '300px');
6385
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
6386
 
6387
- $name = __('Limit LasTen New', 'wp-photo-album-plus');
6388
- $desc = __('Limits the LasTen photos to those that are \'New\', or newly modified.', 'wp-photo-album-plus');
6389
- $help = __('If you tick this box and configured the new photo time, you can even limit the number by the setting in Table I-F7, or set that number to an unlikely high value.', 'wp-photo-album-plus');
6390
- $slug = 'wppa_lasten_limit_new';
6391
- $html = wppa_checkbox($slug);
6392
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
6393
 
6394
- $name = __('LasTen use Modified', 'wp-photo-album-plus');
6395
- $desc = __('Use the time modified rather than time upload for LasTen widget/shortcode.', 'wp-photo-album-plus');
6396
- $help = '';
6397
- $slug = 'wppa_lasten_use_modified';
6398
- $html = wppa_checkbox($slug);
6399
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
6400
 
6401
- $name = __('Apply Newphoto desc', 'wp-photo-album-plus');
6402
- $desc = __('Give each new photo a standard description.', 'wp-photo-album-plus');
6403
- $help = __('If checked, each new photo will get the description (template) as specified in the next item.', 'wp-photo-album-plus');
6404
- $slug = 'wppa_apply_newphoto_desc';
6405
- $html = wppa_checkbox($slug);
6406
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
6407
 
6408
- $name = __('New photo desc', 'wp-photo-album-plus');
6409
- $desc = __('The description (template) to add to a new photo.', 'wp-photo-album-plus');
6410
- $help = __('Enter the default description.', 'wp-photo-album-plus');
6411
- $help .= '<br />'.__('If you use html, please check item B-1 of this table.', 'wp-photo-album-plus');
6412
- $help .= '<br />'.__('If you tick the checkbox, linebreaks and redundand spaces will be removed.', 'wp-photo-album-plus');
6413
- $slug = 'wppa_newphoto_description';
6414
- $slug2 = 'wppa_compress_newdesc';
6415
- $html = wppa_textarea($slug, $name) .
6416
- '<br />' .
6417
- __('Compress', 'wp-photo-album-plus') .
6418
- wppa_checkbox($slug2);
6419
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
6420
 
6421
- $name = __('New photo owner', 'wp-photo-album-plus');
6422
- $desc = __('The owner of a new uploaded photo.', 'wp-photo-album-plus');
6423
- $help = __('If you leave this blank, the uploader will be set as the owner', 'wp-photo-album-plus');
6424
- $slug = 'wppa_newphoto_owner';
6425
- $html = wppa_input($slug, '50px', '', __('leave blank or enter login name', 'wp-photo-album-plus'));
6426
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
6427
-
6428
- $name = __('Upload limit', 'wp-photo-album-plus');
6429
- $desc = __('New albums are created with this upload limit.', 'wp-photo-album-plus');
6430
- $help = __('Administrators can change the limit settings in the "Edit Album Information" admin page.', 'wp-photo-album-plus');
6431
- $help .= '<br />'.(__('A value of 0 means: no limit.', 'wp-photo-album-plus'));
6432
- $slug = 'wppa_upload_limit_count';
6433
- $html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus'));
6434
- $slug = 'wppa_upload_limit_time';
6435
- $opts = array( __('for ever', 'wp-photo-album-plus'),
6436
- __('per hour', 'wp-photo-album-plus'),
6437
- __('per day', 'wp-photo-album-plus'),
6438
- __('per week', 'wp-photo-album-plus'),
6439
- __('per month', 'wp-photo-album-plus'), // 30 days
6440
- __('per year', 'wp-photo-album-plus')); // 364 days
6441
- $vals = array( '0', '3600', '86400', '604800', '2592000', '31449600');
6442
- $html .= wppa_select($slug, $opts, $vals);
6443
- wppa_setting_new(false, '15', $name, $desc, $html, $help);
6444
-
6445
- $name = __('Default parent', 'wp-photo-album-plus');
6446
- $desc = __('The parent album of new albums.', 'wp-photo-album-plus');
6447
- $help = '';
6448
- $slug = 'wppa_default_parent';
6449
- $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
6450
- $vals = array( '0', '-1');
6451
- $albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
6452
- if ( $albs ) {
6453
- foreach ( $albs as $alb ) {
6454
- $opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
6455
- $vals[] = $alb['id'];
 
6456
  }
6457
- }
6458
- $html = wppa_select($slug, $opts, $vals);
6459
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
6460
 
6461
- $name = __('Default parent always', 'wp-photo-album-plus');
6462
- $desc = __('The parent album of new albums is always the default, except for administrators.', 'wp-photo-album-plus');
6463
- $help = '';
6464
- $slug = 'wppa_default_parent_always';
6465
- $html = wppa_checkbox($slug);
6466
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
6467
 
6468
- $name = __('Grant an album', 'wp-photo-album-plus');
6469
- $desc = __('Create an album for each user logging in.', 'wp-photo-album-plus');
6470
- $help = '';
6471
- $slug = 'wppa_grant_an_album';
6472
- $html = wppa_checkbox($slug);
6473
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
6474
 
6475
- $name = __('Grant album name', 'wp-photo-album-plus');
6476
- $desc = __('The name to be used for the album.', 'wp-photo-album-plus');
6477
- $help = '';
6478
- $slug = 'wppa_grant_name';
6479
- $opts = array(__('Login name', 'wp-photo-album-plus'), __('Display name', 'wp-photo-album-plus'), __('Id', 'wp-photo-album-plus'), __('Firstname Lastname', 'wp-photo-album-plus'));
6480
- $vals = array('login', 'display', 'id', 'firstlast');
6481
- $html = wppa_select($slug, $opts, $vals);
6482
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
6483
 
6484
- $name = __('Grant parent selection method', 'wp-photo-album-plus');
6485
- $desc = __('The way the grant parents are defined.', 'wp-photo-album-plus');
6486
- $help = '';
6487
- $slug = 'wppa_grant_parent_sel_method';
6488
- $opts = array( __('An album (multi)selectionbox', 'wp-photo-album-plus'),
6489
- __('An album category', 'wp-photo-album-plus'),
6490
- __('An index search token', 'wp-photo-album-plus'),
6491
- );
6492
- $vals = array( 'selectionbox',
6493
- 'category',
6494
- 'indexsearch'
6495
- );
6496
- $onch = 'wppaRefreshAfter();';
6497
- $html = wppa_select($slug, $opts, $vals, $onch);
6498
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
6499
-
6500
- switch( wppa_opt( 'grant_parent_sel_method' ) ) {
6501
- case 'selectionbox':
6502
- $name = __('Grant parent', 'wp-photo-album-plus');
6503
- $desc = __('The parent album(s) of the auto created albums.', 'wp-photo-album-plus');
6504
- $help = (__('You may select multiple albums. All logged in visitors will get their own sub-album in each granted parent.', 'wp-photo-album-plus'));
6505
- $slug = 'wppa_grant_parent';
6506
- $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
6507
- $vals = array( 'zero', '-1');
6508
- $albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
6509
- if ( $albs ) {
6510
- foreach ( $albs as $alb ) {
6511
- $opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
6512
- $vals[] = $alb['id'];
 
6513
  }
6514
- }
6515
- $html = wppa_select_m($slug, $opts, $vals);//, '', '', true);
6516
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
6517
- break;
6518
-
6519
- case 'category':
6520
- $name = __('Grant parent category', 'wp-photo-album-plus');
6521
- $desc = __('The category of the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
6522
- $help = '';
6523
- $slug = 'wppa_grant_parent';
6524
- $catlist = wppa_get_catlist();
6525
- $opts = array();
6526
- foreach( $catlist as $cat ) {
6527
- $opts[] = $cat['cat'];
6528
- }
6529
- $vals = $opts;
6530
- $html = wppa_select($slug, $opts, $vals);
6531
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
6532
- break;
6533
 
6534
- case 'indexsearch':
6535
- $name = __('Grant parent index token', 'wp-photo-album-plus');
6536
- $desc = __('The index token that defines the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
6537
- $help = '';
6538
- $slug = 'wppa_grant_parent';
6539
- $html = wppa_input($slug, '150px');
6540
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
6541
- break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6542
 
6543
- default:
6544
- wppa_log( 'err', 'Unimplemented grant_parent_sel_method in settings page' );
6545
- break;
6546
- }
 
 
6547
 
6548
- $name = __('Grant categories', 'wp-photo-album-plus');
6549
- $desc = __('The categories a new granted album will get.', 'wp-photo-album-plus');
6550
- $help = '';
6551
- $slug = 'wppa_grant_cats';
6552
- $html = wppa_input($slug, '150px');
6553
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
6554
 
6555
- $name = __('Grant tags', 'wp-photo-album-plus');
6556
- $desc = __('The default tags the photos in a new granted album will get.', 'wp-photo-album-plus');
6557
- $help = '';
6558
- $slug = 'wppa_grant_tags';
6559
- $html = wppa_input($slug, '150px');
6560
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
6561
-
6562
- $name = __('Grant restrict', 'wp-photo-album-plus');
6563
- $desc = __('Only create albums for users with Album Admin rights', 'wp-photo-album-plus');
6564
- $help = __('See Table VII-A, first column', 'wp-photo-album-plus');
6565
- $slug = 'wppa_grant_restrict';
6566
- $html = wppa_checkbox($slug);
6567
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
6568
-
6569
- $name = __('Iptc 025 keywords to tags', 'wp-photo-album-plus');
6570
- $desc = __('Convert IPTC025 keywords to tags during upload.', 'wp-photo-album-plus');
6571
- $help = __('Saving IPTC data must be on for this feature', 'wp-photo-album-plus');
6572
- $slug = 'wppa_ipc025_to_tags';
6573
- $html = wppa_checkbox( $slug );
6574
- wppa_setting_new($slug, '27', $name, $desc, $html, $help);
6575
-
6576
- $name = __('Max user albums', 'wp-photo-album-plus');
6577
- $desc = __('The max number of albums a user can create.', 'wp-photo-album-plus');
6578
- $help = (__('The maximum number of albums a user can create when he is not admin and owner only is active', 'wp-photo-album-plus'));
6579
- $help .= '<br />'.(__('A number of 0 means No limit', 'wp-photo-album-plus'));
6580
- $slug = 'wppa_max_albums';
6581
- $html = wppa_input($slug, '50px', '', 'albums');
6582
- wppa_setting_new($slug, '28', $name, $desc, $html, $help);
6583
-
6584
- $name = __('Default photo name', 'wp-photo-album-plus');
6585
- $desc = __('Select the way the name of a new uploaded photo should be determined.', 'wp-photo-album-plus');
6586
- $help = __('If you select an IPTC Tag and it is not found, the filename will be used instead.', 'wp-photo-album-plus');
6587
- $slug = 'wppa_newphoto_name_method';
6588
- $opts = array( __('Filename', 'wp-photo-album-plus'),
6589
- __('Filename without extension', 'wp-photo-album-plus'),
6590
- __('Filename without extension, spaces for hyphens', 'wp-photo-album-plus'),
6591
- __('IPTC Tag 2#005 (Graphic name)', 'wp-photo-album-plus'),
6592
- __('IPTC Tag 2#120 (Caption)', 'wp-photo-album-plus'),
6593
- __('No name at all', 'wp-photo-album-plus'),
6594
- __('Photo w#id (literally)', 'wp-photo-album-plus'),
6595
- );
6596
- $vals = array( 'filename',
6597
- 'noext',
6598
- 'noextspace',
6599
- '2#005',
6600
- '2#120',
6601
- 'none',
6602
- 'Photo w#id'
6603
- );
6604
- $html = wppa_select($slug, $opts, $vals);
6605
- wppa_setting_new($slug, '29', $name, $desc, $html, $help);
6606
-
6607
- $name = __('Default coverphoto', 'wp-photo-album-plus');
6608
- $desc = __('Name of photofile to become cover image', 'wp-photo-album-plus');
6609
- $help = (__('If you name a photofile like this setting before upload, it will become the coverimage automatically.', 'wp-photo-album-plus'));
6610
- $slug = 'wppa_default_coverimage_name';
6611
- $html = wppa_input($slug, '150px');
6612
- wppa_setting_new($slug, '30', $name, $desc, $html, $help);
6613
-
6614
- $name = __('Copy Timestamp', 'wp-photo-album-plus');
6615
- $desc = __('Copy timestamp when copying photo.', 'wp-photo-album-plus');
6616
- $help = (__('If checked, the copied photo is not "new"', 'wp-photo-album-plus'));
6617
- $slug = 'wppa_copy_timestamp';
6618
- $html = wppa_checkbox($slug);
6619
- wppa_setting_new($slug, '31', $name, $desc, $html, $help);
6620
 
6621
- $name = __('Copy Owner', 'wp-photo-album-plus');
6622
- $desc = __('Copy the owner when copying photo.', 'wp-photo-album-plus');
6623
- $help = '';
6624
- $slug = 'wppa_copy_owner';
6625
- $html = wppa_checkbox($slug);
6626
- wppa_setting_new($slug, '32', $name, $desc, $html, $help);
6627
 
6628
- $name = __('Copy Custom', 'wp-photo-album-plus');
6629
- $desc = __('Copy the custom fields when copying photo.', 'wp-photo-album-plus');
6630
- $help = '';
6631
- $slug = 'wppa_copy_custom';
6632
- $html = wppa_checkbox($slug);
6633
- wppa_setting_new($slug, '33', $name, $desc, $html, $help);
6634
 
6635
- $name = __('FE Albums public', 'wp-photo-album-plus');
6636
- $desc = __('Frontend created albums are --- public ---', 'wp-photo-album-plus');
6637
- $help = '';
6638
- $slug = 'wppa_frontend_album_public';
6639
- $html = wppa_checkbox($slug);
6640
- wppa_setting_new($slug, '34', $name, $desc, $html, $help);
6641
 
6642
- $name = __('Default album linktype', 'wp-photo-album-plus');
6643
- $desc = __('The album linktype for new albums', 'wp-photo-album-plus');
6644
- $help = '';
6645
- $slug = 'wppa_default_album_linktype';
6646
- $opts = array( __('the sub-albums and thumbnails', 'wp-photo-album-plus'),
6647
- __('the sub-albums', 'wp-photo-album-plus'),
6648
- __('the thumbnails', 'wp-photo-album-plus'),
6649
- __('the album photos as slideshow', 'wp-photo-album-plus'),
6650
- __('no link at all', 'wp-photo-album-plus')
6651
- );
6652
 
6653
- $vals = array( 'content',
6654
- 'albums',
6655
- 'thumbs',
6656
- 'slide',
6657
- 'none'
6658
- );
6659
- $html = wppa_select($slug, $opts, $vals);
6660
- wppa_setting_new($slug, '35', $name, $desc, $html, $help);
6661
 
6662
- $name = __('Sanitize files', 'wp-photo-album-plus');
6663
- $desc = __('Sanitize filenames during import/upload', 'wp-photo-album-plus');
6664
- $help = '';
6665
- $slug = 'wppa_sanitize_import';
6666
- $html = wppa_checkbox($slug);
6667
- wppa_setting_new($slug, '36', $name, $desc, $html, $help);
6668
 
6669
- $name = __('Remove accents', 'wp-photo-album-plus');
6670
- $desc = __('Remove accents from filenames during import/upload', 'wp-photo-album-plus');
6671
- $help = '';
6672
- $slug = 'wppa_remove_accents';
6673
- $html = wppa_checkbox($slug);
6674
- wppa_setting_new($slug, '37', $name, $desc, $html, $help);
6675
 
6676
- $name = __('Default photo status', 'wp-photo-album-plus');
6677
- $desc = __('The status new photos will have', 'wp-photo-album-plus');
6678
- $help = '';
6679
- $slug = 'wppa_status_new';
6680
 
6681
- $opts = array( __( 'Publish', 'wp-photo-album-plus' ),
6682
- __( 'Pending', 'wp-photo-album-plus' ),
6683
- __( 'Featured', 'wp-photo-album-plus' ),
6684
- __( 'Private', 'wp-photo-album-plus' ),
6685
- );
6686
- $vals = array( 'publish',
6687
- 'pending',
6688
- 'featured',
6689
- 'private',
6690
- );
6691
- $html = wppa_select( $slug, $opts, $vals);
6692
- wppa_setting_new($slug, '38', $name, $desc, $html, $help);
6693
 
6694
- wppa_setting_box_footer_new();
6695
  }
6696
  }
6697
  break;
6698
 
6699
  case 'admin': {
6700
  // WPPA+ related roles and capabilities
6701
- $desc = $wppa_subtab_names[$tab]['1'];
6702
  {
6703
- wppa_setting_tab_description($desc);
 
6704
 
6705
- $coldef = array( __('Role', 'wp-photo-album-plus') => 'auto;',
6706
- __('Album Admin', 'wp-photo-album-plus') => 'auto;',
6707
- __('Upload', 'wp-photo-album-plus') => 'auto;',
6708
- __('Import', 'wp-photo-album-plus') => 'auto;',
6709
- __('Moderate', 'wp-photo-album-plus') => 'auto;',
6710
- __('Export', 'wp-photo-album-plus') => 'auto;',
6711
- __('Settings', 'wp-photo-album-plus') => 'auto;',
6712
- __('Photo of the day', 'wp-photo-album-plus') => 'auto;',
6713
- __('Comments', 'wp-photo-album-plus') => 'auto;',
6714
- __('Documentation', 'wp-photo-album-plus') => 'auto;',
6715
- __('Membership', 'wp-photo-album-plus') => 'auto;',
6716
- );
6717
 
6718
 
6719
- wppa_setting_box_header_new($tab, $coldef);
6720
 
6721
- $wppacaps = array( 'wppa_admin',
6722
- 'wppa_upload',
6723
- 'wppa_import',
6724
- 'wppa_moderate',
6725
- 'wppa_export',
6726
- 'wppa_settings',
6727
- 'wppa_potd',
6728
- 'wppa_comments',
6729
- 'wppa_help',
6730
- 'wppa_medal',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6731
  );
6732
- $opts = array( '',
6733
- __('bronze', 'wp-photo-album-plus'),
6734
- __('silver', 'wp-photo-album-plus'),
6735
- __('gold', 'wp-photo-album-plus'),
6736
- __('plus', 'wp-photo-album-plus'),
6737
- __('basic', 'wp-photo-album-plus'),
6738
- );
6739
- $vals = array( 'none',
6740
- 'bronze',
6741
- 'silver',
6742
- 'gold',
6743
- 'plus',
6744
- 'basic'
6745
- );
6746
 
6747
- $roles = $wp_roles->roles;
6748
 
6749
- foreach (array_keys($roles) as $key) {
6750
- $role = $roles[$key];
6751
- $rolename = translate_user_role( $role['name'] );
6752
 
6753
- echo '
6754
- <tr class="wppa-setting-new" >
6755
- <td>' . $rolename . '</td>';
6756
- $caps = $role['capabilities'];
6757
 
6758
- for ($i = 0; $i < count($wppacaps) - 1; $i++) {
6759
- if (isset($caps[$wppacaps[$i]])) {
6760
- $yn = $caps[$wppacaps[$i]] ? true : false;
6761
- }
6762
- else $yn = false;
6763
- $enabled = ( $key != 'administrator' );
6764
- echo '
6765
- <td>' . wppa_checkbox_e('caps-'.$wppacaps[$i].'-'.$key, $yn, '', '', $enabled) . '</td>';
6766
- };
6767
 
6768
- echo '<td>' . wppa_select($wppacaps[count($wppacaps) - 1].'-'.$key, $opts, $vals) . '</td>';
6769
 
6770
- echo '</tr>';
6771
- }
6772
 
6773
- wppa_setting_box_footer_new();
6774
  }
6775
  // Frontend create Albums and upload Photos enabling and limiting settings
6776
- $desc = $wppa_subtab_names[$tab]['2'];
6777
  {
 
6778
  wppa_setting_tab_description($desc);
6779
  $coldef = array( '#' => 'auto;',
6780
  __('Name', 'wp-photo-album-plus') => 'auto;',
@@ -6828,7 +6890,7 @@ global $wppa_subtab_names;
6828
  $desc = __('Frontend album creation requires the user is logged in.', 'wp-photo-album-plus');
6829
  $help = '';
6830
  $slug = 'wppa_user_create_login';
6831
- $html1 = wppa_checkbox($slug);
6832
  $html2 = '';
6833
  $html = array( $html1, $html2 );
6834
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
@@ -6870,17 +6932,17 @@ global $wppa_subtab_names;
6870
  if ( wppa_get_option('wppa_'.$role.'_upload_limit_count', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_count', '0');
6871
  if ( wppa_get_option('wppa_'.$role.'_upload_limit_time', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_time', '0');
6872
  $name = sprintf(__('Upload limit %s', 'wp-photo-album-plus'), $t_role);
6873
- if ( $role == 'loggedout' ) $desc = __('Limit upload capacity for logged out users.', 'wp-photo-album-plus');
6874
  else $desc = sprintf(__('Limit upload capacity for the user role %s.', 'wp-photo-album-plus'), $t_role);
6875
- if ( $role == 'loggedout' ) $help = __('This setting has only effect when Table VII-B2 is unchecked.', 'wp-photo-album-plus');
6876
- else $help = __('This limitation only applies to frontend uploads when the same userrole does not have the Upload checkbox checked in Table VII-A.', 'wp-photo-album-plus');
6877
- $help .= '<br />'.__('A value of 0 means: no limit.', 'wp-photo-album-plus');
6878
  $slug1 = 'wppa_'.$role.'_upload_limit_count';
6879
  $html1 = wppa_input($slug1, '50px', '', __('photos', 'wp-photo-album-plus'));
6880
  $slug2 = 'wppa_'.$role.'_upload_limit_time';
6881
  $html2 = wppa_select($slug2, $opts, $vals);
6882
  $html = array( $html1, $html2 );
6883
- wppa_setting_new(false, '8.'.$t_role, $name, $desc, $html, $help);
6884
  }
6885
 
6886
  foreach (array_keys($roles) as $role) {
@@ -6889,14 +6951,14 @@ global $wppa_subtab_names;
6889
  $name = sprintf(__('Album limit %s', 'wp-photo-album-plus'), $t_role);
6890
  if ( $role == 'loggedout' ) $desc = __('Limit number of albums for logged out users.', 'wp-photo-album-plus');
6891
  else $desc = sprintf(__('Limit number of albums for the user role %s.', 'wp-photo-album-plus'), $t_role);
6892
- $help = __('This limitation only applies to frontend create albums when the same userrole does not have the Album admin checkbox checked in Table VII-A.', 'wp-photo-album-plus');
6893
- $help .= '<br />'.__('A value of 0 means: no limit.', 'wp-photo-album-plus');
6894
  $slug1 = 'wppa_'.$role.'_album_limit_count';
6895
  $html1 = wppa_input($slug1, '50px', '', __('albums', 'wp-photo-album-plus'));
6896
  $slug2 = '';
6897
  $html2 = '';
6898
  $html = array( $html1, $html2 );
6899
- wppa_setting_new(false, '9.'.$t_role, $name, $desc, $html, $help);
6900
  }
6901
 
6902
  $name = __('Upload one only', 'wp-photo-album-plus');
@@ -6911,8 +6973,8 @@ global $wppa_subtab_names;
6911
  $name = __('Upload moderation', 'wp-photo-album-plus');
6912
  $desc = __('Uploaded photos need moderation.', 'wp-photo-album-plus');
6913
  $help = __('If checked, photos uploaded by users who do not have photo album admin access rights need moderation.', 'wp-photo-album-plus');
6914
- $help .= __('Users who have photo album admin access rights can change the photo status to publish or featured.', 'wp-photo-album-plus');
6915
- $help .= '<br />'.__('You can set the album admin access rights in Table VII-A.', 'wp-photo-album-plus');
6916
  $slug = 'wppa_upload_moderate';
6917
  $html1 = wppa_checkbox($slug);
6918
  $html2 = '';
@@ -6921,7 +6983,7 @@ global $wppa_subtab_names;
6921
 
6922
  $name = __('FE Upload private', 'wp-photo-album-plus');
6923
  $desc = __('Front-end uploaded photos status is set to private.', 'wp-photo-album-plus');
6924
- $help = __('This setting overrules VI-B7.0.', 'wp-photo-album-plus');
6925
  $slug = 'wppa_fe_upload_private';
6926
  $html1 = wppa_checkbox($slug);
6927
  $html2 = '';
@@ -6979,8 +7041,8 @@ global $wppa_subtab_names;
6979
  wppa_setting_box_footer_new();
6980
  }
6981
  // Import related settings
6982
- $desc = $wppa_subtab_names[$tab]['3'];
6983
  {
 
6984
  wppa_setting_tab_description($desc);
6985
  wppa_setting_box_header_new($tab);
6986
 
@@ -6988,8 +7050,8 @@ global $wppa_subtab_names;
6988
  $desc = __('Create wp page that shows the album when a directory to album is imported.', 'wp-photo-album-plus');
6989
  $help = __('As soon as an album is created when a directory is imported, a wp page is made that displays the album content.', 'wp-photo-album-plus');
6990
  $slug = 'wppa_newpag_create';
6991
- $onchange = 'wppaCheckNewpag()';
6992
- $html = wppa_checkbox($slug, $onchange);
6993
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
6994
 
6995
  $name = __('Page content', 'wp-photo-album-plus');
@@ -7077,8 +7139,8 @@ global $wppa_subtab_names;
7077
  wppa_setting_box_footer_new();
7078
  }
7079
  // Admin Functionality restrictions for non administrators
7080
- $desc = $wppa_subtab_names[$tab]['4'];
7081
  {
 
7082
  wppa_setting_tab_description($desc);
7083
  wppa_setting_box_header_new($tab);
7084
 
@@ -7162,8 +7224,8 @@ global $wppa_subtab_names;
7162
  wppa_setting_box_footer_new();
7163
  }
7164
  // Miscellaneous limiting settings
7165
- $desc = $wppa_subtab_names[$tab]['5'];
7166
  {
 
7167
  wppa_setting_tab_description($desc);
7168
  wppa_setting_box_header_new($tab);
7169
 
@@ -7203,14 +7265,14 @@ global $wppa_subtab_names;
7203
 
7204
  $name = __('Fe Edit Theme CSS', 'wp-photo-album-plus');
7205
  $desc = __('The front-end edit photo dialog uses the theme CSS.', 'wp-photo-album-plus');
7206
- $help = __('This setting has effect when Table VII D2.1 is set to \'classic\' only.', 'wp-photo-album-plus');
7207
  $slug = 'wppa_upload_edit_theme_css';
7208
  $html = wppa_checkbox($slug);
7209
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
7210
 
7211
  $name = __('Fe Edit New Items', 'wp-photo-album-plus');
7212
  $desc = __('The items that are fe editable', 'wp-photo-album-plus');
7213
- $help = __('See also Table II-J10!', 'wp-photo-album-plus');
7214
  $slug1 = 'wppa_fe_edit_name';
7215
  $slug2 = 'wppa_fe_edit_desc';
7216
  $slug3 = 'wppa_fe_edit_tags';
@@ -7372,7 +7434,8 @@ global $wppa_subtab_names;
7372
  $name = __('Super user', 'wp-photo-album-plus');
7373
  $desc = __('Give these users all rights in wppa.', 'wp-photo-album-plus');
7374
  $help = __('This gives the user all the administrator privileges within wppa.', 'wp-photo-album-plus');
7375
- $help .= '<br />'.__('Make sure the user also has a role that has all the boxes ticked in Table VII-A', 'wp-photo-album-plus');
 
7376
  $slug = 'wppa_superuser_user';
7377
  $superlist = wppa_get_option( 'wppa_super_users', array() );
7378
 
@@ -7417,8 +7480,8 @@ global $wppa_subtab_names;
7417
  wppa_setting_box_footer_new();
7418
  }
7419
  // Miscellaneous admin related settings
7420
- $desc = $wppa_subtab_names[$tab]['6'];
7421
  {
 
7422
  wppa_setting_tab_description($desc);
7423
  wppa_setting_box_header_new($tab);
7424
 
@@ -7482,7 +7545,7 @@ global $wppa_subtab_names;
7482
  $slug = 'wppa_photo_admin_max_albums';
7483
  $opts = array( __( '--- off ---', 'wp-photo-album-plus'), '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
7484
  $vals = array( '0', '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
7485
- $html = wppa_select($slug, $opts, $vals);
7486
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
7487
 
7488
  $name = __('Comment admin page size', 'wp-photo-album-plus');
@@ -7544,7 +7607,7 @@ global $wppa_subtab_names;
7544
  break;
7545
 
7546
  case 'maintenance': {
7547
- // Maintenance procedures
7548
  {
7549
  $desc = $wppa_subtab_names[$tab]['1'];
7550
  wppa_setting_tab_description($desc);
@@ -7858,6 +7921,25 @@ global $wppa_subtab_names;
7858
  $html = array($html1, $html2, $html3, $html4);
7859
  wppa_setting_new(false, '22', $name, $desc, $html, $help);
7860
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7861
  $name = __('Clear ratings', 'wp-photo-album-plus');
7862
  $desc = __('Reset all ratings.', 'wp-photo-album-plus');
7863
  $help = __('WARNING: If checked, this will clear all ratings in the system!', 'wp-photo-album-plus');
@@ -7867,7 +7949,7 @@ global $wppa_subtab_names;
7867
  $html3 = '';
7868
  $html4 = '';
7869
  $html = array($html1, $html2, $html3, $html4);
7870
- wppa_setting_new(false, '23', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7871
 
7872
  $name = __('Clear viewcounts', 'wp-photo-album-plus');
7873
  $desc = __('Reset all viewcounts.', 'wp-photo-album-plus');
@@ -7878,7 +7960,7 @@ global $wppa_subtab_names;
7878
  $html3 = '';
7879
  $html4 = '';
7880
  $html = array($html1, $html2, $html3, $html4);
7881
- wppa_setting_new(false, '24', $name, $desc, $html, $help);
7882
 
7883
  $name = __('Reset IPTC', 'wp-photo-album-plus');
7884
  $desc = __('Clear all IPTC data.', 'wp-photo-album-plus');
@@ -7889,7 +7971,7 @@ global $wppa_subtab_names;
7889
  $html3 = '';
7890
  $html4 = '';
7891
  $html = array($html1, $html2, $html3, $html4);
7892
- wppa_setting_new(false, '25', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7893
 
7894
  $name = __('Reset EXIF', 'wp-photo-album-plus');
7895
  $desc = __('Clear all EXIF data.', 'wp-photo-album-plus');
@@ -7900,29 +7982,31 @@ global $wppa_subtab_names;
7900
  $html3 = '';
7901
  $html4 = '';
7902
  $html = array($html1, $html2, $html3, $html4);
7903
- wppa_setting_new(false, '26', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
7904
 
7905
  $name = __('Apply Default Photoname', 'wp-photo-album-plus');
7906
  $desc = __('Apply Default photo name on all photos in the system.', 'wp-photo-album-plus');
7907
- $help = __('Puts the content of Table IX-D13 in all photo name.', 'wp-photo-album-plus');
 
7908
  $slug2 = 'wppa_apply_default_photoname_all';
7909
  $html1 = '';
7910
  $html2 = wppa_maintenance_button( $slug2 );
7911
  $html3 = wppa_status_field( $slug2 );
7912
  $html4 = wppa_togo_field( $slug2 );
7913
  $html = array($html1, $html2, $html3, $html4);
7914
- wppa_setting_new(false, '27', $name, $desc, $html, $help);
7915
 
7916
  $name = __('Apply New Photodesc', 'wp-photo-album-plus');
7917
  $desc = __('Apply New photo description on all photos in the system.', 'wp-photo-album-plus');
7918
- $help = __('Puts the content of Table IX-D5 in all photo descriptions.', 'wp-photo-album-plus');
 
7919
  $slug2 = 'wppa_apply_new_photodesc_all';
7920
  $html1 = '';
7921
  $html2 = wppa_maintenance_button( $slug2 );
7922
  $html3 = wppa_status_field( $slug2 );
7923
  $html4 = wppa_togo_field( $slug2 );
7924
  $html = array($html1, $html2, $html3, $html4);
7925
- wppa_setting_new(false, '28', $name, $desc, $html, $help);
7926
 
7927
  $name = __('Append to photodesc', 'wp-photo-album-plus');
7928
  $desc = __('Append this text to all photo descriptions.', 'wp-photo-album-plus');
@@ -7935,7 +8019,7 @@ global $wppa_subtab_names;
7935
  $html3 = wppa_status_field( $slug2 );
7936
  $html4 = wppa_togo_field( $slug2 );
7937
  $html = array($html1, $html2, $html3, $html4);
7938
- wppa_setting_new(false, '29', $name, $desc, $html, $help);
7939
 
7940
  $name = __('Remove from photodesc', 'wp-photo-album-plus');
7941
  $desc = __('Remove this text from all photo descriptions.', 'wp-photo-album-plus');
@@ -7948,7 +8032,7 @@ global $wppa_subtab_names;
7948
  $html3 = wppa_status_field( $slug2 );
7949
  $html4 = wppa_togo_field( $slug2 );
7950
  $html = array($html1, $html2, $html3, $html4);
7951
- wppa_setting_new(false, '30', $name, $desc, $html, $help);
7952
 
7953
  $name = __('Remove empty albums', 'wp-photo-album-plus');
7954
  $desc = __('Removes albums that are not used.', 'wp-photo-album-plus');
@@ -7959,7 +8043,7 @@ global $wppa_subtab_names;
7959
  $html3 = wppa_status_field( $slug2 );
7960
  $html4 = wppa_togo_field( $slug2 );
7961
  $html = array($html1, $html2, $html3, $html4);
7962
- wppa_setting_new(false, '31', $name, $desc, $html, $help);
7963
 
7964
  $name = __('Remove file-ext', 'wp-photo-album-plus');
7965
  $desc = __('Remove possible file extension from photo name.', 'wp-photo-album-plus');
@@ -7970,7 +8054,7 @@ global $wppa_subtab_names;
7970
  $html3 = wppa_status_field( $slug2 );
7971
  $html4 = wppa_togo_field( $slug2 );
7972
  $html = array($html1, $html2, $html3, $html4);
7973
- wppa_setting_new(false, '32', $name, $desc, $html, $help);
7974
 
7975
  $name = __('Re-add file-ext', 'wp-photo-album-plus');
7976
  $desc = __('Revert the <b>Remove file-ext</b> action.', 'wp-photo-album-plus');
@@ -7981,7 +8065,7 @@ global $wppa_subtab_names;
7981
  $html3 = wppa_status_field( $slug2 );
7982
  $html4 = wppa_togo_field( $slug2 );
7983
  $html = array($html1, $html2, $html3, $html4);
7984
- wppa_setting_new(false, '33', $name, $desc, $html, $help);
7985
 
7986
  $name = __('All to lower', 'wp-photo-album-plus');
7987
  $desc = __('Convert all file-extensions to lowercase.', 'wp-photo-album-plus');
@@ -7993,7 +8077,7 @@ global $wppa_subtab_names;
7993
  $html3 = wppa_status_field( $slug2 );
7994
  $html4 = wppa_togo_field( $slug2 );
7995
  $html = array($html1, $html2, $html3, $html4);
7996
- wppa_setting_new(false, '34', $name, $desc, $html, $help);
7997
 
7998
  $name = __('Watermark all', 'wp-photo-album-plus');
7999
  $desc = __('Apply watermark according to current settings to all photos.', 'wp-photo-album-plus');
@@ -8004,31 +8088,30 @@ global $wppa_subtab_names;
8004
  $html3 = wppa_status_field( $slug2 );
8005
  $html4 = wppa_togo_field( $slug2 );
8006
  $html = array($html1, $html2, $html3, $html4);
8007
- wppa_setting_new(false, '35', $name, $desc, $html, $help, wppa_switch( 'watermark_on' ));
8008
 
8009
  $name = __('Create all autopages', 'wp-photo-album-plus');
8010
  $desc = __('Create all the pages to display slides individually.', 'wp-photo-album-plus');
8011
- $help = __('See also Table IV-A10.', 'wp-photo-album-plus');
8012
- $help .= '<br />'.__('Make sure you have a custom menu and the "Automatically add new top-level pages to this menu" box UNticked!!', 'wp-photo-album-plus');
8013
  $slug2 = 'wppa_create_all_autopages';
8014
  $html1 = '';
8015
  $html2 = wppa_maintenance_button( $slug2 );
8016
  $html3 = wppa_status_field( $slug2 );
8017
  $html4 = wppa_togo_field( $slug2 );
8018
  $html = array($html1, $html2, $html3, $html4);
8019
- wppa_setting_new(false, '36', $name, $desc, $html, $help);
8020
 
8021
  $name = __('Delete all autopages', 'wp-photo-album-plus');
8022
  $desc = __('Delete all the pages to display slides individually.', 'wp-photo-album-plus');
8023
- $help = __('See also Table IV-A10.', 'wp-photo-album-plus');
8024
- $help .= '';
8025
  $slug2 = 'wppa_delete_all_autopages';
8026
  $html1 = '';
8027
  $html2 = wppa_maintenance_button( $slug2 );
8028
  $html3 = wppa_status_field( $slug2 );
8029
  $html4 = wppa_togo_field( $slug2 );
8030
  $html = array($html1, $html2, $html3, $html4);
8031
- wppa_setting_new(false, '37', $name, $desc, $html, $help);
8032
 
8033
  $name = __('Leading zeroes', 'wp-photo-album-plus');
8034
  $desc = __('If photoname numeric, add leading zeros', 'wp-photo-album-plus');
@@ -8040,7 +8123,7 @@ global $wppa_subtab_names;
8040
  $html3 = wppa_status_field( $slug2 );
8041
  $html4 = wppa_togo_field( $slug2 );
8042
  $html = array($html1, $html2, $html3, $html4);
8043
- wppa_setting_new(false, '38', $name, $desc, $html, $help);
8044
 
8045
  $name = __('Add GPX tag', 'wp-photo-album-plus');
8046
  $desc = __('Make sure photos with gpx data have a Gpx tag', 'wp-photo-album-plus');
@@ -8051,7 +8134,7 @@ global $wppa_subtab_names;
8051
  $html3 = wppa_status_field( $slug2 );
8052
  $html4 = wppa_togo_field( $slug2 );
8053
  $html = array($html1, $html2, $html3, $html4);
8054
- wppa_setting_new(false, '39', $name, $desc, $html, $help);
8055
 
8056
  $name = __('Add HD tag', 'wp-photo-album-plus');
8057
  $desc = __('Make sure photos >= 1920 x 1080 have a HD tag', 'wp-photo-album-plus');
@@ -8062,7 +8145,7 @@ global $wppa_subtab_names;
8062
  $html3 = wppa_status_field( $slug2 );
8063
  $html4 = wppa_togo_field( $slug2 );
8064
  $html = array($html1, $html2, $html3, $html4);
8065
- wppa_setting_new(false, '40', $name, $desc, $html, $help);
8066
 
8067
  if ( function_exists( 'ewww_image_optimizer') ) {
8068
  $name = __('Optimize files', 'wp-photo-album-plus');
@@ -8074,7 +8157,7 @@ global $wppa_subtab_names;
8074
  $html3 = wppa_status_field( $slug2 );
8075
  $html4 = wppa_togo_field( $slug2 );
8076
  $html = array($html1, $html2, $html3, $html4);
8077
- wppa_setting_new(false, '41', $name, $desc, $html, $help);
8078
  }
8079
 
8080
  $name = __('Edit tag', 'wp-photo-album-plus');
@@ -8096,19 +8179,19 @@ global $wppa_subtab_names;
8096
  $html4 = wppa_status_field( $slug3 );
8097
  $html5 = wppa_togo_field( $slug3 );
8098
  $html = array( $html1 . '<br />' . $html2, $html3, $html4, $html5 );
8099
- wppa_setting_new( false, '42', $name, $desc, $html, $help);
8100
 
8101
  $name = __('Synchronize Cloudinary', 'wp-photo-album-plus');
8102
  $desc = __('Removes/adds images in the cloud.', 'wp-photo-album-plus');
8103
  $help = __('Removes old images and verifies/adds new images to Cloudinary.', 'wp-photo-album-plus');
8104
- $help .= '<br />'.__('See Table IX-K4.7 for the configured lifetime.', 'wp-photo-album-plus');
8105
  $slug2 = 'wppa_sync_cloud';
8106
  $html1 = '';
8107
  $html2 = wppa_maintenance_button( $slug2 );
8108
  $html3 = wppa_status_field( $slug2 );
8109
  $html4 = wppa_togo_field( $slug2 );
8110
  $html = array($html1, $html2, $html3, $html4);
8111
- wppa_setting_new(false, '43', $name, $desc, $html, $help);
8112
 
8113
  $name = __('Fix tags', 'wp-photo-album-plus');
8114
  $desc = __('Make sure photo tags format is uptodate', 'wp-photo-album-plus');
@@ -8119,7 +8202,7 @@ global $wppa_subtab_names;
8119
  $html3 = wppa_status_field( $slug2 );
8120
  $html4 = wppa_togo_field( $slug2 );
8121
  $html = array($html1, $html2, $html3, $html4);
8122
- wppa_setting_new(false, '44', $name, $desc, $html, $help);
8123
 
8124
  $name = __('Fix cats', 'wp-photo-album-plus');
8125
  $desc = __('Make sure album cats format is uptodate', 'wp-photo-album-plus');
@@ -8130,7 +8213,7 @@ global $wppa_subtab_names;
8130
  $html3 = wppa_status_field( $slug2 );
8131
  $html4 = wppa_togo_field( $slug2 );
8132
  $html = array($html1, $html2, $html3, $html4);
8133
- wppa_setting_new(false, '45', $name, $desc, $html, $help);
8134
 
8135
  $name = __('Set owner to name', 'wp-photo-album-plus');
8136
  $desc = __('If photoname equals user display name, set him owner.', 'wp-photo-album-plus');
@@ -8141,7 +8224,7 @@ global $wppa_subtab_names;
8141
  $html3 = wppa_status_field( $slug2 );
8142
  $html4 = wppa_togo_field( $slug2 );
8143
  $html = array($html1, $html2, $html3, $html4);
8144
- wppa_setting_new(false, '46', $name, $desc, $html, $help);
8145
 
8146
  $name = __('Move all photos', 'wp-photo-album-plus');
8147
  $desc = __('Move all photos from one album to another album.', 'wp-photo-album-plus');
@@ -8152,7 +8235,7 @@ global $wppa_subtab_names;
8152
  $html3 = wppa_status_field( $slug2 );
8153
  $html4 = wppa_togo_field( $slug2 );
8154
  $html = array($html1, $html2, $html3, $html4);
8155
- wppa_setting_new(false, '47', $name, $desc, $html, $help);
8156
 
8157
  if ( wppa_get_total_album_count() > 200 ) { // Many albums: input id
8158
 
@@ -8162,7 +8245,7 @@ global $wppa_subtab_names;
8162
  $slug = 'wppa_move_all_photos_from';
8163
  $html = wppa_input($slug, '100px' );
8164
  $html = array($html, '', '', '');
8165
- wppa_setting_new(false, '48', $name, $desc, $html, $help);
8166
 
8167
  $name = __('To', 'wp-photo-album-plus');
8168
  $desc = __('Move to album number', 'wp-photo-album-plus');
@@ -8170,7 +8253,7 @@ global $wppa_subtab_names;
8170
  $slug = 'wppa_move_all_photos_to';
8171
  $html = wppa_input($slug, '100px' );
8172
  $html = array($html, '', '', '');
8173
- wppa_setting_new(false, '49', $name, $desc, $html, $help);
8174
 
8175
  }
8176
  else { // Few albums: selectionbox
@@ -8198,7 +8281,7 @@ global $wppa_subtab_names;
8198
  ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8199
  ' />';
8200
  $html = array($html, '', '', '');
8201
- wppa_setting_new(false, '50', $name, $desc, $html, $help);
8202
 
8203
  $name = __('To', 'wp-photo-album-plus');
8204
  $desc = __('Move to album', 'wp-photo-album-plus');
@@ -8223,7 +8306,7 @@ global $wppa_subtab_names;
8223
  ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8224
  ' />';
8225
  $html = array($html, '', '', '');
8226
- wppa_setting_new(false, '51', $name, $desc, $html, $help);
8227
  }
8228
 
8229
  $name = __('Remove hypens from photonames', 'wp-photo-album-plus');
@@ -8235,7 +8318,7 @@ global $wppa_subtab_names;
8235
  $html3 = wppa_status_field( $slug2 );
8236
  $html4 = wppa_togo_field( $slug2 );
8237
  $html = array($html1, $html2, $html3, $html4);
8238
- wppa_setting_new(false, '52', $name, $desc, $html, $help);
8239
 
8240
  $name = __('PNG to JPG', 'wp-photo-album-plus');
8241
  $desc = __('Convert all .png files to .jpg files', 'wp-photo-album-plus');
@@ -8246,7 +8329,7 @@ global $wppa_subtab_names;
8246
  $html3 = wppa_status_field( $slug2 );
8247
  $html4 = wppa_togo_field( $slug2 );
8248
  $html = array($html1, $html2, $html3, $html4);
8249
- wppa_setting_new(false, '53', $name, $desc, $html, $help);
8250
 
8251
  $name = __('Fix mp4 meta data', 'wp-photo-album-plus');
8252
  $desc = __('Import framesize, creationdate and duration from mp4 video files', 'wp-photo-album-plus');
@@ -8257,7 +8340,7 @@ global $wppa_subtab_names;
8257
  $html3 = wppa_status_field( $slug2 );
8258
  $html4 = wppa_togo_field( $slug2 );
8259
  $html = array($html1, $html2, $html3, $html4);
8260
- wppa_setting_new(false, '54', $name, $desc, $html, $help);
8261
 
8262
  $name = __('Fix user ids', 'wp-photo-album-plus');
8263
  $desc = __('Fill in missing user ids to ratings and comments', 'wp-photo-album-plus');
@@ -8268,7 +8351,7 @@ global $wppa_subtab_names;
8268
  $html3 = wppa_status_field( $slug2 );
8269
  $html4 = wppa_togo_field( $slug2 );
8270
  $html = array($html1, $html2, $html3, $html4);
8271
- wppa_setting_new(false, '55', $name, $desc, $html, $help);
8272
 
8273
  $name = __('Re-init custom and tags', 'wp-photo-album-plus');
8274
  $desc = __('Re-initialize custom photo fields and default tags', 'wp-photo-album-plus');
@@ -8279,7 +8362,7 @@ global $wppa_subtab_names;
8279
  $html3 = wppa_status_field( $slug2 );
8280
  $html4 = wppa_togo_field( $slug2 );
8281
  $html = array($html1, $html2, $html3, $html4);
8282
- wppa_setting_new(false, '56', $name, $desc, $html, $help);
8283
 
8284
  if ( current_user_can( 'administrator' ) ) {
8285
  $name = __('Custom album proc', 'wp-photo-album-plus');
@@ -8291,7 +8374,7 @@ global $wppa_subtab_names;
8291
  $html3 = wppa_status_field( $slug2 );
8292
  $html4 = wppa_togo_field( $slug2 );
8293
  $html = array($html1, $html2, $html3, $html4);
8294
- wppa_setting_new(false, '57', $name, $desc, $html, $help);
8295
 
8296
  $name = __('Custom photo proc', 'wp-photo-album-plus');
8297
  $desc = __('The php code to execute on all photos', 'wp-photo-album-plus');
@@ -8302,47 +8385,9 @@ global $wppa_subtab_names;
8302
  $html3 = wppa_status_field( $slug2 );
8303
  $html4 = wppa_togo_field( $slug2 );
8304
  $html = array($html1, $html2, $html3, $html4);
8305
- wppa_setting_new(false, '57', $name, $desc, $html, $help);
8306
  }
8307
 
8308
- $name = __('List Logfile', 'wp-photo-album-plus');
8309
- $desc = __('Show the content of wppa+ (error) log.', 'wp-photo-album-plus');
8310
- $help = '';
8311
- $slug1 = 'wppa_errorlog_purge';
8312
- $slug2 = 'wppa_list_errorlog';
8313
- $slug4 = 'wppa_logfile_on_menu';
8314
- $html1 = wppa_ajax_button(__('Purge logfile', 'wp-photo-album-plus'), 'errorlog_purge', '0', true );
8315
- $html2 = wppa_popup_button( $slug2 );
8316
- $html3 = __('On menu', 'wp-photo-album-plus');
8317
- $html4 = wppa_checkbox($slug4);
8318
- $html = array($html1, $html2, $html3, $html4);
8319
- wppa_setting_new(false, '58', $name, $desc, $html, $help);
8320
-
8321
- $name = __('List Ratings', 'wp-photo-album-plus');
8322
- $desc = __('Show the most recent ratings.', 'wp-photo-album-plus');
8323
- $help = '';
8324
- $slug1 = '';
8325
- $slug2 = 'wppa_list_rating';
8326
- $html1 = '';
8327
- $html2 = wppa_popup_button( $slug2 );
8328
- $html3 = '';
8329
- $html4 = '';
8330
- $html = array($html1, $html2, $html3, $html4);
8331
- wppa_setting_new(false, '59', $name, $desc, $html, $help);
8332
-
8333
- $name = __('List Index', 'wp-photo-album-plus');
8334
- $desc = __('Show the content of the index table.', 'wp-photo-album-plus');
8335
- $help = '';
8336
- $slug1 = 'wppa_list_index_display_start';
8337
- $slug2 = 'wppa_list_index';
8338
- $html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus').'</small>'.wppa_input( $slug1, '150px' );
8339
- $html2 = wppa_popup_button( $slug2 );
8340
- $html3 = '';
8341
- $html4 = '';
8342
- $clas = '';
8343
- $html = array($html1, $html2, $html3, $html4);
8344
- wppa_setting_new(false, '60', $name, $desc, $html, $help);
8345
-
8346
  $name = __('List active sessions', 'wp-photo-album-plus');
8347
  $desc = __('Show the content of the sessions table.', 'wp-photo-album-plus');
8348
  $help = '';
@@ -8353,21 +8398,7 @@ global $wppa_subtab_names;
8353
  $html3 = '';
8354
  $html4 = '';
8355
  $html = array($html1, $html2, $html3, $html4);
8356
- wppa_setting_new(false, '61', $name, $desc, $html, $help);
8357
-
8358
- $name = __('List comments', 'wp-photo-album-plus');
8359
- $desc = __('Show the content of the comments table.', 'wp-photo-album-plus');
8360
- $help = '';
8361
- $slug1 = 'wppa_list_comments_by';
8362
- $slug2 = 'wppa_list_comments';
8363
- $opts = array( 'Email', 'Name', 'Timestamp' );
8364
- $vals = array( 'email', 'name', 'timestamp' );
8365
- $html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus').'</small>'.wppa_select($slug1, $opts, $vals);
8366
- $html2 = wppa_popup_button( $slug2 );
8367
- $html3 = '';
8368
- $html4 = '';
8369
- $html = array($html1, $html2, $html3, $html4);
8370
- wppa_setting_new(false, '62', $name, $desc, $html, $help);
8371
 
8372
  wppa_setting_box_footer_new();
8373
  }
@@ -8669,178 +8700,178 @@ global $wppa_subtab_names;
8669
  case 'watermark': {
8670
  // Watermark related settings
8671
  {
8672
- $desc = $wppa_subtab_names[$tab]['1'];
8673
- wppa_setting_tab_description($desc);
8674
- wppa_setting_box_header_new($tab);
8675
-
8676
- $name = __('Watermark file', 'wp-photo-album-plus');
8677
- $desc = __('The default watermarkfile to be used.', 'wp-photo-album-plus');
8678
- $help = __('Watermark files are of type png and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/watermarks/';
8679
- $help .= '<br />'.__('A suitable watermarkfile typically consists of a transparent background and a black text or drawing.', 'wp-photo-album-plus');
8680
- $help .= '<br />'.sprintf(__('The watermark image will be overlaying the photo with %s%% transparency.', 'wp-photo-album-plus'), (100-wppa_opt( 'watermark_opacity' )));
8681
- $help .= '<br />'.__('You may also select one of the textual watermark types at the bottom of the selection list.', 'wp-photo-album-plus');
8682
- $slug = 'wppa_watermark_file';
8683
- $html = '<select style="float:left; font-size:11px; height:20px; margin:0 4px 0 0; padding:0; " id="wppa_watermark_file" onchange="wppaAjaxUpdateOptionValue(\'watermark_file\', this)" >' . wppa_watermark_file_select( 'system' ) . '</select>';
8684
- $html .= '<img id="img_watermark_file" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
8685
- $html .= '<span style="float:left; margin-left:12px;" >'.__('position:', 'wp-photo-album-plus').'</span><select style="float:left; font-size:11px; height:20px; margin:0 0 0 20px; padding:0; " id="wppa_watermark_pos" onchange="wppaAjaxUpdateOptionValue(\'watermark_pos\', this)" >' . wppa_watermark_pos_select( 'system' ) . '</select>';
8686
- $html .= '<img id="img_watermark_pos" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
8687
- wppa_setting_new(false, '1', $name, $desc, $html, $help);
8688
-
8689
- $name = __('Upload watermark', 'wp-photo-album-plus');
8690
- $desc = __('Upload a new watermark file', 'wp-photo-album-plus');
8691
- $help = '';
8692
- $slug = 'wppa_watermark_file_upload';
8693
- $html = wppa_upload_form( $slug, $wppa_cur_tab, '.png' );
8694
- wppa_setting_new(false, '2', $name, $desc, $html, $help);
8695
-
8696
- $name = __('Watermark opacity image', 'wp-photo-album-plus');
8697
- $desc = __('You can set the intensity of image watermarks here.', 'wp-photo-album-plus');
8698
- $help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
8699
- $slug = 'wppa_watermark_opacity';
8700
- $html = wppa_input($slug, '50px', '', '%');
8701
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
8702
 
8703
- $name = __('Textual watermark style', 'wp-photo-album-plus');
8704
- $desc = __('The way the textual watermarks look like', 'wp-photo-album-plus');
8705
- $help = '';
8706
- $slug = 'wppa_textual_watermark_type';
8707
- $clas = 'wppa_watermark';
8708
- $sopts = array( __('TV subtitle style', 'wp-photo-album-plus'), __('White text on black background', 'wp-photo-album-plus'), __('Black text on white background', 'wp-photo-album-plus'), __('Reverse TV style (Utopia)', 'wp-photo-album-plus'), __('White on transparent background', 'wp-photo-album-plus'), __('Black on transparent background', 'wp-photo-album-plus') );
8709
- $svals = array( 'tvstyle', 'whiteonblack', 'blackonwhite', 'utopia', 'white', 'black' );
8710
- $font = wppa_opt( 'textual_watermark_font' );
8711
- $onchange = 'wppaCheckFontPreview()';
8712
- $html = wppa_select($slug, $sopts, $svals, $onchange);
8713
- $preview = '<img style="background-color:#777;" id="wm-type-preview" src="" />';
8714
- wppa_setting_new($slug, '4', $name, $desc, $html.' '.$preview, $help, $clas);
8715
-
8716
- $name = __('Predefined watermark text', 'wp-photo-album-plus');
8717
- $desc = __('The text to use when --- pre-defined --- is selected.', 'wp-photo-album-plus');
8718
- $help = __('You may use the following keywords:', 'wp-photo-album-plus');
8719
- $help .= '<br />'.__('w#site, w#displayname, all standard photo keywords, iptc and exif keywords', 'wp-photo-album-plus');
8720
- $slug = 'wppa_textual_watermark_text';
8721
- $html = wppa_textarea($slug, $name);
8722
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
8723
 
8724
- if ( function_exists( 'imagettfbbox' ) ) {
8725
-
8726
- $name = __('Textual watermark font', 'wp-photo-album-plus');
8727
- $desc = __('The font to use with textual watermarks.', 'wp-photo-album-plus');
8728
- $help = __('Except for the system font, are font files of type ttf and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/fonts/';
8729
- $slug = 'wppa_textual_watermark_font';
8730
- $fopts = array( 'System' );
8731
- $fvals = array( 'system' );
8732
- $style = wppa_opt( 'textual_watermark_type' );
8733
- $fonts = wppa_glob( WPPA_UPLOAD_PATH . '/fonts/*.ttf' );
8734
- sort($fonts);
8735
- foreach ( $fonts as $font ) {
8736
- $f = basename($font);
8737
- $f = preg_replace('/\.[^.]*$/', '', $f);
8738
- $F = strtoupper(substr($f,0,1)).substr($f,1);
8739
- $fopts[] = $F;
8740
- $fvals[] = $f;
8741
- }
8742
- $onchange = 'wppaCheckFontPreview()';
8743
- $html = wppa_select($slug, $fopts, $fvals, $onchange);
8744
- $preview = '<img style="background-color:#777;" id="wm-font-preview" src="" />';
8745
- wppa_setting_new($slug, '6', $name, $desc, $html.' '.$preview, $help, $clas);
8746
-
8747
- foreach ( array_keys( $sopts ) as $skey ) {
8748
- foreach ( array_keys( $fopts ) as $fkey ) {
8749
- wppa_create_textual_watermark_file( array( 'font' => $fvals[$fkey], 'text' => $sopts[$skey], 'style' => $svals[$skey], 'filebasename' => $svals[$skey].'-'.$fvals[$fkey] ) );
8750
- wppa_create_textual_watermark_file( array( 'font' => $fvals[$fkey], 'text' => $fopts[$fkey], 'style' => $svals[$skey], 'filebasename' => $fvals[$fkey].'-'.$svals[$skey] ) );
8751
- }
8752
- }
8753
 
8754
- $name = __('Textual watermark font size', 'wp-photo-album-plus');
8755
- $desc = __('You can set the size of the truetype fonts only.', 'wp-photo-album-plus');
8756
- $help = __('System font can have size 1,2,3,4 or 5, in some stoneage fontsize units. Any value > 5 will be treated as 5.', 'wp-photo-album-plus');
8757
- $help .= '<br />'.__('Truetype fonts can have any positive integer size, if your PHPs GD version is 1, in pixels, in GD2 in points.', 'wp-photo-album-plus');
8758
- $help .= '<br />'.__('It is unclear how many pixels a point is...', 'wp-photo-album-plus');
8759
- $slug = 'wppa_textual_watermark_size';
8760
- $html = wppa_input($slug, '50px', '', 'points');
8761
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
8762
 
8763
- $name = __('Foreground color', 'wp-photo-album-plus');
8764
- $desc = __('Textual watermark foreground color (black).', 'wp-photo-album-plus');
8765
  $help = '';
8766
- $slug = 'wppa_watermark_fgcol_text';
8767
- $onch = 'wppaRefreshAfter();';
8768
- $html = wppa_input_color($slug, '100px;', '', '', $onch );
8769
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
8770
 
8771
- $name = __('Background color', 'wp-photo-album-plus');
8772
- $desc = __('Textual watermark background color (white).', 'wp-photo-album-plus');
8773
- $help = '';
8774
- $slug = 'wppa_watermark_bgcol_text';
8775
- $onch = 'wppaRefreshAfter();';
8776
- $html = wppa_input_color($slug, '100px;', '', '', $onch );
8777
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8778
 
8779
- $name = __('Upload watermark font', 'wp-photo-album-plus');
8780
- $desc = __('Upload a new watermark font file', 'wp-photo-album-plus');
8781
- $help = __('Upload truetype fonts (.ttf) only, and test if they work on your server platform.', 'wp-photo-album-plus');
8782
- $slug = 'wppa_watermark_font_upload';
8783
- $html = wppa_upload_form( $slug, $wppa_cur_tab, '.ttf' );
8784
- wppa_setting_new(false, '10', $name, $desc, $html, $help);
 
 
8785
 
8786
- $name = __('Watermark opacity text', 'wp-photo-album-plus');
8787
- $desc = __('You can set the intensity of a text watermarks here.', 'wp-photo-album-plus');
8788
- $help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
8789
- $slug = 'wppa_watermark_opacity_text';
8790
- $html = wppa_input($slug, '50px', '', '%');
8791
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8792
 
8793
- $name = __('Preview', 'wp-photo-album-plus');
8794
- $desc = __('A preview. Keywords in descriptions or predefined text are not translated.', 'wp-photo-album-plus');
8795
- $help = __('To see the changes: refresh the page', 'wp-photo-album-plus');
8796
- $slug = 'wppa_watermark_preview';
8797
- $tr = floor( 127 * ( 100 - wppa_opt( 'watermark_opacity_text' ) ) / 100 );
8798
- $args = array( 'id' => '0', 'url' => true, 'width' => '1000', 'height' => '400', 'transp' => $tr );
8799
- $html = '
8800
- <div
8801
- style="float:left; text-align:center; max-width:400px; overflow:hidden; background-image:url('.WPPA_UPLOAD_URL.'/fonts/turkije.jpg);"
 
 
 
 
 
 
 
 
 
 
 
8802
  >
8803
- <img
8804
- src="'.wppa_create_textual_watermark_file( $args ).'?ver='.rand(0, 4711).'"
8805
- />
8806
- </div>
8807
- <input
8808
- type="button"
8809
- class="wppa-doit-button"
8810
- value="' . __( 'Refresh', 'wp-photo-album-plus' ) . '"
8811
- onclick="wppaRefreshPage()"
8812
- style="height: 30px; margin: 16px 4px;"
8813
- >
8814
- <div style="clear:both;"></div>';
8815
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
8816
- }
8817
 
8818
- $name = __('Watermark thumbnails', 'wp-photo-album-plus');
8819
- $desc = __('Watermark also the thumbnail image files.', 'wp-photo-album-plus');
8820
- $help = '';
8821
- $slug = 'wppa_watermark_thumbs';
8822
- $html = wppa_checkbox($slug);
8823
- $clas = 'wppa_watermark';
8824
- $tags = 'water,thumb';
8825
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
8826
 
8827
- $name = __('Watermark size', 'wp-photo-album-plus');
8828
- $desc = __('The size of the image based watermark in percents of the image width', 'wp-photo-album-plus');
8829
- $help = __('Select a value, --- off --- means: use the watermark image as is', 'wp-photo-album-plus');
8830
- $slug = 'wppa_watermark_size';
8831
- $opts = array( __('--- off ---', 'wp-photo-album-plus'), '10%', '20%', '25%', '30%', '40%', '50%', '60%', '70%', '80%', '90%' );
8832
- $vals = array( '0', '10', '20', '25', '30', '40', '50', '60', '70', '80', '90' );
8833
- $html = wppa_select($slug, $opts, $vals);
8834
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
8835
 
8836
- $name = __('Watermark margin', 'wp-photo-album-plus');
8837
- $desc = __('The margin for the watermark from the edge of the image', 'wp-photo-album-plus');
8838
- $help = __('A value > 1 means pixels, a value < 1 means fraction. E.g enter 0.12 for 12%', 'wp-photo-album-plus');
8839
- $slug = 'wppa_watermark_margin';
8840
- $html = wppa_input($slug, '40px;');
8841
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
8842
 
8843
- wppa_setting_box_footer_new();
8844
  }
8845
  }
8846
  break;
@@ -8848,233 +8879,233 @@ global $wppa_subtab_names;
8848
  case 'constants': {
8849
  // System constants (read only)
8850
  {
8851
- $desc = $wppa_subtab_names[$tab]['1'];
8852
- wppa_setting_tab_description($desc);
8853
 
8854
- $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
8855
- __('Name', 'wp-photo-album-plus') => 'auto;',
8856
- __('Description', 'wp-photo-album-plus') => 'auto;',
8857
- __('Value', 'wp-photo-album-plus') => 'auto;',
8858
- __('Download', 'wp-photo-album-plus') => 'auto;',
8859
- __('Help', 'wp-photo-album-plus') => '24px;',
8860
- );
8861
- wppa_setting_box_header_new($tab, $coldef);
8862
 
8863
- $name = 'WPPA_ALBUMS';
8864
- $desc = __('Albums db table name.', 'wp-photo-album-plus');
8865
- $help = '';
8866
- $html1 = WPPA_ALBUMS . wppa_see_also( 'miscadv', '1', '12' );
8867
- $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_ALBUMS . '\')" >' .
8868
- __('Download', 'wp-photo-album-plus') . ' ' . WPPA_ALBUMS . '.csv' .
8869
- '</a> ' .
8870
- '<img id="' . WPPA_ALBUMS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8871
- $html = array( $html1, $html2 );
8872
- wppa_setting_new(false, '1', $name, $desc, $html, $help);
8873
-
8874
- $name = 'WPPA_PHOTOS';
8875
- $desc = __('Photos db table name.', 'wp-photo-album-plus');
8876
- $help = '';
8877
- $html1 = WPPA_PHOTOS;
8878
- $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_PHOTOS . '\')" >' .
8879
- __('Download', 'wp-photo-album-plus') . ' ' . WPPA_PHOTOS . '.csv' .
8880
- '</a> ' .
8881
- '<img id="' . WPPA_PHOTOS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8882
- $html = array( $html1, $html2 );
8883
- wppa_setting_new(false, '2', $name, $desc, $html, $help);
8884
-
8885
- $name = 'WPPA_RATING';
8886
- $desc = __('Rating db table name.', 'wp-photo-album-plus');
8887
- $help = '';
8888
- $html1 = WPPA_RATING;
8889
- $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_RATING . '\')" >' .
8890
- __('Download', 'wp-photo-album-plus') . ' ' . WPPA_RATING . '.csv' .
8891
- '</a> ' .
8892
- '<img id="' . WPPA_RATING . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8893
- $html = array( $html1, $html2 );
8894
- wppa_setting_new(false, '3', $name, $desc, $html, $help);
8895
-
8896
- $name = 'WPPA_COMMENTS';
8897
- $desc = __('Comments db table name.', 'wp-photo-album-plus');
8898
- $help = '';
8899
- $html1 = WPPA_COMMENTS;
8900
- $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_COMMENTS . '\')" >' .
8901
- __('Download', 'wp-photo-album-plus') . ' ' . WPPA_COMMENTS . '.csv' .
8902
- '</a> ' .
8903
- '<img id="' . WPPA_COMMENTS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8904
- $html = array( $html1, $html2 );
8905
- wppa_setting_new(false, '4', $name, $desc, $html, $help);
8906
-
8907
- $name = 'WPPA_IPTC';
8908
- $desc = __('IPTC db table name.', 'wp-photo-album-plus');
8909
- $help = '';
8910
- $html1 = WPPA_IPTC;
8911
- $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_IPTC . '\')" >' .
8912
- __('Download', 'wp-photo-album-plus') . ' ' . WPPA_IPTC . '.csv' .
8913
- '</a> ' .
8914
- '<img id="' . WPPA_IPTC . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8915
- $html = array( $html1, $html2 );
8916
- wppa_setting_new(false, '5', $name, $desc, $html, $help);
8917
-
8918
- $name = 'WPPA_EXIF';
8919
- $desc = __('EXIF db table name.', 'wp-photo-album-plus');
8920
- $help = '';
8921
- $html1 = WPPA_EXIF;
8922
- $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_EXIF . '\')" >' .
8923
- __('Download', 'wp-photo-album-plus') . ' ' . WPPA_EXIF . '.csv' .
8924
- '</a> ' .
8925
- '<img id="' . WPPA_EXIF . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8926
- $html = array( $html1, $html2 );
8927
- wppa_setting_new(false, '6', $name, $desc, $html, $help);
8928
-
8929
- $name = 'WPPA_INDEX';
8930
- $desc = __('Index db table name.', 'wp-photo-album-plus');
8931
- $help = '';
8932
- $html1 = WPPA_INDEX;
8933
- $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_INDEX . '\')" >' .
8934
- __('Download', 'wp-photo-album-plus') . ' ' . WPPA_INDEX . '.csv' .
8935
- '</a> ' .
8936
- '<img id="' . WPPA_INDEX . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8937
- $html = array( $html1, $html2 );
8938
- wppa_setting_new(false, '7', $name, $desc, $html, $help);
8939
-
8940
- $name = 'WPPA_SESSION';
8941
- $desc = __('Session db table name.', 'wp-photo-album-plus');
8942
- $help = '';
8943
- $html1 = WPPA_SESSION;
8944
- $html2 = sprintf( __('Download %s is useless', 'wp-photo-album-plus'), WPPA_SESSION );
8945
- $html = array( $html1, $html2 );
8946
- wppa_setting_new(false, '8', $name, $desc, $html, $help);
8947
 
8948
- $name = 'WPPA_FILE';
8949
- $desc = __('Plugins main file name.', 'wp-photo-album-plus');
8950
- $help = '';
8951
- $html1 = WPPA_FILE;
8952
- $html2 = '';
8953
- $html = array( $html1, $html2 );
8954
- wppa_setting_new(false, '9', $name, $desc, $html, $help);
 
 
 
8955
 
8956
- $name = 'ABSPATH';
8957
- $desc = __('WP absolute path.', 'wp-photo-album-plus');
8958
- $help = '';
8959
- $html1 = ABSPATH;
8960
- $html2 = '';
8961
- $html = array( $html1, $html2 );
8962
- wppa_setting_new(false, '10', $name, $desc, $html, $help);
 
 
 
8963
 
8964
- $name = 'WPPA_ABSPATH';
8965
- $desc = __('ABSPATH windows proof', 'wp-photo-album-plus');
8966
- $help = '';
8967
- $html1 = WPPA_ABSPATH;
8968
- $html2 = '';
8969
- $html = array( $html1, $html2 );
8970
- wppa_setting_new(false, '11', $name, $desc, $html, $help);
 
 
 
8971
 
8972
- $name = 'WPPA_PATH';
8973
- $desc = __('Path to plugins directory.', 'wp-photo-album-plus');
8974
- $help = '';
8975
- $html1 = WPPA_PATH;
8976
- $html2 = '';
8977
- $html = array( $html1, $html2 );
8978
- wppa_setting_new(false, '12', $name, $desc, $html, $help);
 
 
 
8979
 
8980
- $name = 'WPPA_NAME';
8981
- $desc = __('Plugins directory name.', 'wp-photo-album-plus');
8982
- $help = '';
8983
- $html1 = WPPA_NAME;
8984
- $html2 = '';
8985
- $html = array( $html1, $html2 );
8986
- wppa_setting_new(false, '13', $name, $desc, $html, $help);
 
 
 
8987
 
8988
- $name = 'WPPA_URL';
8989
- $desc = __('Plugins directory url.', 'wp-photo-album-plus');
8990
- $help = '';
8991
- $html1 = WPPA_URL;
8992
- $html2 = '';
8993
- $html = array( $html1, $html2 );
8994
- wppa_setting_new(false, '14', $name, $desc, $html, $help);
 
 
 
8995
 
8996
- $name = 'WPPA_UPLOAD';
8997
- $desc = __('The relative upload directory.', 'wp-photo-album-plus');
8998
- $help = '';
8999
- $html1 = WPPA_UPLOAD;
9000
- $html2 = '';
9001
- $html = array( $html1, $html2 );
9002
- wppa_setting_new(false, '15', $name, $desc, $html, $help);
9003
 
9004
- $name = 'WPPA_UPLOAD_PATH';
9005
- $desc = __('The upload directory path.', 'wp-photo-album-plus');
9006
- $help = '';
9007
- $html1 = WPPA_UPLOAD_PATH;
9008
- $html2 = '';
9009
- $html = array( $html1, $html2 );
9010
- wppa_setting_new(false, '16', $name, $desc, $html, $help);
9011
 
9012
- $name = 'WPPA_UPLOAD_URL';
9013
- $desc = __('The upload directory url.', 'wp-photo-album-plus');
9014
- $help = '';
9015
- $html1 = WPPA_UPLOAD_URL;
9016
- $html2 = '';
9017
- $html = array( $html1, $html2 );
9018
- wppa_setting_new(false, '17', $name, $desc, $html, $help);
9019
 
9020
- $name = 'WPPA_DEPOT';
9021
- $desc = __('The relative depot directory.', 'wp-photo-album-plus');
9022
- $help = '';
9023
- $html1 = WPPA_DEPOT;
9024
- $html2 = '';
9025
- $html = array( $html1, $html2 );
9026
- wppa_setting_new(false, '18', $name, $desc, $html, $help);
9027
 
9028
- $name = 'WPPA_DEPOT_PATH';
9029
- $desc = __('The depot directory path.', 'wp-photo-album-plus');
9030
- $help = '';
9031
- $html1 = WPPA_DEPOT_PATH;
9032
- $html2 = '';
9033
- $html = array( $html1, $html2 );
9034
- wppa_setting_new(false, '19', $name, $desc, $html, $help);
9035
 
9036
- $name = 'WPPA_DEPOT_URL';
9037
- $desc = __('The depot directory url.', 'wp-photo-album-plus');
9038
- $help = '';
9039
- $html1 = WPPA_DEPOT_URL;
9040
- $html2 = '';
9041
- $html = array( $html1, $html2 );
9042
- wppa_setting_new(false, '20', $name, $desc, $html, $help);
9043
 
9044
- $name = 'WPPA_CONTENT_PATH';
9045
- $desc = __('The path to wp-content.', 'wp-photo-album-plus');
9046
- $help = '';
9047
- $html1 = WPPA_CONTENT_PATH;
9048
- $html2 = '';
9049
- $html = array( $html1, $html2 );
9050
- wppa_setting_new(false, '21', $name, $desc, $html, $help);
9051
 
9052
- $name = 'WPPA_CONTENT_URL';
9053
- $desc = __('WP Content url.', 'wp-photo-album-plus');
9054
- $help = '';
9055
- $html1 = WPPA_CONTENT_URL;
9056
- $html2 = '';
9057
- $html = array( $html1, $html2 );
9058
- wppa_setting_new(false, '22', $name, $desc, $html, $help);
9059
 
9060
- $name = 'wp_upload_dir() : [\'basedir\']';
9061
- $desc = __('WP Base upload dir.', 'wp-photo-album-plus');
9062
- $help = '';
9063
- $wp_uploaddir = wp_upload_dir();
9064
- $html1 = $wp_uploaddir['basedir'];
9065
- $html2 = '';
9066
- $html = array( $html1, $html2 );
9067
- wppa_setting_new(false, '23', $name, $desc, $html, $help);
9068
-
9069
- $name = '$_SERVER[\'HTTP_HOST\']';
9070
- $desc = '';
9071
- $help = '';
9072
- $html1 = $_SERVER['HTTP_HOST'];
9073
- $html2 = '';
9074
- $html = array( $html1, $html2 );
9075
- wppa_setting_new(false, '24', $name, $desc, $html, $help);
9076
 
9077
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9078
  }
9079
  }
9080
  break;
@@ -9346,7 +9377,8 @@ global $wppa_subtab_names;
9346
 
9347
  $name = __('Show minimum tags only', 'wp-photo-album-plus');
9348
  $desc = __('Shows only the minimum tags in the photo admin tags seclection box', 'wp-photo-album-plus');
9349
- $help = __('To limit the use of these tags only, also tick Table VII-C9: New tags restricted', 'wp-photo-album-plus');
 
9350
  $slug = 'wppa_predef_tags_only';
9351
  $html = wppa_checkbox($slug);
9352
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
@@ -9367,10 +9399,10 @@ global $wppa_subtab_names;
9367
 
9368
  $name = __('Direct comment', 'wp-photo-album-plus');
9369
  $desc = __('Enable direct commenting and rating from remote source', 'wp-photo-album-plus');
9370
- $help = __('This setting has only effect when Table IV-A6.1 and 6.2 are ticked', 'wp-photo-album-plus');
9371
  $help .= '<br />' . __('Use with care, and only in special situations!', 'wp-photo-album-plus');
9372
  $slug = 'wppa_direct_comment';
9373
- $html = wppa_checkbox($slug);
9374
  wppa_setting_new($slug, '8', $name, $desc, $html, $help);
9375
 
9376
  $name = __('Extended resize count', 'wp-photo-album-plus');
@@ -9464,6 +9496,27 @@ global $wppa_subtab_names;
9464
  $html = wppa_checkbox($slug);
9465
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
9466
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9467
  wppa_setting_box_footer_new();
9468
  }
9469
  // External services related settings and actions
@@ -9538,7 +9591,7 @@ global $wppa_subtab_names;
9538
 
9539
  $name = __('Max lifetime', 'wp-photo-album-plus');
9540
  $desc = __('Old images from local server, new images from Cloudinary.', 'wp-photo-album-plus');
9541
- $help = __('If NOT set to Forever (0): You need to run Table VIII-B15 on a regular basis.', 'wp-photo-album-plus');
9542
  $slug = 'wppa_max_cloud_life';
9543
  $opts = array( __('Forever', 'wp-photo-album-plus'),
9544
  sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
@@ -9565,7 +9618,7 @@ global $wppa_subtab_names;
9565
  730*24*60*60,
9566
  );
9567
 
9568
- $html = wppa_select($slug, $opts, $vals);
9569
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
9570
 
9571
  $name = __('Cloudinary usage', 'wp-photo-album-plus');
@@ -9611,8 +9664,8 @@ global $wppa_subtab_names;
9611
  $desc = __('Cloudinary usage data not available', 'wp-photo-album-plus');
9612
  }
9613
  $help = '';
9614
- $html = '';
9615
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
9616
 
9617
  }
9618
 
@@ -9621,10 +9674,10 @@ global $wppa_subtab_names;
9621
  $help = __('In order to function properly:', 'wp-photo-album-plus');
9622
  $help .= '<br />'.__('1. Get yourself a Fotomoto account.', 'wp-photo-album-plus');
9623
  $help .= '<br />'.__('2. Install the Fotomoto plugin, enter the "Fotomoto Site Key:" and check the "Use API Mode:" checkbox.', 'wp-photo-album-plus');
9624
- $help .= '<br />'.__('Note: Do NOT Disable the Custom box in Table II-B14.', 'wp-photo-album-plus');
9625
- $help .= '<br />'.__('Do NOT remove the text w#fotomoto from the Custombox ( Table II-B15 ).', 'wp-photo-album-plus');
9626
  $slug = 'wppa_fotomoto_on';
9627
- $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
9628
  wppa_setting_new($slug, '9', $name, $desc, $html, $help);
9629
 
9630
  if ( wppa_switch( 'fotomoto_on' ) ) {
@@ -9707,7 +9760,6 @@ global $wppa_subtab_names;
9707
  $desc = __('Enable the use of non-wppa+ shortcodes in fullsize photo descriptions.', 'wp-photo-album-plus');
9708
  $help = __('When checked, you can use shortcodes from other plugins in the description of photos.', 'wp-photo-album-plus');
9709
  $help .= '<br />'.__('The shortcodes will be expanded in the descriptions of fullsize images.', 'wp-photo-album-plus');
9710
- $help .= '<br />'.__('You will most likely need also to check Table IX-A1 (Allow HTML).', 'wp-photo-album-plus');
9711
  $slug = 'wppa_allow_foreign_shortcodes';
9712
  $html = wppa_checkbox($slug);
9713
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
@@ -9716,7 +9768,6 @@ global $wppa_subtab_names;
9716
  $desc = __('Enable the use of non-wppa+ shortcodes in thumbnail photo descriptions.', 'wp-photo-album-plus');
9717
  $help = __('When checked, you can use shortcodes from other plugins in the description of photos.', 'wp-photo-album-plus');
9718
  $help .= '<br />'.__('The shortcodes will be expanded in the descriptions of thumbnail images.', 'wp-photo-album-plus');
9719
- $help .= '<br />'.__('You will most likely need also to check Table IX-A1 (Allow HTML).', 'wp-photo-album-plus');
9720
  $slug = 'wppa_allow_foreign_shortcodes_thumbs';
9721
  $html = wppa_checkbox($slug);
9722
  wppa_setting_new($slug, '2', $name, $desc, $html, $help);
@@ -9764,9 +9815,9 @@ global $wppa_subtab_names;
9764
 
9765
  $name = __('Use CM Tooltip Glossary', 'wp-photo-album-plus');
9766
  $desc = __('Use plugin CM Tooltip Glossary on photo and album descriptions.', 'wp-photo-album-plus');
9767
- $help = __('You MUST set Table IV-A13: Defer javascript, also if you do not want this plugin to act on album and photo descriptions!', 'wp-photo-album-plus');
9768
  $slug = 'wppa_use_CMTooltipGlossary';
9769
- $html = wppa_checkbox($slug);
9770
  wppa_setting_new($slug, '8', $name, $desc, $html, $help);
9771
 
9772
  $name = __('Shortcode [photo nnn] on bbPress', 'wp-photo-album-plus');
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.00.011
7
  *
8
  */
9
 
14
  global $wppa;
15
  global $wppa_opt;
16
  global $blog_id;
 
17
  global $opts_error;
18
  global $wppa_api_version;
19
  global $wp_roles;
 
 
20
  global $wppa_revno;
21
  global $no_default;
 
22
  global $wp_version;
23
  global $wppa_supported_camara_brands;
 
24
  global $wppa_cur_tab;
25
  global $wppa_cur_mtab;
26
  global $wppa_requested_subtab;
393
  wppa_error_message(__("Please remove 'define( 'DISABLE_WP_CRON', true );' from wp-config.php", 'wp-photo-album-plus' ) );
394
  }
395
 
396
+ // Check for inconsistencies in thumbnails
397
  if ( ( wppa_opt( 'thumbtype' ) == 'default' ) && (
398
  wppa_opt( 'tf_width' ) < wppa_opt( 'thumbsize' ) ||
399
  wppa_opt( 'tf_width_alt') < wppa_opt( 'thumbsize_alt' ) ||
400
  wppa_opt( 'tf_height' ) < wppa_opt( 'thumbsize' ) ||
401
  wppa_opt( 'tf_height_alt') < wppa_opt( 'thumbsize_alt' ) ) ) {
402
+ wppa_warning_message( __( 'A thumbframe width or height should not be smaller than a thumbnail size.' , 'wp-photo-album-plus') . wppa_see_also( 'thumbs', '1', '1.2.5..8', '', '', true ) );
403
  }
404
 
405
  // Check for 'many' albums
406
  if ( wppa_opt( 'photo_admin_max_albums' ) ) { // Not OFF
407
  $abs = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums" );
408
  if ( wppa_opt( 'photo_admin_max_albums' ) < $abs ) {
409
+ wppa_warning_message( __( 'This system contains more albums than the maximum configured.', 'wp-photo-album-plus' ) . wppa_see_also( 'admin', '6', '6' ) . '<br />' .
410
  __( 'No problem, but some widgets may not work and some album selectionboxes will revert to a simple input field asking for an album id.', 'wp-photo-album-plus' ) . ' ' .
411
+ __( 'If you do not have pageload performance problems, you may increase the number number configured.', 'wp-photo-album-plus' ) . '<br />' .
412
+ __( 'If there are many empty albums, you can simply remove them by running the appropriate maintenance routine.', 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '2', '9' ) );
413
  }
414
  }
415
 
416
  // Check for availability of hires urls in case panorama is on
417
  if ( wppa_switch( 'enable_panorama' ) ) {
418
  if ( ! wppa_switch( 'keep_source' ) ) {
419
+ wppa_warning_message( __( 'You enabled the display of complex panoramic photos', 'wp-photo-album-plus' ) . wppa_see_also( 'photos', '1', '3' ) . '<br />' .
420
+ __( 'It is strongly recommended that you save sourcefiles during upload in order to preserve resolution.', 'wp-photo-album-plus' ) . wppa_see_also( 'files', '1', '1', '', '', true ) );
421
  }
422
  }
423
 
424
  // Check on configuration when Grid covertype has been selected.
425
  if ( wppa_opt( 'cover_type' ) == 'grid' ) {
426
+ $stdmsg = __( 'You selected covertype "Grid with images only".', 'wp-photo-album-plus' ) . wppa_see_also( 'covers', '3', '4' ) . '<br />' .
427
  __( 'To assure proper layout, please correct the following configuration issues.', 'wp-photo-album-plus' ) . '<br />';
428
+ $message = $stdmsg;
429
+ $doit = false;
430
  if ( wppa_opt( 'max_cover_width' ) > wppa_opt( 'smallsize' ) ) {
431
+ $msg = __( 'Max Cover width may not be larger than Coverphoto size', 'wp-photo-album-plus' ) . wppa_see_also( 'covers', '1', '1.7', '', '', true ) . '<br />';
432
+ $message .= $msg;
433
+ $doit = true;
434
  }
435
  if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' && ! ( wppa_switch( 'cover_use_thumb' ) ) ) {
436
+ $msg = __( 'Thumbnail Aspect may not be set to "--- same as fullsize ---"','wp-photo-album-plus') . wppa_see_also( 'thumbs', '1', '3', '', '', true ) . '<br />' .
437
+ __( 'Alternatively you can activate Use thumb on cover', 'wp-photo-album-plus' ) . wppa_see_also( 'covers', '3', '8' );
438
+ $message .= $msg;
439
+ $doit = true;
440
+ }
441
+ if ( $doit ) {
442
+ wppa_warning_message( $message );
443
  }
444
  }
445
 
449
 
450
  $result = wppa_search_magick();
451
  $mes = __('Image Magick is detected on your server', 'wp-photo-album-plus') . '. ';
452
+ $mes .= __('To be able to use the most advanced features of WPPA, the Imagic shellcommand <b>convert</b> must be available', 'wp-photo-album-plus') . '.<br />';
453
 
454
  // Shell command found
455
  if ( ! empty( $result ) ) {
459
  }
460
  update_option( 'wppa_image_magick', $result[0][0] );
461
  $wppa_opt['wppa_image_magick'] = $result[0][0];
462
+ $mes .= sprintf( __('The location <b>%s</b> has been activated.', 'wp-photo-album-plus'), $result[0][0] ) . wppa_see_also( 'miscadv', '3', '13' ) . '<br />';
463
  $mes .= __('You may change it into a different path that contains the Imagick <b>convert</b> command at any time', 'wp-photo-album-plus') . '.<br />';
464
  $mes .= __('To disable ImageMagick, enter <b>none</b>', 'wp-photo-album-plus');
465
  }
474
  }
475
  }
476
 
477
+ // Check for thumbnail links
478
+ if ( wppa_opt( 'thumb_linktype') == 'lightbox' && wppa_switch( 'use_thumb_popup' ) ) {
479
+ $mes = __('You can not have thumbnail popups and links to lightbox at the same time.', 'wppa-photo-album-plus');
480
+ $mes .= wppa_see_also( 'thumbs', '3', '6', '', '', true ) . wppa_see_also( 'links', '2', '2', '', '', true );
481
+ wppa_warning_message( $mes );
482
+ }
483
+
484
  // Check for ttf support
485
  if ( ! function_exists( 'imagettfbbox' ) ) {
486
  wppa_error_message( __('Your PHP version does not support TrueType fonts. This means that you can not apply textual watermarks', 'wp-photo-album-plus' ) );
699
  wppa_setting_tab( 'links', $wppa_tab_names['links'], $basic );
700
  wppa_setting_tab( 'users', $wppa_tab_names['users'], $advan && wppa_switch( 'user_upload_on' ) );
701
  wppa_setting_tab( 'email', $wppa_tab_names['email'], $advan && wppa_switch( 'email_on' ) );
702
+ wppa_setting_tab( 'share', $wppa_tab_names['share'], $advan && ( wppa_switch( 'share_on' ) || wppa_switch( 'share_on_lightbox' ) ) );
703
  wppa_setting_tab( 'system', $wppa_tab_names['system'], $advan );
704
  wppa_setting_tab( 'files', $wppa_tab_names['files'], $advan );
705
  wppa_setting_tab( 'new', $wppa_tab_names['new'], $advan );
788
  }
789
  jQuery( "#"+clas+"-cm" ).hide();
790
  }
791
+ function wppaCheckFontPreview() {
792
+ var font = document.getElementById("textual_watermark_font").value;
793
+ var type = document.getElementById("textual_watermark_type").value;
794
+ var fsrc = wppaFontDirectory+"wmf"+font+"-"+type+".png";
795
+ var tsrc = wppaFontDirectory+"wmf"+type+"-"+font+".png";
796
+ jQuery("#wm-font-preview").attr("src", fsrc);
797
+ jQuery("#wm-type-preview").attr("src", tsrc);
798
+ }
799
  var heartbeat = 0;
800
  setInterval( function() {
801
  heartbeat++;
808
  jQuery(document).ready(function(){setTimeout(function(){
809
  if (jQuery(".' . $subtab . '").attr("data-inactive") == "1") jQuery(".' . $subtab . '").trigger("click");
810
  },100)});' : ''
811
+ ) .
812
+ ( $tab == 'watermark' ? 'jQuery(document).ready(function(){wppaCheckFontPreview();});' : '' ) . '
813
  </script>';
814
  }
815
 
824
  case 'generaladv': {
825
  // On this tab you can select the features you want to use
826
  {
827
+ $desc = $wppa_subtab_names[$tab]['1'];
828
+ wppa_setting_tab_description($desc);
829
+ wppa_setting_box_header_new($tab);
830
 
831
+ $name = __('Enable Photo', 'wp-photo-album-plus');
832
+ $desc = __('Enables photo support', 'wp-photo-album-plus');
833
+ $help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus');
834
+ $slug = '';
835
+ $html = '<input type="checkbox" style="float:left;" checked disabled >' . wppa_see_also( 'photos', '1' );
836
+ wppa_setting_new($slug, '0', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
837
 
838
+ $name = __('Enable Video', 'wp-photo-album-plus');
839
+ $desc = __('Enables video support.', 'wp-photo-album-plus');
840
+ $help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus');
841
+ $slug = 'wppa_enable_video';
842
+ $onch = 'wppaRefreshAfter();';
843
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'misc', '1', '7.8', 'enable_video' ) . wppa_see_also( 'users', '1', '2', 'enable_video' );
844
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
845
 
846
+ $name = __('Enable pdf', 'wp-photo-album-plus');
847
+ $desc = __('Enables the support of pdf files', 'wp-photo-album-plus');
848
+ $help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus');
849
+ $slug = 'wppa_enable_pdf';
850
+ $html = wppa_checkbox($slug) . ( wppa_opt( 'art_monkey_link' ) == 'new' ? wppa_see_also( 'links', '4', '3' ) : '' );
851
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
852
 
853
+ $name = __('Enable Audio', 'wp-photo-album-plus');
854
+ $desc = __('Enables audio support.', 'wp-photo-album-plus');
855
+ $help = __('Check this box to enable the upload and display of audio files', 'wp-photo-album-plus');
856
+ $slug = 'wppa_enable_audio';
857
+ $onch = 'wppaRefreshAfter();';
858
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '3', 'enable_audio' );
859
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
860
 
861
+ $name = __('Enable Comments', 'wp-photo-album-plus');
862
+ $desc = __('Enables the comments system.', 'wp-photo-album-plus');
863
+ $help = __('Display the comments box under the slideshow images and let users enter their comments on individual photos.', 'wp-photo-album-plus');
864
+ $slug = 'wppa_show_comments';
865
+ $onch = 'wppaRefreshAfter();';
866
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'comments', '1', '', 'show_comments' );
867
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
868
 
869
+ $name = __('Enable Ratings', 'wp-photo-album-plus');
870
+ $desc = __('Enables the rating system.', 'wp-photo-album-plus');
871
+ $help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus');
872
+ $slug = 'wppa_rating_on';
873
+ $onch = 'wppaRefreshAfter();';
874
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'rating', '1', '', 'rating_on' );
875
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
876
 
877
+ $name = __('Enable User uploads', 'wp-photo-album-plus');
878
+ $desc = __('Enables frontend upload.', 'wp-photo-album-plus');
879
+ $help = '';
880
+ $slug = 'wppa_user_upload_on';
881
+ $onch = 'wppaRefreshAfter();';
882
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '', 'user_upload_on' );
883
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
884
 
885
+ $name = __('Enable Email', 'wp-photo-album-plus');
886
+ $desc = __('Enables sending emails when albums, photos or comments are entered.', 'wp-photo-album-plus');
887
+ $help = __('See Tab Emails for detailed settings', 'wp-photo-album-plus');
888
+ $slug = 'wppa_email_on';
889
+ $onch = 'wppaRefreshAfter();';
890
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'email', '1', '', 'email_on' );
891
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
892
 
893
+ $name = __('Enable EXIF', 'wp-photo-album-plus');
894
+ $desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
895
+ $help = __('You will need this if you enabled the display of exif data in the photo descriptions.', 'wp-photo-album-plus');
896
+ $slug = 'wppa_save_exif';
897
+ $onch = 'wppaRefreshAfter();';
898
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'exif', '1', '', 'save_exif' );
899
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
900
 
901
+ $name = __('Enable IPTC', 'wp-photo-album-plus');
902
+ $desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
903
+ $help = __('You will need this if you enabled the display of iptc data in the photo descriptions.', 'wp-photo-album-plus');
904
+ $slug = 'wppa_save_iptc';
905
+ $onch = 'wppaRefreshAfter();';
906
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'iptc', '1', '', 'save_iptc' );
907
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help, function_exists('exif_read_data') );
908
 
909
+ $name = __('Enable GPX', 'wp-photo-album-plus');
910
+ $desc = __('Store the gpx data from the photo into the exif db table', 'wp-photo-album-plus');
911
+ $help = __('You will need this if you enabled the display of gpx data in the photo descriptions.', 'wp-photo-album-plus');
912
+ $slug = 'wppa_save_gpx';
913
+ $onch = 'wppaRefreshAfter();';
914
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'gpx', '1', '', 'save_gpx' );
915
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help, function_exists('exif_read_data') && wppa_switch( 'save_exif' ) );
916
 
917
+ $name = __('Enable Custom data albums', 'wp-photo-album-plus');
918
+ $desc = __('Define up to 10 custom data fields for albums.', 'wp-photo-album-plus');
919
+ $help = '';
920
+ $slug = 'wppa_album_custom_fields';
921
+ $onch = 'wppaRefreshAfter();';
922
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '1', '', 'album_custom_fields' );
923
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
924
+
925
+ $name = __('Enable Custom data photos', 'wp-photo-album-plus');
926
+ $desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus');
927
+ $help = '';
928
+ $slug = 'wppa_custom_fields';
929
+ $onch = 'wppaRefreshAfter();';
930
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '2', '', 'custom_fields' );
931
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
932
+
933
+ $name = __('Enable Watermark', 'wp-photo-album-plus');
934
+ $desc = __('Enable the application of watermarks.', 'wp-photo-album-plus');
935
+ $help = '';
936
+ $slug = 'wppa_watermark_on';
937
+ $onch = 'wppaRefreshAfter();';
938
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'watermark', '1', '', 'watermark_on' );
939
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
940
+
941
+ $name = __('Enable shortcode [photo ..]', 'wp-photo-album-plus');
942
+ $desc = __('Make the use of shortcode [photo ..] possible', 'wp-photo-album-plus');
943
+ $help = __('Only disable this when there is a conflict with another plugin', 'wp-photo-album-plus');
944
+ $slug = 'wppa_photo_shortcode_enabled';
945
+ $onch = 'wppaRefreshAfter();';
946
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'photos', '2', '', 'photo_shortcode_enabled' );
947
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
948
+
949
+ wppa_setting_box_footer_new();
950
  }
951
  }
952
  break;
953
 
954
  case 'layout': {
955
  // General layout settings
 
956
  {
957
+ $desc = $wppa_subtab_names[$tab]['1'];
958
+ wppa_setting_tab_description($desc);
959
+ wppa_setting_box_header_new($tab);
960
 
961
+ $name = __('WPPA display boxes', 'wp-photo-album-plus');
962
+ $desc = __('Background and border colors.', 'wp-photo-album-plus');
963
+ $help = __('Enter valid CSS colors for backgrounds and borders. E.g. #cccccc, gray, lightblue, transparent', 'wp-photo-album-plus');
964
+ $slug1 = 'wppa_bgcolor';
965
+ $slug2 = 'wppa_bcolor';
966
+ $slug = array($slug1, $slug2);
967
+ $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
968
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Border:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
969
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
970
 
971
+ $name = __('Border thickness', 'wp-photo-album-plus');
972
+ $desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus');
973
+ $help = __('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus');
974
+ $slug = 'wppa_bwidth';
975
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
976
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
977
 
978
+ $name = __('Border radius', 'wp-photo-album-plus');
979
+ $desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus');
980
+ $help = __('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus');
981
+ $slug = 'wppa_bradius';
982
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
983
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
984
 
985
+ $name = __('Box spacing', 'wp-photo-album-plus');
986
+ $desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus');
987
+ $help = '';
988
+ $slug = 'wppa_box_spacing';
989
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
990
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
991
 
992
+ $name = __('Initial Width', 'wp-photo-album-plus');
993
+ $desc = __('The starting width of the wppa display boxes', 'wp-photo-album-plus');
994
+ $help = '';
995
+ $slug = 'wppa_initial_colwidth';
996
+ $html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
997
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
998
 
999
+ $name = __('Sticky header size', 'wp-photo-album-plus');
1000
+ $desc = __('The height of your sticky header.', 'wp-photo-album-plus');
1001
+ $help = __('If your theme has a sticky header, enter its height here.', 'wp-photo-album-plus');
1002
+ $slug = 'wppa_sticky_header_size';
1003
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
1004
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
1005
 
1006
+ $name = __('Area max size', 'wp-photo-album-plus');
1007
+ $desc = __('The max height of the thumbnail and album cover areas', 'wp-photo-album-plus');
1008
+ $help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus');
1009
+ $slug = 'wppa_area_size';
1010
+ $html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus'));
1011
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
1012
 
1013
+ $name = __('Use nicescroller', 'wp-photo-album-plus');
1014
+ $desc = __('Use nice scrollbars on thumbnail and album cover areas', 'wp-photo-album-plus');
1015
+ $help = '';
1016
+ $slug = 'wppa_nicescroll';
1017
+ $html = wppa_checkbox($slug);
1018
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1019
 
1020
+ $name = __('Max Pagelinks', 'wp-photo-album-plus');
1021
+ $desc = __('The maximum number of pagelinks to be displayed.', 'wp-photo-album-plus');
1022
+ $help = '';
1023
+ $slug = 'wppa_pagelinks_max';
1024
+ $html = wppa_input($slug, '40px', '', __('pages', 'wp-photo-album-plus'));
1025
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1026
 
1027
+ $name = __('Cover Photo and popups', 'wp-photo-album-plus');
1028
+ $desc = __('Background and Border colors.', 'wp-photo-album-plus');
1029
+ $help = __('Enter valid CSS colors for Cover photo and popup backgrounds and borders.', 'wp-photo-album-plus');
1030
+ $slug1 = 'wppa_bgcolor_img';
1031
+ $slug2 = 'wppa_bcolor_img';
1032
+ $slug = array($slug1, $slug2);
1033
+ $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1034
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Border:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1035
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
1036
 
1037
+ $name = __('Modal render box', 'wp-photo-album-plus');
1038
+ $desc = __('The background for the Ajax modal rendering box.', 'wp-photo-album-plus');
1039
+ $help = __('Recommended color: your theme background color.', 'wp-photo-album-plus');
1040
+ $slug1 = 'wppa_bgcolor_modal';
1041
+ $slug2 = 'wppa_bcolor_modal';
1042
+ $slug = array($slug1, $slug2);
1043
+ $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1044
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
1045
 
1046
+ wppa_setting_box_footer_new();
1047
  }
1048
  // Breadcrumb specifications
 
1049
  {
1050
+ $desc = $wppa_subtab_names[$tab]['2'];
1051
+ wppa_setting_tab_description($desc);
1052
+ wppa_setting_box_header_new($tab);
1053
 
1054
+ $name = __('Breadcrumb on posts', 'wp-photo-album-plus');
1055
+ $desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
1056
+ $help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus');
1057
+ $slug = 'wppa_show_bread_posts';
1058
+ $html = wppa_checkbox($slug);
1059
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
1060
 
1061
+ $name = __('Breadcrumb on pages', 'wp-photo-album-plus');
1062
+ $desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
1063
+ $help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus');
1064
+ $slug = 'wppa_show_bread_pages';
1065
+ $html = wppa_checkbox($slug);
1066
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
1067
 
1068
+ $name = __('Breadcrumb on search results', 'wp-photo-album-plus');
1069
+ $desc = __('Show breadcrumb navigation bars on the search results page.', 'wp-photo-album-plus');
1070
+ $help = __('Indicate whether a breadcrumb navigation should be displayed above the search results.', 'wp-photo-album-plus');
1071
+ $slug = 'wppa_bc_on_search';
1072
+ $html = wppa_checkbox($slug);
1073
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
1074
 
1075
+ $name = __('Breadcrumb on topten displays', 'wp-photo-album-plus');
1076
+ $desc = __('Show breadcrumb navigation bars on topten displays.', 'wp-photo-album-plus');
1077
+ $help = __('Indicate whether a breadcrumb navigation should be displayed above the topten displays.', 'wp-photo-album-plus');
1078
+ $slug = 'wppa_bc_on_topten';
1079
+ $html = wppa_checkbox($slug);
1080
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
1081
 
1082
+ $name = __('Breadcrumb on last ten displays', 'wp-photo-album-plus');
1083
+ $desc = __('Show breadcrumb navigation bars on last ten displays.', 'wp-photo-album-plus');
1084
+ $help = __('Indicate whether a breadcrumb navigation should be displayed above the last ten displays.', 'wp-photo-album-plus');
1085
+ $slug = 'wppa_bc_on_lasten';
1086
+ $html = wppa_checkbox($slug);
1087
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
1088
 
1089
+ $name = __('Breadcrumb on comment ten displays', 'wp-photo-album-plus');
1090
+ $desc = __('Show breadcrumb navigation bars on comment ten displays.', 'wp-photo-album-plus');
1091
+ $help = __('Indicate whether a breadcrumb navigation should be displayed above the comment ten displays.', 'wp-photo-album-plus');
1092
+ $slug = 'wppa_bc_on_comten';
1093
+ $html = wppa_checkbox($slug);
1094
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
1095
 
1096
+ $name = __('Breadcrumb on tag result displays', 'wp-photo-album-plus');
1097
+ $desc = __('Show breadcrumb navigation bars on tag result displays.', 'wp-photo-album-plus');
1098
+ $help = __('Indicate whether a breadcrumb navigation should be displayed above the tag result displays.', 'wp-photo-album-plus');
1099
+ $slug = 'wppa_bc_on_tag';
1100
+ $html = wppa_checkbox($slug);
1101
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
1102
 
1103
+ $name = __('Breadcrumb on featured ten displays', 'wp-photo-album-plus');
1104
+ $desc = __('Show breadcrumb navigation bars on featured ten displays.', 'wp-photo-album-plus');
1105
+ $help = __('Indicate whether a breadcrumb navigation should be displayed above the featured ten displays.', 'wp-photo-album-plus');
1106
+ $slug = 'wppa_bc_on_featen';
1107
+ $html = wppa_checkbox($slug);
1108
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1109
 
1110
+ $name = __('Breadcrumb on related photos displays', 'wp-photo-album-plus');
1111
+ $desc = __('Show breadcrumb navigation bars on related photos displays.', 'wp-photo-album-plus');
1112
+ $help = __('Indicate whether a breadcrumb navigation should be displayed above the related photos displays.', 'wp-photo-album-plus');
1113
+ $slug = 'wppa_bc_on_related';
1114
+ $html = wppa_checkbox($slug);
1115
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1116
 
1117
+ $name = __('Home', 'wp-photo-album-plus');
1118
+ $desc = __('Show "Home" in breadcrumb.', 'wp-photo-album-plus');
1119
+ $help = __('Indicate whether the breadcrumb navigation should start with a "Home"-link', 'wp-photo-album-plus');
1120
+ $slug = 'wppa_show_home';
1121
+ $html = wppa_checkbox($slug);
1122
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
1123
 
1124
+ $name = __('Home text', 'wp-photo-album-plus');
1125
+ $desc = __('The text to use as "Home"', 'wp-photo-album-plus');
1126
+ $help = ' ';
1127
+ $slug = 'wppa_home_text';
1128
+ $html = wppa_input($slug, '100px;');
1129
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
1130
 
1131
+ $name = __('Page', 'wp-photo-album-plus');
1132
+ $desc = __('Show the page(s) in breadcrumb.', 'wp-photo-album-plus');
1133
+ $help = __('Indicate whether the breadcrumb navigation should show the page(hierarchy)', 'wp-photo-album-plus');
1134
+ $slug = 'wppa_show_page';
1135
+ $html = wppa_checkbox($slug);
1136
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
1137
 
1138
+ $name = __('Photo name', 'wp-photo-album-plus');
1139
+ $desc = __('Show name of photo above slideshow.', 'wp-photo-album-plus');
1140
+ $help = '';
1141
+ $slug = 'wppa_show_pname';
1142
+ $html = wppa_checkbox($slug);
1143
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
1144
 
1145
+ $name = __('Separator', 'wp-photo-album-plus');
1146
+ $desc = __('Breadcrumb separator symbol.', 'wp-photo-album-plus');
1147
+ $help = __('Select the desired breadcrumb separator element.', 'wp-photo-album-plus');
1148
+ $help .= '<br />'.__('A text string may contain valid html.', 'wp-photo-album-plus');
1149
+ $help .= '<br />'.__('An image will be scaled automatically if you set the navigation font size.', 'wp-photo-album-plus');
1150
+ $slug = 'wppa_bc_separator';
1151
+ $opts = array('&amp;raquo', '&amp;rsaquo', '&amp;gt', '&amp;bull', __('Text (html):', 'wp-photo-album-plus'), __('Image (url):', 'wp-photo-album-plus'));
1152
+ $vals = array('raquo', 'rsaquo', 'gt', 'bull', 'txt', 'url');
1153
+ $html = wppa_select($slug, $opts, $vals);
1154
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
1155
 
1156
+ $name = __('Html', 'wp-photo-album-plus');
1157
+ $desc = __('Breadcrumb separator text.', 'wp-photo-album-plus');
1158
+ $help = __('Enter the HTML code that produces the separator symbol you want.', 'wp-photo-album-plus');
1159
+ $help .= '<br />'.__('It may be as simple as \'-\' (without the quotes) or as complex as a tag like <div>..</div>.', 'wp-photo-album-plus');
1160
+ $slug = 'wppa_bc_txt';
1161
+ $html = wppa_input($slug, '90%', '300px');
1162
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
1163
 
1164
+ $name = __('Image Url', 'wp-photo-album-plus');
1165
+ $desc = __('Full url to separator image.', 'wp-photo-album-plus');
1166
+ $help = __('Enter the full url to the image you want to use for the separator symbol.', 'wp-photo-album-plus');
1167
+ $slug = 'wppa_bc_url';
1168
+ $html = wppa_input($slug, '90%', '300px');
1169
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
 
 
1170
 
1171
+ $name = __('Pagelink position', 'wp-photo-album-plus');
1172
+ $desc = __('The location for the pagelinks bar.', 'wp-photo-album-plus');
1173
+ $help = '';
1174
+ $slug = 'wppa_pagelink_pos';
1175
+ $opts = array(__('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'), __('Both', 'wp-photo-album-plus'));
1176
+ $vals = array('top', 'bottom', 'both');
1177
+ $html = wppa_select($slug, $opts, $vals);
1178
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
1179
 
1180
+ $name = __('Thumblink on slideshow', 'wp-photo-album-plus');
1181
+ $desc = __('Show a thumb link on slideshow bc.', 'wp-photo-album-plus');
1182
+ $help = __('Show a link to thumbnail display on an breadcrumb above a slideshow', 'wp-photo-album-plus');
1183
+ $slug = 'wppa_bc_slide_thumblink';
1184
+ $html = wppa_checkbox($slug);
1185
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
1186
+
1187
+ wppa_setting_box_footer_new();
1188
  }
1189
  // Navigation symbol specifications
 
1190
  {
1191
+ $desc = $wppa_subtab_names[$tab]['3'];
1192
+ wppa_setting_tab_description($desc);
1193
+ wppa_setting_box_header_new($tab);
1194
 
1195
+ $name = __('Navigation icon size', 'wp-photo-album-plus');
1196
+ $desc = __('The size of navigation icons', 'wp-photo-album-plus');
1197
+ $help = '';
1198
+ $slug = 'wppa_nav_icon_size';
1199
+ $opts = array( '1.5em',
1200
+ '16px',
1201
+ '20px',
1202
+ '24px',
1203
+ '32px',
1204
+ );
1205
+ $vals = array( 'default',
1206
+ '16',
1207
+ '20',
1208
+ '24',
1209
+ '32',
1210
+ );
1211
+ $html = wppa_select($slug, $opts, $vals);
1212
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
1213
 
1214
+ $name = __('Navigation icon size slideshow', 'wp-photo-album-plus');
1215
+ $desc = __('The size of navigation icons on the slide', 'wp-photo-album-plus');
1216
+ $help = '';
1217
+ $slug = 'wppa_nav_icon_size_slide';
1218
+ $opts = array( '16px',
1219
+ '20px',
1220
+ '24px',
1221
+ '32px',
1222
+ '48px',
1223
+ );
1224
+ $vals = array( '16',
1225
+ '20',
1226
+ '24',
1227
+ '32',
1228
+ 'default',
1229
+ );
1230
+ $html = wppa_select($slug, $opts, $vals);
1231
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
1232
 
1233
+ $name = __('Icon size rating', 'wp-photo-album-plus');
1234
+ $desc = __('The size of rating stars', 'wp-photo-album-plus');
1235
+ $help = '';
1236
+ $slug = 'wppa_icon_size_rating';
1237
+ $opts = array( '1em+3px',
1238
+ '16px',
1239
+ '18px',
1240
+ '20px',
1241
+ '24px',
1242
+ '32px',
1243
+ );
1244
+ $vals = array( 'default',
1245
+ '16',
1246
+ '18',
1247
+ '20',
1248
+ '24',
1249
+ '32',
1250
+ );
1251
+ $html = wppa_select($slug, $opts, $vals);
1252
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
1253
 
1254
+ $name = __('Navigation icon size panorama', 'wp-photo-album-plus');
1255
+ $desc = __('The size of navigation icons on panorama photos', 'wp-photo-album-plus');
1256
+ $help = '';
1257
+ $slug = 'wppa_nav_icon_size_panorama';
1258
+ $opts = array( '16px',
1259
+ '20px',
1260
+ '24px',
1261
+ '32px',
1262
+ '40px',
1263
+ '48px',
1264
+ );
1265
+ $vals = array( '16',
1266
+ '20',
1267
+ '24',
1268
+ '32',
1269
+ '40',
1270
+ '48',
1271
+ );
1272
+ $html = wppa_select($slug, $opts, $vals);
1273
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
1274
 
1275
+ $name = __('Icon size fullsize page', 'wp-photo-album-plus');
1276
+ $desc = __('The size of navigation icons for the fullsize page', 'wp-photo-album-plus');
1277
+ $help = '';
1278
+ $slug = 'wppa_nav_icon_size_global_fs';
1279
+ $opts = array( '16px',
1280
+ '20px',
1281
+ '24px',
1282
+ '32px',
1283
+ '40px',
1284
+ '48px',
1285
+ );
1286
+ $vals = array( '16',
1287
+ '20',
1288
+ '24',
1289
+ '32',
1290
+ '40',
1291
+ '48',
1292
+ );
1293
+ $html = wppa_select($slug, $opts, $vals);
1294
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
1295
 
1296
+ $name = __('Navigation symbols style', 'wp-photo-album-plus');
1297
+ $desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
1298
+ $help = __('Use gif/png if you have excessive pageload times due to many slideshows on a page', 'wp-photo-album-plus');
1299
+ $slug = 'wppa_icon_corner_style';
1300
+ $opts = array(__('none', 'wp-photo-album-plus'), __('light', 'wp-photo-album-plus'), __('medium', 'wp-photo-album-plus'), __('heavy', 'wp-photo-album-plus'), __('use gif/png, no svg', 'wp-photo-album-plus'));
1301
+ $vals = array('none', 'light', 'medium', 'heavy', 'gif');
1302
+ $html = wppa_select($slug, $opts, $vals);
1303
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
1304
 
1305
+ $name = __('Spinner design', 'wp-photo-album-plus');
1306
+ $desc = __('Shape of the loader symbol', 'wp-photo-album-plus');
1307
+ $help = __('This works only when the previous item is set to any svg style', 'wp-photo-album-plus');
1308
+ $slug = 'wppa_spinner_shape';
1309
+ $opts = array( __('default', 'wp-photo-album-plus'),
1310
+ 'puff',
1311
+ 'rings',
1312
+ 'tail-spin',
1313
+ 'three-dots',
1314
+ 'ball-triangle',
1315
+ 'spinning-circles',
1316
+ 'oval',
1317
+ 'hearts',
1318
+ 'grid',
1319
+ 'circles',
1320
+ 'bars',
1321
+ 'audio',
1322
+ );
1323
+ $vals = array( 'default',
1324
+ 'puff',
1325
+ 'rings',
1326
+ 'tail-spin',
1327
+ 'three-dots',
1328
+ 'ball-triangle',
1329
+ 'spinning-circles',
1330
+ 'oval',
1331
+ 'hearts',
1332
+ 'grid',
1333
+ 'circles',
1334
+ 'bars',
1335
+ 'audio',
1336
+ );
1337
+ $html = wppa_select($slug, $opts, $vals) .
1338
+ __('Frontend', 'wp-photo-album-plus') . ':&nbsp;<span id="wppa-spin-pre-1" >&nbsp;</span>' .
1339
+ __('Lightbox', 'wp-photo-album-plus') . ':&nbsp;<span id="wppa-spin-pre-2" >&nbsp;</span>';
1340
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
1341
 
1342
+ $name = __('Navigation symbols', 'wp-photo-album-plus');
1343
+ $desc = __('Navigation symbol background and fill colors.', 'wp-photo-album-plus');
1344
+ $help = '';
1345
+ $slug1 = 'wppa_svg_bg_color';
1346
+ $slug2 = 'wppa_svg_color';
1347
+ $slug = array($slug1, $slug2);
1348
+ $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1349
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1350
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
1351
 
1352
+ $name = __('Navigation symbols Lightbox', 'wp-photo-album-plus');
1353
+ $desc = __('Navigation symbol background and fill colors Lightbox.', 'wp-photo-album-plus');
1354
+ $help = '';
1355
+ $slug1 = 'wppa_ovl_svg_bg_color';
1356
+ $slug2 = 'wppa_ovl_svg_color';
1357
+ $slug = array($slug1, $slug2);
1358
+ $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1359
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1360
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1361
 
1362
+ $name = __('Fullscreen button', 'wp-photo-album-plus');
1363
+ $desc = __('The upper right corner fullscreen button.', 'wp-photo-album-plus');
1364
+ $help = '';
1365
+ $slug1 = 'wppa_fs_svg_bg_color';
1366
+ $slug2 = 'wppa_fs_svg_color';
1367
+ $slug = array($slug1, $slug2);
1368
+ $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1369
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1370
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1371
 
1372
+ wppa_setting_box_footer_new();
1373
+ echo '
1374
+ <script type="text/javascript" >
1375
+ wppaAjaxGetSpinnerHtml( "normal", "wppa-spin-pre-1" );
1376
+ wppaAjaxGetSpinnerHtml( "lightbox", "wppa-spin-pre-2" );
1377
+ </script>';
1378
  }
1379
  // Multimedia icon and stubfile specifications
 
1380
  if ( wppa_switch( 'enable_audio' ) || wppa_switch( 'enable_video' ) || wppa_switch( 'enable_pdf' ) )
1381
  {
1382
+ $desc = $wppa_subtab_names[$tab]['4'];
1383
  wppa_setting_tab_description($desc);
1384
  wppa_setting_box_header_new($tab);
1385
 
2486
  $desc = __('Use popup effect on thumbnail images.', 'wp-photo-album-plus');
2487
  $help = __('Thumbnails pop-up to a larger image when hovered.', 'wp-photo-album-plus');
2488
  $slug = 'wppa_use_thumb_popup';
2489
+ $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
2490
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2491
 
2492
  $name = __('Align subtext', 'wp-photo-album-plus');
2515
 
2516
  case 'slide': {
2517
  // Sllideshow component specifications
 
2518
  {
2519
+ $desc = $wppa_subtab_names[$tab]['1'];
2520
+ wppa_setting_tab_description($desc);
2521
+ wppa_setting_box_header_new($tab);
2522
 
2523
+ $name = __('Maximum Width', 'wp-photo-album-plus');
2524
+ $desc = __('The maximum width photos will be displayed in slideshows.', 'wp-photo-album-plus');
2525
+ $help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus');
2526
+ $help .= '<br />'.__('This is usually the same as the Column Width, but it may differ.', 'wp-photo-album-plus');
2527
+ $help .= '<br />'.wppa_see_also( 'layout', '1', '5' );
2528
+ $slug = 'wppa_fullsize';
2529
+ $html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
2530
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
2531
 
2532
+ $name = __('Maximum Height', 'wp-photo-album-plus');
2533
+ $desc = __('The maximum height photos will be displayed in slideshows.', 'wp-photo-album-plus');
2534
+ $help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus');
2535
+ $help .= '<br />'.__('This setting defines the height of the space reserved for photos in slideshows.', 'wp-photo-album-plus');
2536
+ $help .= '<br />'.__('If you change the width of a display by the size=".." shortcode attribute, this value changes proportionally to match the aspect ratio as defined by this and the previous setting.', 'wp-photo-album-plus');
2537
+ $slug = 'wppa_maxheight';
2538
+ $html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
2539
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
2540
 
2541
+ $name = __('Stretch to fit', 'wp-photo-album-plus');
2542
+ $desc = __('Stretch photos that are too small.', 'wp-photo-album-plus');
2543
+ $help = __('Images will be stretched to the Maximum Size at display time if they are smaller. Leaving unchecked is recommended. It is better to upload photos that fit well the sizes you use!', 'wp-photo-album-plus');
2544
+ $slug = 'wppa_enlarge';
2545
+ $html = wppa_checkbox($slug);
2546
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
2547
 
2548
+ $name = __('Slideshow borderwidth', 'wp-photo-album-plus');
2549
+ $desc = __('The width of the border around slideshow images.', 'wp-photo-album-plus');
2550
+ $help = __('The border is made by the image background being larger than the image itsself (padding).', 'wp-photo-album-plus');
2551
+ $help .= '<br />'.__('Additionally there may be a one pixel outline of a different color.', 'wp-photo-album-plus');
2552
+ $help .= '<br />'.__('The number you enter here is exclusive the one pixel outline.', 'wp-photo-album-plus');
2553
+ $help .= '<br />'.__('If you leave this entry empty, there will be no outline either.', 'wp-photo-album-plus');
2554
+ $help .= '<br />'.wppa_see_also('slide', '1', '35');
2555
+ $slug = 'wppa_fullimage_border_width';
2556
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
2557
+ $clas = '';
2558
+ $tags = 'size,slide,layout';
2559
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
2560
 
2561
+ $name = __('Numbar Max', 'wp-photo-album-plus');
2562
+ $desc = __('Maximum numbers to display.', 'wp-photo-album-plus');
2563
+ $help = __('In order to attempt to fit on one line, the numbers will be replaced by dots - except the current - when there are more than this number of photos in a slideshow.', 'wp-photo-album-plus');
2564
+ $slug = 'wppa_numbar_max';
2565
+ $html = wppa_input($slug, '40px', '', __('numbers', 'wp-photo-album-plus'));
2566
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
2567
 
2568
+ $name = __('Share button size', 'wp-photo-album-plus');
2569
+ $desc = __('The size of the social media icons in the Share box', 'wp-photo-album-plus');
2570
+ $help = '';
2571
+ $slug = 'wppa_share_size';
2572
+ $opts = array('16 x 16', '20 x 20', '32 x 32');
2573
+ $vals = array('16', '20', '32');
2574
+ $html = wppa_select($slug, $opts, $vals) . __('pixels', 'wp-photo-album-plus');
2575
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2576
 
2577
+ $name = __('Mini Threshold', 'wp-photo-album-plus');
2578
+ $desc = __('Show mini text at slideshow smaller than.', 'wp-photo-album-plus');
2579
+ $help = __('Display Next and Prev. as opposed to Next photo and Previous photo when the cotainer is smaller than this size.', 'wp-photo-album-plus');
2580
+ $help .= '<br />'.__('Special use in responsive themes.', 'wp-photo-album-plus');
2581
+ $slug = 'wppa_mini_treshold';
2582
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
2583
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
2584
 
2585
+ $name = __('Slideshow pagesize', 'wp-photo-album-plus');
2586
+ $desc = __('The maximum number of slides in a certain view. 0 means no pagination', 'wp-photo-album-plus');
2587
+ $help = '';
2588
+ $slug = 'wppa_slideshow_pagesize';
2589
+ $html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
2590
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
2591
 
2592
+ $name = __('Filmstrip Thumbnail Size', 'wp-photo-album-plus');
2593
+ $desc = __('The size of the filmstrip images.', 'wp-photo-album-plus');
2594
+ $help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
2595
+ $help .= '<br />'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
2596
+ $slug = 'wppa_film_thumbsize';
2597
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
2598
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
2599
 
2600
+ $name = __('Slideonly max', 'wp-photo-album-plus');
2601
+ $desc = __('The max number of slides in a slideonly or filmonly display', 'wp-photo-album-plus');
2602
+ $help = '';
2603
+ $slug = 'wppa_slideonly_max';
2604
+ $html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
2605
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
2606
 
2607
+ $name = __('Show Share Box', 'wp-photo-album-plus');
2608
+ $desc = __('Display the share social media buttons box.', 'wp-photo-album-plus');
2609
+ $help = '';
2610
+ $slug = 'wppa_share_on';
2611
+ $onch = '';
2612
+ $html = wppa_checkbox($slug);
2613
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
2614
 
2615
+ $name = __('Start/stop', 'wp-photo-album-plus');
2616
+ $desc = __('Show the Start/Stop slideshow bar.', 'wp-photo-album-plus');
2617
+ $help = __('If checked: display the start/stop slideshow navigation bar above the full-size images and slideshow', 'wp-photo-album-plus');
2618
+ $slug = 'wppa_show_startstop_navigation';
2619
+ $html = wppa_checkbox($slug);
2620
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
2621
 
2622
+ $name = __('Start/stop on Filmonly');
2623
+ $desc = __('Show the Start/Stop slideshow bar on filmonly displays.', 'wp-photo-album-plus');
2624
+ $help = '';
2625
+ $slug = 'wppa_show_startstop_filmonly';
2626
+ $html = wppa_checkbox($slug);
2627
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
2628
 
2629
+ $name = __('Renew on Filmonly', 'wp-photo-album-plus');
2630
+ $desc = __('Show renew link on filmonly displays.', 'wp-photo-album-plus');
2631
+ $help = '';
2632
+ $slug = 'wppa_show_renew_filmonly';
2633
+ $html = wppa_checkbox($slug);
2634
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
2635
 
2636
+ $name = __('Browse bar', 'wp-photo-album-plus');
2637
+ $desc = __('Show Browse photos bar.', 'wp-photo-album-plus');
2638
+ $help = __('If checked: display the preveous/next navigation bar under the full-size images and slideshow', 'wp-photo-album-plus');
2639
+ $slug = 'wppa_show_browse_navigation';
2640
+ $html = wppa_checkbox($slug);
2641
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
2642
 
2643
+ $name = __('Filmstrip', 'wp-photo-album-plus');
2644
+ $desc = __('Show Filmstrip navigation bar.', 'wp-photo-album-plus');
2645
+ $help = __('If checked: display the filmstrip navigation bar under the full_size images and slideshow', 'wp-photo-album-plus');
2646
+ $slug = 'wppa_filmstrip';
2647
+ $html = wppa_checkbox($slug);
2648
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
2649
 
2650
+ $name = __('Film seam', 'wp-photo-album-plus');
2651
+ $desc = __('Show seam between end and start of film.', 'wp-photo-album-plus');
2652
+ $help = __('If checked: display the wrap-around point in the filmstrip', 'wp-photo-album-plus');
2653
+ $slug = 'wppa_film_show_glue';
2654
+ $html = wppa_checkbox($slug);
2655
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
2656
 
2657
+ $name = __('Photo name', 'wp-photo-album-plus');
2658
+ $desc = __('Display photo name.', 'wp-photo-album-plus');
2659
+ $help = __('If checked: display the name of the photo under the slideshow image.', 'wp-photo-album-plus');
2660
+ $slug = 'wppa_show_full_name';
2661
+ $html = wppa_checkbox($slug);
2662
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
2663
 
2664
+ $name = __('Add (Owner)', 'wp-photo-album-plus');
2665
+ $desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
2666
+ $help = '';
2667
+ $slug = 'wppa_show_full_owner';
2668
+ $html = wppa_checkbox($slug);
2669
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
2670
 
2671
+ $name = __('Owner on new line', 'wp-photo-album-plus');
2672
+ $desc = __('Place the (owner) text on a new line.', 'wp-photo-album-plus');
2673
+ $help = '';
2674
+ $slug = 'wppa_owner_on_new_line';
2675
+ $html = wppa_checkbox($slug);
2676
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
2677
 
2678
+ $name = __('Photo desc', 'wp-photo-album-plus');
2679
+ $desc = __('Display Photo description.', 'wp-photo-album-plus');
2680
+ $help = __('If checked: display the description of the photo under the slideshow image.', 'wp-photo-album-plus');
2681
+ $slug = 'wppa_show_full_desc';
2682
+ $html = wppa_checkbox($slug);
2683
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
2684
 
2685
+ $name = __('Hide when empty', 'wp-photo-album-plus');
2686
+ $desc = __('Hide the descriptionbox when empty.', 'wp-photo-album-plus');
2687
+ $help = '';
2688
+ $slug = 'wppa_hide_when_empty';
2689
+ $html = wppa_checkbox($slug);
2690
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
2691
+
2692
+ $name = __('Big Browse Buttons', 'wp-photo-album-plus');
2693
+ $desc = __('Enable invisible browsing buttons.', 'wp-photo-album-plus');
2694
+ $help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus');
2695
+ $help .= '<br />'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
2696
+ $help .= '<br />'.wppa_see_also( 'slide', '1', '2' );
2697
+ $slug = 'wppa_show_bbb';
2698
+ $html = wppa_checkbox($slug);
2699
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
2700
 
2701
+ $name = __('Ugly Browse Buttons', 'wp-photo-album-plus');
2702
+ $desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus');
2703
+ $help = __('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus');
2704
+ $slug = 'wppa_show_ubb';
2705
+ $html = wppa_checkbox($slug);
2706
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
 
2707
 
2708
+ $name = __('Start/stop icons', 'wp-photo-album-plus');
2709
+ $desc = __('Show start and stop icons at the center of the slide', 'wp-photo-album-plus');
2710
+ $help = '';
2711
+ $slug = 'wppa_show_start_stop_icons';
2712
+ $html = wppa_checkbox($slug);
2713
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
2714
 
2715
+ $name = __('Show custom box', 'wp-photo-album-plus');
2716
+ $desc = __('Display the custom box in the slideshow', 'wp-photo-album-plus');
2717
+ $help = __('You can fill the custom box with any html you like. It will not be checked, so it is your own responsibility to close tags properly.', 'wp-photo-album-plus');
2718
+ $help .= '<br />'.wppa_see_also( 'slide', '2' );
2719
+ $slug = 'wppa_custom_on';
2720
+ $html = wppa_checkbox($slug);
2721
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help);
2722
+
2723
+ $name = __('Custom content', 'wp-photo-album-plus');
2724
+ $desc = __('The content (html) of the custom box.', 'wp-photo-album-plus');
2725
+ $help = __('You can fill the custom box with any html you like. It will not be checked, so it is your own responsibility to close tags properly.', 'wp-photo-album-plus');
2726
+ $help .= '<br />'.wppa_see_also( 'slide', '2' );
2727
+ $slug = 'wppa_custom_content';
2728
+ $html = wppa_textarea($slug, $name);
2729
+ wppa_setting_new(false, '27', $name, $desc, $html, $help);
2730
 
2731
+ $name = __('Slideshow/Number bar', 'wp-photo-album-plus');
2732
+ $desc = __('Display the Slideshow / Number bar.', 'wp-photo-album-plus');
2733
+ $help = __('If checked: display the number boxes on slideshow', 'wp-photo-album-plus');
2734
+ $slug = 'wppa_show_slideshownumbar';
2735
+ $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
2736
+ wppa_setting_new($slug, '28', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2737
 
2738
+ $name = __('Numbar', 'wp-photo-album-plus');
2739
+ $desc = __('Number bar box background.', 'wp-photo-album-plus');
2740
+ $help = '';
2741
+ $slug1 = 'wppa_bgcolor_numbar';
2742
+ $slug2 = 'wppa_bcolor_numbar';
2743
+ $slug = array($slug1, $slug2);
2744
+ $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2745
+ wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
2746
+ '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2747
+ wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
2748
+ wppa_setting_new($slug, '29', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
2749
+
2750
+ $name = __('Numbar active', 'wp-photo-album-plus');
2751
+ $desc = __('Number bar active box background.', 'wp-photo-album-plus');
2752
+ $help = '';
2753
+ $slug1 = 'wppa_bgcolor_numbar_active';
2754
+ $slug2 = 'wppa_bcolor_numbar_active';
2755
+ $slug = array($slug1, $slug2);
2756
+ $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2757
+ wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
2758
+ '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2759
+ wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
2760
+ wppa_setting_new($slug, '30', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
2761
+
2762
+ $name = __('IPTC system', 'wp-photo-album-plus');
2763
+ $desc = __('Enable the iptc system.', 'wp-photo-album-plus');
2764
+ $help = __('Display the iptc box under the fullsize images.', 'wp-photo-album-plus');
2765
+ $slug = 'wppa_show_iptc';
2766
+ $html = wppa_checkbox($slug);
2767
+ wppa_setting_new($slug, '31', $name, $desc, $html, $help, wppa_switch('save_iptc'));
2768
 
2769
+ $name = __('IPTC open', 'wp-photo-album-plus');
2770
+ $desc = __('Display the iptc box initially opened.', 'wp-photo-album-plus');
2771
+ $help = __('Display the iptc box under the fullsize images initially open.', 'wp-photo-album-plus');
2772
+ $slug = 'wppa_show_iptc_open';
2773
+ $html = wppa_checkbox($slug);
2774
+ wppa_setting_new($slug, '32', $name, $desc, $html, $help, wppa_switch('save_iptc'));
2775
 
2776
+ $name = __('EXIF system', 'wp-photo-album-plus');
2777
+ $desc = __('Enable the exif system.', 'wp-photo-album-plus');
2778
+ $help = __('Display the exif box under the fullsize images.', 'wp-photo-album-plus');
2779
+ $slug = 'wppa_show_exif';
2780
+ $html = wppa_checkbox($slug);
2781
+ wppa_setting_new($slug, '33', $name, $desc, $html, $help, wppa_switch('save_exif'));
2782
 
2783
+ $name = __('EXIF open', 'wp-photo-album-plus');
2784
+ $desc = __('Display the exif box initially opened.', 'wp-photo-album-plus');
2785
+ $help = __('Display the exif box under the fullsize images initially open.', 'wp-photo-album-plus');
2786
+ $slug = 'wppa_show_exif_open';
2787
+ $html = wppa_checkbox($slug);
2788
+ wppa_setting_new($slug, '34', $name, $desc, $html, $help, wppa_switch('save_exif'));
2789
 
2790
+ $name = __('Slide Image border', 'wp-photo-album-plus');
2791
+ $desc = __('Fullsize Slideshow Photos background and border.', 'wp-photo-album-plus');
2792
+ $help = '';
2793
+ $help .= '<br />'.__('The colors may be equal or "transparent"', 'wp-photo-album-plus');
2794
+ $slug1 = 'wppa_bgcolor_fullimg';
2795
+ $slug2 = 'wppa_bcolor_fullimg';
2796
+ $slug = array($slug1, $slug2);
2797
+ $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2798
+ wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
2799
+ '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ':&nbsp;</span>' .
2800
+ wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
2801
+ wppa_setting_new($slug, '35', $name, $desc, $html, $help);
2802
+
2803
+ $name = __('Navigation type', 'wp-photo-album-plus');
2804
+ $desc = __('Select the type of navigation you want.', 'wp-photo-album-plus');
2805
+ $help = '';
2806
+ $slug = 'wppa_navigation_type';
2807
+ $opts = array( __('Icons', 'wp-photo-album-plus'),
2808
+ __('Icons on mobile, text on pc', 'wp-photo-album-plus'),
2809
+ __('Text', 'wp-photo-album-plus'),
2810
+ );
2811
+ $vals = array( 'icons',
2812
+ 'iconsmobile',
2813
+ 'text',
2814
+ );
2815
+ $html = wppa_select($slug, $opts, $vals);
2816
+ wppa_setting_new($slug, '36', $name, $desc, $html, $help);
 
2817
 
2818
+ wppa_setting_box_footer_new();
2819
  }
2820
  // Slideshow component sequence
 
2821
  {
2822
+ $desc = $wppa_subtab_names[$tab]['2'];
2823
+ wppa_setting_tab_description($desc);
2824
+ wppa_setting_box_header_new($tab);
2825
 
2826
+ if ( wppa_switch( 'split_namedesc') ) {
2827
+ $indexopt = wppa_opt( 'slide_order_split' );
2828
+ $indexes = explode(',', $indexopt);
2829
+ $names = array(
2830
+ __('StartStop', 'wp-photo-album-plus'),
2831
+ __('SlideFrame', 'wp-photo-album-plus'),
2832
+ __('Name', 'wp-photo-album-plus'),
2833
+ __('Desc', 'wp-photo-album-plus'),
2834
+ __('Custom', 'wp-photo-album-plus'),
2835
+ __('Rating', 'wp-photo-album-plus'),
2836
+ __('FilmStrip', 'wp-photo-album-plus'),
2837
+ __('Browsebar', 'wp-photo-album-plus'),
2838
+ __('Comments', 'wp-photo-album-plus'),
2839
+ __('IPTC data', 'wp-photo-album-plus'),
2840
+ __('EXIF data', 'wp-photo-album-plus'),
2841
+ __('Share box', 'wp-photo-album-plus')
2842
+ );
2843
+ $enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus');
2844
+ $disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus');
2845
+ $descs = array(
2846
+ __('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus') . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
2847
+ __('The Slide Frame', 'wp-photo-album-plus') . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus').'</span>',
2848
+ __('Photo Name Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_full_name') ? $enabled : $disabled ) .' )</span>',
2849
+ __('Photo Description Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_full_desc') ? $enabled : $disabled ) .' )</span>',
2850
+ __('Custom Box', 'wp-photo-album-plus') . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
2851
+ __('Rating Bar', 'wp-photo-album-plus') . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
2852
+ __('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus') . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
2853
+ __('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus') . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
2854
+ __('Comments Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
2855
+ __('IPTC box', 'wp-photo-album-plus') . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
2856
+ __('EXIF box', 'wp-photo-album-plus') . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
2857
+ __('Social media share box', 'wp-photo-album-plus') . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
2858
+ );
2859
+ $i = '0';
2860
+ while ( $i < '12' ) {
2861
+ $name = $names[$indexes[$i]];
2862
+ $desc = $descs[$indexes[$i]];
2863
+ $html = $i == '0' ? '&nbsp;' : wppa_moveup_button( 'wppa_moveup', $i );
2864
+ $help = '';
2865
+ $slug = 'wppa_slide_order';
2866
+ wppa_setting_new($slug, $indexes[$i]+1 , $name, $desc, $html, $help);
2867
+ $i++;
2868
+ }
2869
  }
2870
+ else {
2871
+ $indexopt = wppa_opt( 'slide_order' );
2872
+ $indexes = explode(',', $indexopt);
2873
+ $names = array(
2874
+ __('StartStop', 'wp-photo-album-plus'),
2875
+ __('SlideFrame', 'wp-photo-album-plus'),
2876
+ __('NameDesc', 'wp-photo-album-plus'),
2877
+ __('Custom', 'wp-photo-album-plus'),
2878
+ __('Rating', 'wp-photo-album-plus'),
2879
+ __('FilmStrip', 'wp-photo-album-plus'),
2880
+ __('Browsebar', 'wp-photo-album-plus'),
2881
+ __('Comments', 'wp-photo-album-plus'),
2882
+ __('IPTC data', 'wp-photo-album-plus'),
2883
+ __('EXIF data', 'wp-photo-album-plus'),
2884
+ __('Share box', 'wp-photo-album-plus')
2885
+ );
2886
+ $enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus');
2887
+ $disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus');
2888
+ $descs = array(
2889
+ __('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus') . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
2890
+ __('The Slide Frame', 'wp-photo-album-plus') . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus').'</span>',
2891
+ __('Photo Name & Description Box', 'wp-photo-album-plus') . ( ( wppa_switch( 'show_full_name') || wppa_switch( 'show_full_desc') ) ? $enabled : $disabled ) .' )</span>',
2892
+ __('Custom Box', 'wp-photo-album-plus') . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
2893
+ __('Rating Bar', 'wp-photo-album-plus') . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
2894
+ __('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus') . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
2895
+ __('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus') . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
2896
+ __('Comments Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
2897
+ __('IPTC box', 'wp-photo-album-plus') . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
2898
+ __('EXIF box', 'wp-photo-album-plus') . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
2899
+ __('Social media share box', 'wp-photo-album-plus') . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
2900
+ );
2901
+ $i = '0';
2902
+ while ( $i < '11' ) {
2903
+ $name = $names[$indexes[$i]];
2904
+ $desc = $descs[$indexes[$i]];
2905
+ $html = $i == '0' ? '&nbsp;' : wppa_moveup_button( 'wppa_moveup', $i );
2906
+ $help = '';
2907
+ $slug = 'wppa_slide_order';
2908
+ wppa_setting_new($slug, $indexes[$i]+1 , $name, $desc, $html, $help);
2909
+ $i++;
2910
+ }
2911
  }
 
2912
 
2913
+ $name = __('Swap Namedesc', 'wp-photo-album-plus');
2914
+ $desc = __('Swap the order sequence of name and description', 'wp-photo-album-plus');
2915
+ $help = '';
2916
+ $slug = 'wppa_swap_namedesc';
2917
+ $html = wppa_checkbox($slug,'wppaRefreshAfter()');
2918
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help, ! wppa_switch( 'split_namedesc' ) );
2919
 
2920
+ $name = __('Split Name and Desc', 'wp-photo-album-plus');
2921
+ $desc = __('Put Name and Description in separate boxes', 'wp-photo-album-plus');
2922
+ $help = '';
2923
+ $slug = 'wppa_split_namedesc';
2924
+ $html = wppa_checkbox($slug,'wppaRefreshAfter()');
2925
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
2926
 
2927
+ wppa_setting_box_footer_new();
2928
  }
2929
  // Slideshow layout settings
 
2930
  {
2931
+ $desc = $wppa_subtab_names[$tab]['3'];
2932
+ wppa_setting_tab_description($desc);
2933
+ wppa_setting_box_header_new($tab);
2934
 
2935
+ $name = __('V align', 'wp-photo-album-plus');
2936
+ $desc = __('Vertical alignment of slideshow images.', 'wp-photo-album-plus');
2937
+ $help = __('Specify the vertical alignment of slideshow images.', 'wp-photo-album-plus');
2938
+ $slug = 'wppa_fullvalign';
2939
+ $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'), __('fit', 'wp-photo-album-plus'));
2940
+ $vals = array('default', 'top', 'center', 'bottom', 'fit');
2941
+ $html = wppa_select($slug, $opts, $vals);
2942
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
2943
 
2944
+ $name = __('V align', 'wp-photo-album-plus');
2945
+ $desc = __('Vertical alignment of slideonly slidshow images.', 'wp-photo-album-plus');
2946
+ $help = __('Specify the vertical alignment of slideonly slideshow images.', 'wp-photo-album-plus');
2947
+ $slug = 'wppa_fullvalign_slideonly';
2948
+ $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'), __('fit', 'wp-photo-album-plus'));
2949
+ $vals = array('default', 'top', 'center', 'bottom', 'fit');
2950
+ $html = wppa_select($slug, $opts, $vals);
2951
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
2952
 
2953
+ $name = __('H align', 'wp-photo-album-plus');
2954
+ $desc = __('Horizontal alignment of slideshow images.', 'wp-photo-album-plus');
2955
+ $help = __('Specify the horizontal alignment of slideshow images. If you specify --- none --- , no horizontal alignment will take place.', 'wp-photo-album-plus');
2956
+ $help .= '<br />'.(__('This setting is only usefull when the Column Width differs from the Maximum Width.', 'wp-photo-album-plus'));
2957
+ $help .= '<br />'.(__('(Settings I-A1 and I-B1)', 'wp-photo-album-plus'));
2958
+ $slug = 'wppa_fullhalign';
2959
+ $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('left', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('right', 'wp-photo-album-plus'));
2960
+ $vals = array('default', 'left', 'center', 'right');
2961
+ $html = wppa_select($slug, $opts, $vals);
2962
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
2963
 
2964
+ $name = __('Full desc align', 'wp-photo-album-plus');
2965
+ $desc = __('The alignment of the descriptions under fullsize images and slideshows.', 'wp-photo-album-plus');
2966
+ $help = '';
2967
+ $slug = 'wppa_fulldesc_align';
2968
+ $opts = array(__('Left', 'wp-photo-album-plus'), __('Center', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'));
2969
+ $vals = array('left', 'center', 'right');
2970
+ $html = wppa_select($slug, $opts, $vals);
2971
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
2972
 
2973
+ $name = __('Remove redundant space', 'wp-photo-album-plus');
2974
+ $desc = __('Removes unwanted &lt;p> and &lt;br> tags in fullsize descriptions.', 'wp-photo-album-plus');
2975
+ $help = __('This setting has only effect when Foreign Shortcodes is checked.', 'wp-photo-album-plus');
2976
+ $help .= '<br />'.wppa_see_also( 'miscadv', '4', '1' );
2977
+ $slug = 'wppa_clean_pbr';
2978
+ $html = wppa_checkbox($slug);
2979
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
2980
 
2981
+ $name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
2982
+ $desc = __('Adds &lt;br> or &lt;p> and &lt;br> tags in fullsize descriptions.', 'wp-photo-album-plus');
2983
+ $help = '';
2984
+ $slug = 'wppa_wpautop_on_desc';
2985
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'),
2986
+ __('Linebreaks only', 'wp-photo-album-plus'),
2987
+ __('Linebreaks and paragraphs', 'wp-photo-album-plus'),
2988
+ );
2989
+ $vals = array('nil', 'nl2br', 'wpautop');
2990
+ $html = wppa_select($slug, $opts, $vals);
2991
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2992
 
2993
+ $name = __('Auto open comments', 'wp-photo-album-plus');
2994
+ $desc = __('Automatic opens comments box when slideshow does not run.', 'wp-photo-album-plus');
2995
+ $help = __('Works also on type="xphoto"', 'wp-photo-album-plus');
2996
+ $slug = 'wppa_auto_open_comments';
2997
+ $html = wppa_checkbox($slug);
2998
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('show_comments'));
2999
 
3000
+ wppa_setting_box_footer_new();
3001
  }
3002
  // Slideshow dynamic behaviour
 
3003
  {
3004
+ $desc = $wppa_subtab_names[$tab]['4'];
3005
+ wppa_setting_tab_description($desc);
3006
+ wppa_setting_box_header_new($tab);
3007
 
3008
+ $name = __('Start', 'wp-photo-album-plus');
3009
+ $desc = __('Start slideshow running.', 'wp-photo-album-plus');
3010
+ $help = __('If you select "running", the slideshow will start running immediately, if you select "still at first photo", the first photo will be displayed in browse mode.', 'wp-photo-album-plus');
3011
+ $help .= '<br />'.__('If you select "still at first norated", the first photo that the visitor did not gave a rating will be displayed in browse mode.', 'wp-photo-album-plus');
3012
+ $slug = 'wppa_start_slide';
3013
+ $opts = array( __('running', 'wp-photo-album-plus'),
3014
+ __('still at first photo', 'wp-photo-album-plus'),
3015
+ __('still at first norated', 'wp-photo-album-plus')
3016
+ );
3017
+ $vals = array( 'run',
3018
+ 'still',
3019
+ 'norate'
3020
+ );
3021
+ $html = wppa_select($slug, $opts, $vals);
3022
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
3023
 
3024
+ $name = __('Start slideonly', 'wp-photo-album-plus');
3025
+ $desc = __('Start slideonly slideshow running.', 'wp-photo-album-plus');
3026
+ $help = '';
3027
+ $slug = 'wppa_start_slideonly';
3028
+ $html = wppa_checkbox($slug);
3029
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3030
 
3031
+ $name = __('Video autostart', 'wp-photo-album-plus');
3032
+ $desc = __('Autoplay videos in slideshows.', 'wp-photo-album-plus');
3033
+ $help = '';
3034
+ $slug = 'wppa_start_slide_video';
3035
+ $html = wppa_checkbox($slug);
3036
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch('enable_video'));
3037
 
3038
+ $name = __('Audio autostart', 'wp-photo-album-plus');
3039
+ $desc = __('Autoplay audios in slideshows.', 'wp-photo-album-plus');
3040
+ $help = '';
3041
+ $slug = 'wppa_start_slide_audio';
3042
+ $html = wppa_checkbox($slug);
3043
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_switch('enable_audio'));
3044
+
3045
+ $name = __('Animation type', 'wp-photo-album-plus');
3046
+ $desc = __('The way successive slides appear.', 'wp-photo-album-plus');
3047
+ $help = __('Select the way the old slide is to be replaced by the new one in the slideshow/browse fullsize display.', 'wp-photo-album-plus');
3048
+ $slug = 'wppa_animation_type';
3049
+ $opts = array( __('Fade out and in simultaneous', 'wp-photo-album-plus'),
3050
+ __('Fade in after fade out', 'wp-photo-album-plus'),
3051
+ __('Shift adjacent', 'wp-photo-album-plus'),
3052
+ // __('Stack on', 'wp-photo-album-plus'),
3053
+ // __('Stack off', 'wp-photo-album-plus'),
3054
+ // __('Turn over', 'wp-photo-album-plus')
3055
+ );
3056
+ $vals = array( 'fadeover',
3057
+ 'fadeafter',
3058
+ 'swipe',
3059
+ // 'stackon',
3060
+ // 'stackoff',
3061
+ // 'turnover'
3062
+ );
3063
+ $html = wppa_select($slug, $opts, $vals);
3064
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3065
 
3066
+ $name = __('Timeout', 'wp-photo-album-plus');
3067
+ $desc = __('Slideshow timeout.', 'wp-photo-album-plus');
3068
+ $help = __('Select the time a single slide will be visible when the slideshow is started.', 'wp-photo-album-plus');
3069
+ $slug = 'wppa_slideshow_timeout';
3070
+ $opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
3071
+ $vals = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
3072
+ $html = wppa_select($slug, $opts, $vals);
3073
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3074
 
3075
+ $name = __('Speed', 'wp-photo-album-plus');
3076
+ $desc = __('Slideshow animation speed.', 'wp-photo-album-plus');
3077
+ $help = __('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus');
3078
+ $help .= '<br />'.__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus');
3079
+ $slug = 'wppa_animation_speed';
3080
+ $opts = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.', '6 s.', '8 s.', '10 s.');
3081
+ $vals = array('10', '200', '400', '800', '1200', '2000', '4000', '6000', '8000', '10000');
3082
+ $html = wppa_select($slug, $opts, $vals);
3083
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3084
 
3085
+ $name = __('Slide hover pause', 'wp-photo-album-plus');
3086
+ $desc = __('Running Slideshow suspends during mouse hover.', 'wp-photo-album-plus');
3087
+ $help = '';
3088
+ $slug = 'wppa_slide_pause';
3089
+ $html = wppa_checkbox($slug);
3090
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3091
 
3092
+ $name = __('Slideshow wrap around', 'wp-photo-album-plus');
3093
+ $desc = __('The slideshow wraps around the start and end', 'wp-photo-album-plus');
3094
+ $help = '';
3095
+ $slug = 'wppa_slide_wrap';
3096
+ $html = wppa_checkbox($slug);
3097
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3098
 
3099
+ $name = __('Film hover goto', 'wp-photo-album-plus');
3100
+ $desc = __('Go to slide when hovering filmstrip thumbnail.', 'wp-photo-album-plus');
3101
+ $help = __('Do not use this setting when slides have different aspect ratios!', 'wp-photo-album-plus');
3102
+ $slug = 'wppa_film_hover_goto';
3103
+ $html = wppa_checkbox($slug);
3104
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3105
 
3106
+ $name = __('Slide swipe', 'wp-photo-album-plus');
3107
+ $desc = __('Enable touch events swipe left-right on slides on touch screens.', 'wp-photo-album-plus');
3108
+ $help = '';
3109
+ $slug = 'wppa_slide_swipe';
3110
+ $html = wppa_checkbox($slug);
3111
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
3112
 
3113
+ $name = __('Filmonly continu', 'wp-photo-album-plus');
3114
+ $desc = __('The filmstrip will move almost continously', 'wp-photo-album-plus');
3115
+ $help = '';
3116
+ $slug = 'wppa_filmonly_continuous';
3117
+ $html = wppa_checkbox($slug);
3118
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3119
 
3120
+ $name = __('Filmonly random', 'wp-photo-album-plus');
3121
+ $desc = __('Set sequence in filmonly to random');
3122
+ $help = __('Every pageload the sequence will be different', 'wp-photo-album-plus');
3123
+ $slug = 'wppa_filmonly_random';
3124
+ $html = wppa_checkbox($slug);
3125
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
3126
 
3127
+ $name = __('No animate on mobile', 'wp-photo-album-plus');
3128
+ $desc = __('Suppress slideshow animations on mobile devices.', 'wp-photo-album-plus');
3129
+ $help = '';
3130
+ $slug = 'wppa_no_animate_on_mobile';
3131
+ $html = wppa_checkbox($slug);
3132
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
3133
 
3134
+ wppa_setting_box_footer_new();
3135
  }
3136
  }
3137
  break;
3138
 
3139
  case 'lightbox': {
3140
  // Lightbox overlay configuration settings
 
3141
  {
3142
+ $desc = $wppa_subtab_names[$tab]['1'];
3143
+ wppa_setting_tab_description($desc);
3144
+ wppa_setting_box_header_new($tab);
3145
 
3146
+ $name = __('Theme color', 'wp-photo-album-plus');
3147
+ $desc = __('The color of the image border and text background.', 'wp-photo-album-plus');
3148
+ $help = '';
3149
+ $slug = 'wppa_ovl_theme';
3150
+ $opts = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
3151
+ $vals = array('black', 'white');
3152
+ $html = wppa_select($slug, $opts, $vals);
3153
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
3154
 
3155
+ $name = __('Theme background color', 'wp-photo-album-plus');
3156
+ $desc = __('The color of the outer background.', 'wp-photo-album-plus');
3157
+ $help = '';
3158
+ $slug = 'wppa_ovl_bgcolor';
3159
+ $opts = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
3160
+ $vals = array('black', 'white');
3161
+ $html = wppa_select($slug, $opts, $vals);
3162
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3163
 
3164
+ $name = __('Overlay name', 'wp-photo-album-plus');
3165
+ $desc = __('Show the items name.', 'wp-photo-album-plus');
3166
+ $help = __('Shows the photos name on a lightbox display.', 'wp-photo-album-plus');
3167
+ $slug = 'wppa_ovl_name';
3168
+ $html = wppa_checkbox($slug);
3169
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
3170
 
3171
+ $name = __('Overlay desc', 'wp-photo-album-plus');
3172
+ $desc = __('Show description.', 'wp-photo-album-plus');
3173
+ $help = __('Shows the photos description on a lightbox display.', 'wp-photo-album-plus');
3174
+ $slug = 'wppa_ovl_desc';
3175
+ $html = wppa_checkbox($slug);
3176
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3177
 
3178
+ $name = __('Overlay rating', 'wp-photo-album-plus');
3179
+ $desc = __('Shows and enables rating on lightbox display.', 'wp-photo-album-plus');
3180
+ $help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
3181
+ $slug = 'wppa_ovl_rating';
3182
+ $html = wppa_checkbox($slug);
3183
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3184
 
3185
+ $name = __('Overlay add owner', 'wp-photo-album-plus');
3186
+ $desc = __('Add the owner to the photo name on lightbox displays.', 'wp-photo-album-plus');
3187
+ $help = __('This setting is independant of the show name switches and is a global setting.', 'wp-photo-album-plus');
3188
+ $slug = 'wppa_ovl_add_owner';
3189
+ $html = wppa_checkbox($slug);
3190
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3191
 
3192
+ $name = __('Overlay show start/stop', 'wp-photo-album-plus');
3193
+ $desc = __('Show Start and Stop for running slideshow on lightbox.', 'wp-photo-album-plus');
3194
+ $help = '';
3195
+ $slug = 'wppa_ovl_show_startstop';
3196
+ $html = wppa_checkbox($slug);
3197
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3198
 
3199
+ $name = __('Overlay show counter', 'wp-photo-album-plus');
3200
+ $desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus');
3201
+ $help = '';
3202
+ $slug = 'wppa_ovl_show_counter';
3203
+ $html = wppa_checkbox($slug);
3204
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3205
 
3206
+ $name = __('WPPA+ Lightbox global', 'wp-photo-album-plus');
3207
+ $desc = __('Use the wppa+ lightbox also for non-wppa images.', 'wp-photo-album-plus');
3208
+ $help = '';
3209
+ $slug = 'wppa_lightbox_global';
3210
+ $onch = 'wppaSlave( this, "wppa_lightbox_global_set" )';
3211
+ $html = wppa_checkbox($slug, $onch);
3212
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3213
 
3214
+ $name = __('WPPA+ Lightbox global is a set', 'wp-photo-album-plus');
3215
+ $desc = __('Treat the other images as a set.', 'wp-photo-album-plus');
3216
+ $help = __('If checked, you can scroll through the non-WPPA images in the lightbox view.', 'wp-photo-album-plus');
3217
+ $slug = 'wppa_lightbox_global_set';
3218
+ $html = wppa_checkbox($slug);
3219
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_switch( 'lightbox_global' ) );
3220
 
3221
+ $name = __('Navigation icon size lightbox', 'wp-photo-album-plus');
3222
+ $desc = __('The size of navigation icons on lightbox', 'wp-photo-album-plus');
3223
+ $help = '';
3224
+ $slug = 'wppa_nav_icon_size_lightbox';
3225
+ $opts = array( '16px',
3226
+ '20px',
3227
+ '24px',
3228
+ '32px',
3229
+ '40px',
3230
+ '48px',
3231
+ );
3232
+ $vals = array( '16',
3233
+ '20',
3234
+ '24',
3235
+ '32',
3236
+ '40',
3237
+ '48',
3238
+ );
3239
+ $html = wppa_select($slug, $opts, $vals);
3240
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3241
 
3242
+ $name = __('Show Share Buttons Lightbox', 'wp-photo-album-plus');
3243
+ $desc = __('Display the share social media buttons on lightbox displays.', 'wp-photo-album-plus');
3244
+ $help = '';
3245
+ $slug = 'wppa_share_on_lightbox';
3246
+ $html = wppa_checkbox($slug);
3247
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
3248
 
3249
+ $name = __('Number of text lines', 'wp-photo-album-plus');
3250
+ $desc = __('Number of lines on the lightbox description area, exclusive the n/m line.', 'wp-photo-album-plus');
3251
+ $help = __('Enter a number in the range from 0 to 24 or auto', 'wp-photo-album-plus');
3252
+ $slug = 'wppa_ovl_txt_lines';
3253
+ $html = wppa_input($slug, '40px', '', __('lines', 'wp-photo-album-plus'));
3254
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
3255
 
3256
+ $name = __('Magnifier cursor size', 'wp-photo-album-plus');
3257
+ $desc = __('Select the size of the magnifier cursor.', 'wp-photo-album-plus');
3258
+ $help = '';
3259
+ $slug = 'wppa_magnifier';
3260
+ $opts = array( __('small', 'wp-photo-album-plus'),
3261
+ __('medium', 'wp-photo-album-plus'),
3262
+ __('large', 'wp-photo-album-plus'),
3263
+ __('pointer (hand)', 'wp-photo-album-plus'),
3264
+ __('--- none ---', 'wp-photo-album-plus')
3265
+ );
3266
+ $vals = array( 'magnifier-small.png',
3267
+ 'magnifier-medium.png',
3268
+ 'magnifier-large.png',
3269
+ 'pointer',
3270
+ ''
3271
+ );
3272
+ $onchange = 'jQuery(\'#wppa-cursor\').attr(\'alt\', jQuery(\'#magnifier\').val() );
3273
+ document.getElementById(\'wppa-cursor\').src=wppaImageDirectory+document.getElementById(\'magnifier\').value;';
3274
+ $html = wppa_select( $slug, $opts, $vals, $onchange ) .
3275
+ '&nbsp;&nbsp;<img id="wppa-cursor" src="'.wppa_get_imgdir().wppa_opt( substr( $slug, 5 ) ).'" />';
3276
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
3277
+ echo '<script>'.$onchange.'</script>';
 
 
 
 
 
 
 
3278
 
3279
+ $name = __('Border width', 'wp-photo-album-plus');
3280
+ $desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
3281
+ $help = '';
3282
+ $slug = 'wppa_ovl_border_width';
3283
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3284
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
3285
 
3286
+ $name = __('Border radius', 'wp-photo-album-plus');
3287
+ $desc = __('Border radius for lightbox display.', 'wp-photo-album-plus');
3288
+ $help = '';
3289
+ $slug = 'wppa_ovl_border_radius';
3290
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3291
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
3292
 
3293
+ $name = __('Show Zoom in', 'wp-photo-album-plus');
3294
+ $desc = __('Display tooltip "Zoom in" along with the magnifier cursor.', 'wp-photo-album-plus');
3295
+ $help = __('If you select ---none--- in item 14 for magnifier size, the tooltop contains the photo name.', 'wp-photo-album-plus');
3296
+ $slug = 'wppa_show_zoomin';
3297
+ $html = wppa_checkbox($slug);
3298
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
3299
 
3300
+ $name = __('Overlay opacity', 'wp-photo-album-plus');
3301
+ $desc = __('The opacity of the lightbox overlay background.', 'wp-photo-album-plus');
3302
+ $help = '';
3303
+ $slug = 'wppa_ovl_opacity';
3304
+ $html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
3305
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
 
 
3306
 
3307
+ $name = __('Click on background', 'wp-photo-album-plus');
3308
+ $desc = __('Select the action to be taken on click on background.', 'wp-photo-album-plus');
3309
+ $help = '';
3310
+ $slug = 'wppa_ovl_onclick';
3311
+ $opts = array(__('Nothing', 'wp-photo-album-plus'), __('Exit (close)', 'wp-photo-album-plus'), __('Browse (left/right)', 'wp-photo-album-plus'));
3312
+ $vals = array('none', 'close', 'browse');
3313
+ $html = wppa_select($slug, $opts, $vals);
3314
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
3315
 
3316
+ $name = __('Click on image', 'wp-photo-album-plus');
3317
+ $desc = __('Clicking the image (left or right half) will browse the images', 'wp-photo-album-plus');
3318
+ $help = '';
3319
+ $slug = 'wppa_ovl_browse_on_click';
3320
+ $html = wppa_checkbox($slug);
3321
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
 
 
3322
 
3323
+ $name = __('Overlay animation speed', 'wp-photo-album-plus');
3324
+ $desc = __('The fade-in time of the lightbox images', 'wp-photo-album-plus');
3325
+ $help = '';
3326
+ $slug = 'wppa_ovl_anim';
3327
+ $opts = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '300 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.');
3328
+ $vals = array('10', '200', '300', '400', '800', '1200', '2000', '4000');
3329
+ $html = wppa_select($slug, $opts, $vals);
3330
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
3331
 
3332
+ $name = __('Overlay slideshow speed', 'wp-photo-album-plus');
3333
+ $desc = __('The time the lightbox images stay', 'wp-photo-album-plus');
3334
+ $help = '';
3335
+ $slug = 'wppa_ovl_slide';
3336
+ $opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
3337
+ $vals = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
3338
+ $html = wppa_select($slug, $opts, $vals);
3339
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
3340
 
3341
+ $name = __('Use hires files', 'wp-photo-album-plus');
3342
+ $desc = __('Use the highest resolution available for lightbox.', 'wp-photo-album-plus');
3343
+ $help = __('Ticking this box is recommended for lightbox fullscreen modes.', 'wp-photo-album-plus');
3344
+ $slug = 'wppa_lb_hres';
3345
+ $html = wppa_checkbox($slug);
3346
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
3347
 
3348
+ $name = __('Video autostart', 'wp-photo-album-plus');
3349
+ $desc = __('Videos on lightbox start automatically.', 'wp-photo-album-plus');
3350
+ $help = '';
3351
+ $slug = 'wppa_ovl_video_start';
3352
+ $html = wppa_checkbox($slug);
3353
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
3354
 
3355
+ $name = __('Audio autostart', 'wp-photo-album-plus');
3356
+ $desc = __('Audio on lightbox start automatically.', 'wp-photo-album-plus');
3357
+ $help = '';
3358
+ $slug = 'wppa_ovl_audio_start';
3359
+ $html = wppa_checkbox($slug);
3360
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
 
 
 
 
 
 
3361
 
3362
+ $name = __('Lightbox start mode', 'wp-photo-album-plus');
3363
+ $desc = __('The mode lightbox starts in.', 'wp-photo-album-plus');
3364
+ $help = '';
3365
+ $slug = 'wppa_ovl_mode_initial';
3366
+ $opts = array( __('Normal', 'wp-photo-album-plus'),
3367
+ __('Fullscreen', 'wp-photo-album-plus'),
3368
+ );
3369
+ $vals = array( 'normal',
3370
+ 'padded',
3371
+ );
3372
+ $html = wppa_select($slug,$opts,$vals);
3373
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help);
3374
 
3375
+ $name = __('Lightbox start mode mobile', 'wp-photo-album-plus');
3376
+ $desc = __('The mode lightbox starts in on mobile devices.', 'wp-photo-album-plus');
3377
+ $help = '';
3378
+ $slug = 'wppa_ovl_mode_initial_mob';
3379
+ $opts = array( __('Normal', 'wp-photo-album-plus'),
3380
+ __('Fullscreen', 'wp-photo-album-plus'),
3381
+ );
3382
+ $vals = array( 'normal',
3383
+ 'padded',
3384
+ );
3385
+ $html = wppa_select($slug,$opts,$vals);
3386
+ wppa_setting_new($slug, '27', $name, $desc, $html, $help);
3387
+
3388
+ wppa_setting_box_footer_new();
3389
  }
3390
  }
3391
  break;
3392
 
3393
  case 'comments': {
3394
  // Comments system related settings
 
3395
  {
3396
+ $desc = $wppa_subtab_names[$tab]['1'];
3397
+ wppa_setting_tab_description($desc);
3398
+ wppa_setting_box_header_new($tab);
3399
 
3400
+ $name = __('Commenting login', 'wp-photo-album-plus');
3401
+ $desc = __('Users must be logged in to comment on photos.', 'wp-photo-album-plus');
3402
+ $help = __('Check this box if you want users to be logged in to be able to enter comments on individual photos.', 'wp-photo-album-plus');
3403
+ $slug = 'wppa_comment_login';
3404
+ $html = wppa_checkbox($slug);
3405
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
3406
 
3407
+ $name = __('Comments view login', 'wp-photo-album-plus');
3408
+ $desc = __('Users must be logged in to see comments on photos.', 'wp-photo-album-plus');
3409
+ $help = __('Check this box if you want users to be logged in to be able to see existing comments on individual photos.', 'wp-photo-album-plus');
3410
+ $slug = 'wppa_comment_view_login';
3411
+ $html = wppa_checkbox($slug);
3412
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3413
 
3414
+ $name = __('Last comment first', 'wp-photo-album-plus');
3415
+ $desc = __('Display the newest comment on top.', 'wp-photo-album-plus');
3416
+ $help = __('If checked: Display the newest comment on top.', 'wp-photo-album-plus');
3417
+ $help .= '<br />'.(__('If unchecked, the comments are listed in the ordere they were entered.', 'wp-photo-album-plus'));
3418
+ $slug = 'wppa_comments_desc';
3419
+ $html = wppa_checkbox($slug);
3420
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
3421
+
3422
+ $name = __('Comment moderation', 'wp-photo-album-plus');
3423
+ $desc = __('Comments from what users need approval.', 'wp-photo-album-plus');
3424
+ $help = __('Select the desired users of which the comments need approval.', 'wp-photo-album-plus');
3425
+ $slug = 'wppa_moderate_comment';
3426
+ $opts = array( __('All users', 'wp-photo-album-plus'),
3427
+ __('Logged out users', 'wp-photo-album-plus'),
3428
+ __('No users', 'wp-photo-album-plus'),
3429
+ __('Use WP Discussion rules', 'wp-photo-album-plus'),
3430
+ );
3431
+ $vals = array( 'all',
3432
+ 'logout',
3433
+ '-none-',
3434
+ 'wprules',
3435
+ );
3436
+ $html = wppa_select($slug, $opts, $vals);
3437
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3438
 
3439
+ $name = __('Comment email required', 'wp-photo-album-plus');
3440
+ $desc = __('Commenting users must enter their email addresses.', 'wp-photo-album-plus');
3441
+ $help = '';
3442
+ $slug = 'wppa_comment_email_required';
3443
+ $opts = array( __('None', 'wp-photo-album-plus'),
3444
+ __('Optional', 'wp-photo-album-plus'),
3445
+ __('Required', 'wp-photo-album-plus'),
 
3446
  );
3447
+ $vals = array( 'none',
3448
+ 'optional',
3449
+ 'required',
 
3450
  );
3451
+ $html = wppa_select($slug, $opts, $vals);
3452
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3453
 
3454
+ $name = __('Comment ntfy added', 'wp-photo-album-plus');
3455
+ $desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus');
3456
+ $help = '';
3457
+ $slug = 'wppa_commentnotify_added';
3458
+ $html = wppa_checkbox($slug);
3459
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
3460
 
3461
+ $name = __('ComTen alt display', 'wp-photo-album-plus');
3462
+ $desc = __('Display comments at comten thumbnails.', 'wp-photo-album-plus');
3463
+ $help = '';
3464
+ $slug = 'wppa_comten_alt_display';
3465
+ $html = wppa_checkbox($slug);
3466
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3467
 
3468
+ $name = __('Comten Thumbnail width', 'wp-photo-album-plus');
3469
+ $desc = __('The width of the thumbnail in the alt comment display.', 'wp-photo-album-plus');
3470
+ $help = '';
3471
+ $slug = 'wppa_comten_alt_thumbsize';
3472
+ $html = wppa_input($slug, '50px', '', __('Pixels', 'wp-photo-album-plus'));
3473
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3474
 
3475
+ $name = __('Show smiley picker', 'wp-photo-album-plus');
3476
+ $desc = __('Display a clickable row of smileys.', 'wp-photo-album-plus');
3477
+ $help = '';
3478
+ $slug = 'wppa_comment_smiley_picker';
3479
+ $html = wppa_checkbox($slug);
3480
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3481
 
3482
+ $name = __('Allow clickable links', 'wp-photo-album-plus');
3483
+ $desc = __('Make links in comments clickable', 'wp-photo-album-plus');
3484
+ $help = '';
3485
+ $slug = 'wppa_comment_clickable';
3486
+ $html = wppa_checkbox($slug);
3487
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
3488
 
3489
+ $name = __('Comment db agreement', 'wp-photo-album-plus');
3490
+ $desc = __('User needs to tick a checkbox to agree db storage', 'wp-photo-album-plus');
3491
+ $help = '';
3492
+ $slug = 'wppa_comment_need_db_agree';
3493
+ $html = wppa_checkbox($slug);
3494
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3495
 
3496
+ $name = __('Comment needs vote', 'wp-photo-album-plus');
3497
+ $desc = __('User needs to give a rating to get his comment published', 'wp-photo-album-plus');
3498
+ $help = '';
3499
+ $slug = 'wppa_comment_need_vote';
3500
+ $html = wppa_checkbox($slug);
3501
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
3502
 
3503
+ $name = __('Comment Avatar default', 'wp-photo-album-plus');
3504
+ $desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus');
3505
+ $help = '';
3506
+ $slug = 'wppa_comment_gravatar';
3507
+ $onch = '';
3508
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'),
3509
+ __('mystery man', 'wp-photo-album-plus'),
3510
+ __('identicon', 'wp-photo-album-plus'),
3511
+ __('monsterid', 'wp-photo-album-plus'),
3512
+ __('wavatar', 'wp-photo-album-plus'),
3513
+ __('retro', 'wp-photo-album-plus'),
3514
+ __('--- url ---', 'wp-photo-album-plus')
3515
+ );
3516
+ $vals = array( 'none',
3517
+ 'mm',
3518
+ 'identicon',
3519
+ 'monsterid',
3520
+ 'wavatar',
3521
+ 'retro',
3522
+ 'url'
3523
+ );
3524
+ $html = wppa_select($slug, $opts, $vals, $onch);
3525
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
3526
 
3527
+ $name = __('Comment Avatar url', 'wp-photo-album-plus');
3528
+ $desc = __('Comment Avatar default url.', 'wp-photo-album-plus');
3529
+ $help = '';
3530
+ $slug = 'wppa_comment_gravatar_url';
3531
+ $html = wppa_input($slug, '90%', '300px');
3532
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3533
 
3534
+ $name = __('Avatar size', 'wp-photo-album-plus');
3535
+ $desc = __('Size of Avatar images.', 'wp-photo-album-plus');
3536
+ $help = __('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus');
3537
+ $slug = 'wppa_gravatar_size';
3538
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3539
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
 
 
 
 
 
 
 
3540
 
3541
+ $name = __('List comments', 'wp-photo-album-plus');
3542
+ $desc = __('Show the content of the comments table.', 'wp-photo-album-plus');
3543
+ $help = '';
3544
+ $slug1 = 'wppa_list_comments_by';
3545
+ $slug2 = 'wppa_list_comments';
3546
+ $opts = array( 'Email', 'Name', 'Timestamp' );
3547
+ $vals = array( 'email', 'name', 'timestamp' );
3548
+ $html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus').'</small>'.wppa_select($slug1, $opts, $vals);
3549
+ $html2 = wppa_popup_button( $slug2, '30' );
3550
+ $html = $html1 . '<span style="float:left;" >&nbsp;</span>' .$html2;
3551
+ wppa_setting_new($slug1, '16', $name, $desc, $html, $help);
3552
+
3553
+ wppa_setting_box_footer_new();
3554
  }
3555
  }
3556
  break;
3557
 
3558
  case 'rating': {
3559
  // Rating system related settings
 
3560
  {
3561
+ $desc = $wppa_subtab_names[$tab]['1'];
3562
+ wppa_setting_tab_description($desc);
3563
+ wppa_setting_box_header_new($tab);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3564
 
3565
+ $name = __('Slideshow rating', 'wp-photo-album-plus');
3566
+ $desc = __('Display Slideshow Rating.', 'wp-photo-album-plus');
3567
+ $help = __('Display the rating of the photo under the slideshow image.', 'wp-photo-album-plus');
3568
+ $slug = '';
3569
+ $html = '<input type="checkbox" checked disabled >';
3570
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
 
 
 
3571
 
3572
+ $name = __('Thumbnail rating', 'wp-photo-album-plus');
3573
+ $desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus');
3574
+ $help = __('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus');
3575
+ $slug = 'wppa_thumb_text_rating';
3576
+ $html = wppa_checkbox($slug);
3577
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
 
3578
 
3579
+ $name = __('Lightbox rating', 'wp-photo-album-plus');
3580
+ $desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus');
3581
+ $help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
3582
+ $slug = 'wppa_ovl_rating';
3583
+ $html = wppa_checkbox($slug);
3584
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
 
 
3585
 
3586
+ $name = __('Rating display type', 'wp-photo-album-plus');
3587
+ $desc = __('Specify the type of the rating display.', 'wp-photo-album-plus');
3588
+ $help = __('If you select "Likes" you must also select "One button vote"', 'wp-photo-album-plus');
3589
+ $slug = 'wppa_rating_display_type';
3590
+ $opts = array(__('Graphic', 'wp-photo-album-plus'), __('Numeric', 'wp-photo-album-plus'), __('Likes', 'wp-photo-album-plus'));
3591
+ $vals = array('graphic', 'numeric', 'likes');
3592
+ $postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
3593
+ $html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
3594
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3595
 
3596
+ $name = __('Rating size', 'wp-photo-album-plus');
3597
+ $desc = __('Select the number of voting stars.', 'wp-photo-album-plus');
3598
+ $help = '';
3599
+ $slug = 'wppa_rating_max';
3600
+ $opts = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
3601
+ $vals = array('5', '10', '1');
3602
+ $html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();') . wppa_see_also( 'maintenance', '1', '5' );
3603
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3604
 
3605
+ $name = __('Display precision', 'wp-photo-album-plus');
3606
+ $desc = __('Select the desired rating display precision.', 'wp-photo-album-plus');
3607
+ $help = '';
3608
+ $slug = 'wppa_rating_prec';
3609
+ $opts = array('1 '.__('decimal places', 'wp-photo-album-plus'), '2 '.__('decimal places', 'wp-photo-album-plus'), '3 '.__('decimal places', 'wp-photo-album-plus'), '4 '.__('decimal places', 'wp-photo-album-plus'));
3610
+ $vals = array('1', '2', '3', '4');
3611
+ $html = wppa_select($slug, $opts, $vals);
3612
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3613
 
3614
+ $name = __('Rating space', 'wp-photo-album-plus');
3615
+ $desc = __('Space between avg and my rating stars', 'wp-photo-album-plus');
3616
+ $help = '';
3617
+ $slug = 'wppa_ratspacing';
3618
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
3619
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
3620
 
3621
+ $name = __('Show rating count', 'wp-photo-album-plus');
3622
+ $desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus');
3623
+ $help = __('If checked, the number of votes is displayed along with average rating displays.', 'wp-photo-album-plus');
3624
+ $slug = 'wppa_show_rating_count';
3625
+ $html = wppa_checkbox($slug);
3626
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3627
 
3628
+ $name = __('Rating login', 'wp-photo-album-plus');
3629
+ $desc = __('Users must login to rate photos.', 'wp-photo-album-plus');
3630
+ $help = __('If users want to vote for a photo (rating 1..5 stars) the must login first. The avarage rating will always be displayed as long as the rating system is enabled.', 'wp-photo-album-plus');
3631
+ $slug = 'wppa_rating_login';
3632
+ $html = wppa_checkbox($slug);
3633
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
 
 
3634
 
3635
+ $name = __('Rating change', 'wp-photo-album-plus');
3636
+ $desc = __('Users may change their ratings.', 'wp-photo-album-plus');
3637
+ $help = __('Users may change their ratings.', 'wp-photo-album-plus');
3638
+ $help .= '<br />'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
3639
+ $slug = 'wppa_rating_change';
3640
+ $html = wppa_checkbox($slug);
3641
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
3642
 
3643
+ $name = __('Rating multi', 'wp-photo-album-plus');
3644
+ $desc = __('Users may give multiple votes.', 'wp-photo-album-plus');
3645
+ $help = __('Users may give multiple votes. (This has no effect when users may change their votes.)', 'wp-photo-album-plus');
3646
+ $slug = 'wppa_rating_multi';
3647
+ $html = wppa_checkbox($slug);
3648
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
3649
 
3650
+ $name = __('Rating daily', 'wp-photo-album-plus');
3651
+ $desc = __('Users may rate only once per period', 'wp-photo-album-plus');
3652
+ $help = '';
3653
+ $slug = 'wppa_rating_dayly';
3654
+ $opts = array(__('--- off ---', 'wp-photo-album-plus'), __('Week', 'wp-photo-album-plus'), __('Day', 'wp-photo-album-plus'), __('Hour', 'wp-photo-album-plus') );
3655
+ $vals = array(0, 7*24*60*60, 24*60*60, 60*60);
3656
+ $html = wppa_select($slug, $opts, $vals);
3657
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
3658
 
3659
+ $name = __('Rate own photos', 'wp-photo-album-plus');
3660
+ $desc = __('It is allowed to rate photos by the uploader himself.', 'wp-photo-album-plus');
3661
+ $help = '';
3662
+ $slug = 'wppa_allow_owner_votes';
3663
+ $html = wppa_checkbox($slug);
3664
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
 
3665
 
3666
+ $name = __('Rating requires comment', 'wp-photo-album-plus');
3667
+ $desc = __('Users must clarify their vote in a comment.', 'wp-photo-album-plus');
3668
+ $help = '';
3669
+ $slug = 'wppa_vote_needs_comment';
3670
+ $html = wppa_checkbox($slug);
3671
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
 
 
 
 
3672
 
3673
+ $name = __('Next after vote', 'wp-photo-album-plus');
3674
+ $desc = __('Goto next slide after voting', 'wp-photo-album-plus');
3675
+ $help = __('If checked, the visitor goes straight to the slide following the slide he voted. This will speed up mass voting.', 'wp-photo-album-plus');
3676
+ $slug = 'wppa_next_on_callback';
3677
+ $html = wppa_checkbox($slug);
3678
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
 
3679
 
3680
+ $name = __('Star off opacity', 'wp-photo-album-plus');
3681
+ $desc = __('Rating star off state opacity value.', 'wp-photo-album-plus');
3682
+ $help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus');
3683
+ $help .= '<br />'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
3684
+ $slug = 'wppa_star_opacity';
3685
+ $html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
3686
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
3687
+
3688
+ $name = __('Notify inappropriate', 'wp-photo-album-plus');
3689
+ $desc = __('Notify admin every x times.', 'wp-photo-album-plus');
3690
+ $help = __('If this number is positive, there will be a thumb down icon in the rating bar.', 'wp-photo-album-plus');
3691
+ $help .= '<br />'.(__('Clicking the thumbdown icon indicates a user dislikes a photo.', 'wp-photo-album-plus'));
3692
+ $help .= '<br />'.(__('Admin will be notified by email after every x dislikes.', 'wp-photo-album-plus'));
3693
+ $help .= '<br />'.(__('A value of 0 disables this feature.', 'wp-photo-album-plus'));
3694
+ $help .= '<br />'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
3695
+ $slug = 'wppa_dislike_mail_every';
3696
+ $html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
3697
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
3698
+
3699
+ $name = __('Dislike value', 'wp-photo-album-plus');
3700
+ $desc = __('This value counts dislike rating.', 'wp-photo-album-plus');
3701
+ $help = (__('This value will be used for a dislike rating on calculation of avarage ratings.', 'wp-photo-album-plus'));
3702
+ $help .= '<br />'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
3703
+ $slug = 'wppa_dislike_value';
3704
+ $html = wppa_input($slug, '50px', '', __('points', 'wp-photo-album-plus'));
3705
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
3706
+
3707
+ $name = __('Pending after', 'wp-photo-album-plus');
3708
+ $desc = __('Set status to pending after xx dislike votes.', 'wp-photo-album-plus');
3709
+ $help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
3710
+ $help .= '<br />'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus');
3711
+ $slug = 'wppa_dislike_set_pending';
3712
+ $html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
3713
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
3714
+
3715
+ $name = __('Delete after', 'wp-photo-album-plus');
3716
+ $desc = __('Delete photo after xx dislike votes.', 'wp-photo-album-plus');
3717
+ $help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
3718
+ $help .= '<br />'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus');
3719
+ $slug = 'wppa_dislike_delete';
3720
+ $html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
3721
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
3722
+
3723
+ $name = __('Show dislike count', 'wp-photo-album-plus');
3724
+ $desc = __('Show the number of dislikes in the rating bar.', 'wp-photo-album-plus');
3725
+ $help = __('Displayes the total number of dislike votes for the current photo.', 'wp-photo-album-plus');
3726
+ $help .= '<br />'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus');
3727
+ $slug = 'wppa_dislike_show_count';
3728
+ $html = wppa_checkbox($slug);
3729
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
3730
+
3731
+ $name = __('Show average rating', 'wp-photo-album-plus');
3732
+ $desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus');
3733
+ $help = __('If checked, the average rating as well as the current users rating is displayed in max 5 or 10 stars.', 'wp-photo-album-plus');
3734
+ $help .= '<br />'.__('If unchecked, only the current users rating is displayed (if any).', 'wp-photo-album-plus');
3735
+ $help .= '<br />'.__('If "One button vote" is selected in item 5, this box checked will display the vote count.', 'wp-photo-album-plus');
3736
+ $slug = 'wppa_show_avg_rating';
3737
+ $html = wppa_checkbox($slug);
3738
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
3739
 
3740
+ $name = __('Avg and Mine on 2 lines', 'wp-photo-album-plus');
3741
+ $desc = __('Display avarage and my rating on different lines', 'wp-photo-album-plus');
3742
+ $help = '';
3743
+ $slug = 'wppa_show_avg_mine_2';
3744
+ $html = wppa_checkbox($slug);
3745
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
3746
+
3747
+ $name = __('Single vote button text', 'wp-photo-album-plus');
3748
+ $desc = __('The text on the voting button.', 'wp-photo-album-plus');
3749
+ $help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
3750
+ $slug = 'wppa_vote_button_text';
3751
+ $html = wppa_input($slug, '100');
3752
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
3753
+
3754
+ $name = __('Single vote button text voted', 'wp-photo-album-plus');
3755
+ $desc = __('The text on the voting button when voted.', 'wp-photo-album-plus');
3756
+ $help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
3757
+ $slug = 'wppa_voted_button_text';
3758
+ $html = wppa_input($slug, '100');
3759
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
3760
+
3761
+ $name = __('Single vote button thumbnail', 'wp-photo-album-plus');
3762
+ $desc = __('Display single vote button below thumbnails.', 'wp-photo-album-plus');
3763
+ $help = __('This works only in single vote mode: item 5 set to "one button vote"', 'wp-photo-album-plus');
3764
+ $slug = 'wppa_vote_thumb';
3765
+ $html = wppa_checkbox($slug);
3766
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) == '1' );
3767
+
3768
+ $name = __('Medal bronze when', 'wp-photo-album-plus');
3769
+ $desc = __('Photo gets medal bronze when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
3770
+ $help = __('When the photo has this number of topscores ( 5 or 10 stars ), it will get a medal. A value of 0 indicates that you do not want this feature.', 'wp-photo-album-plus');
3771
+ $slug = 'wppa_medal_bronze_when';
3772
+ $html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
3773
+ wppa_setting_new($slug, '27', $name, $desc, $html, $help);
3774
+
3775
+ $name = __('Medal silver when', 'wp-photo-album-plus');
3776
+ $desc = __('Photo gets medal silver when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
3777
+ $help = (__('When the photo has this number of topscores ( 5 or 10 stars ), it will get a medal. A value of 0 indicates that you do not want this feature.', 'wp-photo-album-plus'));
3778
+ $slug = 'wppa_medal_silver_when';
3779
+ $html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
3780
+ wppa_setting_new($slug, '28', $name, $desc, $html, $help);
3781
+
3782
+ $name = __('Medal gold when', 'wp-photo-album-plus');
3783
+ $desc = __('Photo gets medal gold when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
3784
+ $help = (__('When the photo has this number of topscores ( 5 or 10 stars ), it will get a medal. A value of 0 indicates that you do not want this feature.', 'wp-photo-album-plus'));
3785
+ $slug = 'wppa_medal_gold_when';
3786
+ $html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
3787
+ wppa_setting_new($slug, '29', $name, $desc, $html, $help);
3788
+
3789
+ $name = __('Medal tag color', 'wp-photo-album-plus');
3790
+ $desc = __('The color of the tag on the medal.', 'wp-photo-album-plus');
3791
+ $help = '';
3792
+ $slug = 'wppa_medal_color';
3793
+ $opts = array( __('Red', 'wp-photo-album-plus'), __('Green', 'wp-photo-album-plus'), __('Blue', 'wp-photo-album-plus') );
3794
+ $vals = array( '1', '2', '3' );
3795
+ $html = wppa_select($slug, $opts, $vals);
3796
+ wppa_setting_new($slug, '30', $name, $desc, $html, $help);
3797
 
3798
+ $name = __('Medal position', 'wp-photo-album-plus');
3799
+ $desc = __('The position of the medal on the image.', 'wp-photo-album-plus');
3800
+ $help = '';
3801
+ $slug = 'wppa_medal_position';
3802
+ $opts = array( __('Top left', 'wp-photo-album-plus'), __('Top right', 'wp-photo-album-plus'), __('Bottom left', 'wp-photo-album-plus'), __('Bottom right', 'wp-photo-album-plus') );
3803
+ $vals = array( 'topleft', 'topright', 'botleft', 'botright' );
3804
+ $html = wppa_select($slug, $opts, $vals);
3805
+ wppa_setting_new($slug, '31', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3806
 
3807
+ $name = __('Top criterium', 'wp-photo-album-plus');
3808
+ $desc = __('The top sort item used for topten results from shortcodes.', 'wp-photo-album-plus');
3809
+ $help = '';
3810
+ $slug = 'wppa_topten_sortby';
3811
+ $opts = array( __('Mean rating', 'wp-photo-album-plus'),
3812
+ __('Rating count', 'wp-photo-album-plus'),
3813
+ __('Viewcount', 'wp-photo-album-plus'),
3814
+ __('Downloads', 'wp-photo-album-plus'));
3815
+ $vals = array( 'mean_rating', 'rating_count', 'views', 'dlcount' );
3816
+ $html = wppa_select($slug, $opts, $vals);
3817
+ wppa_setting_new($slug, '32', $name, $desc, $html, $help);
3818
 
3819
+ $name = __('Contest top creterium', 'wp-photo-album-plus');
3820
+ $desc = __('The top sort creterium used for the contest.', 'wp-photo-album-plus');
3821
+ $help = '';
3822
+ $slug = 'wppa_contest_sortby';
3823
+ $opts = array( __('Mean rating', 'wp-photo-album-plus'),
3824
+ __('Total rating', 'wp-photo-album-plus'));
3825
+ $vals = array( 'average', 'total' );
3826
+ $html = wppa_select($slug, $opts, $vals);
3827
+ wppa_setting_new($slug, '33', $name, $desc, $html, $help);
 
 
3828
 
3829
+ $name = __('Contest photo numbering', 'wp-photo-album-plus');
3830
+ $desc = __('The number to be placed near the preview.', 'wp-photo-album-plus');
3831
+ $help = '';
3832
+ $slug = 'wppa_contest_number';
3833
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'),
3834
+ __('Photo id', 'wp-photo-album-plus'),
3835
+ __('Sequence number', 'wp-photo-album-plus'));
3836
+ $vals = array( 'none', 'id', 'seqno' );
3837
+ $html = wppa_select($slug, $opts, $vals);
3838
+ wppa_setting_new($slug, '34', $name, $desc, $html, $help);
3839
 
3840
+ $name = __('Contest max ranking', 'wp-photo-album-plus');
3841
+ $desc = __('The number of photos in the contest results display.', 'wp-photo-album-plus');
3842
+ $help = '';
3843
+ $slug = 'wppa_contest_max';
3844
+ $html = wppa_number($slug, '3', '100');
3845
+ wppa_setting_new($slug, '35', $name, $desc, $html, $help);
3846
+
3847
+ $name = __('Contest comment visibility', 'wp-photo-album-plus');
3848
+ $desc = __('The policy to display comments on the contest display', 'wp-photo-album-plus');
3849
+ $help = __('Admin always sees the comments', 'wp-photo-album-plus');
3850
+ $slug = 'wppa_contest_comment_policy';
3851
+ $opts = array( __('None', 'wp-photo-album-plus' ),
3852
+ __('Commenter', 'wp-photo-album-plus'),
3853
+ __('Commenter and photo owner', 'wp-photo-album-plus'),
3854
+ __('Every visitor', 'wp-photo-album-plus'));
3855
+ $vals = array( 'none', 'comowner', 'owners', 'all' );
3856
+ $html = wppa_select($slug, $opts, $vals);
3857
+ wppa_setting_new($slug, '36', $name, $desc, $html, $help);
3858
 
3859
+ $name = __('List Ratings', 'wp-photo-album-plus');
3860
+ $desc = __('Show the most recent ratings.', 'wp-photo-album-plus');
3861
+ $help = '';
3862
+ $slug = 'wppa_list_rating';
3863
+ $html = wppa_popup_button( $slug, '30' );
3864
+ wppa_setting_new($slug, '37', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
3865
 
3866
+ wppa_setting_box_footer_new();
3867
  }
3868
  }
3869
  break;
3870
 
3871
  case 'search': {
3872
  // Search albums and photos features related settings
 
3873
  {
3874
+ $desc = $wppa_subtab_names[$tab]['1'];
3875
+ wppa_setting_tab_description($desc);
3876
+ wppa_setting_box_header_new($tab);
3877
 
3878
+ $name = __('Search landing page', 'wp-photo-album-plus');
3879
+ $desc = __('Display the search results on page.', 'wp-photo-album-plus');
3880
+ $help = __('Select the page to be used to display search results. The page MUST contain [wppa].', 'wp-photo-album-plus');
3881
+ $help .= '<br />'.__('You may give it the title "Search results" or something alike.', 'wp-photo-album-plus');
3882
+ $help .= '<br />'.__('Or you may use the standard page on which you display the generic album.', 'wp-photo-album-plus');
3883
+ $slug = 'wppa_search_linkpage';
3884
+ wppa_verify_page($slug);
3885
+ $pages = $wpdb->get_results( "SELECT ID, post_title, post_content FROM $wpdb->posts
3886
+ WHERE post_type = 'page'
3887
+ AND post_status = 'publish'
3888
+ ORDER BY post_title", ARRAY_A );
3889
+ $opts = false;
3890
+ $vals = false;
3891
+ $opts[] = __('--- Please select a page ---', 'wp-photo-album-plus');
3892
+ $vals[] = '0';
3893
+ if ($pages) {
3894
+
3895
+ // Translate
3896
+ foreach ( array_keys($pages) as $index ) {
3897
+ $pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
 
 
 
 
 
 
3898
  }
3899
+ $pages = wppa_array_sort($pages, 'post_title');
3900
+ foreach ($pages as $page) {
3901
+ if ( strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false ) {
3902
+ $opts[] = __($page['post_title'], 'wp-photo-album-plus');
3903
+ $vals[] = $page['ID'];
3904
+ }
3905
+ else {
3906
+ $opts[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
3907
+ $vals[] = $page['ID'];
3908
+ }
3909
  }
3910
  }
3911
+ $html1 = wppa_select($slug, $opts, $vals, '', '', true);
 
3912
 
3913
+ $slug2 = 'wppa_search_oc';
3914
+ $opts2 = array('1','2','3','4','5');
3915
+ $vals2 = array('1','2','3','4','5');
3916
+ $html2 = '<div style="float:right;" ><div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug2, $opts2, $vals2).'</div>';
3917
 
3918
+ $html = $html1 . $html2;
3919
+ wppa_setting_new(false, '1', $name, $desc, $html, $help);
3920
 
3921
+ $name = __('Exclude separate', 'wp-photo-album-plus');
3922
+ $desc = __('Do not search \'separate\' albums.', 'wp-photo-album-plus');
3923
+ $help = __('When checked, albums (and photos in them) that have the parent set to --- separate --- will be excluded from being searched.', 'wp-photo-album-plus');
3924
+ $help .= '<br />'.__('Except when you start searching in a \'saparate\' album, with the "search in current section" box ticked.', 'wp-photo-album-plus');
3925
+ $slug = 'wppa_excl_sep';
3926
+ $html = wppa_checkbox($slug);
3927
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
3928
 
3929
+ $name = __('Include tags', 'wp-photo-album-plus');
3930
+ $desc = __('Do also search the photo tags.', 'wp-photo-album-plus');
3931
+ $help = __('When checked, the tags of the photo will also be searched.', 'wp-photo-album-plus');
3932
+ $slug = 'wppa_search_tags';
3933
+ $html = wppa_checkbox($slug);
3934
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
3935
 
3936
+ $name = __('Include categories', 'wp-photo-album-plus');
3937
+ $desc = __('Do also search the album categories.', 'wp-photo-album-plus');
3938
+ $help = __('When checked, the categories of the album will also be searched.', 'wp-photo-album-plus');
3939
+ $slug = 'wppa_search_cats';
3940
+ $html = wppa_checkbox($slug);
3941
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
3942
 
3943
+ $name = __('Include comments', 'wp-photo-album-plus');
3944
+ $desc = __('Do also search the comments on photos.', 'wp-photo-album-plus');
3945
+ $help = __('When checked, the comments of the photos will also be searched.', 'wp-photo-album-plus');
3946
+ $slug = 'wppa_search_comments' ;
3947
+ $html = wppa_checkbox($slug);
3948
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3949
 
3950
+ $name = __('Photos only', 'wp-photo-album-plus');
3951
+ $desc = __('Search for photos only.', 'wp-photo-album-plus');
3952
+ $help = __('When checked, only photos will be searched for.', 'wp-photo-album-plus');
3953
+ $slug = 'wppa_photos_only';
3954
+ $html = wppa_checkbox($slug);
3955
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
3956
 
3957
+ $name = __('Max albums found', 'wp-photo-album-plus');
3958
+ $desc = __('The maximum number of albums to be displayed.', 'wp-photo-album-plus');
3959
+ $help = '';
3960
+ $slug = 'wppa_max_search_albums';
3961
+ $html = wppa_input($slug, '50px');
3962
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
3963
 
3964
+ $name = __('Max photos found', 'wp-photo-album-plus');
3965
+ $desc = __('The maximum number of photos to be displayed.', 'wp-photo-album-plus');
3966
+ $help = '';
3967
+ $slug = 'wppa_max_search_photos';
3968
+ $html = wppa_input($slug, '50px');
3969
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
3970
 
3971
+ $name = __('Tags OR only', 'wp-photo-album-plus');
3972
+ $desc = __('No and / or buttons', 'wp-photo-album-plus');
3973
+ $help = __('Hide the and/or radiobuttons and do the or method in the multitag widget and shortcode.', 'wp-photo-album-plus');
3974
+ $slug = 'wppa_tags_or_only';
3975
+ $html = wppa_checkbox($slug);
3976
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
3977
 
3978
+ $name = __('Tags add Inverse', 'wp-photo-album-plus');
3979
+ $desc = __('Add a checkbox to invert the selection.', 'wp-photo-album-plus');
3980
+ $help = __('Adds an Invert (NOT) checkbox on the multitag widget and shortcode.', 'wp-photo-album-plus');
3981
+ $slug = 'wppa_tags_not_on';
3982
+ $html = wppa_checkbox($slug);
3983
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
3984
 
3985
+ $name = __('Floating searchtoken', 'wp-photo-album-plus');
3986
+ $desc = __('A match need not start at the first char.', 'wp-photo-album-plus');
3987
+ $help = __('A match is found while searching also when the entered token is somewhere in the middle of a word.', 'wp-photo-album-plus');
3988
+ $slug = 'wppa_wild_front';
3989
+ $html = wppa_checkbox($slug);
3990
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
3991
 
3992
+ $name = __('Search results display', 'wp-photo-album-plus');
3993
+ $desc = __('Select the way the search results should be displayed.', 'wp-photo-album-plus');
3994
+ $help = __('If you select anything different from "Albums and thumbnails", "Photos only" is assumed (item 6).', 'wp-photo-album-plus');
3995
+ $slug = 'wppa_search_display_type';
3996
+ $opts = array( __('Albums and thumbnails', 'wp-photo-album-plus'),
3997
+ __('Slideshow', 'wp-photo-album-plus'),
3998
+ __('Slideonly slideshow', 'wp-photo-album-plus'),
3999
+ __('Albums only', 'wp-photo-album-plus')
4000
+ );
4001
+ $vals = array( 'content', 'slide', 'slideonly', 'albums' );
4002
+ $html = wppa_select( $slug, $opts, $vals);
4003
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
4004
 
4005
+ $name = __('Name max length', 'wp-photo-album-plus');
4006
+ $desc = __('Max length of displayed photonames in supersearch selectionlist', 'wp-photo-album-plus');
4007
+ $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus');
4008
+ $slug = 'wppa_ss_name_max';
4009
+ $html = $html = wppa_input($slug, '50px');
4010
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
4011
 
4012
+ $name = __('Text max length', 'wp-photo-album-plus');
4013
+ $desc = __('Max length of displayed photo text in supersearch selectionlist', 'wp-photo-album-plus');
4014
+ $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus');
4015
+ $slug = 'wppa_ss_text_max';
4016
+ $html = $html = wppa_input($slug, '50px');
4017
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
4018
 
4019
+ $name = __('Search toptext', 'wp-photo-album-plus');
4020
+ $desc = __('The text at the top of the search box.', 'wp-photo-album-plus');
4021
+ $help = __('This is the equivalence of the text you can enter in the widget activation screen to show above the input box, but now for the search shortcode display.', 'wp-photo-album-plus');
4022
+ $help .= '<br />'.__('May contain unfiltered HTML.', 'wp-photo-album-plus');
4023
+ $slug = 'wppa_search_toptext';
4024
+ $html = wppa_textarea($slug, $name);
4025
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
4026
 
4027
+ $name = __('Section search text', 'wp-photo-album-plus');
4028
+ $desc = __('The labeltext at the checkbox for the \'Search in current section\' checkbox.', 'wp-photo-album-plus');
4029
+ $help = ' ';
4030
+ $slug = 'wppa_search_in_section';
4031
+ $html = wppa_input($slug, '300px;');
4032
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
4033
 
4034
+ $name = __('Results search text', 'wp-photo-album-plus');
4035
+ $desc = __('The labeltext at the checkbox for the \'Search in current results\' checkbox.', 'wp-photo-album-plus');
4036
+ $help = ' ';
4037
+ $slug = 'wppa_search_in_results';
4038
+ $html = wppa_input($slug, '300px;');
4039
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
4040
 
4041
+ $name = __('Minimum search token length', 'wp-photo-album-plus');
4042
+ $desc = __('The minmum number of chars in a search request.', 'wp-photo-album-plus');
4043
+ $help = '';
4044
+ $slug = 'wppa_search_min_length';
4045
+ $html = wppa_number($slug, '1', '6');
4046
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
4047
 
4048
+ $name = __('Exclude from search', 'wp-photo-album-plus');
4049
+ $desc = __('Exclude these words from search index.', 'wp-photo-album-plus');
4050
+ $help = __('Enter words separated by commas (,)', 'wp-photo-album-plus');
4051
+ $slug = 'wppa_search_user_void';
4052
+ $html = wppa_input($slug, '90%;');
4053
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
4054
+
4055
+ $name = __('Exclude numbers', 'wp-photo-album-plus');
4056
+ $desc = __('Exclude numbers from search index.', 'wp-photo-album-plus');
4057
+ $help = __('If ticked, photos and albums are not searchable by numbers.', 'wp-photo-album-plus');
4058
+ $slug = 'wppa_search_numbers_void';
4059
+ $html = wppa_checkbox($slug);
4060
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
4061
 
4062
+ $name = __('Ignore slash', 'wp-photo-album-plus');
4063
+ $desc = __('Ignore slash chracter (/).', 'wp-photo-album-plus');
4064
+ $help = '';
4065
+ $slug = 'wppa_index_ignore_slash';
4066
+ $html = wppa_checkbox($slug);
4067
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
4068
 
4069
+ $name = __('Search category box', 'wp-photo-album-plus');
4070
+ $desc = __('Add a category selection box', 'wp-photo-album-plus');
4071
+ $help = '';
4072
+ $slug = 'wppa_search_catbox';
4073
+ $html = wppa_checkbox($slug);
4074
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
4075
 
4076
+ $name = __('Search selection boxes', 'wp-photo-album-plus');
4077
+ $desc = __('Enter number of search selection boxes.', 'wp-photo-album-plus');
4078
+ $help = '';
4079
+ $slug = 'wppa_search_selboxes';
4080
+ $opts = array( '0', '1', '2', '3' );
4081
+ $vals = $opts;
4082
+ $html = wppa_select( $slug, $opts, $vals );
4083
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
4084
 
4085
+ $name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '1');
4086
+ $desc = __('Enter caption text', 'wp-photo-album-plus');
4087
+ $help = '';
4088
+ $slug = 'wppa_search_caption_0';
4089
+ $html = wppa_input($slug, '150px;');
4090
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
4091
 
4092
+ $name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '1');
4093
+ $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
4094
+ $help = '';
4095
+ $slug = 'wppa_search_selbox_0';
4096
+ $html = wppa_textarea($slug);
4097
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
4098
 
4099
+ $name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '2');
4100
+ $desc = __('Enter caption text', 'wp-photo-album-plus');
4101
+ $help = '';
4102
+ $slug = 'wppa_search_caption_1';
4103
+ $html = wppa_input($slug, '150px;');
4104
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help);
4105
 
4106
+ $name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '2');
4107
+ $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
4108
+ $help = '';
4109
+ $slug = 'wppa_search_selbox_1';
4110
+ $html = wppa_textarea($slug);
4111
+ wppa_setting_new($slug, '27', $name, $desc, $html, $help);
4112
 
4113
+ $name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '3');
4114
+ $desc = __('Enter caption text', 'wp-photo-album-plus');
4115
+ $help = '';
4116
+ $slug = 'wppa_search_caption_2';
4117
+ $html = wppa_input($slug, '150px;');
4118
+ wppa_setting_new($slug, '28', $name, $desc, $html, $help);
4119
 
4120
+ $name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '3');
4121
+ $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
4122
+ $help = '';
4123
+ $slug = 'wppa_search_selbox_2';
4124
+ $html = wppa_textarea($slug);
4125
+ wppa_setting_new($slug, '29', $name, $desc, $html, $help);
4126
 
4127
+ $name = __('Extended duplicate removal', 'wp-photo-album-plus');
4128
+ $desc = __('Remove found items from search when name, description and image are identical', 'wp-photo-album-plus');
4129
+ $help = '';
4130
+ $slug = 'wppa_extended_duplicate_remove';
4131
+ $html = wppa_checkbox($slug);
4132
+ wppa_setting_new($slug, '30', $name, $desc, $html, $help);
4133
 
4134
+ $name = __('Search field placeholder', 'wp-photo-album-plus');
4135
+ $desc = __('The text of the placeholder', 'wp-photo-album-plus');
4136
+ $help = '';
4137
+ $slug = 'wppa_search_placeholder';
4138
+ $html = wppa_input($slug, '150px;');
4139
+ wppa_setting_new($slug, '31', $name, $desc, $html, $help);
4140
+
4141
+ $name = __('Search form method', 'wp-photo-album-plus');
4142
+ $desc = __('Either "get" or "post"', 'wp-photo-album-plus');
4143
+ $help = __('May be set to "get" to avoid conflicts with other plugins or certain php versions', 'wp-photo-album-plus');
4144
+ $slug = 'wppa_search_form_method';
4145
+ $html = wppa_select($slug, array('post', 'get'), array('post', 'get'));
4146
+ wppa_setting_new($slug, '32', $name, $desc, $html, $help);
4147
+
4148
+ $name = __('Use wppa search form', 'wp-photo-album-plus');
4149
+ $desc = __('Uses wppa specific form', 'wp-photo-album-plus');
4150
+ $help = __('You may need to enable this when other (search) plugins break the wppa search mechanism');
4151
+ $slug = 'wppa_use_wppa_search_form';
4152
+ $onch = '';
4153
+ $html = wppa_checkbox($slug, $onch);
4154
+ wppa_setting_new($slug, '33', $name, $desc, $html, $help);
4155
 
4156
+ $name = __('List Index', 'wp-photo-album-plus');
4157
+ $desc = __('Show the content of the index table.', 'wp-photo-album-plus');
4158
+ $help = '';
4159
+ $slug1 = 'wppa_list_index_display_start';
4160
+ $slug2 = 'wppa_list_index';
4161
+ $html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus').'&nbsp;</small>'.wppa_input( $slug1, '150px' );
4162
+ $html2 = wppa_popup_button( $slug2, '30' );
4163
+ $html = $html1 . '<span style="float:left;" >&nbsp;</span>' . $html2;
4164
+ wppa_setting_new(false, '34', $name, $desc, $html, $help);
4165
+
4166
+ wppa_setting_box_footer_new();
4167
  }
4168
  }
4169
  break;
4170
 
4171
  case 'widget': {
4172
  // General widget size settings
 
4173
  {
4174
+ $desc = $wppa_subtab_names[$tab]['1'];
4175
+ wppa_setting_tab_description($desc);
4176
+ wppa_setting_box_header_new($tab);
4177
 
4178
+ $name = __('Widget width', 'wp-photo-album-plus');
4179
+ $desc = __('The useable width within widgets.', 'wp-photo-album-plus');
4180
+ $help = __('Widget width for photo of the day, general purpose (default), slideshow (default) and upload widgets.', 'wp-photo-album-plus');
4181
+ $slug = 'wppa_widget_width';
4182
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4183
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4184
 
4185
+ $name = __('TopTen count', 'wp-photo-album-plus');
4186
+ $desc = __('Number of photos in TopTen widget.', 'wp-photo-album-plus');
4187
+ $help = __('Enter the maximum number of rated photos in the TopTen widget.', 'wp-photo-album-plus');
4188
+ $slug1 = 'wppa_topten_count';
4189
+ $html1 = wppa_input($slug1, '40px', '', __('photos', 'wp-photo-album-plus'));
4190
+ $slug2 = 'wppa_topten_non_zero';
4191
+ $html2 = wppa_checkbox($slug2).__('Non zero only', 'wp-photo-album-plus');
4192
+ wppa_setting_new($slug1, '2', $name, $desc, $html1.$html2, $help);
4193
+
4194
+ $name = __('TopTen size', 'wp-photo-album-plus');
4195
+ $desc = __('Size of thumbnails in TopTen widget.', 'wp-photo-album-plus');
4196
+ $help = __('Enter the size for the mini photos in the TopTen widget.', 'wp-photo-album-plus');
4197
+ $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4198
+ $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4199
+ $slug = 'wppa_topten_size';
4200
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4201
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4202
 
4203
+ $name = __('Comment count', 'wp-photo-album-plus');
4204
+ $desc = __('Number of entries in Comment widget.', 'wp-photo-album-plus');
4205
+ $help = __('Enter the maximum number of entries in the Comment widget.', 'wp-photo-album-plus');
4206
+ $slug = 'wppa_comten_count';
4207
+ $html = wppa_input($slug, '40px', '', __('entries', 'wp-photo-album-plus'));
4208
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
4209
 
4210
+ $name = __('Comment size', 'wp-photo-album-plus');
4211
+ $desc = __('Size of thumbnails in Comment widget.', 'wp-photo-album-plus');
4212
+ $help = __('Enter the size for the mini photos in the Comment widget.', 'wp-photo-album-plus');
4213
+ $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4214
+ $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4215
+ $slug = 'wppa_comten_size';
4216
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4217
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
4218
 
4219
+ $name = __('Thumbnail count', 'wp-photo-album-plus');
4220
+ $desc = __('Number of photos in Thumbnail widget.', 'wp-photo-album-plus');
4221
+ $help = (__('Enter the maximum number of rated photos in the Thumbnail widget.', 'wp-photo-album-plus'));
4222
+ $slug = 'wppa_thumbnail_widget_count';
4223
+ $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
4224
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4225
 
4226
+ $name = __('Thumbnail widget size', 'wp-photo-album-plus');
4227
+ $desc = __('Size of thumbnails in Thumbnail widget.', 'wp-photo-album-plus');
4228
+ $help = __('Enter the size for the mini photos in the Thumbnail widget.', 'wp-photo-album-plus');
4229
+ $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4230
+ $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4231
+ $slug = 'wppa_thumbnail_widget_size';
4232
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4233
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
4234
 
4235
+ $name = __('LasTen count', 'wp-photo-album-plus');
4236
+ $desc = __('Number of photos in Last Ten widget.', 'wp-photo-album-plus');
4237
+ $help = __('Enter the maximum number of photos in the LasTen widget.', 'wp-photo-album-plus');
4238
+ $slug = 'wppa_lasten_count';
4239
+ $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
4240
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
4241
 
4242
+ $name = __('LasTen size', 'wp-photo-album-plus');
4243
+ $desc = __('Size of thumbnails in Last Ten widget.', 'wp-photo-album-plus');
4244
+ $help = __('Enter the size for the mini photos in the LasTen widget.', 'wp-photo-album-plus');
4245
+ $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4246
+ $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4247
+ $slug = 'wppa_lasten_size';
4248
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4249
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
4250
 
4251
+ $name = __('Album widget count', 'wp-photo-album-plus');
4252
+ $desc = __('Number of albums in Album widget.', 'wp-photo-album-plus');
4253
+ $help = __('Enter the maximum number of thumbnail photos of albums in the Album widget.', 'wp-photo-album-plus');
4254
+ $slug = 'wppa_album_widget_count';
4255
+ $html = wppa_input($slug, '40px', '', __('albums', 'wp-photo-album-plus'));
4256
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
4257
 
4258
+ $name = __('Album widget size', 'wp-photo-album-plus');
4259
+ $desc = __('Size of thumbnails in Album widget.', 'wp-photo-album-plus');
4260
+ $help = __('Enter the size for the mini photos in the Album widget.', 'wp-photo-album-plus');
4261
+ $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4262
+ $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4263
+ $slug = 'wppa_album_widget_size';
4264
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4265
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
4266
 
4267
+ $name = __('FeaTen count', 'wp-photo-album-plus');
4268
+ $desc = __('Number of photos in Featured Ten widget.', 'wp-photo-album-plus');
4269
+ $help = __('Enter the maximum number of photos in the FeaTen widget.', 'wp-photo-album-plus');
4270
+ $slug = 'wppa_featen_count';
4271
+ $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
4272
+ $clas = '';
4273
+ $tags = 'count,widget';
4274
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
4275
 
4276
+ $name = __('FeaTen size', 'wp-photo-album-plus');
4277
+ $desc = __('Size of thumbnails in Featured Ten widget.', 'wp-photo-album-plus');
4278
+ $help = __('Enter the size for the mini photos in the FeaTen widget.', 'wp-photo-album-plus');
4279
+ $help .= '<br />'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
4280
+ $help .= '<br />'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
4281
+ $slug = 'wppa_featen_size';
4282
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4283
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
4284
 
4285
+ $name = __('Tagcloud min size', 'wp-photo-album-plus');
4286
+ $desc = __('Minimal fontsize in tagclouds', 'wp-photo-album-plus');
4287
+ $help = '';
4288
+ $slug = 'wppa_tagcloud_min';
4289
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4290
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
4291
 
4292
+ $name = __('Tagcloud max size', 'wp-photo-album-plus');
4293
+ $desc = __('Maximal fontsize in tagclouds', 'wp-photo-album-plus');
4294
+ $help = '';
4295
+ $slug = 'wppa_tagcloud_max';
4296
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
4297
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
4298
 
4299
+ $name = __('Tagcloud character sizing', 'wp-photo-album-plus');
4300
+ $desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
4301
+ $help = '';
4302
+ $slug = 'wppa_tagcloud_formula';
4303
+ $opts = array('linear', 'quadratic', 'cubic');
4304
+ $vals = array('linear', 'quadratic', 'cubic');
4305
+ $html = wppa_select($slug, $opts, $vals);
4306
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
4307
 
4308
+ wppa_setting_box_footer_new();
4309
  }
4310
  // Visibility settings
 
4311
  {
4312
+ $desc = $wppa_subtab_names[$tab]['2'];
4313
+ wppa_setting_tab_description($desc);
4314
+ wppa_setting_box_header_new($tab);
4315
 
4316
+ $name = __('Big Browse Buttons in widget', 'wp-photo-album-plus');
4317
+ $desc = __('Enable invisible browsing buttons in widget slideshows.', 'wp-photo-album-plus');
4318
+ $help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus');
4319
+ $help .= '<br />'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
4320
+ $help .= '<br />'.wppa_see_also( 'slide', '1', '2' );
4321
+ $slug = 'wppa_show_bbb_widget';
4322
+ $html = wppa_checkbox($slug);
4323
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4324
 
4325
+ $name = __('Ugly Browse Buttons in widget', 'wp-photo-album-plus');
4326
+ $desc = __('Enable ugly browsing buttons in widget slideshows.', 'wp-photo-album-plus');
4327
+ $help = __('If checked, the fullsize image is covered by browse buttons.', 'wp-photo-album-plus');
4328
+ $help .= '<br />'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
4329
+ $help .= '<br />'.wppa_see_also( 'slide', '1', '2' );
4330
+ $slug = 'wppa_show_ubb_widget';
4331
+ $html = wppa_checkbox($slug);
4332
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4333
 
4334
+ $name = __('Album widget tooltip', 'wp-photo-album-plus');
4335
+ $desc = __('Show the album description on hoovering thumbnail in album widget', 'wp-photo-album-plus');
4336
+ $help = '';
4337
+ $slug = 'wppa_show_albwidget_tooltip';
4338
+ $html = wppa_checkbox($slug);
4339
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4340
 
4341
+ wppa_setting_box_footer_new();
4342
  }
4343
  // QR Code widget settings
 
4344
  {
4345
+ $desc = $wppa_subtab_names[$tab]['3'];
4346
+ wppa_setting_tab_description($desc);
4347
+ wppa_setting_box_header_new($tab);
4348
 
4349
+ $name = __('QR Code widget size', 'wp-photo-album-plus');
4350
+ $desc = __('The size of the QR code display.', 'wp-photo-album-plus');
4351
+ $help = '';
4352
+ $slug = 'wppa_qr_size';
4353
+ $html = wppa_input($slug, '50px', '', __('pixels', 'wp-photo-album-plus'));
4354
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4355
 
4356
+ $name = __('QR color', 'wp-photo-album-plus');
4357
+ $desc = __('The display color of the qr code (dark)', 'wp-photo-album-plus');
4358
+ $help = __('This color MUST be given in hexadecimal format!', 'wp-photo-album-plus');
4359
+ $slug = 'wppa_qr_color';
4360
+ $html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
4361
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4362
 
4363
+ $name = __('QR background color', 'wp-photo-album-plus');
4364
+ $desc = __('The background color of the qr code (light)', 'wp-photo-album-plus');
4365
+ $help = '';
4366
+ $slug = 'wppa_qr_bgcolor';
4367
+ $html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
4368
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4369
 
4370
+ $name = __('QR cache', 'wp-photo-album-plus');
4371
+ $desc = __('Enable caching QR codes', 'wp-photo-album-plus') . ' ' . sprintf( __('So far %d cache hits, %d miss', 'wp-photo-album-plus'), wppa_get_option('wppa_qr_cache_hits', '0'), wppa_get_option('wppa_qr_cache_miss', '0'));
4372
+ $help = __('Enable this to avoid DoS on heavy loads on the qrserver', 'wp-photo-album-plus'); $slug = 'wppa_qr_cache';
4373
+ $html = wppa_checkbox($slug);
4374
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
4375
 
4376
+ wppa_setting_box_footer_new();
4377
  }
4378
  }
4379
  break;
4380
 
4381
  case 'links': {
4382
+ // System Links configuration
 
4383
  {
4384
+ $desc = $wppa_subtab_names[$tab]['1'];
4385
+ wppa_setting_tab_description($desc);
4386
+ wppa_setting_box_header_new($tab);
4387
+
4388
+ $name = __('Photo names in urls', 'wp-photo-album-plus');
4389
+ $desc = __('Display photo names in urls.', 'wp-photo-album-plus');
4390
+ $help = __('Urls to wppa+ displays will contain photonames instead of numbers.', 'wp-photo-album-plus');
4391
+ $help .= '<br />'.__('It is your responsibility to avoid duplicate names of photos in the same album.', 'wp-photo-album-plus');
4392
+ $slug = 'wppa_use_photo_names_in_urls';
4393
+ $html = wppa_checkbox($slug);
4394
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4395
+
4396
+ $name = __('Album names in urls', 'wp-photo-album-plus');
4397
+ $desc = __('Display album names in urls.', 'wp-photo-album-plus');
4398
+ $help = __('Urls to wppa+ displays will contain albumnames instead of numbers.', 'wp-photo-album-plus');
4399
+ $help .= '<br />'.__('It is your responsibility to avoid duplicate names of albums in the system.', 'wp-photo-album-plus');
4400
+ $slug = 'wppa_use_album_names_in_urls';
4401
+ $html = wppa_checkbox($slug);
4402
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4403
+
4404
+ $name = __('Use short query args', 'wp-photo-album-plus');
4405
+ $desc = __('Use &album=... &photo=...', 'wp-photo-album-plus');
4406
+ $help = __('Urls to wppa+ displays will contain &album=... &photo=... instead of &wppa-album=... &wppa-photo=...', 'wp-photo-album-plus');
4407
+ $help .= '<br />'.__('Use this setting only when there are no conflicts with other plugins that may interprete arguments like &album= etc.', 'wp-photo-album-plus');
4408
+ $slug = 'wppa_use_short_qargs';
4409
+ $html = wppa_checkbox($slug);
4410
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4411
+
4412
+ $name = __('Enable pretty links', 'wp-photo-album-plus');
4413
+ $desc = __('Enable the generation and understanding of pretty links.', 'wp-photo-album-plus');
4414
+ $help = __('If checked, links to social media and the qr code will have "/token1/token2/" etc instead of "&arg1=..&arg2=.." etc.', 'wp-photo-album-plus');
4415
+ $help .= '<br />'.__('These types of links will be interpreted and cause a redirection on entering.', 'wp-photo-album-plus');
4416
+ $help .= '<br />'.__('It is recommended to check this box. It shortens links dramatically and simplifies qr codes.', 'wp-photo-album-plus');
4417
+ $help .= '<br />'.__('However, you may encounter conflicts with themes and/or other plugins, so test it throughly!', 'wp-photo-album-plus');
4418
+ $help .= '<br />'.__('Photo names in urls must be UNchecked for this setting to work!', 'wp-photo-album-plus');
4419
+ $help .= '<br />'.wppa_see_also( 'links', '1', '1' );
4420
+ $slug = 'wppa_use_pretty_links';
4421
+ $opts = array( __( 'None', 'wp-photo-album-plus' ),
4422
+ __( 'Classic', 'wp-photo-album-plus' ),
4423
+ __( 'Compressed', 'wp-photo-album-plus' ),
4424
  );
4425
+ $vals = array( '-none-', 'classic', 'compressed' );
4426
+ $html = wppa_select($slug, $opts, $vals );
4427
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4428
 
4429
+ $name = __('Enable encrypted links', 'wp-photo-album-plus');
4430
+ $desc = __('Encrypt album and photo ids in links.', 'wp-photo-album-plus');
4431
+ $help = '';
4432
+ $slug = 'wppa_use_encrypted_links';
4433
+ $onch = 'wppaRefreshAfter();';
4434
+ $html = wppa_checkbox($slug, $onch);
4435
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
4436
+
4437
+ $name = __('Refuse unencrypted', 'wp-photo-album-plus');
4438
+ $desc = __('When encrypted is enabled, refuse unencrypted urls.', 'wp-photo-album-plus');
4439
+ $help = '';
4440
+ $slug = 'wppa_refuse_unencrypted';
4441
+ $html = wppa_checkbox($slug);
4442
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
4443
+
4444
+ wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4445
  }
4446
+ // Links from standard images
4447
+ {
4448
+ $desc = $wppa_subtab_names[$tab]['2'];
4449
+ wppa_setting_tab_description($desc);
4450
+ $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
4451
+ __('Name', 'wp-photo-album-plus') => 'auto;',
4452
+ __('Description', 'wp-photo-album-plus') => 'auto;',
4453
+ __('Link type', 'wp-photo-album-plus') => 'auto;',
4454
+ __('Landing page', 'wp-photo-album-plus') => 'auto;',
4455
+ __('New tab', 'wp-photo-album-plus') => '80px;',
4456
+ __('PSO', 'wp-photo-album-plus') => '80px;',
4457
+ __('Help', 'wp-photo-album-plus') => '24px;',
4458
+ );
4459
+ wppa_setting_box_header_new($tab, $coldef);
4460
 
4461
+ $name = __('Cover Image', 'wp-photo-album-plus');
4462
+ $desc = __('The link from the cover image of an album.', 'wp-photo-album-plus');
4463
+ $help = __('Select the type of link the coverphoto points to.', 'wp-photo-album-plus');
4464
+ $help .= '<br />'.__('The link from the album title can be configured on the Edit Album page.', 'wp-photo-album-plus');
4465
+ $help .= '<br />'.__('This link will be used for the photo also if you select: same as title.', 'wp-photo-album-plus');
4466
+ $help .= '<br />'.__('If you specify New Tab on this line, all links from the cover will open a new tab,', 'wp-photo-album-plus');
4467
+ $slug1 = 'wppa_coverimg_linktype';
4468
+ $slug2 = 'wppa_coverimg_linkpage';
4469
+ wppa_verify_page($slug2);
4470
+ $slug3 = 'wppa_coverimg_blank';
4471
+ $slug4 = 'wppa_coverimg_overrule';
4472
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4473
+ $opts = array(
4474
+ __('no link at all.', 'wp-photo-album-plus'),
4475
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4476
+ __('same as title.', 'wp-photo-album-plus'),
4477
+ __('lightbox.', 'wp-photo-album-plus'),
4478
+ __('a slideshow starting at the photo', 'wp-photo-album-plus')
4479
+ );
4480
+ $vals = array(
4481
+ 'none',
4482
+ 'file',
4483
+ 'same',
4484
+ 'lightbox',
4485
+ 'slideshowstartatimage'
4486
+ );
4487
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4488
+ $npag = wppa_need_page($slug1);
4489
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4490
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4491
+ $html4 = wppa_checkbox($slug4);
4492
+ $html = array($html1, $html2, $html3, $html4);
4493
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
 
4494
 
4495
+ $name = __('Thumbnail', 'wp-photo-album-plus');
4496
+ $desc = __('Thumbnail link.', 'wp-photo-album-plus');
4497
+ $help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
4498
+ $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4499
+ $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4500
+ $slug1 = 'wppa_thumb_linktype';
4501
+ $slug2 = 'wppa_thumb_linkpage';
4502
+ wppa_verify_page($slug2);
4503
+ $slug3 = 'wppa_thumb_blank';
4504
+ $slug4 = 'wppa_thumb_overrule';
4505
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4506
+ $opts = array(
4507
+ __('no link at all.', 'wp-photo-album-plus'),
4508
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4509
+ __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4510
+ __('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
4511
+ __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4512
+ __('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
4513
+ __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4514
+ __('a plain page without a querystring.', 'wp-photo-album-plus'),
4515
+ __('lightbox.', 'wp-photo-album-plus')
4516
+ );
4517
+ $vals = array(
4518
+ 'none',
4519
+ 'file',
4520
+ 'photo',
4521
+ 'slidealbum',
4522
+ 'single',
4523
+ 'slphoto',
4524
+ 'fullpopup',
4525
+ 'plainpage',
4526
+ 'lightbox'
4527
+ );
4528
+ if ( wppa_switch( 'auto_page') ) {
4529
+ $opts[] = __('Auto Page', 'wp-photo-album-plus');
4530
+ $vals[] = 'autopage';
4531
+ }
4532
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4533
+ $npag = wppa_need_page($slug1);
4534
+ $html2 = $npag ? wppa_select($slug2, $opts_page_post, $vals_page_post) : '';
4535
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4536
+ $html4 = wppa_checkbox($slug4);
4537
+ $html = array($html1, $html2, $html3, $html4);
4538
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4539
 
4540
+ $name = __('Sphoto', 'wp-photo-album-plus');
4541
+ $desc = __('Single photo link.', 'wp-photo-album-plus');
4542
+ $help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
4543
+ $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4544
+ $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4545
+ $slug1 = 'wppa_sphoto_linktype';
4546
+ $slug2 = 'wppa_sphoto_linkpage';
4547
+ wppa_verify_page($slug2);
4548
+ $slug3 = 'wppa_sphoto_blank';
4549
+ $slug4 = 'wppa_sphoto_overrule';
4550
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4551
+ $opts = array(
4552
+ __('no link at all.', 'wp-photo-album-plus'),
4553
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4554
+ __('the content of the album.', 'wp-photo-album-plus'),
4555
+ __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4556
+ __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4557
+ __('lightbox.', 'wp-photo-album-plus')
4558
+ );
4559
+ $vals = array(
4560
+ 'none',
4561
+ 'file',
4562
+ 'album',
4563
+ 'photo',
4564
+ 'single',
4565
+ 'lightbox'
4566
+ );
4567
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4568
+ $npag = wppa_need_page($slug1);
4569
+ $html2 = $npag ? wppa_select($slug2, $opts_page, $vals_page) : '';
4570
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4571
+ $html4 = wppa_checkbox($slug4);
4572
+ $html = array($html1, $html2, $html3, $html4);
4573
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4574
 
4575
+ $name = __('Mphoto', 'wp-photo-album-plus');
4576
+ $desc = __('Media-like (like WP photo with caption) photo link.', 'wp-photo-album-plus');
4577
+ $help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
4578
+ $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4579
+ $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4580
+ $slug1 = 'wppa_mphoto_linktype';
4581
+ $slug2 = 'wppa_mphoto_linkpage';
4582
+ wppa_verify_page($slug2);
4583
+ $slug3 = 'wppa_mphoto_blank';
4584
+ $slug4 = 'wppa_mphoto_overrule';
4585
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4586
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4587
+ $npag = wppa_need_page($slug1);
4588
+ $html2 = $npag ? wppa_select($slug2, $opts_page, $vals_page) : '';
4589
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4590
+ $html4 = wppa_checkbox($slug4);
4591
+ $html = array($html1, $html2, $html3, $html4);
4592
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4593
 
4594
+ $name = __('Xphoto', 'wp-photo-album-plus');
4595
+ $desc = __('Media-like (like WP photo with - extended - caption) photo link.', 'wp-photo-album-plus');
4596
+ $help = __('Select the type of link you want, or no link at all, to act on a photo in the style of a wp photo with - an extended - caption.', 'wp-photo-album-plus');
4597
+ $help .= '<br />'.__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wp-photo-album-plus');
4598
+ $help .= '<br />'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
4599
+ $slug1 = 'wppa_xphoto_linktype';
4600
+ $slug2 = 'wppa_xphoto_linkpage';
4601
+ wppa_verify_page($slug2);
4602
+ $slug3 = 'wppa_xphoto_blank';
4603
+ $slug4 = 'wppa_xphoto_overrule';
4604
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4605
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4606
+ $npag = wppa_need_page($slug1);
4607
+ $html2 = $npag ? wppa_select($slug2, $opts_page, $vals_page) : '';
4608
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4609
+ $html4 = wppa_checkbox($slug4);
4610
+ $html = array($html1, $html2, $html3, $html4);
4611
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
 
 
4612
 
4613
+ $name = __('Slideshow', 'wp-photo-album-plus');
4614
+ $desc = __('Slideshow fullsize link', 'wp-photo-album-plus');
4615
+ $help = __('You can overrule lightbox but not big browse buttons with the photo specifc link.', 'wp-photo-album-plus');
4616
+ $help .= '\n\n* '.__('fullsize slideshow can only be set by the WPPA_SET shortcode.', 'wp-photo-album-plus');
4617
+ $slug1 = 'wppa_slideshow_linktype';
4618
+ $slug2 = 'wppa_slideshow_linkpage';
4619
+ wppa_verify_page($slug2);
4620
+ $slug3 = 'wppa_slideshow_blank';
4621
+ $slug4 = 'wppa_slideshow_overrule';
4622
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4623
+ $opts = array(
4624
+ __('no link at all.', 'wp-photo-album-plus'),
4625
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4626
+ __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4627
+ __('lightbox.', 'wp-photo-album-plus'),
4628
+ __('lightbox single photos.', 'wp-photo-album-plus'),
4629
+ __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4630
+ __('the thumbnails.', 'wp-photo-album-plus'),
4631
+ __('fullsize slideshow', 'wp-photo-album-plus') . '*|',
4632
+ );
4633
+ $vals = array(
4634
+ 'none',
4635
+ 'file',
4636
+ 'single',
4637
+ 'lightbox',
4638
+ 'lightboxsingle',
4639
+ 'fullpopup',
4640
+ 'thumbs',
4641
+ 'slide',
4642
+ );
4643
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4644
+ $npag = wppa_need_page($slug1);
4645
+ $html2 = $npag ? wppa_select($slug2, $opts_page_post, $vals_page_post) : '';
4646
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4647
+ $html4 = wppa_checkbox($slug4);
4648
+ $html = array($html1, $html2, $html3, $html4);
4649
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4650
+
4651
+ $name = __('Film linktype', 'wp-photo-album-plus');
4652
+ $desc = __('Direct access goto image in:', 'wp-photo-album-plus');
4653
+ $help = __('Select the action to be taken when the user clicks on a filmstrip image.', 'wp-photo-album-plus');
4654
+ $slug1 = 'wppa_film_linktype';
4655
+ $slug3 = 'wppa_film_blank';
4656
+ $slug4 = 'wppa_film_overrule';
4657
+ $opts = array(
4658
+ __('slideshow window', 'wp-photo-album-plus'),
4659
+ __('lightbox overlay', 'wp-photo-album-plus')
4660
+ );
4661
+ $vals = array(
4662
+ 'slideshow',
4663
+ 'lightbox'
4664
+ );
4665
+ $html1 = wppa_select($slug1, $opts, $vals);
4666
+ $html2 = '';
4667
+ $html3 = wppa_checkbox($slug3);
4668
+ $html4 = wppa_checkbox($slug4);
4669
+ $html = array($html1, $html2, $html3, $html4);
4670
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
4671
+
4672
+ wppa_setting_box_footer_new();
4673
  }
4674
  // Links from items and images in widgets
 
4675
  {
4676
+ $desc = $wppa_subtab_names[$tab]['3'];
4677
+ wppa_setting_tab_description($desc);
4678
+ wppa_setting_box_header_new($tab, $coldef);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4679
 
4680
+ $name = __('PotdWidget', 'wp-photo-album-plus');
4681
+ $desc = __('Photo Of The Day widget link.', 'wp-photo-album-plus');
4682
+ $help = __('Select the type of link the photo of the day points to.', 'wp-photo-album-plus');
4683
+ $help .= '<br />'.__('If you select \'defined on widget admin page\' you can manually enter a link and title on the Photo of the day Widget Admin page.', 'wp-photo-album-plus');
4684
+ $slug1 = 'wppa_potd_linktype';
4685
+ $slug2 = 'wppa_potd_linkpage';
4686
+ wppa_verify_page($slug2);
4687
+ $slug3 = 'wppa_potd_blank';
4688
+ $slug4 = 'wppa_potdwidget_overrule';
4689
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4690
+ $opts = array(
4691
+ __('no link at all.', 'wp-photo-album-plus'),
4692
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4693
+ __('defined on widget admin page.', 'wp-photo-album-plus'),
4694
+ __('the content of the album.', 'wp-photo-album-plus'),
4695
+ __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4696
+ __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4697
+ __('a plain page without a querystring.', 'wp-photo-album-plus'),
4698
+ __('lightbox.', 'wp-photo-album-plus')
4699
+ );
4700
+ $vals = array(
4701
+ 'none',
4702
+ 'file',
4703
+ 'custom',
4704
+ 'album',
4705
+ 'photo',
4706
+ 'single',
4707
+ 'plainpage',
4708
+ 'lightbox'
4709
+ );
4710
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();' );
4711
+ $npag = wppa_need_page($slug1);
4712
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4713
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4714
+ $html4 = wppa_checkbox($slug4);
4715
+ $html = array($html1, $html2, $html3, $html4);
4716
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
4717
 
4718
+ $name = __('SlideWidget', 'wp-photo-album-plus');
4719
+ $desc = __('Slideshow widget photo link.', 'wp-photo-album-plus');
4720
+ $help = __('Select the type of link the slideshow photos point to.', 'wp-photo-album-plus');
4721
+ $slug1 = 'wppa_slideonly_widget_linktype';
4722
+ $slug2 = 'wppa_slideonly_widget_linkpage';
4723
+ wppa_verify_page($slug2);
4724
+ $slug3 = 'wppa_sswidget_blank';
4725
+ $slug4 = 'wppa_sswidget_overrule';
4726
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4727
+ $opts = array(
4728
+ __('no link at all.', 'wp-photo-album-plus'),
4729
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4730
+ __('defined at widget activation.', 'wp-photo-album-plus'),
4731
+ __('the content of the album.', 'wp-photo-album-plus'),
4732
+ __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4733
+ __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4734
+ __('a plain page without a querystring.', 'wp-photo-album-plus'),
4735
+ __('lightbox.', 'wp-photo-album-plus')
4736
+ );
4737
+ $vals = array(
4738
+ 'none',
4739
+ 'file',
4740
+ 'widget',
4741
+ 'album',
4742
+ 'photo',
4743
+ 'single',
4744
+ 'plainpage',
4745
+ 'lightbox'
4746
+ );
4747
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4748
+ $npag = wppa_need_page($slug1);
4749
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4750
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4751
+ $html4 = wppa_checkbox($slug4);
4752
+ $html = array($html1, $html2, $html3, $html4);
4753
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4754
 
4755
+ $name = __('Album widget', 'wp-photo-album-plus');
4756
+ $desc = __('Album widget thumbnail link', 'wp-photo-album-plus');
4757
+ $help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
4758
+ '<br />' .
4759
+ __('If you tick the ASO box, the album title link settings overrule these settings, but only when the album link page or post is not set to --- the same page or post ---', 'wp-photo-album-plus');
4760
+ $slug1 = 'wppa_album_widget_linktype';
4761
+ $slug2 = 'wppa_album_widget_linkpage';
4762
+ wppa_verify_page($slug2);
4763
+ $slug3 = 'wppa_album_widget_blank';
4764
+ $slug4 = 'wppa_album_widget_overrule';
4765
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4766
+ $opts = array(
4767
+ __('subalbums and thumbnails.', 'wp-photo-album-plus'),
4768
+ __('slideshow', 'wp-photo-album-plus'),
4769
+ __('a plain page without a querystring.', 'wp-photo-album-plus'),
4770
+ __('lightbox', 'wp-photo-album-plus'),
4771
+ );
4772
+ $vals = array(
4773
+ 'content',
4774
+ 'slide',
4775
+ 'plainpage',
4776
+ 'lightbox',
4777
+ );
4778
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4779
+ $npag = wppa_need_page($slug1);
4780
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4781
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4782
+ $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO&nbsp;</span>'.wppa_checkbox($slug4);
4783
+ $html = array($html1, $html2, $html3, $html4);
4784
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
 
 
4785
 
4786
+ $name = __('Album navigator widget', 'wp-photo-album-plus');
4787
+ $desc = __('Album navigator widget link', 'wp-photo-album-plus');
4788
+ $help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
4789
+ '<br />' .
4790
+ __('If you tick the ASO box, the album title link settings overrule these settings, but only when the album link page or post is not set to --- the same page or post ---', 'wp-photo-album-plus');
4791
+ $slug1 = 'wppa_album_navigator_widget_linktype';
4792
+ $slug2 = 'wppa_album_navigator_widget_linkpage';
4793
+ wppa_verify_page($slug2);
4794
+ $slug3 = 'wppa_album_navigator_widget_blank';
4795
+ $slug4 = 'wppa_album_navigator_widget_overrule';
4796
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4797
+ $opts = array(
4798
+ __('thumbnails', 'wp-photo-album-plus'),
4799
+ __('slideshow', 'wp-photo-album-plus'),
4800
+ __('subalbums and thumbnails', 'wp-photo-album-plus'),
4801
+ __('a plain page without a querystring.', 'wp-photo-album-plus'),
4802
+ __('lightbox', 'wp-photo-album-plus'),
4803
+ );
4804
+ $vals = array(
4805
+ 'thumbs',
4806
+ 'slide',
4807
+ 'content',
4808
+ 'plainpage',
4809
+ 'lightbox',
4810
+ );
4811
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4812
+ $npag = wppa_need_page($slug1);
4813
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4814
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4815
+ $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO&nbsp;</span>'.wppa_checkbox($slug4);
4816
+ $html = array($html1, $html2, $html3, $html4);
4817
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
 
 
 
4818
 
4819
+ $name = __('ThumbnailWidget', 'wp-photo-album-plus');
4820
+ $desc = __('Thumbnail widget photo link.', 'wp-photo-album-plus');
4821
+ $help = __('Select the type of link the thumbnail photos point to.', 'wp-photo-album-plus');
4822
+ $slug1 = 'wppa_thumbnail_widget_linktype';
4823
+ $slug2 = 'wppa_thumbnail_widget_linkpage';
4824
+ wppa_verify_page($slug2);
4825
+ $slug3 = 'wppa_thumbnail_widget_blank';
4826
+ $slug4 = 'wppa_thumbnail_widget_overrule';
4827
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4828
+ $opts = array(
4829
+ __('no link at all.', 'wp-photo-album-plus'),
4830
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4831
+ __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4832
+ __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4833
+ __('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
4834
+ __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4835
+ __('a plain page without a querystring.', 'wp-photo-album-plus'),
4836
+ __('lightbox.', 'wp-photo-album-plus')
4837
+ );
4838
+ $vals = array(
4839
+ 'none',
4840
+ 'file',
4841
+ 'photo',
4842
+ 'single',
4843
+ 'slphoto',
4844
+ 'fullpopup',
4845
+ 'plainpage',
4846
+ 'lightbox'
4847
+ );
4848
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4849
+ $npag = wppa_need_page($slug1);
4850
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';;
4851
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4852
+ $html4 = wppa_checkbox($slug4);
4853
+ $html = array($html1, $html2, $html3, $html4);
4854
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
 
 
 
 
 
 
4855
 
4856
+ $name = __('TopTenWidget', 'wp-photo-album-plus');
4857
+ $desc = __('TopTen widget photo link.', 'wp-photo-album-plus');
4858
+ $help = __('Select the type of link the top ten photos point to.', 'wp-photo-album-plus');
4859
+ $slug1 = 'wppa_topten_widget_linktype';
4860
+ $slug2 = 'wppa_topten_widget_linkpage';
4861
+ wppa_verify_page($slug2);
4862
+ $slug3 = 'wppa_topten_blank';
4863
+ $slug4 = 'wppa_topten_overrule';
4864
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4865
+ $opts = array(
4866
+ __('no link at all.', 'wp-photo-album-plus'),
4867
+ __('the plain photo (file).', 'wp-photo-album-plus'),
4868
+ __('the content of the virtual topten album.', 'wp-photo-album-plus'),
4869
+ __('the content of the thumbnails album.', 'wp-photo-album-plus'),
4870
+ __('the full size photo in a slideshow.', 'wp-photo-album-plus'),
4871
+ __('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
4872
+ __('the fullsize photo on its own.', 'wp-photo-album-plus'),
4873
+ __('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
4874
+ __('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
4875
+ __('a plain page without a querystring.', 'wp-photo-album-plus'),
4876
+ __('lightbox.', 'wp-photo-album-plus')
4877
+ );
4878
+ $vals = array(
4879
+ 'none',
4880
+ 'file',
4881
+ 'album',
4882
+ 'thumbalbum',
4883
+ 'photo',
4884
+ 'slidealbum',
4885
+ 'single',
4886
+ 'slphoto',
4887
+ 'fullpopup',
4888
+ 'plainpage',
4889
+ 'lightbox'
4890
+ );
4891
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4892
+ $npag = wppa_need_page($slug1);
4893
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4894
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4895
+ $html4 = wppa_checkbox($slug4);
4896
+ $html = array($html1, $html2, $html3, $html4);
4897
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4898
 
4899
+ $name = __('TopTenWidget', 'wp-photo-album-plus');
4900
+ $desc = __('TopTen widget album linkpage.', 'wp-photo-album-plus');
4901
+ $help = __('Select the linkpage the top ten albums point to.', 'wp-photo-album-plus');
4902
+ $slug1 = '';
4903
+ $slug2 = 'wppa_topten_widget_album_linkpage';
4904
+ wppa_verify_page($slug2);
4905
+ $slug3 = ''; // 'wppa_topten_blank';
4906
+ $slug4 = ''; // 'wppa_topten_overrule';
4907
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4908
+ $html1 = '';
4909
+ $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
4910
+ $html3 = '';
4911
+ $html4 = '';
4912
+ $html = array($html1, $html2, $html3, $html4);
4913
+ $clas = 'wppa_rating';
4914
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
4915
 
4916
+ $name = __('LasTenWidget', 'wp-photo-album-plus');
4917
+ $desc = __('Last Ten widget photo link.', 'wp-photo-album-plus');
4918
+ $help = __('Select the type of link the last ten photos point to.', 'wp-photo-album-plus');
4919
+ $slug1 = 'wppa_lasten_widget_linktype';
4920
+ $slug2 = 'wppa_lasten_widget_linkpage';
4921
+ wppa_verify_page($slug2);
4922
+ $slug3 = 'wppa_lasten_blank';
4923
+ $slug4 = 'wppa_lasten_overrule';
4924
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4925
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4926
+ $npag = wppa_need_page($slug1);
4927
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4928
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4929
+ $html4 = wppa_checkbox($slug4);
4930
+ $html = array($html1, $html2, $html3, $html4);
4931
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
4932
 
4933
+ $name = __('CommentWidget', 'wp-photo-album-plus');
4934
+ $desc = __('Comment widget photo link.', 'wp-photo-album-plus');
4935
+ $help = __('Select the type of link the comment widget photos point to.', 'wp-photo-album-plus');
4936
+ $slug1 = 'wppa_comment_widget_linktype';
4937
+ $slug2 = 'wppa_comment_widget_linkpage';
4938
+ wppa_verify_page($slug2);
4939
+ $slug3 = 'wppa_comment_blank';
4940
+ $slug4 = 'wppa_comment_overrule';
4941
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4942
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4943
+ $npag = wppa_need_page($slug1);
4944
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4945
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4946
+ $html4 = wppa_checkbox($slug4);
4947
+ $html = array($html1, $html2, $html3, $html4);
4948
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
4949
 
4950
+ $name = __('FeaTenWidget', 'wp-photo-album-plus');
4951
+ $desc = __('FeaTen widget photo link.', 'wp-photo-album-plus');
4952
+ $help = __('Select the type of link the featured ten photos point to.', 'wp-photo-album-plus');
4953
+ $slug1 = 'wppa_featen_widget_linktype';
4954
+ $slug2 = 'wppa_featen_widget_linkpage';
4955
+ wppa_verify_page($slug2);
4956
+ $slug3 = 'wppa_featen_blank';
4957
+ $slug4 = 'wppa_featen_overrule';
4958
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4959
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
4960
+ $npag = wppa_need_page($slug1);
4961
+ $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
4962
+ $html3 = $npag ? wppa_checkbox($slug3) : '';
4963
+ $html4 = wppa_checkbox($slug4);
4964
+ $html = array($html1, $html2, $html3, $html4);
4965
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4966
 
4967
+ $name = __('Tagcloud Link', 'wp-photo-album-plus');
4968
+ $desc = __('Configure the link from the tags in the tag cloud.', 'wp-photo-album-plus');
4969
+ $help = __('Link the tag words to either the thumbnails or the slideshow.', 'wp-photo-album-plus');
4970
+ $help .= '<br />'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
4971
+ $slug1 = 'wppa_tagcloud_linktype';
4972
+ $slug2 = 'wppa_tagcloud_linkpage';
4973
+ wppa_verify_page($slug2);
4974
+ $slug3 = 'wppa_tagcloud_blank';
4975
+ $slug4 = 'wppa_tagcloud_linkpage_oc';
4976
+ $slug = array($slug1, $slug2, $slug3, $slug4);
4977
+ $opts1 = array(
4978
+ __('thumbnails', 'wp-photo-album-plus'),
4979
+ __('slideshow', 'wp-photo-album-plus')
4980
+ );
4981
+ $vals1 = array(
4982
+ 'album',
4983
+ 'slide'
4984
+ );
4985
+ $opts4 = array('1','2','3','4','5');
4986
+ $vals4 = array('1','2','3','4','5');
4987
+ $html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
4988
+ $opts = $opts_page_auto;
4989
+ $opts[] = __('--- the same page ---', 'wp-photo-album-plus');
4990
+ $vals = $vals_page;
4991
+ $vals[] = '-1';
4992
+ $html2 = wppa_select($slug2, $opts, $vals, 'wppaRefreshAfter();');
4993
+ $html3 = wppa_checkbox($slug3);
4994
+ $html4 = '<div style="font-size:9px;foat:left;" class="'.$clas.'" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
4995
+ $html = array($html1, $html2, $html3, $html4);
4996
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
4997
 
4998
+ $name = __('Multitag Link', 'wp-photo-album-plus');
4999
+ $desc = __('Configure the link from the multitag selection.', 'wp-photo-album-plus');
5000
+ $help = __('Link to either the thumbnails or the slideshow.', 'wp-photo-album-plus');
5001
+ $help .= '<br />'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
5002
+ $slug1 = 'wppa_multitag_linktype';
5003
+ $slug2 = 'wppa_multitag_linkpage';
5004
+ wppa_verify_page($slug2);
5005
+ $slug3 = 'wppa_multitag_blank';
5006
+ $slug4 = 'wppa_multitag_linkpage_oc';
5007
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5008
+ $opts1 = array(
5009
+ __('thumbnails', 'wp-photo-album-plus'),
5010
+ __('slideshow', 'wp-photo-album-plus')
5011
+ );
5012
+ $vals1 = array(
5013
+ 'album',
5014
+ 'slide'
5015
+ );
5016
+ $opts4 = array('1','2','3','4','5');
5017
+ $vals4 = array('1','2','3','4','5');
5018
+ $html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
5019
+ $opts = $opts_page_auto;
5020
+ $opts[] = __('--- the same page ---', 'wp-photo-album-plus');
5021
+ $vals = $vals_page;
5022
+ $vals[] = '-1';
5023
+ $html2 = wppa_select($slug2, $opts, $vals);
5024
+ $html3 = wppa_checkbox($slug3);
5025
+ $html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
5026
+ $html = array($html1, $html2, $html3, $html4);
5027
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5028
 
5029
+ $name = __('Bestof Landing', 'wp-photo-album-plus');
5030
+ $desc = __('Select the landing page for the BestOf Widget / Box', 'wp-photo-album-plus');
5031
+ $help = '';
5032
+ $slug1 = '';
5033
+ $slug2 = 'wppa_bestof_widget_linkpage';
5034
+ wppa_verify_page($slug2);
5035
+ $slug3 = '';
5036
+ $slug4 = '';
5037
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5038
+ $html1 = '';
5039
+ $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
5040
+ $html3 = '';
5041
+ $html4 = '';
5042
+ $html = array($html1, $html2, $html3, $html4);
5043
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
5044
 
5045
+ $name = __('SM widget return', 'wp-photo-album-plus');
5046
+ $desc = __('Select the return link for social media from widgets', 'wp-photo-album-plus');
5047
+ $help = __('If you select Landing page, and it wont work, it may be required to set the Occur to the sequence number of the landing shortcode on the page.', 'wp-photo-album-plus');
5048
+ $help .= '<br />'.__('Normally it is 1, but you can try 2 etc. Always create a new shared link to test a setting.', 'wp-photo-album-plus');
5049
+ $help .= '<br />'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
5050
+ $slug1 = 'wppa_widget_sm_linktype';
5051
+ $slug2 = 'wppa_widget_sm_linkpage';
5052
+ wppa_verify_page($slug2);
5053
+ $slug3 = '';
5054
+ $slug4 = 'wppa_widget_sm_linkpage_oc';
5055
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5056
+ $opts = array(
5057
+ __('Home page', 'wp-photo-album-plus'),
5058
+ __('Landing page', 'wp-photo-album-plus')
5059
+ );
5060
+ $vals = array(
5061
+ 'home',
5062
+ 'landing'
5063
+ );
5064
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
5065
+ $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
5066
+ $html3 = '';
5067
+ $opts4 = array('1','2','3','4','5');
5068
+ $vals4 = array('1','2','3','4','5');
5069
+ $html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
5070
+ $html = array($html1, $html2, $html3, $html4);
5071
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5072
+
5073
+ wppa_setting_box_footer_new();
5074
  }
5075
  // Other links
 
5076
  {
5077
+ $desc = $wppa_subtab_names[$tab]['4'];
5078
+ wppa_setting_tab_description($desc);
5079
+ wppa_setting_box_header_new($tab, $coldef);
5080
 
5081
+ $name = __('Download Link (aka Art Monkey link)', 'wp-photo-album-plus');
5082
+ $desc = __('Makes the photo name a download button.', 'wp-photo-album-plus');
5083
+ $help = __('Link Photo name in slideshow to file or zip with photoname as filename.', 'wp-photo-album-plus');
5084
+ $slug = 'wppa_art_monkey_link';
5085
+ $opts = array(
5086
+ __('--- none ---', 'wp-photo-album-plus'),
5087
+ __('image file', 'wp-photo-album-plus'),
5088
+ __('zipped image', 'wp-photo-album-plus'),
5089
+ __('New style', 'wp-photo-album-plus'),
5090
+ );
5091
+ $vals = array(
5092
+ 'none',
5093
+ 'file',
5094
+ 'zip',
5095
+ 'new',
5096
+ );
5097
+ $html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();');
5098
+ wppa_setting_new($slug, '1', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
 
 
 
 
 
 
 
5099
 
5100
+ $name = __('Art Monkey Source', 'wp-photo-album-plus');
5101
+ $desc = __('Use Source file for art monkey link if available.', 'wp-photo-album-plus');
 
5102
  $help = '';
5103
+ $slug = 'wppa_artmonkey_use_source';
5104
+ $html = wppa_checkbox($slug);
5105
+ wppa_setting_new($slug, '2', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
 
 
 
 
 
 
5106
 
5107
+ if ( wppa_opt( 'art_monkey_link' ) == 'new' ) {
5108
+ $name = __('Art Monkey new filetypes', 'wp-photo-album-plus');
5109
+ $desc = __('Select filetypes to be downloadable when link is New Style', 'wp-photo-album-plus');
5110
+ $help = '';
5111
+ $slug = 'wppa_art_monkey_new_types';
5112
+ $opts = array( __('Photos only', 'wp-photo-album-plus'),
5113
+ __('PDFs only', 'wp-photo-album-plus'),
5114
+ __('Both photos and PDFs', 'wp-photo-album-plus')
5115
+ );
5116
+ $vals = array('photo','pdf','photo-pdf');
5117
+ $html = wppa_select($slug, $opts, $vals);
5118
+ wppa_setting_new($slug, '3', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5119
+ }
 
5120
 
5121
+ $name = __('Art Monkey Display', 'wp-photo-album-plus');
5122
+ $desc = __('Select button or link ( text ).', 'wp-photo-album-plus');
5123
+ $help = '';
5124
+ $slug = 'wppa_art_monkey_display';
5125
+ $opts = array(
5126
+ __('Button', 'wp-photo-album-plus'),
5127
+ __('Textlink', 'wp-photo-album-plus')
5128
+ );
5129
+ $vals = array(
5130
+ 'button',
5131
+ 'text'
5132
+ );
5133
+ $html = wppa_select($slug, $opts, $vals);
5134
+ wppa_setting_new($slug, '4', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5135
+
5136
+ $name = __('Popup Download Link', 'wp-photo-album-plus');
5137
+ $desc = __('Configure the download link on fullsize popups.', 'wp-photo-album-plus');
5138
+ $help = __('Link fullsize popup download button to either image or zip file.', 'wp-photo-album-plus');
5139
+ $slug = 'wppa_art_monkey_popup_link';
5140
+ $opts = array(
5141
+ __('image file', 'wp-photo-album-plus'),
5142
+ __('zipped image', 'wp-photo-album-plus')
5143
+ );
5144
+ $vals = array(
5145
+ 'file',
5146
+ 'zip'
5147
+ );
5148
+ $html = wppa_select($slug, $opts, $vals);
5149
+ wppa_setting_new($slug, '5', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5150
 
5151
+ $name = __('Download link on lightbox', 'wp-photo-album-plus');
5152
+ $desc = __('Art monkey link on lightbox photo names.', 'wp-photo-album-plus');
5153
+ $help = '';
5154
+ $slug = 'wppa_art_monkey_on_lightbox';
5155
+ $html = wppa_checkbox($slug);
5156
+ wppa_setting_new($slug, '6', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5157
 
5158
+ $name = __('Album download link', 'wp-photo-album-plus');
5159
+ $desc = __('Place an album download link on the album covers and the edit album info page', 'wp-photo-album-plus');
5160
+ $help = __('Creates a download zipfile containing the photos of the album', 'wp-photo-album-plus');
5161
+ $slug = 'wppa_allow_download_album';
5162
+ $html = wppa_checkbox($slug);
5163
+ wppa_setting_new($slug, '7', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5164
 
5165
+ $name = __('Album download Source', 'wp-photo-album-plus');
5166
+ $desc = __('Use Source file for album download link if available.', 'wp-photo-album-plus');
5167
+ $help = '';
5168
+ $slug = 'wppa_download_album_source';
5169
+ $html = wppa_checkbox($slug);
5170
+ wppa_setting_new($slug, '8', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
5171
 
5172
+ $name = __('Super View Landing', 'wp-photo-album-plus');
5173
+ $desc = __('The landing page for the Super View widget.', 'wp-photo-album-plus');
5174
+ $help = '';
5175
+ $slug1 = '';
5176
+ $slug2 = 'wppa_super_view_linkpage';
5177
+ wppa_verify_page($slug2);
5178
+ $slug3 = '';
5179
+ $slug4 = '';
5180
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5181
+ $html1 = __('Defined by the visitor', 'wp-photo-album-plus');
5182
+ $html2 = wppa_select($slug2, $opts_page_auto, $vals_page, 'wppaRefreshAfter();');
5183
+ $html3 = '';
5184
+ $html4 = '';
5185
+ $html = array($html1, $html2, $html3, $html4);
5186
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
5187
 
5188
+ $name = __('Uploader Landing', 'wp-photo-album-plus');
5189
+ $desc = __('Select the landing page for the Uploader Widget', 'wp-photo-album-plus');
5190
+ $help = '';
5191
+ $slug1 = '';
5192
+ $slug2 = 'wppa_upldr_widget_linkpage';
5193
+ wppa_verify_page($slug2);
5194
+ $slug3 = '';
5195
+ $slug4 = '';
5196
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5197
+ $html1 = '';
5198
+ $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
5199
+ $html3 = '';
5200
+ $html4 = '';
5201
+ $html = array($html1, $html2, $html3, $html4);
5202
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
5203
 
5204
+ $name = __('Supersearch Landing', 'wp-photo-album-plus');
5205
+ $desc = __('Select the landing page for the Supersearch Box', 'wp-photo-album-plus');
5206
+ $help = '';
5207
+ $slug1 = '';
5208
+ $slug2 = 'wppa_supersearch_linkpage';
5209
+ wppa_verify_page($slug2);
5210
+ $slug3 = '';
5211
+ $slug4 = '';
5212
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5213
+ $html1 = '';
5214
+ $html2 = wppa_select($slug2, $opts_page_auto, $vals_page);
5215
+ $html3 = '';
5216
+ $html4 = '';
5217
+ $html = array($html1, $html2, $html3, $html4);
5218
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5219
 
5220
+ $name = __('Album cover subalbums link', 'wp-photo-album-plus');
5221
+ $desc = __('Select the linktype and display type for sub-albums on parent album covers.', 'wp-photo-album-plus');
5222
+ $help = '';
5223
+ $slug1 = 'wppa_cover_sublinks';
5224
+ $slug2 = 'wppa_cover_sublinks_display';
5225
+ $slug3 = '';
5226
+ $slug4 = '';
5227
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5228
+ $opts = array(
5229
+ __('No link at all', 'wp-photo-album-plus'),
5230
+ __('Thumbnails and covers', 'wp-photo-album-plus'),
5231
+ __('Slideshow or covers', 'wp-photo-album-plus'),
5232
+ __('Subalbum title link', 'wp-photo-album-plus'),
5233
+ );
5234
+ $vals = array(
5235
+ 'none',
5236
+ 'content',
5237
+ 'slide',
5238
+ 'title',
5239
+ );
5240
+ $html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
5241
+ $opts = array(
5242
+ __('No display at all', 'wp-photo-album-plus'),
5243
+ __('A list with sub(sub) albums', 'wp-photo-album-plus'),
5244
+ __('A list of children only', 'wp-photo-album-plus'),
5245
+ __('An enumeration of names', 'wp-photo-album-plus'),
5246
+ __('Micro thumbnails', 'wp-photo-album-plus'),
5247
+ );
5248
+ $vals = array(
5249
+ 'none',
5250
+ 'recursivelist',
5251
+ 'list',
5252
+ 'enum',
5253
+ 'microthumbs',
5254
+ );
5255
+ $html2 = wppa_select($slug2, $opts, $vals);
5256
+ $html3 = '';
5257
+ $html4 = '';
5258
+ $html = array($html1, $html2, $html3, $html4);
5259
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5260
 
5261
+ $name = __('Real calendar link', 'wp-photo-album-plus');
5262
+ $desc = __('Select the linktype the real calendar day image should link to', 'wp-photo-album-plus');
5263
+ $help = '';
5264
+ $slug1 = 'wppa_real_calendar_linktype';
5265
+ $slug2 = '';
5266
+ $slug3 = '';
5267
+ $slug4 = '';
5268
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5269
+ $opts = array(
5270
+ __('Slideshow', 'wp-photo-album-plus'),
5271
+ __('Lightbox', 'wp-photo-album-plus'),
5272
+ );
5273
+ $vals = array(
5274
+ 'slide',
5275
+ 'lightbox',
5276
+ );
5277
+ $onchange = '';
5278
+ $html1 = wppa_select($slug1, $opts, $vals);
5279
+ $html2 = '';
5280
+ $slug3 = '';
5281
+ $slug4 = '';
5282
+ $html = array($html1, $html2, $html3, $html4);
5283
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
5284
 
5285
+ $name = __('Album id on cover is link', 'wp-photo-album-plus');
5286
+ $desc = __('The album number on the cover links to the album admin page of the album', 'wp-photo-album-plus');
5287
+ $help = __('<b>Album id on cover</b> must be enabled. The ids are only links when the user has edit album acces to the album', 'wp-photo-album-plus');
5288
+ $slug1 = 'wppa_fe_albid_edit';
5289
+ $slug2 = '';
5290
+ $slug3 = '';
5291
+ $slug4 = '';
5292
+ $slug = array($slug1, $slug2, $slug3, $slug4);
5293
+ $html1 = wppa_checkbox($slug1);
5294
+ $html2 = wppa_see_also( 'covers', '2', '10' );;
5295
+ $slug3 = '';
5296
+ $slug4 = '';
5297
+ $html = array($html1, $html2, $html3, $html4);
5298
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5299
 
5300
+ wppa_setting_box_footer_new();
5301
  }
5302
  }
5303
  break;
5304
 
5305
  case 'users': {
5306
  // Frontend (user) upload related settings
 
5307
  {
5308
+ $desc = $wppa_subtab_names[$tab]['1'];
5309
+ wppa_setting_tab_description($desc);
5310
+ wppa_setting_box_header_new($tab);
 
 
 
 
 
 
 
 
 
 
 
 
 
5311
 
5312
+ $name = __('User upload Photos', 'wp-photo-album-plus');
5313
+ $desc = __('Enable frontend upload.', 'wp-photo-album-plus');
5314
+ $help = '';
5315
+ $slug = '';
5316
+ $html = '<input type="checkbox" checked disabled >' . wppa_see_also( 'new', '1', '18..26' );
5317
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5318
 
5319
+ $name = __('User upload Video', 'wp-photo-album-plus');
5320
+ $desc = __('Enable frontend upload of video.', 'wp-photo-album-plus');
5321
+ $help = '';
5322
+ $slug = 'wppa_user_upload_video_on';
5323
+ $html = wppa_checkbox($slug);
5324
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'enable_video' ));
 
5325
 
5326
+ $name = __('User upload Audio', 'wp-photo-album-plus');
5327
+ $desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus');
5328
+ $help = '';
5329
+ $slug = 'wppa_user_upload_audio_on';
5330
+ $html = wppa_checkbox($slug);
5331
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_audio' ));
 
 
 
 
 
 
 
 
 
 
 
 
5332
 
5333
+ $name = __('User upload login', 'wp-photo-album-plus');
5334
+ $desc = __('Frontend upload requires the user is logged in.', 'wp-photo-album-plus');
5335
+ $help = '';
5336
+ $slug = 'wppa_user_upload_login';
5337
+ $onch = 'wppaSlave(this,"wppa_user_opload_roles")';
5338
+ $html = wppa_checkbox($slug, $onch);
5339
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5340
 
5341
+ $name = __('User upload roles', 'wp-photo-album-plus');
5342
+ $desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus');
5343
+ $help = '';
5344
+ $slug = 'wppa_user_opload_roles';
5345
+ $roles = $wp_roles->roles;
5346
+ $opts = array();
5347
+ $vals = array();
5348
+ $opts[] = '-- '.__('Not limited', 'wp-photo-album-plus').' --';
5349
+ $vals[] = '';
5350
+ foreach (array_keys($roles) as $key) {
5351
+ $role = $roles[$key];
5352
+ $rolename = translate_user_role( $role['name'] );
5353
+ $opts[] = $rolename;
5354
+ $vals[] = $key;
5355
+ }
5356
+ $onch = '';
5357
+ $html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
5358
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_switch( 'user_upload_login' ) );
5359
 
5360
+ $name = __('Progressin bar', 'wp-photo-album-plus');
5361
+ $desc = __('Shows the upload progression bar.', 'wp-photo-album-plus');
5362
+ $help = '';
5363
+ $slug = 'wppa_ajax_upload';
5364
+ $html = wppa_checkbox($slug);
5365
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5366
 
5367
+ $name = __('Show Copyright', 'wp-photo-album-plus');
5368
+ $desc = __('Show a copyright warning on frontend upload form.', 'wp-photo-album-plus');
5369
+ $help = '';
5370
+ $slug = 'wppa_copyright_on';
5371
+ $html = wppa_checkbox($slug, 'wppaSlave(this,\'wppa_copyright_notice\');');
5372
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
5373
 
5374
+ $name = __('Copyright notice', 'wp-photo-album-plus');
5375
+ $desc = __('The message to be displayed.', 'wp-photo-album-plus');
5376
+ $help = '';
5377
+ $slug = 'wppa_copyright_notice';
5378
+ $html = wppa_textarea($slug, $name);
5379
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch( 'copyright_on' ));
5380
+
5381
+ $name = __('User Watermark', 'wp-photo-album-plus');
5382
+ $desc = __('Uploading users may select watermark settings', 'wp-photo-album-plus');
5383
+ $help = __('If checked, anyone who can upload and/or import photos can overrule the default watermark settings.', 'wp-photo-album-plus');
5384
+ $slug = 'wppa_watermark_user';
5385
+ $html = wppa_checkbox($slug);
5386
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help, wppa_switch('watermark_on'));
5387
+
5388
+ $name = __('User name', 'wp-photo-album-plus');
5389
+ $desc = __('Uploading users may overrule the default name.', 'wp-photo-album-plus');
5390
+ $help = __('If checked, the default photo name may be overruled by the user.', 'wp-photo-album-plus');
5391
+ $help .= '<br />'.wppa_see_also( 'new', '1', '29' );
5392
+ $slug1 = 'wppa_name_user';
5393
+ $slug2 = 'wppa_name_user_mandatory';
5394
+ $html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5395
+ wppa_setting_new($slug1, '10', $name, $desc, $html, $help);
5396
+
5397
+ $name = __('Apply Newphoto desc user', 'wp-photo-album-plus');
5398
+ $desc = __('Give each new frontend uploaded photo a standard description.', 'wp-photo-album-plus');
5399
+ $help = __('If checked, each new photo will get the default New photo description.', 'wp-photo-album-plus');
5400
+ $help .= '<br />'.__('Note: If the next item is checked, the user can overwrite this', 'wp-photo-album-plus');
5401
+ $help .= '<br />'.wppa_see_also( 'new', '1', '13' );
5402
+ $slug = 'wppa_apply_newphoto_desc_user';
5403
+ $html = wppa_checkbox($slug);
5404
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5405
 
5406
+ $name = __('User desc', 'wp-photo-album-plus');
5407
+ $desc = __('Uploading users may overrule the default description.', 'wp-photo-album-plus');
5408
+ $help = '';
5409
+ $slug1 = 'wppa_desc_user';
5410
+ $slug2 = 'wppa_desc_user_mandatory';
5411
+ $html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5412
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5413
 
5414
+ $name = __('User upload custom', 'wp-photo-album-plus');
5415
+ $desc = __('Frontend upload can fill in custom data fields.', 'wp-photo-album-plus');
5416
+ $help = '';
5417
+ $slug = 'wppa_fe_custom_fields';
5418
+ $html = wppa_checkbox($slug).wppa_see_also( 'custom', '2' );;
5419
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
5420
 
5421
+ $name = __('User upload tags', 'wp-photo-album-plus');
5422
+ $desc = __('Frontend upload can add tags.', 'wp-photo-album-plus');
5423
+ $help = '';
5424
+ $slug = 'wppa_fe_upload_tags';
5425
+ $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
5426
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
 
5427
 
5428
+ if ( wppa_switch( 'fe_upload_tags' ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
5429
 
5430
+ $name = __('Tag selection box', 'wp-photo-album-plus').' 1';
5431
+ $desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
5432
+ $help = '';
5433
+ $slug1 = 'wppa_up_tagselbox_on_1';
5434
+ $slug2 = 'wppa_up_tagselbox_multi_1';
5435
+ $html = '<span style="float:left" >'.__('On:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug1).'<span style="float:left" >'.__('Multi:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug2);
5436
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
5437
 
5438
+ $name = __('Caption box', 'wp-photo-album-plus').' 1';
5439
+ $desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
5440
+ $help = '';
5441
+ $slug = 'wppa_up_tagselbox_title_1';
5442
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5443
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
5444
+
5445
+ $name = __('Tags box', 'wp-photo-album-plus').' 1';
5446
+ $desc = __('The tags in the selection box.', 'wp-photo-album-plus');
5447
+ $help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
5448
+ $slug = 'wppa_up_tagselbox_content_1';
5449
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5450
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
5451
+
5452
+ $name = __('Tag selection box', 'wp-photo-album-plus').' 2';
5453
+ $desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
5454
+ $help = '';
5455
+ $slug1 = 'wppa_up_tagselbox_on_2';
5456
+ $slug2 = 'wppa_up_tagselbox_multi_2';
5457
+ $html = '<span style="float:left" >'.__('On:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug1).'<span style="float:left" >'.__('Multi:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug2);
5458
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
5459
 
5460
+ $name = __('Caption box', 'wp-photo-album-plus').' 2';
5461
+ $desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
5462
+ $help = '';
5463
+ $slug = 'wppa_up_tagselbox_title_2';
5464
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5465
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
5466
+
5467
+ $name = __('Tags box', 'wp-photo-album-plus').' 2';
5468
+ $desc = __('The tags in the selection box.', 'wp-photo-album-plus');
5469
+ $help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
5470
+ $slug = 'wppa_up_tagselbox_content_2';
5471
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5472
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
5473
+
5474
+ $name = __('Tag selection box', 'wp-photo-album-plus').' 3';
5475
+ $desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
5476
+ $help = '';
5477
+ $slug1 = 'wppa_up_tagselbox_on_3';
5478
+ $slug2 = 'wppa_up_tagselbox_multi_3';
5479
+ $html = '<span style="float:left" >'.__('On:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug1).'<span style="float:left" >'.__('Multi:', 'wp-photo-album-plus').'</span>'.wppa_checkbox($slug2);
5480
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
5481
 
5482
+ $name = __('Caption box', 'wp-photo-album-plus').' 3';
5483
+ $desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
5484
+ $help = '';
5485
+ $slug = 'wppa_up_tagselbox_title_3';
5486
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5487
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
 
5488
 
5489
+ $name = __('Tags box', 'wp-photo-album-plus').' 3';
5490
+ $desc = __('The tags in the selection box.', 'wp-photo-album-plus');
5491
+ $help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
5492
+ $slug = 'wppa_up_tagselbox_content_3';
5493
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5494
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5495
 
5496
+ $name = __('New tags', 'wp-photo-album-plus');
5497
+ $desc = __('Input field for any user defined tags.', 'wp-photo-album-plus');
5498
+ $help = '';
5499
+ $slug = 'wppa_up_tag_input_on';
5500
+ $html = wppa_checkbox($slug);
5501
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
5502
 
5503
+ $name = __('New tags caption', 'wp-photo-album-plus');
5504
+ $desc = __('The caption above the tags input field.', 'wp-photo-album-plus');
5505
+ $help = '';
5506
+ $slug = 'wppa_up_tag_input_title';
5507
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5508
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
5509
 
5510
+ $name = __('Tags box New', 'wp-photo-album-plus');
5511
+ $desc = __('The tags in the New tags input box.', 'wp-photo-album-plus');
5512
+ $help = '';
5513
+ $slug = 'wppa_up_tagbox_new';
5514
+ $html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
5515
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help);
5516
 
5517
+ $name = __('Preview tags', 'wp-photo-album-plus');
5518
+ $desc = __('Show a preview of all tags that will be added to the photo info.', 'wp-photo-album-plus');
5519
+ $help = '';
5520
+ $slug = 'wppa_up_tag_preview';
5521
+ $html = wppa_checkbox($slug);
5522
+ wppa_setting_new($slug, '27', $name, $desc, $html, $help);
5523
+ }
5524
 
5525
+ $name = __('Camera connect', 'wp-photo-album-plus');
5526
+ $desc = __('Connect frontend upload to camara on mobile devices with camera', 'wp-photo-album-plus');
5527
+ $help = '';
5528
+ $slug = 'wppa_camera_connect';
5529
+ $html = wppa_checkbox($slug);
5530
+ wppa_setting_new($slug, '28', $name, $desc, $html, $help);
5531
+
5532
+ $name = __('Blog It!', 'wp-photo-album-plus');
5533
+ $desc = __('Enable blogging photos.', 'wp-photo-album-plus');
5534
+ $help = __('Users need the capability edit_posts to directly blog photos.', 'wp-photo-album-plus');
5535
+ $slug = 'wppa_blog_it';
5536
+ $opts = array( __('disabled', 'wp-photo-album-plus'),
5537
+ __('optional', 'wp-photo-album-plus'),
5538
+ __('always', 'wp-photo-album-plus'),
5539
+ );
5540
+ $vals = array( '-none-',
5541
+ 'optional',
5542
+ 'always',
5543
+ );
5544
+ $html = wppa_select($slug, $opts, $vals);
5545
+ wppa_setting_new($slug, '29', $name, $desc, $html, $help);
5546
 
5547
+ $name = __('Blog It need moderation', 'wp-photo-album-plus');
5548
+ $desc = __('Posts with blogged photos need moderation.', 'wp-photo-album-plus');
5549
+ $help = '';
5550
+ $slug = 'wppa_blog_it_moderate';
5551
+ $html = wppa_checkbox($slug);
5552
+ wppa_setting_new($slug, '30', $name, $desc, $html, $help);
5553
 
5554
+ $name = __('Blog It shortcode', 'wp-photo-album-plus');
5555
+ $desc = __('Shortcode to be used on the blog post', 'wp-photo-album-plus');
5556
+ $help = __('Make sure it contains photo="#id"', 'wp-photo-album-plus');
5557
+ $slug = 'wppa_blog_it_shortcode';
5558
+ $html = wppa_input($slug, '85%');
5559
+ wppa_setting_new($slug, '31', $name, $desc, $html, $help);
5560
 
5561
+ $name = __('Frontend ending label', 'wp-photo-album-plus');
5562
+ $desc = __('Frontend upload / create / edit dialog closing label text.', 'wp-photo-album-plus');
5563
+ $help = '';
5564
+ $slug = 'wppa_close_text';
5565
+ $opts = array( __('Abort', 'wp-photo-album-plus'), __('Cancel', 'wp-photo-album-plus'), __('Close', 'wp-photo-album-plus'), __('Exit', 'wp-photo-album-plus'), __('Quit', 'wp-photo-album-plus') );
5566
+ $vals = array( 'Abort', 'Cancel', 'Close', 'Exit', 'Quit' );
5567
+ $html = wppa_select($slug, $opts, $vals);
5568
+ wppa_setting_new($slug, '32', $name, $desc, $html, $help);
5569
 
5570
+ wppa_setting_box_footer_new();
5571
  }
5572
  }
5573
  break;
5574
 
5575
  case 'email': {
5576
  // Email configuration settings
 
5577
  {
5578
+ $desc = $wppa_subtab_names[$tab]['1'];
5579
+ wppa_setting_tab_description($desc);
5580
+ wppa_setting_box_header_new($tab);
5581
 
5582
+ $name = __('Mail on new album', 'wp-photo-album-plus');
5583
+ $desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus');
5584
+ $help = '';
5585
+ $slug = 'wppa_newalbumnotify';
5586
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
5587
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5588
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5589
 
5590
+ $name = __('Mail on upload', 'wp-photo-album-plus');
5591
+ $desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus');
5592
+ $help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
5593
+ $slug = 'wppa_feuploadnotify';
5594
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
5595
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5596
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
5597
 
5598
+ $name = __('Mail on comment', 'wp-photo-album-plus');
5599
+ $desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus');
5600
+ $help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus');
5601
+ $help .= '<br />' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus');
5602
+ $slug1 = 'wppa_commentnotify';
5603
+ $slug2 = 'wppa_commentnotify_limit';
5604
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
5605
+ $html = wppa_checkbox($slug1) . '<span style="float:left" >&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . '&nbsp;</span>' .
5606
+ wppa_checkbox($slug2) . '<span style="float:left" >&nbsp;' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
5607
+ wppa_setting_new($slug1, '3', $name, $desc, $html, $help);
5608
+
5609
+ $name = __('Mail on previous comment', 'wp-photo-album-plus');
5610
+ $desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus');
5611
+ $help = '';
5612
+ $slug = 'wppa_commentprevious';
5613
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
5614
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5615
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5616
 
5617
+ $name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
5618
+ $desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus');
5619
+ $help = '';
5620
+ $slug = 'wppa_moderatephoto';
5621
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
5622
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5623
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
5624
 
5625
+ $name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
5626
+ $desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus');
5627
+ $help = '';
5628
+ $slug = 'wppa_moderatecomment';
5629
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
5630
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5631
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
5632
 
5633
+ $name = __('Mail on approve photo', 'wp-photo-album-plus');
5634
+ $desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
5635
+ $help = '';
5636
+ $slug = 'wppa_photoapproved';
5637
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
5638
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5639
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
5640
 
5641
+ $name = __('Mail on approve comment', 'wp-photo-album-plus');
5642
+ $desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus');
5643
+ $help = '';
5644
+ $slug = 'wppa_commentapproved';
5645
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
5646
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
5647
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
5648
 
5649
+ $name = __('From site', 'wp-photo-album-plus');
5650
+ $desc = __('Enter the subject header', 'wp-photo-album-plus');
5651
+ $help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace('&#039;', '', get_bloginfo('name') ).']');
5652
+ $slug = 'wppa_email_from_site';
5653
+ $html = wppa_input($slug,'90%');
5654
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
5655
 
5656
+ $name = __('From email', 'wp-photo-album-plus');
5657
+ $desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
5658
+ $help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br />' .
5659
+ __('Make sure this email address exists.', 'wp-photo-album-plus');
5660
+ $slug = 'wppa_email_from_email';
5661
+ $html = wppa_input($slug,'90%');
5662
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
5663
 
5664
+ $name = __( 'No admin email', 'wp-photo-album-plus' );
5665
+ $desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
5666
+ $help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
5667
+ $slug = 'wppa_void_admin_email';
5668
+ $html = wppa_checkbox( $slug );
5669
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5670
 
5671
+ $name = __( 'Email policy', 'wp-photo-album-plus' );
5672
+ $desc = __( 'Select either "opt-in" or "opt-out"', 'wp-photo-album-plus' );
5673
+ $help = __( 'If you select "opt-in", use the "Notify Me" widget to enable the users to subscribe to emails', 'wp-photo-album-plus' );
5674
+ $slug = 'wppa_mailinglist_policy';
5675
+ $opts = array( 'opt-in', 'opt-out' );
5676
+ $vals = array( 'opt-in', 'opt-out' );
5677
+ $html = wppa_select( $slug, $opts, $vals );
5678
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5679
 
5680
+ $name = __( 'Email callback url', 'wp-photo-album-plus' );
5681
+ $desc = __( 'The link in emails will point to', 'wp-photo-album-plus' );
5682
+ $help = __( 'Recommendation', 'wp-photo-album-plus' ) . ': ' .
5683
+ __( 'Create a page with shortcode', 'wp-photo-album-plus' ) .
5684
+ '<b>[wppa type="landing"]</b>. ';
5685
+ $slug = 'wppa_mailinglist_callback_url';
5686
+ $html = wppa_input($slug, '90%');
5687
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
5688
 
5689
+ $name = __('Retry failed mails', 'wp-photo-album-plus');
5690
+ $desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
5691
+ $help = (__('Retries occur at the background every hour', 'wp-photo-album-plus'));
5692
+ $slug = 'wppa_retry_mails';
5693
+ $html = wppa_number($slug, '1', '24');
5694
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5695
 
5696
+ wppa_setting_box_footer_new();
5697
  }
5698
  // Failed mails
 
5699
  {
5700
+ $desc = $wppa_subtab_names[$tab]['2'];
5701
 
5702
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
5703
  __('To', 'wp-photo-album-plus') => 'auto;',
5729
  }
5730
  }
5731
  // Permanently failed mails
 
5732
  {
5733
+ $desc = $wppa_subtab_names[$tab]['3'];
5734
+
5735
  $mails = wppa_get_option( 'wppa_perm_failed_mails', array() );
5736
  if ( count( $mails ) ) {
5737
 
5759
 
5760
  case 'share': {
5761
  // Social media related settings
 
5762
  {
5763
+ $desc = $wppa_subtab_names[$tab]['1'];
5764
+ wppa_setting_tab_description($desc);
5765
+ wppa_setting_box_header_new($tab);
 
 
 
 
 
 
5766
 
5767
+ $name = __('Hide when running', 'wp-photo-album-plus');
5768
+ $desc = __('Hide the SM box when slideshow runs.', 'wp-photo-album-plus');
5769
+ $help = '';
5770
+ $slug = 'wppa_share_hide_when_running';
5771
+ $html = wppa_checkbox($slug);
5772
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5773
 
5774
+ $name = __('Show Share Box Widget', 'wp-photo-album-plus');
5775
+ $desc = __('Display the share social media buttons box in widgets.', 'wp-photo-album-plus');
5776
+ $help = __('This setting applies to normal slideshows in widgets, not to the slideshowwidget as that is a slideonly display.', 'wp-photo-album-plus');
5777
+ $slug = 'wppa_share_on_widget';
5778
+ $html = wppa_checkbox($slug);
5779
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
5780
 
5781
+ $name = __('Show Share Buttons Thumbs', 'wp-photo-album-plus');
5782
+ $desc = __('Display the share social media buttons under thumbnails.', 'wp-photo-album-plus');
5783
+ $help = '';
5784
+ $slug = 'wppa_share_on_thumbs';
5785
+ $html = wppa_checkbox($slug);
5786
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
5787
 
5788
+ $name = __('Show Share Buttons Mphoto', 'wp-photo-album-plus');
5789
+ $desc = __('Display the share social media buttons on mphoto displays.', 'wp-photo-album-plus');
5790
+ $help = '';
5791
+ $slug = 'wppa_share_on_mphoto';
5792
+ $html = wppa_checkbox($slug);
5793
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
 
 
 
 
5794
 
5795
+ $name = __('Void pages share', 'wp-photo-album-plus');
5796
+ $desc = __('Do not show share on these pages', 'wp-photo-album-plus');
5797
+ $help = __('Use this for pages that require the user is logged in', 'wp-photo-album-plus');
5798
+ $slug = 'wppa_sm_void_pages';
5799
+ $opts = $opts_page_post;
5800
+ $opts[0] = __('--- Select one or more pages ---', 'wp-photo-album-plus');
5801
+ $opts[] = __('--- none ---', 'wp-photo-album-plus');
5802
+ $vals = $vals_page_post;
5803
+ $vals[] = '0';
5804
+ $html = wppa_select_m($slug, $opts, $vals, '', '', true);
5805
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
5806
 
5807
+ $name = __('Show QR Code', 'wp-photo-album-plus');
5808
+ $desc = __('Display the QR code in the share box.', 'wp-photo-album-plus');
5809
+ $help = '';
5810
+ $slug = 'wppa_share_qr';
5811
+ $html = wppa_checkbox($slug);
5812
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
5813
 
5814
+ $name = __('Show Twitter button', 'wp-photo-album-plus');
5815
+ $desc = __('Display the Twitter button in the share box.', 'wp-photo-album-plus');
5816
+ $help = '';
5817
+ $slug = 'wppa_share_twitter';
5818
+ $html = wppa_checkbox($slug);
5819
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
5820
 
5821
+ $name = __('The creator\'s Twitter account', 'wp-photo-album-plus');
5822
+ $desc = __('The Twitter @username a twitter card should be attributed to.', 'wp-photo-album-plus');
5823
+ $help = __('If you want to share the image directly - by a so called twitter card - you must enter your twitter account name here', 'wp-photo-album-plus');
5824
+ $slug = 'wppa_twitter_account';
5825
+ $html = wppa_input($slug, '150px' );
5826
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
5827
 
5828
+ $name = __('Show Google+ button', 'wp-photo-album-plus');
5829
+ $desc = __('Display the Google+ button in the share box.', 'wp-photo-album-plus');
5830
+ $help = '';
5831
+ $slug = 'wppa_share_google';
5832
+ $html = wppa_checkbox($slug);
5833
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
5834
 
5835
+ $name = __('Show Pinterest button', 'wp-photo-album-plus');
5836
+ $desc = __('Display the Pintrest button in the share box.', 'wp-photo-album-plus');
5837
+ $help = '';
5838
+ $slug = 'wppa_share_pinterest';
5839
+ $html = wppa_checkbox($slug);
5840
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
5841
 
5842
+ $name = __('Show LinkedIn button', 'wp-photo-album-plus');
5843
+ $desc = __('Display the LinkedIn button in the share box.', 'wp-photo-album-plus');
5844
+ $help = '';
5845
+ $slug = 'wppa_share_linkedin';
5846
+ $html = wppa_checkbox($slug);
5847
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5848
 
5849
+ $name = __('Show Facebook share button', 'wp-photo-album-plus');
5850
+ $desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
5851
+ $help = '';
5852
+ $slug = 'wppa_share_facebook';
5853
+ $html = wppa_checkbox($slug);
5854
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
5855
 
5856
+ $name = __('Show Facebook like button', 'wp-photo-album-plus');
5857
+ $desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
5858
+ $help = '';
5859
+ $slug = 'wppa_facebook_like';
5860
+ $html = wppa_checkbox($slug);
5861
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
 
 
5862
 
5863
+ $name = __('Display type', 'wp-photo-album-plus');
5864
+ $desc = __('Select the Facebook button display type.', 'wp-photo-album-plus');
5865
+ $help = '';
5866
+ $slug = 'wppa_fb_display';
5867
+ $opts = array( __('Standard', 'wp-photo-album-plus'), __('Button', 'wp-photo-album-plus'), __('Button with counter', 'wp-photo-album-plus'), __('Box with counter', 'wp-photo-album-plus') );
5868
+ $vals = array( 'standard', 'button', 'button_count', 'box_count' );
5869
+ $html = wppa_select($slug, $opts, $vals);
5870
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
5871
 
5872
+ $name = __('Show Facebook comment box', 'wp-photo-album-plus');
5873
+ $desc = __('Display the Facebook comment dialog box in the share box.', 'wp-photo-album-plus');
5874
+ $help = '';
5875
+ $slug = 'wppa_facebook_comments';
5876
+ $html = wppa_checkbox($slug);
5877
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
5878
 
5879
+ $name = __('Facebook User Id', 'wp-photo-album-plus');
5880
+ $desc = __('Enter your facebook user id to be able to moderate comments and sends', 'wp-photo-album-plus');
5881
+ $help = '';
5882
+ $slug = 'wppa_facebook_admin_id';
5883
+ $html = wppa_input($slug, '200px');
5884
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
5885
 
5886
+ $name = __('Facebook App Id', 'wp-photo-album-plus');
5887
+ $desc = __('Enter your facebook app id to be able to moderate comments and sends', 'wp-photo-album-plus');
5888
+ $help = '';
5889
+ $slug = 'wppa_facebook_app_id';
5890
+ $html = wppa_input($slug, '200px');
5891
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
5892
+
5893
+ $name = __('Facebook js SDK', 'wp-photo-album-plus');
5894
+ $desc = __('Load Facebook js SDK', 'wp-photo-album-plus');
5895
+ $help = __('Uncheck this box only when there is a conflict with an other plugin that also loads the Facebook js SDK.', 'wp-photo-album-plus');
5896
+ $slug = 'wppa_load_facebook_sdk';
5897
+ $html = wppa_checkbox($slug);
5898
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
5899
 
5900
+ $name = __('Share single image', 'wp-photo-album-plus');
5901
+ $desc = __('Share a link to a single image, not the slideshow.', 'wp-photo-album-plus');
5902
+ $help = __('The sharelink points to a page with a single image rather than to the page with the photo in the slideshow.', 'wp-photo-album-plus');
5903
+ $slug = 'wppa_share_single_image';
5904
+ $html = wppa_checkbox($slug);
5905
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
5906
 
5907
+ wppa_setting_box_footer_new();
5908
  }
5909
  // Search Engine Optimalisation settings
 
5910
  {
5911
+ $desc = $wppa_subtab_names[$tab]['2'];
5912
+ wppa_setting_tab_description($desc);
5913
+ wppa_setting_box_header_new($tab);
5914
 
5915
+ $name = __('Meta on page', 'wp-photo-album-plus');
5916
+ $desc = __('Meta tags for photos on the page.', 'wp-photo-album-plus');
5917
+ $help = __('If checked, the header of the page will contain metatags that refer to featured photos on the page in the page context.', 'wp-photo-album-plus');
5918
+ $slug = 'wppa_meta_page';
5919
+ $html = wppa_checkbox($slug);
5920
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
5921
 
5922
+ $name = __('Meta all', 'wp-photo-album-plus');
5923
+ $desc = __('Meta tags for all featured photos.', 'wp-photo-album-plus');
5924
+ $help = __('If checked, the header of the page will contain metatags that refer to all featured photo files.', 'wp-photo-album-plus');
5925
+ $help .= '<br />'.__('If you have many featured photos, you might wish to uncheck this item to reduce the size of the page header.', 'wp-photo-album-plus');
5926
+ $slug = 'wppa_meta_all';
5927
+ $html = wppa_checkbox($slug);
5928
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
5929
 
5930
+ $name = __('Add og meta tags', 'wp-photo-album-plus');
5931
+ $desc = __('Add og meta tags to the page header.', 'wp-photo-album-plus');
5932
+ $help = __('Turning this off may affect the functionality of social media items in the share box that rely on open graph tags information.', 'wp-photo-album-plus');
5933
+ $slug = 'wppa_og_tags_on';
5934
+ $html = wppa_checkbox($slug);
5935
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
 
5936
 
5937
+ $name = __('Image Alt attribute type', 'wp-photo-album-plus');
5938
+ $desc = __('Select kind of HTML alt="" content for images.', 'wp-photo-album-plus');
5939
+ $help = '';
5940
+ $slug = 'wppa_alt_type';
5941
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('photo name', 'wp-photo-album-plus'), __('name without file-ext', 'wp-photo-album-plus'), __('set in album admin', 'wp-photo-album-plus') );
5942
+ $vals = array( 'none', 'fullname', 'namenoext', 'custom');
5943
+ $html = wppa_select($slug, $opts, $vals);
5944
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5945
 
5946
+ wppa_setting_box_footer_new();
5947
  }
5948
  }
5949
  break;
5950
 
5951
  case 'system': {
5952
  // System behaviour related settings
 
5953
  {
5954
+ $desc = $wppa_subtab_names[$tab]['1'];
5955
+ wppa_setting_tab_description($desc);
5956
+ wppa_setting_box_header_new($tab);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5957
 
5958
+ $name = __('Modal boxes', 'wp-photo-album-plus');
5959
+ $desc = __('Place Ajax rendered content in modal boxes', 'wp-photo-album-plus');
5960
+ $help = '';
5961
+ $slug = 'wppa_ajax_render_modal';
5962
+ $html = wppa_checkbox($slug);
5963
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
5964
 
5965
+ $name = __('Ajax scroll', 'wp-photo-album-plus');
5966
+ $desc = __('Scroll into position after an ajax call changed the page content', 'wp-photo-album-plus');
5967
+ $help = '';
5968
+ $slug = 'wppa_ajax_scroll';
5969
+ $html = wppa_checkbox($slug);
5970
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
5971
 
5972
+ $name = __('Non Ajax scroll', 'wp-photo-album-plus');
5973
+ $desc = __('Scroll into position after a wppa link changed the page content', 'wp-photo-album-plus');
5974
+ $help = '';
5975
+ $slug = 'wppa_non_ajax_scroll';
5976
+ $html = wppa_checkbox($slug);
5977
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
5978
 
5979
+ $name = __('Update addressline', 'wp-photo-album-plus');
5980
+ $desc = __('Update the addressline after an ajax action or next slide.', 'wp-photo-album-plus');
5981
+ $help = __('If checked, refreshing the page will show the current content and the browsers back and forth arrows will browse the history on the page.', 'wp-photo-album-plus');
5982
+ $help .= '<br />'.__('If unchecked, refreshing the page will re-display the content of the original page.', 'wp-photo-album-plus');
5983
+ $help .= '<br />'.__('This will only work on browsers that support history.pushState() and therefor NOT in IE', 'wp-photo-album-plus');
5984
+ $slug = 'wppa_update_addressline';
5985
+ $html = wppa_checkbox($slug);
5986
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5987
 
5988
+ $name = __('Render shortcode always', 'wp-photo-album-plus');
5989
+ $desc = __('This will skip the check on proper initialisation.', 'wp-photo-album-plus');
5990
+ $help = __('This setting is required for certain themes like Gantry to prevent the display of wppa placeholders like [WPPA+ Photo display].', 'wp-photo-album-plus');
5991
+ $slug = 'wppa_render_shortcode_always';
5992
+ $html = wppa_checkbox($slug);
5993
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
5994
 
5995
+ $name = __('Track viewcounts', 'wp-photo-album-plus');
5996
+ $desc = __('Register number of views of albums and photos.', 'wp-photo-album-plus');
5997
+ $help = '';
5998
+ $slug = 'wppa_track_viewcounts';
5999
+ $html = wppa_checkbox($slug);
6000
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
6001
 
6002
+ $name = __('Track clickcounts', 'wp-photo-album-plus');
6003
+ $desc = __('Register number of clicks on photos that link to an url.', 'wp-photo-album-plus');
6004
+ $help = '';
6005
+ $slug = 'wppa_track_clickcounts';
6006
+ $html = wppa_checkbox($slug);
6007
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
6008
 
6009
+ $name = __('Auto page', 'wp-photo-album-plus');
6010
+ $desc = __('Create a wp page for every fullsize image.', 'wp-photo-album-plus');
6011
+ $help = '';
6012
+ $slug = 'wppa_auto_page';
6013
+ $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
6014
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
6015
 
6016
+ $name = __('Auto page display', 'wp-photo-album-plus');
6017
+ $desc = __('The type of display on the autopage pages.', 'wp-photo-album-plus');
6018
+ $help = '';
6019
+ $slug = 'wppa_auto_page_type';
6020
+ $opts = array(__('Single photo', 'wp-photo-album-plus'), __('Media type photo', 'wp-photo-album-plus'), __('In the style of a slideshow', 'wp-photo-album-plus') );
6021
+ $vals = array('photo', 'mphoto', 'slphoto');
6022
+ $html = wppa_select($slug, $opts, $vals);
6023
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
6024
 
6025
+ $name = __('Auto page links', 'wp-photo-album-plus');
6026
+ $desc = __('The location for the pagelinks.', 'wp-photo-album-plus');
6027
+ $help = '';
6028
+ $slug = 'wppa_auto_page_links';
6029
+ $opts = array(__('none', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'), __('At top and bottom', 'wp-photo-album-plus'));
6030
+ $vals = array('none', 'top', 'bottom', 'both');
6031
+ $html = wppa_select($slug, $opts, $vals);
6032
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
6033
 
6034
+ $name = __('Defer javascript', 'wp-photo-album-plus');
6035
+ $desc = __('Put javascript near the end of the page.', 'wp-photo-album-plus');
6036
+ $help = (__('If checkd: May fix layout problems and broken slideshows. May speed up or slow down page appearing.', 'wp-photo-album-plus'));
6037
+ $slug = 'wppa_defer_javascript';
6038
+ $html = wppa_checkbox($slug);
6039
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
6040
 
6041
+ $name = __('Inline styles', 'wp-photo-album-plus');
6042
+ $desc = __('Set style specifications inline.', 'wp-photo-album-plus');
6043
+ $help = __('If checked: May fix layout problems, but slows down page appearing.', 'wp-photo-album-plus');
6044
+ $slug = 'wppa_inline_css';
6045
+ $html = wppa_checkbox($slug);
6046
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
6047
 
6048
+ $name = __('Custom style', 'wp-photo-album-plus');
6049
+ $desc = __('Enter custom style specs here.', 'wp-photo-album-plus');
6050
+ $help = '';
6051
+ $slug = 'wppa_custom_style';
6052
+ $html = wppa_textarea($slug, $name);
6053
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
6054
 
6055
+ $name = __('Custom style Chrome', 'wp-photo-album-plus');
6056
+ $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6057
+ $help = '';
6058
+ $slug = 'wppa_custom_style_chrome';
6059
+ $html = wppa_textarea($slug, $name);
6060
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
6061
 
6062
+ $name = __('Custom style Firefox', 'wp-photo-album-plus');
6063
+ $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6064
+ $help = '';
6065
+ $slug = 'wppa_custom_style_firefox';
6066
+ $html = wppa_textarea($slug, $name);
6067
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
6068
 
6069
+ $name = __('Custom style Safari', 'wp-photo-album-plus');
6070
+ $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6071
+ $help = '';
6072
+ $slug = 'wppa_custom_style_safari';
6073
+ $html = wppa_textarea($slug, $name);
6074
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
6075
 
6076
+ $name = __('Custom style Edge', 'wp-photo-album-plus');
6077
+ $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6078
+ $help = '';
6079
+ $slug = 'wppa_custom_style_edge';
6080
+ $html = wppa_textarea($slug, $name);
6081
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
6082
 
6083
+ $name = __('Custom style IE', 'wp-photo-album-plus');
6084
+ $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6085
+ $help = '';
6086
+ $slug = 'wppa_custom_style_ie';
6087
+ $html = wppa_textarea($slug, $name);
6088
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
6089
 
6090
+ $name = __('Custom style Opera', 'wp-photo-album-plus');
6091
+ $desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
6092
+ $help = '';
6093
+ $slug = 'wppa_custom_style_opera';
6094
+ $html = wppa_textarea($slug, $name);
6095
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
6096
 
6097
+ $name = __('Use customized style file', 'wp-photo-album-plus');
6098
+ $desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
6099
+ $help = '';
6100
+ $slug = 'wppa_use_custom_style_file';
6101
+ $html = wppa_checkbox($slug);
6102
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
6103
 
6104
+ $name = __('Use customized theme file', 'wp-photo-album-plus');
6105
+ $desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
6106
+ $help = '';
6107
+ $slug = 'wppa_use_custom_theme_file';
6108
+ $html = wppa_checkbox($slug);
6109
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
6110
 
6111
+ $name = __('Enable photo html access', 'wp-photo-album-plus');
6112
+ $desc = __('Creates .htaccess files in .../uploads/wppa/ and .../uploads/wppa/thumbs/', 'wp-photo-album-plus');
6113
+ $help = '';
6114
+ $slug = 'wppa_cre_uploads_htaccess';
6115
+ $opts = array( __('create \'all access\' .htaccess files', 'wp-photo-album-plus'),
6116
+ __('remove .htaccess files', 'wp-photo-album-plus'),
6117
+ __('create \'no hotlinking\' .htaccess files', 'wp-photo-album-plus'),
6118
+ __('do not change existing .htaccess file(s)', 'wp-photo-album-plus'),
6119
+ );
6120
+ $vals = array( 'grant',
6121
+ 'remove',
6122
+ 'nohot',
6123
+ 'custom',
6124
+ );
6125
+ $html = wppa_select($slug, $opts, $vals);
6126
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
6127
 
6128
+ $name = __('Lazy load', 'wp-photo-album-plus');
6129
+ $desc = __('Load photos from the server at the moment they will show up.', 'wp-photo-album-plus');
6130
+ $help = '';
6131
+ $slug = 'wppa_lazy';
6132
+ $html = wppa_checkbox($slug);
6133
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
6134
 
6135
+ $name = __('Thumbs first', 'wp-photo-album-plus');
6136
+ $desc = __('When displaying album content: thumbnails before subalbums.', 'wp-photo-album-plus');
6137
+ $help = '';
6138
+ $slug = 'wppa_thumbs_first';
6139
+ $html = wppa_checkbox($slug);
6140
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
6141
 
6142
+ $name = __('Login links', 'wp-photo-album-plus');
6143
+ $desc = __('You must login to... links to login page.', 'wp-photo-album-plus');
6144
+ $help = '';
6145
+ $slug = 'wppa_login_links';
6146
+ $onch = 'wppaRefreshAfter();';
6147
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'miscadv', '1', '6', 'login_links' );
6148
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
6149
 
6150
+ $name = __('Relative urls', 'wp-photo-album-plus');
6151
+ $desc = __('Use relative urls only.', 'wp-photo-album-plus');
6152
+ $help = '';
6153
+ $slug = 'wppa_relative_urls';
6154
+ $html = wppa_checkbox($slug);
6155
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help);
6156
 
6157
+ $name = __('Capitalize tags and cats', 'wp-photo-album-plus');
6158
+ $desc = __('Format tags and cats to start with one capital character', 'wp-photo-album-plus');
6159
+ $help = '';
6160
+ $slug = 'wppa_capitalize_tags';
6161
+ $html = wppa_checkbox($slug);
6162
+ wppa_setting_new($slug, '27', $name, $desc, $html, $help);
6163
+
6164
+ $name = __('Enable Admins Choice', 'wp-photo-album-plus');
6165
+ $desc = __('Enable the creation of zipfiles with selected photos.', 'wp-photo-album-plus');
6166
+ $help = __('Activate the Admins Choice widget to make the zipfiles downloadable.', 'wp-photo-album-plus');
6167
+ $slug = 'wppa_admins_choice';
6168
+ $opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
6169
+ __( 'Admins and superusers', 'wp-photo-album-plus' ),
6170
+ __( 'All loggedin users', 'wp-photo-album-plus' )
6171
+ );
6172
+ $vals = array( 'none', 'admin', 'login' );
6173
+ $html = wppa_select($slug, $opts, $vals);
6174
+ wppa_setting_new($slug, '28', $name, $desc, $html, $help);
6175
 
6176
+ $name = __('Tag Admins Choice', 'wp-photo-album-plus');
6177
+ $desc = __('Tag photos with Admins Choice user', 'wp-photo-album-plus');
6178
+ $help = '';
6179
+ $slug = 'wppa_choice_is_tag';
6180
+ $html = wppa_checkbox($slug);
6181
+ wppa_setting_new($slug, '29', $name, $desc, $html, $help);
6182
 
6183
+ $name = __('Admins choice me only', 'wp-photo-album-plus');
6184
+ $desc = __('Shows the link to the current users zipfile only', 'wp-photo-album-plus');
6185
+ $help = '';
6186
+ $slug = 'wppa_admins_choice_meonly';
6187
+ $html = wppa_checkbox($slug);
6188
+ wppa_setting_new($slug, '30', $name, $desc, $html, $help);
6189
+
6190
+ $name = __('Admins choice action', 'wp-photo-album-plus');
6191
+ $desc = __('Select the action to be taken after clicking the "My Choice" link', 'wp-photo-album-plus');
6192
+ $help = __('If set to album, the link is only shown to users who have album admin rights', 'wp-photo-album-plus');
6193
+ $slug = 'wppa_admins_choice_action';
6194
+ $opts = array(__('To zipfile', 'wp-photo-album-plus'), __('To album', 'wp-photo-album-plus'), __('To album and zip', 'wp-photo-album-plus'));
6195
+ $vals = array('zip', 'album', 'both');
6196
+ $html = wppa_select($slug, $opts, $vals);
6197
+ wppa_setting_new($slug, '31', $name, $desc, $html, $help);
6198
 
6199
+ $name = __('Make owner like photoname', 'wp-photo-album-plus');
6200
+ $desc = __('Change the owner to the user who\'s display name equals photoname.', 'wp-photo-album-plus');
6201
+ $help = '';
6202
+ $slug = 'wppa_owner_to_name';
6203
+ $html = wppa_checkbox($slug);
6204
+ wppa_setting_new($slug, '32', $name, $desc, $html, $help);
6205
 
6206
+ $name = __('No rightclick', 'wp-photo-album-plus');
6207
+ $desc = __('Disable right mouseclick on all images', 'wp-photo-album-plus');
6208
+ $help = '';
6209
+ $slug = 'wppa_no_rightclick';
6210
+ $html = wppa_checkbox( $slug );
6211
+ wppa_setting_new($slug, '33', $name, $desc, $html, $help);
6212
 
6213
+ $name = __('Nice scroll on window', 'wp-photo-album-plus');
6214
+ $desc = __('Apply the nice scroller on the browserwindow', 'wp-photo-album-plus');
6215
+ $help = '';
6216
+ $slug = 'wppa_nicescroll_window';
6217
+ $html = wppa_checkbox( $slug );
6218
+ wppa_setting_new($slug, '34', $name, $desc, $html, $help);
6219
+
6220
+ $name = __('Nice scroller options', 'wp-photo-album-plus');
6221
+ $desc = __('The nice scroller configuration options', 'wp-photo-album-plus');
6222
+ $help = __('Enter options, one per line, seperated by commas(,).', 'wp-photo-album-plus');
6223
+ $help .= '<br />' .
6224
+ sprintf( __('Click %s here %s for documentation and a full list of available options', 'wp-photo-album-plus'),
6225
+ '<a href="' . WPPA_URL . '/vendor/nicescroll/README.txt" target="_blank" >',
6226
+ '</a>'
6227
+ ) .
6228
+ '<br />';
6229
+ $slug = 'wppa_nicescroll_opts';
6230
+ $html = wppa_textarea( $slug );
6231
+ wppa_setting_new($slug, '35', $name, $desc, $html, $help);
6232
+
6233
+ $name = __('Response speed', 'wp-photo-album-plus');
6234
+ $desc = __('The speed of responsive size adjustments', 'wp-photo-album-plus');
6235
+ $help = '';
6236
+ $slug = 'wppa_response_speed';
6237
+ $opts = array( __( 'very slow', 'wp-photo-album-plus' ),
6238
+ __( 'slow', 'wp-photo-album-plus' ),
6239
+ __( 'normal', 'wp-photo-album-plus' ),
6240
+ __( 'fast', 'wp-photo-album-plus' ),
6241
+ __( 'very fast', 'wp-photo-album-plus' ),
6242
+ __( 'off', 'wp-photo-album-plus' ),
6243
+ );
6244
+ $vals = array( '750', '500', '350', '200', '100', '0' );
6245
+ $html = wppa_select($slug, $opts, $vals);
6246
+ wppa_setting_new( $slug, '36', $name, $desc, $html, $help );
6247
 
6248
+ $name = __('Enable request info', 'wp-photo-album-plus');
6249
+ $desc = __('Shows a button under the slideshow image to request info by email', 'wp-photo-album-plus');
6250
+ $help = '';
6251
+ $slug = 'wppa_request_info';
6252
+ $html = wppa_checkbox( $slug );
6253
+ wppa_setting_new($slug, '37', $name, $desc, $html, $help);
6254
 
6255
+ $name = __('Dialog text', 'wp-photo-album-plus');
6256
+ $desc = __('The text to display in the dialog box', 'wp-photo-album-plus');
6257
+ $help = '';
6258
+ $slug = 'wppa_request_info_text';
6259
+ $html = wppa_input($slug, '90%');
6260
+ wppa_setting_new($slug, '38', $name, $desc, $html, $help);
6261
 
6262
+ $name = __('Gallery not A<b></b>lbum', 'wp-photo-album-plus');
6263
+ $desc = __('Use the name Gallery rather than A<b></b>lbum', 'wp-photo-album-plus');
6264
+ $help = '';
6265
+ $slug = 'wppa_album_use_gallery';
6266
+ $html = wppa_checkbox($slug);
6267
+ wppa_setting_new($slug, '39', $name, $desc, $html, $help);
6268
 
6269
+ $name = __('Fullscreen policy', 'wp-photo-album-plus');
6270
+ $desc = __('Select the desired fullscreen policy', 'wp-photo-album-plus');
6271
+ $help = '';
6272
+ $slug = 'wppa_fs_policy';
6273
+ $opts = array(__('--- none ---', 'wp-photo-album-plus'), __('On lightbox only', 'wp-photo-album-plus'), __('The entire page', 'wp-photo-album-plus') );
6274
+ $vals = array('none', 'lightbox', 'global');
6275
+ $html = wppa_select($slug, $opts, $vals, '');
6276
+ wppa_setting_new($slug, '40', $name, $desc, $html, $help);
6277
 
6278
+ wppa_setting_box_footer_new();
6279
  }
6280
  }
6281
  break;
6282
 
6283
  case 'files': {
6284
  // Original source file related settings
 
6285
  {
6286
+ $desc = $wppa_subtab_names[$tab]['1'];
6287
+ wppa_setting_tab_description($desc);
6288
+ wppa_setting_box_header_new($tab);
6289
 
6290
+ $name = __('Keep sourcefiles', 'wp-photo-album-plus');
6291
+ $desc = __('Keep the original uploaded and imported photo files.', 'wp-photo-album-plus');
6292
+ $help = __('The files will be kept in a separate directory with subdirectories for each album', 'wp-photo-album-plus');
6293
+ $help .= '<br />'.__('These files can be used to update the photos used in displaying in wppa+ and optionally for downloading original, un-downsized images.', 'wp-photo-album-plus');
6294
+ $slug = 'wppa_keep_source';
6295
+ $html = wppa_checkbox($slug);
6296
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
6297
 
6298
+ $name = __('Source directory', 'wp-photo-album-plus');
6299
+ $desc = __('The path to the directory where the original photofiles will be saved.', 'wp-photo-album-plus');
6300
+ $help = __('You may change the directory path, but it can not be an url.', 'wp-photo-album-plus');
6301
+ $help .= '<br />'.__('The parent of the directory that you enter here must exist and be writable.', 'wp-photo-album-plus');
6302
+ $help .= '<br />'.__('The directory itsself will be created if it does not exist yet.', 'wp-photo-album-plus');
6303
+ $slug = 'wppa_source_dir';
6304
+ $html = wppa_input($slug, '90%');
6305
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
6306
 
6307
+ $name = __('Keep sync', 'wp-photo-album-plus');
6308
+ $desc = __('Keep source synchronously with wppa system.', 'wp-photo-album-plus');
6309
+ $help = __('If checked, photos that are deleted from wppa, will also be removed from the sourcefiles.', 'wp-photo-album-plus');
6310
+ $help .= '<br />'.__('Also, copying or moving photos to different albums, will also copy/move the sourcefiles.', 'wp-photo-album-plus');
6311
+ $slug = 'wppa_keep_sync';
6312
+ $html = wppa_checkbox($slug);
6313
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
6314
 
6315
+ wppa_setting_box_footer_new();
6316
  }
6317
  }
6318
  break;
6319
 
6320
  case 'new': {
6321
  // New albums / photos related settings
 
6322
  {
6323
+ $desc = $wppa_subtab_names[$tab]['1'];
6324
+ wppa_setting_tab_description($desc);
6325
+ wppa_setting_box_header_new($tab);
6326
 
6327
+ $opts = array( __('--- off ---', 'wp-photo-album-plus'),
6328
+ sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus'), '1'),
6329
+ sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
6330
+ sprintf( _n('%d day', '%d days', '2', 'wp-photo-album-plus'), '2'),
6331
+ sprintf( _n('%d day', '%d days', '3', 'wp-photo-album-plus'), '3'),
6332
+ sprintf( _n('%d day', '%d days', '4', 'wp-photo-album-plus'), '4'),
6333
+ sprintf( _n('%d day', '%d days', '5', 'wp-photo-album-plus'), '5'),
6334
+ sprintf( _n('%d day', '%d days', '6', 'wp-photo-album-plus'), '6'),
6335
+ sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus'), '1'),
6336
+ sprintf( _n('%d day', '%d days', '8', 'wp-photo-album-plus'), '8'),
6337
+ sprintf( _n('%d day', '%d days', '9', 'wp-photo-album-plus'), '9'),
6338
+ sprintf( _n('%d day', '%d days', '10', 'wp-photo-album-plus'), '10'),
6339
+ sprintf( _n('%d week', '%d weeks', '2', 'wp-photo-album-plus'), '2'),
6340
+ sprintf( _n('%d week', '%d weeks', '3', 'wp-photo-album-plus'), '3'),
6341
+ sprintf( _n('%d week', '%d weeks', '4', 'wp-photo-album-plus'), '4'),
6342
+ sprintf( _n('%d month', '%d months', '1', 'wp-photo-album-plus'), '1'),
6343
+ );
6344
+ $vals = array( 0,
6345
+ 60*60,
6346
+ 60*60*24,
6347
+ 60*60*24*2,
6348
+ 60*60*24*3,
6349
+ 60*60*24*4,
6350
+ 60*60*24*5,
6351
+ 60*60*24*6,
6352
+ 60*60*24*7,
6353
+ 60*60*24*8,
6354
+ 60*60*24*9,
6355
+ 60*60*24*10,
6356
+ 60*60*24*7*2,
6357
+ 60*60*24*7*3,
6358
+ 60*60*24*7*4,
6359
+ 60*60*24*30,
6360
+ );
6361
 
6362
+ $name = __('New Album', 'wp-photo-album-plus');
6363
+ $desc = __('Maximum time an album is indicated as New', 'wp-photo-album-plus');
6364
+ $help = '';
6365
+ $slug = 'wppa_max_album_newtime';
6366
+ $html = wppa_select($slug, $opts, $vals);
6367
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
6368
 
6369
+ $name = __('New Photo', 'wp-photo-album-plus');
6370
+ $desc = __('Maximum time a photo is indicated as New', 'wp-photo-album-plus');
6371
+ $help = '';
6372
+ $slug = 'wppa_max_photo_newtime';
6373
+ $html = wppa_select($slug, $opts, $vals);
6374
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
6375
 
6376
+ $name = __('Modified Album', 'wp-photo-album-plus');
6377
+ $desc = __('Maximum time an album is indicated as Modified', 'wp-photo-album-plus');
6378
+ $help = '';
6379
+ $slug = 'wppa_max_album_modtime';
6380
+ $html = wppa_select($slug, $opts, $vals);
6381
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
6382
 
6383
+ $name = __('Modified Photo', 'wp-photo-album-plus');
6384
+ $desc = __('Maximum time a photo is indicated as Modified', 'wp-photo-album-plus');
6385
+ $help = '';
6386
+ $slug = 'wppa_max_photo_modtime';
6387
+ $html = wppa_select($slug, $opts, $vals);
6388
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
6389
 
6390
+ $name = __('Use text labels', 'wp-photo-album-plus');
6391
+ $desc = __('Use editable text for the New and Modified labels', 'wp-photo-album-plus');
6392
+ $help = __('If UNticked, you can specify the urls for custom images to be used.', 'wp-photo-album-plus');
6393
+ $slug = 'wppa_new_mod_label_is_text';
6394
+ $onch = 'wppaRefreshAfter();';
6395
+ $html = wppa_checkbox($slug,$onch);
6396
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
6397
 
6398
+ $opts = array(
6399
+ __('Red', 'wp-photo-album-plus'),
6400
+ __('Orange', 'wp-photo-album-plus'),
6401
+ __('Yellow', 'wp-photo-album-plus'),
6402
+ __('Green', 'wp-photo-album-plus'),
6403
+ __('Blue', 'wp-photo-album-plus'),
6404
+ __('Purple', 'wp-photo-album-plus'),
6405
+ __('Black/white', 'wp-photo-album-plus'),
6406
+ );
6407
+ $vals = array(
6408
+ 'red',
6409
+ 'orange',
6410
+ 'yellow',
6411
+ 'green',
6412
+ 'blue',
6413
+ 'purple',
6414
+ 'black',
6415
+ );
6416
 
6417
+ $name = __('New label', 'wp-photo-album-plus');
6418
+ $desc = __('Specify the "New" indicator details.', 'wp-photo-album-plus');
6419
+ $help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
6420
+ $slug1 = 'wppa_new_label_text';
6421
+ $slug2 = 'wppa_new_label_color';
6422
+ $html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
6423
+ $html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
6424
+ wppa_setting_new($slug1, '6', $name, $desc, $html1.' '.$html2, $help);
6425
+
6426
+ $name = __('Modified label', 'wp-photo-album-plus');
6427
+ $desc = __('Specify the "Modified" indicator details.', 'wp-photo-album-plus');
6428
+ $help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
6429
+ $slug1 = 'wppa_mod_label_text';
6430
+ $slug2 = 'wppa_mod_label_color';
6431
+ $html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
6432
+ $html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
6433
+ wppa_setting_new($slug1, '7', $name, $desc, $html1.' '.$html2, $help);
6434
+
6435
+ $name = __('New label', 'wp-photo-album-plus');
6436
+ $desc = __('Specify the "New" indicator url.', 'wp-photo-album-plus');
6437
+ $help = ' ';
6438
+ $slug = 'wppa_new_label_url';
6439
+ $html = wppa_input($slug, '300px');
6440
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
6441
 
6442
+ $name = __('Modified label', 'wp-photo-album-plus');
6443
+ $desc = __('Specify the "Modified" indicator url.', 'wp-photo-album-plus');
6444
+ $help = ' ';
6445
+ $slug = 'wppa_mod_label_url';
6446
+ $html = wppa_input($slug, '300px');
6447
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
6448
 
6449
+ $name = __('Limit LasTen New', 'wp-photo-album-plus');
6450
+ $desc = __('Limits the LasTen photos to those that are \'New\', or newly modified.', 'wp-photo-album-plus');
6451
+ $help = __('If you tick this box and configured the new photo time, you can even limit the number in LasTen Count, or set that number to an unlikely high value.', 'wp-photo-album-plus');
6452
+ $slug = 'wppa_lasten_limit_new';
6453
+ $html = wppa_checkbox($slug) . wppa_see_also( 'widget', '1', '8' );
6454
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
6455
 
6456
+ $name = __('LasTen use Modified', 'wp-photo-album-plus');
6457
+ $desc = __('Use the time modified rather than time upload for LasTen widget/shortcode.', 'wp-photo-album-plus');
6458
+ $help = '';
6459
+ $slug = 'wppa_lasten_use_modified';
6460
+ $html = wppa_checkbox($slug);
6461
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
6462
 
6463
+ $name = __('Apply Newphoto desc', 'wp-photo-album-plus');
6464
+ $desc = __('Give each new photo a standard description.', 'wp-photo-album-plus');
6465
+ $help = __('If checked, each new photo will get the description (template) as specified in the next item.', 'wp-photo-album-plus');
6466
+ $slug = 'wppa_apply_newphoto_desc';
6467
+ $html = wppa_checkbox($slug);
6468
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
6469
 
6470
+ $name = __('New photo desc', 'wp-photo-album-plus');
6471
+ $desc = __('The description (template) to add to a new photo.', 'wp-photo-album-plus');
6472
+ $help = __('Enter the default description.', 'wp-photo-album-plus');
6473
+ $help .= '<br />'.__('If you use html, please check item B-1 of this table.', 'wp-photo-album-plus');
6474
+ $help .= '<br />'.__('If you tick the checkbox, linebreaks and redundand spaces will be removed.', 'wp-photo-album-plus');
6475
+ $slug = 'wppa_newphoto_description';
6476
+ $slug2 = 'wppa_compress_newdesc';
6477
+ $html = wppa_textarea($slug, $name) .
6478
+ '<br />' .
6479
+ __('Compress', 'wp-photo-album-plus') .
6480
+ wppa_checkbox($slug2);
6481
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
6482
 
6483
+ $name = __('New photo owner', 'wp-photo-album-plus');
6484
+ $desc = __('The owner of a new uploaded photo.', 'wp-photo-album-plus');
6485
+ $help = __('If you leave this blank, the uploader will be set as the owner', 'wp-photo-album-plus');
6486
+ $slug = 'wppa_newphoto_owner';
6487
+ $html = wppa_input($slug, '50px', '', __('leave blank or enter login name', 'wp-photo-album-plus'));
6488
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
6489
+
6490
+ $name = __('Upload limit', 'wp-photo-album-plus');
6491
+ $desc = __('New albums are created with this upload limit.', 'wp-photo-album-plus');
6492
+ $help = __('Administrators can change the limit settings in the "Edit Album Information" admin page.', 'wp-photo-album-plus');
6493
+ $help .= '<br />'.(__('A value of 0 means: no limit.', 'wp-photo-album-plus'));
6494
+ $slug = 'wppa_upload_limit_count';
6495
+ $html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus'));
6496
+ $slug = 'wppa_upload_limit_time';
6497
+ $opts = array( __('for ever', 'wp-photo-album-plus'),
6498
+ __('per hour', 'wp-photo-album-plus'),
6499
+ __('per day', 'wp-photo-album-plus'),
6500
+ __('per week', 'wp-photo-album-plus'),
6501
+ __('per month', 'wp-photo-album-plus'), // 30 days
6502
+ __('per year', 'wp-photo-album-plus')); // 364 days
6503
+ $vals = array( '0', '3600', '86400', '604800', '2592000', '31449600');
6504
+ $html .= wppa_select($slug, $opts, $vals);
6505
+ wppa_setting_new(false, '15', $name, $desc, $html, $help);
6506
+
6507
+ $name = __('Default parent', 'wp-photo-album-plus');
6508
+ $desc = __('The parent album of new albums.', 'wp-photo-album-plus');
6509
+ $help = '';
6510
+ $slug = 'wppa_default_parent';
6511
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
6512
+ $vals = array( '0', '-1');
6513
+ $albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
6514
+ if ( $albs ) {
6515
+ foreach ( $albs as $alb ) {
6516
+ $opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
6517
+ $vals[] = $alb['id'];
6518
+ }
6519
  }
6520
+ $html = wppa_select($slug, $opts, $vals);
6521
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
 
6522
 
6523
+ $name = __('Default parent always', 'wp-photo-album-plus');
6524
+ $desc = __('The parent album of new albums is always the default, except for administrators.', 'wp-photo-album-plus');
6525
+ $help = '';
6526
+ $slug = 'wppa_default_parent_always';
6527
+ $html = wppa_checkbox($slug);
6528
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
6529
 
6530
+ $name = __('Grant an album', 'wp-photo-album-plus');
6531
+ $desc = __('Create an album for each user logging in.', 'wp-photo-album-plus');
6532
+ $help = '';
6533
+ $slug = 'wppa_grant_an_album';
6534
+ $html = wppa_checkbox($slug);
6535
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
6536
 
6537
+ $name = __('Grant album name', 'wp-photo-album-plus');
6538
+ $desc = __('The name to be used for the album.', 'wp-photo-album-plus');
6539
+ $help = '';
6540
+ $slug = 'wppa_grant_name';
6541
+ $opts = array(__('Login name', 'wp-photo-album-plus'), __('Display name', 'wp-photo-album-plus'), __('Id', 'wp-photo-album-plus'), __('Firstname Lastname', 'wp-photo-album-plus'));
6542
+ $vals = array('login', 'display', 'id', 'firstlast');
6543
+ $html = wppa_select($slug, $opts, $vals);
6544
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
6545
 
6546
+ $name = __('Grant parent selection method', 'wp-photo-album-plus');
6547
+ $desc = __('The way the grant parents are defined.', 'wp-photo-album-plus');
6548
+ $help = '';
6549
+ $slug = 'wppa_grant_parent_sel_method';
6550
+ $opts = array( __('An album (multi)selectionbox', 'wp-photo-album-plus'),
6551
+ __('An album category', 'wp-photo-album-plus'),
6552
+ __('An index search token', 'wp-photo-album-plus'),
6553
+ );
6554
+ $vals = array( 'selectionbox',
6555
+ 'category',
6556
+ 'indexsearch'
6557
+ );
6558
+ $onch = 'wppaRefreshAfter();';
6559
+ $html = wppa_select($slug, $opts, $vals, $onch);
6560
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
6561
+
6562
+ switch( wppa_opt( 'grant_parent_sel_method' ) ) {
6563
+ case 'selectionbox':
6564
+ $name = __('Grant parent', 'wp-photo-album-plus');
6565
+ $desc = __('The parent album(s) of the auto created albums.', 'wp-photo-album-plus');
6566
+ $help = (__('You may select multiple albums. All logged in visitors will get their own sub-album in each granted parent.', 'wp-photo-album-plus'));
6567
+ $slug = 'wppa_grant_parent';
6568
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
6569
+ $vals = array( 'zero', '-1');
6570
+ $albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
6571
+ if ( $albs ) {
6572
+ foreach ( $albs as $alb ) {
6573
+ $opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
6574
+ $vals[] = $alb['id'];
6575
+ }
6576
  }
6577
+ $html = wppa_select_m($slug, $opts, $vals);//, '', '', true);
6578
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
6579
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6580
 
6581
+ case 'category':
6582
+ $name = __('Grant parent category', 'wp-photo-album-plus');
6583
+ $desc = __('The category of the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
6584
+ $help = '';
6585
+ $slug = 'wppa_grant_parent';
6586
+ $catlist = wppa_get_catlist();
6587
+ $opts = array();
6588
+ foreach( $catlist as $cat ) {
6589
+ $opts[] = $cat['cat'];
6590
+ }
6591
+ $vals = $opts;
6592
+ $html = wppa_select($slug, $opts, $vals);
6593
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
6594
+ break;
6595
+
6596
+ case 'indexsearch':
6597
+ $name = __('Grant parent index token', 'wp-photo-album-plus');
6598
+ $desc = __('The index token that defines the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
6599
+ $help = '';
6600
+ $slug = 'wppa_grant_parent';
6601
+ $html = wppa_input($slug, '150px');
6602
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
6603
+ break;
6604
+
6605
+ default:
6606
+ wppa_log( 'err', 'Unimplemented grant_parent_sel_method in settings page' );
6607
+ break;
6608
+ }
6609
 
6610
+ $name = __('Grant categories', 'wp-photo-album-plus');
6611
+ $desc = __('The categories a new granted album will get.', 'wp-photo-album-plus');
6612
+ $help = '';
6613
+ $slug = 'wppa_grant_cats';
6614
+ $html = wppa_input($slug, '150px');
6615
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
6616
 
6617
+ $name = __('Grant tags', 'wp-photo-album-plus');
6618
+ $desc = __('The default tags the photos in a new granted album will get.', 'wp-photo-album-plus');
6619
+ $help = '';
6620
+ $slug = 'wppa_grant_tags';
6621
+ $html = wppa_input($slug, '150px');
6622
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
6623
 
6624
+ $name = __('Grant restrict', 'wp-photo-album-plus');
6625
+ $desc = __('Only create albums for users with Album Admin rights', 'wp-photo-album-plus');
6626
+ $help = '';
6627
+ $slug = 'wppa_grant_restrict';
6628
+ $html = wppa_checkbox($slug) . wppa_see_also( 'admin', '1' );
6629
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help);
6630
+
6631
+ $name = __('Iptc 025 keywords to tags', 'wp-photo-album-plus');
6632
+ $desc = __('Convert IPTC025 keywords to tags during upload.', 'wp-photo-album-plus');
6633
+ $help = __('Saving IPTC data must be on for this feature', 'wp-photo-album-plus');
6634
+ $slug = 'wppa_ipc025_to_tags';
6635
+ $html = wppa_checkbox( $slug );
6636
+ wppa_setting_new($slug, '27', $name, $desc, $html, $help);
6637
+
6638
+ $name = __('Max user albums', 'wp-photo-album-plus');
6639
+ $desc = __('The max number of albums a user can create.', 'wp-photo-album-plus');
6640
+ $help = (__('The maximum number of albums a user can create when he is not admin and owner only is active', 'wp-photo-album-plus'));
6641
+ $help .= '<br />'.(__('A number of 0 means No limit', 'wp-photo-album-plus'));
6642
+ $slug = 'wppa_max_albums';
6643
+ $html = wppa_input($slug, '50px', '', 'albums');
6644
+ wppa_setting_new($slug, '28', $name, $desc, $html, $help);
6645
+
6646
+ $name = __('Default photo name', 'wp-photo-album-plus');
6647
+ $desc = __('Select the way the name of a new uploaded photo should be determined.', 'wp-photo-album-plus');
6648
+ $help = __('If you select an IPTC Tag and it is not found, the filename will be used instead.', 'wp-photo-album-plus');
6649
+ $slug = 'wppa_newphoto_name_method';
6650
+ $opts = array( __('Filename', 'wp-photo-album-plus'),
6651
+ __('Filename without extension', 'wp-photo-album-plus'),
6652
+ __('Filename without extension, spaces for hyphens', 'wp-photo-album-plus'),
6653
+ __('IPTC Tag 2#005 (Graphic name)', 'wp-photo-album-plus'),
6654
+ __('IPTC Tag 2#120 (Caption)', 'wp-photo-album-plus'),
6655
+ __('No name at all', 'wp-photo-album-plus'),
6656
+ __('Photo w#id (literally)', 'wp-photo-album-plus'),
6657
+ );
6658
+ $vals = array( 'filename',
6659
+ 'noext',
6660
+ 'noextspace',
6661
+ '2#005',
6662
+ '2#120',
6663
+ 'none',
6664
+ 'Photo w#id'
6665
+ );
6666
+ $html = wppa_select($slug, $opts, $vals);
6667
+ wppa_setting_new($slug, '29', $name, $desc, $html, $help);
6668
+
6669
+ $name = __('Default coverphoto', 'wp-photo-album-plus');
6670
+ $desc = __('Name of photofile to become cover image', 'wp-photo-album-plus');
6671
+ $help = (__('If you name a photofile like this setting before upload, it will become the coverimage automatically.', 'wp-photo-album-plus'));
6672
+ $slug = 'wppa_default_coverimage_name';
6673
+ $html = wppa_input($slug, '150px');
6674
+ wppa_setting_new($slug, '30', $name, $desc, $html, $help);
6675
+
6676
+ $name = __('Copy Timestamp', 'wp-photo-album-plus');
6677
+ $desc = __('Copy timestamp when copying photo.', 'wp-photo-album-plus');
6678
+ $help = (__('If checked, the copied photo is not "new"', 'wp-photo-album-plus'));
6679
+ $slug = 'wppa_copy_timestamp';
6680
+ $html = wppa_checkbox($slug);
6681
+ wppa_setting_new($slug, '31', $name, $desc, $html, $help);
 
 
 
 
 
 
 
6682
 
6683
+ $name = __('Copy Owner', 'wp-photo-album-plus');
6684
+ $desc = __('Copy the owner when copying photo.', 'wp-photo-album-plus');
6685
+ $help = '';
6686
+ $slug = 'wppa_copy_owner';
6687
+ $html = wppa_checkbox($slug);
6688
+ wppa_setting_new($slug, '32', $name, $desc, $html, $help);
6689
 
6690
+ $name = __('Copy Custom', 'wp-photo-album-plus');
6691
+ $desc = __('Copy the custom fields when copying photo.', 'wp-photo-album-plus');
6692
+ $help = '';
6693
+ $slug = 'wppa_copy_custom';
6694
+ $html = wppa_checkbox($slug);
6695
+ wppa_setting_new($slug, '33', $name, $desc, $html, $help);
6696
 
6697
+ $name = __('FE Albums public', 'wp-photo-album-plus');
6698
+ $desc = __('Frontend created albums are --- public ---', 'wp-photo-album-plus');
6699
+ $help = '';
6700
+ $slug = 'wppa_frontend_album_public';
6701
+ $html = wppa_checkbox($slug);
6702
+ wppa_setting_new($slug, '34', $name, $desc, $html, $help);
6703
 
6704
+ $name = __('Default album linktype', 'wp-photo-album-plus');
6705
+ $desc = __('The album linktype for new albums', 'wp-photo-album-plus');
6706
+ $help = '';
6707
+ $slug = 'wppa_default_album_linktype';
6708
+ $opts = array( __('the sub-albums and thumbnails', 'wp-photo-album-plus'),
6709
+ __('the sub-albums', 'wp-photo-album-plus'),
6710
+ __('the thumbnails', 'wp-photo-album-plus'),
6711
+ __('the album photos as slideshow', 'wp-photo-album-plus'),
6712
+ __('no link at all', 'wp-photo-album-plus')
6713
+ );
6714
 
6715
+ $vals = array( 'content',
6716
+ 'albums',
6717
+ 'thumbs',
6718
+ 'slide',
6719
+ 'none'
6720
+ );
6721
+ $html = wppa_select($slug, $opts, $vals);
6722
+ wppa_setting_new($slug, '35', $name, $desc, $html, $help);
6723
 
6724
+ $name = __('Sanitize files', 'wp-photo-album-plus');
6725
+ $desc = __('Sanitize filenames during import/upload', 'wp-photo-album-plus');
6726
+ $help = '';
6727
+ $slug = 'wppa_sanitize_import';
6728
+ $html = wppa_checkbox($slug);
6729
+ wppa_setting_new($slug, '36', $name, $desc, $html, $help);
6730
 
6731
+ $name = __('Remove accents', 'wp-photo-album-plus');
6732
+ $desc = __('Remove accents from filenames during import/upload', 'wp-photo-album-plus');
6733
+ $help = '';
6734
+ $slug = 'wppa_remove_accents';
6735
+ $html = wppa_checkbox($slug);
6736
+ wppa_setting_new($slug, '37', $name, $desc, $html, $help);
6737
 
6738
+ $name = __('Default photo status', 'wp-photo-album-plus');
6739
+ $desc = __('The status new photos will have', 'wp-photo-album-plus');
6740
+ $help = '';
6741
+ $slug = 'wppa_status_new';
6742
 
6743
+ $opts = array( __( 'Publish', 'wp-photo-album-plus' ),
6744
+ __( 'Pending', 'wp-photo-album-plus' ),
6745
+ __( 'Featured', 'wp-photo-album-plus' ),
6746
+ __( 'Private', 'wp-photo-album-plus' ),
6747
+ );
6748
+ $vals = array( 'publish',
6749
+ 'pending',
6750
+ 'featured',
6751
+ 'private',
6752
+ );
6753
+ $html = wppa_select( $slug, $opts, $vals);
6754
+ wppa_setting_new($slug, '38', $name, $desc, $html, $help);
6755
 
6756
+ wppa_setting_box_footer_new();
6757
  }
6758
  }
6759
  break;
6760
 
6761
  case 'admin': {
6762
  // WPPA+ related roles and capabilities
 
6763
  {
6764
+ $desc = $wppa_subtab_names[$tab]['1'];
6765
+ wppa_setting_tab_description($desc);
6766
 
6767
+ $coldef = array( __('Role', 'wp-photo-album-plus') => 'auto;',
6768
+ __('Album Admin', 'wp-photo-album-plus') => 'auto;',
6769
+ __('Upload', 'wp-photo-album-plus') => 'auto;',
6770
+ __('Import', 'wp-photo-album-plus') => 'auto;',
6771
+ __('Moderate', 'wp-photo-album-plus') => 'auto;',
6772
+ __('Export', 'wp-photo-album-plus') => 'auto;',
6773
+ __('Settings', 'wp-photo-album-plus') => 'auto;',
6774
+ __('Photo of the day', 'wp-photo-album-plus') => 'auto;',
6775
+ __('Comments', 'wp-photo-album-plus') => 'auto;',
6776
+ __('Documentation', 'wp-photo-album-plus') => 'auto;',
6777
+ __('Membership', 'wp-photo-album-plus') => 'auto;',
6778
+ );
6779
 
6780
 
6781
+ wppa_setting_box_header_new($tab, $coldef);
6782
 
6783
+ $wppacaps = array( 'wppa_admin',
6784
+ 'wppa_upload',
6785
+ 'wppa_import',
6786
+ 'wppa_moderate',
6787
+ 'wppa_export',
6788
+ 'wppa_settings',
6789
+ 'wppa_potd',
6790
+ 'wppa_comments',
6791
+ 'wppa_help',
6792
+ 'wppa_medal',
6793
+ );
6794
+ $opts = array( '',
6795
+ __('bronze', 'wp-photo-album-plus'),
6796
+ __('silver', 'wp-photo-album-plus'),
6797
+ __('gold', 'wp-photo-album-plus'),
6798
+ __('plus', 'wp-photo-album-plus'),
6799
+ __('basic', 'wp-photo-album-plus'),
6800
+ );
6801
+ $vals = array( 'none',
6802
+ 'bronze',
6803
+ 'silver',
6804
+ 'gold',
6805
+ 'plus',
6806
+ 'basic'
6807
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6808
 
6809
+ $roles = $wp_roles->roles;
6810
 
6811
+ foreach (array_keys($roles) as $key) {
6812
+ $role = $roles[$key];
6813
+ $rolename = translate_user_role( $role['name'] );
6814
 
6815
+ echo '
6816
+ <tr class="wppa-setting-new" >
6817
+ <td>' . $rolename . '</td>';
6818
+ $caps = $role['capabilities'];
6819
 
6820
+ for ($i = 0; $i < count($wppacaps) - 1; $i++) {
6821
+ if (isset($caps[$wppacaps[$i]])) {
6822
+ $yn = $caps[$wppacaps[$i]] ? true : false;
6823
+ }
6824
+ else $yn = false;
6825
+ $enabled = ( $key != 'administrator' );
6826
+ echo '
6827
+ <td>' . wppa_checkbox_e('caps-'.$wppacaps[$i].'-'.$key, $yn, '', '', $enabled) . '</td>';
6828
+ };
6829
 
6830
+ echo '<td>' . wppa_select($wppacaps[count($wppacaps) - 1].'-'.$key, $opts, $vals) . '</td>';
6831
 
6832
+ echo '</tr>';
6833
+ }
6834
 
6835
+ wppa_setting_box_footer_new();
6836
  }
6837
  // Frontend create Albums and upload Photos enabling and limiting settings
 
6838
  {
6839
+ $desc = $wppa_subtab_names[$tab]['2'];
6840
  wppa_setting_tab_description($desc);
6841
  $coldef = array( '#' => 'auto;',
6842
  __('Name', 'wp-photo-album-plus') => 'auto;',
6890
  $desc = __('Frontend album creation requires the user is logged in.', 'wp-photo-album-plus');
6891
  $help = '';
6892
  $slug = 'wppa_user_create_login';
6893
+ $html1 = wppa_checkbox($slug, 'wppaRefreshAfter();');
6894
  $html2 = '';
6895
  $html = array( $html1, $html2 );
6896
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
6932
  if ( wppa_get_option('wppa_'.$role.'_upload_limit_count', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_count', '0');
6933
  if ( wppa_get_option('wppa_'.$role.'_upload_limit_time', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_time', '0');
6934
  $name = sprintf(__('Upload limit %s', 'wp-photo-album-plus'), $t_role);
6935
+ if ( $role == 'loggedout' ) $desc = __('Limit upload capacity for logged out users.', 'wp-photo-album-plus') . wppa_see_also( 'admin', '2', '5' );
6936
  else $desc = sprintf(__('Limit upload capacity for the user role %s.', 'wp-photo-album-plus'), $t_role);
6937
+ if ( $role == 'loggedout' ) $help = __('This setting has only effect when User Create Album Login is unchecked.', 'wp-photo-album-plus');
6938
+ else $help = __('This limitation only applies to frontend uploads when the same userrole does not have the Upload checkbox checked.', 'wp-photo-album-plus');
6939
+ $help .= '<br />'.__('A value of 0 means: no limit.', 'wp-photo-album-plus') . wppa_see_also( 'admin', '1' );
6940
  $slug1 = 'wppa_'.$role.'_upload_limit_count';
6941
  $html1 = wppa_input($slug1, '50px', '', __('photos', 'wp-photo-album-plus'));
6942
  $slug2 = 'wppa_'.$role.'_upload_limit_time';
6943
  $html2 = wppa_select($slug2, $opts, $vals);
6944
  $html = array( $html1, $html2 );
6945
+ wppa_setting_new(false, '8.'.$t_role, $name, $desc, $html, $help, $role != 'loggedout' || ! wppa_switch( 'user_create_login' ) );
6946
  }
6947
 
6948
  foreach (array_keys($roles) as $role) {
6951
  $name = sprintf(__('Album limit %s', 'wp-photo-album-plus'), $t_role);
6952
  if ( $role == 'loggedout' ) $desc = __('Limit number of albums for logged out users.', 'wp-photo-album-plus');
6953
  else $desc = sprintf(__('Limit number of albums for the user role %s.', 'wp-photo-album-plus'), $t_role);
6954
+ $help = __('This limitation only applies to frontend create albums when the same userrole does not have the Album admin checkbox checked.', 'wp-photo-album-plus');
6955
+ $help .= '<br />'.__('A value of 0 means: no limit.', 'wp-photo-album-plus') . wppa_see_also( 'admin', '1' );
6956
  $slug1 = 'wppa_'.$role.'_album_limit_count';
6957
  $html1 = wppa_input($slug1, '50px', '', __('albums', 'wp-photo-album-plus'));
6958
  $slug2 = '';
6959
  $html2 = '';
6960
  $html = array( $html1, $html2 );
6961
+ wppa_setting_new(false, '9.'.$t_role, $name, $desc, $html, $help, $role != 'loggedout' || ! wppa_switch( 'user_upload_login' ) );
6962
  }
6963
 
6964
  $name = __('Upload one only', 'wp-photo-album-plus');
6973
  $name = __('Upload moderation', 'wp-photo-album-plus');
6974
  $desc = __('Uploaded photos need moderation.', 'wp-photo-album-plus');
6975
  $help = __('If checked, photos uploaded by users who do not have photo album admin access rights need moderation.', 'wp-photo-album-plus');
6976
+ $help .= '<br />'.__('Users who have photo album admin access rights can change the photo status to publish or featured.', 'wp-photo-album-plus');
6977
+ $help .= '<br />'.wppa_see_also( 'admin', '1' );
6978
  $slug = 'wppa_upload_moderate';
6979
  $html1 = wppa_checkbox($slug);
6980
  $html2 = '';
6983
 
6984
  $name = __('FE Upload private', 'wp-photo-album-plus');
6985
  $desc = __('Front-end uploaded photos status is set to private.', 'wp-photo-album-plus');
6986
+ $help = __('This setting overrules Upload moderation.', 'wp-photo-album-plus');
6987
  $slug = 'wppa_fe_upload_private';
6988
  $html1 = wppa_checkbox($slug);
6989
  $html2 = '';
7041
  wppa_setting_box_footer_new();
7042
  }
7043
  // Import related settings
 
7044
  {
7045
+ $desc = $wppa_subtab_names[$tab]['3'];
7046
  wppa_setting_tab_description($desc);
7047
  wppa_setting_box_header_new($tab);
7048
 
7050
  $desc = __('Create wp page that shows the album when a directory to album is imported.', 'wp-photo-album-plus');
7051
  $help = __('As soon as an album is created when a directory is imported, a wp page is made that displays the album content.', 'wp-photo-album-plus');
7052
  $slug = 'wppa_newpag_create';
7053
+ $onch = '';
7054
+ $html = wppa_checkbox($slug, $onch);
7055
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
7056
 
7057
  $name = __('Page content', 'wp-photo-album-plus');
7139
  wppa_setting_box_footer_new();
7140
  }
7141
  // Admin Functionality restrictions for non administrators
 
7142
  {
7143
+ $desc = $wppa_subtab_names[$tab]['4'];
7144
  wppa_setting_tab_description($desc);
7145
  wppa_setting_box_header_new($tab);
7146
 
7224
  wppa_setting_box_footer_new();
7225
  }
7226
  // Miscellaneous limiting settings
 
7227
  {
7228
+ $desc = $wppa_subtab_names[$tab]['5'];
7229
  wppa_setting_tab_description($desc);
7230
  wppa_setting_box_header_new($tab);
7231
 
7265
 
7266
  $name = __('Fe Edit Theme CSS', 'wp-photo-album-plus');
7267
  $desc = __('The front-end edit photo dialog uses the theme CSS.', 'wp-photo-album-plus');
7268
+ $help = __('This setting has effect when Frontend Edit is set to \'Classic\' only.', 'wp-photo-album-plus');
7269
  $slug = 'wppa_upload_edit_theme_css';
7270
  $html = wppa_checkbox($slug);
7271
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
7272
 
7273
  $name = __('Fe Edit New Items', 'wp-photo-album-plus');
7274
  $desc = __('The items that are fe editable', 'wp-photo-album-plus');
7275
+ $help = wppa_see_also( 'custom', '2' );
7276
  $slug1 = 'wppa_fe_edit_name';
7277
  $slug2 = 'wppa_fe_edit_desc';
7278
  $slug3 = 'wppa_fe_edit_tags';
7434
  $name = __('Super user', 'wp-photo-album-plus');
7435
  $desc = __('Give these users all rights in wppa.', 'wp-photo-album-plus');
7436
  $help = __('This gives the user all the administrator privileges within wppa.', 'wp-photo-album-plus');
7437
+ $help .= '<br />'.__('Make sure the user also has a role that has all the capability boxes ticked', 'wp-photo-album-plus');
7438
+ $help .= '<br />'.wppa_see_also( 'admin', '1' );
7439
  $slug = 'wppa_superuser_user';
7440
  $superlist = wppa_get_option( 'wppa_super_users', array() );
7441
 
7480
  wppa_setting_box_footer_new();
7481
  }
7482
  // Miscellaneous admin related settings
 
7483
  {
7484
+ $desc = $wppa_subtab_names[$tab]['6'];
7485
  wppa_setting_tab_description($desc);
7486
  wppa_setting_box_header_new($tab);
7487
 
7545
  $slug = 'wppa_photo_admin_max_albums';
7546
  $opts = array( __( '--- off ---', 'wp-photo-album-plus'), '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
7547
  $vals = array( '0', '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
7548
+ $html = wppa_select($slug, $opts, $vals, '', '', '', 'wppaRefreshAfter();');
7549
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
7550
 
7551
  $name = __('Comment admin page size', 'wp-photo-album-plus');
7607
  break;
7608
 
7609
  case 'maintenance': {
7610
+ // Regular maintenance procedures
7611
  {
7612
  $desc = $wppa_subtab_names[$tab]['1'];
7613
  wppa_setting_tab_description($desc);
7921
  $html = array($html1, $html2, $html3, $html4);
7922
  wppa_setting_new(false, '22', $name, $desc, $html, $help);
7923
 
7924
+ wppa_setting_box_footer_new();
7925
+ }
7926
+ // Clearing and other irreversable maintenance procedures
7927
+ {
7928
+ $desc = $wppa_subtab_names[$tab]['2'];
7929
+ wppa_setting_tab_description($desc);
7930
+
7931
+ $coldef = array( '#' => '24px;',
7932
+ __('Name', 'wp-photo-album-plus') => 'auto;',
7933
+ __('Description', 'wp-photo-album-plus') => 'auto;',
7934
+ __('Specification', 'wp-photo-album-plus') => 'auto;',
7935
+ __('Do it!', 'wp-photo-album-plus') => 'auto;',
7936
+ __('Status', 'wp-photo-album-plus') => 'auto;',
7937
+ __('To Go', 'wp-photo-album-plus') => 'auto;',
7938
+ __('Help', 'wp-photo-album-plus') => '24px;',
7939
+ );
7940
+
7941
+ wppa_setting_box_header_new($tab, $coldef);
7942
+
7943
  $name = __('Clear ratings', 'wp-photo-album-plus');
7944
  $desc = __('Reset all ratings.', 'wp-photo-album-plus');
7945
  $help = __('WARNING: If checked, this will clear all ratings in the system!', 'wp-photo-album-plus');
7949
  $html3 = '';
7950
  $html4 = '';
7951
  $html = array($html1, $html2, $html3, $html4);
7952
+ wppa_setting_new(false, '1', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7953
 
7954
  $name = __('Clear viewcounts', 'wp-photo-album-plus');
7955
  $desc = __('Reset all viewcounts.', 'wp-photo-album-plus');
7960
  $html3 = '';
7961
  $html4 = '';
7962
  $html = array($html1, $html2, $html3, $html4);
7963
+ wppa_setting_new(false, '2', $name, $desc, $html, $help);
7964
 
7965
  $name = __('Reset IPTC', 'wp-photo-album-plus');
7966
  $desc = __('Clear all IPTC data.', 'wp-photo-album-plus');
7971
  $html3 = '';
7972
  $html4 = '';
7973
  $html = array($html1, $html2, $html3, $html4);
7974
+ wppa_setting_new(false, '3', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7975
 
7976
  $name = __('Reset EXIF', 'wp-photo-album-plus');
7977
  $desc = __('Clear all EXIF data.', 'wp-photo-album-plus');
7982
  $html3 = '';
7983
  $html4 = '';
7984
  $html = array($html1, $html2, $html3, $html4);
7985
+ wppa_setting_new(false, '4', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
7986
 
7987
  $name = __('Apply Default Photoname', 'wp-photo-album-plus');
7988
  $desc = __('Apply Default photo name on all photos in the system.', 'wp-photo-album-plus');
7989
+ $help = __('Puts the content of Default photo name in all photo name.', 'wp-photo-album-plus');
7990
+ $help .= '<br />'.wppa_see_also( 'new', '1', '29' );
7991
  $slug2 = 'wppa_apply_default_photoname_all';
7992
  $html1 = '';
7993
  $html2 = wppa_maintenance_button( $slug2 );
7994
  $html3 = wppa_status_field( $slug2 );
7995
  $html4 = wppa_togo_field( $slug2 );
7996
  $html = array($html1, $html2, $html3, $html4);
7997
+ wppa_setting_new(false, '5', $name, $desc, $html, $help);
7998
 
7999
  $name = __('Apply New Photodesc', 'wp-photo-album-plus');
8000
  $desc = __('Apply New photo description on all photos in the system.', 'wp-photo-album-plus');
8001
+ $help = __('Puts the content of New photo desc in all photo descriptions.', 'wp-photo-album-plus');
8002
+ $help .= '<br />'.wppa_see_also( 'new', '1', '13' );
8003
  $slug2 = 'wppa_apply_new_photodesc_all';
8004
  $html1 = '';
8005
  $html2 = wppa_maintenance_button( $slug2 );
8006
  $html3 = wppa_status_field( $slug2 );
8007
  $html4 = wppa_togo_field( $slug2 );
8008
  $html = array($html1, $html2, $html3, $html4);
8009
+ wppa_setting_new(false, '6', $name, $desc, $html, $help);
8010
 
8011
  $name = __('Append to photodesc', 'wp-photo-album-plus');
8012
  $desc = __('Append this text to all photo descriptions.', 'wp-photo-album-plus');
8019
  $html3 = wppa_status_field( $slug2 );
8020
  $html4 = wppa_togo_field( $slug2 );
8021
  $html = array($html1, $html2, $html3, $html4);
8022
+ wppa_setting_new(false, '7', $name, $desc, $html, $help);
8023
 
8024
  $name = __('Remove from photodesc', 'wp-photo-album-plus');
8025
  $desc = __('Remove this text from all photo descriptions.', 'wp-photo-album-plus');
8032
  $html3 = wppa_status_field( $slug2 );
8033
  $html4 = wppa_togo_field( $slug2 );
8034
  $html = array($html1, $html2, $html3, $html4);
8035
+ wppa_setting_new(false, '8', $name, $desc, $html, $help);
8036
 
8037
  $name = __('Remove empty albums', 'wp-photo-album-plus');
8038
  $desc = __('Removes albums that are not used.', 'wp-photo-album-plus');
8043
  $html3 = wppa_status_field( $slug2 );
8044
  $html4 = wppa_togo_field( $slug2 );
8045
  $html = array($html1, $html2, $html3, $html4);
8046
+ wppa_setting_new(false, '9', $name, $desc, $html, $help);
8047
 
8048
  $name = __('Remove file-ext', 'wp-photo-album-plus');
8049
  $desc = __('Remove possible file extension from photo name.', 'wp-photo-album-plus');
8054
  $html3 = wppa_status_field( $slug2 );
8055
  $html4 = wppa_togo_field( $slug2 );
8056
  $html = array($html1, $html2, $html3, $html4);
8057
+ wppa_setting_new(false, '10', $name, $desc, $html, $help);
8058
 
8059
  $name = __('Re-add file-ext', 'wp-photo-album-plus');
8060
  $desc = __('Revert the <b>Remove file-ext</b> action.', 'wp-photo-album-plus');
8065
  $html3 = wppa_status_field( $slug2 );
8066
  $html4 = wppa_togo_field( $slug2 );
8067
  $html = array($html1, $html2, $html3, $html4);
8068
+ wppa_setting_new(false, '11', $name, $desc, $html, $help);
8069
 
8070
  $name = __('All to lower', 'wp-photo-album-plus');
8071
  $desc = __('Convert all file-extensions to lowercase.', 'wp-photo-album-plus');
8077
  $html3 = wppa_status_field( $slug2 );
8078
  $html4 = wppa_togo_field( $slug2 );
8079
  $html = array($html1, $html2, $html3, $html4);
8080
+ wppa_setting_new(false, '12', $name, $desc, $html, $help);
8081
 
8082
  $name = __('Watermark all', 'wp-photo-album-plus');
8083
  $desc = __('Apply watermark according to current settings to all photos.', 'wp-photo-album-plus');
8088
  $html3 = wppa_status_field( $slug2 );
8089
  $html4 = wppa_togo_field( $slug2 );
8090
  $html = array($html1, $html2, $html3, $html4);
8091
+ wppa_setting_new(false, '13', $name, $desc, $html, $help, wppa_switch( 'watermark_on' ));
8092
 
8093
  $name = __('Create all autopages', 'wp-photo-album-plus');
8094
  $desc = __('Create all the pages to display slides individually.', 'wp-photo-album-plus');
8095
+ $help = '<br />'.__('Make sure you have a custom menu and the "Automatically add new top-level pages to this menu" box UNticked!!', 'wp-photo-album-plus');
8096
+ $help .= wppa_see_also( 'system', '1', '8' );
8097
  $slug2 = 'wppa_create_all_autopages';
8098
  $html1 = '';
8099
  $html2 = wppa_maintenance_button( $slug2 );
8100
  $html3 = wppa_status_field( $slug2 );
8101
  $html4 = wppa_togo_field( $slug2 );
8102
  $html = array($html1, $html2, $html3, $html4);
8103
+ wppa_setting_new(false, '14', $name, $desc, $html, $help);
8104
 
8105
  $name = __('Delete all autopages', 'wp-photo-album-plus');
8106
  $desc = __('Delete all the pages to display slides individually.', 'wp-photo-album-plus');
8107
+ $help = wppa_see_also( 'system', '1', '8' );
 
8108
  $slug2 = 'wppa_delete_all_autopages';
8109
  $html1 = '';
8110
  $html2 = wppa_maintenance_button( $slug2 );
8111
  $html3 = wppa_status_field( $slug2 );
8112
  $html4 = wppa_togo_field( $slug2 );
8113
  $html = array($html1, $html2, $html3, $html4);
8114
+ wppa_setting_new(false, '15', $name, $desc, $html, $help);
8115
 
8116
  $name = __('Leading zeroes', 'wp-photo-album-plus');
8117
  $desc = __('If photoname numeric, add leading zeros', 'wp-photo-album-plus');
8123
  $html3 = wppa_status_field( $slug2 );
8124
  $html4 = wppa_togo_field( $slug2 );
8125
  $html = array($html1, $html2, $html3, $html4);
8126
+ wppa_setting_new(false, '16', $name, $desc, $html, $help);
8127
 
8128
  $name = __('Add GPX tag', 'wp-photo-album-plus');
8129
  $desc = __('Make sure photos with gpx data have a Gpx tag', 'wp-photo-album-plus');
8134
  $html3 = wppa_status_field( $slug2 );
8135
  $html4 = wppa_togo_field( $slug2 );
8136
  $html = array($html1, $html2, $html3, $html4);
8137
+ wppa_setting_new(false, '17', $name, $desc, $html, $help);
8138
 
8139
  $name = __('Add HD tag', 'wp-photo-album-plus');
8140
  $desc = __('Make sure photos >= 1920 x 1080 have a HD tag', 'wp-photo-album-plus');
8145
  $html3 = wppa_status_field( $slug2 );
8146
  $html4 = wppa_togo_field( $slug2 );
8147
  $html = array($html1, $html2, $html3, $html4);
8148
+ wppa_setting_new(false, '18', $name, $desc, $html, $help);
8149
 
8150
  if ( function_exists( 'ewww_image_optimizer') ) {
8151
  $name = __('Optimize files', 'wp-photo-album-plus');
8157
  $html3 = wppa_status_field( $slug2 );
8158
  $html4 = wppa_togo_field( $slug2 );
8159
  $html = array($html1, $html2, $html3, $html4);
8160
+ wppa_setting_new(false, '19', $name, $desc, $html, $help);
8161
  }
8162
 
8163
  $name = __('Edit tag', 'wp-photo-album-plus');
8179
  $html4 = wppa_status_field( $slug3 );
8180
  $html5 = wppa_togo_field( $slug3 );
8181
  $html = array( $html1 . '<br />' . $html2, $html3, $html4, $html5 );
8182
+ wppa_setting_new( false, '20', $name, $desc, $html, $help);
8183
 
8184
  $name = __('Synchronize Cloudinary', 'wp-photo-album-plus');
8185
  $desc = __('Removes/adds images in the cloud.', 'wp-photo-album-plus');
8186
  $help = __('Removes old images and verifies/adds new images to Cloudinary.', 'wp-photo-album-plus');
8187
+ $help .= '<br />'.wppa_see_also( 'miscadv', '4', '7' );
8188
  $slug2 = 'wppa_sync_cloud';
8189
  $html1 = '';
8190
  $html2 = wppa_maintenance_button( $slug2 );
8191
  $html3 = wppa_status_field( $slug2 );
8192
  $html4 = wppa_togo_field( $slug2 );
8193
  $html = array($html1, $html2, $html3, $html4);
8194
+ wppa_setting_new(false, '21', $name, $desc, $html, $help);
8195
 
8196
  $name = __('Fix tags', 'wp-photo-album-plus');
8197
  $desc = __('Make sure photo tags format is uptodate', 'wp-photo-album-plus');
8202
  $html3 = wppa_status_field( $slug2 );
8203
  $html4 = wppa_togo_field( $slug2 );
8204
  $html = array($html1, $html2, $html3, $html4);
8205
+ wppa_setting_new(false, '22', $name, $desc, $html, $help);
8206
 
8207
  $name = __('Fix cats', 'wp-photo-album-plus');
8208
  $desc = __('Make sure album cats format is uptodate', 'wp-photo-album-plus');
8213
  $html3 = wppa_status_field( $slug2 );
8214
  $html4 = wppa_togo_field( $slug2 );
8215
  $html = array($html1, $html2, $html3, $html4);
8216
+ wppa_setting_new(false, '23', $name, $desc, $html, $help);
8217
 
8218
  $name = __('Set owner to name', 'wp-photo-album-plus');
8219
  $desc = __('If photoname equals user display name, set him owner.', 'wp-photo-album-plus');
8224
  $html3 = wppa_status_field( $slug2 );
8225
  $html4 = wppa_togo_field( $slug2 );
8226
  $html = array($html1, $html2, $html3, $html4);
8227
+ wppa_setting_new(false, '24', $name, $desc, $html, $help);
8228
 
8229
  $name = __('Move all photos', 'wp-photo-album-plus');
8230
  $desc = __('Move all photos from one album to another album.', 'wp-photo-album-plus');
8235
  $html3 = wppa_status_field( $slug2 );
8236
  $html4 = wppa_togo_field( $slug2 );
8237
  $html = array($html1, $html2, $html3, $html4);
8238
+ wppa_setting_new(false, '25', $name, $desc, $html, $help);
8239
 
8240
  if ( wppa_get_total_album_count() > 200 ) { // Many albums: input id
8241
 
8245
  $slug = 'wppa_move_all_photos_from';
8246
  $html = wppa_input($slug, '100px' );
8247
  $html = array($html, '', '', '');
8248
+ wppa_setting_new(false, '26', $name, $desc, $html, $help);
8249
 
8250
  $name = __('To', 'wp-photo-album-plus');
8251
  $desc = __('Move to album number', 'wp-photo-album-plus');
8253
  $slug = 'wppa_move_all_photos_to';
8254
  $html = wppa_input($slug, '100px' );
8255
  $html = array($html, '', '', '');
8256
+ wppa_setting_new(false, '27', $name, $desc, $html, $help);
8257
 
8258
  }
8259
  else { // Few albums: selectionbox
8281
  ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8282
  ' />';
8283
  $html = array($html, '', '', '');
8284
+ wppa_setting_new(false, '28', $name, $desc, $html, $help);
8285
 
8286
  $name = __('To', 'wp-photo-album-plus');
8287
  $desc = __('Move to album', 'wp-photo-album-plus');
8306
  ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8307
  ' />';
8308
  $html = array($html, '', '', '');
8309
+ wppa_setting_new(false, '29', $name, $desc, $html, $help);
8310
  }
8311
 
8312
  $name = __('Remove hypens from photonames', 'wp-photo-album-plus');
8318
  $html3 = wppa_status_field( $slug2 );
8319
  $html4 = wppa_togo_field( $slug2 );
8320
  $html = array($html1, $html2, $html3, $html4);
8321
+ wppa_setting_new(false, '30', $name, $desc, $html, $help);
8322
 
8323
  $name = __('PNG to JPG', 'wp-photo-album-plus');
8324
  $desc = __('Convert all .png files to .jpg files', 'wp-photo-album-plus');
8329
  $html3 = wppa_status_field( $slug2 );
8330
  $html4 = wppa_togo_field( $slug2 );
8331
  $html = array($html1, $html2, $html3, $html4);
8332
+ wppa_setting_new(false, '31', $name, $desc, $html, $help);
8333
 
8334
  $name = __('Fix mp4 meta data', 'wp-photo-album-plus');
8335
  $desc = __('Import framesize, creationdate and duration from mp4 video files', 'wp-photo-album-plus');
8340
  $html3 = wppa_status_field( $slug2 );
8341
  $html4 = wppa_togo_field( $slug2 );
8342
  $html = array($html1, $html2, $html3, $html4);
8343
+ wppa_setting_new(false, '32', $name, $desc, $html, $help);
8344
 
8345
  $name = __('Fix user ids', 'wp-photo-album-plus');
8346
  $desc = __('Fill in missing user ids to ratings and comments', 'wp-photo-album-plus');
8351
  $html3 = wppa_status_field( $slug2 );
8352
  $html4 = wppa_togo_field( $slug2 );
8353
  $html = array($html1, $html2, $html3, $html4);
8354
+ wppa_setting_new(false, '33', $name, $desc, $html, $help);
8355
 
8356
  $name = __('Re-init custom and tags', 'wp-photo-album-plus');
8357
  $desc = __('Re-initialize custom photo fields and default tags', 'wp-photo-album-plus');
8362
  $html3 = wppa_status_field( $slug2 );
8363
  $html4 = wppa_togo_field( $slug2 );
8364
  $html = array($html1, $html2, $html3, $html4);
8365
+ wppa_setting_new(false, '34', $name, $desc, $html, $help);
8366
 
8367
  if ( current_user_can( 'administrator' ) ) {
8368
  $name = __('Custom album proc', 'wp-photo-album-plus');
8374
  $html3 = wppa_status_field( $slug2 );
8375
  $html4 = wppa_togo_field( $slug2 );
8376
  $html = array($html1, $html2, $html3, $html4);
8377
+ wppa_setting_new(false, '35', $name, $desc, $html, $help);
8378
 
8379
  $name = __('Custom photo proc', 'wp-photo-album-plus');
8380
  $desc = __('The php code to execute on all photos', 'wp-photo-album-plus');
8385
  $html3 = wppa_status_field( $slug2 );
8386
  $html4 = wppa_togo_field( $slug2 );
8387
  $html = array($html1, $html2, $html3, $html4);
8388
+ wppa_setting_new(false, '36', $name, $desc, $html, $help);
8389
  }
8390
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8391
  $name = __('List active sessions', 'wp-photo-album-plus');
8392
  $desc = __('Show the content of the sessions table.', 'wp-photo-album-plus');
8393
  $help = '';
8398
  $html3 = '';
8399
  $html4 = '';
8400
  $html = array($html1, $html2, $html3, $html4);
8401
+ wppa_setting_new(false, '37', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8402
 
8403
  wppa_setting_box_footer_new();
8404
  }
8700
  case 'watermark': {
8701
  // Watermark related settings
8702
  {
8703
+ $desc = $wppa_subtab_names[$tab]['1'];
8704
+ wppa_setting_tab_description($desc);
8705
+ wppa_setting_box_header_new($tab);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8706
 
8707
+ $name = __('Watermark file', 'wp-photo-album-plus');
8708
+ $desc = __('The default watermarkfile to be used.', 'wp-photo-album-plus');
8709
+ $help = __('Watermark files are of type png and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/watermarks/';
8710
+ $help .= '<br />'.__('A suitable watermarkfile typically consists of a transparent background and a black text or drawing.', 'wp-photo-album-plus');
8711
+ $help .= '<br />'.sprintf(__('The watermark image will be overlaying the photo with %s%% transparency.', 'wp-photo-album-plus'), (100-wppa_opt( 'watermark_opacity' )));
8712
+ $help .= '<br />'.__('You may also select one of the textual watermark types at the bottom of the selection list.', 'wp-photo-album-plus');
8713
+ $slug = 'wppa_watermark_file';
8714
+ $html = '<select style="float:left; font-size:11px; height:20px; margin:0 4px 0 0; padding:0; " id="wppa_watermark_file" onchange="wppaAjaxUpdateOptionValue(\'watermark_file\', this)" >' . wppa_watermark_file_select( 'system' ) . '</select>';
8715
+ $html .= '<img id="img_watermark_file" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
8716
+ $html .= '<span style="float:left; margin-left:12px;" >'.__('position:', 'wp-photo-album-plus').'</span><select style="float:left; font-size:11px; height:20px; margin:0 0 0 20px; padding:0; " id="wppa_watermark_pos" onchange="wppaAjaxUpdateOptionValue(\'watermark_pos\', this)" >' . wppa_watermark_pos_select( 'system' ) . '</select>';
8717
+ $html .= '<img id="img_watermark_pos" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
8718
+ wppa_setting_new(false, '1', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
8719
 
8720
+ $name = __('Upload watermark', 'wp-photo-album-plus');
8721
+ $desc = __('Upload a new watermark file', 'wp-photo-album-plus');
8722
+ $help = '';
8723
+ $slug = 'wppa_watermark_file_upload';
8724
+ $html = wppa_upload_form( $slug, $wppa_cur_tab, '.png' );
8725
+ wppa_setting_new(false, '2', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8726
 
8727
+ $name = __('Watermark opacity image', 'wp-photo-album-plus');
8728
+ $desc = __('You can set the intensity of image watermarks here.', 'wp-photo-album-plus');
8729
+ $help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
8730
+ $slug = 'wppa_watermark_opacity';
8731
+ $html = wppa_input($slug, '50px', '', '%');
8732
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
 
 
8733
 
8734
+ $name = __('Textual watermark style', 'wp-photo-album-plus');
8735
+ $desc = __('The way the textual watermarks look like', 'wp-photo-album-plus');
8736
  $help = '';
8737
+ $slug = 'wppa_textual_watermark_type';
8738
+ $clas = 'wppa_watermark';
8739
+ $sopts = array( __('TV subtitle style', 'wp-photo-album-plus'), __('White text on black background', 'wp-photo-album-plus'), __('Black text on white background', 'wp-photo-album-plus'), __('Reverse TV style (Utopia)', 'wp-photo-album-plus'), __('White on transparent background', 'wp-photo-album-plus'), __('Black on transparent background', 'wp-photo-album-plus') );
8740
+ $svals = array( 'tvstyle', 'whiteonblack', 'blackonwhite', 'utopia', 'white', 'black' );
8741
+ $font = wppa_opt( 'textual_watermark_font' );
8742
+ $onch = 'wppaCheckFontPreview()';
8743
+ $html = wppa_select($slug, $sopts, $svals, $onch);
8744
+ $preview = '<img style="background-color:#777;" id="wm-type-preview" src="" />';
8745
+ wppa_setting_new($slug, '4', $name, $desc, $html.' '.$preview, $help, $clas);
8746
+
8747
+ $name = __('Predefined watermark text', 'wp-photo-album-plus');
8748
+ $desc = __('The text to use when --- pre-defined --- is selected.', 'wp-photo-album-plus');
8749
+ $help = __('You may use the following keywords:', 'wp-photo-album-plus');
8750
+ $help .= '<br />'.__('w#site, w#displayname, all standard photo keywords, iptc and exif keywords', 'wp-photo-album-plus');
8751
+ $slug = 'wppa_textual_watermark_text';
8752
+ $html = wppa_textarea($slug, $name);
8753
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
8754
 
8755
+ if ( function_exists( 'imagettfbbox' ) ) {
8756
+
8757
+ $name = __('Textual watermark font', 'wp-photo-album-plus');
8758
+ $desc = __('The font to use with textual watermarks.', 'wp-photo-album-plus');
8759
+ $help = __('Except for the system font, are font files of type ttf and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/fonts/';
8760
+ $slug = 'wppa_textual_watermark_font';
8761
+ $fopts = array( 'System' );
8762
+ $fvals = array( 'system' );
8763
+ $style = wppa_opt( 'textual_watermark_type' );
8764
+ $fonts = wppa_glob( WPPA_UPLOAD_PATH . '/fonts/*.ttf' );
8765
+ sort($fonts);
8766
+ foreach ( $fonts as $font ) {
8767
+ $f = basename($font);
8768
+ $f = preg_replace('/\.[^.]*$/', '', $f);
8769
+ $F = strtoupper(substr($f,0,1)).substr($f,1);
8770
+ $fopts[] = $F;
8771
+ $fvals[] = $f;
8772
+ }
8773
+ $onch = 'wppaCheckFontPreview()';
8774
+ $html = wppa_select($slug, $fopts, $fvals, $onch);
8775
+ $preview = '<img style="background-color:#777;" id="wm-font-preview" src="" />';
8776
+ wppa_setting_new($slug, '6', $name, $desc, $html.' '.$preview, $help, $clas);
8777
+
8778
+ foreach ( array_keys( $sopts ) as $skey ) {
8779
+ foreach ( array_keys( $fopts ) as $fkey ) {
8780
+ wppa_create_textual_watermark_file( array( 'font' => $fvals[$fkey], 'text' => $sopts[$skey], 'style' => $svals[$skey], 'filebasename' => $svals[$skey].'-'.$fvals[$fkey] ) );
8781
+ wppa_create_textual_watermark_file( array( 'font' => $fvals[$fkey], 'text' => $fopts[$fkey], 'style' => $svals[$skey], 'filebasename' => $fvals[$fkey].'-'.$svals[$skey] ) );
8782
+ }
8783
+ }
8784
 
8785
+ $name = __('Textual watermark font size', 'wp-photo-album-plus');
8786
+ $desc = __('You can set the size of the truetype fonts only.', 'wp-photo-album-plus');
8787
+ $help = __('System font can have size 1,2,3,4 or 5, in some stoneage fontsize units. Any value > 5 will be treated as 5.', 'wp-photo-album-plus');
8788
+ $help .= '<br />'.__('Truetype fonts can have any positive integer size, if your PHPs GD version is 1, in pixels, in GD2 in points.', 'wp-photo-album-plus');
8789
+ $help .= '<br />'.__('It is unclear how many pixels a point is...', 'wp-photo-album-plus');
8790
+ $slug = 'wppa_textual_watermark_size';
8791
+ $html = wppa_input($slug, '50px', '', 'points');
8792
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
8793
 
8794
+ $name = __('Foreground color', 'wp-photo-album-plus');
8795
+ $desc = __('Textual watermark foreground color (black).', 'wp-photo-album-plus');
8796
+ $help = '';
8797
+ $slug = 'wppa_watermark_fgcol_text';
8798
+ $onch = 'wppaRefreshAfter();';
8799
+ $html = wppa_input_color($slug, '100px;', '', '', $onch );
8800
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
8801
+
8802
+ $name = __('Background color', 'wp-photo-album-plus');
8803
+ $desc = __('Textual watermark background color (white).', 'wp-photo-album-plus');
8804
+ $help = '';
8805
+ $slug = 'wppa_watermark_bgcol_text';
8806
+ $onch = 'wppaRefreshAfter();';
8807
+ $html = wppa_input_color($slug, '100px;', '', '', $onch );
8808
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
8809
+
8810
+ $name = __('Upload watermark font', 'wp-photo-album-plus');
8811
+ $desc = __('Upload a new watermark font file', 'wp-photo-album-plus');
8812
+ $help = __('Upload truetype fonts (.ttf) only, and test if they work on your server platform.', 'wp-photo-album-plus');
8813
+ $slug = 'wppa_watermark_font_upload';
8814
+ $html = wppa_upload_form( $slug, $wppa_cur_tab, '.ttf' );
8815
+ wppa_setting_new(false, '10', $name, $desc, $html, $help);
8816
+
8817
+ $name = __('Watermark opacity text', 'wp-photo-album-plus');
8818
+ $desc = __('You can set the intensity of a text watermarks here.', 'wp-photo-album-plus');
8819
+ $help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
8820
+ $slug = 'wppa_watermark_opacity_text';
8821
+ $html = wppa_input($slug, '50px', '', '%');
8822
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
8823
 
8824
+ $name = __('Preview', 'wp-photo-album-plus');
8825
+ $desc = __('A preview. Keywords in descriptions or predefined text are not translated.', 'wp-photo-album-plus');
8826
+ $help = __('To see the changes: refresh the page', 'wp-photo-album-plus');
8827
+ $slug = 'wppa_watermark_preview';
8828
+ $tr = floor( 127 * ( 100 - wppa_opt( 'watermark_opacity_text' ) ) / 100 );
8829
+ $args = array( 'id' => '0', 'url' => true, 'width' => '1000', 'height' => '400', 'transp' => $tr );
8830
+ $html = '
8831
+ <div
8832
+ style="float:left; text-align:center; max-width:400px; overflow:hidden; background-image:url('.WPPA_UPLOAD_URL.'/fonts/turkije.jpg);"
8833
+ >
8834
+ <img
8835
+ src="'.wppa_create_textual_watermark_file( $args ).'?ver='.rand(0, 4711).'"
8836
+ />
8837
+ </div>
8838
+ <input
8839
+ type="button"
8840
+ class="wppa-doit-button"
8841
+ value="' . __( 'Refresh', 'wp-photo-album-plus' ) . '"
8842
+ onclick="wppaRefreshPage()"
8843
+ style="height: 30px; margin: 16px 4px;"
8844
  >
8845
+ <div style="clear:both;"></div>';
8846
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
8847
+ }
 
 
 
 
 
 
 
 
 
 
 
8848
 
8849
+ $name = __('Watermark thumbnails', 'wp-photo-album-plus');
8850
+ $desc = __('Watermark also the thumbnail image files.', 'wp-photo-album-plus');
8851
+ $help = '';
8852
+ $slug = 'wppa_watermark_thumbs';
8853
+ $html = wppa_checkbox($slug);
8854
+ $clas = 'wppa_watermark';
8855
+ $tags = 'water,thumb';
8856
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
8857
 
8858
+ $name = __('Watermark size', 'wp-photo-album-plus');
8859
+ $desc = __('The size of the image based watermark in percents of the image width', 'wp-photo-album-plus');
8860
+ $help = __('Select a value, --- off --- means: use the watermark image as is', 'wp-photo-album-plus');
8861
+ $slug = 'wppa_watermark_size';
8862
+ $opts = array( __('--- off ---', 'wp-photo-album-plus'), '10%', '20%', '25%', '30%', '40%', '50%', '60%', '70%', '80%', '90%' );
8863
+ $vals = array( '0', '10', '20', '25', '30', '40', '50', '60', '70', '80', '90' );
8864
+ $html = wppa_select($slug, $opts, $vals);
8865
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
8866
 
8867
+ $name = __('Watermark margin', 'wp-photo-album-plus');
8868
+ $desc = __('The margin for the watermark from the edge of the image', 'wp-photo-album-plus');
8869
+ $help = __('A value > 1 means pixels, a value < 1 means fraction. E.g enter 0.12 for 12%', 'wp-photo-album-plus');
8870
+ $slug = 'wppa_watermark_margin';
8871
+ $html = wppa_input($slug, '40px;');
8872
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
8873
 
8874
+ wppa_setting_box_footer_new();
8875
  }
8876
  }
8877
  break;
8879
  case 'constants': {
8880
  // System constants (read only)
8881
  {
8882
+ $desc = $wppa_subtab_names[$tab]['1'];
8883
+ wppa_setting_tab_description($desc);
8884
 
8885
+ $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
8886
+ __('Name', 'wp-photo-album-plus') => 'auto;',
8887
+ __('Description', 'wp-photo-album-plus') => 'auto;',
8888
+ __('Value', 'wp-photo-album-plus') => 'auto;',
8889
+ __('Download', 'wp-photo-album-plus') => 'auto;',
8890
+ __('Help', 'wp-photo-album-plus') => '24px;',
8891
+ );
8892
+ wppa_setting_box_header_new($tab, $coldef);
8893
 
8894
+ $name = 'WPPA_ALBUMS';
8895
+ $desc = __('Albums db table name.', 'wp-photo-album-plus');
8896
+ $help = '';
8897
+ $html1 = WPPA_ALBUMS . wppa_see_also( 'miscadv', '1', '12' );
8898
+ $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_ALBUMS . '\')" >' .
8899
+ __('Download', 'wp-photo-album-plus') . ' ' . WPPA_ALBUMS . '.csv' .
8900
+ '</a> ' .
8901
+ '<img id="' . WPPA_ALBUMS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8902
+ $html = array( $html1, $html2 );
8903
+ wppa_setting_new(false, '1', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8904
 
8905
+ $name = 'WPPA_PHOTOS';
8906
+ $desc = __('Photos db table name.', 'wp-photo-album-plus');
8907
+ $help = '';
8908
+ $html1 = WPPA_PHOTOS;
8909
+ $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_PHOTOS . '\')" >' .
8910
+ __('Download', 'wp-photo-album-plus') . ' ' . WPPA_PHOTOS . '.csv' .
8911
+ '</a> ' .
8912
+ '<img id="' . WPPA_PHOTOS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8913
+ $html = array( $html1, $html2 );
8914
+ wppa_setting_new(false, '2', $name, $desc, $html, $help);
8915
 
8916
+ $name = 'WPPA_RATING';
8917
+ $desc = __('Rating db table name.', 'wp-photo-album-plus');
8918
+ $help = '';
8919
+ $html1 = WPPA_RATING;
8920
+ $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_RATING . '\')" >' .
8921
+ __('Download', 'wp-photo-album-plus') . ' ' . WPPA_RATING . '.csv' .
8922
+ '</a> ' .
8923
+ '<img id="' . WPPA_RATING . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8924
+ $html = array( $html1, $html2 );
8925
+ wppa_setting_new(false, '3', $name, $desc, $html, $help);
8926
 
8927
+ $name = 'WPPA_COMMENTS';
8928
+ $desc = __('Comments db table name.', 'wp-photo-album-plus');
8929
+ $help = '';
8930
+ $html1 = WPPA_COMMENTS;
8931
+ $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_COMMENTS . '\')" >' .
8932
+ __('Download', 'wp-photo-album-plus') . ' ' . WPPA_COMMENTS . '.csv' .
8933
+ '</a> ' .
8934
+ '<img id="' . WPPA_COMMENTS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8935
+ $html = array( $html1, $html2 );
8936
+ wppa_setting_new(false, '4', $name, $desc, $html, $help);
8937
 
8938
+ $name = 'WPPA_IPTC';
8939
+ $desc = __('IPTC db table name.', 'wp-photo-album-plus');
8940
+ $help = '';
8941
+ $html1 = WPPA_IPTC;
8942
+ $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_IPTC . '\')" >' .
8943
+ __('Download', 'wp-photo-album-plus') . ' ' . WPPA_IPTC . '.csv' .
8944
+ '</a> ' .
8945
+ '<img id="' . WPPA_IPTC . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8946
+ $html = array( $html1, $html2 );
8947
+ wppa_setting_new(false, '5', $name, $desc, $html, $help);
8948
 
8949
+ $name = 'WPPA_EXIF';
8950
+ $desc = __('EXIF db table name.', 'wp-photo-album-plus');
8951
+ $help = '';
8952
+ $html1 = WPPA_EXIF;
8953
+ $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_EXIF . '\')" >' .
8954
+ __('Download', 'wp-photo-album-plus') . ' ' . WPPA_EXIF . '.csv' .
8955
+ '</a> ' .
8956
+ '<img id="' . WPPA_EXIF . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8957
+ $html = array( $html1, $html2 );
8958
+ wppa_setting_new(false, '6', $name, $desc, $html, $help);
8959
 
8960
+ $name = 'WPPA_INDEX';
8961
+ $desc = __('Index db table name.', 'wp-photo-album-plus');
8962
+ $help = '';
8963
+ $html1 = WPPA_INDEX;
8964
+ $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_INDEX . '\')" >' .
8965
+ __('Download', 'wp-photo-album-plus') . ' ' . WPPA_INDEX . '.csv' .
8966
+ '</a> ' .
8967
+ '<img id="' . WPPA_INDEX . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
8968
+ $html = array( $html1, $html2 );
8969
+ wppa_setting_new(false, '7', $name, $desc, $html, $help);
8970
 
8971
+ $name = 'WPPA_SESSION';
8972
+ $desc = __('Session db table name.', 'wp-photo-album-plus');
8973
+ $help = '';
8974
+ $html1 = WPPA_SESSION;
8975
+ $html2 = sprintf( __('Download %s is useless', 'wp-photo-album-plus'), WPPA_SESSION );
8976
+ $html = array( $html1, $html2 );
8977
+ wppa_setting_new(false, '8', $name, $desc, $html, $help);
8978
 
8979
+ $name = 'WPPA_FILE';
8980
+ $desc = __('Plugins main file name.', 'wp-photo-album-plus');
8981
+ $help = '';
8982
+ $html1 = WPPA_FILE;
8983
+ $html2 = '';
8984
+ $html = array( $html1, $html2 );
8985
+ wppa_setting_new(false, '9', $name, $desc, $html, $help);
8986
 
8987
+ $name = 'ABSPATH';
8988
+ $desc = __('WP absolute path.', 'wp-photo-album-plus');
8989
+ $help = '';
8990
+ $html1 = ABSPATH;
8991
+ $html2 = '';
8992
+ $html = array( $html1, $html2 );
8993
+ wppa_setting_new(false, '10', $name, $desc, $html, $help);
8994
 
8995
+ $name = 'WPPA_ABSPATH';
8996
+ $desc = __('ABSPATH windows proof', 'wp-photo-album-plus');
8997
+ $help = '';
8998
+ $html1 = WPPA_ABSPATH;
8999
+ $html2 = '';
9000
+ $html = array( $html1, $html2 );
9001
+ wppa_setting_new(false, '11', $name, $desc, $html, $help);
9002
 
9003
+ $name = 'WPPA_PATH';
9004
+ $desc = __('Path to plugins directory.', 'wp-photo-album-plus');
9005
+ $help = '';
9006
+ $html1 = WPPA_PATH;
9007
+ $html2 = '';
9008
+ $html = array( $html1, $html2 );
9009
+ wppa_setting_new(false, '12', $name, $desc, $html, $help);
9010
 
9011
+ $name = 'WPPA_NAME';
9012
+ $desc = __('Plugins directory name.', 'wp-photo-album-plus');
9013
+ $help = '';
9014
+ $html1 = WPPA_NAME;
9015
+ $html2 = '';
9016
+ $html = array( $html1, $html2 );
9017
+ wppa_setting_new(false, '13', $name, $desc, $html, $help);
9018
 
9019
+ $name = 'WPPA_URL';
9020
+ $desc = __('Plugins directory url.', 'wp-photo-album-plus');
9021
+ $help = '';
9022
+ $html1 = WPPA_URL;
9023
+ $html2 = '';
9024
+ $html = array( $html1, $html2 );
9025
+ wppa_setting_new(false, '14', $name, $desc, $html, $help);
9026
 
9027
+ $name = 'WPPA_UPLOAD';
9028
+ $desc = __('The relative upload directory.', 'wp-photo-album-plus');
9029
+ $help = '';
9030
+ $html1 = WPPA_UPLOAD;
9031
+ $html2 = '';
9032
+ $html = array( $html1, $html2 );
9033
+ wppa_setting_new(false, '15', $name, $desc, $html, $help);
9034
 
9035
+ $name = 'WPPA_UPLOAD_PATH';
9036
+ $desc = __('The upload directory path.', 'wp-photo-album-plus');
9037
+ $help = '';
9038
+ $html1 = WPPA_UPLOAD_PATH;
9039
+ $html2 = '';
9040
+ $html = array( $html1, $html2 );
9041
+ wppa_setting_new(false, '16', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
9042
 
9043
+ $name = 'WPPA_UPLOAD_URL';
9044
+ $desc = __('The upload directory url.', 'wp-photo-album-plus');
9045
+ $help = '';
9046
+ $html1 = WPPA_UPLOAD_URL;
9047
+ $html2 = '';
9048
+ $html = array( $html1, $html2 );
9049
+ wppa_setting_new(false, '17', $name, $desc, $html, $help);
9050
+
9051
+ $name = 'WPPA_DEPOT';
9052
+ $desc = __('The relative depot directory.', 'wp-photo-album-plus');
9053
+ $help = '';
9054
+ $html1 = WPPA_DEPOT;
9055
+ $html2 = '';
9056
+ $html = array( $html1, $html2 );
9057
+ wppa_setting_new(false, '18', $name, $desc, $html, $help);
9058
+
9059
+ $name = 'WPPA_DEPOT_PATH';
9060
+ $desc = __('The depot directory path.', 'wp-photo-album-plus');
9061
+ $help = '';
9062
+ $html1 = WPPA_DEPOT_PATH;
9063
+ $html2 = '';
9064
+ $html = array( $html1, $html2 );
9065
+ wppa_setting_new(false, '19', $name, $desc, $html, $help);
9066
+
9067
+ $name = 'WPPA_DEPOT_URL';
9068
+ $desc = __('The depot directory url.', 'wp-photo-album-plus');
9069
+ $help = '';
9070
+ $html1 = WPPA_DEPOT_URL;
9071
+ $html2 = '';
9072
+ $html = array( $html1, $html2 );
9073
+ wppa_setting_new(false, '20', $name, $desc, $html, $help);
9074
+
9075
+ $name = 'WPPA_CONTENT_PATH';
9076
+ $desc = __('The path to wp-content.', 'wp-photo-album-plus');
9077
+ $help = '';
9078
+ $html1 = WPPA_CONTENT_PATH;
9079
+ $html2 = '';
9080
+ $html = array( $html1, $html2 );
9081
+ wppa_setting_new(false, '21', $name, $desc, $html, $help);
9082
+
9083
+ $name = 'WPPA_CONTENT_URL';
9084
+ $desc = __('WP Content url.', 'wp-photo-album-plus');
9085
+ $help = '';
9086
+ $html1 = WPPA_CONTENT_URL;
9087
+ $html2 = '';
9088
+ $html = array( $html1, $html2 );
9089
+ wppa_setting_new(false, '22', $name, $desc, $html, $help);
9090
+
9091
+ $name = 'wp_upload_dir() : [\'basedir\']';
9092
+ $desc = __('WP Base upload dir.', 'wp-photo-album-plus');
9093
+ $help = '';
9094
+ $wp_uploaddir = wp_upload_dir();
9095
+ $html1 = $wp_uploaddir['basedir'];
9096
+ $html2 = '';
9097
+ $html = array( $html1, $html2 );
9098
+ wppa_setting_new(false, '23', $name, $desc, $html, $help);
9099
+
9100
+ $name = '$_SERVER[\'HTTP_HOST\']';
9101
+ $desc = '';
9102
+ $help = '';
9103
+ $html1 = $_SERVER['HTTP_HOST'];
9104
+ $html2 = '';
9105
+ $html = array( $html1, $html2 );
9106
+ wppa_setting_new(false, '24', $name, $desc, $html, $help);
9107
+
9108
+ wppa_setting_box_footer_new();
9109
  }
9110
  }
9111
  break;
9377
 
9378
  $name = __('Show minimum tags only', 'wp-photo-album-plus');
9379
  $desc = __('Shows only the minimum tags in the photo admin tags seclection box', 'wp-photo-album-plus');
9380
+ $help = __('To limit the use of tags to these tags only, also tick New tags restricted', 'wp-photo-album-plus');
9381
+ $help .= wppa_see_also( 'admin', '4', '9' );
9382
  $slug = 'wppa_predef_tags_only';
9383
  $html = wppa_checkbox($slug);
9384
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
9399
 
9400
  $name = __('Direct comment', 'wp-photo-album-plus');
9401
  $desc = __('Enable direct commenting and rating from remote source', 'wp-photo-album-plus');
9402
+ $help = __('This setting has only effect when Encrypted links is mandatory', 'wp-photo-album-plus');
9403
  $help .= '<br />' . __('Use with care, and only in special situations!', 'wp-photo-album-plus');
9404
  $slug = 'wppa_direct_comment';
9405
+ $html = wppa_checkbox($slug) . wppa_see_also( 'links', '1', '5.6' );
9406
  wppa_setting_new($slug, '8', $name, $desc, $html, $help);
9407
 
9408
  $name = __('Extended resize count', 'wp-photo-album-plus');
9496
  $html = wppa_checkbox($slug);
9497
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
9498
 
9499
+ $name = __('List Logfile', 'wp-photo-album-plus');
9500
+ $desc = __('Show the content of wppa+ (error) log.', 'wp-photo-album-plus');
9501
+ $help = '';
9502
+ $slug = 'wppa_list_errorlog';
9503
+ $html = wppa_popup_button( $slug );
9504
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
9505
+
9506
+ $name = __('Purge logfile', 'wp-photo-album-plus');
9507
+ $desc = __('Deletes the logfile', 'wp-photo-album-plus');
9508
+ $help = __('The logfile will not grow forever, the max number of entries is 1000', 'wp-photo-album-plus');
9509
+ $slug = 'wppa_errorlog_purge';
9510
+ $html = wppa_ajax_button(__('Do it!', 'wp-photo-album-plus'), 'errorlog_purge', '0', true );
9511
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
9512
+
9513
+ $name = __('Logfile on menu', 'wp-photo-album-plus');
9514
+ $desc = __('Make list logfile a menu item', 'wp-photo-album-plus');
9515
+ $help = '';
9516
+ $slug = 'wppa_logfile_on_menu';
9517
+ $html = wppa_checkbox($slug, 'wppaRefreshAfter();');
9518
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
9519
+
9520
  wppa_setting_box_footer_new();
9521
  }
9522
  // External services related settings and actions
9591
 
9592
  $name = __('Max lifetime', 'wp-photo-album-plus');
9593
  $desc = __('Old images from local server, new images from Cloudinary.', 'wp-photo-album-plus');
9594
+ $help = __('If NOT set to Forever (0): You need to Synchronize Cloudinary on a regular basis.', 'wp-photo-album-plus');
9595
  $slug = 'wppa_max_cloud_life';
9596
  $opts = array( __('Forever', 'wp-photo-album-plus'),
9597
  sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
9618
  730*24*60*60,
9619
  );
9620
 
9621
+ $html = wppa_select($slug, $opts, $vals) . wppa_see_also( 'maintenance', '2', '21' );
9622
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
9623
 
9624
  $name = __('Cloudinary usage', 'wp-photo-album-plus');
9664
  $desc = __('Cloudinary usage data not available', 'wp-photo-album-plus');
9665
  }
9666
  $help = '';
9667
+ $html = array();
9668
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
9669
 
9670
  }
9671
 
9674
  $help = __('In order to function properly:', 'wp-photo-album-plus');
9675
  $help .= '<br />'.__('1. Get yourself a Fotomoto account.', 'wp-photo-album-plus');
9676
  $help .= '<br />'.__('2. Install the Fotomoto plugin, enter the "Fotomoto Site Key:" and check the "Use API Mode:" checkbox.', 'wp-photo-album-plus');
9677
+ $help .= '<br />'.__('Note: Do NOT Disable the Custom box in the Slideshow component specification.', 'wp-photo-album-plus');
9678
+ $help .= '<br />'.__('Do NOT remove the text w#fotomoto from the Custombox content.', 'wp-photo-album-plus');
9679
  $slug = 'wppa_fotomoto_on';
9680
+ $html = wppa_checkbox($slug, 'wppaRefreshAfter();') . wppa_see_also( 'slide', '1', '26.27' );
9681
  wppa_setting_new($slug, '9', $name, $desc, $html, $help);
9682
 
9683
  if ( wppa_switch( 'fotomoto_on' ) ) {
9760
  $desc = __('Enable the use of non-wppa+ shortcodes in fullsize photo descriptions.', 'wp-photo-album-plus');
9761
  $help = __('When checked, you can use shortcodes from other plugins in the description of photos.', 'wp-photo-album-plus');
9762
  $help .= '<br />'.__('The shortcodes will be expanded in the descriptions of fullsize images.', 'wp-photo-album-plus');
 
9763
  $slug = 'wppa_allow_foreign_shortcodes';
9764
  $html = wppa_checkbox($slug);
9765
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
9768
  $desc = __('Enable the use of non-wppa+ shortcodes in thumbnail photo descriptions.', 'wp-photo-album-plus');
9769
  $help = __('When checked, you can use shortcodes from other plugins in the description of photos.', 'wp-photo-album-plus');
9770
  $help .= '<br />'.__('The shortcodes will be expanded in the descriptions of thumbnail images.', 'wp-photo-album-plus');
 
9771
  $slug = 'wppa_allow_foreign_shortcodes_thumbs';
9772
  $html = wppa_checkbox($slug);
9773
  wppa_setting_new($slug, '2', $name, $desc, $html, $help);
9815
 
9816
  $name = __('Use CM Tooltip Glossary', 'wp-photo-album-plus');
9817
  $desc = __('Use plugin CM Tooltip Glossary on photo and album descriptions.', 'wp-photo-album-plus');
9818
+ $help = __('You MUST set Defer javascript, also if you do not want this plugin to act on album and photo descriptions!', 'wp-photo-album-plus');
9819
  $slug = 'wppa_use_CMTooltipGlossary';
9820
+ $html = wppa_checkbox($slug) . wppa_see_also( 'system', '1', '11' );
9821
  wppa_setting_new($slug, '8', $name, $desc, $html, $help);
9822
 
9823
  $name = __('Shortcode [photo nnn] on bbPress', 'wp-photo-album-plus');
wppa-slideshow.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the slideshow high level functions
6
- * Version 8.0.00.007
7
  *
8
  */
9
 
@@ -1380,7 +1380,7 @@ function wppa_slide_filmstrip( $opt = '' ) {
1380
  '<div' .
1381
  ' id="filmwindow-'.wppa( 'mocc' ).'"' .
1382
  ' class="filmwindow"' .
1383
- ' style="'.$IE6.' position:absolute; display: block; height:'.$height.'px; margin: 0 0 0 '.$marg.'px; overflow:hidden;"' .
1384
  ' >' .
1385
  '<div' .
1386
  ' id="wppa-filmstrip-'.wppa( 'mocc' ).'"' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the slideshow high level functions
6
+ * Version 8.0.00.011
7
  *
8
  */
9
 
1380
  '<div' .
1381
  ' id="filmwindow-'.wppa( 'mocc' ).'"' .
1382
  ' class="filmwindow"' .
1383
+ ' style="'.$IE6.' position:absolute !important; display: block; height:'.$height.'px; margin: 0 0 0 '.$marg.'px; overflow:hidden;"' .
1384
  ' >' .
1385
  '<div' .
1386
  ' id="wppa-filmstrip-'.wppa( 'mocc' ).'"' .
wppa-tinymce-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 8.0.00.007
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
@@ -40,34 +40,6 @@ function wppa_filter_mce_gallery_plugin( $plugins ) {
40
  return $plugins;
41
  }
42
 
43
- add_action( 'admin_head', 'wppa_inject_js' );
44
-
45
- function wppa_inject_js() {
46
- global $wppa_api_version;
47
-
48
- // Things that wppa-tinymce.js AND OTHER MODULES!!! need to know
49
- echo '
50
- <script type="text/javascript" >
51
- wppaImageDirectory = "'.wppa_get_imgdir().'";
52
- wppaAjaxUrl = "'.admin_url('admin-ajax.php').'";
53
- wppaPhotoDirectory = "'.WPPA_UPLOAD_URL.'/";
54
- wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/";
55
- wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/";
56
- wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/";
57
- wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'";
58
- wppaVersion = "'.$wppa_api_version.'";
59
- wppaSiteUrl = "'.site_url().'";
60
- wppaWppaUrl = "'.WPPA_URL.'";
61
- wppaIncludeUrl = "'.trim(includes_url(), '/').'";
62
- wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'";
63
- wppaLazyLoad = '.(wppa_switch( 'lazy' ) ? 'true' : 'false' ).';
64
- wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus').'";
65
- wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus').'";
66
- wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'";
67
- wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";
68
- </script>';
69
- }
70
-
71
  function wppa_make_tinymce_dialog() {
72
  global $wpdb;
73
 
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.0.00.011
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
40
  return $plugins;
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  function wppa_make_tinymce_dialog() {
44
  global $wpdb;
45
 
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 8.0.00.010
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.0.00.010'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
@@ -35,7 +35,7 @@ global $wppa_js_page_data; $wppa_js_page_data = '';
35
  add_action( 'plugins_loaded', 'wppa_init_timer', '1' );
36
  function wppa_init_timer() {
37
  global $wppa_endtime;
38
-
39
  $met = ini_get( 'max_execution_time' );
40
  if ( $met > 55 && ! wppa_is_cron() ) {
41
  $met = 55;
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
+ * Version: 8.0.00.011
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
+ $wppa_api_version = '8.0.00.011'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
35
  add_action( 'plugins_loaded', 'wppa_init_timer', '1' );
36
  function wppa_init_timer() {
37
  global $wppa_endtime;
38
+
39
  $met = ini_get( 'max_execution_time' );
40
  if ( $met > 55 && ! wppa_is_cron() ) {
41
  $met = 55;