Version Description
= 7.7.07 =
- This version addresses various minor bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
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 +1 -0
- js/wppa-admin-scripts.js +1 -459
- js/wppa-admin-scripts.min.js +1 -1
- js/wppa-all.js +3 -3
- js/wppa-spheric.js +6 -1
- js/wppa-spheric.min.js +1 -1
- js/wppa-zoom.js +3 -3
- js/wppa-zoom.min.js +1 -1
- js/wppa.js +28 -41
- js/wppa.min.js +1 -1
- theme/wppa-style.css +2 -1
- wppa-admin.php +28 -2
- wppa-ajax.php +4 -6
- wppa-functions.php +7 -7
- wppa-init.php +11 -14
- wppa-picture.php +5 -8
- wppa-setting-functions.php +46 -86
- wppa-setting-see-also.php +11 -8
- wppa-settings-autosave.php +4787 -4736
- wppa-slideshow.php +2 -2
- wppa-tinymce-shortcodes.php +1 -29
- wppa.php +3 -3
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.
|
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(/</g,"<")).replace(/>/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(/</g,"<")).replace(/>/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(/</g,"<")).replace(/>/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(/</g,"<")).replace(/>/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(/</g,"<")).replace(/>/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(/</g,"<")).replace(/>/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("&").join("&")).split(">").join(">")).split("<").join("<")).split(""").join('"')).split("'").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(/"/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("« "+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+" »")):(jQuery("#prev-arrow-"+p).html("« "+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+" »")),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]])||" "==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+' )"> '+i+" </span>":(e>i-1&&e<i&&(r+=" ( "+e+" ) "),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" > '+i+" </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+"• "),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.
|
17 |
// wppa-spheric
|
18 |
-
var wppaJsSphericVersion="8.0.00.
|
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("&").join("&")).split(">").join(">")).split("<").join("<")).split(""").join('"')).split("'").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(/"/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("« "+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+" »")):(jQuery("#prev-arrow-"+p).html("« "+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+" »")),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]])||" "==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+' )"> '+i+" </span>":(e>i-1&&e<i&&(r+=" ( "+e+" ) "),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" > '+i+" </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+"• "),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.
|
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.
|
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.
|
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({
|
370 |
-
$("#wppa-overlay-ic").css({
|
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.
|
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.
|
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(){
|
356 |
-
jQuery('.wppa-divnicewrap').on('DOMContentLoaded load resize wppascrollend wheelend orientationchange', function(){
|
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 |
-
|
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 |
-
|
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(/"/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(/"/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 |
-
|
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.
|
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.
|
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
|
3767 |
}
|
3768 |
if ( wppa_switch( 'use_photo_names_in_urls' ) ) {
|
3769 |
-
$alert .= ' ' . __( '
|
3770 |
wppa_update_option( 'wppa_use_photo_names_in_urls', 'no' );
|
3771 |
}
|
3772 |
if ( wppa_switch( 'use_album_names_in_urls' ) ) {
|
3773 |
-
$alert .= ' ' . __( '
|
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.
|
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.
|
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 |
-
|
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 |
-
|
628 |
-
|
629 |
-
|
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.
|
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 =
|
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 =
|
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:
|
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 |
-
|
805 |
-
$helptext =
|
806 |
-
|
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-' . $
|
839 |
-
class="wppa-setting-new ' . $
|
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-' . $
|
876 |
-
jQuery( \'#help-' . $
|
877 |
}
|
878 |
else {
|
879 |
-
jQuery( \'#help-' . $
|
880 |
}"
|
881 |
value=" ? "
|
882 |
/>
|
@@ -890,7 +849,7 @@ global $wppa_cur_subtab_id;
|
|
890 |
if ( $help ) {
|
891 |
echo '
|
892 |
<tr
|
893 |
-
id="help-' . $
|
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 |
-
//
|
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 |
-
//
|
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=" ? "
|
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.
|
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
|
99 |
-
'2' => __('Links from
|
100 |
-
'3' => __('
|
|
|
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' => __('
|
|
|
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> ';
|
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> ';
|
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.
|
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
|
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
|
417 |
-
__( 'If there are many empty albums, you can simply remove them by running
|
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
|
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"
|
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 = __( '
|
435 |
-
|
|
|
436 |
}
|
437 |
if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' && ! ( wppa_switch( 'cover_use_thumb' ) ) ) {
|
438 |
-
$msg =
|
439 |
-
|
|
|
|
|
|
|
|
|
|
|
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
|
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
|
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 |
-
|
809 |
-
|
810 |
-
|
811 |
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
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 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
|
|
833 |
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
841 |
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
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 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
|
930 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
931 |
}
|
932 |
}
|
933 |
break;
|
934 |
|
935 |
case 'layout': {
|
936 |
// General layout settings
|
937 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
938 |
{
|
939 |
-
|
940 |
-
|
|
|
941 |
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
|
1027 |
-
|
1028 |
}
|
1029 |
// Breadcrumb specifications
|
1030 |
-
$desc = $wppa_subtab_names[$tab]['2'];
|
1031 |
{
|
1032 |
-
|
1033 |
-
|
|
|
1034 |
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
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 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
|
|
1151 |
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
$html = wppa_select($slug, $opts, $vals);
|
1159 |
-
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
1160 |
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
|
|
|
|
1167 |
|
1168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1169 |
}
|
1170 |
// Navigation symbol specifications
|
1171 |
-
$desc = $wppa_subtab_names[$tab]['3'];
|
1172 |
{
|
1173 |
-
|
1174 |
-
|
|
|
1175 |
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
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') . ' </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') . ' </span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
1341 |
-
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1342 |
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
|
|
|
|
|
|
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 |
-
|
2503 |
-
|
|
|
2504 |
|
2505 |
-
|
2506 |
-
|
2507 |
-
|
2508 |
-
|
2509 |
-
|
2510 |
-
|
2511 |
-
|
|
|
2512 |
|
2513 |
-
|
2514 |
-
|
2515 |
-
|
2516 |
-
|
2517 |
-
|
2518 |
-
|
2519 |
-
|
2520 |
-
|
2521 |
|
2522 |
-
|
2523 |
-
|
2524 |
-
|
2525 |
-
|
2526 |
-
|
2527 |
-
|
2528 |
|
2529 |
-
|
2530 |
-
|
2531 |
-
|
2532 |
-
|
2533 |
-
|
2534 |
-
|
2535 |
-
|
2536 |
-
|
2537 |
-
|
2538 |
-
|
2539 |
-
|
|
|
2540 |
|
2541 |
-
|
2542 |
-
|
2543 |
-
|
2544 |
-
|
2545 |
-
|
2546 |
-
|
2547 |
|
2548 |
-
|
2549 |
-
|
2550 |
-
|
2551 |
-
|
2552 |
-
|
2553 |
-
|
2554 |
-
|
2555 |
-
|
2556 |
|
2557 |
-
|
2558 |
-
|
2559 |
-
|
2560 |
-
|
2561 |
-
|
2562 |
-
|
2563 |
-
|
2564 |
|
2565 |
-
|
2566 |
-
|
2567 |
-
|
2568 |
-
|
2569 |
-
|
2570 |
-
|
2571 |
|
2572 |
-
|
2573 |
-
|
2574 |
-
|
2575 |
-
|
2576 |
-
|
2577 |
-
|
2578 |
-
|
2579 |
|
2580 |
-
|
2581 |
-
|
2582 |
-
|
2583 |
-
|
2584 |
-
|
2585 |
-
|
2586 |
|
2587 |
-
|
2588 |
-
|
2589 |
-
|
2590 |
-
|
2591 |
-
|
2592 |
-
|
2593 |
-
|
2594 |
|
2595 |
-
|
2596 |
-
|
2597 |
-
|
2598 |
-
|
2599 |
-
|
2600 |
-
|
2601 |
|
2602 |
-
|
2603 |
-
|
2604 |
-
|
2605 |
-
|
2606 |
-
|
2607 |
-
|
2608 |
|
2609 |
-
|
2610 |
-
|
2611 |
-
|
2612 |
-
|
2613 |
-
|
2614 |
-
|
2615 |
|
2616 |
-
|
2617 |
-
|
2618 |
-
|
2619 |
-
|
2620 |
-
|
2621 |
-
|
2622 |
|
2623 |
-
|
2624 |
-
|
2625 |
-
|
2626 |
-
|
2627 |
-
|
2628 |
-
|
2629 |
|
2630 |
-
|
2631 |
-
|
2632 |
-
|
2633 |
-
|
2634 |
-
|
2635 |
-
|
2636 |
|
2637 |
-
|
2638 |
-
|
2639 |
-
|
2640 |
-
|
2641 |
-
|
2642 |
-
|
2643 |
|
2644 |
-
|
2645 |
-
|
2646 |
-
|
2647 |
-
|
2648 |
-
|
2649 |
-
|
2650 |
|
2651 |
-
|
2652 |
-
|
2653 |
-
|
2654 |
-
|
2655 |
-
|
2656 |
-
|
2657 |
|
2658 |
-
|
2659 |
-
|
2660 |
-
|
2661 |
-
|
2662 |
-
|
2663 |
-
|
2664 |
|
2665 |
-
|
2666 |
-
|
2667 |
-
|
2668 |
-
|
2669 |
-
|
2670 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2671 |
|
2672 |
-
|
2673 |
-
|
2674 |
-
|
2675 |
-
|
2676 |
-
|
2677 |
-
|
2678 |
-
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
2679 |
|
2680 |
-
|
2681 |
-
|
2682 |
-
|
2683 |
-
|
2684 |
-
|
2685 |
-
|
2686 |
|
2687 |
-
|
2688 |
-
|
2689 |
-
|
2690 |
-
|
2691 |
-
|
2692 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2693 |
|
2694 |
-
|
2695 |
-
|
2696 |
-
|
2697 |
-
|
2698 |
-
|
2699 |
-
|
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 |
-
|
2718 |
-
|
2719 |
-
|
2720 |
-
|
2721 |
-
|
2722 |
-
|
2723 |
-
|
2724 |
-
|
2725 |
-
|
2726 |
-
|
2727 |
-
|
2728 |
-
|
2729 |
-
|
2730 |
-
|
2731 |
-
|
2732 |
-
|
2733 |
-
|
2734 |
-
|
2735 |
-
|
2736 |
-
|
2737 |
-
|
2738 |
-
|
2739 |
-
|
2740 |
-
|
2741 |
-
|
2742 |
-
|
2743 |
-
|
2744 |
-
|
2745 |
-
|
2746 |
-
|
2747 |
|
2748 |
-
|
2749 |
-
|
2750 |
-
|
2751 |
-
|
2752 |
-
|
2753 |
-
|
2754 |
|
2755 |
-
|
2756 |
-
|
2757 |
-
|
2758 |
-
|
2759 |
-
|
2760 |
-
|
2761 |
|
2762 |
-
|
2763 |
-
|
2764 |
-
|
2765 |
-
|
2766 |
-
|
2767 |
-
|
2768 |
|
2769 |
-
|
2770 |
-
|
2771 |
-
|
2772 |
-
|
2773 |
-
|
2774 |
-
|
2775 |
-
|
2776 |
-
|
2777 |
-
|
2778 |
-
|
2779 |
-
|
2780 |
-
|
2781 |
-
|
2782 |
-
|
2783 |
-
|
2784 |
-
|
2785 |
-
|
2786 |
-
|
2787 |
-
|
2788 |
-
|
2789 |
-
|
2790 |
-
|
2791 |
-
|
2792 |
-
|
2793 |
-
|
2794 |
-
|
2795 |
-
|
2796 |
-
wppa_setting_new($slug, '36', $name, $desc, $html, $help);
|
2797 |
|
2798 |
-
|
2799 |
}
|
2800 |
// Slideshow component sequence
|
2801 |
-
$desc = $wppa_subtab_names[$tab]['2'];
|
2802 |
{
|
2803 |
-
|
2804 |
-
|
|
|
2805 |
|
2806 |
-
|
2807 |
-
|
2808 |
-
|
2809 |
-
|
2810 |
-
|
2811 |
-
|
2812 |
-
|
2813 |
-
|
2814 |
-
|
2815 |
-
|
2816 |
-
|
2817 |
-
|
2818 |
-
|
2819 |
-
|
2820 |
-
|
2821 |
-
|
2822 |
-
|
2823 |
-
|
2824 |
-
|
2825 |
-
|
2826 |
-
|
2827 |
-
|
2828 |
-
|
2829 |
-
|
2830 |
-
|
2831 |
-
|
2832 |
-
|
2833 |
-
|
2834 |
-
|
2835 |
-
|
2836 |
-
|
2837 |
-
|
2838 |
-
|
2839 |
-
|
2840 |
-
|
2841 |
-
|
2842 |
-
|
2843 |
-
|
2844 |
-
|
2845 |
-
|
2846 |
-
|
2847 |
-
|
|
|
2848 |
}
|
2849 |
-
|
2850 |
-
|
2851 |
-
|
2852 |
-
|
2853 |
-
|
2854 |
-
|
2855 |
-
|
2856 |
-
|
2857 |
-
|
2858 |
-
|
2859 |
-
|
2860 |
-
|
2861 |
-
|
2862 |
-
|
2863 |
-
|
2864 |
-
|
2865 |
-
);
|
2866 |
-
|
2867 |
-
|
2868 |
-
|
2869 |
-
|
2870 |
-
|
2871 |
-
|
2872 |
-
|
2873 |
-
|
2874 |
-
|
2875 |
-
|
2876 |
-
|
2877 |
-
|
2878 |
-
|
2879 |
-
|
2880 |
-
|
2881 |
-
|
2882 |
-
|
2883 |
-
|
2884 |
-
|
2885 |
-
|
2886 |
-
|
2887 |
-
|
2888 |
-
|
2889 |
-
|
2890 |
}
|
2891 |
-
}
|
2892 |
|
2893 |
-
|
2894 |
-
|
2895 |
-
|
2896 |
-
|
2897 |
-
|
2898 |
-
|
2899 |
|
2900 |
-
|
2901 |
-
|
2902 |
-
|
2903 |
-
|
2904 |
-
|
2905 |
-
|
2906 |
|
2907 |
-
|
2908 |
}
|
2909 |
// Slideshow layout settings
|
2910 |
-
$desc = $wppa_subtab_names[$tab]['3'];
|
2911 |
{
|
2912 |
-
|
2913 |
-
|
|
|
2914 |
|
2915 |
-
|
2916 |
-
|
2917 |
-
|
2918 |
-
|
2919 |
-
|
2920 |
-
|
2921 |
-
|
2922 |
-
|
2923 |
|
2924 |
-
|
2925 |
-
|
2926 |
-
|
2927 |
-
|
2928 |
-
|
2929 |
-
|
2930 |
-
|
2931 |
-
|
2932 |
|
2933 |
-
|
2934 |
-
|
2935 |
-
|
2936 |
-
|
2937 |
-
|
2938 |
-
|
2939 |
-
|
2940 |
-
|
2941 |
-
|
2942 |
-
|
2943 |
|
2944 |
-
|
2945 |
-
|
2946 |
-
|
2947 |
-
|
2948 |
-
|
2949 |
-
|
2950 |
-
|
2951 |
-
|
2952 |
|
2953 |
-
|
2954 |
-
|
2955 |
-
|
2956 |
-
|
2957 |
-
|
2958 |
-
|
|
|
2959 |
|
2960 |
-
|
2961 |
-
|
2962 |
-
|
2963 |
-
|
2964 |
-
|
2965 |
-
|
2966 |
-
|
2967 |
-
|
2968 |
-
|
2969 |
-
|
2970 |
-
|
2971 |
|
2972 |
-
|
2973 |
-
|
2974 |
-
|
2975 |
-
|
2976 |
-
|
2977 |
-
|
2978 |
|
2979 |
-
|
2980 |
}
|
2981 |
// Slideshow dynamic behaviour
|
2982 |
-
$desc = $wppa_subtab_names[$tab]['4'];
|
2983 |
{
|
2984 |
-
|
2985 |
-
|
|
|
2986 |
|
2987 |
-
|
2988 |
-
|
2989 |
-
|
2990 |
-
|
2991 |
-
|
2992 |
-
|
2993 |
-
|
2994 |
-
|
2995 |
-
|
2996 |
-
|
2997 |
-
|
2998 |
-
|
2999 |
-
|
3000 |
-
|
3001 |
-
|
3002 |
|
3003 |
-
|
3004 |
-
|
3005 |
-
|
3006 |
-
|
3007 |
-
|
3008 |
-
|
3009 |
|
3010 |
-
|
3011 |
-
|
3012 |
-
|
3013 |
-
|
3014 |
-
|
3015 |
-
|
3016 |
|
3017 |
-
|
3018 |
-
|
3019 |
-
|
3020 |
-
|
3021 |
-
|
3022 |
-
|
3023 |
-
|
3024 |
-
|
3025 |
-
|
3026 |
-
|
3027 |
-
|
3028 |
-
|
3029 |
-
|
3030 |
-
|
3031 |
-
|
3032 |
-
|
3033 |
-
|
3034 |
-
|
3035 |
-
|
3036 |
-
|
3037 |
-
|
3038 |
-
|
3039 |
-
|
3040 |
-
|
3041 |
-
|
3042 |
-
|
3043 |
-
|
3044 |
|
3045 |
-
|
3046 |
-
|
3047 |
-
|
3048 |
-
|
3049 |
-
|
3050 |
-
|
3051 |
-
|
3052 |
-
|
3053 |
|
3054 |
-
|
3055 |
-
|
3056 |
-
|
3057 |
-
|
3058 |
-
|
3059 |
-
|
3060 |
-
|
3061 |
-
|
3062 |
-
|
3063 |
|
3064 |
-
|
3065 |
-
|
3066 |
-
|
3067 |
-
|
3068 |
-
|
3069 |
-
|
3070 |
|
3071 |
-
|
3072 |
-
|
3073 |
-
|
3074 |
-
|
3075 |
-
|
3076 |
-
|
3077 |
|
3078 |
-
|
3079 |
-
|
3080 |
-
|
3081 |
-
|
3082 |
-
|
3083 |
-
|
3084 |
|
3085 |
-
|
3086 |
-
|
3087 |
-
|
3088 |
-
|
3089 |
-
|
3090 |
-
|
3091 |
|
3092 |
-
|
3093 |
-
|
3094 |
-
|
3095 |
-
|
3096 |
-
|
3097 |
-
|
3098 |
|
3099 |
-
|
3100 |
-
|
3101 |
-
|
3102 |
-
|
3103 |
-
|
3104 |
-
|
3105 |
|
3106 |
-
|
3107 |
-
|
3108 |
-
|
3109 |
-
|
3110 |
-
|
3111 |
-
|
3112 |
|
3113 |
-
|
3114 |
}
|
3115 |
}
|
3116 |
break;
|
3117 |
|
3118 |
case 'lightbox': {
|
3119 |
// Lightbox overlay configuration settings
|
3120 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
3121 |
{
|
3122 |
-
|
3123 |
-
|
|
|
3124 |
|
3125 |
-
|
3126 |
-
|
3127 |
-
|
3128 |
-
|
3129 |
-
|
3130 |
-
|
3131 |
-
|
3132 |
-
|
3133 |
|
3134 |
-
|
3135 |
-
|
3136 |
-
|
3137 |
-
|
3138 |
-
|
3139 |
-
|
3140 |
-
|
3141 |
-
|
3142 |
|
3143 |
-
|
3144 |
-
|
3145 |
-
|
3146 |
-
|
3147 |
-
|
3148 |
-
|
3149 |
|
3150 |
-
|
3151 |
-
|
3152 |
-
|
3153 |
-
|
3154 |
-
|
3155 |
-
|
3156 |
|
3157 |
-
|
3158 |
-
|
3159 |
-
|
3160 |
-
|
3161 |
-
|
3162 |
-
|
3163 |
|
3164 |
-
|
3165 |
-
|
3166 |
-
|
3167 |
-
|
3168 |
-
|
3169 |
-
|
3170 |
|
3171 |
-
|
3172 |
-
|
3173 |
-
|
3174 |
-
|
3175 |
-
|
3176 |
-
|
3177 |
|
3178 |
-
|
3179 |
-
|
3180 |
-
|
3181 |
-
|
3182 |
-
|
3183 |
-
|
3184 |
|
3185 |
-
|
3186 |
-
|
3187 |
-
|
3188 |
-
|
3189 |
-
|
3190 |
-
|
3191 |
-
|
3192 |
|
3193 |
-
|
3194 |
-
|
3195 |
-
|
3196 |
-
|
3197 |
-
|
3198 |
-
|
3199 |
|
3200 |
-
|
3201 |
-
|
3202 |
-
|
3203 |
-
|
3204 |
-
|
3205 |
-
|
3206 |
-
|
3207 |
-
|
3208 |
-
|
3209 |
-
|
3210 |
-
|
3211 |
-
|
3212 |
-
|
3213 |
-
|
3214 |
-
|
3215 |
-
|
3216 |
-
|
3217 |
-
|
3218 |
-
|
3219 |
-
|
3220 |
|
3221 |
-
|
3222 |
-
|
3223 |
-
|
3224 |
-
|
3225 |
-
|
3226 |
-
|
3227 |
|
3228 |
-
|
3229 |
-
|
3230 |
-
|
3231 |
-
|
3232 |
-
|
3233 |
-
|
3234 |
|
3235 |
-
|
3236 |
-
|
3237 |
-
|
3238 |
-
|
3239 |
-
|
3240 |
-
|
3241 |
-
|
3242 |
-
|
3243 |
-
|
3244 |
-
|
3245 |
-
|
3246 |
-
|
3247 |
-
|
3248 |
-
|
3249 |
-
|
3250 |
-
|
3251 |
-
|
3252 |
-
|
3253 |
-
|
3254 |
-
|
3255 |
-
|
3256 |
-
|
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 |
-
|
3266 |
-
|
3267 |
-
|
3268 |
-
|
3269 |
-
|
3270 |
-
|
3271 |
|
3272 |
-
|
3273 |
-
|
3274 |
-
|
3275 |
-
|
3276 |
-
|
3277 |
-
|
3278 |
|
3279 |
-
|
3280 |
-
|
3281 |
-
|
3282 |
-
|
3283 |
-
|
3284 |
-
|
3285 |
|
3286 |
-
|
3287 |
-
|
3288 |
-
|
3289 |
-
|
3290 |
-
|
3291 |
-
|
3292 |
-
$html = wppa_select($slug, $opts, $vals);
|
3293 |
-
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
3294 |
|
3295 |
-
|
3296 |
-
|
3297 |
-
|
3298 |
-
|
3299 |
-
|
3300 |
-
|
|
|
|
|
3301 |
|
3302 |
-
|
3303 |
-
|
3304 |
-
|
3305 |
-
|
3306 |
-
|
3307 |
-
|
3308 |
-
$html = wppa_select($slug, $opts, $vals);
|
3309 |
-
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
3310 |
|
3311 |
-
|
3312 |
-
|
3313 |
-
|
3314 |
-
|
3315 |
-
|
3316 |
-
|
3317 |
-
|
3318 |
-
|
3319 |
|
3320 |
-
|
3321 |
-
|
3322 |
-
|
3323 |
-
|
3324 |
-
|
3325 |
-
|
|
|
|
|
3326 |
|
3327 |
-
|
3328 |
-
|
3329 |
-
|
3330 |
-
|
3331 |
-
|
3332 |
-
|
3333 |
|
3334 |
-
|
3335 |
-
|
3336 |
-
|
3337 |
-
|
3338 |
-
|
3339 |
-
|
3340 |
|
3341 |
-
|
3342 |
-
|
3343 |
-
|
3344 |
-
|
3345 |
-
|
3346 |
-
|
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 |
-
|
3355 |
-
|
3356 |
-
|
3357 |
-
|
3358 |
-
|
3359 |
-
|
3360 |
-
|
3361 |
-
|
3362 |
-
|
3363 |
-
|
3364 |
-
|
3365 |
-
|
3366 |
|
3367 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3368 |
}
|
3369 |
}
|
3370 |
break;
|
3371 |
|
3372 |
case 'comments': {
|
3373 |
// Comments system related settings
|
3374 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
3375 |
{
|
3376 |
-
|
3377 |
-
|
|
|
3378 |
|
3379 |
-
|
3380 |
-
|
3381 |
-
|
3382 |
-
|
3383 |
-
|
3384 |
-
|
3385 |
|
3386 |
-
|
3387 |
-
|
3388 |
-
|
3389 |
-
|
3390 |
-
|
3391 |
-
|
3392 |
|
3393 |
-
|
3394 |
-
|
3395 |
-
|
3396 |
-
|
3397 |
-
|
3398 |
-
|
3399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3400 |
|
3401 |
-
|
3402 |
-
|
3403 |
-
|
3404 |
-
|
3405 |
-
|
3406 |
-
__('
|
3407 |
-
__('
|
3408 |
-
__('Use WP Discussion rules', 'wp-photo-album-plus'),
|
3409 |
);
|
3410 |
-
|
3411 |
-
'
|
3412 |
-
'
|
3413 |
-
'wprules',
|
3414 |
);
|
3415 |
-
|
3416 |
-
|
3417 |
|
3418 |
-
|
3419 |
-
|
3420 |
-
|
3421 |
-
|
3422 |
-
|
3423 |
-
|
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 |
-
|
3434 |
-
|
3435 |
-
|
3436 |
-
|
3437 |
-
|
3438 |
-
|
3439 |
|
3440 |
-
|
3441 |
-
|
3442 |
-
|
3443 |
-
|
3444 |
-
|
3445 |
-
|
3446 |
|
3447 |
-
|
3448 |
-
|
3449 |
-
|
3450 |
-
|
3451 |
-
|
3452 |
-
|
3453 |
|
3454 |
-
|
3455 |
-
|
3456 |
-
|
3457 |
-
|
3458 |
-
|
3459 |
-
|
3460 |
|
3461 |
-
|
3462 |
-
|
3463 |
-
|
3464 |
-
|
3465 |
-
|
3466 |
-
|
3467 |
|
3468 |
-
|
3469 |
-
|
3470 |
-
|
3471 |
-
|
3472 |
-
|
3473 |
-
|
3474 |
|
3475 |
-
|
3476 |
-
|
3477 |
-
|
3478 |
-
|
3479 |
-
|
3480 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3481 |
|
3482 |
-
|
3483 |
-
|
3484 |
-
|
3485 |
-
|
3486 |
-
|
3487 |
-
|
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 |
-
|
3507 |
-
|
3508 |
-
|
3509 |
-
|
3510 |
-
|
3511 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3521 |
}
|
3522 |
}
|
3523 |
break;
|
3524 |
|
3525 |
case 'rating': {
|
3526 |
// Rating system related settings
|
3527 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
3528 |
{
|
3529 |
-
|
3530 |
-
|
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 |
-
|
3554 |
-
|
3555 |
-
|
3556 |
-
|
3557 |
-
|
3558 |
-
|
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 |
-
|
3564 |
-
|
3565 |
-
|
3566 |
-
|
3567 |
-
|
3568 |
-
|
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 |
-
|
3573 |
-
|
3574 |
-
|
3575 |
-
|
3576 |
-
|
3577 |
-
|
3578 |
-
$html = wppa_select($slug, $opts, $vals);
|
3579 |
-
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3580 |
|
3581 |
-
|
3582 |
-
|
3583 |
-
|
3584 |
-
|
3585 |
-
|
3586 |
-
|
|
|
|
|
|
|
3587 |
|
3588 |
-
|
3589 |
-
|
3590 |
-
|
3591 |
-
|
3592 |
-
|
3593 |
-
|
|
|
|
|
3594 |
|
3595 |
-
|
3596 |
-
|
3597 |
-
|
3598 |
-
|
3599 |
-
|
3600 |
-
|
|
|
|
|
3601 |
|
3602 |
-
|
3603 |
-
|
3604 |
-
|
3605 |
-
|
3606 |
-
|
3607 |
-
|
3608 |
-
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
3609 |
|
3610 |
-
|
3611 |
-
|
3612 |
-
|
3613 |
-
|
3614 |
-
|
3615 |
-
|
3616 |
|
3617 |
-
|
3618 |
-
|
3619 |
-
|
3620 |
-
|
3621 |
-
|
3622 |
-
|
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 |
-
|
3627 |
-
|
3628 |
-
|
3629 |
-
|
3630 |
-
|
3631 |
-
|
|
|
3632 |
|
3633 |
-
|
3634 |
-
|
3635 |
-
|
3636 |
-
|
3637 |
-
|
3638 |
-
|
3639 |
|
3640 |
-
|
3641 |
-
|
3642 |
-
|
3643 |
-
|
3644 |
-
|
3645 |
-
|
|
|
|
|
3646 |
|
3647 |
-
|
3648 |
-
|
3649 |
-
|
3650 |
-
|
3651 |
-
|
3652 |
-
|
3653 |
-
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
3654 |
|
3655 |
-
|
3656 |
-
|
3657 |
-
|
3658 |
-
|
3659 |
-
|
3660 |
-
|
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 |
-
|
3667 |
-
|
3668 |
-
|
3669 |
-
|
3670 |
-
|
3671 |
-
|
3672 |
-
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
3673 |
|
3674 |
-
|
3675 |
-
|
3676 |
-
|
3677 |
-
|
3678 |
-
|
3679 |
-
|
3680 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3681 |
|
3682 |
-
|
3683 |
-
|
3684 |
-
|
3685 |
-
|
3686 |
-
|
3687 |
-
|
3688 |
-
|
3689 |
-
|
3690 |
-
|
3691 |
-
|
3692 |
-
|
3693 |
-
|
3694 |
-
|
3695 |
-
|
3696 |
-
|
3697 |
-
|
3698 |
-
|
3699 |
-
|
3700 |
-
|
3701 |
-
|
3702 |
-
|
3703 |
-
|
3704 |
-
|
3705 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3706 |
|
3707 |
-
|
3708 |
-
|
3709 |
-
|
3710 |
-
|
3711 |
-
|
3712 |
-
|
3713 |
-
|
3714 |
-
|
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 |
-
|
3766 |
-
|
3767 |
-
|
3768 |
-
|
3769 |
-
|
3770 |
-
|
3771 |
-
|
3772 |
-
|
|
|
|
|
|
|
3773 |
|
3774 |
-
|
3775 |
-
|
3776 |
-
|
3777 |
-
|
3778 |
-
|
3779 |
-
|
3780 |
-
|
3781 |
-
|
3782 |
-
|
3783 |
-
$html = wppa_select($slug, $opts, $vals);
|
3784 |
-
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
3785 |
|
3786 |
-
|
3787 |
-
|
3788 |
-
|
3789 |
-
|
3790 |
-
|
3791 |
-
|
3792 |
-
|
3793 |
-
|
3794 |
-
|
|
|
3795 |
|
3796 |
-
|
3797 |
-
|
3798 |
-
|
3799 |
-
|
3800 |
-
|
3801 |
-
|
3802 |
-
|
3803 |
-
|
3804 |
-
|
3805 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3806 |
|
3807 |
-
|
3808 |
-
|
3809 |
-
|
3810 |
-
|
3811 |
-
|
3812 |
-
|
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 |
-
|
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 |
-
|
3836 |
-
|
|
|
3837 |
|
3838 |
-
|
3839 |
-
|
3840 |
-
|
3841 |
-
|
3842 |
-
|
3843 |
-
|
3844 |
-
|
3845 |
-
|
3846 |
-
|
3847 |
-
|
3848 |
-
|
3849 |
-
|
3850 |
-
|
3851 |
-
|
3852 |
-
|
3853 |
-
|
3854 |
-
|
3855 |
-
|
3856 |
-
|
3857 |
-
|
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 |
-
|
3866 |
-
|
3867 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3868 |
}
|
3869 |
}
|
3870 |
-
|
3871 |
-
$html1 = wppa_select($slug, $opts, $vals, '', '', true);
|
3872 |
|
3873 |
-
|
3874 |
-
|
3875 |
-
|
3876 |
-
|
3877 |
|
3878 |
-
|
3879 |
-
|
3880 |
|
3881 |
-
|
3882 |
-
|
3883 |
-
|
3884 |
-
|
3885 |
-
|
3886 |
-
|
3887 |
-
|
3888 |
|
3889 |
-
|
3890 |
-
|
3891 |
-
|
3892 |
-
|
3893 |
-
|
3894 |
-
|
3895 |
|
3896 |
-
|
3897 |
-
|
3898 |
-
|
3899 |
-
|
3900 |
-
|
3901 |
-
|
3902 |
|
3903 |
-
|
3904 |
-
|
3905 |
-
|
3906 |
-
|
3907 |
-
|
3908 |
-
|
3909 |
|
3910 |
-
|
3911 |
-
|
3912 |
-
|
3913 |
-
|
3914 |
-
|
3915 |
-
|
3916 |
|
3917 |
-
|
3918 |
-
|
3919 |
-
|
3920 |
-
|
3921 |
-
|
3922 |
-
|
3923 |
|
3924 |
-
|
3925 |
-
|
3926 |
-
|
3927 |
-
|
3928 |
-
|
3929 |
-
|
3930 |
|
3931 |
-
|
3932 |
-
|
3933 |
-
|
3934 |
-
|
3935 |
-
|
3936 |
-
|
3937 |
|
3938 |
-
|
3939 |
-
|
3940 |
-
|
3941 |
-
|
3942 |
-
|
3943 |
-
|
3944 |
|
3945 |
-
|
3946 |
-
|
3947 |
-
|
3948 |
-
|
3949 |
-
|
3950 |
-
|
3951 |
|
3952 |
-
|
3953 |
-
|
3954 |
-
|
3955 |
-
|
3956 |
-
|
3957 |
-
|
3958 |
-
|
3959 |
-
|
3960 |
-
|
3961 |
-
|
3962 |
-
|
3963 |
-
|
3964 |
|
3965 |
-
|
3966 |
-
|
3967 |
-
|
3968 |
-
|
3969 |
-
|
3970 |
-
|
3971 |
|
3972 |
-
|
3973 |
-
|
3974 |
-
|
3975 |
-
|
3976 |
-
|
3977 |
-
|
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 |
-
|
3988 |
-
|
3989 |
-
|
3990 |
-
|
3991 |
-
|
3992 |
-
|
|
|
3993 |
|
3994 |
-
|
3995 |
-
|
3996 |
-
|
3997 |
-
|
3998 |
-
|
3999 |
-
|
4000 |
|
4001 |
-
|
4002 |
-
|
4003 |
-
|
4004 |
-
|
4005 |
-
|
4006 |
-
|
4007 |
|
4008 |
-
|
4009 |
-
|
4010 |
-
|
4011 |
-
|
4012 |
-
|
4013 |
-
|
4014 |
|
4015 |
-
|
4016 |
-
|
4017 |
-
|
4018 |
-
|
4019 |
-
|
4020 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4021 |
|
4022 |
-
|
4023 |
-
|
4024 |
-
|
4025 |
-
|
4026 |
-
|
4027 |
-
|
4028 |
|
4029 |
-
|
4030 |
-
|
4031 |
-
|
4032 |
-
|
4033 |
-
|
4034 |
-
|
4035 |
|
4036 |
-
|
4037 |
-
|
4038 |
-
|
4039 |
-
|
4040 |
-
|
4041 |
-
|
4042 |
-
|
4043 |
-
|
4044 |
|
4045 |
-
|
4046 |
-
|
4047 |
-
|
4048 |
-
|
4049 |
-
|
4050 |
-
|
4051 |
|
4052 |
-
|
4053 |
-
|
4054 |
-
|
4055 |
-
|
4056 |
-
|
4057 |
-
|
4058 |
|
4059 |
-
|
4060 |
-
|
4061 |
-
|
4062 |
-
|
4063 |
-
|
4064 |
-
|
4065 |
|
4066 |
-
|
4067 |
-
|
4068 |
-
|
4069 |
-
|
4070 |
-
|
4071 |
-
|
4072 |
|
4073 |
-
|
4074 |
-
|
4075 |
-
|
4076 |
-
|
4077 |
-
|
4078 |
-
|
4079 |
|
4080 |
-
|
4081 |
-
|
4082 |
-
|
4083 |
-
|
4084 |
-
|
4085 |
-
|
4086 |
|
4087 |
-
|
4088 |
-
|
4089 |
-
|
4090 |
-
|
4091 |
-
|
4092 |
-
|
4093 |
|
4094 |
-
|
4095 |
-
|
4096 |
-
|
4097 |
-
|
4098 |
-
|
4099 |
-
|
4100 |
-
|
4101 |
-
|
4102 |
-
|
4103 |
-
|
4104 |
-
|
4105 |
-
|
4106 |
-
|
4107 |
-
|
4108 |
-
|
4109 |
-
|
4110 |
-
|
4111 |
-
|
4112 |
-
|
4113 |
-
|
4114 |
-
|
4115 |
|
4116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4117 |
}
|
4118 |
}
|
4119 |
break;
|
4120 |
|
4121 |
case 'widget': {
|
4122 |
// General widget size settings
|
4123 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
4124 |
{
|
4125 |
-
|
4126 |
-
|
|
|
4127 |
|
4128 |
-
|
4129 |
-
|
4130 |
-
|
4131 |
-
|
4132 |
-
|
4133 |
-
|
4134 |
|
4135 |
-
|
4136 |
-
|
4137 |
-
|
4138 |
-
|
4139 |
-
|
4140 |
-
|
4141 |
-
|
4142 |
-
|
4143 |
-
|
4144 |
-
|
4145 |
-
|
4146 |
-
|
4147 |
-
|
4148 |
-
|
4149 |
-
|
4150 |
-
|
4151 |
-
|
4152 |
|
4153 |
-
|
4154 |
-
|
4155 |
-
|
4156 |
-
|
4157 |
-
|
4158 |
-
|
4159 |
|
4160 |
-
|
4161 |
-
|
4162 |
-
|
4163 |
-
|
4164 |
-
|
4165 |
-
|
4166 |
-
|
4167 |
-
|
4168 |
|
4169 |
-
|
4170 |
-
|
4171 |
-
|
4172 |
-
|
4173 |
-
|
4174 |
-
|
4175 |
|
4176 |
-
|
4177 |
-
|
4178 |
-
|
4179 |
-
|
4180 |
-
|
4181 |
-
|
4182 |
-
|
4183 |
-
|
4184 |
|
4185 |
-
|
4186 |
-
|
4187 |
-
|
4188 |
-
|
4189 |
-
|
4190 |
-
|
4191 |
|
4192 |
-
|
4193 |
-
|
4194 |
-
|
4195 |
-
|
4196 |
-
|
4197 |
-
|
4198 |
-
|
4199 |
-
|
4200 |
|
4201 |
-
|
4202 |
-
|
4203 |
-
|
4204 |
-
|
4205 |
-
|
4206 |
-
|
4207 |
|
4208 |
-
|
4209 |
-
|
4210 |
-
|
4211 |
-
|
4212 |
-
|
4213 |
-
|
4214 |
-
|
4215 |
-
|
4216 |
|
4217 |
-
|
4218 |
-
|
4219 |
-
|
4220 |
-
|
4221 |
-
|
4222 |
-
|
4223 |
-
|
4224 |
-
|
4225 |
|
4226 |
-
|
4227 |
-
|
4228 |
-
|
4229 |
-
|
4230 |
-
|
4231 |
-
|
4232 |
-
|
4233 |
-
|
4234 |
|
4235 |
-
|
4236 |
-
|
4237 |
-
|
4238 |
-
|
4239 |
-
|
4240 |
-
|
4241 |
|
4242 |
-
|
4243 |
-
|
4244 |
-
|
4245 |
-
|
4246 |
-
|
4247 |
-
|
4248 |
|
4249 |
-
|
4250 |
-
|
4251 |
-
|
4252 |
-
|
4253 |
-
|
4254 |
-
|
4255 |
-
|
4256 |
-
|
4257 |
|
4258 |
-
|
4259 |
}
|
4260 |
// Visibility settings
|
4261 |
-
$desc = $wppa_subtab_names[$tab]['2'];
|
4262 |
{
|
4263 |
-
|
4264 |
-
|
|
|
4265 |
|
4266 |
-
|
4267 |
-
|
4268 |
-
|
4269 |
-
|
4270 |
-
|
4271 |
-
|
4272 |
-
|
|
|
4273 |
|
4274 |
-
|
4275 |
-
|
4276 |
-
|
4277 |
-
|
4278 |
-
|
4279 |
-
|
4280 |
-
|
|
|
4281 |
|
4282 |
-
|
4283 |
-
|
4284 |
-
|
4285 |
-
|
4286 |
-
|
4287 |
-
|
4288 |
|
4289 |
-
|
4290 |
}
|
4291 |
// QR Code widget settings
|
4292 |
-
$desc = $wppa_subtab_names[$tab]['3'];
|
4293 |
{
|
4294 |
-
|
4295 |
-
|
|
|
4296 |
|
4297 |
-
|
4298 |
-
|
4299 |
-
|
4300 |
-
|
4301 |
-
|
4302 |
-
|
4303 |
|
4304 |
-
|
4305 |
-
|
4306 |
-
|
4307 |
-
|
4308 |
-
|
4309 |
-
|
4310 |
|
4311 |
-
|
4312 |
-
|
4313 |
-
|
4314 |
-
|
4315 |
-
|
4316 |
-
|
4317 |
|
4318 |
-
|
4319 |
-
|
4320 |
-
|
4321 |
-
|
4322 |
-
|
4323 |
|
4324 |
-
|
4325 |
}
|
4326 |
}
|
4327 |
break;
|
4328 |
|
4329 |
case 'links': {
|
4330 |
-
// Links
|
4331 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
4332 |
{
|
4333 |
-
|
4334 |
-
|
4335 |
-
|
4336 |
-
|
4337 |
-
|
4338 |
-
|
4339 |
-
|
4340 |
-
|
4341 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4342 |
);
|
4343 |
-
|
4344 |
-
|
4345 |
-
|
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 |
-
|
4380 |
-
|
4381 |
-
|
4382 |
-
|
4383 |
-
|
4384 |
-
|
4385 |
-
|
4386 |
-
|
4387 |
-
|
4388 |
-
|
4389 |
-
|
4390 |
-
|
4391 |
-
|
4392 |
-
|
4393 |
-
|
4394 |
-
|
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 |
-
|
4417 |
-
|
4418 |
-
|
4419 |
-
|
4420 |
-
|
4421 |
-
|
4422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4423 |
|
4424 |
-
|
4425 |
-
|
4426 |
-
|
4427 |
-
|
4428 |
-
|
4429 |
-
|
4430 |
-
|
4431 |
-
|
4432 |
-
|
4433 |
-
|
4434 |
-
|
4435 |
-
|
4436 |
-
|
4437 |
-
|
4438 |
-
|
4439 |
-
|
4440 |
-
|
4441 |
-
|
4442 |
-
|
4443 |
-
|
4444 |
-
|
4445 |
-
|
4446 |
-
|
4447 |
-
|
4448 |
-
|
4449 |
-
|
4450 |
-
|
4451 |
-
|
4452 |
-
|
4453 |
-
|
4454 |
-
|
4455 |
-
|
4456 |
-
|
4457 |
-
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4458 |
|
4459 |
-
|
4460 |
-
|
4461 |
-
|
4462 |
-
|
4463 |
-
|
4464 |
-
|
4465 |
-
|
4466 |
-
|
4467 |
-
|
4468 |
-
|
4469 |
-
|
4470 |
-
|
4471 |
-
|
4472 |
-
|
4473 |
-
|
4474 |
-
|
4475 |
-
|
4476 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4477 |
|
4478 |
-
|
4479 |
-
|
4480 |
-
|
4481 |
-
|
4482 |
-
|
4483 |
-
|
4484 |
-
|
4485 |
-
|
4486 |
-
|
4487 |
-
|
4488 |
-
|
4489 |
-
|
4490 |
-
|
4491 |
-
|
4492 |
-
|
4493 |
-
|
4494 |
-
|
4495 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4496 |
|
4497 |
-
|
4498 |
-
|
4499 |
-
|
4500 |
-
|
4501 |
-
|
4502 |
-
|
4503 |
-
|
4504 |
-
|
4505 |
-
|
4506 |
-
|
4507 |
-
|
4508 |
-
|
4509 |
-
|
4510 |
-
|
4511 |
-
|
4512 |
-
|
4513 |
-
|
4514 |
-
|
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 |
-
|
4536 |
-
|
4537 |
-
|
4538 |
-
|
4539 |
-
|
4540 |
-
|
4541 |
-
|
4542 |
-
|
4543 |
-
|
4544 |
-
|
4545 |
-
|
4546 |
-
'
|
4547 |
-
|
4548 |
-
|
4549 |
-
|
4550 |
-
|
4551 |
-
|
4552 |
-
|
4553 |
-
$html = array($html1, $html2, $html3, $html4);
|
4554 |
-
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
4555 |
|
4556 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4557 |
}
|
4558 |
// Links from items and images in widgets
|
4559 |
-
$desc = $wppa_subtab_names[$tab]['2'];
|
4560 |
{
|
4561 |
-
|
4562 |
-
|
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 |
-
|
4603 |
-
|
4604 |
-
|
4605 |
-
|
4606 |
-
|
4607 |
-
|
4608 |
-
|
4609 |
-
|
4610 |
-
|
4611 |
-
|
4612 |
-
|
4613 |
-
|
4614 |
-
|
4615 |
-
|
4616 |
-
|
4617 |
-
|
4618 |
-
|
4619 |
-
|
4620 |
-
|
4621 |
-
|
4622 |
-
|
4623 |
-
|
4624 |
-
|
4625 |
-
|
4626 |
-
|
4627 |
-
|
4628 |
-
|
4629 |
-
|
4630 |
-
|
4631 |
-
|
4632 |
-
|
4633 |
-
|
4634 |
-
|
4635 |
-
|
4636 |
-
|
4637 |
-
|
|
|
4638 |
|
4639 |
-
|
4640 |
-
|
4641 |
-
|
4642 |
-
|
4643 |
-
|
4644 |
-
|
4645 |
-
|
4646 |
-
|
4647 |
-
|
4648 |
-
|
4649 |
-
|
4650 |
-
|
4651 |
-
|
4652 |
-
|
4653 |
-
|
4654 |
-
|
4655 |
-
|
4656 |
-
|
4657 |
-
|
4658 |
-
|
4659 |
-
|
4660 |
-
|
4661 |
-
|
4662 |
-
|
4663 |
-
|
4664 |
-
|
4665 |
-
|
4666 |
-
|
4667 |
-
|
4668 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4669 |
|
4670 |
-
|
4671 |
-
|
4672 |
-
|
4673 |
-
|
4674 |
-
|
4675 |
-
|
4676 |
-
|
4677 |
-
|
4678 |
-
|
4679 |
-
|
4680 |
-
|
4681 |
-
|
4682 |
-
|
4683 |
-
|
4684 |
-
|
4685 |
-
|
4686 |
-
|
4687 |
-
|
4688 |
-
|
4689 |
-
|
4690 |
-
|
4691 |
-
|
4692 |
-
|
4693 |
-
'
|
4694 |
-
|
4695 |
-
|
4696 |
-
|
4697 |
-
|
4698 |
-
|
4699 |
-
|
4700 |
-
$html = array($html1, $html2, $html3, $html4);
|
4701 |
-
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4702 |
|
4703 |
-
|
4704 |
-
|
4705 |
-
|
4706 |
-
|
4707 |
-
|
4708 |
-
|
4709 |
-
|
4710 |
-
|
4711 |
-
|
4712 |
-
|
4713 |
-
|
4714 |
-
|
4715 |
-
|
4716 |
-
|
4717 |
-
|
4718 |
-
|
4719 |
-
|
4720 |
-
|
4721 |
-
|
4722 |
-
|
4723 |
-
|
4724 |
-
|
4725 |
-
|
4726 |
-
|
4727 |
-
|
4728 |
-
'
|
4729 |
-
|
4730 |
-
'
|
4731 |
-
|
4732 |
-
|
4733 |
-
|
4734 |
-
|
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 |
-
|
4741 |
-
|
4742 |
-
|
4743 |
-
|
4744 |
-
|
4745 |
-
|
4746 |
-
|
4747 |
-
|
4748 |
-
|
4749 |
-
|
4750 |
-
|
4751 |
-
|
4752 |
-
|
4753 |
-
|
4754 |
-
|
4755 |
-
|
4756 |
-
|
4757 |
-
|
4758 |
-
|
4759 |
-
|
4760 |
-
|
4761 |
-
|
4762 |
-
|
4763 |
-
|
4764 |
-
|
4765 |
-
|
4766 |
-
|
4767 |
-
|
4768 |
-
|
4769 |
-
'
|
4770 |
-
|
4771 |
-
'
|
4772 |
-
'
|
4773 |
-
|
4774 |
-
|
4775 |
-
|
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 |
-
|
4784 |
-
|
4785 |
-
|
4786 |
-
|
4787 |
-
|
4788 |
-
|
4789 |
-
|
4790 |
-
|
4791 |
-
|
4792 |
-
|
4793 |
-
|
4794 |
-
|
4795 |
-
|
4796 |
-
|
4797 |
-
|
4798 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4799 |
|
4800 |
-
|
4801 |
-
|
4802 |
-
|
4803 |
-
|
4804 |
-
|
4805 |
-
|
4806 |
-
|
4807 |
-
|
4808 |
-
|
4809 |
-
|
4810 |
-
|
4811 |
-
|
4812 |
-
|
4813 |
-
|
4814 |
-
|
4815 |
-
|
4816 |
|
4817 |
-
|
4818 |
-
|
4819 |
-
|
4820 |
-
|
4821 |
-
|
4822 |
-
|
4823 |
-
|
4824 |
-
|
4825 |
-
|
4826 |
-
|
4827 |
-
|
4828 |
-
|
4829 |
-
|
4830 |
-
|
4831 |
-
|
4832 |
-
|
4833 |
|
4834 |
-
|
4835 |
-
|
4836 |
-
|
4837 |
-
|
4838 |
-
|
4839 |
-
|
4840 |
-
|
4841 |
-
|
4842 |
-
|
4843 |
-
|
4844 |
-
|
4845 |
-
|
4846 |
-
|
4847 |
-
|
4848 |
-
|
4849 |
-
|
4850 |
|
4851 |
-
|
4852 |
-
|
4853 |
-
|
4854 |
-
|
4855 |
-
|
4856 |
-
|
4857 |
-
|
4858 |
-
|
4859 |
-
|
4860 |
-
|
4861 |
-
|
4862 |
-
|
4863 |
-
|
4864 |
-
|
4865 |
-
|
4866 |
-
'
|
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 |
-
|
4883 |
-
|
4884 |
-
|
4885 |
-
|
4886 |
-
|
4887 |
-
|
4888 |
-
|
4889 |
-
|
4890 |
-
|
4891 |
-
|
4892 |
-
|
4893 |
-
|
4894 |
-
|
4895 |
-
|
4896 |
-
|
4897 |
-
|
4898 |
-
|
4899 |
-
|
4900 |
-
|
4901 |
-
|
4902 |
-
|
4903 |
-
|
4904 |
-
|
4905 |
-
|
4906 |
-
|
4907 |
-
|
4908 |
-
|
4909 |
-
|
4910 |
-
|
4911 |
-
|
4912 |
|
4913 |
-
|
4914 |
-
|
4915 |
-
|
4916 |
-
|
4917 |
-
|
4918 |
-
|
4919 |
-
|
4920 |
-
|
4921 |
-
|
4922 |
-
|
4923 |
-
|
4924 |
-
|
4925 |
-
|
4926 |
-
|
4927 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4928 |
|
4929 |
-
|
4930 |
-
|
4931 |
-
|
4932 |
-
|
4933 |
-
|
4934 |
-
|
4935 |
-
|
4936 |
-
|
4937 |
-
|
4938 |
-
|
4939 |
-
|
4940 |
-
|
4941 |
-
|
4942 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4958 |
}
|
4959 |
// Other links
|
4960 |
-
$desc = $wppa_subtab_names[$tab]['3'];
|
4961 |
{
|
4962 |
-
|
4963 |
-
|
|
|
4964 |
|
4965 |
-
|
4966 |
-
|
4967 |
-
|
4968 |
-
|
4969 |
-
|
4970 |
-
|
4971 |
-
|
4972 |
-
|
4973 |
-
|
4974 |
-
|
4975 |
-
|
4976 |
-
|
4977 |
-
|
4978 |
-
|
4979 |
-
|
4980 |
-
|
4981 |
-
|
4982 |
-
|
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 |
-
|
4992 |
-
$
|
4993 |
-
$desc = __('Select filetypes to be downloadable when link is New Style', 'wp-photo-album-plus');
|
4994 |
$help = '';
|
4995 |
-
$slug = '
|
4996 |
-
$
|
4997 |
-
|
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 |
-
|
5006 |
-
|
5007 |
-
|
5008 |
-
|
5009 |
-
|
5010 |
-
|
5011 |
-
|
5012 |
-
|
5013 |
-
|
5014 |
-
|
5015 |
-
|
5016 |
-
|
5017 |
-
|
5018 |
-
wppa_setting_new($slug, '4', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5019 |
|
5020 |
-
|
5021 |
-
|
5022 |
-
|
5023 |
-
|
5024 |
-
|
5025 |
-
|
5026 |
-
|
5027 |
-
|
5028 |
-
|
5029 |
-
|
5030 |
-
|
5031 |
-
|
5032 |
-
|
5033 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5034 |
|
5035 |
-
|
5036 |
-
|
5037 |
-
|
5038 |
-
|
5039 |
-
|
5040 |
-
|
5041 |
|
5042 |
-
|
5043 |
-
|
5044 |
-
|
5045 |
-
|
5046 |
-
|
5047 |
-
|
5048 |
|
5049 |
-
|
5050 |
-
|
5051 |
-
|
5052 |
-
|
5053 |
-
|
5054 |
-
|
5055 |
|
5056 |
-
|
5057 |
-
|
5058 |
-
|
5059 |
-
|
5060 |
-
|
5061 |
-
|
5062 |
-
|
5063 |
-
|
5064 |
-
|
5065 |
-
|
5066 |
-
|
5067 |
-
|
5068 |
-
|
5069 |
-
|
5070 |
-
|
5071 |
|
5072 |
-
|
5073 |
-
|
5074 |
-
|
5075 |
-
|
5076 |
-
|
5077 |
-
|
5078 |
-
|
5079 |
-
|
5080 |
-
|
5081 |
-
|
5082 |
-
|
5083 |
-
|
5084 |
-
|
5085 |
-
|
5086 |
-
|
5087 |
|
5088 |
-
|
5089 |
-
|
5090 |
-
|
5091 |
-
|
5092 |
-
|
5093 |
-
|
5094 |
-
|
5095 |
-
|
5096 |
-
|
5097 |
-
|
5098 |
-
|
5099 |
-
|
5100 |
-
|
5101 |
-
|
5102 |
-
|
5103 |
|
5104 |
-
|
5105 |
-
|
5106 |
-
|
5107 |
-
|
5108 |
-
|
5109 |
-
|
5110 |
-
|
5111 |
-
|
5112 |
-
|
5113 |
-
|
5114 |
-
|
5115 |
-
|
5116 |
-
|
5117 |
-
|
5118 |
-
|
5119 |
-
|
5120 |
-
|
5121 |
-
|
5122 |
-
|
5123 |
-
|
5124 |
-
|
5125 |
-
|
5126 |
-
|
5127 |
-
|
5128 |
-
|
5129 |
-
|
5130 |
-
|
5131 |
-
|
5132 |
-
|
5133 |
-
|
5134 |
-
|
5135 |
-
|
5136 |
-
|
5137 |
-
|
5138 |
-
|
5139 |
-
|
5140 |
-
|
5141 |
-
|
5142 |
-
|
5143 |
-
|
5144 |
|
5145 |
-
|
5146 |
-
|
5147 |
-
|
5148 |
-
|
5149 |
-
|
5150 |
-
|
5151 |
-
|
5152 |
-
|
5153 |
-
|
5154 |
-
|
5155 |
-
|
5156 |
-
|
5157 |
-
|
5158 |
-
|
5159 |
-
|
5160 |
-
|
5161 |
-
|
5162 |
-
|
5163 |
-
|
5164 |
-
|
5165 |
-
|
5166 |
-
|
5167 |
-
|
5168 |
|
5169 |
-
|
5170 |
-
|
5171 |
-
|
5172 |
-
|
5173 |
-
|
5174 |
-
|
5175 |
-
|
5176 |
-
|
5177 |
-
|
5178 |
-
|
5179 |
-
|
5180 |
-
|
5181 |
-
|
5182 |
-
|
5183 |
|
5184 |
-
|
5185 |
}
|
5186 |
}
|
5187 |
break;
|
5188 |
|
5189 |
case 'users': {
|
5190 |
// Frontend (user) upload related settings
|
5191 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
5192 |
{
|
5193 |
-
|
5194 |
-
|
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 |
-
|
5211 |
-
|
5212 |
-
|
5213 |
-
|
5214 |
-
|
5215 |
-
|
5216 |
|
5217 |
-
|
5218 |
-
|
5219 |
-
|
5220 |
-
|
5221 |
-
|
5222 |
-
|
5223 |
-
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
5224 |
|
5225 |
-
|
5226 |
-
|
5227 |
-
|
5228 |
-
|
5229 |
-
|
5230 |
-
|
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 |
-
|
5245 |
-
|
5246 |
-
|
5247 |
-
|
5248 |
-
|
5249 |
-
|
|
|
5250 |
|
5251 |
-
|
5252 |
-
|
5253 |
-
|
5254 |
-
|
5255 |
-
|
5256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5257 |
|
5258 |
-
|
5259 |
-
|
5260 |
-
|
5261 |
-
|
5262 |
-
|
5263 |
-
|
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 |
-
|
5289 |
-
|
5290 |
-
|
5291 |
-
|
5292 |
-
|
5293 |
-
|
5294 |
-
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
5295 |
|
5296 |
-
|
5297 |
-
|
5298 |
-
|
5299 |
-
|
5300 |
-
|
5301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5302 |
|
5303 |
-
|
5304 |
-
|
5305 |
-
|
5306 |
-
|
5307 |
-
|
5308 |
-
|
|
|
5309 |
|
5310 |
-
|
|
|
|
|
|
|
|
|
|
|
5311 |
|
5312 |
-
|
5313 |
-
|
5314 |
-
|
5315 |
-
|
5316 |
-
|
5317 |
-
|
5318 |
-
wppa_setting_new($slug, '15', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
|
5319 |
|
5320 |
-
|
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 |
-
|
5335 |
-
|
5336 |
-
|
5337 |
-
|
5338 |
-
|
5339 |
-
|
5340 |
-
|
5341 |
|
5342 |
-
|
5343 |
-
|
5344 |
-
|
5345 |
-
|
5346 |
-
|
5347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5348 |
|
5349 |
-
|
5350 |
-
|
5351 |
-
|
5352 |
-
|
5353 |
-
|
5354 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5355 |
|
5356 |
-
|
5357 |
-
|
5358 |
-
|
5359 |
-
|
5360 |
-
|
5361 |
-
|
5362 |
-
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
5363 |
|
5364 |
-
|
5365 |
-
|
5366 |
-
|
5367 |
-
|
5368 |
-
|
5369 |
-
|
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 |
-
|
5386 |
-
|
5387 |
-
|
5388 |
-
|
5389 |
-
|
5390 |
-
|
5391 |
|
5392 |
-
|
5393 |
-
|
5394 |
-
|
5395 |
-
|
5396 |
-
|
5397 |
-
|
5398 |
|
5399 |
-
|
5400 |
-
|
5401 |
-
|
5402 |
-
|
5403 |
-
|
5404 |
-
|
5405 |
|
5406 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5407 |
|
5408 |
-
|
5409 |
-
|
5410 |
-
|
5411 |
-
|
5412 |
-
|
5413 |
-
|
5414 |
-
|
5415 |
-
|
5416 |
-
|
5417 |
-
|
5418 |
-
|
5419 |
-
|
5420 |
-
|
5421 |
-
|
5422 |
-
|
5423 |
-
|
5424 |
-
|
5425 |
-
|
5426 |
-
|
5427 |
-
|
5428 |
-
|
5429 |
|
5430 |
-
|
5431 |
-
|
5432 |
-
|
5433 |
-
|
5434 |
-
|
5435 |
-
|
5436 |
|
5437 |
-
|
5438 |
-
|
5439 |
-
|
5440 |
-
|
5441 |
-
|
5442 |
-
|
5443 |
|
5444 |
-
|
5445 |
-
|
5446 |
-
|
5447 |
-
|
5448 |
-
|
5449 |
-
|
5450 |
-
|
5451 |
-
|
5452 |
|
5453 |
-
|
5454 |
}
|
5455 |
}
|
5456 |
break;
|
5457 |
|
5458 |
case 'email': {
|
5459 |
// Email configuration settings
|
5460 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
5461 |
{
|
5462 |
-
|
5463 |
-
|
|
|
5464 |
|
5465 |
-
|
5466 |
-
|
5467 |
-
|
5468 |
-
|
5469 |
-
|
5470 |
-
|
5471 |
-
|
5472 |
|
5473 |
-
|
5474 |
-
|
5475 |
-
|
5476 |
-
|
5477 |
-
|
5478 |
-
|
5479 |
-
|
5480 |
|
5481 |
-
|
5482 |
-
|
5483 |
-
|
5484 |
-
|
5485 |
-
|
5486 |
-
|
5487 |
-
|
5488 |
-
|
5489 |
-
|
5490 |
-
|
5491 |
-
|
5492 |
-
|
5493 |
-
|
5494 |
-
|
5495 |
-
|
5496 |
-
|
5497 |
-
|
5498 |
-
|
5499 |
|
5500 |
-
|
5501 |
-
|
5502 |
-
|
5503 |
-
|
5504 |
-
|
5505 |
-
|
5506 |
-
|
5507 |
|
5508 |
-
|
5509 |
-
|
5510 |
-
|
5511 |
-
|
5512 |
-
|
5513 |
-
|
5514 |
-
|
5515 |
|
5516 |
-
|
5517 |
-
|
5518 |
-
|
5519 |
-
|
5520 |
-
|
5521 |
-
|
5522 |
-
|
5523 |
|
5524 |
-
|
5525 |
-
|
5526 |
-
|
5527 |
-
|
5528 |
-
|
5529 |
-
|
5530 |
-
|
5531 |
|
5532 |
-
|
5533 |
-
|
5534 |
-
|
5535 |
-
|
5536 |
-
|
5537 |
-
|
5538 |
|
5539 |
-
|
5540 |
-
|
5541 |
-
|
5542 |
-
|
5543 |
-
|
5544 |
-
|
5545 |
-
|
5546 |
|
5547 |
-
|
5548 |
-
|
5549 |
-
|
5550 |
-
|
5551 |
-
|
5552 |
-
|
5553 |
|
5554 |
-
|
5555 |
-
|
5556 |
-
|
5557 |
-
|
5558 |
-
|
5559 |
-
|
5560 |
-
|
5561 |
-
|
5562 |
|
5563 |
-
|
5564 |
-
|
5565 |
-
|
5566 |
-
|
5567 |
-
|
5568 |
-
|
5569 |
-
|
5570 |
-
|
5571 |
|
5572 |
-
|
5573 |
-
|
5574 |
-
|
5575 |
-
|
5576 |
-
|
5577 |
-
|
5578 |
|
5579 |
-
|
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 |
-
|
5647 |
-
|
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 |
-
|
5657 |
-
|
5658 |
-
|
5659 |
-
|
5660 |
-
|
5661 |
-
|
5662 |
|
5663 |
-
|
5664 |
-
|
5665 |
-
|
5666 |
-
|
5667 |
-
|
5668 |
-
|
5669 |
|
5670 |
-
|
5671 |
-
|
5672 |
-
|
5673 |
-
|
5674 |
-
|
5675 |
-
|
5676 |
|
5677 |
-
|
5678 |
-
|
5679 |
-
|
5680 |
-
|
5681 |
-
|
5682 |
-
|
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 |
-
|
5690 |
-
|
5691 |
-
|
5692 |
-
|
5693 |
-
|
5694 |
-
|
|
|
|
|
|
|
|
|
|
|
5695 |
|
5696 |
-
|
5697 |
-
|
5698 |
-
|
5699 |
-
|
5700 |
-
|
5701 |
-
|
5702 |
|
5703 |
-
|
5704 |
-
|
5705 |
-
|
5706 |
-
|
5707 |
-
|
5708 |
-
|
5709 |
|
5710 |
-
|
5711 |
-
|
5712 |
-
|
5713 |
-
|
5714 |
-
|
5715 |
-
|
5716 |
|
5717 |
-
|
5718 |
-
|
5719 |
-
|
5720 |
-
|
5721 |
-
|
5722 |
-
|
5723 |
|
5724 |
-
|
5725 |
-
|
5726 |
-
|
5727 |
-
|
5728 |
-
|
5729 |
-
|
5730 |
|
5731 |
-
|
5732 |
-
|
5733 |
-
|
5734 |
-
|
5735 |
-
|
5736 |
-
|
5737 |
|
5738 |
-
|
5739 |
-
|
5740 |
-
|
5741 |
-
|
5742 |
-
|
5743 |
-
|
5744 |
|
5745 |
-
|
5746 |
-
|
5747 |
-
|
5748 |
-
|
5749 |
-
|
5750 |
-
|
5751 |
-
$html = wppa_select($slug, $opts, $vals);
|
5752 |
-
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
5753 |
|
5754 |
-
|
5755 |
-
|
5756 |
-
|
5757 |
-
|
5758 |
-
|
5759 |
-
|
|
|
|
|
5760 |
|
5761 |
-
|
5762 |
-
|
5763 |
-
|
5764 |
-
|
5765 |
-
|
5766 |
-
|
5767 |
|
5768 |
-
|
5769 |
-
|
5770 |
-
|
5771 |
-
|
5772 |
-
|
5773 |
-
|
5774 |
|
5775 |
-
|
5776 |
-
|
5777 |
-
|
5778 |
-
|
5779 |
-
|
5780 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5781 |
|
5782 |
-
|
5783 |
-
|
5784 |
-
|
5785 |
-
|
5786 |
-
|
5787 |
-
|
5788 |
|
5789 |
-
|
5790 |
}
|
5791 |
// Search Engine Optimalisation settings
|
5792 |
-
$desc = $wppa_subtab_names[$tab]['2'];
|
5793 |
{
|
5794 |
-
|
5795 |
-
|
|
|
5796 |
|
5797 |
-
|
5798 |
-
|
5799 |
-
|
5800 |
-
|
5801 |
-
|
5802 |
-
|
5803 |
|
5804 |
-
|
5805 |
-
|
5806 |
-
|
5807 |
-
|
5808 |
-
|
5809 |
-
|
5810 |
-
|
5811 |
|
5812 |
-
|
5813 |
-
|
5814 |
-
|
5815 |
-
|
5816 |
-
|
5817 |
-
|
5818 |
-
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
5819 |
|
5820 |
-
|
5821 |
-
|
5822 |
-
|
5823 |
-
|
5824 |
-
|
5825 |
-
|
5826 |
-
|
5827 |
-
|
5828 |
|
5829 |
-
|
5830 |
}
|
5831 |
}
|
5832 |
break;
|
5833 |
|
5834 |
case 'system': {
|
5835 |
// System behaviour related settings
|
5836 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
5837 |
{
|
5838 |
-
|
5839 |
-
|
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 |
-
|
5887 |
-
|
5888 |
-
|
5889 |
-
|
5890 |
-
|
5891 |
-
|
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 |
-
|
5903 |
-
|
5904 |
-
|
5905 |
-
|
5906 |
-
|
5907 |
-
|
5908 |
-
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
5909 |
|
5910 |
-
|
5911 |
-
|
5912 |
-
|
5913 |
-
|
5914 |
-
|
5915 |
-
|
5916 |
|
5917 |
-
|
5918 |
-
|
5919 |
-
|
5920 |
-
|
5921 |
-
|
5922 |
-
|
5923 |
-
|
5924 |
-
|
5925 |
|
5926 |
-
|
5927 |
-
|
5928 |
-
|
5929 |
-
|
5930 |
-
|
5931 |
-
|
5932 |
|
5933 |
-
|
5934 |
-
|
5935 |
-
|
5936 |
-
|
5937 |
-
|
5938 |
-
|
5939 |
|
5940 |
-
|
5941 |
-
|
5942 |
-
|
5943 |
-
|
5944 |
-
|
5945 |
-
|
5946 |
|
5947 |
-
|
5948 |
-
|
5949 |
-
|
5950 |
-
|
5951 |
-
|
5952 |
-
|
5953 |
|
5954 |
-
|
5955 |
-
|
5956 |
-
|
5957 |
-
|
5958 |
-
|
5959 |
-
|
5960 |
-
|
5961 |
-
|
5962 |
|
5963 |
-
|
5964 |
-
|
5965 |
-
|
5966 |
-
|
5967 |
-
|
5968 |
-
|
5969 |
-
|
5970 |
-
|
5971 |
|
5972 |
-
|
5973 |
-
|
5974 |
-
|
5975 |
-
|
5976 |
-
|
5977 |
-
|
5978 |
|
5979 |
-
|
5980 |
-
|
5981 |
-
|
5982 |
-
|
5983 |
-
|
5984 |
-
|
5985 |
|
5986 |
-
|
5987 |
-
|
5988 |
-
|
5989 |
-
|
5990 |
-
|
5991 |
-
|
5992 |
|
5993 |
-
|
5994 |
-
|
5995 |
-
|
5996 |
-
|
5997 |
-
|
5998 |
-
|
5999 |
|
6000 |
-
|
6001 |
-
|
6002 |
-
|
6003 |
-
|
6004 |
-
|
6005 |
-
|
6006 |
|
6007 |
-
|
6008 |
-
|
6009 |
-
|
6010 |
-
|
6011 |
-
|
6012 |
-
|
6013 |
|
6014 |
-
|
6015 |
-
|
6016 |
-
|
6017 |
-
|
6018 |
-
|
6019 |
-
|
6020 |
|
6021 |
-
|
6022 |
-
|
6023 |
-
|
6024 |
-
|
6025 |
-
|
6026 |
-
|
6027 |
|
6028 |
-
|
6029 |
-
|
6030 |
-
|
6031 |
-
|
6032 |
-
|
6033 |
-
|
6034 |
|
6035 |
-
|
6036 |
-
|
6037 |
-
|
6038 |
-
|
6039 |
-
|
6040 |
-
|
6041 |
|
6042 |
-
|
6043 |
-
|
6044 |
-
|
6045 |
-
|
6046 |
-
|
6047 |
-
|
6048 |
|
6049 |
-
|
6050 |
-
|
6051 |
-
|
6052 |
-
|
6053 |
-
|
6054 |
-
|
6055 |
-
|
6056 |
-
|
6057 |
-
|
6058 |
-
|
6059 |
-
|
6060 |
-
|
6061 |
-
|
6062 |
-
|
6063 |
-
|
6064 |
-
|
6065 |
|
6066 |
-
|
6067 |
-
|
6068 |
-
|
6069 |
-
|
6070 |
-
|
6071 |
-
|
6072 |
|
6073 |
-
|
6074 |
-
|
6075 |
-
|
6076 |
-
|
6077 |
-
|
6078 |
-
|
6079 |
|
6080 |
-
|
6081 |
-
|
6082 |
-
|
6083 |
-
|
6084 |
-
|
6085 |
-
|
6086 |
-
|
6087 |
|
6088 |
-
|
6089 |
-
|
6090 |
-
|
6091 |
-
|
6092 |
-
|
6093 |
-
|
6094 |
|
6095 |
-
|
6096 |
-
|
6097 |
-
|
6098 |
-
|
6099 |
-
|
6100 |
-
|
6101 |
-
|
6102 |
-
|
6103 |
-
|
6104 |
-
|
6105 |
-
|
6106 |
-
|
6107 |
-
|
6108 |
-
|
6109 |
-
|
6110 |
-
|
6111 |
-
|
6112 |
-
|
6113 |
|
6114 |
-
|
6115 |
-
|
6116 |
-
|
6117 |
-
|
6118 |
-
|
6119 |
-
|
6120 |
|
6121 |
-
|
6122 |
-
|
6123 |
-
|
6124 |
-
|
6125 |
-
|
6126 |
-
|
6127 |
-
|
6128 |
-
|
6129 |
-
|
6130 |
-
|
6131 |
-
|
6132 |
-
|
6133 |
-
|
6134 |
-
|
6135 |
-
|
6136 |
|
6137 |
-
|
6138 |
-
|
6139 |
-
|
6140 |
-
|
6141 |
-
|
6142 |
-
|
6143 |
|
6144 |
-
|
6145 |
-
|
6146 |
-
|
6147 |
-
|
6148 |
-
|
6149 |
-
|
6150 |
|
6151 |
-
|
6152 |
-
|
6153 |
-
|
6154 |
-
|
6155 |
-
|
6156 |
-
|
6157 |
-
|
6158 |
-
|
6159 |
-
|
6160 |
-
|
6161 |
-
|
6162 |
-
|
6163 |
-
|
6164 |
-
|
6165 |
-
|
6166 |
-
|
6167 |
-
|
6168 |
-
|
6169 |
-
|
6170 |
-
|
6171 |
-
|
6172 |
-
|
6173 |
-
|
6174 |
-
|
6175 |
-
|
6176 |
-
|
6177 |
-
|
6178 |
-
|
6179 |
-
|
6180 |
-
|
6181 |
-
|
6182 |
-
|
6183 |
-
|
6184 |
-
|
6185 |
|
6186 |
-
|
6187 |
-
|
6188 |
-
|
6189 |
-
|
6190 |
-
|
6191 |
-
|
6192 |
|
6193 |
-
|
6194 |
-
|
6195 |
-
|
6196 |
-
|
6197 |
-
|
6198 |
-
|
6199 |
|
6200 |
-
|
6201 |
-
|
6202 |
-
|
6203 |
-
|
6204 |
-
|
6205 |
-
|
6206 |
|
6207 |
-
|
6208 |
-
|
6209 |
-
|
6210 |
-
|
6211 |
-
|
6212 |
-
|
6213 |
-
|
6214 |
-
|
6215 |
|
6216 |
-
|
6217 |
}
|
6218 |
}
|
6219 |
break;
|
6220 |
|
6221 |
case 'files': {
|
6222 |
// Original source file related settings
|
6223 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
6224 |
{
|
6225 |
-
|
6226 |
-
|
|
|
6227 |
|
6228 |
-
|
6229 |
-
|
6230 |
-
|
6231 |
-
|
6232 |
-
|
6233 |
-
|
6234 |
-
|
6235 |
|
6236 |
-
|
6237 |
-
|
6238 |
-
|
6239 |
-
|
6240 |
-
|
6241 |
-
|
6242 |
-
|
6243 |
-
|
6244 |
|
6245 |
-
|
6246 |
-
|
6247 |
-
|
6248 |
-
|
6249 |
-
|
6250 |
-
|
6251 |
-
|
6252 |
|
6253 |
-
|
6254 |
}
|
6255 |
}
|
6256 |
break;
|
6257 |
|
6258 |
case 'new': {
|
6259 |
// New albums / photos related settings
|
6260 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
6261 |
{
|
6262 |
-
|
6263 |
-
|
|
|
6264 |
|
6265 |
-
|
6266 |
-
|
6267 |
-
|
6268 |
-
|
6269 |
-
|
6270 |
-
|
6271 |
-
|
6272 |
-
|
6273 |
-
|
6274 |
-
|
6275 |
-
|
6276 |
-
|
6277 |
-
|
6278 |
-
|
6279 |
-
|
6280 |
-
|
6281 |
-
|
6282 |
-
|
6283 |
-
|
6284 |
-
|
6285 |
-
|
6286 |
-
|
6287 |
-
|
6288 |
-
|
6289 |
-
|
6290 |
-
|
6291 |
-
|
6292 |
-
|
6293 |
-
|
6294 |
-
|
6295 |
-
|
6296 |
-
|
6297 |
-
|
6298 |
-
|
6299 |
|
6300 |
-
|
6301 |
-
|
6302 |
-
|
6303 |
-
|
6304 |
-
|
6305 |
-
|
6306 |
|
6307 |
-
|
6308 |
-
|
6309 |
-
|
6310 |
-
|
6311 |
-
|
6312 |
-
|
6313 |
|
6314 |
-
|
6315 |
-
|
6316 |
-
|
6317 |
-
|
6318 |
-
|
6319 |
-
|
6320 |
|
6321 |
-
|
6322 |
-
|
6323 |
-
|
6324 |
-
|
6325 |
-
|
6326 |
-
|
6327 |
|
6328 |
-
|
6329 |
-
|
6330 |
-
|
6331 |
-
|
6332 |
-
|
6333 |
-
|
6334 |
-
|
6335 |
|
6336 |
-
|
6337 |
-
|
6338 |
-
|
6339 |
-
|
6340 |
-
|
6341 |
-
|
6342 |
-
|
6343 |
-
|
6344 |
-
|
6345 |
-
|
6346 |
-
|
6347 |
-
|
6348 |
-
|
6349 |
-
|
6350 |
-
|
6351 |
-
|
6352 |
-
|
6353 |
-
|
6354 |
|
6355 |
-
|
6356 |
-
|
6357 |
-
|
6358 |
-
|
6359 |
-
|
6360 |
-
|
6361 |
-
|
6362 |
-
|
6363 |
-
|
6364 |
-
|
6365 |
-
|
6366 |
-
|
6367 |
-
|
6368 |
-
|
6369 |
-
|
6370 |
-
|
6371 |
-
|
6372 |
-
|
6373 |
-
|
6374 |
-
|
6375 |
-
|
6376 |
-
|
6377 |
-
|
6378 |
-
|
6379 |
|
6380 |
-
|
6381 |
-
|
6382 |
-
|
6383 |
-
|
6384 |
-
|
6385 |
-
|
6386 |
|
6387 |
-
|
6388 |
-
|
6389 |
-
|
6390 |
-
|
6391 |
-
|
6392 |
-
|
6393 |
|
6394 |
-
|
6395 |
-
|
6396 |
-
|
6397 |
-
|
6398 |
-
|
6399 |
-
|
6400 |
|
6401 |
-
|
6402 |
-
|
6403 |
-
|
6404 |
-
|
6405 |
-
|
6406 |
-
|
6407 |
|
6408 |
-
|
6409 |
-
|
6410 |
-
|
6411 |
-
|
6412 |
-
|
6413 |
-
|
6414 |
-
|
6415 |
-
|
6416 |
-
|
6417 |
-
|
6418 |
-
|
6419 |
-
|
6420 |
|
6421 |
-
|
6422 |
-
|
6423 |
-
|
6424 |
-
|
6425 |
-
|
6426 |
-
|
6427 |
-
|
6428 |
-
|
6429 |
-
|
6430 |
-
|
6431 |
-
|
6432 |
-
|
6433 |
-
|
6434 |
-
|
6435 |
-
|
6436 |
-
|
6437 |
-
|
6438 |
-
|
6439 |
-
|
6440 |
-
|
6441 |
-
|
6442 |
-
|
6443 |
-
|
6444 |
-
|
6445 |
-
|
6446 |
-
|
6447 |
-
|
6448 |
-
|
6449 |
-
|
6450 |
-
|
6451 |
-
|
6452 |
-
|
6453 |
-
|
6454 |
-
|
6455 |
-
|
|
|
6456 |
}
|
6457 |
-
|
6458 |
-
|
6459 |
-
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
6460 |
|
6461 |
-
|
6462 |
-
|
6463 |
-
|
6464 |
-
|
6465 |
-
|
6466 |
-
|
6467 |
|
6468 |
-
|
6469 |
-
|
6470 |
-
|
6471 |
-
|
6472 |
-
|
6473 |
-
|
6474 |
|
6475 |
-
|
6476 |
-
|
6477 |
-
|
6478 |
-
|
6479 |
-
|
6480 |
-
|
6481 |
-
|
6482 |
-
|
6483 |
|
6484 |
-
|
6485 |
-
|
6486 |
-
|
6487 |
-
|
6488 |
-
|
6489 |
-
|
6490 |
-
|
6491 |
-
|
6492 |
-
|
6493 |
-
|
6494 |
-
|
6495 |
-
|
6496 |
-
|
6497 |
-
|
6498 |
-
|
6499 |
-
|
6500 |
-
|
6501 |
-
|
6502 |
-
|
6503 |
-
|
6504 |
-
|
6505 |
-
|
6506 |
-
|
6507 |
-
|
6508 |
-
|
6509 |
-
|
6510 |
-
|
6511 |
-
|
6512 |
-
|
|
|
6513 |
}
|
6514 |
-
|
6515 |
-
|
6516 |
-
|
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 |
-
|
6535 |
-
|
6536 |
-
|
6537 |
-
|
6538 |
-
|
6539 |
-
|
6540 |
-
|
6541 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6542 |
|
6543 |
-
|
6544 |
-
|
6545 |
-
|
6546 |
-
|
|
|
|
|
6547 |
|
6548 |
-
|
6549 |
-
|
6550 |
-
|
6551 |
-
|
6552 |
-
|
6553 |
-
|
6554 |
|
6555 |
-
|
6556 |
-
|
6557 |
-
|
6558 |
-
|
6559 |
-
|
6560 |
-
|
6561 |
-
|
6562 |
-
|
6563 |
-
|
6564 |
-
|
6565 |
-
|
6566 |
-
|
6567 |
-
|
6568 |
-
|
6569 |
-
|
6570 |
-
|
6571 |
-
|
6572 |
-
|
6573 |
-
|
6574 |
-
|
6575 |
-
|
6576 |
-
|
6577 |
-
|
6578 |
-
|
6579 |
-
|
6580 |
-
|
6581 |
-
|
6582 |
-
|
6583 |
-
|
6584 |
-
|
6585 |
-
|
6586 |
-
|
6587 |
-
|
6588 |
-
|
6589 |
-
|
6590 |
-
|
6591 |
-
|
6592 |
-
|
6593 |
-
|
6594 |
-
|
6595 |
-
|
6596 |
-
|
6597 |
-
|
6598 |
-
|
6599 |
-
|
6600 |
-
|
6601 |
-
|
6602 |
-
|
6603 |
-
|
6604 |
-
|
6605 |
-
|
6606 |
-
|
6607 |
-
|
6608 |
-
|
6609 |
-
|
6610 |
-
|
6611 |
-
|
6612 |
-
|
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 |
-
|
6622 |
-
|
6623 |
-
|
6624 |
-
|
6625 |
-
|
6626 |
-
|
6627 |
|
6628 |
-
|
6629 |
-
|
6630 |
-
|
6631 |
-
|
6632 |
-
|
6633 |
-
|
6634 |
|
6635 |
-
|
6636 |
-
|
6637 |
-
|
6638 |
-
|
6639 |
-
|
6640 |
-
|
6641 |
|
6642 |
-
|
6643 |
-
|
6644 |
-
|
6645 |
-
|
6646 |
-
|
6647 |
-
|
6648 |
-
|
6649 |
-
|
6650 |
-
|
6651 |
-
|
6652 |
|
6653 |
-
|
6654 |
-
|
6655 |
-
|
6656 |
-
|
6657 |
-
|
6658 |
-
|
6659 |
-
|
6660 |
-
|
6661 |
|
6662 |
-
|
6663 |
-
|
6664 |
-
|
6665 |
-
|
6666 |
-
|
6667 |
-
|
6668 |
|
6669 |
-
|
6670 |
-
|
6671 |
-
|
6672 |
-
|
6673 |
-
|
6674 |
-
|
6675 |
|
6676 |
-
|
6677 |
-
|
6678 |
-
|
6679 |
-
|
6680 |
|
6681 |
-
|
6682 |
-
|
6683 |
-
|
6684 |
-
|
6685 |
-
|
6686 |
-
|
6687 |
-
|
6688 |
-
|
6689 |
-
|
6690 |
-
|
6691 |
-
|
6692 |
-
|
6693 |
|
6694 |
-
|
6695 |
}
|
6696 |
}
|
6697 |
break;
|
6698 |
|
6699 |
case 'admin': {
|
6700 |
// WPPA+ related roles and capabilities
|
6701 |
-
$desc = $wppa_subtab_names[$tab]['1'];
|
6702 |
{
|
6703 |
-
|
|
|
6704 |
|
6705 |
-
|
6706 |
-
|
6707 |
-
|
6708 |
-
|
6709 |
-
|
6710 |
-
|
6711 |
-
|
6712 |
-
|
6713 |
-
|
6714 |
-
|
6715 |
-
|
6716 |
-
|
6717 |
|
6718 |
|
6719 |
-
|
6720 |
|
6721 |
-
|
6722 |
-
|
6723 |
-
|
6724 |
-
|
6725 |
-
|
6726 |
-
|
6727 |
-
|
6728 |
-
|
6729 |
-
|
6730 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
6748 |
|
6749 |
-
|
6750 |
-
|
6751 |
-
|
6752 |
|
6753 |
-
|
6754 |
-
|
6755 |
-
|
6756 |
-
|
6757 |
|
6758 |
-
|
6759 |
-
|
6760 |
-
|
6761 |
-
|
6762 |
-
|
6763 |
-
|
6764 |
-
|
6765 |
-
|
6766 |
-
|
6767 |
|
6768 |
-
|
6769 |
|
6770 |
-
|
6771 |
-
|
6772 |
|
6773 |
-
|
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
|
6876 |
-
else $help = __('This limitation only applies to frontend uploads when the same userrole does not have the Upload checkbox checked
|
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
|
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 />'.
|
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
|
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 |
-
$
|
6992 |
-
$html = wppa_checkbox($slug, $
|
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
|
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 =
|
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
|
|
|
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 |
-
//
|
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, '
|
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, '
|
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, '
|
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, '
|
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
|
|
|
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, '
|
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
|
|
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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 = __('
|
8012 |
-
$help .=
|
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, '
|
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 =
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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 />'.
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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, '
|
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 |
-
|
8673 |
-
|
8674 |
-
|
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 |
-
|
8704 |
-
|
8705 |
-
|
8706 |
-
|
8707 |
-
|
8708 |
-
|
8709 |
-
|
8710 |
-
|
8711 |
-
|
8712 |
-
|
8713 |
-
|
8714 |
-
|
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 |
-
|
8725 |
-
|
8726 |
-
$
|
8727 |
-
$
|
8728 |
-
$
|
8729 |
-
$
|
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 = __('
|
8755 |
-
$desc = __('You can set the
|
8756 |
-
$help = __('
|
8757 |
-
$
|
8758 |
-
$
|
8759 |
-
$slug
|
8760 |
-
$html = wppa_input($slug, '50px', '', 'points');
|
8761 |
-
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
8762 |
|
8763 |
-
$name = __('
|
8764 |
-
$desc = __('
|
8765 |
$help = '';
|
8766 |
-
$slug = '
|
8767 |
-
$
|
8768 |
-
$
|
8769 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8770 |
|
8771 |
-
|
8772 |
-
|
8773 |
-
|
8774 |
-
|
8775 |
-
|
8776 |
-
|
8777 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8778 |
|
8779 |
-
|
8780 |
-
|
8781 |
-
|
8782 |
-
|
8783 |
-
|
8784 |
-
|
|
|
|
|
8785 |
|
8786 |
-
|
8787 |
-
|
8788 |
-
|
8789 |
-
|
8790 |
-
|
8791 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8792 |
|
8793 |
-
|
8794 |
-
|
8795 |
-
|
8796 |
-
|
8797 |
-
|
8798 |
-
|
8799 |
-
|
8800 |
-
|
8801 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8802 |
>
|
8803 |
-
<
|
8804 |
-
|
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 |
-
|
8819 |
-
|
8820 |
-
|
8821 |
-
|
8822 |
-
|
8823 |
-
|
8824 |
-
|
8825 |
-
|
8826 |
|
8827 |
-
|
8828 |
-
|
8829 |
-
|
8830 |
-
|
8831 |
-
|
8832 |
-
|
8833 |
-
|
8834 |
-
|
8835 |
|
8836 |
-
|
8837 |
-
|
8838 |
-
|
8839 |
-
|
8840 |
-
|
8841 |
-
|
8842 |
|
8843 |
-
|
8844 |
}
|
8845 |
}
|
8846 |
break;
|
@@ -8848,233 +8879,233 @@ global $wppa_subtab_names;
|
|
8848 |
case 'constants': {
|
8849 |
// System constants (read only)
|
8850 |
{
|
8851 |
-
|
8852 |
-
|
8853 |
|
8854 |
-
|
8855 |
-
|
8856 |
-
|
8857 |
-
|
8858 |
-
|
8859 |
-
|
8860 |
-
|
8861 |
-
|
8862 |
|
8863 |
-
|
8864 |
-
|
8865 |
-
|
8866 |
-
|
8867 |
-
|
8868 |
-
|
8869 |
-
|
8870 |
-
|
8871 |
-
|
8872 |
-
|
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 |
-
|
8949 |
-
|
8950 |
-
|
8951 |
-
|
8952 |
-
|
8953 |
-
|
8954 |
-
|
|
|
|
|
|
|
8955 |
|
8956 |
-
|
8957 |
-
|
8958 |
-
|
8959 |
-
|
8960 |
-
|
8961 |
-
|
8962 |
-
|
|
|
|
|
|
|
8963 |
|
8964 |
-
|
8965 |
-
|
8966 |
-
|
8967 |
-
|
8968 |
-
|
8969 |
-
|
8970 |
-
|
|
|
|
|
|
|
8971 |
|
8972 |
-
|
8973 |
-
|
8974 |
-
|
8975 |
-
|
8976 |
-
|
8977 |
-
|
8978 |
-
|
|
|
|
|
|
|
8979 |
|
8980 |
-
|
8981 |
-
|
8982 |
-
|
8983 |
-
|
8984 |
-
|
8985 |
-
|
8986 |
-
|
|
|
|
|
|
|
8987 |
|
8988 |
-
|
8989 |
-
|
8990 |
-
|
8991 |
-
|
8992 |
-
|
8993 |
-
|
8994 |
-
|
|
|
|
|
|
|
8995 |
|
8996 |
-
|
8997 |
-
|
8998 |
-
|
8999 |
-
|
9000 |
-
|
9001 |
-
|
9002 |
-
|
9003 |
|
9004 |
-
|
9005 |
-
|
9006 |
-
|
9007 |
-
|
9008 |
-
|
9009 |
-
|
9010 |
-
|
9011 |
|
9012 |
-
|
9013 |
-
|
9014 |
-
|
9015 |
-
|
9016 |
-
|
9017 |
-
|
9018 |
-
|
9019 |
|
9020 |
-
|
9021 |
-
|
9022 |
-
|
9023 |
-
|
9024 |
-
|
9025 |
-
|
9026 |
-
|
9027 |
|
9028 |
-
|
9029 |
-
|
9030 |
-
|
9031 |
-
|
9032 |
-
|
9033 |
-
|
9034 |
-
|
9035 |
|
9036 |
-
|
9037 |
-
|
9038 |
-
|
9039 |
-
|
9040 |
-
|
9041 |
-
|
9042 |
-
|
9043 |
|
9044 |
-
|
9045 |
-
|
9046 |
-
|
9047 |
-
|
9048 |
-
|
9049 |
-
|
9050 |
-
|
9051 |
|
9052 |
-
|
9053 |
-
|
9054 |
-
|
9055 |
-
|
9056 |
-
|
9057 |
-
|
9058 |
-
|
9059 |
|
9060 |
-
|
9061 |
-
|
9062 |
-
|
9063 |
-
|
9064 |
-
|
9065 |
-
|
9066 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
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
|
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
|
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 |
-
|
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
|
9625 |
-
$help .= '<br />'.__('Do NOT remove the text w#fotomoto from the Custombox
|
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
|
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') . ' </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') . ' </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') . ' </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') . ' </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') . ' </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('&raquo', '&rsaquo', '&gt', '&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') . ': <span id="wppa-spin-pre-1" > </span>' .
|
1339 |
+
__('Lightbox', 'wp-photo-album-plus') . ': <span id="wppa-spin-pre-2" > </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') . ' </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') . ' </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') . ' </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') . ' </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') . ' </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') . ' </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') . ': </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') . ': </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') . ': </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') . ': </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') . ': </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') . ': </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' ? ' ' : 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' ? ' ' : 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 <p> and <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 <br> or <p> and <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 |
+
' <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;" > </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').' </small>'.wppa_input( $slug1, '150px' );
|
4162 |
+
$html2 = wppa_popup_button( $slug2, '30' );
|
4163 |
+
$html = $html1 . '<span style="float:left;" > </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 </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 </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) . ' ' . 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) . ' ' . 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" > ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . ' </span>' .
|
5606 |
+
wppa_checkbox($slug2) . '<span style="float:left" > ' . __( '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) . ' ' . 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) . ' ' . 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) . ' ' . 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) . ' ' . 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) . ' ' . 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(''', '', 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.
|
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.
|
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.
|
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.
|
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;
|