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.008 |
Comparing to | |
See all releases |
Code changes from version 8.0.00.007 to 8.0.00.008
- changelog.txt +1 -0
- js/wppa-admin-scripts.js +1 -21
- js/wppa-admin-scripts.min.js +1 -1
- js/wppa-all.js +1 -1
- js/wppa.js +7 -3
- js/wppa.min.js +1 -1
- wppa-ajax.php +2 -87
- wppa-album-covers.php +5 -5
- wppa-album-navigator-widget.php +3 -3
- wppa-album-widget.php +3 -3
- wppa-boxes-html.php +5 -5
- wppa-comment-widget.php +5 -2
- wppa-common-functions.php +1 -3
- wppa-dashboard-widgets.php +5 -1
- wppa-defaults.php +9 -26
- wppa-exif-iptc-common.php +6 -34
- wppa-functions.php +6 -6
- wppa-mailing.php +3 -1
- wppa-non-admin.php +93 -92
- wppa-notify-widget.php +5 -2
- wppa-picture.php +3 -3
- wppa-potd-widget.php +3 -3
- wppa-settings-autosave.php +6826 -7451
changelog.txt
CHANGED
@@ -9,6 +9,7 @@ Ajax is always activated, because there can no longer be conflicts due to inacce
|
|
9 |
Â
* Removed WPPA+ Text widget. You can now use the WP Custom HTML widget instead.
|
10 |
Â
* HTML in descriptions is now automatically allowed for those users who have HTML edit rights.
|
11 |
Â
* Restructured and greatly simplified settings page. Removed obsolete and redundant settings. Made the layout more friendly.
|
Â
|
|
12 |
Â
|
13 |
Â
= 7.7.07 =
|
14 |
Â
|
9 |
Â
* Removed WPPA+ Text widget. You can now use the WP Custom HTML widget instead.
|
10 |
Â
* HTML in descriptions is now automatically allowed for those users who have HTML edit rights.
|
11 |
Â
* Restructured and greatly simplified settings page. Removed obsolete and redundant settings. Made the layout more friendly.
|
12 |
+
* Widgets do no longer show up anywhere if the corresponding feature is not enabled. e.g. Notify widget - Enable email. etc.
|
13 |
Â
|
14 |
Â
= 7.7.07 =
|
15 |
Â
|
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 |
Â
|
@@ -224,7 +224,6 @@ function wppaInitSettings() {
|
|
224 |
Â
wppaCheckLinkPageErr('multitag');
|
225 |
Â
wppaCheckLinkPageErr('super_view');
|
226 |
Â
wppaCheckSplitNamedesc();
|
227 |
-
wppaCheckShares();
|
228 |
Â
wppaCheckCoverType();
|
229 |
Â
wppaCheckNewpag();
|
230 |
Â
wppaCheckCDN();
|
@@ -474,19 +473,6 @@ function wppaCheckCDN() {
|
|
474 |
Â
else jQuery('.cloudinary').css('display', 'none');
|
475 |
Â
}
|
476 |
Â
|
477 |
-
/* Check GPX Implementation */
|
478 |
-
function wppaCheckGps() {
|
479 |
-
var gpx = document.getElementById('gpx_implementation').value;
|
480 |
-
if ( gpx == 'wppa-plus-embedded' ) {
|
481 |
-
jQuery('.wppa_gpx_native').css('display', '');
|
482 |
-
jQuery('.wppa_gpx_plugin').css('display', 'none');
|
483 |
-
}
|
484 |
-
else {
|
485 |
-
jQuery('.wppa_gpx_native').css('display', 'none');
|
486 |
-
jQuery('.wppa_gpx_plugin').css('display', '');
|
487 |
-
}
|
488 |
-
}
|
489 |
-
|
490 |
Â
/* Enables or disables popup thumbnail settings according to availability */
|
491 |
Â
function wppaCheckThumbType() {
|
492 |
Â
var ttype = document.getElementById('thumbtype').value;
|
@@ -608,12 +594,6 @@ function wppaCheckComments() {
|
|
608 |
Â
|
609 |
Â
}
|
610 |
Â
|
611 |
-
function wppaCheckShares() {
|
612 |
-
var Sh = document.getElementById('share_on').checked || document.getElementById('share_on_widget').checked || document.getElementById('share_on_lightbox').checked || document.getElementById('share_on_thumbs').checked || document.getElementById('share_on_mphoto').checked;
|
613 |
-
if (Sh) jQuery('.wppa_share').css('display', '');
|
614 |
-
else jQuery('.wppa_share').css('display', 'none');
|
615 |
-
}
|
616 |
-
|
617 |
Â
function wppaCheckCoverType() {
|
618 |
Â
var Type = document.getElementById('cover_type').value;
|
619 |
Â
var Pos = document.getElementById('coverphoto_pos').value;
|
1 |
Â
/* admin-scripts.js */
|
2 |
Â
/* Package: wp-photo-album-plus
|
3 |
Â
/*
|
4 |
+
/* Version 8.0.00.008
|
5 |
Â
/* Various js routines used in admin pages
|
6 |
Â
*/
|
7 |
Â
|
224 |
Â
wppaCheckLinkPageErr('multitag');
|
225 |
Â
wppaCheckLinkPageErr('super_view');
|
226 |
Â
wppaCheckSplitNamedesc();
|
Â
|
|
227 |
Â
wppaCheckCoverType();
|
228 |
Â
wppaCheckNewpag();
|
229 |
Â
wppaCheckCDN();
|
473 |
Â
else jQuery('.cloudinary').css('display', 'none');
|
474 |
Â
}
|
475 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
476 |
Â
/* Enables or disables popup thumbnail settings according to availability */
|
477 |
Â
function wppaCheckThumbType() {
|
478 |
Â
var ttype = document.getElementById('thumbtype').value;
|
594 |
Â
|
595 |
Â
}
|
596 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
597 |
Â
function wppaCheckCoverType() {
|
598 |
Â
var Type = document.getElementById('cover_type').value;
|
599 |
Â
var Pos = document.getElementById('coverphoto_pos').value;
|
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,p){var a=parseFloat(jQuery.fn.jquery);t.checked&&a<p&&(alert(e+"\nThe version of your jQuery library: "+a+" is too low for this feature. It requires version "+p),t.checked="")}function wppaReUpload(e,i,t,o){document.getElementById("wppa-re-up-form-"+i);var p=document.getElementById("wppa-re-up-file-"+i),r=document.getElementById("wppa-re-up-butn-"+i);e.preventDefault();p=p.files[0];if(p.type.match("image.*")){if(0==t.length)alert("Filename will be set to "+p.name);else if(p.name!=t&&!confirm("Filename is different.\nIf you continue, the filename will not be updated!.\n\nContinue?"))return void jQuery("#re-up-"+i).css("display","none");r.value="Uploading...",r.style.color="black";t=new FormData;t.append("photo",p,p.name);var l=new XMLHttpRequest,p="?action=wppa&wppa-action=update-photo&photo-id="+i+"&item=file&wppa-nonce="+document.getElementById("photo-nonce-"+i).value;l.open("POST",wppaAjaxUrl+p,!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,p,a,n=JSON.parse(e[2]);for(t in n)switch(a=n[t],t){case"remark":a=(a=(a=a.replace(/</g,"<")).replace(/>/g,">")).replace(/\\/g,""),p="0"!=e[1]?'<span style="color:red;" >'+a+"</span>":'<span style="color:green;" >'+a+"</span>",o&&(p+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+i).html(p);break;case"photourl":wppaCropper[i]?wppaCropper[i].replace(a):jQuery("#photourl-"+i).attr("src",a),jQuery("#thumba-"+i).attr("href",a);break;case"thumburl":jQuery("#thumburl-"+i).attr("src",a);break;case"magickstack":jQuery("#magickstack-"+i).html(a),0<a.length?jQuery("#imstackbutton-"+i).css("display","inline"):jQuery("#imstackbutton-"+i).css("display","none");break;default:jQuery("#"+t+"-"+i).html(a)}r.value="Upload",jQuery("#re-up-"+i).css("display","none");break;case"99":document.getElementById("photoitem-"+i).innerHTML='<span style="color:red">'+e[2]+"</span>";break;default:document.getElementById("remark-"+i).innerHTML='<span style="color:red">'+e[2]+" ("+e[1]+")</span>",r.value="Error occured",r.style.color="red"}}else alert("An error occurred!")},l.send(t)}else alert("File is not an image file!")}function wppaInitSettings(){wppaCheckBreadcrumb(),wppaCheckUseThumbOpacity(),wppaCheckUseCoverOpacity(),wppaCheckThumbType(),wppaCheckThumbLink(),wppaCheckTopTenLink(),wppaCheckFeaTenLink(),wppaCheckLasTenLink(),wppaCheckThumbnailWLink(),wppaCheckCommentLink(),wppaCheckXphotoLink(),wppaCheckMphotoLink(),wppaCheckSphotoLink(),wppaCheckSlidePhotoLink(),wppaCheckSlideOnlyLink(),wppaCheckAlbumWidgetLink(),wppaCheckAlbumNavigatorWidgetLink(),wppaCheckSlideLink(),wppaCheckCoverImg(),wppaCheckPotdLink(),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(),wppaCheckShares(),wppaCheckCoverType(),wppaCheckNewpag(),wppaCheckCDN(),wppaCheckAutoPage(),wppaCheckGps(),wppaCheckFontPreview(),wppaCheckCheck("wppa_enable_video","wppa-video"),wppaCheckCheck("wppa_custom_fields","custfields"),wppaCheckCheck("wppa_album_custom_fields","albumcustfields"),wppaCheckCheck("wppa_new_mod_label_is_text","nmtxt"),wppaCheckCheck("wppa_coverphoto_responsive","cvpr"),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 p=wppa_getCookie("table_"+table);for(("on"==p?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 p=jQuery(".wppa-"+e[table-1]+"-"+t[subtab]);0<p.length&&(p.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 wppaCheckCheck(e,t){e=e.substring(5);document.getElementById(e).checked?(jQuery("."+t).css("display",""),jQuery(".-"+t).css("display","none")):(jQuery("."+t).css("display","none"),jQuery(".-"+t).css("display",""))}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,p=wppaFontDirectory+"wmf"+e+"-"+t+".png",e=wppaFontDirectory+"wmf"+t+"-"+e+".png";jQuery("#wm-font-preview").attr("src",p),jQuery("#wm-type-preview").attr("src",e)}function wppaCheckWidgetMethod(){var e,t,p;if("4"==document.getElementById("wppa-wm").value?(document.getElementById("wppa-wp").style.visibility="visible","day-of-week"==(p=jQuery("#wppa-wp").val())||"day-of-month"==p||"day-of-year"==p?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 wppaCheckGps(){"wppa-plus-embedded"==document.getElementById("gpx_implementation").value?(jQuery(".wppa_gpx_native").css("display",""),jQuery(".wppa_gpx_plugin").css("display","none")):(jQuery(".wppa_gpx_native").css("display","none"),jQuery(".wppa_gpx_plugin").css("display",""))}function wppaCheckThumbType(){var e=document.getElementById("thumbtype").value;"default"==e&&(jQuery(".tt_normal").css("display",""),jQuery(".tt_ascovers").css("display","none"),jQuery(".tt_always").css("display",""),wppaCheckUseThumbOpacity()),"ascovers"!=e&&"ascovers-mcr"!=e||(jQuery(".tt_normal").css("display","none"),jQuery(".tt_ascovers").css("display",""),jQuery(".tt_always").css("display","")),"masonry"==e&&(jQuery(".tt_normal").css("display","none"),jQuery(".tt_ascovers").css("display","none"),jQuery(".tt_always").css("display",""),jQuery(".tt_masonry").css("display",""))}function wppaCheckAutoPage(){document.getElementById("auto_page").checked?jQuery(".autopage").css("display",""):jQuery(".autopage").css("display","none")}function wppaCheckUseThumbOpacity(){document.getElementById("use_thumb_opacity").checked?(jQuery(".thumb_opacity").css("color","#333"),jQuery(".thumb_opacity_html").css("visibility","visible")):(jQuery(".thumb_opacity").css("color","#999"),jQuery(".thumb_opacity_html").css("visibility","hidden"))}function wppaCheckUseCoverOpacity(){document.getElementById("use_cover_opacity").checked?(jQuery(".cover_opacity").css("color","#333"),jQuery(".cover_opacity_html").css("visibility","visible")):(jQuery(".cover_opacity").css("color","#999"),jQuery(".cover_opacity_html").css("visibility","hidden"))}function wppaCheckBreadcrumb(){var e=document.getElementById("show_bread_posts").checked,t=document.getElementById("show_bread_pages").checked;e||t?(jQuery(".wppa_bc").css("display",""),jQuery(".wppa_bc_html").css("display",""),"txt"==(t=document.getElementById("bc_separator").value)?(jQuery(".wppa_bc_txt").css("display",""),jQuery(".wppa_bc_url").css("display","none"),jQuery(".wppa_bc_txt_html").css("display",""),jQuery(".wppa_bc_url_html").css("display","none")):"url"==t?(jQuery(".wppa_bc_txt").css("display","none"),jQuery(".wppa_bc_url").css("display",""),jQuery(".wppa_bc_txt_html").css("display","none"),jQuery(".wppa_bc_url_html").css("display","")):(jQuery(".wppa_bc_txt").css("display","none"),jQuery(".wppa_bc_url").css("display","none"))):(jQuery(".wppa_bc").css("display","none"),jQuery(".wppa_bc_txt").css("display","none"),jQuery(".wppa_bc_url").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 wppaCheckShares(){document.getElementById("share_on").checked||document.getElementById("share_on_widget").checked||document.getElementById("share_on_lightbox").checked||document.getElementById("share_on_thumbs").checked||document.getElementById("share_on_mphoto").checked?jQuery(".wppa_share").css("display",""):jQuery(".wppa_share").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 wppaCheckThumbLink(){var e=document.getElementById("thumb_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tlp").css("visibility","hidden"):jQuery(".wppa_tlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tlb").css("visibility","hidden"):jQuery(".wppa_tlb").css("visibility","visible")}function wppaCheckTopTenLink(){var e=document.getElementById("topten_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ttlp").css("visibility","hidden"):jQuery(".wppa_ttlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ttlb").css("visibility","hidden"):jQuery(".wppa_ttlb").css("visibility","visible")}function wppaCheckFeaTenLink(){var e=document.getElementById("featen_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ftlp").css("visibility","hidden"):jQuery(".wppa_ftlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ftlb").css("visibility","hidden"):jQuery(".wppa_ftlb").css("visibility","visible")}function wppaCheckLasTenLink(){var e=document.getElementById("lasten_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ltlp").css("visibility","hidden"):jQuery(".wppa_ltlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ltlb").css("visibility","hidden"):jQuery(".wppa_ltlb").css("visibility","visible")}function wppaCheckThumbnailWLink(){var e=document.getElementById("thumbnail_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tnlp").css("visibility","hidden"):jQuery(".wppa_tnlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tnlb").css("visibility","hidden"):jQuery(".wppa_tnlb").css("visibility","visible")}function wppaCheckCommentLink(){var e=document.getElementById("comment_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_cmlp").css("visibility","hidden"):jQuery(".wppa_cmlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_cmlb").css("visibility","hidden"):jQuery(".wppa_cmlb").css("visibility","visible")}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 wppaCheckPotdLink(){var e=document.getElementById("potd_linktype").value;"none"==e||"lightbox"==e||"file"==e||"custom"==e?jQuery(".wppa_potdlp").css("visibility","hidden"):jQuery(".wppa_potdlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_potdlb").css("visibility","hidden"):jQuery(".wppa_potdlb").css("visibility","visible")}function wppaCheckTagLink(){document.getElementById("tagcloud_linktype").value}function wppaCheckMTagLink(){document.getElementById("multitag_linktype").value}function wppaCheckXphotoLink(){var e=document.getElementById("xphoto_linktype").value;"none"==e||"file"==e||"lightbox"==e?jQuery(".wppa_xlp").css("visibility","hidden"):jQuery(".wppa_xlp").css("visibility","visible"),"none"==e||"lightbox"==e?jQuery(".wppa_xlb").css("visibility","hidden"):jQuery(".wppa_xlb").css("visibility","visible")}function wppaCheckMphotoLink(){var e=document.getElementById("mphoto_linktype").value;"none"==e||"file"==e||"lightbox"==e?jQuery(".wppa_mlp").css("visibility","hidden"):jQuery(".wppa_mlp").css("visibility","visible"),"none"==e||"lightbox"==e?jQuery(".wppa_mlb").css("visibility","hidden"):jQuery(".wppa_mlb").css("visibility","visible")}function wppaCheckSphotoLink(){var e=document.getElementById("sphoto_linktype").value;"none"==e||"file"==e||"lightbox"==e?jQuery(".wppa_slp").css("visibility","hidden"):jQuery(".wppa_slp").css("visibility","visible"),"none"==e||"lightbox"==e?jQuery(".wppa_slb").css("visibility","hidden"):jQuery(".wppa_slb").css("visibility","visible")}function wppaCheckSlidePhotoLink(){var e=document.getElementById("slideshow_linktype").value;"none"==e||"file"==e||"lightbox"==e||"lightboxsingle"==e||"fullpopup"==e?jQuery(".wppa_sslp").css("visibility","hidden"):jQuery(".wppa_sslp").css("visibility","visible"),"none"==e||"lightbox"==e||"lightboxsingle"==e||"fullpopup"==e?jQuery(".wppa_sslb").css("visibility","hidden"):jQuery(".wppa_sslb").css("visibility","visible")}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,p){var a="",n="",a=e||'<div style="padding-left:5px;" >';p?n=p:aftrer="</div>",wppaFeAjaxLog("in");var i=wppaGetXmlHttp(),p=wppaAjaxUrl+"?action=wppa&wppa-action=delete-photo&photo-id="+t;p+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,i.open("GET",p,!0),i.send(),i.onreadystatechange=function(){switch(i.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==i.status?("ER"==(e=wppaTrim(i.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=a+e[2]+n,wppaProcessFull(e[3],e[4])),jQuery(window).trigger("scroll"),wppaFeAjaxLog("out")):document.getElementById("photoitem-"+t).innerHTML=a+'<span style="color:red;" >Comm error '+i.status+": "+i.statusText+"</span>"+n}}}function wppaAjaxUndeletePhoto(t){wppaFeAjaxLog("in");var p=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=undelete-photo&photo-id="+t;e+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,p.open("GET",e,!0),p.send(),p.onreadystatechange=function(){switch(p.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==p.status?("ER"==(e=wppaTrim(p.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 '+p.status+": "+p.statusText+"</span>"+after}}}function wppaAjaxApplyWatermark(t,e,p){wppaFeAjaxLog("in");var a=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),p&&(n+="&wppa-watermark-pos="+p),a.open("POST",wppaAjaxUrl,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(n),a.onreadystatechange=function(){var e;4==a.readyState&&(200==a.status?(""!=(e=wppaTrim(a.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 '+a.status+": "+a.statusText+"</span>")}}function wppaAjaxUpdateIptc(l,e,t,p){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="+p,async:!0,type:"POST",timeout:6e4,beforeSend:function(e){jQuery("#remark-"+l).html("Working, please wait...")},success:function(e,t,p){var a=wppaTrim(e).split("||");if(""!=a[0]&&alert("The server returned unexpected output:\n"+a[0]),"99"===a[1])jQuery("#photoitem-"+l).html(bef+'<span style="color:red">'+a[2]+"</span>"+aft);else{var n,i,o,r=JSON.parse(a[2]);for(n in r)switch(o=r[n],n){case"remark":o=(o=(o=o.replace(/</g,"<")).replace(/>/g,">")).replace(/\\/g,""),i="0"!=a[1]?'<span style="color:red;" >'+o+"</span>":'<span style="color:green;" >'+o+"</span>",jQuery("#remark-"+l).html(i);break;case"photourl":wppaCropper[l]?wppaCropper[l].replace(o):jQuery("#photourl-"+l).attr("src",o),jQuery("#thumba-"+l).attr("href",o);break;case"thumburl":jQuery("#thumburl-"+l).attr("src",o);break;case"magickstack":jQuery("#magickstack-"+l).html(o),0<o.length?jQuery("#imstackbutton-"+l).css("display","inline"):jQuery("#imstackbutton-"+l).css("display","none")}}wppaFeAjaxLog("out")},error:function(e,t,p){jQuery("#remark-"+l).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+p+", status = "+t,"force")},complete:function(e,t,p){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,p){var a=wppaTrim(e).split("||");if(""!=a[0]&&alert("The server returned unexpected output:\n"+a[0]),"99"===a[1])jQuery("#photoitem-"+l).html(c+'<span style="color:red">'+a[2]+"</span>"+d);else{var n,i,o,r=JSON.parse(a[2]);for(n in r)switch(o=r[n],n){case"remark":o=(o=(o=o.replace(/</g,"<")).replace(/>/g,">")).replace(/\\/g,""),i="0"!=a[1]?'<span style="color:red;" >'+o+"</span>":'<span style="color:green;" >'+o+"</span>",u&&(i+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+l).html(i);break;case"photourl":wppaCropper[l]?wppaCropper[l].replace(o):jQuery("#photourl-"+l).attr("src",o),jQuery("#thumba-"+l).attr("href",o);break;case"thumburl":jQuery("#thumburl-"+l).attr("src",o);break;case"magickstack":jQuery("#magickstack-"+l).html(o),0<o.length?jQuery("#imstackbutton-"+l).css("display","inline"):jQuery("#imstackbutton-"+l).css("display","none");break;default:jQuery("#"+n+"-"+l).html(o)}}"description"==s&&jQuery("#wppa-photo-spin-"+l).css({visibility:"hidden"}),wppaFeAjaxLog("out")},error:function(e,t,p){jQuery("#remark-"+l).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+p+", status = "+t,"force")},complete:function(e,t,p){var a=(a=document.location.href).replace(/&pano-val=./,"");u?setTimeout(function(){document.location.href=a},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,p,a){var n=0==jQuery("#wppaalbumdesc:visible").length;jQuery("#wppaalbumdesc-html").click();for(var i=wppaAlbumUpdateMatrix.length,o=0,r=!1,l=-1;o<i;)wppaAlbumUpdateMatrix[o][0]==e&&wppaAlbumUpdateMatrix[o][1]==t&&(r=!0,l=o),o++;r||(wppaAlbumUpdateMatrix[i]=[e,t,"undefined",!1,!1,a],l=i),wppaAlbumUpdateMatrix[l][3]="number"==typeof p?p:p.value,wppaAlbumUpdateMatrix[l][5]=a,wppaAjaxUpdateAlbumMonitor(n)}function wppaAjaxUpdateAlbumMonitor(e){for(var t=wppaAlbumUpdateMatrix.length,p=0;p<t;)wppaAlbumUpdateMatrix[p][2]==wppaAlbumUpdateMatrix[p][3]||wppaAlbumUpdateMatrix[p][4]||(wppaAlbumUpdateMatrix[p][4]=!0,_wppaAjaxUpdateAlbum(wppaAlbumUpdateMatrix[p][0],wppaAlbumUpdateMatrix[p][1],wppaAlbumUpdateMatrix[p][3],e,wppaAlbumUpdateMatrix[p][5])),p++;e&&jQuery("#wppaalbumdesc-tmce").click()}function _wppaAjaxUpdateAlbum(o,r,l,s,u){wppaAjaxAlbumCount++;jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-album&album-id="+o+"&item="+r+"&wppa-nonce="+document.getElementById("album-nonce-"+o).value+"&value="+wppaEncode(l),async:!0,type:"POST",timeout:6e4,beforeSend:function(e){"description"==r&&jQuery("#wppa-album-spin").css({visibility:"visible"}),jQuery("#albumstatus-"+o).html("Working, please wait... ("+wppaAjaxAlbumCount+")")},success:function(e,t,p){e=wppaTrim(e).split("||");if(wppaAjaxAlbumCount--,""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?0==wppaAjaxAlbumCount?jQuery("#albumstatus-"+o).html(e[2]):jQuery("#albumstatus-"+o).html("Working, please wait... ("+wppaAjaxAlbumCount+")"):jQuery("#albumstatus-"+o).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-"+o).after('<span style="color:blue;font-weight:bold;"> Reloading...</span>'),jQuery("#wppa-admin-spinner").fadeIn(),void setTimeout(function(){wppaReload()},100);"description"==r&&jQuery("#wppa-album-spin").css({visibility:"hidden"});for(var a=0,n=-1,i=wppaAlbumUpdateMatrix.length;a<i;)wppaAlbumUpdateMatrix[a][0]==o&&wppaAlbumUpdateMatrix[a][1]==r&&(n=a),a++;wppaAlbumUpdateMatrix[n][2]=l||0,wppaAlbumUpdateMatrix[n][4]=!1,wppaAlbumUpdateMatrix[n][5]=!1,wppaAjaxUpdateAlbumMonitor(s)},error:function(e,t,p){wppaAjaxAlbumCount--,jQuery("#albumstatus-"+o).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("_wppaAjaxUpdateAlbum failed. Error = "+p+", status = "+t,"force")},complete:function(e,t,p){}})}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,p,e){var a=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=update-comment-status&wppa-photo-id="+t+"&wppa-comment-id="+p+"&wppa-comment-status="+e+"&wppa-nonce="+document.getElementById("photo-nonce-"+t).value;a.onreadystatechange=function(){var e;4==a.readyState&&(200==a.status?(""!=(e=wppaTrim(a.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-"+p).css("visibility","hidden")):jQuery("#remark-"+t).html('<span style="color:red;" >Comm error '+a.status+": "+a.statusText+"</span>"))},a.open("GET",e,!0),a.send()}function wppaAjaxUpdateOptionCheckBox(t,e){var p=wppaGetXmlHttp(),a=wppaAjaxUrl+"?action=wppa&wppa-action=update-option&wppa-option="+t;a+="&wppa-nonce="+document.getElementById("wppa-nonce").value,e.checked?a+="&value=yes":a+="&value=no",p.onreadystatechange=function(){switch(p.readyState){case 1:case 2:case 3:jQuery("#img_"+t).attr("src",wppaImageDirectory+"spinner.gif");break;case 4:var e=wppaTrim(p.responseText).split("||");""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),404!=p.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: "+p.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 = "+p.status)),wppaCheckInconsistencies()}},p.open("GET",a,!0),p.send()}var wppaAlwaysContinue=100;function wppaMaintenanceProc(a,e,o){if(!o&&!e&&"yes"==document.getElementById(a+"_continue").value)return document.getElementById(a+"_continue").value="no",document.getElementById(a+"_button").value="Start!",void(0<jQuery("#"+a+"_togo").html()&&(jQuery("#"+a+"_status").html("Pausing..."),jQuery("#"+a+"_button").css("display","none")));o||(document.getElementById(a+"_continue").value="yes",document.getElementById(a+"_button").value="Stop!",""==jQuery("#"+a+"_status").html()&&jQuery("#"+a+"_status").html("Wait...")),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=maintenance&slug="+a+"&wppa-nonce="+jQuery("#wppa-nonce").val()+(o?"&wppa-cron":""),async:!0,type:"POST",timeout:3e5,beforeSend:function(e){},success:function(e,t,p){var a=e.split("||"),n=a[1],i=!1;return n?(10<a[0].length&&(alert("An error occurred:\n"+a[0]),i=!0),jQuery("#"+n+"_status").html(a[2]),jQuery("#"+n+"_togo").html(a[3]),jQuery("#"+n+"_button").css("display",""),i||"0"==a[3]?"reload"==a[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?o||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,p){wppaConsoleLog("wppaMaintenanceProc failed. Slug = "+a+", Error = "+p+", status = "+t,"force"),jQuery("#"+a+"_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"==a&&wppaAjaxUpdateOptionValue("wppa_remake_skip_one",0),"wppa_regen_thumbs"==a&&wppaAjaxUpdateOptionValue("wppa_regen_thumbs_skip_one",0),"wppa_create_o1_files"==a&&wppaAjaxUpdateOptionValue("wppa_create_o1_files_skip_one",0),setTimeout("wppaMaintenanceProc('"+a+"', true)",2e3))},complete:function(e,t,p){}})}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(),p=wppaGetXmlHttp(),a=wppaAjaxUrl,e="action=wppa&wppa-action=maintenancepopup&slug="+e;e+="&wppa-nonce="+document.getElementById("wppa-nonce").value,p.open("POST",a,!1),p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(e),4==p.readyState&&200==p.status&&(p=(e=wppaEntityDecode(p.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>"+p+"</h2>"),jQuery(".ui-button").css({position:"absolute",top:"12px",right:"12px"}),jQuery(".ui-button").attr("title",wppaCloseText))}function wppaAjaxUpdateOptionValue(l,e,t){var p="action=wppa&wppa-action=update-option&wppa-option="+wppaEncode(l)+"&wppa-nonce="+document.getElementById("wppa-nonce").value;0!=e&&(p+="number"==typeof e?"&value="+e:t?"&value="+wppaGetSelectionEnumByClass("."+l,","):"&value="+wppaEncode(e.value)),jQuery.ajax({url:wppaAjaxUrl,data:p,async:!0,type:"POST",timeout:1e5,beforeSend:function(e){jQuery("#img_"+l.replace("#","H")).attr("src",wppaImageDirectory+"spinner.gif")},success:function(e,t,p){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 a,n,i,o=e[4].split(";"),r=0;r<o.length;)a=o[r].split(":"),n=jQuery("#"+a[0]).html(),i=a[1],""!=n&&""==i&&(i='<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("#"+a[0]).html(i),r++},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=(a=(a=e.replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),p=0,a="";p<t.length;)a+=t[p],++p<t.length&&(a+="||PLUS||");return a}}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 p=0;p<t.length;)"jpg"!=t[p]&&"JPG"!=t[p]||jQuery("#psdesc-"+e).css({display:""}),p++}"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 p,a="",n=-1,i=-2,o=0,r=!1,l=0;l<e.length;)0!=(p=e[l].valueOf())&&(o=n,p==++o?r=!0:r?(a+=n==i?t+n+t+p:t+t+n+t+p,r=!1):a+=t+p,r||(i=p,i++),n=p),l++;for(r&&(a+=".."+n);"."==a.substr(0,1);)a=a.substr(1);for(;a.substr(0,1)==t;)a=a.substr(1);return a}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 p,a=[],n=0,i=0;for(t=t||".",p=jQuery(e),i=n=0;n<p.length;)p[n].selected&&(a[i]=p[n].value,i++),n++;return wppaArrayToEnum(a,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(a){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=export-table&table="+a,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){jQuery("#"+a+"-spin").css("display","inline")},success:function(e,t,p){e=e.split("||");"0"==e[1]?document.location=e[2]:alert("Error: "+e[1]+"\n\n"+e[2])},error:function(e,t,p){alert("Export Db Table "+a+" failed. Error = "+p+", status = "+t)},complete:function(e,t,p){jQuery("#"+a+"-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,p){var a=e.split("|");jQuery("#"+n+"_togo").html(a[0]);e=jQuery("#"+n+"_status").html(),a=a[1];""!=e&&""==a&&(a='<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(a),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,a){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,p){e=e.split("|");jQuery("#"+a).html(e[0])},error:function(e){},complete:function(e){}})}function wppaDragHorizon(t){var p=0,a=0;function n(e){(e=e||window.event).preventDefault(),p=a-e.clientY,a=e.clientY,t.style.top=t.offsetTop-p+"px"}function i(){document.onmouseup=null,document.onmousemove=null}t.onmousedown=function(e){(e=e||window.event).preventDefault(),pos3=e.clientX,a=e.clientY,document.onmouseup=i,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,p){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,p){var a=parseFloat(jQuery.fn.jquery);t.checked&&a<p&&(alert(e+"\nThe version of your jQuery library: "+a+" is too low for this feature. It requires version "+p),t.checked="")}function wppaReUpload(e,i,t,o){document.getElementById("wppa-re-up-form-"+i);var p=document.getElementById("wppa-re-up-file-"+i),r=document.getElementById("wppa-re-up-butn-"+i);e.preventDefault();p=p.files[0];if(p.type.match("image.*")){if(0==t.length)alert("Filename will be set to "+p.name);else if(p.name!=t&&!confirm("Filename is different.\nIf you continue, the filename will not be updated!.\n\nContinue?"))return void jQuery("#re-up-"+i).css("display","none");r.value="Uploading...",r.style.color="black";t=new FormData;t.append("photo",p,p.name);var l=new XMLHttpRequest,p="?action=wppa&wppa-action=update-photo&photo-id="+i+"&item=file&wppa-nonce="+document.getElementById("photo-nonce-"+i).value;l.open("POST",wppaAjaxUrl+p,!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,p,a,n=JSON.parse(e[2]);for(t in n)switch(a=n[t],t){case"remark":a=(a=(a=a.replace(/</g,"<")).replace(/>/g,">")).replace(/\\/g,""),p="0"!=e[1]?'<span style="color:red;" >'+a+"</span>":'<span style="color:green;" >'+a+"</span>",o&&(p+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+i).html(p);break;case"photourl":wppaCropper[i]?wppaCropper[i].replace(a):jQuery("#photourl-"+i).attr("src",a),jQuery("#thumba-"+i).attr("href",a);break;case"thumburl":jQuery("#thumburl-"+i).attr("src",a);break;case"magickstack":jQuery("#magickstack-"+i).html(a),0<a.length?jQuery("#imstackbutton-"+i).css("display","inline"):jQuery("#imstackbutton-"+i).css("display","none");break;default:jQuery("#"+t+"-"+i).html(a)}r.value="Upload",jQuery("#re-up-"+i).css("display","none");break;case"99":document.getElementById("photoitem-"+i).innerHTML='<span style="color:red">'+e[2]+"</span>";break;default:document.getElementById("remark-"+i).innerHTML='<span style="color:red">'+e[2]+" ("+e[1]+")</span>",r.value="Error occured",r.style.color="red"}}else alert("An error occurred!")},l.send(t)}else alert("File is not an image file!")}function wppaInitSettings(){wppaCheckBreadcrumb(),wppaCheckUseThumbOpacity(),wppaCheckUseCoverOpacity(),wppaCheckThumbType(),wppaCheckThumbLink(),wppaCheckTopTenLink(),wppaCheckFeaTenLink(),wppaCheckLasTenLink(),wppaCheckThumbnailWLink(),wppaCheckCommentLink(),wppaCheckXphotoLink(),wppaCheckMphotoLink(),wppaCheckSphotoLink(),wppaCheckSlidePhotoLink(),wppaCheckSlideOnlyLink(),wppaCheckAlbumWidgetLink(),wppaCheckAlbumNavigatorWidgetLink(),wppaCheckSlideLink(),wppaCheckCoverImg(),wppaCheckPotdLink(),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(),wppaCheckCheck("wppa_enable_video","wppa-video"),wppaCheckCheck("wppa_custom_fields","custfields"),wppaCheckCheck("wppa_album_custom_fields","albumcustfields"),wppaCheckCheck("wppa_new_mod_label_is_text","nmtxt"),wppaCheckCheck("wppa_coverphoto_responsive","cvpr"),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 p=wppa_getCookie("table_"+table);for(("on"==p?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 p=jQuery(".wppa-"+e[table-1]+"-"+t[subtab]);0<p.length&&(p.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 wppaCheckCheck(e,t){e=e.substring(5);document.getElementById(e).checked?(jQuery("."+t).css("display",""),jQuery(".-"+t).css("display","none")):(jQuery("."+t).css("display","none"),jQuery(".-"+t).css("display",""))}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,p=wppaFontDirectory+"wmf"+e+"-"+t+".png",e=wppaFontDirectory+"wmf"+t+"-"+e+".png";jQuery("#wm-font-preview").attr("src",p),jQuery("#wm-type-preview").attr("src",e)}function wppaCheckWidgetMethod(){var e,t,p;if("4"==document.getElementById("wppa-wm").value?(document.getElementById("wppa-wp").style.visibility="visible","day-of-week"==(p=jQuery("#wppa-wp").val())||"day-of-month"==p||"day-of-year"==p?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 wppaCheckThumbType(){var e=document.getElementById("thumbtype").value;"default"==e&&(jQuery(".tt_normal").css("display",""),jQuery(".tt_ascovers").css("display","none"),jQuery(".tt_always").css("display",""),wppaCheckUseThumbOpacity()),"ascovers"!=e&&"ascovers-mcr"!=e||(jQuery(".tt_normal").css("display","none"),jQuery(".tt_ascovers").css("display",""),jQuery(".tt_always").css("display","")),"masonry"==e&&(jQuery(".tt_normal").css("display","none"),jQuery(".tt_ascovers").css("display","none"),jQuery(".tt_always").css("display",""),jQuery(".tt_masonry").css("display",""))}function wppaCheckAutoPage(){document.getElementById("auto_page").checked?jQuery(".autopage").css("display",""):jQuery(".autopage").css("display","none")}function wppaCheckUseThumbOpacity(){document.getElementById("use_thumb_opacity").checked?(jQuery(".thumb_opacity").css("color","#333"),jQuery(".thumb_opacity_html").css("visibility","visible")):(jQuery(".thumb_opacity").css("color","#999"),jQuery(".thumb_opacity_html").css("visibility","hidden"))}function wppaCheckUseCoverOpacity(){document.getElementById("use_cover_opacity").checked?(jQuery(".cover_opacity").css("color","#333"),jQuery(".cover_opacity_html").css("visibility","visible")):(jQuery(".cover_opacity").css("color","#999"),jQuery(".cover_opacity_html").css("visibility","hidden"))}function wppaCheckBreadcrumb(){var e=document.getElementById("show_bread_posts").checked,t=document.getElementById("show_bread_pages").checked;e||t?(jQuery(".wppa_bc").css("display",""),jQuery(".wppa_bc_html").css("display",""),"txt"==(t=document.getElementById("bc_separator").value)?(jQuery(".wppa_bc_txt").css("display",""),jQuery(".wppa_bc_url").css("display","none"),jQuery(".wppa_bc_txt_html").css("display",""),jQuery(".wppa_bc_url_html").css("display","none")):"url"==t?(jQuery(".wppa_bc_txt").css("display","none"),jQuery(".wppa_bc_url").css("display",""),jQuery(".wppa_bc_txt_html").css("display","none"),jQuery(".wppa_bc_url_html").css("display","")):(jQuery(".wppa_bc_txt").css("display","none"),jQuery(".wppa_bc_url").css("display","none"))):(jQuery(".wppa_bc").css("display","none"),jQuery(".wppa_bc_txt").css("display","none"),jQuery(".wppa_bc_url").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 wppaCheckThumbLink(){var e=document.getElementById("thumb_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tlp").css("visibility","hidden"):jQuery(".wppa_tlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tlb").css("visibility","hidden"):jQuery(".wppa_tlb").css("visibility","visible")}function wppaCheckTopTenLink(){var e=document.getElementById("topten_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ttlp").css("visibility","hidden"):jQuery(".wppa_ttlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ttlb").css("visibility","hidden"):jQuery(".wppa_ttlb").css("visibility","visible")}function wppaCheckFeaTenLink(){var e=document.getElementById("featen_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ftlp").css("visibility","hidden"):jQuery(".wppa_ftlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ftlb").css("visibility","hidden"):jQuery(".wppa_ftlb").css("visibility","visible")}function wppaCheckLasTenLink(){var e=document.getElementById("lasten_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ltlp").css("visibility","hidden"):jQuery(".wppa_ltlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_ltlb").css("visibility","hidden"):jQuery(".wppa_ltlb").css("visibility","visible")}function wppaCheckThumbnailWLink(){var e=document.getElementById("thumbnail_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tnlp").css("visibility","hidden"):jQuery(".wppa_tnlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_tnlb").css("visibility","hidden"):jQuery(".wppa_tnlb").css("visibility","visible")}function wppaCheckCommentLink(){var e=document.getElementById("comment_widget_linktype").value;"none"==e||"file"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_cmlp").css("visibility","hidden"):jQuery(".wppa_cmlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_cmlb").css("visibility","hidden"):jQuery(".wppa_cmlb").css("visibility","visible")}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 wppaCheckPotdLink(){var e=document.getElementById("potd_linktype").value;"none"==e||"lightbox"==e||"file"==e||"custom"==e?jQuery(".wppa_potdlp").css("visibility","hidden"):jQuery(".wppa_potdlp").css("visibility","visible"),"none"==e||"lightbox"==e||"fullpopup"==e?jQuery(".wppa_potdlb").css("visibility","hidden"):jQuery(".wppa_potdlb").css("visibility","visible")}function wppaCheckTagLink(){document.getElementById("tagcloud_linktype").value}function wppaCheckMTagLink(){document.getElementById("multitag_linktype").value}function wppaCheckXphotoLink(){var e=document.getElementById("xphoto_linktype").value;"none"==e||"file"==e||"lightbox"==e?jQuery(".wppa_xlp").css("visibility","hidden"):jQuery(".wppa_xlp").css("visibility","visible"),"none"==e||"lightbox"==e?jQuery(".wppa_xlb").css("visibility","hidden"):jQuery(".wppa_xlb").css("visibility","visible")}function wppaCheckMphotoLink(){var e=document.getElementById("mphoto_linktype").value;"none"==e||"file"==e||"lightbox"==e?jQuery(".wppa_mlp").css("visibility","hidden"):jQuery(".wppa_mlp").css("visibility","visible"),"none"==e||"lightbox"==e?jQuery(".wppa_mlb").css("visibility","hidden"):jQuery(".wppa_mlb").css("visibility","visible")}function wppaCheckSphotoLink(){var e=document.getElementById("sphoto_linktype").value;"none"==e||"file"==e||"lightbox"==e?jQuery(".wppa_slp").css("visibility","hidden"):jQuery(".wppa_slp").css("visibility","visible"),"none"==e||"lightbox"==e?jQuery(".wppa_slb").css("visibility","hidden"):jQuery(".wppa_slb").css("visibility","visible")}function wppaCheckSlidePhotoLink(){var e=document.getElementById("slideshow_linktype").value;"none"==e||"file"==e||"lightbox"==e||"lightboxsingle"==e||"fullpopup"==e?jQuery(".wppa_sslp").css("visibility","hidden"):jQuery(".wppa_sslp").css("visibility","visible"),"none"==e||"lightbox"==e||"lightboxsingle"==e||"fullpopup"==e?jQuery(".wppa_sslb").css("visibility","hidden"):jQuery(".wppa_sslb").css("visibility","visible")}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,p){var a="",n="",a=e||'<div style="padding-left:5px;" >';p?n=p:aftrer="</div>",wppaFeAjaxLog("in");var i=wppaGetXmlHttp(),p=wppaAjaxUrl+"?action=wppa&wppa-action=delete-photo&photo-id="+t;p+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,i.open("GET",p,!0),i.send(),i.onreadystatechange=function(){switch(i.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==i.status?("ER"==(e=wppaTrim(i.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=a+e[2]+n,wppaProcessFull(e[3],e[4])),jQuery(window).trigger("scroll"),wppaFeAjaxLog("out")):document.getElementById("photoitem-"+t).innerHTML=a+'<span style="color:red;" >Comm error '+i.status+": "+i.statusText+"</span>"+n}}}function wppaAjaxUndeletePhoto(t){wppaFeAjaxLog("in");var p=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=undelete-photo&photo-id="+t;e+="&wppa-nonce="+document.getElementById("photo-nonce-"+t).value,p.open("GET",e,!0),p.send(),p.onreadystatechange=function(){switch(p.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==p.status?("ER"==(e=wppaTrim(p.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 '+p.status+": "+p.statusText+"</span>"+after}}}function wppaAjaxApplyWatermark(t,e,p){wppaFeAjaxLog("in");var a=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),p&&(n+="&wppa-watermark-pos="+p),a.open("POST",wppaAjaxUrl,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(n),a.onreadystatechange=function(){var e;4==a.readyState&&(200==a.status?(""!=(e=wppaTrim(a.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 '+a.status+": "+a.statusText+"</span>")}}function wppaAjaxUpdateIptc(l,e,t,p){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="+p,async:!0,type:"POST",timeout:6e4,beforeSend:function(e){jQuery("#remark-"+l).html("Working, please wait...")},success:function(e,t,p){var a=wppaTrim(e).split("||");if(""!=a[0]&&alert("The server returned unexpected output:\n"+a[0]),"99"===a[1])jQuery("#photoitem-"+l).html(bef+'<span style="color:red">'+a[2]+"</span>"+aft);else{var n,i,o,r=JSON.parse(a[2]);for(n in r)switch(o=r[n],n){case"remark":o=(o=(o=o.replace(/</g,"<")).replace(/>/g,">")).replace(/\\/g,""),i="0"!=a[1]?'<span style="color:red;" >'+o+"</span>":'<span style="color:green;" >'+o+"</span>",jQuery("#remark-"+l).html(i);break;case"photourl":wppaCropper[l]?wppaCropper[l].replace(o):jQuery("#photourl-"+l).attr("src",o),jQuery("#thumba-"+l).attr("href",o);break;case"thumburl":jQuery("#thumburl-"+l).attr("src",o);break;case"magickstack":jQuery("#magickstack-"+l).html(o),0<o.length?jQuery("#imstackbutton-"+l).css("display","inline"):jQuery("#imstackbutton-"+l).css("display","none")}}wppaFeAjaxLog("out")},error:function(e,t,p){jQuery("#remark-"+l).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+p+", status = "+t,"force")},complete:function(e,t,p){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,p){var a=wppaTrim(e).split("||");if(""!=a[0]&&alert("The server returned unexpected output:\n"+a[0]),"99"===a[1])jQuery("#photoitem-"+l).html(c+'<span style="color:red">'+a[2]+"</span>"+d);else{var n,i,o,r=JSON.parse(a[2]);for(n in r)switch(o=r[n],n){case"remark":o=(o=(o=o.replace(/</g,"<")).replace(/>/g,">")).replace(/\\/g,""),i="0"!=a[1]?'<span style="color:red;" >'+o+"</span>":'<span style="color:green;" >'+o+"</span>",u&&(i+=' <span style="color:blue;" >Reloading...</span>'),jQuery("#remark-"+l).html(i);break;case"photourl":wppaCropper[l]?wppaCropper[l].replace(o):jQuery("#photourl-"+l).attr("src",o),jQuery("#thumba-"+l).attr("href",o);break;case"thumburl":jQuery("#thumburl-"+l).attr("src",o);break;case"magickstack":jQuery("#magickstack-"+l).html(o),0<o.length?jQuery("#imstackbutton-"+l).css("display","inline"):jQuery("#imstackbutton-"+l).css("display","none");break;default:jQuery("#"+n+"-"+l).html(o)}}"description"==s&&jQuery("#wppa-photo-spin-"+l).css({visibility:"hidden"}),wppaFeAjaxLog("out")},error:function(e,t,p){jQuery("#remark-"+l).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("wppaAjaxUpdatePhoto failed. Error = "+p+", status = "+t,"force")},complete:function(e,t,p){var a=(a=document.location.href).replace(/&pano-val=./,"");u?setTimeout(function(){document.location.href=a},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,p,a){var n=0==jQuery("#wppaalbumdesc:visible").length;jQuery("#wppaalbumdesc-html").click();for(var i=wppaAlbumUpdateMatrix.length,o=0,r=!1,l=-1;o<i;)wppaAlbumUpdateMatrix[o][0]==e&&wppaAlbumUpdateMatrix[o][1]==t&&(r=!0,l=o),o++;r||(wppaAlbumUpdateMatrix[i]=[e,t,"undefined",!1,!1,a],l=i),wppaAlbumUpdateMatrix[l][3]="number"==typeof p?p:p.value,wppaAlbumUpdateMatrix[l][5]=a,wppaAjaxUpdateAlbumMonitor(n)}function wppaAjaxUpdateAlbumMonitor(e){for(var t=wppaAlbumUpdateMatrix.length,p=0;p<t;)wppaAlbumUpdateMatrix[p][2]==wppaAlbumUpdateMatrix[p][3]||wppaAlbumUpdateMatrix[p][4]||(wppaAlbumUpdateMatrix[p][4]=!0,_wppaAjaxUpdateAlbum(wppaAlbumUpdateMatrix[p][0],wppaAlbumUpdateMatrix[p][1],wppaAlbumUpdateMatrix[p][3],e,wppaAlbumUpdateMatrix[p][5])),p++;e&&jQuery("#wppaalbumdesc-tmce").click()}function _wppaAjaxUpdateAlbum(o,r,l,s,u){wppaAjaxAlbumCount++;jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=update-album&album-id="+o+"&item="+r+"&wppa-nonce="+document.getElementById("album-nonce-"+o).value+"&value="+wppaEncode(l),async:!0,type:"POST",timeout:6e4,beforeSend:function(e){"description"==r&&jQuery("#wppa-album-spin").css({visibility:"visible"}),jQuery("#albumstatus-"+o).html("Working, please wait... ("+wppaAjaxAlbumCount+")")},success:function(e,t,p){e=wppaTrim(e).split("||");if(wppaAjaxAlbumCount--,""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),"0"===e[1]?0==wppaAjaxAlbumCount?jQuery("#albumstatus-"+o).html(e[2]):jQuery("#albumstatus-"+o).html("Working, please wait... ("+wppaAjaxAlbumCount+")"):jQuery("#albumstatus-"+o).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-"+o).after('<span style="color:blue;font-weight:bold;"> Reloading...</span>'),jQuery("#wppa-admin-spinner").fadeIn(),void setTimeout(function(){wppaReload()},100);"description"==r&&jQuery("#wppa-album-spin").css({visibility:"hidden"});for(var a=0,n=-1,i=wppaAlbumUpdateMatrix.length;a<i;)wppaAlbumUpdateMatrix[a][0]==o&&wppaAlbumUpdateMatrix[a][1]==r&&(n=a),a++;wppaAlbumUpdateMatrix[n][2]=l||0,wppaAlbumUpdateMatrix[n][4]=!1,wppaAlbumUpdateMatrix[n][5]=!1,wppaAjaxUpdateAlbumMonitor(s)},error:function(e,t,p){wppaAjaxAlbumCount--,jQuery("#albumstatus-"+o).html('<span style="color:red;" >Comm error '+t+"</span>"),wppaConsoleLog("_wppaAjaxUpdateAlbum failed. Error = "+p+", status = "+t,"force")},complete:function(e,t,p){}})}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,p,e){var a=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=update-comment-status&wppa-photo-id="+t+"&wppa-comment-id="+p+"&wppa-comment-status="+e+"&wppa-nonce="+document.getElementById("photo-nonce-"+t).value;a.onreadystatechange=function(){var e;4==a.readyState&&(200==a.status?(""!=(e=wppaTrim(a.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-"+p).css("visibility","hidden")):jQuery("#remark-"+t).html('<span style="color:red;" >Comm error '+a.status+": "+a.statusText+"</span>"))},a.open("GET",e,!0),a.send()}function wppaAjaxUpdateOptionCheckBox(t,e){var p=wppaGetXmlHttp(),a=wppaAjaxUrl+"?action=wppa&wppa-action=update-option&wppa-option="+t;a+="&wppa-nonce="+document.getElementById("wppa-nonce").value,e.checked?a+="&value=yes":a+="&value=no",p.onreadystatechange=function(){switch(p.readyState){case 1:case 2:case 3:jQuery("#img_"+t).attr("src",wppaImageDirectory+"spinner.gif");break;case 4:var e=wppaTrim(p.responseText).split("||");""!=e[0]&&alert("The server returned unexpected output:\n"+e[0]),404!=p.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: "+p.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 = "+p.status)),wppaCheckInconsistencies()}},p.open("GET",a,!0),p.send()}var wppaAlwaysContinue=100;function wppaMaintenanceProc(a,e,o){if(!o&&!e&&"yes"==document.getElementById(a+"_continue").value)return document.getElementById(a+"_continue").value="no",document.getElementById(a+"_button").value="Start!",void(0<jQuery("#"+a+"_togo").html()&&(jQuery("#"+a+"_status").html("Pausing..."),jQuery("#"+a+"_button").css("display","none")));o||(document.getElementById(a+"_continue").value="yes",document.getElementById(a+"_button").value="Stop!",""==jQuery("#"+a+"_status").html()&&jQuery("#"+a+"_status").html("Wait...")),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=maintenance&slug="+a+"&wppa-nonce="+jQuery("#wppa-nonce").val()+(o?"&wppa-cron":""),async:!0,type:"POST",timeout:3e5,beforeSend:function(e){},success:function(e,t,p){var a=e.split("||"),n=a[1],i=!1;return n?(10<a[0].length&&(alert("An error occurred:\n"+a[0]),i=!0),jQuery("#"+n+"_status").html(a[2]),jQuery("#"+n+"_togo").html(a[3]),jQuery("#"+n+"_button").css("display",""),i||"0"==a[3]?"reload"==a[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?o||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,p){wppaConsoleLog("wppaMaintenanceProc failed. Slug = "+a+", Error = "+p+", status = "+t,"force"),jQuery("#"+a+"_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"==a&&wppaAjaxUpdateOptionValue("wppa_remake_skip_one",0),"wppa_regen_thumbs"==a&&wppaAjaxUpdateOptionValue("wppa_regen_thumbs_skip_one",0),"wppa_create_o1_files"==a&&wppaAjaxUpdateOptionValue("wppa_create_o1_files_skip_one",0),setTimeout("wppaMaintenanceProc('"+a+"', true)",2e3))},complete:function(e,t,p){}})}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(),p=wppaGetXmlHttp(),a=wppaAjaxUrl,e="action=wppa&wppa-action=maintenancepopup&slug="+e;e+="&wppa-nonce="+document.getElementById("wppa-nonce").value,p.open("POST",a,!1),p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(e),4==p.readyState&&200==p.status&&(p=(e=wppaEntityDecode(p.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>"+p+"</h2>"),jQuery(".ui-button").css({position:"absolute",top:"12px",right:"12px"}),jQuery(".ui-button").attr("title",wppaCloseText))}function wppaAjaxUpdateOptionValue(l,e,t){var p="action=wppa&wppa-action=update-option&wppa-option="+wppaEncode(l)+"&wppa-nonce="+document.getElementById("wppa-nonce").value;0!=e&&(p+="number"==typeof e?"&value="+e:t?"&value="+wppaGetSelectionEnumByClass("."+l,","):"&value="+wppaEncode(e.value)),jQuery.ajax({url:wppaAjaxUrl,data:p,async:!0,type:"POST",timeout:1e5,beforeSend:function(e){jQuery("#img_"+l.replace("#","H")).attr("src",wppaImageDirectory+"spinner.gif")},success:function(e,t,p){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 a,n,i,o=e[4].split(";"),r=0;r<o.length;)a=o[r].split(":"),n=jQuery("#"+a[0]).html(),i=a[1],""!=n&&""==i&&(i='<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("#"+a[0]).html(i),r++},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=(a=(a=e.replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),p=0,a="";p<t.length;)a+=t[p],++p<t.length&&(a+="||PLUS||");return a}}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 p=0;p<t.length;)"jpg"!=t[p]&&"JPG"!=t[p]||jQuery("#psdesc-"+e).css({display:""}),p++}"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 p,a="",n=-1,i=-2,o=0,r=!1,l=0;l<e.length;)0!=(p=e[l].valueOf())&&(o=n,p==++o?r=!0:r?(a+=n==i?t+n+t+p:t+t+n+t+p,r=!1):a+=t+p,r||(i=p,i++),n=p),l++;for(r&&(a+=".."+n);"."==a.substr(0,1);)a=a.substr(1);for(;a.substr(0,1)==t;)a=a.substr(1);return a}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 p,a=[],n=0,i=0;for(t=t||".",p=jQuery(e),i=n=0;n<p.length;)p[n].selected&&(a[i]=p[n].value,i++),n++;return wppaArrayToEnum(a,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(a){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=export-table&table="+a,async:!0,type:"GET",timeout:1e5,beforeSend:function(e){jQuery("#"+a+"-spin").css("display","inline")},success:function(e,t,p){e=e.split("||");"0"==e[1]?document.location=e[2]:alert("Error: "+e[1]+"\n\n"+e[2])},error:function(e,t,p){alert("Export Db Table "+a+" failed. Error = "+p+", status = "+t)},complete:function(e,t,p){jQuery("#"+a+"-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,p){var a=e.split("|");jQuery("#"+n+"_togo").html(a[0]);e=jQuery("#"+n+"_status").html(),a=a[1];""!=e&&""==a&&(a='<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(a),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,a){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,p){e=e.split("|");jQuery("#"+a).html(e[0])},error:function(e){},complete:function(e){}})}function wppaDragHorizon(t){var p=0,a=0;function n(e){(e=e||window.event).preventDefault(),p=a-e.clientY,a=e.clientY,t.style.top=t.offsetTop-p+"px"}function i(){document.onmouseup=null,document.onmousemove=null}t.onmousedown=function(e){(e=e||window.event).preventDefault(),pos3=e.clientX,a=e.clientY,document.onmouseup=i,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,p){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.007";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,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)}),!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
|
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
|
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;
|
@@ -168,6 +168,8 @@ var wppaIconSizeNormal = 'default';
|
|
168 |
Â
var wppaIconSizeSlide = 48;
|
169 |
Â
var wppaIconSizeStars = 24;
|
170 |
Â
var wppaResponseSpeed = 500;
|
Â
|
|
Â
|
|
171 |
Â
var wppaThumbAspect = 3/4;
|
172 |
Â
var wppaFilmonlyContinuous = false;
|
173 |
Â
var wppaNoAnimateOnMobile = false;
|
@@ -516,8 +518,10 @@ function _wppaDoAllAutocols(i) {
|
|
516 |
Â
}
|
517 |
Â
});
|
518 |
Â
|
519 |
-
// Do
|
520 |
-
|
Â
|
|
Â
|
|
521 |
Â
|
522 |
Â
return true;
|
523 |
Â
}
|
3 |
Â
// contains common vars and functions
|
4 |
Â
//
|
5 |
Â
|
6 |
+
wppaWppaVer = '8.0.00.008';
|
7 |
Â
|
8 |
Â
var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
|
9 |
Â
var wppaIsSafari = false;
|
168 |
Â
var wppaIconSizeSlide = 48;
|
169 |
Â
var wppaIconSizeStars = 24;
|
170 |
Â
var wppaResponseSpeed = 500;
|
171 |
+
var wppaExtendedResizeCount = 0;
|
172 |
+
var wppaExtendedResizeDelay = 200;
|
173 |
Â
var wppaThumbAspect = 3/4;
|
174 |
Â
var wppaFilmonlyContinuous = false;
|
175 |
Â
var wppaNoAnimateOnMobile = false;
|
518 |
Â
}
|
519 |
Â
});
|
520 |
Â
|
521 |
+
// Do retries if configured (-1 is infinite)
|
522 |
+
if ( i < wppaExtendedResizeCount || wppaExtendedResizeCount == -1 ) {
|
523 |
+
setTimeout(function(){_wppaDoAllAutocols(i+1)}, wppaExtendedResizeDelay);
|
524 |
+
}
|
525 |
Â
|
526 |
Â
return true;
|
527 |
Â
}
|
js/wppa.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
wppaWppaVer="8.0.00.007";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,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)}),!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.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)});
|
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 |
Â
|
@@ -3571,59 +3571,9 @@ global $wppa;
|
|
3571 |
Â
}
|
3572 |
Â
break;
|
3573 |
Â
|
3574 |
-
case 'wppa_i_userupload':
|
3575 |
-
if ( $value == 'yes' ) {
|
3576 |
-
wppa_update_option( 'wppa_user_upload_on', 'yes' );
|
3577 |
-
wppa_update_option( 'wppa_user_upload_login', 'yes' );
|
3578 |
-
wppa_update_option( 'wppa_owner_only', 'yes' );
|
3579 |
-
wppa_update_option( 'wppa_upload_moderate', 'yes' );
|
3580 |
-
wppa_update_option( 'wppa_upload_edit', 'new' );
|
3581 |
-
wppa_update_option( 'wppa_feuploadnotify', 'yes' );
|
3582 |
-
wppa_update_option( 'wppa_grant_an_album', 'yes' );
|
3583 |
-
$grantparent = wppa_opt( 'grant_parent' );
|
3584 |
-
if ( ! wppa_album_exists( $grantparent ) ) {
|
3585 |
-
$id = wppa_create_album_entry( array( 'name' => __( 'Members' , 'wp-photo-album-plus'), 'description' => __( 'Parent of the member albums' , 'wp-photo-album-plus'), 'upload_limit' => '0/0' ) );
|
3586 |
-
if ( $id ) {
|
3587 |
-
wppa_index_add( 'album', $id );
|
3588 |
-
wppa_update_option( 'wppa_grant_parent', $id );
|
3589 |
-
}
|
3590 |
-
$my_post = array(
|
3591 |
-
'post_title' => __( 'Members' , 'wp-photo-album-plus'),
|
3592 |
-
'post_content' => '[wppa type="content" album="'.$id.'"]',
|
3593 |
-
'post_status' => 'publish',
|
3594 |
-
'post_type' => 'page'
|
3595 |
-
);
|
3596 |
-
$pagid = wp_insert_post( $my_post );
|
3597 |
-
}
|
3598 |
-
wppa_update_option( 'wppa_alt_is_restricted', 'yes' );
|
3599 |
-
wppa_update_option( 'wppa_link_is_restricted', 'yes' );
|
3600 |
-
wppa_update_option( 'wppa_covertype_is_restricted', 'yes' );
|
3601 |
-
wppa_update_option( 'wppa_porder_restricted', 'yes' );
|
3602 |
-
}
|
3603 |
-
if ( $value == 'no' ) {
|
3604 |
-
wppa_update_option( 'wppa_user_upload_on', 'no' );
|
3605 |
-
}
|
3606 |
-
break;
|
3607 |
Â
|
3608 |
-
case 'wppa_i_rating':
|
3609 |
-
if ( $value == 'yes' ) {
|
3610 |
-
wppa_update_option( 'wppa_rating_on', 'yes' );
|
3611 |
-
}
|
3612 |
-
if ( $value == 'no' ) {
|
3613 |
-
wppa_update_option( 'wppa_rating_on', 'no' );
|
3614 |
-
}
|
3615 |
-
break;
|
3616 |
Â
|
3617 |
-
|
3618 |
-
if ( $value == 'yes' ) {
|
3619 |
-
wppa_update_option( 'wppa_show_comments', 'yes' );
|
3620 |
-
wppa_update_option( 'wppa_moderate_comment', 'all' );
|
3621 |
-
wppa_update_option( 'wppa_commentnotify', 'yes' );
|
3622 |
-
}
|
3623 |
-
if ( $value == 'no' ) {
|
3624 |
-
wppa_update_option( 'wppa_show_comments', 'no' );
|
3625 |
-
}
|
3626 |
-
break;
|
3627 |
Â
|
3628 |
Â
case 'wppa_i_share':
|
3629 |
Â
if ( $value == 'yes' ) {
|
@@ -3634,26 +3584,6 @@ global $wppa;
|
|
3634 |
Â
}
|
3635 |
Â
break;
|
3636 |
Â
|
3637 |
-
case 'wppa_i_iptc':
|
3638 |
-
if ( $value == 'yes' ) {
|
3639 |
-
wppa_update_option( 'wppa_show_iptc', 'yes' );
|
3640 |
-
wppa_update_option( 'wppa_save_iptc', 'yes' );
|
3641 |
-
}
|
3642 |
-
if ( $value == 'no' ) {
|
3643 |
-
wppa_update_option( 'wppa_show_iptc', 'no' );
|
3644 |
-
wppa_update_option( 'wppa_save_iptc', 'no' );
|
3645 |
-
}
|
3646 |
-
break;
|
3647 |
-
|
3648 |
-
case 'wppa_i_exif':
|
3649 |
-
if ( $value == 'yes' ) {
|
3650 |
-
wppa_update_option( 'wppa_show_exif', 'yes' );
|
3651 |
-
wppa_update_option( 'wppa_save_exif', 'yes' );
|
3652 |
-
}
|
3653 |
-
if ( $value == 'no' ) {
|
3654 |
-
wppa_update_option( 'wppa_show_exif', 'no' );
|
3655 |
-
wppa_update_option( 'wppa_save_exif', 'no' );
|
3656 |
-
}
|
3657 |
Â
break;
|
3658 |
Â
|
3659 |
Â
case 'wppa_i_gpx':
|
@@ -3666,14 +3596,6 @@ global $wppa;
|
|
3666 |
Â
if ( ! wppa_switch( 'custom_on' ) ) {
|
3667 |
Â
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3668 |
Â
}
|
3669 |
-
if ( wppa_opt( 'gpx_implementation' ) == 'none' ) {
|
3670 |
-
wppa_update_option( 'wppa_gpx_implementation', 'wppa-plus-embedded' );
|
3671 |
-
wppa_update_option( 'wppa_load_map_api', 'yes' );
|
3672 |
-
}
|
3673 |
-
}
|
3674 |
-
if ( $value == 'no' ) {
|
3675 |
-
wppa_update_option( 'gpx_implementation', 'none' );
|
3676 |
-
wppa_update_option( 'wppa_load_map_api', 'no' );
|
3677 |
Â
}
|
3678 |
Â
break;
|
3679 |
Â
|
@@ -3697,9 +3619,6 @@ global $wppa;
|
|
3697 |
Â
|
3698 |
Â
|
3699 |
Â
|
3700 |
-
case 'wppa_i_done':
|
3701 |
-
$value = 'done';
|
3702 |
-
break;
|
3703 |
Â
|
3704 |
Â
case 'wppa_excl_sep':
|
3705 |
Â
case 'wppa_search_tags':
|
@@ -3810,10 +3729,6 @@ global $wppa;
|
|
3810 |
Â
$alert .= __( 'The display of the custom box has been enabled.' , 'wp-photo-album-plus');
|
3811 |
Â
}
|
3812 |
Â
}
|
3813 |
-
if ( $value == 'wppa-plus-embedded' ) {
|
3814 |
-
wppa_update_option( 'wppa_load_map_api', 'yes' );
|
3815 |
-
$alert .= __( 'The Google maps API will be loaded on all pages to enable the use of Ajax page content changes that use maps.', 'wp-photo-album-plus');
|
3816 |
-
}
|
3817 |
Â
break;
|
3818 |
Â
|
3819 |
Â
case 'wppa_regen_thumbs_skip_one':
|
2 |
Â
/* wppa-ajax.php
|
3 |
Â
*
|
4 |
Â
* Functions used in ajax requests
|
5 |
+
* Version 8.0.00.008
|
6 |
Â
*
|
7 |
Â
*/
|
8 |
Â
|
3571 |
Â
}
|
3572 |
Â
break;
|
3573 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3574 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3575 |
Â
|
3576 |
+
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3577 |
Â
|
3578 |
Â
case 'wppa_i_share':
|
3579 |
Â
if ( $value == 'yes' ) {
|
3584 |
Â
}
|
3585 |
Â
break;
|
3586 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3587 |
Â
break;
|
3588 |
Â
|
3589 |
Â
case 'wppa_i_gpx':
|
3596 |
Â
if ( ! wppa_switch( 'custom_on' ) ) {
|
3597 |
Â
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3598 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3599 |
Â
}
|
3600 |
Â
break;
|
3601 |
Â
|
3619 |
Â
|
3620 |
Â
|
3621 |
Â
|
Â
|
|
Â
|
|
Â
|
|
3622 |
Â
|
3623 |
Â
case 'wppa_excl_sep':
|
3624 |
Â
case 'wppa_search_tags':
|
3729 |
Â
$alert .= __( 'The display of the custom box has been enabled.' , 'wp-photo-album-plus');
|
3730 |
Â
}
|
3731 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3732 |
Â
break;
|
3733 |
Â
|
3734 |
Â
case 'wppa_regen_thumbs_skip_one':
|
wppa-album-covers.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Functions for album covers
|
6 |
-
* Version 8.0.00.
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
@@ -1093,8 +1093,8 @@ global $wpdb;
|
|
1093 |
Â
' data-videonatheight="'.wppa_get_videoy( $id ).'"' : '' ) .
|
1094 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
|
1095 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
1096 |
-
'
|
1097 |
-
' ' .
|
1098 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
1099 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"' .
|
1100 |
Â
' style="cursor:' . wppa_wait() . ';"' .
|
@@ -1312,8 +1312,8 @@ global $wpdb;
|
|
1312 |
Â
' data-videonatheight="' . wppa_get_videoy( $thumb['id'] ) . '"' : '' ) .
|
1313 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $thumb['id'] ) ) . '"' : '' ) .
|
1314 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $thumb['id'] ) ) .'"' : '' ) .
|
1315 |
-
'
|
1316 |
-
( $title ? ' ' .
|
1317 |
Â
wppa_get_lb_panorama_full_html( $thumb['id'] ) .
|
1318 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $thumb['id'], true ) ) . '"' .
|
1319 |
Â
' >'
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Functions for album covers
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
1093 |
Â
' data-videonatheight="'.wppa_get_videoy( $id ).'"' : '' ) .
|
1094 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
|
1095 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
1096 |
+
' data-rel="wppa[alw-' . wppa( 'mocc' ) . '-' . $albumid . ']"' .
|
1097 |
+
' ' . 'data-lbtitle' . '="' . $title . '"' .
|
1098 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
1099 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"' .
|
1100 |
Â
' style="cursor:' . wppa_wait() . ';"' .
|
1312 |
Â
' data-videonatheight="' . wppa_get_videoy( $thumb['id'] ) . '"' : '' ) .
|
1313 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $thumb['id'] ) ) . '"' : '' ) .
|
1314 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $thumb['id'] ) ) .'"' : '' ) .
|
1315 |
+
' data-rel="wppa[alw-' . wppa( 'mocc' ) . '-' . $albumid . ']"' .
|
1316 |
+
( $title ? ' ' . 'data-lbtitle' . '="' . $title . '"' : '' ) .
|
1317 |
Â
wppa_get_lb_panorama_full_html( $thumb['id'] ) .
|
1318 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $thumb['id'], true ) ) . '"' .
|
1319 |
Â
' >'
|
wppa-album-navigator-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display album names linking to content
|
6 |
-
* Version 8.0.00.
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
class AlbumNavigatorWidget extends WP_Widget {
|
@@ -312,8 +312,8 @@ class AlbumNavigatorWidget extends WP_Widget {
|
|
312 |
Â
) .
|
313 |
Â
( $has_audio ? 'data-audiohtml="' . esc_attr( wppa_get_audio_body( $thumb['id'] ) ) . '" ' : ' ' ) .
|
314 |
Â
( $is_pdf ? 'data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $thumb['id'] ) ) .'" ' : ' ' ) .
|
315 |
-
|
316 |
-
|
317 |
Â
wppa_get_lb_panorama_full_html( $thumb['id'] ) . '
|
318 |
Â
data-alt="' . esc_attr( wppa_get_imgalt( $thumb['id'], true ) ) . '"
|
319 |
Â
style="cursor:' . wppa_wait() . ';"
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display album names linking to content
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
class AlbumNavigatorWidget extends WP_Widget {
|
312 |
Â
) .
|
313 |
Â
( $has_audio ? 'data-audiohtml="' . esc_attr( wppa_get_audio_body( $thumb['id'] ) ) . '" ' : ' ' ) .
|
314 |
Â
( $is_pdf ? 'data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $thumb['id'] ) ) .'" ' : ' ' ) .
|
315 |
+
'data-rel="wppa[alw-' . wppa( 'mocc' ) . '-' . $album['id'] . ']" ' .
|
316 |
+
'data-lbtitle' . '="' . esc_attr( $title ) . '" ' .
|
317 |
Â
wppa_get_lb_panorama_full_html( $thumb['id'] ) . '
|
318 |
Â
data-alt="' . esc_attr( wppa_get_imgalt( $thumb['id'], true ) ) . '"
|
319 |
Â
style="cursor:' . wppa_wait() . ';"
|
wppa-album-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display thumbnail albums
|
6 |
-
* Version 8.0.00.
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -260,8 +260,8 @@ class AlbumWidget extends WP_Widget {
|
|
260 |
Â
' data-videonatheight="' . esc_attr( wppa_get_videoy( $thumb['id'] ) ) . '"' : '' ) .
|
261 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $thumb['id'] ) ) . '"' : '' ) .
|
262 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $thumb['id'] ) ) .'"' : '' ) .
|
263 |
-
'
|
264 |
-
' ' .
|
265 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
266 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $thumb['id'], true ) ) . '"' .
|
267 |
Â
' style="cursor:' . wppa_wait() . ';"' .
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display thumbnail albums
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
260 |
Â
' data-videonatheight="' . esc_attr( wppa_get_videoy( $thumb['id'] ) ) . '"' : '' ) .
|
261 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $thumb['id'] ) ) . '"' : '' ) .
|
262 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $thumb['id'] ) ) .'"' : '' ) .
|
263 |
+
' data-rel="wppa[alw-' . wppa( 'mocc' ) . '-' . $album['id'] . ']"' .
|
264 |
+
' ' . 'data-lbtitle' . '="' . esc_attr( $title ) . '"' .
|
265 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
266 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $thumb['id'], true ) ) . '"' .
|
267 |
Â
' style="cursor:' . wppa_wait() . ';"' .
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Various wppa boxes
|
6 |
-
* Version 8.0.00.
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
@@ -5159,13 +5159,13 @@ function wppa_bestof_html( $args, $widget = true ) {
|
|
5159 |
Â
'<a' .
|
5160 |
Â
' data-id="' . wppa_encrypt_photo( $id ) . '"' .
|
5161 |
Â
' href="' . wppa_get_photo_url( $id ) . '"' .
|
5162 |
-
( $lbtitle ? ' ' .
|
5163 |
Â
( $videobody ? ' data-videohtml="' . $videobody . '"' : '' ) .
|
5164 |
Â
( $audiobody ? ' data-audiohtml="' . $audiobody . '"' : '' ) .
|
5165 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
5166 |
Â
( $videox ? ' data-videonatwidth="' . $videox . '"' : '' ) .
|
5167 |
Â
( $videoy ? ' data-videonatheight="' . $videoy . '"' : '' ) .
|
5168 |
-
'
|
5169 |
Â
// ( $link['target'] ? ' target="' . $link['target'] . '"' : '' ) .
|
5170 |
Â
' class="thumb-img"' .
|
5171 |
Â
' id="a-' . $id . '-' . wppa( 'mocc' ) . '"' .
|
@@ -6193,8 +6193,8 @@ global $wpdb;
|
|
6193 |
Â
data-videonatheight="' . wppa_get_videoy( $id ) . '"' : '' ) .
|
6194 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
|
6195 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
6196 |
-
'
|
6197 |
-
' ' .
|
6198 |
Â
wppa_get_lb_panorama_full_html( $id ) . '
|
6199 |
Â
data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"
|
6200 |
Â
style="cursor:' . wppa_wait() . ';"
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Various wppa boxes
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
5159 |
Â
'<a' .
|
5160 |
Â
' data-id="' . wppa_encrypt_photo( $id ) . '"' .
|
5161 |
Â
' href="' . wppa_get_photo_url( $id ) . '"' .
|
5162 |
+
( $lbtitle ? ' ' . 'data-lbtitle' . '="'.$lbtitle.'"' : '' ) .
|
5163 |
Â
( $videobody ? ' data-videohtml="' . $videobody . '"' : '' ) .
|
5164 |
Â
( $audiobody ? ' data-audiohtml="' . $audiobody . '"' : '' ) .
|
5165 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
5166 |
Â
( $videox ? ' data-videonatwidth="' . $videox . '"' : '' ) .
|
5167 |
Â
( $videoy ? ' data-videonatheight="' . $videoy . '"' : '' ) .
|
5168 |
+
' data-rel="wppa"' .
|
5169 |
Â
// ( $link['target'] ? ' target="' . $link['target'] . '"' : '' ) .
|
5170 |
Â
' class="thumb-img"' .
|
5171 |
Â
' id="a-' . $id . '-' . wppa( 'mocc' ) . '"' .
|
6193 |
Â
data-videonatheight="' . wppa_get_videoy( $id ) . '"' : '' ) .
|
6194 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
|
6195 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
6196 |
+
' data-rel="wppa[alw-' . wppa( 'mocc' ) . '-' . $year . '-' . $month . '-'. $cell_number . ']"' .
|
6197 |
+
' ' . 'data-lbtitle' . '="' . $title . '"' .
|
6198 |
Â
wppa_get_lb_panorama_full_html( $id ) . '
|
6199 |
Â
data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"
|
6200 |
Â
style="cursor:' . wppa_wait() . ';"
|
wppa-comment-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display the recent commets on photos
|
6 |
-
* Version
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -198,5 +198,8 @@ class wppaCommentWidget extends WP_Widget {
|
|
198 |
Â
add_action('widgets_init', 'wppa_register_wppaCommentWidget' );
|
199 |
Â
|
200 |
Â
function wppa_register_wppaCommentWidget() {
|
201 |
-
|
Â
|
|
Â
|
|
Â
|
|
202 |
Â
}
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display the recent commets on photos
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
198 |
Â
add_action('widgets_init', 'wppa_register_wppaCommentWidget' );
|
199 |
Â
|
200 |
Â
function wppa_register_wppaCommentWidget() {
|
201 |
+
|
202 |
+
if ( get_option( 'wppa_show_comments', 'yes' ) == 'yes' ) {
|
203 |
+
register_widget("wppaCommentWidget");
|
204 |
+
}
|
205 |
Â
}
|
wppa-common-functions.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Â
/* wppa-common-functions.php
|
3 |
Â
*
|
4 |
Â
* Functions used in admin and in themes
|
5 |
-
* Version 8.0.00.
|
6 |
Â
*
|
7 |
Â
*/
|
8 |
Â
|
@@ -233,8 +233,6 @@ global $wppa_current_shortcode_atts;
|
|
233 |
Â
'is_supersearch' => false,
|
234 |
Â
'supersearch' => '',
|
235 |
Â
'is_mobile' => wppa_is_mobile(),
|
236 |
-
'rel' => wppa_get_option( 'wppa_lightbox_name' ) == 'wppa' ? 'data-rel' : 'rel',
|
237 |
-
'lbtitle' => wppa_get_option( 'wppa_lightbox_name' ) == 'wppa' ? 'data-lbtitle' : 'title',
|
238 |
Â
'alt' => 'even',
|
239 |
Â
'is_wppa_tree' => false,
|
240 |
Â
'is_calendar' => false,
|
2 |
Â
/* wppa-common-functions.php
|
3 |
Â
*
|
4 |
Â
* Functions used in admin and in themes
|
5 |
+
* Version 8.0.00.008
|
6 |
Â
*
|
7 |
Â
*/
|
8 |
Â
|
233 |
Â
'is_supersearch' => false,
|
234 |
Â
'supersearch' => '',
|
235 |
Â
'is_mobile' => wppa_is_mobile(),
|
Â
|
|
Â
|
|
236 |
Â
'alt' => 'even',
|
237 |
Â
'is_wppa_tree' => false,
|
238 |
Â
'is_calendar' => false,
|
wppa-dashboard-widgets.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Â
*
|
5 |
Â
* Contains dashboard widgets code
|
6 |
Â
*
|
7 |
-
* Version
|
8 |
Â
*
|
9 |
Â
*/
|
10 |
Â
|
@@ -13,6 +13,10 @@ add_action( 'do_meta_boxes', 'wppa_email_subscription' );
|
|
13 |
Â
|
14 |
Â
function wppa_email_subscription() {
|
15 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
16 |
Â
$doit =
|
17 |
Â
wppa_switch( 'newalbumnotify' ) ||
|
18 |
Â
wppa_switch( 'feuploadnotify' ) ||
|
4 |
Â
*
|
5 |
Â
* Contains dashboard widgets code
|
6 |
Â
*
|
7 |
+
* Version 8.0.00.008
|
8 |
Â
*
|
9 |
Â
*/
|
10 |
Â
|
13 |
Â
|
14 |
Â
function wppa_email_subscription() {
|
15 |
Â
|
16 |
+
if ( ! wppa_switch( 'email_on' ) ) {
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
Â
$doit =
|
21 |
Â
wppa_switch( 'newalbumnotify' ) ||
|
22 |
Â
wppa_switch( 'feuploadnotify' ) ||
|
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Contains default settings
|
6 |
-
* Version 8.0.00.
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
@@ -74,14 +74,7 @@ horizrailenabled:false,";
|
|
74 |
Â
'wppa_max_users' => '1000',
|
75 |
Â
|
76 |
Â
// Table 0: Initial setup
|
77 |
-
'wppa_i_userupload' => '',
|
78 |
-
'wppa_i_rating' => '',
|
79 |
-
'wppa_i_comment' => '',
|
80 |
Â
'wppa_i_share' => '',
|
81 |
-
'wppa_i_iptc' => '',
|
82 |
-
'wppa_i_exif' => '',
|
83 |
-
'wppa_i_gpx' => '',
|
84 |
-
'wppa_i_done' => '',
|
85 |
Â
|
86 |
Â
// Table I: Sizes
|
87 |
Â
// A System
|
@@ -304,20 +297,8 @@ horizrailenabled:false,";
|
|
304 |
Â
// F Overlay
|
305 |
Â
'wppa_ovl_theme' => 'black',
|
306 |
Â
'wppa_ovl_bgcolor' => 'black',
|
307 |
-
'
|
308 |
-
'
|
309 |
-
'wppa_ovl_thumb_name' => 'yes',
|
310 |
-
'wppa_ovl_thumb_desc' => 'no',
|
311 |
-
'wppa_ovl_potd_name' => 'yes',
|
312 |
-
'wppa_ovl_potd_desc' => 'no',
|
313 |
-
'wppa_ovl_sphoto_name' => 'yes',
|
314 |
-
'wppa_ovl_sphoto_desc' => 'no',
|
315 |
-
'wppa_ovl_mphoto_name' => 'yes',
|
316 |
-
'wppa_ovl_mphoto_desc' => 'no',
|
317 |
-
'wppa_ovl_alw_name' => 'yes',
|
318 |
-
'wppa_ovl_alw_desc' => 'no',
|
319 |
-
'wppa_ovl_cover_name' => 'yes',
|
320 |
-
'wppa_ovl_cover_desc' => 'no',
|
321 |
Â
'wppa_ovl_show_counter' => 'yes',
|
322 |
Â
'wppa_ovl_add_owner' => 'no',
|
323 |
Â
'wppa_ovl_show_startstop' => 'yes',
|
@@ -327,6 +308,7 @@ horizrailenabled:false,";
|
|
327 |
Â
|
328 |
Â
// H Frontend upload
|
329 |
Â
'wppa_user_upload_on' => 'no',
|
Â
|
|
330 |
Â
'wppa_user_upload_video_on' => 'no',
|
331 |
Â
'wppa_user_upload_audio_on' => 'no',
|
332 |
Â
'wppa_user_upload_login' => 'yes',
|
@@ -868,7 +850,7 @@ horizrailenabled:false,";
|
|
868 |
Â
'wppa_backup_filename' => '',
|
869 |
Â
'wppa_backup' => '',
|
870 |
Â
'wppa_load_skin' => '',
|
871 |
-
'wppa_skinfile' => '
|
872 |
Â
'wppa_regen_thumbs' => '',
|
873 |
Â
'wppa_regen_thumbs_skip_one' => '',
|
874 |
Â
'wppa_rerate' => '',
|
@@ -948,7 +930,6 @@ horizrailenabled:false,";
|
|
948 |
Â
// A System
|
949 |
Â
'wppa_allow_debug' => 'no', // 3
|
950 |
Â
|
951 |
-
'wppa_lightbox_name' => 'wppa', // 6
|
952 |
Â
'wppa_allow_foreign_shortcodes_general' => 'no',
|
953 |
Â
'wppa_allow_foreign_shortcodes' => 'no', // 7
|
954 |
Â
'wppa_allow_foreign_shortcodes_thumbs' => 'no',
|
@@ -993,6 +974,8 @@ horizrailenabled:false,";
|
|
993 |
Â
'wppa_login_url' => site_url( 'wp-login.php', 'login' ), // A
|
994 |
Â
'wppa_cache_root' => 'cache',
|
995 |
Â
'wppa_direct_comment' => 'no',
|
Â
|
|
Â
|
|
996 |
Â
'wppa_load_nicescroller' => 'no',
|
997 |
Â
'wppa_csv_sep' => ',',
|
998 |
Â
|
@@ -1116,6 +1099,7 @@ horizrailenabled:false,";
|
|
1116 |
Â
'wppa_remake_add' => 'yes',
|
1117 |
Â
'wppa_save_iptc' => 'yes',
|
1118 |
Â
'wppa_save_exif' => 'yes',
|
Â
|
|
1119 |
Â
'wppa_chgsrc_is_restricted' => 'no',
|
1120 |
Â
'wppa_ext_status_restricted' => 'no',
|
1121 |
Â
'wppa_desc_is_restricted' => 'no',
|
@@ -1147,10 +1131,9 @@ horizrailenabled:false,";
|
|
1147 |
Â
'wppa_delete_all_from_cloudinary' => '',
|
1148 |
Â
'wppa_delete_derived_from_cloudinary' => '',
|
1149 |
Â
'wppa_max_cloud_life' => '0',
|
1150 |
-
'wppa_gpx_implementation' => '
|
1151 |
Â
'wppa_map_height' => '300',
|
1152 |
Â
'wppa_map_apikey' => '',
|
1153 |
-
'wppa_load_map_api' => 'no',
|
1154 |
Â
'wppa_gpx_shortcode' => '[map style="width: auto; height:300px; margin:0; " marker="yes" lat="w#lat" lon="w#lon"]',
|
1155 |
Â
'wppa_geo_zoom' => '10',
|
1156 |
Â
'wppa_fotomoto_on' => 'no',
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Contains default settings
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
74 |
Â
'wppa_max_users' => '1000',
|
75 |
Â
|
76 |
Â
// Table 0: Initial setup
|
Â
|
|
Â
|
|
Â
|
|
77 |
Â
'wppa_i_share' => '',
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
78 |
Â
|
79 |
Â
// Table I: Sizes
|
80 |
Â
// A System
|
297 |
Â
// F Overlay
|
298 |
Â
'wppa_ovl_theme' => 'black',
|
299 |
Â
'wppa_ovl_bgcolor' => 'black',
|
300 |
+
'wppa_ovl_name' => 'yes',
|
301 |
+
'wppa_ovl_desc' => 'yes',
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
302 |
Â
'wppa_ovl_show_counter' => 'yes',
|
303 |
Â
'wppa_ovl_add_owner' => 'no',
|
304 |
Â
'wppa_ovl_show_startstop' => 'yes',
|
308 |
Â
|
309 |
Â
// H Frontend upload
|
310 |
Â
'wppa_user_upload_on' => 'no',
|
311 |
+
'wppa_email_on' => 'yes',
|
312 |
Â
'wppa_user_upload_video_on' => 'no',
|
313 |
Â
'wppa_user_upload_audio_on' => 'no',
|
314 |
Â
'wppa_user_upload_login' => 'yes',
|
850 |
Â
'wppa_backup_filename' => '',
|
851 |
Â
'wppa_backup' => '',
|
852 |
Â
'wppa_load_skin' => '',
|
853 |
+
'wppa_skinfile' => '',
|
854 |
Â
'wppa_regen_thumbs' => '',
|
855 |
Â
'wppa_regen_thumbs_skip_one' => '',
|
856 |
Â
'wppa_rerate' => '',
|
930 |
Â
// A System
|
931 |
Â
'wppa_allow_debug' => 'no', // 3
|
932 |
Â
|
Â
|
|
933 |
Â
'wppa_allow_foreign_shortcodes_general' => 'no',
|
934 |
Â
'wppa_allow_foreign_shortcodes' => 'no', // 7
|
935 |
Â
'wppa_allow_foreign_shortcodes_thumbs' => 'no',
|
974 |
Â
'wppa_login_url' => site_url( 'wp-login.php', 'login' ), // A
|
975 |
Â
'wppa_cache_root' => 'cache',
|
976 |
Â
'wppa_direct_comment' => 'no',
|
977 |
+
'wppa_extended_resize_count' => '0',
|
978 |
+
'wppa_extended_resize_delay' => '1000',
|
979 |
Â
'wppa_load_nicescroller' => 'no',
|
980 |
Â
'wppa_csv_sep' => ',',
|
981 |
Â
|
1099 |
Â
'wppa_remake_add' => 'yes',
|
1100 |
Â
'wppa_save_iptc' => 'yes',
|
1101 |
Â
'wppa_save_exif' => 'yes',
|
1102 |
+
'wppa_save_gpx' => 'yes',
|
1103 |
Â
'wppa_chgsrc_is_restricted' => 'no',
|
1104 |
Â
'wppa_ext_status_restricted' => 'no',
|
1105 |
Â
'wppa_desc_is_restricted' => 'no',
|
1131 |
Â
'wppa_delete_all_from_cloudinary' => '',
|
1132 |
Â
'wppa_delete_derived_from_cloudinary' => '',
|
1133 |
Â
'wppa_max_cloud_life' => '0',
|
1134 |
+
'wppa_gpx_implementation' => 'wppa-plus-embedded',
|
1135 |
Â
'wppa_map_height' => '300',
|
1136 |
Â
'wppa_map_apikey' => '',
|
Â
|
|
1137 |
Â
'wppa_gpx_shortcode' => '[map style="width: auto; height:300px; margin:0; " marker="yes" lat="w#lat" lon="w#lon"]',
|
1138 |
Â
'wppa_geo_zoom' => '10',
|
1139 |
Â
'wppa_fotomoto_on' => 'no',
|
wppa-exif-iptc-common.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* exif and iptc common functions
|
6 |
-
* Version
|
7 |
Â
*
|
8 |
Â
*
|
9 |
Â
*/
|
@@ -3292,6 +3292,7 @@ global $wppa;
|
|
3292 |
Â
$status = 'display';
|
3293 |
Â
}
|
3294 |
Â
}
|
Â
|
|
3295 |
Â
$bret = wppa_create_exif_entry( array( 'photo' => $photo, 'tag' => $tag, 'description' => $desc, 'status' => $status ) );
|
3296 |
Â
if ( ! $bret ) wppa_log( 'War', 'Could not add EXIF tag label '.$tag.' for photo '.$photo );
|
3297 |
Â
}
|
@@ -3300,49 +3301,20 @@ global $wppa;
|
|
3300 |
Â
// If its an array...
|
3301 |
Â
if ( is_array( $exif[$s] ) ) {
|
3302 |
Â
|
3303 |
-
|
3304 |
-
/*
|
3305 |
-
|
3306 |
-
$c = count ( $exif[$s] );
|
3307 |
-
$max = wppa_opt( 'exif_max_array_size' );
|
3308 |
-
if ( $max != '0' && $c > $max ) {
|
3309 |
-
wppa_dbg_msg( 'Exif tag '.$tag. ': array truncated form '.$c.' to '.$max.' elements for photo nr '.$id.'.', 'red' );
|
3310 |
-
$c = $max;
|
3311 |
-
}
|
3312 |
-
for ( $i=0; $i <$c; $i++ ) {
|
3313 |
-
$photo = $id;
|
3314 |
-
$desc = $exif[$s][$i];
|
3315 |
-
$status = 'default';
|
3316 |
-
$bret = wppa_create_exif_entry( array( 'photo' => $photo, 'tag' => $tag, 'description' => $desc, 'status' => $status ) );
|
3317 |
-
if ( ! $bret ) wppa_log( 'War', 'Could not add EXIF tag '.$tag.' for photo '.$photo );
|
3318 |
-
|
3319 |
-
}
|
3320 |
-
*/
|
3321 |
-
/*
|
3322 |
-
$max = wppa_opt( 'exif_max_array_size' );
|
3323 |
-
if ( $max != 0 && count( $exif[$s] ) > $max ) {
|
3324 |
-
$temp = array_slice( $exif[$s], 0, $max, true );
|
3325 |
-
}
|
3326 |
-
else {
|
3327 |
-
$temp = $exif[$s];
|
3328 |
-
}
|
3329 |
-
*/
|
3330 |
Â
$desc = serialize( $exif[$s] );
|
3331 |
-
// wppa_dump( $id . ':' . $tag );
|
3332 |
-
// wppa_dump( var_export( $temp, true ) );
|
3333 |
Â
}
|
Â
|
|
3334 |
Â
// Its not an array
|
3335 |
Â
else {
|
3336 |
Â
|
3337 |
Â
$desc = $exif[$s];
|
3338 |
-
|
3339 |
Â
}
|
3340 |
Â
|
3341 |
Â
$photo = $id;
|
3342 |
Â
$status = 'default';
|
3343 |
-
|
3344 |
-
|
3345 |
-
|
3346 |
Â
}
|
3347 |
Â
|
3348 |
Â
wppa_fix_exif_format( $id );
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* exif and iptc common functions
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*
|
9 |
Â
*/
|
3292 |
Â
$status = 'display';
|
3293 |
Â
}
|
3294 |
Â
}
|
3295 |
+
|
3296 |
Â
$bret = wppa_create_exif_entry( array( 'photo' => $photo, 'tag' => $tag, 'description' => $desc, 'status' => $status ) );
|
3297 |
Â
if ( ! $bret ) wppa_log( 'War', 'Could not add EXIF tag label '.$tag.' for photo '.$photo );
|
3298 |
Â
}
|
3301 |
Â
// If its an array...
|
3302 |
Â
if ( is_array( $exif[$s] ) ) {
|
3303 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3304 |
Â
$desc = serialize( $exif[$s] );
|
Â
|
|
Â
|
|
3305 |
Â
}
|
3306 |
+
|
3307 |
Â
// Its not an array
|
3308 |
Â
else {
|
3309 |
Â
|
3310 |
Â
$desc = $exif[$s];
|
Â
|
|
3311 |
Â
}
|
3312 |
Â
|
3313 |
Â
$photo = $id;
|
3314 |
Â
$status = 'default';
|
3315 |
+
if ( wppa_switch( 'save_gps' ) || substr( $tag, 0, 2 ) != 'G#' ) {
|
3316 |
+
$bret = wppa_create_exif_entry( array( 'photo' => $photo, 'tag' => $tag, 'description' => $desc, 'status' => $status ) );
|
3317 |
+
}
|
3318 |
Â
}
|
3319 |
Â
|
3320 |
Â
wppa_fix_exif_format( $id );
|
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 |
Â
|
@@ -3902,7 +3902,7 @@ global $blog_id;
|
|
3902 |
Â
break;
|
3903 |
Â
case 'lightbox':
|
3904 |
Â
case 'lightboxsingle':
|
3905 |
-
$lbkey =
|
3906 |
Â
break;
|
3907 |
Â
default:
|
3908 |
Â
$lbkey = ''; // results in omitting the anchor tag
|
@@ -5681,14 +5681,14 @@ function wppa_get_lbtitle( $type, $id ) {
|
|
5681 |
Â
$do_download = wppa_is_video( $id ) ? false : wppa_switch( 'art_monkey_on_lightbox' );
|
5682 |
Â
if ( $type == 'xphoto' ) $type = 'mphoto';
|
5683 |
Â
|
5684 |
-
$do_name = wppa_is_item_displayable( $alb, 'name', '
|
5685 |
-
$do_desc = wppa_is_item_displayable( $alb, 'description', '
|
5686 |
Â
$do_rating = wppa_is_item_displayable( $alb, 'rating', 'ovl_rating' );
|
5687 |
Â
|
5688 |
Â
$do_sm = wppa_switch( 'share_on_lightbox' );
|
5689 |
Â
|
5690 |
Â
$dl_name = wppa_is_pdf( $id ) ? wppa_get_photo_item( $id, 'filename' ) : wppa_get_photo_name( $id, array( 'addowner' => wppa_switch( 'ovl_add_owner' ),
|
5691 |
-
'showname' => wppa_switch( '
|
5692 |
Â
'nobpdomain' => wppa_opt( 'art_monkey_display' ) == 'button' && $do_download,
|
5693 |
Â
) );
|
5694 |
Â
|
@@ -5716,7 +5716,7 @@ function wppa_get_lbtitle( $type, $id ) {
|
|
5716 |
Â
}
|
5717 |
Â
}
|
5718 |
Â
else {
|
5719 |
-
if ( $do_name ) $result .= wppa_get_photo_name( $id, array( 'addowner' => wppa_switch( 'ovl_add_owner' ), 'showname' => wppa_switch( '
|
5720 |
Â
}
|
5721 |
Â
if ( $do_name && $do_desc ) $result .= '<br />';
|
5722 |
Â
if ( $do_desc ) $result .= wppa_get_photo_desc( $thumb['id'] );
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Various functions
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
3902 |
Â
break;
|
3903 |
Â
case 'lightbox':
|
3904 |
Â
case 'lightboxsingle':
|
3905 |
+
$lbkey = 'wppa'; // gives anchor tag with rel="lightbox" or the like
|
3906 |
Â
break;
|
3907 |
Â
default:
|
3908 |
Â
$lbkey = ''; // results in omitting the anchor tag
|
5681 |
Â
$do_download = wppa_is_video( $id ) ? false : wppa_switch( 'art_monkey_on_lightbox' );
|
5682 |
Â
if ( $type == 'xphoto' ) $type = 'mphoto';
|
5683 |
Â
|
5684 |
+
$do_name = wppa_is_item_displayable( $alb, 'name', 'ovl_name' );
|
5685 |
+
$do_desc = wppa_is_item_displayable( $alb, 'description', 'ovl_desc' );
|
5686 |
Â
$do_rating = wppa_is_item_displayable( $alb, 'rating', 'ovl_rating' );
|
5687 |
Â
|
5688 |
Â
$do_sm = wppa_switch( 'share_on_lightbox' );
|
5689 |
Â
|
5690 |
Â
$dl_name = wppa_is_pdf( $id ) ? wppa_get_photo_item( $id, 'filename' ) : wppa_get_photo_name( $id, array( 'addowner' => wppa_switch( 'ovl_add_owner' ),
|
5691 |
+
'showname' => wppa_switch( 'ovl_name' ),
|
5692 |
Â
'nobpdomain' => wppa_opt( 'art_monkey_display' ) == 'button' && $do_download,
|
5693 |
Â
) );
|
5694 |
Â
|
5716 |
Â
}
|
5717 |
Â
}
|
5718 |
Â
else {
|
5719 |
+
if ( $do_name ) $result .= wppa_get_photo_name( $id, array( 'addowner' => wppa_switch( 'ovl_add_owner' ), 'showname' => wppa_switch( 'ovl_name' ) ) );
|
5720 |
Â
}
|
5721 |
Â
if ( $do_name && $do_desc ) $result .= '<br />';
|
5722 |
Â
if ( $do_desc ) $result .= wppa_get_photo_desc( $thumb['id'] );
|
wppa-mailing.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Â
*
|
5 |
Â
* Contains mailing functions
|
6 |
Â
*
|
7 |
-
* Version 8.0.00.
|
8 |
Â
*
|
9 |
Â
*/
|
10 |
Â
|
@@ -24,6 +24,8 @@ add_action( 'wppa_do_mailinglist_cron', 'wppa_do_mailinglist', 10, 6 );
|
|
24 |
Â
// Call this function to schedule a mailinglist emission
|
25 |
Â
function wppa_schedule_mailinglist( $type, $alb = 0, $pho = 0, $com = 0, $url = '', $start = 0, $delay = 120 ) {
|
26 |
Â
|
Â
|
|
Â
|
|
27 |
Â
$log_args = " Args: $alb, $pho, $com, $url, $start.";
|
28 |
Â
|
29 |
Â
// If user is an admin and void_admin is active, do nothing
|
4 |
Â
*
|
5 |
Â
* Contains mailing functions
|
6 |
Â
*
|
7 |
+
* Version 8.0.00.008
|
8 |
Â
*
|
9 |
Â
*/
|
10 |
Â
|
24 |
Â
// Call this function to schedule a mailinglist emission
|
25 |
Â
function wppa_schedule_mailinglist( $type, $alb = 0, $pho = 0, $com = 0, $url = '', $start = 0, $delay = 120 ) {
|
26 |
Â
|
27 |
+
if ( ! wppa_switch( 'email_on' ) ) return;
|
28 |
+
|
29 |
Â
$log_args = " Args: $alb, $pho, $com, $url, $start.";
|
30 |
Â
|
31 |
Â
// If user is an admin and void_admin is active, do nothing
|
wppa-non-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Contains all the non admin stuff
|
6 |
-
* Version 8.0.00.
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
@@ -317,7 +317,7 @@ global $wppa_opt;
|
|
317 |
Â
|
318 |
Â
// Start other (vendor) js files
|
319 |
Â
// google maps
|
320 |
-
if (
|
321 |
Â
$key = wppa_opt( 'map_apikey' );
|
322 |
Â
wp_enqueue_script( 'wppa-geo',
|
323 |
Â
'https://maps.googleapis.com/maps/api/js?' . ( $key ? 'key=' . $key : 'v=3.exp' ),
|
@@ -414,95 +414,94 @@ global $wppa_session;
|
|
414 |
Â
<!-- start WPPA+ Footer data -->
|
415 |
Â
';
|
416 |
Â
|
417 |
-
//
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
'
|
428 |
-
|
429 |
-
'
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
'
|
448 |
-
|
449 |
-
'
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
if ( wppa_switch( '
|
496 |
-
|
497 |
-
$lb_global = 'wppa[single]';
|
498 |
-
}
|
499 |
-
else {
|
500 |
-
$lb_global = 'wppa';
|
501 |
-
}
|
502 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
503 |
Â
|
504 |
-
|
505 |
-
|
506 |
Â
<script type="text/javascript" >
|
507 |
Â
|
508 |
Â
/* START Lightbox vars */
|
@@ -531,8 +530,8 @@ global $wppa_session;
|
|
531 |
Â
/* END Lightbox vars */
|
532 |
Â
</script>
|
533 |
Â
';
|
534 |
-
|
535 |
-
|
536 |
Â
|
537 |
Â
// The photo views cache
|
538 |
Â
$data = '
|
@@ -938,7 +937,7 @@ wppaShortQargs = '.( wppa_switch( 'use_short_qargs') ? 'true' : 'false' ).';
|
|
938 |
Â
wppaOvlHires = '.( wppa_switch( 'lb_hres' ) ? 'true' : 'false' ).';
|
939 |
Â
wppaSlideVideoStart = '.( wppa_switch( 'start_slide_video' ) ? 'true' : 'false' ).';
|
940 |
Â
wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ).';
|
941 |
-
wppaRel = "
|
942 |
Â
wppaOvlRadius = '.wppa_opt( 'ovl_border_radius' ).';
|
943 |
Â
wppaOvlBorderWidth = '.wppa_opt( 'ovl_border_width' ).';
|
944 |
Â
wppaEditPhotoWidth = "'.(wppa_opt( 'upload_edit' ) == 'new' ? 500 : 960).'";
|
@@ -961,6 +960,8 @@ wppaAreaMaxFrac = ' . ( wppa_opt( 'area_size' ) < 1 ? wppa_opt( 'area_size' ) :
|
|
961 |
Â
wppaIconSizeNormal = "' . wppa_opt( 'nav_icon_size' ) . '";
|
962 |
Â
wppaIconSizeSlide = "' . wppa_opt( 'nav_icon_size_slide' ) . '";
|
963 |
Â
wppaResponseSpeed = ' . wppa_opt( 'response_speed' ) . ';
|
Â
|
|
Â
|
|
964 |
Â
wppaCoverSpacing = ' . wppa_opt( 'cover_spacing' ) . ';
|
965 |
Â
wppaFilmonlyContinuous = ' . ( wppa_switch( 'filmonly_continuous' ) ? 'true' : 'false' ) . ';
|
966 |
Â
wppaNoAnimateOnMobile = ' . ( wppa_switch( 'no_animate_on_mobile' ) ? 'true' : 'false' ) . ';
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Contains all the non admin stuff
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
317 |
Â
|
318 |
Â
// Start other (vendor) js files
|
319 |
Â
// google maps
|
320 |
+
if ( wppa_switch( 'save_gpx' ) && strpos( wppa_opt( 'custom_content' ), 'w#location' ) !== false ) {
|
321 |
Â
$key = wppa_opt( 'map_apikey' );
|
322 |
Â
wp_enqueue_script( 'wppa-geo',
|
323 |
Â
'https://maps.googleapis.com/maps/api/js?' . ( $key ? 'key=' . $key : 'v=3.exp' ),
|
414 |
Â
<!-- start WPPA+ Footer data -->
|
415 |
Â
';
|
416 |
Â
|
417 |
+
// Needed for lightbox
|
418 |
+
$fontsize_lightbox = wppa_opt( 'fontsize_lightbox' ) ? wppa_opt( 'fontsize_lightbox' ) : '10';
|
419 |
+
$d = wppa_switch( 'ovl_show_counter') ? 1 : 0;
|
420 |
+
$ovlh = wppa_opt( 'ovl_txt_lines' ) == 'auto' ? 'auto' : ((wppa_opt( 'ovl_txt_lines' ) + $d) * ($fontsize_lightbox + 2));
|
421 |
+
$txtcol = wppa_opt( 'ovl_theme' ) == 'black' ? '#a7a7a7' : '#272727';
|
422 |
+
$dark = wppa( 'is_mobile' ) ? '0.1' : '0.1';
|
423 |
+
|
424 |
+
// The lightbox overlay background
|
425 |
+
echo
|
426 |
+
'<div' .
|
427 |
+
' id="wppa-overlay-bg"' .
|
428 |
+
' style="' .
|
429 |
+
'text-align:center;' .
|
430 |
+
'display:none;' .
|
431 |
+
'position:fixed;' .
|
432 |
+
'top:0;' .
|
433 |
+
'left:0;' .
|
434 |
+
'width:100%;' .
|
435 |
+
'height:100%;' .
|
436 |
+
'background-color:'.wppa_opt( 'ovl_bgcolor' ).';' .
|
437 |
+
'"' .
|
438 |
+
' onclick="wppaOvlOnclick(event)"' .
|
439 |
+
' onwheel="return false;"' .
|
440 |
+
' onscroll="return false;"' .
|
441 |
+
' >' .
|
442 |
+
'</div>';
|
443 |
+
|
444 |
+
// The Lightbox Wrapper and Image container
|
445 |
+
echo
|
446 |
+
'<div'.
|
447 |
+
' id="wppa-overlay-ic"'.
|
448 |
+
' style="' .
|
449 |
+
'position:fixed;' .
|
450 |
+
'top:50%;' .
|
451 |
+
'left:50%;' .
|
452 |
+
'opacity:1;' .
|
453 |
+
'box-shadow:none;' .
|
454 |
+
'box-sizing:content-box;' .
|
455 |
+
'text-align:center;' . // for panorama
|
456 |
+
'background-color:transparent;' .
|
457 |
+
'"' .
|
458 |
+
' onwheel="return false;"' .
|
459 |
+
' onscroll="return false;"' .
|
460 |
+
' >' .
|
461 |
+
'</div>';
|
462 |
+
|
463 |
+
// The preload images
|
464 |
+
echo '
|
465 |
+
<img
|
466 |
+
id="wppa-pre-prev"
|
467 |
+
style="position:fixed;left:0;top:50%;width:100px;z-index:200011;visibility:hidden;"
|
468 |
+
class="wppa-preload"
|
469 |
+
title="Preload preveious image"
|
470 |
+
alt=""
|
471 |
+
/>
|
472 |
+
<img
|
473 |
+
id="wppa-pre-next"
|
474 |
+
style="position:fixed;right:0;top:50%;width:100px;z-index:200011;visibility:hidden;"
|
475 |
+
class="wppa-preload"
|
476 |
+
title="Preload next image"
|
477 |
+
alt=""
|
478 |
+
/>
|
479 |
+
<img
|
480 |
+
id="wppa-pre-curr"
|
481 |
+
style="position:fixed;left:0;top:0;z-index:200011;visibility:hidden;"
|
482 |
+
class="wppa-preload-curr"
|
483 |
+
title="Preload current image"
|
484 |
+
alt=""
|
485 |
+
/>';
|
486 |
+
|
487 |
+
// The Spinner image
|
488 |
+
echo wppa_get_spinner_svg_html( array( 'id' => 'wppa-ovl-spin',
|
489 |
+
'position' => 'fixed',
|
490 |
+
'lightbox' => true,
|
491 |
+
) );
|
492 |
+
|
493 |
+
$lb_global = '';
|
494 |
+
if ( wppa_switch( 'lightbox_global' ) ) {
|
495 |
+
if ( wppa_switch( 'lightbox_global_set' ) ) {
|
496 |
+
$lb_global = 'wppa[single]';
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
497 |
Â
}
|
498 |
+
else {
|
499 |
+
$lb_global = 'wppa';
|
500 |
+
}
|
501 |
+
}
|
502 |
Â
|
503 |
+
// The init vars
|
504 |
+
$data = '
|
505 |
Â
<script type="text/javascript" >
|
506 |
Â
|
507 |
Â
/* START Lightbox vars */
|
530 |
Â
/* END Lightbox vars */
|
531 |
Â
</script>
|
532 |
Â
';
|
533 |
+
echo wppa_js( $data );
|
534 |
+
|
535 |
Â
|
536 |
Â
// The photo views cache
|
537 |
Â
$data = '
|
937 |
Â
wppaOvlHires = '.( wppa_switch( 'lb_hres' ) ? 'true' : 'false' ).';
|
938 |
Â
wppaSlideVideoStart = '.( wppa_switch( 'start_slide_video' ) ? 'true' : 'false' ).';
|
939 |
Â
wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ).';
|
940 |
+
wppaRel = "data-rel";
|
941 |
Â
wppaOvlRadius = '.wppa_opt( 'ovl_border_radius' ).';
|
942 |
Â
wppaOvlBorderWidth = '.wppa_opt( 'ovl_border_width' ).';
|
943 |
Â
wppaEditPhotoWidth = "'.(wppa_opt( 'upload_edit' ) == 'new' ? 500 : 960).'";
|
960 |
Â
wppaIconSizeNormal = "' . wppa_opt( 'nav_icon_size' ) . '";
|
961 |
Â
wppaIconSizeSlide = "' . wppa_opt( 'nav_icon_size_slide' ) . '";
|
962 |
Â
wppaResponseSpeed = ' . wppa_opt( 'response_speed' ) . ';
|
963 |
+
wppaExtendedResizeCount = ' . wppa_opt( 'extended_resize_count' ) . ';
|
964 |
+
wppaExtendedResizeDelay = ' . wppa_opt( 'extended_resize_delay' ) . ';
|
965 |
Â
wppaCoverSpacing = ' . wppa_opt( 'cover_spacing' ) . ';
|
966 |
Â
wppaFilmonlyContinuous = ' . ( wppa_switch( 'filmonly_continuous' ) ? 'true' : 'false' ) . ';
|
967 |
Â
wppaNoAnimateOnMobile = ' . ( wppa_switch( 'no_animate_on_mobile' ) ? 'true' : 'false' ) . ';
|
wppa-notify-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* notify events to users
|
6 |
-
* Version
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
class wppaNotifyWidget extends WP_Widget {
|
@@ -342,5 +342,8 @@ class wppaNotifyWidget extends WP_Widget {
|
|
342 |
Â
add_action( 'widgets_init', 'wppa_register_wppaNotifyWidget' );
|
343 |
Â
|
344 |
Â
function wppa_register_wppaNotifyWidget() {
|
345 |
-
|
Â
|
|
Â
|
|
Â
|
|
346 |
Â
}
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* notify events to users
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
class wppaNotifyWidget extends WP_Widget {
|
342 |
Â
add_action( 'widgets_init', 'wppa_register_wppaNotifyWidget' );
|
343 |
Â
|
344 |
Â
function wppa_register_wppaNotifyWidget() {
|
345 |
+
|
346 |
+
if ( get_option( 'wppa_email_on', 'yes' ) == 'yes' ) {
|
347 |
+
register_widget( "wppaNotifyWidget" );
|
348 |
+
}
|
349 |
Â
}
|
wppa-picture.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Make the picture html
|
6 |
-
* Version 8.0.00.
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
@@ -194,13 +194,13 @@ function wppa_get_picture_html( $args ) {
|
|
194 |
Â
'<a' .
|
195 |
Â
' data-id="' . wppa_encrypt_photo( $id ) . '"' .
|
196 |
Â
' href="' . $link['url'] . '"' .
|
197 |
-
( $lbtitle ? ' ' .
|
198 |
Â
( $videobody ? ' data-videohtml="' . $videobody . '"' : '' ) .
|
199 |
Â
( $audiobody ? ' data-audiohtml="' . $audiobody . '"' : '' ) .
|
200 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
201 |
Â
( $videox ? ' data-videonatwidth="' . $videox . '"' : '' ) .
|
202 |
Â
( $videoy ? ' data-videonatheight="' . $videoy . '"' : '' ) .
|
203 |
-
'
|
204 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
205 |
Â
( $link['target'] ? ' target="' . $link['target'] . '"' : '' ) .
|
206 |
Â
' class="thumb-img"' .
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* Make the picture html
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
194 |
Â
'<a' .
|
195 |
Â
' data-id="' . wppa_encrypt_photo( $id ) . '"' .
|
196 |
Â
' href="' . $link['url'] . '"' .
|
197 |
+
( $lbtitle ? ' ' . 'data-lbtitle' . '="'.esc_attr($lbtitle).'"' : '' ) .
|
198 |
Â
( $videobody ? ' data-videohtml="' . $videobody . '"' : '' ) .
|
199 |
Â
( $audiobody ? ' data-audiohtml="' . $audiobody . '"' : '' ) .
|
200 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
201 |
Â
( $videox ? ' data-videonatwidth="' . $videox . '"' : '' ) .
|
202 |
Â
( $videoy ? ' data-videonatheight="' . $videoy . '"' : '' ) .
|
203 |
+
' data-rel="wppa'.$setname.'"' .
|
204 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
205 |
Â
( $link['target'] ? ' target="' . $link['target'] . '"' : '' ) .
|
206 |
Â
' class="thumb-img"' .
|
wppa-potd-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display the widget
|
6 |
-
* Version
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -99,7 +99,7 @@ class PhotoOfTheDay extends WP_Widget {
|
|
99 |
Â
' data-videonatheight="'.wppa_get_videoy( $id ).'"' : '' ) .
|
100 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
|
101 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
102 |
-
'
|
103 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"' .
|
104 |
Â
' data-id="' . wppa_encrypt_photo( $id ) . '"' .
|
105 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
@@ -131,7 +131,7 @@ class PhotoOfTheDay extends WP_Widget {
|
|
131 |
Â
$widget_content .= wppa_get_medal_html_a( array( 'id' => $id, 'size' => 'M', 'where' => 'top' ) );
|
132 |
Â
|
133 |
Â
// The link, if any
|
134 |
-
if ($link) $widget_content .= "\n\t".'<a href = "'.$link['url'].'" target="'.$link['target'].'" '.$lightbox.' ' .
|
135 |
Â
|
136 |
Â
// The image
|
137 |
Â
if ( wppa_is_video( $id ) ) {
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* display the widget
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*/
|
8 |
Â
|
9 |
Â
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
99 |
Â
' data-videonatheight="'.wppa_get_videoy( $id ).'"' : '' ) .
|
100 |
Â
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
|
101 |
Â
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
|
102 |
+
' data-rel="wppa"' .
|
103 |
Â
' data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"' .
|
104 |
Â
' data-id="' . wppa_encrypt_photo( $id ) . '"' .
|
105 |
Â
wppa_get_lb_panorama_full_html( $id ) .
|
131 |
Â
$widget_content .= wppa_get_medal_html_a( array( 'id' => $id, 'size' => 'M', 'where' => 'top' ) );
|
132 |
Â
|
133 |
Â
// The link, if any
|
134 |
+
if ($link) $widget_content .= "\n\t".'<a href = "'.$link['url'].'" target="'.$link['target'].'" '.$lightbox.' ' . 'data-lbtitle' . '="'.$ltitle.'">';
|
135 |
Â
|
136 |
Â
// The image
|
137 |
Â
if ( wppa_is_video( $id ) ) {
|
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 |
Â
|
@@ -55,7 +55,7 @@ global $wppa_supported_camara_brands;
|
|
55 |
Â
if ( isset($_REQUEST['wppa_settings_submit']) ) { // Yep!
|
56 |
Â
|
57 |
Â
if ( ! wp_verify_nonce( $_REQUEST['wppa-nonce'], 'wppa-nonce' ) ) {
|
58 |
-
wp_die( 'Security
|
59 |
Â
}
|
60 |
Â
|
61 |
Â
$key = $_REQUEST['wppa-key'];
|
@@ -87,6 +87,7 @@ global $wppa_supported_camara_brands;
|
|
87 |
Â
// Should better be here
|
88 |
Â
case 'wppa_setup':
|
89 |
Â
wppa_setup(true); // Message on success or fail is in the routine
|
Â
|
|
90 |
Â
break;
|
91 |
Â
|
92 |
Â
// Must be here
|
@@ -99,7 +100,10 @@ global $wppa_supported_camara_brands;
|
|
99 |
Â
|
100 |
Â
$fname = wppa_opt( 'skinfile' );
|
101 |
Â
|
102 |
-
if ( $fname == '
|
Â
|
|
Â
|
|
Â
|
|
103 |
Â
if ( wppa_set_defaults( true ) ) {
|
104 |
Â
wppa_ok_message( __( 'Reset to default settings', 'wp-photo-album-plus' ) );
|
105 |
Â
}
|
@@ -126,10 +130,11 @@ global $wppa_supported_camara_brands;
|
|
126 |
Â
$options_error = true;
|
127 |
Â
}
|
128 |
Â
}
|
Â
|
|
129 |
Â
break;
|
130 |
Â
|
131 |
Â
// Must be here
|
132 |
-
case '
|
133 |
Â
if ( isset($_FILES['file_1']) && $_FILES['file_1']['error'] != 4 ) { // Expected a fileupload for a watermark
|
134 |
Â
$file = $_FILES['file_1'];
|
135 |
Â
if ( $file['error'] ) {
|
@@ -152,8 +157,8 @@ global $wppa_supported_camara_brands;
|
|
152 |
Â
break;
|
153 |
Â
|
154 |
Â
case 'wppa_watermark_font_upload':
|
155 |
-
if ( isset($_FILES['
|
156 |
-
$file = $_FILES['
|
157 |
Â
if ( $file['error'] ) {
|
158 |
Â
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus'), $file['error']));
|
159 |
Â
}
|
@@ -327,23 +332,27 @@ global $wppa_supported_camara_brands;
|
|
327 |
Â
wppa_update_message( sprintf( __( '%s last album used settings removed.', 'wp-photo-album-plus'), $iret ) );
|
328 |
Â
}
|
329 |
Â
|
330 |
-
|
331 |
-
<div class="wrap">
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
<
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
347 |
Â
if ( WPPA_MULTISITE_GLOBAL ) {
|
348 |
Â
_e('Multisite in singlesite mode.', 'wp-photo-album-plus');
|
349 |
Â
}
|
@@ -482,11203 +491,10576 @@ global $wppa_supported_camara_brands;
|
|
482 |
Â
|
483 |
Â
$is_old_style = isset($_GET['oldstyle']);
|
484 |
Â
|
485 |
-
if ( $is_old_style ) {
|
486 |
-
?>
|
487 |
-
|
488 |
-
<a style="cursor:pointer;" id="wppa-legon" onclick="jQuery('#wppa-legenda').css('display', ''); jQuery('#wppa-legon').css('display', 'none'); return false;" ><?php _e('Show legenda', 'wp-photo-album-plus') ?></a>
|
489 |
-
<div id="wppa-legenda" class="updated" style="line-height:20px; display:none" >
|
490 |
-
<div style="float:left"><?php _e('Legenda:', 'wp-photo-album-plus') ?></div><br />
|
491 |
-
<?php echo wppa_doit_button(__('Button', 'wp-photo-album-plus')) ?><div style="float:left"> : <?php _e('action that causes page reload.', 'wp-photo-album-plus') ?></div>
|
492 |
-
<br />
|
493 |
-
<input type="button" onclick="if ( confirm('<?php _e('Are you sure?', 'wp-photo-album-plus') ?>') ) return true; else return false;" class="button-secundary" style="float:left; border-radius:3px; font-size: 12px; height: 18px; margin: 0 4px; padding: 0px;" value="<?php _e('Button', 'wp-photo-album-plus') ?>" />
|
494 |
-
<div style="float:left"> : <?php _e('action that does not cause page reload.', 'wp-photo-album-plus') ?></div>
|
495 |
-
<br />
|
496 |
-
<img src="<?php echo wppa_get_imgdir() ?>star.ico" title="<?php _e('Setting unmodified', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left"> : <?php _e('Setting unmodified', 'wp-photo-album-plus') ?></div>
|
497 |
-
<br />
|
498 |
-
<img src="<?php echo wppa_get_imgdir() ?>spinner.gif" title="<?php _e('Update in progress', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left"> : <?php _e('Update in progress', 'wp-photo-album-plus') ?></div>
|
499 |
-
<br />
|
500 |
-
<img src="<?php echo wppa_get_imgdir() ?>tick.png" title="<?php _e('Setting updated', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left"> : <?php _e('Setting updated', 'wp-photo-album-plus') ?></div>
|
501 |
-
<br />
|
502 |
-
<img src="<?php echo wppa_get_imgdir() ?>cross.png" title="<?php _e('Update failed', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left"> : <?php _e('Update failed', 'wp-photo-album-plus') ?></div>
|
503 |
-
<br />
|
504 |
-
<a style="cursor:pointer;" onclick="jQuery('#wppa-legenda').css('display', 'none'); jQuery('#wppa-legon').css('display', ''); return false;" ><?php _e('Hide this', 'wp-photo-album-plus') ?></a>
|
505 |
-
</div>
|
506 |
-
<?php
|
507 |
Â
|
508 |
-
}
|
509 |
Â
|
Â
|
|
Â
|
|
Â
|
|
510 |
Â
|
511 |
-
|
512 |
-
|
513 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
514 |
Â
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
<style>
|
519 |
-
.wppa-setting-tabs {
|
520 |
-
position:relative;
|
521 |
-
top:24px;
|
522 |
-
}
|
523 |
-
.wppa-setting-tabs li {
|
524 |
-
border-color: darkgrey;
|
525 |
-
border-width: 1px;
|
526 |
-
float: left;
|
527 |
-
background-color: white;
|
528 |
-
padding: 8px 10px;
|
529 |
-
font-size: 22px;
|
530 |
-
color: darkgrey;
|
531 |
-
border-style: solid;
|
532 |
-
text-align: center;
|
533 |
-
margin-right: 4px;
|
534 |
-
border-top-left-radius: 8px;
|
535 |
-
border-top-right-radius: 8px;
|
536 |
-
cursor: pointer;
|
537 |
Â
}
|
538 |
-
|
539 |
-
|
540 |
-
}
|
541 |
-
.wppa-setting-tabs .active {
|
542 |
-
color: black;
|
543 |
-
border-bottom-color: white;
|
544 |
-
}
|
545 |
-
#wppa-setting-content {
|
546 |
-
clear:both;
|
547 |
-
background-color: white;
|
548 |
-
border-left:1px solid black;
|
549 |
-
border-right:1px solid black;
|
550 |
-
border-bottom:1px solid black;
|
551 |
-
position:relative;
|
552 |
-
top:18px;
|
553 |
-
border-color:darkgrey;
|
554 |
-
}
|
555 |
-
.wppa-colorbox {
|
556 |
-
height: 28px !important;
|
557 |
Â
}
|
558 |
-
</style>';
|
559 |
-
}
|
560 |
Â
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
if (
|
584 |
-
|
585 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
586 |
Â
}
|
587 |
Â
else {
|
588 |
-
|
589 |
-
|
590 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
591 |
Â
}
|
592 |
-
|
593 |
-
|
594 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
595 |
Â
}
|
596 |
-
|
597 |
-
jQuery(
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
598 |
Â
}
|
599 |
-
|
600 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
601 |
Â
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
$name = __('Border thickness', 'wp-photo-album-plus');
|
691 |
-
$desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus');
|
692 |
-
$help = __('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus');
|
693 |
-
$slug = 'wppa_bwidth';
|
694 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
695 |
-
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
696 |
-
|
697 |
-
$name = __('Border radius', 'wp-photo-album-plus');
|
698 |
-
$desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus');
|
699 |
-
$help = __('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus');
|
700 |
-
$slug = 'wppa_bradius';
|
701 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
702 |
-
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
703 |
-
|
704 |
-
$name = __('Box spacing', 'wp-photo-album-plus');
|
705 |
-
$desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus');
|
706 |
-
$help = '';
|
707 |
-
$slug = 'wppa_box_spacing';
|
708 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
709 |
-
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
710 |
-
|
711 |
-
$name = __('Initial Width', 'wp-photo-album-plus');
|
712 |
-
$desc = __('The starting width of the wppa display boxes', 'wp-photo-album-plus');
|
713 |
-
$help = '';
|
714 |
-
$slug = 'wppa_initial_colwidth';
|
715 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
716 |
-
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
717 |
-
|
718 |
-
$name = __('Resize to', 'wp-photo-album-plus');
|
719 |
-
$desc = __('Resize photos to fit within a given area.', 'wp-photo-album-plus');
|
720 |
-
$help = '';
|
721 |
-
$slug = 'wppa_resize_to';
|
722 |
-
$px = __('pixels', 'wp-photo-album-plus');
|
723 |
-
$options = array( __('Do not resize', 'wp-photo-album-plus'),
|
724 |
-
__('Fit within rectangle as set in Table I-B1,2', 'wp-photo-album-plus'),
|
725 |
-
'640 x 480 '.$px,
|
726 |
-
'800 x 600 '.$px,
|
727 |
-
'1024 x 768 '.$px,
|
728 |
-
'1200 x 900 '.$px,
|
729 |
-
'1280 x 960 '.$px,
|
730 |
-
'1366 x 768 '.$px,
|
731 |
-
'1920 x 1080 '.$px,
|
732 |
-
'2400 x 1200 '.$px,
|
733 |
-
'3600 x 1800 '.$px,
|
734 |
-
'4800 x 2400 '.$px,
|
735 |
-
'6000 x 3000 '.$px,
|
736 |
-
);
|
737 |
-
$values = array( '-1',
|
738 |
-
'0',
|
739 |
-
'640x480',
|
740 |
-
'800x600',
|
741 |
-
'1024x768',
|
742 |
-
'1200x900',
|
743 |
-
'1280x960',
|
744 |
-
'1366x768',
|
745 |
-
'1920x1080',
|
746 |
-
'2400x1200',
|
747 |
-
'3600x1800',
|
748 |
-
'4800x2400',
|
749 |
-
'6000x3000',
|
750 |
-
);
|
751 |
-
$html = wppa_select($slug, $options, $values);
|
752 |
-
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
753 |
-
}
|
754 |
-
wppa_setting_box_footer_new();
|
755 |
-
|
756 |
-
wppa_setting_box_header_new('comments');
|
757 |
-
{
|
758 |
-
$name = __('Avatar size', 'wp-photo-album-plus');
|
759 |
-
$desc = __('Size of Avatar images.', 'wp-photo-album-plus');
|
760 |
-
$help = __('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus');
|
761 |
-
$slug = 'wppa_gravatar_size';
|
762 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
763 |
-
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
764 |
-
}
|
765 |
-
wppa_setting_box_footer_new();
|
766 |
-
|
767 |
-
wppa_setting_box_header_new('rating');
|
768 |
-
{
|
769 |
-
$name = __('Slideshow rating', 'wp-photo-album-plus');
|
770 |
-
$desc = __('Display Slideshow Rating.', 'wp-photo-album-plus');
|
771 |
-
$help = __('Display the rating of the photo under the slideshow image.', 'wp-photo-album-plus');
|
772 |
-
$slug = '';
|
773 |
-
$html = '<input type="checkbox" checked disabled >';
|
774 |
-
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
775 |
-
|
776 |
-
$name = __('Thumbnail rating', 'wp-photo-album-plus');
|
777 |
-
$desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus');
|
778 |
-
$help = __('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus');
|
779 |
-
$slug = 'wppa_thumb_text_rating';
|
780 |
-
$html = wppa_checkbox($slug);
|
781 |
-
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
782 |
-
|
783 |
-
$name = __('Lightbox rating', 'wp-photo-album-plus');
|
784 |
-
$desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus');
|
785 |
-
$help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
|
786 |
-
$slug = 'wppa_ovl_rating';
|
787 |
-
$html = wppa_checkbox($slug);
|
788 |
-
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
789 |
-
|
790 |
-
$name = __('Rating display type', 'wp-photo-album-plus');
|
791 |
-
$desc = __('Specify the type of the rating display.', 'wp-photo-album-plus');
|
792 |
-
$help = __('If you select "Likes" you must also select "One button vote"', 'wp-photo-album-plus');
|
793 |
-
$slug = 'wppa_rating_display_type';
|
794 |
-
$opts = array(__('Graphic', 'wp-photo-album-plus'), __('Numeric', 'wp-photo-album-plus'), __('Likes', 'wp-photo-album-plus'));
|
795 |
-
$vals = array('graphic', 'numeric', 'likes');
|
796 |
-
$postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
|
797 |
-
$html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
|
798 |
-
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
799 |
-
|
800 |
-
$name = __('Rating size', 'wp-photo-album-plus');
|
801 |
-
$desc = __('Select the number of voting stars.', 'wp-photo-album-plus');
|
802 |
-
$help = '';
|
803 |
-
$slug = 'wppa_rating_max';
|
804 |
-
$options = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
|
805 |
-
$values = array('5', '10', '1');
|
806 |
-
$html = wppa_select($slug, $options, $values);
|
807 |
-
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
808 |
-
|
809 |
-
$name = __('Display precision', 'wp-photo-album-plus');
|
810 |
-
$desc = __('Select the desired rating display precision.', 'wp-photo-album-plus');
|
811 |
-
$help = '';
|
812 |
-
$slug = 'wppa_rating_prec';
|
813 |
-
$options = 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'));
|
814 |
-
$values = array('1', '2', '3', '4');
|
815 |
-
$html = wppa_select($slug, $options, $values);
|
816 |
-
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
817 |
-
|
818 |
-
$name = __('Rating space', 'wp-photo-album-plus');
|
819 |
-
$desc = __('Space between avg and my rating stars', 'wp-photo-album-plus');
|
820 |
-
$help = '';
|
821 |
-
$slug = 'wppa_ratspacing';
|
822 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
823 |
-
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
824 |
-
|
825 |
-
$name = __('Show rating count', 'wp-photo-album-plus');
|
826 |
-
$desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus');
|
827 |
-
$help = __('If checked, the number of votes is displayed along with average rating displays.', 'wp-photo-album-plus');
|
828 |
-
$slug = 'wppa_show_rating_count';
|
829 |
-
$html = wppa_checkbox($slug);
|
830 |
-
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
831 |
-
}
|
832 |
-
wppa_setting_box_footer_new();
|
833 |
-
|
834 |
-
wppa_setting_box_header_new('users');
|
835 |
-
{
|
836 |
-
$name = __('User upload Photos', 'wp-photo-album-plus');
|
837 |
-
$desc = __('Enable frontend upload.', 'wp-photo-album-plus');
|
838 |
-
$help = '';
|
839 |
-
$slug = '';
|
840 |
-
$html = '<input type="checkbox" checked disabled >';
|
841 |
-
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
842 |
-
|
843 |
-
$name = __('User upload Video', 'wp-photo-album-plus');
|
844 |
-
$desc = __('Enable frontend upload of video.', 'wp-photo-album-plus');
|
845 |
-
$help = '';
|
846 |
-
$slug = 'wppa_user_upload_video_on';
|
847 |
-
$html = wppa_checkbox($slug);
|
848 |
-
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'enable_video' ));
|
849 |
-
|
850 |
-
$name = __('User upload Audio', 'wp-photo-album-plus');
|
851 |
-
$desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus');
|
852 |
-
$help = '';
|
853 |
-
$slug = 'wppa_user_upload_audio_on';
|
854 |
-
$html = wppa_checkbox($slug);
|
855 |
-
$clas = '';
|
856 |
-
$tags = 'access,upload,audio';
|
857 |
-
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_audio' ));
|
858 |
-
|
859 |
-
$name = __('User upload login', 'wp-photo-album-plus');
|
860 |
-
$desc = __('Frontend upload requires the user is logged in.', 'wp-photo-album-plus');
|
861 |
-
$help = '';
|
862 |
-
$slug = 'wppa_user_upload_login';
|
863 |
-
$onch = 'wppaSlave(this,"wppa_user_opload_roles")';
|
864 |
-
$html = wppa_checkbox($slug, $onch);
|
865 |
-
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
866 |
-
|
867 |
-
$name = __('User upload roles', 'wp-photo-album-plus');
|
868 |
-
$desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus');
|
869 |
-
$help = '';
|
870 |
-
$slug = 'wppa_user_opload_roles';
|
871 |
-
$roles = $wp_roles->roles;
|
872 |
-
$opts = array();
|
873 |
-
$vals = array();
|
874 |
-
$opts[] = '-- '.__('Not limited', 'wp-photo-album-plus').' --';
|
875 |
-
$vals[] = '';
|
876 |
-
foreach (array_keys($roles) as $key) {
|
877 |
-
$role = $roles[$key];
|
878 |
-
$rolename = translate_user_role( $role['name'] );
|
879 |
-
$opts[] = $rolename;
|
880 |
-
$vals[] = $key;
|
881 |
-
}
|
882 |
-
$onch = '';
|
883 |
-
$html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
|
884 |
-
wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_switch( 'user_upload_login' ) );
|
885 |
-
}
|
886 |
-
wppa_setting_box_footer_new();
|
887 |
-
|
888 |
-
wppa_setting_box_header_new('email');
|
889 |
-
{
|
890 |
-
$name = __('Mail on new album', 'wp-photo-album-plus');
|
891 |
-
$desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus');
|
892 |
-
$help = '';
|
893 |
-
$slug = 'wppa_newalbumnotify';
|
894 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
|
895 |
-
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
896 |
-
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
897 |
-
|
898 |
-
$name = __('Mail on upload', 'wp-photo-album-plus');
|
899 |
-
$desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus');
|
900 |
-
$help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
|
901 |
-
$slug = 'wppa_feuploadnotify';
|
902 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
|
903 |
-
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
904 |
-
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
905 |
-
|
906 |
-
$name = __('Mail on comment', 'wp-photo-album-plus');
|
907 |
-
$desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus');
|
908 |
-
$help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus');
|
909 |
-
$help .= '<br />' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus');
|
910 |
-
$slug1 = 'wppa_commentnotify';
|
911 |
-
$slug2 = 'wppa_commentnotify_limit';
|
912 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
|
913 |
-
$html = wppa_checkbox($slug1) . '<span style="float:left" > ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . ' </span>' .
|
914 |
-
wppa_checkbox($slug2) . '<span style="float:left" > ' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
|
915 |
-
wppa_setting_new($slug1, '3', $name, $desc, $html, $help);
|
916 |
-
|
917 |
-
$name = __('Mail on previous comment', 'wp-photo-album-plus');
|
918 |
-
$desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus');
|
919 |
-
$help = '';
|
920 |
-
$slug = 'wppa_commentprevious';
|
921 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
|
922 |
-
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
923 |
-
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
924 |
-
|
925 |
-
$name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
|
926 |
-
$desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus');
|
927 |
-
$help = '';
|
928 |
-
$slug = 'wppa_moderatephoto';
|
929 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
|
930 |
-
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
931 |
-
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
932 |
-
|
933 |
-
$name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
|
934 |
-
$desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus');
|
935 |
-
$help = '';
|
936 |
-
$slug = 'wppa_moderatecomment';
|
937 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
|
938 |
-
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
939 |
-
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
940 |
-
|
941 |
-
$name = __('Mail on approve photo', 'wp-photo-album-plus');
|
942 |
-
$desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
|
943 |
-
$help = '';
|
944 |
-
$slug = 'wppa_photoapproved';
|
945 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
|
946 |
-
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
947 |
-
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
948 |
-
|
949 |
-
$name = __('Mail on approve comment', 'wp-photo-album-plus');
|
950 |
-
$desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus');
|
951 |
-
$help = '';
|
952 |
-
$slug = 'wppa_commentapproved';
|
953 |
-
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
|
954 |
-
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
955 |
-
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
956 |
-
|
957 |
-
$name = __('From site', 'wp-photo-album-plus');
|
958 |
-
$desc = __('Enter the subject header', 'wp-photo-album-plus');
|
959 |
-
$help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace(''', '', get_bloginfo('name') ).']');
|
960 |
-
$slug = 'wppa_email_from_site';
|
961 |
-
$html = wppa_input($slug,'90%');
|
962 |
-
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
963 |
-
|
964 |
-
$name = __('From email', 'wp-photo-album-plus');
|
965 |
-
$desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
|
966 |
-
$help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br />' .
|
967 |
-
__('Make sure this email address exists.', 'wp-photo-album-plus');
|
968 |
-
$slug = 'wppa_email_from_email';
|
969 |
-
$html = wppa_input($slug,'90%');
|
970 |
-
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
971 |
-
|
972 |
-
$name = __( 'No admin email', 'wp-photo-album-plus' );
|
973 |
-
$desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
|
974 |
-
$help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
|
975 |
-
$slug = 'wppa_void_admin_email';
|
976 |
-
$html = wppa_checkbox( $slug );
|
977 |
-
wppa_setting_new($slug, '97', $name, $desc, $html, $help);
|
978 |
-
|
979 |
-
$name = __( 'Email policy', 'wp-photo-album-plus' );
|
980 |
-
$desc = __( 'Select either "opt-in" or "opt-out"', 'wp-photo-album-plus' );
|
981 |
-
$help = __( 'If you select "opt-in", use the "Notify Me" widget to enable the users to subscribe to emails', 'wp-photo-album-plus' );
|
982 |
-
$slug = 'wppa_mailinglist_policy';
|
983 |
-
$opts = array( 'opt-in', 'opt-out' );
|
984 |
-
$vals = array( 'opt-in', 'opt-out' );
|
985 |
-
$html = wppa_select( $slug, $opts, $vals );
|
986 |
-
wppa_setting_new($slug, '98', $name, $desc, $html, $help);
|
987 |
-
|
988 |
-
$name = __( 'Email callback url', 'wp-photo-album-plus' );
|
989 |
-
$desc = __( 'The link in emails will point to', 'wp-photo-album-plus' );
|
990 |
-
$help = __( 'Recommendation', 'wp-photo-album-plus' ) . ': ' .
|
991 |
-
__( 'Create a page with shortcode', 'wp-photo-album-plus' ) .
|
992 |
-
'<b>[wppa type="landing"]</b>. ';
|
993 |
-
$slug = 'wppa_mailinglist_callback_url';
|
994 |
-
$html = wppa_input($slug, '90%');
|
995 |
-
wppa_setting_new($slug, '99', $name, $desc, $html, $help);
|
996 |
-
|
997 |
-
$name = __('Retry failed mails', 'wp-photo-album-plus');
|
998 |
-
$desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
|
999 |
-
$help = (__('Retries occur at the background every hour', 'wp-photo-album-plus'));
|
1000 |
-
$slug = 'wppa_retry_mails';
|
1001 |
-
$html = wppa_number($slug, '1', '24');
|
1002 |
-
wppa_setting_new($slug, '100', $name, $desc, $html, $help);
|
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 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
__('plus', 'wp-photo-album-plus'),
|
1039 |
-
__('basic', 'wp-photo-album-plus'),
|
1040 |
-
);
|
1041 |
-
$vals = array( 'none',
|
1042 |
-
'bronze',
|
1043 |
-
'silver',
|
1044 |
-
'gold',
|
1045 |
-
'plus',
|
1046 |
-
'basic'
|
1047 |
-
);
|
1048 |
-
|
1049 |
-
foreach (array_keys($roles) as $key) {
|
1050 |
-
$role = $roles[$key];
|
1051 |
-
$rolename = translate_user_role( $role['name'] );
|
1052 |
Â
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
$
|
Â
|
|
Â
|
|
1057 |
Â
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1067 |
Â
|
1068 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1069 |
Â
|
1070 |
-
|
1071 |
-
|
1072 |
-
}
|
1073 |
-
wppa_setting_box_footer_new();
|
1074 |
-
|
1075 |
-
wppa_setting_box_header_new('advanced');
|
1076 |
-
{
|
1077 |
-
$name = __('Save EXIF data', 'wp-photo-album-plus');
|
1078 |
-
$desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
|
1079 |
-
$help = (__('You will need this if you enabled the display of exif data in Table II-B18 or if you use it in the photo descriptions.', 'wp-photo-album-plus'));
|
1080 |
-
$slug = 'wppa_save_exif';
|
1081 |
-
$onch = 'wppaSlave(this,"exif")';
|
1082 |
-
$html = wppa_checkbox($slug, $onch);
|
1083 |
-
wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
1084 |
-
|
1085 |
-
$name = __('Save IPTC data', 'wp-photo-album-plus');
|
1086 |
-
$desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
|
1087 |
-
$help = (__('You will need this if you enabled the display of iptc data in Table II-B17 or if you use it in the photo descriptions.', 'wp-photo-album-plus'));
|
1088 |
-
$slug = 'wppa_save_iptc';
|
1089 |
-
$onch = 'wppaSlave(this,"iptc")';
|
1090 |
-
$html = wppa_checkbox($slug, $onch);
|
1091 |
-
wppa_setting_new($slug, '7', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
1092 |
Â
|
1093 |
-
|
1094 |
-
wppa_setting_box_footer_new();
|
1095 |
-
|
1096 |
-
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
1097 |
-
__('Tag', 'wp-photo-album-plus') => 'auto;',
|
1098 |
-
__('Brand', 'wp-photo-album-plus') => 'auto;',
|
1099 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
1100 |
-
__('Status', 'wp-photo-album-plus') => 'auto;',
|
1101 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
1102 |
-
) ;
|
1103 |
-
wppa_setting_box_header_new( 'exif', $coldef );
|
1104 |
-
{
|
1105 |
-
$labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_exif
|
1106 |
-
WHERE photo = '0'
|
1107 |
-
ORDER BY tag", ARRAY_A );
|
1108 |
-
|
1109 |
-
if ( is_array( $labels ) ) {
|
1110 |
-
$i = '1';
|
1111 |
-
foreach ( $labels as $label ) {
|
1112 |
-
$name = htmlspecialchars( $label['tag'] );
|
1113 |
-
|
1114 |
-
$desc = '';
|
1115 |
-
foreach ( $wppa_supported_camara_brands as $brand ) {
|
1116 |
-
$lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
|
1117 |
-
if ( $lbl ) {
|
1118 |
-
$desc .= '<br />' . $brand;
|
1119 |
-
}
|
1120 |
-
}
|
1121 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1122 |
Â
$help = '';
|
1123 |
-
$
|
1124 |
-
$
|
1125 |
-
|
1126 |
-
$
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1133 |
Â
|
1134 |
-
$
|
1135 |
-
$
|
1136 |
-
$
|
1137 |
-
$
|
1138 |
-
|
1139 |
-
$
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
$
|
1161 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1162 |
Â
$help = '';
|
1163 |
-
$
|
1164 |
-
$
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
$
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1171 |
Â
}
|
1172 |
-
}
|
1173 |
-
}
|
1174 |
-
wppa_setting_box_footer_new();
|
1175 |
Â
|
1176 |
-
|
1177 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1178 |
Â
|
1179 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1180 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1181 |
Â
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
'access' => __('Access', 'wp-photo-album-plus'),
|
1189 |
-
'album' => __('Albums', 'wp-photo-album-plus'),
|
1190 |
-
'audio' => __('Audio', 'wp-photo-album-plus'),
|
1191 |
-
'comment' => __('Comments', 'wp-photo-album-plus'),
|
1192 |
-
'document' => __('Documents', 'wp-photo-album-plus'),
|
1193 |
-
'count' => __('Counts', 'wp-photo-album-plus'),
|
1194 |
-
'cover' => __('Covers', 'wp-photo-album-plus'),
|
1195 |
-
'import' => __('Import', 'wp-photo-album-plus'),
|
1196 |
-
'layout' => __('Layout', 'wp-photo-album-plus'),
|
1197 |
-
'lightbox' => __('Lightbox', 'wp-photo-album-plus'),
|
1198 |
-
'link' => __('Links', 'wp-photo-album-plus'),
|
1199 |
-
'mail' => __('Mail', 'wp-photo-album-plus'),
|
1200 |
-
'meta' => __('Metadata', 'wp-photo-album-plus'),
|
1201 |
-
'navi' => __('Navigation', 'wp-photo-album-plus'),
|
1202 |
-
'page' => __('Page', 'wp-photo-album-plus'),
|
1203 |
-
'rating' => __('Rating', 'wp-photo-album-plus'),
|
1204 |
-
'search' => __('Search', 'wp-photo-album-plus'),
|
1205 |
-
'size' => __('Sizes', 'wp-photo-album-plus'),
|
1206 |
-
'slide' => __('Slideshows', 'wp-photo-album-plus'),
|
1207 |
-
'sm' => __('Social Media', 'wp-photo-album-plus'),
|
1208 |
-
'thumb' => __('Thumbnails', 'wp-photo-album-plus'),
|
1209 |
-
'upload' => __('Uploads', 'wp-photo-album-plus'),
|
1210 |
-
'widget' => __('Widgets', 'wp-photo-album-plus'),
|
1211 |
-
'water' => __('Watermark', 'wp-photo-album-plus'),
|
1212 |
-
'video' => __('Video', 'wp-photo-album-plus')
|
1213 |
-
);
|
1214 |
-
|
1215 |
-
asort( $wppa_tags );
|
1216 |
-
|
1217 |
-
?>
|
1218 |
-
<p>
|
1219 |
-
<?php _e('Click on the banner of a (sub)table to open/close it, or', 'wp-photo-album-plus') ?>
|
1220 |
-
<br />
|
1221 |
-
<?php _e('Show settings related to:', 'wp-photo-album-plus') ?>
|
1222 |
-
<select id="wppa-quick-selbox-1" onchange="wppaQuickSel()">
|
1223 |
-
<?php foreach( array_keys($wppa_tags) as $key ) { ?>
|
1224 |
-
<option value="<?php echo $key ?>"><?php echo $wppa_tags[$key] ?></option>
|
1225 |
-
<?php } ?>
|
1226 |
-
</select>
|
1227 |
-
<?php _e('and ( optionally ) to:', 'wp-photo-album-plus') ?>
|
1228 |
-
<select id="wppa-quick-selbox-2" onchange="wppaQuickSel()">
|
1229 |
-
<?php foreach( array_keys($wppa_tags) as $key ) { ?>
|
1230 |
-
<option value="<?php echo $key ?>"><?php echo $wppa_tags[$key] ?></option>
|
1231 |
-
<?php } ?>
|
1232 |
-
</select>
|
1233 |
-
</p>
|
1234 |
-
|
1235 |
-
<div
|
1236 |
-
id="wppa-modal-container"
|
1237 |
-
style="width:100%;padding:0;"
|
1238 |
-
>
|
1239 |
-
</div>
|
1240 |
Â
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
<input type="hidden" name="wppa-key" id="wppa-key" value="" />
|
1248 |
-
<input type="hidden" name="wppa-sub" id="wppa-sub" value="" />
|
1249 |
-
<?php if ( wppa_get_option('wppa_i_done') == 'done' ) { ?>
|
1250 |
-
<a class="-wppa-quick" onclick="jQuery('.wppa-quick').css('display','inline');jQuery('.-wppa-quick').css('display','none')" ><?php _e('Quick setup', 'wp-photo-album-plus') ?></a>
|
1251 |
-
<?php } else { ?>
|
1252 |
-
<input type="button" id="wppa-quick" style="background-color:yellow;" class="-wppa-quick" onclick="jQuery('.wppa-quick').css('display','inline');jQuery('.-wppa-quick').css('display','none')" value="<?php _e('Do a quick initial setup', 'wp-photo-album-plus') ?>" />
|
1253 |
-
<input type="button" style="display:none;" class="wppa-quick" onclick="jQuery('.-wppa-quick').css('display','inline');jQuery('.wppa-quick').css('display','none')" value="<?php _e('Close quick setup', 'wp-photo-album-plus') ?>" />
|
1254 |
-
<?php } ?>
|
1255 |
-
|
1256 |
-
<input type="button"
|
1257 |
-
style="float:right;"
|
1258 |
-
value="<?php _e( 'Show all settings and helptext', 'wp-photo-album-plus' ) ?> "
|
1259 |
-
class="button-secundary"
|
1260 |
-
onclick="jQuery('.wppa-setting-help').css('display','');
|
1261 |
-
jQuery( '.wppa-none' ).removeClass('wppa-none');
|
1262 |
-
for( i=1;i<15;i++ ) { jQuery('#wppa_table_'+i).css('display', 'inline');}
|
1263 |
-
jQuery( '.wppa-setting' ).css('display','');
|
1264 |
-
jQuery( '.wppa-h' ).css( 'display', 'none' );
|
1265 |
-
jQuery( '.wppa-video' ).css( 'display', '' );
|
1266 |
-
"
|
1267 |
-
/>
|
1268 |
Â
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
if ( wppaButtonColor == '#7F7' ) {
|
1276 |
-
wppaButtonColor = '#F77';
|
1277 |
-
}
|
1278 |
-
else if ( wppaButtonColor == '#F77' ) {
|
1279 |
-
wppaButtonColor = '#FF7';
|
1280 |
-
}
|
1281 |
-
else if ( wppaButtonColor == '#FF7') {
|
1282 |
-
wppaButtonColor = '#7F7';
|
1283 |
-
}
|
1284 |
-
jQuery( '#wppa-quick' ).css( 'background-color', wppaButtonColor );
|
1285 |
-
if ( wppaButtonColor == '#7F7' ) {
|
1286 |
-
setTimeout( 'wppaBlinkButton()', 1500 );
|
1287 |
-
}
|
1288 |
-
else {
|
1289 |
-
setTimeout( 'wppaBlinkButton()', 500 );
|
1290 |
-
}
|
1291 |
-
}
|
1292 |
-
wppaBlinkButton();
|
1293 |
Â
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
$options_page = false;
|
1301 |
-
$options_page_post = false;
|
1302 |
-
$values_page = false;
|
1303 |
-
$values_page_post = false;
|
1304 |
-
|
1305 |
-
// First
|
1306 |
-
$options_page_post[] = __('--- the same page or post ---', 'wp-photo-album-plus');
|
1307 |
-
$values_page_post[] = '0';
|
1308 |
-
$options_page[] = __('--- please select a page ---', 'wp-photo-album-plus');
|
1309 |
-
$values_page[] = '0';
|
1310 |
-
|
1311 |
-
// Pages if any
|
1312 |
-
$pages = $wpdb->get_results( "SELECT ID, post_title, post_content, post_parent FROM $wpdb->posts
|
1313 |
-
WHERE post_type = 'page'
|
1314 |
-
AND post_status = 'publish'
|
1315 |
-
ORDER BY post_title", ARRAY_A );
|
1316 |
-
if ( $pages ) {
|
1317 |
-
|
1318 |
-
// Translate
|
1319 |
-
foreach ( array_keys($pages) as $index ) {
|
1320 |
-
$pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
|
1321 |
-
}
|
1322 |
Â
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1337 |
Â
}
|
1338 |
-
}
|
1339 |
-
else {
|
1340 |
-
$options_page[] = __('--- No page to link to (yet) ---', 'wp-photo-album-plus');
|
1341 |
-
$values_page[] = '0';
|
1342 |
-
}
|
1343 |
Â
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1372 |
Â
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1494 |
Â
|
Â
|
|
1495 |
Â
|
1496 |
-
|
1497 |
-
$desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus');
|
1498 |
-
$help = (__('When using shortcodes like [wppa type="album" album="#related,desc,23"], the maximum number is 23. Omitting the number gives the maximum of this setting.', 'wp-photo-album-plus'));
|
1499 |
-
$slug = 'wppa_related_count';
|
1500 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
1501 |
-
$clas = '';
|
1502 |
-
$tags = 'count';
|
1503 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
1504 |
Â
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
$tags = 'count';
|
1512 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
1513 |
-
|
1514 |
-
$name = __('Max file name length', 'wp-photo-album-plus');
|
1515 |
-
$desc = __('The max length of a photo file name excluding the extension.', 'wp-photo-album-plus');
|
1516 |
-
$help = (__('A setting of 0 means: unlimited.', 'wp-photo-album-plus'));
|
1517 |
-
$slug = 'wppa_max_filename_length';
|
1518 |
-
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
|
1519 |
-
$clas = '';
|
1520 |
-
$tags = 'size,system';
|
1521 |
-
wppa_setting($slug, '10.1', $name, $desc, $html, $help, $clas, $tags);
|
1522 |
-
|
1523 |
-
$name = __('Max photo name length', 'wp-photo-album-plus');
|
1524 |
-
$desc = __('The max length of a photo name.', 'wp-photo-album-plus');
|
1525 |
-
$help = (__('A setting of 0 means: unlimited.', 'wp-photo-album-plus'));
|
1526 |
-
$slug = 'wppa_max_photoname_length';
|
1527 |
-
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
|
1528 |
-
$clas = '';
|
1529 |
-
$tags = 'size,system';
|
1530 |
-
wppa_setting($slug, '10.2', $name, $desc, $html, $help, $clas, $tags);
|
1531 |
-
|
1532 |
-
$name = __('Sticky header size', 'wp-photo-album-plus');
|
1533 |
-
$desc = __('The height of your sticky header.', 'wp-photo-album-plus');
|
1534 |
-
$help = (__('If your theme has a sticky header, enter its height here.', 'wp-photo-album-plus'));
|
1535 |
-
$slug = 'wppa_sticky_header_size';
|
1536 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1537 |
-
$clas = '';
|
1538 |
-
$tags = 'size,system';
|
1539 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
1540 |
-
|
1541 |
-
$name = __('Area max size', 'wp-photo-album-plus');
|
1542 |
-
$desc = __('The max height of the thumbnail and album cover areas', 'wp-photo-album-plus');
|
1543 |
-
$help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus');
|
1544 |
-
$slug = 'wppa_area_size';
|
1545 |
-
$html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus'));
|
1546 |
-
$clas = '';
|
1547 |
-
$tags = 'thumb,system';
|
1548 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
1549 |
Â
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
$tags = 'thumb,system';
|
1557 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
1558 |
Â
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
$help .= '<br />'.(__('This is usually the same as the Column Width (Table I-A1), but it may differ.', 'wp-photo-album-plus'));
|
1566 |
-
$slug = 'wppa_fullsize';
|
1567 |
-
$onchange = 'wppaCheckFullHalign()';
|
1568 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'), $onchange);
|
1569 |
-
$clas = '';
|
1570 |
-
$tags = 'size,slide';
|
1571 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
1572 |
-
|
1573 |
-
$name = __('Maximum Height', 'wp-photo-album-plus');
|
1574 |
-
$desc = __('The maximum height photos will be displayed in slideshows.', 'wp-photo-album-plus');
|
1575 |
-
$help = (__('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus'));
|
1576 |
-
$help .= '<br />'.(__('This setting defines the height of the space reserved for photos in slideshows.', 'wp-photo-album-plus'));
|
1577 |
-
$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'));
|
1578 |
-
$slug = 'wppa_maxheight';
|
1579 |
-
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
1580 |
-
$clas = '';
|
1581 |
-
$tags = 'size,slide';
|
1582 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
1583 |
-
|
1584 |
-
$name = __('Stretch to fit', 'wp-photo-album-plus');
|
1585 |
-
$desc = __('Stretch photos that are too small.', 'wp-photo-album-plus');
|
1586 |
-
$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'));
|
1587 |
-
$slug = 'wppa_enlarge';
|
1588 |
-
$html = wppa_checkbox($slug);
|
1589 |
-
$clas = '';
|
1590 |
-
$tags = 'size,system';
|
1591 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
1592 |
-
|
1593 |
-
$name = __('Slideshow borderwidth', 'wp-photo-album-plus');
|
1594 |
-
$desc = __('The width of the border around slideshow images.', 'wp-photo-album-plus');
|
1595 |
-
$help = (__('The border is made by the image background being larger than the image itsself (padding).', 'wp-photo-album-plus'));
|
1596 |
-
$help .= '<br />'.(__('Additionally there may be a one pixel outline of a different color. See Table III-A2.', 'wp-photo-album-plus'));
|
1597 |
-
$help .= '<br />'.(__('The number you enter here is exclusive the one pixel outline.', 'wp-photo-album-plus'));
|
1598 |
-
$help .= '<br />'.(__('If you leave this entry empty, there will be no outline either.', 'wp-photo-album-plus'));
|
1599 |
-
$slug = 'wppa_fullimage_border_width';
|
1600 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1601 |
-
$clas = '';
|
1602 |
-
$tags = 'size,slide,layout';
|
1603 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
1604 |
-
|
1605 |
-
$name = __('Numbar Max', 'wp-photo-album-plus');
|
1606 |
-
$desc = __('Maximum numbers to display.', 'wp-photo-album-plus');
|
1607 |
-
$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'));
|
1608 |
-
$slug = 'wppa_numbar_max';
|
1609 |
-
$html = wppa_input($slug, '40px', '', __('numbers', 'wp-photo-album-plus'));
|
1610 |
-
$clas = 'wppa_numbar';
|
1611 |
-
$tags = 'count,slide,navi';
|
1612 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
1613 |
-
|
1614 |
-
$name = __('Share button size', 'wp-photo-album-plus');
|
1615 |
-
$desc = __('The size of the social media icons in the Share box', 'wp-photo-album-plus');
|
1616 |
-
$help = '';
|
1617 |
-
$slug = 'wppa_share_size';
|
1618 |
-
$opts = array('16 x 16', '20 x 20', '32 x 32');
|
1619 |
-
$vals = array('16', '20', '32');
|
1620 |
-
$html = wppa_select($slug, $opts, $vals);
|
1621 |
-
$clas = 'wppa_share';
|
1622 |
-
$tags = 'size,sm,slide';
|
1623 |
-
wppa_setting($slug, '6', $name, $desc, $html.__('pixels', 'wp-photo-album-plus'), $help, $clas, $tags);
|
1624 |
-
|
1625 |
-
$name = __('Mini Threshold', 'wp-photo-album-plus');
|
1626 |
-
$desc = __('Show mini text at slideshow smaller than.', 'wp-photo-album-plus');
|
1627 |
-
$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'));
|
1628 |
-
$help .= '<br />'.(__('Special use in responsive themes.', 'wp-photo-album-plus'));
|
1629 |
-
$slug = 'wppa_mini_treshold';
|
1630 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1631 |
-
$clas = '';
|
1632 |
-
$tags = 'size,slide,layout';
|
1633 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
1634 |
Â
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
1643 |
-
|
1644 |
-
$name = __('Filmstrip Thumbnail Size', 'wp-photo-album-plus');
|
1645 |
-
$desc = __('The size of the filmstrip images.', 'wp-photo-album-plus');
|
1646 |
-
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
1647 |
-
$help .= '<br />'.(__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
1648 |
-
$slug = 'wppa_film_thumbsize';
|
1649 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1650 |
-
$clas = '';
|
1651 |
-
$tags = 'size,slide,layout';
|
1652 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
1653 |
Â
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
$tags = 'size,thumb';
|
1673 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
1674 |
-
|
1675 |
-
$name = __('Thumbnail Size Alt', 'wp-photo-album-plus');
|
1676 |
-
$desc = __('The alternative size of the thumbnail images.', 'wp-photo-album-plus');
|
1677 |
-
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
1678 |
-
$help .= '<br />'.(__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
1679 |
-
$slug = 'wppa_thumbsize_alt';
|
1680 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1681 |
-
$clas = 'tt_normal tt_masonry';
|
1682 |
-
$tags = 'size,thumb';
|
1683 |
-
wppa_setting($slug, '1a', $name, $desc, $html, $help, $clas, $tags);
|
1684 |
-
|
1685 |
-
$name = __('Thumbnail Aspect', 'wp-photo-album-plus');
|
1686 |
-
$desc = __('Aspect ration of thumbnail image', 'wp-photo-album-plus');
|
1687 |
-
$help = '';
|
1688 |
-
$slug = 'wppa_thumb_aspect';
|
1689 |
-
$options = array(
|
1690 |
-
__('--- same as fullsize ---', 'wp-photo-album-plus'),
|
1691 |
-
__('--- square clipped ---', 'wp-photo-album-plus'),
|
1692 |
-
__('4:5 landscape clipped', 'wp-photo-album-plus'),
|
1693 |
-
__('3:4 landscape clipped', 'wp-photo-album-plus'),
|
1694 |
-
__('2:3 landscape clipped', 'wp-photo-album-plus'),
|
1695 |
-
__('5:8 landscape clipped', 'wp-photo-album-plus'),
|
1696 |
-
__('9:16 landscape clipped', 'wp-photo-album-plus'),
|
1697 |
-
__('1:2 landscape clipped', 'wp-photo-album-plus'),
|
1698 |
-
__('--- square padded ---', 'wp-photo-album-plus'),
|
1699 |
-
__('4:5 landscape padded', 'wp-photo-album-plus'),
|
1700 |
-
__('3:4 landscape padded', 'wp-photo-album-plus'),
|
1701 |
-
__('2:3 landscape padded', 'wp-photo-album-plus'),
|
1702 |
-
__('5:8 landscape padded', 'wp-photo-album-plus'),
|
1703 |
-
__('9:16 landscape padded', 'wp-photo-album-plus'),
|
1704 |
-
__('1:2 landscape padded', 'wp-photo-album-plus')
|
1705 |
-
);
|
1706 |
-
$values = array(
|
1707 |
-
'0:0:none',
|
1708 |
-
'1:1:clip',
|
1709 |
-
'4:5:clip',
|
1710 |
-
'3:4:clip',
|
1711 |
-
'2:3:clip',
|
1712 |
-
'5:8:clip',
|
1713 |
-
'9:16:clip',
|
1714 |
-
'1:2:clip',
|
1715 |
-
'1:1:padd',
|
1716 |
-
'4:5:padd',
|
1717 |
-
'3:4:padd',
|
1718 |
-
'2:3:padd',
|
1719 |
-
'5:8:padd',
|
1720 |
-
'9:16:padd',
|
1721 |
-
'1:2:padd'
|
1722 |
-
);
|
1723 |
-
$html = wppa_select($slug, $options, $values);
|
1724 |
-
$clas = 'tt_normal tt_masonry';
|
1725 |
-
$tags = 'size,thumb,layout';
|
1726 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
1727 |
-
|
1728 |
-
$name = __('Thumbframe width', 'wp-photo-album-plus');
|
1729 |
-
$desc = __('The width of the thumbnail frame.', 'wp-photo-album-plus');
|
1730 |
-
$help = (__('Set the width of the thumbnail frame.', 'wp-photo-album-plus'));
|
1731 |
-
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
1732 |
-
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
1733 |
-
$slug = 'wppa_tf_width';
|
1734 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
1735 |
-
$clas = 'tt_normal';
|
1736 |
-
$tags = 'size,thumb,layout';
|
1737 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
1738 |
-
|
1739 |
-
$name = __('Thumbframe width Alt', 'wp-photo-album-plus');
|
1740 |
-
$desc = __('The width of the alternative thumbnail frame.', 'wp-photo-album-plus');
|
1741 |
-
$help = (__('Set the width of the thumbnail frame.', 'wp-photo-album-plus'));
|
1742 |
-
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
1743 |
-
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
1744 |
-
$slug = 'wppa_tf_width_alt';
|
1745 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
1746 |
-
$clas = 'tt_normal';
|
1747 |
-
$tags = 'size,thumb,layout';
|
1748 |
-
wppa_setting($slug, '3a', $name, $desc, $html, $help, $clas, $tags);
|
1749 |
-
|
1750 |
-
$name = __('Thumbframe height', 'wp-photo-album-plus');
|
1751 |
-
$desc = __('The height of the thumbnail frame.', 'wp-photo-album-plus');
|
1752 |
-
$help = (__('Set the height of the thumbnail frame.', 'wp-photo-album-plus'));
|
1753 |
-
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
1754 |
-
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
1755 |
-
$slug = 'wppa_tf_height';
|
1756 |
-
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
1757 |
-
$clas = 'tt_normal';
|
1758 |
-
$tags = 'size,thumb,layout';
|
1759 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
1760 |
-
|
1761 |
-
$name = __('Thumbframe height Alt', 'wp-photo-album-plus');
|
1762 |
-
$desc = __('The height of the alternative thumbnail frame.', 'wp-photo-album-plus');
|
1763 |
-
$help = (__('Set the height of the thumbnail frame.', 'wp-photo-album-plus'));
|
1764 |
-
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
1765 |
-
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
1766 |
-
$slug = 'wppa_tf_height_alt';
|
1767 |
-
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
1768 |
-
$clas = 'tt_normal';
|
1769 |
-
$tags = 'size,thumb,layout';
|
1770 |
-
wppa_setting($slug, '4a', $name, $desc, $html, $help, $clas, $tags);
|
1771 |
-
|
1772 |
-
$name = __('Thumbnail spacing', 'wp-photo-album-plus');
|
1773 |
-
$desc = __('The spacing between adjacent thumbnail frames.', 'wp-photo-album-plus');
|
1774 |
-
$help = (__('Set the minimal spacing between the adjacent thumbnail frames', 'wp-photo-album-plus'));
|
1775 |
-
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
1776 |
-
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
1777 |
-
$slug = 'wppa_tn_margin';
|
1778 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1779 |
-
$clas = 'tt_normal tt_masonry';
|
1780 |
-
$tags = 'size,thumb,layout';
|
1781 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
1782 |
-
|
1783 |
-
$name = __('Auto spacing', 'wp-photo-album-plus');
|
1784 |
-
$desc = __('Space the thumbnail frames automatic.', 'wp-photo-album-plus');
|
1785 |
-
$help = (__('If you check this box, the thumbnail images will be evenly distributed over the available width.', 'wp-photo-album-plus'));
|
1786 |
-
$help .= '<br />'.(__('In this case, the thumbnail spacing value (setting I-9) will be regarded as a minimum value.', 'wp-photo-album-plus'));
|
1787 |
-
$slug = 'wppa_thumb_auto';
|
1788 |
-
$html = wppa_checkbox($slug);
|
1789 |
-
$clas = 'tt_normal';
|
1790 |
-
$tags = 'size,layout,thumb';
|
1791 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
1792 |
-
|
1793 |
-
$name = __('Page size', 'wp-photo-album-plus');
|
1794 |
-
$desc = __('Max number of thumbnails per page.', 'wp-photo-album-plus');
|
1795 |
-
$help = (__('Enter the maximum number of thumbnail images per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus'));
|
1796 |
-
$slug = 'wppa_thumb_page_size';
|
1797 |
-
$html = wppa_input($slug, '40px', '', __('thumbnails', 'wp-photo-album-plus'));
|
1798 |
-
$clas = 'tt_always';
|
1799 |
-
$tags = 'count,thumb,page';
|
1800 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
1801 |
-
|
1802 |
-
$name = __('Popup size', 'wp-photo-album-plus');
|
1803 |
-
$desc = __('The size of the thumbnail popup images.', 'wp-photo-album-plus');
|
1804 |
-
$help = (__('Enter the size of the popup images. This size should be larger than the thumbnail size.', 'wp-photo-album-plus'));
|
1805 |
-
$help .= '<br />'.(__('This size should also be at least the cover image size.', 'wp-photo-album-plus'));
|
1806 |
-
$help .= '<br />'.(__('Changing the popup size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
1807 |
-
$help .= '<br />'.(__('Although this setting has only visual effect if "Thumb popup" (Table IV-C8) is checked,', 'wp-photo-album-plus'));
|
1808 |
-
$help .= ' '.(__('the value must be right as it is the physical size of the thumbnail and coverphoto images.', 'wp-photo-album-plus'));
|
1809 |
-
$slug = 'wppa_popupsize';
|
1810 |
-
$clas = 'tt_normal tt_masonry';
|
1811 |
-
$tags = 'size,thumb';
|
1812 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1813 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
1814 |
-
|
1815 |
-
$name = __('Use thumbs if fit', 'wp-photo-album-plus');
|
1816 |
-
$desc = __('Use the thumbnail image files if they are large enough.', 'wp-photo-album-plus');
|
1817 |
-
$help = (__('This setting speeds up page loading for small photos.', 'wp-photo-album-plus'));
|
1818 |
-
$help .= '<br />'.(__('Do NOT use this when your thumbnails have a forced aspect ratio (when Table I-C2 is set to anything different from --- same as fullsize ---)', 'wp-photo-album-plus'));
|
1819 |
-
$slug = 'wppa_use_thumbs_if_fit';
|
1820 |
-
$html = wppa_checkbox($slug);
|
1821 |
-
$clas = '';
|
1822 |
-
$tags = 'thumb,system';
|
1823 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
1824 |
Â
|
1825 |
-
|
1826 |
-
|
1827 |
-
{
|
1828 |
-
$name = __('Max Cover width', 'wp-photo-album-plus');
|
1829 |
-
$desc = __('Maximum width for a album cover display.', 'wp-photo-album-plus');
|
1830 |
-
$help = (__('Display covers in 2 or more columns if the display area is wider than the given width.', 'wp-photo-album-plus'));
|
1831 |
-
$help .= '<br />'.(__('This also applies for \'thumbnails as covers\', and will NOT apply to single items.', 'wp-photo-album-plus'));
|
1832 |
-
$slug = 'wppa_max_cover_width';
|
1833 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1834 |
-
$clas = '';
|
1835 |
-
$tags = 'cover,album,layout,size';
|
1836 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
1837 |
-
|
1838 |
-
$name = __('Min Cover height', 'wp-photo-album-plus');
|
1839 |
-
$desc = __('Minimal height of an album cover.', 'wp-photo-album-plus');
|
1840 |
-
$help = (__('If you use this setting to make the albums the same height and you are not satisfied about the lay-out, try increasing the value in the next setting', 'wp-photo-album-plus'));
|
1841 |
-
$slug = 'wppa_cover_minheight';
|
1842 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1843 |
-
$clas = '';
|
1844 |
-
$tags = 'cover,album,layout,size';
|
1845 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
1846 |
-
|
1847 |
-
$name = __('Min Text frame height', 'wp-photo-album-plus');
|
1848 |
-
$desc = __('The minimal cover text frame height incl header.', 'wp-photo-album-plus');
|
1849 |
-
$help = (__('The height starting with the album title up to and including the view- and the slideshow- links.', 'wp-photo-album-plus'));
|
1850 |
-
$help .= '<br />'.(__('This setting enables you to give the album covers the same height while the title does not need to fit on one line.', 'wp-photo-album-plus'));
|
1851 |
-
$help .= '<br />'.(__('This is the recommended setting to line-up your covers!', 'wp-photo-album-plus'));
|
1852 |
-
$slug = 'wppa_head_and_text_frame_height';
|
1853 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1854 |
-
$clas = '';
|
1855 |
-
$tags = 'cover,album,size,layout';
|
1856 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
1857 |
-
|
1858 |
-
$name = __('Min Description height', 'wp-photo-album-plus');
|
1859 |
-
$desc = __('The minimal height of the album description text frame.', 'wp-photo-album-plus');
|
1860 |
-
$help = (__('The minimal height of the description field in an album cover display.', 'wp-photo-album-plus'));
|
1861 |
-
$help .= '<br />'.(__('This setting enables you to give the album covers the same height provided that the cover images are equally sized and the titles fit on one line.', 'wp-photo-album-plus'));
|
1862 |
-
$help .= '<br />'.(__('To force the coverphotos have equal heights, tick the box in Table I-D7.', 'wp-photo-album-plus'));
|
1863 |
-
$help .= '<br />'.(__('You may need this setting if changing the previous setting is not sufficient to line-up the covers.', 'wp-photo-album-plus'));
|
1864 |
-
$slug = 'wppa_text_frame_height';
|
1865 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1866 |
-
$clas = '';
|
1867 |
-
$tags = 'cover,album,size,layout';
|
1868 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
1869 |
Â
|
1870 |
-
|
1871 |
-
$desc = __('Check this box if you want a responsive coverphoto.', 'wp-photo-album-plus');
|
1872 |
-
$help = '';
|
1873 |
-
$slug = 'wppa_coverphoto_responsive';
|
1874 |
-
$clas = 'cvpr';
|
1875 |
-
$onch = 'wppaCheckCheck(\''.$slug.'\',\''.$clas.'\')';
|
1876 |
-
$html = wppa_checkbox($slug, $onch);
|
1877 |
-
$clas = '';
|
1878 |
-
$tags = 'cover,album,thumb,size';
|
1879 |
-
wppa_setting($slug, '5.0', $name, $desc, $html, $help, $clas, $tags);
|
1880 |
-
|
1881 |
-
$name = __('Coverphoto size', 'wp-photo-album-plus');
|
1882 |
-
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus');
|
1883 |
-
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
1884 |
-
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
1885 |
-
$slug = 'wppa_smallsize';
|
1886 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1887 |
-
$clas = '-cvpr';
|
1888 |
-
$tags = 'cover,album,thumb,size';
|
1889 |
-
wppa_setting($slug, '5.1a', $name, $desc, $html, $help, $clas, $tags);
|
1890 |
-
|
1891 |
-
$name = __('Coverphoto size', 'wp-photo-album-plus');
|
1892 |
-
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus');
|
1893 |
-
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
1894 |
-
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
1895 |
-
$slug = 'wppa_smallsize_percentage';
|
1896 |
-
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus'));
|
1897 |
-
$clas = 'cvpr';
|
1898 |
-
$tags = 'cover,album,thumb,size';
|
1899 |
-
wppa_setting($slug, '5.1b', $name, $desc, $html, $help, $clas, $tags);
|
1900 |
-
|
1901 |
-
$name = __('Coverphoto size multi', 'wp-photo-album-plus');
|
1902 |
-
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus');
|
1903 |
-
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
1904 |
-
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
1905 |
-
$slug = 'wppa_smallsize_multi';
|
1906 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1907 |
-
$clas = '-cvpr';
|
1908 |
-
$tags = 'cover,album,thumb,size';
|
1909 |
-
wppa_setting($slug, '6.1a', $name, $desc, $html, $help, $clas, $tags);
|
1910 |
-
|
1911 |
-
$name = __('Coverphoto size multi', 'wp-photo-album-plus');
|
1912 |
-
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus');
|
1913 |
-
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
1914 |
-
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
1915 |
-
$slug = 'wppa_smallsize_multi_percentage';
|
1916 |
-
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus'));
|
1917 |
-
$clas = 'cvpr';
|
1918 |
-
$tags = 'cover,album,thumb,size';
|
1919 |
-
wppa_setting($slug, '6.1b', $name, $desc, $html, $help, $clas, $tags);
|
1920 |
-
|
1921 |
-
$name = __('Size is height', 'wp-photo-album-plus');
|
1922 |
-
$desc = __('The size of the coverphoto is the height of it.', 'wp-photo-album-plus');
|
1923 |
-
$help = (__('If set: the previous setting is the height, if unset: the largest of width and height.', 'wp-photo-album-plus'));
|
1924 |
-
$help .= '<br />'.(__('This setting applies for coverphoto position top or bottom only (Table IV-D3).', 'wp-photo-album-plus'));
|
1925 |
-
$help .= '<br />'.(__('This makes it easyer to make the covers of equal height.', 'wp-photo-album-plus'));
|
1926 |
-
$slug = 'wppa_coversize_is_height';
|
1927 |
-
$html = wppa_checkbox($slug);
|
1928 |
-
$clas = '';
|
1929 |
-
$tags = 'cover,album,thumb,size';
|
1930 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
1931 |
-
|
1932 |
-
$name = __('Page size', 'wp-photo-album-plus');
|
1933 |
-
$desc = __('Max number of covers per page.', 'wp-photo-album-plus');
|
1934 |
-
$help = (__('Enter the maximum number of album covers per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus'));
|
1935 |
-
$slug = 'wppa_album_page_size';
|
1936 |
-
$html = wppa_input($slug, '40px', '', __('covers', 'wp-photo-album-plus'));
|
1937 |
-
$clas = '';
|
1938 |
-
$tags = 'cover,album,count';
|
1939 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
1940 |
Â
|
1941 |
-
|
1942 |
-
$desc = __('The space between album covers', 'wp-photo-album-plus');
|
1943 |
-
$help = '';
|
1944 |
-
$slug = 'wppa_cover_spacing';
|
1945 |
-
$html = wppa_input( $slug, '40px', '', __( 'pixels', 'wp-photo-album-plus' ));
|
1946 |
-
$clas = '';
|
1947 |
-
$tags = 'cover,album,size';
|
1948 |
-
wppa_setting( $slug, '9', $name, $desc, $html, $help, $clas, $tags );
|
1949 |
Â
|
1950 |
-
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
1958 |
-
|
1959 |
-
|
1960 |
-
|
1961 |
-
|
1962 |
-
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
$tags = 'size,widget';
|
1985 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
1986 |
-
|
1987 |
-
$name = __('Comment count', 'wp-photo-album-plus');
|
1988 |
-
$desc = __('Number of entries in Comment widget.', 'wp-photo-album-plus');
|
1989 |
-
$help = (__('Enter the maximum number of entries in the Comment widget.', 'wp-photo-album-plus'));
|
1990 |
-
$slug = 'wppa_comten_count';
|
1991 |
-
$html = wppa_input($slug, '40px', '', __('entries', 'wp-photo-album-plus'));
|
1992 |
-
$clas = '';
|
1993 |
-
$tags = 'count,widget';
|
1994 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
1995 |
-
|
1996 |
-
$name = __('Comment size', 'wp-photo-album-plus');
|
1997 |
-
$desc = __('Size of thumbnails in Comment widget.', 'wp-photo-album-plus');
|
1998 |
-
$help = (__('Enter the size for the mini photos in the Comment widget.', 'wp-photo-album-plus'));
|
1999 |
-
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
2000 |
-
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
2001 |
-
$slug = 'wppa_comten_size';
|
2002 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2003 |
-
$clas = '';
|
2004 |
-
$tags = 'size,widget';
|
2005 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
2006 |
-
|
2007 |
-
$name = __('Thumbnail count', 'wp-photo-album-plus');
|
2008 |
-
$desc = __('Number of photos in Thumbnail widget.', 'wp-photo-album-plus');
|
2009 |
-
$help = (__('Enter the maximum number of rated photos in the Thumbnail widget.', 'wp-photo-album-plus'));
|
2010 |
-
$slug = 'wppa_thumbnail_widget_count';
|
2011 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
2012 |
-
$clas = '';
|
2013 |
-
$tags = 'count,widget';
|
2014 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
2015 |
-
|
2016 |
-
$name = __('Thumbnail widget size', 'wp-photo-album-plus');
|
2017 |
-
$desc = __('Size of thumbnails in Thumbnail widget.', 'wp-photo-album-plus');
|
2018 |
-
$help = (__('Enter the size for the mini photos in the Thumbnail widget.', 'wp-photo-album-plus'));
|
2019 |
-
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
2020 |
-
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
2021 |
-
$slug = 'wppa_thumbnail_widget_size';
|
2022 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2023 |
-
$clas = '';
|
2024 |
-
$tags = 'size,widget';
|
2025 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
2026 |
-
|
2027 |
-
$name = __('LasTen count', 'wp-photo-album-plus');
|
2028 |
-
$desc = __('Number of photos in Last Ten widget.', 'wp-photo-album-plus');
|
2029 |
-
$help = (__('Enter the maximum number of photos in the LasTen widget.', 'wp-photo-album-plus'));
|
2030 |
-
$slug = 'wppa_lasten_count';
|
2031 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
2032 |
-
$clas = '';
|
2033 |
-
$tags = 'count,widget';
|
2034 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
2035 |
-
|
2036 |
-
$name = __('LasTen size', 'wp-photo-album-plus');
|
2037 |
-
$desc = __('Size of thumbnails in Last Ten widget.', 'wp-photo-album-plus');
|
2038 |
-
$help = (__('Enter the size for the mini photos in the LasTen widget.', 'wp-photo-album-plus'));
|
2039 |
-
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
2040 |
-
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
2041 |
-
$slug = 'wppa_lasten_size';
|
2042 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2043 |
-
$clas = '';
|
2044 |
-
$tags = 'size,widget';
|
2045 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
2046 |
-
|
2047 |
-
$name = __('Album widget count', 'wp-photo-album-plus');
|
2048 |
-
$desc = __('Number of albums in Album widget.', 'wp-photo-album-plus');
|
2049 |
-
$help = (__('Enter the maximum number of thumbnail photos of albums in the Album widget.', 'wp-photo-album-plus'));
|
2050 |
-
$slug = 'wppa_album_widget_count';
|
2051 |
-
$html = wppa_input($slug, '40px', '', __('albums', 'wp-photo-album-plus'));
|
2052 |
-
$clas = '';
|
2053 |
-
$tags = 'count,widget';
|
2054 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
2055 |
-
|
2056 |
-
$name = __('Album widget size', 'wp-photo-album-plus');
|
2057 |
-
$desc = __('Size of thumbnails in Album widget.', 'wp-photo-album-plus');
|
2058 |
-
$help = (__('Enter the size for the mini photos in the Album widget.', 'wp-photo-album-plus'));
|
2059 |
-
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
2060 |
-
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
2061 |
-
$slug = 'wppa_album_widget_size';
|
2062 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2063 |
-
$clas = '';
|
2064 |
-
$tags = 'size,widget';
|
2065 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
2066 |
-
|
2067 |
-
$name = __('FeaTen count', 'wp-photo-album-plus');
|
2068 |
-
$desc = __('Number of photos in Featured Ten widget.', 'wp-photo-album-plus');
|
2069 |
-
$help = (__('Enter the maximum number of photos in the FeaTen widget.', 'wp-photo-album-plus'));
|
2070 |
-
$slug = 'wppa_featen_count';
|
2071 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
2072 |
-
$clas = '';
|
2073 |
-
$tags = 'count,widget';
|
2074 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
2075 |
-
|
2076 |
-
$name = __('FeaTen size', 'wp-photo-album-plus');
|
2077 |
-
$desc = __('Size of thumbnails in Featured Ten widget.', 'wp-photo-album-plus');
|
2078 |
-
$help = (__('Enter the size for the mini photos in the FeaTen widget.', 'wp-photo-album-plus'));
|
2079 |
-
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
2080 |
-
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
2081 |
-
$slug = 'wppa_featen_size';
|
2082 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2083 |
-
$clas = '';
|
2084 |
-
$tags = 'size,widget';
|
2085 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
2086 |
Â
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
2095 |
Â
|
2096 |
-
|
2097 |
-
|
2098 |
-
|
2099 |
-
|
2100 |
-
|
2101 |
-
|
2102 |
-
|
2103 |
-
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
2104 |
Â
|
2105 |
-
|
2106 |
-
|
2107 |
-
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
-
$clas = '';
|
2113 |
-
$tags = 'layout,size,widget';
|
2114 |
-
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
2115 |
Â
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
|
2122 |
-
|
2123 |
-
|
2124 |
-
|
2125 |
-
|
2126 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2127 |
Â
|
2128 |
-
|
2129 |
-
$desc = __('Select the size of the magnifier cursor.', 'wp-photo-album-plus');
|
2130 |
-
$help = '';
|
2131 |
-
$slug = 'wppa_magnifier';
|
2132 |
-
$options = array( __('small', 'wp-photo-album-plus'),
|
2133 |
-
__('medium', 'wp-photo-album-plus'),
|
2134 |
-
__('large', 'wp-photo-album-plus'),
|
2135 |
-
__('pointer (hand)', 'wp-photo-album-plus'),
|
2136 |
-
__('--- none ---', 'wp-photo-album-plus')
|
2137 |
-
);
|
2138 |
-
$values = array( 'magnifier-small.png',
|
2139 |
-
'magnifier-medium.png',
|
2140 |
-
'magnifier-large.png',
|
2141 |
-
'pointer',
|
2142 |
-
''
|
2143 |
-
);
|
2144 |
-
$onchange = 'jQuery(\'#wppa-cursor\').attr(\'alt\', jQuery(\'#magnifier\').val() );
|
2145 |
-
document.getElementById(\'wppa-cursor\').src=wppaImageDirectory+document.getElementById(\'magnifier\').value;';
|
2146 |
-
$html = wppa_select( $slug, $options, $values, $onchange ) .
|
2147 |
-
' <img id="wppa-cursor" src="'.wppa_get_imgdir().wppa_opt( substr( $slug, 5 ) ).'" />';
|
2148 |
-
$clas = '';
|
2149 |
-
$tags = 'lightbox,size,layout';
|
2150 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
2151 |
-
echo '<script>'.$onchange.'</script>';
|
2152 |
Â
|
2153 |
-
|
2154 |
-
$desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
|
2155 |
-
$help = '';
|
2156 |
-
$slug = 'wppa_ovl_border_width';
|
2157 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2158 |
-
$clas = '';
|
2159 |
-
$tags = 'size,lightbox,layout';
|
2160 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
2161 |
Â
|
2162 |
-
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2170 |
Â
|
2171 |
-
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
|
2182 |
-
|
2183 |
-
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2192 |
Â
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
2201 |
-
|
2202 |
-
|
2203 |
-
|
2204 |
-
|
2205 |
-
|
2206 |
-
|
2207 |
-
|
2208 |
-
|
2209 |
-
|
2210 |
-
|
2211 |
-
|
2212 |
-
|
2213 |
-
$tags = 'size,layout';
|
2214 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
2215 |
Â
|
2216 |
-
|
2217 |
-
|
2218 |
-
|
2219 |
-
|
2220 |
-
|
2221 |
-
|
2222 |
-
'24px',
|
2223 |
-
'32px',
|
2224 |
-
'48px',
|
2225 |
-
);
|
2226 |
-
$vals = array( '16',
|
2227 |
-
'20',
|
2228 |
-
'24',
|
2229 |
-
'32',
|
2230 |
-
'default',
|
2231 |
-
);
|
2232 |
-
$html = wppa_select($slug, $opts, $vals);
|
2233 |
-
$clas = '';
|
2234 |
-
$tags = 'size,layout';
|
2235 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
2236 |
Â
|
2237 |
-
|
2238 |
-
|
2239 |
-
|
2240 |
-
|
2241 |
-
|
2242 |
-
|
2243 |
-
'18px',
|
2244 |
-
'20px',
|
2245 |
-
'24px',
|
2246 |
-
'32px',
|
2247 |
-
);
|
2248 |
-
$vals = array( 'default',
|
2249 |
-
'16',
|
2250 |
-
'18',
|
2251 |
-
'20',
|
2252 |
-
'24',
|
2253 |
-
'32',
|
2254 |
-
);
|
2255 |
-
$html = wppa_select($slug, $opts, $vals);
|
2256 |
-
$clas = '';
|
2257 |
-
$tags = 'size,layout';
|
2258 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
2259 |
Â
|
2260 |
-
|
2261 |
-
|
2262 |
-
|
2263 |
-
|
2264 |
-
|
2265 |
-
|
2266 |
-
'24px',
|
2267 |
-
'32px',
|
2268 |
-
'40px',
|
2269 |
-
'48px',
|
2270 |
-
);
|
2271 |
-
$vals = array( '16',
|
2272 |
-
'20',
|
2273 |
-
'24',
|
2274 |
-
'32',
|
2275 |
-
'40',
|
2276 |
-
'48',
|
2277 |
-
);
|
2278 |
-
$html = wppa_select($slug, $opts, $vals);
|
2279 |
-
$clas = '';
|
2280 |
-
$tags = 'size,layout';
|
2281 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
2282 |
Â
|
2283 |
-
|
2284 |
-
|
2285 |
-
|
2286 |
-
|
2287 |
-
|
2288 |
-
|
2289 |
-
'24px',
|
2290 |
-
'32px',
|
2291 |
-
'40px',
|
2292 |
-
'48px',
|
2293 |
-
);
|
2294 |
-
$vals = array( '16',
|
2295 |
-
'20',
|
2296 |
-
'24',
|
2297 |
-
'32',
|
2298 |
-
'40',
|
2299 |
-
'48',
|
2300 |
-
);
|
2301 |
-
$html = wppa_select($slug, $opts, $vals);
|
2302 |
-
$clas = '';
|
2303 |
-
$tags = 'size,layout';
|
2304 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
2305 |
-
}
|
2306 |
Â
|
2307 |
-
|
2308 |
-
|
2309 |
-
|
2310 |
-
|
2311 |
-
|
2312 |
-
|
2313 |
-
|
2314 |
-
|
2315 |
-
|
2316 |
-
|
2317 |
-
|
2318 |
-
|
2319 |
-
|
2320 |
-
|
2321 |
-
|
2322 |
-
'40',
|
2323 |
-
'48',
|
2324 |
-
);
|
2325 |
-
$html = wppa_select($slug, $opts, $vals);
|
2326 |
-
$clas = '';
|
2327 |
-
$tags = 'size,layout';
|
2328 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
2329 |
-
|
2330 |
-
?>
|
2331 |
-
</tbody>
|
2332 |
-
<tfoot style="font-weight: bold;" class="wppa_table_1">
|
2333 |
-
<tr>
|
2334 |
-
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
2335 |
-
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
2336 |
-
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
2337 |
-
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
2338 |
-
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
2339 |
-
</tr>
|
2340 |
-
</tfoot>
|
2341 |
-
</table>
|
2342 |
-
</div>
|
2343 |
Â
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
|
2348 |
-
|
2349 |
-
|
2350 |
-
|
2351 |
-
<div id="wppa_table_2" style="display:none" >
|
2352 |
-
<table class="widefat wppa-table wppa-setting-table">
|
2353 |
-
<thead style="font-weight: bold; " class="wppa_table_2">
|
2354 |
-
<tr>
|
2355 |
-
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
2356 |
-
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
2357 |
-
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
2358 |
-
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
2359 |
-
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
2360 |
-
</tr>
|
2361 |
-
</thead>
|
2362 |
-
<tbody class="wppa_table_2">
|
2363 |
-
<?php
|
2364 |
-
$wppa_table = 'II';
|
2365 |
-
|
2366 |
-
wppa_setting_subheader( 'A', '1', __( 'Breadcrumb related visibility settings' , 'wp-photo-album-plus') );
|
2367 |
-
{
|
2368 |
-
$name = __('Breadcrumb on posts', 'wp-photo-album-plus');
|
2369 |
-
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
|
2370 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus'));
|
2371 |
-
$slug = 'wppa_show_bread_posts';
|
2372 |
-
$onchange = 'wppaCheckBreadcrumb()';
|
2373 |
-
$html = wppa_checkbox($slug, $onchange);
|
2374 |
-
$clas = '';
|
2375 |
-
$tags = 'navi,page';
|
2376 |
-
wppa_setting($slug, '1a', $name, $desc, $html, $help, $clas, $tags);
|
2377 |
-
|
2378 |
-
$name = __('Breadcrumb on pages', 'wp-photo-album-plus');
|
2379 |
-
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
|
2380 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus'));
|
2381 |
-
$slug = 'wppa_show_bread_pages';
|
2382 |
-
$onchange = 'wppaCheckBreadcrumb()';
|
2383 |
-
$html = wppa_checkbox($slug, $onchange);
|
2384 |
-
$clas = '';
|
2385 |
-
$tags = 'navi,page';
|
2386 |
-
wppa_setting($slug, '1b', $name, $desc, $html, $help, $clas, $tags);
|
2387 |
-
|
2388 |
-
$name = __('Breadcrumb on search results', 'wp-photo-album-plus');
|
2389 |
-
$desc = __('Show breadcrumb navigation bars on the search results page.', 'wp-photo-album-plus');
|
2390 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the search results.', 'wp-photo-album-plus'));
|
2391 |
-
$slug = 'wppa_bc_on_search';
|
2392 |
-
$html = wppa_checkbox($slug);
|
2393 |
-
$clas = 'wppa_bc';
|
2394 |
-
$tags = 'navi,page,search';
|
2395 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
2396 |
-
|
2397 |
-
$name = __('Breadcrumb on topten displays', 'wp-photo-album-plus');
|
2398 |
-
$desc = __('Show breadcrumb navigation bars on topten displays.', 'wp-photo-album-plus');
|
2399 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the topten displays.', 'wp-photo-album-plus'));
|
2400 |
-
$slug = 'wppa_bc_on_topten';
|
2401 |
-
$html = wppa_checkbox($slug);
|
2402 |
-
$clas = 'wppa_bc';
|
2403 |
-
$tags = 'navi,page';
|
2404 |
-
wppa_setting($slug, '3.0', $name, $desc, $html, $help, $clas, $tags);
|
2405 |
-
|
2406 |
-
$name = __('Breadcrumb on last ten displays', 'wp-photo-album-plus');
|
2407 |
-
$desc = __('Show breadcrumb navigation bars on last ten displays.', 'wp-photo-album-plus');
|
2408 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the last ten displays.', 'wp-photo-album-plus'));
|
2409 |
-
$slug = 'wppa_bc_on_lasten';
|
2410 |
-
$html = wppa_checkbox($slug);
|
2411 |
-
$clas = 'wppa_bc';
|
2412 |
-
$tags = 'navi,page';
|
2413 |
-
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
2414 |
-
|
2415 |
-
$name = __('Breadcrumb on comment ten displays', 'wp-photo-album-plus');
|
2416 |
-
$desc = __('Show breadcrumb navigation bars on comment ten displays.', 'wp-photo-album-plus');
|
2417 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the comment ten displays.', 'wp-photo-album-plus'));
|
2418 |
-
$slug = 'wppa_bc_on_comten';
|
2419 |
-
$html = wppa_checkbox($slug);
|
2420 |
-
$clas = 'wppa_bc';
|
2421 |
-
$tags = 'navi,page,comment';
|
2422 |
-
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
2423 |
-
|
2424 |
-
$name = __('Breadcrumb on tag result displays', 'wp-photo-album-plus');
|
2425 |
-
$desc = __('Show breadcrumb navigation bars on tag result displays.', 'wp-photo-album-plus');
|
2426 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the tag result displays.', 'wp-photo-album-plus'));
|
2427 |
-
$slug = 'wppa_bc_on_tag';
|
2428 |
-
$html = wppa_checkbox($slug);
|
2429 |
-
$clas = 'wppa_bc';
|
2430 |
-
$tags = 'navi,page';
|
2431 |
-
wppa_setting($slug, '3.3', $name, $desc, $html, $help, $clas, $tags);
|
2432 |
-
|
2433 |
-
$name = __('Breadcrumb on featured ten displays', 'wp-photo-album-plus');
|
2434 |
-
$desc = __('Show breadcrumb navigation bars on featured ten displays.', 'wp-photo-album-plus');
|
2435 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the featured ten displays.', 'wp-photo-album-plus'));
|
2436 |
-
$slug = 'wppa_bc_on_featen';
|
2437 |
-
$html = wppa_checkbox($slug);
|
2438 |
-
$clas = 'wppa_bc';
|
2439 |
-
$tags = 'navi,page';
|
2440 |
-
wppa_setting($slug, '3.4', $name, $desc, $html, $help, $clas, $tags);
|
2441 |
-
|
2442 |
-
$name = __('Breadcrumb on related photos displays', 'wp-photo-album-plus');
|
2443 |
-
$desc = __('Show breadcrumb navigation bars on related photos displays.', 'wp-photo-album-plus');
|
2444 |
-
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the related photos displays.', 'wp-photo-album-plus'));
|
2445 |
-
$slug = 'wppa_bc_on_related';
|
2446 |
-
$html = wppa_checkbox($slug);
|
2447 |
-
$clas = 'wppa_bc';
|
2448 |
-
$tags = 'navi,page';
|
2449 |
-
wppa_setting($slug, '3.5', $name, $desc, $html, $help, $clas, $tags);
|
2450 |
-
|
2451 |
-
$name = __('Home', 'wp-photo-album-plus');
|
2452 |
-
$desc = __('Show "Home" in breadcrumb.', 'wp-photo-album-plus');
|
2453 |
-
$help = (__('Indicate whether the breadcrumb navigation should start with a "Home"-link', 'wp-photo-album-plus'));
|
2454 |
-
$slug = 'wppa_show_home';
|
2455 |
-
$html = wppa_checkbox($slug);
|
2456 |
-
$clas = 'wppa_bc';
|
2457 |
-
$tags = 'navi,layout';
|
2458 |
-
wppa_setting($slug, '4.1', $name, $desc, $html, $help, $clas, $tags);
|
2459 |
-
|
2460 |
-
$name = __('Home text', 'wp-photo-album-plus');
|
2461 |
-
$desc = __('The text to use as "Home"', 'wp-photo-album-plus');
|
2462 |
-
$help = ' ';
|
2463 |
-
$slug = 'wppa_home_text';
|
2464 |
-
$html = wppa_input($slug, '100px;');
|
2465 |
-
$clas = 'wppa_bc';
|
2466 |
-
$tags = 'navi,layout';
|
2467 |
-
wppa_setting($slug, '4.2', $name, $desc, $html, $help, $clas, $tags);
|
2468 |
-
|
2469 |
-
$name = __('Page', 'wp-photo-album-plus');
|
2470 |
-
$desc = __('Show the page(s) in breadcrumb.', 'wp-photo-album-plus');
|
2471 |
-
$help = (__('Indicate whether the breadcrumb navigation should show the page(hierarchy)', 'wp-photo-album-plus'));
|
2472 |
-
$slug = 'wppa_show_page';
|
2473 |
-
$html = wppa_checkbox($slug);
|
2474 |
-
$clas = 'wppa_bc';
|
2475 |
-
$tags = 'navi,layout';
|
2476 |
-
wppa_setting($slug, '4.3', $name, $desc, $html, $help, $clas, $tags);
|
2477 |
-
|
2478 |
-
$name = __('Photo name', 'wp-photo-album-plus');
|
2479 |
-
$desc = __('Show name of photo above slideshow.', 'wp-photo-album-plus');
|
2480 |
-
$help = '';
|
2481 |
-
$slug = 'wppa_show_pname';
|
2482 |
-
$html = wppa_checkbox($slug);
|
2483 |
-
$clas = 'wppa_bc';
|
2484 |
-
$tags = 'navi,layout';
|
2485 |
-
wppa_setting($slug, '4.4', $name, $desc, $html, $help, $clas, $tags);
|
2486 |
-
|
2487 |
-
$name = __('Separator', 'wp-photo-album-plus');
|
2488 |
-
$desc = __('Breadcrumb separator symbol.', 'wp-photo-album-plus');
|
2489 |
-
$help = (__('Select the desired breadcrumb separator element.', 'wp-photo-album-plus'));
|
2490 |
-
$help .= '<br />'.(__('A text string may contain valid html.', 'wp-photo-album-plus'));
|
2491 |
-
$help .= '<br />'.(__('An image will be scaled automatically if you set the navigation font size.', 'wp-photo-album-plus'));
|
2492 |
-
$slug = 'wppa_bc_separator';
|
2493 |
-
$options = array('&raquo', '&rsaquo', '&gt', '&bull', __('Text (html):', 'wp-photo-album-plus'), __('Image (url):', 'wp-photo-album-plus'));
|
2494 |
-
$values = array('raquo', 'rsaquo', 'gt', 'bull', 'txt', 'url');
|
2495 |
-
$onchange = 'wppaCheckBreadcrumb()';
|
2496 |
-
$html = wppa_select($slug, $options, $values, $onchange);
|
2497 |
-
$clas = 'wppa_bc';
|
2498 |
-
$tags = 'navi,layout';
|
2499 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
2500 |
-
|
2501 |
-
$name = __('Html', 'wp-photo-album-plus');
|
2502 |
-
$desc = __('Breadcrumb separator text.', 'wp-photo-album-plus');
|
2503 |
-
$help = (__('Enter the HTML code that produces the separator symbol you want.', 'wp-photo-album-plus'));
|
2504 |
-
$help .= '<br />'.(__('It may be as simple as \'-\' (without the quotes) or as complex as a tag like <div>..</div>.', 'wp-photo-album-plus'));
|
2505 |
-
$slug = 'wppa_bc_txt';
|
2506 |
-
$html = wppa_input($slug, '90%', '300px');
|
2507 |
-
$clas = $slug;
|
2508 |
-
$tags = 'navi,layout';
|
2509 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
2510 |
-
|
2511 |
-
$name = __('Image Url', 'wp-photo-album-plus');
|
2512 |
-
$desc = __('Full url to separator image.', 'wp-photo-album-plus');
|
2513 |
-
$help = (__('Enter the full url to the image you want to use for the separator symbol.', 'wp-photo-album-plus'));
|
2514 |
-
$slug = 'wppa_bc_url';
|
2515 |
-
$html = wppa_input($slug, '90%', '300px');
|
2516 |
-
$clas = $slug;
|
2517 |
-
$tags = 'navi,layout';
|
2518 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
2519 |
-
|
2520 |
-
$name = __('Pagelink position', 'wp-photo-album-plus');
|
2521 |
-
$desc = __('The location for the pagelinks bar.', 'wp-photo-album-plus');
|
2522 |
-
$help = '';
|
2523 |
-
$slug = 'wppa_pagelink_pos';
|
2524 |
-
$options = array(__('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'), __('Both', 'wp-photo-album-plus'));
|
2525 |
-
$values = array('top', 'bottom', 'both');
|
2526 |
-
$html = wppa_select($slug, $options, $values);
|
2527 |
-
$clas = '';
|
2528 |
-
$tags = 'navi,layout';
|
2529 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
2530 |
-
|
2531 |
-
$name = __('Thumblink on slideshow', 'wp-photo-album-plus');
|
2532 |
-
$desc = __('Show a thumb link on slideshow bc.', 'wp-photo-album-plus');
|
2533 |
-
$help = (__('Show a link to thumbnail display on an breadcrumb above a slideshow', 'wp-photo-album-plus'));
|
2534 |
-
$slug = 'wppa_bc_slide_thumblink';
|
2535 |
-
$html = wppa_checkbox($slug);
|
2536 |
-
$clas = '';
|
2537 |
-
$tags = 'navi,layout';
|
2538 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
2539 |
-
}
|
2540 |
-
wppa_setting_subheader( 'B', '1', __( 'Slideshow related visibility settings' , 'wp-photo-album-plus') );
|
2541 |
-
{
|
2542 |
-
$name = __('Navigation type', 'wp-photo-album-plus');
|
2543 |
-
$desc = __('Select the type of navigation you want.', 'wp-photo-album-plus');
|
2544 |
-
$help = '';
|
2545 |
-
$slug = 'wppa_navigation_type';
|
2546 |
-
$opts = array( __('Icons', 'wp-photo-album-plus'),
|
2547 |
-
__('Icons on mobile, text on pc', 'wp-photo-album-plus'),
|
2548 |
-
__('Text', 'wp-photo-album-plus'),
|
2549 |
-
);
|
2550 |
-
$vals = array( 'icons',
|
2551 |
-
'iconsmobile',
|
2552 |
-
'text',
|
2553 |
-
);
|
2554 |
-
$html = wppa_select($slug, $opts, $vals);
|
2555 |
-
$tags = 'slide,navi';
|
2556 |
-
wppa_setting($slug, '0', $name, $desc, $html, $help, $clas, $tags);
|
2557 |
-
|
2558 |
-
$name = __('Start/stop', 'wp-photo-album-plus');
|
2559 |
-
$desc = __('Show the Start/Stop slideshow bar.', 'wp-photo-album-plus');
|
2560 |
-
$help = (__('If checked: display the start/stop slideshow navigation bar above the full-size images and slideshow', 'wp-photo-album-plus'));
|
2561 |
-
$slug = 'wppa_show_startstop_navigation';
|
2562 |
-
$html = wppa_checkbox($slug);
|
2563 |
-
$clas = '';
|
2564 |
-
$tags = 'slide,navi';
|
2565 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
$help = (__('If checked: display the name of the photo under the slideshow image.', 'wp-photo-album-plus'));
|
2615 |
-
$slug = 'wppa_show_full_name';
|
2616 |
-
$html = wppa_checkbox($slug);
|
2617 |
-
$clas = '';
|
2618 |
-
$tags = 'slide,meta,layout';
|
2619 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
2620 |
Â
|
2621 |
-
|
2622 |
-
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
|
2623 |
-
$help = '';
|
2624 |
-
$slug = 'wppa_show_full_owner';
|
2625 |
-
$html = wppa_checkbox($slug);
|
2626 |
-
$clas = '';
|
2627 |
-
$tags = 'slide,meta,layout';
|
2628 |
-
wppa_setting($slug, '5.1', $name, $desc, $html, $help, $clas, $tags);
|
2629 |
-
|
2630 |
-
$name = __('Photo desc', 'wp-photo-album-plus');
|
2631 |
-
$desc = __('Display Photo description.', 'wp-photo-album-plus');
|
2632 |
-
$help = (__('If checked: display the description of the photo under the slideshow image.', 'wp-photo-album-plus'));
|
2633 |
-
$slug = 'wppa_show_full_desc';
|
2634 |
-
$html = wppa_checkbox($slug);
|
2635 |
-
$clas = '';
|
2636 |
-
$tags = 'slide,meta,layout';
|
2637 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
2638 |
Â
|
2639 |
-
|
2640 |
-
$desc = __('Hide the descriptionbox when empty.', 'wp-photo-album-plus');
|
2641 |
-
$help = '';
|
2642 |
-
$slug = 'wppa_hide_when_empty';
|
2643 |
-
$html = wppa_checkbox($slug);
|
2644 |
-
$clas = 'hide_empty';
|
2645 |
-
$tags = 'slide,meta,layout';
|
2646 |
-
wppa_setting($slug, '6.1', $name, $desc, $html, $help, $clas, $tags);
|
2647 |
-
|
2648 |
-
$name = __('Comment Avatar default', 'wp-photo-album-plus');
|
2649 |
-
$desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus');
|
2650 |
-
$help = '';
|
2651 |
-
$slug = 'wppa_comment_gravatar';
|
2652 |
-
$onchange = 'wppaCheckGravatar()';
|
2653 |
-
$options = array( __('--- none ---', 'wp-photo-album-plus'),
|
2654 |
-
__('mystery man', 'wp-photo-album-plus'),
|
2655 |
-
__('identicon', 'wp-photo-album-plus'),
|
2656 |
-
__('monsterid', 'wp-photo-album-plus'),
|
2657 |
-
__('wavatar', 'wp-photo-album-plus'),
|
2658 |
-
__('retro', 'wp-photo-album-plus'),
|
2659 |
-
__('--- url ---', 'wp-photo-album-plus')
|
2660 |
-
);
|
2661 |
-
$values = array( 'none',
|
2662 |
-
'mm',
|
2663 |
-
'identicon',
|
2664 |
-
'monsterid',
|
2665 |
-
'wavatar',
|
2666 |
-
'retro',
|
2667 |
-
'url'
|
2668 |
-
);
|
2669 |
-
$html = wppa_select($slug, $options, $values, $onchange);
|
2670 |
-
$clas = 'wppa_comment_';
|
2671 |
-
$tags = 'slide,comment,layout';
|
2672 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
2673 |
Â
|
2674 |
-
|
2675 |
-
|
2676 |
-
$help = '';
|
2677 |
-
$slug = 'wppa_comment_gravatar_url';
|
2678 |
-
$html = wppa_input($slug, '90%', '300px');
|
2679 |
-
$clas = 'wppa_grav';
|
2680 |
-
$tags = 'slide,comment,layout';
|
2681 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
2682 |
-
|
2683 |
-
$name = __('Big Browse Buttons', 'wp-photo-album-plus');
|
2684 |
-
$desc = __('Enable invisible browsing buttons.', 'wp-photo-album-plus');
|
2685 |
-
$help = (__('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus'));
|
2686 |
-
$help .= '<br />'.(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus'));
|
2687 |
-
$slug = 'wppa_show_bbb';
|
2688 |
-
$html = wppa_checkbox($slug);
|
2689 |
-
$clas = '';
|
2690 |
-
$tags = 'slide,navi';
|
2691 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
2692 |
-
|
2693 |
-
$name = __('Ugly Browse Buttons', 'wp-photo-album-plus');
|
2694 |
-
$desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus');
|
2695 |
-
$help = (__('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus'));
|
2696 |
-
$slug = 'wppa_show_ubb';
|
2697 |
-
$html = wppa_checkbox($slug);
|
2698 |
-
$clas = '';
|
2699 |
-
$tags = 'slide,navi';
|
2700 |
-
wppa_setting($slug, '13.1', $name, $desc, $html, $help, $clas, $tags);
|
2701 |
Â
|
2702 |
-
|
2703 |
-
|
2704 |
-
|
2705 |
-
|
2706 |
-
|
2707 |
-
|
2708 |
-
|
2709 |
-
|
2710 |
-
|
2711 |
-
|
2712 |
-
|
2713 |
-
|
2714 |
-
|
2715 |
-
|
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 |
-
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
2741 |
-
|
2742 |
-
$name = __('IPTC system', 'wp-photo-album-plus');
|
2743 |
-
$desc = __('Enable the iptc system.', 'wp-photo-album-plus');
|
2744 |
-
$help = (__('Display the iptc box under the fullsize images.', 'wp-photo-album-plus'));
|
2745 |
-
$slug = 'wppa_show_iptc';
|
2746 |
-
$onchange = '';
|
2747 |
-
$html = wppa_checkbox($slug);
|
2748 |
-
$clas = '';
|
2749 |
-
$tags = 'slide,meta,layout';
|
2750 |
-
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
2751 |
-
|
2752 |
-
$name = __('IPTC open', 'wp-photo-album-plus');
|
2753 |
-
$desc = __('Display the iptc box initially opened.', 'wp-photo-album-plus');
|
2754 |
-
$help = (__('Display the iptc box under the fullsize images initially open.', 'wp-photo-album-plus'));
|
2755 |
-
$slug = 'wppa_show_iptc_open';
|
2756 |
-
$onchange = '';
|
2757 |
-
$html = wppa_checkbox($slug);
|
2758 |
-
$clas = '';
|
2759 |
-
$tags = 'slide,meta,layout';
|
2760 |
-
wppa_setting($slug, '17.1', $name, $desc, $html, $help, $clas, $tags);
|
2761 |
-
|
2762 |
-
$name = __('EXIF system', 'wp-photo-album-plus');
|
2763 |
-
$desc = __('Enable the exif system.', 'wp-photo-album-plus');
|
2764 |
-
$help = (__('Display the exif box under the fullsize images.', 'wp-photo-album-plus'));
|
2765 |
-
$slug = 'wppa_show_exif';
|
2766 |
-
$onchange = '';
|
2767 |
-
$html = wppa_checkbox($slug);
|
2768 |
-
$clas = '';
|
2769 |
-
$tags = 'slide,meta,layout';
|
2770 |
-
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
2771 |
-
|
2772 |
-
$name = __('EXIF open', 'wp-photo-album-plus');
|
2773 |
-
$desc = __('Display the exif box initially opened.', 'wp-photo-album-plus');
|
2774 |
-
$help = (__('Display the exif box under the fullsize images initially open.', 'wp-photo-album-plus'));
|
2775 |
-
$slug = 'wppa_show_exif_open';
|
2776 |
-
$onchange = '';
|
2777 |
-
$html = wppa_checkbox($slug);
|
2778 |
-
$clas = '';
|
2779 |
-
$tags = 'slide,meta,layout';
|
2780 |
-
wppa_setting($slug, '18.1', $name, $desc, $html, $help, $clas, $tags);
|
2781 |
-
}
|
2782 |
-
wppa_setting_subheader( 'C', '1', __( 'Social media share box related visibility settings' , 'wp-photo-album-plus') );
|
2783 |
-
{
|
2784 |
-
$name = __('Show Share Box', 'wp-photo-album-plus');
|
2785 |
-
$desc = __('Display the share social media buttons box.', 'wp-photo-album-plus');
|
2786 |
-
$help = '';
|
2787 |
-
$slug = 'wppa_share_on';
|
2788 |
-
$onchange = 'wppaCheckShares()';
|
2789 |
-
$html = wppa_checkbox($slug, $onchange);
|
2790 |
-
$clas = '';
|
2791 |
-
$tags = 'slide,sm,layout';
|
2792 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
2793 |
Â
|
2794 |
-
|
2795 |
-
|
2796 |
-
|
2797 |
-
|
2798 |
-
|
2799 |
-
|
2800 |
-
$tags = 'slide,sm,layout';
|
2801 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
2802 |
-
|
2803 |
-
$name = __('Show Share Box Widget', 'wp-photo-album-plus');
|
2804 |
-
$desc = __('Display the share social media buttons box in widgets.', 'wp-photo-album-plus');
|
2805 |
-
$help = __('This setting applies to normal slideshows in widgets, not to the slideshowwidget as that is a slideonly display.', 'wp-photo-album-plus');
|
2806 |
-
$slug = 'wppa_share_on_widget';
|
2807 |
-
$onchange = 'wppaCheckShares()';
|
2808 |
-
$html = wppa_checkbox($slug, $onchange);
|
2809 |
-
$clas = '';
|
2810 |
-
$tags = 'widget,sm,layout';
|
2811 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
2812 |
Â
|
2813 |
-
|
2814 |
-
|
2815 |
-
|
2816 |
-
|
2817 |
-
|
2818 |
-
|
2819 |
-
$clas = '';
|
2820 |
-
$tags = 'thumb,sm,layout';
|
2821 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
2822 |
Â
|
2823 |
-
|
2824 |
-
|
2825 |
-
|
2826 |
-
|
2827 |
-
|
2828 |
-
|
2829 |
-
$clas = '';
|
2830 |
-
$tags = 'lightbox,sm,layout';
|
2831 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
|
2910 |
-
|
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 |
-
$html = wppa_input($slug, '200px');
|
2955 |
-
$clas = 'wppa_share';
|
2956 |
-
$tags = 'system,sm';
|
2957 |
-
wppa_setting($slug, '17.7', $name, $desc, $html, $help, $clas, $tags);
|
2958 |
-
|
2959 |
-
$name = __('Facebook App Id', 'wp-photo-album-plus');
|
2960 |
-
$desc = __('Enter your facebook app id to be able to moderate comments and sends', 'wp-photo-album-plus');
|
2961 |
-
$help = '';
|
2962 |
-
$slug = 'wppa_facebook_app_id';
|
2963 |
-
$html = wppa_input($slug, '200px');
|
2964 |
-
$clas = 'wppa_share';
|
2965 |
-
$tags = 'system,sm';
|
2966 |
-
wppa_setting($slug, '17.8', $name, $desc, $html, $help, $clas, $tags);
|
2967 |
-
|
2968 |
-
$name = __('Facebook js SDK', 'wp-photo-album-plus');
|
2969 |
-
$desc = __('Load Facebook js SDK', 'wp-photo-album-plus');
|
2970 |
-
$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'));
|
2971 |
-
$slug = 'wppa_load_facebook_sdk';
|
2972 |
-
$html = wppa_checkbox($slug, $onchange);
|
2973 |
-
$clas = 'wppa_share';
|
2974 |
-
$tags = 'system,sm';
|
2975 |
-
wppa_setting($slug, '17.9', $name, $desc, $html, $help, $clas, $tags);
|
2976 |
-
|
2977 |
-
$name = __('Share single image', 'wp-photo-album-plus');
|
2978 |
-
$desc = __('Share a link to a single image, not the slideshow.', 'wp-photo-album-plus');
|
2979 |
-
$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'));
|
2980 |
-
$slug = 'wppa_share_single_image';
|
2981 |
-
$html = wppa_checkbox($slug, $onchange);
|
2982 |
-
$clas = 'wppa_share';
|
2983 |
-
$tags = 'system,sm';
|
2984 |
-
wppa_setting($slug, '99', $name, $desc, $html, $help, $clas, $tags);
|
2985 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2986 |
Â
}
|
2987 |
-
|
2988 |
-
|
2989 |
-
|
2990 |
-
$desc = __('Display Thumbnail name.', 'wp-photo-album-plus');
|
2991 |
-
$help = (__('Display photo name under thumbnail images.', 'wp-photo-album-plus'));
|
2992 |
-
$slug = 'wppa_thumb_text_name';
|
2993 |
-
$html = wppa_checkbox($slug);
|
2994 |
-
$clas = 'tt_normal';
|
2995 |
-
$tags = 'thumb,meta,layout';
|
2996 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
2997 |
-
|
2998 |
-
$name = __('Add (Owner)', 'wp-photo-album-plus');
|
2999 |
-
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
|
3000 |
-
$help = '';
|
3001 |
-
$slug = 'wppa_thumb_text_owner';
|
3002 |
-
$html = wppa_checkbox($slug);
|
3003 |
-
$clas = 'tt_normal';
|
3004 |
-
$tags = 'thumb,meta,layout';
|
3005 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
3006 |
-
|
3007 |
-
$name = __('Thumbnail desc', 'wp-photo-album-plus');
|
3008 |
-
$desc = __('Display Thumbnail description.', 'wp-photo-album-plus');
|
3009 |
-
$help = (__('Display description of the photo under thumbnail images.', 'wp-photo-album-plus'));
|
3010 |
-
$slug = 'wppa_thumb_text_desc';
|
3011 |
-
$html = wppa_checkbox($slug);
|
3012 |
-
$clas = 'tt_normal';
|
3013 |
-
$tags = 'thumb,meta,layout';
|
3014 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
3015 |
-
|
3016 |
-
$name = __('Thumbnail comcount', 'wp-photo-album-plus');
|
3017 |
-
$desc = __('Display Thumbnail Comment count.', 'wp-photo-album-plus');
|
3018 |
-
$help = (__('Display the number of comments to the photo under the thumbnail image.', 'wp-photo-album-plus'));
|
3019 |
-
$slug = 'wppa_thumb_text_comcount';
|
3020 |
-
$html = wppa_checkbox($slug);
|
3021 |
-
$clas = 'tt_normal';
|
3022 |
-
$tags = 'thumb,layout,comment';
|
3023 |
-
wppa_setting($slug, '4.1', $name, $desc, $html, $help, $clas, $tags);
|
3024 |
-
|
3025 |
-
$name = __('Thumbnail viewcount', 'wp-photo-album-plus');
|
3026 |
-
$desc = __('Display the number of views.', 'wp-photo-album-plus');
|
3027 |
-
$help = (__('Display the number of views under the thumbnail image.', 'wp-photo-album-plus'));
|
3028 |
-
$slug = 'wppa_thumb_text_viewcount';
|
3029 |
-
$html = wppa_checkbox($slug);
|
3030 |
-
$clas = 'tt_normal';
|
3031 |
-
$tags = 'thumb,layout,meta';
|
3032 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
3033 |
-
|
3034 |
-
$name = __('Thumbnail virt album', 'wp-photo-album-plus');
|
3035 |
-
$desc = __('Display the real album name on virtual album display.', 'wp-photo-album-plus');
|
3036 |
-
$help = (__('Display the album name of the photo in parenthesis under the thumbnail on virtual album displays like search results etc.', 'wp-photo-album-plus'));
|
3037 |
-
$slug = 'wppa_thumb_text_virt_album';
|
3038 |
-
$html = wppa_checkbox($slug);
|
3039 |
-
$clas = 'tt_normal';
|
3040 |
-
$tags = 'thumb,layout,meta';
|
3041 |
-
wppa_setting($slug, '5.1', $name, $desc, $html, $help, $clas, $tags);
|
3042 |
-
|
3043 |
-
$name = __('Thumbnail video', 'wp-photo-album-plus');
|
3044 |
-
$desc = __('Show video controls on thumbnail displays.', 'wp-photo-album-plus');
|
3045 |
-
$help = __('Works on default thumbnail type only. You can play the video only when the link is set to no link at all.', 'wp-photo-album-plus');
|
3046 |
-
$slug = 'wppa_thumb_video';
|
3047 |
-
$html = wppa_checkbox($slug);
|
3048 |
-
$clas = 'tt_normal';
|
3049 |
-
$tags = 'thumb,layout,video';
|
3050 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
3051 |
-
|
3052 |
-
$name = __('Thumbnail audio', 'wp-photo-album-plus');
|
3053 |
-
$desc = __('Show audio controls on thumbnail displays.', 'wp-photo-album-plus');
|
3054 |
-
$help = '';
|
3055 |
-
$slug = 'wppa_thumb_audio';
|
3056 |
-
$html = wppa_checkbox($slug);
|
3057 |
-
$clas = 'tt_normal';
|
3058 |
-
$tags = 'thumb,layout,audio';
|
3059 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
3060 |
-
|
3061 |
-
$name = __('Popup name', 'wp-photo-album-plus');
|
3062 |
-
$desc = __('Display Thumbnail name on popup.', 'wp-photo-album-plus');
|
3063 |
-
$help = (__('Display photo name under thumbnail images on the popup.', 'wp-photo-album-plus'));
|
3064 |
-
$slug = 'wppa_popup_text_name';
|
3065 |
-
$html = wppa_checkbox($slug);
|
3066 |
-
$clas = 'tt_normal tt_masonry wppa_popup';
|
3067 |
-
$tags = 'thumb,layout,meta';
|
3068 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
3069 |
-
|
3070 |
-
$name = __('Popup (owner)', 'wp-photo-album-plus');
|
3071 |
-
$desc = __('Display owner on popup.', 'wp-photo-album-plus');
|
3072 |
-
$help = (__('Display photo owner under thumbnail images on the popup.', 'wp-photo-album-plus'));
|
3073 |
-
$slug = 'wppa_popup_text_owner';
|
3074 |
-
$html = wppa_checkbox($slug);
|
3075 |
-
$clas = 'tt_normal tt_masonry wppa_popup';
|
3076 |
-
$tags = 'thumb,meta,layout';
|
3077 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
3078 |
-
|
3079 |
-
$name = __('Popup desc', 'wp-photo-album-plus');
|
3080 |
-
$desc = __('Display Thumbnail description on popup.', 'wp-photo-album-plus');
|
3081 |
-
$help = (__('Display description of the photo under thumbnail images on the popup.', 'wp-photo-album-plus'));
|
3082 |
-
$slug = 'wppa_popup_text_desc';
|
3083 |
-
$html = wppa_checkbox($slug);
|
3084 |
-
$clas = 'tt_normal tt_masonry wppa_popup';
|
3085 |
-
$tags = 'thumb,meta,layout';
|
3086 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
3087 |
-
|
3088 |
-
$name = __('Popup desc no links', 'wp-photo-album-plus');
|
3089 |
-
$desc = __('Strip html anchor tags from descriptions on popups', 'wp-photo-album-plus');
|
3090 |
-
$help = (__('Use this option to prevent the display of links that cannot be activated.', 'wp-photo-album-plus'));
|
3091 |
-
$slug = 'wppa_popup_text_desc_strip';
|
3092 |
-
$html = wppa_checkbox($slug);
|
3093 |
-
$clas = 'tt_normal tt_masonry wppa_popup';
|
3094 |
-
$tags = 'thumb,meta,layout';
|
3095 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
3096 |
-
|
3097 |
-
$name = __('Popup rating', 'wp-photo-album-plus');
|
3098 |
-
$desc = __('Display Thumbnail Rating on popup.', 'wp-photo-album-plus');
|
3099 |
-
$help = (__('Display the rating of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus'));
|
3100 |
-
$slug = 'wppa_popup_text_rating';
|
3101 |
-
$html = '<span class="wppa_rating">'.wppa_checkbox($slug).'</span>';
|
3102 |
-
$clas = 'wppa_rating_ tt_normal tt_masonry wppa_popup';
|
3103 |
-
$tags = 'thumb,rating,layout';
|
3104 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
3105 |
-
|
3106 |
-
$name = __('Popup comcount', 'wp-photo-album-plus');
|
3107 |
-
$desc = __('Display Thumbnail Comment count on popup.', 'wp-photo-album-plus');
|
3108 |
-
$help = (__('Display the number of comments of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus'));
|
3109 |
-
$slug = 'wppa_popup_text_ncomments';
|
3110 |
-
$html = wppa_checkbox($slug);
|
3111 |
-
$clas = 'tt_normal tt_masonry wppa_popup';
|
3112 |
-
$tags = 'thumb,comment,layout';
|
3113 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
3114 |
-
|
3115 |
-
$name = __('Show name on thumb area', 'wp-photo-album-plus');
|
3116 |
-
$desc = __('Select if and where to display the album name on the thumbnail display.', 'wp-photo-album-plus');
|
3117 |
-
$help = '';
|
3118 |
-
$slug = 'wppa_albname_on_thumbarea';
|
3119 |
-
$options = array(__('None', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'));
|
3120 |
-
$values = array('none', 'top', 'bottom');
|
3121 |
-
$html = wppa_select($slug, $options, $values);
|
3122 |
-
$clas = '';
|
3123 |
-
$tags = 'album,meta,layout';
|
3124 |
-
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
3125 |
Â
|
3126 |
-
|
3127 |
-
$
|
Â
|
|
3128 |
Â
$help = '';
|
3129 |
-
$slug = '
|
3130 |
-
$
|
3131 |
-
$
|
3132 |
-
$
|
3133 |
-
|
3134 |
-
|
3135 |
-
|
Â
|
|
Â
|
|
Â
|
|
3136 |
Â
|
3137 |
-
|
3138 |
-
$
|
Â
|
|
3139 |
Â
$help = '';
|
3140 |
-
$slug = '
|
3141 |
-
$html =
|
3142 |
-
$
|
3143 |
-
|
3144 |
-
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
3145 |
Â
|
3146 |
-
|
3147 |
-
|
3148 |
-
|
3149 |
-
|
3150 |
-
$html = wppa_checkbox($slug);
|
3151 |
-
$clas = '';
|
3152 |
-
$tags = 'thumb';
|
3153 |
-
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
3154 |
Â
|
3155 |
-
|
3156 |
-
|
3157 |
-
|
3158 |
-
|
3159 |
-
|
3160 |
-
|
3161 |
-
$html = wppa_select($slug, $opts, $vals);
|
3162 |
-
$clas = '';
|
3163 |
-
$tags = 'thumb,meta,layout,upload';
|
3164 |
-
wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
$tags = 'cover,navi,album,layout';
|
3205 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
3206 |
-
|
3207 |
-
$name = __('Treecount', 'wp-photo-album-plus');
|
3208 |
-
$desc = __('Display the total number of (sub)albums and photos in subalbums', 'wp-photo-album-plus');
|
3209 |
-
$help = (__('Displays the total number of sub albums and photos in the entire album tree in parenthesis if the numbers differ from the direct content of the album.', 'wp-photo-album-plus'));
|
3210 |
-
$slug = 'wppa_show_treecount';
|
3211 |
-
$opts = array( __('none', 'wp-photo-album-plus'), __('detailed', 'wp-photo-album-plus'), __('totals only', 'wp-photo-album-plus'));
|
3212 |
-
$vals = array( '-none-', 'detail', 'total' );
|
3213 |
-
$html = wppa_select($slug, $opts, $vals);
|
3214 |
-
$clas = '';
|
3215 |
-
$tags = 'cover,album,layout';
|
3216 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
3217 |
Â
|
3218 |
-
|
3219 |
-
|
3220 |
-
|
3221 |
-
|
3222 |
-
|
3223 |
-
|
3224 |
-
$tags = 'cover,meta,album,layout';
|
3225 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
3226 |
Â
|
3227 |
-
|
3228 |
-
|
3229 |
-
|
3230 |
-
|
3231 |
-
|
3232 |
-
|
3233 |
-
|
3234 |
-
|
Â
|
|
Â
|
|
3235 |
Â
|
3236 |
-
|
3237 |
-
|
3238 |
-
|
3239 |
-
|
3240 |
-
|
3241 |
-
|
3242 |
-
|
3243 |
-
|
3244 |
-
$tags = 'cover,album,layout';
|
3245 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
3246 |
Â
|
3247 |
-
|
3248 |
-
|
3249 |
-
|
3250 |
-
|
3251 |
-
|
3252 |
-
|
3253 |
-
$html = wppa_select($slug, $opts, $vals);
|
3254 |
-
$clas = '';
|
3255 |
-
$tags = 'cover,album,layout';
|
3256 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
3257 |
Â
|
3258 |
-
|
3259 |
-
|
3260 |
-
|
3261 |
-
|
3262 |
-
|
3263 |
-
|
3264 |
-
$html = wppa_select($slug, $opts, $vals);
|
3265 |
-
$clas = '';
|
3266 |
-
$tags = 'cover,album,layout';
|
3267 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
3268 |
Â
|
3269 |
-
|
3270 |
-
|
3271 |
-
|
3272 |
-
|
3273 |
-
$desc = __('Enable invisible browsing buttons in widget slideshows.', 'wp-photo-album-plus');
|
3274 |
-
$help = (__('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus'));
|
3275 |
-
$help .= '<br />'.(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus'));
|
3276 |
-
$slug = 'wppa_show_bbb_widget';
|
3277 |
-
$html = wppa_checkbox($slug);
|
3278 |
-
$clas = '';
|
3279 |
-
$tags = 'widget,slide,layout,navi';
|
3280 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
3281 |
-
|
3282 |
-
$name = __('Ugly Browse Buttons in widget', 'wp-photo-album-plus');
|
3283 |
-
$desc = __('Enable ugly browsing buttons in widget slideshows.', 'wp-photo-album-plus');
|
3284 |
-
$help = (__('If checked, the fullsize image is covered by browse buttons.', 'wp-photo-album-plus'));
|
3285 |
-
$help .= '<br />'.(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus'));
|
3286 |
-
$slug = 'wppa_show_ubb_widget';
|
3287 |
-
$html = wppa_checkbox($slug);
|
3288 |
-
$clas = '';
|
3289 |
-
$tags = 'widget,slide,layout,navi';
|
3290 |
-
wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
|
3291 |
Â
|
3292 |
-
|
3293 |
-
|
3294 |
-
|
3295 |
-
|
3296 |
-
|
3297 |
-
|
3298 |
-
|
3299 |
-
|
3300 |
-
|
3301 |
-
|
3302 |
-
|
3303 |
-
|
3304 |
-
$desc = __('The color of the image border and text background.', 'wp-photo-album-plus');
|
3305 |
-
$help = '';
|
3306 |
-
$slug = 'wppa_ovl_theme';
|
3307 |
-
$options = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
|
3308 |
-
$values = array('black', 'white');
|
3309 |
-
$html = wppa_select($slug, $options, $values);
|
3310 |
-
$clas = '';
|
3311 |
-
$tags = 'lightbox,layout';
|
3312 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
3313 |
Â
|
3314 |
-
|
3315 |
-
|
3316 |
-
$help = '';
|
3317 |
-
$slug = 'wppa_ovl_bgcolor';
|
3318 |
-
$options = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
|
3319 |
-
$values = array('black', 'white');
|
3320 |
-
$html = wppa_select($slug, $options, $values);
|
3321 |
-
$clas = '';
|
3322 |
-
$tags = 'lightbox,layout';
|
3323 |
-
wppa_setting($slug, '2.1', $name, $desc, $html, $help, $clas, $tags);
|
3324 |
-
|
3325 |
-
$name = __('Overlay slide name', 'wp-photo-album-plus');
|
3326 |
-
$desc = __('Show name if from slide.', 'wp-photo-album-plus');
|
3327 |
-
$help = (__('Shows the photos name on a lightbox display when initiated from a slide.', 'wp-photo-album-plus'));
|
3328 |
-
$help .= '<br />'.(__('This setting also applies to film thumbnails if Table VI-B6a is set to lightbox overlay.', 'wp-photo-album-plus'));
|
3329 |
-
$slug = 'wppa_ovl_slide_name';
|
3330 |
-
$html = wppa_checkbox($slug);
|
3331 |
-
$clas = '';
|
3332 |
-
$tags = 'lightbox,slide,meta,layout';
|
3333 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
3334 |
-
|
3335 |
-
$name = __('Overlay slide desc', 'wp-photo-album-plus');
|
3336 |
-
$desc = __('Show description if from slide.', 'wp-photo-album-plus');
|
3337 |
-
$help = (__('Shows the photos description on a lightbox display when initiated from a slide.', 'wp-photo-album-plus'));
|
3338 |
-
$help .= '<br />'.(__('This setting also applies to film thumbnails if Table VI-B6a is set to lightbox overlay.', 'wp-photo-album-plus'));
|
3339 |
-
$slug = 'wppa_ovl_slide_desc';
|
3340 |
-
$html = wppa_checkbox($slug);
|
3341 |
-
$clas = '';
|
3342 |
-
$tags = 'lightbox,slide,meta,layout';
|
3343 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
3344 |
-
|
3345 |
-
$name = __('Overlay thumb name', 'wp-photo-album-plus');
|
3346 |
-
$desc = __('Show the photos name if from thumb.', 'wp-photo-album-plus');
|
3347 |
-
$help = (__('Shows the name on a lightbox display when initiated from a standard thumbnail or a widget thumbnail.', 'wp-photo-album-plus'));
|
3348 |
-
$help .= '<br />'.(__('This setting applies to standard thumbnails, thumbnail-, comment-, topten- and lasten-widget.', 'wp-photo-album-plus'));
|
3349 |
-
$slug = 'wppa_ovl_thumb_name';
|
3350 |
-
$html = wppa_checkbox($slug);
|
3351 |
-
$clas = '';
|
3352 |
-
$tags = 'lightbox,thumb,meta,layout';
|
3353 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
3354 |
-
|
3355 |
-
$name = __('Overlay thumb desc', 'wp-photo-album-plus');
|
3356 |
-
$desc = __('Show description if from thumb.', 'wp-photo-album-plus');
|
3357 |
-
$help = (__('Shows the photos description on a lightbox display when initiated from a standard thumbnail or a widget thumbnail.', 'wp-photo-album-plus'));
|
3358 |
-
$help .= '<br />'.(__('This setting applies to standard thumbnails, thumbnail-, comment-, topten- and lasten-widget.', 'wp-photo-album-plus'));
|
3359 |
-
$slug = 'wppa_ovl_thumb_desc';
|
3360 |
-
$html = wppa_checkbox($slug);
|
3361 |
-
$clas = '';
|
3362 |
-
$tags = 'lightbox,thumb,meta,layout';
|
3363 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
3364 |
-
|
3365 |
-
$name = __('Overlay potd name', 'wp-photo-album-plus');
|
3366 |
-
$desc = __('Show the photos name if from photo of the day.', 'wp-photo-album-plus');
|
3367 |
-
$help = (__('Shows the name on a lightbox display when initiated from the photo of the day.', 'wp-photo-album-plus'));
|
3368 |
-
$slug = 'wppa_ovl_potd_name';
|
3369 |
-
$html = wppa_checkbox($slug);
|
3370 |
-
$clas = '';
|
3371 |
-
$tags = 'lightbox,widget,meta,layout';
|
3372 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
3373 |
-
|
3374 |
-
$name = __('Overlay potd desc', 'wp-photo-album-plus');
|
3375 |
-
$desc = __('Show description if from from photo of the day.', 'wp-photo-album-plus');
|
3376 |
-
$help = (__('Shows the photos description on a lightbox display when initiated from the photo of the day.', 'wp-photo-album-plus'));
|
3377 |
-
$slug = 'wppa_ovl_potd_desc';
|
3378 |
-
$html = wppa_checkbox($slug);
|
3379 |
-
$clas = '';
|
3380 |
-
$tags = 'lightbox,widget,meta,layout';
|
3381 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
3382 |
-
|
3383 |
-
$name = __('Overlay sphoto name', 'wp-photo-album-plus');
|
3384 |
-
$desc = __('Show the photos name if from a single photo.', 'wp-photo-album-plus');
|
3385 |
-
$help = (__('Shows the name on a lightbox display when initiated from a single photo.', 'wp-photo-album-plus'));
|
3386 |
-
$slug = 'wppa_ovl_sphoto_name';
|
3387 |
-
$html = wppa_checkbox($slug);
|
3388 |
-
$clas = '';
|
3389 |
-
$tags = 'lightbox,meta,layout';
|
3390 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
3391 |
-
|
3392 |
-
$name = __('Overlay sphoto desc', 'wp-photo-album-plus');
|
3393 |
-
$desc = __('Show description if from from a single photo.', 'wp-photo-album-plus');
|
3394 |
-
$help = (__('Shows the photos description on a lightbox display when initiated from a single photo.', 'wp-photo-album-plus'));
|
3395 |
-
$slug = 'wppa_ovl_sphoto_desc';
|
3396 |
-
$html = wppa_checkbox($slug);
|
3397 |
-
$clas = '';
|
3398 |
-
$tags = 'lightbox,meta,layout';
|
3399 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
3400 |
-
|
3401 |
-
$name = __('Overlay mphoto name', 'wp-photo-album-plus');
|
3402 |
-
$desc = __('Show the photos name if from a single media style photo.', 'wp-photo-album-plus');
|
3403 |
-
$help = (__('Shows the name on a lightbox display when initiated from a single media style photo.', 'wp-photo-album-plus'));
|
3404 |
-
$slug = 'wppa_ovl_mphoto_name';
|
3405 |
-
$html = wppa_checkbox($slug);
|
3406 |
-
$clas = '';
|
3407 |
-
$tags = 'lightbox,meta,layout';
|
3408 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
3409 |
-
|
3410 |
-
$name = __('Overlay mphoto desc', 'wp-photo-album-plus');
|
3411 |
-
$desc = __('Show description if from from a media style photo.', 'wp-photo-album-plus');
|
3412 |
-
$help = (__('Shows the photos description on a lightbox display when initiated from a single media style photo.', 'wp-photo-album-plus'));
|
3413 |
-
$slug = 'wppa_ovl_mphoto_desc';
|
3414 |
-
$html = wppa_checkbox($slug);
|
3415 |
-
$clas = '';
|
3416 |
-
$tags = 'lightbox,meta,layout';
|
3417 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
3418 |
-
|
3419 |
-
$name = __('Overlay albumwidget name', 'wp-photo-album-plus');
|
3420 |
-
$desc = __('Show the photos name if from the album widget.', 'wp-photo-album-plus');
|
3421 |
-
$help = (__('Shows the name on a lightbox display when initiated from the album widget.', 'wp-photo-album-plus'));
|
3422 |
-
$slug = 'wppa_ovl_alw_name';
|
3423 |
-
$html = wppa_checkbox($slug);
|
3424 |
-
$clas = '';
|
3425 |
-
$tags = 'lightbox,meta,widget,layout';
|
3426 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
3427 |
-
|
3428 |
-
$name = __('Overlay albumwidget desc', 'wp-photo-album-plus');
|
3429 |
-
$desc = __('Show description if from from the album widget.', 'wp-photo-album-plus');
|
3430 |
-
$help = (__('Shows the photos description on a lightbox display when initiated from the album widget.', 'wp-photo-album-plus'));
|
3431 |
-
$slug = 'wppa_ovl_alw_desc';
|
3432 |
-
$html = wppa_checkbox($slug);
|
3433 |
-
$clas = '';
|
3434 |
-
$tags = 'lightbox,meta,widget,layout';
|
3435 |
-
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
3436 |
-
|
3437 |
-
$name = __('Overlay coverphoto name', 'wp-photo-album-plus');
|
3438 |
-
$desc = __('Show the photos name if from the album cover.', 'wp-photo-album-plus');
|
3439 |
-
$help = (__('Shows the name on a lightbox display when initiated from the album coverphoto.', 'wp-photo-album-plus'));
|
3440 |
-
$slug = 'wppa_ovl_cover_name';
|
3441 |
-
$html = wppa_checkbox($slug);
|
3442 |
-
$clas = '';
|
3443 |
-
$tags = 'lightbox,meta,cover,album,layout';
|
3444 |
-
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
3445 |
-
|
3446 |
-
$name = __('Overlay coverphoto desc', 'wp-photo-album-plus');
|
3447 |
-
$desc = __('Show description if from from the album cover.', 'wp-photo-album-plus');
|
3448 |
-
$help = (__('Shows the photos description on a lightbox display when initiated from the album coverphoto.', 'wp-photo-album-plus'));
|
3449 |
-
$slug = 'wppa_ovl_cover_desc';
|
3450 |
-
$html = wppa_checkbox($slug);
|
3451 |
-
$clas = '';
|
3452 |
-
$tags = 'lightbox,meta,cover,album,layout';
|
3453 |
-
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
3454 |
-
|
3455 |
-
$name = __('Overlay add owner', 'wp-photo-album-plus');
|
3456 |
-
$desc = __('Add the owner to the photo name on lightbox displays.', 'wp-photo-album-plus');
|
3457 |
-
$help = (__('This setting is independant of the show name switches and is a global setting.', 'wp-photo-album-plus'));
|
3458 |
-
$slug = 'wppa_ovl_add_owner';
|
3459 |
-
$html = wppa_checkbox($slug);
|
3460 |
-
$clas = '';
|
3461 |
-
$tags = 'lightbox,meta,layout';
|
3462 |
-
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
3463 |
Â
|
3464 |
-
|
3465 |
-
|
3466 |
-
|
3467 |
-
|
3468 |
-
|
3469 |
-
|
3470 |
-
|
3471 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3472 |
Â
|
3473 |
-
$name = __('Overlay show counter', 'wp-photo-album-plus');
|
3474 |
-
$desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus');
|
3475 |
-
$help = '';
|
3476 |
-
$slug = 'wppa_ovl_show_counter';
|
3477 |
-
$html = wppa_checkbox($slug);
|
3478 |
-
$clas = '';
|
3479 |
-
$tags = 'lightbox,layout';
|
3480 |
-
wppa_setting($slug, '90', $name, $desc, $html, $help, $clas, $tags);
|
3481 |
-
|
3482 |
-
$name = __('Show Zoom in', 'wp-photo-album-plus');
|
3483 |
-
$desc = __('Display tooltip "Zoom in" along with the magnifier cursor.', 'wp-photo-album-plus');
|
3484 |
-
$help = (__('If you select ---none--- in Table I-G2 for magnifier size, the tooltop contains the photo name.', 'wp-photo-album-plus') );
|
3485 |
-
$slug = 'wppa_show_zoomin';
|
3486 |
-
$html = wppa_checkbox($slug);
|
3487 |
-
$clas = '';
|
3488 |
-
$tags = 'lightbox,meta,layout';
|
3489 |
-
wppa_setting($slug, '91', $name, $desc, $html, $help, $clas, $tags);
|
3490 |
Â
|
3491 |
-
|
3492 |
-
wppa_setting_subheader( 'H', '1', __( 'Frontend upload configuration settings' , 'wp-photo-album-plus') );
|
3493 |
-
{
|
3494 |
Â
|
3495 |
-
|
3496 |
-
|
3497 |
-
|
3498 |
-
|
3499 |
-
|
3500 |
-
|
3501 |
-
|
3502 |
-
|
3503 |
-
|
3504 |
-
|
3505 |
-
$desc = __('Show a copyright warning on frontend upload locations.', 'wp-photo-album-plus');
|
3506 |
-
$help = '';
|
3507 |
-
$slug = 'wppa_copyright_on';
|
3508 |
-
$onchange = 'wppaFollow(\'copyright_on\',\'wppa_up_wm\')';
|
3509 |
-
$html = wppa_checkbox($slug, $onchange);
|
3510 |
-
$clas = 'wppa_feup';
|
3511 |
-
$tags = 'upload,layout';
|
3512 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
3513 |
-
|
3514 |
-
$name = __('Copyright notice', 'wp-photo-album-plus');
|
3515 |
-
$desc = __('The message to be displayed.', 'wp-photo-album-plus');
|
3516 |
-
$help = '';
|
3517 |
-
$slug = 'wppa_copyright_notice';
|
3518 |
-
$html = wppa_textarea($slug, $name);
|
3519 |
-
$clas = 'wppa_feup wppa_up_wm';
|
3520 |
-
$tags = 'upload,layout';
|
3521 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
3522 |
-
|
3523 |
-
$name = __('User Watermark', 'wp-photo-album-plus');
|
3524 |
-
$desc = __('Uploading users may select watermark settings', 'wp-photo-album-plus');
|
3525 |
-
$help = (__('If checked, anyone who can upload and/or import photos can overrule the default watermark settings.', 'wp-photo-album-plus'));
|
3526 |
-
$slug = 'wppa_watermark_user';
|
3527 |
-
$html = wppa_checkbox($slug);
|
3528 |
-
$clas = 'wppa_watermark wppa_feup';
|
3529 |
-
$tags = 'water,upload';
|
3530 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
3531 |
-
|
3532 |
-
$name = __('User name', 'wp-photo-album-plus');
|
3533 |
-
$desc = __('Uploading users may overrule the default name.', 'wp-photo-album-plus');
|
3534 |
-
$help = (__('If checked, the default photo name as defined in Table IX-D13 may be overruled by the user.', 'wp-photo-album-plus'));
|
3535 |
-
$slug1 = 'wppa_name_user';
|
3536 |
-
$slug2 = 'wppa_name_user_mandatory';
|
3537 |
-
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
3538 |
-
$clas = 'wppa_feup';
|
3539 |
-
$tags = 'upload';
|
3540 |
-
wppa_setting($slug1, '7', $name, $desc, $html, $help, $clas, $tags);
|
3541 |
-
|
3542 |
-
$name = __('Apply Newphoto desc user', 'wp-photo-album-plus');
|
3543 |
-
$desc = __('Give each new frontend uploaded photo a standard description.', 'wp-photo-album-plus');
|
3544 |
-
$help = (__('If checked, each new photo will get the description (template) as specified in Table IX-D5.', 'wp-photo-album-plus'));
|
3545 |
-
$help .= '<br />'.(__('Note: If the next item is checked, the user can overwrite this', 'wp-photo-album-plus'));
|
3546 |
-
$slug = 'wppa_apply_newphoto_desc_user';
|
3547 |
-
$html = wppa_checkbox($slug);
|
3548 |
-
$clas = 'wppa_feup';
|
3549 |
-
$tags = 'upload';
|
3550 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
3551 |
-
|
3552 |
-
$name = __('User desc', 'wp-photo-album-plus');
|
3553 |
-
$desc = __('Uploading users may overrule the default description.', 'wp-photo-album-plus');
|
3554 |
-
$help = '';
|
3555 |
-
$slug1 = 'wppa_desc_user';
|
3556 |
-
$slug2 = 'wppa_desc_user_mandatory';
|
3557 |
-
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
3558 |
-
$clas = 'wppa_feup';
|
3559 |
-
$tags = 'upload';
|
3560 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
3561 |
-
|
3562 |
-
$name = __('User upload custom', 'wp-photo-album-plus');
|
3563 |
-
$desc = __('Frontend upload can fill in custom data fields.', 'wp-photo-album-plus');
|
3564 |
-
$help = __('Custom datafields can be defined in Table II-J10', 'wp-photo-album-plus');
|
3565 |
-
$slug = 'wppa_fe_custom_fields';
|
3566 |
-
$html = wppa_checkbox($slug);
|
3567 |
-
$clas = 'wppa_feup custfields';
|
3568 |
-
$tags = 'upload';
|
3569 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
3570 |
-
|
3571 |
-
$name = __('User upload tags', 'wp-photo-album-plus');
|
3572 |
-
$desc = __('Frontend upload can add tags.', 'wp-photo-album-plus');
|
3573 |
-
$help = (__('You can configure the details of tag addition in Table IX-D18.x', 'wp-photo-album-plus'));
|
3574 |
-
$slug = 'wppa_fe_upload_tags';
|
3575 |
-
$onchange = 'wppaFollow(\'fe_upload_tags\', \'wppa_up_tags\');';
|
3576 |
-
$html = wppa_checkbox($slug, $onchange);
|
3577 |
-
$clas = 'wppa_feup';
|
3578 |
-
$tags = 'upload';
|
3579 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
3580 |
-
|
3581 |
-
$name = __('Tag selection box', 'wp-photo-album-plus').' 1';
|
3582 |
-
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
3583 |
-
$help = '';
|
3584 |
-
$slug1 = 'wppa_up_tagselbox_on_1';
|
3585 |
-
$slug2 = 'wppa_up_tagselbox_multi_1';
|
3586 |
-
$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);
|
3587 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3588 |
-
$tags = 'upload';
|
3589 |
-
wppa_setting($slug, '11.1ab', $name, $desc, $html, $help, $clas, $tags);
|
3590 |
-
|
3591 |
-
$name = __('Caption box', 'wp-photo-album-plus').' 1';
|
3592 |
-
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
3593 |
-
$help = '';
|
3594 |
-
$slug = 'wppa_up_tagselbox_title_1';
|
3595 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3596 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3597 |
-
$tags = 'upload';
|
3598 |
-
wppa_setting($slug, '11.1c', $name, $desc, $html, $help, $clas, $tags);
|
3599 |
-
|
3600 |
-
$name = __('Tags box', 'wp-photo-album-plus').' 1';
|
3601 |
-
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
3602 |
-
$help = (__('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus'));
|
3603 |
-
$slug = 'wppa_up_tagselbox_content_1';
|
3604 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3605 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3606 |
-
$tags = 'upload';
|
3607 |
-
wppa_setting($slug, '11.1d', $name, $desc, $html, $help, $clas, $tags);
|
3608 |
-
|
3609 |
-
$name = __('Tag selection box', 'wp-photo-album-plus').' 2';
|
3610 |
-
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
3611 |
-
$help = '';
|
3612 |
-
$slug1 = 'wppa_up_tagselbox_on_2';
|
3613 |
-
$slug2 = 'wppa_up_tagselbox_multi_2';
|
3614 |
-
$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);
|
3615 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3616 |
-
$tags = 'upload';
|
3617 |
-
wppa_setting($slug, '11.2ab', $name, $desc, $html, $help, $clas, $tags);
|
3618 |
-
|
3619 |
-
$name = __('Caption box', 'wp-photo-album-plus').' 2';
|
3620 |
-
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
3621 |
-
$help = '';
|
3622 |
-
$slug = 'wppa_up_tagselbox_title_2';
|
3623 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3624 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3625 |
-
$tags = 'upload';
|
3626 |
-
wppa_setting($slug, '11.2c', $name, $desc, $html, $help, $clas, $tags);
|
3627 |
-
|
3628 |
-
$name = __('Tags box', 'wp-photo-album-plus').' 2';
|
3629 |
-
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
3630 |
-
$help = (__('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus'));
|
3631 |
-
$slug = 'wppa_up_tagselbox_content_2';
|
3632 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3633 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3634 |
-
$tags = 'upload';
|
3635 |
-
wppa_setting($slug, '11.2d', $name, $desc, $html, $help, $clas, $tags);
|
3636 |
-
|
3637 |
-
$name = __('Tag selection box', 'wp-photo-album-plus').' 3';
|
3638 |
-
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
3639 |
-
$help = '';
|
3640 |
-
$slug1 = 'wppa_up_tagselbox_on_3';
|
3641 |
-
$slug2 = 'wppa_up_tagselbox_multi_3';
|
3642 |
-
$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);
|
3643 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3644 |
-
$tags = 'upload';
|
3645 |
-
wppa_setting($slug, '11.3ab', $name, $desc, $html, $help, $clas, $tags);
|
3646 |
-
|
3647 |
-
$name = __('Caption box', 'wp-photo-album-plus').' 3';
|
3648 |
-
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
3649 |
-
$help = '';
|
3650 |
-
$slug = 'wppa_up_tagselbox_title_3';
|
3651 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3652 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3653 |
-
$tags = 'upload';
|
3654 |
-
wppa_setting($slug, '11.3c', $name, $desc, $html, $help, $clas, $tags);
|
3655 |
-
|
3656 |
-
$name = __('Tags box', 'wp-photo-album-plus').' 3';
|
3657 |
-
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
3658 |
-
$help = (__('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus'));
|
3659 |
-
$slug = 'wppa_up_tagselbox_content_3';
|
3660 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3661 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3662 |
-
$tags = 'upload';
|
3663 |
-
wppa_setting($slug, '11.3d', $name, $desc, $html, $help, $clas, $tags);
|
3664 |
-
|
3665 |
-
$name = __('New tags', 'wp-photo-album-plus');
|
3666 |
-
$desc = __('Input field for any user defined tags.', 'wp-photo-album-plus');
|
3667 |
-
$help = '';
|
3668 |
-
$slug = 'wppa_up_tag_input_on';
|
3669 |
-
$html = wppa_checkbox($slug);
|
3670 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3671 |
-
$tags = 'upload';
|
3672 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
3673 |
-
|
3674 |
-
$name = __('New tags caption', 'wp-photo-album-plus');
|
3675 |
-
$desc = __('The caption above the tags input field.', 'wp-photo-album-plus');
|
3676 |
-
$help = '';
|
3677 |
-
$slug = 'wppa_up_tag_input_title';
|
3678 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3679 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3680 |
-
$tags = 'upload';
|
3681 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
3682 |
-
|
3683 |
-
$name = __('Tags box New', 'wp-photo-album-plus');
|
3684 |
-
$desc = __('The tags in the New tags input box.', 'wp-photo-album-plus');
|
3685 |
-
$help = '';
|
3686 |
-
$slug = 'wppa_up_tagbox_new';
|
3687 |
-
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
3688 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3689 |
-
$tags = 'upload';
|
3690 |
-
wppa_setting($slug, '13.1', $name, $desc, $html, $help, $clas, $tags);
|
3691 |
-
|
3692 |
-
$name = __('Preview tags', 'wp-photo-album-plus');
|
3693 |
-
$desc = __('Show a preview of all tags that will be added to the photo info.', 'wp-photo-album-plus');
|
3694 |
-
$help = '';
|
3695 |
-
$slug = 'wppa_up_tag_preview';
|
3696 |
-
$html = wppa_checkbox($slug);
|
3697 |
-
$clas = 'wppa_feup wppa_up_tags';
|
3698 |
-
$tags = 'upload';
|
3699 |
-
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
3700 |
-
|
3701 |
-
$name = __('Camera connect', 'wp-photo-album-plus');
|
3702 |
-
$desc = __('Connect frontend upload to camara on mobile devices with camera', 'wp-photo-album-plus');
|
3703 |
-
$help = '';
|
3704 |
-
$slug = 'wppa_camera_connect';
|
3705 |
-
$html = wppa_checkbox($slug);
|
3706 |
-
$clas = 'wppa_feup';
|
3707 |
-
$tags = 'upload';
|
3708 |
-
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
3709 |
-
|
3710 |
-
$name = __('Blog It!', 'wp-photo-album-plus');
|
3711 |
-
$desc = __('Enable blogging photos.', 'wp-photo-album-plus');
|
3712 |
-
$help = ( __('Users need the capability edit_posts to directly blog photos.', 'wp-photo-album-plus'));
|
3713 |
-
$slug = 'wppa_blog_it';
|
3714 |
-
$opts = array( __('disabled', 'wp-photo-album-plus'),
|
3715 |
-
__('optional', 'wp-photo-album-plus'),
|
3716 |
-
__('always', 'wp-photo-album-plus'),
|
3717 |
Â
);
|
3718 |
-
|
3719 |
-
|
3720 |
-
|
3721 |
-
|
3722 |
-
|
3723 |
-
|
3724 |
-
|
3725 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3726 |
Â
|
3727 |
-
|
3728 |
-
$desc = __('Posts with blogged photos need moderation.', 'wp-photo-album-plus');
|
3729 |
-
$help = '';
|
3730 |
-
$slug = 'wppa_blog_it_moderate';
|
3731 |
-
$html = wppa_checkbox($slug);
|
3732 |
-
$clas = 'wppa_feup';
|
3733 |
-
$tags = 'upload';
|
3734 |
-
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
3735 |
-
|
3736 |
-
$name = __('Blog It shortcode', 'wp-photo-album-plus');
|
3737 |
-
$desc = __('Shortcode to be used on the blog post', 'wp-photo-album-plus');
|
3738 |
-
$help = (__('Make sure it contains photo="#id"', 'wp-photo-album-plus'));
|
3739 |
-
$slug = 'wppa_blog_it_shortcode';
|
3740 |
-
$html = wppa_input($slug, '85%');
|
3741 |
-
$clas = 'wppa_feup';
|
3742 |
-
$tags = 'upload';
|
3743 |
-
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
3744 |
Â
|
3745 |
-
|
3746 |
-
|
3747 |
-
|
3748 |
-
$name = __('Frontend ending label', 'wp-photo-album-plus');
|
3749 |
-
$desc = __('Frontend upload / create / edit dialog closing label text.', 'wp-photo-album-plus');
|
3750 |
-
$help = '';
|
3751 |
-
$slug = 'wppa_close_text';
|
3752 |
-
$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') );
|
3753 |
-
$vals = array( 'Abort', 'Cancel', 'Close', 'Exit', 'Quit' );
|
3754 |
-
$html = wppa_select($slug, $opts, $vals);
|
3755 |
-
$clas = '';
|
3756 |
-
$tags = 'layout';
|
3757 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
3758 |
Â
|
3759 |
-
|
3760 |
-
|
3761 |
-
$
|
3762 |
-
$
|
3763 |
-
$html = wppa_checkbox($slug);
|
3764 |
-
$clas = '';
|
3765 |
-
$tags = 'layout,meta';
|
3766 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
3767 |
Â
|
3768 |
-
$
|
3769 |
-
|
3770 |
-
|
3771 |
-
$slug = 'wppa_album_custom_fields';
|
3772 |
-
$onch = 'wppaCheckCheck(\''.$slug.'\', \'albumcustfields\' )';
|
3773 |
-
$html = wppa_checkbox($slug, $onch);
|
3774 |
-
$clas = '';
|
3775 |
-
$tags = 'meta';
|
3776 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
3777 |
-
|
3778 |
-
for ( $i = '0'; $i < '10'; $i++ ) {
|
3779 |
-
$name = sprintf(__('Name, vis, edit %s', 'wp-photo-album-plus'), $i);
|
3780 |
-
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus'), $i);
|
3781 |
-
$help = (sprintf(__('If you check the first box, the value of this field is displayable in photo descriptions at the frontend with keyword w#c%s', 'wp-photo-album-plus'), $i));
|
3782 |
-
$help .= '<br />'.(__('If you check the second box, the value of this field is editable at the frontend new style dialog.', 'wp-photo-album-plus'));
|
3783 |
-
$slug1 = 'wppa_album_custom_caption_'.$i;
|
3784 |
-
$html1 = wppa_input($slug1, '300px');
|
3785 |
-
$slug2 = 'wppa_album_custom_visible_'.$i;
|
3786 |
-
$html2 = wppa_checkbox($slug2);
|
3787 |
-
$slug3 = 'wppa_album_custom_edit_'.$i;
|
3788 |
-
$html3 = wppa_checkbox($slug3);
|
3789 |
-
$clas = 'albumcustfields';
|
3790 |
-
$tags = 'meta';
|
3791 |
-
wppa_setting(array($slug1,$slug2,$slug3), '9.'.$i.'a,b,c', $name, $desc, $html1.$html2.$html3, $help, $clas, $tags);
|
3792 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3793 |
Â
|
3794 |
-
|
3795 |
-
$desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus');
|
3796 |
-
$help = '';
|
3797 |
-
$slug = 'wppa_custom_fields';
|
3798 |
-
$onch = 'wppaCheckCheck(\''.$slug.'\', \'custfields\' )';
|
3799 |
-
$html = wppa_checkbox($slug, $onch);
|
3800 |
-
$clas = '';
|
3801 |
-
$tags = 'meta';
|
3802 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
3803 |
-
|
3804 |
-
$opts = array( '',
|
3805 |
-
'Graphic name',
|
3806 |
-
'Creation date',
|
3807 |
-
'Photographer',
|
3808 |
-
'City',
|
3809 |
-
'State (Provinve)',
|
3810 |
-
'Country',
|
3811 |
-
'Sublocation',
|
3812 |
-
'Subloc, City, State, Country',
|
3813 |
-
'Source',
|
3814 |
-
'Copyright',
|
3815 |
-
'Caption',
|
3816 |
-
'--- multiline ---',
|
3817 |
-
);
|
3818 |
Â
|
3819 |
-
|
3820 |
-
|
3821 |
-
'2#055',
|
3822 |
-
'2#080',
|
3823 |
-
'2#090',
|
3824 |
-
'2#095',
|
3825 |
-
'2#101',
|
3826 |
-
'2#092',
|
3827 |
-
'2#092, 2#090, 2#095, 2#101',
|
3828 |
-
'2#115',
|
3829 |
-
'2#116',
|
3830 |
-
'2#120',
|
3831 |
-
'multi',
|
3832 |
-
);
|
3833 |
Â
|
3834 |
-
|
3835 |
-
|
3836 |
-
const EDIT_STATUS = '007';
|
3837 |
-
const PRIORITY = '010';
|
3838 |
-
const CATEGORY = '015';
|
3839 |
-
const SUPPLEMENTAL_CATEGORY = '020';
|
3840 |
-
const FIXTURE_IDENTIFIER = '022';
|
3841 |
-
const KEYWORDS = '025';
|
3842 |
-
const RELEASE_DATE = '030';
|
3843 |
-
const RELEASE_TIME = '035';
|
3844 |
-
const SPECIAL_INSTRUCTIONS = '040';
|
3845 |
-
const REFERENCE_SERVICE = '045';
|
3846 |
-
const REFERENCE_DATE = '047';
|
3847 |
-
const REFERENCE_NUMBER = '050';
|
3848 |
-
const CREATED_DATE = '055';
|
3849 |
-
const CREATED_TIME = '060';
|
3850 |
-
const ORIGINATING_PROGRAM = '065';
|
3851 |
-
const PROGRAM_VERSION = '070';
|
3852 |
-
const OBJECT_CYCLE = '075';
|
3853 |
-
const CREATOR = '080';
|
3854 |
-
const CITY = '090';
|
3855 |
-
const PROVINCE_STATE = '095';
|
3856 |
-
const COUNTRY_CODE = '100';
|
3857 |
-
const COUNTRY = '101';
|
3858 |
-
const ORIGINAL_TRANSMISSION_REFERENCE = '103';
|
3859 |
-
const HEADLINE = '105';
|
3860 |
-
const CREDIT = '110';
|
3861 |
-
const SOURCE = '115';
|
3862 |
-
const COPYRIGHT_STRING = '116';
|
3863 |
-
const CAPTION = '120';
|
3864 |
-
const LOCAL_CAPTION = '121';
|
3865 |
-
const CAPTION_WRITER = '122';
|
3866 |
-
*/
|
3867 |
-
|
3868 |
-
for ( $i = '0'; $i < '10'; $i++ ) {
|
3869 |
-
$name = sprintf(__('Name, vis, edit %s dflt', 'wp-photo-album-plus'), $i);
|
3870 |
-
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus'), $i);
|
3871 |
-
$help = (sprintf(__('If you check the first box, the value of this field is displayable in photo descriptions at the frontend with keyword w#c%s', 'wp-photo-album-plus'), $i));
|
3872 |
-
$help .= '<br />'.(__('If you check the second box, the value of this field is editable at the frontend new style dialog.', 'wp-photo-album-plus'));
|
3873 |
-
$slug1 = 'wppa_custom_caption_'.$i;
|
3874 |
-
$html1 = wppa_input($slug1, '300px');
|
3875 |
-
$slug2 = 'wppa_custom_visible_'.$i;
|
3876 |
-
$html2 = wppa_checkbox($slug2);
|
3877 |
-
$slug3 = 'wppa_custom_edit_'.$i;
|
3878 |
-
$html3 = wppa_checkbox($slug3);
|
3879 |
-
$slug4 = 'wppa_custom_default_'.$i;
|
3880 |
-
$html4 = wppa_select($slug4, $opts, $vals);
|
3881 |
-
$clas = 'custfields';
|
3882 |
-
$tags = 'meta';
|
3883 |
-
wppa_setting(array($slug1,$slug2,$slug3,$slug4), '10.'.$i.'a,b,c', $name, $desc, $html1.$html2.$html3.$html4, $help, $clas, $tags);
|
3884 |
-
}
|
3885 |
-
}
|
3886 |
Â
|
3887 |
-
|
3888 |
-
$desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
|
3889 |
-
$help = (__('Use gif/png if you have excessive pageload times due to many slideshows on a page', 'wp-photo-album-plus'));
|
3890 |
-
$slug = 'wppa_icon_corner_style';
|
3891 |
-
$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'));
|
3892 |
-
$vals = array('none', 'light', 'medium', 'heavy', 'gif');
|
3893 |
-
$html = wppa_select($slug, $opts, $vals);
|
3894 |
-
$clas = '';
|
3895 |
-
$tags = 'layout,navi';
|
3896 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
3897 |
-
|
3898 |
-
$name = __('Spinner design', 'wp-photo-album-plus');
|
3899 |
-
$desc = __('Shape of the loader symbol', 'wp-photo-album-plus');
|
3900 |
-
$help = __('This works only when Table II-J11 is set to any svg style', 'wp-photo-album-plus');
|
3901 |
-
$slug = 'wppa_spinner_shape';
|
3902 |
-
$opts = array( __('default', 'wp-photo-album-plus'),
|
3903 |
-
'puff',
|
3904 |
-
'rings',
|
3905 |
-
'tail-spin',
|
3906 |
-
'three-dots',
|
3907 |
-
'ball-triangle',
|
3908 |
-
'spinning-circles',
|
3909 |
-
'oval',
|
3910 |
-
'hearts',
|
3911 |
-
'grid',
|
3912 |
-
'circles',
|
3913 |
-
'bars',
|
3914 |
-
'audio',
|
3915 |
-
);
|
3916 |
-
$vals = array( 'default',
|
3917 |
-
'puff',
|
3918 |
-
'rings',
|
3919 |
-
'tail-spin',
|
3920 |
-
'three-dots',
|
3921 |
-
'ball-triangle',
|
3922 |
-
'spinning-circles',
|
3923 |
-
'oval',
|
3924 |
-
'hearts',
|
3925 |
-
'grid',
|
3926 |
-
'circles',
|
3927 |
-
'bars',
|
3928 |
-
'audio',
|
3929 |
-
);
|
3930 |
-
$html = wppa_select($slug, $opts, $vals) .
|
3931 |
-
__('Frontend', 'wp-photo-album-plus') . ': <span id="wppa-spin-pre-1" > </span>' .
|
3932 |
-
__('Lightbox', 'wp-photo-album-plus') . ': <span id="wppa-spin-pre-2" > </span>';
|
3933 |
-
$clas = '';
|
3934 |
-
$tags = 'layout,navi';
|
3935 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
|
3980 |
-
|
3981 |
-
|
3982 |
-
|
3983 |
-
|
3984 |
-
|
3985 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
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 |
-
$desc = __('Fullsize Slideshow Photos.', 'wp-photo-album-plus');
|
4070 |
-
$help = '';
|
4071 |
-
$help .= '<br />'.(__('The colors may be equal or "transparent"', 'wp-photo-album-plus'));
|
4072 |
-
$help .= '<br />'.(__('For more information about slideshow image borders see the help on Table I-B4', 'wp-photo-album-plus'));
|
4073 |
-
$slug1 = 'wppa_bgcolor_fullimg';
|
4074 |
-
$slug2 = 'wppa_bcolor_fullimg';
|
4075 |
-
$slug = array($slug1, $slug2);
|
4076 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4077 |
-
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
4078 |
-
$html = array($html1, $html2);
|
4079 |
-
$clas = '';
|
4080 |
-
$tags = 'slide,layout';
|
4081 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
4082 |
Â
|
4083 |
-
|
4084 |
-
|
4085 |
-
|
4086 |
-
|
4087 |
-
|
4088 |
-
|
4089 |
-
|
4090 |
-
|
4091 |
-
|
4092 |
-
|
4093 |
-
|
4094 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4095 |
Â
|
4096 |
-
$name = __('Numbar active', 'wp-photo-album-plus');
|
4097 |
-
$desc = __('Number bar active box background.', 'wp-photo-album-plus');
|
4098 |
Â
$help = '';
|
4099 |
-
$slug1 = '
|
4100 |
-
$slug2 = '
|
4101 |
-
$slug = array($slug1, $slug2);
|
4102 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4103 |
-
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
4104 |
-
$html = array($html1, $html2);
|
4105 |
-
$clas = 'wppa_numbar';
|
4106 |
-
$tags = 'slide,layout';
|
4107 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
4108 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4109 |
Â
}
|
4110 |
-
wppa_setting_subheader( 'B', '4', __('Other backgrounds and colors' , 'wp-photo-album-plus') );
|
4111 |
-
{
|
4112 |
-
|
4113 |
-
$name = __('Thumbnail padding', 'wp-photo-album-plus');
|
4114 |
-
$desc = __('Thumbnail padding color if thumbnail aspect is a padded setting.', 'wp-photo-album-plus');
|
4115 |
-
$help = (__('Enter valid CSS color hexadecimal like #000000 for black or #ffffff for white for the padded thumbnails.', 'wp-photo-album-plus'));
|
4116 |
-
$slug1 = 'wppa_bgcolor_thumbnail';
|
4117 |
-
$slug2 = '';
|
4118 |
-
$slug = array($slug1, $slug2);
|
4119 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4120 |
-
$html2 = '</td><td>';//wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
4121 |
-
$html = array($html1, $html2);
|
4122 |
-
$clas = '';
|
4123 |
-
$tags = 'layout,thumb';
|
4124 |
-
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
4125 |
-
|
4126 |
-
$name = __('Img', 'wp-photo-album-plus');
|
4127 |
-
$desc = __('Cover Photos and popups.', 'wp-photo-album-plus');
|
4128 |
-
$help = (__('Enter valid CSS colors for Cover photo and popup backgrounds and borders.', 'wp-photo-album-plus'));
|
4129 |
-
$slug1 = 'wppa_bgcolor_img';
|
4130 |
-
$slug2 = 'wppa_bcolor_img';
|
4131 |
-
$slug = array($slug1, $slug2);
|
4132 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4133 |
-
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
4134 |
-
$html = array($html1, $html2);
|
4135 |
-
$clas = '';
|
4136 |
-
$tags = 'layout,cover,album';
|
4137 |
-
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
4138 |
-
|
4139 |
-
|
4140 |
-
$name = __('Modal render box', 'wp-photo-album-plus');
|
4141 |
-
$desc = __('The background for the Ajax modal rendering box.', 'wp-photo-album-plus');
|
4142 |
-
$help = (__('Recommended color: your theme background color.', 'wp-photo-album-plus'));
|
4143 |
-
$slug1 = 'wppa_bgcolor_modal';
|
4144 |
-
$slug2 = 'wppa_bcolor_modal';
|
4145 |
-
$slug = array($slug1, $slug2);
|
4146 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4147 |
-
$html2 = '</td><td>';
|
4148 |
-
$html = array($html1, $html2);
|
4149 |
-
$clas = '';
|
4150 |
-
$tags = 'layout';
|
4151 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
4152 |
Â
|
4153 |
-
$
|
4154 |
-
$
|
4155 |
-
$
|
4156 |
-
$slug1 = 'wppa_svg_bg_color';
|
4157 |
-
$slug2 = 'wppa_svg_color';
|
4158 |
-
$slug = array($slug1, $slug2);
|
4159 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4160 |
-
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
4161 |
Â
$html = array($html1, $html2);
|
4162 |
-
$
|
4163 |
-
$
|
4164 |
-
|
Â
|
|
4165 |
Â
|
4166 |
-
|
4167 |
-
|
4168 |
-
$help = '';
|
4169 |
-
$slug1 = 'wppa_ovl_svg_bg_color';
|
4170 |
-
$slug2 = 'wppa_ovl_svg_color';
|
4171 |
-
$slug = array($slug1, $slug2);
|
4172 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4173 |
-
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
4174 |
-
$html = array($html1, $html2);
|
4175 |
-
$clas = 'svg';
|
4176 |
-
$tags = 'layout,navi';
|
4177 |
-
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
4178 |
Â
|
4179 |
-
|
4180 |
-
$desc = __('The upper right corner fullscreen button.', 'wp-photo-album-plus');
|
4181 |
-
$help = '';
|
4182 |
-
$slug1 = 'wppa_fs_svg_bg_color';
|
4183 |
-
$slug2 = 'wppa_fs_svg_color';
|
4184 |
-
$slug = array($slug1, $slug2);
|
4185 |
-
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
4186 |
-
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
4187 |
-
$html = array($html1, $html2);
|
4188 |
-
$clas = 'svg';
|
4189 |
-
$tags = 'layout,navi';
|
4190 |
-
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
4191 |
Â
|
4192 |
-
|
4193 |
-
|
4194 |
-
|
4195 |
-
|
4196 |
-
|
4197 |
-
|
4198 |
-
|
4199 |
-
|
4200 |
-
|
4201 |
-
|
4202 |
-
|
4203 |
-
|
4204 |
-
|
4205 |
-
|
4206 |
-
|
4207 |
-
|
4208 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4209 |
Â
|
4210 |
-
|
4211 |
-
|
4212 |
-
'4',
|
4213 |
-
__('Table IV:', 'wp-photo-album-plus').' '.__('Behaviour:', 'wp-photo-album-plus').' '.
|
4214 |
-
__('This table describes the dynamic behaviour of certain wppa+ elements.', 'wp-photo-album-plus')
|
4215 |
-
); ?>
|
4216 |
-
|
4217 |
-
<div id="wppa_table_4" style="display:none" >
|
4218 |
-
<table class="widefat wppa-table wppa-setting-table">
|
4219 |
-
<thead style="font-weight: bold; " class="wppa_table_4">
|
4220 |
-
<tr>
|
4221 |
-
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
4222 |
-
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
4223 |
-
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
4224 |
-
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
4225 |
-
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
4226 |
-
</tr>
|
4227 |
-
</thead>
|
4228 |
-
<tbody class="wppa_table_4">
|
4229 |
-
<?php
|
4230 |
-
$wppa_table = 'IV';
|
4231 |
-
|
4232 |
-
wppa_setting_subheader( 'A', '1', __( 'System related settings' , 'wp-photo-album-plus') );
|
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 |
-
|
4261 |
-
|
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 |
-
|
4292 |
-
|
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 |
-
$desc = __('When encrypted is enabled, refuse unencrypted urls.', 'wp-photo-album-plus');
|
4322 |
-
$help = '';
|
4323 |
-
$slug = 'wppa_refuse_unencrypted';
|
4324 |
-
$html = wppa_checkbox($slug);
|
4325 |
-
$clas = '';
|
4326 |
-
$tags = 'link,system';
|
4327 |
-
wppa_setting($slug, '6.2', $name, $desc, $html, $help, $clas, $tags);
|
4328 |
-
|
4329 |
-
$name = __('Update addressline', 'wp-photo-album-plus');
|
4330 |
-
$desc = __('Update the addressline after an ajax action or next slide.', 'wp-photo-album-plus');
|
4331 |
-
$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'));
|
4332 |
-
$help .= '<br />'.(__('If unchecked, refreshing the page will re-display the content of the original page.', 'wp-photo-album-plus'));
|
4333 |
-
$help .= '<br />'.(__('This will only work on browsers that support history.pushState() and therefor NOT in IE', 'wp-photo-album-plus'));
|
4334 |
-
$slug = 'wppa_update_addressline';
|
4335 |
-
$html = wppa_checkbox($slug);
|
4336 |
-
$clas = '';
|
4337 |
-
$tags = 'link,system';
|
4338 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
4339 |
-
|
4340 |
-
$name = __('Render shortcode always', 'wp-photo-album-plus');
|
4341 |
-
$desc = __('This will skip the check on proper initialisation.', 'wp-photo-album-plus');
|
4342 |
-
$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'));
|
4343 |
-
$slug = 'wppa_render_shortcode_always';
|
4344 |
-
$html = wppa_checkbox($slug);
|
4345 |
-
$clas = '';
|
4346 |
-
$tags = 'system';
|
4347 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
4348 |
Â
|
4349 |
-
|
4350 |
-
|
4351 |
-
|
4352 |
-
|
4353 |
-
|
4354 |
-
|
4355 |
-
|
4356 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4357 |
Â
|
4358 |
-
|
4359 |
-
|
4360 |
-
$help = '';
|
4361 |
-
$slug = 'wppa_track_clickcounts';
|
4362 |
-
$html = wppa_checkbox($slug);
|
4363 |
-
$clas = '';
|
4364 |
-
$tags = 'system,meta';
|
4365 |
-
wppa_setting($slug, '9.2', $name, $desc, $html, $help, $clas, $tags);
|
4366 |
Â
|
4367 |
-
|
4368 |
-
|
4369 |
-
|
4370 |
-
|
4371 |
-
|
4372 |
-
|
4373 |
-
|
4374 |
-
$clas = '';
|
4375 |
-
$tags = 'page,system';
|
4376 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
4377 |
Â
|
4378 |
-
|
4379 |
-
$desc = __('The type of display on the autopage pages.', 'wp-photo-album-plus');
|
4380 |
-
$help = '';
|
4381 |
-
$slug = 'wppa_auto_page_type';
|
4382 |
-
$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') );
|
4383 |
-
$vals = array('photo', 'mphoto', 'slphoto');
|
4384 |
-
$html = wppa_select($slug, $opts, $vals);
|
4385 |
-
$clas = 'autopage';
|
4386 |
-
$tags = 'page,system,layout';
|
4387 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
4388 |
Â
|
4389 |
-
$name = __('Auto page links', 'wp-photo-album-plus');
|
4390 |
-
$desc = __('The location for the pagelinks.', 'wp-photo-album-plus');
|
4391 |
-
$help = '';
|
4392 |
-
$slug = 'wppa_auto_page_links';
|
4393 |
-
$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'));
|
4394 |
-
$vals = array('none', 'top', 'bottom', 'both');
|
4395 |
-
$html = wppa_select($slug, $opts, $vals);
|
4396 |
-
$clas = 'autopage';
|
4397 |
-
$tags = 'page,system,layout';
|
4398 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
4399 |
-
|
4400 |
-
$name = __('Defer javascript', 'wp-photo-album-plus');
|
4401 |
-
$desc = __('Put javascript near the end of the page.', 'wp-photo-album-plus');
|
4402 |
-
$help = (__('If checkd: May fix layout problems and broken slideshows. May speed up or slow down page appearing.', 'wp-photo-album-plus'));
|
4403 |
-
$slug = 'wppa_defer_javascript';
|
4404 |
-
$html = wppa_checkbox($slug);
|
4405 |
-
$clas = '';
|
4406 |
-
$tags = 'system';
|
4407 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
4408 |
Â
|
4409 |
-
$name = __('Inline styles', 'wp-photo-album-plus');
|
4410 |
-
$desc = __('Set style specifications inline.', 'wp-photo-album-plus');
|
4411 |
-
$help = (__('If checked: May fix layout problems, but slows down page appearing.', 'wp-photo-album-plus'));
|
4412 |
-
$slug = 'wppa_inline_css';
|
4413 |
-
$html = wppa_checkbox($slug);
|
4414 |
-
$clas = '';
|
4415 |
-
$tags = 'system,layout';
|
4416 |
-
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
4417 |
Â
|
4418 |
-
$name = __('Custom style', 'wp-photo-album-plus');
|
4419 |
-
$desc = __('Enter custom style specs here.', 'wp-photo-album-plus');
|
4420 |
-
$help = '';
|
4421 |
-
$slug = 'wppa_custom_style';
|
4422 |
-
$html = wppa_textarea($slug, $name);
|
4423 |
-
$clas = '';
|
4424 |
-
$tags = 'system,layout';
|
4425 |
-
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
4426 |
Â
|
4427 |
-
|
4428 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
4429 |
-
$help = '';
|
4430 |
-
$slug = 'wppa_custom_style_chrome';
|
4431 |
-
$html = wppa_textarea($slug, $name);
|
4432 |
-
$clas = '';
|
4433 |
-
$tags = 'system,layout';
|
4434 |
-
wppa_setting($slug, '15.1', $name, $desc, $html, $help, $clas, $tags);
|
4435 |
Â
|
4436 |
-
|
4437 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
4438 |
-
$help = '';
|
4439 |
-
$slug = 'wppa_custom_style_firefox';
|
4440 |
-
$html = wppa_textarea($slug, $name);
|
4441 |
-
$clas = '';
|
4442 |
-
$tags = 'system,layout';
|
4443 |
-
wppa_setting($slug, '15.2', $name, $desc, $html, $help, $clas, $tags);
|
4444 |
Â
|
4445 |
-
|
4446 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
4447 |
-
$help = '';
|
4448 |
-
$slug = 'wppa_custom_style_safari';
|
4449 |
-
$html = wppa_textarea($slug, $name);
|
4450 |
-
$clas = '';
|
4451 |
-
$tags = 'system,layout';
|
4452 |
-
wppa_setting($slug, '15.4', $name, $desc, $html, $help, $clas, $tags);
|
4453 |
Â
|
4454 |
-
|
4455 |
-
|
4456 |
-
|
4457 |
-
|
4458 |
-
|
4459 |
-
|
4460 |
-
|
4461 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4462 |
Â
|
4463 |
-
|
4464 |
-
|
4465 |
-
|
4466 |
-
|
4467 |
-
|
4468 |
-
|
4469 |
-
$tags = 'system,layout';
|
4470 |
-
wppa_setting($slug, '15.6', $name, $desc, $html, $help, $clas, $tags);
|
4471 |
Â
|
4472 |
-
|
4473 |
-
|
4474 |
-
|
4475 |
-
|
4476 |
-
$html = wppa_textarea($slug, $name);
|
4477 |
-
$clas = '';
|
4478 |
-
$tags = 'system,layout';
|
4479 |
-
wppa_setting($slug, '15.7', $name, $desc, $html, $help, $clas, $tags);
|
4480 |
Â
|
4481 |
-
|
4482 |
-
|
4483 |
-
|
4484 |
-
$
|
4485 |
-
$
|
4486 |
-
$
|
4487 |
-
$
|
4488 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4489 |
Â
|
4490 |
-
|
4491 |
-
|
4492 |
-
$help = '';
|
4493 |
-
$slug = 'wppa_use_custom_theme_file';
|
4494 |
-
$html = wppa_checkbox($slug);
|
4495 |
-
$clas = '';
|
4496 |
-
$tags = 'system,layout';
|
4497 |
-
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
4498 |
Â
|
4499 |
-
$name = __('Enable photo html access', 'wp-photo-album-plus');
|
4500 |
-
$desc = __('Creates .htaccess files in .../uploads/wppa/ and .../uploads/wppa/thumbs/', 'wp-photo-album-plus');
|
4501 |
-
$help = '';
|
4502 |
-
$slug = 'wppa_cre_uploads_htaccess';
|
4503 |
-
$opts = array( __('create \'all access\' .htaccess files', 'wp-photo-album-plus'),
|
4504 |
-
__('remove .htaccess files', 'wp-photo-album-plus'),
|
4505 |
-
__('create \'no hotlinking\' .htaccess files', 'wp-photo-album-plus'),
|
4506 |
-
__('do not change existing .htaccess file(s)', 'wp-photo-album-plus'),
|
4507 |
-
);
|
4508 |
-
$vals = array( 'grant',
|
4509 |
-
'remove',
|
4510 |
-
'nohot',
|
4511 |
-
'custom',
|
4512 |
-
);
|
4513 |
-
$html = wppa_select($slug, $opts, $vals);
|
4514 |
-
$clas = '';
|
4515 |
-
$tags = 'system,access';
|
4516 |
-
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
4517 |
Â
|
4518 |
-
|
4519 |
-
|
4520 |
-
|
4521 |
-
|
4522 |
-
|
4523 |
-
|
4524 |
-
$tags = 'system,layout,album';
|
4525 |
-
wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
|
4526 |
Â
|
4527 |
-
|
4528 |
-
|
4529 |
-
|
4530 |
-
|
4531 |
-
|
4532 |
-
|
4533 |
-
|
4534 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4535 |
Â
|
4536 |
-
|
4537 |
-
|
4538 |
-
|
4539 |
-
|
4540 |
-
|
4541 |
-
|
4542 |
-
|
4543 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4544 |
Â
|
4545 |
-
|
4546 |
-
|
4547 |
-
|
4548 |
-
|
4549 |
-
|
4550 |
-
|
4551 |
-
|
4552 |
-
|
4553 |
Â
|
4554 |
-
|
4555 |
-
|
4556 |
-
|
4557 |
-
|
4558 |
-
|
4559 |
-
|
4560 |
-
|
4561 |
-
|
4562 |
-
|
4563 |
-
|
4564 |
-
|
4565 |
-
$help = __('Activate the Admins Choice widget to make the zipfiles downloadable.', 'wp-photo-album-plus');
|
4566 |
-
$slug = 'wppa_admins_choice';
|
4567 |
-
$opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
|
4568 |
-
__( 'Admins and superusers', 'wp-photo-album-plus' ),
|
4569 |
-
__( 'All loggedin users', 'wp-photo-album-plus' )
|
4570 |
-
);
|
4571 |
-
$vals = array( 'none', 'admin', 'login' );
|
4572 |
-
$html = wppa_select($slug, $opts, $vals);
|
4573 |
-
$clas = '';
|
4574 |
-
$tags = 'system';
|
4575 |
-
wppa_setting($slug, '27', $name, $desc, $html, $help, $clas, $tags);
|
4576 |
Â
|
4577 |
-
|
4578 |
-
|
4579 |
-
|
4580 |
-
|
4581 |
-
|
4582 |
-
|
4583 |
-
|
4584 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4585 |
Â
|
4586 |
-
|
4587 |
-
|
4588 |
-
|
4589 |
-
|
4590 |
-
|
4591 |
-
|
4592 |
-
|
4593 |
-
|
4594 |
-
|
4595 |
-
|
4596 |
-
|
4597 |
-
|
4598 |
-
|
4599 |
-
|
4600 |
-
|
4601 |
-
|
4602 |
-
|
4603 |
-
|
4604 |
-
wppa_setting($slug, '27.3', $name, $desc, $html, $help, $clas, $tags);
|
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 |
Â
|
4701 |
-
|
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 |
-
|
4736 |
-
|
4737 |
-
|
4738 |
-
|
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 |
-
|
4777 |
-
|
4778 |
Â
|
4779 |
-
|
4780 |
-
|
4781 |
-
|
4782 |
-
|
4783 |
-
|
4784 |
-
|
4785 |
-
|
4786 |
-
|
4787 |
-
|
4788 |
-
|
4789 |
-
$name = __('Audio autostart', 'wp-photo-album-plus');
|
4790 |
-
$desc = __('Autoplay audios in slideshows.', 'wp-photo-album-plus');
|
4791 |
-
$help = '';
|
4792 |
-
$slug = 'wppa_start_slide_audio';
|
4793 |
-
$html = wppa_checkbox($slug);
|
4794 |
-
$clas = 'wppa-audio';
|
4795 |
-
$tags = 'slide,audio';
|
4796 |
-
wppa_setting($slug, '3.3', $name, $desc, $html, $help, $clas, $tags);
|
4797 |
-
|
4798 |
-
$name = __('Animation type', 'wp-photo-album-plus');
|
4799 |
-
$desc = __('The way successive slides appear.', 'wp-photo-album-plus');
|
4800 |
-
$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'));
|
4801 |
-
$slug = 'wppa_animation_type';
|
4802 |
-
$options = array( __('Fade out and in simultaneous', 'wp-photo-album-plus'),
|
4803 |
-
__('Fade in after fade out', 'wp-photo-album-plus'),
|
4804 |
-
__('Shift adjacent', 'wp-photo-album-plus'),
|
4805 |
-
// __('Stack on', 'wp-photo-album-plus'),
|
4806 |
-
// __('Stack off', 'wp-photo-album-plus'),
|
4807 |
-
// __('Turn over', 'wp-photo-album-plus')
|
4808 |
-
);
|
4809 |
-
$values = array( 'fadeover',
|
4810 |
-
'fadeafter',
|
4811 |
-
'swipe',
|
4812 |
-
// 'stackon',
|
4813 |
-
// 'stackoff',
|
4814 |
-
// 'turnover'
|
4815 |
-
);
|
4816 |
-
$html = wppa_select($slug, $options, $values);
|
4817 |
-
$clas = '';
|
4818 |
-
$tags = 'slide';
|
4819 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
4820 |
-
|
4821 |
-
$name = __('Timeout', 'wp-photo-album-plus');
|
4822 |
-
$desc = __('Slideshow timeout.', 'wp-photo-album-plus');
|
4823 |
-
$help = (__('Select the time a single slide will be visible when the slideshow is started.', 'wp-photo-album-plus'));
|
4824 |
-
$slug = 'wppa_slideshow_timeout';
|
4825 |
-
$options = 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.' );
|
4826 |
-
$values = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
|
4827 |
-
$html = wppa_select($slug, $options, $values);
|
4828 |
-
$clas = 'wppa_ss';
|
4829 |
-
$tags = 'slide';
|
4830 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
4831 |
-
|
4832 |
-
$name = __('Speed', 'wp-photo-album-plus');
|
4833 |
-
$desc = __('Slideshow animation speed.', 'wp-photo-album-plus');
|
4834 |
-
$help = (__('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus'));
|
4835 |
-
$help .= '<br />'.(__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus'));
|
4836 |
-
$slug = 'wppa_animation_speed';
|
4837 |
-
$options = 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.');
|
4838 |
-
$values = array('10', '200', '400', '800', '1200', '2000', '4000', '6000', '8000', '10000');
|
4839 |
-
$html = wppa_select($slug, $options, $values);
|
4840 |
-
$clas = 'wppa_ss';
|
4841 |
-
$tags = 'slide';
|
4842 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
4843 |
-
|
4844 |
-
$name = __('Slide hover pause', 'wp-photo-album-plus');
|
4845 |
-
$desc = __('Running Slideshow suspends during mouse hover.', 'wp-photo-album-plus');
|
4846 |
-
$help = '';
|
4847 |
-
$slug = 'wppa_slide_pause';
|
4848 |
-
$html = wppa_checkbox($slug);
|
4849 |
-
$clas = '';
|
4850 |
-
$tags = 'slide';
|
4851 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
4852 |
Â
|
4853 |
-
|
4854 |
-
|
4855 |
-
|
4856 |
-
|
4857 |
-
|
4858 |
-
|
4859 |
-
|
4860 |
-
|
4861 |
Â
|
4862 |
-
|
4863 |
-
|
4864 |
-
|
4865 |
-
|
4866 |
-
|
4867 |
-
|
4868 |
-
|
4869 |
-
|
4870 |
-
$tags = 'slide,layout,meta';
|
4871 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
4872 |
-
|
4873 |
-
$name = __('Remove redundant space', 'wp-photo-album-plus');
|
4874 |
-
$desc = __('Removes unwanted <p> and <br> tags in fullsize descriptions.', 'wp-photo-album-plus');
|
4875 |
-
$help = __('This setting has only effect when Table IX-A7 (foreign shortcodes) is checked.', 'wp-photo-album-plus');
|
4876 |
-
$slug = 'wppa_clean_pbr';
|
4877 |
-
$html = wppa_checkbox($slug);
|
4878 |
-
$clas = '';
|
4879 |
-
$tags = 'slide,layout,meta';
|
4880 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
4881 |
Â
|
4882 |
-
|
4883 |
-
|
4884 |
-
|
4885 |
-
|
4886 |
-
|
4887 |
-
|
4888 |
-
|
4889 |
-
|
4890 |
-
|
4891 |
-
|
4892 |
-
$clas = '';
|
4893 |
-
$tags = 'slide,layout,meta';
|
4894 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
4895 |
-
|
4896 |
-
$name = __('Auto open comments', 'wp-photo-album-plus');
|
4897 |
-
$desc = __('Automatic opens comments box when slideshow does not run.', 'wp-photo-album-plus');
|
4898 |
-
$help = __('Works also on type="xphoto"', 'wp-photo-album-plus');
|
4899 |
-
$slug = 'wppa_auto_open_comments';
|
4900 |
-
$html = wppa_checkbox($slug);
|
4901 |
-
$clas = '';
|
4902 |
-
$tags = 'slide,comment,layout';
|
4903 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
4904 |
-
|
4905 |
-
$name = __('Film hover goto', 'wp-photo-album-plus');
|
4906 |
-
$desc = __('Go to slide when hovering filmstrip thumbnail.', 'wp-photo-album-plus');
|
4907 |
-
$help = __('Do not use this setting when slides have different aspect ratios!', 'wp-photo-album-plus');
|
4908 |
-
$slug = 'wppa_film_hover_goto';
|
4909 |
-
$html = wppa_checkbox($slug);
|
4910 |
-
$clas = '';
|
4911 |
-
$tags = 'slide,layout';
|
4912 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
|
4945 |
-
|
4946 |
-
|
4947 |
-
|
4948 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4949 |
Â
|
4950 |
-
|
4951 |
-
|
4952 |
-
|
4953 |
-
|
4954 |
-
|
4955 |
-
|
4956 |
-
|
4957 |
-
|
4958 |
-
|
4959 |
-
|
4960 |
-
__('Random', 'wp-photo-album-plus'),
|
4961 |
-
__('Rating mean value', 'wp-photo-album-plus'),
|
4962 |
-
__('Number of votes', 'wp-photo-album-plus'),
|
4963 |
-
__('Timestamp', 'wp-photo-album-plus'),
|
4964 |
-
__('EXIF Date', 'wp-photo-album-plus'),
|
4965 |
-
__('Order # desc', 'wp-photo-album-plus'),
|
4966 |
-
__('Name desc', 'wp-photo-album-plus'),
|
4967 |
-
__('Rating mean value desc', 'wp-photo-album-plus'),
|
4968 |
-
__('Number of votes desc', 'wp-photo-album-plus'),
|
4969 |
-
__('Timestamp desc', 'wp-photo-album-plus'),
|
4970 |
-
__('EXIF Date desc', 'wp-photo-album-plus')
|
4971 |
Â
);
|
4972 |
-
|
4973 |
-
'
|
4974 |
-
'
|
4975 |
-
'
|
4976 |
-
'
|
4977 |
-
'
|
4978 |
-
'5',
|
4979 |
-
'7',
|
4980 |
-
'-1',
|
4981 |
-
'-2',
|
4982 |
-
'-4',
|
4983 |
-
'-6',
|
4984 |
-
'-5',
|
4985 |
-
'-7'
|
4986 |
Â
);
|
4987 |
-
|
4988 |
-
|
4989 |
-
|
4990 |
-
|
4991 |
-
|
4992 |
-
$name = __('Thumbnail type', 'wp-photo-album-plus');
|
4993 |
-
$desc = __('The way the thumbnail images are displayed.', 'wp-photo-album-plus');
|
4994 |
-
$help = (__('You may select an altenative display method for thumbnails. Note that some of the thumbnail settings do not apply to all available display methods.', 'wp-photo-album-plus'));
|
4995 |
-
$slug = 'wppa_thumbtype';
|
4996 |
-
$options = array( __('--- default ---', 'wp-photo-album-plus'),
|
4997 |
-
__('like album covers', 'wp-photo-album-plus'),
|
4998 |
-
__('like album covers mcr', 'wp-photo-album-plus'),
|
4999 |
-
__('masonry style columns', 'wp-photo-album-plus'),
|
5000 |
-
__('masonry style rows', 'wp-photo-album-plus'),
|
5001 |
-
__('masonry style plus', 'wp-photo-album-plus'),
|
5002 |
-
__('masonry style mixed', 'wp-photo-album-plus'),
|
5003 |
-
);
|
5004 |
-
$values = array('default',
|
5005 |
-
'ascovers',
|
5006 |
-
'ascovers-mcr',
|
5007 |
-
'masonry-v',
|
5008 |
-
'masonry-h',
|
5009 |
-
'masonry-plus',
|
5010 |
-
'masonry-mix',
|
5011 |
-
);
|
5012 |
-
$onchange = 'wppaCheckThumbType()';
|
5013 |
-
$html = wppa_select($slug, $options, $values, $onchange);
|
5014 |
-
$clas = '';
|
5015 |
-
$tags = 'thumb,layout';
|
5016 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
5017 |
-
|
5018 |
-
$name = __('Placement', 'wp-photo-album-plus');
|
5019 |
-
$desc = __('Thumbnail image left or right.', 'wp-photo-album-plus');
|
5020 |
-
$help = (__('Indicate the placement position of the thumbnailphoto you wish.', 'wp-photo-album-plus'));
|
5021 |
-
$slug = 'wppa_thumbphoto_left';
|
5022 |
-
$options = array(__('Left', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'));
|
5023 |
-
$values = array('yes', 'no');
|
5024 |
-
$html = wppa_select($slug, $options, $values);
|
5025 |
-
$clas = 'tt_ascovers';
|
5026 |
-
$tags = 'thumb,layout';
|
5027 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
5028 |
-
|
5029 |
-
$name = __('Vertical alignment', 'wp-photo-album-plus');
|
5030 |
-
$desc = __('Vertical alignment of thumbnails.', 'wp-photo-album-plus');
|
5031 |
-
$help = (__('Specify the vertical alignment of thumbnail images. Use this setting when albums contain both portrait and landscape photos.', 'wp-photo-album-plus'));
|
5032 |
-
$help .= '<br />'.(__('It is NOT recommended to use the value --- default ---; it will affect the horizontal alignment also and is meant to be used with custom css.', 'wp-photo-album-plus'));
|
5033 |
-
$slug = 'wppa_valign';
|
5034 |
-
$options = array( __('--- default ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'));
|
5035 |
-
$values = array('default', 'top', 'center', 'bottom');
|
5036 |
-
$html = wppa_select($slug, $options, $values);
|
5037 |
-
$clas = 'tt_normal';
|
5038 |
-
$tags = 'thumb,layout';
|
5039 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
5040 |
-
|
5041 |
-
$name = __('Thumb mouseover', 'wp-photo-album-plus');
|
5042 |
-
$desc = __('Apply thumbnail mouseover effect.', 'wp-photo-album-plus');
|
5043 |
-
$help = (__('Check this box to use mouseover effect on thumbnail images.', 'wp-photo-album-plus'));
|
5044 |
-
$slug = 'wppa_use_thumb_opacity';
|
5045 |
-
$onchange = 'wppaCheckUseThumbOpacity()';
|
5046 |
-
$html = wppa_checkbox($slug, $onchange);
|
5047 |
-
$clas = 'tt_normal tt_masonry';
|
5048 |
-
$tags = 'thumb';
|
5049 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
5050 |
-
|
5051 |
-
$name = __('Thumb opacity', 'wp-photo-album-plus');
|
5052 |
-
$desc = __('Initial opacity value.', 'wp-photo-album-plus');
|
5053 |
-
$help = (__('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus'));
|
5054 |
-
$slug = 'wppa_thumb_opacity';
|
5055 |
-
$html = '<span class="thumb_opacity_html">'.wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus')).'</span>';
|
5056 |
-
$clas = 'tt_normal tt_masonry';
|
5057 |
-
$tags = 'thumb';
|
5058 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
5059 |
-
|
5060 |
-
$name = __('Thumb popup', 'wp-photo-album-plus');
|
5061 |
-
$desc = __('Use popup effect on thumbnail images.', 'wp-photo-album-plus');
|
5062 |
-
$help = (__('Thumbnails pop-up to a larger image when hovered.', 'wp-photo-album-plus'));
|
5063 |
-
$slug = 'wppa_use_thumb_popup';
|
5064 |
-
$onchange = 'wppaCheckPopup()';
|
5065 |
-
$html = wppa_checkbox($slug, $onchange) . wppa_htmlerr('popup-lightbox');
|
5066 |
-
$clas = 'tt_normal tt_masonry';
|
5067 |
-
$tags = 'thumb';
|
5068 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
5069 |
-
|
5070 |
-
$name = __('Align subtext', 'wp-photo-album-plus');
|
5071 |
-
$desc = __('Set thumbnail subtext on equal height.', 'wp-photo-album-plus');
|
5072 |
-
$help = '';
|
5073 |
-
$slug = 'wppa_align_thumbtext';
|
5074 |
-
$html = wppa_checkbox($slug);
|
5075 |
-
$clas = 'tt_normal';
|
5076 |
-
$tags = 'thumb,layout';
|
5077 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5078 |
-
|
5079 |
-
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
5080 |
-
$desc = __('Adds <br> or <p> and <br> tags in thumbnail descriptions.', 'wp-photo-album-plus');
|
5081 |
-
$help = '';
|
5082 |
-
$slug = 'wppa_wpautop_on_thumb_desc';
|
5083 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
5084 |
-
__('Linebreaks only', 'wp-photo-album-plus'),
|
5085 |
-
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
5086 |
-
);
|
5087 |
-
$vals = array('nil', 'nl2br', 'wpautop');
|
5088 |
-
$html = wppa_select($slug, $opts, $vals);
|
5089 |
-
$clas = '';
|
5090 |
-
$tags = 'thumb,layout';
|
5091 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
5092 |
Â
|
5093 |
-
|
5094 |
-
|
5095 |
-
|
5096 |
-
|
5097 |
-
|
5098 |
-
|
5099 |
-
|
5100 |
-
|
5101 |
-
|
5102 |
-
|
5103 |
-
__('Random', 'wp-photo-album-plus'),
|
5104 |
-
__('Timestamp', 'wp-photo-album-plus'),
|
5105 |
-
__('Order # desc', 'wp-photo-album-plus'),
|
5106 |
-
__('Name desc', 'wp-photo-album-plus'),
|
5107 |
-
__('Timestamp desc', 'wp-photo-album-plus'),
|
5108 |
Â
);
|
5109 |
-
|
5110 |
-
'
|
5111 |
-
'
|
5112 |
-
'
|
5113 |
-
'
|
5114 |
-
'
|
5115 |
-
'-2',
|
5116 |
-
'-5'
|
5117 |
Â
);
|
5118 |
-
|
5119 |
-
|
5120 |
-
|
5121 |
-
|
5122 |
-
|
5123 |
-
$name = __('Default coverphoto selection', 'wp-photo-album-plus');
|
5124 |
-
$desc = __('Default select cover photo method.', 'wp-photo-album-plus');
|
5125 |
-
$help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus');
|
5126 |
-
$help .= '<br />' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus');
|
5127 |
-
$opts = array( __('--- random ---', 'wp-photo-album-plus'),
|
5128 |
-
__('--- random featured ---', 'wp-photo-album-plus'),
|
5129 |
-
__('--- most recent added ---', 'wp-photo-album-plus'),
|
5130 |
-
__('--- random from (grand)children ---', 'wp-photo-album-plus'),
|
5131 |
-
__('--- most recent from (grand)children ---', 'wp-photo-album-plus'),
|
5132 |
-
__('--- according to albums photo sequence ---', 'wp-photo-album-plus'),
|
5133 |
-
);
|
5134 |
-
$vals = array('-9', '-1', '-2', '-3', '-4', '-5');
|
5135 |
-
$slug = 'wppa_main_photo';
|
5136 |
-
$html = wppa_select($slug, $opts, $vals);
|
5137 |
-
$clas = '';
|
5138 |
-
$tags = 'album,cover';
|
5139 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
5140 |
-
|
5141 |
-
$name = __('Placement', 'wp-photo-album-plus');
|
5142 |
-
$desc = __('Cover image position.', 'wp-photo-album-plus');
|
5143 |
-
$help = (__('Enter the position that you want to be used for the default album cover selected in Table IV-D6.', 'wp-photo-album-plus'));
|
5144 |
-
$help .= '<br />'.(__('For covertype Image Factory: left will be treated as top and right will be treted as bottom.', 'wp-photo-album-plus'));
|
5145 |
-
$help .= '<br />'.(__('For covertype Long Descriptions: top will be treated as left and bottom will be treted as right.', 'wp-photo-album-plus'));
|
5146 |
-
$slug = 'wppa_coverphoto_pos';
|
5147 |
-
$options = array(__('Left', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'), __('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'));
|
5148 |
-
$values = array('left', 'right', 'top', 'bottom');
|
5149 |
-
$onchange = 'wppaCheckCoverType()';
|
5150 |
-
$html = wppa_select($slug, $options, $values, $onchange);
|
5151 |
-
$clas = '';
|
5152 |
-
$tags = 'album,cover,layout';
|
5153 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
5154 |
-
|
5155 |
-
$name = __('Cover mouseover', 'wp-photo-album-plus');
|
5156 |
-
$desc = __('Apply coverphoto mouseover effect.', 'wp-photo-album-plus');
|
5157 |
-
$help = (__('Check this box to use mouseover effect on cover images.', 'wp-photo-album-plus'));
|
5158 |
-
$slug = 'wppa_use_cover_opacity';
|
5159 |
-
$onchange = 'wppaCheckUseCoverOpacity()';
|
5160 |
-
$html = wppa_checkbox($slug, $onchange);
|
5161 |
-
$clas = '';
|
5162 |
-
$tags = 'cover,thumb';
|
5163 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
5164 |
-
|
5165 |
-
$name = __('Cover opacity', 'wp-photo-album-plus');
|
5166 |
-
$desc = __('Initial opacity value.', 'wp-photo-album-plus');
|
5167 |
-
$help = (__('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus'));
|
5168 |
-
$slug = 'wppa_cover_opacity';
|
5169 |
-
$html = '<span class="cover_opacity_html">'.wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus')).'</span>';
|
5170 |
-
$clas = '';
|
5171 |
-
$tags = 'cover,thumb';
|
5172 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
5173 |
-
|
5174 |
-
$name = __('Cover type', 'wp-photo-album-plus');
|
5175 |
-
$desc = __('Select the default cover type.', 'wp-photo-album-plus');
|
5176 |
-
$help = __('Types with the addition mcr are suitable for Multi Column in a Responsive theme', 'wp-photo-album-plus');
|
5177 |
-
$help .= '<br />'.__("Type 'Grid with images only' is always responsive and requires a fixed aspect ratio selected for thumbnails in Table I-C2", 'wp-photo-album-plus');
|
5178 |
-
$slug = 'wppa_cover_type';
|
5179 |
-
$options = array( __('Standard', 'wp-photo-album-plus'),
|
5180 |
-
__('Long Descriptions', 'wp-photo-album-plus'),
|
5181 |
-
__('Image Factory', 'wp-photo-album-plus'),
|
5182 |
-
__('Standard mcr', 'wp-photo-album-plus'),
|
5183 |
-
__('Long Descriptions mcr', 'wp-photo-album-plus'),
|
5184 |
-
__('Image Factory mcr', 'wp-photo-album-plus'),
|
5185 |
-
__('Grid with images only', 'wp-photo-album-plus'),
|
5186 |
-
);
|
5187 |
-
$values = array( 'default',
|
5188 |
-
'longdesc',
|
5189 |
-
'imagefactory',
|
5190 |
-
'default-mcr',
|
5191 |
-
'longdesc-mcr',
|
5192 |
-
'imagefactory-mcr',
|
5193 |
-
'grid',
|
5194 |
-
);
|
5195 |
-
$onchange = 'wppaCheckCoverType()';
|
5196 |
-
$html = wppa_select($slug, $options, $values, $onchange);
|
5197 |
-
$clas = '';
|
5198 |
-
$tags = 'cover,layout';
|
5199 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
5200 |
Â
|
5201 |
-
$name = __('Number of coverphotos', 'wp-photo-album-plus');
|
5202 |
-
$desc = __('The umber of coverphotos. Must be > 1 and < 25.', 'wp-photo-album-plus');
|
5203 |
-
$help = '';
|
5204 |
-
$slug = 'wppa_imgfact_count';
|
5205 |
-
$html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus'));
|
5206 |
-
$clas = 'wppa_imgfact_';
|
5207 |
-
$tags = 'cover,layout';
|
5208 |
-
wppa_setting($slug, '6.1', $name, $desc, $html, $help, $clas, $tags);
|
5209 |
-
|
5210 |
-
$name = __('Cats include subs', 'wp-photo-album-plus');
|
5211 |
-
$desc = __('Child albums are included in Category based shortcodes.', 'wp-photo-album-plus');
|
5212 |
-
$help = (__('When you use album="#cat,...", in a shortcode, the child albums will be included.', 'wp-photo-album-plus'));
|
5213 |
-
$slug = 'wppa_cats_inherit';
|
5214 |
-
$html = wppa_checkbox($slug);
|
5215 |
-
$clas = '';
|
5216 |
-
$tags = 'album,cover,meta';
|
5217 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
5218 |
Â
|
5219 |
-
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
5220 |
-
$desc = __('Adds <br> or <p> and <br> tags in album descriptions.', 'wp-photo-album-plus');
|
5221 |
-
$help = '';
|
5222 |
-
$slug = 'wppa_wpautop_on_album_desc';
|
5223 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
5224 |
-
__('Linebreaks only', 'wp-photo-album-plus'),
|
5225 |
-
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
5226 |
-
);
|
5227 |
-
$vals = array('nil', 'nl2br', 'wpautop');
|
5228 |
-
$html = wppa_select($slug, $opts, $vals);
|
5229 |
-
$clas = '';
|
5230 |
-
$tags = 'slide,layout,meta';
|
5231 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
5232 |
-
|
5233 |
-
$name = __('Use thumb on cover', 'wp-photo-album-plus');
|
5234 |
-
$desc = __('Always use thumbnail file for cover image', 'wp-photo-album-plus');
|
5235 |
-
$help = __('If you crop thumbnails for cover images, and you have a CDN, tick this box', 'wp-photo-album-plus');
|
5236 |
-
$slug = 'wppa_cover_use_thumb';
|
5237 |
-
$html = wppa_checkbox($slug);
|
5238 |
-
$clas = '';
|
5239 |
-
$tags = 'album,cover,layout';
|
5240 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5241 |
Â
|
5242 |
-
}
|
5243 |
-
wppa_setting_subheader( 'E', '1', __( 'Rating related settings' , 'wp-photo-album-plus') );
|
5244 |
-
{
|
5245 |
-
$name = __('Rating login', 'wp-photo-album-plus');
|
5246 |
-
$desc = __('Users must login to rate photos.', 'wp-photo-album-plus');
|
5247 |
-
$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'));
|
5248 |
-
$slug = 'wppa_rating_login';
|
5249 |
-
$html = wppa_checkbox($slug);
|
5250 |
-
$clas = 'wppa_rating_';
|
5251 |
-
$tags = 'rating,access';
|
5252 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
5253 |
-
|
5254 |
-
$name = __('Rating change', 'wp-photo-album-plus');
|
5255 |
-
$desc = __('Users may change their ratings.', 'wp-photo-album-plus');
|
5256 |
-
$help = (__('Users may change their ratings.', 'wp-photo-album-plus'));
|
5257 |
-
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
5258 |
-
$slug = 'wppa_rating_change';
|
5259 |
-
$html = wppa_checkbox($slug);
|
5260 |
-
$clas = 'wppa_rating_';
|
5261 |
-
$tags = 'rating';
|
5262 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
5263 |
-
|
5264 |
-
if ( wppa_opt( 'rating_display_type' ) != 'likes' ) {
|
5265 |
-
$name = __('Rating multi', 'wp-photo-album-plus');
|
5266 |
-
$desc = __('Users may give multiple votes.', 'wp-photo-album-plus');
|
5267 |
-
$help = (__('Users may give multiple votes. (This has no effect when users may change their votes.)', 'wp-photo-album-plus'));
|
5268 |
-
$slug = 'wppa_rating_multi';
|
5269 |
-
$html = wppa_checkbox($slug);
|
5270 |
-
$clas = 'wppa_rating_';
|
5271 |
-
$tags = 'rating';
|
5272 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
5273 |
-
}
|
5274 |
Â
|
5275 |
-
|
5276 |
-
$
|
5277 |
-
$desc = __('Users may rate only once per period', 'wp-photo-album-plus');
|
5278 |
Â
$help = '';
|
5279 |
-
$slug = '
|
5280 |
-
$opts = array(
|
5281 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5282 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5283 |
-
$clas = '
|
5284 |
-
$tags = '
|
5285 |
-
wppa_setting($slug, '
|
5286 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5287 |
Â
|
5288 |
-
|
5289 |
-
|
5290 |
-
|
5291 |
-
|
5292 |
-
|
5293 |
-
|
5294 |
-
$tags = 'rating';
|
5295 |
-
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
5296 |
Â
|
5297 |
-
|
5298 |
-
$name = __('Rating requires comment', 'wp-photo-album-plus');
|
5299 |
-
$desc = __('Users must clarify their vote in a comment.', 'wp-photo-album-plus');
|
5300 |
-
$help = '';
|
5301 |
-
$slug = 'wppa_vote_needs_comment';
|
5302 |
-
$html = wppa_checkbox($slug);
|
5303 |
-
$clas = 'wppa_rating_';
|
5304 |
-
$tags = 'rating';
|
5305 |
-
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
5306 |
-
}
|
5307 |
Â
|
5308 |
-
|
5309 |
-
|
5310 |
-
|
5311 |
-
|
5312 |
-
|
5313 |
-
|
5314 |
-
|
5315 |
-
|
5316 |
-
|
5317 |
-
|
5318 |
-
|
5319 |
-
|
5320 |
-
|
5321 |
-
|
5322 |
-
|
5323 |
-
|
5324 |
-
|
5325 |
-
|
5326 |
-
|
5327 |
-
|
5328 |
-
|
5329 |
-
|
5330 |
-
|
5331 |
-
|
5332 |
-
|
5333 |
-
|
5334 |
-
|
5335 |
-
|
5336 |
-
|
5337 |
-
|
5338 |
-
|
5339 |
-
|
5340 |
-
|
5341 |
-
|
5342 |
-
|
5343 |
-
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
5344 |
-
$slug = 'wppa_dislike_value';
|
5345 |
-
$html = wppa_input($slug, '50px', '', __('points', 'wp-photo-album-plus'));
|
5346 |
-
$clas = 'wppa_rating_';
|
5347 |
-
$tags = 'rating';
|
5348 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
5349 |
-
|
5350 |
-
$name = __('Pending after', 'wp-photo-album-plus');
|
5351 |
-
$desc = __('Set status to pending after xx dislike votes.', 'wp-photo-album-plus');
|
5352 |
-
$help = (__('A value of 0 disables this feature.', 'wp-photo-album-plus'));
|
5353 |
-
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
5354 |
-
$slug = 'wppa_dislike_set_pending';
|
5355 |
-
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
5356 |
-
$clas = 'wppa_rating_';
|
5357 |
-
$tags = 'rating';
|
5358 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
5359 |
-
|
5360 |
-
$name = __('Delete after', 'wp-photo-album-plus');
|
5361 |
-
$desc = __('Delete photo after xx dislike votes.', 'wp-photo-album-plus');
|
5362 |
-
$help = (__('A value of 0 disables this feature.', 'wp-photo-album-plus'));
|
5363 |
-
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
5364 |
-
$slug = 'wppa_dislike_delete';
|
5365 |
-
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
5366 |
-
$clas = 'wppa_rating_';
|
5367 |
-
$tags = 'rating';
|
5368 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5369 |
-
|
5370 |
-
$name = __('Show dislike count', 'wp-photo-album-plus');
|
5371 |
-
$desc = __('Show the number of dislikes in the rating bar.', 'wp-photo-album-plus');
|
5372 |
-
$help = (__('Displayes the total number of dislike votes for the current photo.', 'wp-photo-album-plus'));
|
5373 |
-
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
5374 |
-
$slug = 'wppa_dislike_show_count';
|
5375 |
-
$html = wppa_checkbox($slug, $onchange);
|
5376 |
-
$clas = 'wppa_rating_';
|
5377 |
-
$tags = 'rating,layout';
|
5378 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
5379 |
-
|
5380 |
-
$name = __('Show average rating', 'wp-photo-album-plus');
|
5381 |
-
$desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus');
|
5382 |
-
$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'));
|
5383 |
-
$help .= '<br />'.(__('If unchecked, only the current users rating is displayed (if any).', 'wp-photo-album-plus'));
|
5384 |
-
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this box checked will display the vote count.', 'wp-photo-album-plus'));
|
5385 |
-
$slug = 'wppa_show_avg_rating';
|
5386 |
-
$html = wppa_checkbox($slug);
|
5387 |
-
$clas = 'wppa_rating_';
|
5388 |
-
$tags = 'rating,layout';
|
5389 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
5390 |
-
|
5391 |
-
$name = __('Avg and Mine on 2 lines', 'wp-photo-album-plus');
|
5392 |
-
$desc = __('Display avarage and my rating on different lines', 'wp-photo-album-plus');
|
5393 |
-
$help = '';
|
5394 |
-
$slug = 'wppa_show_avg_mine_2';
|
5395 |
-
$html = wppa_checkbox($slug);
|
5396 |
-
$clas = 'wppa_rating_';
|
5397 |
-
$tags = 'rating,layout';
|
5398 |
-
wppa_setting($slug, '12.1', $name, $desc, $html, $help, $clas, $tags);
|
5399 |
-
|
5400 |
-
$name = __('Single vote button text', 'wp-photo-album-plus');
|
5401 |
-
$desc = __('The text on the voting button.', 'wp-photo-album-plus');
|
5402 |
-
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
|
5403 |
-
$slug = 'wppa_vote_button_text';
|
5404 |
-
$html = wppa_input($slug, '100');
|
5405 |
-
$clas = 'wppa_rating_';
|
5406 |
-
$tags = 'rating,layout';
|
5407 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
5408 |
-
|
5409 |
-
$name = __('Single vote button text voted', 'wp-photo-album-plus');
|
5410 |
-
$desc = __('The text on the voting button when voted.', 'wp-photo-album-plus');
|
5411 |
-
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
|
5412 |
-
$slug = 'wppa_voted_button_text';
|
5413 |
-
$html = wppa_input($slug, '100');
|
5414 |
-
$clas = 'wppa_rating_';
|
5415 |
-
$tags = 'rating,layout';
|
5416 |
-
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
5417 |
-
|
5418 |
-
$name = __('Single vote button thumbnail', 'wp-photo-album-plus');
|
5419 |
-
$desc = __('Display single vote button below thumbnails.', 'wp-photo-album-plus');
|
5420 |
-
$help = (__('This works only in single vote mode: Table I-E1 set to "one button vote"', 'wp-photo-album-plus'));
|
5421 |
-
$slug = 'wppa_vote_thumb';
|
5422 |
-
$html = wppa_checkbox($slug);
|
5423 |
-
$clas = 'wppa_rating_';
|
5424 |
-
$tags = 'rating,layout';
|
5425 |
-
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
5426 |
-
|
5427 |
-
$name = __('Medal bronze when', 'wp-photo-album-plus');
|
5428 |
-
$desc = __('Photo gets medal bronze when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
5429 |
-
$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'));
|
5430 |
-
$slug = 'wppa_medal_bronze_when';
|
5431 |
-
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
5432 |
-
$clas = 'wppa_rating_';
|
5433 |
-
$tags = 'rating,layout';
|
5434 |
-
wppa_setting($slug, '16.1', $name, $desc, $html, $help, $clas, $tags);
|
5435 |
-
|
5436 |
-
$name = __('Medal silver when', 'wp-photo-album-plus');
|
5437 |
-
$desc = __('Photo gets medal silver when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
5438 |
-
$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'));
|
5439 |
-
$slug = 'wppa_medal_silver_when';
|
5440 |
-
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
5441 |
-
$clas = 'wppa_rating_';
|
5442 |
-
$tags = 'rating,layout';
|
5443 |
-
wppa_setting($slug, '16.2', $name, $desc, $html, $help, $clas, $tags);
|
5444 |
-
|
5445 |
-
$name = __('Medal gold when', 'wp-photo-album-plus');
|
5446 |
-
$desc = __('Photo gets medal gold when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
5447 |
-
$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'));
|
5448 |
-
$slug = 'wppa_medal_gold_when';
|
5449 |
-
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
5450 |
-
$clas = 'wppa_rating_';
|
5451 |
-
$tags = 'rating,layout';
|
5452 |
-
wppa_setting($slug, '16.3', $name, $desc, $html, $help, $clas, $tags);
|
5453 |
-
|
5454 |
-
$name = __('Medal tag color', 'wp-photo-album-plus');
|
5455 |
-
$desc = __('The color of the tag on the medal.', 'wp-photo-album-plus');
|
5456 |
-
$help = '';
|
5457 |
-
$slug = 'wppa_medal_color';
|
5458 |
-
$opts = array( __('Red', 'wp-photo-album-plus'), __('Green', 'wp-photo-album-plus'), __('Blue', 'wp-photo-album-plus') );
|
5459 |
-
$vals = array( '1', '2', '3' );
|
5460 |
-
$html = wppa_select($slug, $opts, $vals);
|
5461 |
-
$clas = 'wppa_rating_';
|
5462 |
-
$tags = 'rating,layout';
|
5463 |
-
wppa_setting($slug, '16.4', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
$html = wppa_select($slug, $opts, $vals);
|
5511 |
-
$clas = '';
|
5512 |
-
$tags = 'rating,layout';
|
5513 |
-
wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
|
5514 |
Â
|
5515 |
-
|
5516 |
-
|
5517 |
-
|
5518 |
-
|
5519 |
-
|
5520 |
-
|
5521 |
-
|
5522 |
-
|
5523 |
-
|
5524 |
-
$name = __('Contest comment visibility', 'wp-photo-album-plus');
|
5525 |
-
$desc = __('The policy to display comments on the contest display', 'wp-photo-album-plus');
|
5526 |
-
$help = __('Admin always sees the comments', 'wp-photo-album-plus');
|
5527 |
-
$slug = 'wppa_contest_comment_policy';
|
5528 |
-
$opts = array( __('None', 'wp-photo-album-plus' ),
|
5529 |
-
__('Commenter', 'wp-photo-album-plus'),
|
5530 |
-
__('Commenter and photo owner', 'wp-photo-album-plus'),
|
5531 |
-
__('Every visitor', 'wp-photo-album-plus'));
|
5532 |
-
$vals = array( 'none', 'comowner', 'owners', 'all' );
|
5533 |
-
$html = wppa_select($slug, $opts, $vals);
|
5534 |
-
$clas = '';
|
5535 |
-
$tags = 'rating,layout';
|
5536 |
-
wppa_setting($slug, '21', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
|
5582 |
-
|
5583 |
-
|
5584 |
-
|
5585 |
-
|
5586 |
-
|
Â
|
|
Â
|
|
Â
|
|
5587 |
Â
|
5588 |
-
|
5589 |
-
|
5590 |
-
|
5591 |
-
|
5592 |
-
|
5593 |
-
|
5594 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5595 |
Â
);
|
5596 |
-
|
5597 |
-
|
5598 |
-
|
5599 |
Â
);
|
5600 |
-
|
5601 |
-
|
5602 |
-
|
5603 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
5604 |
-
|
5605 |
-
$name = __('Comment ntfy added', 'wp-photo-album-plus');
|
5606 |
-
$desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus');
|
5607 |
-
$help = '';
|
5608 |
-
$slug = 'wppa_commentnotify_added';
|
5609 |
-
$html = wppa_checkbox($slug);
|
5610 |
-
$clas = 'wppa_comment_';
|
5611 |
-
$tags = 'comment';
|
5612 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
5613 |
-
|
5614 |
-
$name = __('ComTen alt display', 'wp-photo-album-plus');
|
5615 |
-
$desc = __('Display comments at comten thumbnails.', 'wp-photo-album-plus');
|
5616 |
-
$help = '';
|
5617 |
-
$slug = 'wppa_comten_alt_display';
|
5618 |
-
$html = wppa_checkbox($slug);
|
5619 |
-
$clas = 'wppa_comment_';
|
5620 |
-
$tags = 'comment,layout';
|
5621 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
5622 |
-
|
5623 |
-
$name = __('Comten Thumbnail width', 'wp-photo-album-plus');
|
5624 |
-
$desc = __('The width of the thumbnail in the alt comment display.', 'wp-photo-album-plus');
|
5625 |
-
$help = '';
|
5626 |
-
$slug = 'wppa_comten_alt_thumbsize';
|
5627 |
-
$html = wppa_input($slug, '50px', '', __('Pixels', 'wp-photo-album-plus'));
|
5628 |
-
$clas = 'wppa_comment_';
|
5629 |
-
$tags = 'comment,layout';
|
5630 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
5631 |
-
|
5632 |
-
$name = __('Show smiley picker', 'wp-photo-album-plus');
|
5633 |
-
$desc = __('Display a clickable row of smileys.', 'wp-photo-album-plus');
|
5634 |
-
$help = '';
|
5635 |
-
$slug = 'wppa_comment_smiley_picker';
|
5636 |
-
$html = wppa_checkbox($slug);
|
5637 |
-
$clas = 'wppa_comment_';
|
5638 |
-
$tags = 'comment,layout';
|
5639 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5640 |
-
|
5641 |
-
$name = __('Allow clickable links', 'wp-photo-album-plus');
|
5642 |
-
$desc = __('Make links in comments clickable', 'wp-photo-album-plus');
|
5643 |
-
$help = '';
|
5644 |
-
$slug = 'wppa_comment_clickable';
|
5645 |
-
$html = wppa_checkbox($slug);
|
5646 |
-
$clas = 'wppa_comment_';
|
5647 |
-
$tags = 'comment,layout';
|
5648 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
5649 |
-
|
5650 |
-
$name = __('Comment db agreement', 'wp-photo-album-plus');
|
5651 |
-
$desc = __('User needs to tick a checkbox to agree db storage', 'wp-photo-album-plus');
|
5652 |
-
$help = '';
|
5653 |
-
$slug = 'wppa_comment_need_db_agree';
|
5654 |
-
$html = wppa_checkbox($slug);
|
5655 |
-
$clas = 'wppa_comment_';
|
5656 |
-
$tags = 'comment,layout';
|
5657 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
5658 |
-
|
5659 |
-
$name = __('Comment needs vote', 'wp-photo-album-plus');
|
5660 |
-
$desc = __('User needs to give a rating to get his comment published', 'wp-photo-album-plus');
|
5661 |
-
$help = '';
|
5662 |
-
$slug = 'wppa_comment_need_vote';
|
5663 |
-
$html = wppa_checkbox($slug);
|
5664 |
-
$clas = 'wppa_comment_';
|
5665 |
-
$tags = 'comment';
|
5666 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
5667 |
Â
|
5668 |
-
|
5669 |
-
|
5670 |
-
|
5671 |
-
|
5672 |
-
|
5673 |
-
|
5674 |
-
|
5675 |
-
|
5676 |
-
$clas = '';
|
5677 |
-
$tags = 'lightbox';
|
5678 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
5679 |
Â
|
5680 |
-
|
5681 |
-
|
5682 |
-
|
5683 |
-
|
5684 |
-
|
5685 |
-
|
5686 |
-
|
5687 |
-
|
5688 |
-
$tags = 'lightbox';
|
5689 |
-
wppa_setting($slug, '2.1', $name, $desc, $html, $help, $clas, $tags);
|
5690 |
Â
|
5691 |
-
|
5692 |
-
|
5693 |
-
|
5694 |
-
|
5695 |
-
|
5696 |
-
|
5697 |
-
|
5698 |
-
|
5699 |
Â
|
5700 |
-
|
5701 |
-
|
5702 |
-
|
5703 |
-
|
5704 |
-
|
5705 |
-
|
5706 |
-
|
5707 |
-
|
5708 |
-
$tags = 'lightbox';
|
5709 |
-
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
5710 |
Â
|
5711 |
-
|
5712 |
-
|
5713 |
-
|
5714 |
-
|
5715 |
-
|
5716 |
-
|
5717 |
-
|
5718 |
-
|
5719 |
-
$tags = 'lightbox';
|
5720 |
-
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
5721 |
Â
|
5722 |
-
|
5723 |
-
|
5724 |
-
|
5725 |
-
|
5726 |
-
|
5727 |
-
|
5728 |
-
|
5729 |
-
|
5730 |
-
|
5731 |
-
$name = __('WPPA+ Lightbox global is a set', 'wp-photo-album-plus');
|
5732 |
-
$desc = __('Treat the other images as a set.', 'wp-photo-album-plus');
|
5733 |
-
$help = (__('If checked, you can scroll through the images in the lightbox view. Requires item 5 to be checked.', 'wp-photo-album-plus'));
|
5734 |
-
$slug = 'wppa_lightbox_global_set';
|
5735 |
-
$html = wppa_checkbox($slug);
|
5736 |
-
$clas = '';
|
5737 |
-
$tags = 'lightbox';
|
5738 |
-
wppa_setting($slug, '5.1', $name, $desc, $html, $help, $clas, $tags);
|
5739 |
-
|
5740 |
-
$name = __('Use hires files', 'wp-photo-album-plus');
|
5741 |
-
$desc = __('Use the highest resolution available for lightbox.', 'wp-photo-album-plus');
|
5742 |
-
$help = (__('Ticking this box is recommended for lightbox fullscreen modes.', 'wp-photo-album-plus'));
|
5743 |
-
$slug = 'wppa_lb_hres';
|
5744 |
-
$html = wppa_checkbox($slug);
|
5745 |
-
$clas = '';
|
5746 |
-
$tags = 'lightbox';
|
5747 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
5748 |
-
|
5749 |
-
$name = __('Video autostart', 'wp-photo-album-plus');
|
5750 |
-
$desc = __('Videos on lightbox start automatically.', 'wp-photo-album-plus');
|
5751 |
-
$help = '';
|
5752 |
-
$slug = 'wppa_ovl_video_start';
|
5753 |
-
$html = wppa_checkbox($slug);
|
5754 |
-
$clas = '';
|
5755 |
-
$tags = 'lightbox,video';
|
5756 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
5757 |
Â
|
5758 |
-
|
5759 |
-
|
5760 |
-
|
5761 |
-
|
5762 |
-
|
5763 |
-
|
5764 |
-
|
5765 |
-
|
5766 |
-
/*
|
5767 |
-
$name = __('Lightbox start mode', 'wp-photo-album-plus');
|
5768 |
-
$desc = __('The mode lightbox starts in.', 'wp-photo-album-plus');
|
5769 |
-
$help = '';
|
5770 |
-
$slug = 'wppa_ovl_mode_initial';
|
5771 |
-
$opts = array( __('Normal', 'wp-photo-album-plus'),
|
5772 |
-
__('Fullscreen', 'wp-photo-album-plus'),
|
5773 |
-
);
|
5774 |
-
$vals = array( 'normal',
|
5775 |
-
'padded',
|
5776 |
-
);
|
5777 |
-
$html = wppa_select($slug,$opts,$vals);
|
5778 |
-
$clas = '';
|
5779 |
-
$tags = 'lightbox,layout';
|
5780 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5781 |
Â
|
5782 |
-
|
5783 |
-
|
5784 |
-
|
5785 |
-
|
5786 |
-
|
5787 |
-
|
5788 |
-
|
5789 |
-
|
5790 |
-
'padded',
|
5791 |
-
);
|
5792 |
-
$html = wppa_select($slug,$opts,$vals);
|
5793 |
-
$clas = '';
|
5794 |
-
$tags = 'lightbox,layout';
|
5795 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
5796 |
-
*/
|
5797 |
-
}
|
5798 |
Â
|
5799 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5800 |
Â
|
5801 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5802 |
Â
|
5803 |
-
$name = __(
|
5804 |
-
$desc = __(
|
5805 |
Â
$help = '';
|
5806 |
-
$slug = '
|
5807 |
-
$
|
5808 |
-
|
5809 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5810 |
Â
);
|
5811 |
-
$
|
5812 |
-
|
5813 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5814 |
Â
);
|
5815 |
-
$html = wppa_select($slug, $
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5816 |
Â
$clas = '';
|
5817 |
-
$tags = '';
|
5818 |
-
wppa_setting(
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5819 |
Â
|
5820 |
-
$name = __(
|
5821 |
-
$desc = __(
|
5822 |
Â
$help = '';
|
5823 |
-
$slug = '
|
5824 |
-
$
|
5825 |
-
|
5826 |
-
|
5827 |
-
$
|
5828 |
-
|
5829 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5830 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5831 |
Â
$clas = '';
|
5832 |
-
$tags = '';
|
5833 |
-
wppa_setting(
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5834 |
Â
|
5835 |
-
$name = __(
|
5836 |
-
$desc = __(
|
5837 |
Â
$help = '';
|
5838 |
-
$slug = '
|
5839 |
-
$
|
5840 |
-
|
5841 |
-
|
5842 |
-
|
5843 |
-
|
5844 |
-
|
5845 |
-
|
5846 |
-
|
Â
|
|
Â
|
|
Â
|
|
5847 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5848 |
Â
$clas = '';
|
5849 |
-
$tags = '';
|
5850 |
-
wppa_setting(
|
5851 |
Â
|
5852 |
-
$name = __(
|
5853 |
-
$desc = __(
|
Â
|
|
5854 |
Â
$help = '';
|
5855 |
-
$
|
5856 |
-
$
|
5857 |
-
|
5858 |
-
|
5859 |
-
|
5860 |
-
|
5861 |
-
|
5862 |
-
$
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5863 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5864 |
Â
$clas = '';
|
5865 |
-
$tags = '';
|
5866 |
-
wppa_setting(
|
5867 |
Â
|
5868 |
-
$name = __(
|
5869 |
-
$desc = __(
|
5870 |
Â
$help = '';
|
5871 |
-
$slug = '
|
5872 |
-
$opts = array(
|
5873 |
-
|
5874 |
-
__( 'normal', 'wp-photo-album-plus' ),
|
5875 |
-
__( 'high', 'wp-photo-album-plus' ),
|
5876 |
-
__( 'very high', 'wp-photo-album-plus' ),
|
5877 |
-
);
|
5878 |
-
$vals = array( '1', '2', '3', '5', '8' );
|
5879 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5880 |
Â
$clas = '';
|
5881 |
-
$tags = '';
|
5882 |
-
wppa_setting(
|
5883 |
Â
|
5884 |
-
$name = __(
|
5885 |
-
$desc = __(
|
5886 |
Â
$help = '';
|
5887 |
-
$slug = '
|
5888 |
-
$opts = array( '
|
5889 |
-
$vals = array( '
|
5890 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5891 |
Â
$clas = '';
|
5892 |
-
$tags = '';
|
5893 |
-
wppa_setting(
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5894 |
Â
|
5895 |
-
$name = __(
|
5896 |
-
$desc = __(
|
5897 |
Â
$help = '';
|
5898 |
-
$slug = '
|
5899 |
-
$
|
5900 |
-
$
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5901 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5902 |
Â
$clas = '';
|
5903 |
-
$tags = '';
|
5904 |
-
wppa_setting(
|
5905 |
-
}
|
5906 |
-
?>
|
5907 |
-
</tbody>
|
5908 |
-
<tfoot style="font-weight: bold;" class="wppa_table_4">
|
5909 |
-
<tr>
|
5910 |
-
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
5911 |
-
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
5912 |
-
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
5913 |
-
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
5914 |
-
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
5915 |
-
</tr>
|
5916 |
-
</tfoot>
|
5917 |
-
</table>
|
5918 |
-
</div>
|
5919 |
Â
|
5920 |
-
|
5921 |
-
|
5922 |
-
|
5923 |
-
|
5924 |
-
|
5925 |
-
|
5926 |
-
|
5927 |
-
|
5928 |
-
<table class="widefat wppa-table wppa-setting-table">
|
5929 |
-
<thead style="font-weight: bold; " class="wppa_table_5">
|
5930 |
-
<tr>
|
5931 |
-
<td scope="col" ><?php _e('#', 'wp-photo-album-plus') ?></td>
|
5932 |
-
<td scope="col" ><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
5933 |
-
<td scope="col" ><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
5934 |
-
<td scope="col" ><?php _e('Font family', 'wp-photo-album-plus') ?></td>
|
5935 |
-
<td scope="col" ><?php _e('Font size', 'wp-photo-album-plus') ?></td>
|
5936 |
-
<td scope="col" ><?php _e('Font color', 'wp-photo-album-plus') ?></td>
|
5937 |
-
<td scope="col" ><?php _e('Font weight', 'wp-photo-album-plus') ?></td>
|
5938 |
-
<td scope="col" ><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
5939 |
-
</tr>
|
5940 |
-
</thead>
|
5941 |
-
<tbody class="wppa_table_5">
|
5942 |
-
<?php
|
5943 |
-
$wppa_table = 'V';
|
5944 |
-
|
5945 |
-
$wppa_subtable = 'Z'; // No subtables
|
5946 |
-
|
5947 |
-
$options = array(__('normal', 'wp-photo-album-plus'), __('bold', 'wp-photo-album-plus'), __('bolder', 'wp-photo-album-plus'), __('lighter', 'wp-photo-album-plus'), '100', '200', '300', '400', '500', '600', '700', '800', '900');
|
5948 |
-
$values = array('normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900');
|
5949 |
-
|
5950 |
-
$name = __('Album titles', 'wp-photo-album-plus');
|
5951 |
-
$desc = __('Font used for Album titles.', 'wp-photo-album-plus');
|
5952 |
-
$help = (__('Enter font name, size, color and weight for album cover titles.', 'wp-photo-album-plus'));
|
5953 |
-
$slug1 = 'wppa_fontfamily_title';
|
5954 |
-
$slug2 = 'wppa_fontsize_title';
|
5955 |
-
$slug3 = 'wppa_fontcolor_title';
|
5956 |
-
$slug4 = 'wppa_fontweight_title';
|
5957 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5958 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
5959 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
5960 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
5961 |
-
$html4 = wppa_select($slug4, $options, $values);
|
5962 |
-
$html = array($html1, $html2, $html3, $html4);
|
5963 |
-
$clas = '';
|
5964 |
-
$tags = 'layout,album';
|
5965 |
-
wppa_setting($slug, '1a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
5966 |
-
|
5967 |
-
$name = __('Slideshow desc', 'wp-photo-album-plus');
|
5968 |
-
$desc = __('Font for slideshow photo descriptions.', 'wp-photo-album-plus');
|
5969 |
-
$help = (__('Enter font name, size, color and weight for slideshow photo descriptions.', 'wp-photo-album-plus'));
|
5970 |
-
$slug1 = 'wppa_fontfamily_fulldesc';
|
5971 |
-
$slug2 = 'wppa_fontsize_fulldesc';
|
5972 |
-
$slug3 = 'wppa_fontcolor_fulldesc';
|
5973 |
-
$slug4 = 'wppa_fontweight_fulldesc';
|
5974 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5975 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
5976 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
5977 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
5978 |
-
$html4 = wppa_select($slug4, $options, $values);
|
5979 |
-
$html = array($html1, $html2, $html3, $html4);
|
5980 |
-
$clas = '';
|
5981 |
-
$tags = 'layout,slide';
|
5982 |
-
wppa_setting($slug, '2a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
5983 |
-
|
5984 |
-
$name = __('Slideshow name', 'wp-photo-album-plus');
|
5985 |
-
$desc = __('Font for slideshow photo names.', 'wp-photo-album-plus');
|
5986 |
-
$help = (__('Enter font name, size, color and weight for slideshow photo names.', 'wp-photo-album-plus'));
|
5987 |
-
$slug1 = 'wppa_fontfamily_fulltitle';
|
5988 |
-
$slug2 = 'wppa_fontsize_fulltitle';
|
5989 |
-
$slug3 = 'wppa_fontcolor_fulltitle';
|
5990 |
-
$slug4 = 'wppa_fontweight_fulltitle';
|
5991 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5992 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
5993 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
5994 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
5995 |
-
$html4 = wppa_select($slug4, $options, $values);
|
5996 |
-
$html = array($html1, $html2, $html3, $html4);
|
5997 |
-
$clas = '';
|
5998 |
-
$tags = 'layout,slide,meta';
|
5999 |
-
wppa_setting($slug, '3a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6000 |
-
|
6001 |
-
$name = __('Navigations', 'wp-photo-album-plus');
|
6002 |
-
$desc = __('Font for navigations.', 'wp-photo-album-plus');
|
6003 |
-
$help = (__('Enter font name, size, color and weight for navigation items.', 'wp-photo-album-plus'));
|
6004 |
-
$slug1 = 'wppa_fontfamily_nav';
|
6005 |
-
$slug2 = 'wppa_fontsize_nav';
|
6006 |
-
$slug3 = 'wppa_fontcolor_nav';
|
6007 |
-
$slug4 = 'wppa_fontweight_nav';
|
6008 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6009 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
6010 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
6011 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
6012 |
-
$html4 = wppa_select($slug4, $options, $values);
|
6013 |
-
$html = array($html1, $html2, $html3, $html4);
|
6014 |
-
$clas = '';
|
6015 |
-
$tags = 'layout,navi';
|
6016 |
-
wppa_setting($slug, '4a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6017 |
-
|
6018 |
-
$name = __('Thumbnails', 'wp-photo-album-plus');
|
6019 |
-
$desc = __('Font for text under thumbnails.', 'wp-photo-album-plus');
|
6020 |
-
$help = (__('Enter font name, size, color and weight for text under thumbnail images.', 'wp-photo-album-plus'));
|
6021 |
-
$slug1 = 'wppa_fontfamily_thumb';
|
6022 |
-
$slug2 = 'wppa_fontsize_thumb';
|
6023 |
-
$slug3 = 'wppa_fontcolor_thumb';
|
6024 |
-
$slug4 = 'wppa_fontweight_thumb';
|
6025 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6026 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
6027 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
6028 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
6029 |
-
$html4 = wppa_select($slug4, $options, $values);
|
6030 |
-
$html = array($html1, $html2, $html3, $html4);
|
6031 |
-
$clas = '';
|
6032 |
-
$tags = 'layout,thumb';
|
6033 |
-
wppa_setting($slug, '5a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6034 |
-
|
6035 |
-
$name = __('Other', 'wp-photo-album-plus');
|
6036 |
-
$desc = __('General font in wppa boxes.', 'wp-photo-album-plus');
|
6037 |
-
$help = (__('Enter font name, size, color and weight for all other items.', 'wp-photo-album-plus'));
|
6038 |
-
$slug1 = 'wppa_fontfamily_box';
|
6039 |
-
$slug2 = 'wppa_fontsize_box';
|
6040 |
-
$slug3 = 'wppa_fontcolor_box';
|
6041 |
-
$slug4 = 'wppa_fontweight_box';
|
6042 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6043 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
6044 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
6045 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
6046 |
-
$html4 = wppa_select($slug4, $options, $values);
|
6047 |
-
$html = array($html1, $html2, $html3, $html4);
|
6048 |
-
$clas = '';
|
6049 |
-
$tags = 'layout';
|
6050 |
-
wppa_setting($slug, '6a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6051 |
-
|
6052 |
-
$name = __('Numbar', 'wp-photo-album-plus');
|
6053 |
-
$desc = __('Font in wppa number bars.', 'wp-photo-album-plus');
|
6054 |
-
$help = (__('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus'));
|
6055 |
-
$slug1 = 'wppa_fontfamily_numbar';
|
6056 |
-
$slug2 = 'wppa_fontsize_numbar';
|
6057 |
-
$slug3 = 'wppa_fontcolor_numbar';
|
6058 |
-
$slug4 = 'wppa_fontweight_numbar';
|
6059 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6060 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
6061 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
6062 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
6063 |
-
$html4 = wppa_select($slug4, $options, $values);
|
6064 |
-
$html = array($html1, $html2, $html3, $html4);
|
6065 |
-
$clas = '';
|
6066 |
-
$tags = 'layout,slide,navi';
|
6067 |
-
wppa_setting($slug, '7a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6068 |
-
|
6069 |
-
$name = __('Numbar Active', 'wp-photo-album-plus');
|
6070 |
-
$desc = __('Font in wppa number bars, active item.', 'wp-photo-album-plus');
|
6071 |
-
$help = (__('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus'));
|
6072 |
-
$slug1 = 'wppa_fontfamily_numbar_active';
|
6073 |
-
$slug2 = 'wppa_fontsize_numbar_active';
|
6074 |
-
$slug3 = 'wppa_fontcolor_numbar_active';
|
6075 |
-
$slug4 = 'wppa_fontweight_numbar_active';
|
6076 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6077 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
6078 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
6079 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
6080 |
-
$html4 = wppa_select($slug4, $options, $values);
|
6081 |
-
$html = array($html1, $html2, $html3, $html4);
|
6082 |
-
$clas = '';
|
6083 |
-
$tags = 'layout,slide,navi';
|
6084 |
-
wppa_setting($slug, '8a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6085 |
-
|
6086 |
-
$name = __('Lightbox', 'wp-photo-album-plus');
|
6087 |
-
$desc = __('Font in wppa lightbox overlays.', 'wp-photo-album-plus');
|
6088 |
-
$help = (__('Enter font name, size, color and weight for wppa lightbox overlays.', 'wp-photo-album-plus'));
|
6089 |
-
$slug1 = 'wppa_fontfamily_lightbox';
|
6090 |
-
$slug2 = 'wppa_fontsize_lightbox';
|
6091 |
-
$slug3 = 'wppa_fontcolor_lightbox';
|
6092 |
-
$slug4 = 'wppa_fontweight_lightbox';
|
6093 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6094 |
-
$html1 = wppa_input($slug1, '90%', '200px', '');
|
6095 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
6096 |
-
$html3 = wppa_input($slug3, '70px', '', '');
|
6097 |
-
$html4 = wppa_select($slug4, $options, $values);
|
6098 |
-
$html = array($html1, $html2, $html3, $html4);
|
6099 |
-
$clas = '';
|
6100 |
-
$tags = 'layout,lightbox';
|
6101 |
-
wppa_setting($slug, '9a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
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 |
-
$opts = array( __('Small', 'wp-photo-album-plus'),
|
6130 |
-
__('Medium', 'wp-photo-album-plus'),
|
6131 |
-
__('Large', 'wp-photo-album-plus'),
|
6132 |
-
__('Extra large', 'wp-photo-album-plus'));
|
6133 |
-
$vals = array( 'small', 'medium', 'large', 'xlarge');
|
6134 |
-
$html2 = wppa_select($slug2, $opts, $vals);
|
6135 |
-
$html3 = '';
|
6136 |
-
$html4 = wppa_checkbox($slug4) . ' ' . __('Bold', 'wp-photo-album-plus');
|
6137 |
-
$html = '</td><td>' . $html2 . '</td><td></td><td>' . $html4;
|
6138 |
-
$clas = '';
|
6139 |
-
$tags = 'size,layout';
|
6140 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
6141 |
-
|
6142 |
-
?>
|
6143 |
-
</tbody>
|
6144 |
-
<tfoot style="font-weight: bold;" class="wppa_table_5">
|
6145 |
-
<tr>
|
6146 |
-
<td scope="col" ><?php _e('#', 'wp-photo-album-plus') ?></td>
|
6147 |
-
<td scope="col" ><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
6148 |
-
<td scope="col" ><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
6149 |
-
<td scope="col" ><?php _e('Font family', 'wp-photo-album-plus') ?></td>
|
6150 |
-
<td scope="col" ><?php _e('Font size', 'wp-photo-album-plus') ?></td>
|
6151 |
-
<td scope="col" ><?php _e('Font color', 'wp-photo-album-plus') ?></td>
|
6152 |
-
<td scope="col" ><?php _e('Font weight', 'wp-photo-album-plus') ?></td>
|
6153 |
-
<td scope="col" ><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
6154 |
-
</tr>
|
6155 |
-
</tfoot>
|
6156 |
-
</table>
|
6157 |
-
</div>
|
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 |
-
|
6220 |
-
|
6221 |
-
|
6222 |
-
|
6223 |
-
|
6224 |
-
|
6225 |
-
|
6226 |
-
|
6227 |
-
|
6228 |
-
|
6229 |
-
|
6230 |
-
|
6231 |
-
|
6232 |
-
|
6233 |
-
|
6234 |
-
|
6235 |
-
|
6236 |
-
|
6237 |
-
|
6238 |
-
|
6239 |
-
|
6240 |
-
$onchange = 'wppaCheckSlideOnlyLink();';
|
6241 |
-
$opts = array(
|
6242 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6243 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6244 |
-
__('defined at widget activation.', 'wp-photo-album-plus'),
|
6245 |
-
__('the content of the album.', 'wp-photo-album-plus'),
|
6246 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6247 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6248 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6249 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6250 |
-
);
|
6251 |
-
$vals = array(
|
6252 |
-
'none',
|
6253 |
-
'file',
|
6254 |
-
'widget',
|
6255 |
-
'album',
|
6256 |
-
'photo',
|
6257 |
-
'single',
|
6258 |
-
'plainpage',
|
6259 |
-
'lightbox'
|
6260 |
-
);
|
6261 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6262 |
-
$clas = 'wppa_solp';
|
6263 |
-
$onchange = '';
|
6264 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6265 |
-
$clas = 'wppa_solb';
|
6266 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6267 |
-
$html4 = wppa_checkbox($slug4);
|
6268 |
-
$html = array($html1, $html2, $html3, $html4);
|
6269 |
-
$clas = '';
|
6270 |
-
$tags = 'widget,link,slide';
|
6271 |
-
wppa_setting($slug, '2a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6272 |
-
}
|
6273 |
-
{
|
6274 |
-
$name = __('Album widget', 'wp-photo-album-plus');
|
6275 |
-
$desc = __('Album widget thumbnail link', 'wp-photo-album-plus');
|
6276 |
-
$help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
|
6277 |
-
'<br />' .
|
6278 |
-
__('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');
|
6279 |
-
$slug1 = 'wppa_album_widget_linktype';
|
6280 |
-
$slug2 = 'wppa_album_widget_linkpage';
|
6281 |
-
wppa_verify_page($slug2);
|
6282 |
-
$slug3 = 'wppa_album_widget_blank';
|
6283 |
-
$slug4 = 'wppa_album_widget_overrule';
|
6284 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6285 |
-
$onchange = 'wppaCheckAlbumWidgetLink();';
|
6286 |
-
$opts = array(
|
6287 |
-
__('subalbums and thumbnails.', 'wp-photo-album-plus'),
|
6288 |
-
__('slideshow', 'wp-photo-album-plus'),
|
6289 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6290 |
-
__('lightbox', 'wp-photo-album-plus'),
|
6291 |
-
);
|
6292 |
-
$vals = array(
|
6293 |
-
'content',
|
6294 |
-
'slide',
|
6295 |
-
'plainpage',
|
6296 |
-
'lightbox',
|
6297 |
-
);
|
6298 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6299 |
-
$clas = 'wppa_awlp';
|
6300 |
-
$onchange = '';
|
6301 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6302 |
-
$clas = 'wppa_awlb';
|
6303 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6304 |
-
$html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO </span>'.wppa_checkbox($slug4);
|
6305 |
-
$html = array($html1, $html2, $html3, $html4);
|
6306 |
Â
|
6307 |
-
$clas = '';
|
6308 |
-
$tags = 'widget,link,album';
|
6309 |
-
wppa_setting($slug, '3a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6310 |
-
}
|
6311 |
-
{
|
6312 |
-
$name = __('Album navigator widget', 'wp-photo-album-plus');
|
6313 |
-
$desc = __('Album navigator widget link', 'wp-photo-album-plus');
|
6314 |
-
$help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
|
6315 |
-
'<br />' .
|
6316 |
-
__('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');
|
6317 |
-
$slug1 = 'wppa_album_navigator_widget_linktype';
|
6318 |
-
$slug2 = 'wppa_album_navigator_widget_linkpage';
|
6319 |
-
wppa_verify_page($slug2);
|
6320 |
-
$slug3 = 'wppa_album_navigator_widget_blank';
|
6321 |
-
$slug4 = 'wppa_album_navigator_widget_overrule';
|
6322 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6323 |
-
$onchange = 'wppaCheckAlbumNavigatorWidgetLink();';
|
6324 |
-
$opts = array(
|
6325 |
-
__('thumbnails', 'wp-photo-album-plus'),
|
6326 |
-
__('slideshow', 'wp-photo-album-plus'),
|
6327 |
-
__('subalbums and thumbnails', 'wp-photo-album-plus'),
|
6328 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6329 |
-
__('lightbox', 'wp-photo-album-plus'),
|
6330 |
-
);
|
6331 |
-
$vals = array(
|
6332 |
-
'thumbs',
|
6333 |
-
'slide',
|
6334 |
-
'content',
|
6335 |
-
'plainpage',
|
6336 |
-
'lightbox',
|
6337 |
-
);
|
6338 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6339 |
-
$clas = 'wppa_anwlp';
|
6340 |
-
$onchange = '';
|
6341 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6342 |
-
$clas = 'wppa_anwlb';
|
6343 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6344 |
-
$html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO </span>'.wppa_checkbox($slug4);
|
6345 |
-
$html = array($html1, $html2, $html3, $html4);
|
6346 |
Â
|
6347 |
-
|
6348 |
-
|
6349 |
-
|
6350 |
-
|
6351 |
-
|
6352 |
-
|
6353 |
-
|
6354 |
-
|
6355 |
-
|
6356 |
-
|
6357 |
-
wppa_verify_page($slug2);
|
6358 |
-
$slug3 = 'wppa_thumbnail_widget_blank';
|
6359 |
-
$slug4 = 'wppa_thumbnail_widget_overrule';
|
6360 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6361 |
-
$onchange = 'wppaCheckThumbnailWLink();';
|
6362 |
-
$opts = array(
|
6363 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6364 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6365 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6366 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6367 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
6368 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6369 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6370 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6371 |
-
);
|
6372 |
-
$vals = array(
|
6373 |
-
'none',
|
6374 |
-
'file',
|
6375 |
-
'photo',
|
6376 |
-
'single',
|
6377 |
-
'slphoto',
|
6378 |
-
'fullpopup',
|
6379 |
-
'plainpage',
|
6380 |
-
'lightbox'
|
6381 |
-
);
|
6382 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6383 |
-
$clas = 'wppa_tnlp';
|
6384 |
-
$onchange = '';
|
6385 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6386 |
-
$clas = 'wppa_tnlb';
|
6387 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6388 |
-
$html4 = wppa_checkbox($slug4);
|
6389 |
-
$html = array($html1, $html2, $html3, $html4);
|
6390 |
-
$clas = '';
|
6391 |
-
$tags = 'widget,link,thumb';
|
6392 |
-
wppa_setting($slug, '4a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6393 |
-
}
|
6394 |
-
{
|
6395 |
-
$name = __('TopTenWidget', 'wp-photo-album-plus');
|
6396 |
-
$desc = __('TopTen widget photo link.', 'wp-photo-album-plus');
|
6397 |
-
$help = (__('Select the type of link the top ten photos point to.', 'wp-photo-album-plus'));
|
6398 |
-
$slug1 = 'wppa_topten_widget_linktype';
|
6399 |
-
$slug2 = 'wppa_topten_widget_linkpage';
|
6400 |
-
wppa_verify_page($slug2);
|
6401 |
-
$slug3 = 'wppa_topten_blank';
|
6402 |
-
$slug4 = 'wppa_topten_overrule';
|
6403 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6404 |
-
$onchange = 'wppaCheckTopTenLink();';
|
6405 |
-
$opts = array(
|
6406 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6407 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6408 |
-
__('the content of the virtual topten album.', 'wp-photo-album-plus'),
|
6409 |
-
__('the content of the thumbnails album.', 'wp-photo-album-plus'),
|
6410 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6411 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
6412 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6413 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
6414 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6415 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6416 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6417 |
-
);
|
6418 |
-
$vals = array(
|
6419 |
-
'none',
|
6420 |
-
'file',
|
6421 |
-
'album',
|
6422 |
-
'thumbalbum',
|
6423 |
-
'photo',
|
6424 |
-
'slidealbum',
|
6425 |
-
'single',
|
6426 |
-
'slphoto',
|
6427 |
-
'fullpopup',
|
6428 |
-
'plainpage',
|
6429 |
-
'lightbox'
|
6430 |
-
);
|
6431 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6432 |
-
$clas = 'wppa_ttlp';
|
6433 |
-
$onchange = '';
|
6434 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6435 |
-
$clas = 'wppa_ttlb';
|
6436 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6437 |
-
$html4 = wppa_checkbox($slug4);
|
6438 |
-
$html = array($html1, $html2, $html3, $html4);
|
6439 |
-
$clas = 'wppa_rating';
|
6440 |
-
$clas = '';
|
6441 |
-
$tags = 'widget,link,thumb,rating';
|
6442 |
-
wppa_setting($slug, '5a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6443 |
-
|
6444 |
-
$name = __('TopTenWidget', 'wp-photo-album-plus');
|
6445 |
-
$desc = __('TopTen widget album linkpage.', 'wp-photo-album-plus');
|
6446 |
-
$help = __('Select the linkpage the top ten albums point to.', 'wp-photo-album-plus');
|
6447 |
-
$slug1 = '';
|
6448 |
-
$slug2 = 'wppa_topten_widget_album_linkpage';
|
6449 |
-
wppa_verify_page($slug2);
|
6450 |
-
$slug3 = ''; // 'wppa_topten_blank';
|
6451 |
-
$slug4 = ''; // 'wppa_topten_overrule';
|
6452 |
-
// $slug = array($slug1, $slug2, $slug3, $slug4);
|
6453 |
-
// $onchange = 'wppaCheckTopTenLink();';
|
6454 |
-
/* $opts = array(
|
6455 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6456 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6457 |
-
__('the content of the virtual topten album.', 'wp-photo-album-plus'),
|
6458 |
-
__('the content of the thumbnails album.', 'wp-photo-album-plus'),
|
6459 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6460 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
6461 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6462 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
6463 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6464 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6465 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6466 |
-
);
|
6467 |
-
$vals = array(
|
6468 |
-
'none',
|
6469 |
-
'file',
|
6470 |
-
'album',
|
6471 |
-
'thumbalbum',
|
6472 |
-
'photo',
|
6473 |
-
'slidealbum',
|
6474 |
-
'single',
|
6475 |
-
'slphoto',
|
6476 |
-
'fullpopup',
|
6477 |
-
'plainpage',
|
6478 |
-
'lightbox'
|
6479 |
-
);
|
6480 |
-
*/
|
6481 |
-
// $html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6482 |
-
$clas = 'wppa_ttlp';
|
6483 |
-
$onchange = '';
|
6484 |
-
$html1 = '';
|
6485 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6486 |
-
// $clas = 'wppa_ttlb';
|
6487 |
-
$html3 = ''; //wppa_checkbox($slug3, '', $clas);
|
6488 |
-
$html4 = ''; //wppa_checkbox($slug4);
|
6489 |
-
$html = array($html1, $html2, $html3, $html4);
|
6490 |
-
$clas = 'wppa_rating';
|
6491 |
-
$clas = '';
|
6492 |
-
$tags = 'widget,link,thumb,rating';
|
6493 |
-
wppa_setting($slug, '5.1a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6494 |
-
}
|
6495 |
-
{
|
6496 |
-
$name = __('LasTenWidget', 'wp-photo-album-plus');
|
6497 |
-
$desc = __('Last Ten widget photo link.', 'wp-photo-album-plus');
|
6498 |
-
$help = (__('Select the type of link the last ten photos point to.', 'wp-photo-album-plus'));
|
6499 |
-
$slug1 = 'wppa_lasten_widget_linktype';
|
6500 |
-
$slug2 = 'wppa_lasten_widget_linkpage';
|
6501 |
-
wppa_verify_page($slug2);
|
6502 |
-
$slug3 = 'wppa_lasten_blank';
|
6503 |
-
$slug4 = 'wppa_lasten_overrule';
|
6504 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6505 |
-
$onchange = 'wppaCheckLasTenLink();';
|
6506 |
-
$opts = array(
|
6507 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6508 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6509 |
-
__('the content of the virtual lasten album.', 'wp-photo-album-plus'),
|
6510 |
-
__('the content of the thumbnails album.', 'wp-photo-album-plus'),
|
6511 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6512 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
6513 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6514 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
6515 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6516 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6517 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6518 |
-
);
|
6519 |
-
$vals = array(
|
6520 |
-
'none',
|
6521 |
-
'file',
|
6522 |
-
'album',
|
6523 |
-
'thumbalbum',
|
6524 |
-
'photo',
|
6525 |
-
'slidealbum',
|
6526 |
-
'single',
|
6527 |
-
'slphoto',
|
6528 |
-
'fullpopup',
|
6529 |
-
'plainpage',
|
6530 |
-
'lightbox'
|
6531 |
-
);
|
6532 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6533 |
-
$clas = 'wppa_ltlp';
|
6534 |
-
$onchange = '';
|
6535 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6536 |
-
$clas = 'wppa_ltlb';
|
6537 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6538 |
-
$html4 = wppa_checkbox($slug4);
|
6539 |
-
$html = array($html1, $html2, $html3, $html4);
|
6540 |
-
$clas = '';
|
6541 |
-
$tags = 'widget,link,thumb';
|
6542 |
-
wppa_setting($slug, '6a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6543 |
-
}
|
6544 |
-
{
|
6545 |
-
$name = __('CommentWidget', 'wp-photo-album-plus');
|
6546 |
-
$desc = __('Comment widget photo link.', 'wp-photo-album-plus');
|
6547 |
-
$help = (__('Select the type of link the comment widget photos point to.', 'wp-photo-album-plus'));
|
6548 |
-
$slug1 = 'wppa_comment_widget_linktype';
|
6549 |
-
$slug2 = 'wppa_comment_widget_linkpage';
|
6550 |
-
wppa_verify_page($slug2);
|
6551 |
-
$slug3 = 'wppa_comment_blank';
|
6552 |
-
$slug4 = 'wppa_comment_overrule';
|
6553 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6554 |
-
$onchange = 'wppaCheckCommentLink();';
|
6555 |
-
$opts = array(
|
6556 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6557 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6558 |
-
__('the content of the virtual comten album.', 'wp-photo-album-plus'),
|
6559 |
-
__('the content of the thumbnails album.', 'wp-photo-album-plus'),
|
6560 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6561 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
6562 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6563 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
6564 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6565 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6566 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6567 |
-
);
|
6568 |
-
$vals = array(
|
6569 |
-
'none',
|
6570 |
-
'file',
|
6571 |
-
'album',
|
6572 |
-
'thumbalbum',
|
6573 |
-
'photo',
|
6574 |
-
'slidealbum',
|
6575 |
-
'single',
|
6576 |
-
'slphoto',
|
6577 |
-
'fullpopup',
|
6578 |
-
'plainpage',
|
6579 |
-
'lightbox'
|
6580 |
-
);
|
6581 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6582 |
-
$clas = 'wppa_cmlp';
|
6583 |
-
$onchange = '';
|
6584 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6585 |
-
$clas = 'wppa_cmlb';
|
6586 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6587 |
-
$html4 = wppa_checkbox($slug4);
|
6588 |
-
$html = array($html1, $html2, $html3, $html4);
|
6589 |
-
$clas = '';
|
6590 |
-
$tags = 'widget,link,thumb,comment';
|
6591 |
-
wppa_setting($slug, '7a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6592 |
-
}
|
6593 |
-
{
|
6594 |
-
$name = __('FeaTenWidget', 'wp-photo-album-plus');
|
6595 |
-
$desc = __('FeaTen widget photo link.', 'wp-photo-album-plus');
|
6596 |
-
$help = (__('Select the type of link the featured ten photos point to.', 'wp-photo-album-plus'));
|
6597 |
-
$slug1 = 'wppa_featen_widget_linktype';
|
6598 |
-
$slug2 = 'wppa_featen_widget_linkpage';
|
6599 |
-
wppa_verify_page($slug2);
|
6600 |
-
$slug3 = 'wppa_featen_blank';
|
6601 |
-
$slug4 = 'wppa_featen_overrule';
|
6602 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6603 |
-
$onchange = 'wppaCheckFeaTenLink();';
|
6604 |
-
$opts = array(
|
6605 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6606 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6607 |
-
__('the content of the virtual featen album.', 'wp-photo-album-plus'),
|
6608 |
-
__('the content of the thumbnails album.', 'wp-photo-album-plus'),
|
6609 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6610 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
6611 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6612 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
6613 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6614 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6615 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6616 |
-
);
|
6617 |
-
$vals = array(
|
6618 |
-
'none',
|
6619 |
-
'file',
|
6620 |
-
'album',
|
6621 |
-
'thumbalbum',
|
6622 |
-
'photo',
|
6623 |
-
'slidealbum',
|
6624 |
-
'single',
|
6625 |
-
'slphoto',
|
6626 |
-
'fullpopup',
|
6627 |
-
'plainpage',
|
6628 |
-
'lightbox'
|
6629 |
-
);
|
6630 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6631 |
-
$clas = 'wppa_ftlp';
|
6632 |
-
$onchange = '';
|
6633 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
6634 |
-
$clas = 'wppa_ftlb';
|
6635 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6636 |
-
$html4 = wppa_checkbox($slug4);
|
6637 |
-
$html = array($html1, $html2, $html3, $html4);
|
6638 |
-
$clas = '';
|
6639 |
-
$tags = 'widget,link,thumb';
|
6640 |
-
wppa_setting($slug, '8a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6641 |
-
}
|
6642 |
-
wppa_setting_subheader('B', '4', __('Links from other WPPA+ images', 'wp-photo-album-plus'));
|
6643 |
-
{
|
6644 |
-
$name = __('Cover Image', 'wp-photo-album-plus');
|
6645 |
-
$desc = __('The link from the cover image of an album.', 'wp-photo-album-plus');
|
6646 |
-
$help = (__('Select the type of link the coverphoto points to.', 'wp-photo-album-plus'));
|
6647 |
-
$help .= '<br />'.(__('The link from the album title can be configured on the Edit Album page.', 'wp-photo-album-plus'));
|
6648 |
-
$help .= '<br />'.(__('This link will be used for the photo also if you select: same as title.', 'wp-photo-album-plus'));
|
6649 |
-
$help .= '<br />'.(__('If you specify New Tab on this line, all links from the cover will open a new tab,', 'wp-photo-album-plus'));
|
6650 |
-
$help .= '<br />'.(__('except when Ajax is activated on Table IV-A1.', 'wp-photo-album-plus'));
|
6651 |
-
$slug1 = 'wppa_coverimg_linktype';
|
6652 |
-
$slug2 = 'wppa_coverimg_linkpage';
|
6653 |
-
wppa_verify_page($slug2);
|
6654 |
-
$slug3 = 'wppa_coverimg_blank';
|
6655 |
-
$slug4 = 'wppa_coverimg_overrule';
|
6656 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6657 |
-
$onchange = 'wppaCheckCoverImg()';
|
6658 |
-
$opts = array(
|
6659 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6660 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6661 |
-
__('same as title.', 'wp-photo-album-plus'),
|
6662 |
-
__('lightbox.', 'wp-photo-album-plus'),
|
6663 |
-
__('a slideshow starting at the photo', 'wp-photo-album-plus')
|
6664 |
-
);
|
6665 |
-
$vals = array(
|
6666 |
-
'none',
|
6667 |
-
'file',
|
6668 |
-
'same',
|
6669 |
-
'lightbox',
|
6670 |
-
'slideshowstartatimage'
|
6671 |
-
);
|
6672 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6673 |
-
$clas = '';
|
6674 |
-
$html2 = '';
|
6675 |
-
$clas = 'wppa_covimgbl';
|
6676 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6677 |
-
$html4 = wppa_checkbox($slug4);
|
6678 |
-
$html = array($html1, $html2, $html3, $html4);
|
6679 |
-
$clas = '';
|
6680 |
-
$tags = 'link,cover';
|
6681 |
-
wppa_setting($slug, '1a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6682 |
-
}
|
6683 |
-
{
|
6684 |
-
$name = __('Thumbnail', 'wp-photo-album-plus');
|
6685 |
-
$desc = __('Thumbnail link.', 'wp-photo-album-plus');
|
6686 |
-
$help = (__('Select the type of link you want, or no link at all.', 'wp-photo-album-plus'));
|
6687 |
-
$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')); /* oneofone is treated as portrait only */
|
6688 |
-
$help .= '<br />'.(__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus'));
|
6689 |
-
$slug1 = 'wppa_thumb_linktype';
|
6690 |
-
$slug2 = 'wppa_thumb_linkpage';
|
6691 |
-
wppa_verify_page($slug2);
|
6692 |
-
$slug3 = 'wppa_thumb_blank';
|
6693 |
-
$slug4 = 'wppa_thumb_overrule';
|
6694 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6695 |
-
$onchange = 'wppaCheckThumbLink()';
|
6696 |
-
$opts = array(
|
6697 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6698 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6699 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6700 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
6701 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6702 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
6703 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6704 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
6705 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6706 |
-
);
|
6707 |
-
$vals = array(
|
6708 |
-
'none',
|
6709 |
-
'file',
|
6710 |
-
'photo',
|
6711 |
-
'slidealbum',
|
6712 |
-
'single',
|
6713 |
-
'slphoto',
|
6714 |
-
'fullpopup',
|
6715 |
-
'plainpage',
|
6716 |
-
'lightbox'
|
6717 |
-
);
|
6718 |
-
if ( wppa_switch( 'auto_page') ) {
|
6719 |
-
$opts[] = __('Auto Page', 'wp-photo-album-plus');
|
6720 |
-
$vals[] = 'autopage';
|
6721 |
-
}
|
6722 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6723 |
-
$clas = 'wppa_tlp';
|
6724 |
-
$html2 = wppa_select($slug2, $options_page_post, $values_page_post, '', $clas);
|
6725 |
-
$clas = 'wppa_tlb';
|
6726 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6727 |
-
$html4 = wppa_checkbox($slug4);
|
6728 |
-
$htmlerr = wppa_htmlerr('popup-lightbox');
|
6729 |
-
$html = array($html1, $htmlerr.$html2, $html3, $html4);
|
6730 |
-
$clas = 'tt_always';
|
6731 |
-
$clas = '';
|
6732 |
-
$tags = 'link,thumb';
|
6733 |
-
wppa_setting($slug, '2a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6734 |
-
}
|
6735 |
-
{
|
6736 |
-
$name = __('Sphoto', 'wp-photo-album-plus');
|
6737 |
-
$desc = __('Single photo link.', 'wp-photo-album-plus');
|
6738 |
-
$help = (__('Select the type of link you want, or no link at all.', 'wp-photo-album-plus'));
|
6739 |
-
$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')); /* oneofone is treated as portrait only */
|
6740 |
-
$help .= '<br />'.(__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus'));
|
6741 |
-
$slug1 = 'wppa_sphoto_linktype';
|
6742 |
-
$slug2 = 'wppa_sphoto_linkpage';
|
6743 |
-
wppa_verify_page($slug2);
|
6744 |
-
$slug3 = 'wppa_sphoto_blank';
|
6745 |
-
$slug4 = 'wppa_sphoto_overrule';
|
6746 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6747 |
-
$onchange = 'wppaCheckSphotoLink(); wppaCheckLinkPageErr(\'sphoto\');';
|
6748 |
-
$opts = array(
|
6749 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6750 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6751 |
-
__('the content of the album.', 'wp-photo-album-plus'),
|
6752 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6753 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6754 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6755 |
-
);
|
6756 |
-
$vals = array(
|
6757 |
-
'none',
|
6758 |
-
'file',
|
6759 |
-
'album',
|
6760 |
-
'photo',
|
6761 |
-
'single',
|
6762 |
-
'lightbox'
|
6763 |
-
);
|
6764 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6765 |
-
$clas = 'wppa_slp';
|
6766 |
-
$onchange = 'wppaCheckLinkPageErr(\'sphoto\');';
|
6767 |
-
$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $clas, true);
|
6768 |
-
$clas = 'wppa_slb';
|
6769 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6770 |
-
$html4 = wppa_checkbox($slug4);
|
6771 |
-
$htmlerr = wppa_htmlerr('sphoto');
|
6772 |
-
$html = array($html1, $htmlerr.$html2, $html3, $html4);
|
6773 |
-
$clas = '';
|
6774 |
-
$tags = 'link';
|
6775 |
-
wppa_setting($slug, '3a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6776 |
-
}
|
6777 |
-
{
|
6778 |
-
$name = __('Mphoto', 'wp-photo-album-plus');
|
6779 |
-
$desc = __('Media-like (like WP photo with caption) photo link.', 'wp-photo-album-plus');
|
6780 |
-
$help = (__('Select the type of link you want, or no link at all.', 'wp-photo-album-plus'));
|
6781 |
-
$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')); /* oneofone is treated as portrait only */
|
6782 |
-
$help .= '<br />'.(__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus'));
|
6783 |
-
$slug1 = 'wppa_mphoto_linktype';
|
6784 |
-
$slug2 = 'wppa_mphoto_linkpage';
|
6785 |
-
wppa_verify_page($slug2);
|
6786 |
-
$slug3 = 'wppa_mphoto_blank';
|
6787 |
-
$slug4 = 'wppa_mphoto_overrule';
|
6788 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6789 |
-
$onchange = 'wppaCheckMphotoLink(); wppaCheckLinkPageErr(\'mphoto\');';
|
6790 |
-
$opts = array(
|
6791 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6792 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6793 |
-
__('the content of the album.', 'wp-photo-album-plus'),
|
6794 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6795 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6796 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6797 |
-
);
|
6798 |
-
$vals = array(
|
6799 |
-
'none',
|
6800 |
-
'file',
|
6801 |
-
'album',
|
6802 |
-
'photo',
|
6803 |
-
'single',
|
6804 |
-
'lightbox'
|
6805 |
-
);
|
6806 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6807 |
-
$clas = 'wppa_mlp';
|
6808 |
-
$onchange = 'wppaCheckLinkPageErr(\'mphoto\');';
|
6809 |
-
$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $clas, true);
|
6810 |
-
$clas = 'wppa_mlb';
|
6811 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6812 |
-
$html4 = wppa_checkbox($slug4);
|
6813 |
-
$htmlerr = wppa_htmlerr('mphoto');
|
6814 |
-
$html = array($html1, $htmlerr.$html2, $html3, $html4);
|
6815 |
-
$clas = '';
|
6816 |
-
$tags = 'link';
|
6817 |
-
wppa_setting($slug, '4a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6818 |
-
}
|
6819 |
-
{
|
6820 |
-
$name = __('Xphoto', 'wp-photo-album-plus');
|
6821 |
-
$desc = __('Media-like (like WP photo with - extended - caption) photo link.', 'wp-photo-album-plus');
|
6822 |
-
$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'));
|
6823 |
-
$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')); /* oneofone is treated as portrait only */
|
6824 |
-
$help .= '<br />'.(__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus'));
|
6825 |
-
$slug1 = 'wppa_xphoto_linktype';
|
6826 |
-
$slug2 = 'wppa_xphoto_linkpage';
|
6827 |
-
wppa_verify_page($slug2);
|
6828 |
-
$slug3 = 'wppa_xphoto_blank';
|
6829 |
-
$slug4 = 'wppa_xphoto_overrule';
|
6830 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6831 |
-
$onchange = 'wppaCheckXphotoLink(); wppaCheckLinkPageErr(\'xphoto\');';
|
6832 |
-
$opts = array(
|
6833 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6834 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6835 |
-
__('the content of the album.', 'wp-photo-album-plus'),
|
6836 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
6837 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6838 |
-
__('lightbox.', 'wp-photo-album-plus')
|
6839 |
-
);
|
6840 |
-
$vals = array(
|
6841 |
-
'none',
|
6842 |
-
'file',
|
6843 |
-
'album',
|
6844 |
-
'photo',
|
6845 |
-
'single',
|
6846 |
-
'lightbox'
|
6847 |
-
);
|
6848 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6849 |
-
$clas = 'wppa_xlp';
|
6850 |
-
$onchange = 'wppaCheckLinkPageErr(\'xphoto\');';
|
6851 |
-
$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $clas, true);
|
6852 |
-
$clas = 'wppa_xlb';
|
6853 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6854 |
-
$html4 = wppa_checkbox($slug4);
|
6855 |
-
$htmlerr = wppa_htmlerr('xphoto');
|
6856 |
-
$html = array($html1, $htmlerr.$html2, $html3, $html4);
|
6857 |
-
$clas = '';
|
6858 |
-
$tags = 'link';
|
6859 |
-
wppa_setting($slug, '4.1a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6860 |
-
}
|
6861 |
-
{
|
6862 |
-
$name = __('Slideshow', 'wp-photo-album-plus');
|
6863 |
-
$desc = __('Slideshow fullsize link', 'wp-photo-album-plus');
|
6864 |
-
$help = (__('You can overrule lightbox but not big browse buttons with the photo specifc link.', 'wp-photo-album-plus'));
|
6865 |
-
$help .= '\n\n* '.(__('fullsize slideshow can only be set by the WPPA_SET shortcode.', 'wp-photo-album-plus'));
|
6866 |
-
$slug1 = 'wppa_slideshow_linktype';
|
6867 |
-
$slug2 = 'wppa_slideshow_linkpage';
|
6868 |
-
wppa_verify_page($slug2);
|
6869 |
-
$slug3 = 'wppa_slideshow_blank';
|
6870 |
-
$slug4 = 'wppa_slideshow_overrule';
|
6871 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
6872 |
-
$onchange = 'wppaCheckSlidePhotoLink();';
|
6873 |
-
$opts = array(
|
6874 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
6875 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
6876 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
6877 |
-
__('lightbox.', 'wp-photo-album-plus'),
|
6878 |
-
__('lightbox single photos.', 'wp-photo-album-plus'),
|
6879 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
6880 |
-
__('the thumbnails.', 'wp-photo-album-plus'),
|
6881 |
-
__('fullsize slideshow', 'wp-photo-album-plus') . '*|',
|
6882 |
-
);
|
6883 |
-
$vals = array(
|
6884 |
-
'none',
|
6885 |
-
'file',
|
6886 |
-
'single',
|
6887 |
-
'lightbox',
|
6888 |
-
'lightboxsingle',
|
6889 |
-
'fullpopup',
|
6890 |
-
'thumbs',
|
6891 |
-
'slide',
|
6892 |
-
);
|
6893 |
-
$onchange = 'wppaCheckSlidePhotoLink();wppaCheckSlideVideoControls()';
|
6894 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
6895 |
-
$clas = 'wppa_sslp';
|
6896 |
-
$html2 = wppa_select($slug2, $options_page_post, $values_page_post, $onchange, $clas);
|
6897 |
-
$clas = 'wppa_sslb';
|
6898 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
6899 |
-
$html4 = wppa_checkbox($slug4);
|
6900 |
-
$html = array($html1, $html2, $html3, $html4);
|
6901 |
-
$clas = '';
|
6902 |
-
$tags = 'link,slide';
|
6903 |
-
wppa_setting($slug, '5a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6904 |
-
}
|
6905 |
-
{
|
6906 |
-
$name = __('Film linktype', 'wp-photo-album-plus');
|
6907 |
-
$desc = __('Direct access goto image in:', 'wp-photo-album-plus');
|
6908 |
-
$help = (__('Select the action to be taken when the user clicks on a filmstrip image.', 'wp-photo-album-plus'));
|
6909 |
-
$slug1 = 'wppa_film_linktype';
|
6910 |
-
$slug3 = 'wppa_film_blank';
|
6911 |
-
$slug4 = 'wppa_film_overrule';
|
6912 |
-
$opts = array(
|
6913 |
-
__('slideshow window', 'wp-photo-album-plus'),
|
6914 |
-
__('lightbox overlay', 'wp-photo-album-plus')
|
6915 |
-
);
|
6916 |
-
$vals = array(
|
6917 |
-
'slideshow',
|
6918 |
-
'lightbox'
|
6919 |
-
);
|
6920 |
-
$html1 = wppa_select($slug1, $opts, $vals);
|
6921 |
-
$html2 = '';
|
6922 |
-
$html3 = wppa_checkbox($slug3);
|
6923 |
-
$html4 = wppa_checkbox($slug4);
|
6924 |
-
$html = array($html1, $html2, $html3, $html4);
|
6925 |
-
$clas = '';
|
6926 |
-
$tags = 'link,slide';
|
6927 |
-
wppa_setting($slug, '6a,,c,d', $name, $desc, $html, $help, $clas, $tags);
|
6928 |
-
}
|
6929 |
-
wppa_setting_subheader('C', '4', __('Other links', 'wp-photo-album-plus'));
|
6930 |
-
{
|
6931 |
-
$name = __('Download Link (aka Art Monkey link)', 'wp-photo-album-plus');
|
6932 |
-
$desc = __('Makes the photo name a download button.', 'wp-photo-album-plus');
|
6933 |
-
$help = (__('Link Photo name in slideshow to file or zip with photoname as filename.', 'wp-photo-album-plus'));
|
6934 |
-
$slug = 'wppa_art_monkey_link';
|
6935 |
-
$opts = array(
|
6936 |
-
__('--- none ---', 'wp-photo-album-plus'),
|
6937 |
-
__('image file', 'wp-photo-album-plus'),
|
6938 |
-
__('zipped image', 'wp-photo-album-plus'),
|
6939 |
-
__('New style', 'wp-photo-album-plus'),
|
6940 |
-
);
|
6941 |
-
$vals = array(
|
6942 |
-
'none',
|
6943 |
-
'file',
|
6944 |
-
'zip',
|
6945 |
-
'new',
|
6946 |
-
);
|
6947 |
-
$html = wppa_select($slug, $opts, $vals);
|
6948 |
-
$clas = '';
|
6949 |
-
$tags = 'link';
|
6950 |
-
wppa_setting($slug, '1', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
6951 |
-
}
|
6952 |
-
{
|
6953 |
-
$name = __('Art Monkey Source', 'wp-photo-album-plus');
|
6954 |
-
$desc = __('Use Source file for art monkey link if available.', 'wp-photo-album-plus');
|
6955 |
-
$help = '';
|
6956 |
-
$slug = 'wppa_artmonkey_use_source';
|
6957 |
-
$html = wppa_checkbox($slug);
|
6958 |
-
$clas = '';
|
6959 |
-
$tags = 'link';
|
6960 |
-
wppa_setting($slug, '1.1', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
6961 |
-
}
|
6962 |
-
{
|
6963 |
-
$name = __('Art Monkey new filetypes', 'wp-photo-album-plus');
|
6964 |
-
$desc = __('Select filetypes to be downloadable when Table VI-C1 is set to New style', 'wp-photo-album-plus');
|
6965 |
-
$help = '';
|
6966 |
-
$slug = 'wppa_art_monkey_new_types';
|
6967 |
-
$opts = array( __('Photos only', 'wp-photo-album-plus'),
|
6968 |
-
__('PDFs only', 'wp-photo-album-plus'),
|
6969 |
-
__('Both photos and PDFs', 'wp-photo-album-plus')
|
6970 |
-
);
|
6971 |
-
$vals = array('photo','pdf','photo-pdf');
|
6972 |
-
$html = wppa_select($slug, $opts, $vals);
|
6973 |
-
$clas = '';
|
6974 |
-
$tags = 'link';
|
6975 |
-
wppa_setting($slug, '1.1a', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
6976 |
-
}
|
6977 |
-
{
|
6978 |
-
$name = __('Art Monkey Display', 'wp-photo-album-plus');
|
6979 |
-
$desc = __('Select button or link ( text ).', 'wp-photo-album-plus');
|
6980 |
-
$help = '';
|
6981 |
-
$slug = 'wppa_art_monkey_display';
|
6982 |
-
$opts = array(
|
6983 |
-
__('Button', 'wp-photo-album-plus'),
|
6984 |
-
__('Textlink', 'wp-photo-album-plus')
|
6985 |
-
);
|
6986 |
-
$vals = array(
|
6987 |
-
'button',
|
6988 |
-
'text'
|
6989 |
-
);
|
6990 |
-
$html = wppa_select($slug, $opts, $vals);
|
6991 |
-
$clas = '';
|
6992 |
-
$tags = 'link,layout';
|
6993 |
-
wppa_setting($slug, '1.2', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
6994 |
-
}
|
6995 |
-
{
|
6996 |
-
$name = __('Popup Download Link', 'wp-photo-album-plus');
|
6997 |
-
$desc = __('Configure the download link on fullsize popups.', 'wp-photo-album-plus');
|
6998 |
-
$help = (__('Link fullsize popup download button to either image or zip file.', 'wp-photo-album-plus'));
|
6999 |
-
$slug = 'wppa_art_monkey_popup_link';
|
7000 |
-
$opts = array(
|
7001 |
-
__('image file', 'wp-photo-album-plus'),
|
7002 |
-
__('zipped image', 'wp-photo-album-plus')
|
7003 |
-
);
|
7004 |
-
$vals = array(
|
7005 |
-
'file',
|
7006 |
-
'zip'
|
7007 |
-
);
|
7008 |
-
$html = wppa_select($slug, $opts, $vals);
|
7009 |
-
$clas = '';
|
7010 |
-
$tags = 'link,layout';
|
7011 |
-
wppa_setting($slug, '1.3', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
7012 |
-
}
|
7013 |
-
{
|
7014 |
-
$name = __('Download link on lightbox', 'wp-photo-album-plus');
|
7015 |
-
$desc = __('Art monkey link on lightbox photo names.', 'wp-photo-album-plus');
|
7016 |
-
$help = '';
|
7017 |
-
$slug = 'wppa_art_monkey_on_lightbox';
|
7018 |
-
$html = wppa_checkbox($slug);
|
7019 |
-
$clas = '';
|
7020 |
-
$tags = 'link,layout';
|
7021 |
-
wppa_setting($slug, '1.4', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
7022 |
-
}
|
7023 |
-
{
|
7024 |
-
$name = __('Album download link', 'wp-photo-album-plus');
|
7025 |
-
$desc = __('Place an album download link on the album covers and the edit album info page', 'wp-photo-album-plus');
|
7026 |
-
$help = (__('Creates a download zipfile containing the photos of the album', 'wp-photo-album-plus'));
|
7027 |
-
$slug = 'wppa_allow_download_album';
|
7028 |
-
$html = wppa_checkbox($slug);
|
7029 |
-
$clas = '';
|
7030 |
-
$tags = 'link,layout,cover,album';
|
7031 |
-
wppa_setting($slug, '2', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
7032 |
-
}
|
7033 |
-
{
|
7034 |
-
$name = __('Album download Source', 'wp-photo-album-plus');
|
7035 |
-
$desc = __('Use Source file for album download link if available.', 'wp-photo-album-plus');
|
7036 |
-
$help = '';
|
7037 |
-
$slug = 'wppa_download_album_source';
|
7038 |
-
$html = wppa_checkbox($slug);
|
7039 |
-
$clas = '';
|
7040 |
-
$tags = 'link';
|
7041 |
-
wppa_setting($slug, '2.1', $name, $desc, $html.'</td><td></td><td></td><td>', $help, $clas, $tags);
|
7042 |
-
}
|
7043 |
-
{
|
7044 |
-
$name = __('Tagcloud Link', 'wp-photo-album-plus');
|
7045 |
-
$desc = __('Configure the link from the tags in the tag cloud.', 'wp-photo-album-plus');
|
7046 |
-
$help = (__('Link the tag words to either the thumbnails or the slideshow.', 'wp-photo-album-plus'));
|
7047 |
-
$help .= '<br />'.(__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus'));
|
7048 |
-
$slug1 = 'wppa_tagcloud_linktype';
|
7049 |
-
$slug2 = 'wppa_tagcloud_linkpage';
|
7050 |
-
wppa_verify_page($slug2);
|
7051 |
-
$slug3 = 'wppa_tagcloud_blank';
|
7052 |
-
$slug4 = 'wppa_tagcloud_linkpage_oc';
|
7053 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7054 |
-
$opts1 = array(
|
7055 |
-
__('thumbnails', 'wp-photo-album-plus'),
|
7056 |
-
__('slideshow', 'wp-photo-album-plus')
|
7057 |
-
);
|
7058 |
-
$vals1 = array(
|
7059 |
-
'album',
|
7060 |
-
'slide'
|
7061 |
-
);
|
7062 |
-
$opts4 = array('1','2','3','4','5');
|
7063 |
-
$vals4 = array('1','2','3','4','5');
|
7064 |
-
$onchange = 'wppaCheckTagLink();';
|
7065 |
-
$html1 = wppa_select($slug1, $opts1, $vals1, $onchange);
|
7066 |
-
$clas = 'wppa_tglp';
|
7067 |
-
$onchange = '';
|
7068 |
-
$opts = $options_page_auto;
|
7069 |
-
$opts[] = __('--- the same page ---', 'wp-photo-album-plus');
|
7070 |
-
$vals = $values_page;
|
7071 |
-
$vals[] = '-1';
|
7072 |
-
$html2 = wppa_select($slug2, $opts, $vals, $onchange, $clas);
|
7073 |
-
$clas = 'wppa_tglb';
|
7074 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
7075 |
-
$html4 = '<div style="font-size:9px;foat:left;" class="'.$clas.'" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4, '', $clas);
|
7076 |
-
$html = array($html1, $html2, $html3, $html4);
|
7077 |
-
$clas = '';
|
7078 |
-
$tags = 'link';
|
7079 |
-
wppa_setting($slug, '3a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7080 |
-
}
|
7081 |
-
{
|
7082 |
-
$name = __('Multitag Link', 'wp-photo-album-plus');
|
7083 |
-
$desc = __('Configure the link from the multitag selection.', 'wp-photo-album-plus');
|
7084 |
-
$help = (__('Link to either the thumbnails or the slideshow.', 'wp-photo-album-plus'));
|
7085 |
-
$help .= '<br />'.(__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus'));
|
7086 |
-
$slug1 = 'wppa_multitag_linktype';
|
7087 |
-
$slug2 = 'wppa_multitag_linkpage';
|
7088 |
-
wppa_verify_page($slug2);
|
7089 |
-
$slug3 = 'wppa_multitag_blank';
|
7090 |
-
$slug4 = 'wppa_multitag_linkpage_oc';
|
7091 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7092 |
-
$opts1 = array(
|
7093 |
-
__('thumbnails', 'wp-photo-album-plus'),
|
7094 |
-
__('slideshow', 'wp-photo-album-plus')
|
7095 |
-
);
|
7096 |
-
$vals1 = array(
|
7097 |
-
'album',
|
7098 |
-
'slide'
|
7099 |
-
);
|
7100 |
-
$opts4 = array('1','2','3','4','5');
|
7101 |
-
$vals4 = array('1','2','3','4','5');
|
7102 |
-
$onchange = 'wppaCheckMTagLink();';
|
7103 |
-
$html1 = wppa_select($slug1, $opts1, $vals1, $onchange);
|
7104 |
-
$clas = 'wppa_tglp';
|
7105 |
-
$onchange = '';
|
7106 |
-
$opts = $options_page_auto;
|
7107 |
-
$opts[] = __('--- the same page ---', 'wp-photo-album-plus');
|
7108 |
-
$vals = $values_page;
|
7109 |
-
$vals[] = '-1';
|
7110 |
-
$html2 = wppa_select($slug2, $opts, $vals, $onchange, $clas);
|
7111 |
-
$clas = 'wppa_tglb';
|
7112 |
-
$html3 = wppa_checkbox($slug3, '', $clas);
|
7113 |
-
$html4 = '<div style="font-size:9px;foat:left;" class="'.$clas.'" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4, '', $clas);
|
7114 |
-
$html = array($html1, $html2, $html3, $html4);
|
7115 |
-
$clas = '';
|
7116 |
-
$tags = 'link';
|
7117 |
-
wppa_setting($slug, '4a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7118 |
-
}
|
7119 |
-
{
|
7120 |
-
$name = __('Super View Landing', 'wp-photo-album-plus');
|
7121 |
-
$desc = __('The landing page for the Super View widget.', 'wp-photo-album-plus');
|
7122 |
-
$help = '';
|
7123 |
-
$slug1 = '';
|
7124 |
-
$slug2 = 'wppa_super_view_linkpage';
|
7125 |
-
wppa_verify_page($slug2);
|
7126 |
-
$slug3 = '';
|
7127 |
-
$slug4 = '';
|
7128 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7129 |
-
$html1 = __('Defined by the visitor', 'wp-photo-album-plus');
|
7130 |
-
$clas = '';
|
7131 |
-
$onchange = '';
|
7132 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
7133 |
-
$clas = '';
|
7134 |
-
$html3 = '';
|
7135 |
-
$html4 = '';
|
7136 |
-
$html = array($html1, $html2, $html3, $html4);
|
7137 |
-
$clas = '';
|
7138 |
-
$tags = 'link';
|
7139 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
7140 |
-
}
|
7141 |
-
{
|
7142 |
-
$name = __('Uploader Landing', 'wp-photo-album-plus');
|
7143 |
-
$desc = __('Select the landing page for the Uploader Widget', 'wp-photo-album-plus');
|
7144 |
-
$help = '';
|
7145 |
-
$slug1 = '';
|
7146 |
-
$slug2 = 'wppa_upldr_widget_linkpage';
|
7147 |
-
wppa_verify_page($slug2);
|
7148 |
-
$slug3 = '';
|
7149 |
-
$slug4 = '';
|
7150 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7151 |
-
$html1 = '';
|
7152 |
-
$clas = '';
|
7153 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
7154 |
-
$clas = '';
|
7155 |
-
$html3 = '';
|
7156 |
-
$html4 = '';
|
7157 |
-
$html = array($html1, $html2, $html3, $html4);
|
7158 |
-
$clas = '';
|
7159 |
-
$tags = 'link';
|
7160 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
7161 |
-
}
|
7162 |
-
{
|
7163 |
-
$name = __('Bestof Landing', 'wp-photo-album-plus');
|
7164 |
-
$desc = __('Select the landing page for the BestOf Widget / Box', 'wp-photo-album-plus');
|
7165 |
-
$help = '';
|
7166 |
-
$slug1 = '';
|
7167 |
-
$slug2 = 'wppa_bestof_widget_linkpage';
|
7168 |
-
wppa_verify_page($slug2);
|
7169 |
-
$slug3 = '';
|
7170 |
-
$slug4 = '';
|
7171 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7172 |
-
$html1 = '';
|
7173 |
-
$clas = '';
|
7174 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
7175 |
-
$clas = '';
|
7176 |
-
$html3 = '';
|
7177 |
-
$html4 = '';
|
7178 |
-
$html = array($html1, $html2, $html3, $html4);
|
7179 |
-
$clas = '';
|
7180 |
-
$tags = 'link';
|
7181 |
-
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
7182 |
-
}
|
7183 |
-
{
|
7184 |
-
$name = __('Supersearch Landing', 'wp-photo-album-plus');
|
7185 |
-
$desc = __('Select the landing page for the Supersearch Box', 'wp-photo-album-plus');
|
7186 |
-
$help = '';
|
7187 |
-
$slug1 = '';
|
7188 |
-
$slug2 = 'wppa_supersearch_linkpage';
|
7189 |
-
wppa_verify_page($slug2);
|
7190 |
-
$slug3 = '';
|
7191 |
-
$slug4 = '';
|
7192 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7193 |
-
$html1 = '';
|
7194 |
-
$clas = '';
|
7195 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
|
7196 |
-
$clas = '';
|
7197 |
-
$html3 = '';
|
7198 |
-
$html4 = '';
|
7199 |
-
$html = array($html1, $html2, $html3, $html4);
|
7200 |
-
$clas = '';
|
7201 |
-
$tags = 'link';
|
7202 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
7203 |
-
}
|
7204 |
-
{
|
7205 |
-
$name = __('SM widget return', 'wp-photo-album-plus');
|
7206 |
-
$desc = __('Select the return link for social media from widgets', 'wp-photo-album-plus');
|
7207 |
-
$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'));
|
7208 |
-
$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'));
|
7209 |
-
$help .= '<br />'.(__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus'));
|
7210 |
-
$slug1 = 'wppa_widget_sm_linktype';
|
7211 |
-
$slug2 = 'wppa_widget_sm_linkpage';
|
7212 |
-
wppa_verify_page($slug2);
|
7213 |
-
$slug3 = '';
|
7214 |
-
$slug4 = 'wppa_widget_sm_linkpage_oc';
|
7215 |
-
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7216 |
-
$opts = array(
|
7217 |
-
__('Home page', 'wp-photo-album-plus'),
|
7218 |
-
__('Landing page', 'wp-photo-album-plus')
|
7219 |
-
);
|
7220 |
-
$vals = array(
|
7221 |
-
'home',
|
7222 |
-
'landing'
|
7223 |
-
);
|
7224 |
-
$onchange = 'wppaCheckSmWidgetLink();';
|
7225 |
-
$clas = 'wppa_smrt';
|
7226 |
-
$html1 = wppa_select($slug1, $opts, $vals, $onchange, $clas);
|
7227 |
-
$clas = 'wppa_smrp';
|
7228 |
-
$html2 = wppa_select($slug2, $options_page_auto, $values_page, '', $clas);
|
7229 |
-
$html3 = '';
|
7230 |
-
$opts4 = array('1','2','3','4','5');
|
7231 |
-
$vals4 = array('1','2','3','4','5');
|
7232 |
-
$html4 = '<div style="font-size:9px;foat:left;" class="'.$clas.'" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4, '', $clas);
|
7233 |
-
$html = array($html1, $html2, $html3, $html4);
|
7234 |
-
$clas = '';
|
7235 |
-
$tags = 'link';
|
7236 |
-
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
7237 |
Â
|
7238 |
-
|
7239 |
-
|
7240 |
-
|
7241 |
-
|
7242 |
-
|
7243 |
-
|
7244 |
-
|
7245 |
-
|
7246 |
-
|
7247 |
-
|
7248 |
-
|
7249 |
-
|
7250 |
-
|
7251 |
-
|
7252 |
-
|
7253 |
-
|
7254 |
-
|
7255 |
-
|
7256 |
-
'
|
7257 |
-
|
7258 |
-
|
7259 |
-
|
7260 |
-
|
7261 |
-
|
7262 |
-
|
7263 |
-
|
7264 |
-
|
7265 |
-
|
7266 |
-
|
7267 |
-
|
7268 |
-
|
7269 |
-
|
7270 |
-
|
7271 |
-
|
7272 |
-
|
7273 |
-
'
|
7274 |
-
'
|
7275 |
-
|
7276 |
-
$html2 = wppa_select($slug2, $opts, $vals, $onchange, $clas);
|
7277 |
-
$html3 = '';
|
7278 |
-
$html4 = '';
|
7279 |
-
$html = array($html1, $html2, $html3, $html4);
|
7280 |
-
$clas = '';
|
7281 |
-
$tags = 'link,cover';
|
7282 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
7283 |
-
}
|
7284 |
Â
|
7285 |
-
|
7286 |
-
|
7287 |
-
|
7288 |
-
|
7289 |
-
|
7290 |
-
|
7291 |
-
|
7292 |
-
|
7293 |
-
|
7294 |
-
|
7295 |
-
|
7296 |
-
|
7297 |
-
|
7298 |
-
|
7299 |
-
|
7300 |
-
'
|
7301 |
-
|
7302 |
-
|
7303 |
-
|
7304 |
-
|
7305 |
-
|
7306 |
-
|
7307 |
-
|
7308 |
-
$clas = '';
|
7309 |
-
$tags = 'link';
|
7310 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
7311 |
-
}
|
7312 |
Â
|
7313 |
-
|
7314 |
-
|
7315 |
-
|
7316 |
-
|
7317 |
-
|
7318 |
-
|
7319 |
-
|
7320 |
-
|
7321 |
-
|
7322 |
-
|
7323 |
-
|
7324 |
-
$html2 = '';
|
7325 |
-
$slug3 = '';
|
7326 |
-
$slug4 = '';
|
7327 |
-
$html = array($html1, $html2, $html3, $html4);
|
7328 |
-
$clas = '';
|
7329 |
-
$tags = 'link';
|
7330 |
-
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
7331 |
-
}
|
7332 |
Â
|
7333 |
-
|
7334 |
-
|
7335 |
-
|
7336 |
-
|
7337 |
-
|
7338 |
-
|
7339 |
-
|
7340 |
-
|
7341 |
-
|
7342 |
-
|
7343 |
-
|
7344 |
-
$html2 = '';
|
7345 |
-
$slug3 = '';
|
7346 |
-
$slug4 = '';
|
7347 |
-
$html = array($html1, $html2, $html3, $html4);
|
7348 |
-
$clas = '';
|
7349 |
-
$tags = 'link';
|
7350 |
-
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
7351 |
-
}
|
7352 |
Â
|
7353 |
-
|
7354 |
-
|
7355 |
-
|
7356 |
-
|
7357 |
-
|
7358 |
-
|
7359 |
-
|
7360 |
-
|
7361 |
-
|
7362 |
-
|
7363 |
-
|
7364 |
-
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
7365 |
-
</tr>
|
7366 |
-
</tfoot>
|
7367 |
-
</table>
|
7368 |
-
</div>
|
7369 |
Â
|
7370 |
-
|
7371 |
-
|
7372 |
-
|
7373 |
-
|
7374 |
-
|
7375 |
-
|
7376 |
-
|
7377 |
-
|
7378 |
-
|
7379 |
-
|
7380 |
-
|
7381 |
-
|
7382 |
-
|
7383 |
-
|
7384 |
-
$name = __('User create Albums', 'wp-photo-album-plus');
|
7385 |
-
$desc = __('Enable frontend album creation.', 'wp-photo-album-plus');
|
7386 |
-
$help = (__('If you check this item, frontend album creation will be enabled.', 'wp-photo-album-plus'));
|
7387 |
-
$slug = 'wppa_user_create_on';
|
7388 |
-
$onchange = '';
|
7389 |
-
$html1 = wppa_checkbox($slug, $onchange);
|
7390 |
-
$html2 = '';
|
7391 |
-
$html = array( $html1, $html2 );
|
7392 |
-
$clas = '';
|
7393 |
-
$tags = 'access,album';
|
7394 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
7395 |
Â
|
7396 |
-
|
7397 |
-
|
7398 |
-
|
7399 |
-
|
7400 |
-
|
7401 |
-
|
7402 |
-
|
7403 |
-
|
7404 |
-
|
7405 |
-
|
7406 |
-
|
7407 |
Â
|
7408 |
-
|
7409 |
-
|
7410 |
-
|
7411 |
-
|
7412 |
-
|
7413 |
-
|
7414 |
-
|
7415 |
-
|
7416 |
-
|
7417 |
-
|
7418 |
-
|
7419 |
-
|
7420 |
-
|
7421 |
-
$help = (__('If you check this item, frontend album deletion will be enabled.', 'wp-photo-album-plus'));
|
7422 |
-
$slug = 'wppa_user_destroy_on';
|
7423 |
-
$onchange = '';
|
7424 |
-
$html1 = wppa_checkbox($slug, $onchange);
|
7425 |
-
$html2 = '';
|
7426 |
-
$html = array( $html1, $html2 );
|
7427 |
-
$clas = '';
|
7428 |
-
$tags = 'access,album';
|
7429 |
-
wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
|
7430 |
Â
|
7431 |
-
|
7432 |
-
|
7433 |
-
|
7434 |
-
|
7435 |
-
|
7436 |
-
|
7437 |
-
$html = array( $html1, $html2 );
|
7438 |
-
$clas = '';
|
7439 |
-
$tags = 'access,album';
|
7440 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
7441 |
Â
|
7442 |
-
|
7443 |
-
|
7444 |
-
|
7445 |
-
|
7446 |
-
|
7447 |
-
|
7448 |
-
|
7449 |
-
|
7450 |
-
|
7451 |
-
|
7452 |
-
|
7453 |
-
|
7454 |
-
|
7455 |
-
|
7456 |
-
|
7457 |
-
|
7458 |
-
|
7459 |
-
|
7460 |
-
|
7461 |
-
|
7462 |
-
|
7463 |
-
|
7464 |
-
|
7465 |
-
|
7466 |
-
|
7467 |
-
|
7468 |
-
|
7469 |
-
|
7470 |
-
|
7471 |
-
|
7472 |
-
|
7473 |
-
|
7474 |
-
$roles = $wp_roles->roles;
|
7475 |
-
$roles['loggedout'] = array();
|
7476 |
-
$roles['loggedout']['name'] = __('Logged out', 'wp-photo-album-plus');
|
7477 |
-
unset ( $roles['administrator'] );
|
7478 |
-
foreach (array_keys($roles) as $role) {
|
7479 |
-
$t_role = isset( $roles[$role]['name'] ) ? translate_user_role( $roles[$role]['name'] ) : $role;
|
7480 |
-
if ( wppa_get_option('wppa_'.$role.'_upload_limit_count', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_count', '0');
|
7481 |
-
if ( wppa_get_option('wppa_'.$role.'_upload_limit_time', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_time', '0');
|
7482 |
-
$name = sprintf(__('Upload limit %s', 'wp-photo-album-plus'), $t_role);
|
7483 |
-
if ( $role == 'loggedout' ) $desc = __('Limit upload capacity for logged out users.', 'wp-photo-album-plus');
|
7484 |
-
else $desc = sprintf(__('Limit upload capacity for the user role %s.', 'wp-photo-album-plus'), $t_role);
|
7485 |
-
if ( $role == 'loggedout' ) $help = (__('This setting has only effect when Table VII-B2 is unchecked.', 'wp-photo-album-plus'));
|
7486 |
-
else $help = (__('This limitation only applies to frontend uploads when the same userrole does not have the Upload checkbox checked in Table VII-A.', 'wp-photo-album-plus'));
|
7487 |
-
$help .= '<br />'.(__('A value of 0 means: no limit.', 'wp-photo-album-plus'));
|
7488 |
-
$slug1 = 'wppa_'.$role.'_upload_limit_count';
|
7489 |
-
$html1 = wppa_input($slug1, '50px', '', __('photos', 'wp-photo-album-plus'));
|
7490 |
-
$slug2 = 'wppa_'.$role.'_upload_limit_time';
|
7491 |
-
$html2 = wppa_select($slug2, $options, $values);
|
7492 |
-
$html = array( $html1, $html2 );
|
7493 |
Â
$clas = '';
|
7494 |
-
$tags = '
|
7495 |
-
wppa_setting(
|
7496 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
7497 |
Â
|
7498 |
-
|
7499 |
-
|
7500 |
-
|
7501 |
-
|
7502 |
-
|
7503 |
-
|
7504 |
-
$help = (__('
|
7505 |
-
$
|
7506 |
-
$slug1 = 'wppa_'.$role.'_album_limit_count';
|
7507 |
-
$html1 = wppa_input($slug1, '50px', '', __('albums', 'wp-photo-album-plus'));
|
7508 |
Â
$slug2 = '';
|
7509 |
-
$
|
7510 |
-
$
|
Â
|
|
Â
|
|
7511 |
Â
$clas = '';
|
7512 |
-
$tags = '
|
7513 |
-
wppa_setting(
|
7514 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
7515 |
Â
|
7516 |
-
$name = __('Upload one only', 'wp-photo-album-plus');
|
7517 |
-
$desc = __('Non admin users can upload only one photo at a time.', 'wp-photo-album-plus');
|
7518 |
-
$help = '';
|
7519 |
-
$slug = 'wppa_upload_one_only';
|
7520 |
-
$html1 = wppa_checkbox($slug);
|
7521 |
-
$html2 = '';
|
7522 |
-
$html = array( $html1, $html2 );
|
7523 |
-
$clas = '';
|
7524 |
-
$tags = 'access,upload';
|
7525 |
-
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
7526 |
-
|
7527 |
-
$name = __('Upload moderation', 'wp-photo-album-plus');
|
7528 |
-
$desc = __('Uploaded photos need moderation.', 'wp-photo-album-plus');
|
7529 |
-
$help = (__('If checked, photos uploaded by users who do not have photo album admin access rights need moderation.', 'wp-photo-album-plus'));
|
7530 |
-
$help .= (__('Users who have photo album admin access rights can change the photo status to publish or featured.', 'wp-photo-album-plus'));
|
7531 |
-
$help .= '<br />'.(__('You can set the album admin access rights in Table VII-A.', 'wp-photo-album-plus'));
|
7532 |
-
$slug = 'wppa_upload_moderate';
|
7533 |
-
$html1 = wppa_checkbox($slug);
|
7534 |
-
$html2 = '';
|
7535 |
-
$html = array( $html1, $html2 );
|
7536 |
-
$clas = '';
|
7537 |
-
$tags = 'upload';
|
7538 |
-
wppa_setting($slug, '7.0', $name, $desc, $html, $help, $clas, $tags);
|
7539 |
-
|
7540 |
-
$name = __('FE Upload private', 'wp-photo-album-plus');
|
7541 |
-
$desc = __('Front-end uploaded photos status is set to private.', 'wp-photo-album-plus');
|
7542 |
-
$help = (__('This setting overrules VI-B7.0.', 'wp-photo-album-plus'));
|
7543 |
-
$slug = 'wppa_fe_upload_private';
|
7544 |
-
$html1 = wppa_checkbox($slug);
|
7545 |
-
$html2 = '';
|
7546 |
-
$html = array( $html1, $html2 );
|
7547 |
-
$clas = '';
|
7548 |
-
$tags = 'upload';
|
7549 |
-
wppa_setting($slug, '7.1', $name, $desc, $html, $help, $clas, $tags);
|
7550 |
-
|
7551 |
-
$name = __('Min size in pixels', 'wp-photo-album-plus');
|
7552 |
-
$desc = __('Min size for height and width for front-end uploads.', 'wp-photo-album-plus');
|
7553 |
-
$help = (__('Enter the minimum size.', 'wp-photo-album-plus'));
|
7554 |
-
$slug = 'wppa_upload_frontend_minsize';
|
7555 |
-
$html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7556 |
-
$html2 = '';
|
7557 |
-
$html = array( $html1, $html2 );
|
7558 |
-
$clas = '';
|
7559 |
-
$tags = 'upload';
|
7560 |
-
wppa_setting($slug, '10.1', $name, $desc, $html, $help, $clas, $tags);
|
7561 |
-
|
7562 |
-
$name = __('Max size in pixels', 'wp-photo-album-plus');
|
7563 |
-
$desc = __('Max size for height and width for front-end uploads.', 'wp-photo-album-plus');
|
7564 |
-
$help = (__('Enter the maximum size. 0 is unlimited', 'wp-photo-album-plus'));
|
7565 |
-
$slug = 'wppa_upload_frontend_maxsize';
|
7566 |
-
$html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7567 |
-
$html2 = '';
|
7568 |
-
$html = array( $html1, $html2 );
|
7569 |
-
$clas = '';
|
7570 |
-
$tags = 'upload';
|
7571 |
-
wppa_setting($slug, '10.2', $name, $desc, $html, $help, $clas, $tags);
|
7572 |
-
|
7573 |
-
$name = __('Fe alert', 'wp-photo-album-plus');
|
7574 |
-
$desc = __('Show alertbox on front-end.', 'wp-photo-album-plus');
|
7575 |
-
$help = (__('Errors are always reported, credit points only when --- none --- is not selected', 'wp-photo-album-plus'));
|
7576 |
-
$slug = 'wppa_fe_alert';
|
7577 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
7578 |
-
__('uploads and create albums', 'wp-photo-album-plus'),
|
7579 |
-
__('blog it', 'wp-photo-album-plus'),
|
7580 |
-
__('all', 'wp-photo-album-plus'),
|
7581 |
-
);
|
7582 |
-
$vals = array( '-none-',
|
7583 |
-
'upcre',
|
7584 |
-
'blog',
|
7585 |
-
'all',
|
7586 |
-
);
|
7587 |
-
$html1 = wppa_select($slug, $opts, $vals);
|
7588 |
-
$html2 = '';
|
7589 |
-
$html = array( $html1, $html2 );
|
7590 |
-
$clas = '';
|
7591 |
-
$tags = 'upload';
|
7592 |
-
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
7593 |
Â
|
7594 |
-
|
7595 |
-
|
7596 |
-
|
7597 |
-
|
7598 |
-
|
7599 |
-
|
7600 |
-
|
7601 |
-
|
7602 |
-
|
7603 |
-
|
7604 |
-
|
7605 |
-
|
7606 |
-
|
7607 |
-
wppa_setting_subheader( 'C', '2', __('Admin Functionality restrictions for non administrators' , 'wp-photo-album-plus') );
|
7608 |
-
|
7609 |
-
$name = __('Alt thumb is restricted', 'wp-photo-album-plus');
|
7610 |
-
$desc = __('Using <b>alt thumbsize</b> is a restricted action.', 'wp-photo-album-plus');
|
7611 |
-
$help = (__('If checked: alt thumbsize can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus'));
|
7612 |
-
$slug = 'wppa_alt_is_restricted';
|
7613 |
-
$html1 = wppa_checkbox($slug);
|
7614 |
-
$html2 = '';
|
7615 |
-
$html = array( $html1, $html2 );
|
7616 |
-
$clas = '';
|
7617 |
-
$tags = 'access,thumb';
|
7618 |
-
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
7619 |
-
|
7620 |
-
$name = __('Link is restricted', 'wp-photo-album-plus');
|
7621 |
-
$desc = __('Using <b>Link to</b> is a restricted action.', 'wp-photo-album-plus');
|
7622 |
-
$help = (__('If checked: Link to: can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus'));
|
7623 |
-
$slug = 'wppa_link_is_restricted';
|
7624 |
-
$html1 = wppa_checkbox($slug);
|
7625 |
-
$html2 = '';
|
7626 |
-
$html = array( $html1, $html2 );
|
7627 |
-
$clas = '';
|
7628 |
-
$tags = 'access,link';
|
7629 |
-
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
7630 |
-
|
7631 |
-
$name = __('CoverType is restricted', 'wp-photo-album-plus');
|
7632 |
-
$desc = __('Changing <b>Cover Type</b> is a restricted action.', 'wp-photo-album-plus');
|
7633 |
-
$help = (__('If checked: Cover Type: can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus'));
|
7634 |
-
$slug = 'wppa_covertype_is_restricted';
|
7635 |
-
$html1 = wppa_checkbox($slug);
|
7636 |
-
$html2 = '';
|
7637 |
-
$html = array( $html1, $html2 );
|
7638 |
-
$clas = '';
|
7639 |
-
$tags = 'access,cover';
|
7640 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
7641 |
-
|
7642 |
-
$name = __('Photo order is restricted', 'wp-photo-album-plus');
|
7643 |
-
$desc = __('Changing <b>Photo sort order</b> is a restricted action.', 'wp-photo-album-plus');
|
7644 |
-
$help = (__('If checked: Photo sort order and order#: can not be set in album and photo admin by users not having admin rights.', 'wp-photo-album-plus'));
|
7645 |
-
$slug = 'wppa_porder_restricted';
|
7646 |
-
$html1 = wppa_checkbox($slug);
|
7647 |
-
$html2 = '';
|
7648 |
-
$html = array( $html1, $html2 );
|
7649 |
-
$clas = '';
|
7650 |
-
$tags = 'access,system';
|
7651 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
7652 |
-
|
7653 |
-
$name = __('Change source restricted', 'wp-photo-album-plus');
|
7654 |
-
$desc = __('Changing the import source dir requires admin rights.', 'wp-photo-album-plus');
|
7655 |
-
$help = (__('If checked, the imput source for importing photos and albums is restricted to user role administrator.', 'wp-photo-album-plus'));
|
7656 |
-
$slug = 'wppa_chgsrc_is_restricted';
|
7657 |
-
$html1 = wppa_checkbox($slug);
|
7658 |
-
$html2 = '';
|
7659 |
-
$html = array( $html1, $html2 );
|
7660 |
-
$clas = '';
|
7661 |
-
$tags = 'access,system,import';
|
7662 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
7663 |
Â
|
7664 |
-
|
7665 |
-
|
7666 |
-
|
7667 |
-
|
7668 |
-
|
7669 |
-
|
7670 |
-
|
7671 |
-
|
7672 |
-
|
7673 |
-
|
Â
|
|
Â
|
|
7674 |
Â
|
7675 |
-
|
7676 |
-
|
7677 |
-
|
7678 |
-
|
7679 |
-
|
7680 |
-
|
7681 |
-
|
7682 |
-
|
7683 |
-
|
7684 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
7685 |
Â
|
7686 |
-
|
7687 |
-
|
7688 |
-
$help = '';
|
7689 |
-
$slug = 'wppa_reup_is_restricted';
|
7690 |
-
$html1 = wppa_checkbox($slug);
|
7691 |
-
$html2 = '';
|
7692 |
-
$html = array( $html1, $html2 );
|
7693 |
-
$clas = '';
|
7694 |
-
$tags = 'access,system';
|
7695 |
-
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
7696 |
-
|
7697 |
-
$name = __('New tags restricted', 'wp-photo-album-plus');
|
7698 |
-
$desc = __('Creating new tags requires admin rights', 'wp-photo-album-plus');
|
7699 |
-
$help = (__('If ticked, users can ony use existing tags', 'wp-photo-album-plus'));
|
7700 |
-
$slug = 'wppa_newtags_is_restricted';
|
7701 |
-
$html1 = wppa_checkbox($slug);
|
7702 |
-
$html2 = '';
|
7703 |
-
$html = array( $html1, $html2 );
|
7704 |
-
$clas = '';
|
7705 |
-
$tags = 'access,system';
|
7706 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
7707 |
Â
|
7708 |
-
|
7709 |
-
|
7710 |
-
|
7711 |
-
|
7712 |
-
|
7713 |
-
|
7714 |
-
|
7715 |
-
|
7716 |
-
|
7717 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
7718 |
Â
|
7719 |
-
|
7720 |
-
|
7721 |
-
|
7722 |
-
|
7723 |
-
|
7724 |
-
|
7725 |
-
$html = array( $html1, $html2 );
|
7726 |
-
$clas = '';
|
7727 |
-
$tags = 'access,system';
|
7728 |
-
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
7729 |
-
|
7730 |
-
wppa_setting_subheader('D', '2', __('Miscellaneous limiting settings', 'wp-photo-album-plus'));
|
7731 |
-
|
7732 |
-
$name = __('Owners only', 'wp-photo-album-plus');
|
7733 |
-
$desc = __('Limit edit album access to the album owners only.', 'wp-photo-album-plus');
|
7734 |
-
$help = (__('If checked, non-admin users can edit their own albums only.', 'wp-photo-album-plus'));
|
7735 |
-
$slug = 'wppa_owner_only';
|
7736 |
-
$html1 = wppa_checkbox($slug);
|
7737 |
-
$html2 = '';
|
7738 |
-
$html = array( $html1, $html2 );
|
7739 |
-
$clas = '';
|
7740 |
-
$tags = 'access,system';
|
7741 |
-
wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
|
7742 |
-
|
7743 |
-
$name = __('Upload Owners only', 'wp-photo-album-plus');
|
7744 |
-
$desc = __('Limit uploads to the album owners only.', 'wp-photo-album-plus');
|
7745 |
-
$help = (__('If checked, users can upload to their own albums and --- public --- only.', 'wp-photo-album-plus'));
|
7746 |
-
$slug = 'wppa_upload_owner_only';
|
7747 |
-
$html1 = wppa_checkbox($slug);
|
7748 |
-
$html2 = '';
|
7749 |
-
$html = array( $html1, $html2 );
|
7750 |
-
$clas = '';
|
7751 |
-
$tags = 'access,system,upload';
|
7752 |
-
wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
|
7753 |
-
|
7754 |
-
$name = __('Frontend Edit', 'wp-photo-album-plus');
|
7755 |
-
$desc = __('Allow the uploader to edit the photo info', 'wp-photo-album-plus');
|
7756 |
-
$help = (__('If selected, any logged in user who meets the criteria has the capability to edit the photo information.', 'wp-photo-album-plus'));
|
7757 |
-
$help .= '<br />'.(__('Note: This may be AFTER moderation!!', 'wp-photo-album-plus'));
|
7758 |
-
$slug = 'wppa_upload_edit';
|
7759 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'), __('Classic', 'wp-photo-album-plus'), __('New style', 'wp-photo-album-plus'));
|
7760 |
-
$vals = array( '-none-', 'classic', 'new' );
|
7761 |
-
$html1 = wppa_select($slug, $opts, $vals);
|
7762 |
-
$html2 = '';
|
7763 |
-
$html = array( $html1, $html2 );
|
7764 |
-
$clas = '';
|
7765 |
-
$tags = 'access,system,upload';
|
7766 |
-
wppa_setting($slug, '2.1', $name, $desc, $html, $help, $clas, $tags);
|
7767 |
Â
|
7768 |
-
|
7769 |
-
|
7770 |
-
|
7771 |
-
|
7772 |
-
|
7773 |
-
|
7774 |
-
|
7775 |
-
|
7776 |
-
|
7777 |
-
|
7778 |
-
|
7779 |
-
|
7780 |
-
|
7781 |
-
|
7782 |
-
$desc = __('The time since upload the user can edit photo info', 'wp-photo-album-plus');
|
7783 |
-
$help = __('Frontend Edit should be set in order to have effect', 'wp-photo-album-plus');
|
7784 |
-
$help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus');
|
7785 |
-
$slug = 'wppa_upload_edit_period';
|
7786 |
-
$opts = array( __('15 minutes', 'wp-photo-album-plus'),
|
7787 |
-
__('one hour', 'wp-photo-album-plus'),
|
7788 |
-
__('three hours', 'wp-photo-album-plus'),
|
7789 |
-
__('one day', 'wp-photo-album-plus'),
|
7790 |
-
__('for ever', 'wp-photo-album-plus'),
|
7791 |
-
);
|
7792 |
-
$vals = array( 900, 3600, 10800, 86400, 0 );
|
7793 |
-
$html1 = wppa_select($slug, $opts, $vals);
|
7794 |
-
$html2 = '';
|
7795 |
-
$html = array( $html1, $html2 );
|
7796 |
-
$clas = '';
|
7797 |
-
$tags = 'access,system,upload';
|
7798 |
-
wppa_setting($slug, '2.2.1', $name, $desc, $html, $help, $clas, $tags);
|
7799 |
-
|
7800 |
-
$name = __('Fe Edit Theme CSS', 'wp-photo-album-plus');
|
7801 |
-
$desc = __('The front-end edit photo dialog uses the theme CSS.', 'wp-photo-album-plus');
|
7802 |
-
$help = (__('This setting has effect when Table VII D2.1 is set to \'classic\' only.', 'wp-photo-album-plus'));
|
7803 |
-
$slug = 'wppa_upload_edit_theme_css';
|
7804 |
-
$html1 = wppa_checkbox($slug);
|
7805 |
-
$html2 = '';
|
7806 |
-
$html = array( $html1, $html2 );
|
7807 |
-
$clas = '';
|
7808 |
-
$tags = 'layout,system,upload';
|
7809 |
-
wppa_setting($slug, '2.3', $name, $desc, $html, $help, $clas, $tags);
|
7810 |
-
|
7811 |
-
$name = __('Fe Edit New Items', 'wp-photo-album-plus');
|
7812 |
-
$desc = __('The items that are fe editable', 'wp-photo-album-plus');
|
7813 |
-
$help = (__('See also Table II-J10!', 'wp-photo-album-plus'));
|
7814 |
-
$slug1 = 'wppa_fe_edit_name';
|
7815 |
-
$slug2 = 'wppa_fe_edit_desc';
|
7816 |
-
$slug3 = 'wppa_fe_edit_tags';
|
7817 |
-
$html1 = ' <span style="float:left" >'.__('Name', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug1);
|
7818 |
-
$html2 = ' <span style="float:left" >'.__('Description', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug2);
|
7819 |
-
$html3 = ' <span style="float:left" >'.__('Tags', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug3);
|
7820 |
-
$html9 = '';
|
7821 |
-
$html = array($html1.$html2.$html3,$html9);
|
7822 |
-
$clas = '';
|
7823 |
-
$tags = 'upload';
|
7824 |
-
wppa_setting($slug1, '2.4', $name, $desc, $html, $help, $clas, $tags);
|
7825 |
Â
|
7826 |
-
|
7827 |
-
|
7828 |
-
$help = '';
|
7829 |
-
$slug = 'wppa_fe_edit_button';
|
7830 |
-
$html1 = wppa_edit($slug, wppa_get_option( $slug ), '300px');
|
7831 |
-
$html2 = '';
|
7832 |
-
$html = array( $html1, $html2 );
|
7833 |
-
$clas= '';
|
7834 |
-
$tags = 'layout,system,upload';
|
7835 |
-
wppa_setting($slug, '2.5', $name, $desc, $html, $help, $clas, $tags);
|
7836 |
-
|
7837 |
-
$name = __('Fe Edit Dialog caption', 'wp-photo-album-plus');
|
7838 |
-
$desc = __('The text on the header of the popup.', 'wp-photo-album-plus');
|
7839 |
-
$help = '';
|
7840 |
-
$slug = 'wppa_fe_edit_caption';
|
7841 |
-
$html1 = wppa_edit($slug, wppa_get_option( $slug ), '300px');
|
7842 |
-
$html2 = '';
|
7843 |
-
$html = array( $html1, $html2 );
|
7844 |
-
$clas= '';
|
7845 |
-
$tags = 'layout,system,upload';
|
7846 |
-
wppa_setting($slug, '2.6', $name, $desc, $html, $help, $clas, $tags);
|
7847 |
-
|
7848 |
-
$name = __('Frontend Delete', 'wp-photo-album-plus');
|
7849 |
-
$desc = __('Allow the uploader to delete the photo', 'wp-photo-album-plus');
|
7850 |
-
$help = '';
|
7851 |
-
$slug = 'wppa_upload_delete';
|
7852 |
-
$html1 = wppa_checkbox($slug);
|
7853 |
-
$html2 = '';
|
7854 |
-
$html = array( $html1, $html2 );
|
7855 |
-
$clas = '';
|
7856 |
-
$tags = 'access,system,upload';
|
7857 |
-
wppa_setting($slug, '2.7', $name, $desc, $html, $help, $clas, $tags);
|
7858 |
-
|
7859 |
-
$name = __('Fe Delete period', 'wp-photo-album-plus');
|
7860 |
-
$desc = __('The time since upload the user can delete the photo', 'wp-photo-album-plus');
|
7861 |
-
$help = __('Frontend Delete should be set in order to have effect', 'wp-photo-album-plus');
|
7862 |
-
$help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus');
|
7863 |
-
$slug = 'wppa_upload_delete_period';
|
7864 |
-
$opts = array( __('15 minutes', 'wp-photo-album-plus'),
|
7865 |
-
__('one hour', 'wp-photo-album-plus'),
|
7866 |
-
__('three hours', 'wp-photo-album-plus'),
|
7867 |
-
__('one day', 'wp-photo-album-plus'),
|
7868 |
-
__('for ever', 'wp-photo-album-plus'),
|
7869 |
-
);
|
7870 |
-
$vals = array( 900, 3600, 10800, 86400, 0 );
|
7871 |
-
$html1 = wppa_select($slug, $opts, $vals);
|
7872 |
-
$html2 = '';
|
7873 |
-
$html = array( $html1, $html2 );
|
7874 |
-
$clas = '';
|
7875 |
-
$tags = 'access,system,upload';
|
7876 |
-
wppa_setting($slug, '2.8', $name, $desc, $html, $help, $clas, $tags);
|
7877 |
-
|
7878 |
-
$name = __('Uploader Moderate Comment', 'wp-photo-album-plus');
|
7879 |
-
$desc = __('The owner of the photo can moderate the photos comments.', 'wp-photo-album-plus');
|
7880 |
-
$help = (__('This setting requires "Uploader edit" to be enabled also.', 'wp-photo-album-plus'));
|
7881 |
-
$slug = 'wppa_owner_moderate_comment';
|
7882 |
-
$html1 = wppa_checkbox($slug);
|
7883 |
-
$html2 = '';
|
7884 |
-
$html = array( $html1, $html2 );
|
7885 |
-
$clas = '';
|
7886 |
-
$tags = 'access,system,upload,comment';
|
7887 |
-
wppa_setting($slug, '2.9', $name, $desc, $html, $help, $clas, $tags);
|
7888 |
-
|
7889 |
-
$name = __('Upload memory check', 'wp-photo-album-plus');
|
7890 |
-
$desc = __('Disable uploading photos that are too large.', 'wp-photo-album-plus');
|
7891 |
-
$help = (__('To prevent out of memory crashes during upload and possible database inconsistencies, uploads can be prevented if the photos are too big.', 'wp-photo-album-plus'));
|
7892 |
-
$slug = 'wppa_memcheck';
|
7893 |
-
$html1 = wppa_checkbox($slug);
|
7894 |
-
$html2 = '';
|
7895 |
-
$html = array( $html1, $html2 );
|
7896 |
-
$clas = '';
|
7897 |
-
$tags = 'access,system,upload';
|
7898 |
-
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
7899 |
-
|
7900 |
-
$name = __('Upload memory check copy', 'wp-photo-album-plus');
|
7901 |
-
$desc = __('Copy photos that are too large.', 'wp-photo-album-plus');
|
7902 |
-
$help = (__('To prevent out of memory crashes during upload and possible database inconsistencies, photos are not resized but copied if the photos are too big.', 'wp-photo-album-plus'));
|
7903 |
-
$slug = 'wppa_memcheck_copy';
|
7904 |
-
$html1 = wppa_checkbox($slug);
|
7905 |
-
$html2 = '';
|
7906 |
-
$html = array( $html1, $html2 );
|
7907 |
-
$clas = '';
|
7908 |
-
$tags = 'access,system,upload';
|
7909 |
-
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
7910 |
Â
|
7911 |
-
|
7912 |
-
|
7913 |
-
|
7914 |
-
|
7915 |
-
|
7916 |
-
|
7917 |
-
$html1 = wppa_select($slug, $opts, $vals);
|
7918 |
-
$clas = 'wppa_comment_';
|
7919 |
-
$html2 = '';
|
7920 |
-
$html = array( $html1, $html2 );
|
7921 |
-
$clas = '';
|
7922 |
-
$tags = 'access,system,comment';
|
7923 |
-
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
7924 |
Â
|
7925 |
-
|
7926 |
-
|
7927 |
-
|
7928 |
-
|
7929 |
-
|
7930 |
-
|
7931 |
-
sprintf( _n('%d minute', '%d minutes', '30', 'wp-photo-album-plus'), '30'),
|
7932 |
-
sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus'), '1'),
|
7933 |
-
sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
|
7934 |
-
sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus'), '1'),
|
7935 |
-
);
|
7936 |
Â
|
7937 |
-
|
7938 |
-
|
7939 |
-
|
7940 |
-
|
7941 |
-
|
7942 |
-
|
7943 |
-
);
|
7944 |
Â
|
7945 |
-
|
7946 |
-
|
7947 |
-
|
7948 |
-
|
7949 |
-
|
7950 |
-
|
7951 |
-
|
7952 |
-
|
7953 |
-
|
7954 |
-
|
7955 |
-
|
7956 |
-
|
7957 |
-
|
7958 |
-
|
7959 |
-
|
7960 |
-
|
7961 |
-
|
7962 |
-
|
7963 |
-
|
7964 |
-
|
7965 |
-
|
7966 |
-
|
7967 |
-
|
7968 |
-
|
7969 |
-
|
7970 |
-
|
7971 |
-
$
|
7972 |
-
$
|
7973 |
-
$
|
7974 |
-
|
7975 |
-
|
7976 |
-
|
7977 |
-
|
7978 |
-
|
7979 |
-
|
7980 |
-
|
7981 |
-
|
7982 |
-
$
|
7983 |
-
$
|
7984 |
-
|
7985 |
-
|
7986 |
-
|
7987 |
-
$
|
7988 |
-
$
|
7989 |
-
$
|
7990 |
-
|
7991 |
-
|
7992 |
-
|
7993 |
-
|
7994 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
7995 |
Â
|
7996 |
-
|
7997 |
-
$desc = __('Set the status of all the users photos to \'publish\'.', 'wp-photo-album-plus');
|
7998 |
-
$help = '';
|
7999 |
-
$slug = 'wppa_un_blacklist_user';
|
8000 |
-
$blacklist = wppa_get_option( 'wppa_black_listed_users', array() );
|
8001 |
-
$options = array( __('--- select a user to unblacklist ---', 'wp-photo-album-plus') );
|
8002 |
-
$values = array( '0' );
|
8003 |
-
foreach ( $blacklist as $usr ) {
|
8004 |
-
$u = wppa_get_user_by( 'login', $usr );
|
8005 |
-
$options[] = htmlspecialchars( $u->display_name ).' ('.$u->user_login.')';
|
8006 |
-
$values[] = $u->user_login;
|
8007 |
-
}
|
8008 |
-
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
8009 |
-
$html1 = wppa_select($slug, $options, $values, $onchange);
|
8010 |
-
$html2 = '';
|
8011 |
-
$html = array( $html1, $html2 );
|
8012 |
-
$clas = '';
|
8013 |
-
$tags = 'access,system';
|
8014 |
-
wppa_setting(false, '9', $name, $desc, $html, $help, $clas, $tags);
|
8015 |
Â
|
8016 |
-
|
8017 |
-
|
8018 |
-
|
8019 |
-
|
8020 |
-
|
8021 |
-
|
8022 |
-
|
8023 |
-
|
8024 |
-
|
8025 |
-
|
8026 |
-
|
8027 |
-
|
8028 |
-
|
8029 |
-
|
8030 |
-
|
8031 |
-
|
8032 |
-
|
8033 |
-
|
8034 |
-
|
8035 |
-
|
8036 |
-
|
8037 |
-
|
8038 |
-
|
8039 |
-
|
8040 |
-
|
8041 |
-
|
8042 |
-
|
8043 |
-
|
8044 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
8045 |
Â
}
|
8046 |
-
|
8047 |
-
|
8048 |
-
|
8049 |
-
|
8050 |
-
|
8051 |
-
|
8052 |
-
|
8053 |
-
|
8054 |
-
|
8055 |
-
|
8056 |
-
|
8057 |
-
|
8058 |
-
|
8059 |
Â
|
8060 |
-
|
8061 |
-
|
8062 |
-
|
8063 |
-
|
8064 |
-
|
8065 |
-
|
8066 |
-
$values = array( '0' );
|
8067 |
-
foreach ( $superlist as $usr ) {
|
8068 |
-
$u = wppa_get_user_by( 'login', $usr );
|
8069 |
-
$options[] = htmlspecialchars( $u->display_name ).' ('.$u->user_login.')';
|
8070 |
-
$values[] = $u->user_login;
|
8071 |
-
}
|
8072 |
-
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
8073 |
-
$html1 = wppa_select($slug, $options, $values, $onchange);
|
8074 |
-
$html2 = '';
|
8075 |
-
$html = array( $html1, $html2 );
|
8076 |
-
$clas = '';
|
8077 |
-
$tags = 'access,system';
|
8078 |
-
wppa_setting(false, '12', $name, $desc, $html, $help, $clas, $tags);
|
8079 |
-
|
8080 |
-
?>
|
8081 |
-
|
8082 |
-
</tbody>
|
8083 |
-
<tfoot style="font-weight: bold;" class="wppa_table_7">
|
8084 |
-
<tr>
|
8085 |
-
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
8086 |
-
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
8087 |
-
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
8088 |
-
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
8089 |
-
<td></td>
|
8090 |
-
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
8091 |
-
</tr>
|
8092 |
-
</tfoot>
|
8093 |
-
</table>
|
8094 |
-
</div>
|
8095 |
Â
|
8096 |
-
|
8097 |
-
|
8098 |
-
|
8099 |
-
|
8100 |
-
|
8101 |
-
|
8102 |
-
|
8103 |
-
|
8104 |
-
|
8105 |
-
|
8106 |
-
|
8107 |
-
|
8108 |
-
|
8109 |
-
|
8110 |
-
|
8111 |
-
|
8112 |
-
|
8113 |
-
|
8114 |
-
|
8115 |
-
|
8116 |
-
|
8117 |
-
|
8118 |
-
|
8119 |
-
|
8120 |
-
|
8121 |
-
|
8122 |
-
|
8123 |
-
|
8124 |
-
|
8125 |
-
|
8126 |
-
|
8127 |
-
|
8128 |
-
|
8129 |
-
|
8130 |
-
|
8131 |
-
|
8132 |
-
|
8133 |
-
|
8134 |
-
|
8135 |
-
|
8136 |
-
|
8137 |
-
|
8138 |
-
|
8139 |
-
|
8140 |
-
|
8141 |
-
|
8142 |
-
|
8143 |
-
|
8144 |
-
|
8145 |
-
|
8146 |
-
|
8147 |
-
|
8148 |
-
|
8149 |
-
|
8150 |
-
|
8151 |
-
|
8152 |
-
|
8153 |
-
|
8154 |
-
|
8155 |
-
|
8156 |
-
|
8157 |
-
|
8158 |
-
|
8159 |
-
|
8160 |
-
|
8161 |
-
|
8162 |
-
|
8163 |
-
|
8164 |
-
|
8165 |
-
|
8166 |
-
|
8167 |
-
|
8168 |
-
|
8169 |
-
|
8170 |
-
|
8171 |
-
|
8172 |
-
|
8173 |
-
|
8174 |
-
|
8175 |
-
|
8176 |
-
|
8177 |
-
|
8178 |
-
|
8179 |
-
|
8180 |
-
|
8181 |
-
|
8182 |
-
|
8183 |
-
|
8184 |
-
|
8185 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
3 |
Â
* Package: wp-photo-album-plus
|
4 |
Â
*
|
5 |
Â
* manage all options
|
6 |
+
* Version 8.0.00.008
|
7 |
Â
*
|
8 |
Â
*/
|
9 |
Â
|
55 |
Â
if ( isset($_REQUEST['wppa_settings_submit']) ) { // Yep!
|
56 |
Â
|
57 |
Â
if ( ! wp_verify_nonce( $_REQUEST['wppa-nonce'], 'wppa-nonce' ) ) {
|
58 |
+
wp_die( 'Security check failuere' );
|
59 |
Â
}
|
60 |
Â
|
61 |
Â
$key = $_REQUEST['wppa-key'];
|
87 |
Â
// Should better be here
|
88 |
Â
case 'wppa_setup':
|
89 |
Â
wppa_setup(true); // Message on success or fail is in the routine
|
90 |
+
wppa_ok_message( __( 'Plugin successfully set up' , 'wp-photo-album-plus') );
|
91 |
Â
break;
|
92 |
Â
|
93 |
Â
// Must be here
|
100 |
Â
|
101 |
Â
$fname = wppa_opt( 'skinfile' );
|
102 |
Â
|
103 |
+
if ( $fname == '' ) {
|
104 |
+
wppa_error_message( __( 'Please select a valid option first', 'wp-photo-album-plus' ) );
|
105 |
+
}
|
106 |
+
elseif ( $fname == 'default' ) {
|
107 |
Â
if ( wppa_set_defaults( true ) ) {
|
108 |
Â
wppa_ok_message( __( 'Reset to default settings', 'wp-photo-album-plus' ) );
|
109 |
Â
}
|
130 |
Â
$options_error = true;
|
131 |
Â
}
|
132 |
Â
}
|
133 |
+
delete_option( 'wppa_skinfile' );
|
134 |
Â
break;
|
135 |
Â
|
136 |
Â
// Must be here
|
137 |
+
case 'wppa_watermark_file_upload':
|
138 |
Â
if ( isset($_FILES['file_1']) && $_FILES['file_1']['error'] != 4 ) { // Expected a fileupload for a watermark
|
139 |
Â
$file = $_FILES['file_1'];
|
140 |
Â
if ( $file['error'] ) {
|
157 |
Â
break;
|
158 |
Â
|
159 |
Â
case 'wppa_watermark_font_upload':
|
160 |
+
if ( isset($_FILES['file_1']) && $_FILES['file_1']['error'] != 4 ) { // Expected a fileupload for a watermark font file
|
161 |
+
$file = $_FILES['file_1'];
|
162 |
Â
if ( $file['error'] ) {
|
163 |
Â
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus'), $file['error']));
|
164 |
Â
}
|
332 |
Â
wppa_update_message( sprintf( __( '%s last album used settings removed.', 'wp-photo-album-plus'), $iret ) );
|
333 |
Â
}
|
334 |
Â
|
335 |
+
echo '
|
336 |
+
<div class="wrap">';
|
337 |
+
wppa_admin_spinner();
|
338 |
+
$iconurl = WPPA_URL.'/img/settings32.png';
|
339 |
+
echo '
|
340 |
+
<img id="icon-album" src="'.$iconurl.'" />
|
341 |
+
<h1 style="display:inline" >' . __('WP Photo Album Plus Settings', 'wp-photo-album-plus') . '
|
342 |
+
<span style="color:blue;"> ' . __('Auto Save', 'wp-photo-album-plus'). '</span>
|
343 |
+
</h1>';
|
344 |
+
if ( current_user_can( 'administrator' ) ) {
|
345 |
+
echo ' ' .
|
346 |
+
__( 'Database revision:', 'wp-photo-album-plus' ) . ' ' . wppa_get_option( 'wppa_revision', '100') . '. ' .
|
347 |
+
__( 'WP Charset:', 'wp-photo-album-plus') . ' ' . get_bloginfo( 'charset' ) . '. ' .
|
348 |
+
__( 'Current PHP version:', 'wp-photo-album-plus' ) . ' ' . phpversion() . '. ' .
|
349 |
+
__( 'WPPA+ API Version:', 'wp-photo-album-plus' ) . ' ' . $wppa_api_version . '. ' .
|
350 |
+
__( 'Filesystem method:', 'wp-photo-album-plus' ) . ' ' . get_filesystem_method();
|
351 |
+
}
|
352 |
+
echo '
|
353 |
+
<br />';
|
354 |
+
|
355 |
+
if ( is_multisite() ) {
|
356 |
Â
if ( WPPA_MULTISITE_GLOBAL ) {
|
357 |
Â
_e('Multisite in singlesite mode.', 'wp-photo-album-plus');
|
358 |
Â
}
|
491 |
Â
|
492 |
Â
$is_old_style = isset($_GET['oldstyle']);
|
493 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
494 |
Â
|
Â
|
|
495 |
Â
|
496 |
+
/* Start new style header */
|
497 |
+
if ( ! $is_old_style ) {
|
498 |
+
wp_nonce_field( 'wppa-nonce', 'wppa-nonce' );
|
499 |
Â
|
500 |
+
// The css
|
501 |
+
echo '
|
502 |
+
<style>
|
503 |
+
.wppa-setting-tabs {
|
504 |
+
position:relative;
|
505 |
+
top:24px;
|
506 |
+
}
|
507 |
+
.wppa-setting-tabs li {
|
508 |
+
border-color: darkgrey;
|
509 |
+
border-width: 1px;
|
510 |
+
float: left;
|
511 |
+
background-color: white;
|
512 |
+
padding: 8px 10px;
|
513 |
+
font-size: 22px;
|
514 |
+
color: darkgrey;
|
515 |
+
border-style: solid;
|
516 |
+
text-align: center;
|
517 |
+
margin-right: 4px;
|
518 |
+
border-top-left-radius: 8px;
|
519 |
+
border-top-right-radius: 8px;
|
520 |
+
cursor: pointer;
|
521 |
+
}
|
522 |
+
#wppa-setting-tab-99 {
|
523 |
+
float: right;
|
524 |
+
}
|
525 |
+
.wppa-setting-tabs .active {
|
526 |
+
color: black;
|
527 |
+
border-bottom-color: white;
|
528 |
+
}
|
529 |
+
#wppa-setting-content {
|
530 |
+
clear:both;
|
531 |
+
background-color: white;
|
532 |
+
border-left:1px solid black;
|
533 |
+
border-right:1px solid black;
|
534 |
+
border-bottom:1px solid black;
|
535 |
+
position:relative;
|
536 |
+
top:18px;
|
537 |
+
border-color:darkgrey;
|
538 |
+
}
|
539 |
+
.wppa-colorbox {
|
540 |
+
height: 28px !important;
|
541 |
+
}
|
542 |
+
.wppa-doit-button {
|
543 |
+
float:left;
|
544 |
+
border-radius:3px;
|
545 |
+
font-size: 11px !important;
|
546 |
+
margin: 0 4px;
|
547 |
+
padding: 0 6px;
|
548 |
+
border: 1px solid darkgrey !important;
|
549 |
+
}
|
550 |
+
</style>';
|
551 |
Â
|
552 |
+
// Any tab set?
|
553 |
+
if ( isset( $_REQUEST['wppa-tab'] ) ) {
|
554 |
+
$tab = sanitize_text_field( $_REQUEST['wppa-tab'] );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
555 |
Â
}
|
556 |
+
else {
|
557 |
+
$tab = 'general';
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
558 |
Â
}
|
Â
|
|
Â
|
|
559 |
Â
|
560 |
+
global $wppa_cur_tab;
|
561 |
+
$wppa_cur_tab = $tab;
|
562 |
+
|
563 |
+
if ( $wppa_cur_tab == 'share' ) {
|
564 |
+
|
565 |
+
// Linkpages
|
566 |
+
$options_page = false;
|
567 |
+
$options_page_post = false;
|
568 |
+
$values_page = false;
|
569 |
+
$values_page_post = false;
|
570 |
+
|
571 |
+
// First
|
572 |
+
$options_page_post[] = __('--- the same page or post ---', 'wp-photo-album-plus');
|
573 |
+
$values_page_post[] = '0';
|
574 |
+
$options_page[] = __('--- please select a page ---', 'wp-photo-album-plus');
|
575 |
+
$values_page[] = '0';
|
576 |
+
|
577 |
+
// Pages if any
|
578 |
+
$pages = $wpdb->get_results( "SELECT ID, post_title, post_content, post_parent FROM $wpdb->posts
|
579 |
+
WHERE post_type = 'page'
|
580 |
+
AND post_status = 'publish'
|
581 |
+
ORDER BY post_title", ARRAY_A );
|
582 |
+
if ( $pages ) {
|
583 |
+
|
584 |
+
// Translate
|
585 |
+
foreach ( array_keys($pages) as $index ) {
|
586 |
+
$pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
|
587 |
+
}
|
588 |
+
|
589 |
+
$pages = wppa_array_sort($pages, 'post_title');
|
590 |
+
foreach ($pages as $page) {
|
591 |
+
if (strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false) {
|
592 |
+
$options_page[] = __($page['post_title'], 'wp-photo-album-plus');
|
593 |
+
$options_page_post[] = __($page['post_title'], 'wp-photo-album-plus');
|
594 |
+
$values_page[] = $page['ID'];
|
595 |
+
$values_page_post[] = $page['ID'];
|
596 |
+
}
|
597 |
+
else {
|
598 |
+
$options_page[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
|
599 |
+
$options_page_post[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
|
600 |
+
$values_page[] = $page['ID'];
|
601 |
+
$values_page_post[] = $page['ID'];
|
602 |
+
}
|
603 |
+
}
|
604 |
Â
}
|
605 |
Â
else {
|
606 |
+
$options_page[] = __('--- No page to link to (yet) ---', 'wp-photo-album-plus');
|
607 |
+
$values_page[] = '0';
|
608 |
Â
}
|
609 |
+
|
610 |
+
$options_page_auto = $options_page;
|
611 |
+
$options_page_auto[0] = __('--- Will be auto created ---', 'wp-photo-album-plus');
|
612 |
Â
}
|
613 |
+
|
614 |
+
// The header tabs
|
615 |
+
echo '<ul class="widefat wppa-setting-tabs" >';
|
616 |
+
wppa_setting_tab( 'general', __( 'General', 'wp-photo-album-plus' ), $tab == 'general' );
|
617 |
+
wppa_setting_tab( 'layout', __( 'Layout', 'wp-photo-album-plus' ), $tab == 'layout' );
|
618 |
+
wppa_setting_tab( 'lightbox', __( 'Lightbox', 'wp-photo-album-plus' ), $tab == 'lightbox' );
|
619 |
+
wppa_setting_tab( 'comments', __( 'Comments', 'wp-photo-album-plus' ), $tab == 'comments', wppa_switch( 'show_comments' ) );
|
620 |
+
wppa_setting_tab( 'rating', __( 'Rating', 'wp-photo-album-plus' ), $tab == 'rating', wppa_switch( 'rating_on' ) );
|
621 |
+
wppa_setting_tab( 'users', __( 'Users', 'wp-photo-album-plus' ), $tab == 'users', wppa_switch( 'user_upload_on' ) );
|
622 |
+
wppa_setting_tab( 'email', __( 'Email', 'wp-photo-album-plus' ), $tab == 'email', wppa_switch( 'email_on' ) );
|
623 |
+
wppa_setting_tab( 'share', __( 'Share', 'wp-photo-album-plus' ), $tab == 'share', wppa_switch( 'share_on' ) );
|
624 |
+
wppa_setting_tab( 'advanced', __( 'Advanced', 'wp-photo-album-plus' ), $tab == 'advanced' );
|
625 |
+
wppa_setting_tab( 'files', __( 'Files', 'wp-photo-album-plus' ), $tab == 'files' );
|
626 |
+
wppa_setting_tab( 'new', __( 'New', 'wp-photo-album-plus' ), $tab == 'new' );
|
627 |
+
wppa_setting_tab( 'admin', __( 'Admin', 'wp-photo-album-plus' ), $tab == 'admin' );
|
628 |
+
wppa_setting_tab( 'maintenance', __( 'Maintenance', 'wp-photo-album-plus' ), $tab == 'maintenance' );
|
629 |
+
wppa_setting_tab( 'exif', 'EXIF', $tab == 'exif', wppa_switch( 'save_exif' ) && function_exists('exif_read_data') );
|
630 |
+
wppa_setting_tab( 'iptc', 'IPTC', $tab == 'iptc', wppa_switch( 'save_iptc' ) && function_exists('exif_read_data') );
|
631 |
+
wppa_setting_tab( 'gpx', 'GPX', $tab == 'gpx', wppa_switch( 'save_gpx' ) && wppa_switch( 'save_exif' ) && function_exists('exif_read_data') );
|
632 |
+
wppa_setting_tab( 'watermark', __( 'Watermark', 'wp-photo-album-plus' ), $tab == 'watermark', wppa_switch( 'watermark_on' ) );
|
633 |
+
wppa_setting_tab( 'constants', __( 'Constants', 'wp-photo-album-plus' ), $tab == 'constants' );
|
634 |
+
wppa_setting_tab( '99', __( 'Old style', 'wp-photo-album-plus' ), $tab == '99' );
|
635 |
+
echo '</ul>';
|
636 |
+
|
637 |
+
// The js
|
638 |
+
echo '
|
639 |
+
<script>
|
640 |
+
function wppaSettingTab(tab) {
|
641 |
+
jQuery(".wppa-setting-tabs li").removeClass("active");
|
642 |
+
jQuery("#wppa-setting-tab-"+tab).addClass("active");
|
643 |
+
if ( tab == 99 ) {
|
644 |
+
jQuery( "#wppa-admin-spinner" ).show();
|
645 |
+
document.location.href = document.location.href + "&oldstyle";
|
646 |
+
}
|
647 |
+
else {
|
648 |
+
jQuery(".wppa-setting-content").hide();
|
649 |
+
jQuery(".wppa-tabdesc").hide();
|
650 |
+
jQuery( "#wppa-admin-spinner" ).show();
|
651 |
+
document.location.href = wppaReturnUrl() + "&wppa-tab=" + tab;
|
652 |
+
}
|
653 |
Â
}
|
654 |
+
function wppaSlave(elm,clas) {
|
655 |
+
if ( jQuery( elm ).prop( "checked" ) ) {
|
656 |
+
jQuery( "."+clas ).show();
|
657 |
+
}
|
658 |
+
else {
|
659 |
+
jQuery( "."+clas ).hide();
|
660 |
+
}
|
661 |
Â
}
|
662 |
+
function wppaReturnUrl(actionSlug) {
|
663 |
+
var url = document.location.href;
|
664 |
+
var qpos = url.indexOf("?");
|
665 |
+
url = url.substr(0,qpos) + "?page=wppa_options&wppa-tab=' . $tab . '";
|
666 |
+
if ( actionSlug ) {
|
667 |
+
url += "&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) . '";
|
668 |
+
url += "&wppa_settings_submit=Doit&wppa-key=" + actionSlug;
|
669 |
+
}
|
670 |
+
return url;
|
671 |
+
}
|
672 |
+
function wppaRefreshPage() {
|
673 |
+
document.location.href = wppaReturnUrl();
|
674 |
+
}
|
675 |
+
window.history.pushState({}, "", wppaReturnUrl() + "&wppa-tab=" + "' . $tab . '");
|
676 |
+
</script>';
|
677 |
Â
|
678 |
+
// Open the content area
|
679 |
+
echo '
|
680 |
+
<div id="wppa-setting-content" >';
|
681 |
+
|
682 |
+
if ( $wppa_cur_tab == 'general' ) {
|
683 |
+
|
684 |
+
$desc = __('On this tab you can select the features you want to use', 'wp-photo-album-plus');
|
685 |
+
wppa_setting_tab_description($desc);
|
686 |
+
wppa_setting_box_header_new('general');
|
687 |
+
|
688 |
+
$name = __('Enable Photo', 'wp-photo-album-plus');
|
689 |
+
$desc = __('Enables photo support', 'wp-photo-album-plus');
|
690 |
+
$help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus');
|
691 |
+
$slug = '';
|
692 |
+
$html = '<input type="checkbox" checked disabled >';
|
693 |
+
wppa_setting_new($slug, '0', $name, $desc, $html, $help);
|
694 |
+
|
695 |
+
$name = __('Enable 3D Stereo', 'wp-photo-album-plus');
|
696 |
+
$desc = __('Enables 3D stereo photo support.', 'wp-photo-album-plus');
|
697 |
+
$help = __('Check this box to enable the upload and display of 3D stereo image files', 'wp-photo-album-plus');
|
698 |
+
$slug = 'wppa_enable_stereo';
|
699 |
+
$html = wppa_checkbox($slug);
|
700 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
701 |
+
|
702 |
+
$name = __('Enable Panorama', 'wp-photo-album-plus');
|
703 |
+
$desc = __('Enables panorama photo support.', 'wp-photo-album-plus');
|
704 |
+
$help = __('Check this box to enable the upload and display of flat and 360° spheric panorama image files', 'wp-photo-album-plus');
|
705 |
+
$slug = 'wppa_enable_panorama';
|
706 |
+
$html = wppa_checkbox($slug);
|
707 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
708 |
+
|
709 |
+
$name = __('Enable Video', 'wp-photo-album-plus');
|
710 |
+
$desc = __('Enables video support.', 'wp-photo-album-plus');
|
711 |
+
$help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus');
|
712 |
+
$slug = 'wppa_enable_video';
|
713 |
+
$onch = 'wppaSlave( this, "wppa_user_upload_video_on" )';
|
714 |
+
$html = wppa_checkbox($slug, $onch);
|
715 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
716 |
+
|
717 |
+
$name = __('Enable pdf', 'wp-photo-album-plus');
|
718 |
+
$desc = __('Enables the support of pdf files', 'wp-photo-album-plus');
|
719 |
+
$help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus');
|
720 |
+
$slug = 'wppa_enable_pdf';
|
721 |
+
$html = wppa_checkbox($slug);
|
722 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
723 |
+
|
724 |
+
$name = __('Enable Audio', 'wp-photo-album-plus');
|
725 |
+
$desc = __('Enables audio support.', 'wp-photo-album-plus');
|
726 |
+
$help = __('Check this box to enable the upload and display of audio files', 'wp-photo-album-plus');
|
727 |
+
$slug = 'wppa_enable_audio';
|
728 |
+
$onch = 'wppaSlave(this,"wppa_user_upload_audio_on")';
|
729 |
+
$html = wppa_checkbox($slug, $onch);
|
730 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
731 |
+
|
732 |
+
$name = __('Enable Comments', 'wp-photo-album-plus');
|
733 |
+
$desc = __('Enables the comments system.', 'wp-photo-album-plus');
|
734 |
+
$help = __('Display the comments box under the slideshow images and let users enter their comments on individual photos.', 'wp-photo-album-plus');
|
735 |
+
$slug = 'wppa_show_comments';
|
736 |
+
$onch = 'wppaSlave(this,"comments")';
|
737 |
+
$html = wppa_checkbox($slug, $onch);
|
738 |
+
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
739 |
+
|
740 |
+
$name = __('Enable Ratings', 'wp-photo-album-plus');
|
741 |
+
$desc = __('Enables the rating system.', 'wp-photo-album-plus');
|
742 |
+
$help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus');
|
743 |
+
$slug = 'wppa_rating_on';
|
744 |
+
$onch = 'wppaSlave(this,"rating")';
|
745 |
+
$html = wppa_checkbox($slug, $onch);
|
746 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
747 |
+
|
748 |
+
$name = __('Enable User uploads', 'wp-photo-album-plus');
|
749 |
+
$desc = __('Enables frontend upload.', 'wp-photo-album-plus');
|
750 |
+
$help = '';
|
751 |
+
$slug = 'wppa_user_upload_on';
|
752 |
+
$onch = 'wppaSlave(this,"users");';
|
753 |
+
$html = wppa_checkbox($slug, $onch);
|
754 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
755 |
+
|
756 |
+
$name = __('Enable Email', 'wp-photo-album-plus');
|
757 |
+
$desc = __('Enables sending emails when albums, photos or comments are entered.', 'wp-photo-album-plus');
|
758 |
+
$help = __('See Tab Emails for detailed settings', 'wp-photo-album-plus');
|
759 |
+
$slug = 'wppa_email_on';
|
760 |
+
$onch = 'wppaSlave(this,"email");';
|
761 |
+
$html = wppa_checkbox($slug, $onch);
|
762 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
763 |
+
|
764 |
+
wppa_setting_box_footer_new();
|
765 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
766 |
Â
|
767 |
+
if ( $wppa_cur_tab == 'layout' ) {
|
768 |
+
|
769 |
+
wppa_setting_box_header_new('layout');
|
770 |
+
|
771 |
+
$name = __('WPPA display boxes', 'wp-photo-album-plus');
|
772 |
+
$desc = __('Background and border colors.', 'wp-photo-album-plus');
|
773 |
+
$help = __('Enter valid CSS colors for backgrounds and borders. E.g. #cccccc, gray, lightblue, transparent', 'wp-photo-album-plus');
|
774 |
+
$slug1 = 'wppa_bgcolor';
|
775 |
+
$slug2 = 'wppa_bcolor';
|
776 |
+
$slug = array($slug1, $slug2);
|
777 |
+
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
778 |
+
$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);
|
779 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
780 |
+
|
781 |
+
$name = __('Border thickness', 'wp-photo-album-plus');
|
782 |
+
$desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus');
|
783 |
+
$help = __('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus');
|
784 |
+
$slug = 'wppa_bwidth';
|
785 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
786 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
787 |
+
|
788 |
+
$name = __('Border radius', 'wp-photo-album-plus');
|
789 |
+
$desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus');
|
790 |
+
$help = __('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus');
|
791 |
+
$slug = 'wppa_bradius';
|
792 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
793 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
794 |
+
|
795 |
+
$name = __('Box spacing', 'wp-photo-album-plus');
|
796 |
+
$desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus');
|
797 |
+
$help = '';
|
798 |
+
$slug = 'wppa_box_spacing';
|
799 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
800 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
801 |
Â
|
802 |
+
$name = __('Initial Width', 'wp-photo-album-plus');
|
803 |
+
$desc = __('The starting width of the wppa display boxes', 'wp-photo-album-plus');
|
804 |
+
$help = '';
|
805 |
+
$slug = 'wppa_initial_colwidth';
|
806 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
807 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
808 |
Â
|
809 |
+
$name = __('Resize to', 'wp-photo-album-plus');
|
810 |
+
$desc = __('Resize photos to fit within a given area.', 'wp-photo-album-plus');
|
811 |
+
$help = '';
|
812 |
+
$slug = 'wppa_resize_to';
|
813 |
+
$px = __('pixels', 'wp-photo-album-plus');
|
814 |
+
$options = array( __('Do not resize', 'wp-photo-album-plus'),
|
815 |
+
__('Fit within rectangle as set in Table I-B1,2', 'wp-photo-album-plus'),
|
816 |
+
'640 x 480 '.$px,
|
817 |
+
'800 x 600 '.$px,
|
818 |
+
'1024 x 768 '.$px,
|
819 |
+
'1200 x 900 '.$px,
|
820 |
+
'1280 x 960 '.$px,
|
821 |
+
'1366 x 768 '.$px,
|
822 |
+
'1920 x 1080 '.$px,
|
823 |
+
'2400 x 1200 '.$px,
|
824 |
+
'3600 x 1800 '.$px,
|
825 |
+
'4800 x 2400 '.$px,
|
826 |
+
'6000 x 3000 '.$px,
|
827 |
+
);
|
828 |
+
$values = array( '-1',
|
829 |
+
'0',
|
830 |
+
'640x480',
|
831 |
+
'800x600',
|
832 |
+
'1024x768',
|
833 |
+
'1200x900',
|
834 |
+
'1280x960',
|
835 |
+
'1366x768',
|
836 |
+
'1920x1080',
|
837 |
+
'2400x1200',
|
838 |
+
'3600x1800',
|
839 |
+
'4800x2400',
|
840 |
+
'6000x3000',
|
841 |
+
);
|
842 |
+
$html = wppa_select($slug, $options, $values);
|
843 |
+
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
844 |
Â
|
845 |
+
$name = __('Show Share Box', 'wp-photo-album-plus');
|
846 |
+
$desc = __('Display the share social media buttons box.', 'wp-photo-album-plus');
|
847 |
+
$help = '';
|
848 |
+
$slug = 'wppa_share_on';
|
849 |
+
$onch = 'wppaSlave(this, "share")';
|
850 |
+
$html = wppa_checkbox($slug, $onch);
|
851 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
852 |
+
|
853 |
+
$name = __('Sticky header size', 'wp-photo-album-plus');
|
854 |
+
$desc = __('The height of your sticky header.', 'wp-photo-album-plus');
|
855 |
+
$help = __('If your theme has a sticky header, enter its height here.', 'wp-photo-album-plus');
|
856 |
+
$slug = 'wppa_sticky_header_size';
|
857 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
858 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
859 |
+
|
860 |
+
$name = __('Area max size', 'wp-photo-album-plus');
|
861 |
+
$desc = __('The max height of the thumbnail and album cover areas', 'wp-photo-album-plus');
|
862 |
+
$help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus');
|
863 |
+
$slug = 'wppa_area_size';
|
864 |
+
$html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus'));
|
865 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
866 |
+
|
867 |
+
$name = __('Use nicescroller', 'wp-photo-album-plus');
|
868 |
+
$desc = __('Use nice scrollbars on thumbnail and album cover areas', 'wp-photo-album-plus');
|
869 |
+
$help = '';
|
870 |
+
$slug = 'wppa_nicescroll';
|
871 |
+
$html = wppa_checkbox($slug);
|
872 |
+
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
873 |
Â
|
874 |
+
wppa_setting_box_footer_new();
|
875 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
876 |
Â
|
877 |
+
if ( $wppa_cur_tab == 'lightbox' ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
878 |
Â
|
879 |
+
wppa_setting_box_header_new('lightbox');
|
880 |
+
|
881 |
+
$name = __('Theme color', 'wp-photo-album-plus');
|
882 |
+
$desc = __('The color of the image border and text background.', 'wp-photo-album-plus');
|
883 |
Â
$help = '';
|
884 |
+
$slug = 'wppa_ovl_theme';
|
885 |
+
$options = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
|
886 |
+
$values = array('black', 'white');
|
887 |
+
$html = wppa_select($slug, $options, $values);
|
888 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
889 |
+
|
890 |
+
$name = __('Theme background color', 'wp-photo-album-plus');
|
891 |
+
$desc = __('The color of the outer background.', 'wp-photo-album-plus');
|
892 |
+
$help = '';
|
893 |
+
$slug = 'wppa_ovl_bgcolor';
|
894 |
+
$options = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
|
895 |
+
$values = array('black', 'white');
|
896 |
+
$html = wppa_select($slug, $options, $values);
|
897 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
898 |
+
|
899 |
+
$name = __('Overlay name', 'wp-photo-album-plus');
|
900 |
+
$desc = __('Show the items name.', 'wp-photo-album-plus');
|
901 |
+
$help = __('Shows the photos name on a lightbox display.', 'wp-photo-album-plus');
|
902 |
+
$slug = 'wppa_ovl_name';
|
903 |
+
$html = wppa_checkbox($slug);
|
904 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
905 |
+
|
906 |
+
$name = __('Overlay desc', 'wp-photo-album-plus');
|
907 |
+
$desc = __('Show description.', 'wp-photo-album-plus');
|
908 |
+
$help = __('Shows the photos description on a lightbox display.', 'wp-photo-album-plus');
|
909 |
+
$slug = 'wppa_ovl_desc';
|
910 |
+
$html = wppa_checkbox($slug);
|
911 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
912 |
+
|
913 |
+
$name = __('Overlay rating', 'wp-photo-album-plus');
|
914 |
+
$desc = __('Shows and enables rating on lightbox display.', 'wp-photo-album-plus');
|
915 |
+
$help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
|
916 |
+
$slug = 'wppa_ovl_rating';
|
917 |
+
$html = wppa_checkbox($slug);
|
918 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
919 |
+
|
920 |
+
$name = __('Overlay add owner', 'wp-photo-album-plus');
|
921 |
+
$desc = __('Add the owner to the photo name on lightbox displays.', 'wp-photo-album-plus');
|
922 |
+
$help = __('This setting is independant of the show name switches and is a global setting.', 'wp-photo-album-plus');
|
923 |
+
$slug = 'wppa_ovl_add_owner';
|
924 |
+
$html = wppa_checkbox($slug);
|
925 |
+
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
926 |
+
|
927 |
+
$name = __('Overlay show start/stop', 'wp-photo-album-plus');
|
928 |
+
$desc = __('Show Start and Stop for running slideshow on lightbox.', 'wp-photo-album-plus');
|
929 |
+
$help = '';
|
930 |
+
$slug = 'wppa_ovl_show_startstop';
|
931 |
+
$html = wppa_checkbox($slug);
|
932 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
933 |
Â
|
934 |
+
$name = __('Overlay show counter', 'wp-photo-album-plus');
|
935 |
+
$desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus');
|
936 |
+
$help = '';
|
937 |
+
$slug = 'wppa_ovl_show_counter';
|
938 |
+
$html = wppa_checkbox($slug);
|
939 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
940 |
+
|
941 |
+
$name = __('WPPA+ Lightbox global', 'wp-photo-album-plus');
|
942 |
+
$desc = __('Use the wppa+ lightbox also for non-wppa images.', 'wp-photo-album-plus');
|
943 |
+
$help = '';
|
944 |
+
$slug = 'wppa_lightbox_global';
|
945 |
+
$onch = 'wppaSlave( this, "wppa_lightbox_global_set" )';
|
946 |
+
$html = wppa_checkbox($slug, $onch);
|
947 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
948 |
+
|
949 |
+
$name = __('WPPA+ Lightbox global is a set', 'wp-photo-album-plus');
|
950 |
+
$desc = __('Treat the other images as a set.', 'wp-photo-album-plus');
|
951 |
+
$help = __('If checked, you can scroll through the non-WPPA images in the lightbox view.', 'wp-photo-album-plus');
|
952 |
+
$slug = 'wppa_lightbox_global_set';
|
953 |
+
$html = wppa_checkbox($slug);
|
954 |
+
wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_switch( 'lightbox_global' ) );
|
955 |
+
|
956 |
+
$name = __('Navigation icon size lightbox', 'wp-photo-album-plus');
|
957 |
+
$desc = __('The size of navigation icons on lightbox', 'wp-photo-album-plus');
|
958 |
+
$help = '';
|
959 |
+
$slug = 'wppa_nav_icon_size_lightbox';
|
960 |
+
$opts = array( '16px',
|
961 |
+
'20px',
|
962 |
+
'24px',
|
963 |
+
'32px',
|
964 |
+
'40px',
|
965 |
+
'48px',
|
966 |
+
);
|
967 |
+
$vals = array( '16',
|
968 |
+
'20',
|
969 |
+
'24',
|
970 |
+
'32',
|
971 |
+
'40',
|
972 |
+
'48',
|
973 |
+
);
|
974 |
+
$html = wppa_select($slug, $opts, $vals);
|
975 |
+
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
976 |
+
|
977 |
+
$name = __('Show Share Buttons Lightbox', 'wp-photo-album-plus');
|
978 |
+
$desc = __('Display the share social media buttons on lightbox displays.', 'wp-photo-album-plus');
|
979 |
+
$help = '';
|
980 |
+
$slug = 'wppa_share_on_lightbox';
|
981 |
+
$html = wppa_checkbox($slug);
|
982 |
+
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
983 |
+
|
984 |
+
$name = __('Number of text lines', 'wp-photo-album-plus');
|
985 |
+
$desc = __('Number of lines on the lightbox description area, exclusive the n/m line.', 'wp-photo-album-plus');
|
986 |
+
$help = __('Enter a number in the range from 0 to 24 or auto', 'wp-photo-album-plus');
|
987 |
+
$slug = 'wppa_ovl_txt_lines';
|
988 |
+
$html = wppa_input($slug, '40px', '', __('lines', 'wp-photo-album-plus'));
|
989 |
+
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
990 |
+
|
991 |
+
$name = __('Magnifier cursor size', 'wp-photo-album-plus');
|
992 |
+
$desc = __('Select the size of the magnifier cursor.', 'wp-photo-album-plus');
|
993 |
Â
$help = '';
|
994 |
+
$slug = 'wppa_magnifier';
|
995 |
+
$options = array( __('small', 'wp-photo-album-plus'),
|
996 |
+
__('medium', 'wp-photo-album-plus'),
|
997 |
+
__('large', 'wp-photo-album-plus'),
|
998 |
+
__('pointer (hand)', 'wp-photo-album-plus'),
|
999 |
+
__('--- none ---', 'wp-photo-album-plus')
|
1000 |
+
);
|
1001 |
+
$values = array( 'magnifier-small.png',
|
1002 |
+
'magnifier-medium.png',
|
1003 |
+
'magnifier-large.png',
|
1004 |
+
'pointer',
|
1005 |
+
''
|
1006 |
+
);
|
1007 |
+
$onchange = 'jQuery(\'#wppa-cursor\').attr(\'alt\', jQuery(\'#magnifier\').val() );
|
1008 |
+
document.getElementById(\'wppa-cursor\').src=wppaImageDirectory+document.getElementById(\'magnifier\').value;';
|
1009 |
+
$html = wppa_select( $slug, $options, $values, $onchange ) .
|
1010 |
+
' <img id="wppa-cursor" src="'.wppa_get_imgdir().wppa_opt( substr( $slug, 5 ) ).'" />';
|
1011 |
+
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
1012 |
+
echo '<script>'.$onchange.'</script>';
|
1013 |
+
|
1014 |
+
$name = __('Border width', 'wp-photo-album-plus');
|
1015 |
+
$desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
|
1016 |
+
$help = '';
|
1017 |
+
$slug = 'wppa_ovl_border_width';
|
1018 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1019 |
+
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
1020 |
+
|
1021 |
+
$name = __('Border radius', 'wp-photo-album-plus');
|
1022 |
+
$desc = __('Border radius for lightbox display.', 'wp-photo-album-plus');
|
1023 |
+
$help = '';
|
1024 |
+
$slug = 'wppa_ovl_border_radius';
|
1025 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1026 |
+
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
1027 |
+
|
1028 |
+
$name = __('Show Zoom in', 'wp-photo-album-plus');
|
1029 |
+
$desc = __('Display tooltip "Zoom in" along with the magnifier cursor.', 'wp-photo-album-plus');
|
1030 |
+
$help = __('If you select ---none--- in Table I-G2 for magnifier size, the tooltop contains the photo name.', 'wp-photo-album-plus');
|
1031 |
+
$slug = 'wppa_show_zoomin';
|
1032 |
+
$html = wppa_checkbox($slug);
|
1033 |
+
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
1034 |
+
|
1035 |
+
wppa_setting_box_footer_new();
|
1036 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
1037 |
Â
|
1038 |
+
if ( $wppa_cur_tab == 'comments' ) {
|
1039 |
+
|
1040 |
+
wppa_setting_box_header_new('comments');
|
1041 |
+
|
1042 |
+
$name = __('Commenting login', 'wp-photo-album-plus');
|
1043 |
+
$desc = __('Users must be logged in to comment on photos.', 'wp-photo-album-plus');
|
1044 |
+
$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');
|
1045 |
+
$slug = 'wppa_comment_login';
|
1046 |
+
$html = wppa_checkbox($slug);
|
1047 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1048 |
+
|
1049 |
+
$name = __('Comments view login', 'wp-photo-album-plus');
|
1050 |
+
$desc = __('Users must be logged in to see comments on photos.', 'wp-photo-album-plus');
|
1051 |
+
$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');
|
1052 |
+
$slug = 'wppa_comment_view_login';
|
1053 |
+
$html = wppa_checkbox($slug);
|
1054 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1055 |
+
|
1056 |
+
$name = __('Last comment first', 'wp-photo-album-plus');
|
1057 |
+
$desc = __('Display the newest comment on top.', 'wp-photo-album-plus');
|
1058 |
+
$help = __('If checked: Display the newest comment on top.', 'wp-photo-album-plus');
|
1059 |
+
$help .= '<br />'.(__('If unchecked, the comments are listed in the ordere they were entered.', 'wp-photo-album-plus'));
|
1060 |
+
$slug = 'wppa_comments_desc';
|
1061 |
+
$html = wppa_checkbox($slug);
|
1062 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1063 |
+
|
1064 |
+
$name = __('Comment moderation', 'wp-photo-album-plus');
|
1065 |
+
$desc = __('Comments from what users need approval.', 'wp-photo-album-plus');
|
1066 |
+
$help = __('Select the desired users of which the comments need approval.', 'wp-photo-album-plus');
|
1067 |
+
$slug = 'wppa_moderate_comment';
|
1068 |
+
$options = array( __('All users', 'wp-photo-album-plus'),
|
1069 |
+
__('Logged out users', 'wp-photo-album-plus'),
|
1070 |
+
__('No users', 'wp-photo-album-plus'),
|
1071 |
+
__('Use WP Discussion rules', 'wp-photo-album-plus'),
|
1072 |
+
);
|
1073 |
+
$values = array( 'all',
|
1074 |
+
'logout',
|
1075 |
+
'-none-',
|
1076 |
+
'wprules',
|
1077 |
+
);
|
1078 |
+
$html = wppa_select($slug, $options, $values);
|
1079 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1080 |
Â
|
1081 |
+
$name = __('Comment email required', 'wp-photo-album-plus');
|
1082 |
+
$desc = __('Commenting users must enter their email addresses.', 'wp-photo-album-plus');
|
1083 |
+
$help = '';
|
1084 |
+
$slug = 'wppa_comment_email_required';
|
1085 |
+
$opts = array( __('None', 'wp-photo-album-plus'),
|
1086 |
+
__('Optional', 'wp-photo-album-plus'),
|
1087 |
+
__('Required', 'wp-photo-album-plus'),
|
1088 |
+
);
|
1089 |
+
$vals = array( 'none',
|
1090 |
+
'optional',
|
1091 |
+
'required',
|
1092 |
+
);
|
1093 |
+
$html = wppa_select($slug, $opts, $vals);
|
1094 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1095 |
Â
|
1096 |
+
$name = __('Comment ntfy added', 'wp-photo-album-plus');
|
1097 |
+
$desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus');
|
1098 |
+
$help = '';
|
1099 |
+
$slug = 'wppa_commentnotify_added';
|
1100 |
+
$html = wppa_checkbox($slug);
|
1101 |
+
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1102 |
Â
|
1103 |
+
$name = __('ComTen alt display', 'wp-photo-album-plus');
|
1104 |
+
$desc = __('Display comments at comten thumbnails.', 'wp-photo-album-plus');
|
1105 |
+
$help = '';
|
1106 |
+
$slug = 'wppa_comten_alt_display';
|
1107 |
+
$html = wppa_checkbox($slug);
|
1108 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1109 |
Â
|
1110 |
+
$name = __('Comten Thumbnail width', 'wp-photo-album-plus');
|
1111 |
+
$desc = __('The width of the thumbnail in the alt comment display.', 'wp-photo-album-plus');
|
1112 |
+
$help = '';
|
1113 |
+
$slug = 'wppa_comten_alt_thumbsize';
|
1114 |
+
$html = wppa_input($slug, '50px', '', __('Pixels', 'wp-photo-album-plus'));
|
1115 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1116 |
Â
|
1117 |
+
$name = __('Show smiley picker', 'wp-photo-album-plus');
|
1118 |
+
$desc = __('Display a clickable row of smileys.', 'wp-photo-album-plus');
|
1119 |
+
$help = '';
|
1120 |
+
$slug = 'wppa_comment_smiley_picker';
|
1121 |
+
$html = wppa_checkbox($slug);
|
1122 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1123 |
Â
|
1124 |
+
$name = __('Allow clickable links', 'wp-photo-album-plus');
|
1125 |
+
$desc = __('Make links in comments clickable', 'wp-photo-album-plus');
|
1126 |
+
$help = '';
|
1127 |
+
$slug = 'wppa_comment_clickable';
|
1128 |
+
$html = wppa_checkbox($slug);
|
1129 |
+
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1130 |
Â
|
1131 |
+
$name = __('Comment db agreement', 'wp-photo-album-plus');
|
1132 |
+
$desc = __('User needs to tick a checkbox to agree db storage', 'wp-photo-album-plus');
|
1133 |
+
$help = '';
|
1134 |
+
$slug = 'wppa_comment_need_db_agree';
|
1135 |
+
$html = wppa_checkbox($slug);
|
1136 |
+
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1137 |
+
|
1138 |
+
$name = __('Comment needs vote', 'wp-photo-album-plus');
|
1139 |
+
$desc = __('User needs to give a rating to get his comment published', 'wp-photo-album-plus');
|
1140 |
+
$help = '';
|
1141 |
+
$slug = 'wppa_comment_need_vote';
|
1142 |
+
$html = wppa_checkbox($slug);
|
1143 |
+
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
1144 |
+
|
1145 |
+
$name = __('Avatar size', 'wp-photo-album-plus');
|
1146 |
+
$desc = __('Size of Avatar images.', 'wp-photo-album-plus');
|
1147 |
+
$help = __('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus');
|
1148 |
+
$slug = 'wppa_gravatar_size';
|
1149 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1150 |
+
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
1151 |
+
|
1152 |
+
wppa_setting_box_footer_new();
|
1153 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1154 |
Â
|
1155 |
+
if ( $wppa_cur_tab == 'rating' ) {
|
1156 |
+
|
1157 |
+
wppa_setting_box_header_new('rating');
|
1158 |
+
|
1159 |
+
$name = __('Slideshow rating', 'wp-photo-album-plus');
|
1160 |
+
$desc = __('Display Slideshow Rating.', 'wp-photo-album-plus');
|
1161 |
+
$help = __('Display the rating of the photo under the slideshow image.', 'wp-photo-album-plus');
|
1162 |
+
$slug = '';
|
1163 |
+
$html = '<input type="checkbox" checked disabled >';
|
1164 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1165 |
+
|
1166 |
+
$name = __('Thumbnail rating', 'wp-photo-album-plus');
|
1167 |
+
$desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus');
|
1168 |
+
$help = __('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus');
|
1169 |
+
$slug = 'wppa_thumb_text_rating';
|
1170 |
+
$html = wppa_checkbox($slug);
|
1171 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1172 |
+
|
1173 |
+
$name = __('Lightbox rating', 'wp-photo-album-plus');
|
1174 |
+
$desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus');
|
1175 |
+
$help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
|
1176 |
+
$slug = 'wppa_ovl_rating';
|
1177 |
+
$html = wppa_checkbox($slug);
|
1178 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1179 |
+
|
1180 |
+
$name = __('Rating display type', 'wp-photo-album-plus');
|
1181 |
+
$desc = __('Specify the type of the rating display.', 'wp-photo-album-plus');
|
1182 |
+
$help = __('If you select "Likes" you must also select "One button vote"', 'wp-photo-album-plus');
|
1183 |
+
$slug = 'wppa_rating_display_type';
|
1184 |
+
$opts = array(__('Graphic', 'wp-photo-album-plus'), __('Numeric', 'wp-photo-album-plus'), __('Likes', 'wp-photo-album-plus'));
|
1185 |
+
$vals = array('graphic', 'numeric', 'likes');
|
1186 |
+
$postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
|
1187 |
+
$html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
|
1188 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1189 |
+
|
1190 |
+
$name = __('Rating size', 'wp-photo-album-plus');
|
1191 |
+
$desc = __('Select the number of voting stars.', 'wp-photo-album-plus');
|
1192 |
+
$help = '';
|
1193 |
+
$slug = 'wppa_rating_max';
|
1194 |
+
$options = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
|
1195 |
+
$values = array('5', '10', '1');
|
1196 |
+
$html = wppa_select($slug, $options, $values);
|
1197 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1198 |
+
|
1199 |
+
$name = __('Display precision', 'wp-photo-album-plus');
|
1200 |
+
$desc = __('Select the desired rating display precision.', 'wp-photo-album-plus');
|
1201 |
+
$help = '';
|
1202 |
+
$slug = 'wppa_rating_prec';
|
1203 |
+
$options = 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'));
|
1204 |
+
$values = array('1', '2', '3', '4');
|
1205 |
+
$html = wppa_select($slug, $options, $values);
|
1206 |
+
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1207 |
+
|
1208 |
+
$name = __('Rating space', 'wp-photo-album-plus');
|
1209 |
+
$desc = __('Space between avg and my rating stars', 'wp-photo-album-plus');
|
1210 |
+
$help = '';
|
1211 |
+
$slug = 'wppa_ratspacing';
|
1212 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1213 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1214 |
+
|
1215 |
+
$name = __('Show rating count', 'wp-photo-album-plus');
|
1216 |
+
$desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus');
|
1217 |
+
$help = __('If checked, the number of votes is displayed along with average rating displays.', 'wp-photo-album-plus');
|
1218 |
+
$slug = 'wppa_show_rating_count';
|
1219 |
+
$html = wppa_checkbox($slug);
|
1220 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1221 |
+
|
1222 |
+
$name = __('Rating login', 'wp-photo-album-plus');
|
1223 |
+
$desc = __('Users must login to rate photos.', 'wp-photo-album-plus');
|
1224 |
+
$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');
|
1225 |
+
$slug = 'wppa_rating_login';
|
1226 |
+
$html = wppa_checkbox($slug);
|
1227 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1228 |
+
|
1229 |
+
$name = __('Rating change', 'wp-photo-album-plus');
|
1230 |
+
$desc = __('Users may change their ratings.', 'wp-photo-album-plus');
|
1231 |
+
$help = __('Users may change their ratings.', 'wp-photo-album-plus');
|
1232 |
+
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
1233 |
+
$slug = 'wppa_rating_change';
|
1234 |
+
$html = wppa_checkbox($slug);
|
1235 |
+
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1236 |
+
|
1237 |
+
$name = __('Rating multi', 'wp-photo-album-plus');
|
1238 |
+
$desc = __('Users may give multiple votes.', 'wp-photo-album-plus');
|
1239 |
+
$help = __('Users may give multiple votes. (This has no effect when users may change their votes.)', 'wp-photo-album-plus');
|
1240 |
+
$slug = 'wppa_rating_multi';
|
1241 |
+
$html = wppa_checkbox($slug);
|
1242 |
+
wppa_setting_new($slug, '11', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
1243 |
+
|
1244 |
+
$name = __('Rating daily', 'wp-photo-album-plus');
|
1245 |
+
$desc = __('Users may rate only once per period', 'wp-photo-album-plus');
|
1246 |
+
$help = '';
|
1247 |
+
$slug = 'wppa_rating_dayly';
|
1248 |
+
$opts = array(__('--- off ---', 'wp-photo-album-plus'), __('Week', 'wp-photo-album-plus'), __('Day', 'wp-photo-album-plus'), __('Hour', 'wp-photo-album-plus') );
|
1249 |
+
$vals = array(0, 7*24*60*60, 24*60*60, 60*60);
|
1250 |
+
$html = wppa_select($slug, $opts, $vals);
|
1251 |
+
wppa_setting_new($slug, '12', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
1252 |
+
|
1253 |
+
$name = __('Rate own photos', 'wp-photo-album-plus');
|
1254 |
+
$desc = __('It is allowed to rate photos by the uploader himself.', 'wp-photo-album-plus');
|
1255 |
+
$help = '';
|
1256 |
+
$slug = 'wppa_allow_owner_votes';
|
1257 |
+
$html = wppa_checkbox($slug);
|
1258 |
+
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
1259 |
Â
|
1260 |
+
$name = __('Rating requires comment', 'wp-photo-album-plus');
|
1261 |
+
$desc = __('Users must clarify their vote in a comment.', 'wp-photo-album-plus');
|
1262 |
+
$help = '';
|
1263 |
+
$slug = 'wppa_vote_needs_comment';
|
1264 |
+
$html = wppa_checkbox($slug);
|
1265 |
+
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
1266 |
+
|
1267 |
+
$name = __('Next after vote', 'wp-photo-album-plus');
|
1268 |
+
$desc = __('Goto next slide after voting', 'wp-photo-album-plus');
|
1269 |
+
$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');
|
1270 |
+
$slug = 'wppa_next_on_callback';
|
1271 |
+
$html = wppa_checkbox($slug);
|
1272 |
+
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
1273 |
+
|
1274 |
+
$name = __('Star off opacity', 'wp-photo-album-plus');
|
1275 |
+
$desc = __('Rating star off state opacity value.', 'wp-photo-album-plus');
|
1276 |
+
$help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus');
|
1277 |
+
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
1278 |
+
$slug = 'wppa_star_opacity';
|
1279 |
+
$html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
|
1280 |
+
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
1281 |
+
|
1282 |
+
$name = __('Notify inappropriate', 'wp-photo-album-plus');
|
1283 |
+
$desc = __('Notify admin every x times.', 'wp-photo-album-plus');
|
1284 |
+
$help = __('If this number is positive, there will be a thumb down icon in the rating bar.', 'wp-photo-album-plus');
|
1285 |
+
$help .= '<br />'.(__('Clicking the thumbdown icon indicates a user dislikes a photo.', 'wp-photo-album-plus'));
|
1286 |
+
$help .= '<br />'.(__('Admin will be notified by email after every x dislikes.', 'wp-photo-album-plus'));
|
1287 |
+
$help .= '<br />'.(__('A value of 0 disables this feature.', 'wp-photo-album-plus'));
|
1288 |
+
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
1289 |
+
$slug = 'wppa_dislike_mail_every';
|
1290 |
+
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
1291 |
+
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
1292 |
+
|
1293 |
+
$name = __('Dislike value', 'wp-photo-album-plus');
|
1294 |
+
$desc = __('This value counts dislike rating.', 'wp-photo-album-plus');
|
1295 |
+
$help = (__('This value will be used for a dislike rating on calculation of avarage ratings.', 'wp-photo-album-plus'));
|
1296 |
+
$help .= '<br />'.(__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus'));
|
1297 |
+
$slug = 'wppa_dislike_value';
|
1298 |
+
$html = wppa_input($slug, '50px', '', __('points', 'wp-photo-album-plus'));
|
1299 |
+
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
1300 |
+
|
1301 |
+
$name = __('Pending after', 'wp-photo-album-plus');
|
1302 |
+
$desc = __('Set status to pending after xx dislike votes.', 'wp-photo-album-plus');
|
1303 |
+
$help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
|
1304 |
+
$help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus');
|
1305 |
+
$slug = 'wppa_dislike_set_pending';
|
1306 |
+
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
1307 |
+
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
1308 |
+
|
1309 |
+
$name = __('Delete after', 'wp-photo-album-plus');
|
1310 |
+
$desc = __('Delete photo after xx dislike votes.', 'wp-photo-album-plus');
|
1311 |
+
$help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
|
1312 |
+
$help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus');
|
1313 |
+
$slug = 'wppa_dislike_delete';
|
1314 |
+
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
1315 |
+
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
1316 |
+
|
1317 |
+
$name = __('Show dislike count', 'wp-photo-album-plus');
|
1318 |
+
$desc = __('Show the number of dislikes in the rating bar.', 'wp-photo-album-plus');
|
1319 |
+
$help = __('Displayes the total number of dislike votes for the current photo.', 'wp-photo-album-plus');
|
1320 |
+
$help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this setting has no meaning', 'wp-photo-album-plus');
|
1321 |
+
$slug = 'wppa_dislike_show_count';
|
1322 |
+
$html = wppa_checkbox($slug);
|
1323 |
+
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
1324 |
+
|
1325 |
+
$name = __('Show average rating', 'wp-photo-album-plus');
|
1326 |
+
$desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus');
|
1327 |
+
$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');
|
1328 |
+
$help .= '<br />'.__('If unchecked, only the current users rating is displayed (if any).', 'wp-photo-album-plus');
|
1329 |
+
$help .= '<br />'.__('If "One button vote" is selected in Table I-E1, this box checked will display the vote count.', 'wp-photo-album-plus');
|
1330 |
+
$slug = 'wppa_show_avg_rating';
|
1331 |
+
$html = wppa_checkbox($slug);
|
1332 |
+
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
1333 |
+
|
1334 |
+
$name = __('Avg and Mine on 2 lines', 'wp-photo-album-plus');
|
1335 |
+
$desc = __('Display avarage and my rating on different lines', 'wp-photo-album-plus');
|
1336 |
+
$help = '';
|
1337 |
+
$slug = 'wppa_show_avg_mine_2';
|
1338 |
+
$html = wppa_checkbox($slug);
|
1339 |
+
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
1340 |
+
|
1341 |
+
$name = __('Single vote button text', 'wp-photo-album-plus');
|
1342 |
+
$desc = __('The text on the voting button.', 'wp-photo-album-plus');
|
1343 |
+
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
|
1344 |
+
$slug = 'wppa_vote_button_text';
|
1345 |
+
$html = wppa_input($slug, '100');
|
1346 |
+
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
1347 |
+
|
1348 |
+
$name = __('Single vote button text voted', 'wp-photo-album-plus');
|
1349 |
+
$desc = __('The text on the voting button when voted.', 'wp-photo-album-plus');
|
1350 |
+
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
|
1351 |
+
$slug = 'wppa_voted_button_text';
|
1352 |
+
$html = wppa_input($slug, '100');
|
1353 |
+
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
1354 |
+
|
1355 |
+
$name = __('Single vote button thumbnail', 'wp-photo-album-plus');
|
1356 |
+
$desc = __('Display single vote button below thumbnails.', 'wp-photo-album-plus');
|
1357 |
+
$help = __('This works only in single vote mode: Table I-E1 set to "one button vote"', 'wp-photo-album-plus');
|
1358 |
+
$slug = 'wppa_vote_thumb';
|
1359 |
+
$html = wppa_checkbox($slug);
|
1360 |
+
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
1361 |
+
|
1362 |
+
$name = __('Medal bronze when', 'wp-photo-album-plus');
|
1363 |
+
$desc = __('Photo gets medal bronze when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
1364 |
+
$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');
|
1365 |
+
$slug = 'wppa_medal_bronze_when';
|
1366 |
+
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
1367 |
+
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
1368 |
+
|
1369 |
+
$name = __('Medal silver when', 'wp-photo-album-plus');
|
1370 |
+
$desc = __('Photo gets medal silver when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
1371 |
+
$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'));
|
1372 |
+
$slug = 'wppa_medal_silver_when';
|
1373 |
+
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
1374 |
+
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
1375 |
+
|
1376 |
+
$name = __('Medal gold when', 'wp-photo-album-plus');
|
1377 |
+
$desc = __('Photo gets medal gold when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
1378 |
+
$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'));
|
1379 |
+
$slug = 'wppa_medal_gold_when';
|
1380 |
+
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
1381 |
+
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
1382 |
+
|
1383 |
+
$name = __('Medal tag color', 'wp-photo-album-plus');
|
1384 |
+
$desc = __('The color of the tag on the medal.', 'wp-photo-album-plus');
|
1385 |
+
$help = '';
|
1386 |
+
$slug = 'wppa_medal_color';
|
1387 |
+
$opts = array( __('Red', 'wp-photo-album-plus'), __('Green', 'wp-photo-album-plus'), __('Blue', 'wp-photo-album-plus') );
|
1388 |
+
$vals = array( '1', '2', '3' );
|
1389 |
+
$html = wppa_select($slug, $opts, $vals);
|
1390 |
+
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
1391 |
+
|
1392 |
+
$name = __('Medal position', 'wp-photo-album-plus');
|
1393 |
+
$desc = __('The position of the medal on the image.', 'wp-photo-album-plus');
|
1394 |
+
$help = '';
|
1395 |
+
$slug = 'wppa_medal_position';
|
1396 |
+
$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') );
|
1397 |
+
$vals = array( 'topleft', 'topright', 'botleft', 'botright' );
|
1398 |
+
$html = wppa_select($slug, $opts, $vals);
|
1399 |
+
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
1400 |
+
|
1401 |
+
$name = __('Top criterium', 'wp-photo-album-plus');
|
1402 |
+
$desc = __('The top sort item used for topten results from shortcodes.', 'wp-photo-album-plus');
|
1403 |
+
$help = '';
|
1404 |
+
$slug = 'wppa_topten_sortby';
|
1405 |
+
$opts = array( __('Mean rating', 'wp-photo-album-plus'),
|
1406 |
+
__('Rating count', 'wp-photo-album-plus'),
|
1407 |
+
__('Viewcount', 'wp-photo-album-plus'),
|
1408 |
+
__('Downloads', 'wp-photo-album-plus'));
|
1409 |
+
$vals = array( 'mean_rating', 'rating_count', 'views', 'dlcount' );
|
1410 |
+
$html = wppa_select($slug, $opts, $vals);
|
1411 |
+
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
1412 |
+
|
1413 |
+
$name = __('Contest top creterium', 'wp-photo-album-plus');
|
1414 |
+
$desc = __('The top sort creterium used for the contest.', 'wp-photo-album-plus');
|
1415 |
+
$help = '';
|
1416 |
+
$slug = 'wppa_contest_sortby';
|
1417 |
+
$opts = array( __('Mean rating', 'wp-photo-album-plus'),
|
1418 |
+
__('Total rating', 'wp-photo-album-plus'));
|
1419 |
+
$vals = array( 'average', 'total' );
|
1420 |
+
$html = wppa_select($slug, $opts, $vals);
|
1421 |
+
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
1422 |
+
|
1423 |
+
$name = __('Contest photo numbering', 'wp-photo-album-plus');
|
1424 |
+
$desc = __('The number to be placed near the preview.', 'wp-photo-album-plus');
|
1425 |
+
$help = '';
|
1426 |
+
$slug = 'wppa_contest_number';
|
1427 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
1428 |
+
__('Photo id', 'wp-photo-album-plus'),
|
1429 |
+
__('Sequence number', 'wp-photo-album-plus'));
|
1430 |
+
$vals = array( 'none', 'id', 'seqno' );
|
1431 |
+
$html = wppa_select($slug, $opts, $vals);
|
1432 |
+
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
1433 |
+
|
1434 |
+
$name = __('Contest max ranking', 'wp-photo-album-plus');
|
1435 |
+
$desc = __('The number of photos in the contest results display.', 'wp-photo-album-plus');
|
1436 |
+
$help = '';
|
1437 |
+
$slug = 'wppa_contest_max';
|
1438 |
+
$html = wppa_number($slug, '3', '100');
|
1439 |
+
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
1440 |
+
|
1441 |
+
$name = __('Contest comment visibility', 'wp-photo-album-plus');
|
1442 |
+
$desc = __('The policy to display comments on the contest display', 'wp-photo-album-plus');
|
1443 |
+
$help = __('Admin always sees the comments', 'wp-photo-album-plus');
|
1444 |
+
$slug = 'wppa_contest_comment_policy';
|
1445 |
+
$opts = array( __('None', 'wp-photo-album-plus' ),
|
1446 |
+
__('Commenter', 'wp-photo-album-plus'),
|
1447 |
+
__('Commenter and photo owner', 'wp-photo-album-plus'),
|
1448 |
+
__('Every visitor', 'wp-photo-album-plus'));
|
1449 |
+
$vals = array( 'none', 'comowner', 'owners', 'all' );
|
1450 |
+
$html = wppa_select($slug, $opts, $vals);
|
1451 |
+
wppa_setting_new($slug, '36', $name, $desc, $html, $help);
|
1452 |
+
|
1453 |
+
wppa_setting_box_footer_new();
|
1454 |
+
}
|
1455 |
Â
|
1456 |
+
if ( $wppa_cur_tab == 'users' ) {
|
1457 |
Â
|
1458 |
+
wppa_setting_box_header_new('users');
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1459 |
Â
|
1460 |
+
$name = __('User upload Photos', 'wp-photo-album-plus');
|
1461 |
+
$desc = __('Enable frontend upload.', 'wp-photo-album-plus');
|
1462 |
+
$help = '';
|
1463 |
+
$slug = '';
|
1464 |
+
$html = '<input type="checkbox" checked disabled >';
|
1465 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1466 |
Â
|
1467 |
+
$name = __('User upload Video', 'wp-photo-album-plus');
|
1468 |
+
$desc = __('Enable frontend upload of video.', 'wp-photo-album-plus');
|
1469 |
+
$help = '';
|
1470 |
+
$slug = 'wppa_user_upload_video_on';
|
1471 |
+
$html = wppa_checkbox($slug);
|
1472 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'enable_video' ));
|
Â
|
|
Â
|
|
1473 |
Â
|
1474 |
+
$name = __('User upload Audio', 'wp-photo-album-plus');
|
1475 |
+
$desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus');
|
1476 |
+
$help = '';
|
1477 |
+
$slug = 'wppa_user_upload_audio_on';
|
1478 |
+
$html = wppa_checkbox($slug);
|
1479 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_audio' ));
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1480 |
Â
|
1481 |
+
$name = __('User upload login', 'wp-photo-album-plus');
|
1482 |
+
$desc = __('Frontend upload requires the user is logged in.', 'wp-photo-album-plus');
|
1483 |
+
$help = '';
|
1484 |
+
$slug = 'wppa_user_upload_login';
|
1485 |
+
$onch = 'wppaSlave(this,"wppa_user_opload_roles")';
|
1486 |
+
$html = wppa_checkbox($slug, $onch);
|
1487 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1488 |
Â
|
1489 |
+
$name = __('User upload roles', 'wp-photo-album-plus');
|
1490 |
+
$desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus');
|
1491 |
+
$help = '';
|
1492 |
+
$slug = 'wppa_user_opload_roles';
|
1493 |
+
$roles = $wp_roles->roles;
|
1494 |
+
$opts = array();
|
1495 |
+
$vals = array();
|
1496 |
+
$opts[] = '-- '.__('Not limited', 'wp-photo-album-plus').' --';
|
1497 |
+
$vals[] = '';
|
1498 |
+
foreach (array_keys($roles) as $key) {
|
1499 |
+
$role = $roles[$key];
|
1500 |
+
$rolename = translate_user_role( $role['name'] );
|
1501 |
+
$opts[] = $rolename;
|
1502 |
+
$vals[] = $key;
|
1503 |
+
}
|
1504 |
+
$onch = '';
|
1505 |
+
$html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
|
1506 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_switch( 'user_upload_login' ) );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1507 |
Â
|
1508 |
+
wppa_setting_box_footer_new();
|
1509 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1510 |
Â
|
1511 |
+
if ( $wppa_cur_tab == 'email' ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1512 |
Â
|
1513 |
+
wppa_setting_box_header_new('email');
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1514 |
Â
|
1515 |
+
$name = __('Mail on new album', 'wp-photo-album-plus');
|
1516 |
+
$desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus');
|
1517 |
+
$help = '';
|
1518 |
+
$slug = 'wppa_newalbumnotify';
|
1519 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
|
1520 |
+
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
1521 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1522 |
+
|
1523 |
+
$name = __('Mail on upload', 'wp-photo-album-plus');
|
1524 |
+
$desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus');
|
1525 |
+
$help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
|
1526 |
+
$slug = 'wppa_feuploadnotify';
|
1527 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
|
1528 |
+
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
1529 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1530 |
+
|
1531 |
+
$name = __('Mail on comment', 'wp-photo-album-plus');
|
1532 |
+
$desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus');
|
1533 |
+
$help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus');
|
1534 |
+
$help .= '<br />' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus');
|
1535 |
+
$slug1 = 'wppa_commentnotify';
|
1536 |
+
$slug2 = 'wppa_commentnotify_limit';
|
1537 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
|
1538 |
+
$html = wppa_checkbox($slug1) . '<span style="float:left" > ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . ' </span>' .
|
1539 |
+
wppa_checkbox($slug2) . '<span style="float:left" > ' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
|
1540 |
+
wppa_setting_new($slug1, '3', $name, $desc, $html, $help);
|
1541 |
+
|
1542 |
+
$name = __('Mail on previous comment', 'wp-photo-album-plus');
|
1543 |
+
$desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus');
|
1544 |
+
$help = '';
|
1545 |
+
$slug = 'wppa_commentprevious';
|
1546 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
|
1547 |
+
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
1548 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1549 |
Â
|
1550 |
+
$name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
|
1551 |
+
$desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus');
|
1552 |
+
$help = '';
|
1553 |
+
$slug = 'wppa_moderatephoto';
|
1554 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
|
1555 |
+
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
1556 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
Â
|
|
1557 |
Â
|
1558 |
+
$name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
|
1559 |
+
$desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus');
|
1560 |
+
$help = '';
|
1561 |
+
$slug = 'wppa_moderatecomment';
|
1562 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
|
1563 |
+
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
1564 |
+
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
Â
|
|
1565 |
Â
|
1566 |
+
$name = __('Mail on approve photo', 'wp-photo-album-plus');
|
1567 |
+
$desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
|
1568 |
+
$help = '';
|
1569 |
+
$slug = 'wppa_photoapproved';
|
1570 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
|
1571 |
+
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
1572 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
1573 |
Â
|
1574 |
+
$name = __('Mail on approve comment', 'wp-photo-album-plus');
|
1575 |
+
$desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus');
|
1576 |
+
$help = '';
|
1577 |
+
$slug = 'wppa_commentapproved';
|
1578 |
+
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
|
1579 |
+
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
1580 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1581 |
+
|
1582 |
+
$name = __('From site', 'wp-photo-album-plus');
|
1583 |
+
$desc = __('Enter the subject header', 'wp-photo-album-plus');
|
1584 |
+
$help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace(''', '', get_bloginfo('name') ).']');
|
1585 |
+
$slug = 'wppa_email_from_site';
|
1586 |
+
$html = wppa_input($slug,'90%');
|
1587 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1588 |
+
|
1589 |
+
$name = __('From email', 'wp-photo-album-plus');
|
1590 |
+
$desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
|
1591 |
+
$help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br />' .
|
1592 |
+
__('Make sure this email address exists.', 'wp-photo-album-plus');
|
1593 |
+
$slug = 'wppa_email_from_email';
|
1594 |
+
$html = wppa_input($slug,'90%');
|
1595 |
+
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1596 |
+
|
1597 |
+
$name = __( 'No admin email', 'wp-photo-album-plus' );
|
1598 |
+
$desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
|
1599 |
+
$help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
|
1600 |
+
$slug = 'wppa_void_admin_email';
|
1601 |
+
$html = wppa_checkbox( $slug );
|
1602 |
+
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1603 |
+
|
1604 |
+
$name = __( 'Email policy', 'wp-photo-album-plus' );
|
1605 |
+
$desc = __( 'Select either "opt-in" or "opt-out"', 'wp-photo-album-plus' );
|
1606 |
+
$help = __( 'If you select "opt-in", use the "Notify Me" widget to enable the users to subscribe to emails', 'wp-photo-album-plus' );
|
1607 |
+
$slug = 'wppa_mailinglist_policy';
|
1608 |
+
$opts = array( 'opt-in', 'opt-out' );
|
1609 |
+
$vals = array( 'opt-in', 'opt-out' );
|
1610 |
+
$html = wppa_select( $slug, $opts, $vals );
|
1611 |
+
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
1612 |
+
|
1613 |
+
$name = __( 'Email callback url', 'wp-photo-album-plus' );
|
1614 |
+
$desc = __( 'The link in emails will point to', 'wp-photo-album-plus' );
|
1615 |
+
$help = __( 'Recommendation', 'wp-photo-album-plus' ) . ': ' .
|
1616 |
+
__( 'Create a page with shortcode', 'wp-photo-album-plus' ) .
|
1617 |
+
'<b>[wppa type="landing"]</b>. ';
|
1618 |
+
$slug = 'wppa_mailinglist_callback_url';
|
1619 |
+
$html = wppa_input($slug, '90%');
|
1620 |
+
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
1621 |
+
|
1622 |
+
$name = __('Retry failed mails', 'wp-photo-album-plus');
|
1623 |
+
$desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
|
1624 |
+
$help = (__('Retries occur at the background every hour', 'wp-photo-album-plus'));
|
1625 |
+
$slug = 'wppa_retry_mails';
|
1626 |
+
$html = wppa_number($slug, '1', '24');
|
1627 |
+
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
1628 |
+
|
1629 |
+
wppa_setting_box_footer_new();
|
1630 |
+
}
|
1631 |
Â
|
1632 |
+
if ( $wppa_cur_tab == 'share' ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1633 |
Â
|
1634 |
+
wppa_setting_box_header_new('share');
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1635 |
Â
|
1636 |
+
$name = __('Hide when running', 'wp-photo-album-plus');
|
1637 |
+
$desc = __('Hide the SM box when slideshow runs.', 'wp-photo-album-plus');
|
1638 |
+
$help = '';
|
1639 |
+
$slug = 'wppa_share_hide_when_running';
|
1640 |
+
$html = wppa_checkbox($slug);
|
1641 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1642 |
+
|
1643 |
+
$name = __('Show Share Box Widget', 'wp-photo-album-plus');
|
1644 |
+
$desc = __('Display the share social media buttons box in widgets.', 'wp-photo-album-plus');
|
1645 |
+
$help = __('This setting applies to normal slideshows in widgets, not to the slideshowwidget as that is a slideonly display.', 'wp-photo-album-plus');
|
1646 |
+
$slug = 'wppa_share_on_widget';
|
1647 |
+
$html = wppa_checkbox($slug);
|
1648 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1649 |
+
|
1650 |
+
$name = __('Show Share Buttons Thumbs', 'wp-photo-album-plus');
|
1651 |
+
$desc = __('Display the share social media buttons under thumbnails.', 'wp-photo-album-plus');
|
1652 |
+
$help = '';
|
1653 |
+
$slug = 'wppa_share_on_thumbs';
|
1654 |
+
$html = wppa_checkbox($slug);
|
1655 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1656 |
Â
|
1657 |
+
$name = __('Show Share Buttons Mphoto', 'wp-photo-album-plus');
|
1658 |
+
$desc = __('Display the share social media buttons on mphoto displays.', 'wp-photo-album-plus');
|
1659 |
+
$help = '';
|
1660 |
+
$slug = 'wppa_share_on_mphoto';
|
1661 |
+
$html = wppa_checkbox($slug);
|
1662 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1663 |
+
|
1664 |
+
$name = __('Void pages share', 'wp-photo-album-plus');
|
1665 |
+
$desc = __('Do not show share on these pages', 'wp-photo-album-plus');
|
1666 |
+
$help = __('Use this for pages that require the user is logged in', 'wp-photo-album-plus');
|
1667 |
+
$slug = 'wppa_sm_void_pages';
|
1668 |
+
$options = $options_page_post;
|
1669 |
+
$options[0] = __('--- Select one or more pages ---', 'wp-photo-album-plus');
|
1670 |
+
$options[] = __('--- none ---', 'wp-photo-album-plus');
|
1671 |
+
$values = $values_page_post;
|
1672 |
+
$values[] = '0';
|
1673 |
+
$html = wppa_select_m($slug, $options, $values, '', '', true);
|
1674 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1675 |
+
|
1676 |
+
$name = __('Show QR Code', 'wp-photo-album-plus');
|
1677 |
+
$desc = __('Display the QR code in the share box.', 'wp-photo-album-plus');
|
1678 |
+
$help = '';
|
1679 |
+
$slug = 'wppa_share_qr';
|
1680 |
+
$html = wppa_checkbox($slug);
|
1681 |
+
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1682 |
Â
|
1683 |
+
$name = __('Show Twitter button', 'wp-photo-album-plus');
|
1684 |
+
$desc = __('Display the Twitter button in the share box.', 'wp-photo-album-plus');
|
1685 |
+
$help = '';
|
1686 |
+
$slug = 'wppa_share_twitter';
|
1687 |
+
$html = wppa_checkbox($slug);
|
1688 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1689 |
+
|
1690 |
+
$name = __('The creator\'s Twitter account', 'wp-photo-album-plus');
|
1691 |
+
$desc = __('The Twitter @username a twitter card should be attributed to.', 'wp-photo-album-plus');
|
1692 |
+
$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');
|
1693 |
+
$slug = 'wppa_twitter_account';
|
1694 |
+
$html = wppa_input($slug, '150px' );
|
1695 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1696 |
+
|
1697 |
+
$name = __('Show Google+ button', 'wp-photo-album-plus');
|
1698 |
+
$desc = __('Display the Google+ button in the share box.', 'wp-photo-album-plus');
|
1699 |
+
$help = '';
|
1700 |
+
$slug = 'wppa_share_google';
|
1701 |
+
$html = wppa_checkbox($slug);
|
1702 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
1703 |
Â
|
1704 |
+
$name = __('Show Pinterest button', 'wp-photo-album-plus');
|
1705 |
+
$desc = __('Display the Pintrest button in the share box.', 'wp-photo-album-plus');
|
1706 |
+
$help = '';
|
1707 |
+
$slug = 'wppa_share_pinterest';
|
1708 |
+
$html = wppa_checkbox($slug);
|
1709 |
+
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1710 |
Â
|
1711 |
+
$name = __('Show LinkedIn button', 'wp-photo-album-plus');
|
1712 |
+
$desc = __('Display the LinkedIn button in the share box.', 'wp-photo-album-plus');
|
1713 |
+
$help = '';
|
1714 |
+
$slug = 'wppa_share_linkedin';
|
1715 |
+
$html = wppa_checkbox($slug);
|
1716 |
+
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1717 |
Â
|
1718 |
+
$name = __('Show Facebook share button', 'wp-photo-album-plus');
|
1719 |
+
$desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
|
1720 |
+
$help = '';
|
1721 |
+
$slug = 'wppa_share_facebook';
|
1722 |
+
$html = wppa_checkbox($slug);
|
1723 |
+
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1724 |
Â
|
1725 |
+
$name = __('Show Facebook like button', 'wp-photo-album-plus');
|
1726 |
+
$desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
|
1727 |
+
$help = '';
|
1728 |
+
$slug = 'wppa_facebook_like';
|
1729 |
+
$html = wppa_checkbox($slug);
|
1730 |
+
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1731 |
Â
|
1732 |
+
$name = __('Display type', 'wp-photo-album-plus');
|
1733 |
+
$desc = __('Select the Facebook button display type.', 'wp-photo-album-plus');
|
1734 |
+
$help = '';
|
1735 |
+
$slug = 'wppa_fb_display';
|
1736 |
+
$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') );
|
1737 |
+
$vals = array( 'standard', 'button', 'button_count', 'box_count' );
|
1738 |
+
$html = wppa_select($slug, $opts, $vals);
|
1739 |
+
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
1740 |
+
|
1741 |
+
$name = __('Show Facebook comment box', 'wp-photo-album-plus');
|
1742 |
+
$desc = __('Display the Facebook comment dialog box in the share box.', 'wp-photo-album-plus');
|
1743 |
+
$help = '';
|
1744 |
+
$slug = 'wppa_facebook_comments';
|
1745 |
+
$html = wppa_checkbox($slug);
|
1746 |
+
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1747 |
Â
|
1748 |
+
$name = __('Facebook User Id', 'wp-photo-album-plus');
|
1749 |
+
$desc = __('Enter your facebook user id to be able to moderate comments and sends', 'wp-photo-album-plus');
|
1750 |
+
$help = '';
|
1751 |
+
$slug = 'wppa_facebook_admin_id';
|
1752 |
+
$html = wppa_input($slug, '200px');
|
1753 |
+
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1754 |
Â
|
1755 |
+
$name = __('Facebook App Id', 'wp-photo-album-plus');
|
1756 |
+
$desc = __('Enter your facebook app id to be able to moderate comments and sends', 'wp-photo-album-plus');
|
1757 |
+
$help = '';
|
1758 |
+
$slug = 'wppa_facebook_app_id';
|
1759 |
+
$html = wppa_input($slug, '200px');
|
1760 |
+
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
1761 |
+
|
1762 |
+
$name = __('Facebook js SDK', 'wp-photo-album-plus');
|
1763 |
+
$desc = __('Load Facebook js SDK', 'wp-photo-album-plus');
|
1764 |
+
$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');
|
1765 |
+
$slug = 'wppa_load_facebook_sdk';
|
1766 |
+
$html = wppa_checkbox($slug);
|
1767 |
+
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
1768 |
+
|
1769 |
+
$name = __('Share single image', 'wp-photo-album-plus');
|
1770 |
+
$desc = __('Share a link to a single image, not the slideshow.', 'wp-photo-album-plus');
|
1771 |
+
$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');
|
1772 |
+
$slug = 'wppa_share_single_image';
|
1773 |
+
$html = wppa_checkbox($slug);
|
1774 |
+
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
1775 |
+
|
1776 |
+
wppa_setting_box_footer_new();
|
1777 |
+
}
|
1778 |
Â
|
1779 |
+
if ( $wppa_cur_tab == 'advanced' ) {
|
1780 |
+
|
1781 |
+
wppa_setting_box_header_new('advanced');
|
1782 |
+
|
1783 |
+
$name = __('Save EXIF data', 'wp-photo-album-plus');
|
1784 |
+
$desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
|
1785 |
+
$help = __('You will need this if you enabled the display of exif data in the photo descriptions.', 'wp-photo-album-plus');
|
1786 |
+
$slug = 'wppa_save_exif';
|
1787 |
+
$onch = 'wppaRefreshAfter()';
|
1788 |
+
$html = wppa_checkbox($slug, $onch);
|
1789 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
1790 |
+
|
1791 |
+
$name = __('Save IPTC data', 'wp-photo-album-plus');
|
1792 |
+
$desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
|
1793 |
+
$help = __('You will need this if you enabled the display of iptc data in the photo descriptions.', 'wp-photo-album-plus');
|
1794 |
+
$slug = 'wppa_save_iptc';
|
1795 |
+
$onch = 'wppaSlave(this,"iptc")';
|
1796 |
+
$html = wppa_checkbox($slug, $onch);
|
1797 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
1798 |
+
|
1799 |
+
$name = __('Save GPX data', 'wp-photo-album-plus');
|
1800 |
+
$desc = __('Store the gpx data from the photo into the exif db table', 'wp-photo-album-plus');
|
1801 |
+
$help = __('You will need this if you enabled the display of gpx data in the photo descriptions.', 'wp-photo-album-plus');
|
1802 |
+
$slug = 'wppa_save_gpx';
|
1803 |
+
$onch = 'wppaSlave(this,"gpx")';
|
1804 |
+
$html = wppa_checkbox($slug, $onch);
|
1805 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help, function_exists('exif_read_data') && wppa_switch( 'save_exif' ) );
|
1806 |
+
|
1807 |
+
$name = __('Watermark', 'wp-photo-album-plus');
|
1808 |
+
$desc = __('Enable the application of watermarks.', 'wp-photo-album-plus');
|
1809 |
+
$help = __('See Tab Watermark for detailed settings.', 'wp-photo-album-plus');
|
1810 |
+
$slug = 'wppa_watermark_on';
|
1811 |
+
$onch = 'wppaSlave(this,"watermark")';
|
1812 |
+
$html = wppa_checkbox($slug, $onch);
|
1813 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1814 |
+
|
1815 |
+
wppa_setting_box_footer_new();
|
1816 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1817 |
Â
|
1818 |
+
if ( $wppa_cur_tab == 'files') {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1819 |
Â
|
1820 |
+
wppa_setting_box_header_new('files');
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1821 |
Â
|
1822 |
+
wppa_setting_box_footer_new();
|
1823 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1824 |
Â
|
1825 |
+
if ( $wppa_cur_tab == 'new') {
|
1826 |
+
|
1827 |
+
wppa_setting_box_header_new('new');
|
1828 |
+
|
1829 |
+
$options = array( __('--- off ---', 'wp-photo-album-plus'),
|
1830 |
+
sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus'), '1'),
|
1831 |
+
sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
|
1832 |
+
sprintf( _n('%d day', '%d days', '2', 'wp-photo-album-plus'), '2'),
|
1833 |
+
sprintf( _n('%d day', '%d days', '3', 'wp-photo-album-plus'), '3'),
|
1834 |
+
sprintf( _n('%d day', '%d days', '4', 'wp-photo-album-plus'), '4'),
|
1835 |
+
sprintf( _n('%d day', '%d days', '5', 'wp-photo-album-plus'), '5'),
|
1836 |
+
sprintf( _n('%d day', '%d days', '6', 'wp-photo-album-plus'), '6'),
|
1837 |
+
sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus'), '1'),
|
1838 |
+
sprintf( _n('%d day', '%d days', '8', 'wp-photo-album-plus'), '8'),
|
1839 |
+
sprintf( _n('%d day', '%d days', '9', 'wp-photo-album-plus'), '9'),
|
1840 |
+
sprintf( _n('%d day', '%d days', '10', 'wp-photo-album-plus'), '10'),
|
1841 |
+
sprintf( _n('%d week', '%d weeks', '2', 'wp-photo-album-plus'), '2'),
|
1842 |
+
sprintf( _n('%d week', '%d weeks', '3', 'wp-photo-album-plus'), '3'),
|
1843 |
+
sprintf( _n('%d week', '%d weeks', '4', 'wp-photo-album-plus'), '4'),
|
1844 |
+
sprintf( _n('%d month', '%d months', '1', 'wp-photo-album-plus'), '1'),
|
1845 |
+
);
|
1846 |
+
$values = array( 0,
|
1847 |
+
60*60,
|
1848 |
+
60*60*24,
|
1849 |
+
60*60*24*2,
|
1850 |
+
60*60*24*3,
|
1851 |
+
60*60*24*4,
|
1852 |
+
60*60*24*5,
|
1853 |
+
60*60*24*6,
|
1854 |
+
60*60*24*7,
|
1855 |
+
60*60*24*8,
|
1856 |
+
60*60*24*9,
|
1857 |
+
60*60*24*10,
|
1858 |
+
60*60*24*7*2,
|
1859 |
+
60*60*24*7*3,
|
1860 |
+
60*60*24*7*4,
|
1861 |
+
60*60*24*30,
|
1862 |
+
);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1863 |
Â
|
1864 |
+
$name = __('New Album', 'wp-photo-album-plus');
|
1865 |
+
$desc = __('Maximum time an album is indicated as New', 'wp-photo-album-plus');
|
1866 |
+
$help = '';
|
1867 |
+
$slug = 'wppa_max_album_newtime';
|
1868 |
+
$html = wppa_select($slug, $options, $values);
|
1869 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1870 |
Â
|
1871 |
+
$name = __('New Photo', 'wp-photo-album-plus');
|
1872 |
+
$desc = __('Maximum time a photo is indicated as New', 'wp-photo-album-plus');
|
1873 |
+
$help = '';
|
1874 |
+
$slug = 'wppa_max_photo_newtime';
|
1875 |
+
$html = wppa_select($slug, $options, $values);
|
1876 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
1877 |
Â
|
1878 |
+
$name = __('Modified Album', 'wp-photo-album-plus');
|
1879 |
+
$desc = __('Maximum time an album is indicated as Modified', 'wp-photo-album-plus');
|
1880 |
+
$help = '';
|
1881 |
+
$slug = 'wppa_max_album_modtime';
|
1882 |
+
$html = wppa_select($slug, $options, $values);
|
1883 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
1884 |
Â
|
1885 |
+
$name = __('Modified Photo', 'wp-photo-album-plus');
|
1886 |
+
$desc = __('Maximum time a photo is indicated as Modified', 'wp-photo-album-plus');
|
1887 |
+
$help = '';
|
1888 |
+
$slug = 'wppa_max_photo_modtime';
|
1889 |
+
$html = wppa_select($slug, $options, $values);
|
1890 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1891 |
+
|
1892 |
+
$name = __('Use text labels', 'wp-photo-album-plus');
|
1893 |
+
$desc = __('Use editable text for the New and Modified labels', 'wp-photo-album-plus');
|
1894 |
+
$help = __('If UNticked, you can specify the urls for custom images to be used.', 'wp-photo-album-plus');
|
1895 |
+
$slug = 'wppa_new_mod_label_is_text';
|
1896 |
+
$onch = 'wppaRefreshAfter();';
|
1897 |
+
$html = wppa_checkbox($slug,$onch);
|
1898 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1899 |
+
|
1900 |
+
$opts = array(
|
1901 |
+
__('Red', 'wp-photo-album-plus'),
|
1902 |
+
__('Orange', 'wp-photo-album-plus'),
|
1903 |
+
__('Yellow', 'wp-photo-album-plus'),
|
1904 |
+
__('Green', 'wp-photo-album-plus'),
|
1905 |
+
__('Blue', 'wp-photo-album-plus'),
|
1906 |
+
__('Purple', 'wp-photo-album-plus'),
|
1907 |
+
__('Black/white', 'wp-photo-album-plus'),
|
1908 |
+
);
|
1909 |
+
$vals = array(
|
1910 |
+
'red',
|
1911 |
+
'orange',
|
1912 |
+
'yellow',
|
1913 |
+
'green',
|
1914 |
+
'blue',
|
1915 |
+
'purple',
|
1916 |
+
'black',
|
1917 |
+
);
|
1918 |
Â
|
1919 |
+
$name = __('New label', 'wp-photo-album-plus');
|
1920 |
+
$desc = __('Specify the "New" indicator details.', 'wp-photo-album-plus');
|
1921 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
|
1922 |
+
$slug1 = 'wppa_new_label_text';
|
1923 |
+
$slug2 = 'wppa_new_label_color';
|
1924 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
|
1925 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
|
1926 |
+
wppa_setting_new($slug1, '6', $name, $desc, $html1.' '.$html2, $help);
|
1927 |
+
|
1928 |
+
$name = __('Modified label', 'wp-photo-album-plus');
|
1929 |
+
$desc = __('Specify the "Modified" indicator details.', 'wp-photo-album-plus');
|
1930 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
|
1931 |
+
$slug1 = 'wppa_mod_label_text';
|
1932 |
+
$slug2 = 'wppa_mod_label_color';
|
1933 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
|
1934 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
|
1935 |
+
wppa_setting_new($slug1, '7', $name, $desc, $html1.' '.$html2, $help);
|
1936 |
+
|
1937 |
+
$name = __('New label', 'wp-photo-album-plus');
|
1938 |
+
$desc = __('Specify the "New" indicator url.', 'wp-photo-album-plus');
|
1939 |
+
$help = ' ';
|
1940 |
+
$slug = 'wppa_new_label_url';
|
1941 |
+
$html = wppa_input($slug, '300px');
|
1942 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1943 |
+
|
1944 |
+
$name = __('Modified label', 'wp-photo-album-plus');
|
1945 |
+
$desc = __('Specify the "Modified" indicator url.', 'wp-photo-album-plus');
|
1946 |
+
$help = ' ';
|
1947 |
+
$slug = 'wppa_mod_label_url';
|
1948 |
+
$html = wppa_input($slug, '300px');
|
1949 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1950 |
+
|
1951 |
+
$name = __('Limit LasTen New', 'wp-photo-album-plus');
|
1952 |
+
$desc = __('Limits the LasTen photos to those that are \'New\', or newly modified.', 'wp-photo-album-plus');
|
1953 |
+
$help = __('If you tick this box and configured the new photo time, you can even limit the number by the setting in Table I-F7, or set that number to an unlikely high value.', 'wp-photo-album-plus');
|
1954 |
+
$slug = 'wppa_lasten_limit_new';
|
1955 |
+
$html = wppa_checkbox($slug);
|
1956 |
+
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1957 |
+
|
1958 |
+
$name = __('LasTen use Modified', 'wp-photo-album-plus');
|
1959 |
+
$desc = __('Use the time modified rather than time upload for LasTen widget/shortcode.', 'wp-photo-album-plus');
|
1960 |
+
$help = '';
|
1961 |
+
$slug = 'wppa_lasten_use_modified';
|
1962 |
+
$html = wppa_checkbox($slug);
|
1963 |
+
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1964 |
+
|
1965 |
+
$name = __('Apply Newphoto desc', 'wp-photo-album-plus');
|
1966 |
+
$desc = __('Give each new photo a standard description.', 'wp-photo-album-plus');
|
1967 |
+
$help = __('If checked, each new photo will get the description (template) as specified in the next item.', 'wp-photo-album-plus');
|
1968 |
+
$slug = 'wppa_apply_newphoto_desc';
|
1969 |
+
$html = wppa_checkbox($slug);
|
1970 |
+
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
1971 |
+
|
1972 |
+
$name = __('New photo desc', 'wp-photo-album-plus');
|
1973 |
+
$desc = __('The description (template) to add to a new photo.', 'wp-photo-album-plus');
|
1974 |
+
$help = __('Enter the default description.', 'wp-photo-album-plus');
|
1975 |
+
$help .= '<br />'.__('If you use html, please check item B-1 of this table.', 'wp-photo-album-plus');
|
1976 |
+
$help .= '<br />'.__('If you tick the checkbox, linebreaks and redundand spaces will be removed.', 'wp-photo-album-plus');
|
1977 |
+
$slug = 'wppa_newphoto_description';
|
1978 |
+
$slug2 = 'wppa_compress_newdesc';
|
1979 |
+
$html = wppa_textarea($slug, $name) .
|
1980 |
+
'<br />' .
|
1981 |
+
__('Compress', 'wp-photo-album-plus') .
|
1982 |
+
wppa_checkbox($slug2);
|
1983 |
+
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
1984 |
+
|
1985 |
+
$name = __('New photo owner', 'wp-photo-album-plus');
|
1986 |
+
$desc = __('The owner of a new uploaded photo.', 'wp-photo-album-plus');
|
1987 |
+
$help = __('If you leave this blank, the uploader will be set as the owner', 'wp-photo-album-plus');
|
1988 |
+
$slug = 'wppa_newphoto_owner';
|
1989 |
+
$html = wppa_input($slug, '50px', '', __('leave blank or enter login name', 'wp-photo-album-plus'));
|
1990 |
+
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
1991 |
+
|
1992 |
+
$name = __('Upload limit', 'wp-photo-album-plus');
|
1993 |
+
$desc = __('New albums are created with this upload limit.', 'wp-photo-album-plus');
|
1994 |
+
$help = __('Administrators can change the limit settings in the "Edit Album Information" admin page.', 'wp-photo-album-plus');
|
1995 |
+
$help .= '<br />'.(__('A value of 0 means: no limit.', 'wp-photo-album-plus'));
|
1996 |
+
$slug = 'wppa_upload_limit_count';
|
1997 |
+
$html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus'));
|
1998 |
+
$slug = 'wppa_upload_limit_time';
|
1999 |
+
$options = array( __('for ever', 'wp-photo-album-plus'),
|
2000 |
+
__('per hour', 'wp-photo-album-plus'),
|
2001 |
+
__('per day', 'wp-photo-album-plus'),
|
2002 |
+
__('per week', 'wp-photo-album-plus'),
|
2003 |
+
__('per month', 'wp-photo-album-plus'), // 30 days
|
2004 |
+
__('per year', 'wp-photo-album-plus')); // 364 days
|
2005 |
+
$values = array( '0', '3600', '86400', '604800', '2592000', '31449600');
|
2006 |
+
$html .= wppa_select($slug, $options, $values);
|
2007 |
+
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
2008 |
+
|
2009 |
+
$name = __('Default parent', 'wp-photo-album-plus');
|
2010 |
+
$desc = __('The parent album of new albums.', 'wp-photo-album-plus');
|
2011 |
+
$help = '';
|
2012 |
+
$slug = 'wppa_default_parent';
|
2013 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
|
2014 |
+
$vals = array( '0', '-1');
|
2015 |
+
$albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
2016 |
+
if ( $albs ) {
|
2017 |
+
foreach ( $albs as $alb ) {
|
2018 |
+
$opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
|
2019 |
+
$vals[] = $alb['id'];
|
2020 |
+
}
|
2021 |
+
}
|
2022 |
+
$html = wppa_select($slug, $opts, $vals);
|
2023 |
+
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
2024 |
Â
|
2025 |
+
$name = __('Default parent always', 'wp-photo-album-plus');
|
2026 |
+
$desc = __('The parent album of new albums is always the default, except for administrators.', 'wp-photo-album-plus');
|
2027 |
+
$help = '';
|
2028 |
+
$slug = 'wppa_default_parent_always';
|
2029 |
+
$html = wppa_checkbox($slug);
|
2030 |
+
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
2031 |
+
|
2032 |
+
$name = __('Grant an album', 'wp-photo-album-plus');
|
2033 |
+
$desc = __('Create an album for each user logging in.', 'wp-photo-album-plus');
|
2034 |
+
$help = '';
|
2035 |
+
$slug = 'wppa_grant_an_album';
|
2036 |
+
$html = wppa_checkbox($slug);
|
2037 |
+
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2038 |
Â
|
2039 |
+
$name = __('Grant album name', 'wp-photo-album-plus');
|
2040 |
+
$desc = __('The name to be used for the album.', 'wp-photo-album-plus');
|
2041 |
+
$help = '';
|
2042 |
+
$slug = 'wppa_grant_name';
|
2043 |
+
$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'));
|
2044 |
+
$vals = array('login', 'display', 'id', 'firstlast');
|
2045 |
+
$html = wppa_select($slug, $opts, $vals);
|
2046 |
+
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
2047 |
+
|
2048 |
+
$name = __('Grant parent selection method', 'wp-photo-album-plus');
|
2049 |
+
$desc = __('The way the grant parents are defined.', 'wp-photo-album-plus');
|
2050 |
+
$help = '';
|
2051 |
+
$slug = 'wppa_grant_parent_sel_method';
|
2052 |
+
$opts = array( __('An album (multi)selectionbox', 'wp-photo-album-plus'),
|
2053 |
+
__('An album category', 'wp-photo-album-plus'),
|
2054 |
+
__('An index search token', 'wp-photo-album-plus'),
|
2055 |
+
);
|
2056 |
+
$vals = array( 'selectionbox',
|
2057 |
+
'category',
|
2058 |
+
'indexsearch'
|
2059 |
+
);
|
2060 |
+
$onch = 'wppaRefreshAfter();';
|
2061 |
+
$html = wppa_select($slug, $opts, $vals, $onch);
|
2062 |
+
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
2063 |
+
|
2064 |
+
switch( wppa_opt( 'grant_parent_sel_method' ) ) {
|
2065 |
+
case 'selectionbox':
|
2066 |
+
$name = __('Grant parent', 'wp-photo-album-plus');
|
2067 |
+
$desc = __('The parent album(s) of the auto created albums.', 'wp-photo-album-plus');
|
2068 |
+
$help = (__('You may select multiple albums. All logged in visitors will get their own sub-album in each granted parent.', 'wp-photo-album-plus'));
|
2069 |
+
$slug = 'wppa_grant_parent';
|
2070 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
|
2071 |
+
$vals = array( 'zero', '-1');
|
2072 |
+
$albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
2073 |
+
if ( $albs ) {
|
2074 |
+
foreach ( $albs as $alb ) {
|
2075 |
+
$opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
|
2076 |
+
$vals[] = $alb['id'];
|
2077 |
+
}
|
2078 |
Â
}
|
2079 |
+
$html = wppa_select_m($slug, $opts, $vals);//, '', '', true);
|
2080 |
+
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
2081 |
+
break;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2082 |
Â
|
2083 |
+
case 'category':
|
2084 |
+
$name = __('Grant parent category', 'wp-photo-album-plus');
|
2085 |
+
$desc = __('The category of the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
|
2086 |
Â
$help = '';
|
2087 |
+
$slug = 'wppa_grant_parent';
|
2088 |
+
$catlist = wppa_get_catlist();
|
2089 |
+
$opts = array();
|
2090 |
+
foreach( $catlist as $cat ) {
|
2091 |
+
$opts[] = $cat['cat'];
|
2092 |
+
}
|
2093 |
+
$vals = $opts;
|
2094 |
+
$html = wppa_select($slug, $opts, $vals);
|
2095 |
+
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
2096 |
+
break;
|
2097 |
Â
|
2098 |
+
case 'indexsearch':
|
2099 |
+
$name = __('Grant parent index token', 'wp-photo-album-plus');
|
2100 |
+
$desc = __('The index token that defines the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
|
2101 |
Â
$help = '';
|
2102 |
+
$slug = 'wppa_grant_parent';
|
2103 |
+
$html = wppa_input($slug, '150px');
|
2104 |
+
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
2105 |
+
break;
|
Â
|
|
2106 |
Â
|
2107 |
+
default:
|
2108 |
+
wppa_log( 'err', 'Unimplemented grant_parent_sel_method in settings page' );
|
2109 |
+
break;
|
2110 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2111 |
Â
|
2112 |
+
$name = __('Grant categories', 'wp-photo-album-plus');
|
2113 |
+
$desc = __('The categories a new granted album will get.', 'wp-photo-album-plus');
|
2114 |
+
$help = '';
|
2115 |
+
$slug = 'wppa_grant_cats';
|
2116 |
+
$html = wppa_input($slug, '150px');
|
2117 |
+
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2118 |
Â
|
2119 |
+
$name = __('Grant tags', 'wp-photo-album-plus');
|
2120 |
+
$desc = __('The default tags the photos in a new granted album will get.', 'wp-photo-album-plus');
|
2121 |
+
$help = '';
|
2122 |
+
$slug = 'wppa_grant_tags';
|
2123 |
+
$html = wppa_input($slug, '150px');
|
2124 |
+
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
2125 |
+
|
2126 |
+
$name = __('Grant restrict', 'wp-photo-album-plus');
|
2127 |
+
$desc = __('Only create albums for users with Album Admin rights', 'wp-photo-album-plus');
|
2128 |
+
$help = __('See Table VII-A, first column', 'wp-photo-album-plus');
|
2129 |
+
$slug = 'wppa_grant_restrict';
|
2130 |
+
$html = wppa_checkbox($slug);
|
2131 |
+
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
2132 |
+
|
2133 |
+
$name = __('Iptc 025 keywords to tags', 'wp-photo-album-plus');
|
2134 |
+
$desc = __('Convert IPTC025 keywords to tags during upload.', 'wp-photo-album-plus');
|
2135 |
+
$help = __('Saving IPTC data must be on for this feature', 'wp-photo-album-plus');
|
2136 |
+
$slug = 'wppa_ipc025_to_tags';
|
2137 |
+
$html = wppa_checkbox( $slug );
|
2138 |
+
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
2139 |
+
|
2140 |
+
$name = __('Max user albums', 'wp-photo-album-plus');
|
2141 |
+
$desc = __('The max number of albums a user can create.', 'wp-photo-album-plus');
|
2142 |
+
$help = (__('The maximum number of albums a user can create when he is not admin and owner only is active', 'wp-photo-album-plus'));
|
2143 |
+
$help .= '<br />'.(__('A number of 0 means No limit', 'wp-photo-album-plus'));
|
2144 |
+
$slug = 'wppa_max_albums';
|
2145 |
+
$html = wppa_input($slug, '50px', '', 'albums');
|
2146 |
+
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
2147 |
+
|
2148 |
+
$name = __('Default photo name', 'wp-photo-album-plus');
|
2149 |
+
$desc = __('Select the way the name of a new uploaded photo should be determined.', 'wp-photo-album-plus');
|
2150 |
+
$help = __('If you select an IPTC Tag and it is not found, the filename will be used instead.', 'wp-photo-album-plus');
|
2151 |
+
$slug = 'wppa_newphoto_name_method';
|
2152 |
+
$opts = array( __('Filename', 'wp-photo-album-plus'),
|
2153 |
+
__('Filename without extension', 'wp-photo-album-plus'),
|
2154 |
+
__('Filename without extension, spaces for hyphens', 'wp-photo-album-plus'),
|
2155 |
+
__('IPTC Tag 2#005 (Graphic name)', 'wp-photo-album-plus'),
|
2156 |
+
__('IPTC Tag 2#120 (Caption)', 'wp-photo-album-plus'),
|
2157 |
+
__('No name at all', 'wp-photo-album-plus'),
|
2158 |
+
__('Photo w#id (literally)', 'wp-photo-album-plus'),
|
2159 |
+
);
|
2160 |
+
$vals = array( 'filename',
|
2161 |
+
'noext',
|
2162 |
+
'noextspace',
|
2163 |
+
'2#005',
|
2164 |
+
'2#120',
|
2165 |
+
'none',
|
2166 |
+
'Photo w#id'
|
2167 |
+
);
|
2168 |
+
$html = wppa_select($slug, $opts, $vals);
|
2169 |
+
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
2170 |
+
|
2171 |
+
$name = __('Default coverphoto', 'wp-photo-album-plus');
|
2172 |
+
$desc = __('Name of photofile to become cover image', 'wp-photo-album-plus');
|
2173 |
+
$help = (__('If you name a photofile like this setting before upload, it will become the coverimage automatically.', 'wp-photo-album-plus'));
|
2174 |
+
$slug = 'wppa_default_coverimage_name';
|
2175 |
+
$html = wppa_input($slug, '150px');
|
2176 |
+
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
2177 |
+
|
2178 |
+
$name = __('Copy Timestamp', 'wp-photo-album-plus');
|
2179 |
+
$desc = __('Copy timestamp when copying photo.', 'wp-photo-album-plus');
|
2180 |
+
$help = (__('If checked, the copied photo is not "new"', 'wp-photo-album-plus'));
|
2181 |
+
$slug = 'wppa_copy_timestamp';
|
2182 |
+
$html = wppa_checkbox($slug);
|
2183 |
+
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
2184 |
+
|
2185 |
+
$name = __('Copy Owner', 'wp-photo-album-plus');
|
2186 |
+
$desc = __('Copy the owner when copying photo.', 'wp-photo-album-plus');
|
2187 |
+
$help = '';
|
2188 |
+
$slug = 'wppa_copy_owner';
|
2189 |
+
$html = wppa_checkbox($slug);
|
2190 |
+
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
2191 |
Â
|
2192 |
+
$name = __('Copy Custom', 'wp-photo-album-plus');
|
2193 |
+
$desc = __('Copy the custom fields when copying photo.', 'wp-photo-album-plus');
|
2194 |
+
$help = '';
|
2195 |
+
$slug = 'wppa_copy_custom';
|
2196 |
+
$html = wppa_checkbox($slug);
|
2197 |
+
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2198 |
Â
|
2199 |
+
$name = __('FE Albums public', 'wp-photo-album-plus');
|
2200 |
+
$desc = __('Frontend created albums are --- public ---', 'wp-photo-album-plus');
|
2201 |
+
$help = '';
|
2202 |
+
$slug = 'wppa_frontend_album_public';
|
2203 |
+
$html = wppa_checkbox($slug);
|
2204 |
+
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
2205 |
Â
|
2206 |
+
$name = __('Default album linktype', 'wp-photo-album-plus');
|
2207 |
+
$desc = __('The album linktype for new albums', 'wp-photo-album-plus');
|
2208 |
+
$help = '';
|
2209 |
+
$slug = 'wppa_default_album_linktype';
|
2210 |
+
$opts = array( __('the sub-albums and thumbnails', 'wp-photo-album-plus'),
|
2211 |
+
__('the sub-albums', 'wp-photo-album-plus'),
|
2212 |
+
__('the thumbnails', 'wp-photo-album-plus'),
|
2213 |
+
__('the album photos as slideshow', 'wp-photo-album-plus'),
|
2214 |
+
__('no link at all', 'wp-photo-album-plus')
|
2215 |
+
);
|
2216 |
Â
|
2217 |
+
$vals = array( 'content',
|
2218 |
+
'albums',
|
2219 |
+
'thumbs',
|
2220 |
+
'slide',
|
2221 |
+
'none'
|
2222 |
+
);
|
2223 |
+
$html = wppa_select($slug, $opts, $vals);
|
2224 |
+
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
2225 |
Â
|
2226 |
+
$name = __('Sanitize files', 'wp-photo-album-plus');
|
2227 |
+
$desc = __('Sanitize filenames during import/upload', 'wp-photo-album-plus');
|
2228 |
+
$help = '';
|
2229 |
+
$slug = 'wppa_sanitize_import';
|
2230 |
+
$html = wppa_checkbox($slug);
|
2231 |
+
wppa_setting_new($slug, '36', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2232 |
Â
|
2233 |
+
$name = __('Remove accents', 'wp-photo-album-plus');
|
2234 |
+
$desc = __('Remove accents from filenames during import/upload', 'wp-photo-album-plus');
|
2235 |
+
$help = '';
|
2236 |
+
$slug = 'wppa_remove_accents';
|
2237 |
+
$html = wppa_checkbox($slug);
|
2238 |
+
wppa_setting_new($slug, '37', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2239 |
Â
|
2240 |
+
$name = __('Default photo status', 'wp-photo-album-plus');
|
2241 |
+
$desc = __('The status new photos will have', 'wp-photo-album-plus');
|
2242 |
+
$help = '';
|
2243 |
+
$slug = 'wppa_status_new';
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2244 |
Â
|
2245 |
+
$opts = array( __( 'Publish', 'wp-photo-album-plus' ),
|
2246 |
+
__( 'Pending', 'wp-photo-album-plus' ),
|
2247 |
+
__( 'Featured', 'wp-photo-album-plus' ),
|
2248 |
+
__( 'Private', 'wp-photo-album-plus' ),
|
2249 |
+
);
|
2250 |
+
$vals = array( 'publish',
|
2251 |
+
'pending',
|
2252 |
+
'featured',
|
2253 |
+
'private',
|
2254 |
+
);
|
2255 |
+
$html = wppa_select( $slug, $opts, $vals);
|
2256 |
+
wppa_setting_new($slug, '38', $name, $desc, $html, $help);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2257 |
Â
|
2258 |
+
wppa_setting_box_footer_new();
|
2259 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2260 |
Â
|
2261 |
+
if ( $wppa_cur_tab == 'admin' ) {
|
2262 |
+
|
2263 |
+
$coldef = array( __('Role', 'wp-photo-album-plus') => 'auto;',
|
2264 |
+
__('Album Admin', 'wp-photo-album-plus') => 'auto;',
|
2265 |
+
__('Upload', 'wp-photo-album-plus') => 'auto;',
|
2266 |
+
__('Import', 'wp-photo-album-plus') => 'auto;',
|
2267 |
+
__('Moderate', 'wp-photo-album-plus') => 'auto;',
|
2268 |
+
__('Export', 'wp-photo-album-plus') => 'auto;',
|
2269 |
+
__('Settings', 'wp-photo-album-plus') => 'auto;',
|
2270 |
+
__('Photo of the day', 'wp-photo-album-plus') => 'auto;',
|
2271 |
+
__('Comments', 'wp-photo-album-plus') => 'auto;',
|
2272 |
+
__('Documentation', 'wp-photo-album-plus') => 'auto;',
|
2273 |
+
__('Membership', 'wp-photo-album-plus') => 'auto;',
|
2274 |
+
);
|
2275 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2276 |
Â
|
2277 |
+
wppa_setting_box_header_new('admin', $coldef);
|
Â
|
|
Â
|
|
2278 |
Â
|
2279 |
+
$wppacaps = array( 'wppa_admin',
|
2280 |
+
'wppa_upload',
|
2281 |
+
'wppa_import',
|
2282 |
+
'wppa_moderate',
|
2283 |
+
'wppa_export',
|
2284 |
+
'wppa_settings',
|
2285 |
+
'wppa_potd',
|
2286 |
+
'wppa_comments',
|
2287 |
+
'wppa_help',
|
2288 |
+
'wppa_medal',
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2289 |
Â
);
|
2290 |
+
$opts = array( '',
|
2291 |
+
__('bronze', 'wp-photo-album-plus'),
|
2292 |
+
__('silver', 'wp-photo-album-plus'),
|
2293 |
+
__('gold', 'wp-photo-album-plus'),
|
2294 |
+
__('plus', 'wp-photo-album-plus'),
|
2295 |
+
__('basic', 'wp-photo-album-plus'),
|
2296 |
+
);
|
2297 |
+
$vals = array( 'none',
|
2298 |
+
'bronze',
|
2299 |
+
'silver',
|
2300 |
+
'gold',
|
2301 |
+
'plus',
|
2302 |
+
'basic'
|
2303 |
+
);
|
2304 |
Â
|
2305 |
+
$roles = $wp_roles->roles;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2306 |
Â
|
2307 |
+
foreach (array_keys($roles) as $key) {
|
2308 |
+
$role = $roles[$key];
|
2309 |
+
$rolename = translate_user_role( $role['name'] );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2310 |
Â
|
2311 |
+
echo '
|
2312 |
+
<tr class="wppa-setting-new" >
|
2313 |
+
<td>' . $rolename . '</td>';
|
2314 |
+
$caps = $role['capabilities'];
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2315 |
Â
|
2316 |
+
for ($i = 0; $i < count($wppacaps) - 1; $i++) {
|
2317 |
+
if (isset($caps[$wppacaps[$i]])) {
|
2318 |
+
$yn = $caps[$wppacaps[$i]] ? true : false;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2319 |
Â
}
|
2320 |
+
else $yn = false;
|
2321 |
+
$enabled = ( $key != 'administrator' );
|
2322 |
+
echo '
|
2323 |
+
<td>' . wppa_checkbox_e('caps-'.$wppacaps[$i].'-'.$key, $yn, '', '', $enabled) . '</td>';
|
2324 |
+
};
|
2325 |
Â
|
2326 |
+
echo '<td>' . wppa_select($wppacaps[count($wppacaps) - 1].'-'.$key, $opts, $vals) . '</td>';
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2327 |
Â
|
2328 |
+
echo '</tr>';
|
2329 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2330 |
Â
|
2331 |
+
wppa_setting_box_footer_new();
|
2332 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2333 |
Â
|
2334 |
+
if ( $wppa_cur_tab == 'maintenance' ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2335 |
Â
|
2336 |
+
$coldef = array( '#' => '24px;',
|
2337 |
+
__('Name', 'wp-photo-album-plus') => 'auto;',
|
2338 |
+
__('Description', 'wp-photo-album-plus') => 'auto;',
|
2339 |
+
__('Specification', 'wp-photo-album-plus') => 'auto;',
|
2340 |
+
__('Do it!', 'wp-photo-album-plus') => 'auto;',
|
2341 |
+
__('Status', 'wp-photo-album-plus') => 'auto;',
|
2342 |
+
__('To Go', 'wp-photo-album-plus') => 'auto;',
|
2343 |
+
__('Help', 'wp-photo-album-plus') => '24px;',
|
2344 |
+
);
|
2345 |
+
|
2346 |
+
wppa_setting_box_header_new( 'maintenance', $coldef );
|
2347 |
+
|
2348 |
+
$name = __('Postpone cron', 'wp-photo-album-plus');
|
2349 |
+
$desc = __('Temporary do no background processes.', 'wp-photo-album-plus');
|
2350 |
+
$help = __('This setting is meant to be used a.o. during bulk import/upload. Use with care!', 'wp-photo-album-plus');
|
2351 |
+
$slug = 'wppa_maint_ignore_cron';
|
2352 |
+
$html1 = wppa_checkbox( $slug );
|
2353 |
+
$html2 = '';
|
2354 |
+
$html3 = '';
|
2355 |
+
$html4 = '';
|
2356 |
+
$html = array($html1, $html2, $html3, $html4);
|
2357 |
+
wppa_setting_new(false, '0', $name, $desc, $html, $help);
|
2358 |
+
|
2359 |
+
$name = __('Setup', 'wp-photo-album-plus');
|
2360 |
+
$desc = __('Re-initialize plugin.', 'wp-photo-album-plus');
|
2361 |
+
$help = __('Re-initilizes the plugin, (re)creates database tables and sets up default settings and directories if required.', 'wp-photo-album-plus');
|
2362 |
+
$help .= '<br />'.__('This action may be required to setup blogs in a multiblog (network) site as well as in rare cases to correct initilization errors.', 'wp-photo-album-plus');
|
2363 |
+
$slug = 'wppa_setup';
|
2364 |
+
$html1 = '';
|
2365 |
+
$html2 = wppa_doit_button_new($slug);
|
2366 |
+
$html3 = '';
|
2367 |
+
$html4 = '';
|
2368 |
+
$html = array($html1, $html2, $html3, $html4);
|
2369 |
+
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
2370 |
+
|
2371 |
+
$name = __('Backup settings', 'wp-photo-album-plus');
|
2372 |
+
$desc = __('Save all settings into a backup file.', 'wp-photo-album-plus');
|
2373 |
+
$help = __('Saves all the settings into a backup file', 'wp-photo-album-plus');
|
2374 |
+
$slug1 = 'wppa_backup_filename';
|
2375 |
+
$slug2 = 'wppa_backup';
|
2376 |
+
$html1 = wppa_input( $slug1, '200px;', '', '', '', 'settings.bak' );
|
2377 |
+
$html2 = wppa_doit_button_new($slug2);
|
2378 |
+
$html3 = '';
|
2379 |
+
$html4 = '';
|
2380 |
+
$html = array($html1, $html2, $html3, $html4);
|
2381 |
+
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
2382 |
+
|
2383 |
+
$name = __( 'Load settings', 'wp-photo-album-plus' );
|
2384 |
+
$desc = __( 'Restore all settings from defaults, a backup or skin file.', 'wp-photo-album-plus' );
|
2385 |
+
$help = __( 'Restores all the settings from the factory supplied defaults, the backup you created or from a skin file.', 'wp-photo-album-plus' );
|
2386 |
+
$help .= ' ' . __( 'Restoring a .skin-file will not overwrite linkpage settings.', 'wp-photo-album-plus' );
|
2387 |
+
$slug1 = 'wppa_skinfile';
|
2388 |
+
$slug2 = 'wppa_load_skin';
|
2389 |
+
$files1 = wppa_glob(WPPA_PATH.'/theme/*.skin');
|
2390 |
+
$files2 = wppa_glob(WPPA_DEPOT_PATH.'/*.bak');
|
2391 |
+
$files3 = wppa_glob(WPPA_DEPOT_PATH.'/*.skin');
|
2392 |
+
$files = array_merge( $files1, $files2, $files3 );
|
2393 |
+
$options = false;
|
2394 |
+
$values = false;
|
2395 |
+
$options[] = __( 'Please select an item', 'wp-photo-album-plus' );
|
2396 |
+
$options[] = __( '--- set to defaults ---', 'wp-photo-album-plus' );
|
2397 |
+
$values[] = '';
|
2398 |
+
$values[] = 'default';
|
2399 |
+
if ( count( $files ) ) {
|
2400 |
+
foreach ( $files as $file ) {
|
2401 |
+
$fname = basename( $file );
|
2402 |
+
$ext = strrchr( $fname, '.' );
|
2403 |
+
if ( $ext == '.skin' || $ext == '.bak' ) {
|
2404 |
+
$options[] = $fname;
|
2405 |
+
$values[] = $file;
|
2406 |
Â
}
|
2407 |
+
}
|
2408 |
+
}
|
2409 |
+
$html1 = wppa_select($slug1, $options, $values);
|
2410 |
+
$html2 = wppa_doit_button_new($slug2);
|
2411 |
+
$html3 = '';
|
2412 |
+
$html4 = '';
|
2413 |
+
$html = array($html1, $html2, $html3, $html4);
|
2414 |
+
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
2415 |
+
|
2416 |
+
$name = __('Regenerate', 'wp-photo-album-plus');
|
2417 |
+
$desc = __('Regenerate all thumbnails.', 'wp-photo-album-plus');
|
2418 |
+
$help = '';
|
2419 |
+
$slug1 = 'wppa_regen_thumbs_skip_one';
|
2420 |
+
$slug2 = 'wppa_regen_thumbs';
|
2421 |
+
$html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'regen_thumbs_skip_one', '0', true );
|
2422 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2423 |
+
$html3 = wppa_status_field( $slug2 );
|
2424 |
+
$html4 = wppa_togo_field( $slug2 );
|
2425 |
+
$html = array($html1, $html2, $html3, $html4);
|
2426 |
+
wppa_setting_new(false, '4', $name, $desc, $html, $help);
|
2427 |
+
|
2428 |
+
$name = __('Rerate', 'wp-photo-album-plus');
|
2429 |
+
$desc = __('Recalculate ratings.', 'wp-photo-album-plus');
|
2430 |
+
$help = __('This function will recalculate all mean photo ratings from the ratings table.', 'wp-photo-album-plus');
|
2431 |
+
$slug2 = 'wppa_rerate';
|
2432 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2433 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2434 |
+
$html3 = wppa_status_field( $slug2 );
|
2435 |
+
$html4 = wppa_togo_field( $slug2 );
|
2436 |
+
$html = array($html1, $html2, $html3, $html4);
|
2437 |
+
wppa_setting_new(false, '5', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
2438 |
+
|
2439 |
+
$name = __('Lost and found', 'wp-photo-album-plus');
|
2440 |
+
$desc = __('Find "lost" photos.', 'wp-photo-album-plus');
|
2441 |
+
$help = __('This function will attempt to find lost photos.', 'wp-photo-album-plus');
|
2442 |
+
$slug2 = 'wppa_cleanup';
|
2443 |
+
$html1 = '';
|
2444 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2445 |
+
$html3 = wppa_status_field( $slug2 );
|
2446 |
+
$html4 = wppa_togo_field( $slug2 );
|
2447 |
+
$html = array($html1, $html2, $html3, $html4);
|
2448 |
+
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
2449 |
+
|
2450 |
+
$name = __('Recuperate', 'wp-photo-album-plus');
|
2451 |
+
$desc = __('Recuperate IPTC and EXIF data from photos in WPPA+.', 'wp-photo-album-plus');
|
2452 |
+
$help = __('This action will attempt to find and register IPTC and EXIF data from photos in the WPPA+ system.', 'wp-photo-album-plus');
|
2453 |
+
$slug2 = 'wppa_recup';
|
2454 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2455 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2456 |
+
$html3 = wppa_status_field( $slug2 );
|
2457 |
+
$html4 = wppa_togo_field( $slug2 );
|
2458 |
+
$html = array($html1, $html2, $html3, $html4);
|
2459 |
+
wppa_setting_new(false, '7', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) || wppa_switch( 'save_iptc' ) );
|
2460 |
+
|
2461 |
+
$name = __('Format exif', 'wp-photo-album-plus');
|
2462 |
+
$desc = __('Format EXIF data', 'wp-photo-album-plus');
|
2463 |
+
$help = '';
|
2464 |
+
$slug2 = 'wppa_format_exif';
|
2465 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2466 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2467 |
+
$html3 = wppa_status_field( $slug2 );
|
2468 |
+
$html4 = wppa_togo_field( $slug2 );
|
2469 |
+
$html = array($html1, $html2, $html3, $html4);
|
2470 |
+
wppa_setting_new(false, '8', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
|
2471 |
+
|
2472 |
+
$name = __('Remake Index Albums', 'wp-photo-album-plus');
|
2473 |
+
$desc = __('Remakes the index database table for albums.', 'wp-photo-album-plus');
|
2474 |
+
$help = '';
|
2475 |
+
$slug2 = 'wppa_remake_index_albums';
|
2476 |
+
$html1 = wppa_cronjob_button( $slug2 );// . __('ad inf', 'wp-photo-album-plus') . wppa_checkbox( $slug2.'_ad_inf' );
|
2477 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2478 |
+
$html3 = wppa_status_field( $slug2 );
|
2479 |
+
$html4 = wppa_togo_field( $slug2 );
|
2480 |
+
$html = array($html1, $html2, $html3, $html4);
|
2481 |
+
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
2482 |
+
|
2483 |
+
$name = __('Remake Index Photos', 'wp-photo-album-plus');
|
2484 |
+
$desc = __('Remakes the index database table for photos.', 'wp-photo-album-plus');
|
2485 |
+
$help = '';
|
2486 |
+
$slug2 = 'wppa_remake_index_photos';
|
2487 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2488 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2489 |
+
$html3 = wppa_status_field( $slug2 );
|
2490 |
+
$html4 = wppa_togo_field( $slug2 );
|
2491 |
+
$html = array($html1, $html2, $html3, $html4);
|
2492 |
+
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
2493 |
+
|
2494 |
+
$name = __('Clean Index', 'wp-photo-album-plus');
|
2495 |
+
$desc = __('Remove obsolete entries from index db table.', 'wp-photo-album-plus');
|
2496 |
+
$help = '';
|
2497 |
+
$slug2 = 'wppa_cleanup_index';
|
2498 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2499 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2500 |
+
$html3 = wppa_status_field( $slug2 );
|
2501 |
+
$html4 = wppa_togo_field( $slug2 );
|
2502 |
+
$html = array($html1, $html2, $html3, $html4);
|
2503 |
+
wppa_setting_new(false, '11', $name, $desc, $html, $help);
|
2504 |
+
|
2505 |
+
$fs = wppa_get_option('wppa_file_system');
|
2506 |
+
if ( ! $fs ) {
|
2507 |
+
$fs = 'flat';
|
2508 |
+
wppa_update_option('wppa_file_system', 'flat');
|
2509 |
+
}
|
2510 |
+
if ( $fs == 'flat' || $fs == 'to-tree' ) {
|
2511 |
+
$name = __('Convert to tree', 'wp-photo-album-plus');
|
2512 |
+
$desc = __('Convert filesystem to tree structure.', 'wp-photo-album-plus');
|
2513 |
+
}
|
2514 |
+
if ( $fs == 'tree' || $fs == 'to-flat' ) {
|
2515 |
+
$name = __('Convert to flat', 'wp-photo-album-plus');
|
2516 |
+
$desc = __('Convert filesystem to flat structure.', 'wp-photo-album-plus');
|
2517 |
+
}
|
2518 |
+
$help = __('If you want to go back to a wppa+ version prior to 5.0.16, you MUST convert to flat first.', 'wp-photo-album-plus');
|
2519 |
+
$slug2 = 'wppa_file_system';
|
2520 |
+
$html1 = '';
|
2521 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2522 |
+
$html3 = wppa_status_field( $slug2 );
|
2523 |
+
$html4 = wppa_togo_field( $slug2 );
|
2524 |
+
$html = array($html1, $html2, $html3, $html4);
|
2525 |
+
wppa_setting_new(false, '12', $name, $desc, $html, $help);
|
2526 |
+
|
2527 |
+
$name = __('Remake', 'wp-photo-album-plus');
|
2528 |
+
$desc = __('Remake the photofiles from photo sourcefiles.', 'wp-photo-album-plus');
|
2529 |
+
$help = __('This action will remake the fullsize images, thumbnail images, and will refresh the iptc and exif data for all photos where the source is found in the corresponding album sub-directory of the source directory.', 'wp-photo-album-plus');
|
2530 |
+
$slug1 = 'wppa_remake_skip_one';
|
2531 |
+
$slug2 = 'wppa_remake';
|
2532 |
+
$html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'remake_skip_one', '0', true );
|
2533 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2534 |
+
$html3 = wppa_status_field( $slug2 );
|
2535 |
+
$html4 = wppa_togo_field( $slug2 );
|
2536 |
+
$html = array($html1, $html2, $html3, $html4);
|
2537 |
+
wppa_setting_new(false, '13', $name, $desc, $html, $help);
|
2538 |
+
|
2539 |
+
$name = __('Orientation only', 'wp-photo-album-plus');
|
2540 |
+
$desc = __('Remake non standard orientated photos only.', 'wp-photo-album-plus');
|
2541 |
+
$help = '';
|
2542 |
+
$slug1 = '';
|
2543 |
+
$slug2 = 'wppa_remake_orientation_only';
|
2544 |
+
$html1 = '';
|
2545 |
+
$html2 = wppa_checkbox( $slug2 );
|
2546 |
+
$html3 = wppa_status_field( $slug2 );
|
2547 |
+
$html4 = wppa_togo_field( $slug2 );
|
2548 |
+
$html = array($html1, $html2, $html3, $html4);
|
2549 |
+
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
2550 |
+
|
2551 |
+
$name = __('Missing only', 'wp-photo-album-plus');
|
2552 |
+
$desc = __('Remake missing photofiles only.', 'wp-photo-album-plus');
|
2553 |
+
$help = '';
|
2554 |
+
$slug1 = '';
|
2555 |
+
$slug2 = 'wppa_remake_missing_only';
|
2556 |
+
$html1 = '';
|
2557 |
+
$html2 = wppa_checkbox( $slug2 );
|
2558 |
+
$html3 = wppa_status_field( $slug2 );
|
2559 |
+
$html4 = wppa_togo_field( $slug2 );
|
2560 |
+
$html = array($html1, $html2, $html3, $html4);
|
2561 |
+
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
2562 |
+
|
2563 |
+
$name = __('Recalc sizes', 'wp-photo-album-plus');
|
2564 |
+
$desc = __('Recalculate photosizes and save to db.', 'wp-photo-album-plus');
|
2565 |
+
$help = '';
|
2566 |
+
$slug2 = 'wppa_comp_sizes';
|
2567 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2568 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2569 |
+
$html3 = wppa_status_field( $slug2 );
|
2570 |
+
$html4 = wppa_togo_field( $slug2 );
|
2571 |
+
$html = array($html1, $html2, $html3, $html4);
|
2572 |
+
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
2573 |
+
|
2574 |
+
$name = __('Renew album crypt', 'wp-photo-album-plus');
|
2575 |
+
$desc = __('Renew album encrcryption codes.', 'wp-photo-album-plus');
|
2576 |
+
$help = '';
|
2577 |
+
$slug2 = 'wppa_crypt_albums';
|
2578 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2579 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2580 |
+
$html3 = wppa_status_field( $slug2 );
|
2581 |
+
$html4 = wppa_togo_field( $slug2 );
|
2582 |
+
$html = array($html1, $html2, $html3, $html4);
|
2583 |
+
wppa_setting_new(false, '17', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
2584 |
+
|
2585 |
+
$name = __('Renew album crypt every', 'wp-photo-album-plus');
|
2586 |
+
$desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
|
2587 |
+
$help = __('The periodic times are an approximation', 'wp-photo-album-plus');
|
2588 |
+
$slug = 'wppa_crypt_albums_every';
|
2589 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus'),
|
2590 |
+
__('hour', 'wp-photo-album-plus'),
|
2591 |
+
__('day', 'wp-photo-album-plus'),
|
2592 |
+
__('week', 'wp-photo-album-plus'),
|
2593 |
+
__('month', 'wp-photo-album-plus'),
|
2594 |
+
);
|
2595 |
+
$vals = array( '0', '1', '24', '168', '720' );
|
2596 |
+
$html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
|
2597 |
+
wppa_setting_new(false, '18', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
2598 |
Â
|
2599 |
+
$name = __('Renew photo crypt', 'wp-photo-album-plus');
|
2600 |
+
$desc = __('Renew photo encrcryption codes.', 'wp-photo-album-plus');
|
2601 |
+
$help = '';
|
2602 |
+
$slug2 = 'wppa_crypt_photos';
|
2603 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2604 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2605 |
+
$html3 = wppa_status_field( $slug2 );
|
2606 |
+
$html4 = wppa_togo_field( $slug2 );
|
2607 |
+
$html = array($html1, $html2, $html3, $html4);
|
2608 |
+
wppa_setting_new(false, '19', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
2609 |
+
|
2610 |
+
$name = __('Renew photo crypt every', 'wp-photo-album-plus');
|
2611 |
+
$desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
|
2612 |
+
$help = __('The periodic times are an approximation', 'wp-photo-album-plus');
|
2613 |
+
$slug = 'wppa_crypt_photos_every';
|
2614 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus'),
|
2615 |
+
__('hour', 'wp-photo-album-plus'),
|
2616 |
+
__('day', 'wp-photo-album-plus'),
|
2617 |
+
__('week', 'wp-photo-album-plus'),
|
2618 |
+
__('month', 'wp-photo-album-plus'),
|
2619 |
+
);
|
2620 |
+
$vals = array( '0', '1', '24', '168', '720' );
|
2621 |
+
$html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
|
2622 |
+
wppa_setting_new(false, '20', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
2623 |
Â
|
2624 |
+
$name = __('Create orietation sources', 'wp-photo-album-plus');
|
2625 |
+
$desc = __('Creates correctly oriented pseudo source file.', 'wp-photo-album-plus');
|
2626 |
+
$help = '';
|
2627 |
+
$slug1 = 'wppa_create_o1_files_skip_one';
|
2628 |
+
$slug2 = 'wppa_create_o1_files';
|
2629 |
+
$html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'create_o1_files_skip_one', '0', true );
|
2630 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2631 |
+
$html3 = wppa_status_field( $slug2 );
|
2632 |
+
$html4 = wppa_togo_field( $slug2 );
|
2633 |
+
$html = array($html1, $html2, $html3, $html4);
|
2634 |
+
wppa_setting_new(false, '21', $name, $desc, $html, $help);
|
2635 |
+
|
2636 |
+
$name = __('Clear ratings', 'wp-photo-album-plus');
|
2637 |
+
$desc = __('Reset all ratings.', 'wp-photo-album-plus');
|
2638 |
+
$help = __('WARNING: If checked, this will clear all ratings in the system!', 'wp-photo-album-plus');
|
2639 |
+
$slug = 'wppa_rating_clear';
|
2640 |
+
$html1 = '';
|
2641 |
+
$html2 = wppa_ajax_button('', 'rating_clear');
|
2642 |
+
$html3 = '';
|
2643 |
+
$html4 = '';
|
2644 |
+
$html = array($html1, $html2, $html3, $html4);
|
2645 |
+
wppa_setting_new(false, '22', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
2646 |
+
|
2647 |
+
$name = __('Clear viewcounts', 'wp-photo-album-plus');
|
2648 |
+
$desc = __('Reset all viewcounts.', 'wp-photo-album-plus');
|
2649 |
+
$help = __('WARNING: If checked, this will clear all viewcounts in the system!', 'wp-photo-album-plus');
|
2650 |
+
$slug = 'wppa_viewcount_clear';
|
2651 |
+
$html1 = '';
|
2652 |
+
$html2 = wppa_ajax_button('', 'viewcount_clear');
|
2653 |
+
$html3 = '';
|
2654 |
+
$html4 = '';
|
2655 |
+
$html = array($html1, $html2, $html3, $html4);
|
2656 |
+
wppa_setting_new(false, '23', $name, $desc, $html, $help);
|
2657 |
+
|
2658 |
+
$name = __('Reset IPTC', 'wp-photo-album-plus');
|
2659 |
+
$desc = __('Clear all IPTC data.', 'wp-photo-album-plus');
|
2660 |
+
$help = __('WARNING: If checked, this will clear all IPTC data in the system!', 'wp-photo-album-plus');
|
2661 |
+
$slug = 'wppa_iptc_clear';
|
2662 |
+
$html1 = '';
|
2663 |
+
$html2 = wppa_ajax_button('', 'iptc_clear');
|
2664 |
+
$html3 = '';
|
2665 |
+
$html4 = '';
|
2666 |
+
$html = array($html1, $html2, $html3, $html4);
|
2667 |
+
wppa_setting_new(false, '24', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
2668 |
+
|
2669 |
+
$name = __('Reset EXIF', 'wp-photo-album-plus');
|
2670 |
+
$desc = __('Clear all EXIF data.', 'wp-photo-album-plus');
|
2671 |
+
$help = __('WARNING: If checked, this will clear all EXIF data in the system!', 'wp-photo-album-plus');
|
2672 |
+
$slug = 'wppa_exif_clear';
|
2673 |
+
$html1 = '';
|
2674 |
+
$html2 = wppa_ajax_button('', 'exif_clear');
|
2675 |
+
$html3 = '';
|
2676 |
+
$html4 = '';
|
2677 |
+
$html = array($html1, $html2, $html3, $html4);
|
2678 |
+
wppa_setting_new(false, '25', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
|
2679 |
+
|
2680 |
+
$name = __('Apply Default Photoname', 'wp-photo-album-plus');
|
2681 |
+
$desc = __('Apply Default photo name on all photos in the system.', 'wp-photo-album-plus');
|
2682 |
+
$help = __('Puts the content of Table IX-D13 in all photo name.', 'wp-photo-album-plus');
|
2683 |
+
$slug2 = 'wppa_apply_default_photoname_all';
|
2684 |
+
$html1 = '';
|
2685 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2686 |
+
$html3 = wppa_status_field( $slug2 );
|
2687 |
+
$html4 = wppa_togo_field( $slug2 );
|
2688 |
+
$html = array($html1, $html2, $html3, $html4);
|
2689 |
+
wppa_setting_new(false, '26', $name, $desc, $html, $help);
|
2690 |
+
|
2691 |
+
$name = __('Apply New Photodesc', 'wp-photo-album-plus');
|
2692 |
+
$desc = __('Apply New photo description on all photos in the system.', 'wp-photo-album-plus');
|
2693 |
+
$help = __('Puts the content of Table IX-D5 in all photo descriptions.', 'wp-photo-album-plus');
|
2694 |
+
$slug2 = 'wppa_apply_new_photodesc_all';
|
2695 |
+
$html1 = '';
|
2696 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2697 |
+
$html3 = wppa_status_field( $slug2 );
|
2698 |
+
$html4 = wppa_togo_field( $slug2 );
|
2699 |
+
$html = array($html1, $html2, $html3, $html4);
|
2700 |
+
wppa_setting_new(false, '27', $name, $desc, $html, $help);
|
2701 |
+
|
2702 |
+
$name = __('Append to photodesc', 'wp-photo-album-plus');
|
2703 |
+
$desc = __('Append this text to all photo descriptions.', 'wp-photo-album-plus');
|
2704 |
+
$help = __('Appends a space character and the given text to the description of all photos.', 'wp-photo-album-plus');
|
2705 |
+
$help .= '<br />'.__('First edit the text to append, click outside the edit window and wait for the green checkmark to appear. Then click the Start! button.', 'wp-photo-album-plus');
|
2706 |
+
$slug1 = 'wppa_append_text';
|
2707 |
+
$slug2 = 'wppa_append_to_photodesc';
|
2708 |
+
$html1 = wppa_input( $slug1, '200px' );
|
2709 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2710 |
+
$html3 = wppa_status_field( $slug2 );
|
2711 |
+
$html4 = wppa_togo_field( $slug2 );
|
2712 |
+
$html = array($html1, $html2, $html3, $html4);
|
2713 |
+
wppa_setting_new(false, '28', $name, $desc, $html, $help);
|
2714 |
+
|
2715 |
+
$name = __('Remove from photodesc', 'wp-photo-album-plus');
|
2716 |
+
$desc = __('Remove this text from all photo descriptions.', 'wp-photo-album-plus');
|
2717 |
+
$help = __('Removes all occurrencies of the given text from the description of all photos.', 'wp-photo-album-plus');
|
2718 |
+
$help .= '<br />'.__('First edit the text to remove, click outside the edit window and wait for the green checkmark to appear. Then click the Start! button.', 'wp-photo-album-plus');
|
2719 |
+
$slug1 = 'wppa_remove_text';
|
2720 |
+
$slug2 = 'wppa_remove_from_photodesc';
|
2721 |
+
$html1 = wppa_input( $slug1, '200px' );
|
2722 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2723 |
+
$html3 = wppa_status_field( $slug2 );
|
2724 |
+
$html4 = wppa_togo_field( $slug2 );
|
2725 |
+
$html = array($html1, $html2, $html3, $html4);
|
2726 |
+
wppa_setting_new(false, '29', $name, $desc, $html, $help);
|
2727 |
+
|
2728 |
+
$name = __('Remove empty albums', 'wp-photo-album-plus');
|
2729 |
+
$desc = __('Removes albums that are not used.', 'wp-photo-album-plus');
|
2730 |
+
$help = __('Removes all albums that have no photos and no sub albums in it.', 'wp-photo-album-plus');
|
2731 |
+
$slug2 = 'wppa_remove_empty_albums';
|
2732 |
+
$html1 = '';
|
2733 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2734 |
+
$html3 = wppa_status_field( $slug2 );
|
2735 |
+
$html4 = wppa_togo_field( $slug2 );
|
2736 |
+
$html = array($html1, $html2, $html3, $html4);
|
2737 |
+
wppa_setting_new(false, '30', $name, $desc, $html, $help);
|
2738 |
+
|
2739 |
+
$name = __('Remove file-ext', 'wp-photo-album-plus');
|
2740 |
+
$desc = __('Remove possible file extension from photo name.', 'wp-photo-album-plus');
|
2741 |
+
$help = __('This may be required for old photos, uploaded when the option to set the name to the filename without extension was not yet available/selected.', 'wp-photo-album-plus');
|
2742 |
+
$slug2 = 'wppa_remove_file_extensions';
|
2743 |
+
$html1 = '';
|
2744 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2745 |
+
$html3 = wppa_status_field( $slug2 );
|
2746 |
+
$html4 = wppa_togo_field( $slug2 );
|
2747 |
+
$html = array($html1, $html2, $html3, $html4);
|
2748 |
+
wppa_setting_new(false, '31', $name, $desc, $html, $help);
|
2749 |
+
|
2750 |
+
$name = __('Re-add file-ext', 'wp-photo-album-plus');
|
2751 |
+
$desc = __('Revert the <i>Remove file-ext</i> action.', 'wp-photo-album-plus');
|
2752 |
+
$help = '';
|
2753 |
+
$slug2 = 'wppa_readd_file_extensions';
|
2754 |
+
$html1 = '';
|
2755 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2756 |
+
$html3 = wppa_status_field( $slug2 );
|
2757 |
+
$html4 = wppa_togo_field( $slug2 );
|
2758 |
+
$html = array($html1, $html2, $html3, $html4);
|
2759 |
+
wppa_setting_new(false, '32', $name, $desc, $html, $help);
|
2760 |
+
|
2761 |
+
$name = __('All to lower', 'wp-photo-album-plus');
|
2762 |
+
$desc = __('Convert all file-extensions to lowercase.', 'wp-photo-album-plus');
|
2763 |
+
$help = __('Affects display files, thumbnail files, and saved extensions in database table. Leaves sourcefiles untouched', 'wp-photo-album-plus');
|
2764 |
+
$help .= '<br />'.__('If both upper and lowercase files exist, the file with the uppercase extension will be removed.', 'wp-photo-album-plus');
|
2765 |
+
$slug2 = 'wppa_all_ext_to_lower';
|
2766 |
+
$html1 = '';
|
2767 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2768 |
+
$html3 = wppa_status_field( $slug2 );
|
2769 |
+
$html4 = wppa_togo_field( $slug2 );
|
2770 |
+
$html = array($html1, $html2, $html3, $html4);
|
2771 |
+
wppa_setting_new(false, '33', $name, $desc, $html, $help);
|
2772 |
+
|
2773 |
+
$name = __('Watermark all', 'wp-photo-album-plus');
|
2774 |
+
$desc = __('Apply watermark according to current settings to all photos.', 'wp-photo-album-plus');
|
2775 |
+
$help = __('See Tab Watermark for the current watermark settings', 'wp-photo-album-plus');
|
2776 |
+
$slug2 = 'wppa_watermark_all';
|
2777 |
+
$html1 = '';
|
2778 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2779 |
+
$html3 = wppa_status_field( $slug2 );
|
2780 |
+
$html4 = wppa_togo_field( $slug2 );
|
2781 |
+
$html = array($html1, $html2, $html3, $html4);
|
2782 |
+
wppa_setting_new(false, '34', $name, $desc, $html, $help, wppa_switch( 'watermark_on' ));
|
2783 |
+
|
2784 |
+
$name = __('Create all autopages', 'wp-photo-album-plus');
|
2785 |
+
$desc = __('Create all the pages to display slides individually.', 'wp-photo-album-plus');
|
2786 |
+
$help = __('See also Table IV-A10.', 'wp-photo-album-plus');
|
2787 |
+
$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');
|
2788 |
+
$slug2 = 'wppa_create_all_autopages';
|
2789 |
+
$html1 = '';
|
2790 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2791 |
+
$html3 = wppa_status_field( $slug2 );
|
2792 |
+
$html4 = wppa_togo_field( $slug2 );
|
2793 |
+
$html = array($html1, $html2, $html3, $html4);
|
2794 |
+
wppa_setting_new(false, '35', $name, $desc, $html, $help);
|
2795 |
+
|
2796 |
+
$name = __('Delete all autopages', 'wp-photo-album-plus');
|
2797 |
+
$desc = __('Delete all the pages to display slides individually.', 'wp-photo-album-plus');
|
2798 |
+
$help = __('See also Table IV-A10.', 'wp-photo-album-plus');
|
2799 |
+
$help .= '';
|
2800 |
+
$slug2 = 'wppa_delete_all_autopages';
|
2801 |
+
$html1 = '';
|
2802 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2803 |
+
$html3 = wppa_status_field( $slug2 );
|
2804 |
+
$html4 = wppa_togo_field( $slug2 );
|
2805 |
+
$html = array($html1, $html2, $html3, $html4);
|
2806 |
+
wppa_setting_new(false, '36', $name, $desc, $html, $help);
|
2807 |
+
|
2808 |
+
$name = __('Leading zeroes', 'wp-photo-album-plus');
|
2809 |
+
$desc = __('If photoname numeric, add leading zeros', 'wp-photo-album-plus');
|
2810 |
+
$help = __('You can extend the name with leading zeros, so alphabetic sort becomes equal to numeric sort order.', 'wp-photo-album-plus');
|
2811 |
+
$slug1 = 'wppa_zero_numbers';
|
2812 |
+
$slug2 = 'wppa_leading_zeros';
|
2813 |
+
$html1 = wppa_input( $slug1, '50px' ).__('Total chars', 'wp-photo-album-plus');
|
2814 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2815 |
+
$html3 = wppa_status_field( $slug2 );
|
2816 |
+
$html4 = wppa_togo_field( $slug2 );
|
2817 |
+
$html = array($html1, $html2, $html3, $html4);
|
2818 |
+
wppa_setting_new(false, '37', $name, $desc, $html, $help);
|
2819 |
+
|
2820 |
+
$name = __('Add GPX tag', 'wp-photo-album-plus');
|
2821 |
+
$desc = __('Make sure photos with gpx data have a Gpx tag', 'wp-photo-album-plus');
|
2822 |
+
$help = '';
|
2823 |
+
$slug2 = 'wppa_add_gpx_tag';
|
2824 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2825 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2826 |
+
$html3 = wppa_status_field( $slug2 );
|
2827 |
+
$html4 = wppa_togo_field( $slug2 );
|
2828 |
+
$html = array($html1, $html2, $html3, $html4);
|
2829 |
+
wppa_setting_new(false, '38', $name, $desc, $html, $help);
|
2830 |
+
|
2831 |
+
$name = __('Add HD tag', 'wp-photo-album-plus');
|
2832 |
+
$desc = __('Make sure photos >= 1920 x 1080 have a HD tag', 'wp-photo-album-plus');
|
2833 |
+
$help = '';
|
2834 |
+
$slug2 = 'wppa_add_hd_tag';
|
2835 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
2836 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2837 |
+
$html3 = wppa_status_field( $slug2 );
|
2838 |
+
$html4 = wppa_togo_field( $slug2 );
|
2839 |
+
$html = array($html1, $html2, $html3, $html4);
|
2840 |
+
wppa_setting_new(false, '39', $name, $desc, $html, $help);
|
2841 |
+
|
2842 |
+
if ( function_exists( 'ewww_image_optimizer') ) {
|
2843 |
+
$name = __('Optimize files', 'wp-photo-album-plus');
|
2844 |
+
$desc = __('Optimize with EWWW image optimizer', 'wp-photo-album-plus');
|
2845 |
+
$help = '';
|
2846 |
+
$slug2 = 'wppa_optimize_ewww';
|
2847 |
+
$html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'optimize_ewww_skip_one', '0', true );
|
2848 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2849 |
+
$html3 = wppa_status_field( $slug2 );
|
2850 |
+
$html4 = wppa_togo_field( $slug2 );
|
2851 |
+
$html = array($html1, $html2, $html3, $html4);
|
2852 |
+
wppa_setting_new(false, '40', $name, $desc, $html, $help);
|
2853 |
+
}
|
2854 |
Â
|
2855 |
+
$name = __('Edit tag', 'wp-photo-album-plus');
|
2856 |
+
$desc = __('Globally change a tagname.', 'wp-photo-album-plus');
|
2857 |
+
$help = '';
|
2858 |
+
$slug1 = 'wppa_tag_to_edit';
|
2859 |
+
$slug2 = 'wppa_new_tag_value';
|
2860 |
+
$slug3 = 'wppa_edit_tag';
|
2861 |
+
$tags = wppa_get_taglist();
|
2862 |
+
$opts = array(__('-select a tag-', 'wp-photo-album-plus'));
|
2863 |
+
$vals = array( '' );
|
2864 |
+
if ( $tags ) foreach( array_keys( $tags ) as $tag ) {
|
2865 |
+
$opts[] = $tag;
|
2866 |
+
$vals[] = $tag;
|
2867 |
+
}
|
2868 |
+
$html1 = '<div><small style="float:left;margin-right:5px;" >'.__('Tag:', 'wp-photo-album-plus').'</small>'.wppa_select( $slug1, $opts, $vals, '', '', false, '', '600').'</div>';
|
2869 |
+
$html2 = '<div style="clear:both" ><small style="float:left;margin-right:5px;" >'.__('Change to:', 'wp-photo-album-plus').'</small>'.wppa_edit( $slug2, trim( wppa_get_option( $slug2 ), ',' ), '75%' ).'</div>';
|
2870 |
+
$html3 = wppa_maintenance_button( $slug3 );
|
2871 |
+
$html4 = wppa_status_field( $slug3 );
|
2872 |
+
$html5 = wppa_togo_field( $slug3 );
|
2873 |
+
$html = array( $html1 . '<br />' . $html2, $html3, $html4, $html5 );
|
2874 |
+
wppa_setting_new( false, '41', $name, $desc, $html, $help);
|
2875 |
+
|
2876 |
+
$name = __('Synchronize Cloudinary', 'wp-photo-album-plus');
|
2877 |
+
$desc = __('Removes/adds images in the cloud.', 'wp-photo-album-plus');
|
2878 |
+
$help = __('Removes old images and verifies/adds new images to Cloudinary.', 'wp-photo-album-plus');
|
2879 |
+
$help .= '<br />'.__('See Table IX-K4.7 for the configured lifetime.', 'wp-photo-album-plus');
|
2880 |
+
$slug2 = 'wppa_sync_cloud';
|
2881 |
+
$html1 = '';
|
2882 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2883 |
+
$html3 = wppa_status_field( $slug2 );
|
2884 |
+
$html4 = wppa_togo_field( $slug2 );
|
2885 |
+
$html = array($html1, $html2, $html3, $html4);
|
2886 |
+
wppa_setting_new(false, '42', $name, $desc, $html, $help);
|
2887 |
+
|
2888 |
+
$name = __('Fix tags', 'wp-photo-album-plus');
|
2889 |
+
$desc = __('Make sure photo tags format is uptodate', 'wp-photo-album-plus');
|
2890 |
+
$help = __('Fixes tags to be conform current database rules.', 'wp-photo-album-plus');
|
2891 |
+
$slug2 = 'wppa_sanitize_tags';
|
2892 |
+
$html1 = '';
|
2893 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2894 |
+
$html3 = wppa_status_field( $slug2 );
|
2895 |
+
$html4 = wppa_togo_field( $slug2 );
|
2896 |
+
$html = array($html1, $html2, $html3, $html4);
|
2897 |
+
wppa_setting_new(false, '43', $name, $desc, $html, $help);
|
2898 |
+
|
2899 |
+
$name = __('Fix cats', 'wp-photo-album-plus');
|
2900 |
+
$desc = __('Make sure album cats format is uptodate', 'wp-photo-album-plus');
|
2901 |
+
$help = __('Fixes cats to be conform current database rules.', 'wp-photo-album-plus');
|
2902 |
+
$slug2 = 'wppa_sanitize_cats';
|
2903 |
+
$html1 = '';
|
2904 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2905 |
+
$html3 = wppa_status_field( $slug2 );
|
2906 |
+
$html4 = wppa_togo_field( $slug2 );
|
2907 |
+
$html = array($html1, $html2, $html3, $html4);
|
2908 |
+
wppa_setting_new(false, '44', $name, $desc, $html, $help);
|
2909 |
+
|
2910 |
+
$name = __('Set owner to name', 'wp-photo-album-plus');
|
2911 |
+
$desc = __('If photoname equals user display name, set him owner.', 'wp-photo-album-plus');
|
2912 |
+
$help = '';
|
2913 |
+
$slug2 = 'wppa_owner_to_name_proc';
|
2914 |
+
$html1 = '';
|
2915 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2916 |
+
$html3 = wppa_status_field( $slug2 );
|
2917 |
+
$html4 = wppa_togo_field( $slug2 );
|
2918 |
+
$html = array($html1, $html2, $html3, $html4);
|
2919 |
+
wppa_setting_new(false, '45', $name, $desc, $html, $help);
|
2920 |
+
|
2921 |
+
$name = __('Move all photos', 'wp-photo-album-plus');
|
2922 |
+
$desc = __('Move all photos from one album to another album.', 'wp-photo-album-plus');
|
2923 |
+
$help = '';
|
2924 |
+
$slug2 = 'wppa_move_all_photos';
|
2925 |
+
$html1 = '';
|
2926 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
2927 |
+
$html3 = wppa_status_field( $slug2 );
|
2928 |
+
$html4 = wppa_togo_field( $slug2 );
|
2929 |
+
$html = array($html1, $html2, $html3, $html4);
|
2930 |
+
wppa_setting_new(false, '46', $name, $desc, $html, $help);
|
2931 |
+
|
2932 |
+
if ( wppa_get_total_album_count() > 200 ) { // Many albums: input id
|
2933 |
+
|
2934 |
+
$name = __('From', 'wp-photo-album-plus');
|
2935 |
+
$desc = __('Move from album number', 'wp-photo-album-plus');
|
2936 |
+
$help = '';
|
2937 |
+
$slug = 'wppa_move_all_photos_from';
|
2938 |
+
$html = wppa_input($slug, '100px' );
|
2939 |
+
$html = array($html, '', '', '');
|
2940 |
+
wppa_setting_new(false, '47', $name, $desc, $html, $help);
|
2941 |
+
|
2942 |
+
$name = __('To', 'wp-photo-album-plus');
|
2943 |
+
$desc = __('Move to album number', 'wp-photo-album-plus');
|
2944 |
+
$help = '';
|
2945 |
+
$slug = 'wppa_move_all_photos_to';
|
2946 |
+
$html = wppa_input($slug, '100px' );
|
2947 |
+
$html = array($html, '', '', '');
|
2948 |
+
wppa_setting_new(false, '48', $name, $desc, $html, $help);
|
2949 |
Â
|
2950 |
+
}
|
2951 |
+
else { // Few albums: selectionbox
|
2952 |
+
|
2953 |
+
$name = __('From', 'wp-photo-album-plus');
|
2954 |
+
$desc = __('Move from album', 'wp-photo-album-plus');
|
2955 |
+
$help = '';
|
2956 |
+
$slug = 'wppa_move_all_photos_from';
|
2957 |
+
$html = '<select' .
|
2958 |
+
' id=""' .
|
2959 |
+
' onchange="wppaAjaxUpdateOptionValue(\'move_all_photos_from\',this)"' .
|
2960 |
+
' name="move_all_photos_to"' .
|
2961 |
+
' style="float:left;max-width:220px;"' .
|
2962 |
+
' >'.
|
2963 |
+
wppa_album_select_a(array( 'addpleaseselect'=>true,
|
2964 |
+
'path'=>true,
|
2965 |
+
'selected'=>wppa_get_option('wppa_move_all_photos_from')
|
2966 |
+
)).
|
2967 |
+
'</select>' .
|
2968 |
+
'<img' .
|
2969 |
+
' id="img_move_all_photos_from"' .
|
2970 |
+
' class=""' .
|
2971 |
+
' src="'.wppa_get_imgdir().'star.ico"' .
|
2972 |
+
' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
|
2973 |
+
' style="padding-left:4px; float:left; height:16px; width:16px;"' .
|
2974 |
+
' />';
|
2975 |
+
$html = array($html, '', '', '');
|
2976 |
+
wppa_setting_new(false, '49', $name, $desc, $html, $help);
|
2977 |
+
|
2978 |
+
$name = __('To', 'wp-photo-album-plus');
|
2979 |
+
$desc = __('Move to album', 'wp-photo-album-plus');
|
2980 |
+
$help = '';
|
2981 |
+
$slug = 'wppa_move_all_photos_to';
|
2982 |
+
$html = '<select' .
|
2983 |
+
' id=""' .
|
2984 |
+
' onchange="wppaAjaxUpdateOptionValue(\'move_all_photos_to\',this)"' .
|
2985 |
+
' name="move_all_photos_to"' .
|
2986 |
+
' style="float:left;max-width:220px;"' .
|
2987 |
+
' >'.
|
2988 |
+
wppa_album_select_a(array( 'addpleaseselect'=>true,
|
2989 |
+
'path'=>true,
|
2990 |
+
'selected'=>wppa_get_option('wppa_move_all_photos_to')
|
2991 |
+
)).
|
2992 |
+
'</select>' .
|
2993 |
+
'<img' .
|
2994 |
+
' id="img_move_all_photos_to"' .
|
2995 |
+
' class=""' .
|
2996 |
+
' src="'.wppa_get_imgdir().'star.ico"' .
|
2997 |
+
' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
|
2998 |
+
' style="padding-left:4px; float:left; height:16px; width:16px;"' .
|
2999 |
+
' />';
|
3000 |
+
$html = array($html, '', '', '');
|
3001 |
+
wppa_setting_new(false, '50', $name, $desc, $html, $help);
|
3002 |
+
}
|
3003 |
Â
|
3004 |
+
$name = __('Remove hypens from photonames', 'wp-photo-album-plus');
|
3005 |
+
$desc = __('Remove all hyphens from all photo names and replace them by spaces', 'wp-photo-album-plus');
|
3006 |
+
$help = '';
|
3007 |
+
$slug2 = 'wppa_photos_hyphens_to_spaces';
|
3008 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
3009 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
3010 |
+
$html3 = wppa_status_field( $slug2 );
|
3011 |
+
$html4 = wppa_togo_field( $slug2 );
|
3012 |
+
$html = array($html1, $html2, $html3, $html4);
|
3013 |
+
wppa_setting_new(false, '51', $name, $desc, $html, $help);
|
3014 |
+
|
3015 |
+
$name = __('PNG to JPG', 'wp-photo-album-plus');
|
3016 |
+
$desc = __('Convert all .png files to .jpg files', 'wp-photo-album-plus');
|
3017 |
+
$help = '';
|
3018 |
+
$slug2 = 'wppa_png_to_jpg';
|
3019 |
+
$html1 = '';
|
3020 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
3021 |
+
$html3 = wppa_status_field( $slug2 );
|
3022 |
+
$html4 = wppa_togo_field( $slug2 );
|
3023 |
+
$html = array($html1, $html2, $html3, $html4);
|
3024 |
+
wppa_setting_new(false, '52', $name, $desc, $html, $help);
|
3025 |
+
|
3026 |
+
$name = __('Fix mp4 meta data', 'wp-photo-album-plus');
|
3027 |
+
$desc = __('Import framesize, creationdate and duration from mp4 video files', 'wp-photo-album-plus');
|
3028 |
+
$help = '';
|
3029 |
+
$slug2 = 'wppa_fix_mp4_meta';
|
3030 |
+
$html1 = '';
|
3031 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
3032 |
+
$html3 = wppa_status_field( $slug2 );
|
3033 |
+
$html4 = wppa_togo_field( $slug2 );
|
3034 |
+
$html = array($html1, $html2, $html3, $html4);
|
3035 |
+
wppa_setting_new(false, '53', $name, $desc, $html, $help);
|
3036 |
+
|
3037 |
+
$name = __('Fix user ids', 'wp-photo-album-plus');
|
3038 |
+
$desc = __('Fill in missing user ids to ratings and comments', 'wp-photo-album-plus');
|
3039 |
+
$help = __('Only used to update ratings and comments entered before version 7.3 to meet the new standards', 'wp-photo-album-plus');
|
3040 |
+
$slug2 = 'wppa_fix_userids';
|
3041 |
+
$html1 = wppa_cronjob_button( $slug2 );
|
3042 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
3043 |
+
$html3 = wppa_status_field( $slug2 );
|
3044 |
+
$html4 = wppa_togo_field( $slug2 );
|
3045 |
+
$html = array($html1, $html2, $html3, $html4);
|
3046 |
+
wppa_setting_new(false, '54', $name, $desc, $html, $help);
|
3047 |
+
|
3048 |
+
$name = __('Re-init custom and tags', 'wp-photo-album-plus');
|
3049 |
+
$desc = __('Re-initialize custom photo fields and default tags', 'wp-photo-album-plus');
|
3050 |
+
$help = '';
|
3051 |
+
$slug2 = 'wppa_fix_custom_tags';
|
3052 |
+
$html1 = '';
|
3053 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
3054 |
+
$html3 = wppa_status_field( $slug2 );
|
3055 |
+
$html4 = wppa_togo_field( $slug2 );
|
3056 |
+
$html = array($html1, $html2, $html3, $html4);
|
3057 |
+
wppa_setting_new(false, '55', $name, $desc, $html, $help);
|
3058 |
+
|
3059 |
+
if ( current_user_can( 'administrator' ) ) {
|
3060 |
+
$name = __('Custom album proc', 'wp-photo-album-plus');
|
3061 |
+
$desc = __('The php code to execute on all albums', 'wp-photo-album-plus');
|
3062 |
+
$help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
|
3063 |
+
$slug2 = 'wppa_custom_album_proc';
|
3064 |
+
$html1 = wppa_textarea( $slug2 );
|
3065 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
3066 |
+
$html3 = wppa_status_field( $slug2 );
|
3067 |
+
$html4 = wppa_togo_field( $slug2 );
|
3068 |
+
$html = array($html1, $html2, $html3, $html4);
|
3069 |
+
wppa_setting_new(false, '56', $name, $desc, $html, $help);
|
3070 |
+
|
3071 |
+
$name = __('Custom photo proc', 'wp-photo-album-plus');
|
3072 |
+
$desc = __('The php code to execute on all photos', 'wp-photo-album-plus');
|
3073 |
+
$help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
|
3074 |
+
$slug2 = 'wppa_custom_photo_proc';
|
3075 |
+
$html1 = wppa_textarea( $slug2 );
|
3076 |
+
$html2 = wppa_maintenance_button( $slug2 );
|
3077 |
+
$html3 = wppa_status_field( $slug2 );
|
3078 |
+
$html4 = wppa_togo_field( $slug2 );
|
3079 |
+
$html = array($html1, $html2, $html3, $html4);
|
3080 |
+
wppa_setting_new(false, '57', $name, $desc, $html, $help);
|
3081 |
+
}
|
3082 |
Â
|
3083 |
+
$name = __('List Logfile', 'wp-photo-album-plus');
|
3084 |
+
$desc = __('Show the content of wppa+ (error) log.', 'wp-photo-album-plus');
|
3085 |
+
$help = '';
|
3086 |
+
$slug1 = 'wppa_errorlog_purge';
|
3087 |
+
$slug2 = 'wppa_list_errorlog';
|
3088 |
+
$slug4 = 'wppa_logfile_on_menu';
|
3089 |
+
$html1 = wppa_ajax_button(__('Purge logfile', 'wp-photo-album-plus'), 'errorlog_purge', '0', true );
|
3090 |
+
$html2 = wppa_popup_button( $slug2 );
|
3091 |
+
$html3 = __('On menu', 'wp-photo-album-plus');
|
3092 |
+
$html4 = wppa_checkbox($slug4);
|
3093 |
+
$html = array($html1, $html2, $html3, $html4);
|
3094 |
+
wppa_setting_new(false, '58', $name, $desc, $html, $help);
|
3095 |
+
|
3096 |
+
$name = __('List Ratings', 'wp-photo-album-plus');
|
3097 |
+
$desc = __('Show the most recent ratings.', 'wp-photo-album-plus');
|
3098 |
+
$help = '';
|
3099 |
+
$slug1 = '';
|
3100 |
+
$slug2 = 'wppa_list_rating';
|
3101 |
+
$html1 = '';
|
3102 |
+
$html2 = wppa_popup_button( $slug2 );
|
3103 |
+
$html3 = '';
|
3104 |
+
$html4 = '';
|
3105 |
+
$html = array($html1, $html2, $html3, $html4);
|
3106 |
+
wppa_setting_new(false, '59', $name, $desc, $html, $help);
|
3107 |
+
|
3108 |
+
$name = __('List Index', 'wp-photo-album-plus');
|
3109 |
+
$desc = __('Show the content of the index table.', 'wp-photo-album-plus');
|
3110 |
+
$help = '';
|
3111 |
+
$slug1 = 'wppa_list_index_display_start';
|
3112 |
+
$slug2 = 'wppa_list_index';
|
3113 |
+
$html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus').'</small>'.wppa_input( $slug1, '150px' );
|
3114 |
+
$html2 = wppa_popup_button( $slug2 );
|
3115 |
+
$html3 = '';
|
3116 |
+
$html4 = '';
|
3117 |
+
$clas = '';
|
3118 |
+
$html = array($html1, $html2, $html3, $html4);
|
3119 |
+
wppa_setting_new(false, '60', $name, $desc, $html, $help);
|
3120 |
+
|
3121 |
+
$name = __('List active sessions', 'wp-photo-album-plus');
|
3122 |
+
$desc = __('Show the content of the sessions table.', 'wp-photo-album-plus');
|
3123 |
+
$help = '';
|
3124 |
+
$slug1 = '';
|
3125 |
+
$slug2 = 'wppa_list_session';
|
3126 |
+
$html1 = '';
|
3127 |
+
$html2 = wppa_popup_button( $slug2 );
|
3128 |
+
$html3 = '';
|
3129 |
+
$html4 = '';
|
3130 |
+
$html = array($html1, $html2, $html3, $html4);
|
3131 |
+
wppa_setting_new(false, '4', $name, $desc, $html, $help);
|
3132 |
+
|
3133 |
+
$name = __('List comments', 'wp-photo-album-plus');
|
3134 |
+
$desc = __('Show the content of the comments table.', 'wp-photo-album-plus');
|
3135 |
+
$help = '';
|
3136 |
+
$slug1 = 'wppa_list_comments_by';
|
3137 |
+
$slug2 = 'wppa_list_comments';
|
3138 |
+
$opts = array( 'Email', 'Name', 'Timestamp' );
|
3139 |
+
$vals = array( 'email', 'name', 'timestamp' );
|
3140 |
+
$html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus').'</small>'.wppa_select($slug1, $opts, $vals);
|
3141 |
+
$html2 = wppa_popup_button( $slug2 );
|
3142 |
+
$html3 = '';
|
3143 |
+
$html4 = '';
|
3144 |
+
$html = array($html1, $html2, $html3, $html4);
|
3145 |
+
wppa_setting_new(false, '61', $name, $desc, $html, $help);
|
3146 |
+
|
3147 |
+
wppa_setting_box_footer_new();
|
3148 |
+
}
|
3149 |
Â
|
3150 |
+
if ( $wppa_cur_tab == 'exif' ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3151 |
Â
|
3152 |
+
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
3153 |
+
__('Tag', 'wp-photo-album-plus') => 'auto;',
|
3154 |
+
__('Brand', 'wp-photo-album-plus') => 'auto;',
|
3155 |
+
__('Description', 'wp-photo-album-plus') => 'auto;',
|
3156 |
+
__('Status', 'wp-photo-album-plus') => 'auto;',
|
3157 |
+
__('Help', 'wp-photo-album-plus') => '24px;',
|
3158 |
+
);
|
3159 |
+
wppa_setting_box_header_new( 'exif', $coldef );
|
3160 |
+
|
3161 |
+
$labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_exif
|
3162 |
+
WHERE photo = '0'
|
3163 |
+
ORDER BY tag", ARRAY_A );
|
3164 |
+
|
3165 |
+
if ( is_array( $labels ) ) {
|
3166 |
+
$i = '1';
|
3167 |
+
foreach ( $labels as $label ) {
|
3168 |
+
$name = htmlspecialchars( $label['tag'] );
|
3169 |
+
|
3170 |
+
$desc = '';
|
3171 |
+
foreach ( $wppa_supported_camara_brands as $brand ) {
|
3172 |
+
$lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
|
3173 |
+
if ( $lbl ) {
|
3174 |
+
$desc .= '<br />' . $brand;
|
3175 |
+
}
|
3176 |
+
}
|
3177 |
Â
|
Â
|
|
Â
|
|
3178 |
Â
$help = '';
|
3179 |
+
$slug1 = 'wppa_exif_label_'.$name;
|
3180 |
+
$slug2 = 'wppa_exif_status_'.$name;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3181 |
Â
|
3182 |
+
$html1 = wppa_edit( $slug1, htmlspecialchars( $label['description'] ) );
|
3183 |
+
foreach ( $wppa_supported_camara_brands as $brand ) {
|
3184 |
+
$lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
|
3185 |
+
if ( $lbl ) {
|
3186 |
+
$html1 .= '<br /><span style="clear:left;float:left;" >' . $lbl . ':</span>';
|
3187 |
+
}
|
3188 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3189 |
Â
|
3190 |
+
$options = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
|
3191 |
+
$values = array('display', 'hide', 'option');
|
3192 |
+
$html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $options, $values);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3193 |
Â
$html = array($html1, $html2);
|
3194 |
+
wppa_setting_new(false, $i, $name, $desc, $html, $help);
|
3195 |
+
$i++;
|
3196 |
+
}
|
3197 |
+
}
|
3198 |
Â
|
3199 |
+
wppa_setting_box_footer_new();
|
3200 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3201 |
Â
|
3202 |
+
if ( $wppa_cur_tab == 'iptc' ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3203 |
Â
|
3204 |
+
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
3205 |
+
__('Tag', 'wp-photo-album-plus') => 'auto;',
|
3206 |
+
__('Description', 'wp-photo-album-plus') => 'auto;',
|
3207 |
+
__('Status', 'wp-photo-album-plus') => 'auto;',
|
3208 |
+
__('Help', 'wp-photo-album-plus') => '24px;',
|
3209 |
+
);
|
3210 |
+
wppa_setting_box_header_new('iptc', $coldef);
|
3211 |
+
|
3212 |
+
$labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_iptc
|
3213 |
+
WHERE photo = '0'
|
3214 |
+
ORDER BY tag", ARRAY_A );
|
3215 |
+
|
3216 |
+
if ( is_array( $labels ) ) {
|
3217 |
+
$i = '1';
|
3218 |
+
foreach ( $labels as $label ) {
|
3219 |
+
$name = htmlspecialchars( $label['tag'] );
|
3220 |
+
$desc = '';
|
3221 |
+
$help = '';
|
3222 |
+
$slug1 = 'wppa_iptc_label_'.$name;
|
3223 |
+
$slug2 = 'wppa_iptc_status_'.$name;
|
3224 |
+
$html1 = wppa_edit($slug1, htmlspecialchars( $label['description'] ));
|
3225 |
+
$options = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
|
3226 |
+
$values = array('display', 'hide', 'option');
|
3227 |
+
$html2 = wppa_select_e($slug2, $label['status'], $options, $values);
|
3228 |
+
wppa_setting_new(false, $i, $name, $html1, $html2, $help);
|
3229 |
+
$i++;
|
3230 |
+
}
|
3231 |
+
}
|
3232 |
Â
|
3233 |
+
wppa_setting_box_footer_new();
|
3234 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3235 |
Â
|
3236 |
+
if ( $wppa_cur_tab == 'gpx' ) {
|
3237 |
+
|
3238 |
+
wppa_setting_box_header_new('gpx');
|
3239 |
+
|
3240 |
+
$name = __('GPX Implementation', 'wp-photo-album-plus');
|
3241 |
+
$desc = __('The way the maps are produced.', 'wp-photo-album-plus');
|
3242 |
+
$help = __('Select the way the maps are produced.', 'wp-photo-album-plus');
|
3243 |
+
$slug = 'wppa_gpx_implementation';
|
3244 |
+
$opts = array( __('WPPA+ Embedded code', 'wp-photo-album-plus'), __('External plugin', 'wp-photo-album-plus') );
|
3245 |
+
$vals = array( 'wppa-plus-embedded', 'external-plugin' );
|
3246 |
+
$onch = 'wppaRefreshAfter()';
|
3247 |
+
$html = wppa_select($slug, $opts, $vals, $onch);
|
3248 |
+
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3249 |
+
|
3250 |
+
$name = __('Map height', 'wp-photo-album-plus');
|
3251 |
+
$desc = __('The height of the map display.', 'wp-photo-album-plus');
|
3252 |
+
$help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
|
3253 |
+
$slug = 'wppa_map_height';
|
3254 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3255 |
+
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
|
3256 |
+
|
3257 |
+
$name = __('Google maps API key', 'wp-photo-album-plus');
|
3258 |
+
$desc = __('Enter your Google maps api key here if you have one.', 'wp-photo-album-plus');
|
3259 |
+
$help = '';
|
3260 |
+
$slug = 'wppa_map_apikey';
|
3261 |
+
$html = wppa_input($slug, '300px', '');
|
3262 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
|
3263 |
+
|
3264 |
+
$name = __('GPX Shortcode', 'wp-photo-album-plus');
|
3265 |
+
$desc = __('The shortcode to be used for the gpx feature.', 'wp-photo-album-plus');
|
3266 |
+
$help = __('Enter / modify the shortcode to be generated for the gpx plugin. It must contain w#lat and w#lon as placeholders for the latitude and longitude.', 'wp-photo-album-plus');
|
3267 |
+
$help .= '<br />' . __('This item is required for using an external Google maps viewer plugin only', 'wp-photo-album-plus');
|
3268 |
+
$slug = 'wppa_gpx_shortcode';
|
3269 |
+
$html = wppa_input($slug, '500px');
|
3270 |
+
wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
|
3271 |
+
|
3272 |
+
$name = __('Zoom level', 'wp-photo-album-plus');
|
3273 |
+
$desc = __('The zoomlevel for GPX maps', 'wp-photo-album-plus');
|
3274 |
+
$help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
|
3275 |
+
$slug = 'wppa_geo_zoom';
|
3276 |
+
$opts = array('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25',);
|
3277 |
+
$vals = $opts;
|
3278 |
+
$html = wppa_select($slug, $opts, $vals);
|
3279 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
|
3280 |
+
|
3281 |
+
wppa_setting_box_footer_new();
|
3282 |
+
}
|
3283 |
Â
|
3284 |
+
if ( $wppa_cur_tab == 'watermark' ) {
|
3285 |
+
|
3286 |
+
wppa_setting_box_header_new('watermark');
|
3287 |
+
|
3288 |
+
$name = __('Watermark file', 'wp-photo-album-plus');
|
3289 |
+
$desc = __('The default watermarkfile to be used.', 'wp-photo-album-plus');
|
3290 |
+
$help = __('Watermark files are of type png and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/watermarks/';
|
3291 |
+
$help .= '<br />'.__('A suitable watermarkfile typically consists of a transparent background and a black text or drawing.', 'wp-photo-album-plus');
|
3292 |
+
$help .= '<br />'.sprintf(__('The watermark image will be overlaying the photo with %s%% transparency.', 'wp-photo-album-plus'), (100-wppa_opt( 'watermark_opacity' )));
|
3293 |
+
$help .= '<br />'.__('You may also select one of the textual watermark types at the bottom of the selection list.', 'wp-photo-album-plus');
|
3294 |
+
$slug = 'wppa_watermark_file';
|
3295 |
+
$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>';
|
3296 |
+
$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;" />';
|
3297 |
+
$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>';
|
3298 |
+
$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;" />';
|
3299 |
+
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
3300 |
+
|
3301 |
+
$name = __('Upload watermark', 'wp-photo-album-plus');
|
3302 |
+
$desc = __('Upload a new watermark file', 'wp-photo-album-plus');
|
3303 |
+
$help = '';
|
3304 |
+
$slug = 'wppa_watermark_file_upload';
|
3305 |
+
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.png' );
|
3306 |
+
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
3307 |
+
|
3308 |
+
$name = __('Watermark opacity image', 'wp-photo-album-plus');
|
3309 |
+
$desc = __('You can set the intensity of image watermarks here.', 'wp-photo-album-plus');
|
3310 |
+
$help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
|
3311 |
+
$slug = 'wppa_watermark_opacity';
|
3312 |
+
$html = wppa_input($slug, '50px', '', '%');
|
3313 |
+
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3314 |
+
|
3315 |
+
$name = __('Textual watermark style', 'wp-photo-album-plus');
|
3316 |
+
$desc = __('The way the textual watermarks look like', 'wp-photo-album-plus');
|
3317 |
+
$help = '';
|
3318 |
+
$slug = 'wppa_textual_watermark_type';
|
3319 |
+
$clas = 'wppa_watermark';
|
3320 |
+
$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') );
|
3321 |
+
$svals = array( 'tvstyle', 'whiteonblack', 'blackonwhite', 'utopia', 'white', 'black' );
|
3322 |
+
$font = wppa_opt( 'textual_watermark_font' );
|
3323 |
+
$onchange = 'wppaCheckFontPreview()';
|
3324 |
+
$html = wppa_select($slug, $sopts, $svals, $onchange);
|
3325 |
+
$preview = '<img style="background-color:#777;" id="wm-type-preview" src="" />';
|
3326 |
+
wppa_setting_new($slug, '4', $name, $desc, $html.' '.$preview, $help, $clas);
|
3327 |
+
|
3328 |
+
$name = __('Predefined watermark text', 'wp-photo-album-plus');
|
3329 |
+
$desc = __('The text to use when --- pre-defined --- is selected.', 'wp-photo-album-plus');
|
3330 |
+
$help = __('You may use the following keywords:', 'wp-photo-album-plus');
|
3331 |
+
$help .= '<br />'.__('w#site, w#displayname, all standard photo keywords, iptc and exif keywords', 'wp-photo-album-plus');
|
3332 |
+
$slug = 'wppa_textual_watermark_text';
|
3333 |
+
$html = wppa_textarea($slug, $name);
|
3334 |
+
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3335 |
+
|
3336 |
+
if ( function_exists( 'imagettfbbox' ) ) {
|
3337 |
+
$name = __('Textual watermark font', 'wp-photo-album-plus');
|
3338 |
+
$desc = __('The font to use with textual watermarks.', 'wp-photo-album-plus');
|
3339 |
+
$help = __('Except for the system font, are font files of type ttf and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/fonts/';
|
3340 |
+
$slug = 'wppa_textual_watermark_font';
|
3341 |
+
$fopts = array( 'System' );
|
3342 |
+
$fvals = array( 'system' );
|
3343 |
+
$style = wppa_opt( 'textual_watermark_type' );
|
3344 |
+
$fonts = wppa_glob( WPPA_UPLOAD_PATH . '/fonts/*.ttf' );
|
3345 |
+
sort($fonts);
|
3346 |
+
foreach ( $fonts as $font ) {
|
3347 |
+
$f = basename($font);
|
3348 |
+
$f = preg_replace('/\.[^.]*$/', '', $f);
|
3349 |
+
$F = strtoupper(substr($f,0,1)).substr($f,1);
|
3350 |
+
$fopts[] = $F;
|
3351 |
+
$fvals[] = $f;
|
3352 |
+
}
|
3353 |
+
$onchange = 'wppaCheckFontPreview()';
|
3354 |
+
$html = wppa_select($slug, $fopts, $fvals, $onchange);
|
3355 |
+
$preview = '<img style="background-color:#777;" id="wm-font-preview" src="" />';
|
3356 |
+
wppa_setting_new($slug, '6', $name, $desc, $html.' '.$preview, $help, $clas);
|
3357 |
+
|
3358 |
+
foreach ( array_keys( $sopts ) as $skey ) {
|
3359 |
+
foreach ( array_keys( $fopts ) as $fkey ) {
|
3360 |
+
wppa_create_textual_watermark_file( array( 'font' => $fvals[$fkey], 'text' => $sopts[$skey], 'style' => $svals[$skey], 'filebasename' => $svals[$skey].'-'.$fvals[$fkey] ) );
|
3361 |
+
wppa_create_textual_watermark_file( array( 'font' => $fvals[$fkey], 'text' => $fopts[$fkey], 'style' => $svals[$skey], 'filebasename' => $fvals[$fkey].'-'.$svals[$skey] ) );
|
3362 |
+
}
|
3363 |
+
}
|
3364 |
Â
|
3365 |
+
$name = __('Textual watermark font size', 'wp-photo-album-plus');
|
3366 |
+
$desc = __('You can set the size of the truetype fonts only.', 'wp-photo-album-plus');
|
3367 |
+
$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');
|
3368 |
+
$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');
|
3369 |
+
$help .= '<br />'.__('It is unclear how many pixels a point is...', 'wp-photo-album-plus');
|
3370 |
+
$slug = 'wppa_textual_watermark_size';
|
3371 |
+
$html = wppa_input($slug, '50px', '', 'points');
|
3372 |
+
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
3373 |
+
|
3374 |
+
$name = __('Foreground color', 'wp-photo-album-plus');
|
3375 |
+
$desc = __('Textual watermark foreground color (black).', 'wp-photo-album-plus');
|
3376 |
+
$help = '';
|
3377 |
+
$slug = 'wppa_watermark_fgcol_text';
|
3378 |
+
$onch = 'wppaRefreshAfter();';
|
3379 |
+
$html = wppa_input_color($slug, '100px;', '', '', $onch );
|
3380 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
3381 |
+
|
3382 |
+
$name = __('Background color', 'wp-photo-album-plus');
|
3383 |
+
$desc = __('Textual watermark background color (white).', 'wp-photo-album-plus');
|
3384 |
+
$help = '';
|
3385 |
+
$slug = 'wppa_watermark_bgcol_text';
|
3386 |
+
$onch = 'wppaRefreshAfter();';
|
3387 |
+
$html = wppa_input_color($slug, '100px;', '', '', $onch );
|
3388 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
3389 |
+
|
3390 |
+
$name = __('Upload watermark font', 'wp-photo-album-plus');
|
3391 |
+
$desc = __('Upload a new watermark font file', 'wp-photo-album-plus');
|
3392 |
+
$help = __('Upload truetype fonts (.ttf) only, and test if they work on your server platform.', 'wp-photo-album-plus');
|
3393 |
+
$slug = 'wppa_watermark_font_upload';
|
3394 |
+
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.ttf' );
|
3395 |
+
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
3396 |
+
|
3397 |
+
$name = __('Watermark opacity text', 'wp-photo-album-plus');
|
3398 |
+
$desc = __('You can set the intensity of a text watermarks here.', 'wp-photo-album-plus');
|
3399 |
+
$help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
|
3400 |
+
$slug = 'wppa_watermark_opacity_text';
|
3401 |
+
$html = wppa_input($slug, '50px', '', '%');
|
3402 |
+
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
3403 |
+
|
3404 |
+
$name = __('Preview', 'wp-photo-album-plus');
|
3405 |
+
$desc = __('A preview. Keywords in descriptions or predefined text are not translated.', 'wp-photo-album-plus');
|
3406 |
+
$help = __('To see the changes: refresh the page', 'wp-photo-album-plus');
|
3407 |
+
$slug = 'wppa_watermark_preview';
|
3408 |
+
$tr = floor( 127 * ( 100 - wppa_opt( 'watermark_opacity_text' ) ) / 100 );
|
3409 |
+
$args = array( 'id' => '0', 'url' => true, 'width' => '1000', 'height' => '400', 'transp' => $tr );
|
3410 |
+
$html = '
|
3411 |
+
<div
|
3412 |
+
style="float:left; text-align:center; max-width:400px; overflow:hidden; background-image:url('.WPPA_UPLOAD_URL.'/fonts/turkije.jpg);"
|
3413 |
+
>
|
3414 |
+
<img
|
3415 |
+
src="'.wppa_create_textual_watermark_file( $args ).'?ver='.rand(0, 4711).'"
|
3416 |
+
/>
|
3417 |
+
</div>
|
3418 |
+
<input
|
3419 |
+
type="button"
|
3420 |
+
class="wppa-doit-button"
|
3421 |
+
value="' . __( 'Refresh', 'wp-photo-album-plus' ) . '"
|
3422 |
+
onclick="wppaRefreshPage()"
|
3423 |
+
style="height: 30px; margin: 16px 4px;"
|
3424 |
+
>
|
3425 |
+
<div style="clear:both;"></div>';
|
3426 |
+
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
3427 |
+
}
|
3428 |
Â
|
3429 |
+
$name = __('Watermark thumbnails', 'wp-photo-album-plus');
|
3430 |
+
$desc = __('Watermark also the thumbnail image files.', 'wp-photo-album-plus');
|
3431 |
+
$help = '';
|
3432 |
+
$slug = 'wppa_watermark_thumbs';
|
3433 |
+
$html = wppa_checkbox($slug);
|
3434 |
+
$clas = 'wppa_watermark';
|
3435 |
+
$tags = 'water,thumb';
|
3436 |
+
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
3437 |
+
|
3438 |
+
$name = __('Watermark size', 'wp-photo-album-plus');
|
3439 |
+
$desc = __('The size of the image based watermark in percents of the image width', 'wp-photo-album-plus');
|
3440 |
+
$help = __('Select a value, --- off --- means: use the watermark image as is', 'wp-photo-album-plus');
|
3441 |
+
$slug = 'wppa_watermark_size';
|
3442 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus'), '10%', '20%', '25%', '30%', '40%', '50%', '60%', '70%', '80%', '90%' );
|
3443 |
+
$vals = array( '0', '10', '20', '25', '30', '40', '50', '60', '70', '80', '90' );
|
3444 |
+
$html = wppa_select($slug, $opts, $vals);
|
3445 |
+
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
3446 |
+
|
3447 |
+
$name = __('Watermark margin', 'wp-photo-album-plus');
|
3448 |
+
$desc = __('The margin for the watermark from the edge of the image', 'wp-photo-album-plus');
|
3449 |
+
$help = __('A value > 1 means pixels, a value < 1 means fraction. E.g enter 0.12 for 12%', 'wp-photo-album-plus');
|
3450 |
+
$slug = 'wppa_watermark_margin';
|
3451 |
+
$html = wppa_input($slug, '40px;');
|
3452 |
+
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
3453 |
+
|
3454 |
+
wppa_setting_box_footer_new();
|
3455 |
+
}
|
3456 |
Â
|
3457 |
+
if ( $wppa_cur_tab == 'constants' ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3458 |
Â
|
3459 |
+
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
3460 |
+
__('Name', 'wp-photo-album-plus') => 'auto;',
|
3461 |
+
__('Description', 'wp-photo-album-plus') => 'auto;',
|
3462 |
+
__('Value', 'wp-photo-album-plus') => 'auto;',
|
3463 |
+
__('Download', 'wp-photo-album-plus') => 'auto;',
|
3464 |
+
__('Help', 'wp-photo-album-plus') => '24px;',
|
3465 |
+
);
|
3466 |
+
wppa_setting_box_header_new('constants', $coldef);
|
3467 |
+
|
3468 |
+
$name = 'WPPA_ALBUMS';
|
3469 |
+
$desc = __('Albums db table name.', 'wp-photo-album-plus');
|
3470 |
+
$help = '';
|
3471 |
+
$html1 = WPPA_ALBUMS;
|
3472 |
+
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_ALBUMS . '\')" >' .
|
3473 |
+
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_ALBUMS . '.csv' .
|
3474 |
+
'</a> ' .
|
3475 |
+
'<img id="' . WPPA_ALBUMS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
3476 |
+
$html = array( $html1, $html2 );
|
3477 |
+
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
3478 |
+
|
3479 |
+
$name = 'WPPA_PHOTOS';
|
3480 |
+
$desc = __('Photos db table name.', 'wp-photo-album-plus');
|
3481 |
+
$help = '';
|
3482 |
+
$html1 = WPPA_PHOTOS;
|
3483 |
+
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_PHOTOS . '\')" >' .
|
3484 |
+
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_PHOTOS . '.csv' .
|
3485 |
+
'</a> ' .
|
3486 |
+
'<img id="' . WPPA_PHOTOS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
3487 |
+
$html = array( $html1, $html2 );
|
3488 |
+
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
3489 |
+
|
3490 |
+
$name = 'WPPA_RATING';
|
3491 |
+
$desc = __('Rating db table name.', 'wp-photo-album-plus');
|
3492 |
+
$help = '';
|
3493 |
+
$html1 = WPPA_RATING;
|
3494 |
+
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_RATING . '\')" >' .
|
3495 |
+
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_RATING . '.csv' .
|
3496 |
+
'</a> ' .
|
3497 |
+
'<img id="' . WPPA_RATING . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
3498 |
+
$html = array( $html1, $html2 );
|
3499 |
+
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
3500 |
+
|
3501 |
+
$name = 'WPPA_COMMENTS';
|
3502 |
+
$desc = __('Comments db table name.', 'wp-photo-album-plus');
|
3503 |
+
$help = '';
|
3504 |
+
$html1 = WPPA_COMMENTS;
|
3505 |
+
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_COMMENTS . '\')" >' .
|
3506 |
+
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_COMMENTS . '.csv' .
|
3507 |
+
'</a> ' .
|
3508 |
+
'<img id="' . WPPA_COMMENTS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
3509 |
+
$html = array( $html1, $html2 );
|
3510 |
+
wppa_setting_new(false, '4', $name, $desc, $html, $help);
|
3511 |
+
|
3512 |
+
$name = 'WPPA_IPTC';
|
3513 |
+
$desc = __('IPTC db table name.', 'wp-photo-album-plus');
|
3514 |
+
$help = '';
|
3515 |
+
$html1 = WPPA_IPTC;
|
3516 |
+
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_IPTC . '\')" >' .
|
3517 |
+
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_IPTC . '.csv' .
|
3518 |
+
'</a> ' .
|
3519 |
+
'<img id="' . WPPA_IPTC . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
3520 |
+
$html = array( $html1, $html2 );
|
3521 |
+
wppa_setting_new(false, '5', $name, $desc, $html, $help);
|
3522 |
+
|
3523 |
+
$name = 'WPPA_EXIF';
|
3524 |
+
$desc = __('EXIF db table name.', 'wp-photo-album-plus');
|
3525 |
+
$help = '';
|
3526 |
+
$html1 = WPPA_EXIF;
|
3527 |
+
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_EXIF . '\')" >' .
|
3528 |
+
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_EXIF . '.csv' .
|
3529 |
+
'</a> ' .
|
3530 |
+
'<img id="' . WPPA_EXIF . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
3531 |
+
$html = array( $html1, $html2 );
|
3532 |
+
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
3533 |
+
|
3534 |
+
$name = 'WPPA_INDEX';
|
3535 |
+
$desc = __('Index db table name.', 'wp-photo-album-plus');
|
3536 |
+
$help = '';
|
3537 |
+
$html1 = WPPA_INDEX;
|
3538 |
+
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_INDEX . '\')" >' .
|
3539 |
+
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_INDEX . '.csv' .
|
3540 |
+
'</a> ' .
|
3541 |
+
'<img id="' . WPPA_INDEX . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
3542 |
+
$html = array( $html1, $html2 );
|
3543 |
+
wppa_setting_new(false, '7', $name, $desc, $html, $help);
|
3544 |
+
|
3545 |
+
$name = 'WPPA_SESSION';
|
3546 |
+
$desc = __('Session db table name.', 'wp-photo-album-plus');
|
3547 |
+
$help = '';
|
3548 |
+
$html1 = WPPA_SESSION;
|
3549 |
+
$html2 = sprintf( __('Download %s is useless', 'wp-photo-album-plus'), WPPA_SESSION );
|
3550 |
+
$html = array( $html1, $html2 );
|
3551 |
+
wppa_setting_new(false, '8', $name, $desc, $html, $help);
|
3552 |
+
|
3553 |
+
$name = 'WPPA_FILE';
|
3554 |
+
$desc = __('Plugins main file name.', 'wp-photo-album-plus');
|
3555 |
+
$help = '';
|
3556 |
+
$html1 = WPPA_FILE;
|
3557 |
+
$html2 = '';
|
3558 |
+
$html = array( $html1, $html2 );
|
3559 |
+
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
3560 |
+
|
3561 |
+
$name = 'ABSPATH';
|
3562 |
+
$desc = __('WP absolute path.', 'wp-photo-album-plus');
|
3563 |
+
$help = '';
|
3564 |
+
$html1 = ABSPATH;
|
3565 |
+
$html2 = '';
|
3566 |
+
$html = array( $html1, $html2 );
|
3567 |
+
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
3568 |
+
|
3569 |
+
$name = 'WPPA_ABSPATH';
|
3570 |
+
$desc = __('ABSPATH windows proof', 'wp-photo-album-plus');
|
3571 |
+
$help = '';
|
3572 |
+
$html1 = WPPA_ABSPATH;
|
3573 |
+
$html2 = '';
|
3574 |
+
$html = array( $html1, $html2 );
|
3575 |
+
wppa_setting_new(false, '11', $name, $desc, $html, $help);
|
3576 |
+
|
3577 |
+
|
3578 |
+
$name = 'WPPA_PATH';
|
3579 |
+
$desc = __('Path to plugins directory.', 'wp-photo-album-plus');
|
3580 |
+
$help = '';
|
3581 |
+
$html1 = WPPA_PATH;
|
3582 |
+
$html2 = '';
|
3583 |
+
$html = array( $html1, $html2 );
|
3584 |
+
wppa_setting_new(false, '12', $name, $desc, $html, $help);
|
3585 |
+
|
3586 |
+
|
3587 |
+
$name = 'WPPA_NAME';
|
3588 |
+
$desc = __('Plugins directory name.', 'wp-photo-album-plus');
|
3589 |
+
$help = '';
|
3590 |
+
$html1 = WPPA_NAME;
|
3591 |
+
$html2 = '';
|
3592 |
+
$html = array( $html1, $html2 );
|
3593 |
+
wppa_setting_new(false, '13', $name, $desc, $html, $help);
|
3594 |
+
|
3595 |
+
|
3596 |
+
$name = 'WPPA_URL';
|
3597 |
+
$desc = __('Plugins directory url.', 'wp-photo-album-plus');
|
3598 |
+
$help = '';
|
3599 |
+
$html1 = WPPA_URL;
|
3600 |
+
$html2 = '';
|
3601 |
+
$html = array( $html1, $html2 );
|
3602 |
+
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
3603 |
+
|
3604 |
+
|
3605 |
+
$name = 'WPPA_UPLOAD';
|
3606 |
+
$desc = __('The relative upload directory.', 'wp-photo-album-plus');
|
3607 |
+
$help = '';
|
3608 |
+
$html1 = WPPA_UPLOAD;
|
3609 |
+
$html2 = '';
|
3610 |
+
$html = array( $html1, $html2 );
|
3611 |
+
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
3612 |
+
|
3613 |
+
|
3614 |
+
|
3615 |
+
$name = 'WPPA_UPLOAD_PATH';
|
3616 |
+
$desc = __('The upload directory path.', 'wp-photo-album-plus');
|
3617 |
+
$help = '';
|
3618 |
+
$html1 = WPPA_UPLOAD_PATH;
|
3619 |
+
$html2 = '';
|
3620 |
+
$html = array( $html1, $html2 );
|
3621 |
+
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
3622 |
+
|
3623 |
+
|
3624 |
+
$name = 'WPPA_UPLOAD_URL';
|
3625 |
+
$desc = __('The upload directory url.', 'wp-photo-album-plus');
|
3626 |
+
$help = '';
|
3627 |
+
$html1 = WPPA_UPLOAD_URL;
|
3628 |
+
$html2 = '';
|
3629 |
+
$html = array( $html1, $html2 );
|
3630 |
+
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
3631 |
+
|
3632 |
+
|
3633 |
+
$name = 'WPPA_DEPOT';
|
3634 |
+
$desc = __('The relative depot directory.', 'wp-photo-album-plus');
|
3635 |
+
$help = '';
|
3636 |
+
$html1 = WPPA_DEPOT;
|
3637 |
+
$html2 = '';
|
3638 |
+
$html = array( $html1, $html2 );
|
3639 |
+
wppa_setting_new(false, '18', $name, $desc, $html, $help);
|
3640 |
+
|
3641 |
+
|
3642 |
+
$name = 'WPPA_DEPOT_PATH';
|
3643 |
+
$desc = __('The depot directory path.', 'wp-photo-album-plus');
|
3644 |
+
$help = '';
|
3645 |
+
$html1 = WPPA_DEPOT_PATH;
|
3646 |
+
$html2 = '';
|
3647 |
+
$html = array( $html1, $html2 );
|
3648 |
+
wppa_setting_new(false, '19', $name, $desc, $html, $help);
|
3649 |
+
|
3650 |
+
|
3651 |
+
$name = 'WPPA_DEPOT_URL';
|
3652 |
+
$desc = __('The depot directory url.', 'wp-photo-album-plus');
|
3653 |
+
$help = '';
|
3654 |
+
$html1 = WPPA_DEPOT_URL;
|
3655 |
+
$html2 = '';
|
3656 |
+
$html = array( $html1, $html2 );
|
3657 |
+
wppa_setting_new(false, '20', $name, $desc, $html, $help);
|
3658 |
+
|
3659 |
+
|
3660 |
+
$name = 'WPPA_CONTENT_PATH';
|
3661 |
+
$desc = __('The path to wp-content.', 'wp-photo-album-plus');
|
3662 |
+
$help = '';
|
3663 |
+
$html1 = WPPA_CONTENT_PATH;
|
3664 |
+
$html2 = '';
|
3665 |
+
$html = array( $html1, $html2 );
|
3666 |
+
wppa_setting_new(false, '21', $name, $desc, $html, $help);
|
3667 |
+
|
3668 |
+
|
3669 |
+
$name = 'WPPA_CONTENT_URL';
|
3670 |
+
$desc = __('WP Content url.', 'wp-photo-album-plus');
|
3671 |
+
$help = '';
|
3672 |
+
$html1 = WPPA_CONTENT_URL;
|
3673 |
+
$html2 = '';
|
3674 |
+
$html = array( $html1, $html2 );
|
3675 |
+
wppa_setting_new(false, '22', $name, $desc, $html, $help);
|
3676 |
+
|
3677 |
+
$name = 'wp_upload_dir() : [\'basedir\']';
|
3678 |
+
$desc = __('WP Base upload dir.', 'wp-photo-album-plus');
|
3679 |
+
$help = '';
|
3680 |
+
$wp_uploaddir = wp_upload_dir();
|
3681 |
+
$html1 = $wp_uploaddir['basedir'];
|
3682 |
+
$html2 = '';
|
3683 |
+
$html = array( $html1, $html2 );
|
3684 |
+
wppa_setting_new(false, '23', $name, $desc, $html, $help);
|
3685 |
+
|
3686 |
+
$name = '$_SERVER[\'HTTP_HOST\']';
|
3687 |
+
$desc = '';
|
3688 |
+
$help = '';
|
3689 |
+
$html1 = $_SERVER['HTTP_HOST'];
|
3690 |
+
$html2 = '';
|
3691 |
+
$html = array( $html1, $html2 );
|
3692 |
+
wppa_setting_new(false, '24', $name, $desc, $html, $help);
|
3693 |
+
|
3694 |
+
wppa_setting_box_footer_new();
|
3695 |
+
}
|
3696 |
Â
|
3697 |
+
// Close the content area
|
3698 |
+
echo '</div>';
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3699 |
Â
|
3700 |
+
// The popup window
|
3701 |
+
echo '
|
3702 |
+
<div
|
3703 |
+
id="wppa-modal-container"
|
3704 |
+
style="width:100%;padding:0;"
|
3705 |
+
>
|
3706 |
+
</div>';
|
Â
|
|
Â
|
|
Â
|
|
3707 |
Â
|
3708 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3709 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3710 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3711 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3712 |
Â
|
3713 |
+
else { // Old style settings page
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3714 |
Â
|
3715 |
+
echo '
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3716 |
Â
|
3717 |
+
<form enctype="multipart/form-data" action="'.wppa_dbg_url(get_admin_url().'admin.php?page=wppa_options').'" method="post">';
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3718 |
Â
|
3719 |
+
wp_nonce_field('wppa-nonce', 'wppa-nonce');
|
3720 |
+
echo '
|
3721 |
+
<div style="display:none;" >';
|
3722 |
+
echo wppa_doit_button( 'dummy', 'dummy' );
|
3723 |
+
echo '
|
3724 |
+
</div>
|
3725 |
+
<input type="hidden" name="wppa-key" id="wppa-key" value="" />
|
3726 |
+
<input type="hidden" name="wppa-sub" id="wppa-sub" value="" />';
|
3727 |
+
|
3728 |
+
// Linkpages
|
3729 |
+
$options_page = false;
|
3730 |
+
$options_page_post = false;
|
3731 |
+
$values_page = false;
|
3732 |
+
$values_page_post = false;
|
3733 |
+
|
3734 |
+
// First
|
3735 |
+
$options_page_post[] = __('--- the same page or post ---', 'wp-photo-album-plus');
|
3736 |
+
$values_page_post[] = '0';
|
3737 |
+
$options_page[] = __('--- please select a page ---', 'wp-photo-album-plus');
|
3738 |
+
$values_page[] = '0';
|
3739 |
Â
|
3740 |
+
// Pages if any
|
3741 |
+
$pages = $wpdb->get_results( "SELECT ID, post_title, post_content, post_parent FROM $wpdb->posts
|
3742 |
+
WHERE post_type = 'page'
|
3743 |
+
AND post_status = 'publish'
|
3744 |
+
ORDER BY post_title", ARRAY_A );
|
3745 |
+
if ( $pages ) {
|
Â
|
|
Â
|
|
3746 |
Â
|
3747 |
+
// Translate
|
3748 |
+
foreach ( array_keys($pages) as $index ) {
|
3749 |
+
$pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
|
3750 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3751 |
Â
|
3752 |
+
$pages = wppa_array_sort($pages, 'post_title');
|
3753 |
+
foreach ($pages as $page) {
|
3754 |
+
if (strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false) {
|
3755 |
+
$options_page[] = __($page['post_title'], 'wp-photo-album-plus');
|
3756 |
+
$options_page_post[] = __($page['post_title'], 'wp-photo-album-plus');
|
3757 |
+
$values_page[] = $page['ID'];
|
3758 |
+
$values_page_post[] = $page['ID'];
|
3759 |
+
}
|
3760 |
+
else {
|
3761 |
+
$options_page[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
|
3762 |
+
$options_page_post[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
|
3763 |
+
$values_page[] = $page['ID'];
|
3764 |
+
$values_page_post[] = $page['ID'];
|
3765 |
+
}
|
3766 |
+
}
|
3767 |
+
}
|
3768 |
+
else {
|
3769 |
+
$options_page[] = __('--- No page to link to (yet) ---', 'wp-photo-album-plus');
|
3770 |
+
$values_page[] = '0';
|
3771 |
+
}
|
3772 |
Â
|
3773 |
+
$options_page_auto = $options_page;
|
3774 |
+
$options_page_auto[0] = __('--- Will be auto created ---', 'wp-photo-album-plus');
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3775 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3776 |
Â
|
3777 |
+
// Table 1: Sizes ?>
|
3778 |
+
<?php wppa_settings_box_header(
|
3779 |
+
'1',
|
3780 |
+
__('Table I:', 'wp-photo-album-plus').' '.__('Sizes:', 'wp-photo-album-plus').' '.
|
3781 |
+
__('This table describes all the sizes and size options (except fontsizes) for the generation and display of the WPPA+ elements.', 'wp-photo-album-plus')
|
3782 |
+
); ?>
|
Â
|
|
Â
|
|
3783 |
Â
|
3784 |
+
<div id="wppa_table_1" style="display:none" >
|
3785 |
+
<table class="widefat wppa-table wppa-setting-table">
|
3786 |
+
<thead style="font-weight: bold; " class="wppa_table_1">
|
3787 |
+
<tr>
|
3788 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
3789 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
3790 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
3791 |
+
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
3792 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
3793 |
+
</tr>
|
3794 |
+
</thead>
|
3795 |
+
<tbody class="wppa_table_1">
|
3796 |
+
<?php
|
3797 |
+
$wppa_table = 'I';
|
3798 |
+
|
3799 |
+
wppa_setting_subheader( 'A', '1', __( 'WPPA+ global system related size settings' , 'wp-photo-album-plus') );
|
3800 |
+
{
|
3801 |
+
$name = __('Related count', 'wp-photo-album-plus');
|
3802 |
+
$desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus');
|
3803 |
+
$help = (__('When using shortcodes like [wppa type="album" album="#related,desc,23"], the maximum number is 23. Omitting the number gives the maximum of this setting.', 'wp-photo-album-plus'));
|
3804 |
+
$slug = 'wppa_related_count';
|
3805 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
3806 |
+
$clas = '';
|
3807 |
+
$tags = 'count';
|
3808 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
3809 |
Â
|
3810 |
+
$name = __('Max Pagelinks', 'wp-photo-album-plus');
|
3811 |
+
$desc = __('The maximum number of pagelinks to be displayed.', 'wp-photo-album-plus');
|
3812 |
+
$help = '';
|
3813 |
+
$slug = 'wppa_pagelinks_max';
|
3814 |
+
$html = wppa_input($slug, '40px', '', __('pages', 'wp-photo-album-plus'));
|
3815 |
+
$clas = '';
|
3816 |
+
$tags = 'count';
|
3817 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
3818 |
+
|
3819 |
+
$name = __('Max file name length', 'wp-photo-album-plus');
|
3820 |
+
$desc = __('The max length of a photo file name excluding the extension.', 'wp-photo-album-plus');
|
3821 |
+
$help = (__('A setting of 0 means: unlimited.', 'wp-photo-album-plus'));
|
3822 |
+
$slug = 'wppa_max_filename_length';
|
3823 |
+
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
|
3824 |
+
$clas = '';
|
3825 |
+
$tags = 'size,system';
|
3826 |
+
wppa_setting($slug, '10.1', $name, $desc, $html, $help, $clas, $tags);
|
3827 |
+
|
3828 |
+
$name = __('Max photo name length', 'wp-photo-album-plus');
|
3829 |
+
$desc = __('The max length of a photo name.', 'wp-photo-album-plus');
|
3830 |
+
$help = (__('A setting of 0 means: unlimited.', 'wp-photo-album-plus'));
|
3831 |
+
$slug = 'wppa_max_photoname_length';
|
3832 |
+
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
|
3833 |
+
$clas = '';
|
3834 |
+
$tags = 'size,system';
|
3835 |
+
wppa_setting($slug, '10.2', $name, $desc, $html, $help, $clas, $tags);
|
3836 |
+
}
|
3837 |
+
wppa_setting_subheader( 'B', '1', __( 'Slideshow related size settings' , 'wp-photo-album-plus') );
|
3838 |
+
{
|
3839 |
+
$name = __('Maximum Width', 'wp-photo-album-plus');
|
3840 |
+
$desc = __('The maximum width photos will be displayed in slideshows.', 'wp-photo-album-plus');
|
3841 |
+
$help = (__('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus'));
|
3842 |
+
$help .= '<br />'.(__('This is usually the same as the Column Width (Table I-A1), but it may differ.', 'wp-photo-album-plus'));
|
3843 |
+
$slug = 'wppa_fullsize';
|
3844 |
+
$onchange = 'wppaCheckFullHalign()';
|
3845 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'), $onchange);
|
3846 |
+
$clas = '';
|
3847 |
+
$tags = 'size,slide';
|
3848 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
3849 |
+
|
3850 |
+
$name = __('Maximum Height', 'wp-photo-album-plus');
|
3851 |
+
$desc = __('The maximum height photos will be displayed in slideshows.', 'wp-photo-album-plus');
|
3852 |
+
$help = (__('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus'));
|
3853 |
+
$help .= '<br />'.(__('This setting defines the height of the space reserved for photos in slideshows.', 'wp-photo-album-plus'));
|
3854 |
+
$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'));
|
3855 |
+
$slug = 'wppa_maxheight';
|
3856 |
+
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
3857 |
+
$clas = '';
|
3858 |
+
$tags = 'size,slide';
|
3859 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
3860 |
Â
|
3861 |
+
$name = __('Stretch to fit', 'wp-photo-album-plus');
|
3862 |
+
$desc = __('Stretch photos that are too small.', 'wp-photo-album-plus');
|
3863 |
+
$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'));
|
3864 |
+
$slug = 'wppa_enlarge';
|
3865 |
+
$html = wppa_checkbox($slug);
|
3866 |
+
$clas = '';
|
3867 |
+
$tags = 'size,system';
|
3868 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
3869 |
Â
|
3870 |
+
$name = __('Slideshow borderwidth', 'wp-photo-album-plus');
|
3871 |
+
$desc = __('The width of the border around slideshow images.', 'wp-photo-album-plus');
|
3872 |
+
$help = (__('The border is made by the image background being larger than the image itsself (padding).', 'wp-photo-album-plus'));
|
3873 |
+
$help .= '<br />'.(__('Additionally there may be a one pixel outline of a different color. See Table III-A2.', 'wp-photo-album-plus'));
|
3874 |
+
$help .= '<br />'.(__('The number you enter here is exclusive the one pixel outline.', 'wp-photo-album-plus'));
|
3875 |
+
$help .= '<br />'.(__('If you leave this entry empty, there will be no outline either.', 'wp-photo-album-plus'));
|
3876 |
+
$slug = 'wppa_fullimage_border_width';
|
3877 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3878 |
+
$clas = '';
|
3879 |
+
$tags = 'size,slide,layout';
|
3880 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
3881 |
Â
|
3882 |
+
$name = __('Numbar Max', 'wp-photo-album-plus');
|
3883 |
+
$desc = __('Maximum numbers to display.', 'wp-photo-album-plus');
|
3884 |
+
$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'));
|
3885 |
+
$slug = 'wppa_numbar_max';
|
3886 |
+
$html = wppa_input($slug, '40px', '', __('numbers', 'wp-photo-album-plus'));
|
3887 |
+
$clas = 'wppa_numbar';
|
3888 |
+
$tags = 'count,slide,navi';
|
3889 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
3890 |
+
|
3891 |
+
$name = __('Share button size', 'wp-photo-album-plus');
|
3892 |
+
$desc = __('The size of the social media icons in the Share box', 'wp-photo-album-plus');
|
3893 |
+
$help = '';
|
3894 |
+
$slug = 'wppa_share_size';
|
3895 |
+
$opts = array('16 x 16', '20 x 20', '32 x 32');
|
3896 |
+
$vals = array('16', '20', '32');
|
3897 |
+
$html = wppa_select($slug, $opts, $vals);
|
3898 |
+
$clas = 'wppa_share';
|
3899 |
+
$tags = 'size,sm,slide';
|
3900 |
+
wppa_setting($slug, '6', $name, $desc, $html.__('pixels', 'wp-photo-album-plus'), $help, $clas, $tags);
|
3901 |
+
|
3902 |
+
$name = __('Mini Threshold', 'wp-photo-album-plus');
|
3903 |
+
$desc = __('Show mini text at slideshow smaller than.', 'wp-photo-album-plus');
|
3904 |
+
$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'));
|
3905 |
+
$help .= '<br />'.(__('Special use in responsive themes.', 'wp-photo-album-plus'));
|
3906 |
+
$slug = 'wppa_mini_treshold';
|
3907 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3908 |
+
$clas = '';
|
3909 |
+
$tags = 'size,slide,layout';
|
3910 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
3911 |
Â
|
3912 |
+
$name = __('Slideshow pagesize', 'wp-photo-album-plus');
|
3913 |
+
$desc = __('The maximum number of slides in a certain view. 0 means no pagination', 'wp-photo-album-plus');
|
3914 |
+
$help = '';
|
3915 |
+
$slug = 'wppa_slideshow_pagesize';
|
3916 |
+
$html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
|
3917 |
+
$clas = '';
|
3918 |
+
$tags = 'count,page,slide';
|
3919 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
3920 |
+
|
3921 |
+
$name = __('Filmstrip Thumbnail Size', 'wp-photo-album-plus');
|
3922 |
+
$desc = __('The size of the filmstrip images.', 'wp-photo-album-plus');
|
3923 |
+
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
3924 |
+
$help .= '<br />'.(__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
3925 |
+
$slug = 'wppa_film_thumbsize';
|
3926 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3927 |
+
$clas = '';
|
3928 |
+
$tags = 'size,slide,layout';
|
3929 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
3930 |
Â
|
3931 |
+
$name = __('Slideonly max', 'wp-photo-album-plus');
|
3932 |
+
$desc = __('The max number of slides in a slideonly or filmonly display', 'wp-photo-album-plus');
|
3933 |
+
$help = '';
|
3934 |
+
$slug = 'wppa_slideonly_max';
|
3935 |
+
$html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
|
3936 |
+
$clas = '';
|
3937 |
+
$tags = 'count,slide';
|
3938 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
3939 |
+
}
|
3940 |
+
wppa_setting_subheader( 'C', '1', __( 'Thumbnail photos related size settings' , 'wp-photo-album-plus') );
|
3941 |
+
{
|
3942 |
+
$name = __('Thumbnail Size', 'wp-photo-album-plus');
|
3943 |
+
$desc = __('The size of the thumbnail images.', 'wp-photo-album-plus');
|
3944 |
+
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
3945 |
+
$help .= '<br />'.(__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
3946 |
+
$slug = 'wppa_thumbsize';
|
3947 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3948 |
+
$clas = 'tt_normal tt_masonry';
|
3949 |
+
$tags = 'size,thumb';
|
3950 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
3951 |
+
|
3952 |
+
$name = __('Thumbnail Size Alt', 'wp-photo-album-plus');
|
3953 |
+
$desc = __('The alternative size of the thumbnail images.', 'wp-photo-album-plus');
|
3954 |
+
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
3955 |
+
$help .= '<br />'.(__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
3956 |
+
$slug = 'wppa_thumbsize_alt';
|
3957 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3958 |
+
$clas = 'tt_normal tt_masonry';
|
3959 |
+
$tags = 'size,thumb';
|
3960 |
+
wppa_setting($slug, '1a', $name, $desc, $html, $help, $clas, $tags);
|
3961 |
+
|
3962 |
+
$name = __('Thumbnail Aspect', 'wp-photo-album-plus');
|
3963 |
+
$desc = __('Aspect ration of thumbnail image', 'wp-photo-album-plus');
|
3964 |
+
$help = '';
|
3965 |
+
$slug = 'wppa_thumb_aspect';
|
3966 |
+
$options = array(
|
3967 |
+
__('--- same as fullsize ---', 'wp-photo-album-plus'),
|
3968 |
+
__('--- square clipped ---', 'wp-photo-album-plus'),
|
3969 |
+
__('4:5 landscape clipped', 'wp-photo-album-plus'),
|
3970 |
+
__('3:4 landscape clipped', 'wp-photo-album-plus'),
|
3971 |
+
__('2:3 landscape clipped', 'wp-photo-album-plus'),
|
3972 |
+
__('5:8 landscape clipped', 'wp-photo-album-plus'),
|
3973 |
+
__('9:16 landscape clipped', 'wp-photo-album-plus'),
|
3974 |
+
__('1:2 landscape clipped', 'wp-photo-album-plus'),
|
3975 |
+
__('--- square padded ---', 'wp-photo-album-plus'),
|
3976 |
+
__('4:5 landscape padded', 'wp-photo-album-plus'),
|
3977 |
+
__('3:4 landscape padded', 'wp-photo-album-plus'),
|
3978 |
+
__('2:3 landscape padded', 'wp-photo-album-plus'),
|
3979 |
+
__('5:8 landscape padded', 'wp-photo-album-plus'),
|
3980 |
+
__('9:16 landscape padded', 'wp-photo-album-plus'),
|
3981 |
+
__('1:2 landscape padded', 'wp-photo-album-plus')
|
3982 |
+
);
|
3983 |
+
$values = array(
|
3984 |
+
'0:0:none',
|
3985 |
+
'1:1:clip',
|
3986 |
+
'4:5:clip',
|
3987 |
+
'3:4:clip',
|
3988 |
+
'2:3:clip',
|
3989 |
+
'5:8:clip',
|
3990 |
+
'9:16:clip',
|
3991 |
+
'1:2:clip',
|
3992 |
+
'1:1:padd',
|
3993 |
+
'4:5:padd',
|
3994 |
+
'3:4:padd',
|
3995 |
+
'2:3:padd',
|
3996 |
+
'5:8:padd',
|
3997 |
+
'9:16:padd',
|
3998 |
+
'1:2:padd'
|
3999 |
+
);
|
4000 |
+
$html = wppa_select($slug, $options, $values);
|
4001 |
+
$clas = 'tt_normal tt_masonry';
|
4002 |
+
$tags = 'size,thumb,layout';
|
4003 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
4004 |
+
|
4005 |
+
$name = __('Thumbframe width', 'wp-photo-album-plus');
|
4006 |
+
$desc = __('The width of the thumbnail frame.', 'wp-photo-album-plus');
|
4007 |
+
$help = (__('Set the width of the thumbnail frame.', 'wp-photo-album-plus'));
|
4008 |
+
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
4009 |
+
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
4010 |
+
$slug = 'wppa_tf_width';
|
4011 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
4012 |
+
$clas = 'tt_normal';
|
4013 |
+
$tags = 'size,thumb,layout';
|
4014 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
4015 |
Â
|
4016 |
+
$name = __('Thumbframe width Alt', 'wp-photo-album-plus');
|
4017 |
+
$desc = __('The width of the alternative thumbnail frame.', 'wp-photo-album-plus');
|
4018 |
+
$help = (__('Set the width of the thumbnail frame.', 'wp-photo-album-plus'));
|
4019 |
+
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
4020 |
+
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
4021 |
+
$slug = 'wppa_tf_width_alt';
|
4022 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
4023 |
+
$clas = 'tt_normal';
|
4024 |
+
$tags = 'size,thumb,layout';
|
4025 |
+
wppa_setting($slug, '3a', $name, $desc, $html, $help, $clas, $tags);
|
4026 |
+
|
4027 |
+
$name = __('Thumbframe height', 'wp-photo-album-plus');
|
4028 |
+
$desc = __('The height of the thumbnail frame.', 'wp-photo-album-plus');
|
4029 |
+
$help = (__('Set the height of the thumbnail frame.', 'wp-photo-album-plus'));
|
4030 |
+
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
4031 |
+
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
4032 |
+
$slug = 'wppa_tf_height';
|
4033 |
+
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
4034 |
+
$clas = 'tt_normal';
|
4035 |
+
$tags = 'size,thumb,layout';
|
4036 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
4037 |
Â
|
4038 |
+
$name = __('Thumbframe height Alt', 'wp-photo-album-plus');
|
4039 |
+
$desc = __('The height of the alternative thumbnail frame.', 'wp-photo-album-plus');
|
4040 |
+
$help = (__('Set the height of the thumbnail frame.', 'wp-photo-album-plus'));
|
4041 |
+
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
4042 |
+
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
4043 |
+
$slug = 'wppa_tf_height_alt';
|
4044 |
+
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
4045 |
+
$clas = 'tt_normal';
|
4046 |
+
$tags = 'size,thumb,layout';
|
4047 |
+
wppa_setting($slug, '4a', $name, $desc, $html, $help, $clas, $tags);
|
4048 |
+
|
4049 |
+
$name = __('Thumbnail spacing', 'wp-photo-album-plus');
|
4050 |
+
$desc = __('The spacing between adjacent thumbnail frames.', 'wp-photo-album-plus');
|
4051 |
+
$help = (__('Set the minimal spacing between the adjacent thumbnail frames', 'wp-photo-album-plus'));
|
4052 |
+
$help .= '<br />'.(__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus'));
|
4053 |
+
$help .= '<br />'.(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus'));
|
4054 |
+
$slug = 'wppa_tn_margin';
|
4055 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4056 |
+
$clas = 'tt_normal tt_masonry';
|
4057 |
+
$tags = 'size,thumb,layout';
|
4058 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
4059 |
+
|
4060 |
+
$name = __('Auto spacing', 'wp-photo-album-plus');
|
4061 |
+
$desc = __('Space the thumbnail frames automatic.', 'wp-photo-album-plus');
|
4062 |
+
$help = (__('If you check this box, the thumbnail images will be evenly distributed over the available width.', 'wp-photo-album-plus'));
|
4063 |
+
$help .= '<br />'.(__('In this case, the thumbnail spacing value (setting I-9) will be regarded as a minimum value.', 'wp-photo-album-plus'));
|
4064 |
+
$slug = 'wppa_thumb_auto';
|
4065 |
+
$html = wppa_checkbox($slug);
|
4066 |
+
$clas = 'tt_normal';
|
4067 |
+
$tags = 'size,layout,thumb';
|
4068 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
4069 |
+
|
4070 |
+
$name = __('Page size', 'wp-photo-album-plus');
|
4071 |
+
$desc = __('Max number of thumbnails per page.', 'wp-photo-album-plus');
|
4072 |
+
$help = (__('Enter the maximum number of thumbnail images per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus'));
|
4073 |
+
$slug = 'wppa_thumb_page_size';
|
4074 |
+
$html = wppa_input($slug, '40px', '', __('thumbnails', 'wp-photo-album-plus'));
|
4075 |
+
$clas = 'tt_always';
|
4076 |
+
$tags = 'count,thumb,page';
|
4077 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
4078 |
+
|
4079 |
+
$name = __('Popup size', 'wp-photo-album-plus');
|
4080 |
+
$desc = __('The size of the thumbnail popup images.', 'wp-photo-album-plus');
|
4081 |
+
$help = (__('Enter the size of the popup images. This size should be larger than the thumbnail size.', 'wp-photo-album-plus'));
|
4082 |
+
$help .= '<br />'.(__('This size should also be at least the cover image size.', 'wp-photo-album-plus'));
|
4083 |
+
$help .= '<br />'.(__('Changing the popup size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
4084 |
+
$help .= '<br />'.(__('Although this setting has only visual effect if "Thumb popup" (Table IV-C8) is checked,', 'wp-photo-album-plus'));
|
4085 |
+
$help .= ' '.(__('the value must be right as it is the physical size of the thumbnail and coverphoto images.', 'wp-photo-album-plus'));
|
4086 |
+
$slug = 'wppa_popupsize';
|
4087 |
+
$clas = 'tt_normal tt_masonry';
|
4088 |
+
$tags = 'size,thumb';
|
4089 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4090 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
4091 |
+
|
4092 |
+
$name = __('Use thumbs if fit', 'wp-photo-album-plus');
|
4093 |
+
$desc = __('Use the thumbnail image files if they are large enough.', 'wp-photo-album-plus');
|
4094 |
+
$help = (__('This setting speeds up page loading for small photos.', 'wp-photo-album-plus'));
|
4095 |
+
$help .= '<br />'.(__('Do NOT use this when your thumbnails have a forced aspect ratio (when Table I-C2 is set to anything different from --- same as fullsize ---)', 'wp-photo-album-plus'));
|
4096 |
+
$slug = 'wppa_use_thumbs_if_fit';
|
4097 |
+
$html = wppa_checkbox($slug);
|
4098 |
+
$clas = '';
|
4099 |
+
$tags = 'thumb,system';
|
4100 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
4101 |
Â
|
4102 |
+
}
|
4103 |
+
wppa_setting_subheader( 'D', '1', __( 'Album cover related size settings' , 'wp-photo-album-plus') );
|
4104 |
+
{
|
4105 |
+
$name = __('Max Cover width', 'wp-photo-album-plus');
|
4106 |
+
$desc = __('Maximum width for a album cover display.', 'wp-photo-album-plus');
|
4107 |
+
$help = (__('Display covers in 2 or more columns if the display area is wider than the given width.', 'wp-photo-album-plus'));
|
4108 |
+
$help .= '<br />'.(__('This also applies for \'thumbnails as covers\', and will NOT apply to single items.', 'wp-photo-album-plus'));
|
4109 |
+
$slug = 'wppa_max_cover_width';
|
4110 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4111 |
+
$clas = '';
|
4112 |
+
$tags = 'cover,album,layout,size';
|
4113 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
4114 |
+
|
4115 |
+
$name = __('Min Cover height', 'wp-photo-album-plus');
|
4116 |
+
$desc = __('Minimal height of an album cover.', 'wp-photo-album-plus');
|
4117 |
+
$help = (__('If you use this setting to make the albums the same height and you are not satisfied about the lay-out, try increasing the value in the next setting', 'wp-photo-album-plus'));
|
4118 |
+
$slug = 'wppa_cover_minheight';
|
4119 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4120 |
+
$clas = '';
|
4121 |
+
$tags = 'cover,album,layout,size';
|
4122 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
4123 |
+
|
4124 |
+
$name = __('Min Text frame height', 'wp-photo-album-plus');
|
4125 |
+
$desc = __('The minimal cover text frame height incl header.', 'wp-photo-album-plus');
|
4126 |
+
$help = (__('The height starting with the album title up to and including the view- and the slideshow- links.', 'wp-photo-album-plus'));
|
4127 |
+
$help .= '<br />'.(__('This setting enables you to give the album covers the same height while the title does not need to fit on one line.', 'wp-photo-album-plus'));
|
4128 |
+
$help .= '<br />'.(__('This is the recommended setting to line-up your covers!', 'wp-photo-album-plus'));
|
4129 |
+
$slug = 'wppa_head_and_text_frame_height';
|
4130 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4131 |
+
$clas = '';
|
4132 |
+
$tags = 'cover,album,size,layout';
|
4133 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
4134 |
Â
|
4135 |
+
$name = __('Min Description height', 'wp-photo-album-plus');
|
4136 |
+
$desc = __('The minimal height of the album description text frame.', 'wp-photo-album-plus');
|
4137 |
+
$help = (__('The minimal height of the description field in an album cover display.', 'wp-photo-album-plus'));
|
4138 |
+
$help .= '<br />'.(__('This setting enables you to give the album covers the same height provided that the cover images are equally sized and the titles fit on one line.', 'wp-photo-album-plus'));
|
4139 |
+
$help .= '<br />'.(__('To force the coverphotos have equal heights, tick the box in Table I-D7.', 'wp-photo-album-plus'));
|
4140 |
+
$help .= '<br />'.(__('You may need this setting if changing the previous setting is not sufficient to line-up the covers.', 'wp-photo-album-plus'));
|
4141 |
+
$slug = 'wppa_text_frame_height';
|
4142 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4143 |
+
$clas = '';
|
4144 |
+
$tags = 'cover,album,size,layout';
|
4145 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
4146 |
Â
|
4147 |
+
$name = __('Coverphoto responsive', 'wp-photo-album-plus');
|
4148 |
+
$desc = __('Check this box if you want a responsive coverphoto.', 'wp-photo-album-plus');
|
4149 |
+
$help = '';
|
4150 |
+
$slug = 'wppa_coverphoto_responsive';
|
4151 |
+
$clas = 'cvpr';
|
4152 |
+
$onch = 'wppaCheckCheck(\''.$slug.'\',\''.$clas.'\')';
|
4153 |
+
$html = wppa_checkbox($slug, $onch);
|
4154 |
+
$clas = '';
|
4155 |
+
$tags = 'cover,album,thumb,size';
|
4156 |
+
wppa_setting($slug, '5.0', $name, $desc, $html, $help, $clas, $tags);
|
4157 |
+
|
4158 |
+
$name = __('Coverphoto size', 'wp-photo-album-plus');
|
4159 |
+
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus');
|
4160 |
+
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
4161 |
+
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
4162 |
+
$slug = 'wppa_smallsize';
|
4163 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4164 |
+
$clas = '-cvpr';
|
4165 |
+
$tags = 'cover,album,thumb,size';
|
4166 |
+
wppa_setting($slug, '5.1a', $name, $desc, $html, $help, $clas, $tags);
|
4167 |
+
|
4168 |
+
$name = __('Coverphoto size', 'wp-photo-album-plus');
|
4169 |
+
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus');
|
4170 |
+
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
4171 |
+
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
4172 |
+
$slug = 'wppa_smallsize_percentage';
|
4173 |
+
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus'));
|
4174 |
+
$clas = 'cvpr';
|
4175 |
+
$tags = 'cover,album,thumb,size';
|
4176 |
+
wppa_setting($slug, '5.1b', $name, $desc, $html, $help, $clas, $tags);
|
4177 |
+
|
4178 |
+
$name = __('Coverphoto size multi', 'wp-photo-album-plus');
|
4179 |
+
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus');
|
4180 |
+
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
4181 |
+
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
4182 |
+
$slug = 'wppa_smallsize_multi';
|
4183 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4184 |
+
$clas = '-cvpr';
|
4185 |
+
$tags = 'cover,album,thumb,size';
|
4186 |
+
wppa_setting($slug, '6.1a', $name, $desc, $html, $help, $clas, $tags);
|
4187 |
+
|
4188 |
+
$name = __('Coverphoto size multi', 'wp-photo-album-plus');
|
4189 |
+
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus');
|
4190 |
+
$help = (__('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus'));
|
4191 |
+
$help .= '<br />'.(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus'));
|
4192 |
+
$slug = 'wppa_smallsize_multi_percentage';
|
4193 |
+
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus'));
|
4194 |
+
$clas = 'cvpr';
|
4195 |
+
$tags = 'cover,album,thumb,size';
|
4196 |
+
wppa_setting($slug, '6.1b', $name, $desc, $html, $help, $clas, $tags);
|
4197 |
+
|
4198 |
+
$name = __('Size is height', 'wp-photo-album-plus');
|
4199 |
+
$desc = __('The size of the coverphoto is the height of it.', 'wp-photo-album-plus');
|
4200 |
+
$help = (__('If set: the previous setting is the height, if unset: the largest of width and height.', 'wp-photo-album-plus'));
|
4201 |
+
$help .= '<br />'.(__('This setting applies for coverphoto position top or bottom only (Table IV-D3).', 'wp-photo-album-plus'));
|
4202 |
+
$help .= '<br />'.(__('This makes it easyer to make the covers of equal height.', 'wp-photo-album-plus'));
|
4203 |
+
$slug = 'wppa_coversize_is_height';
|
4204 |
+
$html = wppa_checkbox($slug);
|
4205 |
+
$clas = '';
|
4206 |
+
$tags = 'cover,album,thumb,size';
|
4207 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
4208 |
+
|
4209 |
+
$name = __('Page size', 'wp-photo-album-plus');
|
4210 |
+
$desc = __('Max number of covers per page.', 'wp-photo-album-plus');
|
4211 |
+
$help = (__('Enter the maximum number of album covers per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus'));
|
4212 |
+
$slug = 'wppa_album_page_size';
|
4213 |
+
$html = wppa_input($slug, '40px', '', __('covers', 'wp-photo-album-plus'));
|
4214 |
+
$clas = '';
|
4215 |
+
$tags = 'cover,album,count';
|
4216 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
4217 |
Â
|
4218 |
+
$name = __('Cover spacing', 'wp-photo-album-plus');
|
4219 |
+
$desc = __('The space between album covers', 'wp-photo-album-plus');
|
4220 |
+
$help = '';
|
4221 |
+
$slug = 'wppa_cover_spacing';
|
4222 |
+
$html = wppa_input( $slug, '40px', '', __( 'pixels', 'wp-photo-album-plus' ));
|
4223 |
+
$clas = '';
|
4224 |
+
$tags = 'cover,album,size';
|
4225 |
+
wppa_setting( $slug, '9', $name, $desc, $html, $help, $clas, $tags );
|
4226 |
Â
|
4227 |
+
}
|
4228 |
+
wppa_setting_subheader( 'F', '1', __( 'Widget related size settings' , 'wp-photo-album-plus') );
|
4229 |
+
{
|
4230 |
+
$name = __('Widget width', 'wp-photo-album-plus');
|
4231 |
+
$desc = __('The useable width within widgets.', 'wp-photo-album-plus');
|
4232 |
+
$help = (__('Widget width for photo of the day, general purpose (default), slideshow (default) and upload widgets.', 'wp-photo-album-plus'));
|
4233 |
+
$slug = 'wppa_widget_width';
|
4234 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4235 |
+
$clas = '';
|
4236 |
+
$tags = 'size,widget';
|
4237 |
+
wppa_setting($slug, '0', $name, $desc, $html, $help, $clas, $tags);
|
4238 |
+
|
4239 |
+
$name = __('TopTen count', 'wp-photo-album-plus');
|
4240 |
+
$desc = __('Number of photos in TopTen widget.', 'wp-photo-album-plus');
|
4241 |
+
$help = (__('Enter the maximum number of rated photos in the TopTen widget.', 'wp-photo-album-plus'));
|
4242 |
+
$slug1 = 'wppa_topten_count';
|
4243 |
+
$html1 = wppa_input($slug1, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4244 |
+
$slug2 = 'wppa_topten_non_zero';
|
4245 |
+
$html2 = wppa_checkbox($slug2).__('Non zero only', 'wp-photo-album-plus');
|
4246 |
+
$clas = 'wppa_rating';
|
4247 |
+
$tags = 'count,widget';
|
4248 |
+
wppa_setting($slug1, '1', $name, $desc, $html1.$html2, $help, $clas, $tags);
|
4249 |
+
|
4250 |
+
$name = __('TopTen size', 'wp-photo-album-plus');
|
4251 |
+
$desc = __('Size of thumbnails in TopTen widget.', 'wp-photo-album-plus');
|
4252 |
+
$help = (__('Enter the size for the mini photos in the TopTen widget.', 'wp-photo-album-plus'));
|
4253 |
+
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
4254 |
+
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
4255 |
+
$slug = 'wppa_topten_size';
|
4256 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4257 |
+
$clas = 'wppa_rating';
|
4258 |
+
$tags = 'size,widget';
|
4259 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
4260 |
+
|
4261 |
+
$name = __('Comment count', 'wp-photo-album-plus');
|
4262 |
+
$desc = __('Number of entries in Comment widget.', 'wp-photo-album-plus');
|
4263 |
+
$help = (__('Enter the maximum number of entries in the Comment widget.', 'wp-photo-album-plus'));
|
4264 |
+
$slug = 'wppa_comten_count';
|
4265 |
+
$html = wppa_input($slug, '40px', '', __('entries', 'wp-photo-album-plus'));
|
4266 |
+
$clas = '';
|
4267 |
+
$tags = 'count,widget';
|
4268 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
4269 |
Â
|
4270 |
+
$name = __('Comment size', 'wp-photo-album-plus');
|
4271 |
+
$desc = __('Size of thumbnails in Comment widget.', 'wp-photo-album-plus');
|
4272 |
+
$help = (__('Enter the size for the mini photos in the Comment widget.', 'wp-photo-album-plus'));
|
4273 |
+
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
4274 |
+
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
4275 |
+
$slug = 'wppa_comten_size';
|
4276 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4277 |
+
$clas = '';
|
4278 |
+
$tags = 'size,widget';
|
4279 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
4280 |
Â
|
4281 |
+
$name = __('Thumbnail count', 'wp-photo-album-plus');
|
4282 |
+
$desc = __('Number of photos in Thumbnail widget.', 'wp-photo-album-plus');
|
4283 |
+
$help = (__('Enter the maximum number of rated photos in the Thumbnail widget.', 'wp-photo-album-plus'));
|
4284 |
+
$slug = 'wppa_thumbnail_widget_count';
|
4285 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4286 |
+
$clas = '';
|
4287 |
+
$tags = 'count,widget';
|
4288 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
4289 |
+
|
4290 |
+
$name = __('Thumbnail widget size', 'wp-photo-album-plus');
|
4291 |
+
$desc = __('Size of thumbnails in Thumbnail widget.', 'wp-photo-album-plus');
|
4292 |
+
$help = (__('Enter the size for the mini photos in the Thumbnail widget.', 'wp-photo-album-plus'));
|
4293 |
+
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
4294 |
+
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
4295 |
+
$slug = 'wppa_thumbnail_widget_size';
|
4296 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4297 |
+
$clas = '';
|
4298 |
+
$tags = 'size,widget';
|
4299 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
4300 |
+
|
4301 |
+
$name = __('LasTen count', 'wp-photo-album-plus');
|
4302 |
+
$desc = __('Number of photos in Last Ten widget.', 'wp-photo-album-plus');
|
4303 |
+
$help = (__('Enter the maximum number of photos in the LasTen widget.', 'wp-photo-album-plus'));
|
4304 |
+
$slug = 'wppa_lasten_count';
|
4305 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4306 |
+
$clas = '';
|
4307 |
+
$tags = 'count,widget';
|
4308 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
4309 |
+
|
4310 |
+
$name = __('LasTen size', 'wp-photo-album-plus');
|
4311 |
+
$desc = __('Size of thumbnails in Last Ten widget.', 'wp-photo-album-plus');
|
4312 |
+
$help = (__('Enter the size for the mini photos in the LasTen widget.', 'wp-photo-album-plus'));
|
4313 |
+
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
4314 |
+
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
4315 |
+
$slug = 'wppa_lasten_size';
|
4316 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4317 |
+
$clas = '';
|
4318 |
+
$tags = 'size,widget';
|
4319 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
4320 |
+
|
4321 |
+
$name = __('Album widget count', 'wp-photo-album-plus');
|
4322 |
+
$desc = __('Number of albums in Album widget.', 'wp-photo-album-plus');
|
4323 |
+
$help = (__('Enter the maximum number of thumbnail photos of albums in the Album widget.', 'wp-photo-album-plus'));
|
4324 |
+
$slug = 'wppa_album_widget_count';
|
4325 |
+
$html = wppa_input($slug, '40px', '', __('albums', 'wp-photo-album-plus'));
|
4326 |
+
$clas = '';
|
4327 |
+
$tags = 'count,widget';
|
4328 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
4329 |
+
|
4330 |
+
$name = __('Album widget size', 'wp-photo-album-plus');
|
4331 |
+
$desc = __('Size of thumbnails in Album widget.', 'wp-photo-album-plus');
|
4332 |
+
$help = (__('Enter the size for the mini photos in the Album widget.', 'wp-photo-album-plus'));
|
4333 |
+
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
4334 |
+
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
4335 |
+
$slug = 'wppa_album_widget_size';
|
4336 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4337 |
+
$clas = '';
|
4338 |
+
$tags = 'size,widget';
|
4339 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
4340 |
Â
|
4341 |
+
$name = __('FeaTen count', 'wp-photo-album-plus');
|
4342 |
+
$desc = __('Number of photos in Featured Ten widget.', 'wp-photo-album-plus');
|
4343 |
+
$help = (__('Enter the maximum number of photos in the FeaTen widget.', 'wp-photo-album-plus'));
|
4344 |
+
$slug = 'wppa_featen_count';
|
4345 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4346 |
+
$clas = '';
|
4347 |
+
$tags = 'count,widget';
|
4348 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
4349 |
Â
|
4350 |
+
$name = __('FeaTen size', 'wp-photo-album-plus');
|
4351 |
+
$desc = __('Size of thumbnails in Featured Ten widget.', 'wp-photo-album-plus');
|
4352 |
+
$help = (__('Enter the size for the mini photos in the FeaTen widget.', 'wp-photo-album-plus'));
|
4353 |
+
$help .= '<br />'.(__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus'));
|
4354 |
+
$help .= '<br />'.(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus'));
|
4355 |
+
$slug = 'wppa_featen_size';
|
4356 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4357 |
+
$clas = '';
|
4358 |
+
$tags = 'size,widget';
|
4359 |
+
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4360 |
Â
|
4361 |
+
$name = __('Tagcloud min size', 'wp-photo-album-plus');
|
4362 |
+
$desc = __('Minimal fontsize in tagclouds', 'wp-photo-album-plus');
|
4363 |
+
$help = '';
|
4364 |
+
$slug = 'wppa_tagcloud_min';
|
4365 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4366 |
+
$clas = '';
|
4367 |
+
$tags = 'layout,size,widget';
|
4368 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
4369 |
Â
|
4370 |
+
$name = __('Tagcloud max size', 'wp-photo-album-plus');
|
4371 |
+
$desc = __('Maximal fontsize in tagclouds', 'wp-photo-album-plus');
|
4372 |
+
$help = '';
|
4373 |
+
$slug = 'wppa_tagcloud_max';
|
4374 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4375 |
+
$clas = '';
|
4376 |
+
$tags = 'layout,size,widget';
|
4377 |
+
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4378 |
Â
|
4379 |
+
$name = __('Tagcloud character sizing', 'wp-photo-album-plus');
|
4380 |
+
$desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
|
4381 |
+
$help = '';
|
4382 |
+
$slug = 'wppa_tagcloud_formula';
|
4383 |
+
$opts = array('linear', 'quadratic', 'cubic');
|
4384 |
+
$vals = array('linear', 'quadratic', 'cubic');
|
4385 |
+
$html = wppa_select($slug, $opts, $vals);
|
4386 |
+
$clas = '';
|
4387 |
+
$tags = 'layout,size,widget';
|
4388 |
+
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4389 |
Â
|
4390 |
+
}
|
4391 |
+
wppa_setting_subheader( 'H', '1', __( 'Video related size settings' , 'wp-photo-album-plus'), 'wppa-video' );
|
4392 |
+
{
|
4393 |
+
$name = __('Default width', 'wp-photo-album-plus');
|
4394 |
+
$desc = __('The width of most videos', 'wp-photo-album-plus');
|
4395 |
+
$help = (__('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus'));
|
4396 |
+
$slug = 'wppa_video_width';
|
4397 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4398 |
+
$clas = 'wppa-video';
|
4399 |
+
$tags = 'size,video';
|
4400 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
4401 |
+
|
4402 |
+
$name = __('Default height', 'wp-photo-album-plus');
|
4403 |
+
$desc = __('The height of most videos', 'wp-photo-album-plus');
|
4404 |
+
$help = (__('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus'));
|
4405 |
+
$slug = 'wppa_video_height';
|
4406 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4407 |
+
$clas = 'wppa-video';
|
4408 |
+
$tags = 'size,video';
|
4409 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
4410 |
+
}
|
4411 |
Â
|
4412 |
+
wppa_setting_subheader( 'J', '1', __( 'Navigation icon size settings' , 'wp-photo-album-plus') );
|
4413 |
+
{
|
4414 |
+
$name = __('Navigation icon size', 'wp-photo-album-plus');
|
4415 |
+
$desc = __('The size of navigation icons', 'wp-photo-album-plus');
|
4416 |
+
$help = '';
|
4417 |
+
$slug = 'wppa_nav_icon_size';
|
4418 |
+
$opts = array( '1.5em',
|
4419 |
+
'16px',
|
4420 |
+
'20px',
|
4421 |
+
'24px',
|
4422 |
+
'32px',
|
4423 |
+
);
|
4424 |
+
$vals = array( 'default',
|
4425 |
+
'16',
|
4426 |
+
'20',
|
4427 |
+
'24',
|
4428 |
+
'32',
|
4429 |
+
);
|
4430 |
+
$html = wppa_select($slug, $opts, $vals);
|
4431 |
+
$clas = '';
|
4432 |
+
$tags = 'size,layout';
|
4433 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
4434 |
Â
|
4435 |
+
$name = __('Navigation icon size slideshow', 'wp-photo-album-plus');
|
4436 |
+
$desc = __('The size of navigation icons on the slide', 'wp-photo-album-plus');
|
4437 |
+
$help = '';
|
4438 |
+
$slug = 'wppa_nav_icon_size_slide';
|
4439 |
+
$opts = array( '16px',
|
4440 |
+
'20px',
|
4441 |
+
'24px',
|
4442 |
+
'32px',
|
4443 |
+
'48px',
|
4444 |
+
);
|
4445 |
+
$vals = array( '16',
|
4446 |
+
'20',
|
4447 |
+
'24',
|
4448 |
+
'32',
|
4449 |
+
'default',
|
4450 |
+
);
|
4451 |
+
$html = wppa_select($slug, $opts, $vals);
|
4452 |
+
$clas = '';
|
4453 |
+
$tags = 'size,layout';
|
4454 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
4455 |
Â
|
4456 |
+
$name = __('Icon size rating', 'wp-photo-album-plus');
|
4457 |
+
$desc = __('The size of rating stars', 'wp-photo-album-plus');
|
4458 |
+
$help = '';
|
4459 |
+
$slug = 'wppa_icon_size_rating';
|
4460 |
+
$opts = array( '1em+3px',
|
4461 |
+
'16px',
|
4462 |
+
'18px',
|
4463 |
+
'20px',
|
4464 |
+
'24px',
|
4465 |
+
'32px',
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4466 |
Â
);
|
4467 |
+
$vals = array( 'default',
|
4468 |
+
'16',
|
4469 |
+
'18',
|
4470 |
+
'20',
|
4471 |
+
'24',
|
4472 |
+
'32',
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4473 |
Â
);
|
4474 |
+
$html = wppa_select($slug, $opts, $vals);
|
4475 |
+
$clas = '';
|
4476 |
+
$tags = 'size,layout';
|
4477 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4478 |
Â
|
4479 |
+
$name = __('Navigation icon size panorama', 'wp-photo-album-plus');
|
4480 |
+
$desc = __('The size of navigation icons on panorama photos', 'wp-photo-album-plus');
|
4481 |
+
$help = '';
|
4482 |
+
$slug = 'wppa_nav_icon_size_panorama';
|
4483 |
+
$opts = array( '16px',
|
4484 |
+
'20px',
|
4485 |
+
'24px',
|
4486 |
+
'32px',
|
4487 |
+
'40px',
|
4488 |
+
'48px',
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4489 |
Â
);
|
4490 |
+
$vals = array( '16',
|
4491 |
+
'20',
|
4492 |
+
'24',
|
4493 |
+
'32',
|
4494 |
+
'40',
|
4495 |
+
'48',
|
Â
|
|
Â
|
|
4496 |
Â
);
|
4497 |
+
$html = wppa_select($slug, $opts, $vals);
|
4498 |
+
$clas = '';
|
4499 |
+
$tags = 'size,layout';
|
4500 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4501 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4502 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4503 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4504 |
Â
|
4505 |
+
$name = __('Icon size fullsize page', 'wp-photo-album-plus');
|
4506 |
+
$desc = __('The size of navigation icons for the fullsize page', 'wp-photo-album-plus');
|
Â
|
|
4507 |
Â
$help = '';
|
4508 |
+
$slug = 'wppa_nav_icon_size_global_fs';
|
4509 |
+
$opts = array( '16px',
|
4510 |
+
'20px',
|
4511 |
+
'24px',
|
4512 |
+
'32px',
|
4513 |
+
'40px',
|
4514 |
+
'48px',
|
4515 |
+
);
|
4516 |
+
$vals = array( '16',
|
4517 |
+
'20',
|
4518 |
+
'24',
|
4519 |
+
'32',
|
4520 |
+
'40',
|
4521 |
+
'48',
|
4522 |
+
);
|
4523 |
Â
$html = wppa_select($slug, $opts, $vals);
|
4524 |
+
$clas = '';
|
4525 |
+
$tags = 'size,layout';
|
4526 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
4527 |
+
}
|
4528 |
+
?>
|
4529 |
+
</tbody>
|
4530 |
+
<tfoot style="font-weight: bold;" class="wppa_table_1">
|
4531 |
+
<tr>
|
4532 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
4533 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
4534 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
4535 |
+
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
4536 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
4537 |
+
</tr>
|
4538 |
+
</tfoot>
|
4539 |
+
</table>
|
4540 |
+
</div>
|
4541 |
Â
|
4542 |
+
<?php // Table 2: Visibility ?>
|
4543 |
+
<?php wppa_settings_box_header(
|
4544 |
+
'2',
|
4545 |
+
__('Table II:', 'wp-photo-album-plus').' '.__('Visibility:', 'wp-photo-album-plus').' '.
|
4546 |
+
__('This table describes the visibility of certain wppa+ elements.', 'wp-photo-album-plus')
|
4547 |
+
); ?>
|
Â
|
|
Â
|
|
4548 |
Â
|
4549 |
+
<div id="wppa_table_2" style="display:none" >
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4550 |
Â
|
4551 |
+
<table class="widefat wppa-table wppa-setting-table">
|
4552 |
+
<thead style="font-weight: bold; " class="wppa_table_2">
|
4553 |
+
<tr>
|
4554 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
4555 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
4556 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
4557 |
+
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
4558 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
4559 |
+
</tr>
|
4560 |
+
</thead>
|
4561 |
+
<tbody class="wppa_table_2">
|
4562 |
+
<?php
|
4563 |
+
$wppa_table = 'II';
|
4564 |
+
|
4565 |
+
wppa_setting_subheader( 'A', '1', __( 'Breadcrumb related visibility settings' , 'wp-photo-album-plus') );
|
4566 |
+
{
|
4567 |
+
$name = __('Breadcrumb on posts', 'wp-photo-album-plus');
|
4568 |
+
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
|
4569 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus'));
|
4570 |
+
$slug = 'wppa_show_bread_posts';
|
4571 |
+
$onchange = 'wppaCheckBreadcrumb()';
|
4572 |
+
$html = wppa_checkbox($slug, $onchange);
|
4573 |
+
$clas = '';
|
4574 |
+
$tags = 'navi,page';
|
4575 |
+
wppa_setting($slug, '1a', $name, $desc, $html, $help, $clas, $tags);
|
4576 |
+
|
4577 |
+
$name = __('Breadcrumb on pages', 'wp-photo-album-plus');
|
4578 |
+
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
|
4579 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus'));
|
4580 |
+
$slug = 'wppa_show_bread_pages';
|
4581 |
+
$onchange = 'wppaCheckBreadcrumb()';
|
4582 |
+
$html = wppa_checkbox($slug, $onchange);
|
4583 |
+
$clas = '';
|
4584 |
+
$tags = 'navi,page';
|
4585 |
+
wppa_setting($slug, '1b', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4586 |
Â
|
4587 |
+
$name = __('Breadcrumb on search results', 'wp-photo-album-plus');
|
4588 |
+
$desc = __('Show breadcrumb navigation bars on the search results page.', 'wp-photo-album-plus');
|
4589 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the search results.', 'wp-photo-album-plus'));
|
4590 |
+
$slug = 'wppa_bc_on_search';
|
4591 |
+
$html = wppa_checkbox($slug);
|
4592 |
+
$clas = 'wppa_bc';
|
4593 |
+
$tags = 'navi,page,search';
|
4594 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
4595 |
+
|
4596 |
+
$name = __('Breadcrumb on topten displays', 'wp-photo-album-plus');
|
4597 |
+
$desc = __('Show breadcrumb navigation bars on topten displays.', 'wp-photo-album-plus');
|
4598 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the topten displays.', 'wp-photo-album-plus'));
|
4599 |
+
$slug = 'wppa_bc_on_topten';
|
4600 |
+
$html = wppa_checkbox($slug);
|
4601 |
+
$clas = 'wppa_bc';
|
4602 |
+
$tags = 'navi,page';
|
4603 |
+
wppa_setting($slug, '3.0', $name, $desc, $html, $help, $clas, $tags);
|
4604 |
Â
|
4605 |
+
$name = __('Breadcrumb on last ten displays', 'wp-photo-album-plus');
|
4606 |
+
$desc = __('Show breadcrumb navigation bars on last ten displays.', 'wp-photo-album-plus');
|
4607 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the last ten displays.', 'wp-photo-album-plus'));
|
4608 |
+
$slug = 'wppa_bc_on_lasten';
|
4609 |
+
$html = wppa_checkbox($slug);
|
4610 |
+
$clas = 'wppa_bc';
|
4611 |
+
$tags = 'navi,page';
|
4612 |
+
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
4613 |
+
|
4614 |
+
$name = __('Breadcrumb on comment ten displays', 'wp-photo-album-plus');
|
4615 |
+
$desc = __('Show breadcrumb navigation bars on comment ten displays.', 'wp-photo-album-plus');
|
4616 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the comment ten displays.', 'wp-photo-album-plus'));
|
4617 |
+
$slug = 'wppa_bc_on_comten';
|
4618 |
+
$html = wppa_checkbox($slug);
|
4619 |
+
$clas = 'wppa_bc';
|
4620 |
+
$tags = 'navi,page,comment';
|
4621 |
+
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
4622 |
Â
|
4623 |
+
$name = __('Breadcrumb on tag result displays', 'wp-photo-album-plus');
|
4624 |
+
$desc = __('Show breadcrumb navigation bars on tag result displays.', 'wp-photo-album-plus');
|
4625 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the tag result displays.', 'wp-photo-album-plus'));
|
4626 |
+
$slug = 'wppa_bc_on_tag';
|
4627 |
+
$html = wppa_checkbox($slug);
|
4628 |
+
$clas = 'wppa_bc';
|
4629 |
+
$tags = 'navi,page';
|
4630 |
+
wppa_setting($slug, '3.3', $name, $desc, $html, $help, $clas, $tags);
|
4631 |
+
|
4632 |
+
$name = __('Breadcrumb on featured ten displays', 'wp-photo-album-plus');
|
4633 |
+
$desc = __('Show breadcrumb navigation bars on featured ten displays.', 'wp-photo-album-plus');
|
4634 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the featured ten displays.', 'wp-photo-album-plus'));
|
4635 |
+
$slug = 'wppa_bc_on_featen';
|
4636 |
+
$html = wppa_checkbox($slug);
|
4637 |
+
$clas = 'wppa_bc';
|
4638 |
+
$tags = 'navi,page';
|
4639 |
+
wppa_setting($slug, '3.4', $name, $desc, $html, $help, $clas, $tags);
|
4640 |
+
|
4641 |
+
$name = __('Breadcrumb on related photos displays', 'wp-photo-album-plus');
|
4642 |
+
$desc = __('Show breadcrumb navigation bars on related photos displays.', 'wp-photo-album-plus');
|
4643 |
+
$help = (__('Indicate whether a breadcrumb navigation should be displayed above the related photos displays.', 'wp-photo-album-plus'));
|
4644 |
+
$slug = 'wppa_bc_on_related';
|
4645 |
+
$html = wppa_checkbox($slug);
|
4646 |
+
$clas = 'wppa_bc';
|
4647 |
+
$tags = 'navi,page';
|
4648 |
+
wppa_setting($slug, '3.5', $name, $desc, $html, $help, $clas, $tags);
|
4649 |
+
|
4650 |
+
$name = __('Home', 'wp-photo-album-plus');
|
4651 |
+
$desc = __('Show "Home" in breadcrumb.', 'wp-photo-album-plus');
|
4652 |
+
$help = (__('Indicate whether the breadcrumb navigation should start with a "Home"-link', 'wp-photo-album-plus'));
|
4653 |
+
$slug = 'wppa_show_home';
|
4654 |
+
$html = wppa_checkbox($slug);
|
4655 |
+
$clas = 'wppa_bc';
|
4656 |
+
$tags = 'navi,layout';
|
4657 |
+
wppa_setting($slug, '4.1', $name, $desc, $html, $help, $clas, $tags);
|
4658 |
Â
|
4659 |
+
$name = __('Home text', 'wp-photo-album-plus');
|
4660 |
+
$desc = __('The text to use as "Home"', 'wp-photo-album-plus');
|
4661 |
+
$help = ' ';
|
4662 |
+
$slug = 'wppa_home_text';
|
4663 |
+
$html = wppa_input($slug, '100px;');
|
4664 |
+
$clas = 'wppa_bc';
|
4665 |
+
$tags = 'navi,layout';
|
4666 |
+
wppa_setting($slug, '4.2', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4667 |
Â
|
4668 |
+
$name = __('Page', 'wp-photo-album-plus');
|
4669 |
+
$desc = __('Show the page(s) in breadcrumb.', 'wp-photo-album-plus');
|
4670 |
+
$help = (__('Indicate whether the breadcrumb navigation should show the page(hierarchy)', 'wp-photo-album-plus'));
|
4671 |
+
$slug = 'wppa_show_page';
|
4672 |
+
$html = wppa_checkbox($slug);
|
4673 |
+
$clas = 'wppa_bc';
|
4674 |
+
$tags = 'navi,layout';
|
4675 |
+
wppa_setting($slug, '4.3', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4676 |
Â
|
4677 |
+
$name = __('Photo name', 'wp-photo-album-plus');
|
4678 |
+
$desc = __('Show name of photo above slideshow.', 'wp-photo-album-plus');
|
4679 |
+
$help = '';
|
4680 |
+
$slug = 'wppa_show_pname';
|
4681 |
+
$html = wppa_checkbox($slug);
|
4682 |
+
$clas = 'wppa_bc';
|
4683 |
+
$tags = 'navi,layout';
|
4684 |
+
wppa_setting($slug, '4.4', $name, $desc, $html, $help, $clas, $tags);
|
4685 |
+
|
4686 |
+
$name = __('Separator', 'wp-photo-album-plus');
|
4687 |
+
$desc = __('Breadcrumb separator symbol.', 'wp-photo-album-plus');
|
4688 |
+
$help = (__('Select the desired breadcrumb separator element.', 'wp-photo-album-plus'));
|
4689 |
+
$help .= '<br />'.(__('A text string may contain valid html.', 'wp-photo-album-plus'));
|
4690 |
+
$help .= '<br />'.(__('An image will be scaled automatically if you set the navigation font size.', 'wp-photo-album-plus'));
|
4691 |
+
$slug = 'wppa_bc_separator';
|
4692 |
+
$options = array('&raquo', '&rsaquo', '&gt', '&bull', __('Text (html):', 'wp-photo-album-plus'), __('Image (url):', 'wp-photo-album-plus'));
|
4693 |
+
$values = array('raquo', 'rsaquo', 'gt', 'bull', 'txt', 'url');
|
4694 |
+
$onchange = 'wppaCheckBreadcrumb()';
|
4695 |
+
$html = wppa_select($slug, $options, $values, $onchange);
|
4696 |
+
$clas = 'wppa_bc';
|
4697 |
+
$tags = 'navi,layout';
|
4698 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
4699 |
+
|
4700 |
+
$name = __('Html', 'wp-photo-album-plus');
|
4701 |
+
$desc = __('Breadcrumb separator text.', 'wp-photo-album-plus');
|
4702 |
+
$help = (__('Enter the HTML code that produces the separator symbol you want.', 'wp-photo-album-plus'));
|
4703 |
+
$help .= '<br />'.(__('It may be as simple as \'-\' (without the quotes) or as complex as a tag like <div>..</div>.', 'wp-photo-album-plus'));
|
4704 |
+
$slug = 'wppa_bc_txt';
|
4705 |
+
$html = wppa_input($slug, '90%', '300px');
|
4706 |
+
$clas = $slug;
|
4707 |
+
$tags = 'navi,layout';
|
4708 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
4709 |
+
|
4710 |
+
$name = __('Image Url', 'wp-photo-album-plus');
|
4711 |
+
$desc = __('Full url to separator image.', 'wp-photo-album-plus');
|
4712 |
+
$help = (__('Enter the full url to the image you want to use for the separator symbol.', 'wp-photo-album-plus'));
|
4713 |
+
$slug = 'wppa_bc_url';
|
4714 |
+
$html = wppa_input($slug, '90%', '300px');
|
4715 |
+
$clas = $slug;
|
4716 |
+
$tags = 'navi,layout';
|
4717 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
4718 |
+
|
4719 |
+
$name = __('Pagelink position', 'wp-photo-album-plus');
|
4720 |
+
$desc = __('The location for the pagelinks bar.', 'wp-photo-album-plus');
|
4721 |
+
$help = '';
|
4722 |
+
$slug = 'wppa_pagelink_pos';
|
4723 |
+
$options = array(__('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'), __('Both', 'wp-photo-album-plus'));
|
4724 |
+
$values = array('top', 'bottom', 'both');
|
4725 |
+
$html = wppa_select($slug, $options, $values);
|
4726 |
+
$clas = '';
|
4727 |
+
$tags = 'navi,layout';
|
4728 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
4729 |
Â
|
4730 |
+
$name = __('Thumblink on slideshow', 'wp-photo-album-plus');
|
4731 |
+
$desc = __('Show a thumb link on slideshow bc.', 'wp-photo-album-plus');
|
4732 |
+
$help = (__('Show a link to thumbnail display on an breadcrumb above a slideshow', 'wp-photo-album-plus'));
|
4733 |
+
$slug = 'wppa_bc_slide_thumblink';
|
4734 |
+
$html = wppa_checkbox($slug);
|
4735 |
+
$clas = '';
|
4736 |
+
$tags = 'navi,layout';
|
4737 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
4738 |
+
}
|
4739 |
+
wppa_setting_subheader( 'B', '1', __( 'Slideshow related visibility settings' , 'wp-photo-album-plus') );
|
4740 |
+
{
|
4741 |
+
$name = __('Navigation type', 'wp-photo-album-plus');
|
4742 |
+
$desc = __('Select the type of navigation you want.', 'wp-photo-album-plus');
|
4743 |
+
$help = '';
|
4744 |
+
$slug = 'wppa_navigation_type';
|
4745 |
+
$opts = array( __('Icons', 'wp-photo-album-plus'),
|
4746 |
+
__('Icons on mobile, text on pc', 'wp-photo-album-plus'),
|
4747 |
+
__('Text', 'wp-photo-album-plus'),
|
4748 |
Â
);
|
4749 |
+
$vals = array( 'icons',
|
4750 |
+
'iconsmobile',
|
4751 |
+
'text',
|
4752 |
Â
);
|
4753 |
+
$html = wppa_select($slug, $opts, $vals);
|
4754 |
+
$tags = 'slide,navi';
|
4755 |
+
wppa_setting($slug, '0', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4756 |
Â
|
4757 |
+
$name = __('Start/stop', 'wp-photo-album-plus');
|
4758 |
+
$desc = __('Show the Start/Stop slideshow bar.', 'wp-photo-album-plus');
|
4759 |
+
$help = (__('If checked: display the start/stop slideshow navigation bar above the full-size images and slideshow', 'wp-photo-album-plus'));
|
4760 |
+
$slug = 'wppa_show_startstop_navigation';
|
4761 |
+
$html = wppa_checkbox($slug);
|
4762 |
+
$clas = '';
|
4763 |
+
$tags = 'slide,navi';
|
4764 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
4765 |
Â
|
4766 |
+
$name = __('Start/stop on Filmonly');
|
4767 |
+
$desc = __('Show the Start/Stop slideshow bar on filmonly displays.', 'wp-photo-album-plus');
|
4768 |
+
$help = '';
|
4769 |
+
$slug = 'wppa_show_startstop_filmonly';
|
4770 |
+
$html = wppa_checkbox($slug);
|
4771 |
+
$clas = '';
|
4772 |
+
$tags = 'slide,navi';
|
4773 |
+
wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
4774 |
Â
|
4775 |
+
$name = __('Renew on Filmonly', 'wp-photo-album-plus');
|
4776 |
+
$desc = __('Show renew link on filmonly displays.', 'wp-photo-album-plus');
|
4777 |
+
$help = '';
|
4778 |
+
$slug = 'wppa_show_renew_filmonly';
|
4779 |
+
$html = wppa_checkbox($slug);
|
4780 |
+
$clas = '';
|
4781 |
+
$tags = 'slide,navi';
|
4782 |
+
wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
|
4783 |
Â
|
4784 |
+
$name = __('Browse bar', 'wp-photo-album-plus');
|
4785 |
+
$desc = __('Show Browse photos bar.', 'wp-photo-album-plus');
|
4786 |
+
$help = (__('If checked: display the preveous/next navigation bar under the full-size images and slideshow', 'wp-photo-album-plus'));
|
4787 |
+
$slug = 'wppa_show_browse_navigation';
|
4788 |
+
$html = wppa_checkbox($slug);
|
4789 |
+
$clas = '';
|
4790 |
+
$tags = 'slide,navi';
|
4791 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
4792 |
Â
|
4793 |
+
$name = __('Filmstrip', 'wp-photo-album-plus');
|
4794 |
+
$desc = __('Show Filmstrip navigation bar.', 'wp-photo-album-plus');
|
4795 |
+
$help = (__('If checked: display the filmstrip navigation bar under the full_size images and slideshow', 'wp-photo-album-plus'));
|
4796 |
+
$slug = 'wppa_filmstrip';
|
4797 |
+
$html = wppa_checkbox($slug);
|
4798 |
+
$clas = '';
|
4799 |
+
$tags = 'slide,navi,thumb';
|
4800 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
4801 |
Â
|
4802 |
+
$name = __('Film seam', 'wp-photo-album-plus');
|
4803 |
+
$desc = __('Show seam between end and start of film.', 'wp-photo-album-plus');
|
4804 |
+
$help = (__('If checked: display the wrap-around point in the filmstrip', 'wp-photo-album-plus'));
|
4805 |
+
$slug = 'wppa_film_show_glue';
|
4806 |
+
$html = wppa_checkbox($slug);
|
4807 |
+
$clas = '';
|
4808 |
+
$tags = 'slide,navi,layout';
|
4809 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4810 |
Â
|
4811 |
+
$name = __('Photo name', 'wp-photo-album-plus');
|
4812 |
+
$desc = __('Display photo name.', 'wp-photo-album-plus');
|
4813 |
+
$help = (__('If checked: display the name of the photo under the slideshow image.', 'wp-photo-album-plus'));
|
4814 |
+
$slug = 'wppa_show_full_name';
|
4815 |
+
$html = wppa_checkbox($slug);
|
4816 |
+
$clas = '';
|
4817 |
+
$tags = 'slide,meta,layout';
|
4818 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4819 |
Â
|
4820 |
+
$name = __('Add (Owner)', 'wp-photo-album-plus');
|
4821 |
+
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
|
4822 |
+
$help = '';
|
4823 |
+
$slug = 'wppa_show_full_owner';
|
4824 |
+
$html = wppa_checkbox($slug);
|
4825 |
+
$clas = '';
|
4826 |
+
$tags = 'slide,meta,layout';
|
4827 |
+
wppa_setting($slug, '5.1', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
4828 |
Â
|
4829 |
+
$name = __('Photo desc', 'wp-photo-album-plus');
|
4830 |
+
$desc = __('Display Photo description.', 'wp-photo-album-plus');
|
4831 |
+
$help = (__('If checked: display the description of the photo under the slideshow image.', 'wp-photo-album-plus'));
|
4832 |
+
$slug = 'wppa_show_full_desc';
|
4833 |
+
$html = wppa_checkbox($slug);
|
4834 |
+
$clas = '';
|
4835 |
+
$tags = 'slide,meta,layout';
|
4836 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
4837 |
Â
|
4838 |
+
$name = __('Hide when empty', 'wp-photo-album-plus');
|
4839 |
+
$desc = __('Hide the descriptionbox when empty.', 'wp-photo-album-plus');
|
4840 |
+
$help = '';
|
4841 |
+
$slug = 'wppa_hide_when_empty';
|
4842 |
+
$html = wppa_checkbox($slug);
|
4843 |
+
$clas = 'hide_empty';
|
4844 |
+
$tags = 'slide,meta,layout';
|
4845 |
+
wppa_setting($slug, '6.1', $name, $desc, $html, $help, $clas, $tags);
|
4846 |
Â
|
4847 |
+
$name = __('Comment Avatar default', 'wp-photo-album-plus');
|
4848 |
+
$desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus');
|
4849 |
Â
$help = '';
|
4850 |
+
$slug = 'wppa_comment_gravatar';
|
4851 |
+
$onchange = 'wppaCheckGravatar()';
|
4852 |
+
$options = array( __('--- none ---', 'wp-photo-album-plus'),
|
4853 |
+
__('mystery man', 'wp-photo-album-plus'),
|
4854 |
+
__('identicon', 'wp-photo-album-plus'),
|
4855 |
+
__('monsterid', 'wp-photo-album-plus'),
|
4856 |
+
__('wavatar', 'wp-photo-album-plus'),
|
4857 |
+
__('retro', 'wp-photo-album-plus'),
|
4858 |
+
__('--- url ---', 'wp-photo-album-plus')
|
4859 |
Â
);
|
4860 |
+
$values = array( 'none',
|
4861 |
+
'mm',
|
4862 |
+
'identicon',
|
4863 |
+
'monsterid',
|
4864 |
+
'wavatar',
|
4865 |
+
'retro',
|
4866 |
+
'url'
|
4867 |
Â
);
|
4868 |
+
$html = wppa_select($slug, $options, $values, $onchange);
|
4869 |
+
$clas = 'wppa_comment_';
|
4870 |
+
$tags = 'slide,comment,layout';
|
4871 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
4872 |
+
|
4873 |
+
$name = __('Comment Avatar url', 'wp-photo-album-plus');
|
4874 |
+
$desc = __('Comment Avatar default url.', 'wp-photo-album-plus');
|
4875 |
+
$help = '';
|
4876 |
+
$slug = 'wppa_comment_gravatar_url';
|
4877 |
+
$html = wppa_input($slug, '90%', '300px');
|
4878 |
+
$clas = 'wppa_grav';
|
4879 |
+
$tags = 'slide,comment,layout';
|
4880 |
+
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
4881 |
+
|
4882 |
+
$name = __('Big Browse Buttons', 'wp-photo-album-plus');
|
4883 |
+
$desc = __('Enable invisible browsing buttons.', 'wp-photo-album-plus');
|
4884 |
+
$help = (__('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus'));
|
4885 |
+
$help .= '<br />'.(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus'));
|
4886 |
+
$slug = 'wppa_show_bbb';
|
4887 |
+
$html = wppa_checkbox($slug);
|
4888 |
Â
$clas = '';
|
4889 |
+
$tags = 'slide,navi';
|
4890 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
4891 |
+
|
4892 |
+
$name = __('Ugly Browse Buttons', 'wp-photo-album-plus');
|
4893 |
+
$desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus');
|
4894 |
+
$help = (__('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus'));
|
4895 |
+
$slug = 'wppa_show_ubb';
|
4896 |
+
$html = wppa_checkbox($slug);
|
4897 |
+
$clas = '';
|
4898 |
+
$tags = 'slide,navi';
|
4899 |
+
wppa_setting($slug, '13.1', $name, $desc, $html, $help, $clas, $tags);
|
4900 |
Â
|
4901 |
+
$name = __('Start/stop icons', 'wp-photo-album-plus');
|
4902 |
+
$desc = __('Show start and stop icons at the center of the slide', 'wp-photo-album-plus');
|
4903 |
Â
$help = '';
|
4904 |
+
$slug = 'wppa_show_start_stop_icons';
|
4905 |
+
$html = wppa_checkbox($slug);
|
4906 |
+
$clas = '';
|
4907 |
+
$tags = 'slide,navi';
|
4908 |
+
wppa_setting($slug, '13.2', $name, $desc, $html, $help, $clas, $tags);
|
4909 |
+
|
4910 |
+
$name = __('Show custom box', 'wp-photo-album-plus');
|
4911 |
+
$desc = __('Display the custom box in the slideshow', 'wp-photo-album-plus');
|
4912 |
+
$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'));
|
4913 |
+
$help .= '<br />'.(__('The position of the box can be defined in Table IX-E.', 'wp-photo-album-plus'));
|
4914 |
+
$slug = 'wppa_custom_on';
|
4915 |
+
$onchange = 'wppaCheckCustom()';
|
4916 |
+
$html = wppa_checkbox($slug, $onchange);
|
4917 |
+
$clas = '';
|
4918 |
+
$tags = 'slide,layout';
|
4919 |
+
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
4920 |
+
|
4921 |
+
$name = __('Custom content', 'wp-photo-album-plus');
|
4922 |
+
$desc = __('The content (html) of the custom box.', 'wp-photo-album-plus');
|
4923 |
+
$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'));
|
4924 |
+
$help .= '<br />'.(__('The position of the box can be defined in Table IX-E.', 'wp-photo-album-plus'));
|
4925 |
+
$slug = 'wppa_custom_content';
|
4926 |
+
$html = wppa_textarea($slug, $name);
|
4927 |
+
$clas = 'wppa_custom_';
|
4928 |
+
$tags = 'slide,layout';
|
4929 |
+
wppa_setting(false, '15', $name, $desc, $html, $help, $clas, $tags);
|
4930 |
+
|
4931 |
+
$name = __('Slideshow/Number bar', 'wp-photo-album-plus');
|
4932 |
+
$desc = __('Display the Slideshow / Number bar.', 'wp-photo-album-plus');
|
4933 |
+
$help = (__('If checked: display the number boxes on slideshow', 'wp-photo-album-plus'));
|
4934 |
+
$slug = 'wppa_show_slideshownumbar';
|
4935 |
+
$onchange = 'wppaCheckNumbar()';
|
4936 |
+
$html = wppa_checkbox($slug, $onchange);
|
4937 |
+
$clas = '';
|
4938 |
+
$tags = 'slide,navi';
|
4939 |
+
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
4940 |
+
|
4941 |
+
$name = __('IPTC system', 'wp-photo-album-plus');
|
4942 |
+
$desc = __('Enable the iptc system.', 'wp-photo-album-plus');
|
4943 |
+
$help = (__('Display the iptc box under the fullsize images.', 'wp-photo-album-plus'));
|
4944 |
+
$slug = 'wppa_show_iptc';
|
4945 |
+
$onchange = '';
|
4946 |
+
$html = wppa_checkbox($slug);
|
4947 |
+
$clas = '';
|
4948 |
+
$tags = 'slide,meta,layout';
|
4949 |
+
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
4950 |
+
|
4951 |
+
$name = __('IPTC open', 'wp-photo-album-plus');
|
4952 |
+
$desc = __('Display the iptc box initially opened.', 'wp-photo-album-plus');
|
4953 |
+
$help = (__('Display the iptc box under the fullsize images initially open.', 'wp-photo-album-plus'));
|
4954 |
+
$slug = 'wppa_show_iptc_open';
|
4955 |
+
$onchange = '';
|
4956 |
+
$html = wppa_checkbox($slug);
|
4957 |
+
$clas = '';
|
4958 |
+
$tags = 'slide,meta,layout';
|
4959 |
+
wppa_setting($slug, '17.1', $name, $desc, $html, $help, $clas, $tags);
|
4960 |
+
|
4961 |
+
$name = __('EXIF system', 'wp-photo-album-plus');
|
4962 |
+
$desc = __('Enable the exif system.', 'wp-photo-album-plus');
|
4963 |
+
$help = (__('Display the exif box under the fullsize images.', 'wp-photo-album-plus'));
|
4964 |
+
$slug = 'wppa_show_exif';
|
4965 |
+
$onchange = '';
|
4966 |
+
$html = wppa_checkbox($slug);
|
4967 |
+
$clas = '';
|
4968 |
+
$tags = 'slide,meta,layout';
|
4969 |
+
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
4970 |
+
|
4971 |
+
$name = __('EXIF open', 'wp-photo-album-plus');
|
4972 |
+
$desc = __('Display the exif box initially opened.', 'wp-photo-album-plus');
|
4973 |
+
$help = (__('Display the exif box under the fullsize images initially open.', 'wp-photo-album-plus'));
|
4974 |
+
$slug = 'wppa_show_exif_open';
|
4975 |
+
$onchange = '';
|
4976 |
+
$html = wppa_checkbox($slug);
|
4977 |
+
$clas = '';
|
4978 |
+
$tags = 'slide,meta,layout';
|
4979 |
+
wppa_setting($slug, '18.1', $name, $desc, $html, $help, $clas, $tags);
|
4980 |
+
}
|
4981 |
+
|
4982 |
+
|
4983 |
+
wppa_setting_subheader( 'D', '1', __( 'Thumbnail display related visibility settings' , 'wp-photo-album-plus') );
|
4984 |
+
{
|
4985 |
+
$name = __('Thumbnail name', 'wp-photo-album-plus');
|
4986 |
+
$desc = __('Display Thumbnail name.', 'wp-photo-album-plus');
|
4987 |
+
$help = (__('Display photo name under thumbnail images.', 'wp-photo-album-plus'));
|
4988 |
+
$slug = 'wppa_thumb_text_name';
|
4989 |
+
$html = wppa_checkbox($slug);
|
4990 |
+
$clas = 'tt_normal';
|
4991 |
+
$tags = 'thumb,meta,layout';
|
4992 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
4993 |
+
|
4994 |
+
$name = __('Add (Owner)', 'wp-photo-album-plus');
|
4995 |
+
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
|
4996 |
+
$help = '';
|
4997 |
+
$slug = 'wppa_thumb_text_owner';
|
4998 |
+
$html = wppa_checkbox($slug);
|
4999 |
+
$clas = 'tt_normal';
|
5000 |
+
$tags = 'thumb,meta,layout';
|
5001 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
5002 |
+
|
5003 |
+
$name = __('Thumbnail desc', 'wp-photo-album-plus');
|
5004 |
+
$desc = __('Display Thumbnail description.', 'wp-photo-album-plus');
|
5005 |
+
$help = (__('Display description of the photo under thumbnail images.', 'wp-photo-album-plus'));
|
5006 |
+
$slug = 'wppa_thumb_text_desc';
|
5007 |
+
$html = wppa_checkbox($slug);
|
5008 |
+
$clas = 'tt_normal';
|
5009 |
+
$tags = 'thumb,meta,layout';
|
5010 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
5011 |
+
|
5012 |
+
$name = __('Thumbnail comcount', 'wp-photo-album-plus');
|
5013 |
+
$desc = __('Display Thumbnail Comment count.', 'wp-photo-album-plus');
|
5014 |
+
$help = (__('Display the number of comments to the photo under the thumbnail image.', 'wp-photo-album-plus'));
|
5015 |
+
$slug = 'wppa_thumb_text_comcount';
|
5016 |
+
$html = wppa_checkbox($slug);
|
5017 |
+
$clas = 'tt_normal';
|
5018 |
+
$tags = 'thumb,layout,comment';
|
5019 |
+
wppa_setting($slug, '4.1', $name, $desc, $html, $help, $clas, $tags);
|
5020 |
+
|
5021 |
+
$name = __('Thumbnail viewcount', 'wp-photo-album-plus');
|
5022 |
+
$desc = __('Display the number of views.', 'wp-photo-album-plus');
|
5023 |
+
$help = (__('Display the number of views under the thumbnail image.', 'wp-photo-album-plus'));
|
5024 |
+
$slug = 'wppa_thumb_text_viewcount';
|
5025 |
+
$html = wppa_checkbox($slug);
|
5026 |
+
$clas = 'tt_normal';
|
5027 |
+
$tags = 'thumb,layout,meta';
|
5028 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
5029 |
+
|
5030 |
+
$name = __('Thumbnail virt album', 'wp-photo-album-plus');
|
5031 |
+
$desc = __('Display the real album name on virtual album display.', 'wp-photo-album-plus');
|
5032 |
+
$help = (__('Display the album name of the photo in parenthesis under the thumbnail on virtual album displays like search results etc.', 'wp-photo-album-plus'));
|
5033 |
+
$slug = 'wppa_thumb_text_virt_album';
|
5034 |
+
$html = wppa_checkbox($slug);
|
5035 |
+
$clas = 'tt_normal';
|
5036 |
+
$tags = 'thumb,layout,meta';
|
5037 |
+
wppa_setting($slug, '5.1', $name, $desc, $html, $help, $clas, $tags);
|
5038 |
+
|
5039 |
+
$name = __('Thumbnail video', 'wp-photo-album-plus');
|
5040 |
+
$desc = __('Show video controls on thumbnail displays.', 'wp-photo-album-plus');
|
5041 |
+
$help = __('Works on default thumbnail type only. You can play the video only when the link is set to no link at all.', 'wp-photo-album-plus');
|
5042 |
+
$slug = 'wppa_thumb_video';
|
5043 |
+
$html = wppa_checkbox($slug);
|
5044 |
+
$clas = 'tt_normal';
|
5045 |
+
$tags = 'thumb,layout,video';
|
5046 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
5047 |
+
|
5048 |
+
$name = __('Thumbnail audio', 'wp-photo-album-plus');
|
5049 |
+
$desc = __('Show audio controls on thumbnail displays.', 'wp-photo-album-plus');
|
5050 |
+
$help = '';
|
5051 |
+
$slug = 'wppa_thumb_audio';
|
5052 |
+
$html = wppa_checkbox($slug);
|
5053 |
+
$clas = 'tt_normal';
|
5054 |
+
$tags = 'thumb,layout,audio';
|
5055 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
5056 |
+
|
5057 |
+
$name = __('Popup name', 'wp-photo-album-plus');
|
5058 |
+
$desc = __('Display Thumbnail name on popup.', 'wp-photo-album-plus');
|
5059 |
+
$help = (__('Display photo name under thumbnail images on the popup.', 'wp-photo-album-plus'));
|
5060 |
+
$slug = 'wppa_popup_text_name';
|
5061 |
+
$html = wppa_checkbox($slug);
|
5062 |
+
$clas = 'tt_normal tt_masonry wppa_popup';
|
5063 |
+
$tags = 'thumb,layout,meta';
|
5064 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
5065 |
+
|
5066 |
+
$name = __('Popup (owner)', 'wp-photo-album-plus');
|
5067 |
+
$desc = __('Display owner on popup.', 'wp-photo-album-plus');
|
5068 |
+
$help = (__('Display photo owner under thumbnail images on the popup.', 'wp-photo-album-plus'));
|
5069 |
+
$slug = 'wppa_popup_text_owner';
|
5070 |
+
$html = wppa_checkbox($slug);
|
5071 |
+
$clas = 'tt_normal tt_masonry wppa_popup';
|
5072 |
+
$tags = 'thumb,meta,layout';
|
5073 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5074 |
+
|
5075 |
+
$name = __('Popup desc', 'wp-photo-album-plus');
|
5076 |
+
$desc = __('Display Thumbnail description on popup.', 'wp-photo-album-plus');
|
5077 |
+
$help = (__('Display description of the photo under thumbnail images on the popup.', 'wp-photo-album-plus'));
|
5078 |
+
$slug = 'wppa_popup_text_desc';
|
5079 |
+
$html = wppa_checkbox($slug);
|
5080 |
+
$clas = 'tt_normal tt_masonry wppa_popup';
|
5081 |
+
$tags = 'thumb,meta,layout';
|
5082 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
5083 |
+
|
5084 |
+
$name = __('Popup desc no links', 'wp-photo-album-plus');
|
5085 |
+
$desc = __('Strip html anchor tags from descriptions on popups', 'wp-photo-album-plus');
|
5086 |
+
$help = (__('Use this option to prevent the display of links that cannot be activated.', 'wp-photo-album-plus'));
|
5087 |
+
$slug = 'wppa_popup_text_desc_strip';
|
5088 |
+
$html = wppa_checkbox($slug);
|
5089 |
+
$clas = 'tt_normal tt_masonry wppa_popup';
|
5090 |
+
$tags = 'thumb,meta,layout';
|
5091 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
5092 |
+
|
5093 |
+
$name = __('Popup rating', 'wp-photo-album-plus');
|
5094 |
+
$desc = __('Display Thumbnail Rating on popup.', 'wp-photo-album-plus');
|
5095 |
+
$help = (__('Display the rating of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus'));
|
5096 |
+
$slug = 'wppa_popup_text_rating';
|
5097 |
+
$html = '<span class="wppa_rating">'.wppa_checkbox($slug).'</span>';
|
5098 |
+
$clas = 'wppa_rating_ tt_normal tt_masonry wppa_popup';
|
5099 |
+
$tags = 'thumb,rating,layout';
|
5100 |
+
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
5101 |
+
|
5102 |
+
$name = __('Popup comcount', 'wp-photo-album-plus');
|
5103 |
+
$desc = __('Display Thumbnail Comment count on popup.', 'wp-photo-album-plus');
|
5104 |
+
$help = (__('Display the number of comments of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus'));
|
5105 |
+
$slug = 'wppa_popup_text_ncomments';
|
5106 |
+
$html = wppa_checkbox($slug);
|
5107 |
+
$clas = 'tt_normal tt_masonry wppa_popup';
|
5108 |
+
$tags = 'thumb,comment,layout';
|
5109 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
5110 |
+
|
5111 |
+
$name = __('Show name on thumb area', 'wp-photo-album-plus');
|
5112 |
+
$desc = __('Select if and where to display the album name on the thumbnail display.', 'wp-photo-album-plus');
|
5113 |
+
$help = '';
|
5114 |
+
$slug = 'wppa_albname_on_thumbarea';
|
5115 |
+
$options = array(__('None', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'));
|
5116 |
+
$values = array('none', 'top', 'bottom');
|
5117 |
+
$html = wppa_select($slug, $options, $values);
|
5118 |
+
$clas = '';
|
5119 |
+
$tags = 'album,meta,layout';
|
5120 |
+
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
5121 |
+
|
5122 |
+
$name = __('Show desc on thumb area', 'wp-photo-album-plus');
|
5123 |
+
$desc = __('Select if and where to display the album description on the thumbnail display.', 'wp-photo-album-plus');
|
5124 |
+
$help = '';
|
5125 |
+
$slug = 'wppa_albdesc_on_thumbarea';
|
5126 |
+
$options = array(__('None', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'));
|
5127 |
+
$values = array('none', 'top', 'bottom');
|
5128 |
+
$html = wppa_select($slug, $options, $values);
|
5129 |
+
$clas = '';
|
5130 |
+
$tags = 'album,meta,layout';
|
5131 |
+
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
5132 |
+
|
5133 |
+
$name = __('Show Edit/Delete links', 'wp-photo-album-plus');
|
5134 |
+
$desc = __('Show these links under default thumbnails for owner and admin.', 'wp-photo-album-plus');
|
5135 |
+
$help = '';
|
5136 |
+
$slug = 'wppa_edit_thumb';
|
5137 |
+
$html = wppa_checkbox($slug);
|
5138 |
+
$clas = '';
|
5139 |
+
$tags = 'thumb';
|
5140 |
+
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
5141 |
+
|
5142 |
+
$name = __('Show empty thumbnail area', 'wp-photo-album-plus');
|
5143 |
+
$desc = __('Display thumbnail areas with upload link only for empty albums.', 'wp-photo-album-plus');
|
5144 |
+
$help = '';
|
5145 |
+
$slug = 'wppa_show_empty_thumblist';
|
5146 |
+
$html = wppa_checkbox($slug);
|
5147 |
+
$clas = '';
|
5148 |
+
$tags = 'thumb';
|
5149 |
+
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
5150 |
+
|
5151 |
+
$name = __('Upload/create link on thumbnail area', 'wp-photo-album-plus');
|
5152 |
+
$desc = __('Select the location of the upload and crete links.', 'wp-photo-album-plus');
|
5153 |
+
$help = '';
|
5154 |
+
$slug = 'wppa_upload_link_thumbs';
|
5155 |
+
$opts = array(__('None', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'));
|
5156 |
+
$vals = array('none', 'top', 'bottom');
|
5157 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5158 |
Â
$clas = '';
|
5159 |
+
$tags = 'thumb,meta,layout,upload';
|
5160 |
+
wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
|
5161 |
+
|
5162 |
+
}
|
5163 |
+
wppa_setting_subheader( 'E', '1', __( 'Album cover related visibility settings' , 'wp-photo-album-plus') );
|
5164 |
+
{
|
5165 |
+
$name = __('Covertext', 'wp-photo-album-plus');
|
5166 |
+
$desc = __('Show the text on the album cover.', 'wp-photo-album-plus');
|
5167 |
+
$help = (__('Display the album decription on the album cover', 'wp-photo-album-plus'));
|
5168 |
+
$slug = 'wppa_show_cover_text';
|
5169 |
+
$html = wppa_checkbox($slug);
|
5170 |
+
$clas = '';
|
5171 |
+
$tags = 'cover,album,meta,layout';
|
5172 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
5173 |
+
|
5174 |
+
$name = __('Slideshow', 'wp-photo-album-plus');
|
5175 |
+
$desc = __('Enable the slideshow.', 'wp-photo-album-plus');
|
5176 |
+
$help = (__('If you do not want slideshows: uncheck this box. Browsing full size images will remain possible.', 'wp-photo-album-plus'));
|
5177 |
+
$slug = 'wppa_enable_slideshow';
|
5178 |
+
$html = wppa_checkbox($slug);
|
5179 |
+
$clas = '';
|
5180 |
+
$tags = 'cover,album,navi,slide,layout';
|
5181 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
5182 |
+
|
5183 |
+
$name = __('Slideshow/Browse', 'wp-photo-album-plus');
|
5184 |
+
$desc = __('Display the Slideshow / Browse photos link on album covers', 'wp-photo-album-plus');
|
5185 |
+
$help = (__('This setting causes the Slideshow link to be displayed on the album cover.', 'wp-photo-album-plus'));
|
5186 |
+
$help .= '<br />'.(__('If slideshows are disabled in item 2 in this table, you will see a browse link to fullsize images.', 'wp-photo-album-plus'));
|
5187 |
+
$help .= '<br />'.(__('If you do not want the browse link either, uncheck this item.', 'wp-photo-album-plus'));
|
5188 |
+
$slug = 'wppa_show_slideshowbrowselink';
|
5189 |
+
$html = wppa_checkbox($slug);
|
5190 |
+
$clas = '';
|
5191 |
+
$tags = 'cover,album,navi,slide,layout';
|
5192 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
5193 |
Â
|
5194 |
+
$name = __('View ...', 'wp-photo-album-plus');
|
5195 |
+
$desc = __('Display the View xx albums and yy photos link on album covers', 'wp-photo-album-plus');
|
5196 |
Â
$help = '';
|
5197 |
+
$slug = 'wppa_show_viewlink';
|
5198 |
+
$html = wppa_checkbox($slug);
|
5199 |
+
$clas = '';
|
5200 |
+
$tags = 'cover,navi,album,layout';
|
5201 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
5202 |
+
|
5203 |
+
$name = __('Treecount', 'wp-photo-album-plus');
|
5204 |
+
$desc = __('Display the total number of (sub)albums and photos in subalbums', 'wp-photo-album-plus');
|
5205 |
+
$help = (__('Displays the total number of sub albums and photos in the entire album tree in parenthesis if the numbers differ from the direct content of the album.', 'wp-photo-album-plus'));
|
5206 |
+
$slug = 'wppa_show_treecount';
|
5207 |
+
$opts = array( __('none', 'wp-photo-album-plus'), __('detailed', 'wp-photo-album-plus'), __('totals only', 'wp-photo-album-plus'));
|
5208 |
+
$vals = array( '-none-', 'detail', 'total' );
|
5209 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5210 |
Â
$clas = '';
|
5211 |
+
$tags = 'cover,album,layout';
|
5212 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
5213 |
Â
|
5214 |
+
$name = __('Show categories', 'wp-photo-album-plus');
|
5215 |
+
$desc = __('Display the album categories on the covers.', 'wp-photo-album-plus');
|
5216 |
+
$slug = 'wppa_show_cats';
|
5217 |
Â
$help = '';
|
5218 |
+
$html = wppa_checkbox($slug);
|
5219 |
+
$clas = '';
|
5220 |
+
$tags = 'cover,meta,album,layout';
|
5221 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
5222 |
+
|
5223 |
+
$name = __('Skip empty albums', 'wp-photo-album-plus');
|
5224 |
+
$desc = __('Do not show empty albums, except for admin and owner.', 'wp-photo-album-plus');
|
5225 |
+
$help = '';
|
5226 |
+
$slug = 'wppa_skip_empty_albums';
|
5227 |
+
$html = wppa_checkbox($slug);
|
5228 |
+
$clas = '';
|
5229 |
+
$tags = 'cover,album,layout';
|
5230 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
5231 |
+
|
5232 |
+
$name = __('Count on title', 'wp-photo-album-plus');
|
5233 |
+
$desc = __('Show photocount along with album title. ', 'wp-photo-album-plus');
|
5234 |
+
$help = '';
|
5235 |
+
$slug = 'wppa_count_on_title';
|
5236 |
+
$opts = array( __('none', 'wp-photo-album-plus'), __('top album only', 'wp-photo-album-plus'), __('total tree', 'wp-photo-album-plus'));
|
5237 |
+
$vals = array( '-none-', 'self', 'total' );
|
5238 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5239 |
Â
$clas = '';
|
5240 |
+
$tags = 'cover,album,layout';
|
5241 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
5242 |
Â
|
5243 |
+
$name = __('Viewcount on cover', 'wp-photo-album-plus');
|
5244 |
+
$desc = __('Show total photo viewcount on album covers.', 'wp-photo-album-plus');
|
5245 |
Â
$help = '';
|
5246 |
+
$slug = 'wppa_viewcount_on_cover';
|
5247 |
+
$opts = array( __('none', 'wp-photo-album-plus'), __('top album only', 'wp-photo-album-plus'), __('total tree', 'wp-photo-album-plus'));
|
5248 |
+
$vals = array( '-none-', 'self', 'total' );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5249 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5250 |
Â
$clas = '';
|
5251 |
+
$tags = 'cover,album,layout';
|
5252 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5253 |
Â
|
5254 |
+
$name = __('Album id on cover', 'wp-photo-album-plus');
|
5255 |
+
$desc = __('Show album id on album cover next to name', 'wp-photo-album-plus');
|
5256 |
Â
$help = '';
|
5257 |
+
$slug = 'wppa_albumid_on_cover';
|
5258 |
+
$opts = array( __('none', 'wp-photo-album-plus'), __('If user has edit access', 'wp-photo-album-plus'), __('Always', 'wp-photo-album-plus') );
|
5259 |
+
$vals = array( '-none-', 'access', 'all' );
|
5260 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5261 |
Â
$clas = '';
|
5262 |
+
$tags = 'cover,album,layout';
|
5263 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
5264 |
+
|
5265 |
+
}
|
5266 |
+
wppa_setting_subheader( 'F', '1', __( 'Widget related visibility settings' , 'wp-photo-album-plus') );
|
5267 |
+
{
|
5268 |
+
$name = __('Big Browse Buttons in widget', 'wp-photo-album-plus');
|
5269 |
+
$desc = __('Enable invisible browsing buttons in widget slideshows.', 'wp-photo-album-plus');
|
5270 |
+
$help = (__('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus'));
|
5271 |
+
$help .= '<br />'.(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus'));
|
5272 |
+
$slug = 'wppa_show_bbb_widget';
|
5273 |
+
$html = wppa_checkbox($slug);
|
5274 |
+
$clas = '';
|
5275 |
+
$tags = 'widget,slide,layout,navi';
|
5276 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
5277 |
+
|
5278 |
+
$name = __('Ugly Browse Buttons in widget', 'wp-photo-album-plus');
|
5279 |
+
$desc = __('Enable ugly browsing buttons in widget slideshows.', 'wp-photo-album-plus');
|
5280 |
+
$help = (__('If checked, the fullsize image is covered by browse buttons.', 'wp-photo-album-plus'));
|
5281 |
+
$help .= '<br />'.(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus'));
|
5282 |
+
$slug = 'wppa_show_ubb_widget';
|
5283 |
+
$html = wppa_checkbox($slug);
|
5284 |
+
$clas = '';
|
5285 |
+
$tags = 'widget,slide,layout,navi';
|
5286 |
+
wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
|
5287 |
Â
|
5288 |
+
$name = __('Album widget tooltip', 'wp-photo-album-plus');
|
5289 |
+
$desc = __('Show the album description on hoovering thumbnail in album widget', 'wp-photo-album-plus');
|
5290 |
Â
$help = '';
|
5291 |
+
$slug = 'wppa_show_albwidget_tooltip';
|
5292 |
+
$html = wppa_checkbox($slug);
|
5293 |
+
$clas = '';
|
5294 |
+
$tags = 'widget,album,layout,meta';
|
5295 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
5296 |
+
}
|
5297 |
+
|
5298 |
+
wppa_setting_subheader( 'H', '1', __( 'Frontend upload configuration settings' , 'wp-photo-album-plus') );
|
5299 |
+
{
|
5300 |
+
|
5301 |
+
$name = __('User upload Ajax', 'wp-photo-album-plus');
|
5302 |
+
$desc = __('Shows the upload progression bar.', 'wp-photo-album-plus');
|
5303 |
+
$help = '';
|
5304 |
+
$slug = 'wppa_ajax_upload';
|
5305 |
+
$html = wppa_checkbox($slug);
|
5306 |
+
$clas = 'wppa_feup';
|
5307 |
+
$tags = 'system,upload';
|
5308 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
5309 |
+
|
5310 |
+
$name = __('Show Copyright', 'wp-photo-album-plus');
|
5311 |
+
$desc = __('Show a copyright warning on frontend upload locations.', 'wp-photo-album-plus');
|
5312 |
+
$help = '';
|
5313 |
+
$slug = 'wppa_copyright_on';
|
5314 |
+
$onchange = 'wppaFollow(\'copyright_on\',\'wppa_up_wm\')';
|
5315 |
+
$html = wppa_checkbox($slug, $onchange);
|
5316 |
+
$clas = 'wppa_feup';
|
5317 |
+
$tags = 'upload,layout';
|
5318 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
5319 |
+
|
5320 |
+
$name = __('Copyright notice', 'wp-photo-album-plus');
|
5321 |
+
$desc = __('The message to be displayed.', 'wp-photo-album-plus');
|
5322 |
+
$help = '';
|
5323 |
+
$slug = 'wppa_copyright_notice';
|
5324 |
+
$html = wppa_textarea($slug, $name);
|
5325 |
+
$clas = 'wppa_feup wppa_up_wm';
|
5326 |
+
$tags = 'upload,layout';
|
5327 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
5328 |
+
|
5329 |
+
$name = __('User Watermark', 'wp-photo-album-plus');
|
5330 |
+
$desc = __('Uploading users may select watermark settings', 'wp-photo-album-plus');
|
5331 |
+
$help = (__('If checked, anyone who can upload and/or import photos can overrule the default watermark settings.', 'wp-photo-album-plus'));
|
5332 |
+
$slug = 'wppa_watermark_user';
|
5333 |
+
$html = wppa_checkbox($slug);
|
5334 |
+
$clas = 'wppa_watermark wppa_feup';
|
5335 |
+
$tags = 'water,upload';
|
5336 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
5337 |
+
|
5338 |
+
$name = __('User name', 'wp-photo-album-plus');
|
5339 |
+
$desc = __('Uploading users may overrule the default name.', 'wp-photo-album-plus');
|
5340 |
+
$help = (__('If checked, the default photo name as defined in Table IX-D13 may be overruled by the user.', 'wp-photo-album-plus'));
|
5341 |
+
$slug1 = 'wppa_name_user';
|
5342 |
+
$slug2 = 'wppa_name_user_mandatory';
|
5343 |
+
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
5344 |
+
$clas = 'wppa_feup';
|
5345 |
+
$tags = 'upload';
|
5346 |
+
wppa_setting($slug1, '7', $name, $desc, $html, $help, $clas, $tags);
|
5347 |
+
|
5348 |
+
$name = __('Apply Newphoto desc user', 'wp-photo-album-plus');
|
5349 |
+
$desc = __('Give each new frontend uploaded photo a standard description.', 'wp-photo-album-plus');
|
5350 |
+
$help = (__('If checked, each new photo will get the description (template) as specified in Table IX-D5.', 'wp-photo-album-plus'));
|
5351 |
+
$help .= '<br />'.(__('Note: If the next item is checked, the user can overwrite this', 'wp-photo-album-plus'));
|
5352 |
+
$slug = 'wppa_apply_newphoto_desc_user';
|
5353 |
+
$html = wppa_checkbox($slug);
|
5354 |
+
$clas = 'wppa_feup';
|
5355 |
+
$tags = 'upload';
|
5356 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
5357 |
+
|
5358 |
+
$name = __('User desc', 'wp-photo-album-plus');
|
5359 |
+
$desc = __('Uploading users may overrule the default description.', 'wp-photo-album-plus');
|
5360 |
+
$help = '';
|
5361 |
+
$slug1 = 'wppa_desc_user';
|
5362 |
+
$slug2 = 'wppa_desc_user_mandatory';
|
5363 |
+
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
5364 |
+
$clas = 'wppa_feup';
|
5365 |
+
$tags = 'upload';
|
5366 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5367 |
+
|
5368 |
+
$name = __('User upload custom', 'wp-photo-album-plus');
|
5369 |
+
$desc = __('Frontend upload can fill in custom data fields.', 'wp-photo-album-plus');
|
5370 |
+
$help = __('Custom datafields can be defined in Table II-J10', 'wp-photo-album-plus');
|
5371 |
+
$slug = 'wppa_fe_custom_fields';
|
5372 |
+
$html = wppa_checkbox($slug);
|
5373 |
+
$clas = 'wppa_feup custfields';
|
5374 |
+
$tags = 'upload';
|
5375 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
5376 |
+
|
5377 |
+
$name = __('User upload tags', 'wp-photo-album-plus');
|
5378 |
+
$desc = __('Frontend upload can add tags.', 'wp-photo-album-plus');
|
5379 |
+
$help = (__('You can configure the details of tag addition in Table IX-D18.x', 'wp-photo-album-plus'));
|
5380 |
+
$slug = 'wppa_fe_upload_tags';
|
5381 |
+
$onchange = 'wppaFollow(\'fe_upload_tags\', \'wppa_up_tags\');';
|
5382 |
+
$html = wppa_checkbox($slug, $onchange);
|
5383 |
+
$clas = 'wppa_feup';
|
5384 |
+
$tags = 'upload';
|
5385 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
5386 |
+
|
5387 |
+
$name = __('Tag selection box', 'wp-photo-album-plus').' 1';
|
5388 |
+
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
5389 |
+
$help = '';
|
5390 |
+
$slug1 = 'wppa_up_tagselbox_on_1';
|
5391 |
+
$slug2 = 'wppa_up_tagselbox_multi_1';
|
5392 |
+
$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);
|
5393 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5394 |
+
$tags = 'upload';
|
5395 |
+
wppa_setting($slug, '11.1ab', $name, $desc, $html, $help, $clas, $tags);
|
5396 |
+
|
5397 |
+
$name = __('Caption box', 'wp-photo-album-plus').' 1';
|
5398 |
+
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
5399 |
+
$help = '';
|
5400 |
+
$slug = 'wppa_up_tagselbox_title_1';
|
5401 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5402 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5403 |
+
$tags = 'upload';
|
5404 |
+
wppa_setting($slug, '11.1c', $name, $desc, $html, $help, $clas, $tags);
|
5405 |
+
|
5406 |
+
$name = __('Tags box', 'wp-photo-album-plus').' 1';
|
5407 |
+
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
5408 |
+
$help = (__('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus'));
|
5409 |
+
$slug = 'wppa_up_tagselbox_content_1';
|
5410 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5411 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5412 |
+
$tags = 'upload';
|
5413 |
+
wppa_setting($slug, '11.1d', $name, $desc, $html, $help, $clas, $tags);
|
5414 |
+
|
5415 |
+
$name = __('Tag selection box', 'wp-photo-album-plus').' 2';
|
5416 |
+
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
5417 |
+
$help = '';
|
5418 |
+
$slug1 = 'wppa_up_tagselbox_on_2';
|
5419 |
+
$slug2 = 'wppa_up_tagselbox_multi_2';
|
5420 |
+
$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);
|
5421 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5422 |
+
$tags = 'upload';
|
5423 |
+
wppa_setting($slug, '11.2ab', $name, $desc, $html, $help, $clas, $tags);
|
5424 |
+
|
5425 |
+
$name = __('Caption box', 'wp-photo-album-plus').' 2';
|
5426 |
+
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
5427 |
+
$help = '';
|
5428 |
+
$slug = 'wppa_up_tagselbox_title_2';
|
5429 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5430 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5431 |
+
$tags = 'upload';
|
5432 |
+
wppa_setting($slug, '11.2c', $name, $desc, $html, $help, $clas, $tags);
|
5433 |
+
|
5434 |
+
$name = __('Tags box', 'wp-photo-album-plus').' 2';
|
5435 |
+
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
5436 |
+
$help = (__('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus'));
|
5437 |
+
$slug = 'wppa_up_tagselbox_content_2';
|
5438 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5439 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5440 |
+
$tags = 'upload';
|
5441 |
+
wppa_setting($slug, '11.2d', $name, $desc, $html, $help, $clas, $tags);
|
5442 |
+
|
5443 |
+
$name = __('Tag selection box', 'wp-photo-album-plus').' 3';
|
5444 |
+
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
5445 |
+
$help = '';
|
5446 |
+
$slug1 = 'wppa_up_tagselbox_on_3';
|
5447 |
+
$slug2 = 'wppa_up_tagselbox_multi_3';
|
5448 |
+
$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);
|
5449 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5450 |
+
$tags = 'upload';
|
5451 |
+
wppa_setting($slug, '11.3ab', $name, $desc, $html, $help, $clas, $tags);
|
5452 |
+
|
5453 |
+
$name = __('Caption box', 'wp-photo-album-plus').' 3';
|
5454 |
+
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
5455 |
+
$help = '';
|
5456 |
+
$slug = 'wppa_up_tagselbox_title_3';
|
5457 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5458 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5459 |
+
$tags = 'upload';
|
5460 |
+
wppa_setting($slug, '11.3c', $name, $desc, $html, $help, $clas, $tags);
|
5461 |
+
|
5462 |
+
$name = __('Tags box', 'wp-photo-album-plus').' 3';
|
5463 |
+
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
5464 |
+
$help = (__('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus'));
|
5465 |
+
$slug = 'wppa_up_tagselbox_content_3';
|
5466 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5467 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5468 |
+
$tags = 'upload';
|
5469 |
+
wppa_setting($slug, '11.3d', $name, $desc, $html, $help, $clas, $tags);
|
5470 |
+
|
5471 |
+
$name = __('New tags', 'wp-photo-album-plus');
|
5472 |
+
$desc = __('Input field for any user defined tags.', 'wp-photo-album-plus');
|
5473 |
+
$help = '';
|
5474 |
+
$slug = 'wppa_up_tag_input_on';
|
5475 |
+
$html = wppa_checkbox($slug);
|
5476 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5477 |
+
$tags = 'upload';
|
5478 |
+
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
5479 |
+
|
5480 |
+
$name = __('New tags caption', 'wp-photo-album-plus');
|
5481 |
+
$desc = __('The caption above the tags input field.', 'wp-photo-album-plus');
|
5482 |
+
$help = '';
|
5483 |
+
$slug = 'wppa_up_tag_input_title';
|
5484 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5485 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5486 |
+
$tags = 'upload';
|
5487 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
5488 |
+
|
5489 |
+
$name = __('Tags box New', 'wp-photo-album-plus');
|
5490 |
+
$desc = __('The tags in the New tags input box.', 'wp-photo-album-plus');
|
5491 |
+
$help = '';
|
5492 |
+
$slug = 'wppa_up_tagbox_new';
|
5493 |
+
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5494 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5495 |
+
$tags = 'upload';
|
5496 |
+
wppa_setting($slug, '13.1', $name, $desc, $html, $help, $clas, $tags);
|
5497 |
+
|
5498 |
+
$name = __('Preview tags', 'wp-photo-album-plus');
|
5499 |
+
$desc = __('Show a preview of all tags that will be added to the photo info.', 'wp-photo-album-plus');
|
5500 |
+
$help = '';
|
5501 |
+
$slug = 'wppa_up_tag_preview';
|
5502 |
+
$html = wppa_checkbox($slug);
|
5503 |
+
$clas = 'wppa_feup wppa_up_tags';
|
5504 |
+
$tags = 'upload';
|
5505 |
+
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
5506 |
+
|
5507 |
+
$name = __('Camera connect', 'wp-photo-album-plus');
|
5508 |
+
$desc = __('Connect frontend upload to camara on mobile devices with camera', 'wp-photo-album-plus');
|
5509 |
+
$help = '';
|
5510 |
+
$slug = 'wppa_camera_connect';
|
5511 |
+
$html = wppa_checkbox($slug);
|
5512 |
+
$clas = 'wppa_feup';
|
5513 |
+
$tags = 'upload';
|
5514 |
+
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
5515 |
+
|
5516 |
+
$name = __('Blog It!', 'wp-photo-album-plus');
|
5517 |
+
$desc = __('Enable blogging photos.', 'wp-photo-album-plus');
|
5518 |
+
$help = ( __('Users need the capability edit_posts to directly blog photos.', 'wp-photo-album-plus'));
|
5519 |
+
$slug = 'wppa_blog_it';
|
5520 |
+
$opts = array( __('disabled', 'wp-photo-album-plus'),
|
5521 |
+
__('optional', 'wp-photo-album-plus'),
|
5522 |
+
__('always', 'wp-photo-album-plus'),
|
5523 |
+
);
|
5524 |
+
$vals = array( '-none-',
|
5525 |
+
'optional',
|
5526 |
+
'always',
|
5527 |
+
);
|
5528 |
+
$html = wppa_select($slug, $opts, $vals);
|
5529 |
+
$clas = 'wppa_feup';
|
5530 |
+
$tags = 'upload';
|
5531 |
+
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
5532 |
+
|
5533 |
+
$name = __('Blog It need moderation', 'wp-photo-album-plus');
|
5534 |
+
$desc = __('Posts with blogged photos need moderation.', 'wp-photo-album-plus');
|
5535 |
+
$help = '';
|
5536 |
+
$slug = 'wppa_blog_it_moderate';
|
5537 |
+
$html = wppa_checkbox($slug);
|
5538 |
+
$clas = 'wppa_feup';
|
5539 |
+
$tags = 'upload';
|
5540 |
+
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
5541 |
+
|
5542 |
+
$name = __('Blog It shortcode', 'wp-photo-album-plus');
|
5543 |
+
$desc = __('Shortcode to be used on the blog post', 'wp-photo-album-plus');
|
5544 |
+
$help = (__('Make sure it contains photo="#id"', 'wp-photo-album-plus'));
|
5545 |
+
$slug = 'wppa_blog_it_shortcode';
|
5546 |
+
$html = wppa_input($slug, '85%');
|
5547 |
+
$clas = 'wppa_feup';
|
5548 |
+
$tags = 'upload';
|
5549 |
+
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
5550 |
+
|
5551 |
+
}
|
5552 |
+
wppa_setting_subheader( 'J', '1', __( 'Miscellaneous visibility settings' , 'wp-photo-album-plus') );
|
5553 |
+
{
|
5554 |
+
$name = __('Frontend ending label', 'wp-photo-album-plus');
|
5555 |
+
$desc = __('Frontend upload / create / edit dialog closing label text.', 'wp-photo-album-plus');
|
5556 |
+
$help = '';
|
5557 |
+
$slug = 'wppa_close_text';
|
5558 |
+
$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') );
|
5559 |
+
$vals = array( 'Abort', 'Cancel', 'Close', 'Exit', 'Quit' );
|
5560 |
Â
$html = wppa_select($slug, $opts, $vals);
|
5561 |
Â
$clas = '';
|
5562 |
+
$tags = 'layout';
|
5563 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5564 |
Â
|
5565 |
+
$name = __('Owner on new line', 'wp-photo-album-plus');
|
5566 |
+
$desc = __('Place the (owner) text on a new line.', 'wp-photo-album-plus');
|
5567 |
+
$help = '';
|
5568 |
+
$slug = 'wppa_owner_on_new_line';
|
5569 |
+
$html = wppa_checkbox($slug);
|
5570 |
+
$clas = '';
|
5571 |
+
$tags = 'layout,meta';
|
5572 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5573 |
Â
|
5574 |
+
$name = __('Custom datafields albums', 'wp-photo-album-plus');
|
5575 |
+
$desc = __('Define up to 10 custom data fields for albums.', 'wp-photo-album-plus');
|
5576 |
+
$help = '';
|
5577 |
+
$slug = 'wppa_album_custom_fields';
|
5578 |
+
$onch = 'wppaCheckCheck(\''.$slug.'\', \'albumcustfields\' )';
|
5579 |
+
$html = wppa_checkbox($slug, $onch);
|
5580 |
+
$clas = '';
|
5581 |
+
$tags = 'meta';
|
5582 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
5583 |
+
|
5584 |
+
for ( $i = '0'; $i < '10'; $i++ ) {
|
5585 |
+
$name = sprintf(__('Name, vis, edit %s', 'wp-photo-album-plus'), $i);
|
5586 |
+
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus'), $i);
|
5587 |
+
$help = (sprintf(__('If you check the first box, the value of this field is displayable in photo descriptions at the frontend with keyword w#c%s', 'wp-photo-album-plus'), $i));
|
5588 |
+
$help .= '<br />'.(__('If you check the second box, the value of this field is editable at the frontend new style dialog.', 'wp-photo-album-plus'));
|
5589 |
+
$slug1 = 'wppa_album_custom_caption_'.$i;
|
5590 |
+
$html1 = wppa_input($slug1, '300px');
|
5591 |
+
$slug2 = 'wppa_album_custom_visible_'.$i;
|
5592 |
+
$html2 = wppa_checkbox($slug2);
|
5593 |
+
$slug3 = 'wppa_album_custom_edit_'.$i;
|
5594 |
+
$html3 = wppa_checkbox($slug3);
|
5595 |
+
$clas = 'albumcustfields';
|
5596 |
+
$tags = 'meta';
|
5597 |
+
wppa_setting(array($slug1,$slug2,$slug3), '9.'.$i.'a,b,c', $name, $desc, $html1.$html2.$html3, $help, $clas, $tags);
|
5598 |
+
}
|
5599 |
Â
|
5600 |
+
$name = __('Custom datafields photos', 'wp-photo-album-plus');
|
5601 |
+
$desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus');
|
5602 |
+
$help = '';
|
5603 |
+
$slug = 'wppa_custom_fields';
|
5604 |
+
$onch = 'wppaCheckCheck(\''.$slug.'\', \'custfields\' )';
|
5605 |
+
$html = wppa_checkbox($slug, $onch);
|
5606 |
+
$clas = '';
|
5607 |
+
$tags = 'meta';
|
5608 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5609 |
Â
|
5610 |
+
$opts = array( '',
|
5611 |
+
'Graphic name',
|
5612 |
+
'Creation date',
|
5613 |
+
'Photographer',
|
5614 |
+
'City',
|
5615 |
+
'State (Provinve)',
|
5616 |
+
'Country',
|
5617 |
+
'Sublocation',
|
5618 |
+
'Subloc, City, State, Country',
|
5619 |
+
'Source',
|
5620 |
+
'Copyright',
|
5621 |
+
'Caption',
|
5622 |
+
'--- multiline ---',
|
5623 |
+
);
|
5624 |
+
|
5625 |
+
$vals = array( '',
|
5626 |
+
'2#005',
|
5627 |
+
'2#055',
|
5628 |
+
'2#080',
|
5629 |
+
'2#090',
|
5630 |
+
'2#095',
|
5631 |
+
'2#101',
|
5632 |
+
'2#092',
|
5633 |
+
'2#092, 2#090, 2#095, 2#101',
|
5634 |
+
'2#115',
|
5635 |
+
'2#116',
|
5636 |
+
'2#120',
|
5637 |
+
'multi',
|
5638 |
+
);
|
5639 |
+
|
5640 |
+
/* This seems to be it
|
5641 |
+
const OBJECT_NAME = '005';
|
5642 |
+
const EDIT_STATUS = '007';
|
5643 |
+
const PRIORITY = '010';
|
5644 |
+
const CATEGORY = '015';
|
5645 |
+
const SUPPLEMENTAL_CATEGORY = '020';
|
5646 |
+
const FIXTURE_IDENTIFIER = '022';
|
5647 |
+
const KEYWORDS = '025';
|
5648 |
+
const RELEASE_DATE = '030';
|
5649 |
+
const RELEASE_TIME = '035';
|
5650 |
+
const SPECIAL_INSTRUCTIONS = '040';
|
5651 |
+
const REFERENCE_SERVICE = '045';
|
5652 |
+
const REFERENCE_DATE = '047';
|
5653 |
+
const REFERENCE_NUMBER = '050';
|
5654 |
+
const CREATED_DATE = '055';
|
5655 |
+
const CREATED_TIME = '060';
|
5656 |
+
const ORIGINATING_PROGRAM = '065';
|
5657 |
+
const PROGRAM_VERSION = '070';
|
5658 |
+
const OBJECT_CYCLE = '075';
|
5659 |
+
const CREATOR = '080';
|
5660 |
+
const CITY = '090';
|
5661 |
+
const PROVINCE_STATE = '095';
|
5662 |
+
const COUNTRY_CODE = '100';
|
5663 |
+
const COUNTRY = '101';
|
5664 |
+
const ORIGINAL_TRANSMISSION_REFERENCE = '103';
|
5665 |
+
const HEADLINE = '105';
|
5666 |
+
const CREDIT = '110';
|
5667 |
+
const SOURCE = '115';
|
5668 |
+
const COPYRIGHT_STRING = '116';
|
5669 |
+
const CAPTION = '120';
|
5670 |
+
const LOCAL_CAPTION = '121';
|
5671 |
+
const CAPTION_WRITER = '122';
|
5672 |
+
*/
|
5673 |
+
|
5674 |
+
for ( $i = '0'; $i < '10'; $i++ ) {
|
5675 |
+
$name = sprintf(__('Name, vis, edit %s dflt', 'wp-photo-album-plus'), $i);
|
5676 |
+
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus'), $i);
|
5677 |
+
$help = (sprintf(__('If you check the first box, the value of this field is displayable in photo descriptions at the frontend with keyword w#c%s', 'wp-photo-album-plus'), $i));
|
5678 |
+
$help .= '<br />'.(__('If you check the second box, the value of this field is editable at the frontend new style dialog.', 'wp-photo-album-plus'));
|
5679 |
+
$slug1 = 'wppa_custom_caption_'.$i;
|
5680 |
+
$html1 = wppa_input($slug1, '300px');
|
5681 |
+
$slug2 = 'wppa_custom_visible_'.$i;
|
5682 |
+
$html2 = wppa_checkbox($slug2);
|
5683 |
+
$slug3 = 'wppa_custom_edit_'.$i;
|
5684 |
+
$html3 = wppa_checkbox($slug3);
|
5685 |
+
$slug4 = 'wppa_custom_default_'.$i;
|
5686 |
+
$html4 = wppa_select($slug4, $opts, $vals);
|
5687 |
+
$clas = 'custfields';
|
5688 |
+
$tags = 'meta';
|
5689 |
+
wppa_setting(array($slug1,$slug2,$slug3,$slug4), '10.'.$i.'a,b,c', $name, $desc, $html1.$html2.$html3.$html4, $help, $clas, $tags);
|
5690 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5691 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5692 |
Â
|
5693 |
+
$name = __('Navigation symbols style', 'wp-photo-album-plus');
|
5694 |
+
$desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
|
5695 |
+
$help = (__('Use gif/png if you have excessive pageload times due to many slideshows on a page', 'wp-photo-album-plus'));
|
5696 |
+
$slug = 'wppa_icon_corner_style';
|
5697 |
+
$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'));
|
5698 |
+
$vals = array('none', 'light', 'medium', 'heavy', 'gif');
|
5699 |
+
$html = wppa_select($slug, $opts, $vals);
|
5700 |
+
$clas = '';
|
5701 |
+
$tags = 'layout,navi';
|
5702 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5703 |
Â
|
5704 |
+
$name = __('Spinner design', 'wp-photo-album-plus');
|
5705 |
+
$desc = __('Shape of the loader symbol', 'wp-photo-album-plus');
|
5706 |
+
$help = __('This works only when Table II-J11 is set to any svg style', 'wp-photo-album-plus');
|
5707 |
+
$slug = 'wppa_spinner_shape';
|
5708 |
+
$opts = array( __('default', 'wp-photo-album-plus'),
|
5709 |
+
'puff',
|
5710 |
+
'rings',
|
5711 |
+
'tail-spin',
|
5712 |
+
'three-dots',
|
5713 |
+
'ball-triangle',
|
5714 |
+
'spinning-circles',
|
5715 |
+
'oval',
|
5716 |
+
'hearts',
|
5717 |
+
'grid',
|
5718 |
+
'circles',
|
5719 |
+
'bars',
|
5720 |
+
'audio',
|
5721 |
+
);
|
5722 |
+
$vals = array( 'default',
|
5723 |
+
'puff',
|
5724 |
+
'rings',
|
5725 |
+
'tail-spin',
|
5726 |
+
'three-dots',
|
5727 |
+
'ball-triangle',
|
5728 |
+
'spinning-circles',
|
5729 |
+
'oval',
|
5730 |
+
'hearts',
|
5731 |
+
'grid',
|
5732 |
+
'circles',
|
5733 |
+
'bars',
|
5734 |
+
'audio',
|
5735 |
+
);
|
5736 |
+
$html = wppa_select($slug, $opts, $vals) .
|
5737 |
+
__('Frontend', 'wp-photo-album-plus') . ': <span id="wppa-spin-pre-1" > </span>' .
|
5738 |
+
__('Lightbox', 'wp-photo-album-plus') . ': <span id="wppa-spin-pre-2" > </span>';
|
5739 |
+
$clas = '';
|
5740 |
+
$tags = 'layout,navi';
|
5741 |
+
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5742 |
Â
|
5743 |
+
$name = __('Show dashboard widget', 'wp-photo-album-plus');
|
5744 |
+
$desc = __('Select when the dashboard widget should show up', 'wp-photo-album-plus');
|
5745 |
+
$help = '';
|
5746 |
+
$slug = 'wppa_show_dashboard_widgets';
|
5747 |
+
$opts = array( __('Never', 'wp-photo-album-plus'),
|
5748 |
+
__('All loggedin users', 'wp-photo-album-plus'),
|
5749 |
+
__('Administartors only', 'wp-photo-album-plus'),
|
5750 |
+
);
|
5751 |
+
$vals = array( 'none',
|
5752 |
+
'all',
|
5753 |
+
'admin',
|
5754 |
+
);
|
5755 |
+
$html = wppa_select($slug, $opts, $vals);
|
5756 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
5757 |
+
|
5758 |
+
$temp = wppa_glob( WPPA_UPLOAD_PATH . '/icons/*.*' );
|
5759 |
+
$icons = array();
|
5760 |
+
foreach( $temp as $item ) {
|
5761 |
+
$t = basename( $item );
|
5762 |
+
if ( $t != '.' && $t != '..' ) {
|
5763 |
+
$icons[] = $t;
|
5764 |
+
}
|
5765 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5766 |
Â
|
5767 |
+
$name = __( 'Audio icon', 'wp-photo-album-plus' );
|
5768 |
+
$desc = __( 'Select the icon to use as audio indicator', 'wp-photo-album-plus' );
|
5769 |
+
$help = '';
|
5770 |
+
$slug = 'wppa_audio_icon';
|
5771 |
+
$opts = $icons;
|
5772 |
+
$vals = $icons;
|
5773 |
+
$onch = 'alert(\''.__('The page will be reloaded.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
5774 |
+
$html = wppa_select( $slug, $opts, $vals, $onch ) . ' <img src="' . esc_attr( WPPA_UPLOAD_URL . '/icons/' . wppa_opt( 'audio_icon' ) ) . '" style="height:24px;" />';
|
5775 |
+
$clas = '';
|
5776 |
+
$tags = 'audio';
|
5777 |
+
wppa_setting( $slug, '14.1', $name, $desc, $html, $help, $clas, $tags );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5778 |
Â
|
5779 |
+
$name = __( 'Video icon', 'wp-photo-album-plus' );
|
5780 |
+
$desc = __( 'Select the icon to use as video indicator', 'wp-photo-album-plus' );
|
5781 |
+
$help = '';
|
5782 |
+
$slug = 'wppa_video_icon';
|
5783 |
+
$opts = $icons;
|
5784 |
+
$vals = $icons;
|
5785 |
+
$onch = 'alert(\''.__('The page will be reloaded.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
5786 |
+
$html = wppa_select( $slug, $opts, $vals, $onch ) . ' <img src="' . esc_attr( WPPA_UPLOAD_URL . '/icons/' . wppa_opt( 'video_icon' ) ) . '" style="height:24px;" />';
|
5787 |
+
$clas = '';
|
5788 |
+
$tags = 'video';
|
5789 |
+
wppa_setting( $slug, '14.2', $name, $desc, $html, $help, $clas, $tags );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5790 |
Â
|
5791 |
+
$name = __( 'Document icon', 'wp-photo-album-plus' );
|
5792 |
+
$desc = __( 'Select the icon to use as document indicator', 'wp-photo-album-plus' );
|
5793 |
+
$help = '';
|
5794 |
+
$slug = 'wppa_document_icon';
|
5795 |
+
$opts = $icons;
|
5796 |
+
$vals = $icons;
|
5797 |
+
$onch = 'alert(\''.__('The page will be reloaded.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
5798 |
+
$html = wppa_select( $slug, $opts, $vals, $onch ) . ' <img src="' . esc_attr( WPPA_UPLOAD_URL . '/icons/' . wppa_opt( 'document_icon' ) ) . '" style="height:24px;" />';
|
5799 |
+
$clas = '';
|
5800 |
+
$tags = 'document';
|
5801 |
+
wppa_setting( $slug, '14.3', $name, $desc, $html, $help, $clas, $tags );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5802 |
Â
|
5803 |
+
$name = __( 'Upload custom multimedia icon', 'wp-photo-album-plus' );
|
5804 |
+
$desc = __( 'You can upload alternative icons here', 'wp-photo-album-plus' );
|
5805 |
+
$help = '';
|
5806 |
+
$slug = 'wppa_multimedia_icon_upload';
|
5807 |
+
$html = '<input
|
5808 |
+
id="my_file_element"
|
5809 |
+
type="file"
|
5810 |
+
name="file_5"
|
5811 |
+
style="float:left; font-size: 11px;"
|
5812 |
+
/>';
|
5813 |
+
$html .= wppa_doit_button(__('Upload icon image', 'wp-photo-album-plus'), $slug, '', '31', '16');
|
5814 |
+
$clas = '';
|
5815 |
+
$tags = 'audio,video,document,upload';
|
5816 |
+
wppa_setting( $slug, '14.98', $name, $desc, $html, $help, $clas, $tags );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5817 |
Â
|
5818 |
+
$name = __( 'Icon size', 'wp-photo-album-plus' );
|
5819 |
+
$desc = __( 'The size of the medals and multimedia icons on thumbnails', 'wp-photo-album-plus' );
|
5820 |
+
$help = '';
|
5821 |
+
$slug = 'wppa_icon_size_multimedia';
|
5822 |
+
$opts = array( 'Small', 'Medium', 'Large', 'Extra large' );
|
5823 |
+
$vals = array( 'S', 'M', 'L', 'XL' );
|
5824 |
+
$html = wppa_select( $slug, $opts, $vals );
|
5825 |
+
$clas = '';
|
5826 |
+
$tags = 'audio,video,document,thumb';
|
5827 |
+
wppa_setting( $slug, '14.99', $name, $desc, $html, $help, $clas, $tags );
|
5828 |
+
}
|
5829 |
Â
|
5830 |
+
?>
|
5831 |
+
</tbody>
|
5832 |
+
<tfoot style="font-weight: bold;" class="wppa_table_2">
|
5833 |
+
<tr>
|
5834 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
5835 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
5836 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
5837 |
+
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
5838 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
5839 |
+
</tr>
|
5840 |
+
</tfoot>
|
5841 |
+
</table>
|
5842 |
+
</div>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5843 |
Â
|
5844 |
+
<?php // Table 3: Backgrounds ?>
|
5845 |
+
<?php wppa_settings_box_header(
|
5846 |
+
'3',
|
5847 |
+
__('Table III:', 'wp-photo-album-plus').' '.__('Backgrounds:', 'wp-photo-album-plus').' '.
|
5848 |
+
__('This table describes the backgrounds of wppa+ elements.', 'wp-photo-album-plus')
|
5849 |
+
); ?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5850 |
Â
|
5851 |
+
<div id="wppa_table_3" style="display:none" >
|
5852 |
+
<table class="widefat wppa-table wppa-setting-table">
|
5853 |
+
<thead style="font-weight: bold; " class="wppa_table_3">
|
5854 |
+
<tr>
|
5855 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
5856 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
5857 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
5858 |
+
<td><?php _e('Background color', 'wp-photo-album-plus') ?></td>
|
5859 |
+
<td><?php _e('Sample', 'wp-photo-album-plus') ?></td>
|
5860 |
+
<td><?php _e('Border color', 'wp-photo-album-plus') ?></td>
|
5861 |
+
<td><?php _e('Sample', 'wp-photo-album-plus') ?></td>
|
5862 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
5863 |
+
</tr>
|
5864 |
+
</thead>
|
5865 |
+
<tbody class="wppa_table_3">
|
5866 |
+
<?php
|
5867 |
+
$wppa_table = 'III';
|
5868 |
+
|
5869 |
+
wppa_setting_subheader( 'A', '4', __('General backgrounds' , 'wp-photo-album-plus') );
|
5870 |
+
{
|
5871 |
+
|
5872 |
+
$name = __('SlideImg', 'wp-photo-album-plus');
|
5873 |
+
$desc = __('Fullsize Slideshow Photos.', 'wp-photo-album-plus');
|
5874 |
+
$help = '';
|
5875 |
+
$help .= '<br />'.(__('The colors may be equal or "transparent"', 'wp-photo-album-plus'));
|
5876 |
+
$help .= '<br />'.(__('For more information about slideshow image borders see the help on Table I-B4', 'wp-photo-album-plus'));
|
5877 |
+
$slug1 = 'wppa_bgcolor_fullimg';
|
5878 |
+
$slug2 = 'wppa_bcolor_fullimg';
|
5879 |
+
$slug = array($slug1, $slug2);
|
5880 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5881 |
+
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5882 |
+
$html = array($html1, $html2);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5883 |
Â
$clas = '';
|
5884 |
+
$tags = 'slide,layout';
|
5885 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
5886 |
+
|
5887 |
+
$name = __('Numbar', 'wp-photo-album-plus');
|
5888 |
+
$desc = __('Number bar box background.', 'wp-photo-album-plus');
|
5889 |
+
$help = '';
|
5890 |
+
$slug1 = 'wppa_bgcolor_numbar';
|
5891 |
+
$slug2 = 'wppa_bcolor_numbar';
|
5892 |
+
$slug = array($slug1, $slug2);
|
5893 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5894 |
+
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5895 |
+
$html = array($html1, $html2);
|
5896 |
+
$clas = 'wppa_numbar';
|
5897 |
+
$tags = 'slide,layout';
|
5898 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
5899 |
+
|
5900 |
+
$name = __('Numbar active', 'wp-photo-album-plus');
|
5901 |
+
$desc = __('Number bar active box background.', 'wp-photo-album-plus');
|
5902 |
+
$help = '';
|
5903 |
+
$slug1 = 'wppa_bgcolor_numbar_active';
|
5904 |
+
$slug2 = 'wppa_bcolor_numbar_active';
|
5905 |
+
$slug = array($slug1, $slug2);
|
5906 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5907 |
+
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5908 |
+
$html = array($html1, $html2);
|
5909 |
+
$clas = 'wppa_numbar';
|
5910 |
+
$tags = 'slide,layout';
|
5911 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
5912 |
Â
|
5913 |
+
}
|
5914 |
+
wppa_setting_subheader( 'B', '4', __('Other backgrounds and colors' , 'wp-photo-album-plus') );
|
5915 |
+
{
|
5916 |
+
|
5917 |
+
$name = __('Thumbnail padding', 'wp-photo-album-plus');
|
5918 |
+
$desc = __('Thumbnail padding color if thumbnail aspect is a padded setting.', 'wp-photo-album-plus');
|
5919 |
+
$help = (__('Enter valid CSS color hexadecimal like #000000 for black or #ffffff for white for the padded thumbnails.', 'wp-photo-album-plus'));
|
5920 |
+
$slug1 = 'wppa_bgcolor_thumbnail';
|
Â
|
|
Â
|
|
5921 |
Â
$slug2 = '';
|
5922 |
+
$slug = array($slug1, $slug2);
|
5923 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5924 |
+
$html2 = '</td><td>';//wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5925 |
+
$html = array($html1, $html2);
|
5926 |
Â
$clas = '';
|
5927 |
+
$tags = 'layout,thumb';
|
5928 |
+
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
5929 |
+
|
5930 |
+
$name = __('Img', 'wp-photo-album-plus');
|
5931 |
+
$desc = __('Cover Photos and popups.', 'wp-photo-album-plus');
|
5932 |
+
$help = (__('Enter valid CSS colors for Cover photo and popup backgrounds and borders.', 'wp-photo-album-plus'));
|
5933 |
+
$slug1 = 'wppa_bgcolor_img';
|
5934 |
+
$slug2 = 'wppa_bcolor_img';
|
5935 |
+
$slug = array($slug1, $slug2);
|
5936 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5937 |
+
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5938 |
+
$html = array($html1, $html2);
|
5939 |
+
$clas = '';
|
5940 |
+
$tags = 'layout,cover,album';
|
5941 |
+
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
5942 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5943 |
Â
|
5944 |
+
$name = __('Modal render box', 'wp-photo-album-plus');
|
5945 |
+
$desc = __('The background for the Ajax modal rendering box.', 'wp-photo-album-plus');
|
5946 |
+
$help = (__('Recommended color: your theme background color.', 'wp-photo-album-plus'));
|
5947 |
+
$slug1 = 'wppa_bgcolor_modal';
|
5948 |
+
$slug2 = 'wppa_bcolor_modal';
|
5949 |
+
$slug = array($slug1, $slug2);
|
5950 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5951 |
+
$html2 = '</td><td>';
|
5952 |
+
$html = array($html1, $html2);
|
5953 |
+
$clas = '';
|
5954 |
+
$tags = 'layout';
|
5955 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5956 |
Â
|
5957 |
+
$name = __('Navigation symbols', 'wp-photo-album-plus');
|
5958 |
+
$desc = __('Navigation symbol background and fill colors.', 'wp-photo-album-plus');
|
5959 |
+
$help = '';
|
5960 |
+
$slug1 = 'wppa_svg_bg_color';
|
5961 |
+
$slug2 = 'wppa_svg_color';
|
5962 |
+
$slug = array($slug1, $slug2);
|
5963 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5964 |
+
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5965 |
+
$html = array($html1, $html2);
|
5966 |
+
$clas = 'svg';
|
5967 |
+
$tags = 'layout,navi';
|
5968 |
+
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
5969 |
Â
|
5970 |
+
$name = __('Navigation symbols Lightbox', 'wp-photo-album-plus');
|
5971 |
+
$desc = __('Navigation symbol background and fill colors Lightbox.', 'wp-photo-album-plus');
|
5972 |
+
$help = '';
|
5973 |
+
$slug1 = 'wppa_ovl_svg_bg_color';
|
5974 |
+
$slug2 = 'wppa_ovl_svg_color';
|
5975 |
+
$slug = array($slug1, $slug2);
|
5976 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5977 |
+
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5978 |
+
$html = array($html1, $html2);
|
5979 |
+
$clas = 'svg';
|
5980 |
+
$tags = 'layout,navi';
|
5981 |
+
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
5982 |
+
|
5983 |
+
$name = __('Fullscreen button', 'wp-photo-album-plus');
|
5984 |
+
$desc = __('The upper right corner fullscreen button.', 'wp-photo-album-plus');
|
5985 |
+
$help = '';
|
5986 |
+
$slug1 = 'wppa_fs_svg_bg_color';
|
5987 |
+
$slug2 = 'wppa_fs_svg_color';
|
5988 |
+
$slug = array($slug1, $slug2);
|
5989 |
+
$html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
|
5990 |
+
$html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
|
5991 |
+
$html = array($html1, $html2);
|
5992 |
+
$clas = 'svg';
|
5993 |
+
$tags = 'layout,navi';
|
5994 |
+
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
5995 |
Â
|
5996 |
+
}
|
5997 |
+
?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
5998 |
Â
|
5999 |
+
</tbody>
|
6000 |
+
<tfoot style="font-weight: bold;" class="wppa_table_3">
|
6001 |
+
<tr>
|
6002 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
6003 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
6004 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
6005 |
+
<td><?php _e('Background color', 'wp-photo-album-plus') ?></td>
|
6006 |
+
<td><?php _e('Sample', 'wp-photo-album-plus') ?></td>
|
6007 |
+
<td><?php _e('Border color', 'wp-photo-album-plus') ?></td>
|
6008 |
+
<td><?php _e('Sample', 'wp-photo-album-plus') ?></td>
|
6009 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
6010 |
+
</tr>
|
6011 |
+
</tfoot>
|
6012 |
+
</table>
|
6013 |
+
</div>
|
6014 |
Â
|
6015 |
+
<?php // Table 4: Behaviour ?>
|
6016 |
+
<?php wppa_settings_box_header(
|
6017 |
+
'4',
|
6018 |
+
__('Table IV:', 'wp-photo-album-plus').' '.__('Behaviour:', 'wp-photo-album-plus').' '.
|
6019 |
+
__('This table describes the dynamic behaviour of certain wppa+ elements.', 'wp-photo-album-plus')
|
6020 |
+
); ?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
6021 |
Â
|
6022 |
+
<div id="wppa_table_4" style="display:none" >
|
6023 |
+
<table class="widefat wppa-table wppa-setting-table">
|
6024 |
+
<thead style="font-weight: bold; " class="wppa_table_4">
|
6025 |
+
<tr>
|
6026 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
6027 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
6028 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
6029 |
+
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
6030 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
6031 |
+
</tr>
|
6032 |
+
</thead>
|
6033 |
+
<tbody class="wppa_table_4">
|
6034 |
+
<?php
|
6035 |
+
$wppa_table = 'IV';
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
6036 |
Â
|
6037 |
+
wppa_setting_subheader( 'A', '1', __( 'System related settings' , 'wp-photo-album-plus') );
|
6038 |
+
{
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
6039 |
Â
|
6040 |
+
$name = __('Modal boxes', 'wp-photo-album-plus');
|
6041 |
+
$desc = __('Place Ajax rendered content in modal boxes', 'wp-photo-album-plus');
|
6042 |
+
$help = '';
|
6043 |
+
$slug = 'wppa_ajax_render_modal';
|
6044 |
+
$html = wppa_checkbox($slug);
|
6045 |
+
wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
6046 |
Â
|
6047 |
+
$name = __('Ajax scroll', 'wp-photo-album-plus');
|
6048 |
+
$desc = __('Scroll into position after an ajax call changed the page content', 'wp-photo-album-plus');
|
6049 |
+
$help = '';
|
6050 |
+
$slug = 'wppa_ajax_scroll';
|
6051 |
+
$html = wppa_checkbox($slug);
|
6052 |
+
wppa_setting($slug, '1.3', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
6053 |
Â
|
6054 |
+
$name = __('Non Ajax scroll', 'wp-photo-album-plus');
|
6055 |
+
$desc = __('Scroll into position after a wppa link changed the page content', 'wp-photo-album-plus');
|
6056 |
+
$help = '';
|
6057 |
+
$slug = 'wppa_non_ajax_scroll';
|
6058 |
+
$html = wppa_checkbox($slug);
|
6059 |
+
wppa_setting($slug, '1.4', $name, $desc, $html, $help, $clas, $tags);
|
Â
|
|
6060 |
Â
|
6061 |
+
$name = __('Photo names in urls', 'wp-photo-album-plus');
|
6062 |
+
$desc = __('Display photo names in urls.', 'wp-photo-album-plus');
|
6063 |
+
$help = (__('Urls to wppa+ displays will contain photonames instead of numbers.', 'wp-photo-album-plus'));
|
6064 |
+
$help .= '<br />'.(__('It is your responsibility to avoid duplicate names of photos in the same album.', 'wp-photo-album-plus'));
|
6065 |
+
$slug = 'wppa_use_photo_names_in_urls';
|
6066 |
+
$html = wppa_checkbox($slug);
|
6067 |
+
$clas = '';
|
6068 |
+
$tags = 'link,system,meta';
|
6069 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
6070 |
+
|
6071 |
+
$name = __('Album names in urls', 'wp-photo-album-plus');
|
6072 |
+
$desc = __('Display album names in urls.', 'wp-photo-album-plus');
|
6073 |
+
$help = (__('Urls to wppa+ displays will contain albumnames instead of numbers.', 'wp-photo-album-plus'));
|
6074 |
+
$help .= '<br />'.(__('It is your responsibility to avoid duplicate names of albums in the system.', 'wp-photo-album-plus'));
|
6075 |
+
$slug = 'wppa_use_album_names_in_urls';
|
6076 |
+
$html = wppa_checkbox($slug);
|
6077 |
+
$clas = '';
|
6078 |
+
$tags = 'link,system,meta';
|
6079 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
6080 |
+
|
6081 |
+
$name = __('Use short query args', 'wp-photo-album-plus');
|
6082 |
+
$desc = __('Use &album=... &photo=...', 'wp-photo-album-plus');
|
6083 |
+
$help = (__('Urls to wppa+ displays will contain &album=... &photo=... instead of &wppa-album=... &wppa-photo=...', 'wp-photo-album-plus'));
|
6084 |
+
$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'));
|
6085 |
+
$slug = 'wppa_use_short_qargs';
|
6086 |
+
$html = wppa_checkbox($slug);
|
6087 |
+
$clas = '';
|
6088 |
+
$tags = 'link,system';
|
6089 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
6090 |
+
|
6091 |
+
$name = __('Enable pretty links', 'wp-photo-album-plus');
|
6092 |
+
$desc = __('Enable the generation and understanding of pretty links.', 'wp-photo-album-plus');
|
6093 |
+
$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'));
|
6094 |
+
$help .= '<br />'.(__('These types of links will be interpreted and cause a redirection on entering.', 'wp-photo-album-plus'));
|
6095 |
+
$help .= '<br />'.(__('It is recommended to check this box. It shortens links dramatically and simplifies qr codes.', 'wp-photo-album-plus'));
|
6096 |
+
$help .= '<br />'.(__('However, you may encounter conflicts with themes and/or other plugins, so test it throughly!', 'wp-photo-album-plus'));
|
6097 |
+
$help .= '<br />'.(__('Table IV-A2 (Photo names in urls) must be UNchecked for this setting to work!', 'wp-photo-album-plus'));
|
6098 |
+
$slug = 'wppa_use_pretty_links';
|
6099 |
+
$opts = array( __( 'None', 'wp-photo-album-plus' ),
|
6100 |
+
__( 'Classic', 'wp-photo-album-plus' ),
|
6101 |
+
__( 'Compressed', 'wp-photo-album-plus' ),
|
6102 |
+
);
|
6103 |
+
$vals = array( '-none-', 'classic', 'compressed' );
|
6104 |
+
$html = wppa_select($slug, $opts, $vals );
|
6105 |
+
$clas = '';
|
6106 |
+
$tags = 'link,system';
|
6107 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
6108 |
+
|
6109 |
+
$name = __('Enable encrypted links', 'wp-photo-album-plus');
|
6110 |
+
$desc = __('Encrypt album and photo ids in links.', 'wp-photo-album-plus');
|
6111 |
+
$help = '';
|
6112 |
+
$slug = 'wppa_use_encrypted_links';
|
6113 |
+
$onch = 'alert(\''.__('The page will be reloaded.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
6114 |
+
$html = wppa_checkbox($slug, $onch);
|
6115 |
+
$clas = '';
|
6116 |
+
$tags = 'link,system';
|
6117 |
+
wppa_setting($slug, '6.1', $name, $desc, $html, $help, $clas, $tags);
|
6118 |
+
|
6119 |
+
$name = __('Refuse unencrypted', 'wp-photo-album-plus');
|
6120 |
+
$desc = __('When encrypted is enabled, refuse unencrypted urls.', 'wp-photo-album-plus');
|
6121 |
+
$help = '';
|
6122 |
+
$slug = 'wppa_refuse_unencrypted';
|
6123 |
+
$html = wppa_checkbox($slug);
|
6124 |
+
$clas = '';
|
6125 |
+
$tags = 'link,system';
|
6126 |
+
wppa_setting($slug, '6.2', $name, $desc, $html, $help, $clas, $tags);
|
6127 |
+
|
6128 |
+
$name = __('Update addressline', 'wp-photo-album-plus');
|
6129 |
+
$desc = __('Update the addressline after an ajax action or next slide.', 'wp-photo-album-plus');
|
6130 |
+
$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'));
|
6131 |
+
$help .= '<br />'.(__('If unchecked, refreshing the page will re-display the content of the original page.', 'wp-photo-album-plus'));
|
6132 |
+
$help .= '<br />'.(__('This will only work on browsers that support history.pushState() and therefor NOT in IE', 'wp-photo-album-plus'));
|
6133 |
+
$slug = 'wppa_update_addressline';
|
6134 |
+
$html = wppa_checkbox($slug);
|
6135 |
+
$clas = '';
|
6136 |
+
$tags = 'link,system';
|
6137 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
6138 |
+
|
6139 |
+
$name = __('Render shortcode always', 'wp-photo-album-plus');
|
6140 |
+
$desc = __('This will skip the check on proper initialisation.', 'wp-photo-album-plus');
|
6141 |
+
$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'));
|
6142 |
+
$slug = 'wppa_render_shortcode_always';
|
6143 |
+
$html = wppa_checkbox($slug);
|
6144 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
6145 |
+
|
6146 |
+
$name = __('Track viewcounts', 'wp-photo-album-plus');
|
6147 |
+
$desc = __('Register number of views of albums and photos.', 'wp-photo-album-plus');
|
6148 |
+
$help = '';
|
6149 |
+
$slug = 'wppa_track_viewcounts';
|
6150 |
+
$html = wppa_checkbox($slug);
|
6151 |
+
$clas = '';
|
6152 |
+
$tags = 'system,meta';
|
6153 |
+
wppa_setting($slug, '9.1', $name, $desc, $html, $help, $clas, $tags);
|
6154 |
+
|
6155 |
+
$name = __('Track clickcounts', 'wp-photo-album-plus');
|
6156 |
+
$desc = __('Register number of clicks on photos that link to an url.', 'wp-photo-album-plus');
|
6157 |
+
$help = '';
|
6158 |
+
$slug = 'wppa_track_clickcounts';
|
6159 |
+
$html = wppa_checkbox($slug);
|
6160 |
+
$clas = '';
|
6161 |
+
$tags = 'system,meta';
|
6162 |
+
wppa_setting($slug, '9.2', $name, $desc, $html, $help, $clas, $tags);
|
6163 |
+
|
6164 |
+
$name = __('Auto page', 'wp-photo-album-plus');
|
6165 |
+
$desc = __('Create a wp page for every fullsize image.', 'wp-photo-album-plus');
|
6166 |
+
$help = '';
|
6167 |
+
$slug = 'wppa_auto_page';
|
6168 |
+
$onchange = 'wppaCheckAutoPage()';
|
6169 |
+
$warn = (__('Please reload this page after changing!', 'wp-photo-album-plus'));
|
6170 |
+
$html = wppa_checkbox_warn($slug, $onchange, '', $warn);
|
6171 |
+
$clas = '';
|
6172 |
+
$tags = 'page,system';
|
6173 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
6174 |
+
|
6175 |
+
$name = __('Auto page display', 'wp-photo-album-plus');
|
6176 |
+
$desc = __('The type of display on the autopage pages.', 'wp-photo-album-plus');
|
6177 |
+
$help = '';
|
6178 |
+
$slug = 'wppa_auto_page_type';
|
6179 |
+
$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') );
|
6180 |
+
$vals = array('photo', 'mphoto', 'slphoto');
|
6181 |
+
$html = wppa_select($slug, $opts, $vals);
|
6182 |
+
$clas = 'autopage';
|
6183 |
+
$tags = 'page,system,layout';
|
6184 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
6185 |
+
|
6186 |
+
$name = __('Auto page links', 'wp-photo-album-plus');
|
6187 |
+
$desc = __('The location for the pagelinks.', 'wp-photo-album-plus');
|
6188 |
+
$help = '';
|
6189 |
+
$slug = 'wppa_auto_page_links';
|
6190 |
+
$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'));
|
6191 |
+
$vals = array('none', 'top', 'bottom', 'both');
|
6192 |
+
$html = wppa_select($slug, $opts, $vals);
|
6193 |
+
$clas = 'autopage';
|
6194 |
+
$tags = 'page,system,layout';
|
6195 |
+
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
6196 |
+
|
6197 |
+
$name = __('Defer javascript', 'wp-photo-album-plus');
|
6198 |
+
$desc = __('Put javascript near the end of the page.', 'wp-photo-album-plus');
|
6199 |
+
$help = (__('If checkd: May fix layout problems and broken slideshows. May speed up or slow down page appearing.', 'wp-photo-album-plus'));
|
6200 |
+
$slug = 'wppa_defer_javascript';
|
6201 |
+
$html = wppa_checkbox($slug);
|
6202 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
6203 |
+
|
6204 |
+
$name = __('Inline styles', 'wp-photo-album-plus');
|
6205 |
+
$desc = __('Set style specifications inline.', 'wp-photo-album-plus');
|
6206 |
+
$help = (__('If checked: May fix layout problems, but slows down page appearing.', 'wp-photo-album-plus'));
|
6207 |
+
$slug = 'wppa_inline_css';
|
6208 |
+
$html = wppa_checkbox($slug);
|
6209 |
+
$clas = '';
|
6210 |
+
$tags = 'system,layout';
|
6211 |
+
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
6212 |
+
|
6213 |
+
$name = __('Custom style', 'wp-photo-album-plus');
|
6214 |
+
$desc = __('Enter custom style specs here.', 'wp-photo-album-plus');
|
6215 |
+
$help = '';
|
6216 |
+
$slug = 'wppa_custom_style';
|
6217 |
+
$html = wppa_textarea($slug, $name);
|
6218 |
+
$clas = '';
|
6219 |
+
$tags = 'system,layout';
|
6220 |
+
wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
|
6221 |
+
|
6222 |
+
$name = __('Custom style Chrome', 'wp-photo-album-plus');
|
6223 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6224 |
+
$help = '';
|
6225 |
+
$slug = 'wppa_custom_style_chrome';
|
6226 |
+
$html = wppa_textarea($slug, $name);
|
6227 |
+
$clas = '';
|
6228 |
+
$tags = 'system,layout';
|
6229 |
+
wppa_setting($slug, '15.1', $name, $desc, $html, $help, $clas, $tags);
|
6230 |
+
|
6231 |
+
$name = __('Custom style Firefox', 'wp-photo-album-plus');
|
6232 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6233 |
+
$help = '';
|
6234 |
+
$slug = 'wppa_custom_style_firefox';
|
6235 |
+
$html = wppa_textarea($slug, $name);
|
6236 |
+
$clas = '';
|
6237 |
+
$tags = 'system,layout';
|
6238 |
+
wppa_setting($slug, '15.2', $name, $desc, $html, $help, $clas, $tags);
|
6239 |
+
|
6240 |
+
$name = __('Custom style Safari', 'wp-photo-album-plus');
|
6241 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6242 |
+
$help = '';
|
6243 |
+
$slug = 'wppa_custom_style_safari';
|
6244 |
+
$html = wppa_textarea($slug, $name);
|
6245 |
+
$clas = '';
|
6246 |
+
$tags = 'system,layout';
|
6247 |
+
wppa_setting($slug, '15.4', $name, $desc, $html, $help, $clas, $tags);
|
6248 |
+
|
6249 |
+
$name = __('Custom style Edge', 'wp-photo-album-plus');
|
6250 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6251 |
+
$help = '';
|
6252 |
+
$slug = 'wppa_custom_style_edge';
|
6253 |
+
$html = wppa_textarea($slug, $name);
|
6254 |
+
$clas = '';
|
6255 |
+
$tags = 'system,layout';
|
6256 |
+
wppa_setting($slug, '15.5', $name, $desc, $html, $help, $clas, $tags);
|
6257 |
+
|
6258 |
+
$name = __('Custom style IE', 'wp-photo-album-plus');
|
6259 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6260 |
+
$help = '';
|
6261 |
+
$slug = 'wppa_custom_style_ie';
|
6262 |
+
$html = wppa_textarea($slug, $name);
|
6263 |
+
$clas = '';
|
6264 |
+
$tags = 'system,layout';
|
6265 |
+
wppa_setting($slug, '15.6', $name, $desc, $html, $help, $clas, $tags);
|
6266 |
+
|
6267 |
+
$name = __('Custom style Opera', 'wp-photo-album-plus');
|
6268 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6269 |
+
$help = '';
|
6270 |
+
$slug = 'wppa_custom_style_opera';
|
6271 |
+
$html = wppa_textarea($slug, $name);
|
6272 |
+
$clas = '';
|
6273 |
+
$tags = 'system,layout';
|
6274 |
+
wppa_setting($slug, '15.7', $name, $desc, $html, $help, $clas, $tags);
|
6275 |
+
|
6276 |
+
$name = __('Use customized style file', 'wp-photo-album-plus');
|
6277 |
+
$desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
|
6278 |
+
$help = '';
|
6279 |
+
$slug = 'wppa_use_custom_style_file';
|
6280 |
+
$html = wppa_checkbox($slug);
|
6281 |
+
$clas = '';
|
6282 |
+
$tags = 'system,layout';
|
6283 |
+
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
6284 |
+
|
6285 |
+
$name = __('Use customized theme file', 'wp-photo-album-plus');
|
6286 |
+
$desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
|
6287 |
+
$help = '';
|
6288 |
+
$slug = 'wppa_use_custom_theme_file';
|
6289 |
+
$html = wppa_checkbox($slug);
|
6290 |
+
$clas = '';
|
6291 |
+
$tags = 'system,layout';
|
6292 |
+
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
6293 |
+
|
6294 |
+
$name = __('Enable photo html access', 'wp-photo-album-plus');
|
6295 |
+
$desc = __('Creates .htaccess files in .../uploads/wppa/ and .../uploads/wppa/thumbs/', 'wp-photo-album-plus');
|
6296 |
+
$help = '';
|
6297 |
+
$slug = 'wppa_cre_uploads_htaccess';
|
6298 |
+
$opts = array( __('create \'all access\' .htaccess files', 'wp-photo-album-plus'),
|
6299 |
+
__('remove .htaccess files', 'wp-photo-album-plus'),
|
6300 |
+
__('create \'no hotlinking\' .htaccess files', 'wp-photo-album-plus'),
|
6301 |
+
__('do not change existing .htaccess file(s)', 'wp-photo-album-plus'),
|
6302 |
+
);
|
6303 |
+
$vals = array( 'grant',
|
6304 |
+
'remove',
|
6305 |
+
'nohot',
|
6306 |
+
'custom',
|
6307 |
+
);
|
6308 |
+
$html = wppa_select($slug, $opts, $vals);
|
6309 |
+
$clas = '';
|
6310 |
+
$tags = 'system,access';
|
6311 |
+
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
6312 |
+
|
6313 |
+
$name = __('Lazy load', 'wp-photo-album-plus');
|
6314 |
+
$desc = __('Load photos from the server at the moment they will show up.', 'wp-photo-album-plus');
|
6315 |
+
$help = '';
|
6316 |
+
$slug = 'wppa_lazy';
|
6317 |
+
$html = wppa_checkbox($slug);
|
6318 |
+
$clas = '';
|
6319 |
+
$tags = 'system,layout,album';
|
6320 |
+
wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
|
6321 |
+
|
6322 |
+
$name = __('Thumbs first', 'wp-photo-album-plus');
|
6323 |
+
$desc = __('When displaying album content: thumbnails before subalbums.', 'wp-photo-album-plus');
|
6324 |
+
$help = '';
|
6325 |
+
$slug = 'wppa_thumbs_first';
|
6326 |
+
$html = wppa_checkbox($slug);
|
6327 |
+
$clas = '';
|
6328 |
+
$tags = 'system,layout,album';
|
6329 |
+
wppa_setting($slug, '20', $name, $desc, $html, $help, $clas, $tags);
|
6330 |
+
|
6331 |
+
$name = __('Login links', 'wp-photo-album-plus');
|
6332 |
+
$desc = __('You must login to... links to login page.', 'wp-photo-album-plus');
|
6333 |
+
$help = '';
|
6334 |
+
$slug = 'wppa_login_links';
|
6335 |
+
$html = wppa_checkbox($slug);
|
6336 |
+
wppa_setting($slug, '21', $name, $desc, $html, $help, $clas, $tags);
|
6337 |
+
|
6338 |
+
$name = __('Relative urls', 'wp-photo-album-plus');
|
6339 |
+
$desc = __('Use relative urls only.', 'wp-photo-album-plus');
|
6340 |
+
$help = '';
|
6341 |
+
$slug = 'wppa_relative_urls';
|
6342 |
+
$html = wppa_checkbox($slug);
|
6343 |
+
wppa_setting($slug, '25', $name, $desc, $html, $help, $clas, $tags);
|
6344 |
+
|
6345 |
+
$name = __('Capitalize tags and cats', 'wp-photo-album-plus');
|
6346 |
+
$desc = __('Format tags and cats to start with one capital character', 'wp-photo-album-plus');
|
6347 |
+
$help = '';
|
6348 |
+
$slug = 'wppa_capitalize_tags';
|
6349 |
+
$html = wppa_checkbox($slug);
|
6350 |
+
$clas = '';
|
6351 |
+
$tags = 'system,meta';
|
6352 |
+
wppa_setting($slug, '26', $name, $desc, $html, $help, $clas, $tags);
|
6353 |
+
|
6354 |
+
$name = __('Enable Admins Choice', 'wp-photo-album-plus');
|
6355 |
+
$desc = __('Enable the creation of zipfiles with selected photos.', 'wp-photo-album-plus');
|
6356 |
+
$help = __('Activate the Admins Choice widget to make the zipfiles downloadable.', 'wp-photo-album-plus');
|
6357 |
+
$slug = 'wppa_admins_choice';
|
6358 |
+
$opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
|
6359 |
+
__( 'Admins and superusers', 'wp-photo-album-plus' ),
|
6360 |
+
__( 'All loggedin users', 'wp-photo-album-plus' )
|
6361 |
+
);
|
6362 |
+
$vals = array( 'none', 'admin', 'login' );
|
6363 |
+
$html = wppa_select($slug, $opts, $vals);
|
6364 |
+
wppa_setting($slug, '27', $name, $desc, $html, $help, $clas, $tags);
|
6365 |
+
|
6366 |
+
$name = __('Tag Admins Choice', 'wp-photo-album-plus');
|
6367 |
+
$desc = __('Tag photos with Admins Choice user', 'wp-photo-album-plus');
|
6368 |
+
$help = '';
|
6369 |
+
$slug = 'wppa_choice_is_tag';
|
6370 |
+
$html = wppa_checkbox($slug);
|
6371 |
+
$clas = '';
|
6372 |
+
$tags = 'system,meta';
|
6373 |
+
wppa_setting($slug, '27.1', $name, $desc, $html, $help, $clas, $tags);
|
6374 |
+
|
6375 |
+
$name = __('Admins choice me only', 'wp-photo-album-plus');
|
6376 |
+
$desc = __('Shows the link to the current users zipfile only', 'wp-photo-album-plus');
|
6377 |
+
$help = '';
|
6378 |
+
$slug = 'wppa_admins_choice_meonly';
|
6379 |
+
$html = wppa_checkbox($slug);
|
6380 |
+
$clas = '';
|
6381 |
+
$tags = 'system,meta';
|
6382 |
+
wppa_setting($slug, '27.2', $name, $desc, $html, $help, $clas, $tags);
|
6383 |
+
|
6384 |
+
$name = __('Admins choice action', 'wp-photo-album-plus');
|
6385 |
+
$desc = __('Select the action to be taken after clicking the "My Choice" link', 'wp-photo-album-plus');
|
6386 |
+
$help = __('If set to album, the link is only shown to users who have album admin rights', 'wp-photo-album-plus');
|
6387 |
+
$slug = 'wppa_admins_choice_action';
|
6388 |
+
$opts = array(__('To zipfile', 'wp-photo-album-plus'), __('To album', 'wp-photo-album-plus'), __('To album and zip', 'wp-photo-album-plus'));
|
6389 |
+
$vals = array('zip', 'album', 'both');
|
6390 |
+
$html = wppa_select($slug, $opts, $vals);
|
6391 |
+
$clas = '';
|
6392 |
+
$tags = 'system,meta';
|
6393 |
+
wppa_setting($slug, '27.3', $name, $desc, $html, $help, $clas, $tags);
|
6394 |
+
|
6395 |
+
$name = __('Make owner like photoname', 'wp-photo-album-plus');
|
6396 |
+
$desc = __('Change the owner to the user who\'s display name equals photoname.', 'wp-photo-album-plus');
|
6397 |
+
$help = '';
|
6398 |
+
$slug = 'wppa_owner_to_name';
|
6399 |
+
$html = wppa_checkbox($slug);
|
6400 |
+
wppa_setting($slug, '28', $name, $desc, $html, $help, $clas, $tags);
|
6401 |
+
|
6402 |
+
$name = __('No rightclick', 'wp-photo-album-plus');
|
6403 |
+
$desc = __('Disable right mouseclick on all images', 'wp-photo-album-plus');
|
6404 |
+
$help = '';
|
6405 |
+
$slug = 'wppa_no_rightclick';
|
6406 |
+
$html = wppa_checkbox( $slug );
|
6407 |
+
wppa_setting($slug, '31', $name, $desc, $html, $help, $clas, $tags);
|
6408 |
+
|
6409 |
+
$name = __('Nice scroll on window', 'wp-photo-album-plus');
|
6410 |
+
$desc = __('Apply the nice scroller on the browserwindow', 'wp-photo-album-plus');
|
6411 |
+
$help = '';
|
6412 |
+
$slug = 'wppa_nicescroll_window';
|
6413 |
+
$html = wppa_checkbox( $slug );
|
6414 |
+
wppa_setting($slug, '32', $name, $desc, $html, $help, $clas, $tags);
|
6415 |
+
|
6416 |
+
$name = __('Nice scroller options', 'wp-photo-album-plus');
|
6417 |
+
$desc = __('The nice scroller configuration options', 'wp-photo-album-plus');
|
6418 |
+
$help = __('Enter options, one per line, seperated by commas(,).', 'wp-photo-album-plus');
|
6419 |
+
$help .= '<br />' .
|
6420 |
+
sprintf( __('Click %s here %s for documentation and a full list of available options', 'wp-photo-album-plus'),
|
6421 |
+
'<a href="' . WPPA_URL . '/vendor/nicescroll/README.txt" target="_blank" >',
|
6422 |
+
'</a>'
|
6423 |
+
) .
|
6424 |
+
'<br />';
|
6425 |
+
$slug = 'wppa_nicescroll_opts';
|
6426 |
+
$html = wppa_textarea( $slug );
|
6427 |
+
wppa_setting($slug, '33', $name, $desc, $html, $help, $clas, $tags);
|
6428 |
+
|
6429 |
+
$name = __('Response speed', 'wp-photo-album-plus');
|
6430 |
+
$desc = __('The speed of responsive size adjustments', 'wp-photo-album-plus');
|
6431 |
+
$help = '';
|
6432 |
+
$slug = 'wppa_response_speed';
|
6433 |
+
$opts = array( __( 'very slow', 'wp-photo-album-plus' ),
|
6434 |
+
__( 'slow', 'wp-photo-album-plus' ),
|
6435 |
+
__( 'normal', 'wp-photo-album-plus' ),
|
6436 |
+
__( 'fast', 'wp-photo-album-plus' ),
|
6437 |
+
__( 'very fast', 'wp-photo-album-plus' ),
|
6438 |
+
__( 'off', 'wp-photo-album-plus' ),
|
6439 |
+
);
|
6440 |
+
$vals = array( '750', '500', '350', '200', '100', '0' );
|
6441 |
+
$html = wppa_select($slug, $opts, $vals);
|
6442 |
+
$clas = '';
|
6443 |
+
$tags = '';
|
6444 |
+
wppa_setting( $slug, '34', $name, $desc, $html, $help, $clas, $tags );
|
6445 |
+
|
6446 |
+
$name = __('Enable request info', 'wp-photo-album-plus');
|
6447 |
+
$desc = __('Shows a button under the slideshow image to request info by email', 'wp-photo-album-plus');
|
6448 |
+
$help = '';
|
6449 |
+
$slug = 'wppa_request_info';
|
6450 |
+
$html = wppa_checkbox( $slug );
|
6451 |
+
wppa_setting($slug, '35', $name, $desc, $html, $help, $clas, $tags);
|
6452 |
+
|
6453 |
+
$name = __('Dialog text', 'wp-photo-album-plus');
|
6454 |
+
$desc = __('The text to display in the dialog box', 'wp-photo-album-plus');
|
6455 |
+
$help = '';
|
6456 |
+
$slug = 'wppa_request_info_text';
|
6457 |
+
$html = wppa_input($slug, '90%');
|
6458 |
+
wppa_setting($slug, '35.1', $name, $desc, $html, $help, $clas, $tags);
|
6459 |
+
|
6460 |
+
$name = __('Gallery not A<b></b>lbum', 'wp-photo-album-plus');
|
6461 |
+
$desc = __('Use the name Gallery rather than A<b></b>lbum', 'wp-photo-album-plus');
|
6462 |
+
$help = '';
|
6463 |
+
$slug = 'wppa_album_use_gallery';
|
6464 |
+
$html = wppa_checkbox($slug);
|
6465 |
+
wppa_setting($slug, '36', $name, $desc, $html, $help, $clas, $tags);
|
6466 |
+
|
6467 |
+
$name = __('Enable zooming', 'wp-photo-album-plus');
|
6468 |
+
$desc = __('Enable zooming and panning', 'wp-photo-album-plus');
|
6469 |
+
$help = '';
|
6470 |
+
$slug = 'wppa_zoom_on';
|
6471 |
+
$html = wppa_checkbox($slug);
|
6472 |
+
wppa_setting($slug, '37', $name, $desc, $html, $help, $clas, $tags);
|
6473 |
+
|
6474 |
+
$name = __('Fullscreen policy', 'wp-photo-album-plus');
|
6475 |
+
$desc = __('Select the desired fullscreen policy', 'wp-photo-album-plus');
|
6476 |
+
$help = '';
|
6477 |
+
$slug = 'wppa_fs_policy';
|
6478 |
+
$opts = array(__('--- none ---', 'wp-photo-album-plus'), __('On lightbox only', 'wp-photo-album-plus'), __('The entire page', 'wp-photo-album-plus') );
|
6479 |
+
$vals = array('none', 'lightbox', 'global');
|
6480 |
+
$html = wppa_select($slug, $opts, $vals, '');
|
6481 |
+
wppa_setting($slug, '38', $name, $desc, $html, $help, $clas, $tags);
|
6482 |
+
|
6483 |
+
}
|
6484 |
+
wppa_setting_subheader( 'B', '1', __( 'Slideshow related settings' , 'wp-photo-album-plus') );
|
6485 |
+
{
|
6486 |
+
$name = __('V align', 'wp-photo-album-plus');
|
6487 |
+
$desc = __('Vertical alignment of slideshow images.', 'wp-photo-album-plus');
|
6488 |
+
$help = (__('Specify the vertical alignment of slideshow images.', 'wp-photo-album-plus'));
|
6489 |
+
$slug = 'wppa_fullvalign';
|
6490 |
+
$options = 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'));
|
6491 |
+
$values = array('default', 'top', 'center', 'bottom', 'fit');
|
6492 |
+
$onchange = 'wppaCheckFullHalign()';
|
6493 |
+
$html = wppa_select($slug, $options, $values, $onchange);
|
6494 |
+
$clas = '';
|
6495 |
+
$tags = 'slide,layout';
|
6496 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
6497 |
+
|
6498 |
+
$name = __('V align', 'wp-photo-album-plus');
|
6499 |
+
$desc = __('Vertical alignment of slideonly slidshow images.', 'wp-photo-album-plus');
|
6500 |
+
$help = (__('Specify the vertical alignment of slideonly slideshow images.', 'wp-photo-album-plus'));
|
6501 |
+
$slug = 'wppa_fullvalign_slideonly';
|
6502 |
+
$options = 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'));
|
6503 |
+
$values = array('default', 'top', 'center', 'bottom', 'fit');
|
6504 |
+
$onchange = 'wppaCheckFullHalign()';
|
6505 |
+
$html = wppa_select($slug, $options, $values, $onchange);
|
6506 |
+
$clas = '';
|
6507 |
+
$tags = 'slide,layout';
|
6508 |
+
wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
|
6509 |
+
|
6510 |
+
$name = __('H align', 'wp-photo-album-plus');
|
6511 |
+
$desc = __('Horizontal alignment of slideshow images.', 'wp-photo-album-plus');
|
6512 |
+
$help = (__('Specify the horizontal alignment of slideshow images. If you specify --- none --- , no horizontal alignment will take place.', 'wp-photo-album-plus'));
|
6513 |
+
$help .= '<br />'.(__('This setting is only usefull when the Column Width differs from the Maximum Width.', 'wp-photo-album-plus'));
|
6514 |
+
$help .= '<br />'.(__('(Settings I-A1 and I-B1)', 'wp-photo-album-plus'));
|
6515 |
+
$slug = 'wppa_fullhalign';
|
6516 |
+
$options = array(__('--- none ---', 'wp-photo-album-plus'), __('left', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('right', 'wp-photo-album-plus'));
|
6517 |
+
$values = array('default', 'left', 'center', 'right');
|
6518 |
+
$html = wppa_select($slug, $options, $values);
|
6519 |
+
$clas = 'wppa_ha';
|
6520 |
+
$tags = 'slide,layout';
|
6521 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
6522 |
+
|
6523 |
+
$name = __('Start', 'wp-photo-album-plus');
|
6524 |
+
$desc = __('Start slideshow running.', 'wp-photo-album-plus');
|
6525 |
+
$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'));
|
6526 |
+
$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'));
|
6527 |
+
$slug = 'wppa_start_slide';
|
6528 |
+
$options = array( __('running', 'wp-photo-album-plus'),
|
6529 |
+
__('still at first photo', 'wp-photo-album-plus'),
|
6530 |
+
__('still at first norated', 'wp-photo-album-plus')
|
6531 |
+
);
|
6532 |
+
$values = array( 'run',
|
6533 |
+
'still',
|
6534 |
+
'norate'
|
6535 |
+
);
|
6536 |
+
$html = wppa_select($slug, $options, $values);
|
6537 |
+
$clas = 'wppa_ss';
|
6538 |
+
$tags = 'slide';
|
6539 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
6540 |
+
|
6541 |
+
$name = __('Start slideonly', 'wp-photo-album-plus');
|
6542 |
+
$desc = __('Start slideonly slideshow running.', 'wp-photo-album-plus');
|
6543 |
+
$help = '';
|
6544 |
+
$slug = 'wppa_start_slideonly';
|
6545 |
+
$html = wppa_checkbox($slug);
|
6546 |
+
$clas = '';
|
6547 |
+
$tags = 'slide';
|
6548 |
+
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
6549 |
+
|
6550 |
+
$name = __('Video autostart', 'wp-photo-album-plus');
|
6551 |
+
$desc = __('Autoplay videos in slideshows.', 'wp-photo-album-plus');
|
6552 |
+
$help = '';
|
6553 |
+
$slug = 'wppa_start_slide_video';
|
6554 |
+
$onchange = 'wppaCheckSlideVideoControls()';
|
6555 |
+
$html = wppa_checkbox($slug, $onchange);
|
6556 |
+
$clas = 'wppa-video';
|
6557 |
+
$tags = 'slide,video';
|
6558 |
+
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
6559 |
+
|
6560 |
+
$name = __('Audio autostart', 'wp-photo-album-plus');
|
6561 |
+
$desc = __('Autoplay audios in slideshows.', 'wp-photo-album-plus');
|
6562 |
+
$help = '';
|
6563 |
+
$slug = 'wppa_start_slide_audio';
|
6564 |
+
$html = wppa_checkbox($slug);
|
6565 |
+
$clas = 'wppa-audio';
|
6566 |
+
$tags = 'slide,audio';
|
6567 |
+
wppa_setting($slug, '3.3', $name, $desc, $html, $help, $clas, $tags);
|
6568 |
+
|
6569 |
+
$name = __('Animation type', 'wp-photo-album-plus');
|
6570 |
+
$desc = __('The way successive slides appear.', 'wp-photo-album-plus');
|
6571 |
+
$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'));
|
6572 |
+
$slug = 'wppa_animation_type';
|
6573 |
+
$options = array( __('Fade out and in simultaneous', 'wp-photo-album-plus'),
|
6574 |
+
__('Fade in after fade out', 'wp-photo-album-plus'),
|
6575 |
+
__('Shift adjacent', 'wp-photo-album-plus'),
|
6576 |
+
// __('Stack on', 'wp-photo-album-plus'),
|
6577 |
+
// __('Stack off', 'wp-photo-album-plus'),
|
6578 |
+
// __('Turn over', 'wp-photo-album-plus')
|
6579 |
+
);
|
6580 |
+
$values = array( 'fadeover',
|
6581 |
+
'fadeafter',
|
6582 |
+
'swipe',
|
6583 |
+
// 'stackon',
|
6584 |
+
// 'stackoff',
|
6585 |
+
// 'turnover'
|
6586 |
+
);
|
6587 |
+
$html = wppa_select($slug, $options, $values);
|
6588 |
+
$clas = '';
|
6589 |
+
$tags = 'slide';
|
6590 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
6591 |
+
|
6592 |
+
$name = __('Timeout', 'wp-photo-album-plus');
|
6593 |
+
$desc = __('Slideshow timeout.', 'wp-photo-album-plus');
|
6594 |
+
$help = (__('Select the time a single slide will be visible when the slideshow is started.', 'wp-photo-album-plus'));
|
6595 |
+
$slug = 'wppa_slideshow_timeout';
|
6596 |
+
$options = 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.' );
|
6597 |
+
$values = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
|
6598 |
+
$html = wppa_select($slug, $options, $values);
|
6599 |
+
$clas = 'wppa_ss';
|
6600 |
+
$tags = 'slide';
|
6601 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
6602 |
+
|
6603 |
+
$name = __('Speed', 'wp-photo-album-plus');
|
6604 |
+
$desc = __('Slideshow animation speed.', 'wp-photo-album-plus');
|
6605 |
+
$help = (__('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus'));
|
6606 |
+
$help .= '<br />'.(__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus'));
|
6607 |
+
$slug = 'wppa_animation_speed';
|
6608 |
+
$options = 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.');
|
6609 |
+
$values = array('10', '200', '400', '800', '1200', '2000', '4000', '6000', '8000', '10000');
|
6610 |
+
$html = wppa_select($slug, $options, $values);
|
6611 |
+
$clas = 'wppa_ss';
|
6612 |
+
$tags = 'slide';
|
6613 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
6614 |
+
|
6615 |
+
$name = __('Slide hover pause', 'wp-photo-album-plus');
|
6616 |
+
$desc = __('Running Slideshow suspends during mouse hover.', 'wp-photo-album-plus');
|
6617 |
+
$help = '';
|
6618 |
+
$slug = 'wppa_slide_pause';
|
6619 |
+
$html = wppa_checkbox($slug);
|
6620 |
+
$clas = '';
|
6621 |
+
$tags = 'slide';
|
6622 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
6623 |
+
|
6624 |
+
$name = __('Slideshow wrap around', 'wp-photo-album-plus');
|
6625 |
+
$desc = __('The slideshow wraps around the start and end', 'wp-photo-album-plus');
|
6626 |
+
$help = '';
|
6627 |
+
$slug = 'wppa_slide_wrap';
|
6628 |
+
$html = wppa_checkbox($slug);
|
6629 |
+
$clas = '';
|
6630 |
+
$tags = 'slide';
|
6631 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
6632 |
+
|
6633 |
+
$name = __('Full desc align', 'wp-photo-album-plus');
|
6634 |
+
$desc = __('The alignment of the descriptions under fullsize images and slideshows.', 'wp-photo-album-plus');
|
6635 |
+
$help = '';
|
6636 |
+
$slug = 'wppa_fulldesc_align';
|
6637 |
+
$options = array(__('Left', 'wp-photo-album-plus'), __('Center', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'));
|
6638 |
+
$values = array('left', 'center', 'right');
|
6639 |
+
$html = wppa_select($slug, $options, $values);
|
6640 |
+
$clas = '';
|
6641 |
+
$tags = 'slide,layout,meta';
|
6642 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
6643 |
+
|
6644 |
+
$name = __('Remove redundant space', 'wp-photo-album-plus');
|
6645 |
+
$desc = __('Removes unwanted <p> and <br> tags in fullsize descriptions.', 'wp-photo-album-plus');
|
6646 |
+
$help = __('This setting has only effect when Table IX-A7 (foreign shortcodes) is checked.', 'wp-photo-album-plus');
|
6647 |
+
$slug = 'wppa_clean_pbr';
|
6648 |
+
$html = wppa_checkbox($slug);
|
6649 |
+
$clas = '';
|
6650 |
+
$tags = 'slide,layout,meta';
|
6651 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
6652 |
+
|
6653 |
+
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
6654 |
+
$desc = __('Adds <br> or <p> and <br> tags in fullsize descriptions.', 'wp-photo-album-plus');
|
6655 |
+
$help = '';
|
6656 |
+
$slug = 'wppa_wpautop_on_desc';
|
6657 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
6658 |
+
__('Linebreaks only', 'wp-photo-album-plus'),
|
6659 |
+
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
6660 |
+
);
|
6661 |
+
$vals = array('nil', 'nl2br', 'wpautop');
|
6662 |
+
$html = wppa_select($slug, $opts, $vals);
|
6663 |
+
$clas = '';
|
6664 |
+
$tags = 'slide,layout,meta';
|
6665 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
6666 |
+
|
6667 |
+
$name = __('Auto open comments', 'wp-photo-album-plus');
|
6668 |
+
$desc = __('Automatic opens comments box when slideshow does not run.', 'wp-photo-album-plus');
|
6669 |
+
$help = __('Works also on type="xphoto"', 'wp-photo-album-plus');
|
6670 |
+
$slug = 'wppa_auto_open_comments';
|
6671 |
+
$html = wppa_checkbox($slug);
|
6672 |
+
$clas = '';
|
6673 |
+
$tags = 'slide,comment,layout';
|
6674 |
+
wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
|
6675 |
+
|
6676 |
+
$name = __('Film hover goto', 'wp-photo-album-plus');
|
6677 |
+
$desc = __('Go to slide when hovering filmstrip thumbnail.', 'wp-photo-album-plus');
|
6678 |
+
$help = __('Do not use this setting when slides have different aspect ratios!', 'wp-photo-album-plus');
|
6679 |
+
$slug = 'wppa_film_hover_goto';
|
6680 |
+
$html = wppa_checkbox($slug);
|
6681 |
+
$clas = '';
|
6682 |
+
$tags = 'slide,layout';
|
6683 |
+
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
6684 |
+
|
6685 |
+
$name = __('Slide swipe', 'wp-photo-album-plus');
|
6686 |
+
$desc = __('Enable touch events swipe left-right on slides on touch screens.', 'wp-photo-album-plus');
|
6687 |
+
$help = '';
|
6688 |
+
$slug = 'wppa_slide_swipe';
|
6689 |
+
$html = wppa_checkbox($slug);
|
6690 |
+
$clas = '';
|
6691 |
+
$tags = 'slide,system';
|
6692 |
+
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
6693 |
+
|
6694 |
+
$name = __('Filmonly continu', 'wp-photo-album-plus');
|
6695 |
+
$desc = __('The filmstrip will move almost continously', 'wp-photo-album-plus');
|
6696 |
+
$help = '';
|
6697 |
+
$slug = 'wppa_filmonly_continuous';
|
6698 |
+
$html = wppa_checkbox($slug);
|
6699 |
+
$clas = '';
|
6700 |
+
$tags = 'slide,system';
|
6701 |
+
wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
|
6702 |
+
|
6703 |
+
$name = __('Filmonly random', 'wp-photo-album-plus');
|
6704 |
+
$desc = __('Set sequence in filmonly to random');
|
6705 |
+
$help = __('Every pageload the sequence will be different', 'wp-photo-album-plus');
|
6706 |
+
$slug = 'wppa_filmonly_random';
|
6707 |
+
$html = wppa_checkbox($slug);
|
6708 |
+
$clas = '';
|
6709 |
+
$tags = 'slide,system';
|
6710 |
+
wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
|
6711 |
+
|
6712 |
+
$name = __('No animate on mobile', 'wp-photo-album-plus');
|
6713 |
+
$desc = __('Suppress slideshow animations on mobile devices.', 'wp-photo-album-plus');
|
6714 |
+
$help = '';
|
6715 |
+
$slug = 'wppa_no_animate_on_mobile';
|
6716 |
+
$html = wppa_checkbox($slug);
|
6717 |
+
$clas = '';
|
6718 |
+
$tags = 'slide,system';
|
6719 |
+
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
6720 |
+
|
6721 |
+
}
|
6722 |
+
wppa_setting_subheader( 'C', '1', __( 'Thumbnail related settings' , 'wp-photo-album-plus') );
|
6723 |
+
{
|
6724 |
+
$name = __('Photo order', 'wp-photo-album-plus');
|
6725 |
+
$desc = __('Photo ordering sequence method.', 'wp-photo-album-plus');
|
6726 |
+
$help = (__('Specify the way the photos should be ordered. This is the default setting. You can overrule the default sorting order on a per album basis.', 'wp-photo-album-plus'));
|
6727 |
+
$slug = 'wppa_list_photos_by';
|
6728 |
+
$options = array( __('--- none ---', 'wp-photo-album-plus'),
|
6729 |
+
__('Order #', 'wp-photo-album-plus'),
|
6730 |
+
__('Name', 'wp-photo-album-plus'),
|
6731 |
+
__('Random', 'wp-photo-album-plus'),
|
6732 |
+
__('Rating mean value', 'wp-photo-album-plus'),
|
6733 |
+
__('Number of votes', 'wp-photo-album-plus'),
|
6734 |
+
__('Timestamp', 'wp-photo-album-plus'),
|
6735 |
+
__('EXIF Date', 'wp-photo-album-plus'),
|
6736 |
+
__('Order # desc', 'wp-photo-album-plus'),
|
6737 |
+
__('Name desc', 'wp-photo-album-plus'),
|
6738 |
+
__('Rating mean value desc', 'wp-photo-album-plus'),
|
6739 |
+
__('Number of votes desc', 'wp-photo-album-plus'),
|
6740 |
+
__('Timestamp desc', 'wp-photo-album-plus'),
|
6741 |
+
__('EXIF Date desc', 'wp-photo-album-plus')
|
6742 |
+
);
|
6743 |
+
$values = array( '0',
|
6744 |
+
'1',
|
6745 |
+
'2',
|
6746 |
+
'3',
|
6747 |
+
'4',
|
6748 |
+
'6',
|
6749 |
+
'5',
|
6750 |
+
'7',
|
6751 |
+
'-1',
|
6752 |
+
'-2',
|
6753 |
+
'-4',
|
6754 |
+
'-6',
|
6755 |
+
'-5',
|
6756 |
+
'-7'
|
6757 |
+
);
|
6758 |
+
$html = wppa_select($slug, $options, $values);
|
6759 |
+
$clas = '';
|
6760 |
+
$tags = 'thumb,system';
|
6761 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
6762 |
+
|
6763 |
+
$name = __('Thumbnail type', 'wp-photo-album-plus');
|
6764 |
+
$desc = __('The way the thumbnail images are displayed.', 'wp-photo-album-plus');
|
6765 |
+
$help = (__('You may select an altenative display method for thumbnails. Note that some of the thumbnail settings do not apply to all available display methods.', 'wp-photo-album-plus'));
|
6766 |
+
$slug = 'wppa_thumbtype';
|
6767 |
+
$options = array( __('--- default ---', 'wp-photo-album-plus'),
|
6768 |
+
__('like album covers', 'wp-photo-album-plus'),
|
6769 |
+
__('like album covers mcr', 'wp-photo-album-plus'),
|
6770 |
+
__('masonry style columns', 'wp-photo-album-plus'),
|
6771 |
+
__('masonry style rows', 'wp-photo-album-plus'),
|
6772 |
+
__('masonry style plus', 'wp-photo-album-plus'),
|
6773 |
+
__('masonry style mixed', 'wp-photo-album-plus'),
|
6774 |
+
);
|
6775 |
+
$values = array('default',
|
6776 |
+
'ascovers',
|
6777 |
+
'ascovers-mcr',
|
6778 |
+
'masonry-v',
|
6779 |
+
'masonry-h',
|
6780 |
+
'masonry-plus',
|
6781 |
+
'masonry-mix',
|
6782 |
+
);
|
6783 |
+
$onchange = 'wppaCheckThumbType()';
|
6784 |
+
$html = wppa_select($slug, $options, $values, $onchange);
|
6785 |
+
$clas = '';
|
6786 |
+
$tags = 'thumb,layout';
|
6787 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
6788 |
+
|
6789 |
+
$name = __('Placement', 'wp-photo-album-plus');
|
6790 |
+
$desc = __('Thumbnail image left or right.', 'wp-photo-album-plus');
|
6791 |
+
$help = (__('Indicate the placement position of the thumbnailphoto you wish.', 'wp-photo-album-plus'));
|
6792 |
+
$slug = 'wppa_thumbphoto_left';
|
6793 |
+
$options = array(__('Left', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'));
|
6794 |
+
$values = array('yes', 'no');
|
6795 |
+
$html = wppa_select($slug, $options, $values);
|
6796 |
+
$clas = 'tt_ascovers';
|
6797 |
+
$tags = 'thumb,layout';
|
6798 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
6799 |
+
|
6800 |
+
$name = __('Vertical alignment', 'wp-photo-album-plus');
|
6801 |
+
$desc = __('Vertical alignment of thumbnails.', 'wp-photo-album-plus');
|
6802 |
+
$help = (__('Specify the vertical alignment of thumbnail images. Use this setting when albums contain both portrait and landscape photos.', 'wp-photo-album-plus'));
|
6803 |
+
$help .= '<br />'.(__('It is NOT recommended to use the value --- default ---; it will affect the horizontal alignment also and is meant to be used with custom css.', 'wp-photo-album-plus'));
|
6804 |
+
$slug = 'wppa_valign';
|
6805 |
+
$options = array( __('--- default ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'));
|
6806 |
+
$values = array('default', 'top', 'center', 'bottom');
|
6807 |
+
$html = wppa_select($slug, $options, $values);
|
6808 |
+
$clas = 'tt_normal';
|
6809 |
+
$tags = 'thumb,layout';
|
6810 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
6811 |
+
|
6812 |
+
$name = __('Thumb mouseover', 'wp-photo-album-plus');
|
6813 |
+
$desc = __('Apply thumbnail mouseover effect.', 'wp-photo-album-plus');
|
6814 |
+
$help = (__('Check this box to use mouseover effect on thumbnail images.', 'wp-photo-album-plus'));
|
6815 |
+
$slug = 'wppa_use_thumb_opacity';
|
6816 |
+
$onchange = 'wppaCheckUseThumbOpacity()';
|
6817 |
+
$html = wppa_checkbox($slug, $onchange);
|
6818 |
+
$clas = 'tt_normal tt_masonry';
|
6819 |
+
$tags = 'thumb';
|
6820 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
6821 |
+
|
6822 |
+
$name = __('Thumb opacity', 'wp-photo-album-plus');
|
6823 |
+
$desc = __('Initial opacity value.', 'wp-photo-album-plus');
|
6824 |
+
$help = (__('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus'));
|
6825 |
+
$slug = 'wppa_thumb_opacity';
|
6826 |
+
$html = '<span class="thumb_opacity_html">'.wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus')).'</span>';
|
6827 |
+
$clas = 'tt_normal tt_masonry';
|
6828 |
+
$tags = 'thumb';
|
6829 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
6830 |
+
|
6831 |
+
$name = __('Thumb popup', 'wp-photo-album-plus');
|
6832 |
+
$desc = __('Use popup effect on thumbnail images.', 'wp-photo-album-plus');
|
6833 |
+
$help = (__('Thumbnails pop-up to a larger image when hovered.', 'wp-photo-album-plus'));
|
6834 |
+
$slug = 'wppa_use_thumb_popup';
|
6835 |
+
$onchange = 'wppaCheckPopup()';
|
6836 |
+
$html = wppa_checkbox($slug, $onchange) . wppa_htmlerr('popup-lightbox');
|
6837 |
+
$clas = 'tt_normal tt_masonry';
|
6838 |
+
$tags = 'thumb';
|
6839 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
6840 |
+
|
6841 |
+
$name = __('Align subtext', 'wp-photo-album-plus');
|
6842 |
+
$desc = __('Set thumbnail subtext on equal height.', 'wp-photo-album-plus');
|
6843 |
+
$help = '';
|
6844 |
+
$slug = 'wppa_align_thumbtext';
|
6845 |
+
$html = wppa_checkbox($slug);
|
6846 |
+
$clas = 'tt_normal';
|
6847 |
+
$tags = 'thumb,layout';
|
6848 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
6849 |
+
|
6850 |
+
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
6851 |
+
$desc = __('Adds <br> or <p> and <br> tags in thumbnail descriptions.', 'wp-photo-album-plus');
|
6852 |
+
$help = '';
|
6853 |
+
$slug = 'wppa_wpautop_on_thumb_desc';
|
6854 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
6855 |
+
__('Linebreaks only', 'wp-photo-album-plus'),
|
6856 |
+
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
6857 |
+
);
|
6858 |
+
$vals = array('nil', 'nl2br', 'wpautop');
|
6859 |
+
$html = wppa_select($slug, $opts, $vals);
|
6860 |
+
$clas = '';
|
6861 |
+
$tags = 'thumb,layout';
|
6862 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
6863 |
+
|
6864 |
+
}
|
6865 |
+
wppa_setting_subheader( 'D', '1', __( 'Album and covers related settings' , 'wp-photo-album-plus') );
|
6866 |
+
{
|
6867 |
+
$name = __('Album order', 'wp-photo-album-plus');
|
6868 |
+
$desc = __('Album ordering sequence method.', 'wp-photo-album-plus');
|
6869 |
+
$help = (__('Specify the way the albums should be ordered.', 'wp-photo-album-plus'));
|
6870 |
+
$slug = 'wppa_list_albums_by';
|
6871 |
+
$options = array( __('--- none ---', 'wp-photo-album-plus'),
|
6872 |
+
__('Order #', 'wp-photo-album-plus'),
|
6873 |
+
__('Name', 'wp-photo-album-plus'),
|
6874 |
+
__('Random', 'wp-photo-album-plus'),
|
6875 |
+
__('Timestamp', 'wp-photo-album-plus'),
|
6876 |
+
__('Order # desc', 'wp-photo-album-plus'),
|
6877 |
+
__('Name desc', 'wp-photo-album-plus'),
|
6878 |
+
__('Timestamp desc', 'wp-photo-album-plus'),
|
6879 |
+
);
|
6880 |
+
$values = array( '0',
|
6881 |
+
'1',
|
6882 |
+
'2',
|
6883 |
+
'3',
|
6884 |
+
'5',
|
6885 |
+
'-1',
|
6886 |
+
'-2',
|
6887 |
+
'-5'
|
6888 |
+
);
|
6889 |
+
$html = wppa_select($slug, $options, $values);
|
6890 |
+
$clas = '';
|
6891 |
+
$tags = 'album,system';
|
6892 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
6893 |
+
|
6894 |
+
$name = __('Default coverphoto selection', 'wp-photo-album-plus');
|
6895 |
+
$desc = __('Default select cover photo method.', 'wp-photo-album-plus');
|
6896 |
+
$help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus');
|
6897 |
+
$help .= '<br />' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus');
|
6898 |
+
$opts = array( __('--- random ---', 'wp-photo-album-plus'),
|
6899 |
+
__('--- random featured ---', 'wp-photo-album-plus'),
|
6900 |
+
__('--- most recent added ---', 'wp-photo-album-plus'),
|
6901 |
+
__('--- random from (grand)children ---', 'wp-photo-album-plus'),
|
6902 |
+
__('--- most recent from (grand)children ---', 'wp-photo-album-plus'),
|
6903 |
+
__('--- according to albums photo sequence ---', 'wp-photo-album-plus'),
|
6904 |
+
);
|
6905 |
+
$vals = array('-9', '-1', '-2', '-3', '-4', '-5');
|
6906 |
+
$slug = 'wppa_main_photo';
|
6907 |
+
$html = wppa_select($slug, $opts, $vals);
|
6908 |
+
$clas = '';
|
6909 |
+
$tags = 'album,cover';
|
6910 |
+
wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
|
6911 |
+
|
6912 |
+
$name = __('Placement', 'wp-photo-album-plus');
|
6913 |
+
$desc = __('Cover image position.', 'wp-photo-album-plus');
|
6914 |
+
$help = (__('Enter the position that you want to be used for the default album cover selected in Table IV-D6.', 'wp-photo-album-plus'));
|
6915 |
+
$help .= '<br />'.(__('For covertype Image Factory: left will be treated as top and right will be treted as bottom.', 'wp-photo-album-plus'));
|
6916 |
+
$help .= '<br />'.(__('For covertype Long Descriptions: top will be treated as left and bottom will be treted as right.', 'wp-photo-album-plus'));
|
6917 |
+
$slug = 'wppa_coverphoto_pos';
|
6918 |
+
$options = array(__('Left', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'), __('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'));
|
6919 |
+
$values = array('left', 'right', 'top', 'bottom');
|
6920 |
+
$onchange = 'wppaCheckCoverType()';
|
6921 |
+
$html = wppa_select($slug, $options, $values, $onchange);
|
6922 |
+
$clas = '';
|
6923 |
+
$tags = 'album,cover,layout';
|
6924 |
+
wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
|
6925 |
+
|
6926 |
+
$name = __('Cover mouseover', 'wp-photo-album-plus');
|
6927 |
+
$desc = __('Apply coverphoto mouseover effect.', 'wp-photo-album-plus');
|
6928 |
+
$help = (__('Check this box to use mouseover effect on cover images.', 'wp-photo-album-plus'));
|
6929 |
+
$slug = 'wppa_use_cover_opacity';
|
6930 |
+
$onchange = 'wppaCheckUseCoverOpacity()';
|
6931 |
+
$html = wppa_checkbox($slug, $onchange);
|
6932 |
+
$clas = '';
|
6933 |
+
$tags = 'cover,thumb';
|
6934 |
+
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
6935 |
+
|
6936 |
+
$name = __('Cover opacity', 'wp-photo-album-plus');
|
6937 |
+
$desc = __('Initial opacity value.', 'wp-photo-album-plus');
|
6938 |
+
$help = (__('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus'));
|
6939 |
+
$slug = 'wppa_cover_opacity';
|
6940 |
+
$html = '<span class="cover_opacity_html">'.wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus')).'</span>';
|
6941 |
+
$clas = '';
|
6942 |
+
$tags = 'cover,thumb';
|
6943 |
+
wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
|
6944 |
+
|
6945 |
+
$name = __('Cover type', 'wp-photo-album-plus');
|
6946 |
+
$desc = __('Select the default cover type.', 'wp-photo-album-plus');
|
6947 |
+
$help = __('Types with the addition mcr are suitable for Multi Column in a Responsive theme', 'wp-photo-album-plus');
|
6948 |
+
$help .= '<br />'.__("Type 'Grid with images only' is always responsive and requires a fixed aspect ratio selected for thumbnails in Table I-C2", 'wp-photo-album-plus');
|
6949 |
+
$slug = 'wppa_cover_type';
|
6950 |
+
$options = array( __('Standard', 'wp-photo-album-plus'),
|
6951 |
+
__('Long Descriptions', 'wp-photo-album-plus'),
|
6952 |
+
__('Image Factory', 'wp-photo-album-plus'),
|
6953 |
+
__('Standard mcr', 'wp-photo-album-plus'),
|
6954 |
+
__('Long Descriptions mcr', 'wp-photo-album-plus'),
|
6955 |
+
__('Image Factory mcr', 'wp-photo-album-plus'),
|
6956 |
+
__('Grid with images only', 'wp-photo-album-plus'),
|
6957 |
+
);
|
6958 |
+
$values = array( 'default',
|
6959 |
+
'longdesc',
|
6960 |
+
'imagefactory',
|
6961 |
+
'default-mcr',
|
6962 |
+
'longdesc-mcr',
|
6963 |
+
'imagefactory-mcr',
|
6964 |
+
'grid',
|
6965 |
+
);
|
6966 |
+
$onchange = 'wppaCheckCoverType()';
|
6967 |
+
$html = wppa_select($slug, $options, $values, $onchange);
|
6968 |
+
$clas = '';
|
6969 |
+
$tags = 'cover,layout';
|
6970 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
6971 |
+
|
6972 |
+
$name = __('Number of coverphotos', 'wp-photo-album-plus');
|
6973 |
+
$desc = __('The umber of coverphotos. Must be > 1 and < 25.', 'wp-photo-album-plus');
|
6974 |
+
$help = '';
|
6975 |
+
$slug = 'wppa_imgfact_count';
|
6976 |
+
$html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus'));
|
6977 |
+
$clas = 'wppa_imgfact_';
|
6978 |
+
$tags = 'cover,layout';
|
6979 |
+
wppa_setting($slug, '6.1', $name, $desc, $html, $help, $clas, $tags);
|
6980 |
+
|
6981 |
+
$name = __('Cats include subs', 'wp-photo-album-plus');
|
6982 |
+
$desc = __('Child albums are included in Category based shortcodes.', 'wp-photo-album-plus');
|
6983 |
+
$help = (__('When you use album="#cat,...", in a shortcode, the child albums will be included.', 'wp-photo-album-plus'));
|
6984 |
+
$slug = 'wppa_cats_inherit';
|
6985 |
+
$html = wppa_checkbox($slug);
|
6986 |
+
$clas = '';
|
6987 |
+
$tags = 'album,cover,meta';
|
6988 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
6989 |
+
|
6990 |
+
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
6991 |
+
$desc = __('Adds <br> or <p> and <br> tags in album descriptions.', 'wp-photo-album-plus');
|
6992 |
+
$help = '';
|
6993 |
+
$slug = 'wppa_wpautop_on_album_desc';
|
6994 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
6995 |
+
__('Linebreaks only', 'wp-photo-album-plus'),
|
6996 |
+
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
6997 |
+
);
|
6998 |
+
$vals = array('nil', 'nl2br', 'wpautop');
|
6999 |
+
$html = wppa_select($slug, $opts, $vals);
|
7000 |
+
$clas = '';
|
7001 |
+
$tags = 'slide,layout,meta';
|
7002 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
7003 |
+
|
7004 |
+
$name = __('Use thumb on cover', 'wp-photo-album-plus');
|
7005 |
+
$desc = __('Always use thumbnail file for cover image', 'wp-photo-album-plus');
|
7006 |
+
$help = __('If you crop thumbnails for cover images, and you have a CDN, tick this box', 'wp-photo-album-plus');
|
7007 |
+
$slug = 'wppa_cover_use_thumb';
|
7008 |
+
$html = wppa_checkbox($slug);
|
7009 |
+
$clas = '';
|
7010 |
+
$tags = 'album,cover,layout';
|
7011 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
7012 |
+
|
7013 |
+
}
|
7014 |
+
wppa_setting_subheader( 'G', '1', __( 'Lightbox related settings. These settings have effect only when Table IX-J3 is set to wppa' , 'wp-photo-album-plus') );
|
7015 |
+
{
|
7016 |
+
$name = __('Overlay opacity', 'wp-photo-album-plus');
|
7017 |
+
$desc = __('The opacity of the lightbox overlay background.', 'wp-photo-album-plus');
|
7018 |
+
$help = '';
|
7019 |
+
$slug = 'wppa_ovl_opacity';
|
7020 |
+
$html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
|
7021 |
+
$clas = '';
|
7022 |
+
$tags = 'lightbox';
|
7023 |
+
wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
|
7024 |
+
|
7025 |
+
$name = __('Click on background', 'wp-photo-album-plus');
|
7026 |
+
$desc = __('Select the action to be taken on click on background.', 'wp-photo-album-plus');
|
7027 |
+
$help = '';
|
7028 |
+
$slug = 'wppa_ovl_onclick';
|
7029 |
+
$options = array(__('Nothing', 'wp-photo-album-plus'), __('Exit (close)', 'wp-photo-album-plus'), __('Browse (left/right)', 'wp-photo-album-plus'));
|
7030 |
+
$values = array('none', 'close', 'browse');
|
7031 |
+
$html = wppa_select($slug, $options, $values);
|
7032 |
+
$clas = '';
|
7033 |
+
$tags = 'lightbox';
|
7034 |
+
wppa_setting($slug, '2.1', $name, $desc, $html, $help, $clas, $tags);
|
7035 |
+
|
7036 |
+
$name = __('Click on image', 'wp-photo-album-plus');
|
7037 |
+
$desc = __('Clicking the image (left or right half) will browse the images', 'wp-photo-album-plus');
|
7038 |
+
$help = '';
|
7039 |
+
$slug = 'wppa_ovl_browse_on_click';
|
7040 |
+
$html = wppa_checkbox($slug);
|
7041 |
+
$clas = '';
|
7042 |
+
$tags = 'lightbox';
|
7043 |
+
wppa_setting($slug, '2.2', $name, $desc, $html, $help, $clas, $tags);
|
7044 |
+
|
7045 |
+
$name = __('Overlay animation speed', 'wp-photo-album-plus');
|
7046 |
+
$desc = __('The fade-in time of the lightbox images', 'wp-photo-album-plus');
|
7047 |
+
$help = '';
|
7048 |
+
$slug = 'wppa_ovl_anim';
|
7049 |
+
$options = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '300 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.');
|
7050 |
+
$values = array('10', '200', '300', '400', '800', '1200', '2000', '4000');
|
7051 |
+
$html = wppa_select($slug, $options, $values);
|
7052 |
+
$clas = '';
|
7053 |
+
$tags = 'lightbox';
|
7054 |
+
wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
|
7055 |
+
|
7056 |
+
$name = __('Overlay slideshow speed', 'wp-photo-album-plus');
|
7057 |
+
$desc = __('The time the lightbox images stay', 'wp-photo-album-plus');
|
7058 |
+
$help = '';
|
7059 |
+
$slug = 'wppa_ovl_slide';
|
7060 |
+
$options = 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.' );
|
7061 |
+
$values = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
|
7062 |
+
$html = wppa_select($slug, $options, $values);
|
7063 |
+
$clas = '';
|
7064 |
+
$tags = 'lightbox';
|
7065 |
+
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
7066 |
+
|
7067 |
+
|
7068 |
+
$name = __('Use hires files', 'wp-photo-album-plus');
|
7069 |
+
$desc = __('Use the highest resolution available for lightbox.', 'wp-photo-album-plus');
|
7070 |
+
$help = (__('Ticking this box is recommended for lightbox fullscreen modes.', 'wp-photo-album-plus'));
|
7071 |
+
$slug = 'wppa_lb_hres';
|
7072 |
+
$html = wppa_checkbox($slug);
|
7073 |
+
$clas = '';
|
7074 |
+
$tags = 'lightbox';
|
7075 |
+
wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
|
7076 |
+
|
7077 |
+
$name = __('Video autostart', 'wp-photo-album-plus');
|
7078 |
+
$desc = __('Videos on lightbox start automatically.', 'wp-photo-album-plus');
|
7079 |
+
$help = '';
|
7080 |
+
$slug = 'wppa_ovl_video_start';
|
7081 |
+
$html = wppa_checkbox($slug);
|
7082 |
+
$clas = '';
|
7083 |
+
$tags = 'lightbox,video';
|
7084 |
+
wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
|
7085 |
+
|
7086 |
+
$name = __('Audio autostart', 'wp-photo-album-plus');
|
7087 |
+
$desc = __('Audio on lightbox start automatically.', 'wp-photo-album-plus');
|
7088 |
+
$help = '';
|
7089 |
+
$slug = 'wppa_ovl_audio_start';
|
7090 |
+
$html = wppa_checkbox($slug);
|
7091 |
+
$clas = '';
|
7092 |
+
$tags = 'lightbox,audio';
|
7093 |
+
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
7094 |
+
/*
|
7095 |
+
$name = __('Lightbox start mode', 'wp-photo-album-plus');
|
7096 |
+
$desc = __('The mode lightbox starts in.', 'wp-photo-album-plus');
|
7097 |
+
$help = '';
|
7098 |
+
$slug = 'wppa_ovl_mode_initial';
|
7099 |
+
$opts = array( __('Normal', 'wp-photo-album-plus'),
|
7100 |
+
__('Fullscreen', 'wp-photo-album-plus'),
|
7101 |
+
);
|
7102 |
+
$vals = array( 'normal',
|
7103 |
+
'padded',
|
7104 |
+
);
|
7105 |
+
$html = wppa_select($slug,$opts,$vals);
|
7106 |
+
$clas = '';
|
7107 |
+
$tags = 'lightbox,layout';
|
7108 |
+
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
7109 |
+
|
7110 |
+
$name = __('Lightbox start mode mobile', 'wp-photo-album-plus');
|
7111 |
+
$desc = __('The mode lightbox starts in on mobile devices.', 'wp-photo-album-plus');
|
7112 |
+
$help = '';
|
7113 |
+
$slug = 'wppa_ovl_mode_initial_mob';
|
7114 |
+
$opts = array( __('Normal', 'wp-photo-album-plus'),
|
7115 |
+
__('Fullscreen', 'wp-photo-album-plus'),
|
7116 |
+
);
|
7117 |
+
$vals = array( 'normal',
|
7118 |
+
'padded',
|
7119 |
+
);
|
7120 |
+
$html = wppa_select($slug,$opts,$vals);
|
7121 |
+
$clas = '';
|
7122 |
+
$tags = 'lightbox,layout';
|
7123 |
+
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
7124 |
+
*/
|
7125 |
+
}
|
7126 |
Â
|
7127 |
+
if ( wppa_switch( 'enable_panorama' ) ) {
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
7128 |
Â
|
7129 |
+
wppa_setting_subheader( 'H', '1', __( 'Panorama related settings. These settings have effect only when Table IV-A24.2 is ticked' , 'wp-photo-album-plus') );
|
7130 |
+
|
7131 |
+
$name = __( 'Control bar', 'wp-photo-album-plus' );
|
7132 |
+
$desc = __( 'Select when the control bar must be displayed', 'wp-photo-album-plus' );
|
7133 |
+
$help = '';
|
7134 |
+
$slug = 'wppa_panorama_control';
|
7135 |
+
$opts = array( __( 'Always', 'wp-photo-album-plus' ),
|
7136 |
+
__( 'On mobile only', 'wp-photo-album-plus' ),
|
7137 |
+
__( 'None', 'wp-photo-album-plus' ),
|
7138 |
+
);
|
7139 |
+
$vals = array( 'all',
|
7140 |
+
'mobile',
|
7141 |
+
'none',
|
7142 |
+
);
|
7143 |
+
$html = wppa_select($slug, $opts, $vals);
|
7144 |
+
$clas = '';
|
7145 |
+
$tags = '';
|
7146 |
+
wppa_setting( $slug, '1', $name, $desc, $html, $help, $clas, $tags );
|
7147 |
+
|
7148 |
+
$name = __( 'Manual movement', 'wp-photo-album-plus' );
|
7149 |
+
$desc = __( 'Select if movement by drag and drop is allowed', 'wp-photo-album-plus' );
|
7150 |
+
$help = '';
|
7151 |
+
$slug = 'wppa_panorama_manual';
|
7152 |
+
$opts = array( __( 'Yes', 'wp-photo-album-plus' ),
|
7153 |
+
__( 'No', 'wp-photo-album-plus' ),
|
7154 |
+
);
|
7155 |
+
$vals = array( 'all',
|
7156 |
+
'none',
|
7157 |
+
);
|
7158 |
+
$html = wppa_select($slug, $opts, $vals);
|
7159 |
+
$clas = '';
|
7160 |
+
$tags = '';
|
7161 |
+
wppa_setting( $slug, '2', $name, $desc, $html, $help, $clas, $tags );
|
7162 |
+
|
7163 |
+
$name = __( 'Auto panning', 'wp-photo-album-plus' );
|
7164 |
+
$desc = __( 'Start the display panning', 'wp-photo-album-plus' );
|
7165 |
+
$help = '';
|
7166 |
+
$slug = 'wppa_panorama_autorun';
|
7167 |
+
$opts = array( __( 'no', 'wp-photo-album-plus' ),
|
7168 |
+
__( 'left', 'wp-photo-album-plus' ),
|
7169 |
+
__( 'right', 'wp-photo-album-plus' ),
|
7170 |
+
);
|
7171 |
+
$vals = array( 'none',
|
7172 |
+
'left',
|
7173 |
+
'right',
|
7174 |
+
);
|
7175 |
+
$html = wppa_select($slug, $opts, $vals);
|
7176 |
+
$clas = '';
|
7177 |
+
$tags = '';
|
7178 |
+
wppa_setting( $slug, '3', $name, $desc, $html, $help, $clas, $tags );
|
7179 |
+
|
7180 |
+
$name = __( 'Auto panning speed', 'wp-photo-album-plus' );
|
7181 |
+
$desc = __( 'The speed of the auto panning movement', 'wp-photo-album-plus' );
|
7182 |
+
$help = '';
|
7183 |
+
$slug = 'wppa_panorama_autorun_speed';
|
7184 |
+
$opts = array( __( 'very slow', 'wp-photo-album-plus' ),
|
7185 |
+
__( 'slow', 'wp-photo-album-plus' ),
|
7186 |
+
__( 'normal', 'wp-photo-album-plus' ),
|
7187 |
+
__( 'fast', 'wp-photo-album-plus' ),
|
7188 |
+
__( 'very fast', 'wp-photo-album-plus' ),
|
7189 |
+
);
|
7190 |
+
$vals = array( '1', '2', '3', '5', '8' );
|
7191 |
+
$html = wppa_select($slug, $opts, $vals);
|
7192 |
+
$clas = '';
|
7193 |
+
$tags = '';
|
7194 |
+
wppa_setting( $slug, '3.1', $name, $desc, $html, $help, $clas, $tags );
|
7195 |
+
|
7196 |
+
$name = __( 'Zoom sensitivity', 'wp-photo-album-plus' );
|
7197 |
+
$desc = __( 'The speed of zooming by mouse wheel', 'wp-photo-album-plus' );
|
7198 |
+
$help = '';
|
7199 |
+
$slug = 'wppa_panorama_wheel_sensitivity';
|
7200 |
+
$opts = array( __( 'very low', 'wp-photo-album-plus' ),
|
7201 |
+
__( 'low', 'wp-photo-album-plus' ),
|
7202 |
+
__( 'normal', 'wp-photo-album-plus' ),
|
7203 |
+
__( 'high', 'wp-photo-album-plus' ),
|
7204 |
+
__( 'very high', 'wp-photo-album-plus' ),
|
7205 |
+
);
|
7206 |
+
$vals = array( '1', '2', '3', '5', '8' );
|
7207 |
+
$html = wppa_select($slug, $opts, $vals);
|
7208 |
+
$clas = '';
|
7209 |
+
$tags = '';
|
7210 |
+
wppa_setting( $slug, '3.2', $name, $desc, $html, $help, $clas, $tags );
|
7211 |
+
|
7212 |
+
$name = __( 'Initial zoom spheric panorama', 'wp-photo-album-plus' );
|
7213 |
+
$desc = __( 'Select initial viewing angle for spheric panoramas', 'wp-photo-album-plus' );
|
7214 |
+
$help = '';
|
7215 |
+
$slug = 'wppa_panorama_fov';
|
7216 |
+
$opts = array( '45°', '50°', '55°', '60°', '65°', '70°', '75°', '80°', '85°', '90°' );
|
7217 |
+
$vals = array( '45', '50', '55', '60', '65', '70', '75', '80', '85', '90' );
|
7218 |
+
$html = wppa_select($slug, $opts, $vals);
|
7219 |
+
$clas = '';
|
7220 |
+
$tags = '';
|
7221 |
+
wppa_setting( $slug, '4', $name, $desc, $html, $help, $clas, $tags );
|
7222 |
+
|
7223 |
+
$name = __( 'Panorama max width spheric', 'wp-photo-album-plus' );
|
7224 |
+
$desc = __( 'The max size when a spheric panorama is converted to 360°', 'wp-photo-album-plus' );
|
7225 |
+
$help = '';
|
7226 |
+
$slug = 'wppa_panorama_max';
|
7227 |
+
$opts = array( '4000', '5000', '6000', '8000', '10000' );
|
7228 |
+
$vals = $opts;
|
7229 |
+
$html = wppa_select($slug, $opts, $vals);
|
7230 |
+
$clas = '';
|
7231 |
+
$tags = '';
|
7232 |
+
wppa_setting( $slug, '5', $name, $desc, $html, $help, $clas, $tags );
|
7233 |
Â
}
|
7234 |
+
?>
|
7235 |
+
</tbody>
|
7236 |
+
<tfoot style="font-weight: bold;" class="wppa_table_4">
|
7237 |
+
<tr>
|
7238 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
7239 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
7240 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
7241 |
+
<td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
|
7242 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
7243 |
+
</tr>
|
7244 |
+
</tfoot>
|
7245 |
+
</table>
|
7246 |
+
</div>
|
7247 |
Â
|
7248 |
+
<?php // Table 5: Fonts ?>
|
7249 |
+
<?php wppa_settings_box_header(
|
7250 |
+
'5',
|
7251 |
+
__('Table V:', 'wp-photo-album-plus').' '.__('Fonts:', 'wp-photo-album-plus').' '.
|
7252 |
+
__('This table describes the Fonts used for the wppa+ elements.', 'wp-photo-album-plus')
|
7253 |
+
); ?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
7254 |
Â
|
7255 |
+
<div id="wppa_table_5" style="display:none" >
|
7256 |
+
<table class="widefat wppa-table wppa-setting-table">
|
7257 |
+
<thead style="font-weight: bold; " class="wppa_table_5">
|
7258 |
+
<tr>
|
7259 |
+
<td scope="col" ><?php _e('#', 'wp-photo-album-plus') ?></td>
|
7260 |
+
<td scope="col" ><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
7261 |
+
<td scope="col" ><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
7262 |
+
<td scope="col" ><?php _e('Font family', 'wp-photo-album-plus') ?></td>
|
7263 |
+
<td scope="col" ><?php _e('Font size', 'wp-photo-album-plus') ?></td>
|
7264 |
+
<td scope="col" ><?php _e('Font color', 'wp-photo-album-plus') ?></td>
|
7265 |
+
<td scope="col" ><?php _e('Font weight', 'wp-photo-album-plus') ?></td>
|
7266 |
+
<td scope="col" ><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
7267 |
+
</tr>
|
7268 |
+
</thead>
|
7269 |
+
<tbody class="wppa_table_5">
|
7270 |
+
<?php
|
7271 |
+
$wppa_table = 'V';
|
7272 |
+
|
7273 |
+
$wppa_subtable = 'Z'; // No subtables
|
7274 |
+
|
7275 |
+
$options = array(__('normal', 'wp-photo-album-plus'), __('bold', 'wp-photo-album-plus'), __('bolder', 'wp-photo-album-plus'), __('lighter', 'wp-photo-album-plus'), '100', '200', '300', '400', '500', '600', '700', '800', '900');
|
7276 |
+
$values = array('normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900');
|
7277 |
+
|
7278 |
+
$name = __('Album titles', 'wp-photo-album-plus');
|
7279 |
+
$desc = __('Font used for Album titles.', 'wp-photo-album-plus');
|
7280 |
+
$help = (__('Enter font name, size, color and weight for album cover titles.', 'wp-photo-album-plus'));
|
7281 |
+
$slug1 = 'wppa_fontfamily_title';
|
7282 |
+
$slug2 = 'wppa_fontsize_title';
|
7283 |
+
$slug3 = 'wppa_fontcolor_title';
|
7284 |
+
$slug4 = 'wppa_fontweight_title';
|
7285 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7286 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7287 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7288 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7289 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7290 |
+
$html = array($html1, $html2, $html3, $html4);
|
7291 |
+
$clas = '';
|
7292 |
+
$tags = 'layout,album';
|
7293 |
+
wppa_setting($slug, '1a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7294 |
+
|
7295 |
+
$name = __('Slideshow desc', 'wp-photo-album-plus');
|
7296 |
+
$desc = __('Font for slideshow photo descriptions.', 'wp-photo-album-plus');
|
7297 |
+
$help = (__('Enter font name, size, color and weight for slideshow photo descriptions.', 'wp-photo-album-plus'));
|
7298 |
+
$slug1 = 'wppa_fontfamily_fulldesc';
|
7299 |
+
$slug2 = 'wppa_fontsize_fulldesc';
|
7300 |
+
$slug3 = 'wppa_fontcolor_fulldesc';
|
7301 |
+
$slug4 = 'wppa_fontweight_fulldesc';
|
7302 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7303 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7304 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7305 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7306 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7307 |
+
$html = array($html1, $html2, $html3, $html4);
|
7308 |
+
$clas = '';
|
7309 |
+
$tags = 'layout,slide';
|
7310 |
+
wppa_setting($slug, '2a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7311 |
+
|
7312 |
+
$name = __('Slideshow name', 'wp-photo-album-plus');
|
7313 |
+
$desc = __('Font for slideshow photo names.', 'wp-photo-album-plus');
|
7314 |
+
$help = (__('Enter font name, size, color and weight for slideshow photo names.', 'wp-photo-album-plus'));
|
7315 |
+
$slug1 = 'wppa_fontfamily_fulltitle';
|
7316 |
+
$slug2 = 'wppa_fontsize_fulltitle';
|
7317 |
+
$slug3 = 'wppa_fontcolor_fulltitle';
|
7318 |
+
$slug4 = 'wppa_fontweight_fulltitle';
|
7319 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7320 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7321 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7322 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7323 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7324 |
+
$html = array($html1, $html2, $html3, $html4);
|
7325 |
+
$clas = '';
|
7326 |
+
$tags = 'layout,slide,meta';
|
7327 |
+
wppa_setting($slug, '3a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7328 |
+
|
7329 |
+
$name = __('Navigations', 'wp-photo-album-plus');
|
7330 |
+
$desc = __('Font for navigations.', 'wp-photo-album-plus');
|
7331 |
+
$help = (__('Enter font name, size, color and weight for navigation items.', 'wp-photo-album-plus'));
|
7332 |
+
$slug1 = 'wppa_fontfamily_nav';
|
7333 |
+
$slug2 = 'wppa_fontsize_nav';
|
7334 |
+
$slug3 = 'wppa_fontcolor_nav';
|
7335 |
+
$slug4 = 'wppa_fontweight_nav';
|
7336 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7337 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7338 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7339 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7340 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7341 |
+
$html = array($html1, $html2, $html3, $html4);
|
7342 |
+
$clas = '';
|
7343 |
+
$tags = 'layout,navi';
|
7344 |
+
wppa_setting($slug, '4a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7345 |
+
|
7346 |
+
$name = __('Thumbnails', 'wp-photo-album-plus');
|
7347 |
+
$desc = __('Font for text under thumbnails.', 'wp-photo-album-plus');
|
7348 |
+
$help = (__('Enter font name, size, color and weight for text under thumbnail images.', 'wp-photo-album-plus'));
|
7349 |
+
$slug1 = 'wppa_fontfamily_thumb';
|
7350 |
+
$slug2 = 'wppa_fontsize_thumb';
|
7351 |
+
$slug3 = 'wppa_fontcolor_thumb';
|
7352 |
+
$slug4 = 'wppa_fontweight_thumb';
|
7353 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7354 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7355 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7356 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7357 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7358 |
+
$html = array($html1, $html2, $html3, $html4);
|
7359 |
+
$clas = '';
|
7360 |
+
$tags = 'layout,thumb';
|
7361 |
+
wppa_setting($slug, '5a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7362 |
+
|
7363 |
+
$name = __('Other', 'wp-photo-album-plus');
|
7364 |
+
$desc = __('General font in wppa boxes.', 'wp-photo-album-plus');
|
7365 |
+
$help = (__('Enter font name, size, color and weight for all other items.', 'wp-photo-album-plus'));
|
7366 |
+
$slug1 = 'wppa_fontfamily_box';
|
7367 |
+
$slug2 = 'wppa_fontsize_box';
|
7368 |
+
$slug3 = 'wppa_fontcolor_box';
|
7369 |
+
$slug4 = 'wppa_fontweight_box';
|
7370 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7371 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7372 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7373 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7374 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7375 |
+
$html = array($html1, $html2, $html3, $html4);
|
7376 |
+
$clas = '';
|
7377 |
+
$tags = 'layout';
|
7378 |
+
wppa_setting($slug, '6a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7379 |
+
|
7380 |
+
$name = __('Numbar', 'wp-photo-album-plus');
|
7381 |
+
$desc = __('Font in wppa number bars.', 'wp-photo-album-plus');
|
7382 |
+
$help = (__('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus'));
|
7383 |
+
$slug1 = 'wppa_fontfamily_numbar';
|
7384 |
+
$slug2 = 'wppa_fontsize_numbar';
|
7385 |
+
$slug3 = 'wppa_fontcolor_numbar';
|
7386 |
+
$slug4 = 'wppa_fontweight_numbar';
|
7387 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7388 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7389 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7390 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7391 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7392 |
+
$html = array($html1, $html2, $html3, $html4);
|
7393 |
+
$clas = '';
|
7394 |
+
$tags = 'layout,slide,navi';
|
7395 |
+
wppa_setting($slug, '7a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7396 |
+
|
7397 |
+
$name = __('Numbar Active', 'wp-photo-album-plus');
|
7398 |
+
$desc = __('Font in wppa number bars, active item.', 'wp-photo-album-plus');
|
7399 |
+
$help = (__('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus'));
|
7400 |
+
$slug1 = 'wppa_fontfamily_numbar_active';
|
7401 |
+
$slug2 = 'wppa_fontsize_numbar_active';
|
7402 |
+
$slug3 = 'wppa_fontcolor_numbar_active';
|
7403 |
+
$slug4 = 'wppa_fontweight_numbar_active';
|
7404 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7405 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7406 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7407 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7408 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7409 |
+
$html = array($html1, $html2, $html3, $html4);
|
7410 |
+
$clas = '';
|
7411 |
+
$tags = 'layout,slide,navi';
|
7412 |
+
wppa_setting($slug, '8a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7413 |
+
|
7414 |
+
$name = __('Lightbox', 'wp-photo-album-plus');
|
7415 |
+
$desc = __('Font in wppa lightbox overlays.', 'wp-photo-album-plus');
|
7416 |
+
$help = (__('Enter font name, size, color and weight for wppa lightbox overlays.', 'wp-photo-album-plus'));
|
7417 |
+
$slug1 = 'wppa_fontfamily_lightbox';
|
7418 |
+
$slug2 = 'wppa_fontsize_lightbox';
|
7419 |
+
$slug3 = 'wppa_fontcolor_lightbox';
|
7420 |
+
$slug4 = 'wppa_fontweight_lightbox';
|
7421 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7422 |
+
$html1 = wppa_input($slug1, '90%', '200px', '');
|
7423 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7424 |
+
$html3 = wppa_input($slug3, '70px', '', '');
|
7425 |
+
$html4 = wppa_select($slug4, $options, $values);
|
7426 |
+
$html = array($html1, $html2, $html3, $html4);
|
7427 |
+
$clas = '';
|
7428 |
+
$tags = 'layout,lightbox';
|
7429 |
+
wppa_setting($slug, '9a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7430 |
+
|
7431 |
+
$name = __('Widget thumbs fontsize', 'wp-photo-album-plus');
|
7432 |
+
$desc = __('Font size for thumbnail subtext in widgets.', 'wp-photo-album-plus');
|
7433 |
+
$help = '';
|
7434 |
+
$slug1 = '';
|
7435 |
+
$slug2 = 'wppa_fontsize_widget_thumb';
|
7436 |
+
$slug3 = '';
|
7437 |
+
$slug4 = '';
|
7438 |
+
$slug = $slug2;
|
7439 |
+
$html1 = '';
|
7440 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7441 |
+
$html3 = '';
|
7442 |
+
$html4 = '';
|
7443 |
+
$html = '</td><td>' . $html2 . '</td><td></td><td>';
|
7444 |
+
$clas = '';
|
7445 |
+
$tags = 'thumb,widget,size,layout';
|
7446 |
+
wppa_setting($slug, '10b', $name, $desc, $html, $help, $clas, $tags);
|
7447 |
+
|
7448 |
+
$name = __('Calendar fontsize', 'wp-photo-album-plus');
|
7449 |
+
$desc = __('Old style calendar fontstyle', 'wp-photo-album-plus');
|
7450 |
+
$help = '';
|
7451 |
+
$slug1 = '';
|
7452 |
+
$slug2 = 'wppa_font_calendar_by';
|
7453 |
+
$slug3 = '';
|
7454 |
+
$slug4 = 'wppa_font_calendar_by_bold';
|
7455 |
+
$slug = $slug2;
|
7456 |
+
$html1 = '';
|
7457 |
+
$opts = array( __('Small', 'wp-photo-album-plus'),
|
7458 |
+
__('Medium', 'wp-photo-album-plus'),
|
7459 |
+
__('Large', 'wp-photo-album-plus'),
|
7460 |
+
__('Extra large', 'wp-photo-album-plus'));
|
7461 |
+
$vals = array( 'small', 'medium', 'large', 'xlarge');
|
7462 |
+
$html2 = wppa_select($slug2, $opts, $vals);
|
7463 |
+
$html3 = '';
|
7464 |
+
$html4 = wppa_checkbox($slug4) . ' ' . __('Bold', 'wp-photo-album-plus');
|
7465 |
+
$html = '</td><td>' . $html2 . '</td><td></td><td>' . $html4;
|
7466 |
+
$clas = '';
|
7467 |
+
$tags = 'size,layout';
|
7468 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
7469 |
+
|
7470 |
+
?>
|
7471 |
+
</tbody>
|
7472 |
+
<tfoot style="font-weight: bold;" class="wppa_table_5">
|
7473 |
+
<tr>
|
7474 |
+
<td scope="col" ><?php _e('#', 'wp-photo-album-plus') ?></td>
|
7475 |
+
<td scope="col" ><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
7476 |
+
<td scope="col" ><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
7477 |
+
<td scope="col" ><?php _e('Font family', 'wp-photo-album-plus') ?></td>
|
7478 |
+
<td scope="col" ><?php _e('Font size', 'wp-photo-album-plus') ?></td>
|
7479 |
+
<td scope="col" ><?php _e('Font color', 'wp-photo-album-plus') ?></td>
|
7480 |
+
<td scope="col" ><?php _e('Font weight', 'wp-photo-album-plus') ?></td>
|
7481 |
+
<td scope="col" ><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
7482 |
+
</tr>
|
7483 |
+
</tfoot>
|
7484 |
+
</table>
|
7485 |
+
</div>
|
7486 |
+
|
7487 |
+
<?php // Table 6: Links ?>
|
7488 |
+
<?php wppa_settings_box_header(
|
7489 |
+
'6',
|
7490 |
+
__('Table VI:', 'wp-photo-album-plus').' '.__('Links:', 'wp-photo-album-plus').' '.
|
7491 |
+
__('This table defines the link types and pages.', 'wp-photo-album-plus')
|
7492 |
+
); ?>
|
7493 |
+
|
7494 |
+
<div id="wppa_table_6" style="display:none" >
|
7495 |
+
<table class="widefat wppa-table wppa-setting-table">
|
7496 |
+
<thead style="font-weight: bold; " class="wppa_table_6">
|
7497 |
+
<tr>
|
7498 |
+
<td><?php _e('#', 'wp-photo-album-plus') ?></td>
|
7499 |
+
<td><?php _e('Name', 'wp-photo-album-plus') ?></td>
|
7500 |
+
<td><?php _e('Description', 'wp-photo-album-plus') ?></td>
|
7501 |
+
<td><?php _e('Link type', 'wp-photo-album-plus') ?></td>
|
7502 |
+
<td><?php _e('Link page', 'wp-photo-album-plus') ?></td>
|
7503 |
+
<td><?php _e('New tab', 'wp-photo-album-plus') ?></td>
|
7504 |
+
<td title="<?php _e('Photo specific link overrules', 'wp-photo-album-plus') ?>" style="cursor: pointer"><?php _e('PSO', 'wp-photo-album-plus') ?></td>
|
7505 |
+
<td><?php _e('Help', 'wp-photo-album-plus') ?></td>
|
7506 |
+
</tr>
|
7507 |
+
</thead>
|
7508 |
+
<tbody class="wppa_table_6">
|
7509 |
+
<?php
|
7510 |
+
$wppa_table = 'VI';
|
7511 |
+
$wppa_subtable = 'Z';
|
7512 |
+
|
7513 |
+
wppa_setting_subheader('A', '4', __('Links from images in WPPA+ Widgets', 'wp-photo-album-plus'));
|
7514 |
+
{
|
7515 |
+
$name = __('PotdWidget', 'wp-photo-album-plus');
|
7516 |
+
$desc = __('Photo Of The Day widget link.', 'wp-photo-album-plus');
|
7517 |
+
$help = (__('Select the type of link the photo of the day points to.', 'wp-photo-album-plus'));
|
7518 |
+
$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'));
|
7519 |
+
$slug1 = 'wppa_potd_linktype';
|
7520 |
+
$slug2 = 'wppa_potd_linkpage';
|
7521 |
+
wppa_verify_page($slug2);
|
7522 |
+
$slug3 = 'wppa_potd_blank';
|
7523 |
+
$slug4 = 'wppa_potdwidget_overrule';
|
7524 |
+
$slug = array($slug1, $slug2, $slug3, $slug4);
|
7525 |
+
$onchange = 'wppaCheckPotdLink();';
|
7526 |
+
$opts = array(
|
7527 |
+
__('no link at all.', 'wp-photo-album-plus'),
|
7528 |
+
__('the plain photo (file).', 'wp-photo-album-plus'),
|
7529 |
+
__('defined on widget admin page.', 'wp-photo-album-plus'),
|
7530 |
+
__('the content of the album.', 'wp-photo-album-plus'),
|
7531 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
7532 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
7533 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
7534 |
+
__('lightbox.', 'wp-photo-album-plus')
|
7535 |
+
);
|
7536 |
+
$vals = array(
|
7537 |
+
'none',
|
7538 |
+
'file',
|
7539 |
+
'custom',
|
7540 |
+
'album',
|
7541 |
+
'photo',
|
7542 |
+
'single',
|
7543 |
+
'plainpage',
|
7544 |
+
'lightbox'
|
7545 |
+
);
|
7546 |
+
$html1 = wppa_select($slug1, $opts, $vals, $onchange);
|
7547 |
+
$clas = 'wppa_potdlp';
|
7548 |
+
$html2 = wppa_select($slug2, $options_page_auto, $values_page, '', $clas);
|
7549 |
+
$clas = 'wppa_potdlb';
|
7550 |
+
$html3 = wppa_checkbox($slug3, '', $clas);
|
7551 |
+
$html4 = wppa_checkbox($slug4);
|
7552 |
+
$htmlerr = wppa_htmlerr('widget');
|
7553 |
+
$html = array($html1, $html2, $html3, $html4);
|
7554 |
+
$clas = '';
|
7555 |
+
$tags = 'widget,link,thumb';
|
7556 |
+
wppa_setting($slug, '1a,b,c,d', $name, $desc, $html, $help, $clas, $tags);
|
7557 |
+
}
|
7558 |
+
{
|
7559 |
+
$name = __('SlideWidget', 'wp-photo-album-plus');
|
7560 |
+
$desc = __('Slidesho
|