Version Description
= 8.1.08 =
- This version addresses various bug fixes, feature requests and security fixes.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 8.1.08.003 |
Comparing to | |
See all releases |
Code changes from version 8.1.08.002 to 8.1.08.003
- changelog.txt +5 -2
- js/wppa-gutenberg-wppa.js +10 -6
- js/wppa-tinymce-photo-front.min.js +0 -1
- js/wppa-tinymce-photo.min.js +0 -1
- js/wppa-tinymce-shortcodes.js +12 -9
- js/wppa-tinymce-shortcodes.min.js +0 -1
- readme.txt +1 -1
- wppa-admin-functions.php +20 -20
- wppa-admin.php +19 -19
- wppa-ajax.php +208 -208
- wppa-album-admin-autosave.php +14 -14
- wppa-album-covers.php +7 -7
- wppa-album-widget.php +4 -4
- wppa-audio.php +2 -2
- wppa-bestof-widget.php +3 -3
- wppa-boxes-html.php +18 -16
- wppa-breadcrumb.php +78 -78
- wppa-cache.php +2 -2
- wppa-cart.php +4 -4
- wppa-comment-admin.php +7 -7
- wppa-comment-widget.php +2 -2
- wppa-common-functions.php +3 -3
- wppa-date-time.php +3 -3
- wppa-defaults.php +19 -15
- wppa-edit-tags.php +9 -9
- wppa-exif-iptc-common.php +78 -78
- wppa-export.php +23 -23
- wppa-filter.php +3 -1
- wppa-functions.php +68 -33
- wppa-gutenberg-wppa.php +226 -217
- wppa-help.php +10 -10
- wppa-import.php +57 -57
- wppa-init.php +17 -17
- wppa-items.php +7 -7
- wppa-links.php +23 -23
- wppa-mailing.php +9 -9
- wppa-maintenance.php +4 -4
- wppa-photo-admin-autosave.php +95 -95
- wppa-photo-files.php +3 -3
- wppa-potd-widget.php +5 -5
- wppa-scripts.php +15 -13
- wppa-setting-functions.php +42 -42
- wppa-setting-see-also.php +65 -65
- wppa-settings-autosave.php +2817 -2794
changelog.txt
CHANGED
@@ -5,6 +5,9 @@ WP Photo Album Plus Changelog
|
|
5 |
* New selectable item in Album cover (title) link: manual entered. If selected, an extra input field appears where you can enter any url the cover title should link to.
|
6 |
* Mailing feuploadnotify did not always work. Fixed.
|
7 |
* All calendar types are now properly translated.
|
|
|
|
|
|
|
8 |
|
9 |
= 8.1.07 =
|
10 |
|
@@ -15,9 +18,9 @@ hilgliting the right item, regardless of either page size.
|
|
15 |
* Fixed a db warning at initial installation.
|
16 |
* You can now also specify a default description for 'granted' albums in Advanced settings -> New -> I -> Item 19a: Grant album description.
|
17 |
You can use $user as placeholder for the user name as defined in Item 19, as well as all existing album description keywords.
|
18 |
-
* You need no longer to wait one up to two hours before deleted items will be permanently removed.
|
19 |
On the album table the last line show the recoverable items as before.
|
20 |
-
The various edit types on this line now also allow you to remove the items from the system immediately,
|
21 |
either one by one or multiple at once on the (new) Bulk edit page for recoverable items.
|
22 |
Undeleting can now be done bulkwise too.
|
23 |
|
5 |
* New selectable item in Album cover (title) link: manual entered. If selected, an extra input field appears where you can enter any url the cover title should link to.
|
6 |
* Mailing feuploadnotify did not always work. Fixed.
|
7 |
* All calendar types are now properly translated.
|
8 |
+
* Added real calendare types to the shortcode generators.
|
9 |
+
* The albums in the selection lists in the shortcode generators are now including parents and alphabetically sorted
|
10 |
+
* New feature: Indicator of any users very first upload. See Advanced settings -> New -> I -> Items 4a, 7a and 9a
|
11 |
|
12 |
= 8.1.07 =
|
13 |
|
18 |
* Fixed a db warning at initial installation.
|
19 |
* You can now also specify a default description for 'granted' albums in Advanced settings -> New -> I -> Item 19a: Grant album description.
|
20 |
You can use $user as placeholder for the user name as defined in Item 19, as well as all existing album description keywords.
|
21 |
+
* You need no longer to wait one up to two hours before deleted items will be permanently removed.
|
22 |
On the album table the last line show the recoverable items as before.
|
23 |
+
The various edit types on this line now also allow you to remove the items from the system immediately,
|
24 |
either one by one or multiple at once on the (new) Bulk edit page for recoverable items.
|
25 |
Undeleting can now be done bulkwise too.
|
26 |
|
js/wppa-gutenberg-wppa.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/* wppa-gutenberg-wppa.js
|
2 |
* Pachkage: wp-photo-album-plus
|
3 |
*
|
4 |
-
* Version 8.1.
|
5 |
*/
|
6 |
|
7 |
// Global vars
|
@@ -538,13 +538,17 @@ function wppaGutenbergGalleryEvaluate() {
|
|
538 |
if ( type == 'calendar' ) {
|
539 |
shortcode += ' calendar="'+caltype+'"';
|
540 |
if ( parent ) {
|
541 |
-
shortcode += '
|
542 |
}
|
543 |
-
|
544 |
-
|
|
|
|
|
|
|
|
|
545 |
}
|
546 |
-
if (
|
547 |
-
shortcode += '
|
548 |
}
|
549 |
}
|
550 |
|
1 |
/* wppa-gutenberg-wppa.js
|
2 |
* Pachkage: wp-photo-album-plus
|
3 |
*
|
4 |
+
* Version 8.1.08.003
|
5 |
*/
|
6 |
|
7 |
// Global vars
|
538 |
if ( type == 'calendar' ) {
|
539 |
shortcode += ' calendar="'+caltype+'"';
|
540 |
if ( parent ) {
|
541 |
+
shortcode += ' parent="'+parent+'"';
|
542 |
}
|
543 |
+
var real = ! ( caltype == 'exifdtm' || caltype == 'timestamp' || caltype == 'modified' );
|
544 |
+
if ( real ) {
|
545 |
+
jQuery('#wppagallery-calendar-reverse-span').hide();
|
546 |
+
}
|
547 |
+
else {
|
548 |
+
jQuery('#wppagallery-calendar-reverse-span').show();
|
549 |
}
|
550 |
+
if ( reverse && !real ) {
|
551 |
+
shortcode += ' reverse="1"';
|
552 |
}
|
553 |
}
|
554 |
|
js/wppa-tinymce-photo-front.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinymce.PluginManager.add("wppaphoto",function(o,e){o.addButton("wppa_photo_button",{image:wppaImageDirectory+"camera32.png",tooltip:"WPPA+ Insert photo",onclick:function(){var o={modal:!0,resizable:!0,width:720,show:{effect:"fadeIn",duration:400},closeText:"",close:function(o,e){wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0))},open:function(o,e){wppaPhotoEvaluate()}};jQuery("#wppaphoto-form").dialog(o).dialog("open"),jQuery(".ui-widget-header").css({background:"none"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:200200}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-dialog-title").css({position:"absolute",top:"15px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"20px",width:"16px",height:"16px"}),jQuery(".ui-widget-overlay").css({background:"none"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-icon-closethick").css({display:"none"})}})}),jQuery(function(){var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),o=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcephotodialogfront";e.onreadystatechange=function(){var o;4==e.readyState&&404!=e.status&&(o=wppaEntityDecode(e.responseText),(o=jQuery(o)).find("table"),o.appendTo("body").hide(),o.find("#wppaphoto-submit").click(function(){newShortcode=jQuery("#wppaphoto-shortcode-preview").val(),newShortcode=newShortcode.replace(/"/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0),jQuery("#wppaphoto-myphoto").val("")),jQuery("#wppaphoto-form").dialog("close")}),jQuery(function(){var o={beforeSend:function(){jQuery("#progress").show(),jQuery("#bar").width("0%"),jQuery("#message").html(""),jQuery("#percent").html("")},uploadProgress:function(o,e,p,t){jQuery("#bar").width(t+"%"),t<95?jQuery("#percent").html(t+"%"):jQuery("#percent").html(wppaTxtProcessing)},success:function(){jQuery("#bar").width("100%"),jQuery("#percent").html(wppaTxtDone)},complete:function(o){o=o.responseText.split("||");1==o.length?jQuery("#message").html('<span style="font-size: 10px;" >'+o[0]+"</span>"):jQuery("#wppaphoto-myphoto").html(wppaEntityDecode(o[2])),wppaPhotoEvaluate()},error:function(){jQuery("#message").html('<span style="color: red;" >'+wppaTxtErrUnable+"</span>")}};jQuery("#wppa-uplform").ajaxForm(o)}))},e.open("GET",o,!0),e.send()});var wppaMyPhotoSelection=!0;function wppaPhotoEvaluate(){var o,e,p=wppaMyPhotoSelection?"my":"all";if(photo=jQuery("#wppaphoto-"+p+"photo").val(),wppaIsEmpty(photo))jQuery("#wppaphoto-"+p+"photo").css("color","#700"),o="";else{switch(wppaOutputType){case"shortcode":id=photo.replace(/\//g,""),id=id.split("."),id=id[0],o="[photo "+id+"]";break;case"html":o=-1!=photo.indexOf("xxx")?"Videos are not supported here":(e=wppaShortcodeTemplateId,wppaShortcodeTemplate.split(e).join(photo));break;case"img":o=-1!=photo.indexOf("xxx")?(e=photo.replace("xxx",""),'<video preload="metadata" style="width:100%;height:auto;" controls ><source src="'+wppaPhotoDirectory+e+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+e+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'webm" type="video/webm"></video>'):'<img src="'+wppaPhotoDirectory+photo+'" />';break;default:o="Unimplemented output type"}jQuery("#wppaphoto-"+p+"photo").css("color","#070"),o=o.replace(/"/g,"""),jQuery("#wppaphoto-photo-preview-tr").show(),wppaTinyMceBasicPhotoPreview(photo)}p='<input type="text" id="wppaphoto-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+o+'" />';jQuery("#wppaphoto-shortcode-preview-container").html(p),!wppaIsEmpty(photo)?(jQuery("#wppaphoto-submit").show(),jQuery("#wppaphoto-submit-notok").hide()):(jQuery("#wppaphoto-submit").hide(),jQuery("#wppaphoto-submit-notok").show())}function wppaTinyMceBasicPhotoPreview(o){var e;jQuery("#wppaphoto-photo-preview").html(""),"#potd"==o?jQuery("#wppaphoto-photo-preview").html(wppaNoPreview):-1!=o.indexOf("xxx")?(e=o.replace("xxx",""),jQuery("#wppaphoto-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+e+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+e+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'webm" type="video/webm"></video>')):jQuery("#wppaphoto-photo-preview").html('<img src="'+wppaPhotoDirectory+o+'" style="max-width:400px; max-height:300px;" />')}function wppaDisplaySelectedFile(o,e){o=jQuery("#"+o)[0].files[0].name;jQuery("#"+e).val("Upload "+o)}
|
|
js/wppa-tinymce-photo.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
tinymce.PluginManager.add("wppaphoto",function(o,e){o.addButton("wppa_photo_button",{image:wppaImageDirectory+"camera32.png",tooltip:"WPPA+ Insert photo",onclick:function(){var o={modal:!0,resizable:!0,width:720,show:{effect:"fadeIn",duration:400},closeText:"",close:function(o,e){wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0))},open:function(o,e){wppaPhotoEvaluate()}};jQuery("#wppaphoto-form").dialog(o).dialog("open"),jQuery(".ui-widget-header").css({background:"none"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:200200}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-dialog-title").css({position:"absolute",top:"15px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"20px",width:"16px",height:"16px"}),jQuery(".ui-widget-overlay").css({background:"none"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-icon-closethick").css({display:"none"})}})}),jQuery(function(){var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),o=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcephotodialog";e.open("GET",o,!0),e.send(),e.onreadystatechange=function(){var o;4==e.readyState&&404!=e.status&&(o=wppaEntityDecode(e.responseText),(o=jQuery(o)).find("table"),o.appendTo("body").hide(),o.find("#wppaphoto-submit").click(function(){newShortcode=jQuery("#wppaphoto-shortcode-preview").val(),newShortcode=newShortcode.replace(/"/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery("#wppaphoto-form").dialog("close")}),jQuery(function(){var o={beforeSend:function(){jQuery("#progress").show(),jQuery("#bar").width("0%"),jQuery("#message").html(""),jQuery("#percent").html("")},uploadProgress:function(o,e,p,t){jQuery("#bar").width(t+"%"),t<95?jQuery("#percent").html(t+"%"):jQuery("#percent").html(wppaTxtProcessing)},success:function(){jQuery("#bar").width("100%"),jQuery("#percent").html(wppaTxtDone)},complete:function(o){o=o.responseText.split("||");1==o.length?jQuery("#message").html('<span style="font-size: 10px;" >'+o[0]+"</span>"):jQuery("#wppaphoto-myphoto").html(wppaEntityDecode(o[2])),wppaPhotoEvaluate()},error:function(){jQuery("#message").html('<span style="color: red;" >'+wppaTxtErrUnable+"</span>")}};jQuery("#wppa-uplform").ajaxForm(o)}))}});var wppaMyPhotoSelection=!0;function wppaPhotoEvaluate(){var o=wppaMyPhotoSelection?"my":"all";photo=jQuery("#wppaphoto-"+o+"photo").val(),o=wppaIsEmpty(photo)?(jQuery("#wppaphoto-"+o+"photo").css("color","#700"),""):(id=photo.replace(/\//g,""),id=id.split("."),id=id[0],jQuery("#wppaphoto-photo-preview-tr").show(),wppaTinyMceBasicPhotoPreview(photo),jQuery("#wppaphoto-"+o+"photo").css("color","#070"),"[photo "+id),jQuery("#wppaphoto-cache").prop("checked")&&(o+=' cache="inf"'),o.length&&(o+="]");o='<input type="text" id="wppaphoto-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+(o=o.replace(/"/g,"""))+'" />';jQuery("#wppaphoto-shortcode-preview-container").html(o),!wppaIsEmpty(photo)?(jQuery("#wppaphoto-submit").show(),jQuery("#wppaphoto-submit-notok").hide()):(jQuery("#wppaphoto-submit").hide(),jQuery("#wppaphoto-submit-notok").show())}function wppaTinyMceBasicPhotoPreview(o){var e;"#potd"==o?jQuery("#wppaphoto-photo-preview").html(wppaNoPreview):-1!=o.indexOf("xxx")?(e=o.replace("xxx",""),jQuery("#wppaphoto-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+e+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+e+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'webm" type="video/webm"></video>')):jQuery("#wppaphoto-photo-preview").html('<img src="'+wppaPhotoDirectory+o+'" style="max-width:400px; max-height:300px;" />')}function wppaDisplaySelectedFile(o,e){o=jQuery("#"+o)[0].files[0].name;jQuery("#"+e).val("Upload "+o)}
|
|
js/wppa-tinymce-shortcodes.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Pachkage: wp-photo-album-plus
|
3 |
*
|
4 |
*
|
5 |
-
* Version 8.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -199,7 +199,7 @@ function wppaGalleryEvaluate() {
|
|
199 |
var i,j,t;
|
200 |
var caltype = '';
|
201 |
var reverse = false;
|
202 |
-
var allopen = false;
|
203 |
var andor = false;
|
204 |
var sep = '';
|
205 |
var landing = '0';
|
@@ -211,7 +211,7 @@ function wppaGalleryEvaluate() {
|
|
211 |
var delay = '';
|
212 |
|
213 |
// Init colors of <select> tags
|
214 |
-
jQuery( 'select' ).css( 'color', '#700' );
|
215 |
jQuery( '#wppagallery-album-parent-parent' ).css( 'color', '#070' );
|
216 |
jQuery( '#wppagallery-align' ).css( 'color', '#070' );
|
217 |
|
@@ -302,7 +302,6 @@ function wppaGalleryEvaluate() {
|
|
302 |
jQuery('#wppagallery-album-super-tr').show(); // Optional parent album
|
303 |
caltype = jQuery('#wppagallery-calendar-type').val();
|
304 |
reverse = jQuery('#wppagallery-calendar-reverse').prop('checked');
|
305 |
-
allopen = jQuery('#wppagallery-calendar-allopen').prop('checked');
|
306 |
parent = jQuery('#wppagallery-album-super-parent').val();
|
307 |
break;
|
308 |
default:
|
@@ -557,13 +556,17 @@ function wppaGalleryEvaluate() {
|
|
557 |
if ( type == 'calendar' ) {
|
558 |
shortcode += ' calendar="'+caltype+'"';
|
559 |
if ( parent ) {
|
560 |
-
shortcode += '
|
561 |
}
|
562 |
-
|
563 |
-
|
|
|
|
|
|
|
|
|
564 |
}
|
565 |
-
if (
|
566 |
-
shortcode += '
|
567 |
}
|
568 |
}
|
569 |
|
2 |
* Pachkage: wp-photo-album-plus
|
3 |
*
|
4 |
*
|
5 |
+
* Version 8.1.08.003
|
6 |
*
|
7 |
*/
|
8 |
|
199 |
var i,j,t;
|
200 |
var caltype = '';
|
201 |
var reverse = false;
|
202 |
+
// var allopen = false;
|
203 |
var andor = false;
|
204 |
var sep = '';
|
205 |
var landing = '0';
|
211 |
var delay = '';
|
212 |
|
213 |
// Init colors of <select> tags
|
214 |
+
// jQuery( 'select' ).css( 'color', '#700' );
|
215 |
jQuery( '#wppagallery-album-parent-parent' ).css( 'color', '#070' );
|
216 |
jQuery( '#wppagallery-align' ).css( 'color', '#070' );
|
217 |
|
302 |
jQuery('#wppagallery-album-super-tr').show(); // Optional parent album
|
303 |
caltype = jQuery('#wppagallery-calendar-type').val();
|
304 |
reverse = jQuery('#wppagallery-calendar-reverse').prop('checked');
|
|
|
305 |
parent = jQuery('#wppagallery-album-super-parent').val();
|
306 |
break;
|
307 |
default:
|
556 |
if ( type == 'calendar' ) {
|
557 |
shortcode += ' calendar="'+caltype+'"';
|
558 |
if ( parent ) {
|
559 |
+
shortcode += ' parent="'+parent+'"';
|
560 |
}
|
561 |
+
var real = ! ( caltype == 'exifdtm' || caltype == 'timestamp' || caltype == 'modified' );
|
562 |
+
if ( real ) {
|
563 |
+
jQuery('#wppagallery-calendar-reverse-span').hide();
|
564 |
+
}
|
565 |
+
else {
|
566 |
+
jQuery('#wppagallery-calendar-reverse-span').show();
|
567 |
}
|
568 |
+
if ( reverse && !real ) {
|
569 |
+
shortcode += ' reverse="1"';
|
570 |
}
|
571 |
}
|
572 |
|
js/wppa-tinymce-shortcodes.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
function wppaGalleryEvaluate(){var e;jQuery("#wppagallery-galery-type-tr").hide(),jQuery("#wppagallery-slides-type-tr").hide(),jQuery("#wppagallery-single-type-tr").hide(),jQuery("#wppagallery-search-type-tr").hide(),jQuery("#wppagallery-miscel-type-tr").hide(),jQuery("#wppagallery-album-type-tr").hide(),jQuery("#wppagallery-album-real-tr").hide(),jQuery("#wppagallery-album-real-search-tr").hide(),jQuery("#wppagallery-album-realopt-tr").hide(),jQuery("#wppagallery-album-virt-tr").hide(),jQuery("#wppagallery-album-virt-cover-tr").hide(),jQuery("#wppagallery-owner-tr").hide(),jQuery("#wppagallery-owner-parent-tr").hide(),jQuery("#wppagallery-album-parent-tr").hide(),jQuery("#wppagallery-album-count-tr").hide(),jQuery("#wppagallery-photo-count-tr").hide(),jQuery("#wppagallery-albumcat-tr").hide(),jQuery("#wppagallery-photo-tr").hide(),jQuery("#wppagallery-photo-preview-tr").hide(),jQuery("#wppagallery-phototags-tr").hide(),jQuery("#wppagallery-search-tr").hide(),jQuery("#wppagallery-taglist-tr").hide(),jQuery("#wppagallery-album-super-tr").hide(),jQuery("#wppagallery-calendar-tr").hide(),jQuery("#wppagallery-tags-cats-tr").hide(),jQuery("#wppagallery-landing-tr").hide(),jQuery("#wppagallery-rootalbum-tr").hide(),jQuery("#wppagallery-admins-tr").hide(),jQuery("#wppagallery-cache-tr").hide(),jQuery("#wppagallery-delay-tr").hide();var a,r,l,p="[wppa",t="",y="",o="",u="",s="",w="",c="",g="",i="",n="",h="",d=!1,j=!1,Q=!1,m=!1,b=!1,v=!1,k=!1,x=!1,f=!1,E=!1,I="",S="",T="",P="",z="",C=!1,N=!1,B="",G="0",A="0",D="",M="";switch(jQuery("select").css("color","#700"),jQuery("#wppagallery-album-parent-parent").css("color","#070"),jQuery("#wppagallery-align").css("color","#070"),a=jQuery("#wppagallery-top-type").val(),wppaIsEmpty(a)||jQuery("#wppagallery-top-type").css("color","#070"),a){case"galerytype":jQuery("#wppagallery-galery-type-tr").show(),t=jQuery("#wppagallery-galery-type").val(),Q=d=!0,jQuery("#wppagallery-album-type-tr").show(),wppaIsEmpty(t)||(jQuery("#wppagallery-galery-type").css("color","#070"),y=t);break;case"slidestype":jQuery("#wppagallery-slides-type-tr").show(),t=jQuery("#wppagallery-slides-type").val(),Q=j=!0,jQuery("#wppagallery-album-type-tr").show(),wppaIsEmpty(t)||(jQuery("#wppagallery-slides-type").css("color","#070"),o=t);break;case"singletype":jQuery("#wppagallery-single-type-tr").show(),t=jQuery("#wppagallery-single-type").val(),m=!0,jQuery("#wppagallery-photo-tr").show(),wppaIsEmpty(t)||jQuery("#wppagallery-single-type").css("color","#070");break;case"searchtype":switch(jQuery("#wppagallery-search-type-tr").show(),f=!0,s=t=jQuery("#wppagallery-search-type").val(),wppaIsEmpty(t)||jQuery("#wppagallery-search-type").css("color","#070"),t){case"search":jQuery("#wppagallery-search-tr").show(),jQuery("#wppagallery-root").prop("checked")&&jQuery("#wppagallery-rootalbum-tr").show(),A=jQuery("#wppagallery-rootalbum").val(),jQuery("#wppagallery-landing-tr").show(),G=jQuery("#wppagallery-landing").val();break;case"supersearch":break;case"tagcloud":case"multitag":if(jQuery("#wppagallery-taglist-tr").show(),!jQuery("#wppagallery-alltags").prop("checked")){k=!0,jQuery("#wppagallery-seltags").show(),r=jQuery(".wppagallery-taglist-tags");for(var R=[],H=W=0;W<r.length;)r[W].selected&&(R[H]=r[W].value,H++),W++;I=wppaArrayToEnum(R,",")}break;case"superview":jQuery("#wppagallery-album-super-tr").show(),c=jQuery("#wppagallery-album-super-parent").val();break;case"calendar":jQuery("#wppagallery-calendar-tr").show(),jQuery("#wppagallery-album-super-tr").show(),z=jQuery("#wppagallery-calendar-type").val(),C=jQuery("#wppagallery-calendar-reverse").prop("checked"),N=jQuery("#wppagallery-calendar-allopen").prop("checked"),g=jQuery("#wppagallery-album-super-parent").val()}break;case"misceltype":switch(jQuery("#wppagallery-miscel-type-tr").show(),t=jQuery("#wppagallery-miscel-type").val(),E=!0,wppaIsEmpty(t)||jQuery("#wppagallery-miscel-type").css("color","#070"),t){case"generic":w=t;break;case"upload":w=t,jQuery("#wppagallery-album-realopt-tr").show(),c=(c=jQuery("#wppagallery-album-realopt").val()).toString().replace(/,/g,".");break;case"landing":case"stereo":w=t;break;case"choice":w=t,jQuery("#wppagallery-admins-tr").show(),D=wppaGetSelectionEnumByClass(".wppagallery-admin",",")}}if(wppaIsEmpty(t)||(p+=' type="'+t+'"'),Q)switch(u=jQuery("#wppagallery-album-type").val(),wppaIsEmpty(u)||jQuery("#wppagallery-album-type").css("color","#070"),u){case"real":if(jQuery("#wppagallery-album-real-tr").show(),jQuery("#wppagallery-album-real-search-tr").show(),jQuery("#wppagallery-album-real-search"))if(jQuery("#wppagallery-album-real-search").val()){var L=jQuery("#wppagallery-album-real-search").val().toLowerCase();if(!wppaIsEmpty(L)&&(albums=jQuery(".wppagallery-album-r"),0<albums.length))for(var W=0;W<albums.length;)-1==albums[W].innerHTML.toLowerCase().search(L)?(jQuery(albums[W]).removeAttr("selected"),jQuery(albums[W]).hide()):jQuery(albums[W]).show(),W++}else jQuery(".wppagallery-album-r").show();c=(c=jQuery("#wppagallery-album-real").val()).toString().replace(/,/g,".");break;case"virtual":if(c="cover"==t?(jQuery("#wppagallery-album-virt-cover-tr").show(),jQuery("#wppagallery-album-virt-cover").val()):(jQuery("#wppagallery-album-virt-tr").show(),jQuery("#wppagallery-album-virt").val()),!wppaIsEmpty(c))switch(jQuery("#wppagallery-album-virt").css("color","#070"),c){case"#topten":case"#lasten":case"#featen":case"#comten":jQuery("#wppagallery-album-realopt-tr").show(),0<jQuery(".wppagallery-album-ropt").length?g=wppaGetSelectionEnumByClass(".wppagallery-album-ropt","."):-1!=(g=jQuery("#wppagallery-album-realopt").val()).indexOf(",")&&(parr=g.split(","),g=wppaArrayToEnum(parr,".")),""==g&&(g="0"),jQuery("#wppagallery-photo-count-tr").show(),i=jQuery("#wppagallery-photo-count").val();break;case"#tags":jQuery("#wppagallery-phototags-tr").show(),jQuery("#wppagallery-tags-cats-tr").show(),jQuery("[name=andor]:checked").val()||jQuery("#wppagallery-or").prop("checked",!0),B="or"==jQuery("[name=andor]:checked").val()?";":",",v=!0,r=jQuery(".wppagallery-phototags");R=[];for(H=W=0;W<r.length;)r[W].selected&&(R[H]=r[W].value,H++),W++;T=wppaArrayToEnum(R,B);break;case"#last":jQuery("#wppagallery-album-parent-tr").show(),g=jQuery("#wppagallery-album-parent-parent").val(),jQuery("#wppagallery-album-count-tr").show(),i=jQuery("#wppagallery-album-count").val();break;case"#cat":jQuery("#wppagallery-albumcat-tr").show(),jQuery("#wppagallery-tags-cats-tr").show(),jQuery("[name=andor]:checked").val()||jQuery("#wppagallery-or").prop("checked",!0),B="or"==jQuery("[name=andor]:checked").val()?";":",",x=!0,r=jQuery(".wppagallery-albumcat");var q=[];for(H=W=0;W<r.length;)r[W].selected&&(q[H]=r[W].value,H++),W++;P=wppaArrayToEnum(q,B);break;case"#owner":case"#upldr":jQuery("#wppagallery-owner-tr").show(),b=!0,S=jQuery("#wppagallery-owner").val(),wppaIsEmpty(S)||(jQuery("#wppagallery-owner").css("color","#070"),jQuery("#wppagallery-owner-parent-tr").show(),g=(g=wppaGetSelectionEnumByClass(".wppagallery-album-p",".")).toString().replace("zero","0"));break;case"#all":break;default:null!=c&&alert(wppaUIERR+": "+c)}break;default:c=""}wppaIsEmpty(c)||(p+=' album="'+c,""!=S&&(p+=","+S),""==g&&""!=i&&(g="0"),""!=g&&(p+=","+g),""!=i&&(p+=","+i),""!=T&&(p+=","+T),""!=P&&(p+=","+P),p+='"'),m&&(n=jQuery("#wppagallery-photo").val())&&(h=(h=(h=n.replace(/\//g,"")).split("."))[0],jQuery("#wppagallery-photo-preview-tr").show(),wppaTinyMcePhotoPreview(n),p+=' photo="'+h+'"',jQuery("#wppagallery-photo").css("color","#070")),"search"==t&&(jQuery("#wppagallery-sub").prop("checked")&&(p+=' sub="1"'),jQuery("#wppagallery-root").prop("checked")&&(p+="0"!=A?' root="#'+A+'"':' root="1"'),"0"!=G&&(p+=' landing="'+G+'"')),"tagcloud"!=t&&"multitag"!=t||""!=I&&(p+=' taglist="'+I+'"'),"calendar"==t&&(p+=' calendar="'+z+'"',g&&(p+=' album="'+g+'"'),C&&(p+=' reverse="1"'),N&&(p+=' all="1"')),"choice"==t&&0<D.length&&(p+=' admin="'+D+'"');u=document.getElementById("wppagallery-size").value,h=u.split(",");h[1]?"auto"==h[0]&&parseInt(h[1])==h[1]&&100<h[1]?jQuery("#wppagallery-size").css("color","#070"):(u=0,jQuery("#wppagallery-size").css("color","#700")):(""!=u&&"auto"!=u&&parseInt(u)!=u&&(u=0,jQuery("#wppagallery-size").css("color","#700")),u<0&&(u=-u),u<100&&(u/=100),jQuery("#wppagallery-size").css("color","#070")),0!=u&&(p+=' size="'+u+'"'),"none"!=(l=jQuery("#wppagallery-align").val())&&(p+=' align="'+l+'"'),"landing"!=w&&(jQuery("#wppagallery-cache-tr").show(),jQuery("#wppagallery-cache").prop("checked")&&(p+=' cache="inf"')),"landing"!=w&&"singletype"!=a&&(jQuery("#wppagallery-delay-tr").show(),jQuery("#wppagallery-delay").prop("checked")&&(p+=' delay="yes"')),M='<input type="text" id="wppagallery-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+(p=(p+="]").replace(/"/g,"""))+'" />',jQuery("#wppagallery-shortcode-preview-container").html(M),(e=!(""==c&&Q||""==n&&m||""==S&&b||""==I&&k||""==y&&d||""==o&&j||""==s&&f||""==w&&E||""==T&&v||""==P&&x))||((M="")==c&&Q&&(M+="Need album\n"),""==n&&m&&(M+="Need photo\n"),""==S&&b&&(M+="Need owner"),""==I&&k&&(M+="Need taglist"),""==y&&d&&(M+="Need galType"),""==o&&j&&(M+="Need slideType"),""==s&&f&&(M+="Need searchType"),""==w&&E&&(M+="Need miscType"),""==T&&v&&(M+="Need tags"),""==P&&x&&(M+="Need cats")),e?(jQuery("#wppagallery-submit").show(),jQuery("#wppagallery-submit-notok").hide()):(jQuery("#wppagallery-submit").hide(),jQuery("#wppagallery-submit-notok").show())}function wppaTinyMcePhotoPreview(e){var a;"#potd"==e?jQuery("#wppagallery-photo-preview").html(wppaNoPreview):-1!=e.indexOf("xxx")?(a=e.replace("xxx",""),jQuery("#wppagallery-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+a+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+a+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+a+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+a+'webm" type="video/webm"></video>')):jQuery("#wppagallery-photo-preview").html('<img src="'+wppaPhotoDirectory+e+'" style="max-width:400px; max-height:300px;" />')}tinymce.PluginManager.add("wppagallery",function(e,a){e.addButton("wppa_gallery_button",{image:wppaImageDirectory+"albumnew32.png",tooltip:"WPPA+ Shortcode Generator",onclick:function(){var e={modal:!0,resizable:!0,width:720,show:{effect:"fadeIn",duration:400},closeText:"",close:function(e,a){},open:function(e,a){wppaGalleryEvaluate()}};jQuery("#wppagallery-form").dialog(e).dialog("open"),jQuery(".ui-widget-header").css({background:"none"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:200200}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-dialog-title").css({position:"absolute",top:"15px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"20px",width:"16px",height:"16px"}),jQuery(".ui-widget-overlay").css({background:"none"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-icon-closethick").css({display:"none"})}})}),jQuery(function(){var a=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcedialog";a.open("GET",e,!0),a.send(),a.onreadystatechange=function(){var e;4==a.readyState&&404!=a.status&&(e=wppaEntityDecode(a.responseText),(e=jQuery(e)).find("table"),e.appendTo("body").hide(),e.find("#wppagallery-submit").click(function(){newShortcode=document.getElementById("wppagallery-shortcode-preview").value,newShortcode=newShortcode.replace(/"/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),jQuery("#wppagallery-form").dialog("close")}))}});
|
|
readme.txt
CHANGED
@@ -134,7 +134,7 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
|
|
134 |
|
135 |
== Upgrade Notice ==
|
136 |
|
137 |
-
= 8.1.
|
138 |
|
139 |
* This version addresses various bug fixes, feature requests and security fixes.
|
140 |
|
134 |
|
135 |
== Upgrade Notice ==
|
136 |
|
137 |
+
= 8.1.08 =
|
138 |
|
139 |
* This version addresses various bug fixes, feature requests and security fixes.
|
140 |
|
wppa-admin-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -40,10 +40,10 @@ global $wppa_opt;
|
|
40 |
|
41 |
// Report
|
42 |
if ( $bret ) {
|
43 |
-
wppa_ok_message( __( 'Settings successfully backed up' , 'wp-photo-album-plus') );
|
44 |
}
|
45 |
else {
|
46 |
-
wppa_error_message( __( 'Unable to backup settings' , 'wp-photo-album-plus') );
|
47 |
}
|
48 |
|
49 |
return $bret;
|
@@ -118,7 +118,7 @@ function wppa_restore_settings( $fname, $type = '' ) {
|
|
118 |
return true;
|
119 |
}
|
120 |
else {
|
121 |
-
wppa_error_message( __( 'Settings file not found' , 'wp-photo-album-plus') );
|
122 |
return false;
|
123 |
}
|
124 |
}
|
@@ -234,11 +234,11 @@ function wppa_ok_message( $msg ) {
|
|
234 |
function wppa_check_numeric( $value, $minval, $target, $maxval = '' ) {
|
235 |
if ( $maxval == '' ) {
|
236 |
if ( is_numeric( $value ) && $value >= $minval ) return true;
|
237 |
-
wppa_error_message( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus') . ' ' . $minval . ' ' . __( 'for' , 'wp-photo-album-plus') . ' ' . $target );
|
238 |
}
|
239 |
else {
|
240 |
if ( is_numeric( $value ) && $value >= $minval && $value <= $maxval ) return true;
|
241 |
-
wppa_error_message( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus') . ' ' . $minval . ' ' . __( 'and less than or equal to' , 'wp-photo-album-plus') . ' ' . $maxval . ' ' . __( 'for' , 'wp-photo-album-plus') . ' ' . $target );
|
242 |
}
|
243 |
return false;
|
244 |
}
|
@@ -539,7 +539,7 @@ function _wppa_sanitze_files( $root ) {
|
|
539 |
if ( ! in_array( $ext, $allowed_types ) ) {
|
540 |
if ( basename( $file ) != 'index.php' ) {
|
541 |
wppa_unlink( $file );
|
542 |
-
wppa_error_message( sprintf( __( 'File %s is of an unsupported filetype and has been removed.' , 'wp-photo-album-plus'), basename( wppa_sanitize_file_name( $file ) ) ) );
|
543 |
}
|
544 |
$count++;
|
545 |
}
|
@@ -646,7 +646,7 @@ global $wpdb;
|
|
646 |
global $allphotos;
|
647 |
|
648 |
if ( $xname == '' ) $name = basename( $file );
|
649 |
-
else $name = __( $xname , 'wp-photo-album-plus');
|
650 |
|
651 |
// Find photo entries that apply to the supplied filename
|
652 |
$query = $wpdb->prepare(
|
@@ -732,10 +732,10 @@ global $warning_given_small;
|
|
732 |
if ( $exists ) {
|
733 |
if ( wppa_get( 'del-after-p' ) ) {
|
734 |
wppa_unlink( $file );
|
735 |
-
$msg = __( 'Photo %s already exists in album number %s. Removed from depot.' , 'wp-photo-album-plus');
|
736 |
}
|
737 |
else {
|
738 |
-
$msg = __( 'Photo %s already exists in album number %s.' , 'wp-photo-album-plus');
|
739 |
}
|
740 |
wppa_warning_message( sprintf( $msg, $name, $alb ) );
|
741 |
|
@@ -759,7 +759,7 @@ global $warning_given_small;
|
|
759 |
elseif ( wppa( 'is_remote' ) ) {
|
760 |
if ( ! wppa_is_url_a_photo( $file ) ) {
|
761 |
if ( wppa( 'ajax' ) ) {
|
762 |
-
wppa( 'ajax_import_files_error', __( 'Not found', 'wp-photo-album-plus') );
|
763 |
}
|
764 |
return false;
|
765 |
}
|
@@ -775,12 +775,12 @@ global $warning_given_small;
|
|
775 |
// Assume success finding image size
|
776 |
if ( $img_size ) {
|
777 |
if ( wppa_check_memory_limit( '', $img_size['0'], $img_size['1'] ) === false ) {
|
778 |
-
wppa_error_message( htmlentities( sprintf( __( 'ERROR: Attempt to upload a photo that is too large to process (%s).' , 'wp-photo-album-plus'), $name ).wppa_check_memory_limit() ) );
|
779 |
wppa( 'ajax_import_files_error', __( 'Too big', 'wp-photo-album-plus' ) );
|
780 |
return false;
|
781 |
}
|
782 |
if ( ! $warning_given_small && ( $img_size['0'] < wppa_get_minisize() && $img_size['1'] < wppa_get_minisize() ) ) {
|
783 |
-
wppa_warning_message( htmlentities( __( 'WARNING: You are uploading photos that are too small. Photos must be larger than the thumbnail size and larger than the coverphotosize.' , 'wp-photo-album-plus') ) );
|
784 |
wppa( 'ajax_import_files_error', __( 'Too small', 'wp-photo-album-plus' ) );
|
785 |
$warning_given_small = true;
|
786 |
}
|
@@ -788,7 +788,7 @@ global $warning_given_small;
|
|
788 |
|
789 |
// No image size found
|
790 |
else {
|
791 |
-
wppa_error_message( htmlentities( __( 'ERROR: Unable to retrieve image size of' , 'wp-photo-album-plus').' '.$file.' '.__( 'Are you sure it is a photo?' , 'wp-photo-album-plus') ) );
|
792 |
wppa( 'ajax_import_files_error', __( 'No photo found', 'wp-photo-album-plus' ) );
|
793 |
return false;
|
794 |
}
|
@@ -799,7 +799,7 @@ global $warning_given_small;
|
|
799 |
case 2: $ext = 'jpg'; break;
|
800 |
case 3: $ext = 'png'; break;
|
801 |
default:
|
802 |
-
wppa_error_message( htmentities( __( 'Unsupported mime type encountered:' , 'wp-photo-album-plus').' '.$img_size[2].'.' ) );
|
803 |
return false;
|
804 |
}
|
805 |
// Get an id if not yet there
|
@@ -816,11 +816,11 @@ global $warning_given_small;
|
|
816 |
$owner = wppa_get_user();
|
817 |
// Validate album
|
818 |
if ( !is_numeric( $alb ) || $alb < '1' ) {
|
819 |
-
wppa_error_message( __( 'Album not known while trying to add a photo' , 'wp-photo-album-plus') );
|
820 |
return false;
|
821 |
}
|
822 |
if ( ! wppa_have_access( $alb ) ) {
|
823 |
-
wppa_error_message( htmlentities( sprintf( __( 'Album %s does not exist or is not accessible while trying to add a photo' , 'wp-photo-album-plus'), $alb ) ) );
|
824 |
return false;
|
825 |
}
|
826 |
$status = ( wppa_switch( 'moderatephoto' ) && ! current_user_can( 'wppa_admin' ) ) ? 'pending' : wppa_opt( 'wppa_status_new' );
|
@@ -839,7 +839,7 @@ global $warning_given_small;
|
|
839 |
'filename' => $filename
|
840 |
) );
|
841 |
if ( ! $id ) {
|
842 |
-
wppa_error_message( __( 'Could not insert photo.' , 'wp-photo-album-plus') );
|
843 |
}
|
844 |
else { // Save the source
|
845 |
wppa_save_source( $file, $filename, $alb );
|
@@ -890,7 +890,7 @@ global $warning_given_small;
|
|
890 |
}
|
891 |
}
|
892 |
else {
|
893 |
-
wppa_error_message( __( 'ERROR: Unknown file or album.' , 'wp-photo-album-plus') );
|
894 |
return false;
|
895 |
}
|
896 |
}
|
@@ -983,7 +983,7 @@ global $wpdb;
|
|
983 |
$schedulecount = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_photos WHERE status = 'scheduled'" );
|
984 |
|
985 |
$result =
|
986 |
-
sprintf( __( 'There are <strong>%d</strong> albums and <strong>%d</strong> photos in the system.', 'wp-photo-album-plus'), $albcount, $photocount );
|
987 |
if ( $pendingcount ) {
|
988 |
$result .= ' ' . sprintf( __( '<strong>%d</strong> photos are pending moderation.', 'wp-photo-album-plus' ), $pendingcount );
|
989 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
40 |
|
41 |
// Report
|
42 |
if ( $bret ) {
|
43 |
+
wppa_ok_message( __( 'Settings successfully backed up' , 'wp-photo-album-plus' ) );
|
44 |
}
|
45 |
else {
|
46 |
+
wppa_error_message( __( 'Unable to backup settings' , 'wp-photo-album-plus' ) );
|
47 |
}
|
48 |
|
49 |
return $bret;
|
118 |
return true;
|
119 |
}
|
120 |
else {
|
121 |
+
wppa_error_message( __( 'Settings file not found' , 'wp-photo-album-plus' ) );
|
122 |
return false;
|
123 |
}
|
124 |
}
|
234 |
function wppa_check_numeric( $value, $minval, $target, $maxval = '' ) {
|
235 |
if ( $maxval == '' ) {
|
236 |
if ( is_numeric( $value ) && $value >= $minval ) return true;
|
237 |
+
wppa_error_message( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus' ) . ' ' . $minval . ' ' . __( 'for' , 'wp-photo-album-plus' ) . ' ' . $target );
|
238 |
}
|
239 |
else {
|
240 |
if ( is_numeric( $value ) && $value >= $minval && $value <= $maxval ) return true;
|
241 |
+
wppa_error_message( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus' ) . ' ' . $minval . ' ' . __( 'and less than or equal to' , 'wp-photo-album-plus' ) . ' ' . $maxval . ' ' . __( 'for' , 'wp-photo-album-plus' ) . ' ' . $target );
|
242 |
}
|
243 |
return false;
|
244 |
}
|
539 |
if ( ! in_array( $ext, $allowed_types ) ) {
|
540 |
if ( basename( $file ) != 'index.php' ) {
|
541 |
wppa_unlink( $file );
|
542 |
+
wppa_error_message( sprintf( __( 'File %s is of an unsupported filetype and has been removed.' , 'wp-photo-album-plus' ), basename( wppa_sanitize_file_name( $file ) ) ) );
|
543 |
}
|
544 |
$count++;
|
545 |
}
|
646 |
global $allphotos;
|
647 |
|
648 |
if ( $xname == '' ) $name = basename( $file );
|
649 |
+
else $name = __( $xname , 'wp-photo-album-plus' );
|
650 |
|
651 |
// Find photo entries that apply to the supplied filename
|
652 |
$query = $wpdb->prepare(
|
732 |
if ( $exists ) {
|
733 |
if ( wppa_get( 'del-after-p' ) ) {
|
734 |
wppa_unlink( $file );
|
735 |
+
$msg = __( 'Photo %s already exists in album number %s. Removed from depot.' , 'wp-photo-album-plus' );
|
736 |
}
|
737 |
else {
|
738 |
+
$msg = __( 'Photo %s already exists in album number %s.' , 'wp-photo-album-plus' );
|
739 |
}
|
740 |
wppa_warning_message( sprintf( $msg, $name, $alb ) );
|
741 |
|
759 |
elseif ( wppa( 'is_remote' ) ) {
|
760 |
if ( ! wppa_is_url_a_photo( $file ) ) {
|
761 |
if ( wppa( 'ajax' ) ) {
|
762 |
+
wppa( 'ajax_import_files_error', __( 'Not found', 'wp-photo-album-plus' ) );
|
763 |
}
|
764 |
return false;
|
765 |
}
|
775 |
// Assume success finding image size
|
776 |
if ( $img_size ) {
|
777 |
if ( wppa_check_memory_limit( '', $img_size['0'], $img_size['1'] ) === false ) {
|
778 |
+
wppa_error_message( htmlentities( sprintf( __( 'ERROR: Attempt to upload a photo that is too large to process (%s).' , 'wp-photo-album-plus' ), $name ).wppa_check_memory_limit() ) );
|
779 |
wppa( 'ajax_import_files_error', __( 'Too big', 'wp-photo-album-plus' ) );
|
780 |
return false;
|
781 |
}
|
782 |
if ( ! $warning_given_small && ( $img_size['0'] < wppa_get_minisize() && $img_size['1'] < wppa_get_minisize() ) ) {
|
783 |
+
wppa_warning_message( htmlentities( __( 'WARNING: You are uploading photos that are too small. Photos must be larger than the thumbnail size and larger than the coverphotosize.' , 'wp-photo-album-plus' ) ) );
|
784 |
wppa( 'ajax_import_files_error', __( 'Too small', 'wp-photo-album-plus' ) );
|
785 |
$warning_given_small = true;
|
786 |
}
|
788 |
|
789 |
// No image size found
|
790 |
else {
|
791 |
+
wppa_error_message( htmlentities( __( 'ERROR: Unable to retrieve image size of' , 'wp-photo-album-plus' ).' '.$file.' '.__( 'Are you sure it is a photo?' , 'wp-photo-album-plus' ) ) );
|
792 |
wppa( 'ajax_import_files_error', __( 'No photo found', 'wp-photo-album-plus' ) );
|
793 |
return false;
|
794 |
}
|
799 |
case 2: $ext = 'jpg'; break;
|
800 |
case 3: $ext = 'png'; break;
|
801 |
default:
|
802 |
+
wppa_error_message( htmentities( __( 'Unsupported mime type encountered:' , 'wp-photo-album-plus' ).' '.$img_size[2].'.' ) );
|
803 |
return false;
|
804 |
}
|
805 |
// Get an id if not yet there
|
816 |
$owner = wppa_get_user();
|
817 |
// Validate album
|
818 |
if ( !is_numeric( $alb ) || $alb < '1' ) {
|
819 |
+
wppa_error_message( __( 'Album not known while trying to add a photo' , 'wp-photo-album-plus' ) );
|
820 |
return false;
|
821 |
}
|
822 |
if ( ! wppa_have_access( $alb ) ) {
|
823 |
+
wppa_error_message( htmlentities( sprintf( __( 'Album %s does not exist or is not accessible while trying to add a photo' , 'wp-photo-album-plus' ), $alb ) ) );
|
824 |
return false;
|
825 |
}
|
826 |
$status = ( wppa_switch( 'moderatephoto' ) && ! current_user_can( 'wppa_admin' ) ) ? 'pending' : wppa_opt( 'wppa_status_new' );
|
839 |
'filename' => $filename
|
840 |
) );
|
841 |
if ( ! $id ) {
|
842 |
+
wppa_error_message( __( 'Could not insert photo.' , 'wp-photo-album-plus' ) );
|
843 |
}
|
844 |
else { // Save the source
|
845 |
wppa_save_source( $file, $filename, $alb );
|
890 |
}
|
891 |
}
|
892 |
else {
|
893 |
+
wppa_error_message( __( 'ERROR: Unknown file or album.' , 'wp-photo-album-plus' ) );
|
894 |
return false;
|
895 |
}
|
896 |
}
|
983 |
$schedulecount = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_photos WHERE status = 'scheduled'" );
|
984 |
|
985 |
$result =
|
986 |
+
sprintf( __( 'There are <strong>%d</strong> albums and <strong>%d</strong> photos in the system.', 'wp-photo-album-plus' ), $albcount, $photocount );
|
987 |
if ( $pendingcount ) {
|
988 |
$result .= ' ' . sprintf( __( '<strong>%d</strong> photos are pending moderation.', 'wp-photo-album-plus' ), $pendingcount );
|
989 |
}
|
wppa-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the admin menu and startups the admin pages
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -54,41 +54,41 @@ function wppa_add_admin() {
|
|
54 |
$icon_url = WPPA_URL . '/img/camera16.png';
|
55 |
|
56 |
// page_title menu_title capability menu_slug function icon_url position
|
57 |
-
add_menu_page( 'WP Photo Album', __('Photo Albums', 'wp-photo-album-plus').$tot_pending, 'wppa_admin', 'wppa_admin_menu', 'wppa_admin', $icon_url ); //,'10' );
|
58 |
|
59 |
// parent_slug page_title menu_title capability menu_slug function
|
60 |
-
add_submenu_page( 'wppa_admin_menu', __('Album Admin', 'wp-photo-album-plus'), __('Album Admin', 'wp-photo-album-plus').$upl_pending,'wppa_admin', 'wppa_admin_menu', 'wppa_admin' );
|
61 |
-
add_submenu_page( 'wppa_admin_menu', __('Upload Photos', 'wp-photo-album-plus'), __('Upload Photos', 'wp-photo-album-plus'), 'wppa_upload', 'wppa_upload_photos', 'wppa_page_upload' );
|
62 |
// Uploader without album admin rights, but when the upload_edit switch set, may edit his own photos
|
63 |
if ( ! current_user_can('wppa_admin') && wppa_opt( 'upload_edit') != '-none-' ) {
|
64 |
-
add_submenu_page( 'wppa_admin_menu', __('Edit Photos', 'wp-photo-album-plus'), __('Edit Photos', 'wp-photo-album-plus'), 'wppa_upload', 'wppa_edit_photo', 'wppa_edit_photo' );
|
65 |
}
|
66 |
-
add_submenu_page( 'wppa_admin_menu', __('Import Photos', 'wp-photo-album-plus'), __('Import Photos', 'wp-photo-album-plus'), 'wppa_import', 'wppa_import_photos', 'wppa_page_import' );
|
67 |
-
add_submenu_page( 'wppa_admin_menu', __('Moderate Photos', 'wp-photo-album-plus'), __('Moderate Photos', 'wp-photo-album-plus').(wppa_switch('moderate_bulk')?$upl_pending:$tot_pending), 'wppa_moderate', 'wppa_moderate_photos', 'wppa_page_moderate' );
|
68 |
-
add_submenu_page( 'wppa_admin_menu', __('Export Photos', 'wp-photo-album-plus'), __('Export Photos', 'wp-photo-album-plus'), 'wppa_export', 'wppa_export_photos', 'wppa_page_export' );
|
69 |
-
add_submenu_page( 'wppa_admin_menu', __('Settings', 'wp-photo-album-plus'), __('Settings', 'wp-photo-album-plus'), 'wppa_settings', 'wppa_options', 'wppa_page_options' );
|
70 |
if ( wppa_switch( 'show_comments' ) ) {
|
71 |
-
add_submenu_page( 'wppa_admin_menu', __('Manage comments', 'wp-photo-album-plus'), __('Comments', 'wp-photo-album-plus').$com_pending, 'wppa_comments', 'wppa_manage_comments', 'wppa_comment_admin' );
|
72 |
}
|
73 |
if ( wppa_switch( 'opt_menu_search' ) ) {
|
74 |
-
add_submenu_page( 'wppa_admin_menu', __('Search', 'wp-photo-album-plus'), __('Search', 'wp-photo-album-plus'), 'wppa_admin', 'wppa_search', 'wppa_search' );
|
75 |
}
|
76 |
if ( wppa_switch( 'opt_menu_edit_tags' ) ) {
|
77 |
-
add_submenu_page( 'wppa_admin_menu', __('Edit tags', 'wp-photo-album-plus'), __('Edit tags', 'wp-photo-album-plus'), 'wppa_edit_tags', 'wppa_edit_tags', 'wppa_tag_editor' );
|
78 |
}
|
79 |
if ( wppa_switch( 'opt_menu_edit_sequence' ) ) {
|
80 |
-
add_submenu_page( 'wppa_admin_menu', __('Edit Photo Sequence', 'wp-photo-album-plus'), __('Edit Photo sequence', 'wp-photo-album-plus'), 'wppa_edit_sequence', 'wppa_edit_sequence', 'wppa_edit_sequence' );
|
81 |
}
|
82 |
if ( wppa_switch( 'opt_menu_doc' ) ) {
|
83 |
-
add_submenu_page( 'wppa_admin_menu', __('Help & Info', 'wp-photo-album-plus'), __('Documentation', 'wp-photo-album-plus'), 'wppa_help', 'wppa_help', 'wppa_page_help' );
|
84 |
}
|
85 |
if ( wppa_switch( 'logfile_on_menu' ) ) {
|
86 |
-
add_submenu_page( 'wppa_admin_menu', __('Logfile', 'wp-photo-album-plus'), __('Logfile', 'wp-photo-album-plus'), 'administrator', 'wppa_log', 'wppa_log_page' );
|
87 |
}
|
88 |
$hits = get_option( 'wppa_cache_hits', '0' );
|
89 |
$miss = get_option( 'wppa_cache_misses', '1' );
|
90 |
$perc = sprintf( '%5.2f', 100 * $hits / ( $hits + $miss ) );
|
91 |
-
add_submenu_page( 'wppa_admin_menu', __('Cache', 'wp-photo-album-plus'), __('Cache', 'wp-photo-album-plus').' '. $perc . '%', 'wppa_admin', 'wppa_cache', 'wppa_page_cache' );
|
92 |
}
|
93 |
|
94 |
/* ADMIN STYLES */
|
@@ -166,14 +166,14 @@ function wppa_admin() {
|
|
166 |
}
|
167 |
// Upload admin page
|
168 |
function wppa_page_upload() {
|
169 |
-
if ( wppa_is_user_blacklisted() ) wp_die(__( 'Uploading is temporary disabled for you' , 'wp-photo-album-plus') );
|
170 |
wppa_grant_albums();
|
171 |
require_once 'wppa-upload.php';
|
172 |
_wppa_page_upload();
|
173 |
}
|
174 |
// Edit photo(s)
|
175 |
function wppa_edit_photo() {
|
176 |
-
if ( wppa_is_user_blacklisted() ) wp_die(__( 'Editing is temporary disabled for you' , 'wp-photo-album-plus') );
|
177 |
require_once 'wppa-photo-admin-autosave.php';
|
178 |
wppa_publish_scheduled();
|
179 |
_wppa_edit_photo();
|
@@ -188,7 +188,7 @@ function wppa_page_import() {
|
|
188 |
}
|
189 |
wppa_chmod( $dir, true );
|
190 |
|
191 |
-
if ( wppa_is_user_blacklisted() ) wp_die(__( 'Importing is temporary disabled for you' , 'wp-photo-album-plus') );
|
192 |
wppa_grant_albums();
|
193 |
wppa_rename_files_sanitized( WPPA_DEPOT_PATH );
|
194 |
require_once 'wppa-import.php';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the admin menu and startups the admin pages
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
54 |
$icon_url = WPPA_URL . '/img/camera16.png';
|
55 |
|
56 |
// page_title menu_title capability menu_slug function icon_url position
|
57 |
+
add_menu_page( 'WP Photo Album', __('Photo Albums', 'wp-photo-album-plus' ).$tot_pending, 'wppa_admin', 'wppa_admin_menu', 'wppa_admin', $icon_url ); //,'10' );
|
58 |
|
59 |
// parent_slug page_title menu_title capability menu_slug function
|
60 |
+
add_submenu_page( 'wppa_admin_menu', __('Album Admin', 'wp-photo-album-plus' ), __('Album Admin', 'wp-photo-album-plus' ).$upl_pending,'wppa_admin', 'wppa_admin_menu', 'wppa_admin' );
|
61 |
+
add_submenu_page( 'wppa_admin_menu', __('Upload Photos', 'wp-photo-album-plus' ), __('Upload Photos', 'wp-photo-album-plus' ), 'wppa_upload', 'wppa_upload_photos', 'wppa_page_upload' );
|
62 |
// Uploader without album admin rights, but when the upload_edit switch set, may edit his own photos
|
63 |
if ( ! current_user_can('wppa_admin') && wppa_opt( 'upload_edit') != '-none-' ) {
|
64 |
+
add_submenu_page( 'wppa_admin_menu', __('Edit Photos', 'wp-photo-album-plus' ), __('Edit Photos', 'wp-photo-album-plus' ), 'wppa_upload', 'wppa_edit_photo', 'wppa_edit_photo' );
|
65 |
}
|
66 |
+
add_submenu_page( 'wppa_admin_menu', __('Import Photos', 'wp-photo-album-plus' ), __('Import Photos', 'wp-photo-album-plus' ), 'wppa_import', 'wppa_import_photos', 'wppa_page_import' );
|
67 |
+
add_submenu_page( 'wppa_admin_menu', __('Moderate Photos', 'wp-photo-album-plus' ), __('Moderate Photos', 'wp-photo-album-plus' ).(wppa_switch('moderate_bulk')?$upl_pending:$tot_pending), 'wppa_moderate', 'wppa_moderate_photos', 'wppa_page_moderate' );
|
68 |
+
add_submenu_page( 'wppa_admin_menu', __('Export Photos', 'wp-photo-album-plus' ), __('Export Photos', 'wp-photo-album-plus' ), 'wppa_export', 'wppa_export_photos', 'wppa_page_export' );
|
69 |
+
add_submenu_page( 'wppa_admin_menu', __('Settings', 'wp-photo-album-plus' ), __('Settings', 'wp-photo-album-plus' ), 'wppa_settings', 'wppa_options', 'wppa_page_options' );
|
70 |
if ( wppa_switch( 'show_comments' ) ) {
|
71 |
+
add_submenu_page( 'wppa_admin_menu', __('Manage comments', 'wp-photo-album-plus' ), __('Comments', 'wp-photo-album-plus' ).$com_pending, 'wppa_comments', 'wppa_manage_comments', 'wppa_comment_admin' );
|
72 |
}
|
73 |
if ( wppa_switch( 'opt_menu_search' ) ) {
|
74 |
+
add_submenu_page( 'wppa_admin_menu', __('Search', 'wp-photo-album-plus' ), __('Search', 'wp-photo-album-plus' ), 'wppa_admin', 'wppa_search', 'wppa_search' );
|
75 |
}
|
76 |
if ( wppa_switch( 'opt_menu_edit_tags' ) ) {
|
77 |
+
add_submenu_page( 'wppa_admin_menu', __('Edit tags', 'wp-photo-album-plus' ), __('Edit tags', 'wp-photo-album-plus' ), 'wppa_edit_tags', 'wppa_edit_tags', 'wppa_tag_editor' );
|
78 |
}
|
79 |
if ( wppa_switch( 'opt_menu_edit_sequence' ) ) {
|
80 |
+
add_submenu_page( 'wppa_admin_menu', __('Edit Photo Sequence', 'wp-photo-album-plus' ), __('Edit Photo sequence', 'wp-photo-album-plus' ), 'wppa_edit_sequence', 'wppa_edit_sequence', 'wppa_edit_sequence' );
|
81 |
}
|
82 |
if ( wppa_switch( 'opt_menu_doc' ) ) {
|
83 |
+
add_submenu_page( 'wppa_admin_menu', __('Help & Info', 'wp-photo-album-plus' ), __('Documentation', 'wp-photo-album-plus' ), 'wppa_help', 'wppa_help', 'wppa_page_help' );
|
84 |
}
|
85 |
if ( wppa_switch( 'logfile_on_menu' ) ) {
|
86 |
+
add_submenu_page( 'wppa_admin_menu', __('Logfile', 'wp-photo-album-plus' ), __('Logfile', 'wp-photo-album-plus' ), 'administrator', 'wppa_log', 'wppa_log_page' );
|
87 |
}
|
88 |
$hits = get_option( 'wppa_cache_hits', '0' );
|
89 |
$miss = get_option( 'wppa_cache_misses', '1' );
|
90 |
$perc = sprintf( '%5.2f', 100 * $hits / ( $hits + $miss ) );
|
91 |
+
add_submenu_page( 'wppa_admin_menu', __('Cache', 'wp-photo-album-plus' ), __('Cache', 'wp-photo-album-plus' ).' '. $perc . '%', 'wppa_admin', 'wppa_cache', 'wppa_page_cache' );
|
92 |
}
|
93 |
|
94 |
/* ADMIN STYLES */
|
166 |
}
|
167 |
// Upload admin page
|
168 |
function wppa_page_upload() {
|
169 |
+
if ( wppa_is_user_blacklisted() ) wp_die(__( 'Uploading is temporary disabled for you' , 'wp-photo-album-plus' ) );
|
170 |
wppa_grant_albums();
|
171 |
require_once 'wppa-upload.php';
|
172 |
_wppa_page_upload();
|
173 |
}
|
174 |
// Edit photo(s)
|
175 |
function wppa_edit_photo() {
|
176 |
+
if ( wppa_is_user_blacklisted() ) wp_die(__( 'Editing is temporary disabled for you' , 'wp-photo-album-plus' ) );
|
177 |
require_once 'wppa-photo-admin-autosave.php';
|
178 |
wppa_publish_scheduled();
|
179 |
_wppa_edit_photo();
|
188 |
}
|
189 |
wppa_chmod( $dir, true );
|
190 |
|
191 |
+
if ( wppa_is_user_blacklisted() ) wp_die(__( 'Importing is temporary disabled for you' , 'wp-photo-album-plus' ) );
|
192 |
wppa_grant_albums();
|
193 |
wppa_rename_files_sanitized( WPPA_DEPOT_PATH );
|
194 |
require_once 'wppa-import.php';
|
wppa-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
-
* Version 8.1.08.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -466,7 +466,7 @@ global $wppa;
|
|
466 |
// Security check
|
467 |
if ( wppa_switch( 'direct_comment' ) && wppa_switch( 'use_encrypted_links' ) && wppa_switch( 'refuse_unencrypted' ) ) {
|
468 |
if ( ! $photoid || ( wppa_get_photo_item( $photoid, 'album' ) < '1' ) ) {
|
469 |
-
_e( 'Missing or invalid photo id' , 'wp-photo-album-plus');
|
470 |
wppa_exit();
|
471 |
}
|
472 |
wppa_log('dbg', 'Bypassed nonce');
|
@@ -511,7 +511,7 @@ global $wppa;
|
|
511 |
$cid = wppa_get( 'comment-id' );
|
512 |
|
513 |
if ( ! current_user_can( 'wppa_moderate' ) && ! current_user_can( 'wppa_comments' ) ) {
|
514 |
-
_e( 'You do not have the rights to moderate photos this way' , 'wp-photo-album-plus');
|
515 |
wppa_exit();
|
516 |
}
|
517 |
|
@@ -534,7 +534,7 @@ global $wppa;
|
|
534 |
if ( $iret ) {
|
535 |
wppa_schedule_mailinglist( 'commentapproved', 0, 0, $cid );
|
536 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
537 |
-
__( 'Photo comment approved' , 'wp-photo-album-plus'),
|
538 |
$pid,
|
539 |
'',
|
540 |
wppa_get_photo_item( $pid, 'owner' )
|
@@ -551,14 +551,14 @@ global $wppa;
|
|
551 |
else {
|
552 |
if ( $pid ) {
|
553 |
if ( current_user_can( 'wppa_moderate' ) ) {
|
554 |
-
wppa_echo( sprintf( __( 'Failed to update stutus of photo %d' , 'wp-photo-album-plus'), $pid )."\n".__( 'Please refresh the page', 'wp-photo-album-plus' ) );
|
555 |
}
|
556 |
else {
|
557 |
wppa_secfail( '21' );
|
558 |
}
|
559 |
}
|
560 |
if ( $cid ) {
|
561 |
-
wppa_echo( sprintf( __( 'Failed to update stutus of comment %d' , 'wp-photo-album-plus'), $cid )."\n".__( 'Please refresh the page', 'wp-photo-album-plus' ) );
|
562 |
}
|
563 |
}
|
564 |
wppa_exit();
|
@@ -659,7 +659,7 @@ global $wppa;
|
|
659 |
$wppa_zip = new ZipArchive;
|
660 |
$iret = $wppa_zip->open( $zipfilepath, 1 );
|
661 |
if ( $iret !== true ) {
|
662 |
-
wppa_echo( '||ER||'.sprintf( __( 'Unable to create zip archive. code = %s' , 'wp-photo-album-plus'), $iret ) );
|
663 |
wppa_exit();
|
664 |
}
|
665 |
|
@@ -697,7 +697,7 @@ global $wppa;
|
|
697 |
$desturl = WPPA_UPLOAD_URL.'/temp/'.$zipfilename;
|
698 |
wppa_echo( $desturl.'||OK||' );
|
699 |
if ( $zipcount != count( $photos ) ) {
|
700 |
-
wppa_echo( sprintf( __( 'Only %s out of %s photos could be added to the zipfile' , 'wp-photo-album-plus'), $zipcount, count( $photos ) ) );
|
701 |
}
|
702 |
wppa_exit();
|
703 |
break;
|
@@ -911,7 +911,7 @@ global $wppa;
|
|
911 |
wppa_get_photo_name( $photo )
|
912 |
);
|
913 |
$content .=
|
914 |
-
'<br><br>' . __('His request specification is', 'wp-photo-album-plus') . '<br>' .
|
915 |
|
916 |
'<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
|
917 |
<em> ' . sanitize_text_field( wppa_get( 'emailtext' ) ) . '</em>
|
@@ -948,7 +948,7 @@ global $wppa;
|
|
948 |
$type = wppa_opt( 'art_monkey_popup_link' );
|
949 |
}
|
950 |
else {
|
951 |
-
wppa_echo( '||7||'.__( 'Unknown source of request' , 'wp-photo-album-plus') );
|
952 |
wppa_exit();
|
953 |
}
|
954 |
|
@@ -967,7 +967,7 @@ global $wppa;
|
|
967 |
$name = wppa_sanitize_file_name( $name ); // Remove illegal chars
|
968 |
$name = preg_replace( '/\.[^.]*$/', '', $name ); // Remove file extension
|
969 |
if ( strlen( $name ) == '0' ) {
|
970 |
-
wppa_echo( '||1||'.__( 'Empty filename' , 'wp-photo-album-plus') );
|
971 |
wppa_exit();
|
972 |
}
|
973 |
|
@@ -994,7 +994,7 @@ global $wppa;
|
|
994 |
$tempdir = WPPA_UPLOAD_PATH.'/temp';
|
995 |
if ( ! wppa_is_dir( $tempdir ) ) wppa_mkdir( $tempdir );
|
996 |
if ( ! wppa_is_dir( $tempdir ) ) {
|
997 |
-
wppa_echo( '||2||'.__( 'Unable to create tempdir' , 'wp-photo-album-plus') );
|
998 |
wppa_exit();
|
999 |
}
|
1000 |
|
@@ -1015,7 +1015,7 @@ global $wppa;
|
|
1015 |
$wppa_zip->close();
|
1016 |
}
|
1017 |
else {
|
1018 |
-
wppa_echo( '||6||'.__( 'Unknown type' , 'wp-photo-album-plus') );
|
1019 |
wppa_exit();
|
1020 |
}
|
1021 |
|
@@ -1027,7 +1027,7 @@ global $wppa;
|
|
1027 |
wppa_exit();
|
1028 |
}
|
1029 |
else {
|
1030 |
-
wppa_echo( '||9||'.__( 'The photo does no longer exist' , 'wp-photo-album-plus') );
|
1031 |
wppa_exit();
|
1032 |
}
|
1033 |
wppa_exit();
|
@@ -1084,7 +1084,7 @@ global $wppa;
|
|
1084 |
id="wppa-gutenberg-div-' . $wppa['mocc'] . '"
|
1085 |
style="position:relative;width:100%" >
|
1086 |
<div style="font-size:12px;color:green;margin-bottom:2px;width:100%;text-align:center;" >
|
1087 |
-
<i>(' . esc_html( __('Links and buttons will not work in this preview', 'wp-photo-album-plus') ) . ')</i>
|
1088 |
</div>' .
|
1089 |
$result . '
|
1090 |
</div>' );
|
@@ -1124,11 +1124,11 @@ global $wppa;
|
|
1124 |
$nonce = wppa_get( 'nonce' );
|
1125 |
|
1126 |
// Make errortext
|
1127 |
-
$errtxt = __( 'An error occurred while processing you rating request.' , 'wp-photo-album-plus');
|
1128 |
-
$errtxt .= "\n".__( 'Maybe you opened the page too long ago to recognize you.' , 'wp-photo-album-plus');
|
1129 |
-
$errtxt .= "\n".__( 'You may refresh the page and try again.' , 'wp-photo-album-plus');
|
1130 |
-
$wartxt = __( 'Althoug an error occurred while processing your rating, your vote has been registered.' , 'wp-photo-album-plus');
|
1131 |
-
$wartxt .= "\n".__( 'However, this may not be reflected in the current pageview' , 'wp-photo-album-plus');
|
1132 |
|
1133 |
// Security check
|
1134 |
if ( wppa_switch( 'direct_comment' ) && wppa_switch( 'use_encrypted_links' ) && wppa_switch( 'refuse_unencrypted' ) ) {
|
@@ -1221,14 +1221,14 @@ global $wppa;
|
|
1221 |
// The points to the commenter
|
1222 |
if ( $photo_owner != wppa_get_user() ) {
|
1223 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment' ),
|
1224 |
-
__( 'Photo comment' , 'wp-photo-album-plus'),
|
1225 |
$photo
|
1226 |
);
|
1227 |
}
|
1228 |
|
1229 |
// Add points to the owner
|
1230 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
1231 |
-
__( 'Photo comment approved' , 'wp-photo-album-plus'),
|
1232 |
$photo,
|
1233 |
'',
|
1234 |
$photo_owner
|
@@ -1308,13 +1308,13 @@ global $wppa;
|
|
1308 |
|
1309 |
// I did a dislike, can not modify
|
1310 |
if ( $mylast < '0' ) {
|
1311 |
-
wppa_echo( '0||900||'.__('You can not change a dislike', 'wp-photo-album-plus') );
|
1312 |
wppa_exit();
|
1313 |
}
|
1314 |
|
1315 |
// I did a rating, can not change into dislike
|
1316 |
if ( $mylast > '0' && $rating == '-1' ) {
|
1317 |
-
wppa_echo( '0||900||'.__('You can not change your vote into a dislike', 'wp-photo-album-plus') );
|
1318 |
wppa_exit();
|
1319 |
}
|
1320 |
}
|
@@ -1330,7 +1330,7 @@ global $wppa;
|
|
1330 |
}
|
1331 |
|
1332 |
// Add points
|
1333 |
-
wppa_add_credit_points( wppa_opt( 'cp_points_rating' ), __( 'Photo rated' , 'wp-photo-album-plus'), $photo, $rating );
|
1334 |
|
1335 |
// Check for email to be sent every .. dislikes
|
1336 |
wppa_dislike_check( $photo );
|
@@ -1351,7 +1351,7 @@ global $wppa;
|
|
1351 |
wppa_exit(); // Fail on storing vote
|
1352 |
}
|
1353 |
// Add points
|
1354 |
-
wppa_add_credit_points( wppa_opt( 'cp_points_rating' ), __( 'Photo rated' , 'wp-photo-album-plus'), $photo, $rating );
|
1355 |
}
|
1356 |
|
1357 |
// Case 3: I will change my previously given vote
|
@@ -1380,7 +1380,7 @@ global $wppa;
|
|
1380 |
}
|
1381 |
|
1382 |
else { // Should never get here....
|
1383 |
-
wppa_echo( '0||110||'.__( 'Unexpected error' , 'wp-photo-album-plus') );
|
1384 |
wppa_exit();
|
1385 |
}
|
1386 |
|
@@ -1475,7 +1475,7 @@ global $wppa;
|
|
1475 |
wppa_clear_cache( ['photo' => $photo] );
|
1476 |
|
1477 |
if ( wppa_switch( 'vote_needs_comment' ) && ! $hascommented ) {
|
1478 |
-
$message = __( "Please explain your vote in a comment.\nYour vote will be discarded if you don't.\n\nAfter completing your comment,\nyou can refresh the page to see\nyour vote became effective." , 'wp-photo-album-plus');
|
1479 |
}
|
1480 |
else {
|
1481 |
$message = '';
|
@@ -1513,17 +1513,17 @@ global $wppa;
|
|
1513 |
|
1514 |
// Check validity
|
1515 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
1516 |
-
wppa_echo( '||0||'.__( 'You do not have the rights to delete a photo' , 'wp-photo-album-plus') );
|
1517 |
wppa_exit(); // Nonce check failed
|
1518 |
}
|
1519 |
if ( ! is_numeric( $photo ) ) {
|
1520 |
-
wppa_echo( '||0||'.__( 'Security check failure' , 'wp-photo-album-plus') );
|
1521 |
wppa_exit(); // Nonce check failed
|
1522 |
}
|
1523 |
|
1524 |
// Non admins/superusers can only delete their own photos
|
1525 |
if ( ! wppa_user_is( 'administrator' ) && wppa_get_photo_item( $photo, 'owner' ) != wppa_get_user() ) {
|
1526 |
-
wppa_echo( '||0||'.__( 'You do not have the rights to delete this photo' , 'wp-photo-album-plus') );
|
1527 |
wppa_exit();
|
1528 |
}
|
1529 |
|
@@ -1552,11 +1552,11 @@ global $wppa;
|
|
1552 |
|
1553 |
// Check validity
|
1554 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
1555 |
-
wppa_echo( '||0||'.__( 'You do not have the rights to undelete a photo' , 'wp-photo-album-plus') );
|
1556 |
wppa_exit(); // Nonce check failed
|
1557 |
}
|
1558 |
if ( ! is_numeric( $photo ) ) {
|
1559 |
-
wppa_echo( '||0||'.__( 'Security check failure' , 'wp-photo-album-plus') );
|
1560 |
wppa_exit(); // Nonce check failed
|
1561 |
}
|
1562 |
|
@@ -1588,7 +1588,7 @@ global $wppa;
|
|
1588 |
|
1589 |
// Check validity
|
1590 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$album ) ) {
|
1591 |
-
wppa_echo( '||0||'.__( 'You do not have the rights to update album information' , 'wp-photo-album-plus').$nonce );
|
1592 |
wppa_exit(); // Nonce check failed
|
1593 |
}
|
1594 |
|
@@ -1601,13 +1601,13 @@ global $wppa;
|
|
1601 |
$iret2 = wppa_update_photo( array( 'id' => $photo['id'], 'mean_rating' => '' ) );
|
1602 |
}
|
1603 |
if ( $photos && $iret1 !== false && $iret2 !== false ) {
|
1604 |
-
wppa_echo( '||0||'.__( 'Ratings cleared' , 'wp-photo-album-plus').'||'.__( 'No ratings for this photo.' , 'wp-photo-album-plus') );
|
1605 |
}
|
1606 |
elseif ( $photos ) {
|
1607 |
-
wppa_echo( '||1||'.__( 'An error occurred while clearing ratings' , 'wp-photo-album-plus') );
|
1608 |
}
|
1609 |
else {
|
1610 |
-
wppa_echo( '||0||'.__( 'No photos in this album' , 'wp-photo-album-plus').'||'.__( 'No ratings for this photo.' , 'wp-photo-album-plus') );
|
1611 |
}
|
1612 |
wppa_exit();
|
1613 |
break;
|
@@ -1624,14 +1624,14 @@ global $wppa;
|
|
1624 |
$iret = wppa_update_photo( array( 'id' => $photo['id'], 'tags' => $tags ) );
|
1625 |
}
|
1626 |
if ( $photos && $iret !== false ) {
|
1627 |
-
wppa_echo( '||0||'.__( 'Tags set to defaults' , 'wp-photo-album-plus') );
|
1628 |
wppa_update_album( $album );
|
1629 |
}
|
1630 |
elseif ( $photos ) {
|
1631 |
-
wppa_echo( '||1||'.__( 'An error occurred while setting tags' , 'wp-photo-album-plus') );
|
1632 |
}
|
1633 |
else {
|
1634 |
-
wppa_echo( '||0||'.__( 'No photos in this album' , 'wp-photo-album-plus') );
|
1635 |
}
|
1636 |
wppa_clear_taglist();
|
1637 |
wppa_exit();
|
@@ -1650,13 +1650,13 @@ global $wppa;
|
|
1650 |
}
|
1651 |
if ( $photos && $iret !== false ) {
|
1652 |
wppa_update_album( $album );
|
1653 |
-
wppa_echo( '||0||'.__( 'Tags added with defaults' , 'wp-photo-album-plus') );
|
1654 |
}
|
1655 |
elseif ( $photos ) {
|
1656 |
-
wppa_echo( '||1||'.__( 'An error occurred while adding tags' , 'wp-photo-album-plus') );
|
1657 |
}
|
1658 |
else {
|
1659 |
-
wppa_echo( '||0||'.__( 'No photos in this album' , 'wp-photo-album-plus') );
|
1660 |
}
|
1661 |
wppa_clear_taglist();
|
1662 |
wppa_exit();
|
@@ -1697,23 +1697,23 @@ global $wppa;
|
|
1697 |
$value = 'Album-#' . $album;
|
1698 |
wppa_echo( '||5||' . sprintf( __( 'Album name may not be empty.<br>Reset to %s', 'wp-photo-album-plus' ), htmlentities( $value ) ) );
|
1699 |
}
|
1700 |
-
$itemname = __( 'Name' , 'wp-photo-album-plus');
|
1701 |
wppa_update_album( array( 'id' => $album, 'name' => $value, 'modified' => time() ) );
|
1702 |
break;
|
1703 |
case 'description':
|
1704 |
-
$itemname = __( 'Description' , 'wp-photo-album-plus');
|
1705 |
$value = str_replace( array( '<br/>','<br>' ), '<br>', $value );
|
1706 |
$value = trim( $value );
|
1707 |
wppa_update_album( array( 'id' => $album, 'description' => $value, 'modified' => time() ) );
|
1708 |
break;
|
1709 |
case 'a_order':
|
1710 |
-
$itemname = __( 'Album order #' , 'wp-photo-album-plus');
|
1711 |
break;
|
1712 |
case 'main_photo':
|
1713 |
-
$itemname = __( 'Cover photo' , 'wp-photo-album-plus');
|
1714 |
break;
|
1715 |
case 'a_parent':
|
1716 |
-
$itemname = __( 'Parent album' , 'wp-photo-album-plus');
|
1717 |
if ( $album == $value ) {
|
1718 |
$value = '-1';
|
1719 |
}
|
@@ -1723,34 +1723,34 @@ global $wppa;
|
|
1723 |
wppa_childlist_remove( $value );
|
1724 |
break;
|
1725 |
case 'p_order_by':
|
1726 |
-
$itemname = __( 'Photo order' , 'wp-photo-album-plus');
|
1727 |
break;
|
1728 |
case 'alt_thumbsize':
|
1729 |
-
$itemname = __( 'Use Alt thumbsize' , 'wp-photo-album-plus');
|
1730 |
break;
|
1731 |
case 'cover_type':
|
1732 |
-
$itemname = __( 'Cover Type' , 'wp-photo-album-plus');
|
1733 |
break;
|
1734 |
case 'cover_linktype':
|
1735 |
-
$itemname = __( 'Link type' , 'wp-photo-album-plus');
|
1736 |
break;
|
1737 |
case 'cover_linkpage':
|
1738 |
-
$itemname = __( 'Link to' , 'wp-photo-album-plus');
|
1739 |
break;
|
1740 |
case 'cover_link':
|
1741 |
$itemname = __( 'Link target (url)', 'wp-photo-album-plus' );
|
1742 |
break;
|
1743 |
case 'owner':
|
1744 |
-
$itemname = __( 'Owner' , 'wp-photo-album-plus');
|
1745 |
if ( $value != '--- public ---' && ! wppa_get_user_by( 'login', $value ) ) {
|
1746 |
-
wppa_echo( '||4||'.sprintf( __( 'User %s does not exist' , 'wp-photo-album-plus'), $value ) );
|
1747 |
wppa_exit();
|
1748 |
}
|
1749 |
break;
|
1750 |
case 'upload_limit_count':
|
1751 |
-
wppa_ajax_check_range( $value, false, '-1', false, __( 'Upload limit count' , 'wp-photo-album-plus') );
|
1752 |
if ( wppa( 'error' ) ) {
|
1753 |
-
wppa_echo( '||7||'.__('Invalid value', 'wp-photo-album-plus') );
|
1754 |
wppa_exit();
|
1755 |
}
|
1756 |
$oldval = $wpdb->get_var( $wpdb->prepare( "SELECT upload_limit FROM $wpdb->wppa_albums
|
@@ -1758,7 +1758,7 @@ global $wppa;
|
|
1758 |
$temp = explode( '/', $oldval );
|
1759 |
$value = $value.'/'.$temp[1];
|
1760 |
$item = 'upload_limit';
|
1761 |
-
$itemname = __( 'Upload limit count' , 'wp-photo-album-plus');
|
1762 |
break;
|
1763 |
case 'upload_limit_time':
|
1764 |
$oldval = $wpdb->get_var( $wpdb->prepare( "SELECT upload_limit FROM $wpdb->wppa_albums
|
@@ -1766,19 +1766,19 @@ global $wppa;
|
|
1766 |
$temp = explode( '/', $oldval );
|
1767 |
$value = $temp[0].'/'.$value;
|
1768 |
$item = 'upload_limit';
|
1769 |
-
$itemname = __( 'Upload limit time' , 'wp-photo-album-plus');
|
1770 |
break;
|
1771 |
case 'default_tags':
|
1772 |
$value = wppa_sanitize_tags( $value, false, true );
|
1773 |
-
$itemname = __( 'Default tags' , 'wp-photo-album-plus');
|
1774 |
break;
|
1775 |
case 'cats':
|
1776 |
$value = wppa_sanitize_cats( $value );
|
1777 |
wppa_clear_catlist();
|
1778 |
-
$itemname = __( 'Categories' , 'wp-photo-album-plus');
|
1779 |
break;
|
1780 |
case 'suba_order_by':
|
1781 |
-
$itemname = __( 'Sub albums sort order' , 'wp-photo-album-plus');
|
1782 |
break;
|
1783 |
|
1784 |
case 'year':
|
@@ -1786,7 +1786,7 @@ global $wppa;
|
|
1786 |
case 'day':
|
1787 |
case 'hour':
|
1788 |
case 'min':
|
1789 |
-
$itemname = __( 'Schedule date/time' , 'wp-photo-album-plus');
|
1790 |
$scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledtm
|
1791 |
FROM $wpdb->wppa_albums
|
1792 |
WHERE id = %d", $album ) );
|
@@ -1810,7 +1810,7 @@ global $wppa;
|
|
1810 |
case 'delday':
|
1811 |
case 'delhour':
|
1812 |
case 'delmin':
|
1813 |
-
$itemname = __( 'Delete date/time' , 'wp-photo-album-plus');
|
1814 |
$scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledel
|
1815 |
FROM $wpdb->wppa_albums
|
1816 |
WHERE id = %d", $album ) );
|
@@ -1884,17 +1884,17 @@ global $wppa;
|
|
1884 |
$custom = serialize( $custom_data );
|
1885 |
wppa_update_album( array( 'id' => $album, 'custom' => $custom, 'modified' => time() ) );
|
1886 |
wppa_index_update( 'album', $album );
|
1887 |
-
wppa_echo( '||0||'.sprintf( __( 'Custom field %s updated' , 'wp-photo-album-plus'), wppa_opt( 'album_custom_caption_'.$index ) ) );
|
1888 |
wppa_exit();
|
1889 |
break;
|
1890 |
|
1891 |
case 'scheduledel':
|
1892 |
$value = '';
|
1893 |
-
$itemname = __( 'Delete date/time' , 'wp-photo-album-plus');
|
1894 |
break;
|
1895 |
case 'scheduledtm':
|
1896 |
$value = '';
|
1897 |
-
$itemname = __( 'Schedule date/time' , 'wp-photo-album-plus');
|
1898 |
break;
|
1899 |
|
1900 |
default:
|
@@ -1920,7 +1920,7 @@ global $wppa;
|
|
1920 |
}
|
1921 |
else {
|
1922 |
wppa_echo( '||2||' .
|
1923 |
-
sprintf( __( 'An error occurred while trying to update %s of album %s' , 'wp-photo-album-plus'), $itemname, htmlentities( $album ) ) .
|
1924 |
'<br>' .
|
1925 |
__( 'Press CTRL+F5 and try again.', 'wp-photo-album-plus' )
|
1926 |
);
|
@@ -1937,7 +1937,7 @@ global $wppa;
|
|
1937 |
|
1938 |
// Check validity
|
1939 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
1940 |
-
wppa_echo( '||0||'.__( 'You do not have the rights to update comment status' , 'wp-photo-album-plus').$nonce );
|
1941 |
wppa_exit(); // Nonce check failed
|
1942 |
}
|
1943 |
|
@@ -1950,16 +1950,16 @@ global $wppa;
|
|
1950 |
if ( $comstat == 'approved' ) {
|
1951 |
wppa_schedule_mailinglist( 'commentapproved', 0, 0, $comid );
|
1952 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
1953 |
-
__( 'Photo comment approved' , 'wp-photo-album-plus'),
|
1954 |
$photo,
|
1955 |
'',
|
1956 |
wppa_get_photo_item( $photo, 'owner' )
|
1957 |
);
|
1958 |
}
|
1959 |
-
wppa_echo( '||0||'.sprintf( __( 'Status of comment #%s updated' , 'wp-photo-album-plus'), $comid ) );
|
1960 |
}
|
1961 |
else {
|
1962 |
-
wppa_echo( '||1||'.sprintf( __( 'Error updating status comment #%s' , 'wp-photo-album-plus'), $comid ) );
|
1963 |
}
|
1964 |
wppa_exit();
|
1965 |
break;
|
@@ -2012,13 +2012,13 @@ global $wppa;
|
|
2012 |
|
2013 |
// Check validity
|
2014 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
2015 |
-
$txt = __( 'You do not have the rights to update photo information' , 'wp-photo-album-plus');
|
2016 |
wppa_json_photo_update( $photo, $txt, '1' ); // Nonce check failed
|
2017 |
}
|
2018 |
|
2019 |
if ( substr( $item, 0, 20 ) == 'wppa_watermark_file_' || substr( $item, 0, 19 ) == 'wppa_watermark_pos_' ) {
|
2020 |
wppa_update_option( $item, $value );
|
2021 |
-
$txt = sprintf( __( '%s updated to %s.' , 'wp-photo-album-plus'), $item, $value );
|
2022 |
wppa_json_photo_update( $photo, $txt );
|
2023 |
}
|
2024 |
|
@@ -2071,18 +2071,18 @@ global $wppa;
|
|
2071 |
if ( ! $err && $temp['5'] > '59' ) $err = '23'; // Sec > 59
|
2072 |
}
|
2073 |
if ( $err ) {
|
2074 |
-
$txt = sprintf( __( 'Format error %s. Must be yyyy:mm:dd hh:mm:ss' , 'wp-photo-album-plus'), $err );
|
2075 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2076 |
}
|
2077 |
else {
|
2078 |
wppa_update_photo( array( 'id' => $photo, 'exifdtm' => $value ) );
|
2079 |
-
$txt = __( 'Exif date/time updated' , 'wp-photo-album-plus');
|
2080 |
wppa_json_photo_update( $photo, $txt );
|
2081 |
}
|
2082 |
break;
|
2083 |
case 'lat':
|
2084 |
if ( ! is_numeric( $value ) || $value < '-90.0' || $value > '90.0' ) {
|
2085 |
-
$txt = __( 'Enter a value > -90 and < 90' , 'wp-photo-album-plus');
|
2086 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2087 |
}
|
2088 |
$photodata = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
@@ -2092,18 +2092,18 @@ global $wppa;
|
|
2092 |
$geo = wppa_format_geo( $value, $geo['3'] );
|
2093 |
$iret = wppa_update_photo( array( 'id' => $photo, 'location' => $geo ) );
|
2094 |
if ( $iret ) {
|
2095 |
-
$txt = __( 'Lattitude updated' , 'wp-photo-album-plus');
|
2096 |
$err = '0';
|
2097 |
}
|
2098 |
else {
|
2099 |
-
$txt = __( 'Could not update latitude' , 'wp-photo-album-plus');
|
2100 |
$err = '1';
|
2101 |
}
|
2102 |
wppa_json_photo_update( $photo, $txt, $err );
|
2103 |
break;
|
2104 |
case 'lon':
|
2105 |
if ( ! is_numeric( $value ) || $value < '-180.0' || $value > '180.0' ) {
|
2106 |
-
$txt = __( 'Enter a value > -180 and < 180' , 'wp-photo-album-plus');
|
2107 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2108 |
}
|
2109 |
$photodata = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
@@ -2134,7 +2134,7 @@ global $wppa;
|
|
2134 |
wppa_json_photo_update( $photo, $txt, '0', ( $extra ? false : true ), true );
|
2135 |
}
|
2136 |
else {
|
2137 |
-
$txt = __( 'Could not remake files' , 'wp-photo-album-plus');
|
2138 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2139 |
}
|
2140 |
break;
|
@@ -2155,13 +2155,13 @@ global $wppa;
|
|
2155 |
case 'flop':
|
2156 |
switch ( $item ) {
|
2157 |
case 'rotleft':
|
2158 |
-
$dir = __( 'left' , 'wp-photo-album-plus');
|
2159 |
break;
|
2160 |
case 'rot180':
|
2161 |
-
$dir = __( '180°' , 'wp-photo-album-plus');
|
2162 |
break;
|
2163 |
case 'rotright':
|
2164 |
-
$dir = __( 'right' , 'wp-photo-album-plus');
|
2165 |
break;
|
2166 |
case 'flip':
|
2167 |
case 'flop':
|
@@ -2180,13 +2180,13 @@ global $wppa;
|
|
2180 |
$extra = '';
|
2181 |
}
|
2182 |
if ( $item == 'flip' ) {
|
2183 |
-
$txt = sprintf( __( 'Photo flipped' , 'wp-photo-album-plus'), $photo ) . $extra;
|
2184 |
}
|
2185 |
elseif ( $item == 'flop' ) {
|
2186 |
-
$txt = sprintf( __( 'Photo flipped' , 'wp-photo-album-plus'), $photo ) . $extra;
|
2187 |
}
|
2188 |
else {
|
2189 |
-
$txt = sprintf( __( 'Photo %s rotated %s' , 'wp-photo-album-plus'), $photo, $dir ) . $extra;
|
2190 |
}
|
2191 |
wppa_json_photo_update( $photo, $txt, '0', true, true );
|
2192 |
}
|
@@ -2403,7 +2403,7 @@ global $wppa;
|
|
2403 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2404 |
$exists = wppa_is_file_duplicate_photo( $photodata['filename'], $value );
|
2405 |
if ( $exists ) { // Already exists
|
2406 |
-
$txt = sprintf ( __( 'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus'), $photodata['filename'], $value );
|
2407 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2408 |
break;
|
2409 |
}
|
@@ -2423,7 +2423,7 @@ global $wppa;
|
|
2423 |
wppa_exit();
|
2424 |
}
|
2425 |
else {
|
2426 |
-
$txt = sprintf( __( 'An error occurred while trying to move photo %s' , 'wp-photo-album-plus'), $photo );
|
2427 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2428 |
wppa_exit();
|
2429 |
}
|
@@ -2436,7 +2436,7 @@ global $wppa;
|
|
2436 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2437 |
$exists = wppa_is_file_duplicate_photo( $photodata['filename'], $value );
|
2438 |
if ( $exists ) { // Already exists
|
2439 |
-
$txt = sprintf( __( 'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus'), $photodata['filename'], $value );
|
2440 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2441 |
break;
|
2442 |
}
|
@@ -2449,11 +2449,11 @@ global $wppa;
|
|
2449 |
wppa( 'error', wppa_copy_photo( $photo, $value ) );
|
2450 |
wppa_invalidate_treecounts( $value ); // New album
|
2451 |
if ( ! wppa( 'error' ) ) {
|
2452 |
-
$txt = sprintf( __( 'Photo %s copied to album %s (%s)' , 'wp-photo-album-plus'), $photo, wppa_get_album_name( $value ), $value );
|
2453 |
wppa_json_photo_update( $photo, $txt, '0' );
|
2454 |
}
|
2455 |
else {
|
2456 |
-
$txt = sprintf( __( 'An error occurred while trying to copy photo %s' , 'wp-photo-album-plus'), $photo );
|
2457 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2458 |
}
|
2459 |
break;
|
@@ -2477,63 +2477,63 @@ global $wppa;
|
|
2477 |
if ( wppa_get_photo_item( $photo, 'status' ) == 'pending' && $value == 'publish' ) {
|
2478 |
wppa_schedule_mailinglist( 'photoapproved', 0, $photo );
|
2479 |
}
|
2480 |
-
$itemname = __( 'Status', 'wp-photo-album-plus');
|
2481 |
break;
|
2482 |
case 'name':
|
2483 |
$value = strip_tags( $value );
|
2484 |
-
$itemname = __( 'Name', 'wp-photo-album-plus');
|
2485 |
wppa_update_photo( array( 'id' => $photo, 'name' => $value ) );
|
2486 |
break;
|
2487 |
case 'description':
|
2488 |
-
$itemname = __( 'Description', 'wp-photo-album-plus');
|
2489 |
break;
|
2490 |
case 'p_order':
|
2491 |
-
$itemname = __( 'Photo order #' , 'wp-photo-album-plus');
|
2492 |
break;
|
2493 |
case 'owner':
|
2494 |
$usr = wppa_get_user_by( 'login', $value );
|
2495 |
if ( ! $usr ) {
|
2496 |
-
wppa_echo( '||4||' . sprintf( __( 'User %s does not exists' , 'wp-photo-album-plus'), $value ) );
|
2497 |
wppa_exit();
|
2498 |
}
|
2499 |
$value = $usr->user_login; // Correct possible case mismatch
|
2500 |
wppa_flush_upldr_cache( 'photoid', $photo ); // Current owner
|
2501 |
wppa_flush_upldr_cache( 'username', $value ); // New owner
|
2502 |
-
$itemname = __( 'Owner' , 'wp-photo-album-plus');
|
2503 |
break;
|
2504 |
case 'linkurl':
|
2505 |
-
$itemname = __( 'Link url' , 'wp-photo-album-plus');
|
2506 |
break;
|
2507 |
case 'linktitle':
|
2508 |
-
$itemname = __( 'Link title' , 'wp-photo-album-plus');
|
2509 |
break;
|
2510 |
case 'linktarget':
|
2511 |
-
$itemname = __( 'Link target' , 'wp-photo-album-plus');
|
2512 |
break;
|
2513 |
case 'tags':
|
2514 |
$value = wppa_sanitize_tags( $value, false, true );
|
2515 |
$value = wppa_sanitize_tags( wppa_filter_iptc( wppa_filter_exif( $value, $photo ), $photo ) );
|
2516 |
wppa_clear_taglist();
|
2517 |
-
$itemname = __( 'Photo Tags' , 'wp-photo-album-plus');
|
2518 |
break;
|
2519 |
case 'status':
|
2520 |
wppa_clear_taglist();
|
2521 |
wppa_flush_upldr_cache( 'photoid', $photo );
|
2522 |
-
$itemname = __( 'Status' , 'wp-photo-album-plus');
|
2523 |
break;
|
2524 |
case 'alt':
|
2525 |
-
$itemname = __( 'HTML Alt' , 'wp-photo-album-plus');
|
2526 |
$value = strip_tags( stripslashes( $value ) );
|
2527 |
break;
|
2528 |
case 'videox':
|
2529 |
-
$itemname = __( 'Video width' , 'wp-photo-album-plus');
|
2530 |
if ( ! wppa_is_int( $value ) || $value < '0' ) {
|
2531 |
$txt = __( 'Please enter an integer value >= 0', 'wp-photo-album-plus' );
|
2532 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2533 |
}
|
2534 |
break;
|
2535 |
case 'videoy':
|
2536 |
-
$itemname = __( 'Video height', 'wp-photo-album-plus');
|
2537 |
if ( ! wppa_is_int( $value ) || $value < '0' ) {
|
2538 |
$txt = __( 'Please enter an integer value >= 0', 'wp-photo-album-plus' );
|
2539 |
wppa_json_photo_update( $photo, $txt, '1' );
|
@@ -2651,10 +2651,10 @@ global $wppa;
|
|
2651 |
if ( $iret !== false ) {
|
2652 |
wppa_update_modified( $photo );
|
2653 |
if ( wppa_is_video( $photo ) ) {
|
2654 |
-
$txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
|
2655 |
}
|
2656 |
else {
|
2657 |
-
$txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
|
2658 |
}
|
2659 |
$err = '0';
|
2660 |
}
|
@@ -2670,7 +2670,7 @@ global $wppa;
|
|
2670 |
case 'day':
|
2671 |
case 'hour':
|
2672 |
case 'min':
|
2673 |
-
$itemname = __( 'Schedule date/time' , 'wp-photo-album-plus');
|
2674 |
$scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledtm FROM $wpdb->wppa_photos WHERE id = %s", $photo ) );
|
2675 |
if ( ! $scheduledtm ) {
|
2676 |
$scheduledtm = wppa_get_default_scheduledtm();
|
@@ -2686,10 +2686,10 @@ global $wppa;
|
|
2686 |
wppa_invalidate_treecounts( $wpdb->get_var( $wpdb->prepare( "SELECT album FROM $wpdb->wppa_photos WHERE id = %s", $photo ) ) );
|
2687 |
wppa_flush_upldr_cache( 'photoid', $photo );
|
2688 |
if ( wppa_is_video( $photo ) ) {
|
2689 |
-
$txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
|
2690 |
}
|
2691 |
else {
|
2692 |
-
$txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
|
2693 |
}
|
2694 |
wppa_json_photo_update( $photo, $txt );
|
2695 |
break;
|
@@ -2699,7 +2699,7 @@ global $wppa;
|
|
2699 |
case 'delday':
|
2700 |
case 'delhour':
|
2701 |
case 'delmin':
|
2702 |
-
$itemname = __( 'Delete date/time' , 'wp-photo-album-plus');
|
2703 |
$scheduledel = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledel FROM $wpdb->wppa_photos WHERE id = %s", $photo ) );
|
2704 |
if ( ! $scheduledel ) {
|
2705 |
$scheduledel = wppa_get_default_scheduledtm();
|
@@ -2722,17 +2722,17 @@ global $wppa;
|
|
2722 |
wppa_invalidate_treecounts( $alb );
|
2723 |
wppa_flush_upldr_cache( 'photoid', $photo );
|
2724 |
if ( wppa_is_video( $photo ) ) {
|
2725 |
-
$txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
|
2726 |
}
|
2727 |
else {
|
2728 |
-
$txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
|
2729 |
}
|
2730 |
wppa_json_photo_update( $photo, $txt );
|
2731 |
break;
|
2732 |
case 'removescheduledel':
|
2733 |
if ( ( current_user_can( 'wppa_admin' ) || current_user_can( 'wppa_moderate' ) ) ) {
|
2734 |
wppa_update_photo( array( 'id' => $photo, 'scheduledel' => '' ) );
|
2735 |
-
$txt = sprintf( __( 'Scheduled deletion of photo %s cancelled' , 'wp-photo-album-plus'), $photo );
|
2736 |
$err = '0';
|
2737 |
}
|
2738 |
else {
|
@@ -2764,7 +2764,7 @@ global $wppa;
|
|
2764 |
$custom = serialize( $custom_data );
|
2765 |
wppa_update_photo( array( 'id' => $photo, 'custom' => $custom, 'modified' => time() ) );
|
2766 |
wppa_index_update( 'photo', $photo );
|
2767 |
-
$txt = sprintf( __( 'Custom field %s of photo %s updated' , 'wp-photo-album-plus'), wppa_opt( 'custom_caption_'.$index ), $photo );
|
2768 |
wppa_json_photo_update( $photo, $txt );
|
2769 |
break;
|
2770 |
|
@@ -2817,7 +2817,7 @@ global $wppa;
|
|
2817 |
) );
|
2818 |
|
2819 |
// Report success
|
2820 |
-
$txt = __( 'Photo files updated.', 'wp-photo-album-plus');
|
2821 |
wppa_json_photo_update( $photo, $txt, '0', true, true );
|
2822 |
}
|
2823 |
else {
|
@@ -2834,7 +2834,7 @@ global $wppa;
|
|
2834 |
wppa_create_stereo_images( $photo );
|
2835 |
wppa_create_thumbnail( $photo );
|
2836 |
$t = microtime(true) - $t;
|
2837 |
-
$txt = sprintf( __( 'Stereo mode updated in %d milliseconds', 'wp-photo-album-plus'), floor( $t * 1000 ) );
|
2838 |
wppa_json_photo_update( $photo, $txt, '0', true, true );
|
2839 |
break;
|
2840 |
|
@@ -2945,7 +2945,7 @@ global $wppa;
|
|
2945 |
|
2946 |
// Check validity
|
2947 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
2948 |
-
$txt = __( 'You do not have the rights to update photo information' , 'wp-photo-album-plus');
|
2949 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2950 |
}
|
2951 |
|
@@ -3096,12 +3096,12 @@ global $wppa;
|
|
3096 |
$setting = explode( '-', $option );
|
3097 |
if ( $value == 'yes' ) {
|
3098 |
$wp_roles->add_cap( $setting[2], $setting[1] );
|
3099 |
-
wppa_echo( '||0||'.__( 'Capability granted' , 'wp-photo-album-plus').'||' );
|
3100 |
wppa_exit();
|
3101 |
}
|
3102 |
elseif ( $value == 'no' ) {
|
3103 |
$wp_roles->remove_cap( $setting[2], $setting[1] );
|
3104 |
-
wppa_echo( '||0||'.__( 'Capability withdrawn' , 'wp-photo-album-plus').'||' );
|
3105 |
wppa_exit();
|
3106 |
}
|
3107 |
else {
|
@@ -3119,7 +3119,7 @@ global $wppa;
|
|
3119 |
update_option( 'wppa_qr_cache_hits', '0' );
|
3120 |
update_option( 'wppa_qr_cache_miss', '0' );
|
3121 |
wppa_update_option( $option, $value );
|
3122 |
-
$title = sprintf( __( 'Setting %s updated to %s', 'wp-photo-album-plus'), $option, $value );
|
3123 |
|
3124 |
// Something to do after changing the setting?
|
3125 |
wppa_initialize_runtime( true ); // force reload new values
|
@@ -3172,137 +3172,137 @@ global $wppa;
|
|
3172 |
break;
|
3173 |
|
3174 |
case 'wppa_initial_colwidth'://?? fixed low high title
|
3175 |
-
wppa_ajax_check_range( $value, false, '100', false, __( 'Initial width.' , 'wp-photo-album-plus') );
|
3176 |
break;
|
3177 |
case 'wppa_fullsize':
|
3178 |
-
wppa_ajax_check_range( $value, false, '100', false, __( 'Full size.' , 'wp-photo-album-plus') );
|
3179 |
break;
|
3180 |
case 'wppa_maxheight':
|
3181 |
-
wppa_ajax_check_range( $value, false, '100', false, __( 'Max height.' , 'wp-photo-album-plus') );
|
3182 |
break;
|
3183 |
case 'wppa_film_thumbsize':
|
3184 |
case 'wppa_thumbsize':
|
3185 |
case 'wppa_thumbsize_alt':
|
3186 |
-
wppa_ajax_check_range( $value, false, '50', false, __( 'Thumbnail size.' , 'wp-photo-album-plus') );
|
3187 |
break;
|
3188 |
case 'wppa_tf_width':
|
3189 |
case 'wppa_tf_width_alt':
|
3190 |
-
wppa_ajax_check_range( $value, false, '50', false, __( 'Thumbnail frame width' , 'wp-photo-album-plus') );
|
3191 |
break;
|
3192 |
case 'wppa_tf_height':
|
3193 |
case 'wppa_tf_height_alt':
|
3194 |
-
wppa_ajax_check_range( $value, false, '50',false, __( 'Thumbnail frame height' , 'wp-photo-album-plus') );
|
3195 |
break;
|
3196 |
case 'wppa_tn_margin':
|
3197 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Thumbnail Spacing' , 'wp-photo-album-plus') );
|
3198 |
break;
|
3199 |
case 'wppa_thumb_page_size':
|
3200 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Thumb page size.' , 'wp-photo-album-plus') );
|
3201 |
break;
|
3202 |
case 'wppa_smallsize':
|
3203 |
-
wppa_ajax_check_range( $value, false, '50', false, __( 'Cover photo size.' , 'wp-photo-album-plus') );
|
3204 |
break;
|
3205 |
case 'wppa_smallsize_percentage':
|
3206 |
-
wppa_ajax_check_range( $value, false, '10', '100', __( 'Cover photo size.' , 'wp-photo-album-plus') );
|
3207 |
break;
|
3208 |
case 'wppa_album_page_size':
|
3209 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Album page size.' , 'wp-photo-album-plus') );
|
3210 |
break;
|
3211 |
case 'wppa_topten_count':
|
3212 |
-
wppa_ajax_check_range( $value, false, '2', false, __( 'Number of TopTen photos' , 'wp-photo-album-plus'), '40' );
|
3213 |
break;
|
3214 |
case 'wppa_topten_size':
|
3215 |
-
wppa_ajax_check_range( $value, false, '32', false, __( 'Widget image thumbnail size' , 'wp-photo-album-plus'), wppa_get_minisize() );
|
3216 |
break;
|
3217 |
case 'wppa_max_cover_width':
|
3218 |
-
wppa_ajax_check_range( $value, false, '150', false, __( 'Max Cover width' , 'wp-photo-album-plus') );
|
3219 |
break;
|
3220 |
case 'wppa_text_frame_height':
|
3221 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Minimal description height' , 'wp-photo-album-plus') );
|
3222 |
break;
|
3223 |
case 'wppa_cover_minheight':
|
3224 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Minimal cover height' , 'wp-photo-album-plus') );
|
3225 |
break;
|
3226 |
case 'wppa_head_and_text_frame_height':
|
3227 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Minimal text frame height' , 'wp-photo-album-plus') );
|
3228 |
break;
|
3229 |
case 'wppa_bwidth':
|
3230 |
-
wppa_ajax_check_range( $value, '', '0', false, __( 'Border width' , 'wp-photo-album-plus') );
|
3231 |
break;
|
3232 |
case 'wppa_bradius':
|
3233 |
-
wppa_ajax_check_range( $value, '', '0', false, __( 'Border radius' , 'wp-photo-album-plus') );
|
3234 |
break;
|
3235 |
case 'wppa_box_spacing':
|
3236 |
-
wppa_ajax_check_range( $value, '', '-20', '100', __( 'Box spacing' , 'wp-photo-album-plus') );
|
3237 |
break;
|
3238 |
case 'wppa_popupsize':
|
3239 |
$floor = wppa_opt( 'thumbsize' );
|
3240 |
$temp = wppa_opt( 'smallsize' );
|
3241 |
if ( $temp > $floor ) $floor = $temp;
|
3242 |
-
wppa_ajax_check_range( $value, false, $floor, wppa_opt( 'fullsize' ), __( 'Popup size' , 'wp-photo-album-plus') );
|
3243 |
break;
|
3244 |
case 'wppa_fullimage_border_width':
|
3245 |
-
wppa_ajax_check_range( $value, '', '0', false, __( 'Fullsize border width' , 'wp-photo-album-plus') );
|
3246 |
break;
|
3247 |
case 'wppa_lightbox_bordersize':
|
3248 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Lightbox Bordersize' , 'wp-photo-album-plus') );
|
3249 |
break;
|
3250 |
case 'wppa_ovl_border_width':
|
3251 |
-
wppa_ajax_check_range( $value, false, '0', '16', __( 'Lightbox Borderwidth' , 'wp-photo-album-plus') );
|
3252 |
break;
|
3253 |
case 'wppa_ovl_border_radius':
|
3254 |
-
wppa_ajax_check_range( $value, false, '0', '16', __( 'Lightbox Borderradius' , 'wp-photo-album-plus') );
|
3255 |
break;
|
3256 |
case 'wppa_comment_count':
|
3257 |
-
wppa_ajax_check_range( $value, false, '2', '40', __( 'Number of Comment widget entries' , 'wp-photo-album-plus') );
|
3258 |
break;
|
3259 |
case 'wppa_comment_size':
|
3260 |
-
wppa_ajax_check_range( $value, false, '32', wppa_get_minisize(), __( 'Comment Widget image thumbnail size' , 'wp-photo-album-plus'), wppa_get_minisize() );
|
3261 |
break;
|
3262 |
case 'wppa_thumb_opacity':
|
3263 |
-
wppa_ajax_check_range( $value, false, '0', '100', __( 'Opacity.' , 'wp-photo-album-plus') );
|
3264 |
break;
|
3265 |
case 'wppa_cover_opacity':
|
3266 |
-
wppa_ajax_check_range( $value, false, '0', '100', __( 'Opacity.' , 'wp-photo-album-plus') );
|
3267 |
break;
|
3268 |
case 'wppa_star_opacity':
|
3269 |
-
wppa_ajax_check_range( $value, false, '0', '50', __( 'Opacity.' , 'wp-photo-album-plus') );
|
3270 |
break;
|
3271 |
case 'wppa_gravatar_size':
|
3272 |
-
wppa_ajax_check_range( $value, false, '10', '256', __( 'Avatar size' , 'wp-photo-album-plus') );
|
3273 |
break;
|
3274 |
case 'wppa_watermark_opacity':
|
3275 |
-
wppa_ajax_check_range( $value, false, '0', '100', __( 'Watermark opacity' , 'wp-photo-album-plus') );
|
3276 |
break;
|
3277 |
case 'wppa_watermark_opacity_text':
|
3278 |
-
wppa_ajax_check_range( $value, false, '0', '100', __( 'Watermark opacity' , 'wp-photo-album-plus') );
|
3279 |
break;
|
3280 |
case 'wppa_ovl_txt_lines':
|
3281 |
-
wppa_ajax_check_range( $value, 'auto', '0', '24', __( 'Number of text lines' , 'wp-photo-album-plus') );
|
3282 |
break;
|
3283 |
case 'wppa_ovl_opacity':
|
3284 |
-
wppa_ajax_check_range( $value, false, '0', '100', __( 'Overlay opacity' , 'wp-photo-album-plus') );
|
3285 |
break;
|
3286 |
case 'wppa_upload_limit_count':
|
3287 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Upload limit' , 'wp-photo-album-plus') );
|
3288 |
break;
|
3289 |
case 'wppa_dislike_mail_every':
|
3290 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Notify inappropriate' , 'wp-photo-album-plus') );
|
3291 |
break;
|
3292 |
case 'wppa_dislike_set_pending':
|
3293 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Dislike pending' , 'wp-photo-album-plus') );
|
3294 |
break;
|
3295 |
case 'wppa_dislike_delete':
|
3296 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'Dislike delete' , 'wp-photo-album-plus') );
|
3297 |
break;
|
3298 |
case 'wppa_cp_points_comment':
|
3299 |
case 'wppa_cp_points_comment_appr':
|
3300 |
case 'wppa_cp_points_rating':
|
3301 |
case 'wppa_cp_points_upload':
|
3302 |
-
wppa_ajax_check_range( $value, false, '0', false, __( 'myCRED / Cube Points' , 'wp-photo-album-plus') );
|
3303 |
break;
|
3304 |
case 'wppa_jpeg_quality':
|
3305 |
-
wppa_ajax_check_range( $value, false, '20', '100', __( 'JPG Image quality' , 'wp-photo-album-plus') );
|
3306 |
if ( wppa_cdn( 'admin' ) == 'cloudinary' && ! wppa( 'out' ) ) {
|
3307 |
wppa_delete_derived_from_cloudinary();
|
3308 |
}
|
@@ -3333,20 +3333,20 @@ global $wppa;
|
|
3333 |
break;
|
3334 |
/*
|
3335 |
case 'wppa_start_pause_symbol_size':
|
3336 |
-
wppa_ajax_check_range( $value, false, '0', false, __('Start/pause symbol size', 'wp-photo-album-plus') );
|
3337 |
break;
|
3338 |
case 'wppa_start_pause_symbol_bradius':
|
3339 |
-
wppa_ajax_check_range( $value, false, '0', false, __('Start/pause symbol border radius', 'wp-photo-album-plus') );
|
3340 |
break;
|
3341 |
case 'wppa_stop_symbol_size':
|
3342 |
-
wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol size', 'wp-photo-album-plus') );
|
3343 |
break;
|
3344 |
case 'wppa_stop_symbol_bradius':
|
3345 |
-
wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol border radius', 'wp-photo-album-plus') );
|
3346 |
break;
|
3347 |
*/
|
3348 |
case 'wppa_sticky_header_size':
|
3349 |
-
wppa_ajax_check_range( $value, false, '0', '400', __('Sticky header size', 'wp-photo-album-plus') );
|
3350 |
break;
|
3351 |
|
3352 |
case 'wppa_rating_clear':
|
@@ -3356,10 +3356,10 @@ global $wppa;
|
|
3356 |
|
3357 |
if ( $iret1 !== false && $iret2 !== false ) {
|
3358 |
delete_option( 'wppa_'.WPPA_RATING.'_lastkey' );
|
3359 |
-
$title = __( 'Ratings cleared' , 'wp-photo-album-plus');
|
3360 |
}
|
3361 |
else {
|
3362 |
-
$title = __( 'Could not clear ratings' , 'wp-photo-album-plus');
|
3363 |
$alert = $title;
|
3364 |
wppa( 'error', '1' );
|
3365 |
}
|
@@ -3368,10 +3368,10 @@ global $wppa;
|
|
3368 |
$iret = $wpdb->query( "UPDATE $wpdb->wppa_photos SET views = '0'" ) &&
|
3369 |
$wpdb->query( "UPDATE $wpdb->wppa_albums SET views = '0'" );
|
3370 |
if ( $iret !== false ) {
|
3371 |
-
$title = __( 'Viewcounts cleared' , 'wp-photo-album-plus');
|
3372 |
}
|
3373 |
else {
|
3374 |
-
$title = __( 'Could not clear viewcounts' , 'wp-photo-album-plus');
|
3375 |
$alert = $title;
|
3376 |
wppa( 'error', '1' );
|
3377 |
}
|
@@ -3381,11 +3381,11 @@ global $wppa;
|
|
3381 |
$iret = $wpdb->query( "TRUNCATE TABLE $wpdb->wppa_iptc" );
|
3382 |
if ( $iret !== false ) {
|
3383 |
delete_option( 'wppa_'.WPPA_IPTC.'_lastkey' );
|
3384 |
-
$title = __( 'IPTC data cleared' , 'wp-photo-album-plus');
|
3385 |
update_option( 'wppa_index_need_remake', 'yes' );
|
3386 |
}
|
3387 |
else {
|
3388 |
-
$title = __( 'Could not clear IPTC data' , 'wp-photo-album-plus');
|
3389 |
$alert = $title;
|
3390 |
wppa( 'error', '1' );
|
3391 |
}
|
@@ -3395,11 +3395,11 @@ global $wppa;
|
|
3395 |
$iret = $wpdb->query( "TRUNCATE TABLE $wpdb->wppa_exif" );
|
3396 |
if ( $iret !== false ) {
|
3397 |
delete_option( 'wppa_'.WPPA_EXIF.'_lastkey' );
|
3398 |
-
$title = __( 'EXIF data cleared' , 'wp-photo-album-plus');
|
3399 |
update_option( 'wppa_index_need_remake', 'yes' );
|
3400 |
}
|
3401 |
else {
|
3402 |
-
$title = __( 'Could not clear EXIF data' , 'wp-photo-album-plus');
|
3403 |
$alert = $title;
|
3404 |
wppa( 'error', '1' );
|
3405 |
}
|
@@ -3407,7 +3407,7 @@ global $wppa;
|
|
3407 |
|
3408 |
case 'wppa_recup':
|
3409 |
$result = wppa_recuperate_iptc_exif();
|
3410 |
-
wppa_echo( '||0||'.__( 'Recuperation performed' , 'wp-photo-album-plus').'||'.$result );
|
3411 |
wppa_exit();
|
3412 |
break;
|
3413 |
|
@@ -3422,7 +3422,7 @@ global $wppa;
|
|
3422 |
}
|
3423 |
}
|
3424 |
if ( ! wppa( 'error' ) ) $old_minisize--; // Trigger regen message
|
3425 |
-
else $alert = __( 'Illegal format. Please enter a 6 digit hexadecimal color value. Example: #77bbff' , 'wp-photo-album-plus');
|
3426 |
break;
|
3427 |
|
3428 |
case 'wppa_thumb_aspect':
|
@@ -3448,8 +3448,8 @@ global $wppa;
|
|
3448 |
}
|
3449 |
|
3450 |
update_option ( 'wppa_rerate_status', 'Required' );
|
3451 |
-
$alert .= __( 'You just changed a setting that requires the recalculation of ratings.' , 'wp-photo-album-plus');
|
3452 |
-
$alert .= ' '.__( 'Please run the appropriate maintenance procedure.' , 'wp-photo-album-plus');
|
3453 |
|
3454 |
wppa_update_option( $option, $value );
|
3455 |
wppa( 'error', '0' );
|
@@ -3470,7 +3470,7 @@ global $wppa;
|
|
3470 |
if ( ! wppa_is_dir( $dir ) ) wppa_mkdir( $dir );
|
3471 |
if ( ! wppa_is_dir( $dir ) || ! is_writable( $dir ) ) {
|
3472 |
wppa( 'error', '1' );
|
3473 |
-
$alert = sprintf( __( 'Unable to create or write to %s' , 'wp-photo-album-plus'), $dir );
|
3474 |
}
|
3475 |
break;
|
3476 |
|
@@ -3479,28 +3479,28 @@ global $wppa;
|
|
3479 |
$value = rtrim( $value, '/' );
|
3480 |
if ( strpos( $value.'/', WPPA_UPLOAD_PATH.'/' ) !== false ) {
|
3481 |
wppa( 'error', '1' );
|
3482 |
-
$alert = sprintf( __( 'Source can not be inside the wppa folder.' , 'wp-photo-album-plus') );
|
3483 |
}
|
3484 |
else {
|
3485 |
$dir = $value;
|
3486 |
if ( ! wppa_is_dir( $dir ) ) wppa_mkdir( $dir );
|
3487 |
if ( ! wppa_is_dir( $dir ) || ! is_writable( $dir ) ) {
|
3488 |
wppa( 'error', '1' );
|
3489 |
-
$alert = sprintf( __( 'Unable to create or write to %s' , 'wp-photo-album-plus'), $dir );
|
3490 |
}
|
3491 |
}
|
3492 |
break;
|
3493 |
|
3494 |
case 'wppa_newpag_content':
|
3495 |
if ( strpos( $value, 'w#album' ) === false ) {
|
3496 |
-
$alert = __( 'The content must contain w#album' , 'wp-photo-album-plus');
|
3497 |
wppa( 'error', '1' );
|
3498 |
}
|
3499 |
break;
|
3500 |
|
3501 |
case 'wppa_gpx_shortcode':
|
3502 |
if ( strpos( $value, 'w#lat' ) === false || strpos( $value, 'w#lon' ) === false ) {
|
3503 |
-
$alert = __( 'The content must contain w#lat and w#lon' , 'wp-photo-album-plus');
|
3504 |
wppa( 'error', '1' );
|
3505 |
}
|
3506 |
break;
|
@@ -3531,11 +3531,11 @@ global $wppa;
|
|
3531 |
$black_listed_users[] = $value;
|
3532 |
update_option( 'wppa_black_listed_users', $black_listed_users );
|
3533 |
}
|
3534 |
-
$alert = esc_js( sprintf( __( 'User %s has been blacklisted.' , 'wp-photo-album-plus'), $value ) );
|
3535 |
}
|
3536 |
}
|
3537 |
else {
|
3538 |
-
$alert = esc_js( sprintf( __( 'User %s does not exist.' , 'wp-photo-album-plus'), $value ) );
|
3539 |
}
|
3540 |
$value = '';
|
3541 |
break;
|
@@ -3566,11 +3566,11 @@ global $wppa;
|
|
3566 |
$super_users[] = $value;
|
3567 |
update_option( 'wppa_super_users', $super_users );
|
3568 |
}
|
3569 |
-
$alert = esc_js( sprintf( __( 'User %s is now superuser.' , 'wp-photo-album-plus'), $value ) );
|
3570 |
}
|
3571 |
}
|
3572 |
else {
|
3573 |
-
$alert = esc_js( sprintf( __( 'User %s does not exist.' , 'wp-photo-album-plus'), $value ) );
|
3574 |
}
|
3575 |
$value = '';
|
3576 |
break;
|
@@ -3592,11 +3592,11 @@ global $wppa;
|
|
3592 |
if ( strpos( $custom_content, 'w#fotomoto' ) === false ) {
|
3593 |
$custom_content = 'w#fotomoto '.$custom_content;
|
3594 |
wppa_update_option( 'wppa_custom_content', $custom_content );
|
3595 |
-
$alert = __( 'The content of the Custom box has been changed to display the Fotomoto toolbar.' , 'wp-photo-album-plus').' ';
|
3596 |
}
|
3597 |
if ( ! wppa_switch( 'custom_on' ) ) {
|
3598 |
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3599 |
-
$alert .= __( 'The display of the custom box has been enabled' , 'wp-photo-album-plus');
|
3600 |
}
|
3601 |
}
|
3602 |
break;
|
@@ -3607,11 +3607,11 @@ global $wppa;
|
|
3607 |
if ( strpos( $custom_content, 'w#location' ) === false ) {
|
3608 |
$custom_content = 'w#location '.$custom_content;
|
3609 |
wppa_update_option( 'wppa_custom_content', $custom_content );
|
3610 |
-
$alert = __( 'The content of the Slideshow component Custom box has been changed to display the location map.' , 'wp-photo-album-plus').' ';
|
3611 |
}
|
3612 |
if ( ! wppa_switch( 'custom_on' ) ) {
|
3613 |
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3614 |
-
$alert .= __( 'The display of the custom box has been enabled' , 'wp-photo-album-plus');
|
3615 |
}
|
3616 |
}
|
3617 |
break;
|
@@ -3622,11 +3622,11 @@ global $wppa;
|
|
3622 |
if ( strpos( $custom_content, 'w#location' ) === false ) {
|
3623 |
$custom_content = $custom_content.' w#location';
|
3624 |
wppa_update_option( 'wppa_custom_content', $custom_content );
|
3625 |
-
$alert = __( 'The content of the Slideshow component Custom box has been changed to display maps.' , 'wp-photo-album-plus').' ';
|
3626 |
}
|
3627 |
if ( ! wppa_switch( 'custom_on' ) ) {
|
3628 |
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3629 |
-
$alert .= __( 'The display of the custom box has been enabled.' , 'wp-photo-album-plus');
|
3630 |
}
|
3631 |
}
|
3632 |
break;
|
@@ -3803,7 +3803,7 @@ global $wppa;
|
|
3803 |
case 'wppa_main_photo_reset':
|
3804 |
$wpdb->query( "UPDATE $wpdb->wppa_albums SET main_photo = 0" );
|
3805 |
$value = 'no';
|
3806 |
-
$alert = __('All album cover images set to default', 'wp-photo-album-plus');
|
3807 |
break;
|
3808 |
case 'wppa_nicescroll_opts':
|
3809 |
$value = wppa_sanitize_nso( $value );
|
@@ -3816,7 +3816,7 @@ global $wppa;
|
|
3816 |
}
|
3817 |
|
3818 |
if ( wppa( 'error' ) ) {
|
3819 |
-
if ( ! $title ) $title = sprintf( __( 'Failed to set %s to %s', 'wp-photo-album-plus'), $option, $value );
|
3820 |
if ( ! $alert ) $alert .= wppa( 'out' );
|
3821 |
}
|
3822 |
|
@@ -3826,7 +3826,7 @@ global $wppa;
|
|
3826 |
}
|
3827 |
else {
|
3828 |
wppa_update_option( $option, $value );
|
3829 |
-
if ( ! $title ) $title = sprintf( __( 'Setting %s updated to %s', 'wp-photo-album-plus'), $option, $value );
|
3830 |
}
|
3831 |
|
3832 |
// Save possible error
|
@@ -3843,8 +3843,8 @@ global $wppa;
|
|
3843 |
$new_minisize = wppa_get_minisize();
|
3844 |
if ( $old_minisize != $new_minisize ) {
|
3845 |
update_option ( 'wppa_regen_thumbs_status', 'Required' );
|
3846 |
-
$alert .= __( 'You just changed a setting that requires the regeneration of thumbnails.' , 'wp-photo-album-plus');
|
3847 |
-
$alert .= ' '.__( 'Please run the appropriate maintenance procedure.' , 'wp-photo-album-plus');
|
3848 |
}
|
3849 |
|
3850 |
// Compose the cron job status and togo fields
|
@@ -3933,7 +3933,7 @@ global $wppa;
|
|
3933 |
case 'destroyalbum':
|
3934 |
$album = wppa_get( 'album' );
|
3935 |
if ( ! $album ) {
|
3936 |
-
_e('Missing album id', 'wp-photo-album-plus');
|
3937 |
wppa_exit();
|
3938 |
}
|
3939 |
$nonce = wppa_get( 'nonce' );
|
@@ -3951,7 +3951,7 @@ global $wppa;
|
|
3951 |
}
|
3952 |
if ( wppa_is_user_blacklisted() ) $may = false;
|
3953 |
if ( ! $imay ) {
|
3954 |
-
_e('You do not have the rights to delete this album', 'wp-photo-album-plus');
|
3955 |
wppa_exit();
|
3956 |
}
|
3957 |
|
@@ -4005,17 +4005,17 @@ function wppa_ajax_check_range( $value, $fixed, $low, $high, $title ) {
|
|
4005 |
|
4006 |
// Compose error message
|
4007 |
if ( $low !== false && $high === false ) { // Only Minimum given
|
4008 |
-
wppa_out( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus') . ' ' . $low . ' ' . __( 'for' , 'wp-photo-album-plus') . ' ' . $title );
|
4009 |
if ( $fixed !== false ) {
|
4010 |
-
if ( $fixed ) wppa_out( '. ' . __( 'You may also enter:' , 'wp-photo-album-plus') . ' ' . $fixed );
|
4011 |
-
else wppa_out( '. ' . __( 'You may also leave/set this blank' , 'wp-photo-album-plus') );
|
4012 |
}
|
4013 |
}
|
4014 |
else { // Also Maximum given
|
4015 |
-
wppa_out( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus') . ' ' . $low . ' ' . __( 'and less than or equal to' , 'wp-photo-album-plus') . ' ' . $high . ' ' . __( 'for' , 'wp-photo-album-plus') . ' ' . $title );
|
4016 |
if ( $fixed !== false ) {
|
4017 |
-
if ( $fixed ) wppa_out( '. ' . __( 'You may also enter:' , 'wp-photo-album-plus') . ' ' . $fixed );
|
4018 |
-
else wppa_out( '. ' . __( 'You may also leave/set this blank' , 'wp-photo-album-plus') );
|
4019 |
}
|
4020 |
}
|
4021 |
}
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
+
* Version 8.1.08.003
|
6 |
*
|
7 |
*/
|
8 |
|
466 |
// Security check
|
467 |
if ( wppa_switch( 'direct_comment' ) && wppa_switch( 'use_encrypted_links' ) && wppa_switch( 'refuse_unencrypted' ) ) {
|
468 |
if ( ! $photoid || ( wppa_get_photo_item( $photoid, 'album' ) < '1' ) ) {
|
469 |
+
_e( 'Missing or invalid photo id' , 'wp-photo-album-plus' );
|
470 |
wppa_exit();
|
471 |
}
|
472 |
wppa_log('dbg', 'Bypassed nonce');
|
511 |
$cid = wppa_get( 'comment-id' );
|
512 |
|
513 |
if ( ! current_user_can( 'wppa_moderate' ) && ! current_user_can( 'wppa_comments' ) ) {
|
514 |
+
_e( 'You do not have the rights to moderate photos this way' , 'wp-photo-album-plus' );
|
515 |
wppa_exit();
|
516 |
}
|
517 |
|
534 |
if ( $iret ) {
|
535 |
wppa_schedule_mailinglist( 'commentapproved', 0, 0, $cid );
|
536 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
537 |
+
__( 'Photo comment approved' , 'wp-photo-album-plus' ),
|
538 |
$pid,
|
539 |
'',
|
540 |
wppa_get_photo_item( $pid, 'owner' )
|
551 |
else {
|
552 |
if ( $pid ) {
|
553 |
if ( current_user_can( 'wppa_moderate' ) ) {
|
554 |
+
wppa_echo( sprintf( __( 'Failed to update stutus of photo %d' , 'wp-photo-album-plus' ), $pid )."\n".__( 'Please refresh the page', 'wp-photo-album-plus' ) );
|
555 |
}
|
556 |
else {
|
557 |
wppa_secfail( '21' );
|
558 |
}
|
559 |
}
|
560 |
if ( $cid ) {
|
561 |
+
wppa_echo( sprintf( __( 'Failed to update stutus of comment %d' , 'wp-photo-album-plus' ), $cid )."\n".__( 'Please refresh the page', 'wp-photo-album-plus' ) );
|
562 |
}
|
563 |
}
|
564 |
wppa_exit();
|
659 |
$wppa_zip = new ZipArchive;
|
660 |
$iret = $wppa_zip->open( $zipfilepath, 1 );
|
661 |
if ( $iret !== true ) {
|
662 |
+
wppa_echo( '||ER||'.sprintf( __( 'Unable to create zip archive. code = %s' , 'wp-photo-album-plus' ), $iret ) );
|
663 |
wppa_exit();
|
664 |
}
|
665 |
|
697 |
$desturl = WPPA_UPLOAD_URL.'/temp/'.$zipfilename;
|
698 |
wppa_echo( $desturl.'||OK||' );
|
699 |
if ( $zipcount != count( $photos ) ) {
|
700 |
+
wppa_echo( sprintf( __( 'Only %s out of %s photos could be added to the zipfile' , 'wp-photo-album-plus' ), $zipcount, count( $photos ) ) );
|
701 |
}
|
702 |
wppa_exit();
|
703 |
break;
|
911 |
wppa_get_photo_name( $photo )
|
912 |
);
|
913 |
$content .=
|
914 |
+
'<br><br>' . __('His request specification is', 'wp-photo-album-plus' ) . '<br>' .
|
915 |
|
916 |
'<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
|
917 |
<em> ' . sanitize_text_field( wppa_get( 'emailtext' ) ) . '</em>
|
948 |
$type = wppa_opt( 'art_monkey_popup_link' );
|
949 |
}
|
950 |
else {
|
951 |
+
wppa_echo( '||7||'.__( 'Unknown source of request' , 'wp-photo-album-plus' ) );
|
952 |
wppa_exit();
|
953 |
}
|
954 |
|
967 |
$name = wppa_sanitize_file_name( $name ); // Remove illegal chars
|
968 |
$name = preg_replace( '/\.[^.]*$/', '', $name ); // Remove file extension
|
969 |
if ( strlen( $name ) == '0' ) {
|
970 |
+
wppa_echo( '||1||'.__( 'Empty filename' , 'wp-photo-album-plus' ) );
|
971 |
wppa_exit();
|
972 |
}
|
973 |
|
994 |
$tempdir = WPPA_UPLOAD_PATH.'/temp';
|
995 |
if ( ! wppa_is_dir( $tempdir ) ) wppa_mkdir( $tempdir );
|
996 |
if ( ! wppa_is_dir( $tempdir ) ) {
|
997 |
+
wppa_echo( '||2||'.__( 'Unable to create tempdir' , 'wp-photo-album-plus' ) );
|
998 |
wppa_exit();
|
999 |
}
|
1000 |
|
1015 |
$wppa_zip->close();
|
1016 |
}
|
1017 |
else {
|
1018 |
+
wppa_echo( '||6||'.__( 'Unknown type' , 'wp-photo-album-plus' ) );
|
1019 |
wppa_exit();
|
1020 |
}
|
1021 |
|
1027 |
wppa_exit();
|
1028 |
}
|
1029 |
else {
|
1030 |
+
wppa_echo( '||9||'.__( 'The photo does no longer exist' , 'wp-photo-album-plus' ) );
|
1031 |
wppa_exit();
|
1032 |
}
|
1033 |
wppa_exit();
|
1084 |
id="wppa-gutenberg-div-' . $wppa['mocc'] . '"
|
1085 |
style="position:relative;width:100%" >
|
1086 |
<div style="font-size:12px;color:green;margin-bottom:2px;width:100%;text-align:center;" >
|
1087 |
+
<i>(' . esc_html( __('Links and buttons will not work in this preview', 'wp-photo-album-plus' ) ) . ')</i>
|
1088 |
</div>' .
|
1089 |
$result . '
|
1090 |
</div>' );
|
1124 |
$nonce = wppa_get( 'nonce' );
|
1125 |
|
1126 |
// Make errortext
|
1127 |
+
$errtxt = __( 'An error occurred while processing you rating request.' , 'wp-photo-album-plus' );
|
1128 |
+
$errtxt .= "\n".__( 'Maybe you opened the page too long ago to recognize you.' , 'wp-photo-album-plus' );
|
1129 |
+
$errtxt .= "\n".__( 'You may refresh the page and try again.' , 'wp-photo-album-plus' );
|
1130 |
+
$wartxt = __( 'Althoug an error occurred while processing your rating, your vote has been registered.' , 'wp-photo-album-plus' );
|
1131 |
+
$wartxt .= "\n".__( 'However, this may not be reflected in the current pageview' , 'wp-photo-album-plus' );
|
1132 |
|
1133 |
// Security check
|
1134 |
if ( wppa_switch( 'direct_comment' ) && wppa_switch( 'use_encrypted_links' ) && wppa_switch( 'refuse_unencrypted' ) ) {
|
1221 |
// The points to the commenter
|
1222 |
if ( $photo_owner != wppa_get_user() ) {
|
1223 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment' ),
|
1224 |
+
__( 'Photo comment' , 'wp-photo-album-plus' ),
|
1225 |
$photo
|
1226 |
);
|
1227 |
}
|
1228 |
|
1229 |
// Add points to the owner
|
1230 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
1231 |
+
__( 'Photo comment approved' , 'wp-photo-album-plus' ),
|
1232 |
$photo,
|
1233 |
'',
|
1234 |
$photo_owner
|
1308 |
|
1309 |
// I did a dislike, can not modify
|
1310 |
if ( $mylast < '0' ) {
|
1311 |
+
wppa_echo( '0||900||'.__('You can not change a dislike', 'wp-photo-album-plus' ) );
|
1312 |
wppa_exit();
|
1313 |
}
|
1314 |
|
1315 |
// I did a rating, can not change into dislike
|
1316 |
if ( $mylast > '0' && $rating == '-1' ) {
|
1317 |
+
wppa_echo( '0||900||'.__('You can not change your vote into a dislike', 'wp-photo-album-plus' ) );
|
1318 |
wppa_exit();
|
1319 |
}
|
1320 |
}
|
1330 |
}
|
1331 |
|
1332 |
// Add points
|
1333 |
+
wppa_add_credit_points( wppa_opt( 'cp_points_rating' ), __( 'Photo rated' , 'wp-photo-album-plus' ), $photo, $rating );
|
1334 |
|
1335 |
// Check for email to be sent every .. dislikes
|
1336 |
wppa_dislike_check( $photo );
|
1351 |
wppa_exit(); // Fail on storing vote
|
1352 |
}
|
1353 |
// Add points
|
1354 |
+
wppa_add_credit_points( wppa_opt( 'cp_points_rating' ), __( 'Photo rated' , 'wp-photo-album-plus' ), $photo, $rating );
|
1355 |
}
|
1356 |
|
1357 |
// Case 3: I will change my previously given vote
|
1380 |
}
|
1381 |
|
1382 |
else { // Should never get here....
|
1383 |
+
wppa_echo( '0||110||'.__( 'Unexpected error' , 'wp-photo-album-plus' ) );
|
1384 |
wppa_exit();
|
1385 |
}
|
1386 |
|
1475 |
wppa_clear_cache( ['photo' => $photo] );
|
1476 |
|
1477 |
if ( wppa_switch( 'vote_needs_comment' ) && ! $hascommented ) {
|
1478 |
+
$message = __( "Please explain your vote in a comment.\nYour vote will be discarded if you don't.\n\nAfter completing your comment,\nyou can refresh the page to see\nyour vote became effective." , 'wp-photo-album-plus' );
|
1479 |
}
|
1480 |
else {
|
1481 |
$message = '';
|
1513 |
|
1514 |
// Check validity
|
1515 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
1516 |
+
wppa_echo( '||0||'.__( 'You do not have the rights to delete a photo' , 'wp-photo-album-plus' ) );
|
1517 |
wppa_exit(); // Nonce check failed
|
1518 |
}
|
1519 |
if ( ! is_numeric( $photo ) ) {
|
1520 |
+
wppa_echo( '||0||'.__( 'Security check failure' , 'wp-photo-album-plus' ) );
|
1521 |
wppa_exit(); // Nonce check failed
|
1522 |
}
|
1523 |
|
1524 |
// Non admins/superusers can only delete their own photos
|
1525 |
if ( ! wppa_user_is( 'administrator' ) && wppa_get_photo_item( $photo, 'owner' ) != wppa_get_user() ) {
|
1526 |
+
wppa_echo( '||0||'.__( 'You do not have the rights to delete this photo' , 'wp-photo-album-plus' ) );
|
1527 |
wppa_exit();
|
1528 |
}
|
1529 |
|
1552 |
|
1553 |
// Check validity
|
1554 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
1555 |
+
wppa_echo( '||0||'.__( 'You do not have the rights to undelete a photo' , 'wp-photo-album-plus' ) );
|
1556 |
wppa_exit(); // Nonce check failed
|
1557 |
}
|
1558 |
if ( ! is_numeric( $photo ) ) {
|
1559 |
+
wppa_echo( '||0||'.__( 'Security check failure' , 'wp-photo-album-plus' ) );
|
1560 |
wppa_exit(); // Nonce check failed
|
1561 |
}
|
1562 |
|
1588 |
|
1589 |
// Check validity
|
1590 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$album ) ) {
|
1591 |
+
wppa_echo( '||0||'.__( 'You do not have the rights to update album information' , 'wp-photo-album-plus' ).$nonce );
|
1592 |
wppa_exit(); // Nonce check failed
|
1593 |
}
|
1594 |
|
1601 |
$iret2 = wppa_update_photo( array( 'id' => $photo['id'], 'mean_rating' => '' ) );
|
1602 |
}
|
1603 |
if ( $photos && $iret1 !== false && $iret2 !== false ) {
|
1604 |
+
wppa_echo( '||0||'.__( 'Ratings cleared' , 'wp-photo-album-plus' ).'||'.__( 'No ratings for this photo.' , 'wp-photo-album-plus' ) );
|
1605 |
}
|
1606 |
elseif ( $photos ) {
|
1607 |
+
wppa_echo( '||1||'.__( 'An error occurred while clearing ratings' , 'wp-photo-album-plus' ) );
|
1608 |
}
|
1609 |
else {
|
1610 |
+
wppa_echo( '||0||'.__( 'No photos in this album' , 'wp-photo-album-plus' ).'||'.__( 'No ratings for this photo.' , 'wp-photo-album-plus' ) );
|
1611 |
}
|
1612 |
wppa_exit();
|
1613 |
break;
|
1624 |
$iret = wppa_update_photo( array( 'id' => $photo['id'], 'tags' => $tags ) );
|
1625 |
}
|
1626 |
if ( $photos && $iret !== false ) {
|
1627 |
+
wppa_echo( '||0||'.__( 'Tags set to defaults' , 'wp-photo-album-plus' ) );
|
1628 |
wppa_update_album( $album );
|
1629 |
}
|
1630 |
elseif ( $photos ) {
|
1631 |
+
wppa_echo( '||1||'.__( 'An error occurred while setting tags' , 'wp-photo-album-plus' ) );
|
1632 |
}
|
1633 |
else {
|
1634 |
+
wppa_echo( '||0||'.__( 'No photos in this album' , 'wp-photo-album-plus' ) );
|
1635 |
}
|
1636 |
wppa_clear_taglist();
|
1637 |
wppa_exit();
|
1650 |
}
|
1651 |
if ( $photos && $iret !== false ) {
|
1652 |
wppa_update_album( $album );
|
1653 |
+
wppa_echo( '||0||'.__( 'Tags added with defaults' , 'wp-photo-album-plus' ) );
|
1654 |
}
|
1655 |
elseif ( $photos ) {
|
1656 |
+
wppa_echo( '||1||'.__( 'An error occurred while adding tags' , 'wp-photo-album-plus' ) );
|
1657 |
}
|
1658 |
else {
|
1659 |
+
wppa_echo( '||0||'.__( 'No photos in this album' , 'wp-photo-album-plus' ) );
|
1660 |
}
|
1661 |
wppa_clear_taglist();
|
1662 |
wppa_exit();
|
1697 |
$value = 'Album-#' . $album;
|
1698 |
wppa_echo( '||5||' . sprintf( __( 'Album name may not be empty.<br>Reset to %s', 'wp-photo-album-plus' ), htmlentities( $value ) ) );
|
1699 |
}
|
1700 |
+
$itemname = __( 'Name' , 'wp-photo-album-plus' );
|
1701 |
wppa_update_album( array( 'id' => $album, 'name' => $value, 'modified' => time() ) );
|
1702 |
break;
|
1703 |
case 'description':
|
1704 |
+
$itemname = __( 'Description' , 'wp-photo-album-plus' );
|
1705 |
$value = str_replace( array( '<br/>','<br>' ), '<br>', $value );
|
1706 |
$value = trim( $value );
|
1707 |
wppa_update_album( array( 'id' => $album, 'description' => $value, 'modified' => time() ) );
|
1708 |
break;
|
1709 |
case 'a_order':
|
1710 |
+
$itemname = __( 'Album order #' , 'wp-photo-album-plus' );
|
1711 |
break;
|
1712 |
case 'main_photo':
|
1713 |
+
$itemname = __( 'Cover photo' , 'wp-photo-album-plus' );
|
1714 |
break;
|
1715 |
case 'a_parent':
|
1716 |
+
$itemname = __( 'Parent album' , 'wp-photo-album-plus' );
|
1717 |
if ( $album == $value ) {
|
1718 |
$value = '-1';
|
1719 |
}
|
1723 |
wppa_childlist_remove( $value );
|
1724 |
break;
|
1725 |
case 'p_order_by':
|
1726 |
+
$itemname = __( 'Photo order' , 'wp-photo-album-plus' );
|
1727 |
break;
|
1728 |
case 'alt_thumbsize':
|
1729 |
+
$itemname = __( 'Use Alt thumbsize' , 'wp-photo-album-plus' );
|
1730 |
break;
|
1731 |
case 'cover_type':
|
1732 |
+
$itemname = __( 'Cover Type' , 'wp-photo-album-plus' );
|
1733 |
break;
|
1734 |
case 'cover_linktype':
|
1735 |
+
$itemname = __( 'Link type' , 'wp-photo-album-plus' );
|
1736 |
break;
|
1737 |
case 'cover_linkpage':
|
1738 |
+
$itemname = __( 'Link to' , 'wp-photo-album-plus' );
|
1739 |
break;
|
1740 |
case 'cover_link':
|
1741 |
$itemname = __( 'Link target (url)', 'wp-photo-album-plus' );
|
1742 |
break;
|
1743 |
case 'owner':
|
1744 |
+
$itemname = __( 'Owner' , 'wp-photo-album-plus' );
|
1745 |
if ( $value != '--- public ---' && ! wppa_get_user_by( 'login', $value ) ) {
|
1746 |
+
wppa_echo( '||4||'.sprintf( __( 'User %s does not exist' , 'wp-photo-album-plus' ), $value ) );
|
1747 |
wppa_exit();
|
1748 |
}
|
1749 |
break;
|
1750 |
case 'upload_limit_count':
|
1751 |
+
wppa_ajax_check_range( $value, false, '-1', false, __( 'Upload limit count' , 'wp-photo-album-plus' ) );
|
1752 |
if ( wppa( 'error' ) ) {
|
1753 |
+
wppa_echo( '||7||'.__('Invalid value', 'wp-photo-album-plus' ) );
|
1754 |
wppa_exit();
|
1755 |
}
|
1756 |
$oldval = $wpdb->get_var( $wpdb->prepare( "SELECT upload_limit FROM $wpdb->wppa_albums
|
1758 |
$temp = explode( '/', $oldval );
|
1759 |
$value = $value.'/'.$temp[1];
|
1760 |
$item = 'upload_limit';
|
1761 |
+
$itemname = __( 'Upload limit count' , 'wp-photo-album-plus' );
|
1762 |
break;
|
1763 |
case 'upload_limit_time':
|
1764 |
$oldval = $wpdb->get_var( $wpdb->prepare( "SELECT upload_limit FROM $wpdb->wppa_albums
|
1766 |
$temp = explode( '/', $oldval );
|
1767 |
$value = $temp[0].'/'.$value;
|
1768 |
$item = 'upload_limit';
|
1769 |
+
$itemname = __( 'Upload limit time' , 'wp-photo-album-plus' );
|
1770 |
break;
|
1771 |
case 'default_tags':
|
1772 |
$value = wppa_sanitize_tags( $value, false, true );
|
1773 |
+
$itemname = __( 'Default tags' , 'wp-photo-album-plus' );
|
1774 |
break;
|
1775 |
case 'cats':
|
1776 |
$value = wppa_sanitize_cats( $value );
|
1777 |
wppa_clear_catlist();
|
1778 |
+
$itemname = __( 'Categories' , 'wp-photo-album-plus' );
|
1779 |
break;
|
1780 |
case 'suba_order_by':
|
1781 |
+
$itemname = __( 'Sub albums sort order' , 'wp-photo-album-plus' );
|
1782 |
break;
|
1783 |
|
1784 |
case 'year':
|
1786 |
case 'day':
|
1787 |
case 'hour':
|
1788 |
case 'min':
|
1789 |
+
$itemname = __( 'Schedule date/time' , 'wp-photo-album-plus' );
|
1790 |
$scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledtm
|
1791 |
FROM $wpdb->wppa_albums
|
1792 |
WHERE id = %d", $album ) );
|
1810 |
case 'delday':
|
1811 |
case 'delhour':
|
1812 |
case 'delmin':
|
1813 |
+
$itemname = __( 'Delete date/time' , 'wp-photo-album-plus' );
|
1814 |
$scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledel
|
1815 |
FROM $wpdb->wppa_albums
|
1816 |
WHERE id = %d", $album ) );
|
1884 |
$custom = serialize( $custom_data );
|
1885 |
wppa_update_album( array( 'id' => $album, 'custom' => $custom, 'modified' => time() ) );
|
1886 |
wppa_index_update( 'album', $album );
|
1887 |
+
wppa_echo( '||0||'.sprintf( __( 'Custom field %s updated' , 'wp-photo-album-plus' ), wppa_opt( 'album_custom_caption_'.$index ) ) );
|
1888 |
wppa_exit();
|
1889 |
break;
|
1890 |
|
1891 |
case 'scheduledel':
|
1892 |
$value = '';
|
1893 |
+
$itemname = __( 'Delete date/time' , 'wp-photo-album-plus' );
|
1894 |
break;
|
1895 |
case 'scheduledtm':
|
1896 |
$value = '';
|
1897 |
+
$itemname = __( 'Schedule date/time' , 'wp-photo-album-plus' );
|
1898 |
break;
|
1899 |
|
1900 |
default:
|
1920 |
}
|
1921 |
else {
|
1922 |
wppa_echo( '||2||' .
|
1923 |
+
sprintf( __( 'An error occurred while trying to update %s of album %s' , 'wp-photo-album-plus' ), $itemname, htmlentities( $album ) ) .
|
1924 |
'<br>' .
|
1925 |
__( 'Press CTRL+F5 and try again.', 'wp-photo-album-plus' )
|
1926 |
);
|
1937 |
|
1938 |
// Check validity
|
1939 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
1940 |
+
wppa_echo( '||0||'.__( 'You do not have the rights to update comment status' , 'wp-photo-album-plus' ).$nonce );
|
1941 |
wppa_exit(); // Nonce check failed
|
1942 |
}
|
1943 |
|
1950 |
if ( $comstat == 'approved' ) {
|
1951 |
wppa_schedule_mailinglist( 'commentapproved', 0, 0, $comid );
|
1952 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
1953 |
+
__( 'Photo comment approved' , 'wp-photo-album-plus' ),
|
1954 |
$photo,
|
1955 |
'',
|
1956 |
wppa_get_photo_item( $photo, 'owner' )
|
1957 |
);
|
1958 |
}
|
1959 |
+
wppa_echo( '||0||'.sprintf( __( 'Status of comment #%s updated' , 'wp-photo-album-plus' ), $comid ) );
|
1960 |
}
|
1961 |
else {
|
1962 |
+
wppa_echo( '||1||'.sprintf( __( 'Error updating status comment #%s' , 'wp-photo-album-plus' ), $comid ) );
|
1963 |
}
|
1964 |
wppa_exit();
|
1965 |
break;
|
2012 |
|
2013 |
// Check validity
|
2014 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
2015 |
+
$txt = __( 'You do not have the rights to update photo information' , 'wp-photo-album-plus' );
|
2016 |
wppa_json_photo_update( $photo, $txt, '1' ); // Nonce check failed
|
2017 |
}
|
2018 |
|
2019 |
if ( substr( $item, 0, 20 ) == 'wppa_watermark_file_' || substr( $item, 0, 19 ) == 'wppa_watermark_pos_' ) {
|
2020 |
wppa_update_option( $item, $value );
|
2021 |
+
$txt = sprintf( __( '%s updated to %s.' , 'wp-photo-album-plus' ), $item, $value );
|
2022 |
wppa_json_photo_update( $photo, $txt );
|
2023 |
}
|
2024 |
|
2071 |
if ( ! $err && $temp['5'] > '59' ) $err = '23'; // Sec > 59
|
2072 |
}
|
2073 |
if ( $err ) {
|
2074 |
+
$txt = sprintf( __( 'Format error %s. Must be yyyy:mm:dd hh:mm:ss' , 'wp-photo-album-plus' ), $err );
|
2075 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2076 |
}
|
2077 |
else {
|
2078 |
wppa_update_photo( array( 'id' => $photo, 'exifdtm' => $value ) );
|
2079 |
+
$txt = __( 'Exif date/time updated' , 'wp-photo-album-plus' );
|
2080 |
wppa_json_photo_update( $photo, $txt );
|
2081 |
}
|
2082 |
break;
|
2083 |
case 'lat':
|
2084 |
if ( ! is_numeric( $value ) || $value < '-90.0' || $value > '90.0' ) {
|
2085 |
+
$txt = __( 'Enter a value > -90 and < 90' , 'wp-photo-album-plus' );
|
2086 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2087 |
}
|
2088 |
$photodata = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
2092 |
$geo = wppa_format_geo( $value, $geo['3'] );
|
2093 |
$iret = wppa_update_photo( array( 'id' => $photo, 'location' => $geo ) );
|
2094 |
if ( $iret ) {
|
2095 |
+
$txt = __( 'Lattitude updated' , 'wp-photo-album-plus' );
|
2096 |
$err = '0';
|
2097 |
}
|
2098 |
else {
|
2099 |
+
$txt = __( 'Could not update latitude' , 'wp-photo-album-plus' );
|
2100 |
$err = '1';
|
2101 |
}
|
2102 |
wppa_json_photo_update( $photo, $txt, $err );
|
2103 |
break;
|
2104 |
case 'lon':
|
2105 |
if ( ! is_numeric( $value ) || $value < '-180.0' || $value > '180.0' ) {
|
2106 |
+
$txt = __( 'Enter a value > -180 and < 180' , 'wp-photo-album-plus' );
|
2107 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2108 |
}
|
2109 |
$photodata = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
2134 |
wppa_json_photo_update( $photo, $txt, '0', ( $extra ? false : true ), true );
|
2135 |
}
|
2136 |
else {
|
2137 |
+
$txt = __( 'Could not remake files' , 'wp-photo-album-plus' );
|
2138 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2139 |
}
|
2140 |
break;
|
2155 |
case 'flop':
|
2156 |
switch ( $item ) {
|
2157 |
case 'rotleft':
|
2158 |
+
$dir = __( 'left' , 'wp-photo-album-plus' );
|
2159 |
break;
|
2160 |
case 'rot180':
|
2161 |
+
$dir = __( '180°' , 'wp-photo-album-plus' );
|
2162 |
break;
|
2163 |
case 'rotright':
|
2164 |
+
$dir = __( 'right' , 'wp-photo-album-plus' );
|
2165 |
break;
|
2166 |
case 'flip':
|
2167 |
case 'flop':
|
2180 |
$extra = '';
|
2181 |
}
|
2182 |
if ( $item == 'flip' ) {
|
2183 |
+
$txt = sprintf( __( 'Photo flipped' , 'wp-photo-album-plus' ), $photo ) . $extra;
|
2184 |
}
|
2185 |
elseif ( $item == 'flop' ) {
|
2186 |
+
$txt = sprintf( __( 'Photo flipped' , 'wp-photo-album-plus' ), $photo ) . $extra;
|
2187 |
}
|
2188 |
else {
|
2189 |
+
$txt = sprintf( __( 'Photo %s rotated %s' , 'wp-photo-album-plus' ), $photo, $dir ) . $extra;
|
2190 |
}
|
2191 |
wppa_json_photo_update( $photo, $txt, '0', true, true );
|
2192 |
}
|
2403 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2404 |
$exists = wppa_is_file_duplicate_photo( $photodata['filename'], $value );
|
2405 |
if ( $exists ) { // Already exists
|
2406 |
+
$txt = sprintf ( __( 'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus' ), $photodata['filename'], $value );
|
2407 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2408 |
break;
|
2409 |
}
|
2423 |
wppa_exit();
|
2424 |
}
|
2425 |
else {
|
2426 |
+
$txt = sprintf( __( 'An error occurred while trying to move photo %s' , 'wp-photo-album-plus' ), $photo );
|
2427 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2428 |
wppa_exit();
|
2429 |
}
|
2436 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2437 |
$exists = wppa_is_file_duplicate_photo( $photodata['filename'], $value );
|
2438 |
if ( $exists ) { // Already exists
|
2439 |
+
$txt = sprintf( __( 'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus' ), $photodata['filename'], $value );
|
2440 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2441 |
break;
|
2442 |
}
|
2449 |
wppa( 'error', wppa_copy_photo( $photo, $value ) );
|
2450 |
wppa_invalidate_treecounts( $value ); // New album
|
2451 |
if ( ! wppa( 'error' ) ) {
|
2452 |
+
$txt = sprintf( __( 'Photo %s copied to album %s (%s)' , 'wp-photo-album-plus' ), $photo, wppa_get_album_name( $value ), $value );
|
2453 |
wppa_json_photo_update( $photo, $txt, '0' );
|
2454 |
}
|
2455 |
else {
|
2456 |
+
$txt = sprintf( __( 'An error occurred while trying to copy photo %s' , 'wp-photo-album-plus' ), $photo );
|
2457 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2458 |
}
|
2459 |
break;
|
2477 |
if ( wppa_get_photo_item( $photo, 'status' ) == 'pending' && $value == 'publish' ) {
|
2478 |
wppa_schedule_mailinglist( 'photoapproved', 0, $photo );
|
2479 |
}
|
2480 |
+
$itemname = __( 'Status', 'wp-photo-album-plus' );
|
2481 |
break;
|
2482 |
case 'name':
|
2483 |
$value = strip_tags( $value );
|
2484 |
+
$itemname = __( 'Name', 'wp-photo-album-plus' );
|
2485 |
wppa_update_photo( array( 'id' => $photo, 'name' => $value ) );
|
2486 |
break;
|
2487 |
case 'description':
|
2488 |
+
$itemname = __( 'Description', 'wp-photo-album-plus' );
|
2489 |
break;
|
2490 |
case 'p_order':
|
2491 |
+
$itemname = __( 'Photo order #' , 'wp-photo-album-plus' );
|
2492 |
break;
|
2493 |
case 'owner':
|
2494 |
$usr = wppa_get_user_by( 'login', $value );
|
2495 |
if ( ! $usr ) {
|
2496 |
+
wppa_echo( '||4||' . sprintf( __( 'User %s does not exists' , 'wp-photo-album-plus' ), $value ) );
|
2497 |
wppa_exit();
|
2498 |
}
|
2499 |
$value = $usr->user_login; // Correct possible case mismatch
|
2500 |
wppa_flush_upldr_cache( 'photoid', $photo ); // Current owner
|
2501 |
wppa_flush_upldr_cache( 'username', $value ); // New owner
|
2502 |
+
$itemname = __( 'Owner' , 'wp-photo-album-plus' );
|
2503 |
break;
|
2504 |
case 'linkurl':
|
2505 |
+
$itemname = __( 'Link url' , 'wp-photo-album-plus' );
|
2506 |
break;
|
2507 |
case 'linktitle':
|
2508 |
+
$itemname = __( 'Link title' , 'wp-photo-album-plus' );
|
2509 |
break;
|
2510 |
case 'linktarget':
|
2511 |
+
$itemname = __( 'Link target' , 'wp-photo-album-plus' );
|
2512 |
break;
|
2513 |
case 'tags':
|
2514 |
$value = wppa_sanitize_tags( $value, false, true );
|
2515 |
$value = wppa_sanitize_tags( wppa_filter_iptc( wppa_filter_exif( $value, $photo ), $photo ) );
|
2516 |
wppa_clear_taglist();
|
2517 |
+
$itemname = __( 'Photo Tags' , 'wp-photo-album-plus' );
|
2518 |
break;
|
2519 |
case 'status':
|
2520 |
wppa_clear_taglist();
|
2521 |
wppa_flush_upldr_cache( 'photoid', $photo );
|
2522 |
+
$itemname = __( 'Status' , 'wp-photo-album-plus' );
|
2523 |
break;
|
2524 |
case 'alt':
|
2525 |
+
$itemname = __( 'HTML Alt' , 'wp-photo-album-plus' );
|
2526 |
$value = strip_tags( stripslashes( $value ) );
|
2527 |
break;
|
2528 |
case 'videox':
|
2529 |
+
$itemname = __( 'Video width' , 'wp-photo-album-plus' );
|
2530 |
if ( ! wppa_is_int( $value ) || $value < '0' ) {
|
2531 |
$txt = __( 'Please enter an integer value >= 0', 'wp-photo-album-plus' );
|
2532 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2533 |
}
|
2534 |
break;
|
2535 |
case 'videoy':
|
2536 |
+
$itemname = __( 'Video height', 'wp-photo-album-plus' );
|
2537 |
if ( ! wppa_is_int( $value ) || $value < '0' ) {
|
2538 |
$txt = __( 'Please enter an integer value >= 0', 'wp-photo-album-plus' );
|
2539 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2651 |
if ( $iret !== false ) {
|
2652 |
wppa_update_modified( $photo );
|
2653 |
if ( wppa_is_video( $photo ) ) {
|
2654 |
+
$txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus' ), $itemname, $photo );
|
2655 |
}
|
2656 |
else {
|
2657 |
+
$txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus' ), $itemname, $photo );
|
2658 |
}
|
2659 |
$err = '0';
|
2660 |
}
|
2670 |
case 'day':
|
2671 |
case 'hour':
|
2672 |
case 'min':
|
2673 |
+
$itemname = __( 'Schedule date/time' , 'wp-photo-album-plus' );
|
2674 |
$scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledtm FROM $wpdb->wppa_photos WHERE id = %s", $photo ) );
|
2675 |
if ( ! $scheduledtm ) {
|
2676 |
$scheduledtm = wppa_get_default_scheduledtm();
|
2686 |
wppa_invalidate_treecounts( $wpdb->get_var( $wpdb->prepare( "SELECT album FROM $wpdb->wppa_photos WHERE id = %s", $photo ) ) );
|
2687 |
wppa_flush_upldr_cache( 'photoid', $photo );
|
2688 |
if ( wppa_is_video( $photo ) ) {
|
2689 |
+
$txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus' ), $itemname, $photo );
|
2690 |
}
|
2691 |
else {
|
2692 |
+
$txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus' ), $itemname, $photo );
|
2693 |
}
|
2694 |
wppa_json_photo_update( $photo, $txt );
|
2695 |
break;
|
2699 |
case 'delday':
|
2700 |
case 'delhour':
|
2701 |
case 'delmin':
|
2702 |
+
$itemname = __( 'Delete date/time' , 'wp-photo-album-plus' );
|
2703 |
$scheduledel = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledel FROM $wpdb->wppa_photos WHERE id = %s", $photo ) );
|
2704 |
if ( ! $scheduledel ) {
|
2705 |
$scheduledel = wppa_get_default_scheduledtm();
|
2722 |
wppa_invalidate_treecounts( $alb );
|
2723 |
wppa_flush_upldr_cache( 'photoid', $photo );
|
2724 |
if ( wppa_is_video( $photo ) ) {
|
2725 |
+
$txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus' ), $itemname, $photo );
|
2726 |
}
|
2727 |
else {
|
2728 |
+
$txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus' ), $itemname, $photo );
|
2729 |
}
|
2730 |
wppa_json_photo_update( $photo, $txt );
|
2731 |
break;
|
2732 |
case 'removescheduledel':
|
2733 |
if ( ( current_user_can( 'wppa_admin' ) || current_user_can( 'wppa_moderate' ) ) ) {
|
2734 |
wppa_update_photo( array( 'id' => $photo, 'scheduledel' => '' ) );
|
2735 |
+
$txt = sprintf( __( 'Scheduled deletion of photo %s cancelled' , 'wp-photo-album-plus' ), $photo );
|
2736 |
$err = '0';
|
2737 |
}
|
2738 |
else {
|
2764 |
$custom = serialize( $custom_data );
|
2765 |
wppa_update_photo( array( 'id' => $photo, 'custom' => $custom, 'modified' => time() ) );
|
2766 |
wppa_index_update( 'photo', $photo );
|
2767 |
+
$txt = sprintf( __( 'Custom field %s of photo %s updated' , 'wp-photo-album-plus' ), wppa_opt( 'custom_caption_'.$index ), $photo );
|
2768 |
wppa_json_photo_update( $photo, $txt );
|
2769 |
break;
|
2770 |
|
2817 |
) );
|
2818 |
|
2819 |
// Report success
|
2820 |
+
$txt = __( 'Photo files updated.', 'wp-photo-album-plus' );
|
2821 |
wppa_json_photo_update( $photo, $txt, '0', true, true );
|
2822 |
}
|
2823 |
else {
|
2834 |
wppa_create_stereo_images( $photo );
|
2835 |
wppa_create_thumbnail( $photo );
|
2836 |
$t = microtime(true) - $t;
|
2837 |
+
$txt = sprintf( __( 'Stereo mode updated in %d milliseconds', 'wp-photo-album-plus' ), floor( $t * 1000 ) );
|
2838 |
wppa_json_photo_update( $photo, $txt, '0', true, true );
|
2839 |
break;
|
2840 |
|
2945 |
|
2946 |
// Check validity
|
2947 |
if ( ! wp_verify_nonce( $nonce, 'wppa-nonce_'.$photo ) ) {
|
2948 |
+
$txt = __( 'You do not have the rights to update photo information' , 'wp-photo-album-plus' );
|
2949 |
wppa_json_photo_update( $photo, $txt, '1' );
|
2950 |
}
|
2951 |
|
3096 |
$setting = explode( '-', $option );
|
3097 |
if ( $value == 'yes' ) {
|
3098 |
$wp_roles->add_cap( $setting[2], $setting[1] );
|
3099 |
+
wppa_echo( '||0||'.__( 'Capability granted' , 'wp-photo-album-plus' ).'||' );
|
3100 |
wppa_exit();
|
3101 |
}
|
3102 |
elseif ( $value == 'no' ) {
|
3103 |
$wp_roles->remove_cap( $setting[2], $setting[1] );
|
3104 |
+
wppa_echo( '||0||'.__( 'Capability withdrawn' , 'wp-photo-album-plus' ).'||' );
|
3105 |
wppa_exit();
|
3106 |
}
|
3107 |
else {
|
3119 |
update_option( 'wppa_qr_cache_hits', '0' );
|
3120 |
update_option( 'wppa_qr_cache_miss', '0' );
|
3121 |
wppa_update_option( $option, $value );
|
3122 |
+
$title = sprintf( __( 'Setting %s updated to %s', 'wp-photo-album-plus' ), $option, $value );
|
3123 |
|
3124 |
// Something to do after changing the setting?
|
3125 |
wppa_initialize_runtime( true ); // force reload new values
|
3172 |
break;
|
3173 |
|
3174 |
case 'wppa_initial_colwidth'://?? fixed low high title
|
3175 |
+
wppa_ajax_check_range( $value, false, '100', false, __( 'Initial width.' , 'wp-photo-album-plus' ) );
|
3176 |
break;
|
3177 |
case 'wppa_fullsize':
|
3178 |
+
wppa_ajax_check_range( $value, false, '100', false, __( 'Full size.' , 'wp-photo-album-plus' ) );
|
3179 |
break;
|
3180 |
case 'wppa_maxheight':
|
3181 |
+
wppa_ajax_check_range( $value, false, '100', false, __( 'Max height.' , 'wp-photo-album-plus' ) );
|
3182 |
break;
|
3183 |
case 'wppa_film_thumbsize':
|
3184 |
case 'wppa_thumbsize':
|
3185 |
case 'wppa_thumbsize_alt':
|
3186 |
+
wppa_ajax_check_range( $value, false, '50', false, __( 'Thumbnail size.' , 'wp-photo-album-plus' ) );
|
3187 |
break;
|
3188 |
case 'wppa_tf_width':
|
3189 |
case 'wppa_tf_width_alt':
|
3190 |
+
wppa_ajax_check_range( $value, false, '50', false, __( 'Thumbnail frame width' , 'wp-photo-album-plus' ) );
|
3191 |
break;
|
3192 |
case 'wppa_tf_height':
|
3193 |
case 'wppa_tf_height_alt':
|
3194 |
+
wppa_ajax_check_range( $value, false, '50',false, __( 'Thumbnail frame height' , 'wp-photo-album-plus' ) );
|
3195 |
break;
|
3196 |
case 'wppa_tn_margin':
|
3197 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Thumbnail Spacing' , 'wp-photo-album-plus' ) );
|
3198 |
break;
|
3199 |
case 'wppa_thumb_page_size':
|
3200 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Thumb page size.' , 'wp-photo-album-plus' ) );
|
3201 |
break;
|
3202 |
case 'wppa_smallsize':
|
3203 |
+
wppa_ajax_check_range( $value, false, '50', false, __( 'Cover photo size.' , 'wp-photo-album-plus' ) );
|
3204 |
break;
|
3205 |
case 'wppa_smallsize_percentage':
|
3206 |
+
wppa_ajax_check_range( $value, false, '10', '100', __( 'Cover photo size.' , 'wp-photo-album-plus' ) );
|
3207 |
break;
|
3208 |
case 'wppa_album_page_size':
|
3209 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Album page size.' , 'wp-photo-album-plus' ) );
|
3210 |
break;
|
3211 |
case 'wppa_topten_count':
|
3212 |
+
wppa_ajax_check_range( $value, false, '2', false, __( 'Number of TopTen photos' , 'wp-photo-album-plus' ), '40' );
|
3213 |
break;
|
3214 |
case 'wppa_topten_size':
|
3215 |
+
wppa_ajax_check_range( $value, false, '32', false, __( 'Widget image thumbnail size' , 'wp-photo-album-plus' ), wppa_get_minisize() );
|
3216 |
break;
|
3217 |
case 'wppa_max_cover_width':
|
3218 |
+
wppa_ajax_check_range( $value, false, '150', false, __( 'Max Cover width' , 'wp-photo-album-plus' ) );
|
3219 |
break;
|
3220 |
case 'wppa_text_frame_height':
|
3221 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Minimal description height' , 'wp-photo-album-plus' ) );
|
3222 |
break;
|
3223 |
case 'wppa_cover_minheight':
|
3224 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Minimal cover height' , 'wp-photo-album-plus' ) );
|
3225 |
break;
|
3226 |
case 'wppa_head_and_text_frame_height':
|
3227 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Minimal text frame height' , 'wp-photo-album-plus' ) );
|
3228 |
break;
|
3229 |
case 'wppa_bwidth':
|
3230 |
+
wppa_ajax_check_range( $value, '', '0', false, __( 'Border width' , 'wp-photo-album-plus' ) );
|
3231 |
break;
|
3232 |
case 'wppa_bradius':
|
3233 |
+
wppa_ajax_check_range( $value, '', '0', false, __( 'Border radius' , 'wp-photo-album-plus' ) );
|
3234 |
break;
|
3235 |
case 'wppa_box_spacing':
|
3236 |
+
wppa_ajax_check_range( $value, '', '-20', '100', __( 'Box spacing' , 'wp-photo-album-plus' ) );
|
3237 |
break;
|
3238 |
case 'wppa_popupsize':
|
3239 |
$floor = wppa_opt( 'thumbsize' );
|
3240 |
$temp = wppa_opt( 'smallsize' );
|
3241 |
if ( $temp > $floor ) $floor = $temp;
|
3242 |
+
wppa_ajax_check_range( $value, false, $floor, wppa_opt( 'fullsize' ), __( 'Popup size' , 'wp-photo-album-plus' ) );
|
3243 |
break;
|
3244 |
case 'wppa_fullimage_border_width':
|
3245 |
+
wppa_ajax_check_range( $value, '', '0', false, __( 'Fullsize border width' , 'wp-photo-album-plus' ) );
|
3246 |
break;
|
3247 |
case 'wppa_lightbox_bordersize':
|
3248 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Lightbox Bordersize' , 'wp-photo-album-plus' ) );
|
3249 |
break;
|
3250 |
case 'wppa_ovl_border_width':
|
3251 |
+
wppa_ajax_check_range( $value, false, '0', '16', __( 'Lightbox Borderwidth' , 'wp-photo-album-plus' ) );
|
3252 |
break;
|
3253 |
case 'wppa_ovl_border_radius':
|
3254 |
+
wppa_ajax_check_range( $value, false, '0', '16', __( 'Lightbox Borderradius' , 'wp-photo-album-plus' ) );
|
3255 |
break;
|
3256 |
case 'wppa_comment_count':
|
3257 |
+
wppa_ajax_check_range( $value, false, '2', '40', __( 'Number of Comment widget entries' , 'wp-photo-album-plus' ) );
|
3258 |
break;
|
3259 |
case 'wppa_comment_size':
|
3260 |
+
wppa_ajax_check_range( $value, false, '32', wppa_get_minisize(), __( 'Comment Widget image thumbnail size' , 'wp-photo-album-plus' ), wppa_get_minisize() );
|
3261 |
break;
|
3262 |
case 'wppa_thumb_opacity':
|
3263 |
+
wppa_ajax_check_range( $value, false, '0', '100', __( 'Opacity.' , 'wp-photo-album-plus' ) );
|
3264 |
break;
|
3265 |
case 'wppa_cover_opacity':
|
3266 |
+
wppa_ajax_check_range( $value, false, '0', '100', __( 'Opacity.' , 'wp-photo-album-plus' ) );
|
3267 |
break;
|
3268 |
case 'wppa_star_opacity':
|
3269 |
+
wppa_ajax_check_range( $value, false, '0', '50', __( 'Opacity.' , 'wp-photo-album-plus' ) );
|
3270 |
break;
|
3271 |
case 'wppa_gravatar_size':
|
3272 |
+
wppa_ajax_check_range( $value, false, '10', '256', __( 'Avatar size' , 'wp-photo-album-plus' ) );
|
3273 |
break;
|
3274 |
case 'wppa_watermark_opacity':
|
3275 |
+
wppa_ajax_check_range( $value, false, '0', '100', __( 'Watermark opacity' , 'wp-photo-album-plus' ) );
|
3276 |
break;
|
3277 |
case 'wppa_watermark_opacity_text':
|
3278 |
+
wppa_ajax_check_range( $value, false, '0', '100', __( 'Watermark opacity' , 'wp-photo-album-plus' ) );
|
3279 |
break;
|
3280 |
case 'wppa_ovl_txt_lines':
|
3281 |
+
wppa_ajax_check_range( $value, 'auto', '0', '24', __( 'Number of text lines' , 'wp-photo-album-plus' ) );
|
3282 |
break;
|
3283 |
case 'wppa_ovl_opacity':
|
3284 |
+
wppa_ajax_check_range( $value, false, '0', '100', __( 'Overlay opacity' , 'wp-photo-album-plus' ) );
|
3285 |
break;
|
3286 |
case 'wppa_upload_limit_count':
|
3287 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Upload limit' , 'wp-photo-album-plus' ) );
|
3288 |
break;
|
3289 |
case 'wppa_dislike_mail_every':
|
3290 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Notify inappropriate' , 'wp-photo-album-plus' ) );
|
3291 |
break;
|
3292 |
case 'wppa_dislike_set_pending':
|
3293 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Dislike pending' , 'wp-photo-album-plus' ) );
|
3294 |
break;
|
3295 |
case 'wppa_dislike_delete':
|
3296 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'Dislike delete' , 'wp-photo-album-plus' ) );
|
3297 |
break;
|
3298 |
case 'wppa_cp_points_comment':
|
3299 |
case 'wppa_cp_points_comment_appr':
|
3300 |
case 'wppa_cp_points_rating':
|
3301 |
case 'wppa_cp_points_upload':
|
3302 |
+
wppa_ajax_check_range( $value, false, '0', false, __( 'myCRED / Cube Points' , 'wp-photo-album-plus' ) );
|
3303 |
break;
|
3304 |
case 'wppa_jpeg_quality':
|
3305 |
+
wppa_ajax_check_range( $value, false, '20', '100', __( 'JPG Image quality' , 'wp-photo-album-plus' ) );
|
3306 |
if ( wppa_cdn( 'admin' ) == 'cloudinary' && ! wppa( 'out' ) ) {
|
3307 |
wppa_delete_derived_from_cloudinary();
|
3308 |
}
|
3333 |
break;
|
3334 |
/*
|
3335 |
case 'wppa_start_pause_symbol_size':
|
3336 |
+
wppa_ajax_check_range( $value, false, '0', false, __('Start/pause symbol size', 'wp-photo-album-plus' ) );
|
3337 |
break;
|
3338 |
case 'wppa_start_pause_symbol_bradius':
|
3339 |
+
wppa_ajax_check_range( $value, false, '0', false, __('Start/pause symbol border radius', 'wp-photo-album-plus' ) );
|
3340 |
break;
|
3341 |
case 'wppa_stop_symbol_size':
|
3342 |
+
wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol size', 'wp-photo-album-plus' ) );
|
3343 |
break;
|
3344 |
case 'wppa_stop_symbol_bradius':
|
3345 |
+
wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol border radius', 'wp-photo-album-plus' ) );
|
3346 |
break;
|
3347 |
*/
|
3348 |
case 'wppa_sticky_header_size':
|
3349 |
+
wppa_ajax_check_range( $value, false, '0', '400', __('Sticky header size', 'wp-photo-album-plus' ) );
|
3350 |
break;
|
3351 |
|
3352 |
case 'wppa_rating_clear':
|
3356 |
|
3357 |
if ( $iret1 !== false && $iret2 !== false ) {
|
3358 |
delete_option( 'wppa_'.WPPA_RATING.'_lastkey' );
|
3359 |
+
$title = __( 'Ratings cleared' , 'wp-photo-album-plus' );
|
3360 |
}
|
3361 |
else {
|
3362 |
+
$title = __( 'Could not clear ratings' , 'wp-photo-album-plus' );
|
3363 |
$alert = $title;
|
3364 |
wppa( 'error', '1' );
|
3365 |
}
|
3368 |
$iret = $wpdb->query( "UPDATE $wpdb->wppa_photos SET views = '0'" ) &&
|
3369 |
$wpdb->query( "UPDATE $wpdb->wppa_albums SET views = '0'" );
|
3370 |
if ( $iret !== false ) {
|
3371 |
+
$title = __( 'Viewcounts cleared' , 'wp-photo-album-plus' );
|
3372 |
}
|
3373 |
else {
|
3374 |
+
$title = __( 'Could not clear viewcounts' , 'wp-photo-album-plus' );
|
3375 |
$alert = $title;
|
3376 |
wppa( 'error', '1' );
|
3377 |
}
|
3381 |
$iret = $wpdb->query( "TRUNCATE TABLE $wpdb->wppa_iptc" );
|
3382 |
if ( $iret !== false ) {
|
3383 |
delete_option( 'wppa_'.WPPA_IPTC.'_lastkey' );
|
3384 |
+
$title = __( 'IPTC data cleared' , 'wp-photo-album-plus' );
|
3385 |
update_option( 'wppa_index_need_remake', 'yes' );
|
3386 |
}
|
3387 |
else {
|
3388 |
+
$title = __( 'Could not clear IPTC data' , 'wp-photo-album-plus' );
|
3389 |
$alert = $title;
|
3390 |
wppa( 'error', '1' );
|
3391 |
}
|
3395 |
$iret = $wpdb->query( "TRUNCATE TABLE $wpdb->wppa_exif" );
|
3396 |
if ( $iret !== false ) {
|
3397 |
delete_option( 'wppa_'.WPPA_EXIF.'_lastkey' );
|
3398 |
+
$title = __( 'EXIF data cleared' , 'wp-photo-album-plus' );
|
3399 |
update_option( 'wppa_index_need_remake', 'yes' );
|
3400 |
}
|
3401 |
else {
|
3402 |
+
$title = __( 'Could not clear EXIF data' , 'wp-photo-album-plus' );
|
3403 |
$alert = $title;
|
3404 |
wppa( 'error', '1' );
|
3405 |
}
|
3407 |
|
3408 |
case 'wppa_recup':
|
3409 |
$result = wppa_recuperate_iptc_exif();
|
3410 |
+
wppa_echo( '||0||'.__( 'Recuperation performed' , 'wp-photo-album-plus' ).'||'.$result );
|
3411 |
wppa_exit();
|
3412 |
break;
|
3413 |
|
3422 |
}
|
3423 |
}
|
3424 |
if ( ! wppa( 'error' ) ) $old_minisize--; // Trigger regen message
|
3425 |
+
else $alert = __( 'Illegal format. Please enter a 6 digit hexadecimal color value. Example: #77bbff' , 'wp-photo-album-plus' );
|
3426 |
break;
|
3427 |
|
3428 |
case 'wppa_thumb_aspect':
|
3448 |
}
|
3449 |
|
3450 |
update_option ( 'wppa_rerate_status', 'Required' );
|
3451 |
+
$alert .= __( 'You just changed a setting that requires the recalculation of ratings.' , 'wp-photo-album-plus' );
|
3452 |
+
$alert .= ' '.__( 'Please run the appropriate maintenance procedure.' , 'wp-photo-album-plus' );
|
3453 |
|
3454 |
wppa_update_option( $option, $value );
|
3455 |
wppa( 'error', '0' );
|
3470 |
if ( ! wppa_is_dir( $dir ) ) wppa_mkdir( $dir );
|
3471 |
if ( ! wppa_is_dir( $dir ) || ! is_writable( $dir ) ) {
|
3472 |
wppa( 'error', '1' );
|
3473 |
+
$alert = sprintf( __( 'Unable to create or write to %s' , 'wp-photo-album-plus' ), $dir );
|
3474 |
}
|
3475 |
break;
|
3476 |
|
3479 |
$value = rtrim( $value, '/' );
|
3480 |
if ( strpos( $value.'/', WPPA_UPLOAD_PATH.'/' ) !== false ) {
|
3481 |
wppa( 'error', '1' );
|
3482 |
+
$alert = sprintf( __( 'Source can not be inside the wppa folder.' , 'wp-photo-album-plus' ) );
|
3483 |
}
|
3484 |
else {
|
3485 |
$dir = $value;
|
3486 |
if ( ! wppa_is_dir( $dir ) ) wppa_mkdir( $dir );
|
3487 |
if ( ! wppa_is_dir( $dir ) || ! is_writable( $dir ) ) {
|
3488 |
wppa( 'error', '1' );
|
3489 |
+
$alert = sprintf( __( 'Unable to create or write to %s' , 'wp-photo-album-plus' ), $dir );
|
3490 |
}
|
3491 |
}
|
3492 |
break;
|
3493 |
|
3494 |
case 'wppa_newpag_content':
|
3495 |
if ( strpos( $value, 'w#album' ) === false ) {
|
3496 |
+
$alert = __( 'The content must contain w#album' , 'wp-photo-album-plus' );
|
3497 |
wppa( 'error', '1' );
|
3498 |
}
|
3499 |
break;
|
3500 |
|
3501 |
case 'wppa_gpx_shortcode':
|
3502 |
if ( strpos( $value, 'w#lat' ) === false || strpos( $value, 'w#lon' ) === false ) {
|
3503 |
+
$alert = __( 'The content must contain w#lat and w#lon' , 'wp-photo-album-plus' );
|
3504 |
wppa( 'error', '1' );
|
3505 |
}
|
3506 |
break;
|
3531 |
$black_listed_users[] = $value;
|
3532 |
update_option( 'wppa_black_listed_users', $black_listed_users );
|
3533 |
}
|
3534 |
+
$alert = esc_js( sprintf( __( 'User %s has been blacklisted.' , 'wp-photo-album-plus' ), $value ) );
|
3535 |
}
|
3536 |
}
|
3537 |
else {
|
3538 |
+
$alert = esc_js( sprintf( __( 'User %s does not exist.' , 'wp-photo-album-plus' ), $value ) );
|
3539 |
}
|
3540 |
$value = '';
|
3541 |
break;
|
3566 |
$super_users[] = $value;
|
3567 |
update_option( 'wppa_super_users', $super_users );
|
3568 |
}
|
3569 |
+
$alert = esc_js( sprintf( __( 'User %s is now superuser.' , 'wp-photo-album-plus' ), $value ) );
|
3570 |
}
|
3571 |
}
|
3572 |
else {
|
3573 |
+
$alert = esc_js( sprintf( __( 'User %s does not exist.' , 'wp-photo-album-plus' ), $value ) );
|
3574 |
}
|
3575 |
$value = '';
|
3576 |
break;
|
3592 |
if ( strpos( $custom_content, 'w#fotomoto' ) === false ) {
|
3593 |
$custom_content = 'w#fotomoto '.$custom_content;
|
3594 |
wppa_update_option( 'wppa_custom_content', $custom_content );
|
3595 |
+
$alert = __( 'The content of the Custom box has been changed to display the Fotomoto toolbar.' , 'wp-photo-album-plus' ).' ';
|
3596 |
}
|
3597 |
if ( ! wppa_switch( 'custom_on' ) ) {
|
3598 |
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3599 |
+
$alert .= __( 'The display of the custom box has been enabled' , 'wp-photo-album-plus' );
|
3600 |
}
|
3601 |
}
|
3602 |
break;
|
3607 |
if ( strpos( $custom_content, 'w#location' ) === false ) {
|
3608 |
$custom_content = 'w#location '.$custom_content;
|
3609 |
wppa_update_option( 'wppa_custom_content', $custom_content );
|
3610 |
+
$alert = __( 'The content of the Slideshow component Custom box has been changed to display the location map.' , 'wp-photo-album-plus' ).' ';
|
3611 |
}
|
3612 |
if ( ! wppa_switch( 'custom_on' ) ) {
|
3613 |
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3614 |
+
$alert .= __( 'The display of the custom box has been enabled' , 'wp-photo-album-plus' );
|
3615 |
}
|
3616 |
}
|
3617 |
break;
|
3622 |
if ( strpos( $custom_content, 'w#location' ) === false ) {
|
3623 |
$custom_content = $custom_content.' w#location';
|
3624 |
wppa_update_option( 'wppa_custom_content', $custom_content );
|
3625 |
+
$alert = __( 'The content of the Slideshow component Custom box has been changed to display maps.' , 'wp-photo-album-plus' ).' ';
|
3626 |
}
|
3627 |
if ( ! wppa_switch( 'custom_on' ) ) {
|
3628 |
wppa_update_option( 'wppa_custom_on', 'yes' );
|
3629 |
+
$alert .= __( 'The display of the custom box has been enabled.' , 'wp-photo-album-plus' );
|
3630 |
}
|
3631 |
}
|
3632 |
break;
|
3803 |
case 'wppa_main_photo_reset':
|
3804 |
$wpdb->query( "UPDATE $wpdb->wppa_albums SET main_photo = 0" );
|
3805 |
$value = 'no';
|
3806 |
+
$alert = __('All album cover images set to default', 'wp-photo-album-plus' );
|
3807 |
break;
|
3808 |
case 'wppa_nicescroll_opts':
|
3809 |
$value = wppa_sanitize_nso( $value );
|
3816 |
}
|
3817 |
|
3818 |
if ( wppa( 'error' ) ) {
|
3819 |
+
if ( ! $title ) $title = sprintf( __( 'Failed to set %s to %s', 'wp-photo-album-plus' ), $option, $value );
|
3820 |
if ( ! $alert ) $alert .= wppa( 'out' );
|
3821 |
}
|
3822 |
|
3826 |
}
|
3827 |
else {
|
3828 |
wppa_update_option( $option, $value );
|
3829 |
+
if ( ! $title ) $title = sprintf( __( 'Setting %s updated to %s', 'wp-photo-album-plus' ), $option, $value );
|
3830 |
}
|
3831 |
|
3832 |
// Save possible error
|
3843 |
$new_minisize = wppa_get_minisize();
|
3844 |
if ( $old_minisize != $new_minisize ) {
|
3845 |
update_option ( 'wppa_regen_thumbs_status', 'Required' );
|
3846 |
+
$alert .= __( 'You just changed a setting that requires the regeneration of thumbnails.' , 'wp-photo-album-plus' );
|
3847 |
+
$alert .= ' '.__( 'Please run the appropriate maintenance procedure.' , 'wp-photo-album-plus' );
|
3848 |
}
|
3849 |
|
3850 |
// Compose the cron job status and togo fields
|
3933 |
case 'destroyalbum':
|
3934 |
$album = wppa_get( 'album' );
|
3935 |
if ( ! $album ) {
|
3936 |
+
_e('Missing album id', 'wp-photo-album-plus' );
|
3937 |
wppa_exit();
|
3938 |
}
|
3939 |
$nonce = wppa_get( 'nonce' );
|
3951 |
}
|
3952 |
if ( wppa_is_user_blacklisted() ) $may = false;
|
3953 |
if ( ! $imay ) {
|
3954 |
+
_e('You do not have the rights to delete this album', 'wp-photo-album-plus' );
|
3955 |
wppa_exit();
|
3956 |
}
|
3957 |
|
4005 |
|
4006 |
// Compose error message
|
4007 |
if ( $low !== false && $high === false ) { // Only Minimum given
|
4008 |
+
wppa_out( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus' ) . ' ' . $low . ' ' . __( 'for' , 'wp-photo-album-plus' ) . ' ' . $title );
|
4009 |
if ( $fixed !== false ) {
|
4010 |
+
if ( $fixed ) wppa_out( '. ' . __( 'You may also enter:' , 'wp-photo-album-plus' ) . ' ' . $fixed );
|
4011 |
+
else wppa_out( '. ' . __( 'You may also leave/set this blank' , 'wp-photo-album-plus' ) );
|
4012 |
}
|
4013 |
}
|
4014 |
else { // Also Maximum given
|
4015 |
+
wppa_out( __( 'Please supply a numeric value greater than or equal to' , 'wp-photo-album-plus' ) . ' ' . $low . ' ' . __( 'and less than or equal to' , 'wp-photo-album-plus' ) . ' ' . $high . ' ' . __( 'for' , 'wp-photo-album-plus' ) . ' ' . $title );
|
4016 |
if ( $fixed !== false ) {
|
4017 |
+
if ( $fixed ) wppa_out( '. ' . __( 'You may also enter:' , 'wp-photo-album-plus' ) . ' ' . $fixed );
|
4018 |
+
else wppa_out( '. ' . __( 'You may also leave/set this blank' , 'wp-photo-album-plus' ) );
|
4019 |
}
|
4020 |
}
|
4021 |
}
|
wppa-album-admin-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -526,7 +526,7 @@ global $wppa_revno;
|
|
526 |
$crypt . '. ' .
|
527 |
|
528 |
__( 'Created:', 'wp-photo-album-plus' ) . ' ' .
|
529 |
-
wppa_local_date( '', $timestamp ) . ' ' . __( 'local time' , 'wp-photo-album-plus') . '. ' .
|
530 |
|
531 |
__( 'Modified:', 'wp-photo-album-plus' ) . ' ';
|
532 |
if ( $modified > $timestamp ) {
|
@@ -1101,7 +1101,7 @@ global $wppa_revno;
|
|
1101 |
}
|
1102 |
else {
|
1103 |
$result .= '
|
1104 |
-
<option value="0" >' . __( 'No categories yet', 'wp-photo-album-plus') . '</option>';
|
1105 |
}
|
1106 |
$result .= '
|
1107 |
</select>
|
@@ -1405,7 +1405,7 @@ global $wppa_revno;
|
|
1405 |
// Create subalbum
|
1406 |
if ( wppa_can_create_album() ) {
|
1407 |
$url = wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=new&parent_id=' . $albuminfo['id'] . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1408 |
-
$onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
|
1409 |
|
1410 |
$result .= '
|
1411 |
<input
|
@@ -1426,7 +1426,7 @@ global $wppa_revno;
|
|
1426 |
'&parent_id=' . $albuminfo['a_parent'] .
|
1427 |
'&is-sibling-of=' . $albuminfo['id'] .
|
1428 |
'&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1429 |
-
$onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
|
1430 |
|
1431 |
$result .= '
|
1432 |
<input
|
@@ -1460,7 +1460,7 @@ global $wppa_revno;
|
|
1460 |
if ( current_user_can( 'wppa_upload' ) ) {
|
1461 |
|
1462 |
$onc = ( $full ?
|
1463 |
-
'alert(\''.__('Change the upload limit or remove photos to enable new uploads.', 'wp-photo-album-plus').'\')' :
|
1464 |
'document.location = \''.wppa_dbg_url(get_admin_url()).'/admin.php?page=wppa_upload_photos&wppa-set-album='.$id.'\''
|
1465 |
);
|
1466 |
$val = ( $full ?
|
@@ -1495,7 +1495,7 @@ global $wppa_revno;
|
|
1495 |
<input
|
1496 |
type="button"
|
1497 |
onclick="wppaAjaxDownloadAlbum( 0, ' . $albuminfo['id'] . ' );"
|
1498 |
-
value="' . esc_attr( __('Download album', 'wp-photo-album-plus') ).'"
|
1499 |
/>
|
1500 |
<img
|
1501 |
id="dwnspin-0-' . $albuminfo['id'] . '"
|
@@ -1512,7 +1512,7 @@ global $wppa_revno;
|
|
1512 |
<input
|
1513 |
type="button"
|
1514 |
onclick="wppaTrySetAllPanorama(' . $albuminfo['id'] . ')"
|
1515 |
-
value="' . esc_attr( __('Set all to panorama', 'wp-photo-album-plus') ).':"
|
1516 |
/>
|
1517 |
|
1518 |
<select id="pano-opt" >
|
@@ -2063,7 +2063,7 @@ global $wpdb;
|
|
2063 |
__( 'A/P/PM/S', 'wp-photo-album-plus' ) . '
|
2064 |
</td>
|
2065 |
<td>' . __( 'Edit', 'wp-photo-album-plus' ) . '</td>
|
2066 |
-
<td>' . __( 'Quick', 'wp-photo-album-plus') . '</td>
|
2067 |
<td>' . __( 'Bulk', 'wp-photo-album-plus' ) . '</td>
|
2068 |
<td>' . ( ! wppa_switch( 'porder_restricted' ) || wppa_user_is( 'administrator' ) ? __( 'Seq', 'wp-photo-album-plus' ) : '' ) . '</td>
|
2069 |
<td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
|
@@ -2101,7 +2101,7 @@ global $wpdb;
|
|
2101 |
$url = wppa_ea_url( $id );
|
2102 |
$delurl = wppa_ea_url( $id, 'del' );
|
2103 |
$creurl = get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=new&parent_id=' . $id . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' );
|
2104 |
-
$creonc = 'if (confirm(\''.esc_js(__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus')).'\')) document.location=\''.$creurl.'\';';
|
2105 |
|
2106 |
$result .= '
|
2107 |
<tr ' . $alt . ( $pendcount ? 'style="background-color:#ffdddd"' : '' ) . '>
|
@@ -2388,7 +2388,7 @@ global $wpdb;
|
|
2388 |
__( 'A/P/PM/S', 'wp-photo-album-plus' ) . '
|
2389 |
</td>
|
2390 |
<td>' . __( 'Edit', 'wp-photo-album-plus' ) . '</td>
|
2391 |
-
<td>' . __( 'Quick', 'wp-photo-album-plus') . '</td>
|
2392 |
<td>' . __( 'Bulk', 'wp-photo-album-plus' ) . '</td>
|
2393 |
<td>' . ( ! wppa_switch( 'porder_restricted' ) || wppa_user_is( 'administrator' ) ? __( 'Seq', 'wp-photo-album-plus' ) : '' ) . '</td>
|
2394 |
<td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
|
@@ -2885,7 +2885,7 @@ global $wpdb;
|
|
2885 |
wppa_clear_cache( array( 'album' => $id ) );
|
2886 |
wppa_childlist_remove( $id );
|
2887 |
|
2888 |
-
$msg = __( 'Album Deleted.' , 'wp-photo-album-plus');
|
2889 |
if ( wppa( 'ajax' ) ) {
|
2890 |
wppa_echo( $msg );
|
2891 |
}
|
@@ -2949,9 +2949,9 @@ global $wpdb;
|
|
2949 |
else {
|
2950 |
$selected = '';
|
2951 |
}
|
2952 |
-
$name = __(stripslashes($photo['name']), 'wp-photo-album-plus');
|
2953 |
if ( strlen($name) > 45 ) $name = substr($name, 0, 45).'...';
|
2954 |
-
if ( ! $name ) $name = __('Nameless, filename = ', 'wp-photo-album-plus').$photo['filename'];
|
2955 |
$output .= '<option value="'.$photo['id'].'" '.$selected.'>'.$name.'</option>';
|
2956 |
}
|
2957 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
526 |
$crypt . '. ' .
|
527 |
|
528 |
__( 'Created:', 'wp-photo-album-plus' ) . ' ' .
|
529 |
+
wppa_local_date( '', $timestamp ) . ' ' . __( 'local time' , 'wp-photo-album-plus' ) . '. ' .
|
530 |
|
531 |
__( 'Modified:', 'wp-photo-album-plus' ) . ' ';
|
532 |
if ( $modified > $timestamp ) {
|
1101 |
}
|
1102 |
else {
|
1103 |
$result .= '
|
1104 |
+
<option value="0" >' . __( 'No categories yet', 'wp-photo-album-plus' ) . '</option>';
|
1105 |
}
|
1106 |
$result .= '
|
1107 |
</select>
|
1405 |
// Create subalbum
|
1406 |
if ( wppa_can_create_album() ) {
|
1407 |
$url = wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=new&parent_id=' . $albuminfo['id'] . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1408 |
+
$onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus' ).'\')) document.location=\''.$url.'\';';
|
1409 |
|
1410 |
$result .= '
|
1411 |
<input
|
1426 |
'&parent_id=' . $albuminfo['a_parent'] .
|
1427 |
'&is-sibling-of=' . $albuminfo['id'] .
|
1428 |
'&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1429 |
+
$onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus' ).'\')) document.location=\''.$url.'\';';
|
1430 |
|
1431 |
$result .= '
|
1432 |
<input
|
1460 |
if ( current_user_can( 'wppa_upload' ) ) {
|
1461 |
|
1462 |
$onc = ( $full ?
|
1463 |
+
'alert(\''.__('Change the upload limit or remove photos to enable new uploads.', 'wp-photo-album-plus' ).'\')' :
|
1464 |
'document.location = \''.wppa_dbg_url(get_admin_url()).'/admin.php?page=wppa_upload_photos&wppa-set-album='.$id.'\''
|
1465 |
);
|
1466 |
$val = ( $full ?
|
1495 |
<input
|
1496 |
type="button"
|
1497 |
onclick="wppaAjaxDownloadAlbum( 0, ' . $albuminfo['id'] . ' );"
|
1498 |
+
value="' . esc_attr( __('Download album', 'wp-photo-album-plus' ) ).'"
|
1499 |
/>
|
1500 |
<img
|
1501 |
id="dwnspin-0-' . $albuminfo['id'] . '"
|
1512 |
<input
|
1513 |
type="button"
|
1514 |
onclick="wppaTrySetAllPanorama(' . $albuminfo['id'] . ')"
|
1515 |
+
value="' . esc_attr( __('Set all to panorama', 'wp-photo-album-plus' ) ).':"
|
1516 |
/>
|
1517 |
|
1518 |
<select id="pano-opt" >
|
2063 |
__( 'A/P/PM/S', 'wp-photo-album-plus' ) . '
|
2064 |
</td>
|
2065 |
<td>' . __( 'Edit', 'wp-photo-album-plus' ) . '</td>
|
2066 |
+
<td>' . __( 'Quick', 'wp-photo-album-plus' ) . '</td>
|
2067 |
<td>' . __( 'Bulk', 'wp-photo-album-plus' ) . '</td>
|
2068 |
<td>' . ( ! wppa_switch( 'porder_restricted' ) || wppa_user_is( 'administrator' ) ? __( 'Seq', 'wp-photo-album-plus' ) : '' ) . '</td>
|
2069 |
<td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
|
2101 |
$url = wppa_ea_url( $id );
|
2102 |
$delurl = wppa_ea_url( $id, 'del' );
|
2103 |
$creurl = get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=new&parent_id=' . $id . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' );
|
2104 |
+
$creonc = 'if (confirm(\''.esc_js(__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus' )).'\')) document.location=\''.$creurl.'\';';
|
2105 |
|
2106 |
$result .= '
|
2107 |
<tr ' . $alt . ( $pendcount ? 'style="background-color:#ffdddd"' : '' ) . '>
|
2388 |
__( 'A/P/PM/S', 'wp-photo-album-plus' ) . '
|
2389 |
</td>
|
2390 |
<td>' . __( 'Edit', 'wp-photo-album-plus' ) . '</td>
|
2391 |
+
<td>' . __( 'Quick', 'wp-photo-album-plus' ) . '</td>
|
2392 |
<td>' . __( 'Bulk', 'wp-photo-album-plus' ) . '</td>
|
2393 |
<td>' . ( ! wppa_switch( 'porder_restricted' ) || wppa_user_is( 'administrator' ) ? __( 'Seq', 'wp-photo-album-plus' ) : '' ) . '</td>
|
2394 |
<td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
|
2885 |
wppa_clear_cache( array( 'album' => $id ) );
|
2886 |
wppa_childlist_remove( $id );
|
2887 |
|
2888 |
+
$msg = __( 'Album Deleted.' , 'wp-photo-album-plus' );
|
2889 |
if ( wppa( 'ajax' ) ) {
|
2890 |
wppa_echo( $msg );
|
2891 |
}
|
2949 |
else {
|
2950 |
$selected = '';
|
2951 |
}
|
2952 |
+
$name = __(stripslashes($photo['name']), 'wp-photo-album-plus' );
|
2953 |
if ( strlen($name) > 45 ) $name = substr($name, 0, 45).'...';
|
2954 |
+
if ( ! $name ) $name = __('Nameless, filename = ', 'wp-photo-album-plus' ).$photo['filename'];
|
2955 |
$output .= '<option value="'.$photo['id'].'" '.$selected.'>'.$name.'</option>';
|
2956 |
}
|
2957 |
|
wppa-album-covers.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for album covers
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1628,7 +1628,7 @@ function wppa_get_album_title_attr_a( $albumid, $linktype, $linkpage, $has_conte
|
|
1628 |
break;
|
1629 |
}
|
1630 |
$href_title = wppa_convert_to_pretty( $href_title );
|
1631 |
-
$title_title = __( 'Link to' , 'wp-photo-album-plus');
|
1632 |
$title_title .= ' ' . __( get_the_title( $album['cover_linkpage'] ) );
|
1633 |
}
|
1634 |
|
@@ -1661,7 +1661,7 @@ function wppa_get_album_title_attr_a( $albumid, $linktype, $linkpage, $has_conte
|
|
1661 |
break;
|
1662 |
}
|
1663 |
$title_title =
|
1664 |
-
__( 'View the album' , 'wp-photo-album-plus') . ' ' . esc_attr( __( stripslashes( $album['name'] ) ) );
|
1665 |
}
|
1666 |
else { // No content on current page/post
|
1667 |
if ( $photocount > '0' ) { // coverphotos only
|
@@ -1681,7 +1681,7 @@ function wppa_get_album_title_attr_a( $albumid, $linktype, $linkpage, $has_conte
|
|
1681 |
}
|
1682 |
$href_title = "#";
|
1683 |
|
1684 |
-
$title_title = _n( 'View the cover photo', 'View the cover photos' , $photocount, 'wp-photo-album-plus');
|
1685 |
}
|
1686 |
}
|
1687 |
$title_attr['href'] = wppa_encrypt_url( $href_title );
|
@@ -1737,14 +1737,14 @@ function wppa_album_cover_view_link(
|
|
1737 |
|
1738 |
if ( $href_content == '#' ) {
|
1739 |
wppa_out(
|
1740 |
-
'<a class="wppa-album-cover-link" onclick="' . $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus') . ' ' .
|
1741 |
esc_attr( stripslashes( __( $album['name'] ) ) ) . '" style="cursor:pointer;" >'
|
1742 |
);
|
1743 |
}
|
1744 |
else {
|
1745 |
wppa_out(
|
1746 |
'<a class="wppa-album-cover-link" href="' . $href_content . '" target="' . $target . '" onclick="' .
|
1747 |
-
$onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus') . ' ' .
|
1748 |
esc_attr( stripslashes( __( $album['name'] ) ) ) .
|
1749 |
'" style="cursor:pointer;" >'
|
1750 |
);
|
@@ -1757,7 +1757,7 @@ function wppa_album_cover_view_link(
|
|
1757 |
$ntp = $treecount['treephotos'] > $photocount ? $treecount['treephotos'] : '';
|
1758 |
$ntpx = $treecount['treephotos'] > $photocount ? $treecount['treephotos'] : $photocount;
|
1759 |
|
1760 |
-
$text = __( 'View' , 'wp-photo-album-plus') . ' ';
|
1761 |
|
1762 |
if ( wppa_opt( 'show_treecount' ) == 'total' ) {
|
1763 |
if ( $ntax ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for album covers
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
1628 |
break;
|
1629 |
}
|
1630 |
$href_title = wppa_convert_to_pretty( $href_title );
|
1631 |
+
$title_title = __( 'Link to' , 'wp-photo-album-plus' );
|
1632 |
$title_title .= ' ' . __( get_the_title( $album['cover_linkpage'] ) );
|
1633 |
}
|
1634 |
|
1661 |
break;
|
1662 |
}
|
1663 |
$title_title =
|
1664 |
+
__( 'View the album' , 'wp-photo-album-plus' ) . ' ' . esc_attr( __( stripslashes( $album['name'] ) ) );
|
1665 |
}
|
1666 |
else { // No content on current page/post
|
1667 |
if ( $photocount > '0' ) { // coverphotos only
|
1681 |
}
|
1682 |
$href_title = "#";
|
1683 |
|
1684 |
+
$title_title = _n( 'View the cover photo', 'View the cover photos' , $photocount, 'wp-photo-album-plus' );
|
1685 |
}
|
1686 |
}
|
1687 |
$title_attr['href'] = wppa_encrypt_url( $href_title );
|
1737 |
|
1738 |
if ( $href_content == '#' ) {
|
1739 |
wppa_out(
|
1740 |
+
'<a class="wppa-album-cover-link" onclick="' . $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus' ) . ' ' .
|
1741 |
esc_attr( stripslashes( __( $album['name'] ) ) ) . '" style="cursor:pointer;" >'
|
1742 |
);
|
1743 |
}
|
1744 |
else {
|
1745 |
wppa_out(
|
1746 |
'<a class="wppa-album-cover-link" href="' . $href_content . '" target="' . $target . '" onclick="' .
|
1747 |
+
$onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus' ) . ' ' .
|
1748 |
esc_attr( stripslashes( __( $album['name'] ) ) ) .
|
1749 |
'" style="cursor:pointer;" >'
|
1750 |
);
|
1757 |
$ntp = $treecount['treephotos'] > $photocount ? $treecount['treephotos'] : '';
|
1758 |
$ntpx = $treecount['treephotos'] > $photocount ? $treecount['treephotos'] : $photocount;
|
1759 |
|
1760 |
+
$text = __( 'View' , 'wp-photo-album-plus' ) . ' ';
|
1761 |
|
1762 |
if ( wppa_opt( 'show_treecount' ) == 'total' ) {
|
1763 |
if ( $ntax ) {
|
wppa-album-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display thumbnail albums
|
6 |
-
* Version 8.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -12,8 +12,8 @@ class AlbumWidget extends WP_Widget {
|
|
12 |
|
13 |
/** constructor */
|
14 |
function __construct() {
|
15 |
-
$widget_ops = array( 'classname' => 'wppa_album_widget', 'description' => __( 'Display thumbnail images that link to albums' , 'wp-photo-album-plus') );
|
16 |
-
parent::__construct( 'wppa_album_widget', __( 'WPPA+ Photo Albums' , 'wp-photo-album-plus'), $widget_ops );
|
17 |
}
|
18 |
|
19 |
/** @see WP_Widget::widget */
|
@@ -470,7 +470,7 @@ class AlbumWidget extends WP_Widget {
|
|
470 |
wppa_widget_checkbox( $this, 'cache', $instance['cache'], __( 'Cache this widget', 'wp-photo-album-plus' ) ) .
|
471 |
|
472 |
'<p>' .
|
473 |
-
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus') .
|
474 |
' ' . __( 'Basic settings -> Widgets -> I -> Items 10 and 11', 'wp-photo-album-plus' ) .
|
475 |
'</p>';
|
476 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display thumbnail albums
|
6 |
+
* Version 8.1.08.003
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
12 |
|
13 |
/** constructor */
|
14 |
function __construct() {
|
15 |
+
$widget_ops = array( 'classname' => 'wppa_album_widget', 'description' => __( 'Display thumbnail images that link to albums' , 'wp-photo-album-plus' ) );
|
16 |
+
parent::__construct( 'wppa_album_widget', __( 'WPPA+ Photo Albums' , 'wp-photo-album-plus' ), $widget_ops );
|
17 |
}
|
18 |
|
19 |
/** @see WP_Widget::widget */
|
470 |
wppa_widget_checkbox( $this, 'cache', $instance['cache'], __( 'Cache this widget', 'wp-photo-album-plus' ) ) .
|
471 |
|
472 |
'<p>' .
|
473 |
+
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus' ) .
|
474 |
' ' . __( 'Basic settings -> Widgets -> I -> Items 10 and 11', 'wp-photo-album-plus' ) .
|
475 |
'</p>';
|
476 |
}
|
wppa-audio.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all audio routines
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -204,7 +204,7 @@ function wppa_get_audio_body( $id, $for_lb = false, $w = '0', $h = '0' ) {
|
|
204 |
$mime = str_replace( 'mp3', 'mpeg', 'audio/'.$ext );
|
205 |
$result = '<source src="'.$source.'.'.$ext.'" type="'.$mime.'">';
|
206 |
}
|
207 |
-
$result .= esc_js(__('There is no filetype available for your browser, or your browser does not support html5 audio', 'wp-photo-album-plus'));
|
208 |
|
209 |
return $result;
|
210 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all audio routines
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
204 |
$mime = str_replace( 'mp3', 'mpeg', 'audio/'.$ext );
|
205 |
$result = '<source src="'.$source.'.'.$ext.'" type="'.$mime.'">';
|
206 |
}
|
207 |
+
$result .= esc_js(__('There is no filetype available for your browser, or your browser does not support html5 audio', 'wp-photo-album-plus' ));
|
208 |
|
209 |
return $result;
|
210 |
}
|
wppa-bestof-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the best rated photos
|
6 |
-
* Version 8.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -173,10 +173,10 @@ class BestOfWidget extends WP_Widget {
|
|
173 |
wppa_widget_checkbox( $this, 'maxratings', $instance['maxratings'], __( 'Show number of max ratings', 'wp-photo-album-plus' ) ) .
|
174 |
|
175 |
// Mean rating
|
176 |
-
wppa_widget_checkbox( $this, 'meanrat', $instance['meanrat'], __( 'Show mean rating', 'wp-photo-album-plus') ) .
|
177 |
|
178 |
// Number of ratings
|
179 |
-
wppa_widget_checkbox( $this, 'ratcount', $instance['ratcount'], __( 'Show number of ratings', 'wp-photo-album-plus') ) .
|
180 |
|
181 |
// Total value
|
182 |
wppa_widget_checkbox( $this, 'totvalue', $instance['totvalue'], __( 'Show the sum of all ratings', 'wp-photo-album-plus' ) );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the best rated photos
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
173 |
wppa_widget_checkbox( $this, 'maxratings', $instance['maxratings'], __( 'Show number of max ratings', 'wp-photo-album-plus' ) ) .
|
174 |
|
175 |
// Mean rating
|
176 |
+
wppa_widget_checkbox( $this, 'meanrat', $instance['meanrat'], __( 'Show mean rating', 'wp-photo-album-plus' ) ) .
|
177 |
|
178 |
// Number of ratings
|
179 |
+
wppa_widget_checkbox( $this, 'ratcount', $instance['ratcount'], __( 'Show number of ratings', 'wp-photo-album-plus' ) ) .
|
180 |
|
181 |
// Total value
|
182 |
wppa_widget_checkbox( $this, 'totvalue', $instance['totvalue'], __( 'Show the sum of all ratings', 'wp-photo-album-plus' ) );
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -79,6 +79,7 @@ function wppa_thumb_area( $action ) {
|
|
79 |
if ( $nice ) {
|
80 |
wppa_js( '
|
81 |
jQuery(document).ready(function(){
|
|
|
82 |
jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
|
83 |
});' );
|
84 |
$result .= '</div>'; // close .wppa-nicewrap div
|
@@ -1046,7 +1047,7 @@ global $photos_used;
|
|
1046 |
onchange="wppaSuperSearchSelect(' . $mocc . ');"
|
1047 |
onwheel="event.stopPropagation();"
|
1048 |
size="' . ( min( count( $albumtxt ), '6' ) ) . '"
|
1049 |
-
multiple
|
1050 |
title="' .
|
1051 |
esc_attr( __( 'CTRL+Click to add/remove option.', 'wp-photo-album-plus' ) ) .
|
1052 |
esc_attr( __( 'Items must meet all selected options.', 'wp-photo-album-plus' ) ) . '"
|
@@ -1225,7 +1226,7 @@ global $photos_used;
|
|
1225 |
onchange="wppaSuperSearchSelect(' . $mocc . ');"
|
1226 |
onwheel="event.stopPropagation();"
|
1227 |
size="' . ( min( count( $phototxt ), '6' ) ) . '"
|
1228 |
-
multiple
|
1229 |
title="' .
|
1230 |
esc_attr( __( 'CTRL+Click to add/remove option.', 'wp-photo-album-plus' ) ) .
|
1231 |
esc_attr( __( 'Items must meet all selected options.', 'wp-photo-album-plus' ) ) . '"
|
@@ -1406,7 +1407,7 @@ global $wppa_session;
|
|
1406 |
$result = '
|
1407 |
<div>
|
1408 |
<form action="' . $url . '" method = "get">
|
1409 |
-
<label>' . __( 'Album:', 'wp-photo-album-plus') . '</label>
|
1410 |
<select name="wppa-album" style="clear:left;" >' .
|
1411 |
wppa_album_select_a( array( 'selected' => $wppa_session['superalbum'],
|
1412 |
'addpleaseselect' => true,
|
@@ -1422,7 +1423,7 @@ global $wppa_session;
|
|
1422 |
value="0" ' .
|
1423 |
( $wppa_session['superview'] == 'thumbs' ? 'checked' : '' ) . '
|
1424 |
/>' .
|
1425 |
-
__( 'Thumbnails', 'wp-photo-album-plus') . '
|
1426 |
<br>
|
1427 |
<input
|
1428 |
type="radio"
|
@@ -1526,7 +1527,7 @@ function wppa_get_admins_choice_html( $admins ) {
|
|
1526 |
onclick="wppaAjaxDeleteMyZip();"
|
1527 |
style="float:right;cursor:pointer;"
|
1528 |
>' .
|
1529 |
-
__('Delete', 'wp-photo-album-plus') . '
|
1530 |
</a>';
|
1531 |
}
|
1532 |
$result .= '
|
@@ -1586,7 +1587,7 @@ function wppa_get_tagcloud_html( $seltags = '', $minsize = '8', $maxsize = '24'
|
|
1586 |
}
|
1587 |
}
|
1588 |
else {
|
1589 |
-
return __( 'Please select a tagcloud landing page in Table VI-C3b', 'wp-photo-album-plus');
|
1590 |
}
|
1591 |
$tags = wppa_get_taglist( true );
|
1592 |
if ( $tags ) {
|
@@ -1681,7 +1682,7 @@ function wppa_get_multitag_html( $nperline = '2', $seltags = '' ) {
|
|
1681 |
}
|
1682 |
}
|
1683 |
else {
|
1684 |
-
return __( 'Please select a multitag landing page in Table VI-C4b', 'wp-photo-album-plus');
|
1685 |
}
|
1686 |
$tags = wppa_get_taglist( true );
|
1687 |
|
@@ -1764,7 +1765,7 @@ function wppa_get_multitag_html( $nperline = '2', $seltags = '' ) {
|
|
1764 |
type="radio"' .
|
1765 |
( $andor == 'and' ? ' checked' : '' ) . '
|
1766 |
/> ' .
|
1767 |
-
__( 'And', 'wp-photo-album-plus') . '
|
1768 |
</td>
|
1769 |
<td>
|
1770 |
<input
|
@@ -5038,7 +5039,7 @@ global $other_deps;
|
|
5038 |
}
|
5039 |
if ( $ratcount == 'yes' ) {
|
5040 |
$n = $data[$id]['ratingcount'];
|
5041 |
-
$result .= sprintf( _n( '%d vote', '%d votes', 'wp-photo-album-plus'), $n ) . '<br>';
|
5042 |
}
|
5043 |
if ( $meanrat == 'yes' ) {
|
5044 |
$m = $data[$id]['meanrating'];
|
@@ -5073,23 +5074,23 @@ global $other_deps;
|
|
5073 |
switch ( $linktype ) {
|
5074 |
case 'owneralbums':
|
5075 |
$href = wppa_get_permalink( $page ).'wppa-cover=1&wppa-owner='.$data[$author]['owner'].'&wppa-occur=1';
|
5076 |
-
$title = __( 'See the authors albums', 'wp-photo-album-plus');
|
5077 |
break;
|
5078 |
case 'ownerphotos':
|
5079 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-owner='.$data[$author]['owner'].'&photos-only=1&wppa-occur=1';
|
5080 |
-
$title = __( 'See the authors photos', 'wp-photo-album-plus');
|
5081 |
break;
|
5082 |
case 'ownerphotosslide':
|
5083 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-owner='.$data[$author]['owner'].'&slide=1&wppa-occur=1';
|
5084 |
-
$title = __( 'See the authors photos in a slideshow', 'wp-photo-album-plus');
|
5085 |
break;
|
5086 |
case 'upldrphotos':
|
5087 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-upldr='.$data[$author]['owner'].'&wppa-occur=1';
|
5088 |
-
$title = __( 'See all the authors photos', 'wp-photo-album-plus');
|
5089 |
break;
|
5090 |
case 'upldrphotosslide':
|
5091 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-upldr='.$data[$author]['owner'].'&wppa-occur=1&slide=1';
|
5092 |
-
$title = __( 'See all the authors photos', 'wp-photo-album-plus');
|
5093 |
break;
|
5094 |
default:
|
5095 |
$href = '';
|
@@ -5119,7 +5120,7 @@ global $other_deps;
|
|
5119 |
}
|
5120 |
if ( $ratcount == 'yes' ) {
|
5121 |
$n = $data[$author]['ratingcount'];
|
5122 |
-
$result .= sprintf( _n( '%d vote', '%d votes', 'wp-photo-album-plus'), $n ).'<br>';
|
5123 |
}
|
5124 |
if ( $meanrat == 'yes' ) {
|
5125 |
$m = $data[$author]['meanrating'];
|
@@ -6371,6 +6372,7 @@ function wppa_grid_box() {
|
|
6371 |
if ( $nice ) {
|
6372 |
wppa_js( '
|
6373 |
jQuery(document).ready(function(){
|
|
|
6374 |
jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
|
6375 |
});' );
|
6376 |
$result .= '</div>'; // close .wppa-nicewrap div
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
79 |
if ( $nice ) {
|
80 |
wppa_js( '
|
81 |
jQuery(document).ready(function(){
|
82 |
+
if ( jQuery().niceScroll )
|
83 |
jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
|
84 |
});' );
|
85 |
$result .= '</div>'; // close .wppa-nicewrap div
|
1047 |
onchange="wppaSuperSearchSelect(' . $mocc . ');"
|
1048 |
onwheel="event.stopPropagation();"
|
1049 |
size="' . ( min( count( $albumtxt ), '6' ) ) . '"
|
1050 |
+
multiple
|
1051 |
title="' .
|
1052 |
esc_attr( __( 'CTRL+Click to add/remove option.', 'wp-photo-album-plus' ) ) .
|
1053 |
esc_attr( __( 'Items must meet all selected options.', 'wp-photo-album-plus' ) ) . '"
|
1226 |
onchange="wppaSuperSearchSelect(' . $mocc . ');"
|
1227 |
onwheel="event.stopPropagation();"
|
1228 |
size="' . ( min( count( $phototxt ), '6' ) ) . '"
|
1229 |
+
multiple
|
1230 |
title="' .
|
1231 |
esc_attr( __( 'CTRL+Click to add/remove option.', 'wp-photo-album-plus' ) ) .
|
1232 |
esc_attr( __( 'Items must meet all selected options.', 'wp-photo-album-plus' ) ) . '"
|
1407 |
$result = '
|
1408 |
<div>
|
1409 |
<form action="' . $url . '" method = "get">
|
1410 |
+
<label>' . __( 'Album:', 'wp-photo-album-plus' ) . '</label>
|
1411 |
<select name="wppa-album" style="clear:left;" >' .
|
1412 |
wppa_album_select_a( array( 'selected' => $wppa_session['superalbum'],
|
1413 |
'addpleaseselect' => true,
|
1423 |
value="0" ' .
|
1424 |
( $wppa_session['superview'] == 'thumbs' ? 'checked' : '' ) . '
|
1425 |
/>' .
|
1426 |
+
__( 'Thumbnails', 'wp-photo-album-plus' ) . '
|
1427 |
<br>
|
1428 |
<input
|
1429 |
type="radio"
|
1527 |
onclick="wppaAjaxDeleteMyZip();"
|
1528 |
style="float:right;cursor:pointer;"
|
1529 |
>' .
|
1530 |
+
__('Delete', 'wp-photo-album-plus' ) . '
|
1531 |
</a>';
|
1532 |
}
|
1533 |
$result .= '
|
1587 |
}
|
1588 |
}
|
1589 |
else {
|
1590 |
+
return __( 'Please select a tagcloud landing page in Table VI-C3b', 'wp-photo-album-plus' );
|
1591 |
}
|
1592 |
$tags = wppa_get_taglist( true );
|
1593 |
if ( $tags ) {
|
1682 |
}
|
1683 |
}
|
1684 |
else {
|
1685 |
+
return __( 'Please select a multitag landing page in Table VI-C4b', 'wp-photo-album-plus' );
|
1686 |
}
|
1687 |
$tags = wppa_get_taglist( true );
|
1688 |
|
1765 |
type="radio"' .
|
1766 |
( $andor == 'and' ? ' checked' : '' ) . '
|
1767 |
/> ' .
|
1768 |
+
__( 'And', 'wp-photo-album-plus' ) . '
|
1769 |
</td>
|
1770 |
<td>
|
1771 |
<input
|
5039 |
}
|
5040 |
if ( $ratcount == 'yes' ) {
|
5041 |
$n = $data[$id]['ratingcount'];
|
5042 |
+
$result .= sprintf( _n( '%d vote', '%d votes', 'wp-photo-album-plus' ), $n ) . '<br>';
|
5043 |
}
|
5044 |
if ( $meanrat == 'yes' ) {
|
5045 |
$m = $data[$id]['meanrating'];
|
5074 |
switch ( $linktype ) {
|
5075 |
case 'owneralbums':
|
5076 |
$href = wppa_get_permalink( $page ).'wppa-cover=1&wppa-owner='.$data[$author]['owner'].'&wppa-occur=1';
|
5077 |
+
$title = __( 'See the authors albums', 'wp-photo-album-plus' );
|
5078 |
break;
|
5079 |
case 'ownerphotos':
|
5080 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-owner='.$data[$author]['owner'].'&photos-only=1&wppa-occur=1';
|
5081 |
+
$title = __( 'See the authors photos', 'wp-photo-album-plus' );
|
5082 |
break;
|
5083 |
case 'ownerphotosslide':
|
5084 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-owner='.$data[$author]['owner'].'&slide=1&wppa-occur=1';
|
5085 |
+
$title = __( 'See the authors photos in a slideshow', 'wp-photo-album-plus' );
|
5086 |
break;
|
5087 |
case 'upldrphotos':
|
5088 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-upldr='.$data[$author]['owner'].'&wppa-occur=1';
|
5089 |
+
$title = __( 'See all the authors photos', 'wp-photo-album-plus' );
|
5090 |
break;
|
5091 |
case 'upldrphotosslide':
|
5092 |
$href = wppa_get_permalink( $page ).'wppa-cover=0&wppa-upldr='.$data[$author]['owner'].'&wppa-occur=1&slide=1';
|
5093 |
+
$title = __( 'See all the authors photos', 'wp-photo-album-plus' );
|
5094 |
break;
|
5095 |
default:
|
5096 |
$href = '';
|
5120 |
}
|
5121 |
if ( $ratcount == 'yes' ) {
|
5122 |
$n = $data[$author]['ratingcount'];
|
5123 |
+
$result .= sprintf( _n( '%d vote', '%d votes', 'wp-photo-album-plus' ), $n ).'<br>';
|
5124 |
}
|
5125 |
if ( $meanrat == 'yes' ) {
|
5126 |
$m = $data[$author]['meanrating'];
|
6372 |
if ( $nice ) {
|
6373 |
wppa_js( '
|
6374 |
jQuery(document).ready(function(){
|
6375 |
+
if ( jQuery().niceScroll )
|
6376 |
jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
|
6377 |
});' );
|
6378 |
$result .= '</div>'; // close .wppa-nicewrap div
|
wppa-breadcrumb.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for breadcrumbs
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -127,7 +127,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
127 |
$ajax = '';
|
128 |
}
|
129 |
|
130 |
-
$title = $type == 'post' ? __( 'Post:' , 'wp-photo-album-plus').' '.$value : __( 'Page:' , 'wp-photo-album-plus').' '.$value;
|
131 |
$hash = '#wppa-container-';
|
132 |
if ( wppa_is_int( $alb ) ) {
|
133 |
if ( wppa_get_parentalbumid( $alb ) < '1' ) {
|
@@ -165,44 +165,44 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
165 |
|
166 |
switch ( $ss_data['0'] ) {
|
167 |
case 'a':
|
168 |
-
$value .= ' ' . __('Albums', 'wp-photo-album-plus');
|
169 |
switch ( $ss_data['1'] ) {
|
170 |
case 'c':
|
171 |
-
$value .= ' ' . __('with category:', 'wp-photo-album-plus');
|
172 |
break;
|
173 |
case 'n':
|
174 |
-
$value .= ' ' . __('with name:', 'wp-photo-album-plus');
|
175 |
break;
|
176 |
case 't':
|
177 |
-
$value .= ' ' . __('with words:', 'wp-photo-album-plus');
|
178 |
break;
|
179 |
default:
|
180 |
$value = '';
|
181 |
break;
|
182 |
}
|
183 |
-
$value .= ' <b>' . str_replace( '.', '</b> ' . __('and', 'wp-photo-album-plus') . ' <b>', $ss_data['3'] ) . '</b>';
|
184 |
break;
|
185 |
case 'p':
|
186 |
-
$value .= ' ' . __('Photos', 'wp-photo-album-plus');
|
187 |
switch ( $ss_data['1'] ) {
|
188 |
case 'g':
|
189 |
-
$value .= ' ' . __('with tag:', 'wp-photo-album-plus') . ' <b>' . str_replace( '.', '</b> ' . __('and', 'wp-photo-album-plus') . ' <b>', $ss_data['3'] ) . '</b>';
|
190 |
break;
|
191 |
case 'n':
|
192 |
-
$value .= ' ' . __('with name:', 'wp-photo-album-plus') . ' <b>' . $ss_data['3'] . '</b>';
|
193 |
break;
|
194 |
case 't':
|
195 |
$ss_data['3'] = str_replace( '...', '***', $ss_data['3'] );
|
196 |
-
$value .= ' ' . __('with words:', 'wp-photo-album-plus') . ' <b>' . str_replace( '.', '</b> ' . __('and', 'wp-photo-album-plus') . ' <b>', $ss_data['3'] ) . '</b>';
|
197 |
$value = str_replace( '***', '...', $value );
|
198 |
break;
|
199 |
case 'o':
|
200 |
-
$value .= ' ' . __('of owner:', 'wp-photo-album-plus') . ' <b>' . $ss_data['3'] . '</b>';
|
201 |
break;
|
202 |
case 'i':
|
203 |
$label = $wpdb->get_var( $wpdb->prepare( "SELECT description FROM $wpdb->wppa_iptc WHERE tag = %s AND photo = '0'", str_replace( 'H', '#', $ss_data['2'] ) ) );
|
204 |
$label = trim( $label, ':' );
|
205 |
-
$value .= ' ' . __('with iptc tag:', 'wp-photo-album-plus') . ' <b>' . __($label, 'wp-photo-album-plus') . '</b> ' . __('with content:', 'wp-photo-album-plus') .' <b>' . $ss_data['3'] . '</b>';
|
206 |
break;
|
207 |
case 'e':
|
208 |
$tag = substr( $ss_data[2], 0, 1 ) . '#' . substr( $ss_data[2], 2, 4 );
|
@@ -214,7 +214,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
214 |
$label = wppa_exif_tagname( $tag );
|
215 |
}
|
216 |
$label = trim( $label, ':' );
|
217 |
-
$value .= ' ' . __('with exif tag:', 'wp-photo-album-plus') . ' <b>' . __($label, 'wp-photo-album-plus') . '</b> ' . __('with content:', 'wp-photo-album-plus') .' <b>' . $ss_data['3'] . '</b>';
|
218 |
break;
|
219 |
default:
|
220 |
break;
|
@@ -227,7 +227,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
227 |
if ( wppa( 'is_slide' ) ) {
|
228 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-supersearch='.stripslashes( wppa( 'supersearch' ) );
|
229 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-supersearch='.stripslashes( wppa( 'supersearch' ) );
|
230 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
231 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
232 |
}
|
233 |
|
@@ -245,7 +245,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
245 |
}
|
246 |
$albtxt = wppa( 'is_rootsearch' ) ?
|
247 |
' <span style="cursor:pointer;" title="'.
|
248 |
-
esc_attr( sprintf( __( 'Searchresults from album %s and its subalbums' , 'wp-photo-album-plus'),
|
249 |
wppa_display_root( $searchroot ) ) ).'">*</span> ' :
|
250 |
'';
|
251 |
|
@@ -272,7 +272,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
272 |
$thumbhref .= '&wppa-catbox=' . trim( wppa( 'catbox' ), ',' );
|
273 |
$thumbajax .= '&wppa-catbox=' . trim( wppa( 'catbox' ), ',' );
|
274 |
}
|
275 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
276 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
277 |
}
|
278 |
$href = '';
|
@@ -283,15 +283,15 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
283 |
if ( wppa( 'is_slide' ) ) {
|
284 |
switch( wppa( 'calendar' ) ) {
|
285 |
case 'exifdtm':
|
286 |
-
$value = __( 'Photos by date taken' , 'wp-photo-album-plus') . ': ' . wppa_exif_date_to_wp_date( wppa( 'caldate' ) );
|
287 |
break;
|
288 |
|
289 |
case 'timestamp':
|
290 |
-
$value = __( 'Photos by date of upload' , 'wp-photo-album-plus') . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
291 |
break;
|
292 |
|
293 |
case 'modified':
|
294 |
-
$value = __( 'Photos by date last modified' , 'wp-photo-album-plus') . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
295 |
break;
|
296 |
|
297 |
default:
|
@@ -304,15 +304,15 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
304 |
}
|
305 |
switch( wppa( 'calendar' ) ) {
|
306 |
case 'exifdtm':
|
307 |
-
$value = __( 'Photos by date taken' , 'wp-photo-album-plus') . ': ' . wppa_exif_date_to_wp_date( wppa( 'caldate' ) );
|
308 |
break;
|
309 |
|
310 |
case 'timestamp':
|
311 |
-
$value = __( 'Photos by date of upload' , 'wp-photo-album-plus') . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
312 |
break;
|
313 |
|
314 |
case 'modified':
|
315 |
-
$value = __( 'Photos by date last modified' , 'wp-photo-album-plus') . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
316 |
break;
|
317 |
|
318 |
default:
|
@@ -328,7 +328,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
328 |
$usr = wppa_get_user_by( 'login', wppa( 'is_upldr' ) );
|
329 |
if ( $usr ) $user = $usr->display_name; else $user = wppa( 'is_upldr' );
|
330 |
if ( wppa( 'is_slide' ) ) {
|
331 |
-
$value = sprintf( __( 'Photos by %s' , 'wp-photo-album-plus'), $user );
|
332 |
if ( wppa( 'start_album' ) ) {
|
333 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' ).'&wppa-album='.wppa( 'start_album' );
|
334 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' ).'&wppa-album='.wppa( 'start_album' );
|
@@ -337,63 +337,63 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
337 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' );
|
338 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' );
|
339 |
}
|
340 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
341 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
342 |
}
|
343 |
-
$value = sprintf( __( 'Photos by %s' , 'wp-photo-album-plus'), $user );
|
344 |
$href = '';
|
345 |
$title = '';
|
346 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
347 |
}
|
348 |
elseif ( wppa( 'is_topten' ) ) { // TopTen
|
349 |
if ( wppa( 'start_album' ) ) {
|
350 |
-
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus') : wppa_get_album_name( $alb );
|
351 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
352 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
353 |
-
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus').' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus').' '.$value;
|
354 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
355 |
}
|
356 |
if ( wppa( 'is_slide' ) ) {
|
357 |
-
$value = __( 'Top rated photos' , 'wp-photo-album-plus');
|
358 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-topten='.wppa( 'topten_count' ).'&wppa-album='.wppa( 'start_album' );
|
359 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-topten='.wppa( 'topten_count' ).'&wppa-album='.wppa( 'start_album' );
|
360 |
if ( wppa( 'medals_only' ) ) {
|
361 |
$thumbhref .= '&wppa-medals-only=1';
|
362 |
$thumbajax .= '&wppa-medals-only=1';
|
363 |
}
|
364 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
365 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
366 |
}
|
367 |
-
$value = __( 'Top rated photos' , 'wp-photo-album-plus');
|
368 |
$href = '';
|
369 |
$title = '';
|
370 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
371 |
}
|
372 |
elseif ( wppa( 'is_lasten' ) ) { // Lasten
|
373 |
if ( wppa( 'start_album' ) ) {
|
374 |
-
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus') : wppa_get_album_name( $alb );
|
375 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
376 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
377 |
-
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus').' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus').' '.$value;
|
378 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
379 |
}
|
380 |
if ( wppa( 'is_slide' ) ) {
|
381 |
if ( wppa_switch( 'lasten_use_modified' ) ) {
|
382 |
-
$value = __( 'Recently modified photos' , 'wp-photo-album-plus');
|
383 |
}
|
384 |
else {
|
385 |
-
$value = __( 'Recently uploaded photos' , 'wp-photo-album-plus');
|
386 |
}
|
387 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-lasten='.wppa( 'lasten_count' ).'&wppa-album='.wppa( 'start_album' );
|
388 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-lasten='.wppa( 'lasten_count' ).'&wppa-album='.wppa( 'start_album' );
|
389 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
390 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
391 |
}
|
392 |
if ( wppa_switch( 'lasten_use_modified' ) ) {
|
393 |
-
$value = __( 'Recently modified photos' , 'wp-photo-album-plus');
|
394 |
}
|
395 |
else {
|
396 |
-
$value = __( 'Recently uploaded photos' , 'wp-photo-album-plus');
|
397 |
}
|
398 |
$href = '';
|
399 |
$title = '';
|
@@ -401,83 +401,83 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
401 |
}
|
402 |
elseif ( wppa( 'is_comten' ) ) { // Comten
|
403 |
if ( wppa( 'start_album' ) ) {
|
404 |
-
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus') : wppa_get_album_name( $alb );
|
405 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
406 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
407 |
-
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus').' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus').' '.$value;
|
408 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
409 |
}
|
410 |
if ( wppa( 'is_slide' ) ) {
|
411 |
-
$value = __( 'Recently commented photos' , 'wp-photo-album-plus');
|
412 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-comten='.wppa( 'comten_count' ).'&wppa-album='.wppa( 'start_album' );
|
413 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-comten='.wppa( 'comten_count' ).'&wppa-album='.wppa( 'start_album' );
|
414 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
415 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
416 |
}
|
417 |
-
$value = __( 'Recently commented photos' , 'wp-photo-album-plus');
|
418 |
$href = '';
|
419 |
$title = '';
|
420 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
421 |
}
|
422 |
elseif ( wppa( 'is_featen' ) ) { // Featen
|
423 |
if ( wppa( 'start_album' ) ) {
|
424 |
-
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus') : wppa_get_album_name( $alb );
|
425 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
426 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
427 |
-
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus').' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus').' '.$value;
|
428 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
429 |
}
|
430 |
if ( wppa( 'is_slide' ) ) {
|
431 |
-
$value = __( 'Featured photos' , 'wp-photo-album-plus');
|
432 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-featen='.wppa( 'featen_count' ).'&wppa-album='.wppa( 'start_album' );
|
433 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-featen='.wppa( 'featen_count' ).'&wppa-album='.wppa( 'start_album' );
|
434 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
435 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
436 |
}
|
437 |
-
$value = __( 'Featured photos' , 'wp-photo-album-plus');
|
438 |
$href = '';
|
439 |
$title = '';
|
440 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
441 |
}
|
442 |
elseif ( wppa( 'is_related' ) ) { // Related photos
|
443 |
if ( wppa( 'is_slide' ) ) {
|
444 |
-
$value = __( 'Related photos' , 'wp-photo-album-plus');
|
445 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-tag='.wppa( 'is_tag' ).'&wppa-album='.wppa( 'start_album' );
|
446 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-tag='.wppa( 'is_tag' ).'&wppa-album='.wppa( 'start_album' );
|
447 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
448 |
wppa_bcitem( $value, $href, $title, 'b8', $ajax, true );
|
449 |
}
|
450 |
-
$value = __( 'Related photos' , 'wp-photo-album-plus');
|
451 |
$href = '';
|
452 |
$title = '';
|
453 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
454 |
}
|
455 |
elseif ( wppa( 'is_potdhis' ) ) {
|
456 |
if ( wppa( 'is_slide' ) ) {
|
457 |
-
$value = __( 'Photo of the day history' , 'wp-photo-album-plus');
|
458 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&potdhis=1';
|
459 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&potdhis=1';
|
460 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
461 |
wppa_bcitem( $value, $href, $title, 'b8', $ajax, true );
|
462 |
}
|
463 |
-
$value = __( 'Photo of the day history' , 'wp-photo-album-plus');
|
464 |
$href = '';
|
465 |
$title = '';
|
466 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
467 |
}
|
468 |
elseif ( wppa( 'is_tag' ) && wppa( 'is_cat' ) ) {
|
469 |
if ( wppa( 'is_slide' ) ) {
|
470 |
-
$value = __( 'Tagged photos:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus').' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus').' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
471 |
$value .= ' ' . __( 'From albums with', 'wp-photo-album-plus' ) . ' ';
|
472 |
-
$value .= __( 'Category:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
473 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
474 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
475 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
476 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
477 |
}
|
478 |
-
$value = __( 'Tagged photos:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus').' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus').' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
479 |
$value .= ' ' . __( 'From albums with', 'wp-photo-album-plus' ) . ' ';
|
480 |
-
$value .= __( 'Category:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
481 |
$href = '';
|
482 |
$title = '';
|
483 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
@@ -485,9 +485,9 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
485 |
}
|
486 |
elseif ( wppa( 'is_tag' ) ) { // Tagged photos
|
487 |
if ( wppa( 'is_slide' ) ) {
|
488 |
-
$value = __( 'Tagged photos:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus').' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus').' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
489 |
if ( wppa( 'start_album' ) ) {
|
490 |
-
$value .= ' ' . __( 'out of various albums' , 'wp-photo-album-plus');
|
491 |
}
|
492 |
if ( wppa_get( 'inv' ) ) {
|
493 |
$value .= ' (' . __( 'Inverted', 'wp-photo-album-plus' ) . ')';
|
@@ -498,12 +498,12 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
498 |
$thumbhref .= '&wppa-inv=1';
|
499 |
$thumbajax .= '&wppa-inv=1';
|
500 |
}
|
501 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
502 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
503 |
}
|
504 |
-
$value = __( 'Tagged photos:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus').' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus').' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
505 |
if ( wppa( 'start_album' ) ) {
|
506 |
-
$value .= ' ' . __( 'out of various albums' , 'wp-photo-album-plus');
|
507 |
}
|
508 |
if ( wppa_get( 'inv' ) ) {
|
509 |
$value .= ' (' . __( 'Inverted', 'wp-photo-album-plus' ) . ')';
|
@@ -514,13 +514,13 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
514 |
}
|
515 |
elseif ( wppa( 'is_cat' ) ) { // Categorized albums
|
516 |
if ( wppa( 'is_slide' ) ) {
|
517 |
-
$value = __( 'Category:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
518 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
519 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
520 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
521 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
522 |
}
|
523 |
-
$value = __( 'Category:' , 'wp-photo-album-plus').' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
524 |
$href = '';
|
525 |
$title = '';
|
526 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
@@ -531,17 +531,17 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
531 |
$value = wppa_get_album_name( $alb );
|
532 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
533 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
534 |
-
$title = __( 'Album:' , 'wp-photo-album-plus').' '.$value;
|
535 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax, true );
|
536 |
}
|
537 |
if ( wppa( 'is_slide' ) ) {
|
538 |
-
$value = __( 'Recently updated albums' , 'wp-photo-album-plus');
|
539 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
540 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
541 |
-
$title = __( 'View the thumbnails' , 'wp-photo-album-plus');
|
542 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
543 |
}
|
544 |
-
$value = __( 'Recently updated albums' , 'wp-photo-album-plus');
|
545 |
$href = '';
|
546 |
$title = '';
|
547 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
@@ -551,14 +551,14 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
551 |
$usr = wppa_get_user_by( 'login', wppa( 'is_owner' ) );
|
552 |
if ( $usr ) $dispname = $usr->display_name;
|
553 |
else $dispname = wppa( 'is_owner' ); // User deleted
|
554 |
-
$various = sprintf( __( 'Various albums by %s' , 'wp-photo-album-plus'), $dispname );
|
555 |
}
|
556 |
-
else $various = __( 'Various albums' , 'wp-photo-album-plus');
|
557 |
if ( wppa( 'is_slide' ) ) {
|
558 |
$value = $is_albenum ? $various : wppa_get_album_name( $alb );
|
559 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
560 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
561 |
-
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus').' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus').' '.$value;
|
562 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax, true );
|
563 |
}
|
564 |
$value = $is_albenum ? $various : wppa_get_album_name( $alb );
|
@@ -580,7 +580,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
|
|
580 |
|
581 |
wppa_out( '<a' .
|
582 |
' href="' . $thumbhref . '"' .
|
583 |
-
' title="' . __( 'Thumbnail view' , 'wp-photo-album-plus') . '"' .
|
584 |
' class="wppa-nav-text"' .
|
585 |
' style="float:right; cursor:pointer; text-decoration:none;"' .
|
586 |
' >' .
|
@@ -751,7 +751,7 @@ global $wpdb;
|
|
751 |
'wppa-album=' . $parent . '&wppa-cover=' . $to_cover . $slide .
|
752 |
'&wppa-occur=' . wppa( 'mocc' );
|
753 |
|
754 |
-
$title = __( 'Album:' , 'wp-photo-album-plus') . ' ' . wppa_get_album_name( $parent );
|
755 |
$class = 'b20';
|
756 |
wppa_bcitem( $value, $href, $title, $class, $ajax );
|
757 |
|
@@ -775,9 +775,9 @@ global $wpdb;
|
|
775 |
$title = __( stripslashes( $title ) );
|
776 |
if ( ! $title ) {
|
777 |
$title = '****'; // Page exists but is not publish
|
778 |
-
wppa_bcitem( $title, '#', __( 'Unpublished' , 'wp-photo-album-plus'), 'b2' );
|
779 |
} else {
|
780 |
-
wppa_bcitem( $title, get_page_link( $parent ), __( 'Page:' , 'wp-photo-album-plus').' '.$title, 'b2' );
|
781 |
}
|
782 |
}
|
783 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for breadcrumbs
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
127 |
$ajax = '';
|
128 |
}
|
129 |
|
130 |
+
$title = $type == 'post' ? __( 'Post:' , 'wp-photo-album-plus' ).' '.$value : __( 'Page:' , 'wp-photo-album-plus' ).' '.$value;
|
131 |
$hash = '#wppa-container-';
|
132 |
if ( wppa_is_int( $alb ) ) {
|
133 |
if ( wppa_get_parentalbumid( $alb ) < '1' ) {
|
165 |
|
166 |
switch ( $ss_data['0'] ) {
|
167 |
case 'a':
|
168 |
+
$value .= ' ' . __('Albums', 'wp-photo-album-plus' );
|
169 |
switch ( $ss_data['1'] ) {
|
170 |
case 'c':
|
171 |
+
$value .= ' ' . __('with category:', 'wp-photo-album-plus' );
|
172 |
break;
|
173 |
case 'n':
|
174 |
+
$value .= ' ' . __('with name:', 'wp-photo-album-plus' );
|
175 |
break;
|
176 |
case 't':
|
177 |
+
$value .= ' ' . __('with words:', 'wp-photo-album-plus' );
|
178 |
break;
|
179 |
default:
|
180 |
$value = '';
|
181 |
break;
|
182 |
}
|
183 |
+
$value .= ' <b>' . str_replace( '.', '</b> ' . __('and', 'wp-photo-album-plus' ) . ' <b>', $ss_data['3'] ) . '</b>';
|
184 |
break;
|
185 |
case 'p':
|
186 |
+
$value .= ' ' . __('Photos', 'wp-photo-album-plus' );
|
187 |
switch ( $ss_data['1'] ) {
|
188 |
case 'g':
|
189 |
+
$value .= ' ' . __('with tag:', 'wp-photo-album-plus' ) . ' <b>' . str_replace( '.', '</b> ' . __('and', 'wp-photo-album-plus' ) . ' <b>', $ss_data['3'] ) . '</b>';
|
190 |
break;
|
191 |
case 'n':
|
192 |
+
$value .= ' ' . __('with name:', 'wp-photo-album-plus' ) . ' <b>' . $ss_data['3'] . '</b>';
|
193 |
break;
|
194 |
case 't':
|
195 |
$ss_data['3'] = str_replace( '...', '***', $ss_data['3'] );
|
196 |
+
$value .= ' ' . __('with words:', 'wp-photo-album-plus' ) . ' <b>' . str_replace( '.', '</b> ' . __('and', 'wp-photo-album-plus' ) . ' <b>', $ss_data['3'] ) . '</b>';
|
197 |
$value = str_replace( '***', '...', $value );
|
198 |
break;
|
199 |
case 'o':
|
200 |
+
$value .= ' ' . __('of owner:', 'wp-photo-album-plus' ) . ' <b>' . $ss_data['3'] . '</b>';
|
201 |
break;
|
202 |
case 'i':
|
203 |
$label = $wpdb->get_var( $wpdb->prepare( "SELECT description FROM $wpdb->wppa_iptc WHERE tag = %s AND photo = '0'", str_replace( 'H', '#', $ss_data['2'] ) ) );
|
204 |
$label = trim( $label, ':' );
|
205 |
+
$value .= ' ' . __('with iptc tag:', 'wp-photo-album-plus' ) . ' <b>' . __($label, 'wp-photo-album-plus' ) . '</b> ' . __('with content:', 'wp-photo-album-plus' ) .' <b>' . $ss_data['3'] . '</b>';
|
206 |
break;
|
207 |
case 'e':
|
208 |
$tag = substr( $ss_data[2], 0, 1 ) . '#' . substr( $ss_data[2], 2, 4 );
|
214 |
$label = wppa_exif_tagname( $tag );
|
215 |
}
|
216 |
$label = trim( $label, ':' );
|
217 |
+
$value .= ' ' . __('with exif tag:', 'wp-photo-album-plus' ) . ' <b>' . __($label, 'wp-photo-album-plus' ) . '</b> ' . __('with content:', 'wp-photo-album-plus' ) .' <b>' . $ss_data['3'] . '</b>';
|
218 |
break;
|
219 |
default:
|
220 |
break;
|
227 |
if ( wppa( 'is_slide' ) ) {
|
228 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-supersearch='.stripslashes( wppa( 'supersearch' ) );
|
229 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-supersearch='.stripslashes( wppa( 'supersearch' ) );
|
230 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
231 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
232 |
}
|
233 |
|
245 |
}
|
246 |
$albtxt = wppa( 'is_rootsearch' ) ?
|
247 |
' <span style="cursor:pointer;" title="'.
|
248 |
+
esc_attr( sprintf( __( 'Searchresults from album %s and its subalbums' , 'wp-photo-album-plus' ),
|
249 |
wppa_display_root( $searchroot ) ) ).'">*</span> ' :
|
250 |
'';
|
251 |
|
272 |
$thumbhref .= '&wppa-catbox=' . trim( wppa( 'catbox' ), ',' );
|
273 |
$thumbajax .= '&wppa-catbox=' . trim( wppa( 'catbox' ), ',' );
|
274 |
}
|
275 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
276 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
277 |
}
|
278 |
$href = '';
|
283 |
if ( wppa( 'is_slide' ) ) {
|
284 |
switch( wppa( 'calendar' ) ) {
|
285 |
case 'exifdtm':
|
286 |
+
$value = __( 'Photos by date taken' , 'wp-photo-album-plus' ) . ': ' . wppa_exif_date_to_wp_date( wppa( 'caldate' ) );
|
287 |
break;
|
288 |
|
289 |
case 'timestamp':
|
290 |
+
$value = __( 'Photos by date of upload' , 'wp-photo-album-plus' ) . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
291 |
break;
|
292 |
|
293 |
case 'modified':
|
294 |
+
$value = __( 'Photos by date last modified' , 'wp-photo-album-plus' ) . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
295 |
break;
|
296 |
|
297 |
default:
|
304 |
}
|
305 |
switch( wppa( 'calendar' ) ) {
|
306 |
case 'exifdtm':
|
307 |
+
$value = __( 'Photos by date taken' , 'wp-photo-album-plus' ) . ': ' . wppa_exif_date_to_wp_date( wppa( 'caldate' ) );
|
308 |
break;
|
309 |
|
310 |
case 'timestamp':
|
311 |
+
$value = __( 'Photos by date of upload' , 'wp-photo-album-plus' ) . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
312 |
break;
|
313 |
|
314 |
case 'modified':
|
315 |
+
$value = __( 'Photos by date last modified' , 'wp-photo-album-plus' ) . ': ' . wppa_local_date( get_option( 'date_format' ), wppa( 'caldate' ) * 24*60*60 );
|
316 |
break;
|
317 |
|
318 |
default:
|
328 |
$usr = wppa_get_user_by( 'login', wppa( 'is_upldr' ) );
|
329 |
if ( $usr ) $user = $usr->display_name; else $user = wppa( 'is_upldr' );
|
330 |
if ( wppa( 'is_slide' ) ) {
|
331 |
+
$value = sprintf( __( 'Photos by %s' , 'wp-photo-album-plus' ), $user );
|
332 |
if ( wppa( 'start_album' ) ) {
|
333 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' ).'&wppa-album='.wppa( 'start_album' );
|
334 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' ).'&wppa-album='.wppa( 'start_album' );
|
337 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' );
|
338 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-upldr='.wppa( 'is_upldr' );
|
339 |
}
|
340 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
341 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
342 |
}
|
343 |
+
$value = sprintf( __( 'Photos by %s' , 'wp-photo-album-plus' ), $user );
|
344 |
$href = '';
|
345 |
$title = '';
|
346 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
347 |
}
|
348 |
elseif ( wppa( 'is_topten' ) ) { // TopTen
|
349 |
if ( wppa( 'start_album' ) ) {
|
350 |
+
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus' ) : wppa_get_album_name( $alb );
|
351 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
352 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
353 |
+
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus' ).' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus' ).' '.$value;
|
354 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
355 |
}
|
356 |
if ( wppa( 'is_slide' ) ) {
|
357 |
+
$value = __( 'Top rated photos' , 'wp-photo-album-plus' );
|
358 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-topten='.wppa( 'topten_count' ).'&wppa-album='.wppa( 'start_album' );
|
359 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-topten='.wppa( 'topten_count' ).'&wppa-album='.wppa( 'start_album' );
|
360 |
if ( wppa( 'medals_only' ) ) {
|
361 |
$thumbhref .= '&wppa-medals-only=1';
|
362 |
$thumbajax .= '&wppa-medals-only=1';
|
363 |
}
|
364 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
365 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
366 |
}
|
367 |
+
$value = __( 'Top rated photos' , 'wp-photo-album-plus' );
|
368 |
$href = '';
|
369 |
$title = '';
|
370 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
371 |
}
|
372 |
elseif ( wppa( 'is_lasten' ) ) { // Lasten
|
373 |
if ( wppa( 'start_album' ) ) {
|
374 |
+
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus' ) : wppa_get_album_name( $alb );
|
375 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
376 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
377 |
+
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus' ).' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus' ).' '.$value;
|
378 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
379 |
}
|
380 |
if ( wppa( 'is_slide' ) ) {
|
381 |
if ( wppa_switch( 'lasten_use_modified' ) ) {
|
382 |
+
$value = __( 'Recently modified photos' , 'wp-photo-album-plus' );
|
383 |
}
|
384 |
else {
|
385 |
+
$value = __( 'Recently uploaded photos' , 'wp-photo-album-plus' );
|
386 |
}
|
387 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-lasten='.wppa( 'lasten_count' ).'&wppa-album='.wppa( 'start_album' );
|
388 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-lasten='.wppa( 'lasten_count' ).'&wppa-album='.wppa( 'start_album' );
|
389 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
390 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
391 |
}
|
392 |
if ( wppa_switch( 'lasten_use_modified' ) ) {
|
393 |
+
$value = __( 'Recently modified photos' , 'wp-photo-album-plus' );
|
394 |
}
|
395 |
else {
|
396 |
+
$value = __( 'Recently uploaded photos' , 'wp-photo-album-plus' );
|
397 |
}
|
398 |
$href = '';
|
399 |
$title = '';
|
401 |
}
|
402 |
elseif ( wppa( 'is_comten' ) ) { // Comten
|
403 |
if ( wppa( 'start_album' ) ) {
|
404 |
+
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus' ) : wppa_get_album_name( $alb );
|
405 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
406 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
407 |
+
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus' ).' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus' ).' '.$value;
|
408 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
409 |
}
|
410 |
if ( wppa( 'is_slide' ) ) {
|
411 |
+
$value = __( 'Recently commented photos' , 'wp-photo-album-plus' );
|
412 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-comten='.wppa( 'comten_count' ).'&wppa-album='.wppa( 'start_album' );
|
413 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-comten='.wppa( 'comten_count' ).'&wppa-album='.wppa( 'start_album' );
|
414 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
415 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
416 |
}
|
417 |
+
$value = __( 'Recently commented photos' , 'wp-photo-album-plus' );
|
418 |
$href = '';
|
419 |
$title = '';
|
420 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
421 |
}
|
422 |
elseif ( wppa( 'is_featen' ) ) { // Featen
|
423 |
if ( wppa( 'start_album' ) ) {
|
424 |
+
$value = $is_albenum ? __( 'Various albums' , 'wp-photo-album-plus' ) : wppa_get_album_name( $alb );
|
425 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
426 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
427 |
+
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus' ).' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus' ).' '.$value;
|
428 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax );
|
429 |
}
|
430 |
if ( wppa( 'is_slide' ) ) {
|
431 |
+
$value = __( 'Featured photos' , 'wp-photo-album-plus' );
|
432 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-featen='.wppa( 'featen_count' ).'&wppa-album='.wppa( 'start_album' );
|
433 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-featen='.wppa( 'featen_count' ).'&wppa-album='.wppa( 'start_album' );
|
434 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
435 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
436 |
}
|
437 |
+
$value = __( 'Featured photos' , 'wp-photo-album-plus' );
|
438 |
$href = '';
|
439 |
$title = '';
|
440 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
441 |
}
|
442 |
elseif ( wppa( 'is_related' ) ) { // Related photos
|
443 |
if ( wppa( 'is_slide' ) ) {
|
444 |
+
$value = __( 'Related photos' , 'wp-photo-album-plus' );
|
445 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-tag='.wppa( 'is_tag' ).'&wppa-album='.wppa( 'start_album' );
|
446 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-tag='.wppa( 'is_tag' ).'&wppa-album='.wppa( 'start_album' );
|
447 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
448 |
wppa_bcitem( $value, $href, $title, 'b8', $ajax, true );
|
449 |
}
|
450 |
+
$value = __( 'Related photos' , 'wp-photo-album-plus' );
|
451 |
$href = '';
|
452 |
$title = '';
|
453 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
454 |
}
|
455 |
elseif ( wppa( 'is_potdhis' ) ) {
|
456 |
if ( wppa( 'is_slide' ) ) {
|
457 |
+
$value = __( 'Photo of the day history' , 'wp-photo-album-plus' );
|
458 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&potdhis=1';
|
459 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&potdhis=1';
|
460 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
461 |
wppa_bcitem( $value, $href, $title, 'b8', $ajax, true );
|
462 |
}
|
463 |
+
$value = __( 'Photo of the day history' , 'wp-photo-album-plus' );
|
464 |
$href = '';
|
465 |
$title = '';
|
466 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
467 |
}
|
468 |
elseif ( wppa( 'is_tag' ) && wppa( 'is_cat' ) ) {
|
469 |
if ( wppa( 'is_slide' ) ) {
|
470 |
+
$value = __( 'Tagged photos:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus' ).' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
471 |
$value .= ' ' . __( 'From albums with', 'wp-photo-album-plus' ) . ' ';
|
472 |
+
$value .= __( 'Category:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
473 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
474 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
475 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
476 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
477 |
}
|
478 |
+
$value = __( 'Tagged photos:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus' ).' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
479 |
$value .= ' ' . __( 'From albums with', 'wp-photo-album-plus' ) . ' ';
|
480 |
+
$value .= __( 'Category:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
481 |
$href = '';
|
482 |
$title = '';
|
483 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
485 |
}
|
486 |
elseif ( wppa( 'is_tag' ) ) { // Tagged photos
|
487 |
if ( wppa( 'is_slide' ) ) {
|
488 |
+
$value = __( 'Tagged photos:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus' ).' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
489 |
if ( wppa( 'start_album' ) ) {
|
490 |
+
$value .= ' ' . __( 'out of various albums' , 'wp-photo-album-plus' );
|
491 |
}
|
492 |
if ( wppa_get( 'inv' ) ) {
|
493 |
$value .= ' (' . __( 'Inverted', 'wp-photo-album-plus' ) . ')';
|
498 |
$thumbhref .= '&wppa-inv=1';
|
499 |
$thumbajax .= '&wppa-inv=1';
|
500 |
}
|
501 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
502 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
503 |
}
|
504 |
+
$value = __( 'Tagged photos:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or' , 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and' , 'wp-photo-album-plus' ).' ', trim( wppa( 'is_tag' ), ',;' ) ) );
|
505 |
if ( wppa( 'start_album' ) ) {
|
506 |
+
$value .= ' ' . __( 'out of various albums' , 'wp-photo-album-plus' );
|
507 |
}
|
508 |
if ( wppa_get( 'inv' ) ) {
|
509 |
$value .= ' (' . __( 'Inverted', 'wp-photo-album-plus' ) . ')';
|
514 |
}
|
515 |
elseif ( wppa( 'is_cat' ) ) { // Categorized albums
|
516 |
if ( wppa( 'is_slide' ) ) {
|
517 |
+
$value = __( 'Category:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
518 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
519 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-cat='.wppa( 'is_cat' ).'&wppa-album='.wppa( 'start_album' );
|
520 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
521 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
522 |
}
|
523 |
+
$value = __( 'Category:' , 'wp-photo-album-plus' ).' '.str_replace( ';', ' '.__( 'or', 'wp-photo-album-plus' ).' ', str_replace( ',', ' '.__( 'and', 'wp-photo-album-plus' ).' ', trim( wppa( 'is_cat' ), ',;' ) ) );
|
524 |
$href = '';
|
525 |
$title = '';
|
526 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
531 |
$value = wppa_get_album_name( $alb );
|
532 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
533 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
534 |
+
$title = __( 'Album:' , 'wp-photo-album-plus' ).' '.$value;
|
535 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax, true );
|
536 |
}
|
537 |
if ( wppa( 'is_slide' ) ) {
|
538 |
+
$value = __( 'Recently updated albums' , 'wp-photo-album-plus' );
|
539 |
$thumbhref = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
540 |
$thumbajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
541 |
+
$title = __( 'View the thumbnails' , 'wp-photo-album-plus' );
|
542 |
wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax, true );
|
543 |
}
|
544 |
+
$value = __( 'Recently updated albums' , 'wp-photo-album-plus' );
|
545 |
$href = '';
|
546 |
$title = '';
|
547 |
wppa_bcitem( $value, $href, $title, 'b9' );
|
551 |
$usr = wppa_get_user_by( 'login', wppa( 'is_owner' ) );
|
552 |
if ( $usr ) $dispname = $usr->display_name;
|
553 |
else $dispname = wppa( 'is_owner' ); // User deleted
|
554 |
+
$various = sprintf( __( 'Various albums by %s' , 'wp-photo-album-plus' ), $dispname );
|
555 |
}
|
556 |
+
else $various = __( 'Various albums' , 'wp-photo-album-plus' );
|
557 |
if ( wppa( 'is_slide' ) ) {
|
558 |
$value = $is_albenum ? $various : wppa_get_album_name( $alb );
|
559 |
$href = wppa_get_permalink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
560 |
$ajax = wppa_get_ajaxlink().'wppa-cover=0&wppa-occur='.wppa( 'mocc' ).'&wppa-album='.wppa( 'start_album' );
|
561 |
+
$title = $is_albenum ? __( 'Albums:' , 'wp-photo-album-plus' ).' '.wppa( 'start_album' ) : __( 'Album:' , 'wp-photo-album-plus' ).' '.$value;
|
562 |
wppa_bcitem( $value, $href, $title, 'b7', $ajax, true );
|
563 |
}
|
564 |
$value = $is_albenum ? $various : wppa_get_album_name( $alb );
|
580 |
|
581 |
wppa_out( '<a' .
|
582 |
' href="' . $thumbhref . '"' .
|
583 |
+
' title="' . __( 'Thumbnail view' , 'wp-photo-album-plus' ) . '"' .
|
584 |
' class="wppa-nav-text"' .
|
585 |
' style="float:right; cursor:pointer; text-decoration:none;"' .
|
586 |
' >' .
|
751 |
'wppa-album=' . $parent . '&wppa-cover=' . $to_cover . $slide .
|
752 |
'&wppa-occur=' . wppa( 'mocc' );
|
753 |
|
754 |
+
$title = __( 'Album:' , 'wp-photo-album-plus' ) . ' ' . wppa_get_album_name( $parent );
|
755 |
$class = 'b20';
|
756 |
wppa_bcitem( $value, $href, $title, $class, $ajax );
|
757 |
|
775 |
$title = __( stripslashes( $title ) );
|
776 |
if ( ! $title ) {
|
777 |
$title = '****'; // Page exists but is not publish
|
778 |
+
wppa_bcitem( $title, '#', __( 'Unpublished' , 'wp-photo-album-plus' ), 'b2' );
|
779 |
} else {
|
780 |
+
wppa_bcitem( $title, get_page_link( $parent ), __( 'Page:' , 'wp-photo-album-plus' ).' '.$title, 'b2' );
|
781 |
}
|
782 |
}
|
783 |
|
wppa-cache.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
/* Contains all wppa smart cache functions
|
5 |
/*
|
6 |
-
/* Version 8.1.
|
7 |
*/
|
8 |
|
9 |
// Test for caching
|
@@ -575,7 +575,7 @@ global $wpdb;
|
|
575 |
|
576 |
<p>' .
|
577 |
sprintf(
|
578 |
-
__( 'Since last install / update of the plugin, there were %d cache hits, %d cache misses, i.e. a hitrate of %5.2f%%', 'wp-photo-album-plus'),
|
579 |
$hits, $miss, $perc ) .
|
580 |
// __( 'Hits', 'wp-photo-album-plus' ) . ': ' . $perc . '% ' .
|
581 |
'</p>';
|
3 |
/*
|
4 |
/* Contains all wppa smart cache functions
|
5 |
/*
|
6 |
+
/* Version 8.1.08.003
|
7 |
*/
|
8 |
|
9 |
// Test for caching
|
575 |
|
576 |
<p>' .
|
577 |
sprintf(
|
578 |
+
__( 'Since last install / update of the plugin, there were %d cache hits, %d cache misses, i.e. a hitrate of %5.2f%%', 'wp-photo-album-plus' ),
|
579 |
$hits, $miss, $perc ) .
|
580 |
// __( 'Hits', 'wp-photo-album-plus' ) . ': ' . $perc . '% ' .
|
581 |
'</p>';
|
wppa-cart.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the interface to SCABN
|
6 |
-
* Version
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -28,7 +28,7 @@ global $wppa_session;
|
|
28 |
'name' => wppa_get_photo_name( strval( intval( $thumb['id'] ) ) ),
|
29 |
'price' => '0.01',
|
30 |
'qty_field' => '',
|
31 |
-
'b_title' => __('Buy now', 'wp-photo-album-plus'),
|
32 |
'options' => '',
|
33 |
'options_name' => '',
|
34 |
'qty_field' => '',
|
@@ -94,11 +94,11 @@ global $wppa_session;
|
|
94 |
$output .= '
|
95 |
</select>';
|
96 |
} else {
|
97 |
-
$output .= sprintf(__('Unit Price: %s each', 'wp-photo-album-plus'), $currency.number_format($price,2)).' ';
|
98 |
}
|
99 |
|
100 |
if ( $qty_field ) {
|
101 |
-
$output .= __('Qty:', 'wp-photo-album-plus').' <input type="text" style="max-width:50px; margin:0;" class="item_qty" value="1" size="2" name="item_qty" />';
|
102 |
} else {
|
103 |
$output .= '<input type="hidden" class="item_qty" value="1" size="2" name="item_qty" />';
|
104 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the interface to SCABN
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
28 |
'name' => wppa_get_photo_name( strval( intval( $thumb['id'] ) ) ),
|
29 |
'price' => '0.01',
|
30 |
'qty_field' => '',
|
31 |
+
'b_title' => __('Buy now', 'wp-photo-album-plus' ),
|
32 |
'options' => '',
|
33 |
'options_name' => '',
|
34 |
'qty_field' => '',
|
94 |
$output .= '
|
95 |
</select>';
|
96 |
} else {
|
97 |
+
$output .= sprintf(__('Unit Price: %s each', 'wp-photo-album-plus' ), $currency.number_format($price,2)).' ';
|
98 |
}
|
99 |
|
100 |
if ( $qty_field ) {
|
101 |
+
$output .= __('Qty:', 'wp-photo-album-plus' ).' <input type="text" style="max-width:50px; margin:0;" class="item_qty" value="1" size="2" name="item_qty" />';
|
102 |
} else {
|
103 |
$output .= '<input type="hidden" class="item_qty" value="1" size="2" name="item_qty" />';
|
104 |
}
|
wppa-comment-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all comments
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -239,7 +239,7 @@ class WPPA_Comment_table extends WP_List_Table {
|
|
239 |
$iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_comments SET status = 'approved' WHERE id = %s", $id ) );
|
240 |
if ( $iret ) {
|
241 |
wppa_schedule_mailinglist( 'commentapproved', 0, 0, $id );
|
242 |
-
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ), __( 'Photo comment approved' , 'wp-photo-album-plus'), $photo, '', wppa_get_photo_item( $photo, 'owner' ) );
|
243 |
}
|
244 |
}
|
245 |
|
@@ -364,11 +364,11 @@ function _wppa_comment_admin() {
|
|
364 |
|
365 |
// Statistics
|
366 |
$t_to_txt = array( 'none' => false,
|
367 |
-
'600' => sprintf( _n('%d minute', '%d minutes', '10', 'wp-photo-album-plus'), '10'),
|
368 |
-
'1800' => sprintf( _n('%d minute', '%d minutes', '30', 'wp-photo-album-plus'), '30'),
|
369 |
-
'3600' => sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus'), '1'),
|
370 |
-
'86400' => sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
|
371 |
-
'604800' => sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus'), '1'),
|
372 |
);
|
373 |
$spamtime = $t_to_txt[wppa_opt( 'spam_maxage' )];
|
374 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all comments
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
239 |
$iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_comments SET status = 'approved' WHERE id = %s", $id ) );
|
240 |
if ( $iret ) {
|
241 |
wppa_schedule_mailinglist( 'commentapproved', 0, 0, $id );
|
242 |
+
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ), __( 'Photo comment approved' , 'wp-photo-album-plus' ), $photo, '', wppa_get_photo_item( $photo, 'owner' ) );
|
243 |
}
|
244 |
}
|
245 |
|
364 |
|
365 |
// Statistics
|
366 |
$t_to_txt = array( 'none' => false,
|
367 |
+
'600' => sprintf( _n('%d minute', '%d minutes', '10', 'wp-photo-album-plus' ), '10'),
|
368 |
+
'1800' => sprintf( _n('%d minute', '%d minutes', '30', 'wp-photo-album-plus' ), '30'),
|
369 |
+
'3600' => sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus' ), '1'),
|
370 |
+
'86400' => sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus' ), '1'),
|
371 |
+
'604800' => sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus' ), '1'),
|
372 |
);
|
373 |
$spamtime = $t_to_txt[wppa_opt( 'spam_maxage' )];
|
374 |
|
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 8.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -12,7 +12,7 @@ class wppaCommentWidget extends WP_Widget {
|
|
12 |
|
13 |
/** constructor */
|
14 |
function __construct() {
|
15 |
-
$widget_ops = array( 'classname' => 'wppa_comment_widget', 'description' => __( 'Display comments on Photos', 'wp-photo-album-plus') );
|
16 |
parent::__construct( 'wppa_comment_widget', __( 'WPPA+ Comments on Photos', 'wp-photo-album-plus' ), $widget_ops );
|
17 |
}
|
18 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the recent commets on photos
|
6 |
+
* Version 8.1.08.003
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
12 |
|
13 |
/** constructor */
|
14 |
function __construct() {
|
15 |
+
$widget_ops = array( 'classname' => 'wppa_comment_widget', 'description' => __( 'Display comments on Photos', 'wp-photo-album-plus' ) );
|
16 |
parent::__construct( 'wppa_comment_widget', __( 'WPPA+ Comments on Photos', 'wp-photo-album-plus' ), $widget_ops );
|
17 |
}
|
18 |
|
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.1.08.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -1439,7 +1439,7 @@ function wppa_check_memory_limit( $verbose = true, $x = '0', $y = '0' ) {
|
|
1439 |
$maxxhd = sqrt( $maxpixels / 144 ) * 16;
|
1440 |
$maxyhd = sqrt( $maxpixels / 144 ) * 9;
|
1441 |
if ( $verbose ) { // Make it a string
|
1442 |
-
$result = '<br />'.sprintf( __( 'Based on your server memory limit you should not upload images larger then <b>%2.1f</b> Mega pixels', 'wp-photo-album-plus'), $maxpixels / ( 1024 * 1024 ) );
|
1443 |
$result .= '<br />'.sprintf( __( 'E.g. not bigger than approx %s x %s pixels (4:3) or %s x %s (16:9)', 'wp-photo-album-plus' ),
|
1444 |
'<b>' . ( round( $maxx / 25 ) * 25 ) . '</b>',
|
1445 |
'<b>' . ( round( $maxy / 25 ) * 25 ) . '</b>',
|
@@ -2067,7 +2067,7 @@ function wppa_add_credit_points( $amount, $reason = '', $id = '', $value = '', $
|
|
2067 |
|
2068 |
// myCred
|
2069 |
if ( function_exists( 'mycred_add' ) ) {
|
2070 |
-
$entry = $reason . ( $id ? ', '.__('Photo id =', 'wp-photo-album-plus').' '.$id : '' ) . ( $value ? ', '.__('Value =', 'wp-photo-album-plus').' '.$value : '' );
|
2071 |
$bret = mycred_add( str_replace( ' ', '_', $reason ), $usr->ID, $amount, $entry, '', '', '' );
|
2072 |
}
|
2073 |
|
2 |
/* wppa-common-functions.php
|
3 |
*
|
4 |
* Functions used in admin and in themes
|
5 |
+
* Version 8.1.08.003
|
6 |
*
|
7 |
*/
|
8 |
|
1439 |
$maxxhd = sqrt( $maxpixels / 144 ) * 16;
|
1440 |
$maxyhd = sqrt( $maxpixels / 144 ) * 9;
|
1441 |
if ( $verbose ) { // Make it a string
|
1442 |
+
$result = '<br />'.sprintf( __( 'Based on your server memory limit you should not upload images larger then <b>%2.1f</b> Mega pixels', 'wp-photo-album-plus' ), $maxpixels / ( 1024 * 1024 ) );
|
1443 |
$result .= '<br />'.sprintf( __( 'E.g. not bigger than approx %s x %s pixels (4:3) or %s x %s (16:9)', 'wp-photo-album-plus' ),
|
1444 |
'<b>' . ( round( $maxx / 25 ) * 25 ) . '</b>',
|
1445 |
'<b>' . ( round( $maxy / 25 ) * 25 ) . '</b>',
|
2067 |
|
2068 |
// myCred
|
2069 |
if ( function_exists( 'mycred_add' ) ) {
|
2070 |
+
$entry = $reason . ( $id ? ', '.__('Photo id =', 'wp-photo-album-plus' ).' '.$id : '' ) . ( $value ? ', '.__('Value =', 'wp-photo-album-plus' ).' '.$value : '' );
|
2071 |
$bret = mycred_add( str_replace( ' ', '_', $reason ), $usr->ID, $amount, $entry, '', '', '' );
|
2072 |
}
|
2073 |
|
wppa-date-time.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* date and time related functions
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -82,7 +82,7 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
|
|
82 |
wppa_error_message('Uniplemented type: '.$type.' in wppa_get_date_time_select_html()');
|
83 |
}
|
84 |
|
85 |
-
$opt_months = array( '1' => __('Jan', 'wp-photo-album-plus'), '2' => __('Feb', 'wp-photo-album-plus'), '3' => __('Mar', 'wp-photo-album-plus'), '4' => __('Apr', 'wp-photo-album-plus'), '5' => __('May', 'wp-photo-album-plus'), '6' => __('Jun', 'wp-photo-album-plus'), '7' => __('Jul', 'wp-photo-album-plus'), '8' =>__('Aug', 'wp-photo-album-plus'), '9' => __('Sep', 'wp-photo-album-plus'), '10' => __('Oct', 'wp-photo-album-plus'), '11' => __('Nov', 'wp-photo-album-plus'), '12' => __('Dec', 'wp-photo-album-plus') );
|
86 |
$val_months = array( '1' => '01', '2' => '02', '3' => '03', '4' => '04', '5' => '05', '6' => '06', '7' => '07', '8' => '08', '9' => '09', '10' => '10', '11' => '11', '12' =>'12' );
|
87 |
$Y = date( 'Y' );
|
88 |
$opt_years = array( $Y, $Y+1, $Y+2, $Y+3, $Y+4, $Y+5, $Y+6, $Y+7, $Y+8, $Y+9, $Y+10 );
|
@@ -289,7 +289,7 @@ function wppa_get_default_scheduledtm() {
|
|
289 |
|
290 |
function wppa_format_scheduledtm( $sdtm ) {
|
291 |
|
292 |
-
$opt_months = array( '0' => '', '1' => __('Jan', 'wp-photo-album-plus'), '2' => __('Feb', 'wp-photo-album-plus'), '3' => __('Mar', 'wp-photo-album-plus'), '4' => __('Apr', 'wp-photo-album-plus'), '5' => __('May', 'wp-photo-album-plus'), '6' => __('Jun', 'wp-photo-album-plus'), '7' => __('Jul', 'wp-photo-album-plus'), '8' =>__('Aug', 'wp-photo-album-plus'), '9' => __('Sep', 'wp-photo-album-plus'), '10' => __('Oct', 'wp-photo-album-plus'), '11' => __('Nov', 'wp-photo-album-plus'), '12' => __('Dec', 'wp-photo-album-plus') );
|
293 |
|
294 |
$temp = explode( ',', $sdtm );
|
295 |
$cur_day = $temp[2];
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* date and time related functions
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
82 |
wppa_error_message('Uniplemented type: '.$type.' in wppa_get_date_time_select_html()');
|
83 |
}
|
84 |
|
85 |
+
$opt_months = array( '1' => __('Jan', 'wp-photo-album-plus' ), '2' => __('Feb', 'wp-photo-album-plus' ), '3' => __('Mar', 'wp-photo-album-plus' ), '4' => __('Apr', 'wp-photo-album-plus' ), '5' => __('May', 'wp-photo-album-plus' ), '6' => __('Jun', 'wp-photo-album-plus' ), '7' => __('Jul', 'wp-photo-album-plus' ), '8' =>__('Aug', 'wp-photo-album-plus' ), '9' => __('Sep', 'wp-photo-album-plus' ), '10' => __('Oct', 'wp-photo-album-plus' ), '11' => __('Nov', 'wp-photo-album-plus' ), '12' => __('Dec', 'wp-photo-album-plus' ) );
|
86 |
$val_months = array( '1' => '01', '2' => '02', '3' => '03', '4' => '04', '5' => '05', '6' => '06', '7' => '07', '8' => '08', '9' => '09', '10' => '10', '11' => '11', '12' =>'12' );
|
87 |
$Y = date( 'Y' );
|
88 |
$opt_years = array( $Y, $Y+1, $Y+2, $Y+3, $Y+4, $Y+5, $Y+6, $Y+7, $Y+8, $Y+9, $Y+10 );
|
289 |
|
290 |
function wppa_format_scheduledtm( $sdtm ) {
|
291 |
|
292 |
+
$opt_months = array( '0' => '', '1' => __('Jan', 'wp-photo-album-plus' ), '2' => __('Feb', 'wp-photo-album-plus' ), '3' => __('Mar', 'wp-photo-album-plus' ), '4' => __('Apr', 'wp-photo-album-plus' ), '5' => __('May', 'wp-photo-album-plus' ), '6' => __('Jun', 'wp-photo-album-plus' ), '7' => __('Jul', 'wp-photo-album-plus' ), '8' =>__('Aug', 'wp-photo-album-plus' ), '9' => __('Sep', 'wp-photo-album-plus' ), '10' => __('Oct', 'wp-photo-album-plus' ), '11' => __('Nov', 'wp-photo-album-plus' ), '12' => __('Dec', 'wp-photo-album-plus' ) );
|
293 |
|
294 |
$temp = explode( ',', $sdtm );
|
295 |
$cur_day = $temp[2];
|
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -320,7 +320,7 @@ horizrailenabled:false,";
|
|
320 |
'wppa_user_upload_audio_on' => 'no',
|
321 |
'wppa_user_opload_roles' => '',
|
322 |
'wppa_copyright_on' => 'yes', // 19
|
323 |
-
'wppa_copyright_notice' => __('<span style="color:red" >Warning: Do not upload copyrighted material!</span>', 'wp-photo-album-plus'), // 20
|
324 |
'wppa_watermark_user' => 'no',
|
325 |
'wppa_name_user' => 'yes',
|
326 |
'wppa_name_user_mandatory' => 'no',
|
@@ -331,18 +331,18 @@ horizrailenabled:false,";
|
|
331 |
'wppa_fe_upload_tags' => 'no',
|
332 |
'wppa_up_tagselbox_on_1' => 'yes', // 18
|
333 |
'wppa_up_tagselbox_multi_1' => 'yes',
|
334 |
-
'wppa_up_tagselbox_title_1' => __( 'Select tags:' , 'wp-photo-album-plus'),
|
335 |
'wppa_up_tagselbox_content_1' => '',
|
336 |
'wppa_up_tagselbox_on_2' => 'no',
|
337 |
'wppa_up_tagselbox_multi_2' => 'yes',
|
338 |
-
'wppa_up_tagselbox_title_2' => __( 'Select tags:' , 'wp-photo-album-plus'),
|
339 |
'wppa_up_tagselbox_content_2' => '',
|
340 |
'wppa_up_tagselbox_on_3' => 'no',
|
341 |
'wppa_up_tagselbox_multi_3' => 'yes',
|
342 |
-
'wppa_up_tagselbox_title_3' => __( 'Select tags:' , 'wp-photo-album-plus'),
|
343 |
'wppa_up_tagselbox_content_3' => '',
|
344 |
'wppa_up_tag_input_on' => 'yes',
|
345 |
-
'wppa_up_tag_input_title' => __( 'Enter new tags:' , 'wp-photo-album-plus'),
|
346 |
'wppa_up_tagbox_new' => '',
|
347 |
'wppa_up_tag_preview' => 'yes',
|
348 |
'wppa_camera_connect' => 'yes',
|
@@ -509,7 +509,7 @@ horizrailenabled:false,";
|
|
509 |
'wppa_nicescroll_opts' => $nso,
|
510 |
'wppa_response_speed' => '0',
|
511 |
'wppa_request_info' => 'no',
|
512 |
-
'wppa_request_info_text' => __('Please specify your question', 'wp-photo-album-plus'),
|
513 |
'wppa_album_use_gallery' => 'no',
|
514 |
'wppa_zoom_on' => 'no',
|
515 |
'wppa_fs_policy' => 'lightbox',
|
@@ -574,8 +574,8 @@ horizrailenabled:false,";
|
|
574 |
'wppa_dislike_value' => '-5',
|
575 |
'wppa_next_on_callback' => 'no',
|
576 |
'wppa_star_opacity' => '20',
|
577 |
-
'wppa_vote_button_text' => __('Vote for me!', 'wp-photo-album-plus'),
|
578 |
-
'wppa_voted_button_text' => __('Voted for me', 'wp-photo-album-plus'),
|
579 |
'wppa_vote_thumb' => 'no',
|
580 |
'wppa_medal_bronze_when' => '5',
|
581 |
'wppa_medal_silver_when' => '10',
|
@@ -987,16 +987,20 @@ horizrailenabled:false,";
|
|
987 |
'wppa_max_photo_newtime' => '0', // 2
|
988 |
'wppa_max_album_modtime' => '0', // 1
|
989 |
'wppa_max_photo_modtime' => '0', // 2
|
|
|
990 |
'wppa_pup_is_aup' => 'no',
|
991 |
'wppa_new_mod_label_is_text' => 'yes',
|
992 |
'wppa_lasten_limit_new' => 'no',
|
993 |
'wppa_lasten_use_modified' => 'no',
|
994 |
-
'wppa_new_label_text' => __('NEW', 'wp-photo-album-plus'),
|
995 |
'wppa_new_label_color' => 'orange',
|
996 |
-
'wppa_mod_label_text' => __('MODIFIED', 'wp-photo-album-plus'),
|
997 |
'wppa_mod_label_color' => 'green',
|
|
|
|
|
998 |
'wppa_new_label_url' => wppa_get_imgdir('new.png'),
|
999 |
-
'wppa_mod_label_url' => wppa_get_imgdir('
|
|
|
1000 |
'wppa_apply_newphoto_desc' => 'no', // IX-D3
|
1001 |
'wppa_newphoto_description' => $npd, // IX-D5
|
1002 |
'wppa_compress_newdesc' => 'no',
|
@@ -1196,13 +1200,13 @@ horizrailenabled:false,";
|
|
1196 |
'wppa_widget_width' => '200', // Do we use this somewhere still?
|
1197 |
|
1198 |
// Topten widget
|
1199 |
-
'wppa_toptenwidgettitle' => __('Top Ten Photos', 'wp-photo-album-plus'),
|
1200 |
|
1201 |
// Thumbnail widget
|
1202 |
-
'wppa_thumbnailwidgettitle' => __('Thumbnail Photos', 'wp-photo-album-plus'),
|
1203 |
|
1204 |
// Search widget
|
1205 |
-
'wppa_searchwidgettitle' => __('Search photos', 'wp-photo-album-plus'),
|
1206 |
|
1207 |
// Comment admin
|
1208 |
'wppa_comadmin_show' => 'all',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
320 |
'wppa_user_upload_audio_on' => 'no',
|
321 |
'wppa_user_opload_roles' => '',
|
322 |
'wppa_copyright_on' => 'yes', // 19
|
323 |
+
'wppa_copyright_notice' => __('<span style="color:red" >Warning: Do not upload copyrighted material!</span>', 'wp-photo-album-plus' ), // 20
|
324 |
'wppa_watermark_user' => 'no',
|
325 |
'wppa_name_user' => 'yes',
|
326 |
'wppa_name_user_mandatory' => 'no',
|
331 |
'wppa_fe_upload_tags' => 'no',
|
332 |
'wppa_up_tagselbox_on_1' => 'yes', // 18
|
333 |
'wppa_up_tagselbox_multi_1' => 'yes',
|
334 |
+
'wppa_up_tagselbox_title_1' => __( 'Select tags:' , 'wp-photo-album-plus' ),
|
335 |
'wppa_up_tagselbox_content_1' => '',
|
336 |
'wppa_up_tagselbox_on_2' => 'no',
|
337 |
'wppa_up_tagselbox_multi_2' => 'yes',
|
338 |
+
'wppa_up_tagselbox_title_2' => __( 'Select tags:' , 'wp-photo-album-plus' ),
|
339 |
'wppa_up_tagselbox_content_2' => '',
|
340 |
'wppa_up_tagselbox_on_3' => 'no',
|
341 |
'wppa_up_tagselbox_multi_3' => 'yes',
|
342 |
+
'wppa_up_tagselbox_title_3' => __( 'Select tags:' , 'wp-photo-album-plus' ),
|
343 |
'wppa_up_tagselbox_content_3' => '',
|
344 |
'wppa_up_tag_input_on' => 'yes',
|
345 |
+
'wppa_up_tag_input_title' => __( 'Enter new tags:' , 'wp-photo-album-plus' ),
|
346 |
'wppa_up_tagbox_new' => '',
|
347 |
'wppa_up_tag_preview' => 'yes',
|
348 |
'wppa_camera_connect' => 'yes',
|
509 |
'wppa_nicescroll_opts' => $nso,
|
510 |
'wppa_response_speed' => '0',
|
511 |
'wppa_request_info' => 'no',
|
512 |
+
'wppa_request_info_text' => __('Please specify your question', 'wp-photo-album-plus' ),
|
513 |
'wppa_album_use_gallery' => 'no',
|
514 |
'wppa_zoom_on' => 'no',
|
515 |
'wppa_fs_policy' => 'lightbox',
|
574 |
'wppa_dislike_value' => '-5',
|
575 |
'wppa_next_on_callback' => 'no',
|
576 |
'wppa_star_opacity' => '20',
|
577 |
+
'wppa_vote_button_text' => __('Vote for me!', 'wp-photo-album-plus' ),
|
578 |
+
'wppa_voted_button_text' => __('Voted for me', 'wp-photo-album-plus' ),
|
579 |
'wppa_vote_thumb' => 'no',
|
580 |
'wppa_medal_bronze_when' => '5',
|
581 |
'wppa_medal_silver_when' => '10',
|
987 |
'wppa_max_photo_newtime' => '0', // 2
|
988 |
'wppa_max_album_modtime' => '0', // 1
|
989 |
'wppa_max_photo_modtime' => '0', // 2
|
990 |
+
'wppa_show_first' => 'no',
|
991 |
'wppa_pup_is_aup' => 'no',
|
992 |
'wppa_new_mod_label_is_text' => 'yes',
|
993 |
'wppa_lasten_limit_new' => 'no',
|
994 |
'wppa_lasten_use_modified' => 'no',
|
995 |
+
'wppa_new_label_text' => __('NEW', 'wp-photo-album-plus' ),
|
996 |
'wppa_new_label_color' => 'orange',
|
997 |
+
'wppa_mod_label_text' => __('MODIFIED', 'wp-photo-album-plus' ),
|
998 |
'wppa_mod_label_color' => 'green',
|
999 |
+
'wppa_first_label_text' => __('FIRST', 'wp-photo-album-plus' ),
|
1000 |
+
'wppa_first_label_color' => 'blue',
|
1001 |
'wppa_new_label_url' => wppa_get_imgdir('new.png'),
|
1002 |
+
'wppa_mod_label_url' => wppa_get_imgdir('mod.png'),
|
1003 |
+
'wppa_first_label_url' => wppa_get_imgdir('first.png'),
|
1004 |
'wppa_apply_newphoto_desc' => 'no', // IX-D3
|
1005 |
'wppa_newphoto_description' => $npd, // IX-D5
|
1006 |
'wppa_compress_newdesc' => 'no',
|
1200 |
'wppa_widget_width' => '200', // Do we use this somewhere still?
|
1201 |
|
1202 |
// Topten widget
|
1203 |
+
'wppa_toptenwidgettitle' => __('Top Ten Photos', 'wp-photo-album-plus' ),
|
1204 |
|
1205 |
// Thumbnail widget
|
1206 |
+
'wppa_thumbnailwidgettitle' => __('Thumbnail Photos', 'wp-photo-album-plus' ),
|
1207 |
|
1208 |
// Search widget
|
1209 |
+
'wppa_searchwidgettitle' => __('Search photos', 'wp-photo-album-plus' ),
|
1210 |
|
1211 |
// Comment admin
|
1212 |
'wppa_comadmin_show' => 'all',
|
wppa-edit-tags.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-edit-tags.php
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
-
* Version 8.1.08.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -54,13 +54,13 @@ function _wppa_edit_tags() {
|
|
54 |
<table class="widefat wppa-table wppa-setting-table">
|
55 |
<thead style="font-weight: bold; " class="wppa_table_8">
|
56 |
<tr>
|
57 |
-
<td>' . __('Name', 'wp-photo-album-plus') . '</td>
|
58 |
-
<td>' . __('Description', 'wp-photo-album-plus') . '</td>
|
59 |
-
<td>' . __('Tag to change', 'wp-photo-album-plus') . '</td>
|
60 |
-
<td>' . __('Change into', 'wp-photo-album-plus') . '</td>
|
61 |
-
<td>' . __('Do it!', 'wp-photo-album-plus') . '</td>
|
62 |
-
<td>' . __('Status', 'wp-photo-album-plus') . '</td>
|
63 |
-
<td>' . __('To Go', 'wp-photo-album-plus') . '</td>
|
64 |
</tr>
|
65 |
</thead>
|
66 |
<tbody class="wppa_table_8">
|
@@ -124,7 +124,7 @@ function _wppa_edit_tags() {
|
|
124 |
function wppa_tag_select( $options, $values ) {
|
125 |
|
126 |
if ( ! is_array( $options ) ) {
|
127 |
-
$result = __('There is nothing to select.', 'wp-photo-album-plus');
|
128 |
return $result;
|
129 |
}
|
130 |
|
2 |
/* wppa-edit-tags.php
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
+
* Version 8.1.08.003
|
6 |
*
|
7 |
*/
|
8 |
|
54 |
<table class="widefat wppa-table wppa-setting-table">
|
55 |
<thead style="font-weight: bold; " class="wppa_table_8">
|
56 |
<tr>
|
57 |
+
<td>' . __('Name', 'wp-photo-album-plus' ) . '</td>
|
58 |
+
<td>' . __('Description', 'wp-photo-album-plus' ) . '</td>
|
59 |
+
<td>' . __('Tag to change', 'wp-photo-album-plus' ) . '</td>
|
60 |
+
<td>' . __('Change into', 'wp-photo-album-plus' ) . '</td>
|
61 |
+
<td>' . __('Do it!', 'wp-photo-album-plus' ) . '</td>
|
62 |
+
<td>' . __('Status', 'wp-photo-album-plus' ) . '</td>
|
63 |
+
<td>' . __('To Go', 'wp-photo-album-plus' ) . '</td>
|
64 |
</tr>
|
65 |
</thead>
|
66 |
<tbody class="wppa_table_8">
|
124 |
function wppa_tag_select( $options, $values ) {
|
125 |
|
126 |
if ( ! is_array( $options ) ) {
|
127 |
+
$result = __('There is nothing to select.', 'wp-photo-album-plus' );
|
128 |
return $result;
|
129 |
}
|
130 |
|
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 8.
|
7 |
*
|
8 |
*
|
9 |
*/
|
@@ -1687,16 +1687,16 @@ global $wppa_exif_error_output;
|
|
1687 |
if ( ! wppa_is_valid_integer( $data ) ) return $wppa_exif_error_output;
|
1688 |
|
1689 |
switch ( $data ) {
|
1690 |
-
case '0': $result = __('Not Defined', 'wp-photo-album-plus'); break;
|
1691 |
-
case '1': $result = __('Manual', 'wp-photo-album-plus'); break;
|
1692 |
-
case '2': $result = __('Program AE', 'wp-photo-album-plus'); break;
|
1693 |
-
case '3': $result = __('Aperture-priority AE', 'wp-photo-album-plus'); break;
|
1694 |
-
case '4': $result = __('Shutter speed priority AE', 'wp-photo-album-plus'); break;
|
1695 |
-
case '5': $result = __('Creative (Slow speed)', 'wp-photo-album-plus'); break;
|
1696 |
-
case '6': $result = __('Action (High speed)', 'wp-photo-album-plus'); break;
|
1697 |
-
case '7': $result = __('Portrait', 'wp-photo-album-plus'); break;
|
1698 |
-
case '8': $result = __('Landscape', 'wp-photo-album-plus'); break;
|
1699 |
-
case '9': $result = __('Bulb', 'wp-photo-album-plus'); break;
|
1700 |
default: $result = __('Unknown', 'wp-photo-album-plus' );
|
1701 |
}
|
1702 |
return $result;
|
@@ -1707,15 +1707,15 @@ global $wppa_exif_error_output;
|
|
1707 |
if ( ! wppa_is_valid_integer( $data ) ) return $wppa_exif_error_output;
|
1708 |
|
1709 |
switch ( $data ) {
|
1710 |
-
case '0': $result = __('Unknown', 'wp-photo-album-plus'); break;
|
1711 |
-
case '1': $result = __('Standard Output Sensitivity', 'wp-photo-album-plus'); break;
|
1712 |
-
case '2': $result = __('Recommended Exposure Index', 'wp-photo-album-plus'); break;
|
1713 |
-
case '3': $result = __('ISO Speed', 'wp-photo-album-plus'); break;
|
1714 |
-
case '4': $result = __('Standard Output Sensitivity and Recommended Exposure Index', 'wp-photo-album-plus'); break;
|
1715 |
-
case '5': $result = __('Standard Output Sensitivity and ISO Speed', 'wp-photo-album-plus'); break;
|
1716 |
-
case '6': $result = __('Recommended Exposure Index and ISO Speed', 'wp-photo-album-plus'); break;
|
1717 |
-
case '7': $result = __('Standard Output Sensitivity, Recommended Exposure Index and ISO Speed', 'wp-photo-album-plus'); break;
|
1718 |
-
default: $result = __('Unknown', 'wp-photo-album-plus');
|
1719 |
}
|
1720 |
return $result;
|
1721 |
break;
|
@@ -1847,76 +1847,76 @@ global $wppa_exif_error_output;
|
|
1847 |
|
1848 |
case 'E#9207': // Metering mode
|
1849 |
switch ( $data ) {
|
1850 |
-
case '1': $result = __('Average', 'wp-photo-album-plus'); break;
|
1851 |
-
case '2': $result = __('Center-weighted average', 'wp-photo-album-plus'); break;
|
1852 |
-
case '3': $result = __('Spot', 'wp-photo-album-plus'); break;
|
1853 |
-
case '4': $result = __('Multi-spot', 'wp-photo-album-plus'); break;
|
1854 |
-
case '5': $result = __('Multi-segment', 'wp-photo-album-plus'); break;
|
1855 |
-
case '6': $result = __('Partial', 'wp-photo-album-plus'); break;
|
1856 |
-
case '255': $result = __('Other', 'wp-photo-album-plus'); break;
|
1857 |
-
default: $result = __('reserved', 'wp-photo-album-plus');
|
1858 |
}
|
1859 |
return $result;
|
1860 |
break;
|
1861 |
|
1862 |
case 'E#9208': // LghtSource
|
1863 |
switch ( $data ) {
|
1864 |
-
case '0': $result = __('unknown', 'wp-photo-album-plus'); break;
|
1865 |
-
case '1': $result = __('Daylight', 'wp-photo-album-plus'); break;
|
1866 |
-
case '2': $result = __('Fluorescent', 'wp-photo-album-plus'); break;
|
1867 |
-
case '3': $result = __('Tungsten (incandescent light)', 'wp-photo-album-plus'); break;
|
1868 |
-
case '4': $result = __('Flash', 'wp-photo-album-plus'); break;
|
1869 |
-
case '9': $result = __('Fine weather', 'wp-photo-album-plus'); break;
|
1870 |
-
case '10': $result = __('Cloudy weather', 'wp-photo-album-plus'); break;
|
1871 |
-
case '11': $result = __('Shade', 'wp-photo-album-plus'); break;
|
1872 |
-
case '12': $result = __('Daylight fluorescent (D 5700 – 7100K)', 'wp-photo-album-plus'); break;
|
1873 |
-
case '13': $result = __('Day white fluorescent (N 4600 – 5400K)', 'wp-photo-album-plus'); break;
|
1874 |
-
case '14': $result = __('Cool white fluorescent (W 3900 – 4500K)', 'wp-photo-album-plus'); break;
|
1875 |
-
case '15': $result = __('White fluorescent (WW 3200 – 3700K)', 'wp-photo-album-plus'); break;
|
1876 |
-
case '17': $result = __('Standard light A', 'wp-photo-album-plus'); break;
|
1877 |
-
case '18': $result = __('Standard light B', 'wp-photo-album-plus'); break;
|
1878 |
-
case '19': $result = __('Standard light C', 'wp-photo-album-plus'); break;
|
1879 |
-
case '20': $result = __('D55', 'wp-photo-album-plus'); break;
|
1880 |
-
case '21': $result = __('D65', 'wp-photo-album-plus'); break;
|
1881 |
-
case '22': $result = __('D75', 'wp-photo-album-plus'); break;
|
1882 |
-
case '23': $result = __('D50', 'wp-photo-album-plus'); break;
|
1883 |
-
case '24': $result = __('ISO studio tungsten', 'wp-photo-album-plus'); break;
|
1884 |
-
case '255': $result = __('other light source', 'wp-photo-album-plus'); break;
|
1885 |
-
default: $result = __('reserved', 'wp-photo-album-plus'); break;
|
1886 |
}
|
1887 |
return $result;
|
1888 |
break;
|
1889 |
|
1890 |
case 'E#9209': // Flash
|
1891 |
switch ( $data ) {
|
1892 |
-
case '0': $result = __('No Flash', 'wp-photo-album-plus'); break;
|
1893 |
-
case '1': $result = __('Fired', 'wp-photo-album-plus'); break;
|
1894 |
-
case '5': $result = __('Fired, Return not detected', 'wp-photo-album-plus'); break;
|
1895 |
-
case '7': $result = __('Fired, Return detected', 'wp-photo-album-plus'); break;
|
1896 |
-
case '8': $result = __('On, Did not fire', 'wp-photo-album-plus'); break;
|
1897 |
-
case '9': $result = __('On, Fired', 'wp-photo-album-plus'); break;
|
1898 |
-
case '13': $result = __('On, Return not detected', 'wp-photo-album-plus'); break;
|
1899 |
-
case '15': $result = __('On, Return detected', 'wp-photo-album-plus'); break;
|
1900 |
-
case '16': $result = __('Off, Did not fire', 'wp-photo-album-plus'); break;
|
1901 |
-
case '20': $result = __('Off, Did not fire, Return not detected', 'wp-photo-album-plus'); break;
|
1902 |
-
case '24': $result = __('Auto, Did not fire', 'wp-photo-album-plus'); break;
|
1903 |
-
case '25': $result = __('Auto, Fired', 'wp-photo-album-plus'); break;
|
1904 |
-
case '29': $result = __('Auto, Fired, Return not detected', 'wp-photo-album-plus'); break;
|
1905 |
-
case '31': $result = __('Auto, Fired, Return detected', 'wp-photo-album-plus'); break;
|
1906 |
-
case '32': $result = __('No flash function', 'wp-photo-album-plus'); break;
|
1907 |
-
case '48': $result = __('Off, No flash function', 'wp-photo-album-plus'); break;
|
1908 |
-
case '65': $result = __('Fired, Red-eye reduction', 'wp-photo-album-plus'); break;
|
1909 |
-
case '69': $result = __('Fired, Red-eye reduction, Return not detected', 'wp-photo-album-plus'); break;
|
1910 |
-
case '71': $result = __('Fired, Red-eye reduction, Return detected', 'wp-photo-album-plus'); break;
|
1911 |
-
case '73': $result = __('On, Red-eye reduction', 'wp-photo-album-plus'); break;
|
1912 |
-
case '77': $result = __('Red-eye reduction, Return not detected', 'wp-photo-album-plus'); break;
|
1913 |
-
case '79': $result = __('On, Red-eye reduction, Return detected', 'wp-photo-album-plus'); break;
|
1914 |
-
case '80': $result = __('Off, Red-eye reduction', 'wp-photo-album-plus'); break;
|
1915 |
-
case '88': $result = __('Auto, Did not fire, Red-eye reduction', 'wp-photo-album-plus'); break;
|
1916 |
-
case '89': $result = __('Auto, Fired, Red-eye reduction', 'wp-photo-album-plus'); break;
|
1917 |
-
case '93': $result = __('Auto, Fired, Red-eye reduction, Return not detected', 'wp-photo-album-plus'); break;
|
1918 |
-
case '95': $result = __('Auto, Fired, Red-eye reduction, Return detected', 'wp-photo-album-plus'); break;
|
1919 |
-
default: $result = __('Unknown', 'wp-photo-album-plus');
|
1920 |
}
|
1921 |
|
1922 |
return $result;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* exif and iptc common functions
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*
|
9 |
*/
|
1687 |
if ( ! wppa_is_valid_integer( $data ) ) return $wppa_exif_error_output;
|
1688 |
|
1689 |
switch ( $data ) {
|
1690 |
+
case '0': $result = __('Not Defined', 'wp-photo-album-plus' ); break;
|
1691 |
+
case '1': $result = __('Manual', 'wp-photo-album-plus' ); break;
|
1692 |
+
case '2': $result = __('Program AE', 'wp-photo-album-plus' ); break;
|
1693 |
+
case '3': $result = __('Aperture-priority AE', 'wp-photo-album-plus' ); break;
|
1694 |
+
case '4': $result = __('Shutter speed priority AE', 'wp-photo-album-plus' ); break;
|
1695 |
+
case '5': $result = __('Creative (Slow speed)', 'wp-photo-album-plus' ); break;
|
1696 |
+
case '6': $result = __('Action (High speed)', 'wp-photo-album-plus' ); break;
|
1697 |
+
case '7': $result = __('Portrait', 'wp-photo-album-plus' ); break;
|
1698 |
+
case '8': $result = __('Landscape', 'wp-photo-album-plus' ); break;
|
1699 |
+
case '9': $result = __('Bulb', 'wp-photo-album-plus' ); break;
|
1700 |
default: $result = __('Unknown', 'wp-photo-album-plus' );
|
1701 |
}
|
1702 |
return $result;
|
1707 |
if ( ! wppa_is_valid_integer( $data ) ) return $wppa_exif_error_output;
|
1708 |
|
1709 |
switch ( $data ) {
|
1710 |
+
case '0': $result = __('Unknown', 'wp-photo-album-plus' ); break;
|
1711 |
+
case '1': $result = __('Standard Output Sensitivity', 'wp-photo-album-plus' ); break;
|
1712 |
+
case '2': $result = __('Recommended Exposure Index', 'wp-photo-album-plus' ); break;
|
1713 |
+
case '3': $result = __('ISO Speed', 'wp-photo-album-plus' ); break;
|
1714 |
+
case '4': $result = __('Standard Output Sensitivity and Recommended Exposure Index', 'wp-photo-album-plus' ); break;
|
1715 |
+
case '5': $result = __('Standard Output Sensitivity and ISO Speed', 'wp-photo-album-plus' ); break;
|
1716 |
+
case '6': $result = __('Recommended Exposure Index and ISO Speed', 'wp-photo-album-plus' ); break;
|
1717 |
+
case '7': $result = __('Standard Output Sensitivity, Recommended Exposure Index and ISO Speed', 'wp-photo-album-plus' ); break;
|
1718 |
+
default: $result = __('Unknown', 'wp-photo-album-plus' );
|
1719 |
}
|
1720 |
return $result;
|
1721 |
break;
|
1847 |
|
1848 |
case 'E#9207': // Metering mode
|
1849 |
switch ( $data ) {
|
1850 |
+
case '1': $result = __('Average', 'wp-photo-album-plus' ); break;
|
1851 |
+
case '2': $result = __('Center-weighted average', 'wp-photo-album-plus' ); break;
|
1852 |
+
case '3': $result = __('Spot', 'wp-photo-album-plus' ); break;
|
1853 |
+
case '4': $result = __('Multi-spot', 'wp-photo-album-plus' ); break;
|
1854 |
+
case '5': $result = __('Multi-segment', 'wp-photo-album-plus' ); break;
|
1855 |
+
case '6': $result = __('Partial', 'wp-photo-album-plus' ); break;
|
1856 |
+
case '255': $result = __('Other', 'wp-photo-album-plus' ); break;
|
1857 |
+
default: $result = __('reserved', 'wp-photo-album-plus' );
|
1858 |
}
|
1859 |
return $result;
|
1860 |
break;
|
1861 |
|
1862 |
case 'E#9208': // LghtSource
|
1863 |
switch ( $data ) {
|
1864 |
+
case '0': $result = __('unknown', 'wp-photo-album-plus' ); break;
|
1865 |
+
case '1': $result = __('Daylight', 'wp-photo-album-plus' ); break;
|
1866 |
+
case '2': $result = __('Fluorescent', 'wp-photo-album-plus' ); break;
|
1867 |
+
case '3': $result = __('Tungsten (incandescent light)', 'wp-photo-album-plus' ); break;
|
1868 |
+
case '4': $result = __('Flash', 'wp-photo-album-plus' ); break;
|
1869 |
+
case '9': $result = __('Fine weather', 'wp-photo-album-plus' ); break;
|
1870 |
+
case '10': $result = __('Cloudy weather', 'wp-photo-album-plus' ); break;
|
1871 |
+
case '11': $result = __('Shade', 'wp-photo-album-plus' ); break;
|
1872 |
+
case '12': $result = __('Daylight fluorescent (D 5700 – 7100K)', 'wp-photo-album-plus' ); break;
|
1873 |
+
case '13': $result = __('Day white fluorescent (N 4600 – 5400K)', 'wp-photo-album-plus' ); break;
|
1874 |
+
case '14': $result = __('Cool white fluorescent (W 3900 – 4500K)', 'wp-photo-album-plus' ); break;
|
1875 |
+
case '15': $result = __('White fluorescent (WW 3200 – 3700K)', 'wp-photo-album-plus' ); break;
|
1876 |
+
case '17': $result = __('Standard light A', 'wp-photo-album-plus' ); break;
|
1877 |
+
case '18': $result = __('Standard light B', 'wp-photo-album-plus' ); break;
|
1878 |
+
case '19': $result = __('Standard light C', 'wp-photo-album-plus' ); break;
|
1879 |
+
case '20': $result = __('D55', 'wp-photo-album-plus' ); break;
|
1880 |
+
case '21': $result = __('D65', 'wp-photo-album-plus' ); break;
|
1881 |
+
case '22': $result = __('D75', 'wp-photo-album-plus' ); break;
|
1882 |
+
case '23': $result = __('D50', 'wp-photo-album-plus' ); break;
|
1883 |
+
case '24': $result = __('ISO studio tungsten', 'wp-photo-album-plus' ); break;
|
1884 |
+
case '255': $result = __('other light source', 'wp-photo-album-plus' ); break;
|
1885 |
+
default: $result = __('reserved', 'wp-photo-album-plus' ); break;
|
1886 |
}
|
1887 |
return $result;
|
1888 |
break;
|
1889 |
|
1890 |
case 'E#9209': // Flash
|
1891 |
switch ( $data ) {
|
1892 |
+
case '0': $result = __('No Flash', 'wp-photo-album-plus' ); break;
|
1893 |
+
case '1': $result = __('Fired', 'wp-photo-album-plus' ); break;
|
1894 |
+
case '5': $result = __('Fired, Return not detected', 'wp-photo-album-plus' ); break;
|
1895 |
+
case '7': $result = __('Fired, Return detected', 'wp-photo-album-plus' ); break;
|
1896 |
+
case '8': $result = __('On, Did not fire', 'wp-photo-album-plus' ); break;
|
1897 |
+
case '9': $result = __('On, Fired', 'wp-photo-album-plus' ); break;
|
1898 |
+
case '13': $result = __('On, Return not detected', 'wp-photo-album-plus' ); break;
|
1899 |
+
case '15': $result = __('On, Return detected', 'wp-photo-album-plus' ); break;
|
1900 |
+
case '16': $result = __('Off, Did not fire', 'wp-photo-album-plus' ); break;
|
1901 |
+
case '20': $result = __('Off, Did not fire, Return not detected', 'wp-photo-album-plus' ); break;
|
1902 |
+
case '24': $result = __('Auto, Did not fire', 'wp-photo-album-plus' ); break;
|
1903 |
+
case '25': $result = __('Auto, Fired', 'wp-photo-album-plus' ); break;
|
1904 |
+
case '29': $result = __('Auto, Fired, Return not detected', 'wp-photo-album-plus' ); break;
|
1905 |
+
case '31': $result = __('Auto, Fired, Return detected', 'wp-photo-album-plus' ); break;
|
1906 |
+
case '32': $result = __('No flash function', 'wp-photo-album-plus' ); break;
|
1907 |
+
case '48': $result = __('Off, No flash function', 'wp-photo-album-plus' ); break;
|
1908 |
+
case '65': $result = __('Fired, Red-eye reduction', 'wp-photo-album-plus' ); break;
|
1909 |
+
case '69': $result = __('Fired, Red-eye reduction, Return not detected', 'wp-photo-album-plus' ); break;
|
1910 |
+
case '71': $result = __('Fired, Red-eye reduction, Return detected', 'wp-photo-album-plus' ); break;
|
1911 |
+
case '73': $result = __('On, Red-eye reduction', 'wp-photo-album-plus' ); break;
|
1912 |
+
case '77': $result = __('Red-eye reduction, Return not detected', 'wp-photo-album-plus' ); break;
|
1913 |
+
case '79': $result = __('On, Red-eye reduction, Return detected', 'wp-photo-album-plus' ); break;
|
1914 |
+
case '80': $result = __('Off, Red-eye reduction', 'wp-photo-album-plus' ); break;
|
1915 |
+
case '88': $result = __('Auto, Did not fire, Red-eye reduction', 'wp-photo-album-plus' ); break;
|
1916 |
+
case '89': $result = __('Auto, Fired, Red-eye reduction', 'wp-photo-album-plus' ); break;
|
1917 |
+
case '93': $result = __('Auto, Fired, Red-eye reduction, Return not detected', 'wp-photo-album-plus' ); break;
|
1918 |
+
case '95': $result = __('Auto, Fired, Red-eye reduction, Return detected', 'wp-photo-album-plus' ); break;
|
1919 |
+
default: $result = __('Unknown', 'wp-photo-album-plus' );
|
1920 |
}
|
1921 |
|
1922 |
return $result;
|
wppa-export.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the export functions
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -29,12 +29,12 @@ global $wpdb;
|
|
29 |
<br>
|
30 |
</div>
|
31 |
|
32 |
-
<h2><?php _e('Export Photos', 'wp-photo-album-plus'); ?></h2><br>
|
33 |
|
34 |
<form action="<?php echo(wppa_dbg_url(get_admin_url().'admin.php?page=wppa_export_photos')) ?>" method="post">
|
35 |
<?php wp_nonce_field('$wppa_nonce', WPPA_NONCE); ?>
|
36 |
-
<?php echo(sprintf(__('Photos will be exported to: <b>%s</b>.', 'wp-photo-album-plus'), WPPA_DEPOT)) ?>
|
37 |
-
<h2><?php _e('Export photos from album <span style="font-size:12px;">(Including Album information)</span>:', 'wp-photo-album-plus'); ?></h2>
|
38 |
<?php $albums = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_albums " . wppa_get_album_order(), ARRAY_A);
|
39 |
$high = '0'; ?>
|
40 |
|
@@ -63,7 +63,7 @@ global $wpdb;
|
|
63 |
</table>
|
64 |
<input type="hidden" name="high" value="<?php echo($high) ?>" />
|
65 |
<p>
|
66 |
-
<input type="submit" class="button-primary" name="wppa-export-submit" value="<?php _e('Export', 'wp-photo-album-plus'); ?>" />
|
67 |
</p>
|
68 |
</form>
|
69 |
</div>
|
@@ -78,7 +78,7 @@ global $wppa_temp_idx;
|
|
78 |
|
79 |
$wppa_temp_idx = 0;
|
80 |
|
81 |
-
_e('Exporting...<br/>', 'wp-photo-album-plus');
|
82 |
if ( PHP_VERSION_ID >= 50207 && class_exists('ZipArchive') ) {
|
83 |
echo('Opening zip output file...');
|
84 |
$wppa_zip = new ZipArchive;
|
@@ -87,16 +87,16 @@ global $wppa_temp_idx;
|
|
87 |
update_option('wppa_last_zip', $zipid);
|
88 |
$zipfile = WPPA_DEPOT_PATH.'/wppa-'.$zipid.'.zip';
|
89 |
if ($wppa_zip->open($zipfile, 1) === TRUE) {
|
90 |
-
_e('ok, <br/>Filling', 'wp-photo-album-plus'); echo(' '.basename($zipfile));
|
91 |
} else {
|
92 |
-
_e('failed<br/>', 'wp-photo-album-plus');
|
93 |
$wppa_zip = false;
|
94 |
}
|
95 |
}
|
96 |
else {
|
97 |
$wppa_zip = false;
|
98 |
-
if ( PHP_VERSION_ID < 50207 ) wppa_warning_message(__('Can export albums and photos, but cannot make a zipfile. Your php version is < 5.2.7.', 'wp-photo-album-plus'));
|
99 |
-
if ( ! class_exists('ZipArchive') ) wppa_warning_message(__('Can export albums and photos, but cannot make a zipfile. Your php version does not support ZipArchive.', 'wp-photo-album-plus'));
|
100 |
}
|
101 |
|
102 |
$high = wppa_get( 'high', '0' );
|
@@ -106,7 +106,7 @@ global $wppa_temp_idx;
|
|
106 |
$cnt = 0;
|
107 |
while ( $id <= $high ) {
|
108 |
if ( wppa_get( 'album-' . $id, '0', 'text' ) ) {
|
109 |
-
_e('<br/>Processing album', 'wp-photo-album-plus'); echo(' '.$id.'....');
|
110 |
wppa_write_album_file_by_id($id);
|
111 |
$photos = $wpdb->get_results($wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
112 |
WHERE album = %d", $id ), ARRAY_A );
|
@@ -129,19 +129,19 @@ global $wppa_temp_idx;
|
|
129 |
}
|
130 |
else $cnt++;
|
131 |
}
|
132 |
-
_e('done.', 'wp-photo-album-plus'); echo(' '.$cnt.' '); _e('photos processed.', 'wp-photo-album-plus');
|
133 |
}
|
134 |
$id++;
|
135 |
}
|
136 |
-
_e('<br/>Done export albums.', 'wp-photo-album-plus');
|
137 |
}
|
138 |
else {
|
139 |
-
_e('Nothing to export', 'wp-photo-album-plus');
|
140 |
}
|
141 |
|
142 |
if ($wppa_zip) {
|
143 |
-
_e('<br/>Closing zip.', 'wp-photo-album-plus');
|
144 |
-
_e('<br/>Deleting temp files.', 'wp-photo-album-plus');
|
145 |
$wppa_zip->close();
|
146 |
// Now the zip is closed we can destroy all tempfiles we created here
|
147 |
if (is_array($wppa_temp)) {
|
@@ -150,7 +150,7 @@ global $wppa_temp_idx;
|
|
150 |
}
|
151 |
}
|
152 |
}
|
153 |
-
_e('<br/>Done!', 'wp-photo-album-plus');
|
154 |
}
|
155 |
|
156 |
function wppa_write_album_file_by_id($id) {
|
@@ -199,7 +199,7 @@ global $wppa_temp_idx;
|
|
199 |
}
|
200 |
else $err = true;
|
201 |
if ($err) {
|
202 |
-
wppa_error_message(sprintf(__('Cannot write to file %s.', 'wp-photo-album-plus'),$fname));
|
203 |
fclose($file);
|
204 |
return false;
|
205 |
}
|
@@ -213,12 +213,12 @@ global $wppa_temp_idx;
|
|
213 |
}
|
214 |
}
|
215 |
else {
|
216 |
-
wppa_error_message(__('Could not open album output file.', 'wp-photo-album-plus'));
|
217 |
return false;
|
218 |
}
|
219 |
}
|
220 |
else {
|
221 |
-
wppa_error_message(__('Could not read album data.', 'wp-photo-album-plus'));
|
222 |
return false;
|
223 |
}
|
224 |
return true;
|
@@ -269,7 +269,7 @@ global $wppa_temp_idx;
|
|
269 |
}
|
270 |
else $err = true;
|
271 |
if ($err) {
|
272 |
-
wppa_error_message(sprintf(__('Cannot write to file %s.', 'wp-photo-album-plus'),$fname));
|
273 |
fclose($file);
|
274 |
return false;
|
275 |
}
|
@@ -283,12 +283,12 @@ global $wppa_temp_idx;
|
|
283 |
}
|
284 |
}
|
285 |
else {
|
286 |
-
wppa_error_message(__('Could not open photo output file.', 'wp-photo-album-plus'));
|
287 |
return false;
|
288 |
}
|
289 |
}
|
290 |
else {
|
291 |
-
wppa_error_message(__('Could not read photo data.', 'wp-photo-album-plus'));
|
292 |
return false;
|
293 |
}
|
294 |
return true;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the export functions
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
29 |
<br>
|
30 |
</div>
|
31 |
|
32 |
+
<h2><?php _e('Export Photos', 'wp-photo-album-plus' ); ?></h2><br>
|
33 |
|
34 |
<form action="<?php echo(wppa_dbg_url(get_admin_url().'admin.php?page=wppa_export_photos')) ?>" method="post">
|
35 |
<?php wp_nonce_field('$wppa_nonce', WPPA_NONCE); ?>
|
36 |
+
<?php echo(sprintf(__('Photos will be exported to: <b>%s</b>.', 'wp-photo-album-plus' ), WPPA_DEPOT)) ?>
|
37 |
+
<h2><?php _e('Export photos from album <span style="font-size:12px;">(Including Album information)</span>:', 'wp-photo-album-plus' ); ?></h2>
|
38 |
<?php $albums = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_albums " . wppa_get_album_order(), ARRAY_A);
|
39 |
$high = '0'; ?>
|
40 |
|
63 |
</table>
|
64 |
<input type="hidden" name="high" value="<?php echo($high) ?>" />
|
65 |
<p>
|
66 |
+
<input type="submit" class="button-primary" name="wppa-export-submit" value="<?php _e('Export', 'wp-photo-album-plus' ); ?>" />
|
67 |
</p>
|
68 |
</form>
|
69 |
</div>
|
78 |
|
79 |
$wppa_temp_idx = 0;
|
80 |
|
81 |
+
_e('Exporting...<br/>', 'wp-photo-album-plus' );
|
82 |
if ( PHP_VERSION_ID >= 50207 && class_exists('ZipArchive') ) {
|
83 |
echo('Opening zip output file...');
|
84 |
$wppa_zip = new ZipArchive;
|
87 |
update_option('wppa_last_zip', $zipid);
|
88 |
$zipfile = WPPA_DEPOT_PATH.'/wppa-'.$zipid.'.zip';
|
89 |
if ($wppa_zip->open($zipfile, 1) === TRUE) {
|
90 |
+
_e('ok, <br/>Filling', 'wp-photo-album-plus' ); echo(' '.basename($zipfile));
|
91 |
} else {
|
92 |
+
_e('failed<br/>', 'wp-photo-album-plus' );
|
93 |
$wppa_zip = false;
|
94 |
}
|
95 |
}
|
96 |
else {
|
97 |
$wppa_zip = false;
|
98 |
+
if ( PHP_VERSION_ID < 50207 ) wppa_warning_message(__('Can export albums and photos, but cannot make a zipfile. Your php version is < 5.2.7.', 'wp-photo-album-plus' ));
|
99 |
+
if ( ! class_exists('ZipArchive') ) wppa_warning_message(__('Can export albums and photos, but cannot make a zipfile. Your php version does not support ZipArchive.', 'wp-photo-album-plus' ));
|
100 |
}
|
101 |
|
102 |
$high = wppa_get( 'high', '0' );
|
106 |
$cnt = 0;
|
107 |
while ( $id <= $high ) {
|
108 |
if ( wppa_get( 'album-' . $id, '0', 'text' ) ) {
|
109 |
+
_e('<br/>Processing album', 'wp-photo-album-plus' ); echo(' '.$id.'....');
|
110 |
wppa_write_album_file_by_id($id);
|
111 |
$photos = $wpdb->get_results($wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
112 |
WHERE album = %d", $id ), ARRAY_A );
|
129 |
}
|
130 |
else $cnt++;
|
131 |
}
|
132 |
+
_e('done.', 'wp-photo-album-plus' ); echo(' '.$cnt.' '); _e('photos processed.', 'wp-photo-album-plus' );
|
133 |
}
|
134 |
$id++;
|
135 |
}
|
136 |
+
_e('<br/>Done export albums.', 'wp-photo-album-plus' );
|
137 |
}
|
138 |
else {
|
139 |
+
_e('Nothing to export', 'wp-photo-album-plus' );
|
140 |
}
|
141 |
|
142 |
if ($wppa_zip) {
|
143 |
+
_e('<br/>Closing zip.', 'wp-photo-album-plus' );
|
144 |
+
_e('<br/>Deleting temp files.', 'wp-photo-album-plus' );
|
145 |
$wppa_zip->close();
|
146 |
// Now the zip is closed we can destroy all tempfiles we created here
|
147 |
if (is_array($wppa_temp)) {
|
150 |
}
|
151 |
}
|
152 |
}
|
153 |
+
_e('<br/>Done!', 'wp-photo-album-plus' );
|
154 |
}
|
155 |
|
156 |
function wppa_write_album_file_by_id($id) {
|
199 |
}
|
200 |
else $err = true;
|
201 |
if ($err) {
|
202 |
+
wppa_error_message(sprintf(__('Cannot write to file %s.', 'wp-photo-album-plus' ),$fname));
|
203 |
fclose($file);
|
204 |
return false;
|
205 |
}
|
213 |
}
|
214 |
}
|
215 |
else {
|
216 |
+
wppa_error_message(__('Could not open album output file.', 'wp-photo-album-plus' ));
|
217 |
return false;
|
218 |
}
|
219 |
}
|
220 |
else {
|
221 |
+
wppa_error_message(__('Could not read album data.', 'wp-photo-album-plus' ));
|
222 |
return false;
|
223 |
}
|
224 |
return true;
|
269 |
}
|
270 |
else $err = true;
|
271 |
if ($err) {
|
272 |
+
wppa_error_message(sprintf(__('Cannot write to file %s.', 'wp-photo-album-plus' ),$fname));
|
273 |
fclose($file);
|
274 |
return false;
|
275 |
}
|
283 |
}
|
284 |
}
|
285 |
else {
|
286 |
+
wppa_error_message(__('Could not open photo output file.', 'wp-photo-album-plus' ));
|
287 |
return false;
|
288 |
}
|
289 |
}
|
290 |
else {
|
291 |
+
wppa_error_message(__('Could not read photo data.', 'wp-photo-album-plus' ));
|
292 |
return false;
|
293 |
}
|
294 |
return true;
|
wppa-filter.php
CHANGED
@@ -102,7 +102,9 @@ global $wppa_current_shortcode_atts;
|
|
102 |
'</div>';
|
103 |
|
104 |
if ( $nices ) {
|
105 |
-
$the_js = 'jQuery(document).ready(function(){
|
|
|
|
|
106 |
wppa_add_inline_script( 'wppa', $the_js );
|
107 |
}
|
108 |
|
102 |
'</div>';
|
103 |
|
104 |
if ( $nices ) {
|
105 |
+
$the_js = 'jQuery(document).ready(function(){
|
106 |
+
if ( jQuery().niceScroll )
|
107 |
+
jQuery("#wppa-div-' . $seqno . '").niceScroll(".wppa-divnicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});' . '});';
|
108 |
wppa_add_inline_script( 'wppa', $the_js );
|
109 |
}
|
110 |
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -795,7 +795,7 @@ global $other_deps;
|
|
795 |
if ( wppa( 'is_related' ) ) {
|
796 |
$thumbs = wppa_get_thumbs();
|
797 |
if ( empty( $thumbs ) ) {
|
798 |
-
wppa_errorbox( __( 'No related photos found.', 'wp-photo-album-plus') );
|
799 |
$result = wppa( 'out' );
|
800 |
wppa_reset_occurrance(); // Forget this occurrance
|
801 |
return $result;
|
@@ -1185,7 +1185,7 @@ global $albums_used;
|
|
1185 |
|
1186 |
// Check maximum
|
1187 |
if ( is_array( $albums ) && count( $albums ) > wppa_opt( 'max_search_albums' ) && wppa_opt( 'max_search_albums' ) != '0' ) {
|
1188 |
-
$alert_text = sprintf( __( 'There are %s albums found. Only the first %s will be shown. Please refine your search criteria.', 'wp-photo-album-plus'),
|
1189 |
count( $albums ),
|
1190 |
wppa_opt( 'max_search_albums' )
|
1191 |
);
|
@@ -3247,7 +3247,7 @@ global $wppa_done;
|
|
3247 |
wppa_alert( __( 'Sorry, you gave a wrong answer.\n\nPlease try again to solve the computation.', 'wp-photo-album-plus' ) );
|
3248 |
}
|
3249 |
else {
|
3250 |
-
wppa_alert( __( 'Sorry, your comment is not accepted.', 'wp-photo-album-plus') );
|
3251 |
}
|
3252 |
}
|
3253 |
else {
|
@@ -3265,7 +3265,7 @@ global $wppa_done;
|
|
3265 |
if ( $photo_owner != wppa_get_user() ) {
|
3266 |
|
3267 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment' ),
|
3268 |
-
__( 'Photo comment', 'wp-photo-album-plus'),
|
3269 |
$photo
|
3270 |
);
|
3271 |
}
|
@@ -3273,7 +3273,7 @@ global $wppa_done;
|
|
3273 |
// Add points to the owner, if no moderation
|
3274 |
if ( $status == 'approved' ) {
|
3275 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
3276 |
-
__( 'Photo comment approved', 'wp-photo-album-plus'),
|
3277 |
$photo,
|
3278 |
'',
|
3279 |
$photo_owner
|
@@ -3400,7 +3400,7 @@ global $wpdb;
|
|
3400 |
}
|
3401 |
else $ncom = '0';
|
3402 |
if ( $ncom ) {
|
3403 |
-
$ncom = sprintf( _n( '%d comment', '%d comments', $ncom, 'wp-photo-album-plus'), $ncom );
|
3404 |
}
|
3405 |
else $ncom = '';
|
3406 |
$ncom = esc_js( $ncom );
|
@@ -3436,7 +3436,7 @@ global $wpdb;
|
|
3436 |
'height' => $h
|
3437 |
);
|
3438 |
if ( wppa_opt( 'thumb_linktype' ) == 'fullpopup' ) {
|
3439 |
-
$video_args['events'] = 'onclick="alert( \''.esc_attr( __( 'A video can not be printed or downloaded', 'wp-photo-album-plus') ).'\' );"';
|
3440 |
}
|
3441 |
$videohtml = wppa_get_video_html( $video_args );
|
3442 |
}
|
@@ -3897,7 +3897,7 @@ global $blog_id;
|
|
3897 |
if ( $ok ) {
|
3898 |
wppa_dbg_msg( 'Rating nonce ok' );
|
3899 |
}
|
3900 |
-
else wp_die( '<b>' . __( 'ERROR: Illegal attempt to enter a rating.', 'wp-photo-album-plus') . '</b>' );
|
3901 |
}
|
3902 |
}
|
3903 |
|
@@ -3909,7 +3909,7 @@ global $blog_id;
|
|
3909 |
if ( $ok ) {
|
3910 |
wppa_dbg_msg( 'Comment nonce ok' );
|
3911 |
}
|
3912 |
-
else wp_die( '<b>' . __( 'ERROR: Illegal attempt to enter a comment.', 'wp-photo-album-plus') . '</b>' );
|
3913 |
}
|
3914 |
}
|
3915 |
|
@@ -4172,7 +4172,9 @@ global $cover_count_key;
|
|
4172 |
|
4173 |
// Activate nicescroll
|
4174 |
if ( $nice ) {
|
4175 |
-
wppa_js( 'jQuery(document).ready(function(){
|
|
|
|
|
4176 |
}
|
4177 |
}
|
4178 |
}
|
@@ -4747,6 +4749,39 @@ function wppa_is_photo_modified( $id ) {
|
|
4747 |
return $isnew;
|
4748 |
}
|
4749 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4750 |
function wppa_is_album_new( $id ) {
|
4751 |
global $wpdb;
|
4752 |
global $wppa_children;
|
@@ -4958,10 +4993,10 @@ global $wppa_upload_succes_id;
|
|
4958 |
$albumname = trim( strip_tags( wppa_get( 'album-name' ) ) );
|
4959 |
}
|
4960 |
if ( ! wppa_sanitize_file_name( $albumname ) ) {
|
4961 |
-
$albumname = __('New Album', 'wp-photo-album-plus');
|
4962 |
}
|
4963 |
$ok = wp_verify_nonce( $nonce, 'wppa-album-check' );
|
4964 |
-
if ( ! $ok ) die( '<b>' . __( 'ERROR: Illegal attempt to create an album.', 'wp-photo-album-plus') . '</b>' );
|
4965 |
|
4966 |
// Check captcha
|
4967 |
if ( wppa_switch( 'user_create_captcha' ) ) {
|
@@ -4969,7 +5004,7 @@ global $wppa_upload_succes_id;
|
|
4969 |
$captkey = wppa_get_randseed( 'session' );
|
4970 |
|
4971 |
if ( ! wppa_check_captcha( $captkey ) ) {
|
4972 |
-
wppa_alert( __( 'Wrong captcha, please try again', 'wp-photo-album-plus') );
|
4973 |
return;
|
4974 |
}
|
4975 |
}
|
@@ -4985,14 +5020,14 @@ global $wppa_upload_succes_id;
|
|
4985 |
) );
|
4986 |
if ( $album ) {
|
4987 |
if ( wppa_opt( 'fe_alert' ) == 'upcre' || wppa_opt( 'fe_alert' ) == 'all' ) {
|
4988 |
-
wppa_alert( sprintf( __( 'Album #%s created', 'wp-photo-album-plus'), $album ) );
|
4989 |
}
|
4990 |
wppa_invalidate_treecounts( $parent );
|
4991 |
wppa_verify_treecounts_a( $parent );
|
4992 |
wppa_create_pl_htaccess();
|
4993 |
}
|
4994 |
else {
|
4995 |
-
wppa_alert( __( 'Could not create album', 'wp-photo-album-plus') );
|
4996 |
}
|
4997 |
}
|
4998 |
}
|
@@ -5005,7 +5040,7 @@ global $wppa_upload_succes_id;
|
|
5005 |
$nonce = wppa_get( 'nonce' );
|
5006 |
$ok = wp_verify_nonce( $nonce, 'wppa-check' );
|
5007 |
if ( ! $ok ) {
|
5008 |
-
die( '<b>' . __( 'ERROR: Illegal attempt to upload a file.', 'wp-photo-album-plus') . '</b>');
|
5009 |
}
|
5010 |
|
5011 |
$alb = wppa_get( 'upload-album' );
|
@@ -5239,7 +5274,7 @@ global $wppa_alert;
|
|
5239 |
|
5240 |
// Logged out and not allowed?
|
5241 |
if ( ! is_user_logged_in() && ! wppa_switch( 'upload_logout' ) ) {
|
5242 |
-
$wppa_alert .= esc_js( __( 'Illegal attempt to upload', 'wp-photo-album-plus') ) . '.';
|
5243 |
return false;
|
5244 |
}
|
5245 |
|
@@ -5247,13 +5282,13 @@ global $wppa_alert;
|
|
5247 |
|
5248 |
// Legal here?
|
5249 |
if ( ! wppa_allow_uploads( $alb ) || ! wppa_allow_user_uploads( $alb ) ) {
|
5250 |
-
$wppa_alert .= esc_js( __( 'Max uploads reached', 'wp-photo-album-plus') ) . '.';
|
5251 |
return false;
|
5252 |
}
|
5253 |
|
5254 |
// No error during upload?
|
5255 |
if ( $file['error'] != '0' ) {
|
5256 |
-
$wppa_alert .= esc_js( __( 'Error during upload', 'wp-photo-album-plus') ) . '.';
|
5257 |
return false;
|
5258 |
}
|
5259 |
|
@@ -5378,13 +5413,13 @@ global $wppa_alert;
|
|
5378 |
// Is it an image?
|
5379 |
$imgsize = getimagesize( $file['tmp_name'] );
|
5380 |
if ( ! is_array( $imgsize ) ) {
|
5381 |
-
$wppa_alert .= esc_js( __( 'Uploaded file is not an image', 'wp-photo-album-plus') ) . '.';
|
5382 |
return false;
|
5383 |
}
|
5384 |
|
5385 |
// Is it a supported image filetype?
|
5386 |
if ( $imgsize[2] != IMAGETYPE_GIF && $imgsize[2] != IMAGETYPE_JPEG && $imgsize[2] != IMAGETYPE_PNG ) {
|
5387 |
-
$wppa_alert .= esc_js( sprintf( __( 'Only gif, jpg and png image files are supported. Returned info = %s.', 'wp-photo-album-plus'), serialize( $imgsize ) ), false, false );
|
5388 |
return false;
|
5389 |
}
|
5390 |
|
@@ -5409,7 +5444,7 @@ global $wppa_alert;
|
|
5409 |
// Check for already exists
|
5410 |
if ( wppa_switch( 'void_dups' ) ) {
|
5411 |
if ( wppa_is_file_duplicate_photo( wppa_sanitize_file_name( $file['name'] ), $alb ) ) {
|
5412 |
-
$wppa_alert .= esc_js( sprintf( __( 'Uploaded file %s already exists in this album.', 'wp-photo-album-plus'), wppa_sanitize_file_name( $file['name'] ) ) );
|
5413 |
return false;
|
5414 |
}
|
5415 |
}
|
@@ -5449,7 +5484,7 @@ global $wppa_alert;
|
|
5449 |
}
|
5450 |
|
5451 |
if ( ! $id ) {
|
5452 |
-
$wppa_alert .= esc_js( __( 'Could not insert photo into db.', 'wp-photo-album-plus') );
|
5453 |
return false;
|
5454 |
}
|
5455 |
else {
|
@@ -5688,26 +5723,26 @@ global $wpdb;
|
|
5688 |
|
5689 |
$switch = ( $weeks > '0' );
|
5690 |
|
5691 |
-
$string = __( 'You can upload after', 'wp-photo-album-plus').' ';
|
5692 |
|
5693 |
if ( $weeks || $switch ) {
|
5694 |
$string .= sprintf( _n( '%d week', '%d weeks', $weeks, 'wp-photo-album-plus' ), $weeks ).', ';
|
5695 |
$switch = true;
|
5696 |
}
|
5697 |
if ( $days || $switch ) {
|
5698 |
-
$string .= sprintf( _n( '%d day', '%d days', $days, 'wp-photo-album-plus'), $days ).', ';
|
5699 |
$switch = true;
|
5700 |
}
|
5701 |
if ( $hours || $switch ) {
|
5702 |
-
$string .= sprintf( _n( '%d hour', '%d hours', $hours, 'wp-photo-album-plus'), $hours ).', ';
|
5703 |
$switch = true;
|
5704 |
}
|
5705 |
if ( $mins || $switch ) {
|
5706 |
-
$string .= sprintf( _n( '%d minute', '%d minutes', $mins, 'wp-photo-album-plus'), $mins ).', ';
|
5707 |
$switch = true;
|
5708 |
}
|
5709 |
if ( $switch ) {
|
5710 |
-
$string .= sprintf( _n( '%d second', '%d seconds', $secs, 'wp-photo-album-plus'), $secs );
|
5711 |
}
|
5712 |
$string .= '.';
|
5713 |
$result = '<span style="font-size:9px;"> '.$string.'</span>';
|
@@ -5742,11 +5777,11 @@ function wppa_get_lbtitle( $type, $id ) {
|
|
5742 |
$result .= '
|
5743 |
<input
|
5744 |
type="button"
|
5745 |
-
title="' . __( 'Download', 'wp-photo-album-plus') . '"
|
5746 |
style="cursor:pointer; margin-bottom:0px; max-width:500px;"
|
5747 |
class="wppa-download-button wppa-ovl-button"
|
5748 |
onclick="' . ( wppa_is_safari() && ( wppa_opt( 'art_monkey_link' ) == 'file' ) ? 'wppaWindowReference = window.open();' : '' ) . 'wppaAjaxMakeOrigName( ' . wppa( 'mocc' ) . ', \'' . wppa_encrypt_photo( $id ) . '\' );"
|
5749 |
-
value="' . rtrim( __( 'Download', 'wp-photo-album-plus') . ' ' . $dl_name ) . '"
|
5750 |
/>';
|
5751 |
}
|
5752 |
else {
|
@@ -5756,7 +5791,7 @@ function wppa_get_lbtitle( $type, $id ) {
|
|
5756 |
style="cursor:pointer;"
|
5757 |
onclick="' . ( wppa_is_safari() && ( wppa_opt( 'art_monkey_link' ) == 'file' ) ? 'wppaWindowReference = window.open();' : '' ) . 'wppaAjaxMakeOrigName( '.wppa( 'mocc' ).', \''.wppa_encrypt_photo($id).'\' );"
|
5758 |
>' .
|
5759 |
-
rtrim( __( 'Download', 'wp-photo-album-plus') . ' ' . $dl_name ) . '
|
5760 |
</a>';
|
5761 |
}
|
5762 |
}
|
@@ -5809,7 +5844,7 @@ function wppa_zoom_in( $id ) {
|
|
5809 |
|
5810 |
if ( wppa_switch( 'show_zoomin' ) ) {
|
5811 |
if ( wppa_opt( 'magnifier' ) ) {
|
5812 |
-
return __( 'Zoom in', 'wp-photo-album-plus');
|
5813 |
}
|
5814 |
else {
|
5815 |
return esc_attr( stripslashes( wppa_get_photo_name( $id ) ) );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
795 |
if ( wppa( 'is_related' ) ) {
|
796 |
$thumbs = wppa_get_thumbs();
|
797 |
if ( empty( $thumbs ) ) {
|
798 |
+
wppa_errorbox( __( 'No related photos found.', 'wp-photo-album-plus' ) );
|
799 |
$result = wppa( 'out' );
|
800 |
wppa_reset_occurrance(); // Forget this occurrance
|
801 |
return $result;
|
1185 |
|
1186 |
// Check maximum
|
1187 |
if ( is_array( $albums ) && count( $albums ) > wppa_opt( 'max_search_albums' ) && wppa_opt( 'max_search_albums' ) != '0' ) {
|
1188 |
+
$alert_text = sprintf( __( 'There are %s albums found. Only the first %s will be shown. Please refine your search criteria.', 'wp-photo-album-plus' ),
|
1189 |
count( $albums ),
|
1190 |
wppa_opt( 'max_search_albums' )
|
1191 |
);
|
3247 |
wppa_alert( __( 'Sorry, you gave a wrong answer.\n\nPlease try again to solve the computation.', 'wp-photo-album-plus' ) );
|
3248 |
}
|
3249 |
else {
|
3250 |
+
wppa_alert( __( 'Sorry, your comment is not accepted.', 'wp-photo-album-plus' ) );
|
3251 |
}
|
3252 |
}
|
3253 |
else {
|
3265 |
if ( $photo_owner != wppa_get_user() ) {
|
3266 |
|
3267 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment' ),
|
3268 |
+
__( 'Photo comment', 'wp-photo-album-plus' ),
|
3269 |
$photo
|
3270 |
);
|
3271 |
}
|
3273 |
// Add points to the owner, if no moderation
|
3274 |
if ( $status == 'approved' ) {
|
3275 |
wppa_add_credit_points( wppa_opt( 'cp_points_comment_appr' ),
|
3276 |
+
__( 'Photo comment approved', 'wp-photo-album-plus' ),
|
3277 |
$photo,
|
3278 |
'',
|
3279 |
$photo_owner
|
3400 |
}
|
3401 |
else $ncom = '0';
|
3402 |
if ( $ncom ) {
|
3403 |
+
$ncom = sprintf( _n( '%d comment', '%d comments', $ncom, 'wp-photo-album-plus' ), $ncom );
|
3404 |
}
|
3405 |
else $ncom = '';
|
3406 |
$ncom = esc_js( $ncom );
|
3436 |
'height' => $h
|
3437 |
);
|
3438 |
if ( wppa_opt( 'thumb_linktype' ) == 'fullpopup' ) {
|
3439 |
+
$video_args['events'] = 'onclick="alert( \''.esc_attr( __( 'A video can not be printed or downloaded', 'wp-photo-album-plus' ) ).'\' );"';
|
3440 |
}
|
3441 |
$videohtml = wppa_get_video_html( $video_args );
|
3442 |
}
|
3897 |
if ( $ok ) {
|
3898 |
wppa_dbg_msg( 'Rating nonce ok' );
|
3899 |
}
|
3900 |
+
else wp_die( '<b>' . __( 'ERROR: Illegal attempt to enter a rating.', 'wp-photo-album-plus' ) . '</b>' );
|
3901 |
}
|
3902 |
}
|
3903 |
|
3909 |
if ( $ok ) {
|
3910 |
wppa_dbg_msg( 'Comment nonce ok' );
|
3911 |
}
|
3912 |
+
else wp_die( '<b>' . __( 'ERROR: Illegal attempt to enter a comment.', 'wp-photo-album-plus' ) . '</b>' );
|
3913 |
}
|
3914 |
}
|
3915 |
|
4172 |
|
4173 |
// Activate nicescroll
|
4174 |
if ( $nice ) {
|
4175 |
+
wppa_js( 'jQuery(document).ready(function(){
|
4176 |
+
if ( jQuery().niceScroll )
|
4177 |
+
jQuery(".albumlist").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});});' );
|
4178 |
}
|
4179 |
}
|
4180 |
}
|
4749 |
return $isnew;
|
4750 |
}
|
4751 |
|
4752 |
+
function wppa_is_photo_first( $id ) {
|
4753 |
+
global $wpdb;
|
4754 |
+
static $firsts;
|
4755 |
+
|
4756 |
+
// Feature enabled?
|
4757 |
+
if ( ! wppa_switch( 'show_first' ) ) {
|
4758 |
+
return false;
|
4759 |
+
}
|
4760 |
+
|
4761 |
+
// Create cache if not done
|
4762 |
+
if ( ! $firsts ) {
|
4763 |
+
$firsts = array();
|
4764 |
+
}
|
4765 |
+
|
4766 |
+
// Get owner of current item
|
4767 |
+
$user = wppa_get_photo_item( $id, 'owner' );
|
4768 |
+
|
4769 |
+
// Look into cache
|
4770 |
+
if ( isset( $firsts[$user] ) ) { // Tested this user before
|
4771 |
+
return $firsts[$user] == $id;
|
4772 |
+
}
|
4773 |
+
|
4774 |
+
// Not in cache yet, find users first upload
|
4775 |
+
$first = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->wppa_photos
|
4776 |
+
WHERE owner = %s ORDER BY timestamp LIMIT 1", $user ) );
|
4777 |
+
|
4778 |
+
// Save into cache
|
4779 |
+
$firsts[$user] = $first;
|
4780 |
+
|
4781 |
+
// Is it this one?
|
4782 |
+
return $first == $id;
|
4783 |
+
}
|
4784 |
+
|
4785 |
function wppa_is_album_new( $id ) {
|
4786 |
global $wpdb;
|
4787 |
global $wppa_children;
|
4993 |
$albumname = trim( strip_tags( wppa_get( 'album-name' ) ) );
|
4994 |
}
|
4995 |
if ( ! wppa_sanitize_file_name( $albumname ) ) {
|
4996 |
+
$albumname = __('New Album', 'wp-photo-album-plus' );
|
4997 |
}
|
4998 |
$ok = wp_verify_nonce( $nonce, 'wppa-album-check' );
|
4999 |
+
if ( ! $ok ) die( '<b>' . __( 'ERROR: Illegal attempt to create an album.', 'wp-photo-album-plus' ) . '</b>' );
|
5000 |
|
5001 |
// Check captcha
|
5002 |
if ( wppa_switch( 'user_create_captcha' ) ) {
|
5004 |
$captkey = wppa_get_randseed( 'session' );
|
5005 |
|
5006 |
if ( ! wppa_check_captcha( $captkey ) ) {
|
5007 |
+
wppa_alert( __( 'Wrong captcha, please try again', 'wp-photo-album-plus' ) );
|
5008 |
return;
|
5009 |
}
|
5010 |
}
|
5020 |
) );
|
5021 |
if ( $album ) {
|
5022 |
if ( wppa_opt( 'fe_alert' ) == 'upcre' || wppa_opt( 'fe_alert' ) == 'all' ) {
|
5023 |
+
wppa_alert( sprintf( __( 'Album #%s created', 'wp-photo-album-plus' ), $album ) );
|
5024 |
}
|
5025 |
wppa_invalidate_treecounts( $parent );
|
5026 |
wppa_verify_treecounts_a( $parent );
|
5027 |
wppa_create_pl_htaccess();
|
5028 |
}
|
5029 |
else {
|
5030 |
+
wppa_alert( __( 'Could not create album', 'wp-photo-album-plus' ) );
|
5031 |
}
|
5032 |
}
|
5033 |
}
|
5040 |
$nonce = wppa_get( 'nonce' );
|
5041 |
$ok = wp_verify_nonce( $nonce, 'wppa-check' );
|
5042 |
if ( ! $ok ) {
|
5043 |
+
die( '<b>' . __( 'ERROR: Illegal attempt to upload a file.', 'wp-photo-album-plus' ) . '</b>');
|
5044 |
}
|
5045 |
|
5046 |
$alb = wppa_get( 'upload-album' );
|
5274 |
|
5275 |
// Logged out and not allowed?
|
5276 |
if ( ! is_user_logged_in() && ! wppa_switch( 'upload_logout' ) ) {
|
5277 |
+
$wppa_alert .= esc_js( __( 'Illegal attempt to upload', 'wp-photo-album-plus' ) ) . '.';
|
5278 |
return false;
|
5279 |
}
|
5280 |
|
5282 |
|
5283 |
// Legal here?
|
5284 |
if ( ! wppa_allow_uploads( $alb ) || ! wppa_allow_user_uploads( $alb ) ) {
|
5285 |
+
$wppa_alert .= esc_js( __( 'Max uploads reached', 'wp-photo-album-plus' ) ) . '.';
|
5286 |
return false;
|
5287 |
}
|
5288 |
|
5289 |
// No error during upload?
|
5290 |
if ( $file['error'] != '0' ) {
|
5291 |
+
$wppa_alert .= esc_js( __( 'Error during upload', 'wp-photo-album-plus' ) ) . '.';
|
5292 |
return false;
|
5293 |
}
|
5294 |
|
5413 |
// Is it an image?
|
5414 |
$imgsize = getimagesize( $file['tmp_name'] );
|
5415 |
if ( ! is_array( $imgsize ) ) {
|
5416 |
+
$wppa_alert .= esc_js( __( 'Uploaded file is not an image', 'wp-photo-album-plus' ) ) . '.';
|
5417 |
return false;
|
5418 |
}
|
5419 |
|
5420 |
// Is it a supported image filetype?
|
5421 |
if ( $imgsize[2] != IMAGETYPE_GIF && $imgsize[2] != IMAGETYPE_JPEG && $imgsize[2] != IMAGETYPE_PNG ) {
|
5422 |
+
$wppa_alert .= esc_js( sprintf( __( 'Only gif, jpg and png image files are supported. Returned info = %s.', 'wp-photo-album-plus' ), serialize( $imgsize ) ), false, false );
|
5423 |
return false;
|
5424 |
}
|
5425 |
|
5444 |
// Check for already exists
|
5445 |
if ( wppa_switch( 'void_dups' ) ) {
|
5446 |
if ( wppa_is_file_duplicate_photo( wppa_sanitize_file_name( $file['name'] ), $alb ) ) {
|
5447 |
+
$wppa_alert .= esc_js( sprintf( __( 'Uploaded file %s already exists in this album.', 'wp-photo-album-plus' ), wppa_sanitize_file_name( $file['name'] ) ) );
|
5448 |
return false;
|
5449 |
}
|
5450 |
}
|
5484 |
}
|
5485 |
|
5486 |
if ( ! $id ) {
|
5487 |
+
$wppa_alert .= esc_js( __( 'Could not insert photo into db.', 'wp-photo-album-plus' ) );
|
5488 |
return false;
|
5489 |
}
|
5490 |
else {
|
5723 |
|
5724 |
$switch = ( $weeks > '0' );
|
5725 |
|
5726 |
+
$string = __( 'You can upload after', 'wp-photo-album-plus' ).' ';
|
5727 |
|
5728 |
if ( $weeks || $switch ) {
|
5729 |
$string .= sprintf( _n( '%d week', '%d weeks', $weeks, 'wp-photo-album-plus' ), $weeks ).', ';
|
5730 |
$switch = true;
|
5731 |
}
|
5732 |
if ( $days || $switch ) {
|
5733 |
+
$string .= sprintf( _n( '%d day', '%d days', $days, 'wp-photo-album-plus' ), $days ).', ';
|
5734 |
$switch = true;
|
5735 |
}
|
5736 |
if ( $hours || $switch ) {
|
5737 |
+
$string .= sprintf( _n( '%d hour', '%d hours', $hours, 'wp-photo-album-plus' ), $hours ).', ';
|
5738 |
$switch = true;
|
5739 |
}
|
5740 |
if ( $mins || $switch ) {
|
5741 |
+
$string .= sprintf( _n( '%d minute', '%d minutes', $mins, 'wp-photo-album-plus' ), $mins ).', ';
|
5742 |
$switch = true;
|
5743 |
}
|
5744 |
if ( $switch ) {
|
5745 |
+
$string .= sprintf( _n( '%d second', '%d seconds', $secs, 'wp-photo-album-plus' ), $secs );
|
5746 |
}
|
5747 |
$string .= '.';
|
5748 |
$result = '<span style="font-size:9px;"> '.$string.'</span>';
|
5777 |
$result .= '
|
5778 |
<input
|
5779 |
type="button"
|
5780 |
+
title="' . __( 'Download', 'wp-photo-album-plus' ) . '"
|
5781 |
style="cursor:pointer; margin-bottom:0px; max-width:500px;"
|
5782 |
class="wppa-download-button wppa-ovl-button"
|
5783 |
onclick="' . ( wppa_is_safari() && ( wppa_opt( 'art_monkey_link' ) == 'file' ) ? 'wppaWindowReference = window.open();' : '' ) . 'wppaAjaxMakeOrigName( ' . wppa( 'mocc' ) . ', \'' . wppa_encrypt_photo( $id ) . '\' );"
|
5784 |
+
value="' . rtrim( __( 'Download', 'wp-photo-album-plus' ) . ' ' . $dl_name ) . '"
|
5785 |
/>';
|
5786 |
}
|
5787 |
else {
|
5791 |
style="cursor:pointer;"
|
5792 |
onclick="' . ( wppa_is_safari() && ( wppa_opt( 'art_monkey_link' ) == 'file' ) ? 'wppaWindowReference = window.open();' : '' ) . 'wppaAjaxMakeOrigName( '.wppa( 'mocc' ).', \''.wppa_encrypt_photo($id).'\' );"
|
5793 |
>' .
|
5794 |
+
rtrim( __( 'Download', 'wp-photo-album-plus' ) . ' ' . $dl_name ) . '
|
5795 |
</a>';
|
5796 |
}
|
5797 |
}
|
5844 |
|
5845 |
if ( wppa_switch( 'show_zoomin' ) ) {
|
5846 |
if ( wppa_opt( 'magnifier' ) ) {
|
5847 |
+
return __( 'Zoom in', 'wp-photo-album-plus' );
|
5848 |
}
|
5849 |
else {
|
5850 |
return esc_attr( stripslashes( wppa_get_photo_name( $id ) ) );
|
wppa-gutenberg-wppa.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-gutenberg-wppa.php
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
-
* Version 8.1.08.
|
6 |
*/
|
7 |
|
8 |
function wppa_gutenberg_wppa_block() {
|
@@ -71,7 +71,7 @@ global $wpdb;
|
|
71 |
|
72 |
// Make the html
|
73 |
$result = '
|
74 |
-
<div id="wppagallery-form"
|
75 |
|
76 |
<table id="wppagallery-table" class="form-table">' .
|
77 |
|
@@ -79,104 +79,104 @@ global $wpdb;
|
|
79 |
'<tr>
|
80 |
<th><label for="wppagallery-top-type">' . __( 'Type of WPPA display:', 'wp-photo-album-plus' ) . '</label></th>
|
81 |
<td>
|
82 |
-
<select id="wppagallery-top-type" name="type" onchange="wppaGutenbergGalleryEvaluate()"
|
83 |
-
<option value="" selected disabled style="color:#700 !important;"
|
84 |
-
<option value="galerytype"
|
85 |
-
<option value="slidestype"
|
86 |
-
<option value="singletype"
|
87 |
-
<option value="searchtype"
|
88 |
-
<option value="misceltype"
|
89 |
</select>
|
90 |
</td>
|
91 |
</tr>' .
|
92 |
|
93 |
// Top type I: gallery sub type
|
94 |
-
'<tr id="wppagallery-galery-type-tr" style="display:none;"
|
95 |
-
<th><label for="wppagallery-galery-type"
|
96 |
<td>
|
97 |
-
<select id="wppagallery-galery-type" name="type" onchange="wppaGutenbergGalleryEvaluate()"
|
98 |
-
<option value="" selected disabled style="color:#700 !important;"
|
99 |
-
<option value="cover"
|
100 |
-
<option value="content"
|
101 |
-
<option value="covers"
|
102 |
-
<option value="thumbs"
|
103 |
</select>
|
104 |
</td>
|
105 |
</tr>' .
|
106 |
|
107 |
// Top type II: slide sub type
|
108 |
-
'<tr id="wppagallery-slides-type-tr" style="display:none;"
|
109 |
<th><label for="wppagallery-slides-type">' . __( 'Type of slideshow:', 'wp-photo-album-plus' ) . '</label></th>
|
110 |
<td>
|
111 |
-
<select id="wppagallery-slides-type" name="type" onchange="wppaGutenbergGalleryEvaluate()"
|
112 |
-
<option value="" selected disabled style="color:#700 !important;"
|
113 |
-
<option value="slide"
|
114 |
-
<option value="slideonly"
|
115 |
-
<option value="slideonlyf"
|
116 |
-
<option value="filmonly"
|
117 |
</select>
|
118 |
</td>
|
119 |
</tr>' .
|
120 |
|
121 |
// Top type III: single sub type
|
122 |
-
'<tr id="wppagallery-single-type-tr" style="display:none;"
|
123 |
<th><label for="wppagallery-single-type">' . __( 'Type of single image:', 'wp-photo-album-plus' ) . '</label></th>
|
124 |
<td>
|
125 |
-
<select id="wppagallery-single-type" name="type" onchange="wppaGutenbergGalleryEvaluate()"
|
126 |
-
<option value="" selected disabled style="color:#700 !important;"
|
127 |
-
<option value="photo"
|
128 |
-
<option value="mphoto"
|
129 |
-
<option value="xphoto"
|
130 |
-
<option value="slphoto"
|
131 |
</select>
|
132 |
</td>
|
133 |
</tr>' .
|
134 |
|
135 |
// Top type IV: search sub type
|
136 |
-
'<tr id="wppagallery-search-type-tr" style="display:none;"
|
137 |
<th><label for="wppagallery-search-type">' . __( 'Type of search:', 'wp-photo-album-plus' ) . '</label></th>
|
138 |
<td>
|
139 |
-
<select id="wppagallery-search-type" name="type" onchange="wppaGutenbergGalleryEvaluate()"
|
140 |
-
<option value="" selected disabled style="color:#700 !important;"
|
141 |
-
<option value="search"
|
142 |
-
<option value="supersearch"
|
143 |
-
<option value="tagcloud"
|
144 |
-
<option value="multitag"
|
145 |
-
<option value="superview"
|
146 |
-
<option value="calendar"
|
147 |
</select>
|
148 |
</td>
|
149 |
</tr>' .
|
150 |
|
151 |
// Top type V: other sub type
|
152 |
-
'<tr id="wppagallery-miscel-type-tr" style="display:none;"
|
153 |
<th><label for="wppagallery-miscel-type">' . __( 'Type miscellaneous:', 'wp-photo-album-plus' ) . '</label></th>
|
154 |
<td>
|
155 |
-
<select id="wppagallery-miscel-type" name="type" onchange="wppaGutenbergGalleryEvaluate()"
|
156 |
-
<option value="" selected disabled style="color:#700 !important;"
|
157 |
-
<option value="generic"
|
158 |
-
<option value="upload">'.__('An upload box', 'wp-photo-album-plus').'</option>'.
|
159 |
-
'<option value="landing">'.__('A landing page shortcode', 'wp-photo-album-plus').'</option>'.
|
160 |
-
'<option value="stereo">'.__('A 3D stereo settings box', 'wp-photo-album-plus').'</option>'.
|
161 |
-
'<option value="choice">'.__('An admins choice box', 'wp-photo-album-plus').'</option>'.
|
162 |
'</select>'.
|
163 |
'</td>'.
|
164 |
'</tr>'.
|
165 |
|
166 |
// Administrators ( for admins choice, show admin only if current user is an admin or superuser )
|
167 |
-
'<tr id="wppagallery-admins-tr" style="display:none;"
|
168 |
-
'<th><label for="wppagallery-admins">'.__('Users:', 'wp-photo-album-plus').'</label></th>'.
|
169 |
'<td>'.
|
170 |
-
'<select id="wppagallery-admins" name="admins" style="color:#070;" multiple
|
171 |
-
'<option value="" selected style="color:#070;"
|
172 |
foreach( $admins as $user ) {
|
173 |
$result .=
|
174 |
-
'<option value="'.$user->data->user_login.'" class="wppagallery-admin" style="color:#070;"
|
175 |
}
|
176 |
$users = wppa_get_option( 'wppa_super_users', array() );
|
177 |
foreach( $users as $user ) {
|
178 |
$result .=
|
179 |
-
'<option value="'.$user.'" class="wppagallery-admin"
|
180 |
}
|
181 |
$result .=
|
182 |
'</select>'.
|
@@ -184,60 +184,60 @@ global $wpdb;
|
|
184 |
'</tr>'.
|
185 |
|
186 |
// Real or Virtual albums
|
187 |
-
'<tr id="wppagallery-album-type-tr" style="display:none;"
|
188 |
-
'<th><label for="wppagallery-album-type">'.__('Kind of selection:', 'wp-photo-album-plus').'</label></th>'.
|
189 |
'<td>'.
|
190 |
'<select id="wppagallery-album-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
|
191 |
-
'<option value="" selected disabled style="color:#700 !important;"
|
192 |
-
'<option value="real">'.__('One or more wppa+ albums', 'wp-photo-album-plus').'</option>'.
|
193 |
-
'<option value="virtual">'.__('A special selection', 'wp-photo-album-plus').'</option>'.
|
194 |
'</select>'.
|
195 |
'</td>'.
|
196 |
'</tr>'.
|
197 |
|
198 |
// Virtual albums
|
199 |
-
'<tr id="wppagallery-album-virt-tr" style="display:none;"
|
200 |
-
'<th><label for="wppagallery-album-virt">'.__('The selection to be used:', 'wp-photo-album-plus').'</label></th>'.
|
201 |
'<td>'.
|
202 |
'<select id="wppagallery-album-virt" name="album" class="wppagallery-album" onchange="wppaGutenbergGalleryEvaluate()">'.
|
203 |
-
'<option value="" disabled selected style="color:#700 !important;"
|
204 |
-
'<option value="@last"
|
205 |
-
'<option value="@topten"
|
206 |
-
'<option value="@lasten"
|
207 |
-
'<option value="@featen"
|
208 |
-
'<option value="@comten"
|
209 |
-
'<option value="@tags"
|
210 |
-
'<option value="@cat"
|
211 |
-
'<option value="@owner"
|
212 |
-
'<option value="@upldr"
|
213 |
-
'<option value="@all"
|
214 |
'</select>'.
|
215 |
'</td>'.
|
216 |
'</tr>'.
|
217 |
|
218 |
// Virtual albums that have covers
|
219 |
-
'<tr id="wppagallery-album-virt-cover-tr" style="display:none;"
|
220 |
-
'<th><label for="wppagallery-album-virt-cover">'.__('The selection to be used:', 'wp-photo-album-plus').'</label></th>'.
|
221 |
'<td>'.
|
222 |
'<select id="wppagallery-album-virt-cover" name="album" class="wppagallery-album" onchange="wppaGutenbergGalleryEvaluate()">'.
|
223 |
-
'<option value="" disabled selected style="color:#700 !important;"
|
224 |
-
'<option value="@last"
|
225 |
-
'<option value="@owner"
|
226 |
-
'<option value="@cat"
|
227 |
-
'<option value="@all"
|
228 |
'</select>'.
|
229 |
'</td>'.
|
230 |
'</tr>'.
|
231 |
|
232 |
// Real albums
|
233 |
-
'<tr id="wppagallery-album-real-tr" style="display:none;"
|
234 |
-
'<th><label for="wppagallery-album-real">'.__('The Album(s) to be used:', 'wp-photo-album-plus').'</label></th>'.
|
235 |
'<td>';
|
236 |
if ( wppa_has_many_albums() ) {
|
237 |
$result .=
|
238 |
'<input id="wppagallery-album-real" style="max-width:400px;" name="album" value="" onchange="wppaGutenbergGalleryEvaluate()" />'.
|
239 |
'<br />'.
|
240 |
-
__('Enter one or more album numbers, seperated by commas', 'wp-photo-album-plus');
|
241 |
}
|
242 |
else {
|
243 |
$result .=
|
@@ -245,16 +245,19 @@ global $wpdb;
|
|
245 |
if ( $albums ) {
|
246 |
|
247 |
// Please select
|
248 |
-
$result .= '<option id="wppagallery-album-0" value="0" disabled selected style="color:#700 !important;"
|
249 |
|
250 |
// All standard albums
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
|
|
|
|
|
|
255 |
}
|
256 |
else {
|
257 |
-
$result .= '<option value="0" style="color:#700;"
|
258 |
}
|
259 |
$result .= '</select>';
|
260 |
}
|
@@ -263,13 +266,13 @@ global $wpdb;
|
|
263 |
'</tr>';
|
264 |
if ( ! wppa_has_many_albums() ) {
|
265 |
$result .=
|
266 |
-
'<tr id="wppagallery-album-real-search-tr" style="display:none;"
|
267 |
-
'<th><label for="">'.__('Filter album:', 'wp-photo-album-plus').'</label></th>'.
|
268 |
'<td>'.
|
269 |
'<input id="wppagallery-album-real-search" type="text" onkeyup="wppaGutenbergGalleryEvaluate()" />'.
|
270 |
'<br />'.
|
271 |
'<small>'.
|
272 |
-
__('Enter a (part of) the album name to limit the options in the selection box above.', 'wp-photo-album-plus').' '.
|
273 |
'</small>'.
|
274 |
'</td>'.
|
275 |
'</tr>';
|
@@ -277,31 +280,33 @@ global $wpdb;
|
|
277 |
|
278 |
// Real albums optional
|
279 |
$result .=
|
280 |
-
'<tr id="wppagallery-album-realopt-tr" style="display:none;"
|
281 |
-
'<th><label for="wppagallery-album-realopt">'.__('The Album(s) to be used:', 'wp-photo-album-plus').'</label></th>'.
|
282 |
'<td>';
|
283 |
if ( wppa_has_many_albums() ) {
|
284 |
$result .=
|
285 |
'<input id="wppagallery-album-realopt" style="max-width:400px;" name="album" onchange="wppaGutenbergGalleryEvaluate()" value="0" />'.
|
286 |
'<br />'.
|
287 |
-
__('Optinally enter one or more album numbers, seperated by commas, or 0 for all albums', 'wp-photo-album-plus');
|
288 |
}
|
289 |
else {
|
290 |
$result .=
|
291 |
-
'<select id="wppagallery-album-realopt" style="max-width:400px;" name="album" multiple
|
292 |
if ( $albums ) {
|
293 |
|
294 |
// Please select
|
295 |
-
$result .= '<option id="wppagallery-album-0" class="wppagallery-album-ropt" value="0" selected
|
296 |
|
297 |
// All standard albums
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
|
|
|
|
302 |
}
|
303 |
else {
|
304 |
-
$result .= '<option value="0"
|
305 |
}
|
306 |
$result .= '</select>';
|
307 |
}
|
@@ -310,18 +315,18 @@ global $wpdb;
|
|
310 |
'</tr>'.
|
311 |
|
312 |
// Owner selection
|
313 |
-
'<tr id="wppagallery-owner-tr" style="display:none"
|
314 |
-
'<th><label for="wppagallery-owner">'.__('The album owner:', 'wp-photo-album-plus').'</label></th>'.
|
315 |
'<td>'.
|
316 |
'<select id="wppagallery-owner" name="owner" class="wppagallery-owner" onchange="wppaGutenbergGalleryEvaluate()">'.
|
317 |
-
'<option value="" disabled selected style="color:#700 !important;"
|
318 |
-
'<option value="#me"
|
319 |
$users = wppa_get_users();
|
320 |
if ( $users ) foreach ( $users as $user ) {
|
321 |
-
$result .= '<option value="'.$user['user_login'].'"
|
322 |
}
|
323 |
else { // Too many
|
324 |
-
$result .= '<option value="xxx"
|
325 |
}
|
326 |
$result .=
|
327 |
'</select>'.
|
@@ -329,78 +334,81 @@ global $wpdb;
|
|
329 |
'</tr>'.
|
330 |
|
331 |
// Owner Parent album
|
332 |
-
'<tr id="wppagallery-owner-parent-tr" style="display:none;"
|
333 |
-
'<th><label for="wppagallery-owner-parent">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
|
334 |
'<td>'.
|
335 |
-
'<select id="wppagallery-owner-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" multiple
|
336 |
if ( $albums ) {
|
337 |
|
338 |
// Please select
|
339 |
-
$result .= '<option class="wppagallery-album-p" value="" selected >-- '.__('No parent specification', 'wp-photo-album-plus').' --</option>';
|
340 |
|
341 |
// Generic
|
342 |
-
$result .= '<option class="wppagallery-album-p" value="zero"
|
343 |
|
344 |
// All standard albums
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
|
|
349 |
}
|
350 |
else {
|
351 |
-
$result .= '<option value="0"
|
352 |
}
|
353 |
$result .= '</select>'.
|
354 |
'</td>'.
|
355 |
'</tr>'.
|
356 |
|
357 |
// Album parent
|
358 |
-
'<tr id="wppagallery-album-parent-tr" style="display:none;"
|
359 |
-
'<th><label for="wppagallery-album-parent">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
|
360 |
'<td>'.
|
361 |
'<select id="wppagallery-album-parent-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" onchange="wppaGutenbergGalleryEvaluate()">';
|
362 |
if ($albums) {
|
363 |
|
364 |
// Please select
|
365 |
-
$result .= '<option id="wppagallery-album-0" value="0" selected style="color:#700 !important;"
|
366 |
|
367 |
// All standard albums
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
|
|
|
|
372 |
}
|
373 |
else {
|
374 |
-
$result .= '<option value="0"
|
375 |
}
|
376 |
$result .= '</select>'.
|
377 |
'</td>'.
|
378 |
'</tr>'.
|
379 |
|
380 |
// Album count
|
381 |
-
'<tr id="wppagallery-album-count-tr" style="display:none;"
|
382 |
-
'<th><label for="wppagallery-album-count">'.__('Max Albums:', 'wp-photo-album-plus').'</label></th>'.
|
383 |
'<td>'.
|
384 |
'<input id="wppagallery-album-count" type="text" style="color:#070;" value="1" onchange="wppaGutenbergGalleryEvaluate()" />'.
|
385 |
'</td>'.
|
386 |
'</tr>'.
|
387 |
|
388 |
// Photo count
|
389 |
-
'<tr id="wppagallery-photo-count-tr" style="display:none;"
|
390 |
-
'<th><label for="wppagallery-photo-count">'.__('Max Photos:', 'wp-photo-album-plus').'</label></th>'.
|
391 |
'<td>'.
|
392 |
'<input id="wppagallery-photo-count" type="text" style="color:#070;" value="1" onchange="wppaGutenbergGalleryEvaluate()" />'.
|
393 |
'</td>'.
|
394 |
'</tr>'.
|
395 |
|
396 |
// Albums with certain cats
|
397 |
-
'<tr id="wppagallery-albumcat-tr" style="display:none;"
|
398 |
-
'<th><label for="wppagallery-albumcat">'.__('The album cat(s):', 'wp-photo-album-plus').'</label></th>'.
|
399 |
'<td>'.
|
400 |
-
'<select id="wppagallery-albumcat" style="color:#700 !important;" onchange="wppaGutenbergGalleryEvaluate()" multiple
|
401 |
-
'<option value="" disabled selected style="color:#700 !important;"
|
402 |
if ( $cats ) foreach ( array_keys( $cats ) as $cat ) {
|
403 |
-
$result .= '<option class="wppagallery-albumcat" value="'.$cat.'"
|
404 |
}
|
405 |
$result .=
|
406 |
'</select>'.
|
@@ -408,21 +416,21 @@ global $wpdb;
|
|
408 |
'</tr>'.
|
409 |
|
410 |
// Photo selection
|
411 |
-
'<tr id="wppagallery-photo-tr" style="display:none;"
|
412 |
-
'<th><label for="wppagallery-photo" class="wppagallery-photo"
|
413 |
'<td>'.
|
414 |
-
'<select id="wppagallery-photo" name="photo" class="wppagallery-photo" onchange="wppaGutenbergGalleryEvaluate()"
|
415 |
if ( $photos ) {
|
416 |
|
417 |
// Please select
|
418 |
-
$result .= '<option value="" disabled selected style="color:#700 !important;"
|
419 |
-
$result .= '<option value="@potd"
|
420 |
|
421 |
// Most recent 100 photos
|
422 |
foreach ( $photos as $photo ) {
|
423 |
|
424 |
$name = stripslashes(__($photo['name']));
|
425 |
-
if ( strlen($name) > '50') $name = substr($name, '0', '50').'...';
|
426 |
|
427 |
if ( wppa_get_option( 'wppa_file_system' ) == 'flat' ) {
|
428 |
$val = $photo['id'] . '.' . $photo['ext'];
|
@@ -445,37 +453,37 @@ global $wpdb;
|
|
445 |
' (' . wppa_get_album_name( $photo['album'] ) . ')' .
|
446 |
'</option>';
|
447 |
}
|
448 |
-
$result .= '<option value="@last"
|
449 |
-
'<option value="@potd"
|
450 |
}
|
451 |
else {
|
452 |
-
$result .= '<option value="0"
|
453 |
}
|
454 |
$result .=
|
455 |
'</select>'.
|
456 |
'<br />'.
|
457 |
-
'<small style="display:none;" class="wppagallery-photo"
|
458 |
-
__('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
|
459 |
-
sprintf( __('You can select from a maximum of %d most recently added photos', 'wp-photo-album-plus'), wppa_opt( 'generator_max' )).'<br />'.
|
460 |
'</small>'.
|
461 |
'</td>'.
|
462 |
'</tr>'.
|
463 |
|
464 |
// Photo preview
|
465 |
-
'<tr id="wppagallery-photo-preview-tr" style="display:none;"
|
466 |
-
'<th><label for="wppagallery-photo-preview"
|
467 |
-
'<td id="wppagallery-photo-preview" style="text-align:center;"
|
468 |
'</td >'.
|
469 |
'</tr>'.
|
470 |
|
471 |
// Photos with certain tags
|
472 |
-
'<tr id="wppagallery-phototags-tr" style="display:none;"
|
473 |
-
'<th><label for="wppagallery-phototags">'.__('The photo tag(s):', 'wp-photo-album-plus').'</label></th>'.
|
474 |
'<td>'.
|
475 |
-
'<select id="wppagallery-phototags" style="color:#700 !important;" multiple
|
476 |
-
'<option value="" disabled selected style="color:#700 !important;"
|
477 |
if ( $tags ) foreach ( array_keys($tags) as $tag ) {
|
478 |
-
$result .= '<option class="wppagallery-phototags" value="'.$tag.'"
|
479 |
}
|
480 |
$result .=
|
481 |
'</select>'.
|
@@ -483,36 +491,37 @@ global $wpdb;
|
|
483 |
'</tr>'.
|
484 |
|
485 |
// Tags and cats additional settings
|
486 |
-
'<tr id="wppagallery-tags-cats-tr" style="display:none;"
|
487 |
-
'<th><label>'.__('Or / And:', 'wp-photo-album-plus').'</label></th>'.
|
488 |
'<td>'.
|
489 |
-
'<input id="wppagallery-or" type="radio" name="andor" value="or" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Meet any', 'wp-photo-album-plus').' '.
|
490 |
-
'<input id="wppagallery-and" type="radio" name="andor" value="and" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Meet all', 'wp-photo-album-plus').
|
491 |
'</td>'.
|
492 |
'</tr>'.
|
493 |
|
494 |
// Search additional settings
|
495 |
-
'<tr id="wppagallery-search-tr" style="display:none;"
|
496 |
-
'<th><label>'.__('Additional features:', 'wp-photo-album-plus').'</label></th>'.
|
497 |
'<td>'.
|
498 |
-
'<input id="wppagallery-sub" type="checkbox" name="sub" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Enable Subsearch', 'wp-photo-album-plus').' '.
|
499 |
-
'<input id="wppagallery-root" type="checkbox" name="root" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Enable Rootsearch', 'wp-photo-album-plus').
|
500 |
'</td>'.
|
501 |
'</tr>'.
|
502 |
|
503 |
// Optiona root album
|
504 |
-
'<tr id="wppagallery-rootalbum-tr" style="display:none;"
|
505 |
-
'<th><label>'.__('Search root:', 'wp-photo-album-plus').'</label></th>'.
|
506 |
'<td>'.
|
507 |
-
'<select id="wppagallery-rootalbum" onchange="wppaGutenbergGalleryEvaluate()"
|
508 |
-
'<option value="0" selected >'.__('--- default ---', 'wp-photo-album-plus').'</option>';
|
509 |
if ( $albums ) {
|
510 |
|
511 |
// All standard albums
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
|
|
516 |
}
|
517 |
$result .=
|
518 |
'</select>'.
|
@@ -520,18 +529,18 @@ global $wpdb;
|
|
520 |
'</tr>'.
|
521 |
|
522 |
// Landing page
|
523 |
-
'<tr id="wppagallery-landing-tr" style="display:none;"
|
524 |
-
'<th><label>'.__('Landing page:', 'wp-photo-album-plus').'</label></th>'.
|
525 |
'<td>'.
|
526 |
-
'<select id="wppagallery-landing" onchange="wppaGutenbergGalleryEvaluate()"
|
527 |
-
'<option value="0" selected >'.__('--- default ---', 'wp-photo-album-plus').'</option>';
|
528 |
if ( $pages ) {
|
529 |
foreach( $pages as $page ) {
|
530 |
$dis = '';
|
531 |
if ( strpos( $page['post_content'], '[wppa' ) === false ) {
|
532 |
$dis = ' disabled';
|
533 |
}
|
534 |
-
$result .= '<option value="'.$page['ID'].'"'.$dis.' >'.__( $page['post_title'] ).'</option>';
|
535 |
}
|
536 |
}
|
537 |
$result .=
|
@@ -540,110 +549,110 @@ global $wpdb;
|
|
540 |
'</tr>'.
|
541 |
|
542 |
// Tagcloud/list additional settings
|
543 |
-
'<tr id="wppagallery-taglist-tr" style="display:none;"
|
544 |
-
'<th><label>'.__('Additional features:', 'wp-photo-album-plus').'</label></th>'.
|
545 |
'<td>'.
|
546 |
-
'<input id="wppagallery-alltags" type="checkbox" checked="checked" name="alltags" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Enable all tags', 'wp-photo-album-plus').' '.
|
547 |
-
'<select id="wppagallery-seltags" style="color:#070; display:none;" name="seltags" multiple
|
548 |
if ( $tags ) {
|
549 |
-
'<option value="" disabled selected style="color:#700 !important;"
|
550 |
foreach( array_keys($tags) as $tag ) {
|
551 |
-
$result .= '<option class="wppagallery-taglist-tags" value="'.$tag.'"
|
552 |
}
|
553 |
}
|
554 |
else {
|
555 |
-
'<option value="" disabled selected style="color:#700 !important;"
|
556 |
}
|
557 |
$result .= '</select>'.
|
558 |
'</td>'.
|
559 |
'</tr>'.
|
560 |
|
561 |
// Superview additional settings: optional parent
|
562 |
-
'<tr id="wppagallery-album-super-tr" style="display:none;"
|
563 |
-
'<th><label for="wppagallery-album-super">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
|
564 |
'<td>'.
|
565 |
'<select id="wppagallery-album-super-parent" style="color:#070;max-width:400px;" name="parentalbum" onchange="wppaGutenbergGalleryEvaluate()">';
|
566 |
if ( $albums ) {
|
567 |
|
568 |
// Please select
|
569 |
-
$result .= '<option value="" selected >-- '.__('The generic parent', 'wp-photo-album-plus').' --</option>';
|
|
|
|
|
|
|
|
|
|
|
570 |
|
571 |
-
// All standard albums
|
572 |
-
foreach ( $albums as $album ) {
|
573 |
-
$id = $album['id'];
|
574 |
-
$result .= '<option class="wppagallery-album" value="'.$id.'" >'.stripslashes(__($album['name'])).' ('.$id.')</option>';
|
575 |
-
}
|
576 |
}
|
577 |
else {
|
578 |
-
$result .= '<option value="0"
|
579 |
}
|
580 |
$result .= '</select>'.
|
581 |
'</td>'.
|
582 |
'</tr>'.
|
583 |
|
584 |
// Calendar
|
585 |
-
'<tr id="wppagallery-calendar-tr" style="display:none;"
|
586 |
-
'<th><label for="wppagallery-calendar">'.__('Calendar type:', 'wp-photo-album-plus').'</lable></th>'.
|
587 |
'<td>'.
|
588 |
-
'<select id="wppagallery-calendar-type" style="color:#070;max-width:400px;" onchange="wppaGutenbergGalleryEvaluate()"
|
589 |
-
'<option value="exifdtm"
|
590 |
-
'<option value="timestamp"
|
591 |
-
'<option value="modified"
|
592 |
'</select>'.
|
593 |
'<br />'.
|
594 |
-
'<input type="checkbox" id="wppagallery-calendar-reverse" onchange="wppaGutenbergGalleryEvaluate()"
|
595 |
-
'<input type="checkbox" id="wppagallery-calendar-allopen" onchange="wppaGutenbergGalleryEvaluate()"
|
596 |
'</td>'.
|
597 |
'</tr>'.
|
598 |
|
599 |
// Size
|
600 |
'<tr>'.
|
601 |
-
'<th><label for="wppagallery-size">'.__('The size of the display:', 'wp-photo-album-plus').'</label></th>'.
|
602 |
'<td>'.
|
603 |
'<input type="text" id="wppagallery-size" value="" style="color:#070;" onchange="wppaGutenbergGalleryEvaluate();"/>'.
|
604 |
'<br />'.
|
605 |
'<small>'.
|
606 |
-
__('Specify the horizontal size in pixels or <span style="color:blue"
|
607 |
-
__('A value less than <span style="color:blue"
|
608 |
-
__('For responsive with a fixed maximum, add the max to auto e.g. <span style="color:blue"
|
609 |
-
__('Leave this blank for default size', 'wp-photo-album-plus').
|
610 |
'</small>'.
|
611 |
'</td>'.
|
612 |
'</tr>'.
|
613 |
|
614 |
// Align
|
615 |
'<tr>'.
|
616 |
-
'<th><label for="wppagallery-align">'.__('Horizontal alignment:', 'wp-photo-album-plus').'</label></th>'.
|
617 |
'<td>'.
|
618 |
'<select id="wppagallery-align" name="align" style="color:#070;" onchange="wppaGutenbergGalleryEvaluate();">'.
|
619 |
-
'<option value="none"
|
620 |
-
'<option value="left"
|
621 |
-
'<option value="center"
|
622 |
-
'<option value="right"
|
623 |
'</select>'.
|
624 |
'<br />'.
|
625 |
-
'<small>'.__('Specify the alignment to be used or --- none ---', 'wp-photo-album-plus').'</small>'.
|
626 |
'</td>'.
|
627 |
'</tr>'.
|
628 |
|
629 |
// Cache
|
630 |
-
'<tr id="wppagallery-cache-tr"
|
631 |
-
<th><label for="wppagallery-cache"
|
632 |
<td>
|
633 |
-
<input type="checkbox" id="wppagallery-cache" onchange="wppaGutenbergGalleryEvaluate()" />'.__('Cache this shortcode', 'wp-photo-album-plus').'
|
634 |
</td>
|
635 |
</tr>'.
|
636 |
|
637 |
// Delay
|
638 |
-
'<tr id="wppagallery-delay-tr"
|
639 |
-
<th><label for="wppagallery-delay"
|
640 |
<td>
|
641 |
-
<input type="checkbox" id="wppagallery-delay" onchange="wppaGutenbergGalleryEvaluate()" />'.__('Delay this shortcode', 'wp-photo-album-plus').'
|
642 |
</td>
|
643 |
</tr>'.
|
644 |
|
645 |
'</table>'.
|
646 |
-
'<div id="wppagallery-shortcode-preview-container"
|
647 |
'<input type="text" id="wppagallery-shortcode-preview" style="background-color:#ddd;width:100%;height:26px;display:none" value="[wppa]" />'.
|
648 |
'</div>'.
|
649 |
|
2 |
/* wppa-gutenberg-wppa.php
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
+
* Version 8.1.08.003
|
6 |
*/
|
7 |
|
8 |
function wppa_gutenberg_wppa_block() {
|
71 |
|
72 |
// Make the html
|
73 |
$result = '
|
74 |
+
<div id="wppagallery-form">
|
75 |
|
76 |
<table id="wppagallery-table" class="form-table">' .
|
77 |
|
79 |
'<tr>
|
80 |
<th><label for="wppagallery-top-type">' . __( 'Type of WPPA display:', 'wp-photo-album-plus' ) . '</label></th>
|
81 |
<td>
|
82 |
+
<select id="wppagallery-top-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">
|
83 |
+
<option value="" selected disabled style="color:#700 !important;">-- ' . __( 'Please select a display type', 'wp-photo-album-plus' ) . ' --</option>
|
84 |
+
<option value="galerytype">' . __( 'A gallery with covers and/or thumbnails', 'wp-photo-album-plus' ) . '</option>
|
85 |
+
<option value="slidestype">' . __( 'A slideshow', 'wp-photo-album-plus' ) . '</option>
|
86 |
+
<option value="singletype">' . __( 'A single image', 'wp-photo-album-plus' ) . '</option>
|
87 |
+
<option value="searchtype">' . __( 'A search/selection box', 'wp-photo-album-plus' ) . '</option>
|
88 |
+
<option value="misceltype">' . __( 'An other box type', 'wp-photo-album-plus' ) . '</option>
|
89 |
</select>
|
90 |
</td>
|
91 |
</tr>' .
|
92 |
|
93 |
// Top type I: gallery sub type
|
94 |
+
'<tr id="wppagallery-galery-type-tr" style="display:none;">
|
95 |
+
<th><label for="wppagallery-galery-type">' . __( 'Type of gallery display:', 'wp-photo-album-plus' ) . '</label></th>
|
96 |
<td>
|
97 |
+
<select id="wppagallery-galery-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">
|
98 |
+
<option value="" selected disabled style="color:#700 !important;">-- ' . __( 'Please select a gallery type', 'wp-photo-album-plus' ) . ' --</option>
|
99 |
+
<option value="cover">' . __( 'The cover(s) of specific album(s)', 'wp-photo-album-plus' ) . '</option>
|
100 |
+
<option value="content">' . __( 'The content of specific album(s)', 'wp-photo-album-plus' ) . '</option>
|
101 |
+
<option value="covers">' . __( 'The covers of the subalbums of specific album(s)', 'wp-photo-album-plus' ) . '</option>
|
102 |
+
<option value="thumbs">' . __( 'The thumbnails of specific album(s)', 'wp-photo-album-plus' ) . '</option>
|
103 |
</select>
|
104 |
</td>
|
105 |
</tr>' .
|
106 |
|
107 |
// Top type II: slide sub type
|
108 |
+
'<tr id="wppagallery-slides-type-tr" style="display:none;">
|
109 |
<th><label for="wppagallery-slides-type">' . __( 'Type of slideshow:', 'wp-photo-album-plus' ) . '</label></th>
|
110 |
<td>
|
111 |
+
<select id="wppagallery-slides-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">
|
112 |
+
<option value="" selected disabled style="color:#700 !important;">-- ' . __( 'Please select a slideshow type', 'wp-photo-album-plus' ) . ' --</option>
|
113 |
+
<option value="slide">' . __( 'A fully featured slideshow', 'wp-photo-album-plus' ) . '</option>
|
114 |
+
<option value="slideonly">' . __( 'A slideshow without supporting boxes', 'wp-photo-album-plus' ) . '</option>
|
115 |
+
<option value="slideonlyf">' . __( 'A slideshow with a filmstrip only', 'wp-photo-album-plus' ) . '</option>
|
116 |
+
<option value="filmonly">' . __( 'A filmstrip only', 'wp-photo-album-plus' ) . '</option>
|
117 |
</select>
|
118 |
</td>
|
119 |
</tr>' .
|
120 |
|
121 |
// Top type III: single sub type
|
122 |
+
'<tr id="wppagallery-single-type-tr" style="display:none;">
|
123 |
<th><label for="wppagallery-single-type">' . __( 'Type of single image:', 'wp-photo-album-plus' ) . '</label></th>
|
124 |
<td>
|
125 |
+
<select id="wppagallery-single-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">
|
126 |
+
<option value="" selected disabled style="color:#700 !important;">-- ' . __( 'Please select a single image type', 'wp-photo-album-plus' ) . ' --</option>
|
127 |
+
<option value="photo">' . __( 'A plain single photo', 'wp-photo-album-plus' ) . '</option>
|
128 |
+
<option value="mphoto">' . __( 'A single photo with caption', 'wp-photo-album-plus' ) . '</option>
|
129 |
+
<option value="xphoto">' . __( 'A single photo with extended caption', 'wp-photo-album-plus' ) . '</option>
|
130 |
+
<option value="slphoto">' . __( 'A single photo in the style of a slideshow', 'wp-photo-album-plus' ) . '</option>
|
131 |
</select>
|
132 |
</td>
|
133 |
</tr>' .
|
134 |
|
135 |
// Top type IV: search sub type
|
136 |
+
'<tr id="wppagallery-search-type-tr" style="display:none;">
|
137 |
<th><label for="wppagallery-search-type">' . __( 'Type of search:', 'wp-photo-album-plus' ) . '</label></th>
|
138 |
<td>
|
139 |
+
<select id="wppagallery-search-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">
|
140 |
+
<option value="" selected disabled style="color:#700 !important;">-- ' . __( 'Please select a search type', 'wp-photo-album-plus' ) . ' --</option>
|
141 |
+
<option value="search">' . __( 'A search box', 'wp-photo-album-plus' ) . '</option>
|
142 |
+
<option value="supersearch">' . __( 'A supersearch box', 'wp-photo-album-plus' ) . '</option>
|
143 |
+
<option value="tagcloud">' . __( 'A tagcloud box', 'wp-photo-album-plus' ) . '</option>
|
144 |
+
<option value="multitag">' . __( 'A multitag box', 'wp-photo-album-plus' ) . '</option>
|
145 |
+
<option value="superview">' . __( 'A superview box', 'wp-photo-album-plus' ) . '</option>
|
146 |
+
<option value="calendar">' . __( 'A calendar box', 'wp-photo-album-plus' ) . '</option>
|
147 |
</select>
|
148 |
</td>
|
149 |
</tr>' .
|
150 |
|
151 |
// Top type V: other sub type
|
152 |
+
'<tr id="wppagallery-miscel-type-tr" style="display:none;">
|
153 |
<th><label for="wppagallery-miscel-type">' . __( 'Type miscellaneous:', 'wp-photo-album-plus' ) . '</label></th>
|
154 |
<td>
|
155 |
+
<select id="wppagallery-miscel-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">
|
156 |
+
<option value="" selected disabled style="color:#700 !important;">-- ' . __( 'Please select a miscellaneous display', 'wp-photo-album-plus' ) . ' --</option>
|
157 |
+
<option value="generic">' . __( 'A generic albums display', 'wp-photo-album-plus' ) . '</option>
|
158 |
+
<option value="upload">' . __( 'An upload box', 'wp-photo-album-plus' ) . '</option>'.
|
159 |
+
'<option value="landing">' . __( 'A landing page shortcode', 'wp-photo-album-plus' ) . '</option>'.
|
160 |
+
'<option value="stereo">' . __( 'A 3D stereo settings box', 'wp-photo-album-plus' ) . '</option>'.
|
161 |
+
'<option value="choice">' . __( 'An admins choice box', 'wp-photo-album-plus' ) . '</option>'.
|
162 |
'</select>'.
|
163 |
'</td>'.
|
164 |
'</tr>'.
|
165 |
|
166 |
// Administrators ( for admins choice, show admin only if current user is an admin or superuser )
|
167 |
+
'<tr id="wppagallery-admins-tr" style="display:none;">'.
|
168 |
+
'<th><label for="wppagallery-admins">' . __( 'Users:', 'wp-photo-album-plus' ) . '</label></th>'.
|
169 |
'<td>'.
|
170 |
+
'<select id="wppagallery-admins" name="admins" style="color:#070;" multiple onchange="wppaGutenbergGalleryEvaluate()">'.
|
171 |
+
'<option value="" selected style="color:#070;">-- ' . __( 'All', 'wp-photo-album-plus' ) . ' --</option>';
|
172 |
foreach( $admins as $user ) {
|
173 |
$result .=
|
174 |
+
'<option value="'.$user->data->user_login.'" class="wppagallery-admin" style="color:#070;">'.$user->data->user_login.'</option>';
|
175 |
}
|
176 |
$users = wppa_get_option( 'wppa_super_users', array() );
|
177 |
foreach( $users as $user ) {
|
178 |
$result .=
|
179 |
+
'<option value="'.$user.'" class="wppagallery-admin">'.$user.'</option>';
|
180 |
}
|
181 |
$result .=
|
182 |
'</select>'.
|
184 |
'</tr>'.
|
185 |
|
186 |
// Real or Virtual albums
|
187 |
+
'<tr id="wppagallery-album-type-tr" style="display:none;">'.
|
188 |
+
'<th><label for="wppagallery-album-type">' . __( 'Kind of selection:', 'wp-photo-album-plus' ) . '</label></th>'.
|
189 |
'<td>'.
|
190 |
'<select id="wppagallery-album-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
|
191 |
+
'<option value="" selected disabled style="color:#700 !important;">-- ' . __( 'Please select a type of selection to be used', 'wp-photo-album-plus' ) . ' --</option>'.
|
192 |
+
'<option value="real">' . __( 'One or more wppa+ albums', 'wp-photo-album-plus' ) . '</option>'.
|
193 |
+
'<option value="virtual">' . __( 'A special selection', 'wp-photo-album-plus' ) . '</option>'.
|
194 |
'</select>'.
|
195 |
'</td>'.
|
196 |
'</tr>'.
|
197 |
|
198 |
// Virtual albums
|
199 |
+
'<tr id="wppagallery-album-virt-tr" style="display:none;">'.
|
200 |
+
'<th><label for="wppagallery-album-virt">' . __( 'The selection to be used:', 'wp-photo-album-plus' ) . '</label></th>'.
|
201 |
'<td>'.
|
202 |
'<select id="wppagallery-album-virt" name="album" class="wppagallery-album" onchange="wppaGutenbergGalleryEvaluate()">'.
|
203 |
+
'<option value="" disabled selected style="color:#700 !important;">-- ' . __( 'Please select a virtual album', 'wp-photo-album-plus' ) . ' --</option>'.
|
204 |
+
'<option value="@last">' . __( 'The most recently added album', 'wp-photo-album-plus' ) . '</option>'.
|
205 |
+
'<option value="@topten">' . __( 'The top rated photos', 'wp-photo-album-plus' ) . '</option>'.
|
206 |
+
'<option value="@lasten">' . __( 'The most recently uploaded photos', 'wp-photo-album-plus' ) . '</option>'.
|
207 |
+
'<option value="@featen">' . __( 'A random selection of featured photos', 'wp-photo-album-plus' ) . '</option>'.
|
208 |
+
'<option value="@comten">' . __( 'The most recently commented photos', 'wp-photo-album-plus' ) . '</option>'.
|
209 |
+
'<option value="@tags">' . __( 'Photos tagged with certain tags', 'wp-photo-album-plus' ) . '</option>'.
|
210 |
+
'<option value="@cat">' . __( 'Albums tagged with a certain category', 'wp-photo-album-plus' ) . '</option>'.
|
211 |
+
'<option value="@owner">' . __( 'Photos in albums owned by a certain user', 'wp-photo-album-plus' ) . '</option>'.
|
212 |
+
'<option value="@upldr">' . __( 'Photos uploaded by a certain user', 'wp-photo-album-plus' ) . '</option>'.
|
213 |
+
'<option value="@all">' . __( 'All photos in the system', 'wp-photo-album-plus' ) . '</option>'.
|
214 |
'</select>'.
|
215 |
'</td>'.
|
216 |
'</tr>'.
|
217 |
|
218 |
// Virtual albums that have covers
|
219 |
+
'<tr id="wppagallery-album-virt-cover-tr" style="display:none;">'.
|
220 |
+
'<th><label for="wppagallery-album-virt-cover">' . __( 'The selection to be used:', 'wp-photo-album-plus' ) . '</label></th>'.
|
221 |
'<td>'.
|
222 |
'<select id="wppagallery-album-virt-cover" name="album" class="wppagallery-album" onchange="wppaGutenbergGalleryEvaluate()">'.
|
223 |
+
'<option value="" disabled selected style="color:#700 !important;">-- ' . __( 'Please select a virtual album', 'wp-photo-album-plus' ) . ' --</option>'.
|
224 |
+
'<option value="@last">' . __( 'The most recently modified album', 'wp-photo-album-plus' ) . '</option>'.
|
225 |
+
'<option value="@owner">' . __( 'Albums owned by a certain user', 'wp-photo-album-plus' ) . '</option>'.
|
226 |
+
'<option value="@cat">' . __( 'Albums tagged with certain categories', 'wp-photo-album-plus' ) . '</option>'.
|
227 |
+
'<option value="@all">' . __( 'All albums in the system', 'wp-photo-album-plus' ) . '</option>'.
|
228 |
'</select>'.
|
229 |
'</td>'.
|
230 |
'</tr>'.
|
231 |
|
232 |
// Real albums
|
233 |
+
'<tr id="wppagallery-album-real-tr" style="display:none;">'.
|
234 |
+
'<th><label for="wppagallery-album-real">' . __( 'The Album(s) to be used:', 'wp-photo-album-plus' ) . '</label></th>'.
|
235 |
'<td>';
|
236 |
if ( wppa_has_many_albums() ) {
|
237 |
$result .=
|
238 |
'<input id="wppagallery-album-real" style="max-width:400px;" name="album" value="" onchange="wppaGutenbergGalleryEvaluate()" />'.
|
239 |
'<br />'.
|
240 |
+
__( 'Enter one or more album numbers, seperated by commas', 'wp-photo-album-plus' );
|
241 |
}
|
242 |
else {
|
243 |
$result .=
|
245 |
if ( $albums ) {
|
246 |
|
247 |
// Please select
|
248 |
+
$result .= '<option id="wppagallery-album-0" value="0" disabled selected style="color:#700 !important;">-- ' . __( 'Please select one or more albums', 'wp-photo-album-plus' ) . ' --</option>';
|
249 |
|
250 |
// All standard albums
|
251 |
+
$result .= wppa_album_select_a( ['selected' => false,
|
252 |
+
'path' => true,
|
253 |
+
'sort' => true,
|
254 |
+
'addnumbers' => true,
|
255 |
+
'optionclass' => 'wppagallery-album-r',
|
256 |
+
] );
|
257 |
+
|
258 |
}
|
259 |
else {
|
260 |
+
$result .= '<option value="0" style="color:#700;">' . __( 'There are no albums yet', 'wp-photo-album-plus' ) . '</option>';
|
261 |
}
|
262 |
$result .= '</select>';
|
263 |
}
|
266 |
'</tr>';
|
267 |
if ( ! wppa_has_many_albums() ) {
|
268 |
$result .=
|
269 |
+
'<tr id="wppagallery-album-real-search-tr" style="display:none;">' .
|
270 |
+
'<th><label for="">' . __( 'Filter album:', 'wp-photo-album-plus' ) . '</label></th>'.
|
271 |
'<td>'.
|
272 |
'<input id="wppagallery-album-real-search" type="text" onkeyup="wppaGutenbergGalleryEvaluate()" />'.
|
273 |
'<br />'.
|
274 |
'<small>'.
|
275 |
+
__( 'Enter a (part of) the album name to limit the options in the selection box above.', 'wp-photo-album-plus' ) . ' '.
|
276 |
'</small>'.
|
277 |
'</td>'.
|
278 |
'</tr>';
|
280 |
|
281 |
// Real albums optional
|
282 |
$result .=
|
283 |
+
'<tr id="wppagallery-album-realopt-tr" style="display:none;">'.
|
284 |
+
'<th><label for="wppagallery-album-realopt">' . __( 'The Album(s) to be used:', 'wp-photo-album-plus' ) . '</label></th>'.
|
285 |
'<td>';
|
286 |
if ( wppa_has_many_albums() ) {
|
287 |
$result .=
|
288 |
'<input id="wppagallery-album-realopt" style="max-width:400px;" name="album" onchange="wppaGutenbergGalleryEvaluate()" value="0" />'.
|
289 |
'<br />'.
|
290 |
+
__( 'Optinally enter one or more album numbers, seperated by commas, or 0 for all albums', 'wp-photo-album-plus' );
|
291 |
}
|
292 |
else {
|
293 |
$result .=
|
294 |
+
'<select id="wppagallery-album-realopt" style="max-width:400px;" name="album" multiple onchange="wppaGutenbergGalleryEvaluate()">';
|
295 |
if ( $albums ) {
|
296 |
|
297 |
// Please select
|
298 |
+
$result .= '<option id="wppagallery-album-0" class="wppagallery-album-ropt" value="0" selected >--- ' . __( 'All albums', 'wp-photo-album-plus' ) . ' ---</option>';
|
299 |
|
300 |
// All standard albums
|
301 |
+
$result .= wppa_album_select_a( ['selected' => false,
|
302 |
+
'path' => true,
|
303 |
+
'sort' => true,
|
304 |
+
'addnumbers' => true,
|
305 |
+
] );
|
306 |
+
|
307 |
}
|
308 |
else {
|
309 |
+
$result .= '<option value="0">' . __( 'There are no albums yet', 'wp-photo-album-plus' ) . '</option>';
|
310 |
}
|
311 |
$result .= '</select>';
|
312 |
}
|
315 |
'</tr>'.
|
316 |
|
317 |
// Owner selection
|
318 |
+
'<tr id="wppagallery-owner-tr" style="display:none">'.
|
319 |
+
'<th><label for="wppagallery-owner">' . __( 'The album owner:', 'wp-photo-album-plus' ) . '</label></th>'.
|
320 |
'<td>'.
|
321 |
'<select id="wppagallery-owner" name="owner" class="wppagallery-owner" onchange="wppaGutenbergGalleryEvaluate()">'.
|
322 |
+
'<option value="" disabled selected style="color:#700 !important;">-- ' . __( 'Please select a user', 'wp-photo-album-plus' ) . ' --</option>'.
|
323 |
+
'<option value="#me">-- ' . __( 'The logged in visitor', 'wp-photo-album-plus' ) . ' --</option>';
|
324 |
$users = wppa_get_users();
|
325 |
if ( $users ) foreach ( $users as $user ) {
|
326 |
+
$result .= '<option value="'.$user['user_login'].'">'.$user['display_name'].'</option>';
|
327 |
}
|
328 |
else { // Too many
|
329 |
+
$result .= '<option value="xxx">-- ' . __( 'Too many users, edit manually', 'wp-photo-album-plus' ) . ' --</option>';
|
330 |
}
|
331 |
$result .=
|
332 |
'</select>'.
|
334 |
'</tr>'.
|
335 |
|
336 |
// Owner Parent album
|
337 |
+
'<tr id="wppagallery-owner-parent-tr" style="display:none;">'.
|
338 |
+
'<th><label for="wppagallery-owner-parent">' . __( 'Parent album:', 'wp-photo-album-plus' ) . '</label></th>'.
|
339 |
'<td>'.
|
340 |
+
'<select id="wppagallery-owner-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" multiple onchange="wppaGutenbergGalleryEvaluate()">';
|
341 |
if ( $albums ) {
|
342 |
|
343 |
// Please select
|
344 |
+
$result .= '<option class="wppagallery-album-p" value="" selected >-- ' . __( 'No parent specification', 'wp-photo-album-plus' ) . ' --</option>';
|
345 |
|
346 |
// Generic
|
347 |
+
$result .= '<option class="wppagallery-album-p" value="zero">-- ' . __( 'The generic parent', 'wp-photo-album-plus' ) . ' --</option>';
|
348 |
|
349 |
// All standard albums
|
350 |
+
$result .= wppa_album_select_a( ['selected' => false,
|
351 |
+
'path' => true,
|
352 |
+
'sort' => true,
|
353 |
+
'addnumbers' => true,
|
354 |
+
] );
|
355 |
}
|
356 |
else {
|
357 |
+
$result .= '<option value="0">' . __( 'There are no albums yet', 'wp-photo-album-plus' ) . '</option>';
|
358 |
}
|
359 |
$result .= '</select>'.
|
360 |
'</td>'.
|
361 |
'</tr>'.
|
362 |
|
363 |
// Album parent
|
364 |
+
'<tr id="wppagallery-album-parent-tr" style="display:none;">'.
|
365 |
+
'<th><label for="wppagallery-album-parent">' . __( 'Parent album:', 'wp-photo-album-plus' ) . '</label></th>'.
|
366 |
'<td>'.
|
367 |
'<select id="wppagallery-album-parent-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" onchange="wppaGutenbergGalleryEvaluate()">';
|
368 |
if ($albums) {
|
369 |
|
370 |
// Please select
|
371 |
+
$result .= '<option id="wppagallery-album-0" value="0" selected style="color:#700 !important;">-- ' . __( 'The generic parent', 'wp-photo-album-plus' ) . ' --</option>';
|
372 |
|
373 |
// All standard albums
|
374 |
+
$result .= wppa_album_select_a( ['selected' => false,
|
375 |
+
'path' => true,
|
376 |
+
'sort' => true,
|
377 |
+
'addnumbers' => true,
|
378 |
+
] );
|
379 |
+
|
380 |
}
|
381 |
else {
|
382 |
+
$result .= '<option value="0">' . __( 'There are no albums yet', 'wp-photo-album-plus' ) . '</option>';
|
383 |
}
|
384 |
$result .= '</select>'.
|
385 |
'</td>'.
|
386 |
'</tr>'.
|
387 |
|
388 |
// Album count
|
389 |
+
'<tr id="wppagallery-album-count-tr" style="display:none;">'.
|
390 |
+
'<th><label for="wppagallery-album-count">' . __( 'Max Albums:', 'wp-photo-album-plus' ) . '</label></th>'.
|
391 |
'<td>'.
|
392 |
'<input id="wppagallery-album-count" type="text" style="color:#070;" value="1" onchange="wppaGutenbergGalleryEvaluate()" />'.
|
393 |
'</td>'.
|
394 |
'</tr>'.
|
395 |
|
396 |
// Photo count
|
397 |
+
'<tr id="wppagallery-photo-count-tr" style="display:none;">'.
|
398 |
+
'<th><label for="wppagallery-photo-count">' . __( 'Max Photos:', 'wp-photo-album-plus' ) . '</label></th>'.
|
399 |
'<td>'.
|
400 |
'<input id="wppagallery-photo-count" type="text" style="color:#070;" value="1" onchange="wppaGutenbergGalleryEvaluate()" />'.
|
401 |
'</td>'.
|
402 |
'</tr>'.
|
403 |
|
404 |
// Albums with certain cats
|
405 |
+
'<tr id="wppagallery-albumcat-tr" style="display:none;">'.
|
406 |
+
'<th><label for="wppagallery-albumcat">' . __( 'The album cat(s):', 'wp-photo-album-plus' ) . '</label></th>'.
|
407 |
'<td>'.
|
408 |
+
'<select id="wppagallery-albumcat" style="color:#700 !important;" onchange="wppaGutenbergGalleryEvaluate()" multiple >'.
|
409 |
+
'<option value="" disabled selected style="color:#700 !important;">' . __( '--- please select category ---', 'wp-photo-album-plus' ) . '</option>';
|
410 |
if ( $cats ) foreach ( array_keys( $cats ) as $cat ) {
|
411 |
+
$result .= '<option class="wppagallery-albumcat" value="'.$cat.'">'.$cat.'</option>';
|
412 |
}
|
413 |
$result .=
|
414 |
'</select>'.
|
416 |
'</tr>'.
|
417 |
|
418 |
// Photo selection
|
419 |
+
'<tr id="wppagallery-photo-tr" style="display:none;">'.
|
420 |
+
'<th><label for="wppagallery-photo" class="wppagallery-photo">' . __( 'The Photo to be used:', 'wp-photo-album-plus' ) . '</label></th>'.
|
421 |
'<td>'.
|
422 |
+
'<select id="wppagallery-photo" name="photo" class="wppagallery-photo" onchange="wppaGutenbergGalleryEvaluate()">';
|
423 |
if ( $photos ) {
|
424 |
|
425 |
// Please select
|
426 |
+
$result .= '<option value="" disabled selected style="color:#700 !important;">-- ' . __( 'Please select a photo', 'wp-photo-album-plus' ) . ' --</option>';
|
427 |
+
$result .= '<option value="@potd">-- ' . __( 'The photo of the day', 'wp-photo-album-plus' ) . ' --</option>';
|
428 |
|
429 |
// Most recent 100 photos
|
430 |
foreach ( $photos as $photo ) {
|
431 |
|
432 |
$name = stripslashes(__($photo['name']));
|
433 |
+
if ( strlen($name) > '50') $name = substr($name, '0', '50') . '...';
|
434 |
|
435 |
if ( wppa_get_option( 'wppa_file_system' ) == 'flat' ) {
|
436 |
$val = $photo['id'] . '.' . $photo['ext'];
|
453 |
' (' . wppa_get_album_name( $photo['album'] ) . ')' .
|
454 |
'</option>';
|
455 |
}
|
456 |
+
$result .= '<option value="@last">-- ' . __( 'The most recently uploaded photo', 'wp-photo-album-plus' ) . ' --</option>'.
|
457 |
+
'<option value="@potd">-- ' . __( 'The photo of the day', 'wp-photo-album-plus' ) . ' --</option>';
|
458 |
}
|
459 |
else {
|
460 |
+
$result .= '<option value="0">' . __( 'There are no photos yet', 'wp-photo-album-plus' ) . '</option>';
|
461 |
}
|
462 |
$result .=
|
463 |
'</select>'.
|
464 |
'<br />'.
|
465 |
+
'<small style="display:none;" class="wppagallery-photo">'.
|
466 |
+
__( 'Specify the photo to be used', 'wp-photo-album-plus' ) . '<br />'.
|
467 |
+
sprintf( __( 'You can select from a maximum of %d most recently added photos', 'wp-photo-album-plus' ), wppa_opt( 'generator_max' )) . '<br />'.
|
468 |
'</small>'.
|
469 |
'</td>'.
|
470 |
'</tr>'.
|
471 |
|
472 |
// Photo preview
|
473 |
+
'<tr id="wppagallery-photo-preview-tr" style="display:none;">'.
|
474 |
+
'<th><label for="wppagallery-photo-preview">' . __( 'Preview image:', 'wp-photo-album-plus' ) . '</label></th>'.
|
475 |
+
'<td id="wppagallery-photo-preview" style="text-align:center;">'.
|
476 |
'</td >'.
|
477 |
'</tr>'.
|
478 |
|
479 |
// Photos with certain tags
|
480 |
+
'<tr id="wppagallery-phototags-tr" style="display:none;">'.
|
481 |
+
'<th><label for="wppagallery-phototags">' . __( 'The photo tag(s):', 'wp-photo-album-plus' ) . '</label></th>'.
|
482 |
'<td>'.
|
483 |
+
'<select id="wppagallery-phototags" style="color:#700 !important;" multiple onchange="wppaGutenbergGalleryEvaluate()">'.
|
484 |
+
'<option value="" disabled selected style="color:#700 !important;">' . __( '--- please select tag(s) ---', 'wp-photo-album-plus' ) . '</option>';
|
485 |
if ( $tags ) foreach ( array_keys($tags) as $tag ) {
|
486 |
+
$result .= '<option class="wppagallery-phototags" value="'.$tag.'">'.$tag.'</option>';
|
487 |
}
|
488 |
$result .=
|
489 |
'</select>'.
|
491 |
'</tr>'.
|
492 |
|
493 |
// Tags and cats additional settings
|
494 |
+
'<tr id="wppagallery-tags-cats-tr" style="display:none;">'.
|
495 |
+
'<th><label>' . __( 'Or / And:', 'wp-photo-album-plus' ) . '</label></th>'.
|
496 |
'<td>'.
|
497 |
+
'<input id="wppagallery-or" type="radio" name="andor" value="or" onchange="wppaGutenbergGalleryEvaluate()"/>' . __( 'Meet any', 'wp-photo-album-plus' ) . ' '.
|
498 |
+
'<input id="wppagallery-and" type="radio" name="andor" value="and" onchange="wppaGutenbergGalleryEvaluate()"/>' . __( 'Meet all', 'wp-photo-album-plus' ) .
|
499 |
'</td>'.
|
500 |
'</tr>'.
|
501 |
|
502 |
// Search additional settings
|
503 |
+
'<tr id="wppagallery-search-tr" style="display:none;">'.
|
504 |
+
'<th><label>' . __( 'Additional features:', 'wp-photo-album-plus' ) . '</label></th>'.
|
505 |
'<td>'.
|
506 |
+
'<input id="wppagallery-sub" type="checkbox" name="sub" onchange="wppaGutenbergGalleryEvaluate()"/>' . __( 'Enable Subsearch', 'wp-photo-album-plus' ) . ' '.
|
507 |
+
'<input id="wppagallery-root" type="checkbox" name="root" onchange="wppaGutenbergGalleryEvaluate()"/>' . __( 'Enable Rootsearch', 'wp-photo-album-plus' ) .
|
508 |
'</td>'.
|
509 |
'</tr>'.
|
510 |
|
511 |
// Optiona root album
|
512 |
+
'<tr id="wppagallery-rootalbum-tr" style="display:none;">'.
|
513 |
+
'<th><label>' . __( 'Search root:', 'wp-photo-album-plus' ) . '</label></th>'.
|
514 |
'<td>'.
|
515 |
+
'<select id="wppagallery-rootalbum" onchange="wppaGutenbergGalleryEvaluate()">'.
|
516 |
+
'<option value="0" selected >' . __( '--- default ---', 'wp-photo-album-plus' ) . '</option>';
|
517 |
if ( $albums ) {
|
518 |
|
519 |
// All standard albums
|
520 |
+
$result .= wppa_album_select_a( ['selected' => false,
|
521 |
+
'path' => true,
|
522 |
+
'sort' => true,
|
523 |
+
'addnumbers' => true,
|
524 |
+
] );
|
525 |
}
|
526 |
$result .=
|
527 |
'</select>'.
|
529 |
'</tr>'.
|
530 |
|
531 |
// Landing page
|
532 |
+
'<tr id="wppagallery-landing-tr" style="display:none;">'.
|
533 |
+
'<th><label>' . __( 'Landing page:', 'wp-photo-album-plus' ) . '</label></th>'.
|
534 |
'<td>'.
|
535 |
+
'<select id="wppagallery-landing" onchange="wppaGutenbergGalleryEvaluate()">'.
|
536 |
+
'<option value="0" selected >' . __( '--- default ---', 'wp-photo-album-plus' ) . '</option>';
|
537 |
if ( $pages ) {
|
538 |
foreach( $pages as $page ) {
|
539 |
$dis = '';
|
540 |
if ( strpos( $page['post_content'], '[wppa' ) === false ) {
|
541 |
$dis = ' disabled';
|
542 |
}
|
543 |
+
$result .= '<option value="'.$page['ID'].'"'.$dis.' >'.__( $page['post_title'] ) . '</option>';
|
544 |
}
|
545 |
}
|
546 |
$result .=
|
549 |
'</tr>'.
|
550 |
|
551 |
// Tagcloud/list additional settings
|
552 |
+
'<tr id="wppagallery-taglist-tr" style="display:none;">'.
|
553 |
+
'<th><label>' . __( 'Additional features:', 'wp-photo-album-plus' ) . '</label></th>'.
|
554 |
'<td>'.
|
555 |
+
'<input id="wppagallery-alltags" type="checkbox" checked="checked" name="alltags" onchange="wppaGutenbergGalleryEvaluate()"/>' . __( 'Enable all tags', 'wp-photo-album-plus' ) . ' '.
|
556 |
+
'<select id="wppagallery-seltags" style="color:#070; display:none;" name="seltags" multiple onchange="wppaGutenbergGalleryEvaluate()">';
|
557 |
if ( $tags ) {
|
558 |
+
'<option value="" disabled selected style="color:#700 !important;">-- ' . __( 'Please select the tags to show', 'wp-photo-album-plus' ) . ' --</option>';
|
559 |
foreach( array_keys($tags) as $tag ) {
|
560 |
+
$result .= '<option class="wppagallery-taglist-tags" value="'.$tag.'">'.$tag.'</option>';
|
561 |
}
|
562 |
}
|
563 |
else {
|
564 |
+
'<option value="" disabled selected style="color:#700 !important;">-- ' . __( 'There are no tags', 'wp-photo-album-plus' ) . ' --</option>';
|
565 |
}
|
566 |
$result .= '</select>'.
|
567 |
'</td>'.
|
568 |
'</tr>'.
|
569 |
|
570 |
// Superview additional settings: optional parent
|
571 |
+
'<tr id="wppagallery-album-super-tr" style="display:none;">'.
|
572 |
+
'<th><label for="wppagallery-album-super">' . __( 'Parent album:', 'wp-photo-album-plus' ) . '</label></th>'.
|
573 |
'<td>'.
|
574 |
'<select id="wppagallery-album-super-parent" style="color:#070;max-width:400px;" name="parentalbum" onchange="wppaGutenbergGalleryEvaluate()">';
|
575 |
if ( $albums ) {
|
576 |
|
577 |
// Please select
|
578 |
+
$result .= '<option value="" selected >-- ' . __( 'The generic parent', 'wp-photo-album-plus' ) . ' --</option>';
|
579 |
+
$result .= wppa_album_select_a( ['selected' => false,
|
580 |
+
'path' => true,
|
581 |
+
'sort' => true,
|
582 |
+
'addnumbers' => true,
|
583 |
+
] );
|
584 |
|
|
|
|
|
|
|
|
|
|
|
585 |
}
|
586 |
else {
|
587 |
+
$result .= '<option value="0">' . __( 'There are no albums yet', 'wp-photo-album-plus' ) . '</option>';
|
588 |
}
|
589 |
$result .= '</select>'.
|
590 |
'</td>'.
|
591 |
'</tr>'.
|
592 |
|
593 |
// Calendar
|
594 |
+
'<tr id="wppagallery-calendar-tr" style="display:none;">'.
|
595 |
+
'<th><label for="wppagallery-calendar">' . __( 'Calendar type:', 'wp-photo-album-plus' ) . '</lable></th>'.
|
596 |
'<td>'.
|
597 |
+
'<select id="wppagallery-calendar-type" style="color:#070;max-width:400px;" onchange="wppaGutenbergGalleryEvaluate()">'.
|
598 |
+
'<option value="exifdtm">' . __( 'By EXIF date', 'wp-photo-album-plus' ) . '</option>'.
|
599 |
+
'<option value="timestamp">' . __( 'By date of upload', 'wp-photo-album-plus' ) . '</option>'.
|
600 |
+
'<option value="modified">' . __( 'By date last modified', 'wp-photo-album-plus' ) . '</option>'.
|
601 |
'</select>'.
|
602 |
'<br />'.
|
603 |
+
'<input type="checkbox" id="wppagallery-calendar-reverse" onchange="wppaGutenbergGalleryEvaluate()">' . __( 'Last date first', 'wp-photo-album-plus' ) . ' '.
|
604 |
+
'<input type="checkbox" id="wppagallery-calendar-allopen" onchange="wppaGutenbergGalleryEvaluate()">' . __( 'Initially display all', 'wp-photo-album-plus' ) .
|
605 |
'</td>'.
|
606 |
'</tr>'.
|
607 |
|
608 |
// Size
|
609 |
'<tr>'.
|
610 |
+
'<th><label for="wppagallery-size">' . __( 'The size of the display:', 'wp-photo-album-plus' ) . '</label></th>'.
|
611 |
'<td>'.
|
612 |
'<input type="text" id="wppagallery-size" value="" style="color:#070;" onchange="wppaGutenbergGalleryEvaluate();"/>'.
|
613 |
'<br />'.
|
614 |
'<small>'.
|
615 |
+
__( 'Specify the horizontal size in pixels or <span style="color:blue">auto</span>.', 'wp-photo-album-plus' ) . ' '.
|
616 |
+
__( 'A value less than <span style="color:blue">100</span> will automatically be interpreted as a <span style="color:blue">percentage</span> of the available space.', 'wp-photo-album-plus' ) .
|
617 |
+
__( 'For responsive with a fixed maximum, add the max to auto e.g. <span style="color:blue">auto,550</span>', 'wp-photo-album-plus' ) . '<br />'.
|
618 |
+
__( 'Leave this blank for default size', 'wp-photo-album-plus' ) .
|
619 |
'</small>'.
|
620 |
'</td>'.
|
621 |
'</tr>'.
|
622 |
|
623 |
// Align
|
624 |
'<tr>'.
|
625 |
+
'<th><label for="wppagallery-align">' . __( 'Horizontal alignment:', 'wp-photo-album-plus' ) . '</label></th>'.
|
626 |
'<td>'.
|
627 |
'<select id="wppagallery-align" name="align" style="color:#070;" onchange="wppaGutenbergGalleryEvaluate();">'.
|
628 |
+
'<option value="none">' . __( '--- none ---', 'wp-photo-album-plus' ) . '</option>'.
|
629 |
+
'<option value="left">' . __( 'left', 'wp-photo-album-plus' ) . '</option>'.
|
630 |
+
'<option value="center">' . __( 'center', 'wp-photo-album-plus' ) . '</option>'.
|
631 |
+
'<option value="right">' . __( 'right', 'wp-photo-album-plus' ) . '</option>'.
|
632 |
'</select>'.
|
633 |
'<br />'.
|
634 |
+
'<small>' . __( 'Specify the alignment to be used or --- none ---', 'wp-photo-album-plus' ) . '</small>'.
|
635 |
'</td>'.
|
636 |
'</tr>'.
|
637 |
|
638 |
// Cache
|
639 |
+
'<tr id="wppagallery-cache-tr">
|
640 |
+
<th><label for="wppagallery-cache">' . __( 'Cache:', 'wp-photo-album-plus' ) . '</label></th>
|
641 |
<td>
|
642 |
+
<input type="checkbox" id="wppagallery-cache" onchange="wppaGutenbergGalleryEvaluate()" />' . __( 'Cache this shortcode', 'wp-photo-album-plus' ) . '
|
643 |
</td>
|
644 |
</tr>'.
|
645 |
|
646 |
// Delay
|
647 |
+
'<tr id="wppagallery-delay-tr">
|
648 |
+
<th><label for="wppagallery-delay">' . __( 'Delay:', 'wp-photo-album-plus' ) . '</label></th>
|
649 |
<td>
|
650 |
+
<input type="checkbox" id="wppagallery-delay" onchange="wppaGutenbergGalleryEvaluate()" />' . __( 'Delay this shortcode', 'wp-photo-album-plus' ) . '
|
651 |
</td>
|
652 |
</tr>'.
|
653 |
|
654 |
'</table>'.
|
655 |
+
'<div id="wppagallery-shortcode-preview-container">'.
|
656 |
'<input type="text" id="wppagallery-shortcode-preview" style="background-color:#ddd;width:100%;height:26px;display:none" value="[wppa]" />'.
|
657 |
'</div>'.
|
658 |
|
wppa-help.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
* admin help page
|
6 |
-
* version 8.1.
|
7 |
*/
|
8 |
|
9 |
function _wppa_page_help() {
|
@@ -13,20 +13,20 @@ global $wppa_revno;
|
|
13 |
?>
|
14 |
<div class="wrap">
|
15 |
|
16 |
-
<h3><?php echo sprintf(__('You will find all information and examples on the new %s%s%s site', 'wp-photo-album-plus'), '<a href="https://wppa.nl/" target="_blank" >', esc_attr( __( 'Docs & Demos', 'wp-photo-album-plus' ) ), '</a>' ) ?></h3>
|
17 |
|
18 |
-
<h3><?php _e('About and credits', 'wp-photo-album-plus'); ?></h3>
|
19 |
<p>
|
20 |
-
<?php _e('WP Photo Album Plus is extended with many new features and is maintained by J.N. Breetvelt, a.k.a. OpaJaap', 'wp-photo-album-plus'); ?><br>
|
21 |
-
<?php _e('Thanx to R.J. Kaplan for WP Photo Album 1.5.1.', 'wp-photo-album-plus'); ?><br>
|
22 |
-
<?php _e('Thanx to E.S. Rosenberg for programming tips on security issues.', 'wp-photo-album-plus'); ?><br>
|
23 |
-
<?php _e('Thanx to Pavel Šorejs for the Numbar code.', 'wp-photo-album-plus'); ?><br>
|
24 |
-
<?php _e('Thanx to the users who reported bugs and asked for enhancements. Without them WPPA should not have been what it is now!', 'wp-photo-album-plus'); ?>
|
25 |
</p>
|
26 |
|
27 |
-
<h3><?php _e('Licence', 'wp-photo-album-plus'); ?></h3>
|
28 |
<p>
|
29 |
-
<?php _e('WP Photo Album is released under the', 'wp-photo-album-plus'); ?> <a href="http://www.gnu.org/licenses/gpl-2.0.html">GPLv2 or later</a> <?php _e('licence.', 'wp-photo-album-plus'); ?>
|
30 |
</p>
|
31 |
|
32 |
</div>
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
* admin help page
|
6 |
+
* version 8.1.08.003
|
7 |
*/
|
8 |
|
9 |
function _wppa_page_help() {
|
13 |
?>
|
14 |
<div class="wrap">
|
15 |
|
16 |
+
<h3><?php echo sprintf(__('You will find all information and examples on the new %s%s%s site', 'wp-photo-album-plus' ), '<a href="https://wppa.nl/" target="_blank" >', esc_attr( __( 'Docs & Demos', 'wp-photo-album-plus' ) ), '</a>' ) ?></h3>
|
17 |
|
18 |
+
<h3><?php _e('About and credits', 'wp-photo-album-plus' ); ?></h3>
|
19 |
<p>
|
20 |
+
<?php _e('WP Photo Album Plus is extended with many new features and is maintained by J.N. Breetvelt, a.k.a. OpaJaap', 'wp-photo-album-plus' ); ?><br>
|
21 |
+
<?php _e('Thanx to R.J. Kaplan for WP Photo Album 1.5.1.', 'wp-photo-album-plus' ); ?><br>
|
22 |
+
<?php _e('Thanx to E.S. Rosenberg for programming tips on security issues.', 'wp-photo-album-plus' ); ?><br>
|
23 |
+
<?php _e('Thanx to Pavel Šorejs for the Numbar code.', 'wp-photo-album-plus' ); ?><br>
|
24 |
+
<?php _e('Thanx to the users who reported bugs and asked for enhancements. Without them WPPA should not have been what it is now!', 'wp-photo-album-plus' ); ?>
|
25 |
</p>
|
26 |
|
27 |
+
<h3><?php _e('Licence', 'wp-photo-album-plus' ); ?></h3>
|
28 |
<p>
|
29 |
+
<?php _e('WP Photo Album is released under the', 'wp-photo-album-plus' ); ?> <a href="http://www.gnu.org/licenses/gpl-2.0.html">GPLv2 or later</a> <?php _e('licence.', 'wp-photo-album-plus' ); ?>
|
30 |
</p>
|
31 |
|
32 |
</div>
|
wppa-import.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -356,7 +356,7 @@ global $wppa_session;
|
|
356 |
__( 'Working, please wait...', 'wp-photo-album-plus' ) . '
|
357 |
</span>
|
358 |
<br>' .
|
359 |
-
__( 'You can enter
|
360 |
}
|
361 |
wppa_echo( '</div>' );
|
362 |
}
|
@@ -570,7 +570,7 @@ global $wppa_session;
|
|
570 |
// The album selection
|
571 |
wppa_echo( '
|
572 |
<p class="hideifupdate" >' .
|
573 |
-
__( 'Default album for import:', 'wp-photo-album-plus') .
|
574 |
wppa_album_select_a( array( 'path' => true,
|
575 |
'selected' => wppa_get_option( 'wppa-photo-album-import-'.wppa_get_user(), '0' ),
|
576 |
'addpleaseselect' => true,
|
@@ -586,18 +586,18 @@ global $wppa_session;
|
|
586 |
'tagstyle' => '',
|
587 |
) ) .
|
588 |
wppa_edit_album_link_button( 'wppa-photo-album' ) .
|
589 |
-
__( 'Photos that have (<em>name</em>)[<em>album</em>] will be imported by that <em>name</em> in that <em>album</em>.', 'wp-photo-album-plus') . '
|
590 |
</p>
|
591 |
<p>' );
|
592 |
|
593 |
// Watermark
|
594 |
if ( wppa_switch( 'watermark_on' ) && ( wppa_switch( 'watermark_user' ) || current_user_can( 'wppa_settings' ) ) ) {
|
595 |
wppa_echo(
|
596 |
-
__( 'Apply watermark file:', 'wp-photo-album-plus') .
|
597 |
'<select name="wppa-watermark-file" id="wppa-watermark-file" >' .
|
598 |
wppa_watermark_file_select( 'user' ) .
|
599 |
'</select>' .
|
600 |
-
__( 'Position:', 'wp-photo-album-plus') .
|
601 |
'<select name="wppa-watermark-pos" id="wppa-watermark-pos" >' .
|
602 |
wppa_watermark_pos_select( 'user' ) .
|
603 |
'</select>' );
|
@@ -634,7 +634,7 @@ global $wppa_session;
|
|
634 |
/>
|
635 |
<b>
|
636 |
' .
|
637 |
-
__( 'Check/uncheck all', 'wp-photo-album-plus') . '
|
638 |
</b>
|
639 |
</td>' );
|
640 |
|
@@ -866,7 +866,7 @@ global $wppa_session;
|
|
866 |
// Album to import to
|
867 |
wppa_echo( '
|
868 |
<p class="hideifupdate" >' .
|
869 |
-
__( 'Album to import to:', 'wp-photo-album-plus') .
|
870 |
wppa_album_select_a( array( 'path' => true,
|
871 |
'selected' => wppa_get_option( 'wppa-video-album-import-'.wppa_get_user(), '0' ),
|
872 |
'addpleaseselect' => true,
|
@@ -983,7 +983,7 @@ global $wppa_session;
|
|
983 |
// Album to import to
|
984 |
wppa_echo( '
|
985 |
<p class="hideifupdate" >' .
|
986 |
-
__( 'Album to import to:', 'wp-photo-album-plus') .
|
987 |
wppa_album_select_a( array( 'path' => true,
|
988 |
'selected' => wppa_get_option( 'wppa-audio-album-import-'.wppa_get_user(), '0' ),
|
989 |
'addpleaseselect' => true,
|
@@ -1174,7 +1174,7 @@ global $wppa_session;
|
|
1174 |
// Album to import to
|
1175 |
wppa_echo( '
|
1176 |
<p class="hideifupdate" >' .
|
1177 |
-
__( 'Album to import to:', 'wp-photo-album-plus') .
|
1178 |
wppa_album_select_a( array( 'path' => true,
|
1179 |
'selected' => wppa_get_option( 'wppa-document-album-import-'.wppa_get_user(), '0' ),
|
1180 |
'addpleaseselect' => true,
|
@@ -1546,10 +1546,10 @@ global $wppa_session;
|
|
1546 |
}
|
1547 |
else {
|
1548 |
if ( $source_type == 'local' ) {
|
1549 |
-
wppa_ok_message( __( 'There are no importable files found in directory:', 'wp-photo-album-plus').' '.$source );
|
1550 |
}
|
1551 |
else {
|
1552 |
-
wppa_ok_message( __( 'There are no photos found or left to process at url:', 'wp-photo-album-plus').' '.$source_url );
|
1553 |
}
|
1554 |
}
|
1555 |
wppa_echo( '
|
@@ -1601,7 +1601,7 @@ global $wppa_session;
|
|
1601 |
}
|
1602 |
|
1603 |
if ( wppa( 'continue' ) ) {
|
1604 |
-
wppa_warning_message( __( 'Trying to continue...', 'wp-photo-album-plus') );
|
1605 |
$the_js = 'document.location=\'' . get_admin_url() . 'admin.php?page=wppa_import_photos&continue=1&nonce=' . wp_create_nonce( 'dirimport' ) . '\';';
|
1606 |
wppa_add_inline_script( 'wppa-admin', $the_js );
|
1607 |
}
|
@@ -1832,8 +1832,8 @@ global $wppa_session;
|
|
1832 |
if ( is_numeric( $data ) ) $aord = $data;
|
1833 |
break;
|
1834 |
case 'prnt=':
|
1835 |
-
if ( $data == __( '--- none ---', 'wp-photo-album-plus') ) $parent = '0';
|
1836 |
-
elseif ( $data == __( '--- separate ---', 'wp-photo-album-plus') ) $parent = '-1';
|
1837 |
else {
|
1838 |
$prnt = wppa_get_album_id( $data );
|
1839 |
if ( $prnt != '' ) {
|
@@ -1841,7 +1841,7 @@ global $wppa_session;
|
|
1841 |
}
|
1842 |
else {
|
1843 |
$parent = '0';
|
1844 |
-
wppa_warning_message( __( 'Unknown parent album:', 'wp-photo-album-plus').' '.htmlspecialchars($data).' '.__( '--- none --- used.', 'wp-photo-album-plus') );
|
1845 |
}
|
1846 |
}
|
1847 |
break;
|
@@ -1873,7 +1873,7 @@ global $wppa_session;
|
|
1873 |
) );
|
1874 |
|
1875 |
if ( $id === false ) {
|
1876 |
-
wppa_error_message( __( 'Could not create album.', 'wp-photo-album-plus') );
|
1877 |
}
|
1878 |
else {
|
1879 |
//$id = wppa_get_album_id( $name );
|
@@ -1902,14 +1902,14 @@ global $wppa_session;
|
|
1902 |
$album = wppa_get_album_id( wppa_get( 'cre-album' ) );
|
1903 |
if ( ! $album ) { // the album does not exist yet, create it
|
1904 |
$name = wppa_get( 'cre-album' );
|
1905 |
-
$desc = sprintf( __( 'This album has been converted from ngg gallery %s', 'wp-photo-album-plus'), $name );
|
1906 |
$uplim = '0/0'; // Unlimited not to destroy the conversion process!!
|
1907 |
$album = wppa_create_album_entry( array ( 'name' => $name,
|
1908 |
'description' => $desc,
|
1909 |
'upload_limit' => $uplim
|
1910 |
) );
|
1911 |
if ( $album === false ) {
|
1912 |
-
wppa_error_message( __( 'Could not create album.', 'wp-photo-album-plus').'<br/>Query = '.$query );
|
1913 |
wp_die( 'Sorry, cannot continue' );
|
1914 |
}
|
1915 |
}
|
@@ -1919,7 +1919,7 @@ global $wppa_session;
|
|
1919 |
}
|
1920 |
|
1921 |
// Report starting process
|
1922 |
-
wppa_ok_message( __( 'Processing files, please wait...', 'wp-photo-album-plus').' '.__( 'If the line of dots stops growing or your browser reports Ready, your server has given up. In that case: try again', 'wp-photo-album-plus').' <a href="'.wppa_dbg_url( get_admin_url().'admin.php?page=wppa_import_photos' ).'">'.__( 'here.', 'wp-photo-album-plus').'</a>' );
|
1923 |
|
1924 |
// Do them all
|
1925 |
foreach ( array_keys( $files ) as $file_idx ) {
|
@@ -2057,8 +2057,8 @@ global $wppa_session;
|
|
2057 |
$id = basename( $file );
|
2058 |
}
|
2059 |
if ( wppa_switch( 'void_dups' ) && wppa_is_file_duplicate_photo( $id, $alb ) ) {
|
2060 |
-
wppa_warning_message( htmlspecialchars( sprintf( __( 'Photo %s already exists in album %s. (1)', 'wp-photo-album-plus'), $id, $alb ) ) );
|
2061 |
-
wppa( 'ajax_import_files_error', __( 'Duplicate', 'wp-photo-album-plus') );
|
2062 |
if ( wppa( 'is_remote' ) ) {
|
2063 |
$path = WPPA_DEPOT_PATH . '/' . basename( wppa_compress_tree_path( $unsanitized_path_name ) );
|
2064 |
if ( wppa_is_file( $path ) ) {
|
@@ -2112,7 +2112,7 @@ global $wppa_session;
|
|
2112 |
}
|
2113 |
}
|
2114 |
else {
|
2115 |
-
wppa_error_message( __( 'Error inserting photo', 'wp-photo-album-plus') . ' ' . htmlspecialchars( basename( $file ) ) . '.' );
|
2116 |
if ( $delf ) {
|
2117 |
wppa_unlink( $unsanitized_path_name );
|
2118 |
}
|
@@ -2120,7 +2120,7 @@ global $wppa_session;
|
|
2120 |
$path = WPPA_DEPOT_PATH . '/' . basename( wppa_compress_tree_path( $unsanitized_path_name ) );
|
2121 |
if ( is_file( $path ) ) {
|
2122 |
if ( filesize( $path ) > 0 ) {
|
2123 |
-
wppa( 'ajax_import_files_error', __( 'Saved to depot', 'wp-photo-album-plus') );
|
2124 |
}
|
2125 |
else {
|
2126 |
wppa_unlink( $path );
|
@@ -2132,7 +2132,7 @@ global $wppa_session;
|
|
2132 |
}
|
2133 |
}
|
2134 |
else {
|
2135 |
-
wppa_error_message( sprintf( __( 'Error inserting photo %s, unknown or non existent album.', 'wp-photo-album-plus'), htmlspecialchars( basename( $file ) ) ) );
|
2136 |
}
|
2137 |
} // Insert
|
2138 |
}
|
@@ -2140,7 +2140,7 @@ global $wppa_session;
|
|
2140 |
$idx++;
|
2141 |
if ( $source_type == 'remote' ) unset( $files[$file_idx] );
|
2142 |
if ( wppa_is_time_up() ) {
|
2143 |
-
wppa_warning_message( htmlspecialchars( sprintf( __( 'Time out. %s photos imported. Please restart this operation.', 'wp-photo-album-plus'), $pcount ) ) );
|
2144 |
wppa_set_last_album( $album );
|
2145 |
if ( $source_type == 'remote' ) update_option( 'wppa_import_source_url_found_'.$user, $files );
|
2146 |
return;
|
@@ -2196,7 +2196,7 @@ global $wppa_session;
|
|
2196 |
}
|
2197 |
}
|
2198 |
else {
|
2199 |
-
wppa_error_message( sprintf( __( 'Error inserting video %s, unknown or non existent album.', 'wp-photo-album-plus'), htmlspecialchars( basename( $file ) ) ) );
|
2200 |
}
|
2201 |
}
|
2202 |
}
|
@@ -2228,7 +2228,7 @@ global $wppa_session;
|
|
2228 |
}
|
2229 |
}
|
2230 |
else {
|
2231 |
-
wppa_error_message( sprintf( __( 'Error inserting audio %s, unknown or non existent album.', 'wp-photo-album-plus'), htmlspecialchars ( basename( $file ) ) ) );
|
2232 |
}
|
2233 |
}
|
2234 |
}
|
@@ -2260,7 +2260,7 @@ global $wppa_session;
|
|
2260 |
}
|
2261 |
}
|
2262 |
else {
|
2263 |
-
wppa_error_message( sprintf( __( 'Error inserting document %s, unknown or non existent album.', 'wp-photo-album-plus'), htmlspecialchars( basename( $file ) ) ) );
|
2264 |
}
|
2265 |
}
|
2266 |
}
|
@@ -2276,7 +2276,7 @@ global $wppa_session;
|
|
2276 |
// Make sure the feature is on
|
2277 |
if ( ! wppa_switch( 'custom_fields' ) ) {
|
2278 |
wppa_update_option( 'wppa_custom_fields', 'yes' );
|
2279 |
-
wppa_echo( '<b>' . __( 'Custom datafields enabled', 'wp-photo-album-plus').'</b><br>' );
|
2280 |
}
|
2281 |
|
2282 |
// Get the captions we already have
|
@@ -2368,24 +2368,24 @@ global $wppa_session;
|
|
2368 |
// Open file
|
2369 |
$handle = wppa_fopen( $tempfile, "rt" );
|
2370 |
if ( ! $handle ) {
|
2371 |
-
wppa_error_message( __( 'Can not open file. Can not continue. (1)', 'wp-photo-album-plus') );
|
2372 |
return;
|
2373 |
}
|
2374 |
$write_handle = wppa_fopen( $file, "wt" );
|
2375 |
if ( ! $write_handle ) {
|
2376 |
-
wppa_error_message( __( 'Can not open file. Can not continue. (2)', 'wp-photo-album-plus') );
|
2377 |
return;
|
2378 |
}
|
2379 |
|
2380 |
// Read header
|
2381 |
$header = fgets( $handle, 4096 );
|
2382 |
if ( ! $header ) {
|
2383 |
-
wppa_error_message( __( 'Can not read header. Can not continue.', 'wp-photo-album-plus') );
|
2384 |
fclose( $handle );
|
2385 |
return;
|
2386 |
}
|
2387 |
fputs( $write_handle, $header );
|
2388 |
-
wppa_echo( __( 'Read header:', 'wp-photo-album-plus') . ' ' . $header . '<br>' );
|
2389 |
|
2390 |
// Is it a db table?
|
2391 |
if ( $is_db_table ) {
|
@@ -2413,7 +2413,7 @@ global $wppa_session;
|
|
2413 |
}
|
2414 |
if ( ! $ok ) {
|
2415 |
wppa_error_message( htmlspecialchars( 'Field '.$csv_field.' not found in db table '.$is_db_table.' description' ) );
|
2416 |
-
wppa_error_message( __( 'Invalid header. Can not continue.', 'wp-photo-album-plus') );
|
2417 |
fclose( $handle );
|
2418 |
return;
|
2419 |
}
|
@@ -2507,7 +2507,7 @@ global $wppa_session;
|
|
2507 |
// Interprete header
|
2508 |
$captions = str_getcsv( $header, wppa_opt( 'csv_sep' ) );
|
2509 |
if ( ! is_array( $captions ) || count( $captions ) < '2' ) {
|
2510 |
-
wppa_error_message( __( 'Invalid header. Can not continue.', 'wp-photo-album-plus') );
|
2511 |
fclose( $handle );
|
2512 |
return;
|
2513 |
}
|
@@ -2516,7 +2516,7 @@ global $wppa_session;
|
|
2516 |
foreach ( array_keys( $captions ) as $captidx ) {
|
2517 |
if ( $captidx == '0' ) {
|
2518 |
if ( ! in_array( strtolower( trim( $captions['0'] ) ), array( 'name', 'photoname', 'filename' ) ) ) {
|
2519 |
-
wppa_error_message( __( 'Invalid header. First item must be \'name\', \'photoname\' or \'filename\'', 'wp-photo-album-plus') );
|
2520 |
fclose( $handle );
|
2521 |
return;
|
2522 |
}
|
@@ -2530,7 +2530,7 @@ global $wppa_session;
|
|
2530 |
}
|
2531 |
elseif ( ! in_array( $captions[$captidx], $cust_labels ) ) {
|
2532 |
if ( ! in_array( '', $cust_labels ) ) {
|
2533 |
-
wppa_error_message( __( 'All available custom data fields are in use. There is no space for', 'wp-photo-album-plus') . ' ' . htmlspecialchars( $captions[$captidx] ) );
|
2534 |
fclose( $handle );
|
2535 |
return;
|
2536 |
}
|
@@ -2541,7 +2541,7 @@ global $wppa_session;
|
|
2541 |
$cust_labels[$i] = $captions[$captidx];
|
2542 |
wppa_update_option( 'wppa_custom_caption_' . $i, $cust_labels[$i] );
|
2543 |
wppa_update_option( 'wppa_custom_visible_' . $i, 'yes' );
|
2544 |
-
wppa_log( 'dbg', sprintf( __( 'New caption %s added.', 'wp-photo-album-plus'), $cust_labels[$i] ) );
|
2545 |
}
|
2546 |
}
|
2547 |
|
@@ -2571,7 +2571,7 @@ global $wppa_session;
|
|
2571 |
while ( ! feof( $handle ) ) {
|
2572 |
$dataline = fgets( $handle, 4096 );
|
2573 |
if ( $dataline ) {
|
2574 |
-
wppa_log( 'dbg', __( 'Read data:', 'wp-photo-album-plus') . ' ' . trim( $dataline ) );
|
2575 |
$data_arr = str_getcsv( $dataline, wppa_opt( 'csv_sep' ) );
|
2576 |
foreach( array_keys( $data_arr ) as $i ) {
|
2577 |
if ( ! seems_utf8( $data_arr[$i] ) ) {
|
@@ -2622,7 +2622,7 @@ global $wppa_session;
|
|
2622 |
wppa_update_photo( array( 'id' => $photo['id'], $p => $value ) );
|
2623 |
}
|
2624 |
else {
|
2625 |
-
wppa_wrong_value( $value, $field, __('Album does not exist', 'wp-photo-album-plus') );
|
2626 |
}
|
2627 |
break;
|
2628 |
case 'name':
|
@@ -2769,26 +2769,26 @@ global $wppa_session;
|
|
2769 |
}
|
2770 |
}
|
2771 |
|
2772 |
-
wppa_ok_message( __( 'Done processing files.', 'wp-photo-album-plus') );
|
2773 |
|
2774 |
if ( $pcount == '0' && $acount == '0' && $zcount == '0' && $dircount == '0' && $photocount == '0' && $videocount == '0' && $audiocount == '0' && $csvcount == '0' && $documentcount == '0' ) {
|
2775 |
-
wppa_warning_message( __( 'No files to import.', 'wp-photo-album-plus') );
|
2776 |
}
|
2777 |
else {
|
2778 |
$msg = '';
|
2779 |
-
if ( $zcount ) $msg .= $zcount.' '.__( 'Zipfiles extracted.', 'wp-photo-album-plus').' ';
|
2780 |
-
if ( $acount ) $msg .= $acount.' '.__( 'Albums created.', 'wp-photo-album-plus').' ';
|
2781 |
-
if ( $dircount ) $msg .= $dircount.' '.__( 'Directory to album imports.', 'wp-photo-album-plus').' ';
|
2782 |
-
if ( $photocount ) $msg .= ' '.sprintf( __( 'With total %s photos.', 'wp-photo-album-plus'), $photocount ).' ';
|
2783 |
if ( $pcount ) {
|
2784 |
if ( wppa_get( 'update' ) ) {
|
2785 |
$msg .= $pcount.' '.__( 'Photos updated', 'wp-photo-album-plus' );
|
2786 |
if ( $totpcount != $pcount ) {
|
2787 |
-
$msg .= ' '.sprintf( __( 'to %s locations', 'wp-photo-album-plus'), $totpcount );
|
2788 |
}
|
2789 |
$msg .= '.';
|
2790 |
}
|
2791 |
-
else $msg .= $pcount.' '.__( 'single photos imported.', 'wp-photo-album-plus').' ';
|
2792 |
}
|
2793 |
if ( $videocount ) {
|
2794 |
$msg .= $videocount.' '.__( 'Videos imported.', 'wp-photo-album-plus' );
|
@@ -2800,7 +2800,7 @@ global $wppa_session;
|
|
2800 |
$msg .= $documentcount.' '.__( 'Documents imported.', 'wp-photo-album-plus' );
|
2801 |
}
|
2802 |
if ( $csvcount ) {
|
2803 |
-
$msg .= $csvcount . ' ' . __( 'CSVs imported,', 'wp-photo-album-plus') . ' ' .
|
2804 |
$photos_processed_csv .' '. __( 'items processed.', 'wp-photo-album-plus' ) . ' ' .
|
2805 |
$photos_skipped_csv . ' ' . __( 'items skipped.', 'wp-photo-album-plus' );
|
2806 |
}
|
@@ -2974,7 +2974,7 @@ function wppa_extract( $xpath, $delz ) {
|
|
2974 |
$err = '0';
|
2975 |
if ( ! class_exists( 'ZipArchive' ) ) {
|
2976 |
$err = '3';
|
2977 |
-
wppa_error_message( __( 'Class ZipArchive does not exist! Check your php configuration', 'wp-photo-album-plus') );
|
2978 |
}
|
2979 |
else {
|
2980 |
|
@@ -3006,18 +3006,18 @@ function wppa_extract( $xpath, $delz ) {
|
|
3006 |
|
3007 |
// Assuming that entries without a file extension are directries. No warning on directory.
|
3008 |
elseif ( strpos( $stat['name'], '.' ) !== false && strlen( $file_ext ) < 5 ) {
|
3009 |
-
wppa_warning_message( htmlspecialchars( sprintf( __( 'File %s is of an unsupported filetype and has been ignored during extraction.', 'wp-photo-album-plus'), wppa_sanitize_file_name( $stat['name'] ) ) ) );
|
3010 |
$skip++;
|
3011 |
}
|
3012 |
}
|
3013 |
|
3014 |
$zip->close();
|
3015 |
-
wppa_ok_message( htmlspecialchars( sprintf( __( 'Zipfile %s processed. %s files extracted, %s files skipped.', 'wp-photo-album-plus'), basename( $path ), $done, $skip ) ) );
|
3016 |
if ( $delz ) {
|
3017 |
wppa_unlink( $xpath );
|
3018 |
}
|
3019 |
} else {
|
3020 |
-
wppa_error_message( __( 'Failed to extract', 'wp-photo-album-plus').' '.htmlspecialchars( $path ) );
|
3021 |
$err = '1';
|
3022 |
}
|
3023 |
}
|
@@ -3061,7 +3061,7 @@ global $wppa_session;
|
|
3061 |
'a_parent' => $parent
|
3062 |
) );
|
3063 |
if ( $alb === false ) {
|
3064 |
-
wppa_error_message( __( 'Could not create album.', 'wp-photo-album-plus').'<br/>Query = '.htmlspecialchars( $query ) );
|
3065 |
wp_die( 'Sorry, cannot continue' );
|
3066 |
}
|
3067 |
else {
|
@@ -3083,11 +3083,11 @@ global $wppa_session;
|
|
3083 |
// Insert the post into the database
|
3084 |
$pagid = wp_insert_post( $my_post );
|
3085 |
if ( $pagid ) {
|
3086 |
-
wppa_ok_message( sprintf( __( 'Page <a href="%s" target="_blank" >%s</a> created.', 'wp-photo-album-plus'), home_url().'?page_id='.$pagid, htmlspecialchars( $name ) ) );
|
3087 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_albums SET cover_linkpage = %s WHERE id = %s", $pagid, $alb ) );
|
3088 |
}
|
3089 |
else {
|
3090 |
-
wppa_error_message( __( 'Could not create page.', 'wp-photo-album-plus') );
|
3091 |
}
|
3092 |
}
|
3093 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
356 |
__( 'Working, please wait...', 'wp-photo-album-plus' ) . '
|
357 |
</span>
|
358 |
<br>' .
|
359 |
+
__( 'You can enter a full url to an image file like <i>http://mysite.com/wp-content/uploads/wppa/4711.jpg</i>', 'wp-photo-album-plus' ) );
|
360 |
}
|
361 |
wppa_echo( '</div>' );
|
362 |
}
|
570 |
// The album selection
|
571 |
wppa_echo( '
|
572 |
<p class="hideifupdate" >' .
|
573 |
+
__( 'Default album for import:', 'wp-photo-album-plus' ) .
|
574 |
wppa_album_select_a( array( 'path' => true,
|
575 |
'selected' => wppa_get_option( 'wppa-photo-album-import-'.wppa_get_user(), '0' ),
|
576 |
'addpleaseselect' => true,
|
586 |
'tagstyle' => '',
|
587 |
) ) .
|
588 |
wppa_edit_album_link_button( 'wppa-photo-album' ) .
|
589 |
+
__( 'Photos that have (<em>name</em>)[<em>album</em>] will be imported by that <em>name</em> in that <em>album</em>.', 'wp-photo-album-plus' ) . '
|
590 |
</p>
|
591 |
<p>' );
|
592 |
|
593 |
// Watermark
|
594 |
if ( wppa_switch( 'watermark_on' ) && ( wppa_switch( 'watermark_user' ) || current_user_can( 'wppa_settings' ) ) ) {
|
595 |
wppa_echo(
|
596 |
+
__( 'Apply watermark file:', 'wp-photo-album-plus' ) .
|
597 |
'<select name="wppa-watermark-file" id="wppa-watermark-file" >' .
|
598 |
wppa_watermark_file_select( 'user' ) .
|
599 |
'</select>' .
|
600 |
+
__( 'Position:', 'wp-photo-album-plus' ) .
|
601 |
'<select name="wppa-watermark-pos" id="wppa-watermark-pos" >' .
|
602 |
wppa_watermark_pos_select( 'user' ) .
|
603 |
'</select>' );
|
634 |
/>
|
635 |
<b>
|
636 |
' .
|
637 |
+
__( 'Check/uncheck all', 'wp-photo-album-plus' ) . '
|
638 |
</b>
|
639 |
</td>' );
|
640 |
|
866 |
// Album to import to
|
867 |
wppa_echo( '
|
868 |
<p class="hideifupdate" >' .
|
869 |
+
__( 'Album to import to:', 'wp-photo-album-plus' ) .
|
870 |
wppa_album_select_a( array( 'path' => true,
|
871 |
'selected' => wppa_get_option( 'wppa-video-album-import-'.wppa_get_user(), '0' ),
|
872 |
'addpleaseselect' => true,
|
983 |
// Album to import to
|
984 |
wppa_echo( '
|
985 |
<p class="hideifupdate" >' .
|
986 |
+
__( 'Album to import to:', 'wp-photo-album-plus' ) .
|
987 |
wppa_album_select_a( array( 'path' => true,
|
988 |
'selected' => wppa_get_option( 'wppa-audio-album-import-'.wppa_get_user(), '0' ),
|
989 |
'addpleaseselect' => true,
|
1174 |
// Album to import to
|
1175 |
wppa_echo( '
|
1176 |
<p class="hideifupdate" >' .
|
1177 |
+
__( 'Album to import to:', 'wp-photo-album-plus' ) .
|
1178 |
wppa_album_select_a( array( 'path' => true,
|
1179 |
'selected' => wppa_get_option( 'wppa-document-album-import-'.wppa_get_user(), '0' ),
|
1180 |
'addpleaseselect' => true,
|
1546 |
}
|
1547 |
else {
|
1548 |
if ( $source_type == 'local' ) {
|
1549 |
+
wppa_ok_message( __( 'There are no importable files found in directory:', 'wp-photo-album-plus' ).' '.$source );
|
1550 |
}
|
1551 |
else {
|
1552 |
+
wppa_ok_message( __( 'There are no photos found or left to process at url:', 'wp-photo-album-plus' ).' '.$source_url );
|
1553 |
}
|
1554 |
}
|
1555 |
wppa_echo( '
|
1601 |
}
|
1602 |
|
1603 |
if ( wppa( 'continue' ) ) {
|
1604 |
+
wppa_warning_message( __( 'Trying to continue...', 'wp-photo-album-plus' ) );
|
1605 |
$the_js = 'document.location=\'' . get_admin_url() . 'admin.php?page=wppa_import_photos&continue=1&nonce=' . wp_create_nonce( 'dirimport' ) . '\';';
|
1606 |
wppa_add_inline_script( 'wppa-admin', $the_js );
|
1607 |
}
|
1832 |
if ( is_numeric( $data ) ) $aord = $data;
|
1833 |
break;
|
1834 |
case 'prnt=':
|
1835 |
+
if ( $data == __( '--- none ---', 'wp-photo-album-plus' ) ) $parent = '0';
|
1836 |
+
elseif ( $data == __( '--- separate ---', 'wp-photo-album-plus' ) ) $parent = '-1';
|
1837 |
else {
|
1838 |
$prnt = wppa_get_album_id( $data );
|
1839 |
if ( $prnt != '' ) {
|
1841 |
}
|
1842 |
else {
|
1843 |
$parent = '0';
|
1844 |
+
wppa_warning_message( __( 'Unknown parent album:', 'wp-photo-album-plus' ).' '.htmlspecialchars($data).' '.__( '--- none --- used.', 'wp-photo-album-plus' ) );
|
1845 |
}
|
1846 |
}
|
1847 |
break;
|
1873 |
) );
|
1874 |
|
1875 |
if ( $id === false ) {
|
1876 |
+
wppa_error_message( __( 'Could not create album.', 'wp-photo-album-plus' ) );
|
1877 |
}
|
1878 |
else {
|
1879 |
//$id = wppa_get_album_id( $name );
|
1902 |
$album = wppa_get_album_id( wppa_get( 'cre-album' ) );
|
1903 |
if ( ! $album ) { // the album does not exist yet, create it
|
1904 |
$name = wppa_get( 'cre-album' );
|
1905 |
+
$desc = sprintf( __( 'This album has been converted from ngg gallery %s', 'wp-photo-album-plus' ), $name );
|
1906 |
$uplim = '0/0'; // Unlimited not to destroy the conversion process!!
|
1907 |
$album = wppa_create_album_entry( array ( 'name' => $name,
|
1908 |
'description' => $desc,
|
1909 |
'upload_limit' => $uplim
|
1910 |
) );
|
1911 |
if ( $album === false ) {
|
1912 |
+
wppa_error_message( __( 'Could not create album.', 'wp-photo-album-plus' ).'<br/>Query = '.$query );
|
1913 |
wp_die( 'Sorry, cannot continue' );
|
1914 |
}
|
1915 |
}
|
1919 |
}
|
1920 |
|
1921 |
// Report starting process
|
1922 |
+
wppa_ok_message( __( 'Processing files, please wait...', 'wp-photo-album-plus' ).' '.__( 'If the line of dots stops growing or your browser reports Ready, your server has given up. In that case: try again', 'wp-photo-album-plus' ).' <a href="'.wppa_dbg_url( get_admin_url().'admin.php?page=wppa_import_photos' ).'">'.__( 'here.', 'wp-photo-album-plus' ).'</a>' );
|
1923 |
|
1924 |
// Do them all
|
1925 |
foreach ( array_keys( $files ) as $file_idx ) {
|
2057 |
$id = basename( $file );
|
2058 |
}
|
2059 |
if ( wppa_switch( 'void_dups' ) && wppa_is_file_duplicate_photo( $id, $alb ) ) {
|
2060 |
+
wppa_warning_message( htmlspecialchars( sprintf( __( 'Photo %s already exists in album %s. (1)', 'wp-photo-album-plus' ), $id, $alb ) ) );
|
2061 |
+
wppa( 'ajax_import_files_error', __( 'Duplicate', 'wp-photo-album-plus' ) );
|
2062 |
if ( wppa( 'is_remote' ) ) {
|
2063 |
$path = WPPA_DEPOT_PATH . '/' . basename( wppa_compress_tree_path( $unsanitized_path_name ) );
|
2064 |
if ( wppa_is_file( $path ) ) {
|
2112 |
}
|
2113 |
}
|
2114 |
else {
|
2115 |
+
wppa_error_message( __( 'Error inserting photo', 'wp-photo-album-plus' ) . ' ' . htmlspecialchars( basename( $file ) ) . '.' );
|
2116 |
if ( $delf ) {
|
2117 |
wppa_unlink( $unsanitized_path_name );
|
2118 |
}
|
2120 |
$path = WPPA_DEPOT_PATH . '/' . basename( wppa_compress_tree_path( $unsanitized_path_name ) );
|
2121 |
if ( is_file( $path ) ) {
|
2122 |
if ( filesize( $path ) > 0 ) {
|
2123 |
+
wppa( 'ajax_import_files_error', __( 'Saved to depot', 'wp-photo-album-plus' ) );
|
2124 |
}
|
2125 |
else {
|
2126 |
wppa_unlink( $path );
|
2132 |
}
|
2133 |
}
|
2134 |
else {
|
2135 |
+
wppa_error_message( sprintf( __( 'Error inserting photo %s, unknown or non existent album.', 'wp-photo-album-plus' ), htmlspecialchars( basename( $file ) ) ) );
|
2136 |
}
|
2137 |
} // Insert
|
2138 |
}
|
2140 |
$idx++;
|
2141 |
if ( $source_type == 'remote' ) unset( $files[$file_idx] );
|
2142 |
if ( wppa_is_time_up() ) {
|
2143 |
+
wppa_warning_message( htmlspecialchars( sprintf( __( 'Time out. %s photos imported. Please restart this operation.', 'wp-photo-album-plus' ), $pcount ) ) );
|
2144 |
wppa_set_last_album( $album );
|
2145 |
if ( $source_type == 'remote' ) update_option( 'wppa_import_source_url_found_'.$user, $files );
|
2146 |
return;
|
2196 |
}
|
2197 |
}
|
2198 |
else {
|
2199 |
+
wppa_error_message( sprintf( __( 'Error inserting video %s, unknown or non existent album.', 'wp-photo-album-plus' ), htmlspecialchars( basename( $file ) ) ) );
|
2200 |
}
|
2201 |
}
|
2202 |
}
|
2228 |
}
|
2229 |
}
|
2230 |
else {
|
2231 |
+
wppa_error_message( sprintf( __( 'Error inserting audio %s, unknown or non existent album.', 'wp-photo-album-plus' ), htmlspecialchars ( basename( $file ) ) ) );
|
2232 |
}
|
2233 |
}
|
2234 |
}
|
2260 |
}
|
2261 |
}
|
2262 |
else {
|
2263 |
+
wppa_error_message( sprintf( __( 'Error inserting document %s, unknown or non existent album.', 'wp-photo-album-plus' ), htmlspecialchars( basename( $file ) ) ) );
|
2264 |
}
|
2265 |
}
|
2266 |
}
|
2276 |
// Make sure the feature is on
|
2277 |
if ( ! wppa_switch( 'custom_fields' ) ) {
|
2278 |
wppa_update_option( 'wppa_custom_fields', 'yes' );
|
2279 |
+
wppa_echo( '<b>' . __( 'Custom datafields enabled', 'wp-photo-album-plus' ).'</b><br>' );
|
2280 |
}
|
2281 |
|
2282 |
// Get the captions we already have
|
2368 |
// Open file
|
2369 |
$handle = wppa_fopen( $tempfile, "rt" );
|
2370 |
if ( ! $handle ) {
|
2371 |
+
wppa_error_message( __( 'Can not open file. Can not continue. (1)', 'wp-photo-album-plus' ) );
|
2372 |
return;
|
2373 |
}
|
2374 |
$write_handle = wppa_fopen( $file, "wt" );
|
2375 |
if ( ! $write_handle ) {
|
2376 |
+
wppa_error_message( __( 'Can not open file. Can not continue. (2)', 'wp-photo-album-plus' ) );
|
2377 |
return;
|
2378 |
}
|
2379 |
|
2380 |
// Read header
|
2381 |
$header = fgets( $handle, 4096 );
|
2382 |
if ( ! $header ) {
|
2383 |
+
wppa_error_message( __( 'Can not read header. Can not continue.', 'wp-photo-album-plus' ) );
|
2384 |
fclose( $handle );
|
2385 |
return;
|
2386 |
}
|
2387 |
fputs( $write_handle, $header );
|
2388 |
+
wppa_echo( __( 'Read header:', 'wp-photo-album-plus' ) . ' ' . $header . '<br>' );
|
2389 |
|
2390 |
// Is it a db table?
|
2391 |
if ( $is_db_table ) {
|
2413 |
}
|
2414 |
if ( ! $ok ) {
|
2415 |
wppa_error_message( htmlspecialchars( 'Field '.$csv_field.' not found in db table '.$is_db_table.' description' ) );
|
2416 |
+
wppa_error_message( __( 'Invalid header. Can not continue.', 'wp-photo-album-plus' ) );
|
2417 |
fclose( $handle );
|
2418 |
return;
|
2419 |
}
|
2507 |
// Interprete header
|
2508 |
$captions = str_getcsv( $header, wppa_opt( 'csv_sep' ) );
|
2509 |
if ( ! is_array( $captions ) || count( $captions ) < '2' ) {
|
2510 |
+
wppa_error_message( __( 'Invalid header. Can not continue.', 'wp-photo-album-plus' ) );
|
2511 |
fclose( $handle );
|
2512 |
return;
|
2513 |
}
|
2516 |
foreach ( array_keys( $captions ) as $captidx ) {
|
2517 |
if ( $captidx == '0' ) {
|
2518 |
if ( ! in_array( strtolower( trim( $captions['0'] ) ), array( 'name', 'photoname', 'filename' ) ) ) {
|
2519 |
+
wppa_error_message( __( 'Invalid header. First item must be \'name\', \'photoname\' or \'filename\'', 'wp-photo-album-plus' ) );
|
2520 |
fclose( $handle );
|
2521 |
return;
|
2522 |
}
|
2530 |
}
|
2531 |
elseif ( ! in_array( $captions[$captidx], $cust_labels ) ) {
|
2532 |
if ( ! in_array( '', $cust_labels ) ) {
|
2533 |
+
wppa_error_message( __( 'All available custom data fields are in use. There is no space for', 'wp-photo-album-plus' ) . ' ' . htmlspecialchars( $captions[$captidx] ) );
|
2534 |
fclose( $handle );
|
2535 |
return;
|
2536 |
}
|
2541 |
$cust_labels[$i] = $captions[$captidx];
|
2542 |
wppa_update_option( 'wppa_custom_caption_' . $i, $cust_labels[$i] );
|
2543 |
wppa_update_option( 'wppa_custom_visible_' . $i, 'yes' );
|
2544 |
+
wppa_log( 'dbg', sprintf( __( 'New caption %s added.', 'wp-photo-album-plus' ), $cust_labels[$i] ) );
|
2545 |
}
|
2546 |
}
|
2547 |
|
2571 |
while ( ! feof( $handle ) ) {
|
2572 |
$dataline = fgets( $handle, 4096 );
|
2573 |
if ( $dataline ) {
|
2574 |
+
wppa_log( 'dbg', __( 'Read data:', 'wp-photo-album-plus' ) . ' ' . trim( $dataline ) );
|
2575 |
$data_arr = str_getcsv( $dataline, wppa_opt( 'csv_sep' ) );
|
2576 |
foreach( array_keys( $data_arr ) as $i ) {
|
2577 |
if ( ! seems_utf8( $data_arr[$i] ) ) {
|
2622 |
wppa_update_photo( array( 'id' => $photo['id'], $p => $value ) );
|
2623 |
}
|
2624 |
else {
|
2625 |
+
wppa_wrong_value( $value, $field, __('Album does not exist', 'wp-photo-album-plus' ) );
|
2626 |
}
|
2627 |
break;
|
2628 |
case 'name':
|
2769 |
}
|
2770 |
}
|
2771 |
|
2772 |
+
wppa_ok_message( __( 'Done processing files.', 'wp-photo-album-plus' ) );
|
2773 |
|
2774 |
if ( $pcount == '0' && $acount == '0' && $zcount == '0' && $dircount == '0' && $photocount == '0' && $videocount == '0' && $audiocount == '0' && $csvcount == '0' && $documentcount == '0' ) {
|
2775 |
+
wppa_warning_message( __( 'No files to import.', 'wp-photo-album-plus' ) );
|
2776 |
}
|
2777 |
else {
|
2778 |
$msg = '';
|
2779 |
+
if ( $zcount ) $msg .= $zcount.' '.__( 'Zipfiles extracted.', 'wp-photo-album-plus' ).' ';
|
2780 |
+
if ( $acount ) $msg .= $acount.' '.__( 'Albums created.', 'wp-photo-album-plus' ).' ';
|
2781 |
+
if ( $dircount ) $msg .= $dircount.' '.__( 'Directory to album imports.', 'wp-photo-album-plus' ).' ';
|
2782 |
+
if ( $photocount ) $msg .= ' '.sprintf( __( 'With total %s photos.', 'wp-photo-album-plus' ), $photocount ).' ';
|
2783 |
if ( $pcount ) {
|
2784 |
if ( wppa_get( 'update' ) ) {
|
2785 |
$msg .= $pcount.' '.__( 'Photos updated', 'wp-photo-album-plus' );
|
2786 |
if ( $totpcount != $pcount ) {
|
2787 |
+
$msg .= ' '.sprintf( __( 'to %s locations', 'wp-photo-album-plus' ), $totpcount );
|
2788 |
}
|
2789 |
$msg .= '.';
|
2790 |
}
|
2791 |
+
else $msg .= $pcount.' '.__( 'single photos imported.', 'wp-photo-album-plus' ).' ';
|
2792 |
}
|
2793 |
if ( $videocount ) {
|
2794 |
$msg .= $videocount.' '.__( 'Videos imported.', 'wp-photo-album-plus' );
|
2800 |
$msg .= $documentcount.' '.__( 'Documents imported.', 'wp-photo-album-plus' );
|
2801 |
}
|
2802 |
if ( $csvcount ) {
|
2803 |
+
$msg .= $csvcount . ' ' . __( 'CSVs imported,', 'wp-photo-album-plus' ) . ' ' .
|
2804 |
$photos_processed_csv .' '. __( 'items processed.', 'wp-photo-album-plus' ) . ' ' .
|
2805 |
$photos_skipped_csv . ' ' . __( 'items skipped.', 'wp-photo-album-plus' );
|
2806 |
}
|
2974 |
$err = '0';
|
2975 |
if ( ! class_exists( 'ZipArchive' ) ) {
|
2976 |
$err = '3';
|
2977 |
+
wppa_error_message( __( 'Class ZipArchive does not exist! Check your php configuration', 'wp-photo-album-plus' ) );
|
2978 |
}
|
2979 |
else {
|
2980 |
|
3006 |
|
3007 |
// Assuming that entries without a file extension are directries. No warning on directory.
|
3008 |
elseif ( strpos( $stat['name'], '.' ) !== false && strlen( $file_ext ) < 5 ) {
|
3009 |
+
wppa_warning_message( htmlspecialchars( sprintf( __( 'File %s is of an unsupported filetype and has been ignored during extraction.', 'wp-photo-album-plus' ), wppa_sanitize_file_name( $stat['name'] ) ) ) );
|
3010 |
$skip++;
|
3011 |
}
|
3012 |
}
|
3013 |
|
3014 |
$zip->close();
|
3015 |
+
wppa_ok_message( htmlspecialchars( sprintf( __( 'Zipfile %s processed. %s files extracted, %s files skipped.', 'wp-photo-album-plus' ), basename( $path ), $done, $skip ) ) );
|
3016 |
if ( $delz ) {
|
3017 |
wppa_unlink( $xpath );
|
3018 |
}
|
3019 |
} else {
|
3020 |
+
wppa_error_message( __( 'Failed to extract', 'wp-photo-album-plus' ).' '.htmlspecialchars( $path ) );
|
3021 |
$err = '1';
|
3022 |
}
|
3023 |
}
|
3061 |
'a_parent' => $parent
|
3062 |
) );
|
3063 |
if ( $alb === false ) {
|
3064 |
+
wppa_error_message( __( 'Could not create album.', 'wp-photo-album-plus' ).'<br/>Query = '.htmlspecialchars( $query ) );
|
3065 |
wp_die( 'Sorry, cannot continue' );
|
3066 |
}
|
3067 |
else {
|
3083 |
// Insert the post into the database
|
3084 |
$pagid = wp_insert_post( $my_post );
|
3085 |
if ( $pagid ) {
|
3086 |
+
wppa_ok_message( sprintf( __( 'Page <a href="%s" target="_blank" >%s</a> created.', 'wp-photo-album-plus' ), home_url().'?page_id='.$pagid, htmlspecialchars( $name ) ) );
|
3087 |
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_albums SET cover_linkpage = %s WHERE id = %s", $pagid, $alb ) );
|
3088 |
}
|
3089 |
else {
|
3090 |
+
wppa_error_message( __( 'Could not create page.', 'wp-photo-album-plus' ) );
|
3091 |
}
|
3092 |
}
|
3093 |
}
|
wppa-init.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* This file loads required php files and contains all functions used in init actions.
|
6 |
*
|
7 |
-
* Version 8.1.
|
8 |
*/
|
9 |
|
10 |
/* LOAD SIDEBAR WIDGETS */
|
@@ -238,12 +238,12 @@ function wppa_verify_multisite_config() {
|
|
238 |
if ( WPPA_MULTISITE_BLOGSDIR ) return;
|
239 |
if ( WPPA_MULTISITE_INDIVIDUAL ) return;
|
240 |
|
241 |
-
$errtxt = __('</strong><h3>WP Photo ALbum Plus Error message</h3>This is a multi site installation. One of the following 3 lines must be entered in wp-config.php:', 'wp-photo-album-plus');
|
242 |
-
$errtxt .= __('<br><br><b>define( \'WPPA_MULTISITE_INDIVIDUAL\', true );</b> <small>// Multisite WP 3.5 or later with every site its own albums and photos</small>', 'wp-photo-album-plus');
|
243 |
-
$errtxt .= __('<br><b>define( \'WPPA_MULTISITE_BLOGSDIR\', true );</b> <small>// Multisite prior to WP 3.5 with every site its own albums and photos</small>', 'wp-photo-album-plus');
|
244 |
-
$errtxt .= __('<br><b>define( \'WPPA_MULTISITE_GLOBAL\', true );</b> <small>// Multisite with one common set of albums and photos</small>', 'wp-photo-album-plus');
|
245 |
-
$errtxt .= __('<br><br>For more information see: <a href="https://wordpress.org/plugins/wp-photo-album-plus/faq/">the faq</a>', 'wp-photo-album-plus');
|
246 |
-
$errtxt .= __('<br><br><em>If you upload photos, they will be placed in the wrong location and will not be visible for visitors!</em><strong>', 'wp-photo-album-plus');
|
247 |
|
248 |
wppa_error_message( $errtxt );
|
249 |
}
|
@@ -274,30 +274,30 @@ function wppa_maintenance_messages() {
|
|
274 |
|
275 |
// Cron jobs postponed?
|
276 |
if ( wppa_get_option( 'wppa_maint_ignore_cron' ) == 'yes' ) {
|
277 |
-
wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '0', '', '', true ) );
|
278 |
}
|
279 |
|
280 |
// Check for pending actions
|
281 |
if ( wppa_get_option( 'wppa_remove_empty_albums_status' ) && wppa_get_option( 'wppa_remove_empty_albums_user', wppa_get_user() ) == wppa_get_user() ) {
|
282 |
-
wppa_warning_message( __( 'Remove empty albums needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '2', '9', '', '', true ) );
|
283 |
}
|
284 |
if ( wppa_get_option( 'wppa_apply_new_photodesc_all_status' ) && wppa_get_option( 'wppa_apply_new_photodesc_all_user', wppa_get_user() ) == wppa_get_user() ) {
|
285 |
-
wppa_warning_message( __( 'Applying new photo description needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '2', '6', '', '', true ) );
|
286 |
}
|
287 |
if ( wppa_get_option( 'wppa_append_to_photodesc_status' ) && wppa_get_option( 'wppa_append_to_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
|
288 |
-
wppa_warning_message( __( 'Appending to photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '2', '7', '', '', true ) );
|
289 |
}
|
290 |
if ( wppa_get_option( 'wppa_remove_from_photodesc_status' ) && wppa_get_option( 'wppa_remove_from_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
|
291 |
-
wppa_warning_message( __( 'Removing from photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '2', '8', '', '', true ) );
|
292 |
}
|
293 |
if ( wppa_get_option( 'wppa_remove_file_extensions_status' ) && wppa_get_option( 'wppa_remove_file_extensions_user', wppa_get_user() ) == wppa_get_user() ) {
|
294 |
-
wppa_warning_message( __( 'Removing file extensions needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '2', '10', '', '', true ) );
|
295 |
}
|
296 |
if ( wppa_get_option( 'wppa_regen_thumbs_status' ) && wppa_get_option( 'wppa_regen_thumbs_user', wppa_get_user() ) == wppa_get_user() ) {
|
297 |
-
wppa_warning_message( __( 'Regenerating the Thumbnails needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '4', '', '', true ) );
|
298 |
}
|
299 |
if ( wppa_get_option( 'wppa_rerate_status' ) && wppa_get_option( 'wppa_rerate_user', wppa_get_user() ) == wppa_get_user() ) {
|
300 |
-
wppa_warning_message( __( 'Rerating needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '5', '', '', true ) );
|
301 |
}
|
302 |
}
|
303 |
|
@@ -321,7 +321,7 @@ global $wpdb;
|
|
321 |
}
|
322 |
|
323 |
function wppa_tag_message() {
|
324 |
-
wppa_error_message( __('The tags system needs to be converted. Please run <i>Photo Albums -> Settings -> Advanced settings -> Maintenance -> II -> Item 22</i>' , 'wp-photo-album-plus') );
|
325 |
}
|
326 |
|
327 |
function wppa_check_cat_system() {
|
@@ -344,7 +344,7 @@ global $wpdb;
|
|
344 |
}
|
345 |
|
346 |
function wppa_cat_message() {
|
347 |
-
wppa_error_message( __('The cats system needs to be converted. Please run <i>Photo Albums -> Settings -> Advanced settings -> Maintenance -> II -> Item 23</i>' , 'wp-photo-album-plus') );
|
348 |
}
|
349 |
|
350 |
// Print admin messages on config conflicts
|
4 |
*
|
5 |
* This file loads required php files and contains all functions used in init actions.
|
6 |
*
|
7 |
+
* Version 8.1.08.003
|
8 |
*/
|
9 |
|
10 |
/* LOAD SIDEBAR WIDGETS */
|
238 |
if ( WPPA_MULTISITE_BLOGSDIR ) return;
|
239 |
if ( WPPA_MULTISITE_INDIVIDUAL ) return;
|
240 |
|
241 |
+
$errtxt = __('</strong><h3>WP Photo ALbum Plus Error message</h3>This is a multi site installation. One of the following 3 lines must be entered in wp-config.php:', 'wp-photo-album-plus' );
|
242 |
+
$errtxt .= __('<br><br><b>define( \'WPPA_MULTISITE_INDIVIDUAL\', true );</b> <small>// Multisite WP 3.5 or later with every site its own albums and photos</small>', 'wp-photo-album-plus' );
|
243 |
+
$errtxt .= __('<br><b>define( \'WPPA_MULTISITE_BLOGSDIR\', true );</b> <small>// Multisite prior to WP 3.5 with every site its own albums and photos</small>', 'wp-photo-album-plus' );
|
244 |
+
$errtxt .= __('<br><b>define( \'WPPA_MULTISITE_GLOBAL\', true );</b> <small>// Multisite with one common set of albums and photos</small>', 'wp-photo-album-plus' );
|
245 |
+
$errtxt .= __('<br><br>For more information see: <a href="https://wordpress.org/plugins/wp-photo-album-plus/faq/">the faq</a>', 'wp-photo-album-plus' );
|
246 |
+
$errtxt .= __('<br><br><em>If you upload photos, they will be placed in the wrong location and will not be visible for visitors!</em><strong>', 'wp-photo-album-plus' );
|
247 |
|
248 |
wppa_error_message( $errtxt );
|
249 |
}
|
274 |
|
275 |
// Cron jobs postponed?
|
276 |
if ( wppa_get_option( 'wppa_maint_ignore_cron' ) == 'yes' ) {
|
277 |
+
wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions', 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '1', '0', '', '', true ) );
|
278 |
}
|
279 |
|
280 |
// Check for pending actions
|
281 |
if ( wppa_get_option( 'wppa_remove_empty_albums_status' ) && wppa_get_option( 'wppa_remove_empty_albums_user', wppa_get_user() ) == wppa_get_user() ) {
|
282 |
+
wppa_warning_message( __( 'Remove empty albums needs completion.', 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '2', '9', '', '', true ) );
|
283 |
}
|
284 |
if ( wppa_get_option( 'wppa_apply_new_photodesc_all_status' ) && wppa_get_option( 'wppa_apply_new_photodesc_all_user', wppa_get_user() ) == wppa_get_user() ) {
|
285 |
+
wppa_warning_message( __( 'Applying new photo description needs completion.', 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '2', '6', '', '', true ) );
|
286 |
}
|
287 |
if ( wppa_get_option( 'wppa_append_to_photodesc_status' ) && wppa_get_option( 'wppa_append_to_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
|
288 |
+
wppa_warning_message( __( 'Appending to photo description needs completion.' , 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '2', '7', '', '', true ) );
|
289 |
}
|
290 |
if ( wppa_get_option( 'wppa_remove_from_photodesc_status' ) && wppa_get_option( 'wppa_remove_from_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
|
291 |
+
wppa_warning_message( __( 'Removing from photo description needs completion.' , 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '2', '8', '', '', true ) );
|
292 |
}
|
293 |
if ( wppa_get_option( 'wppa_remove_file_extensions_status' ) && wppa_get_option( 'wppa_remove_file_extensions_user', wppa_get_user() ) == wppa_get_user() ) {
|
294 |
+
wppa_warning_message( __( 'Removing file extensions needs completion.' , 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '2', '10', '', '', true ) );
|
295 |
}
|
296 |
if ( wppa_get_option( 'wppa_regen_thumbs_status' ) && wppa_get_option( 'wppa_regen_thumbs_user', wppa_get_user() ) == wppa_get_user() ) {
|
297 |
+
wppa_warning_message( __( 'Regenerating the Thumbnails needs completion.' , 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '1', '4', '', '', true ) );
|
298 |
}
|
299 |
if ( wppa_get_option( 'wppa_rerate_status' ) && wppa_get_option( 'wppa_rerate_user', wppa_get_user() ) == wppa_get_user() ) {
|
300 |
+
wppa_warning_message( __( 'Rerating needs completion.' , 'wp-photo-album-plus' ) . wppa_see_also( 'maintenance', '1', '5', '', '', true ) );
|
301 |
}
|
302 |
}
|
303 |
|
321 |
}
|
322 |
|
323 |
function wppa_tag_message() {
|
324 |
+
wppa_error_message( __('The tags system needs to be converted. Please run <i>Photo Albums -> Settings -> Advanced settings -> Maintenance -> II -> Item 22</i>' , 'wp-photo-album-plus' ) );
|
325 |
}
|
326 |
|
327 |
function wppa_check_cat_system() {
|
344 |
}
|
345 |
|
346 |
function wppa_cat_message() {
|
347 |
+
wppa_error_message( __('The cats system needs to be converted. Please run <i>Photo Albums -> Settings -> Advanced settings -> Maintenance -> II -> Item 23</i>' , 'wp-photo-album-plus' ) );
|
348 |
}
|
349 |
|
350 |
// Print admin messages on config conflicts
|
wppa-items.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains functions to retrieve album and photo items
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -246,7 +246,7 @@ function wppa_get_photo_name( $id, $xargs = array() ) {
|
|
246 |
// Get data
|
247 |
$thumb = wppa_cache_thumb( $id );
|
248 |
if ( $args['showname'] ) {
|
249 |
-
$result .= __( stripslashes( $thumb['name'] ) , 'wp-photo-album-plus');
|
250 |
}
|
251 |
|
252 |
// Add owner?
|
@@ -294,9 +294,9 @@ function wppa_get_photo_name( $id, $xargs = array() ) {
|
|
294 |
if ( $args['addmedal'] ) {
|
295 |
$color = wppa_opt( 'medal_color' );
|
296 |
$wppa_url = is_ssl() ? str_replace( 'http://', 'https://', WPPA_URL ) : WPPA_URL; // Probably redundant... but it is not clear in to the codex if plugins_url() returns https
|
297 |
-
if ( $thumb['status'] == 'gold' ) $result .= '<img src="'.$wppa_url.'/img/medal_gold_'.$color.'.png" title="'.esc_attr(__('Gold medal', 'wp-photo-album-plus')).'" alt="'.__('Gold', 'wp-photo-album-plus').'" style="border:none; margin:0; padding:0; box-shadow:none; height:32px;" />';
|
298 |
-
if ( $thumb['status'] == 'silver' ) $result .= '<img src="'.$wppa_url.'/img/medal_silver_'.$color.'.png" title="'.esc_attr(__('Silver medal', 'wp-photo-album-plus')).'" alt="'.__('Silver', 'wp-photo-album-plus').'" style="border:none; margin:0; padding:0; box-shadow:none; height:32px;" />';
|
299 |
-
if ( $thumb['status'] == 'bronze' ) $result .= '<img src="'.$wppa_url.'/img/medal_bronze_'.$color.'.png" title="'.esc_attr(__('Bronze medal', 'wp-photo-album-plus')).'" alt="'.__('Bronze', 'wp-photo-album-plus').'" style="border:none; margin:0; padding:0; box-shadow:none; height:32px;" />';
|
300 |
}
|
301 |
|
302 |
// To prevent recursive rendering of scripts or shortcodes:
|
@@ -334,7 +334,7 @@ function wppa_get_photo_desc( $id, $xargs = array() ) {
|
|
334 |
$thumb = wppa_cache_thumb( $id );
|
335 |
$desc = $thumb['description']; // Raw data
|
336 |
$desc = stripslashes( $desc ); // Unescape
|
337 |
-
$desc = __( $desc , 'wp-photo-album-plus'); // qTranslate
|
338 |
|
339 |
// To prevent recursive rendering of scripts or shortcodes:
|
340 |
$desc = str_replace( array( '%%wppa%%', '[wppa', '[/wppa]' ), array( '%-wppa-%', '{wppa', '{/wppa}' ), $desc );
|
@@ -669,7 +669,7 @@ function wppa_get_album_name( $id, $xargs = array() ) { // $extended = false ) {
|
|
669 |
else {
|
670 |
if ( ! $album ) {
|
671 |
if ( $args['translate'] ) {
|
672 |
-
$name = __( '--- deleted ---', 'wp-photo-album-plus');
|
673 |
}
|
674 |
else {
|
675 |
$name = '--- deleted ---';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains functions to retrieve album and photo items
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
246 |
// Get data
|
247 |
$thumb = wppa_cache_thumb( $id );
|
248 |
if ( $args['showname'] ) {
|
249 |
+
$result .= __( stripslashes( $thumb['name'] ) , 'wp-photo-album-plus' );
|
250 |
}
|
251 |
|
252 |
// Add owner?
|
294 |
if ( $args['addmedal'] ) {
|
295 |
$color = wppa_opt( 'medal_color' );
|
296 |
$wppa_url = is_ssl() ? str_replace( 'http://', 'https://', WPPA_URL ) : WPPA_URL; // Probably redundant... but it is not clear in to the codex if plugins_url() returns https
|
297 |
+
if ( $thumb['status'] == 'gold' ) $result .= '<img src="'.$wppa_url.'/img/medal_gold_'.$color.'.png" title="'.esc_attr(__('Gold medal', 'wp-photo-album-plus' )).'" alt="'.__('Gold', 'wp-photo-album-plus' ).'" style="border:none; margin:0; padding:0; box-shadow:none; height:32px;" />';
|
298 |
+
if ( $thumb['status'] == 'silver' ) $result .= '<img src="'.$wppa_url.'/img/medal_silver_'.$color.'.png" title="'.esc_attr(__('Silver medal', 'wp-photo-album-plus' )).'" alt="'.__('Silver', 'wp-photo-album-plus' ).'" style="border:none; margin:0; padding:0; box-shadow:none; height:32px;" />';
|
299 |
+
if ( $thumb['status'] == 'bronze' ) $result .= '<img src="'.$wppa_url.'/img/medal_bronze_'.$color.'.png" title="'.esc_attr(__('Bronze medal', 'wp-photo-album-plus' )).'" alt="'.__('Bronze', 'wp-photo-album-plus' ).'" style="border:none; margin:0; padding:0; box-shadow:none; height:32px;" />';
|
300 |
}
|
301 |
|
302 |
// To prevent recursive rendering of scripts or shortcodes:
|
334 |
$thumb = wppa_cache_thumb( $id );
|
335 |
$desc = $thumb['description']; // Raw data
|
336 |
$desc = stripslashes( $desc ); // Unescape
|
337 |
+
$desc = __( $desc , 'wp-photo-album-plus' ); // qTranslate
|
338 |
|
339 |
// To prevent recursive rendering of scripts or shortcodes:
|
340 |
$desc = str_replace( array( '%%wppa%%', '[wppa', '[/wppa]' ), array( '%-wppa-%', '{wppa', '{/wppa}' ), $desc );
|
669 |
else {
|
670 |
if ( ! $album ) {
|
671 |
if ( $args['translate'] ) {
|
672 |
+
$name = __( '--- deleted ---', 'wp-photo-album-plus' );
|
673 |
}
|
674 |
else {
|
675 |
$name = '--- deleted ---';
|
wppa-links.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Frontend links
|
6 |
|
7 |
-
* Version 8.1.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -826,47 +826,47 @@ function wppa_moderate_links( $type, $id, $comid = '' ) {
|
|
826 |
if ( wppa_user_is( 'administrator' ) || current_user_can('wppa_moderate') || ( current_user_can('wppa_comments') && $type == 'comment' ) ) {
|
827 |
switch ( $type ) {
|
828 |
case 'thumb':
|
829 |
-
$app = __('App', 'wp-photo-album-plus');
|
830 |
-
$mod = __('Mod', 'wp-photo-album-plus');
|
831 |
-
$del = __('Del', 'wp-photo-album-plus');
|
832 |
|
833 |
$result = '
|
834 |
<div style="clear:both;"></div>
|
835 |
-
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus').'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
|
836 |
'.$app.
|
837 |
'</a>
|
838 |
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&photo='.$id.'\'" >
|
839 |
'.$mod.
|
840 |
'</a>
|
841 |
-
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus').'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', false)">
|
842 |
'.$del.
|
843 |
'</a><br class="wppa-approve-'.$id.'" />';
|
844 |
break;
|
845 |
case 'slide':
|
846 |
-
$app = __('Approve', 'wp-photo-album-plus');
|
847 |
-
$mod = __('Moderate', 'wp-photo-album-plus');
|
848 |
-
$del = __('Delete', 'wp-photo-album-plus');
|
849 |
|
850 |
$result = '
|
851 |
<div style="clear:both;"></div>
|
852 |
-
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus').'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
|
853 |
'.$app.
|
854 |
'</a>
|
855 |
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&photo='.$id.'\'" >
|
856 |
'.$mod.
|
857 |
'</a>
|
858 |
-
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus').'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', true)">
|
859 |
'.$del.
|
860 |
'</a><br class="wppa-approve-'.$id.'" />';
|
861 |
break;
|
862 |
case 'comment':
|
863 |
-
$app = __('Approve', 'wp-photo-album-plus');
|
864 |
-
$mod1 = __('PhotoAdmin', 'wp-photo-album-plus');
|
865 |
-
$mod2 = __('CommentAdmin', 'wp-photo-album-plus');
|
866 |
-
$del = __('Delete', 'wp-photo-album-plus');
|
867 |
$result = '
|
868 |
<br class="wppa-approve-'.$comid.'" />
|
869 |
-
<a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this comment?', 'wp-photo-album-plus').'\') ) wppaAjaxApproveComment(\''.$comid.'\')">
|
870 |
'.$app.
|
871 |
'</a>';
|
872 |
if ( current_user_can('wppa_moderate') && ! wppa_switch( 'moderate_bulk' ) ) $result .= '
|
@@ -878,7 +878,7 @@ function wppa_moderate_links( $type, $id, $comid = '' ) {
|
|
878 |
'.$mod2.
|
879 |
'</a>';
|
880 |
$result .= '
|
881 |
-
<a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this comment?', 'wp-photo-album-plus').'\') ) wppaAjaxRemoveComment(\''.$comid.'\', true)">
|
882 |
'.$del.
|
883 |
'</a><br class="wppa-approve-'.$comid.'" />';
|
884 |
break;
|
@@ -891,10 +891,10 @@ function wppa_moderate_links( $type, $id, $comid = '' ) {
|
|
891 |
$the_id = $type == 'comment' ? $comid : $id;
|
892 |
|
893 |
if ( $type == 'comment' || $thumb['status'] != 'scheduled' ) {
|
894 |
-
// $result .= '<div class="wppa-approve-'.$the_id.'" style="clear:both; color:red">'.__('Awaiting moderation', 'wp-photo-album-plus').'</div>';
|
895 |
}
|
896 |
else {
|
897 |
-
$result .= '<div class="wppa-approve-'.$the_id.'" style="clear:both; color:red">'.sprintf( __( 'Scheduled for %s' , 'wp-photo-album-plus'), wppa_format_scheduledtm( $thumb['scheduledtm'] ) ).'</div>';
|
898 |
}
|
899 |
|
900 |
return $result;
|
@@ -1558,7 +1558,7 @@ global $wpdb;
|
|
1558 |
}
|
1559 |
if ( $type == 'thumbs' ) {
|
1560 |
$result['url'] = wppa_encrypt_url( wppa_get_ss_to_tn_link( $page, $id ) );
|
1561 |
-
$result['title'] = __('View thumbnails', 'wp-photo-album-plus');
|
1562 |
$result['is_url'] = true;
|
1563 |
$result['is_lightbox'] = false;
|
1564 |
if ( wppa_switch( 'slideshow_blank' ) ) $result['target'] = '_blank';
|
@@ -1573,7 +1573,7 @@ global $wpdb;
|
|
1573 |
'page' => $page,
|
1574 |
'photo' => $id ) );
|
1575 |
wppa( 'mocc', $t );
|
1576 |
-
$result['title'] = __('View fullsize slideshow', 'wp-photo-album-plus');
|
1577 |
$result['is_url'] = true;
|
1578 |
$result['is_lightbox'] = false;
|
1579 |
if ( wppa_switch( 'slideshow_blank' ) ) $result['target'] = '_blank';
|
@@ -1676,7 +1676,7 @@ global $wpdb;
|
|
1676 |
}
|
1677 |
else $photo_desc = '';
|
1678 |
|
1679 |
-
$title = __( $photo_name , 'wp-photo-album-plus');
|
1680 |
|
1681 |
$result['onclick'] = ''; // Init
|
1682 |
switch ( $type ) {
|
@@ -1863,7 +1863,7 @@ global $wpdb;
|
|
1863 |
break;
|
1864 |
case 'fullpopup':
|
1865 |
if ( $is_video ) { // A video can not be printed or downloaded
|
1866 |
-
$result['url'] = esc_attr( 'alert( "' . esc_js( __( 'A video can not be printed or downloaded' , 'wp-photo-album-plus') ) . '" )' );
|
1867 |
}
|
1868 |
else {
|
1869 |
$wid = wppa_get_photox( $id );
|
4 |
*
|
5 |
* Frontend links
|
6 |
|
7 |
+
* Version 8.1.08.003
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
826 |
if ( wppa_user_is( 'administrator' ) || current_user_can('wppa_moderate') || ( current_user_can('wppa_comments') && $type == 'comment' ) ) {
|
827 |
switch ( $type ) {
|
828 |
case 'thumb':
|
829 |
+
$app = __('App', 'wp-photo-album-plus' );
|
830 |
+
$mod = __('Mod', 'wp-photo-album-plus' );
|
831 |
+
$del = __('Del', 'wp-photo-album-plus' );
|
832 |
|
833 |
$result = '
|
834 |
<div style="clear:both;"></div>
|
835 |
+
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
|
836 |
'.$app.
|
837 |
'</a>
|
838 |
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&photo='.$id.'\'" >
|
839 |
'.$mod.
|
840 |
'</a>
|
841 |
+
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', false)">
|
842 |
'.$del.
|
843 |
'</a><br class="wppa-approve-'.$id.'" />';
|
844 |
break;
|
845 |
case 'slide':
|
846 |
+
$app = __('Approve', 'wp-photo-album-plus' );
|
847 |
+
$mod = __('Moderate', 'wp-photo-album-plus' );
|
848 |
+
$del = __('Delete', 'wp-photo-album-plus' );
|
849 |
|
850 |
$result = '
|
851 |
<div style="clear:both;"></div>
|
852 |
+
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
|
853 |
'.$app.
|
854 |
'</a>
|
855 |
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&photo='.$id.'\'" >
|
856 |
'.$mod.
|
857 |
'</a>
|
858 |
+
<a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', true)">
|
859 |
'.$del.
|
860 |
'</a><br class="wppa-approve-'.$id.'" />';
|
861 |
break;
|
862 |
case 'comment':
|
863 |
+
$app = __('Approve', 'wp-photo-album-plus' );
|
864 |
+
$mod1 = __('PhotoAdmin', 'wp-photo-album-plus' );
|
865 |
+
$mod2 = __('CommentAdmin', 'wp-photo-album-plus' );
|
866 |
+
$del = __('Delete', 'wp-photo-album-plus' );
|
867 |
$result = '
|
868 |
<br class="wppa-approve-'.$comid.'" />
|
869 |
+
<a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this comment?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApproveComment(\''.$comid.'\')">
|
870 |
'.$app.
|
871 |
'</a>';
|
872 |
if ( current_user_can('wppa_moderate') && ! wppa_switch( 'moderate_bulk' ) ) $result .= '
|
878 |
'.$mod2.
|
879 |
'</a>';
|
880 |
$result .= '
|
881 |
+
<a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this comment?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemoveComment(\''.$comid.'\', true)">
|
882 |
'.$del.
|
883 |
'</a><br class="wppa-approve-'.$comid.'" />';
|
884 |
break;
|
891 |
$the_id = $type == 'comment' ? $comid : $id;
|
892 |
|
893 |
if ( $type == 'comment' || $thumb['status'] != 'scheduled' ) {
|
894 |
+
// $result .= '<div class="wppa-approve-'.$the_id.'" style="clear:both; color:red">'.__('Awaiting moderation', 'wp-photo-album-plus' ).'</div>';
|
895 |
}
|
896 |
else {
|
897 |
+
$result .= '<div class="wppa-approve-'.$the_id.'" style="clear:both; color:red">'.sprintf( __( 'Scheduled for %s' , 'wp-photo-album-plus' ), wppa_format_scheduledtm( $thumb['scheduledtm'] ) ).'</div>';
|
898 |
}
|
899 |
|
900 |
return $result;
|
1558 |
}
|
1559 |
if ( $type == 'thumbs' ) {
|
1560 |
$result['url'] = wppa_encrypt_url( wppa_get_ss_to_tn_link( $page, $id ) );
|
1561 |
+
$result['title'] = __('View thumbnails', 'wp-photo-album-plus' );
|
1562 |
$result['is_url'] = true;
|
1563 |
$result['is_lightbox'] = false;
|
1564 |
if ( wppa_switch( 'slideshow_blank' ) ) $result['target'] = '_blank';
|
1573 |
'page' => $page,
|
1574 |
'photo' => $id ) );
|
1575 |
wppa( 'mocc', $t );
|
1576 |
+
$result['title'] = __('View fullsize slideshow', 'wp-photo-album-plus' );
|
1577 |
$result['is_url'] = true;
|
1578 |
$result['is_lightbox'] = false;
|
1579 |
if ( wppa_switch( 'slideshow_blank' ) ) $result['target'] = '_blank';
|
1676 |
}
|
1677 |
else $photo_desc = '';
|
1678 |
|
1679 |
+
$title = __( $photo_name , 'wp-photo-album-plus' );
|
1680 |
|
1681 |
$result['onclick'] = ''; // Init
|
1682 |
switch ( $type ) {
|
1863 |
break;
|
1864 |
case 'fullpopup':
|
1865 |
if ( $is_video ) { // A video can not be printed or downloaded
|
1866 |
+
$result['url'] = esc_attr( 'alert( "' . esc_js( __( 'A video can not be printed or downloaded' , 'wp-photo-album-plus' ) ) . '" )' );
|
1867 |
}
|
1868 |
else {
|
1869 |
$wid = wppa_get_photox( $id );
|
wppa-mailing.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Contains mailing functions
|
6 |
*
|
7 |
-
* Version 8.1.08.
|
8 |
*
|
9 |
*/
|
10 |
|
@@ -422,7 +422,7 @@ global $wpdb;
|
|
422 |
$link = wppa_get_option( 'wppa_mailinglist_callback_url', '' );
|
423 |
|
424 |
// The content
|
425 |
-
$cont = $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus') . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
|
426 |
'<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
|
427 |
<em> ' . stripslashes( $comment['comment'] ) . '</em>
|
428 |
</blockquote>';
|
@@ -684,7 +684,7 @@ global $wpdb;
|
|
684 |
case 'moderatephoto':
|
685 |
|
686 |
// The subject
|
687 |
-
$subj = sprintf( __( 'New photo moderate request: %s' , 'wp-photo-album-plus'), wppa_get_photo_item( $pho, 'name' ) );
|
688 |
|
689 |
// The photo owner
|
690 |
$owner = get_user_by( 'login', wppa_get_photo_item( $pho, 'owner' ) );
|
@@ -718,7 +718,7 @@ global $wpdb;
|
|
718 |
// Moderate links
|
719 |
$cont .=
|
720 |
'<br><a href="' . get_admin_url() . 'admin.php?page=wppa_moderate_photos&photo=' . $pho . '" >' .
|
721 |
-
__( 'Moderate photo admin' , 'wp-photo-album-plus') .
|
722 |
'</a>';
|
723 |
|
724 |
// Process all subscribed users
|
@@ -769,7 +769,7 @@ global $wpdb;
|
|
769 |
}
|
770 |
|
771 |
// The subject
|
772 |
-
$subj = sprintf( __( 'New comment moderate request: %s' , 'wp-photo-album-plus'), wppa_get_photo_item( $pho, 'name' ) );
|
773 |
|
774 |
// Get teh author
|
775 |
$author = get_user_by( 'email', $comment['email'] );
|
@@ -797,7 +797,7 @@ global $wpdb;
|
|
797 |
// Moderate links
|
798 |
$cont .=
|
799 |
'<br><a href="' . get_admin_url() . 'admin.php?page=wppa_manage_comments&comment=' . $com . '" >' .
|
800 |
-
__( 'Moderate photo admin' , 'wp-photo-album-plus') .
|
801 |
'</a>';
|
802 |
|
803 |
// The commenters email, only if the user exists, i.e. we are sure the email is valid
|
@@ -1042,13 +1042,13 @@ function wppa_send_mail( $args ) {
|
|
1042 |
// Tell the moderator the email address of the originator of the photo/comment
|
1043 |
if ( $email && substr( $listtype, 0, 8 ) == 'moderate' || $listtype == 'showemail' ) {
|
1044 |
|
1045 |
-
$eml = sprintf(__('The visitors email address is: <a href="mailto:%s">%s</a>', 'wp-photo-album-plus'), $email, $email);
|
1046 |
$message_part_2 .= '<tr><td>'.$eml.'</td></tr>';
|
1047 |
}
|
1048 |
|
1049 |
// Reply link
|
1050 |
if ( $replyurl ) {
|
1051 |
-
$message_part_2 .= '<tr><td><a href="' . $replyurl . '" >' . __( 'Reply' , 'wp-photo-album-plus') . '</a></td></tr>';
|
1052 |
}
|
1053 |
|
1054 |
// Unsubscribe link
|
@@ -1060,7 +1060,7 @@ function wppa_send_mail( $args ) {
|
|
1060 |
$message_part_3 .=
|
1061 |
'<tr><td>
|
1062 |
<small>' .
|
1063 |
-
sprintf(__('This message is automatically generated at %s. It is useless to respond to it.', 'wp-photo-album-plus'), '<a href="'.home_url().'" >'.home_url().'</a>') .
|
1064 |
'</small>' .
|
1065 |
( defined( 'WP_DEBUG' ) ? ' <small>(' . $listtype . ')</small>' : '' ) . '
|
1066 |
</td></tr>
|
4 |
*
|
5 |
* Contains mailing functions
|
6 |
*
|
7 |
+
* Version 8.1.08.003
|
8 |
*
|
9 |
*/
|
10 |
|
422 |
$link = wppa_get_option( 'wppa_mailinglist_callback_url', '' );
|
423 |
|
424 |
// The content
|
425 |
+
$cont = $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
|
426 |
'<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
|
427 |
<em> ' . stripslashes( $comment['comment'] ) . '</em>
|
428 |
</blockquote>';
|
684 |
case 'moderatephoto':
|
685 |
|
686 |
// The subject
|
687 |
+
$subj = sprintf( __( 'New photo moderate request: %s' , 'wp-photo-album-plus' ), wppa_get_photo_item( $pho, 'name' ) );
|
688 |
|
689 |
// The photo owner
|
690 |
$owner = get_user_by( 'login', wppa_get_photo_item( $pho, 'owner' ) );
|
718 |
// Moderate links
|
719 |
$cont .=
|
720 |
'<br><a href="' . get_admin_url() . 'admin.php?page=wppa_moderate_photos&photo=' . $pho . '" >' .
|
721 |
+
__( 'Moderate photo admin' , 'wp-photo-album-plus' ) .
|
722 |
'</a>';
|
723 |
|
724 |
// Process all subscribed users
|
769 |
}
|
770 |
|
771 |
// The subject
|
772 |
+
$subj = sprintf( __( 'New comment moderate request: %s' , 'wp-photo-album-plus' ), wppa_get_photo_item( $pho, 'name' ) );
|
773 |
|
774 |
// Get teh author
|
775 |
$author = get_user_by( 'email', $comment['email'] );
|
797 |
// Moderate links
|
798 |
$cont .=
|
799 |
'<br><a href="' . get_admin_url() . 'admin.php?page=wppa_manage_comments&comment=' . $com . '" >' .
|
800 |
+
__( 'Moderate photo admin' , 'wp-photo-album-plus' ) .
|
801 |
'</a>';
|
802 |
|
803 |
// The commenters email, only if the user exists, i.e. we are sure the email is valid
|
1042 |
// Tell the moderator the email address of the originator of the photo/comment
|
1043 |
if ( $email && substr( $listtype, 0, 8 ) == 'moderate' || $listtype == 'showemail' ) {
|
1044 |
|
1045 |
+
$eml = sprintf(__('The visitors email address is: <a href="mailto:%s">%s</a>', 'wp-photo-album-plus' ), $email, $email);
|
1046 |
$message_part_2 .= '<tr><td>'.$eml.'</td></tr>';
|
1047 |
}
|
1048 |
|
1049 |
// Reply link
|
1050 |
if ( $replyurl ) {
|
1051 |
+
$message_part_2 .= '<tr><td><a href="' . $replyurl . '" >' . __( 'Reply' , 'wp-photo-album-plus' ) . '</a></td></tr>';
|
1052 |
}
|
1053 |
|
1054 |
// Unsubscribe link
|
1060 |
$message_part_3 .=
|
1061 |
'<tr><td>
|
1062 |
<small>' .
|
1063 |
+
sprintf(__('This message is automatically generated at %s. It is useless to respond to it.', 'wp-photo-album-plus' ), '<a href="'.home_url().'" >'.home_url().'</a>') .
|
1064 |
'</small>' .
|
1065 |
( defined( 'WP_DEBUG' ) ? ' <small>(' . $listtype . ')</small>' : '' ) . '
|
1066 |
</td></tr>
|
wppa-maintenance.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains (not yet, but in the future maybe) all the maintenance routines
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -199,7 +199,7 @@ global $wppa_endtime;
|
|
199 |
$album_exists = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE id = %s", $orphan_album ) );
|
200 |
if ( ! $album_exists ) $orphan_album = false;
|
201 |
if ( ! $orphan_album ) {
|
202 |
-
$orphan_album = wppa_create_album_entry( array( 'name' => __('Orphan photos', 'wp-photo-album-plus'), 'a_parent' => '-1', 'description' => __('This album contains refound lost photos', 'wp-photo-album-plus') ) );
|
203 |
update_option( 'wppa_orphan_album', $orphan_album );
|
204 |
}
|
205 |
break;
|
@@ -1315,7 +1315,7 @@ global $wppa_log_file;
|
|
1315 |
</table>';
|
1316 |
}
|
1317 |
else {
|
1318 |
-
$result .= __('There are no index items.', 'wp-photo-album-plus');
|
1319 |
}
|
1320 |
$result .= '
|
1321 |
</div><div style="clear:both;"></div>';
|
@@ -1693,7 +1693,7 @@ function wppa_log_page() {
|
|
1693 |
wppa_admin_spinner() .
|
1694 |
wp_nonce_field( 'wppa-nonce', 'wppa-nonce', true, false ) . '
|
1695 |
<img id="icon-album" src="' . esc_url( WPPA_URL . '/img/page_green.png' ) . '" />
|
1696 |
-
<h1 style="display:inline" >' . htmlspecialchars( __('WP Photo Album Plus Logfile', 'wp-photo-album-plus') ) . '
|
1697 |
<input
|
1698 |
class="button-secundary"
|
1699 |
style="float:right; border-radius:3px; font-size: 16px; height: 28px; padding: 0 4px;"
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains (not yet, but in the future maybe) all the maintenance routines
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
199 |
$album_exists = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE id = %s", $orphan_album ) );
|
200 |
if ( ! $album_exists ) $orphan_album = false;
|
201 |
if ( ! $orphan_album ) {
|
202 |
+
$orphan_album = wppa_create_album_entry( array( 'name' => __('Orphan photos', 'wp-photo-album-plus' ), 'a_parent' => '-1', 'description' => __('This album contains refound lost photos', 'wp-photo-album-plus' ) ) );
|
203 |
update_option( 'wppa_orphan_album', $orphan_album );
|
204 |
}
|
205 |
break;
|
1315 |
</table>';
|
1316 |
}
|
1317 |
else {
|
1318 |
+
$result .= __('There are no index items.', 'wp-photo-album-plus' );
|
1319 |
}
|
1320 |
$result .= '
|
1321 |
</div><div style="clear:both;"></div>';
|
1693 |
wppa_admin_spinner() .
|
1694 |
wp_nonce_field( 'wppa-nonce', 'wppa-nonce', true, false ) . '
|
1695 |
<img id="icon-album" src="' . esc_url( WPPA_URL . '/img/page_green.png' ) . '" />
|
1696 |
+
<h1 style="display:inline" >' . htmlspecialchars( __('WP Photo Album Plus Logfile', 'wp-photo-album-plus' ) ) . '
|
1697 |
<input
|
1698 |
class="button-secundary"
|
1699 |
style="float:right; border-radius:3px; font-size: 16px; height: 28px; padding: 0 4px;"
|
wppa-photo-admin-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -50,7 +50,7 @@ function _wppa_moderate_photos() {
|
|
50 |
wppa_echo( '</div>', 'post' );
|
51 |
}
|
52 |
else {
|
53 |
-
wppa_echo( '<div class="wrap"><h2>' . esc_html__( 'Moderate photos' , 'wp-photo-album-plus') . '</h2>', 'post' );
|
54 |
if ( wppa_switch( 'moderate_bulk' ) ) {
|
55 |
wppa_album_photos_bulk( 'moderate' );
|
56 |
}
|
@@ -561,9 +561,9 @@ function wppaToggleExif( id, count ) {
|
|
561 |
default:
|
562 |
$sortby_orderno = false;
|
563 |
}
|
564 |
-
$wms = array( 'toplft' => __( 'top - left' , 'wp-photo-album-plus'), 'topcen' => __( 'top - center' , 'wp-photo-album-plus'), 'toprht' => __( 'top - right' , 'wp-photo-album-plus'),
|
565 |
-
'cenlft' => __( 'center - left' , 'wp-photo-album-plus'), 'cencen' => __( 'center - center' , 'wp-photo-album-plus'), 'cenrht' => __( 'center - right' , 'wp-photo-album-plus'),
|
566 |
-
'botlft' => __( 'bottom - left' , 'wp-photo-album-plus'), 'botcen' => __( 'bottom - center' , 'wp-photo-album-plus'), 'botrht' => __( 'bottom - right' , 'wp-photo-album-plus'), );
|
567 |
|
568 |
// Album for moderate
|
569 |
if ( $modalbum != $album && $album && ! wppa_get( 'just-edit' ) && wppa_get( 'edit-id' ) != 'trash' ) {
|
@@ -622,7 +622,7 @@ function wppaToggleExif( id, count ) {
|
|
622 |
<a
|
623 |
href="' . esc_attr( $big ) . '"
|
624 |
target="_blank"
|
625 |
-
title="' . esc_attr( __( 'Preview fullsize video' , 'wp-photo-album-plus') ) . '"
|
626 |
>' .
|
627 |
wppa_get_video_html( array( 'id' => $id,
|
628 |
'tagid' => 'video-' . $id,
|
@@ -854,7 +854,7 @@ function wppaToggleExif( id, count ) {
|
|
854 |
|
855 |
// Status
|
856 |
wppa_echo( '<br>' .
|
857 |
-
__( 'Status:' , 'wp-photo-album-plus') . ' ', 'post' );
|
858 |
if ( ( current_user_can( 'wppa_admin' ) || current_user_can( 'wppa_moderate' ) ) ) {
|
859 |
if ( wppa_switch( 'ext_status_restricted' ) && ! wppa_user_is( 'administrator' ) ) {
|
860 |
$dis = ' disabled';
|
@@ -1004,7 +1004,7 @@ function wppaToggleExif( id, count ) {
|
|
1004 |
|
1005 |
// Thumbnail
|
1006 |
if ( ! $is_video ) {
|
1007 |
-
wppa_echo( __( 'Thumbnail file:', 'wp-photo-album-plus') . ' ', 'post' );
|
1008 |
$tp = wppa_get_thumb_path( $id );
|
1009 |
if ( is_file( $tp ) ) {
|
1010 |
|
@@ -1215,13 +1215,13 @@ function wppaToggleExif( id, count ) {
|
|
1215 |
onchange="wppaAjaxUpdatePhoto( ' . $id . ', \'make360\', this.value, true)"
|
1216 |
title="' . esc_attr( __( 'Select the closest angle you originally made the panorama', 'wp-photo-album-plus' ) ) . '"
|
1217 |
>
|
1218 |
-
<option value="">'.__('Select', 'wp-photo-album-plus').'</option>' );
|
1219 |
$t = array( 120, 150, 180, 210, 240, 270, 300, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450 );
|
1220 |
foreach( $t as $v ) {
|
1221 |
wppa_echo( '<option value="'.$v.'" '.($v==$angle?'selected ':' ').'>'.$v.'°</option>' );
|
1222 |
}
|
1223 |
wppa_echo( '
|
1224 |
-
<option value="0">'.__('Undo', 'wp-photo-album-plus').'</option>
|
1225 |
</select>' );
|
1226 |
}
|
1227 |
}
|
@@ -1243,7 +1243,7 @@ function wppaToggleExif( id, count ) {
|
|
1243 |
$has_source = wppa_is_file( wppa_get_source_path( $id ) );
|
1244 |
$can_remove = ( wppa_opt( 'watermark_file' ) == '--- none ---' ) ? '1' : '0';
|
1245 |
if ( wppa_switch( 'watermark_user' ) || current_user_can( 'wppa_settings' ) ) {
|
1246 |
-
wppa_echo( ' ' . __( 'Watermark:', 'wp-photo-album-plus') . ' ', 'post' );
|
1247 |
wppa_echo(
|
1248 |
'<select' .
|
1249 |
' id="wmfsel_' . $id . '"' .
|
@@ -1274,9 +1274,9 @@ function wppaToggleExif( id, count ) {
|
|
1274 |
}
|
1275 |
elseif ( basename( $wmfile ) != '--- none ---' ) {
|
1276 |
wppa_echo(
|
1277 |
-
__( 'Watermark:', 'wp-photo-album-plus') . ' ' .
|
1278 |
__( 'File:', 'wp-photo-album-plus' ) . ' ' . strip_tags( basename( $wmfile ) ) . ' ' .
|
1279 |
-
__( 'Pos:', 'wp-photo-album-plus') . ' ' . strip_tags( $wmpos ), 'post' );
|
1280 |
}
|
1281 |
wppa_echo( ' ', 'post' );
|
1282 |
}
|
@@ -1307,27 +1307,27 @@ function wppaToggleExif( id, count ) {
|
|
1307 |
<input
|
1308 |
type="button"
|
1309 |
onclick="wppaTryRotLeft( ' . $id . ' )"
|
1310 |
-
value="' . esc_attr( __( 'Rotate left', 'wp-photo-album-plus') ) . '"
|
1311 |
/>
|
1312 |
<input
|
1313 |
type="button"
|
1314 |
onclick="wppaTryRot180( ' . $id . ' )"
|
1315 |
-
value="' . esc_attr( __( 'Rotate 180°', 'wp-photo-album-plus') ) . '"
|
1316 |
/>
|
1317 |
<input
|
1318 |
type="button"
|
1319 |
onclick="wppaTryRotRight( ' . $id . ' )"
|
1320 |
-
value="' . esc_attr( __( 'Rotate right', 'wp-photo-album-plus') ) . '"
|
1321 |
/>
|
1322 |
<input
|
1323 |
type="button"
|
1324 |
onclick="wppaTryFlip( ' . $id . ' )"
|
1325 |
-
value="' . esc_attr( __( 'Flip', 'wp-photo-album-plus') ) . ' —"
|
1326 |
/>
|
1327 |
<input
|
1328 |
type="button"
|
1329 |
onclick="wppaTryFlop( ' . $id . ' )"
|
1330 |
-
value="' . esc_attr( __( 'Flip', 'wp-photo-album-plus') ) . ' |"
|
1331 |
/>' );
|
1332 |
}
|
1333 |
}
|
@@ -1500,7 +1500,7 @@ function wppaToggleExif( id, count ) {
|
|
1500 |
<input
|
1501 |
type="button"
|
1502 |
onclick="wppaTryMagick( ' . $id . ', \'magickrot180\' )"
|
1503 |
-
value="' . esc_attr( __( 'Rotate 180°', 'wp-photo-album-plus') ) . '"
|
1504 |
/> ' );
|
1505 |
|
1506 |
// Rotate right
|
@@ -1508,7 +1508,7 @@ function wppaToggleExif( id, count ) {
|
|
1508 |
<input
|
1509 |
type="button"
|
1510 |
onclick="wppaTryMagick( ' . $id . ', \'magickrotright\' )"
|
1511 |
-
value="' . esc_attr( __( 'Rotate right', 'wp-photo-album-plus') ) . '"
|
1512 |
/> ' );
|
1513 |
|
1514 |
// Flip
|
@@ -1516,7 +1516,7 @@ function wppaToggleExif( id, count ) {
|
|
1516 |
<input
|
1517 |
type="button"
|
1518 |
onclick="wppaTryMagick( ' . $id . ', \'magickflip\' )"
|
1519 |
-
value="' . esc_attr( __( 'Flip', 'wp-photo-album-plus') ) . ' —"
|
1520 |
title="-flip"
|
1521 |
/> ' );
|
1522 |
|
@@ -1525,7 +1525,7 @@ function wppaToggleExif( id, count ) {
|
|
1525 |
<input
|
1526 |
type="button"
|
1527 |
onclick="wppaTryMagick( ' . $id . ', \'magickflop\' )"
|
1528 |
-
value="' . esc_attr( __( 'Flop', 'wp-photo-album-plus') ) . ' |"
|
1529 |
title="-flop"
|
1530 |
/> ' );
|
1531 |
|
@@ -1534,7 +1534,7 @@ function wppaToggleExif( id, count ) {
|
|
1534 |
<input
|
1535 |
type="button"
|
1536 |
onclick="wppaTryMagick( ' . $id . ', \'enhance\' )"
|
1537 |
-
value="' . esc_attr( __( 'Enhance', 'wp-photo-album-plus') ) . '"
|
1538 |
title="-enhance"
|
1539 |
/> ' );
|
1540 |
|
@@ -1831,7 +1831,7 @@ function wppaToggleExif( id, count ) {
|
|
1831 |
wppa_echo(
|
1832 |
'<tr>' .
|
1833 |
'<td>' .
|
1834 |
-
__( 'Photoname:' , 'wp-photo-album-plus') . '
|
1835 |
</td>
|
1836 |
<td>' .
|
1837 |
'<input' .
|
@@ -1876,7 +1876,7 @@ function wppaToggleExif( id, count ) {
|
|
1876 |
wppa_echo(
|
1877 |
'<tr>' .
|
1878 |
'<td>' .
|
1879 |
-
__( 'Description:', 'wp-photo-album-plus') .
|
1880 |
'</td>' .
|
1881 |
'<td>' .
|
1882 |
esc_html( $description ) .
|
@@ -1905,7 +1905,7 @@ function wppaToggleExif( id, count ) {
|
|
1905 |
( $allowed ?
|
1906 |
'<br>' .
|
1907 |
'<span class="description">' .
|
1908 |
-
__( 'Separate tags with commas.', 'wp-photo-album-plus') .
|
1909 |
'</span>' : '' ) .
|
1910 |
'<select' .
|
1911 |
' onchange="wppaAddTag( this.value, \'tags-' . $id . '\' ); wppaAjaxUpdatePhoto( ' . $id . ', \'tags\', document.getElementById( \'tags-' . $id . '\' ).value )"' .
|
@@ -2054,7 +2054,7 @@ function wppaToggleExif( id, count ) {
|
|
2054 |
wppa_echo(
|
2055 |
'<br>' .
|
2056 |
'<span class="description">' .
|
2057 |
-
__( 'If you want this link to be used, check \'PS Overrule\' checkbox in table VI.' , 'wp-photo-album-plus') .
|
2058 |
'</span>', 'post' );
|
2059 |
}
|
2060 |
wppa_echo(
|
@@ -2069,7 +2069,7 @@ function wppaToggleExif( id, count ) {
|
|
2069 |
wppa_echo(
|
2070 |
'<tr>' .
|
2071 |
'<td>' .
|
2072 |
-
__( 'HTML Alt attribute:' , 'wp-photo-album-plus') .
|
2073 |
'</td>' .
|
2074 |
'<td>' .
|
2075 |
'<input' .
|
@@ -2129,7 +2129,7 @@ function wppaToggleExif( id, count ) {
|
|
2129 |
wppa_echo(
|
2130 |
'<tr>' .
|
2131 |
'<td>' .
|
2132 |
-
__( 'High resolution url', 'wp-photo-album-plus') . ':' .
|
2133 |
'</td>' .
|
2134 |
'<td>' .
|
2135 |
'<a href="' . esc_attr( $hru ) . '" target="_blank">' . $hru . '</a>' .
|
@@ -2144,7 +2144,7 @@ function wppaToggleExif( id, count ) {
|
|
2144 |
wppa_echo(
|
2145 |
'<tr>' .
|
2146 |
'<td>' .
|
2147 |
-
__( 'Display file url', 'wp-photo-album-plus') . ':' .
|
2148 |
'</td>' .
|
2149 |
'<td>' .
|
2150 |
'<a href="' . esc_attr( $lru ) . '" target="_blank">' . $lru . '</a>' .
|
@@ -2333,19 +2333,19 @@ function wppaToggleExif( id, count ) {
|
|
2333 |
' style="background-color:' . ( $comment['status'] == 'approved' ? '#ffffe0' : '#ffebe8' ) . '"' .
|
2334 |
' onchange="wppaAjaxUpdateCommentStatus( '.$id.', '.$comment['id'].', this.value );wppaSetComBgCol(' . $comment['id'] . ')"' .
|
2335 |
' >' .
|
2336 |
-
'<option value="pending" '.$p.'>'.__( 'Pending' , 'wp-photo-album-plus').'</option>' .
|
2337 |
-
'<option value="approved" '.$a.'>'.__( 'Approved' , 'wp-photo-album-plus').'</option>' .
|
2338 |
-
'<option value="spam" '.$s.'>'.__( 'Spam' , 'wp-photo-album-plus').'</option>' .
|
2339 |
-
'<option value="trash" '.$t.'>'.__( 'Trash' , 'wp-photo-album-plus').'</option>' .
|
2340 |
'</select >' .
|
2341 |
'</td>' );
|
2342 |
}
|
2343 |
else {
|
2344 |
wppa_echo( '<td style="padding:0 4px">' );
|
2345 |
-
if ( $comment['status'] == 'pending' ) _e( 'Pending' , 'wp-photo-album-plus');
|
2346 |
-
elseif ( $comment['status'] == 'approved' ) _e( 'Approved' , 'wp-photo-album-plus');
|
2347 |
-
elseif ( $comment['status'] == 'spam' ) _e( 'Spam' , 'wp-photo-album-plus');
|
2348 |
-
elseif ( $comment['status'] == 'trash' ) _e( 'Trash' , 'wp-photo-album-plus');
|
2349 |
wppa_echo( '</td>', 'post' );
|
2350 |
}
|
2351 |
wppa_echo( '<td style="padding:0 4px">'.$comment['comment'].'</td>
|
@@ -2378,7 +2378,7 @@ function wppa_album_photos_bulk( $album ) {
|
|
2378 |
if ( $album == 'moderate' ) {
|
2379 |
// Can i moderate?
|
2380 |
if ( ! current_user_can( 'wppa_moderate' ) ) {
|
2381 |
-
wp_die( __( 'You do not have the rights to do this' , 'wp-photo-album-plus') );
|
2382 |
}
|
2383 |
}
|
2384 |
|
@@ -2414,7 +2414,7 @@ function wppa_album_photos_bulk( $album ) {
|
|
2414 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2415 |
$exists = $wpdb->get_var ( $wpdb->prepare ( "SELECT COUNT(*) FROM $wpdb->wppa_photos WHERE filename = %s AND album = %s", $photo['filename'], $newalb ) );
|
2416 |
if ( $exists ) { // Already exists
|
2417 |
-
wppa_error_message ( sprintf ( __( 'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus'), $photo['filename'], $newalb ) );
|
2418 |
$skip = true;
|
2419 |
}
|
2420 |
}
|
@@ -2436,7 +2436,7 @@ function wppa_album_photos_bulk( $album ) {
|
|
2436 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2437 |
$exists = $wpdb->get_var ( $wpdb->prepare ( "SELECT COUNT(*) FROM $wpdb->wppa_photos WHERE filename = %s AND album = %s", $photo['filename'], $newalb ) );
|
2438 |
if ( $exists ) { // Already exists
|
2439 |
-
wppa_error_message ( sprintf ( __( $exists.'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus'), $photo['filename'], $newalb ) );
|
2440 |
$skip = true;
|
2441 |
}
|
2442 |
}
|
@@ -2488,7 +2488,7 @@ function wppa_album_photos_bulk( $album ) {
|
|
2488 |
}
|
2489 |
if ( ! $skip ) $count++;
|
2490 |
if ( wppa_is_time_up() ) {
|
2491 |
-
wppa_error_message( sprintf( __( 'Time is out after processing %d out of %d items.' , 'wp-photo-album-plus'), $count, $totcount ) );
|
2492 |
$abort = true;
|
2493 |
}
|
2494 |
if ( $abort ) break;
|
@@ -2607,7 +2607,7 @@ function wppaTryMove( id, video ) {
|
|
2607 |
function wppaConfirmAndDelete(id, immediate) {
|
2608 |
if ( ! jQuery("#confirm-delete").prop("checked") ||
|
2609 |
confirm( "' . esc_js( __( 'Are you sure you want to delete this photo?', 'wp-photo-album-plus' ) ) . '" ) ) {
|
2610 |
-
jQuery("#wppa-delete-"+id).html( "' . esc_js( __('Deleting...', 'wp-photo-album-plus') ) . '" );
|
2611 |
wppaAjaxDeletePhoto(id, "<td colspan=8 >", "</td>", immediate);
|
2612 |
}
|
2613 |
}';
|
@@ -2666,22 +2666,22 @@ function wppaTryMove( id, video ) {
|
|
2666 |
wppa_echo( $result );
|
2667 |
?>
|
2668 |
<select name="wppa-bulk-status" id="wppa-bulk-status" style="display:none" onchange="wppa_setCookie( 'wppa_bulk_status',this.value,365 )">
|
2669 |
-
<option value=""><?php _e( '- select a status -' , 'wp-photo-album-plus') ?></option>
|
2670 |
-
<option value="pending"><?php _e( 'Pending' , 'wp-photo-album-plus') ?></option>
|
2671 |
-
<option value="publish"><?php _e( 'Publish' , 'wp-photo-album-plus') ?></option>
|
2672 |
<?php if ( wppa_switch( 'ext_status_restricted' ) && ! wppa_user_is( 'administrator' ) ) $dis = ' disabled'; else $dis = ''; ?>
|
2673 |
-
<option value="featured"<?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Featured' , 'wp-photo-album-plus') ?></option>
|
2674 |
-
<option value="gold" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Gold' , 'wp-photo-album-plus') ?></option>
|
2675 |
-
<option value="silver" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Silver' , 'wp-photo-album-plus') ?></option>
|
2676 |
-
<option value="bronze" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Bronze' , 'wp-photo-album-plus') ?></option>
|
2677 |
-
<option value="scheduled" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Scheduled' , 'wp-photo-album-plus') ?></option>
|
2678 |
-
<option value="private" <?php wppa_echo( $dis, 'post' ) ?> ><?php _e( 'Private' , 'wp-photo-album-plus') ?></option>
|
2679 |
</select>
|
2680 |
<!-- Owner -->
|
2681 |
<?php $users = wppa_get_users();
|
2682 |
if ( count( $users ) ) { ?>
|
2683 |
<select name="wppa-bulk-owner" id="wppa-bulk-owner" style="display:none" onchange="wppa_setCookie( 'wppa_bulk_owner',this.value,365 )">
|
2684 |
-
<option value=""><?php _e( '- select an owner -' , 'wp-photo-album-plus') ?></option>
|
2685 |
<?php
|
2686 |
|
2687 |
foreach ( $users as $user ) {
|
@@ -2693,7 +2693,7 @@ function wppaTryMove( id, video ) {
|
|
2693 |
<input name="wppa-bulk-owner" id="wppa-bulk-owner" style="display:none" onchange="wppa_setCookie( 'wppa_bulk_owner',this.value,365 )" />
|
2694 |
<?php } ?>
|
2695 |
<!-- Submit -->
|
2696 |
-
<input type="submit" onclick="return wppaBulkDoitOnClick()" class="button-primary" value="<?php _e( 'Doit!' , 'wp-photo-album-plus') ?>" />
|
2697 |
<?php
|
2698 |
if ( wppa_is_mobile() ) {
|
2699 |
wppa_echo( '<br>', 'post' );
|
@@ -2705,7 +2705,7 @@ function wppaTryMove( id, video ) {
|
|
2705 |
'<option value="0" ' . ( $next_after == '0' ? 'selected' : '' ) . ' >' . __( 'the same page', 'wp-photo-album-plus' ) . '</option>' .
|
2706 |
'<option value="1" ' . ( $next_after == '1' ? 'selected' : '' ) . ' >' . __( 'the next page', 'wp-photo-album-plus' ) . '</option>' .
|
2707 |
'</select>';
|
2708 |
-
wppa_echo( sprintf( __( 'Go to %s after Doit!.', 'wp-photo-album-plus'), $nextafterselhtml ) );
|
2709 |
if ( wppa_is_mobile() ) {
|
2710 |
wppa_echo( '<br>', 'post' );
|
2711 |
}
|
@@ -2718,7 +2718,7 @@ function wppaTryMove( id, video ) {
|
|
2718 |
checked="checked"
|
2719 |
onchange="wppaToggleConfirmDelete( this )"
|
2720 |
/>
|
2721 |
-
<?php _e('Confirm delete', 'wp-photo-album-plus') ?>
|
2722 |
|
2723 |
<input
|
2724 |
type="checkbox"
|
@@ -2727,7 +2727,7 @@ function wppaTryMove( id, video ) {
|
|
2727 |
checked="checked"
|
2728 |
onchange="wppaToggleConfirmMove(this)"
|
2729 |
/>
|
2730 |
-
<?php _e('Confirm move', 'wp-photo-album-plus') ?>
|
2731 |
|
2732 |
<?php wppa_echo( '<small style="float:right"> (' . count( $photos ) . ')</small>', 'post' );
|
2733 |
|
@@ -2737,13 +2737,13 @@ function wppaTryMove( id, video ) {
|
|
2737 |
<table class="widefat">
|
2738 |
<thead style="font-weight:bold">
|
2739 |
<td><input type="checkbox" class="wppa-bulk-photo" onchange="jQuery( '.wppa-bulk-photo' ).prop( 'checked', this.checked )" /></td>
|
2740 |
-
<td><?php _e( 'ID' , 'wp-photo-album-plus') ?></td>
|
2741 |
-
<td><?php _e( 'Preview' , 'wp-photo-album-plus') ?></td>
|
2742 |
-
<td><?php _e( 'Name' , 'wp-photo-album-plus') ?></td>
|
2743 |
-
<td><?php _e( 'Description' , 'wp-photo-album-plus') ?></td>
|
2744 |
-
<td><?php _e( 'Status' , 'wp-photo-album-plus') ?></td>
|
2745 |
-
<td><?php _e( 'Owner' , 'wp-photo-album-plus') ?></td>
|
2746 |
-
<td><?php _e( 'Remark' , 'wp-photo-album-plus') ?></td>
|
2747 |
</thead>
|
2748 |
<tbody>
|
2749 |
<?php
|
@@ -2894,26 +2894,26 @@ function wppaTryMove( id, video ) {
|
|
2894 |
<td>
|
2895 |
<?php if ( current_user_can( 'wppa_admin' ) || current_user_can( 'wppa_moderate' ) ) { ?>
|
2896 |
<select id="status-<?php wppa_echo( $photo['id'], 'post' ) ?>" onchange="wppaAjaxUpdatePhoto( <?php wppa_echo( $photo['id'], 'post' ) ?>, 'status', this.value); wppaPhotoStatusChange( <?php wppa_echo( $photo['id'], 'post' ) ?> ); ">
|
2897 |
-
<option value="pending" <?php if ( $photo['status']=='pending' ) wppa_echo( 'selected', 'post' )?> ><?php _e( 'Pending' , 'wp-photo-album-plus') ?></option>
|
2898 |
-
<option value="publish" <?php if ( $photo['status']=='publish' ) wppa_echo( 'selected', 'post' )?> ><?php _e( 'Publish' , 'wp-photo-album-plus') ?></option>
|
2899 |
<?php if ( wppa_switch( 'ext_status_restricted' ) && ! wppa_user_is( 'administrator' ) ) $dis = ' disabled'; else $dis = ''; ?>
|
2900 |
-
<option value="featured" <?php if ( $photo['status']=='featured' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Featured' , 'wp-photo-album-plus') ?></option>
|
2901 |
-
<option value="gold" <?php if ( $photo['status'] == 'gold' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Gold' , 'wp-photo-album-plus') ?></option>
|
2902 |
-
<option value="silver" <?php if ( $photo['status'] == 'silver' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Silver' , 'wp-photo-album-plus') ?></option>
|
2903 |
-
<option value="bronze" <?php if ( $photo['status'] == 'bronze' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Bronze' , 'wp-photo-album-plus') ?></option>
|
2904 |
-
<option value="scheduled" <?php if ( $photo['status'] == 'scheduled' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Scheduled' , 'wp-photo-album-plus') ?></option>
|
2905 |
-
<option value="private" <?php if ( $photo['status'] == 'private' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis , 'post' )?> ><?php _e( 'Private' , 'wp-photo-album-plus') ?></option>
|
2906 |
</select>
|
2907 |
<?php }
|
2908 |
else {
|
2909 |
-
if ( $photo['status'] == 'pending' ) _e( 'Pending' , 'wp-photo-album-plus');
|
2910 |
-
elseif ( $photo['status'] == 'publish' ) _e( 'Publish' , 'wp-photo-album-plus');
|
2911 |
elseif ( $photo['status'] == 'featured' ) e( 'Featured' );
|
2912 |
-
elseif ( $photo['status'] == 'gold' ) _e( 'Gold' , 'wp-photo-album-plus');
|
2913 |
-
elseif ( $photo['status'] == 'silver' ) _e( 'Silver' , 'wp-photo-album-plus');
|
2914 |
-
elseif ( $photo['status'] == 'bronze' ) _e( 'Bronze' , 'wp-photo-album-plus');
|
2915 |
-
elseif ( $photo['status'] == 'scheduled' ) _e( 'Scheduled' , 'wp-photo-album-plus');
|
2916 |
-
elseif ( $photo['status'] == 'private' ) _e( 'Private' , 'wp-photo-album-plus');
|
2917 |
} ?>
|
2918 |
</td>
|
2919 |
<!-- Owner -->
|
@@ -2922,7 +2922,7 @@ function wppaTryMove( id, video ) {
|
|
2922 |
</td>
|
2923 |
<!-- Remark -->
|
2924 |
<td id="remark-<?php wppa_echo( $photo['id'], 'post' ) ?>" style="width:25%">
|
2925 |
-
<?php _e( 'Not modified' , 'wp-photo-album-plus') ?>
|
2926 |
<?php wppa_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('.$photo['id'].');' ); ?>
|
2927 |
</td>
|
2928 |
</tr>
|
@@ -2930,13 +2930,13 @@ function wppaTryMove( id, video ) {
|
|
2930 |
</tbody>
|
2931 |
<tfoot style="font-weight:bold">
|
2932 |
<td><input type="checkbox" class="wppa-bulk-photo" onchange="jQuery( '.wppa-bulk-photo' ).prop( 'checked', this.checked )" /></td>
|
2933 |
-
<td><?php _e( 'ID' , 'wp-photo-album-plus') ?></td>
|
2934 |
-
<td><?php _e( 'Preview' , 'wp-photo-album-plus') ?></td>
|
2935 |
-
<td><?php _e( 'Name' , 'wp-photo-album-plus') ?></td>
|
2936 |
-
<td><?php _e( 'Description' , 'wp-photo-album-plus') ?></td>
|
2937 |
-
<td><?php _e( 'Status' , 'wp-photo-album-plus') ?></td>
|
2938 |
-
<td><?php _e( 'Owner' , 'wp-photo-album-plus') ?></td>
|
2939 |
-
<td><?php _e( 'Remark' , 'wp-photo-album-plus') ?></td>
|
2940 |
</tfoot>
|
2941 |
</table>
|
2942 |
</form>
|
@@ -3055,7 +3055,7 @@ global $wpdb;
|
|
3055 |
}';
|
3056 |
wppa_add_inline_script( 'wppa-admin', $the_js );
|
3057 |
|
3058 |
-
if ( ! $is_p_order ) wppa_warning_message( __( 'Setting photo sequence order has only effect if the photo order method is set to <b>Order#</b>' , 'wp-photo-album-plus') ) ?>
|
3059 |
<div class="widefat wppa-photo-admin-sortable" style="border-color:#cccccc">
|
3060 |
<ul id="sortable">
|
3061 |
<?php foreach ( $photos as $photo ) {
|
@@ -3114,10 +3114,10 @@ global $wpdb;
|
|
3114 |
} ?>
|
3115 |
<div style="font-size:9px; position:absolute; bottom:24px; text-align:center; width:<?php wppa_echo( $size, 'post' ) ?>px"><?php wppa_echo( wppa_get_photo_name( $photo['id'] ), 'post' ) ?></div>
|
3116 |
<div style="text-align: center; width: <?php wppa_echo( $size, 'post' ) ?>px; position:absolute; bottom:8px">
|
3117 |
-
<span style="margin-left:15px;float:left"><?php wppa_echo( __( 'Id: ' , 'wp-photo-album-plus').$photo['id'], 'post' )?></span>
|
3118 |
-
<?php if ( wppa_is_video( $photo['id'] ) )_e('Video', 'wp-photo-album-plus'); ?>
|
3119 |
-
<?php if ( wppa_has_audio( $photo['id'] ) ) _e('Audio', 'wp-photo-album-plus'); ?>
|
3120 |
-
<span style="float:right; margin-right:15px"><?php wppa_echo( __( 'Ord: ' , 'wp-photo-album-plus').'<span id="wppa-seqno-'.$photo['id'].'">'.$photo['p_order'], 'post' ) ?></span>
|
3121 |
</div>
|
3122 |
<input type="hidden" id="photo-nonce-<?php wppa_echo( $photo['id'], 'post' ) ?>" value="<?php wppa_echo( wp_create_nonce( 'wppa-nonce_'.$photo['id'] ), 'post' ); ?>" />
|
3123 |
<input type="hidden" class="wppa-sort-item" value="<?php wppa_echo( $photo['id'], 'post' ) ?>" />
|
@@ -3130,7 +3130,7 @@ global $wpdb;
|
|
3130 |
<?php
|
3131 |
}
|
3132 |
else {
|
3133 |
-
wppa_echo( '<h3>'.__( 'The album is empty.' , 'wp-photo-album-plus').'</h3>', 'post' );
|
3134 |
}
|
3135 |
}
|
3136 |
else {
|
@@ -3267,10 +3267,10 @@ global $wppa_search_stats;
|
|
3267 |
<thead>
|
3268 |
<tr>
|
3269 |
<td><b>' .
|
3270 |
-
__('Word', 'wp-photo-album-plus') . '
|
3271 |
</b></td>
|
3272 |
<td><b>' .
|
3273 |
-
__('Count', 'wp-photo-album-plus') . '
|
3274 |
</b></td>
|
3275 |
</tr>
|
3276 |
<tr>
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
50 |
wppa_echo( '</div>', 'post' );
|
51 |
}
|
52 |
else {
|
53 |
+
wppa_echo( '<div class="wrap"><h2>' . esc_html__( 'Moderate photos' , 'wp-photo-album-plus' ) . '</h2>', 'post' );
|
54 |
if ( wppa_switch( 'moderate_bulk' ) ) {
|
55 |
wppa_album_photos_bulk( 'moderate' );
|
56 |
}
|
561 |
default:
|
562 |
$sortby_orderno = false;
|
563 |
}
|
564 |
+
$wms = array( 'toplft' => __( 'top - left' , 'wp-photo-album-plus' ), 'topcen' => __( 'top - center' , 'wp-photo-album-plus' ), 'toprht' => __( 'top - right' , 'wp-photo-album-plus' ),
|
565 |
+
'cenlft' => __( 'center - left' , 'wp-photo-album-plus' ), 'cencen' => __( 'center - center' , 'wp-photo-album-plus' ), 'cenrht' => __( 'center - right' , 'wp-photo-album-plus' ),
|
566 |
+
'botlft' => __( 'bottom - left' , 'wp-photo-album-plus' ), 'botcen' => __( 'bottom - center' , 'wp-photo-album-plus' ), 'botrht' => __( 'bottom - right' , 'wp-photo-album-plus' ), );
|
567 |
|
568 |
// Album for moderate
|
569 |
if ( $modalbum != $album && $album && ! wppa_get( 'just-edit' ) && wppa_get( 'edit-id' ) != 'trash' ) {
|
622 |
<a
|
623 |
href="' . esc_attr( $big ) . '"
|
624 |
target="_blank"
|
625 |
+
title="' . esc_attr( __( 'Preview fullsize video' , 'wp-photo-album-plus' ) ) . '"
|
626 |
>' .
|
627 |
wppa_get_video_html( array( 'id' => $id,
|
628 |
'tagid' => 'video-' . $id,
|
854 |
|
855 |
// Status
|
856 |
wppa_echo( '<br>' .
|
857 |
+
__( 'Status:' , 'wp-photo-album-plus' ) . ' ', 'post' );
|
858 |
if ( ( current_user_can( 'wppa_admin' ) || current_user_can( 'wppa_moderate' ) ) ) {
|
859 |
if ( wppa_switch( 'ext_status_restricted' ) && ! wppa_user_is( 'administrator' ) ) {
|
860 |
$dis = ' disabled';
|
1004 |
|
1005 |
// Thumbnail
|
1006 |
if ( ! $is_video ) {
|
1007 |
+
wppa_echo( __( 'Thumbnail file:', 'wp-photo-album-plus' ) . ' ', 'post' );
|
1008 |
$tp = wppa_get_thumb_path( $id );
|
1009 |
if ( is_file( $tp ) ) {
|
1010 |
|
1215 |
onchange="wppaAjaxUpdatePhoto( ' . $id . ', \'make360\', this.value, true)"
|
1216 |
title="' . esc_attr( __( 'Select the closest angle you originally made the panorama', 'wp-photo-album-plus' ) ) . '"
|
1217 |
>
|
1218 |
+
<option value="">'.__('Select', 'wp-photo-album-plus' ).'</option>' );
|
1219 |
$t = array( 120, 150, 180, 210, 240, 270, 300, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450 );
|
1220 |
foreach( $t as $v ) {
|
1221 |
wppa_echo( '<option value="'.$v.'" '.($v==$angle?'selected ':' ').'>'.$v.'°</option>' );
|
1222 |
}
|
1223 |
wppa_echo( '
|
1224 |
+
<option value="0">'.__('Undo', 'wp-photo-album-plus' ).'</option>
|
1225 |
</select>' );
|
1226 |
}
|
1227 |
}
|
1243 |
$has_source = wppa_is_file( wppa_get_source_path( $id ) );
|
1244 |
$can_remove = ( wppa_opt( 'watermark_file' ) == '--- none ---' ) ? '1' : '0';
|
1245 |
if ( wppa_switch( 'watermark_user' ) || current_user_can( 'wppa_settings' ) ) {
|
1246 |
+
wppa_echo( ' ' . __( 'Watermark:', 'wp-photo-album-plus' ) . ' ', 'post' );
|
1247 |
wppa_echo(
|
1248 |
'<select' .
|
1249 |
' id="wmfsel_' . $id . '"' .
|
1274 |
}
|
1275 |
elseif ( basename( $wmfile ) != '--- none ---' ) {
|
1276 |
wppa_echo(
|
1277 |
+
__( 'Watermark:', 'wp-photo-album-plus' ) . ' ' .
|
1278 |
__( 'File:', 'wp-photo-album-plus' ) . ' ' . strip_tags( basename( $wmfile ) ) . ' ' .
|
1279 |
+
__( 'Pos:', 'wp-photo-album-plus' ) . ' ' . strip_tags( $wmpos ), 'post' );
|
1280 |
}
|
1281 |
wppa_echo( ' ', 'post' );
|
1282 |
}
|
1307 |
<input
|
1308 |
type="button"
|
1309 |
onclick="wppaTryRotLeft( ' . $id . ' )"
|
1310 |
+
value="' . esc_attr( __( 'Rotate left', 'wp-photo-album-plus' ) ) . '"
|
1311 |
/>
|
1312 |
<input
|
1313 |
type="button"
|
1314 |
onclick="wppaTryRot180( ' . $id . ' )"
|
1315 |
+
value="' . esc_attr( __( 'Rotate 180°', 'wp-photo-album-plus' ) ) . '"
|
1316 |
/>
|
1317 |
<input
|
1318 |
type="button"
|
1319 |
onclick="wppaTryRotRight( ' . $id . ' )"
|
1320 |
+
value="' . esc_attr( __( 'Rotate right', 'wp-photo-album-plus' ) ) . '"
|
1321 |
/>
|
1322 |
<input
|
1323 |
type="button"
|
1324 |
onclick="wppaTryFlip( ' . $id . ' )"
|
1325 |
+
value="' . esc_attr( __( 'Flip', 'wp-photo-album-plus' ) ) . ' —"
|
1326 |
/>
|
1327 |
<input
|
1328 |
type="button"
|
1329 |
onclick="wppaTryFlop( ' . $id . ' )"
|
1330 |
+
value="' . esc_attr( __( 'Flip', 'wp-photo-album-plus' ) ) . ' |"
|
1331 |
/>' );
|
1332 |
}
|
1333 |
}
|
1500 |
<input
|
1501 |
type="button"
|
1502 |
onclick="wppaTryMagick( ' . $id . ', \'magickrot180\' )"
|
1503 |
+
value="' . esc_attr( __( 'Rotate 180°', 'wp-photo-album-plus' ) ) . '"
|
1504 |
/> ' );
|
1505 |
|
1506 |
// Rotate right
|
1508 |
<input
|
1509 |
type="button"
|
1510 |
onclick="wppaTryMagick( ' . $id . ', \'magickrotright\' )"
|
1511 |
+
value="' . esc_attr( __( 'Rotate right', 'wp-photo-album-plus' ) ) . '"
|
1512 |
/> ' );
|
1513 |
|
1514 |
// Flip
|
1516 |
<input
|
1517 |
type="button"
|
1518 |
onclick="wppaTryMagick( ' . $id . ', \'magickflip\' )"
|
1519 |
+
value="' . esc_attr( __( 'Flip', 'wp-photo-album-plus' ) ) . ' —"
|
1520 |
title="-flip"
|
1521 |
/> ' );
|
1522 |
|
1525 |
<input
|
1526 |
type="button"
|
1527 |
onclick="wppaTryMagick( ' . $id . ', \'magickflop\' )"
|
1528 |
+
value="' . esc_attr( __( 'Flop', 'wp-photo-album-plus' ) ) . ' |"
|
1529 |
title="-flop"
|
1530 |
/> ' );
|
1531 |
|
1534 |
<input
|
1535 |
type="button"
|
1536 |
onclick="wppaTryMagick( ' . $id . ', \'enhance\' )"
|
1537 |
+
value="' . esc_attr( __( 'Enhance', 'wp-photo-album-plus' ) ) . '"
|
1538 |
title="-enhance"
|
1539 |
/> ' );
|
1540 |
|
1831 |
wppa_echo(
|
1832 |
'<tr>' .
|
1833 |
'<td>' .
|
1834 |
+
__( 'Photoname:' , 'wp-photo-album-plus' ) . '
|
1835 |
</td>
|
1836 |
<td>' .
|
1837 |
'<input' .
|
1876 |
wppa_echo(
|
1877 |
'<tr>' .
|
1878 |
'<td>' .
|
1879 |
+
__( 'Description:', 'wp-photo-album-plus' ) .
|
1880 |
'</td>' .
|
1881 |
'<td>' .
|
1882 |
esc_html( $description ) .
|
1905 |
( $allowed ?
|
1906 |
'<br>' .
|
1907 |
'<span class="description">' .
|
1908 |
+
__( 'Separate tags with commas.', 'wp-photo-album-plus' ) .
|
1909 |
'</span>' : '' ) .
|
1910 |
'<select' .
|
1911 |
' onchange="wppaAddTag( this.value, \'tags-' . $id . '\' ); wppaAjaxUpdatePhoto( ' . $id . ', \'tags\', document.getElementById( \'tags-' . $id . '\' ).value )"' .
|
2054 |
wppa_echo(
|
2055 |
'<br>' .
|
2056 |
'<span class="description">' .
|
2057 |
+
__( 'If you want this link to be used, check \'PS Overrule\' checkbox in table VI.' , 'wp-photo-album-plus' ) .
|
2058 |
'</span>', 'post' );
|
2059 |
}
|
2060 |
wppa_echo(
|
2069 |
wppa_echo(
|
2070 |
'<tr>' .
|
2071 |
'<td>' .
|
2072 |
+
__( 'HTML Alt attribute:' , 'wp-photo-album-plus' ) .
|
2073 |
'</td>' .
|
2074 |
'<td>' .
|
2075 |
'<input' .
|
2129 |
wppa_echo(
|
2130 |
'<tr>' .
|
2131 |
'<td>' .
|
2132 |
+
__( 'High resolution url', 'wp-photo-album-plus' ) . ':' .
|
2133 |
'</td>' .
|
2134 |
'<td>' .
|
2135 |
'<a href="' . esc_attr( $hru ) . '" target="_blank">' . $hru . '</a>' .
|
2144 |
wppa_echo(
|
2145 |
'<tr>' .
|
2146 |
'<td>' .
|
2147 |
+
__( 'Display file url', 'wp-photo-album-plus' ) . ':' .
|
2148 |
'</td>' .
|
2149 |
'<td>' .
|
2150 |
'<a href="' . esc_attr( $lru ) . '" target="_blank">' . $lru . '</a>' .
|
2333 |
' style="background-color:' . ( $comment['status'] == 'approved' ? '#ffffe0' : '#ffebe8' ) . '"' .
|
2334 |
' onchange="wppaAjaxUpdateCommentStatus( '.$id.', '.$comment['id'].', this.value );wppaSetComBgCol(' . $comment['id'] . ')"' .
|
2335 |
' >' .
|
2336 |
+
'<option value="pending" '.$p.'>'.__( 'Pending' , 'wp-photo-album-plus' ).'</option>' .
|
2337 |
+
'<option value="approved" '.$a.'>'.__( 'Approved' , 'wp-photo-album-plus' ).'</option>' .
|
2338 |
+
'<option value="spam" '.$s.'>'.__( 'Spam' , 'wp-photo-album-plus' ).'</option>' .
|
2339 |
+
'<option value="trash" '.$t.'>'.__( 'Trash' , 'wp-photo-album-plus' ).'</option>' .
|
2340 |
'</select >' .
|
2341 |
'</td>' );
|
2342 |
}
|
2343 |
else {
|
2344 |
wppa_echo( '<td style="padding:0 4px">' );
|
2345 |
+
if ( $comment['status'] == 'pending' ) _e( 'Pending' , 'wp-photo-album-plus' );
|
2346 |
+
elseif ( $comment['status'] == 'approved' ) _e( 'Approved' , 'wp-photo-album-plus' );
|
2347 |
+
elseif ( $comment['status'] == 'spam' ) _e( 'Spam' , 'wp-photo-album-plus' );
|
2348 |
+
elseif ( $comment['status'] == 'trash' ) _e( 'Trash' , 'wp-photo-album-plus' );
|
2349 |
wppa_echo( '</td>', 'post' );
|
2350 |
}
|
2351 |
wppa_echo( '<td style="padding:0 4px">'.$comment['comment'].'</td>
|
2378 |
if ( $album == 'moderate' ) {
|
2379 |
// Can i moderate?
|
2380 |
if ( ! current_user_can( 'wppa_moderate' ) ) {
|
2381 |
+
wp_die( __( 'You do not have the rights to do this' , 'wp-photo-album-plus' ) );
|
2382 |
}
|
2383 |
}
|
2384 |
|
2414 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2415 |
$exists = $wpdb->get_var ( $wpdb->prepare ( "SELECT COUNT(*) FROM $wpdb->wppa_photos WHERE filename = %s AND album = %s", $photo['filename'], $newalb ) );
|
2416 |
if ( $exists ) { // Already exists
|
2417 |
+
wppa_error_message ( sprintf ( __( 'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus' ), $photo['filename'], $newalb ) );
|
2418 |
$skip = true;
|
2419 |
}
|
2420 |
}
|
2436 |
if ( wppa_switch( 'void_dups' ) ) { // Check for already exists
|
2437 |
$exists = $wpdb->get_var ( $wpdb->prepare ( "SELECT COUNT(*) FROM $wpdb->wppa_photos WHERE filename = %s AND album = %s", $photo['filename'], $newalb ) );
|
2438 |
if ( $exists ) { // Already exists
|
2439 |
+
wppa_error_message ( sprintf ( __( $exists.'A photo with filename %s already exists in album %s.' , 'wp-photo-album-plus' ), $photo['filename'], $newalb ) );
|
2440 |
$skip = true;
|
2441 |
}
|
2442 |
}
|
2488 |
}
|
2489 |
if ( ! $skip ) $count++;
|
2490 |
if ( wppa_is_time_up() ) {
|
2491 |
+
wppa_error_message( sprintf( __( 'Time is out after processing %d out of %d items.' , 'wp-photo-album-plus' ), $count, $totcount ) );
|
2492 |
$abort = true;
|
2493 |
}
|
2494 |
if ( $abort ) break;
|
2607 |
function wppaConfirmAndDelete(id, immediate) {
|
2608 |
if ( ! jQuery("#confirm-delete").prop("checked") ||
|
2609 |
confirm( "' . esc_js( __( 'Are you sure you want to delete this photo?', 'wp-photo-album-plus' ) ) . '" ) ) {
|
2610 |
+
jQuery("#wppa-delete-"+id).html( "' . esc_js( __('Deleting...', 'wp-photo-album-plus' ) ) . '" );
|
2611 |
wppaAjaxDeletePhoto(id, "<td colspan=8 >", "</td>", immediate);
|
2612 |
}
|
2613 |
}';
|
2666 |
wppa_echo( $result );
|
2667 |
?>
|
2668 |
<select name="wppa-bulk-status" id="wppa-bulk-status" style="display:none" onchange="wppa_setCookie( 'wppa_bulk_status',this.value,365 )">
|
2669 |
+
<option value=""><?php _e( '- select a status -' , 'wp-photo-album-plus' ) ?></option>
|
2670 |
+
<option value="pending"><?php _e( 'Pending' , 'wp-photo-album-plus' ) ?></option>
|
2671 |
+
<option value="publish"><?php _e( 'Publish' , 'wp-photo-album-plus' ) ?></option>
|
2672 |
<?php if ( wppa_switch( 'ext_status_restricted' ) && ! wppa_user_is( 'administrator' ) ) $dis = ' disabled'; else $dis = ''; ?>
|
2673 |
+
<option value="featured"<?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Featured' , 'wp-photo-album-plus' ) ?></option>
|
2674 |
+
<option value="gold" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Gold' , 'wp-photo-album-plus' ) ?></option>
|
2675 |
+
<option value="silver" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Silver' , 'wp-photo-album-plus' ) ?></option>
|
2676 |
+
<option value="bronze" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Bronze' , 'wp-photo-album-plus' ) ?></option>
|
2677 |
+
<option value="scheduled" <?php wppa_echo( $dis, 'post' )?> ><?php _e( 'Scheduled' , 'wp-photo-album-plus' ) ?></option>
|
2678 |
+
<option value="private" <?php wppa_echo( $dis, 'post' ) ?> ><?php _e( 'Private' , 'wp-photo-album-plus' ) ?></option>
|
2679 |
</select>
|
2680 |
<!-- Owner -->
|
2681 |
<?php $users = wppa_get_users();
|
2682 |
if ( count( $users ) ) { ?>
|
2683 |
<select name="wppa-bulk-owner" id="wppa-bulk-owner" style="display:none" onchange="wppa_setCookie( 'wppa_bulk_owner',this.value,365 )">
|
2684 |
+
<option value=""><?php _e( '- select an owner -' , 'wp-photo-album-plus' ) ?></option>
|
2685 |
<?php
|
2686 |
|
2687 |
foreach ( $users as $user ) {
|
2693 |
<input name="wppa-bulk-owner" id="wppa-bulk-owner" style="display:none" onchange="wppa_setCookie( 'wppa_bulk_owner',this.value,365 )" />
|
2694 |
<?php } ?>
|
2695 |
<!-- Submit -->
|
2696 |
+
<input type="submit" onclick="return wppaBulkDoitOnClick()" class="button-primary" value="<?php _e( 'Doit!' , 'wp-photo-album-plus' ) ?>" />
|
2697 |
<?php
|
2698 |
if ( wppa_is_mobile() ) {
|
2699 |
wppa_echo( '<br>', 'post' );
|
2705 |
'<option value="0" ' . ( $next_after == '0' ? 'selected' : '' ) . ' >' . __( 'the same page', 'wp-photo-album-plus' ) . '</option>' .
|
2706 |
'<option value="1" ' . ( $next_after == '1' ? 'selected' : '' ) . ' >' . __( 'the next page', 'wp-photo-album-plus' ) . '</option>' .
|
2707 |
'</select>';
|
2708 |
+
wppa_echo( sprintf( __( 'Go to %s after Doit!.', 'wp-photo-album-plus' ), $nextafterselhtml ) );
|
2709 |
if ( wppa_is_mobile() ) {
|
2710 |
wppa_echo( '<br>', 'post' );
|
2711 |
}
|
2718 |
checked="checked"
|
2719 |
onchange="wppaToggleConfirmDelete( this )"
|
2720 |
/>
|
2721 |
+
<?php _e('Confirm delete', 'wp-photo-album-plus' ) ?>
|
2722 |
|
2723 |
<input
|
2724 |
type="checkbox"
|
2727 |
checked="checked"
|
2728 |
onchange="wppaToggleConfirmMove(this)"
|
2729 |
/>
|
2730 |
+
<?php _e('Confirm move', 'wp-photo-album-plus' ) ?>
|
2731 |
|
2732 |
<?php wppa_echo( '<small style="float:right"> (' . count( $photos ) . ')</small>', 'post' );
|
2733 |
|
2737 |
<table class="widefat">
|
2738 |
<thead style="font-weight:bold">
|
2739 |
<td><input type="checkbox" class="wppa-bulk-photo" onchange="jQuery( '.wppa-bulk-photo' ).prop( 'checked', this.checked )" /></td>
|
2740 |
+
<td><?php _e( 'ID' , 'wp-photo-album-plus' ) ?></td>
|
2741 |
+
<td><?php _e( 'Preview' , 'wp-photo-album-plus' ) ?></td>
|
2742 |
+
<td><?php _e( 'Name' , 'wp-photo-album-plus' ) ?></td>
|
2743 |
+
<td><?php _e( 'Description' , 'wp-photo-album-plus' ) ?></td>
|
2744 |
+
<td><?php _e( 'Status' , 'wp-photo-album-plus' ) ?></td>
|
2745 |
+
<td><?php _e( 'Owner' , 'wp-photo-album-plus' ) ?></td>
|
2746 |
+
<td><?php _e( 'Remark' , 'wp-photo-album-plus' ) ?></td>
|
2747 |
</thead>
|
2748 |
<tbody>
|
2749 |
<?php
|
2894 |
<td>
|
2895 |
<?php if ( current_user_can( 'wppa_admin' ) || current_user_can( 'wppa_moderate' ) ) { ?>
|
2896 |
<select id="status-<?php wppa_echo( $photo['id'], 'post' ) ?>" onchange="wppaAjaxUpdatePhoto( <?php wppa_echo( $photo['id'], 'post' ) ?>, 'status', this.value); wppaPhotoStatusChange( <?php wppa_echo( $photo['id'], 'post' ) ?> ); ">
|
2897 |
+
<option value="pending" <?php if ( $photo['status']=='pending' ) wppa_echo( 'selected', 'post' )?> ><?php _e( 'Pending' , 'wp-photo-album-plus' ) ?></option>
|
2898 |
+
<option value="publish" <?php if ( $photo['status']=='publish' ) wppa_echo( 'selected', 'post' )?> ><?php _e( 'Publish' , 'wp-photo-album-plus' ) ?></option>
|
2899 |
<?php if ( wppa_switch( 'ext_status_restricted' ) && ! wppa_user_is( 'administrator' ) ) $dis = ' disabled'; else $dis = ''; ?>
|
2900 |
+
<option value="featured" <?php if ( $photo['status']=='featured' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Featured' , 'wp-photo-album-plus' ) ?></option>
|
2901 |
+
<option value="gold" <?php if ( $photo['status'] == 'gold' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Gold' , 'wp-photo-album-plus' ) ?></option>
|
2902 |
+
<option value="silver" <?php if ( $photo['status'] == 'silver' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Silver' , 'wp-photo-album-plus' ) ?></option>
|
2903 |
+
<option value="bronze" <?php if ( $photo['status'] == 'bronze' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Bronze' , 'wp-photo-album-plus' ) ?></option>
|
2904 |
+
<option value="scheduled" <?php if ( $photo['status'] == 'scheduled' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis, 'post' )?> ><?php _e( 'Scheduled' , 'wp-photo-album-plus' ) ?></option>
|
2905 |
+
<option value="private" <?php if ( $photo['status'] == 'private' ) wppa_echo( 'selected', 'post' ); wppa_echo( $dis , 'post' )?> ><?php _e( 'Private' , 'wp-photo-album-plus' ) ?></option>
|
2906 |
</select>
|
2907 |
<?php }
|
2908 |
else {
|
2909 |
+
if ( $photo['status'] == 'pending' ) _e( 'Pending' , 'wp-photo-album-plus' );
|
2910 |
+
elseif ( $photo['status'] == 'publish' ) _e( 'Publish' , 'wp-photo-album-plus' );
|
2911 |
elseif ( $photo['status'] == 'featured' ) e( 'Featured' );
|
2912 |
+
elseif ( $photo['status'] == 'gold' ) _e( 'Gold' , 'wp-photo-album-plus' );
|
2913 |
+
elseif ( $photo['status'] == 'silver' ) _e( 'Silver' , 'wp-photo-album-plus' );
|
2914 |
+
elseif ( $photo['status'] == 'bronze' ) _e( 'Bronze' , 'wp-photo-album-plus' );
|
2915 |
+
elseif ( $photo['status'] == 'scheduled' ) _e( 'Scheduled' , 'wp-photo-album-plus' );
|
2916 |
+
elseif ( $photo['status'] == 'private' ) _e( 'Private' , 'wp-photo-album-plus' );
|
2917 |
} ?>
|
2918 |
</td>
|
2919 |
<!-- Owner -->
|
2922 |
</td>
|
2923 |
<!-- Remark -->
|
2924 |
<td id="remark-<?php wppa_echo( $photo['id'], 'post' ) ?>" style="width:25%">
|
2925 |
+
<?php _e( 'Not modified' , 'wp-photo-album-plus' ) ?>
|
2926 |
<?php wppa_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('.$photo['id'].');' ); ?>
|
2927 |
</td>
|
2928 |
</tr>
|
2930 |
</tbody>
|
2931 |
<tfoot style="font-weight:bold">
|
2932 |
<td><input type="checkbox" class="wppa-bulk-photo" onchange="jQuery( '.wppa-bulk-photo' ).prop( 'checked', this.checked )" /></td>
|
2933 |
+
<td><?php _e( 'ID' , 'wp-photo-album-plus' ) ?></td>
|
2934 |
+
<td><?php _e( 'Preview' , 'wp-photo-album-plus' ) ?></td>
|
2935 |
+
<td><?php _e( 'Name' , 'wp-photo-album-plus' ) ?></td>
|
2936 |
+
<td><?php _e( 'Description' , 'wp-photo-album-plus' ) ?></td>
|
2937 |
+
<td><?php _e( 'Status' , 'wp-photo-album-plus' ) ?></td>
|
2938 |
+
<td><?php _e( 'Owner' , 'wp-photo-album-plus' ) ?></td>
|
2939 |
+
<td><?php _e( 'Remark' , 'wp-photo-album-plus' ) ?></td>
|
2940 |
</tfoot>
|
2941 |
</table>
|
2942 |
</form>
|
3055 |
}';
|
3056 |
wppa_add_inline_script( 'wppa-admin', $the_js );
|
3057 |
|
3058 |
+
if ( ! $is_p_order ) wppa_warning_message( __( 'Setting photo sequence order has only effect if the photo order method is set to <b>Order#</b>' , 'wp-photo-album-plus' ) ) ?>
|
3059 |
<div class="widefat wppa-photo-admin-sortable" style="border-color:#cccccc">
|
3060 |
<ul id="sortable">
|
3061 |
<?php foreach ( $photos as $photo ) {
|
3114 |
} ?>
|
3115 |
<div style="font-size:9px; position:absolute; bottom:24px; text-align:center; width:<?php wppa_echo( $size, 'post' ) ?>px"><?php wppa_echo( wppa_get_photo_name( $photo['id'] ), 'post' ) ?></div>
|
3116 |
<div style="text-align: center; width: <?php wppa_echo( $size, 'post' ) ?>px; position:absolute; bottom:8px">
|
3117 |
+
<span style="margin-left:15px;float:left"><?php wppa_echo( __( 'Id: ' , 'wp-photo-album-plus' ).$photo['id'], 'post' )?></span>
|
3118 |
+
<?php if ( wppa_is_video( $photo['id'] ) )_e('Video', 'wp-photo-album-plus' ); ?>
|
3119 |
+
<?php if ( wppa_has_audio( $photo['id'] ) ) _e('Audio', 'wp-photo-album-plus' ); ?>
|
3120 |
+
<span style="float:right; margin-right:15px"><?php wppa_echo( __( 'Ord: ' , 'wp-photo-album-plus' ).'<span id="wppa-seqno-'.$photo['id'].'">'.$photo['p_order'], 'post' ) ?></span>
|
3121 |
</div>
|
3122 |
<input type="hidden" id="photo-nonce-<?php wppa_echo( $photo['id'], 'post' ) ?>" value="<?php wppa_echo( wp_create_nonce( 'wppa-nonce_'.$photo['id'] ), 'post' ); ?>" />
|
3123 |
<input type="hidden" class="wppa-sort-item" value="<?php wppa_echo( $photo['id'], 'post' ) ?>" />
|
3130 |
<?php
|
3131 |
}
|
3132 |
else {
|
3133 |
+
wppa_echo( '<h3>'.__( 'The album is empty.' , 'wp-photo-album-plus' ).'</h3>', 'post' );
|
3134 |
}
|
3135 |
}
|
3136 |
else {
|
3267 |
<thead>
|
3268 |
<tr>
|
3269 |
<td><b>' .
|
3270 |
+
__('Word', 'wp-photo-album-plus' ) . '
|
3271 |
</b></td>
|
3272 |
<td><b>' .
|
3273 |
+
__('Count', 'wp-photo-album-plus' ) . '
|
3274 |
</b></td>
|
3275 |
</tr>
|
3276 |
<tr>
|
wppa-photo-files.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-photo-files.php
|
3 |
*
|
4 |
* Functions used to create/manipulate photofiles
|
5 |
-
* Version 8.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -235,8 +235,8 @@ wppa_log('dbg', 'make called with'.$file.' '.$id.' '.$ext.' '.$do_thumb. ' exist
|
|
235 |
|
236 |
// If the given file is not an image file, log error and exit
|
237 |
if ( ! $src_size ) {
|
238 |
-
if ( is_admin() ) wppa_error_message( sprintf( __( 'ERROR: File %s is not a valid picture file.' , 'wp-photo-album-plus'), htmlspecialchars( $file ) ) );
|
239 |
-
else wppa_alert( __( 'ERROR: File is not a valid picture file.', 'wp-photo-album-plus') );
|
240 |
return false;
|
241 |
}
|
242 |
|
2 |
/* wppa-photo-files.php
|
3 |
*
|
4 |
* Functions used to create/manipulate photofiles
|
5 |
+
* Version 8.1.08.003
|
6 |
*
|
7 |
*/
|
8 |
|
235 |
|
236 |
// If the given file is not an image file, log error and exit
|
237 |
if ( ! $src_size ) {
|
238 |
+
if ( is_admin() ) wppa_error_message( sprintf( __( 'ERROR: File %s is not a valid picture file.' , 'wp-photo-album-plus' ), htmlspecialchars( $file ) ) );
|
239 |
+
else wppa_alert( __( 'ERROR: File is not a valid picture file.', 'wp-photo-album-plus' ) );
|
240 |
return false;
|
241 |
}
|
242 |
|
wppa-potd-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the photo of the day widget
|
6 |
-
* Version 8.1.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -54,7 +54,7 @@ class PhotoOfTheDay extends WP_Widget {
|
|
54 |
$usethumb = wppa_use_thumb_file( $id, '300', '0' );
|
55 |
$imgurl = $usethumb ? wppa_get_thumb_url( $id, true ) : wppa_get_photo_url( $id, true );
|
56 |
$name = wppa_get_photo_name( $id );
|
57 |
-
$page = ( in_array( wppa_opt( 'potd_linktype' ), wppa( 'links_no_page' ) ) && ! wppa_switch( 'potd_counter' ) ) ? '' : wppa_get_the_landing_page( 'potd_linkpage', __('Photo of the day', 'wp-photo-album-plus') );
|
58 |
$link = wppa_get_imglnk_a( 'potdwidget' , $id );
|
59 |
$is_video = wppa_is_video( $id );
|
60 |
$has_audio = wppa_has_audio( $id );
|
@@ -92,7 +92,7 @@ class PhotoOfTheDay extends WP_Widget {
|
|
92 |
}
|
93 |
else {
|
94 |
$cursor = ' cursor:default;';
|
95 |
-
$title = esc_attr(stripslashes(__($image['name'], 'wp-photo-album-plus')));
|
96 |
}
|
97 |
|
98 |
// The medal if on top
|
@@ -184,7 +184,7 @@ class PhotoOfTheDay extends WP_Widget {
|
|
184 |
$owner = $image['owner'];
|
185 |
$user = wppa_get_user_by('login', $owner);
|
186 |
$owner = $user->display_name;
|
187 |
-
$widget_content .= "\n".'<div class="wppa-widget-text wppa-potd-text" >'.__('By:', 'wp-photo-album-plus').' ' . $owner . '</div>';
|
188 |
break;
|
189 |
case 'extended':
|
190 |
$alb = wppa_get_photo_item( $id, 'album' );
|
@@ -259,7 +259,7 @@ class PhotoOfTheDay extends WP_Widget {
|
|
259 |
// Set defaults
|
260 |
function get_defaults() {
|
261 |
|
262 |
-
$defaults = array( 'title' => __('Photo of the day', 'wp-photo-album-plus'),
|
263 |
'logonly' => 'no',
|
264 |
);
|
265 |
return $defaults;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the photo of the day widget
|
6 |
+
* Version 8.1.08.003
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
54 |
$usethumb = wppa_use_thumb_file( $id, '300', '0' );
|
55 |
$imgurl = $usethumb ? wppa_get_thumb_url( $id, true ) : wppa_get_photo_url( $id, true );
|
56 |
$name = wppa_get_photo_name( $id );
|
57 |
+
$page = ( in_array( wppa_opt( 'potd_linktype' ), wppa( 'links_no_page' ) ) && ! wppa_switch( 'potd_counter' ) ) ? '' : wppa_get_the_landing_page( 'potd_linkpage', __('Photo of the day', 'wp-photo-album-plus' ) );
|
58 |
$link = wppa_get_imglnk_a( 'potdwidget' , $id );
|
59 |
$is_video = wppa_is_video( $id );
|
60 |
$has_audio = wppa_has_audio( $id );
|
92 |
}
|
93 |
else {
|
94 |
$cursor = ' cursor:default;';
|
95 |
+
$title = esc_attr(stripslashes(__($image['name'], 'wp-photo-album-plus' )));
|
96 |
}
|
97 |
|
98 |
// The medal if on top
|
184 |
$owner = $image['owner'];
|
185 |
$user = wppa_get_user_by('login', $owner);
|
186 |
$owner = $user->display_name;
|
187 |
+
$widget_content .= "\n".'<div class="wppa-widget-text wppa-potd-text" >'.__('By:', 'wp-photo-album-plus' ).' ' . $owner . '</div>';
|
188 |
break;
|
189 |
case 'extended':
|
190 |
$alb = wppa_get_photo_item( $id, 'album' );
|
259 |
// Set defaults
|
260 |
function get_defaults() {
|
261 |
|
262 |
+
$defaults = array( 'title' => __('Photo of the day', 'wp-photo-album-plus' ),
|
263 |
'logonly' => 'no',
|
264 |
);
|
265 |
return $defaults;
|
wppa-scripts.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
-
* Version 8.1.08.
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
@@ -444,10 +444,10 @@ global $wpdb;
|
|
444 |
wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/",
|
445 |
wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/",
|
446 |
wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/",
|
447 |
-
wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'",
|
448 |
-
wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'",
|
449 |
-
wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus').'",
|
450 |
-
wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus').'",
|
451 |
wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'",
|
452 |
wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";';
|
453 |
|
@@ -599,22 +599,23 @@ global $wppa_opt;
|
|
599 |
if ( strpos( $uri, $v ) !== false ) $skip = true;
|
600 |
if ( $skip ) continue;
|
601 |
}
|
602 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
603 |
|
604 |
// Nicescroller
|
605 |
if ( ! wppa_is_mobile() && ( wppa_switch( 'nicescroll' ) || wppa_switch( 'nicescroll_window' ) || wppa_switch( 'load_nicescroller' ) ) ) {
|
606 |
$nice_url = WPPA_URL . '/vendor/nicescroll/jquery.nicescroll.min.js';
|
607 |
wp_enqueue_script( 'nicescrollr-inc-nicescroll-min-js', $nice_url, $js_depts, $wppa_api_version, $footer );
|
608 |
-
$easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
|
609 |
-
wp_enqueue_script( 'nicescrollr-easing-min-js', $easing_url, $js_depts, $wppa_api_version, $footer );
|
610 |
}
|
611 |
}
|
612 |
|
613 |
-
// Easing we need, borrow it from nicescroller
|
614 |
-
|
615 |
-
|
616 |
-
wp_enqueue_script( 'nicescrollr-easing-min-js', $easing_url, $js_depts, $wppa_api_version, $footer );
|
617 |
-
}
|
618 |
|
619 |
// Panorama
|
620 |
if ( wppa_switch( 'enable_panorama' ) ) {
|
@@ -627,6 +628,7 @@ global $wppa_opt;
|
|
627 |
if ( wppa_switch( 'nicescroll_window' ) && ! wppa_is_mobile() ) {
|
628 |
$the_js = '
|
629 |
jQuery("document").ready(function(){
|
|
|
630 |
jQuery("body").niceScroll({' . wppa_opt( 'nicescroll_opts' ) . '});
|
631 |
});';
|
632 |
wppa_add_inline_script( 'wppa', $the_js );
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
+
* Version 8.1.08.003
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
444 |
wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/",
|
445 |
wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/",
|
446 |
wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/",
|
447 |
+
wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus' ).'",
|
448 |
+
wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus' ).'",
|
449 |
+
wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus' ).'",
|
450 |
+
wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus' ).'",
|
451 |
wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'",
|
452 |
wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";';
|
453 |
|
599 |
if ( strpos( $uri, $v ) !== false ) $skip = true;
|
600 |
if ( $skip ) continue;
|
601 |
}
|
602 |
+
if ( $skip ) {
|
603 |
+
global $wppa;
|
604 |
+
$wppa['wppa_nicescroll'] = 'no';
|
605 |
+
$wppa['wppa_nicescroll_window'] = 'no';
|
606 |
+
}
|
607 |
+
else {
|
608 |
|
609 |
// Nicescroller
|
610 |
if ( ! wppa_is_mobile() && ( wppa_switch( 'nicescroll' ) || wppa_switch( 'nicescroll_window' ) || wppa_switch( 'load_nicescroller' ) ) ) {
|
611 |
$nice_url = WPPA_URL . '/vendor/nicescroll/jquery.nicescroll.min.js';
|
612 |
wp_enqueue_script( 'nicescrollr-inc-nicescroll-min-js', $nice_url, $js_depts, $wppa_api_version, $footer );
|
|
|
|
|
613 |
}
|
614 |
}
|
615 |
|
616 |
+
// Easing we need, borrow it from nicescroller
|
617 |
+
$easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
|
618 |
+
wp_enqueue_script( 'nicescrollr-easing-min-js', $easing_url, $js_depts, $wppa_api_version, $footer );
|
|
|
|
|
619 |
|
620 |
// Panorama
|
621 |
if ( wppa_switch( 'enable_panorama' ) ) {
|
628 |
if ( wppa_switch( 'nicescroll_window' ) && ! wppa_is_mobile() ) {
|
629 |
$the_js = '
|
630 |
jQuery("document").ready(function(){
|
631 |
+
if ( jQuery().niceScroll )
|
632 |
jQuery("body").niceScroll({' . wppa_opt( 'nicescroll_opts' ) . '});
|
633 |
});';
|
634 |
wppa_add_inline_script( 'wppa', $the_js );
|
wppa-setting-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.1.08.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -11,7 +11,7 @@ function wppa_input( $xslug, $width, $minwidth = '', $text = '', $onchange = '',
|
|
11 |
global $wppa_opt;
|
12 |
|
13 |
$slug = substr( $xslug, 5 );
|
14 |
-
$tit = __( 'Slug =', 'wp-photo-album-plus') . ' ' . $xslug;
|
15 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? esc_attr( $tit ) : '';
|
16 |
$val = wppa_get_option( $xslug );
|
17 |
$html = '
|
@@ -60,7 +60,7 @@ function wppa_number($xslug, $min, $max, $text = '', $onchange = '') {
|
|
60 |
global $wppa_opt;
|
61 |
|
62 |
$slug = substr( $xslug, 5 );
|
63 |
-
$tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug;
|
64 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
65 |
$val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
|
66 |
$html = '<input'.$title.' style="float:left; height:20px; width:50px;padding:0 0 0 5px;';
|
@@ -68,7 +68,7 @@ function wppa_number($xslug, $min, $max, $text = '', $onchange = '') {
|
|
68 |
if ($onchange != '') $html .= ' onchange="'. esc_attr( $onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
|
69 |
else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
|
70 |
$html .= ' value="'.$val.'" min="'.$min.'" max="'.$max.'" />';
|
71 |
-
$html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
72 |
$html .= '<span style="float:left">'.$text.'</span>';
|
73 |
|
74 |
$html .= wppa_setting_star( $onchange );
|
@@ -80,7 +80,7 @@ function wppa_input_color($xslug, $width, $minwidth = '', $text = '', $onchange
|
|
80 |
global $wppa_opt;
|
81 |
|
82 |
$slug = substr( $xslug, 5 );
|
83 |
-
$tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug;
|
84 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
85 |
$val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
|
86 |
$html = '<input'.$title.' type="color" style="float:left; width: '.$width.'; height:20px;padding:0 0 0 5px;';
|
@@ -90,7 +90,7 @@ global $wppa_opt;
|
|
90 |
else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
|
91 |
if ( $placeholder ) $html .= ' placeholder="'.$placeholder.'"';
|
92 |
$html .= ' value="'.$val.'" />';
|
93 |
-
$html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
94 |
$html .= '<span style="float:left">'.$text.'</span>';
|
95 |
|
96 |
$html .= wppa_setting_star( $onchange );
|
@@ -144,7 +144,7 @@ function wppa_textarea($xslug, $buttonlabel = '', $repair_php = false ) {
|
|
144 |
|
145 |
$slug = substr( $xslug, 5 );
|
146 |
|
147 |
-
$tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug;
|
148 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
149 |
|
150 |
$html = '<textarea id="'.esc_attr($slug).'"'.$title.' style="float:left; width:300px;" onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)" >';
|
@@ -156,7 +156,7 @@ function wppa_textarea($xslug, $buttonlabel = '', $repair_php = false ) {
|
|
156 |
}
|
157 |
$html .= '</textarea>';
|
158 |
|
159 |
-
$html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
160 |
|
161 |
return $html;
|
162 |
}
|
@@ -167,7 +167,7 @@ global $wppa_opt;
|
|
167 |
|
168 |
$html = '';
|
169 |
$slug = substr( $xslug, 5 );
|
170 |
-
$tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug."\n".__('Values = yes, no', 'wp-photo-album-plus');
|
171 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
172 |
$html .= '<input style="float:left; height: 15px; margin: 0px; padding: 0px;" type="checkbox" id="'.$slug.'"'.$title;
|
173 |
if ( wppa_switch( $slug ) ) $html .= ' checked="checked"';
|
@@ -175,7 +175,7 @@ global $wppa_opt;
|
|
175 |
else $html .= ' onchange="wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this)"';
|
176 |
|
177 |
if ($class != '') $html .= ' class="'.$class.'"';
|
178 |
-
$html .= ' /><img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;"';
|
179 |
if ($class != '') $html .= ' class="'.$class.'"';
|
180 |
$html .= ' />';
|
181 |
|
@@ -194,7 +194,7 @@ function wppa_checkbox_e($xslug, $curval, $onchange = '', $class = '', $enabled
|
|
194 |
else $html .= ' onchange="wppaAjaxUpdateOptionCheckBox(\''.$xslug.'\', this)"';
|
195 |
|
196 |
if ($class != '') $html .= ' class="'.$class.'"';
|
197 |
-
$html .= ' /><img id="img_'.$xslug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;"';
|
198 |
if ($class != '') $html .= ' class="'.$class.'"';
|
199 |
$html .= ' />';
|
200 |
|
@@ -207,11 +207,11 @@ global $wppa_opt;
|
|
207 |
$slug = substr( $xslug, 5 );
|
208 |
|
209 |
if ( ! is_array( $opts ) ) {
|
210 |
-
$html = __('There is nothing to select.', 'wp-photo-album-plus');
|
211 |
return $html;
|
212 |
}
|
213 |
|
214 |
-
$tit = __('Slug =', 'wp-photo-album-plus').' '.$xslug."\n".__('Values = ', 'wp-photo-album-plus');
|
215 |
foreach( $vals as $val ) $tit.= $val.', ';
|
216 |
$tit = trim( $tit, ', ');
|
217 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
@@ -238,7 +238,7 @@ global $wppa_opt;
|
|
238 |
$idx++;
|
239 |
}
|
240 |
$html .= '</select>';
|
241 |
-
$html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
242 |
|
243 |
$html .= wppa_setting_star( $onchange );
|
244 |
$html .= wppa_setting_star( $postaction );
|
@@ -252,7 +252,7 @@ global $wppa_opt;
|
|
252 |
$slug = substr( $xslug, 5 );
|
253 |
|
254 |
if ( ! is_array( $opts ) ) {
|
255 |
-
$html = __('There is nothing to select.', 'wp-photo-album-plus');
|
256 |
return $html;
|
257 |
}
|
258 |
|
@@ -261,7 +261,7 @@ global $wppa_opt;
|
|
261 |
$html = '<select' .
|
262 |
' style="float:left;font-size:11px;margin:0px;padding:0px;max-width:'.$max_width.'px;height:auto !important;"' .
|
263 |
' id="' . $slug . '"' .
|
264 |
-
' multiple
|
265 |
' size="' . $size . '"' .
|
266 |
' onchange="' . esc_attr($onchange . ';wppaAjaxUpdateOptionValue(\'' . $slug . '\', this, true);' . $postaction . ';').'"' .
|
267 |
' class="'.$class.'"' .
|
@@ -295,7 +295,7 @@ global $wppa_opt;
|
|
295 |
$idx++;
|
296 |
}
|
297 |
$html .= '</select>';
|
298 |
-
$html .= '<img id="img_'.$slug.'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
299 |
|
300 |
$html .= wppa_setting_star( $onchange );
|
301 |
|
@@ -307,7 +307,7 @@ function wppa_select_e( $xslug, $curval, $opts, $vals, $onchange = '', $class =
|
|
307 |
$slug = substr( $xslug, 5 );
|
308 |
|
309 |
if ( ! is_array( $opts ) ) {
|
310 |
-
$html = __('There is nothing to select.', 'wp-photo-album-plus');
|
311 |
return $html;
|
312 |
}
|
313 |
|
@@ -329,7 +329,7 @@ function wppa_select_e( $xslug, $curval, $opts, $vals, $onchange = '', $class =
|
|
329 |
$idx++;
|
330 |
}
|
331 |
$html .= '</select>';
|
332 |
-
$html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
|
333 |
|
334 |
return $html;
|
335 |
}
|
@@ -345,17 +345,17 @@ global $no_default;
|
|
345 |
|
346 |
$dft = $dflt;
|
347 |
switch ($dflt) {
|
348 |
-
case 'yes': $dft .= ': '.__('Checked', 'wp-photo-album-plus'); break;
|
349 |
-
case 'no': $dft .= ': '.__('Unchecked', 'wp-photo-album-plus'); break;
|
350 |
-
/* case 'none': $dft .= ': '.__('no link at all.', 'wp-photo-album-plus'); break;
|
351 |
-
case 'file': $dft .= ': '.__('the plain photo (file).', 'wp-photo-album-plus'); break;
|
352 |
-
case 'photo': $dft .= ': '.__('the full size photo in a slideshow.', 'wp-photo-album-plus'); break;
|
353 |
-
case 'single': $dft .= ': '.__('the fullsize photo on its own.', 'wp-photo-album-plus'); break;
|
354 |
-
case 'indiv': $dft .= ': '.__('the photo specific link.', 'wp-photo-album-plus'); break;
|
355 |
-
case 'album': $dft .= ': '.__('the content of the album.', 'wp-photo-album-plus'); break;
|
356 |
-
case 'widget': $dft .= ': '.__('defined at widget activation.', 'wp-photo-album-plus'); break;
|
357 |
-
case 'custom': $dft .= ': '.__('defined on widget admin page.', 'wp-photo-album-plus'); break;
|
358 |
-
case 'same': $dft .= ': '.__('same as title.', 'wp-photo-album-plus'); break;
|
359 |
*/
|
360 |
default:
|
361 |
}
|
@@ -380,7 +380,7 @@ function wppa_color_box( $xslug ) {
|
|
380 |
function wppa_moveup_button( $slug, $i ) {
|
381 |
global $wppa_cur_tab;
|
382 |
|
383 |
-
$label = __('Move up', 'wp-photo-album-plus');
|
384 |
$onclick = 'jQuery(\'#wppa-admin-spinner\').show();' .
|
385 |
'document.getElementById(\'wppa-key\').value=\'wppa_moveup\';' .
|
386 |
'document.getElementById(\'wppa-sub\').value=' . $i . ';' .
|
@@ -418,7 +418,7 @@ global $wppa_cur_tab;
|
|
418 |
|
419 |
function wppa_upload_form( $slug, $tab, $accept = 'image/*' ) {
|
420 |
|
421 |
-
$label = __('Upload now!', 'wp-photo-album-plus');
|
422 |
$onclick = 'jQuery(\'#wppa-admin-spinner\').show();';
|
423 |
|
424 |
$result = '
|
@@ -472,7 +472,7 @@ function wppa_doit_button_new( $slug, $height = '18' ) {
|
|
472 |
|
473 |
function wppa_popup_button( $slug, $height = '18' ) {
|
474 |
|
475 |
-
$label = __('Show!', 'wp-photo-album-plus');
|
476 |
$result = '
|
477 |
<input
|
478 |
type="button"
|
@@ -486,7 +486,7 @@ function wppa_popup_button( $slug, $height = '18' ) {
|
|
486 |
}
|
487 |
|
488 |
function wppa_ajax_button( $label, $slug, $elmid = '0', $no_confirm = false ) {
|
489 |
-
if ( $label == '' ) $label = __('Do it!', 'wp-photo-album-plus');
|
490 |
|
491 |
$result = '
|
492 |
<input
|
@@ -496,7 +496,7 @@ function wppa_ajax_button( $label, $slug, $elmid = '0', $no_confirm = false ) {
|
|
496 |
value="' . esc_attr( $label ) . '"';
|
497 |
|
498 |
$result .= ' onclick="';
|
499 |
-
if ( ! $no_confirm ) $result .= 'if (confirm(\''.__('Are you sure?', 'wp-photo-album-plus').'\')) ';
|
500 |
if ( $elmid ) {
|
501 |
$result .= 'wppaAjaxUpdateOptionValue(\''.$slug.'\', document.getElementById(\''.$elmid.'\'))" />';
|
502 |
}
|
@@ -504,7 +504,7 @@ function wppa_ajax_button( $label, $slug, $elmid = '0', $no_confirm = false ) {
|
|
504 |
$result .= 'wppaAjaxUpdateOptionValue(\''.$slug.'\', 0)" />';
|
505 |
}
|
506 |
|
507 |
-
$result .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Not done yet', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
508 |
|
509 |
return $result;
|
510 |
}
|
@@ -539,13 +539,13 @@ function wppa_cronjob_button( $slug ) {
|
|
539 |
value="' . esc_attr( $label ) . '"';
|
540 |
|
541 |
if ( ! $locked ) {
|
542 |
-
$result .= ' onclick="if ( jQuery(\'#'.$slug.'_status\').html() != \'\' || confirm(\''.__('Are you sure?', 'wp-photo-album-plus').'\') ) wppaMaintenanceProc(\''.$slug.'\', false, true);" />';
|
543 |
}
|
544 |
else {
|
545 |
if ( $crashed ) {
|
546 |
$result .= ' title="' . esc_attr( __( 'Click me to resume', 'wp-photo-album-plus' ) ) . '"';
|
547 |
}
|
548 |
-
$result .= ' onclick="if ( confirm(\''.__('Are you sure you want to unlock and resume cron job?', 'wp-photo-album-plus').'\') ) wppaMaintenanceProc(\''.$slug.'\', false, true); " />';
|
549 |
}
|
550 |
|
551 |
return $result;
|
@@ -558,7 +558,7 @@ function wppa_maintenance_button( $slug, $height = '18' ) {
|
|
558 |
$user = wppa_get_option( $slug . '_user', $me );
|
559 |
|
560 |
if ( $user && $user != $me ) {
|
561 |
-
$label = __('Locked!', 'wp-photo-album-plus');
|
562 |
$locked = true;
|
563 |
$onclick = 'alert(\'Is currently being executed by '.$user.'.\')';
|
564 |
}
|
@@ -740,7 +740,7 @@ global $wppa_setting_error;
|
|
740 |
|
741 |
// Default helptext
|
742 |
if ( ! $help ) {
|
743 |
-
$help = __('No helptext available', 'wp-photo-album-plus');
|
744 |
}
|
745 |
|
746 |
// Convert sungle slug to array with 1 elm
|
@@ -915,7 +915,7 @@ global $wppa_cur_subtab_id;
|
|
915 |
id="' . $wppa_cur_subtab . '-cm"
|
916 |
style="color:red;display:none;"
|
917 |
>' .
|
918 |
-
__('Click to toggle open / close', 'wp-photo-album-plus') . '
|
919 |
</span>
|
920 |
</div>';
|
921 |
}
|
@@ -928,7 +928,7 @@ global $wppa_cur_subtab;
|
|
928 |
if ( ! $cols ) {
|
929 |
$cols = array(
|
930 |
__( '#', 'wp-photo-album-plus' ) => '24px;',
|
931 |
-
__( 'Name', 'wp-photo-album-plus') => '15%;',
|
932 |
__( 'Description', 'wp-photo-album-plus' ) => '30%;',
|
933 |
__( 'Setting', 'wp-photo-album-plus' ) => 'auto;',
|
934 |
__( 'Help', 'wp-photo-album-plus' ) => '24px;',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
11 |
global $wppa_opt;
|
12 |
|
13 |
$slug = substr( $xslug, 5 );
|
14 |
+
$tit = __( 'Slug =', 'wp-photo-album-plus' ) . ' ' . $xslug;
|
15 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? esc_attr( $tit ) : '';
|
16 |
$val = wppa_get_option( $xslug );
|
17 |
$html = '
|
60 |
global $wppa_opt;
|
61 |
|
62 |
$slug = substr( $xslug, 5 );
|
63 |
+
$tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
|
64 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
65 |
$val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
|
66 |
$html = '<input'.$title.' style="float:left; height:20px; width:50px;padding:0 0 0 5px;';
|
68 |
if ($onchange != '') $html .= ' onchange="'. esc_attr( $onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
|
69 |
else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
|
70 |
$html .= ' value="'.$val.'" min="'.$min.'" max="'.$max.'" />';
|
71 |
+
$html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
72 |
$html .= '<span style="float:left">'.$text.'</span>';
|
73 |
|
74 |
$html .= wppa_setting_star( $onchange );
|
80 |
global $wppa_opt;
|
81 |
|
82 |
$slug = substr( $xslug, 5 );
|
83 |
+
$tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
|
84 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
85 |
$val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
|
86 |
$html = '<input'.$title.' type="color" style="float:left; width: '.$width.'; height:20px;padding:0 0 0 5px;';
|
90 |
else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
|
91 |
if ( $placeholder ) $html .= ' placeholder="'.$placeholder.'"';
|
92 |
$html .= ' value="'.$val.'" />';
|
93 |
+
$html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
94 |
$html .= '<span style="float:left">'.$text.'</span>';
|
95 |
|
96 |
$html .= wppa_setting_star( $onchange );
|
144 |
|
145 |
$slug = substr( $xslug, 5 );
|
146 |
|
147 |
+
$tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
|
148 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
149 |
|
150 |
$html = '<textarea id="'.esc_attr($slug).'"'.$title.' style="float:left; width:300px;" onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)" >';
|
156 |
}
|
157 |
$html .= '</textarea>';
|
158 |
|
159 |
+
$html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
160 |
|
161 |
return $html;
|
162 |
}
|
167 |
|
168 |
$html = '';
|
169 |
$slug = substr( $xslug, 5 );
|
170 |
+
$tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug."\n".__('Values = yes, no', 'wp-photo-album-plus' );
|
171 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
172 |
$html .= '<input style="float:left; height: 15px; margin: 0px; padding: 0px;" type="checkbox" id="'.$slug.'"'.$title;
|
173 |
if ( wppa_switch( $slug ) ) $html .= ' checked="checked"';
|
175 |
else $html .= ' onchange="wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this)"';
|
176 |
|
177 |
if ($class != '') $html .= ' class="'.$class.'"';
|
178 |
+
$html .= ' /><img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;"';
|
179 |
if ($class != '') $html .= ' class="'.$class.'"';
|
180 |
$html .= ' />';
|
181 |
|
194 |
else $html .= ' onchange="wppaAjaxUpdateOptionCheckBox(\''.$xslug.'\', this)"';
|
195 |
|
196 |
if ($class != '') $html .= ' class="'.$class.'"';
|
197 |
+
$html .= ' /><img id="img_'.$xslug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;"';
|
198 |
if ($class != '') $html .= ' class="'.$class.'"';
|
199 |
$html .= ' />';
|
200 |
|
207 |
$slug = substr( $xslug, 5 );
|
208 |
|
209 |
if ( ! is_array( $opts ) ) {
|
210 |
+
$html = __('There is nothing to select.', 'wp-photo-album-plus' );
|
211 |
return $html;
|
212 |
}
|
213 |
|
214 |
+
$tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug."\n".__('Values = ', 'wp-photo-album-plus' );
|
215 |
foreach( $vals as $val ) $tit.= $val.', ';
|
216 |
$tit = trim( $tit, ', ');
|
217 |
$title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
|
238 |
$idx++;
|
239 |
}
|
240 |
$html .= '</select>';
|
241 |
+
$html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
242 |
|
243 |
$html .= wppa_setting_star( $onchange );
|
244 |
$html .= wppa_setting_star( $postaction );
|
252 |
$slug = substr( $xslug, 5 );
|
253 |
|
254 |
if ( ! is_array( $opts ) ) {
|
255 |
+
$html = __('There is nothing to select.', 'wp-photo-album-plus' );
|
256 |
return $html;
|
257 |
}
|
258 |
|
261 |
$html = '<select' .
|
262 |
' style="float:left;font-size:11px;margin:0px;padding:0px;max-width:'.$max_width.'px;height:auto !important;"' .
|
263 |
' id="' . $slug . '"' .
|
264 |
+
' multiple' .
|
265 |
' size="' . $size . '"' .
|
266 |
' onchange="' . esc_attr($onchange . ';wppaAjaxUpdateOptionValue(\'' . $slug . '\', this, true);' . $postaction . ';').'"' .
|
267 |
' class="'.$class.'"' .
|
295 |
$idx++;
|
296 |
}
|
297 |
$html .= '</select>';
|
298 |
+
$html .= '<img id="img_'.$slug.'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
299 |
|
300 |
$html .= wppa_setting_star( $onchange );
|
301 |
|
307 |
$slug = substr( $xslug, 5 );
|
308 |
|
309 |
if ( ! is_array( $opts ) ) {
|
310 |
+
$html = __('There is nothing to select.', 'wp-photo-album-plus' );
|
311 |
return $html;
|
312 |
}
|
313 |
|
329 |
$idx++;
|
330 |
}
|
331 |
$html .= '</select>';
|
332 |
+
$html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
|
333 |
|
334 |
return $html;
|
335 |
}
|
345 |
|
346 |
$dft = $dflt;
|
347 |
switch ($dflt) {
|
348 |
+
case 'yes': $dft .= ': '.__('Checked', 'wp-photo-album-plus' ); break;
|
349 |
+
case 'no': $dft .= ': '.__('Unchecked', 'wp-photo-album-plus' ); break;
|
350 |
+
/* case 'none': $dft .= ': '.__('no link at all.', 'wp-photo-album-plus' ); break;
|
351 |
+
case 'file': $dft .= ': '.__('the plain photo (file).', 'wp-photo-album-plus' ); break;
|
352 |
+
case 'photo': $dft .= ': '.__('the full size photo in a slideshow.', 'wp-photo-album-plus' ); break;
|
353 |
+
case 'single': $dft .= ': '.__('the fullsize photo on its own.', 'wp-photo-album-plus' ); break;
|
354 |
+
case 'indiv': $dft .= ': '.__('the photo specific link.', 'wp-photo-album-plus' ); break;
|
355 |
+
case 'album': $dft .= ': '.__('the content of the album.', 'wp-photo-album-plus' ); break;
|
356 |
+
case 'widget': $dft .= ': '.__('defined at widget activation.', 'wp-photo-album-plus' ); break;
|
357 |
+
case 'custom': $dft .= ': '.__('defined on widget admin page.', 'wp-photo-album-plus' ); break;
|
358 |
+
case 'same': $dft .= ': '.__('same as title.', 'wp-photo-album-plus' ); break;
|
359 |
*/
|
360 |
default:
|
361 |
}
|
380 |
function wppa_moveup_button( $slug, $i ) {
|
381 |
global $wppa_cur_tab;
|
382 |
|
383 |
+
$label = __('Move up', 'wp-photo-album-plus' );
|
384 |
$onclick = 'jQuery(\'#wppa-admin-spinner\').show();' .
|
385 |
'document.getElementById(\'wppa-key\').value=\'wppa_moveup\';' .
|
386 |
'document.getElementById(\'wppa-sub\').value=' . $i . ';' .
|
418 |
|
419 |
function wppa_upload_form( $slug, $tab, $accept = 'image/*' ) {
|
420 |
|
421 |
+
$label = __('Upload now!', 'wp-photo-album-plus' );
|
422 |
$onclick = 'jQuery(\'#wppa-admin-spinner\').show();';
|
423 |
|
424 |
$result = '
|
472 |
|
473 |
function wppa_popup_button( $slug, $height = '18' ) {
|
474 |
|
475 |
+
$label = __('Show!', 'wp-photo-album-plus' );
|
476 |
$result = '
|
477 |
<input
|
478 |
type="button"
|
486 |
}
|
487 |
|
488 |
function wppa_ajax_button( $label, $slug, $elmid = '0', $no_confirm = false ) {
|
489 |
+
if ( $label == '' ) $label = __('Do it!', 'wp-photo-album-plus' );
|
490 |
|
491 |
$result = '
|
492 |
<input
|
496 |
value="' . esc_attr( $label ) . '"';
|
497 |
|
498 |
$result .= ' onclick="';
|
499 |
+
if ( ! $no_confirm ) $result .= 'if (confirm(\''.__('Are you sure?', 'wp-photo-album-plus' ).'\')) ';
|
500 |
if ( $elmid ) {
|
501 |
$result .= 'wppaAjaxUpdateOptionValue(\''.$slug.'\', document.getElementById(\''.$elmid.'\'))" />';
|
502 |
}
|
504 |
$result .= 'wppaAjaxUpdateOptionValue(\''.$slug.'\', 0)" />';
|
505 |
}
|
506 |
|
507 |
+
$result .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Not done yet', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
|
508 |
|
509 |
return $result;
|
510 |
}
|
539 |
value="' . esc_attr( $label ) . '"';
|
540 |
|
541 |
if ( ! $locked ) {
|
542 |
+
$result .= ' onclick="if ( jQuery(\'#'.$slug.'_status\').html() != \'\' || confirm(\''.__('Are you sure?', 'wp-photo-album-plus' ).'\') ) wppaMaintenanceProc(\''.$slug.'\', false, true);" />';
|
543 |
}
|
544 |
else {
|
545 |
if ( $crashed ) {
|
546 |
$result .= ' title="' . esc_attr( __( 'Click me to resume', 'wp-photo-album-plus' ) ) . '"';
|
547 |
}
|
548 |
+
$result .= ' onclick="if ( confirm(\''.__('Are you sure you want to unlock and resume cron job?', 'wp-photo-album-plus' ).'\') ) wppaMaintenanceProc(\''.$slug.'\', false, true); " />';
|
549 |
}
|
550 |
|
551 |
return $result;
|
558 |
$user = wppa_get_option( $slug . '_user', $me );
|
559 |
|
560 |
if ( $user && $user != $me ) {
|
561 |
+
$label = __('Locked!', 'wp-photo-album-plus' );
|
562 |
$locked = true;
|
563 |
$onclick = 'alert(\'Is currently being executed by '.$user.'.\')';
|
564 |
}
|
740 |
|
741 |
// Default helptext
|
742 |
if ( ! $help ) {
|
743 |
+
$help = __('No helptext available', 'wp-photo-album-plus' );
|
744 |
}
|
745 |
|
746 |
// Convert sungle slug to array with 1 elm
|
915 |
id="' . $wppa_cur_subtab . '-cm"
|
916 |
style="color:red;display:none;"
|
917 |
>' .
|
918 |
+
__('Click to toggle open / close', 'wp-photo-album-plus' ) . '
|
919 |
</span>
|
920 |
</div>';
|
921 |
}
|
928 |
if ( ! $cols ) {
|
929 |
$cols = array(
|
930 |
__( '#', 'wp-photo-album-plus' ) => '24px;',
|
931 |
+
__( 'Name', 'wp-photo-album-plus' ) => '15%;',
|
932 |
__( 'Description', 'wp-photo-album-plus' ) => '30%;',
|
933 |
__( 'Setting', 'wp-photo-album-plus' ) => 'auto;',
|
934 |
__( 'Help', 'wp-photo-album-plus' ) => '24px;',
|
wppa-setting-see-also.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -15,10 +15,10 @@ global $wppa_subtab_names;
|
|
15 |
'general' => __( 'General', 'wp-photo-album-plus' ),
|
16 |
'generaladv' => __( 'General', 'wp-photo-album-plus' ),
|
17 |
'layout' => __( 'Layout', 'wp-photo-album-plus' ),
|
18 |
-
'covers' => __( 'Albums', 'wp-photo-album-plus'),
|
19 |
-
'photos' => __( 'Photos', 'wp-photo-album-plus'),
|
20 |
-
'thumbs' => __( 'Thumbnails', 'wp-photo-album-plus'),
|
21 |
-
'slide' => __( 'Slideshow', 'wp-photo-album-plus'),
|
22 |
'lightbox' => __( 'Lightbox', 'wp-photo-album-plus' ),
|
23 |
'comments' => __( 'Comments', 'wp-photo-album-plus' ),
|
24 |
'rating' => __( 'Rating', 'wp-photo-album-plus' ),
|
@@ -44,125 +44,125 @@ global $wppa_subtab_names;
|
|
44 |
);
|
45 |
$wppa_subtab_names = array(
|
46 |
'general' => array(
|
47 |
-
'1' => __('On this tab you can select the features you want to use', 'wp-photo-album-plus'),
|
48 |
),
|
49 |
'generaladv' => array(
|
50 |
-
'1' => __('On this tab you can select the features you want to use', 'wp-photo-album-plus'),
|
51 |
),
|
52 |
'layout' => array(
|
53 |
-
'1' => __('General layout settings', 'wp-photo-album-plus'),
|
54 |
-
'2' => __('Breadcrumb specifications', 'wp-photo-album-plus'),
|
55 |
-
'3' => __('Navigation symbol specifications', 'wp-photo-album-plus'),
|
56 |
-
'4' => __('Multimedia icon and stubfile specifications', 'wp-photo-album-plus'),
|
57 |
-
'5' => __('Fonts', 'wp-photo-album-plus'),
|
58 |
),
|
59 |
'covers' => array(
|
60 |
-
'1' => __('Album cover size specifications', 'wp-photo-album-plus'),
|
61 |
-
'2' => __('Album cover options', 'wp-photo-album-plus'),
|
62 |
-
'3' => __('Album cover layout settings', 'wp-photo-album-plus'),
|
63 |
),
|
64 |
'photos' => array(
|
65 |
-
'1' => __('Photo specifications', 'wp-photo-album-plus'),
|
66 |
-
'2' => __('Shortcode [photo ... ] specifications', 'wp-photo-album-plus'),
|
67 |
-
'3' => __('Photo of the day settings', 'wp-photo-album-plus'),
|
68 |
),
|
69 |
'thumbs' => array(
|
70 |
-
'1' => __('Thumbnail size specifications', 'wp-photo-album-plus'),
|
71 |
-
'2' => __('Thumbnail display options', 'wp-photo-album-plus'),
|
72 |
-
'3' => __('Thumbnail layout settings', 'wp-photo-album-plus'),
|
73 |
),
|
74 |
'slide' => array(
|
75 |
-
'1' => __('Sllideshow component specifications', 'wp-photo-album-plus'),
|
76 |
-
'2' => __('Slideshow component sequence', 'wp-photo-album-plus'),
|
77 |
-
'3' => __('Slideshow layout settings', 'wp-photo-album-plus'),
|
78 |
-
'4' => __('Slideshow dynamic behaviour', 'wp-photo-album-plus'),
|
79 |
),
|
80 |
'lightbox' => array(
|
81 |
-
'1' => __('Lightbox overlay configuration settings', 'wp-photo-album-plus'),
|
82 |
),
|
83 |
'comments' => array(
|
84 |
-
'1' => __('Comments system related settings', 'wp-photo-album-plus'),
|
85 |
),
|
86 |
'rating' => array(
|
87 |
-
'1' => __('Rating system related settings', 'wp-photo-album-plus'),
|
88 |
),
|
89 |
'search' => array(
|
90 |
-
'1' => __('Search albums and photos features related settings', 'wp-photo-album-plus'),
|
91 |
),
|
92 |
'widget' => array(
|
93 |
-
'1' => __('General widget size settings', 'wp-photo-album-plus'),
|
94 |
-
'2' => __('Visibility settings', 'wp-photo-album-plus'),
|
95 |
-
'3' => __('QR Code widget settings', 'wp-photo-album-plus'),
|
96 |
),
|
97 |
'links' => array(
|
98 |
-
'1' => __('System Links configuration', 'wp-photo-album-plus'),
|
99 |
-
'2' => __('Links from standard images', 'wp-photo-album-plus'),
|
100 |
-
'3' => __('Links from items and images in widgets', 'wp-photo-album-plus'),
|
101 |
-
'4' => __('Other links', 'wp-photo-album-plus'),
|
102 |
),
|
103 |
'users' => array(
|
104 |
-
'1' => __('Frontend (user) upload related settings', 'wp-photo-album-plus'),
|
105 |
),
|
106 |
'email' => array(
|
107 |
-
'1' => __('Email configuration settings', 'wp-photo-album-plus'),
|
108 |
-
'2' => __('Failed mails', 'wp-photo-album-plus'),
|
109 |
-
'3' => __('Permanently failed mails', 'wp-photo-album-plus'),
|
110 |
),
|
111 |
'share' => array(
|
112 |
-
'1' => __('Social media related settings', 'wp-photo-album-plus'),
|
113 |
-
'2' => __('Search Engine Optimazation settings', 'wp-photo-album-plus'),
|
114 |
),
|
115 |
'system' => array(
|
116 |
-
'1' => __('System behaviour related settings' , 'wp-photo-album-plus'),
|
117 |
),
|
118 |
'files' => array(
|
119 |
-
'1' => __('Original source file related settings', 'wp-photo-album-plus'),
|
120 |
),
|
121 |
'new' => array(
|
122 |
-
'1' => __('New albums / photos related settings', 'wp-photo-album-plus'),
|
123 |
),
|
124 |
'admin' => array(
|
125 |
-
'1' => __('WPPA+ related roles and capabilities', 'wp-photo-album-plus'),
|
126 |
-
'2' => __('Frontend create Albums and upload Photos enabling and limiting settings' , 'wp-photo-album-plus'),
|
127 |
-
'3' => __('Import related settings', 'wp-photo-album-plus'),
|
128 |
-
'4' => __('Admin Functionality restrictions for non administrators' , 'wp-photo-album-plus'),
|
129 |
-
'5' => __('Miscellaneous limiting settings' , 'wp-photo-album-plus'),
|
130 |
'6' => __('Miscellaneous admin related settings', 'wp-photo-album-plus' ),
|
131 |
-
'7' => __('Optional menu items', 'wp-photo-album-plus'),
|
132 |
),
|
133 |
'maintenance' => array(
|
134 |
-
'1' => __('Regular maintenance procedures', 'wp-photo-album-plus'),
|
135 |
-
'2' => __('Clearing and other irreversable maintenance procedures', 'wp-photo-album-plus'),
|
136 |
-
'3' => __('One time conversions', 'wp-photo-album-plus'),
|
137 |
),
|
138 |
'exif' => array(
|
139 |
-
'1' => __('EXIF tags and their labels as found in the uploaded photos', 'wp-photo-album-plus'),
|
140 |
),
|
141 |
'iptc' => array(
|
142 |
-
'1' => __('IPTC tags and their labels as found in the uploaded photos', 'wp-photo-album-plus'),
|
143 |
),
|
144 |
'gpx' => array(
|
145 |
-
'1' => __('GPX configuration', 'wp-photo-album-plus'),
|
146 |
),
|
147 |
'custom' => array(
|
148 |
'1' => __( 'Album custom data fields configuration', 'wp-photo-album-plus' ),
|
149 |
'2' => __( 'Photo custom data fields configuration', 'wp-photo-album-plus' ),
|
150 |
),
|
151 |
'watermark' => array(
|
152 |
-
'1' => __('Watermark related settings', 'wp-photo-album-plus'),
|
153 |
),
|
154 |
'constants' => array(
|
155 |
-
'1' => __('System constants (read only)', 'wp-photo-album-plus'),
|
156 |
),
|
157 |
'misc' => array(
|
158 |
-
'1' => __('Miscellaneous settings', 'wp-photo-album-plus'),
|
159 |
-
'2' => __('Panorama related settings', 'wp-photo-album-plus'),
|
160 |
),
|
161 |
'miscadv' => array(
|
162 |
-
'1' => __('Advanced miscellaneous settings', 'wp-photo-album-plus'),
|
163 |
-
'2' => __('Logging', 'wp-photo-album-plus'),
|
164 |
-
'3' => __('External services related settings and actions', 'wp-photo-album-plus'),
|
165 |
-
'4' => __('Other plugins related settings', 'wp-photo-album-plus'),
|
166 |
),
|
167 |
);
|
168 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
15 |
'general' => __( 'General', 'wp-photo-album-plus' ),
|
16 |
'generaladv' => __( 'General', 'wp-photo-album-plus' ),
|
17 |
'layout' => __( 'Layout', 'wp-photo-album-plus' ),
|
18 |
+
'covers' => __( 'Albums', 'wp-photo-album-plus' ),
|
19 |
+
'photos' => __( 'Photos', 'wp-photo-album-plus' ),
|
20 |
+
'thumbs' => __( 'Thumbnails', 'wp-photo-album-plus' ),
|
21 |
+
'slide' => __( 'Slideshow', 'wp-photo-album-plus' ),
|
22 |
'lightbox' => __( 'Lightbox', 'wp-photo-album-plus' ),
|
23 |
'comments' => __( 'Comments', 'wp-photo-album-plus' ),
|
24 |
'rating' => __( 'Rating', 'wp-photo-album-plus' ),
|
44 |
);
|
45 |
$wppa_subtab_names = array(
|
46 |
'general' => array(
|
47 |
+
'1' => __('On this tab you can select the features you want to use', 'wp-photo-album-plus' ),
|
48 |
),
|
49 |
'generaladv' => array(
|
50 |
+
'1' => __('On this tab you can select the features you want to use', 'wp-photo-album-plus' ),
|
51 |
),
|
52 |
'layout' => array(
|
53 |
+
'1' => __('General layout settings', 'wp-photo-album-plus' ),
|
54 |
+
'2' => __('Breadcrumb specifications', 'wp-photo-album-plus' ),
|
55 |
+
'3' => __('Navigation symbol specifications', 'wp-photo-album-plus' ),
|
56 |
+
'4' => __('Multimedia icon and stubfile specifications', 'wp-photo-album-plus' ),
|
57 |
+
'5' => __('Fonts', 'wp-photo-album-plus' ),
|
58 |
),
|
59 |
'covers' => array(
|
60 |
+
'1' => __('Album cover size specifications', 'wp-photo-album-plus' ),
|
61 |
+
'2' => __('Album cover options', 'wp-photo-album-plus' ),
|
62 |
+
'3' => __('Album cover layout settings', 'wp-photo-album-plus' ),
|
63 |
),
|
64 |
'photos' => array(
|
65 |
+
'1' => __('Photo specifications', 'wp-photo-album-plus' ),
|
66 |
+
'2' => __('Shortcode [photo ... ] specifications', 'wp-photo-album-plus' ),
|
67 |
+
'3' => __('Photo of the day settings', 'wp-photo-album-plus' ),
|
68 |
),
|
69 |
'thumbs' => array(
|
70 |
+
'1' => __('Thumbnail size specifications', 'wp-photo-album-plus' ),
|
71 |
+
'2' => __('Thumbnail display options', 'wp-photo-album-plus' ),
|
72 |
+
'3' => __('Thumbnail layout settings', 'wp-photo-album-plus' ),
|
73 |
),
|
74 |
'slide' => array(
|
75 |
+
'1' => __('Sllideshow component specifications', 'wp-photo-album-plus' ),
|
76 |
+
'2' => __('Slideshow component sequence', 'wp-photo-album-plus' ),
|
77 |
+
'3' => __('Slideshow layout settings', 'wp-photo-album-plus' ),
|
78 |
+
'4' => __('Slideshow dynamic behaviour', 'wp-photo-album-plus' ),
|
79 |
),
|
80 |
'lightbox' => array(
|
81 |
+
'1' => __('Lightbox overlay configuration settings', 'wp-photo-album-plus' ),
|
82 |
),
|
83 |
'comments' => array(
|
84 |
+
'1' => __('Comments system related settings', 'wp-photo-album-plus' ),
|
85 |
),
|
86 |
'rating' => array(
|
87 |
+
'1' => __('Rating system related settings', 'wp-photo-album-plus' ),
|
88 |
),
|
89 |
'search' => array(
|
90 |
+
'1' => __('Search albums and photos features related settings', 'wp-photo-album-plus' ),
|
91 |
),
|
92 |
'widget' => array(
|
93 |
+
'1' => __('General widget size settings', 'wp-photo-album-plus' ),
|
94 |
+
'2' => __('Visibility settings', 'wp-photo-album-plus' ),
|
95 |
+
'3' => __('QR Code widget settings', 'wp-photo-album-plus' ),
|
96 |
),
|
97 |
'links' => array(
|
98 |
+
'1' => __('System Links configuration', 'wp-photo-album-plus' ),
|
99 |
+
'2' => __('Links from standard images', 'wp-photo-album-plus' ),
|
100 |
+
'3' => __('Links from items and images in widgets', 'wp-photo-album-plus' ),
|
101 |
+
'4' => __('Other links', 'wp-photo-album-plus' ),
|
102 |
),
|
103 |
'users' => array(
|
104 |
+
'1' => __('Frontend (user) upload related settings', 'wp-photo-album-plus' ),
|
105 |
),
|
106 |
'email' => array(
|
107 |
+
'1' => __('Email configuration settings', 'wp-photo-album-plus' ),
|
108 |
+
'2' => __('Failed mails', 'wp-photo-album-plus' ),
|
109 |
+
'3' => __('Permanently failed mails', 'wp-photo-album-plus' ),
|
110 |
),
|
111 |
'share' => array(
|
112 |
+
'1' => __('Social media related settings', 'wp-photo-album-plus' ),
|
113 |
+
'2' => __('Search Engine Optimazation settings', 'wp-photo-album-plus' ),
|
114 |
),
|
115 |
'system' => array(
|
116 |
+
'1' => __('System behaviour related settings' , 'wp-photo-album-plus' ),
|
117 |
),
|
118 |
'files' => array(
|
119 |
+
'1' => __('Original source file related settings', 'wp-photo-album-plus' ),
|
120 |
),
|
121 |
'new' => array(
|
122 |
+
'1' => __('New albums / photos related settings', 'wp-photo-album-plus' ),
|
123 |
),
|
124 |
'admin' => array(
|
125 |
+
'1' => __('WPPA+ related roles and capabilities', 'wp-photo-album-plus' ),
|
126 |
+
'2' => __('Frontend create Albums and upload Photos enabling and limiting settings' , 'wp-photo-album-plus' ),
|
127 |
+
'3' => __('Import related settings', 'wp-photo-album-plus' ),
|
128 |
+
'4' => __('Admin Functionality restrictions for non administrators' , 'wp-photo-album-plus' ),
|
129 |
+
'5' => __('Miscellaneous limiting settings' , 'wp-photo-album-plus' ),
|
130 |
'6' => __('Miscellaneous admin related settings', 'wp-photo-album-plus' ),
|
131 |
+
'7' => __('Optional menu items', 'wp-photo-album-plus' ),
|
132 |
),
|
133 |
'maintenance' => array(
|
134 |
+
'1' => __('Regular maintenance procedures', 'wp-photo-album-plus' ),
|
135 |
+
'2' => __('Clearing and other irreversable maintenance procedures', 'wp-photo-album-plus' ),
|
136 |
+
'3' => __('One time conversions', 'wp-photo-album-plus' ),
|
137 |
),
|
138 |
'exif' => array(
|
139 |
+
'1' => __('EXIF tags and their labels as found in the uploaded photos', 'wp-photo-album-plus' ),
|
140 |
),
|
141 |
'iptc' => array(
|
142 |
+
'1' => __('IPTC tags and their labels as found in the uploaded photos', 'wp-photo-album-plus' ),
|
143 |
),
|
144 |
'gpx' => array(
|
145 |
+
'1' => __('GPX configuration', 'wp-photo-album-plus' ),
|
146 |
),
|
147 |
'custom' => array(
|
148 |
'1' => __( 'Album custom data fields configuration', 'wp-photo-album-plus' ),
|
149 |
'2' => __( 'Photo custom data fields configuration', 'wp-photo-album-plus' ),
|
150 |
),
|
151 |
'watermark' => array(
|
152 |
+
'1' => __('Watermark related settings', 'wp-photo-album-plus' ),
|
153 |
),
|
154 |
'constants' => array(
|
155 |
+
'1' => __('System constants (read only)', 'wp-photo-album-plus' ),
|
156 |
),
|
157 |
'misc' => array(
|
158 |
+
'1' => __('Miscellaneous settings', 'wp-photo-album-plus' ),
|
159 |
+
'2' => __('Panorama related settings', 'wp-photo-album-plus' ),
|
160 |
),
|
161 |
'miscadv' => array(
|
162 |
+
'1' => __('Advanced miscellaneous settings', 'wp-photo-album-plus' ),
|
163 |
+
'2' => __('Logging', 'wp-photo-album-plus' ),
|
164 |
+
'3' => __('External services related settings and actions', 'wp-photo-album-plus' ),
|
165 |
+
'4' => __('Other plugins related settings', 'wp-photo-album-plus' ),
|
166 |
),
|
167 |
);
|
168 |
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.1.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -82,7 +82,7 @@ global $wppa_subtab_names;
|
|
82 |
// Should better be here
|
83 |
case 'wppa_setup':
|
84 |
wppa_setup(true); // Message on success or fail is in the routine
|
85 |
-
wppa_ok_message( __( 'Plugin successfully set up' , 'wp-photo-album-plus') );
|
86 |
break;
|
87 |
|
88 |
// Must be here
|
@@ -133,21 +133,21 @@ global $wppa_subtab_names;
|
|
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'] ) {
|
136 |
-
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus'), $file['error']));
|
137 |
}
|
138 |
else {
|
139 |
$imgsize = getimagesize($file['tmp_name']);
|
140 |
if ( !is_array($imgsize) || !isset($imgsize[2]) || $imgsize[2] != 3 ) {
|
141 |
-
wppa_error_message(sprintf(__('Uploaded file %s is not a .png file', 'wp-photo-album-plus'), sanitize_file_name( $file['name'] ) ) . ' (Type='.$file['type'].').');
|
142 |
}
|
143 |
else {
|
144 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/watermarks/' . strtolower(sanitize_file_name(basename($file['name']))));
|
145 |
-
wppa_alert(sprintf(__('Upload of %s done', 'wp-photo-album-plus'), strtolower(sanitize_file_name(basename($file['name'])))));
|
146 |
}
|
147 |
}
|
148 |
}
|
149 |
else {
|
150 |
-
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus'));
|
151 |
}
|
152 |
break;
|
153 |
|
@@ -155,20 +155,20 @@ global $wppa_subtab_names;
|
|
155 |
if ( isset($_FILES['file_1']) && $_FILES['file_1']['error'] != 4 ) { // Expected a fileupload for a watermark font file
|
156 |
$file = $_FILES['file_1'];
|
157 |
if ( $file['error'] ) {
|
158 |
-
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus'), $file['error']));
|
159 |
}
|
160 |
else {
|
161 |
if ( substr(sanitize_file_name($file['name']), -4) != '.ttf' ) {
|
162 |
-
wppa_error_message(sprintf(__('Uploaded file %s is not a .ttf file', 'wp-photo-album-plus'), sanitize_file_name($file['name']) ).' (Type='.$file['type'].').');
|
163 |
}
|
164 |
else {
|
165 |
wppa_copy($file['tmp_name'], WPPA_UPLOAD_PATH . '/fonts/' . sanitize_file_name(basename($file['name'])));
|
166 |
-
wppa_alert(sprintf(__('Upload of %s done', 'wp-photo-album-plus'), sanitize_file_name(basename($file['name']))));
|
167 |
}
|
168 |
}
|
169 |
}
|
170 |
else {
|
171 |
-
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus'));
|
172 |
}
|
173 |
break;
|
174 |
|
@@ -176,15 +176,15 @@ global $wppa_subtab_names;
|
|
176 |
if ( isset( $_FILES['file_1'] ) && $_FILES['file_1']['error'] != 4 ) {
|
177 |
$file = $_FILES['file_1'];
|
178 |
if ( $file['error'] ) {
|
179 |
-
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus'), $file['error']));
|
180 |
}
|
181 |
elseif ( wppa_get_ext( $file['name'] ) != 'jpg' ) {
|
182 |
-
wppa_error_message( __('File MUST be a .jpg image file', 'wp-photo-album-plus'));
|
183 |
}
|
184 |
else {
|
185 |
$imgsize = getimagesize( $file['tmp_name'] );
|
186 |
if ( ! is_array( $imgsize ) ) {
|
187 |
-
wppa_error_message(sprintf(__('Uploaded file %s is not a valid image file', 'wp-photo-album-plus'), sanitize_file_name($file['name'])).' (Type='.$file['type'].').');
|
188 |
}
|
189 |
else {
|
190 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/audiostub.jpg' );
|
@@ -194,7 +194,7 @@ global $wppa_subtab_names;
|
|
194 |
SET thumbx = 0, thumby = 0, photox = 0, photoy = 0
|
195 |
WHERE ext = 'xxx'"
|
196 |
);
|
197 |
-
wppa_alert( sprintf( __( 'Upload of %s done', 'wp-photo-album-plus'), basename( sanitize_file_name( $file['name'] ) ) ) );
|
198 |
|
199 |
wppa_bump_photo_rev();
|
200 |
wppa_bump_thumb_rev();
|
@@ -202,7 +202,7 @@ global $wppa_subtab_names;
|
|
202 |
}
|
203 |
}
|
204 |
else {
|
205 |
-
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus'));
|
206 |
}
|
207 |
break;
|
208 |
|
@@ -210,15 +210,15 @@ global $wppa_subtab_names;
|
|
210 |
if ( isset( $_FILES['file_1'] ) && $_FILES['file_1']['error'] != 4 ) {
|
211 |
$file = $_FILES['file_1'];
|
212 |
if ( $file['error'] ) {
|
213 |
-
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus'), $file['error']));
|
214 |
}
|
215 |
elseif ( wppa_get_ext( $file['name'] ) != 'png' ) {
|
216 |
-
wppa_error_message( __('File MUST be a .png image file', 'wp-photo-album-plus'));
|
217 |
}
|
218 |
else {
|
219 |
$imgsize = getimagesize( $file['tmp_name'] );
|
220 |
if ( ! is_array( $imgsize ) ) {
|
221 |
-
wppa_error_message(sprintf(__('Uploaded file %s is not a valid image file', 'wp-photo-album-plus'), sanitize_file_name($file['name'])).' (Type='.$file['type'].').');
|
222 |
}
|
223 |
else {
|
224 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/documentstub.png' );
|
@@ -228,7 +228,7 @@ global $wppa_subtab_names;
|
|
228 |
SET thumbx = 0, thumby = 0, photox = 0, photoy = 0
|
229 |
WHERE ext = 'pdf'"
|
230 |
);
|
231 |
-
wppa_alert( sprintf( __( 'Upload of %s done', 'wp-photo-album-plus'), basename( sanitize_file_name( $file['name'] ) ) ) );
|
232 |
|
233 |
wppa_bump_photo_rev();
|
234 |
wppa_bump_thumb_rev();
|
@@ -236,7 +236,7 @@ global $wppa_subtab_names;
|
|
236 |
}
|
237 |
}
|
238 |
else {
|
239 |
-
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus'));
|
240 |
}
|
241 |
break;
|
242 |
|
@@ -244,21 +244,21 @@ global $wppa_subtab_names;
|
|
244 |
if ( isset( $_FILES['file_1'] ) && $_FILES['file_1']['error'] != 4 ) {
|
245 |
$file = $_FILES['file_1'];
|
246 |
if ( $file['error'] ) {
|
247 |
-
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus'), $file['error']));
|
248 |
}
|
249 |
else {
|
250 |
$ext = strtolower( wppa_get_ext( $file['name'] ) );
|
251 |
if ( ! in_array( $ext, array( 'jpeg', 'jpg', 'png', 'svg', 'gif', 'bmp', 'ico' ) ) ) {
|
252 |
-
wppa_error_message(sprintf(__('Uploaded file %s is not a valid image file', 'wp-photo-album-plus'), sanitize_file_name($file['name'])).' (Type='.$file['type'].').');
|
253 |
}
|
254 |
else {
|
255 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/icons/' . ucfirst( strtolower( sanitize_file_name( $file['name'] ) ) ) );
|
256 |
-
wppa_alert( sprintf( __( 'Upload of %s done', 'wp-photo-album-plus'), basename( sanitize_file_name( $file['name'] ) ) ) );
|
257 |
}
|
258 |
}
|
259 |
}
|
260 |
else {
|
261 |
-
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus'));
|
262 |
}
|
263 |
break;
|
264 |
|
@@ -307,13 +307,13 @@ global $wppa_subtab_names;
|
|
307 |
// General header
|
308 |
echo '
|
309 |
<img id="icon-album" src="'.$iconurl.'" />
|
310 |
-
<h1 style="display:inline" >' . __('WP Photo Album Plus Settings', 'wp-photo-album-plus') . '
|
311 |
-
<span style="color:blue;"> ' . __('Auto Save', 'wp-photo-album-plus'). '</span>
|
312 |
</h1>';
|
313 |
if ( current_user_can( 'administrator' ) ) {
|
314 |
echo ' ' .
|
315 |
__( 'Database revision:', 'wp-photo-album-plus' ) . ' ' . wppa_get_option( 'wppa_revision', '100') . '. ' .
|
316 |
-
__( 'WP Charset:', 'wp-photo-album-plus') . ' ' . get_bloginfo( 'charset' ) . '. ' .
|
317 |
__( 'Current PHP version:', 'wp-photo-album-plus' ) . ' ' . phpversion() . '. ' .
|
318 |
__( 'WPPA+ API Version:', 'wp-photo-album-plus' ) . ' ' . $wppa_api_version . '. ' .
|
319 |
__( 'Filesystem method:', 'wp-photo-album-plus' ) . ' ' . get_filesystem_method();
|
@@ -323,12 +323,12 @@ global $wppa_subtab_names;
|
|
323 |
|
324 |
if ( is_multisite() ) {
|
325 |
if ( WPPA_MULTISITE_GLOBAL ) {
|
326 |
-
_e('Multisite in singlesite mode.', 'wp-photo-album-plus');
|
327 |
}
|
328 |
else {
|
329 |
-
_e('Multisite enabled.', 'wp-photo-album-plus');
|
330 |
echo ' ';
|
331 |
-
_e('Blogid =', 'wp-photo-album-plus');
|
332 |
echo ' '.$blog_id;
|
333 |
}
|
334 |
}
|
@@ -347,7 +347,7 @@ global $wppa_subtab_names;
|
|
347 |
$plugins = wppa_get_option('active_plugins');
|
348 |
$matches = array_intersect($blacklist_plugins, $plugins);
|
349 |
foreach ( $matches as $bad ) {
|
350 |
-
wppa_error_message(__('Please de-activate plugin <i style="font-size:14px;">', 'wp-photo-album-plus').substr($bad, 0, strpos($bad, '/')).__('. </i>This plugin will cause wppa+ to function not properly.', 'wp-photo-album-plus'));
|
351 |
}
|
352 |
|
353 |
// Graylist
|
@@ -357,12 +357,12 @@ global $wppa_subtab_names;
|
|
357 |
);
|
358 |
$matches = array_intersect($graylist_plugins, $plugins);
|
359 |
foreach ( $matches as $bad ) {
|
360 |
-
wppa_warning_message(__('Please note that plugin <i style="font-size:14px;">', 'wp-photo-album-plus').substr($bad, 0, strpos($bad, '/')).__('</i> can cause wppa+ to function not properly if it is misconfigured.', 'wp-photo-album-plus'));
|
361 |
}
|
362 |
|
363 |
// Check for trivial requirements
|
364 |
if ( ! function_exists('imagecreatefromjpeg') ) {
|
365 |
-
wppa_error_message(__('There is a serious misconfiguration in your servers PHP config. Function imagecreatefromjpeg() does not exist. You will encounter problems when uploading photos and not be able to generate thumbnail images. Ask your hosting provider to add GD support with a minimal version 1.8.', 'wp-photo-album-plus'));
|
366 |
}
|
367 |
|
368 |
// Cron disabled?
|
@@ -376,7 +376,7 @@ global $wppa_subtab_names;
|
|
376 |
wppa_opt( 'tf_width_alt') < wppa_opt( 'thumbsize_alt' ) ||
|
377 |
wppa_opt( 'tf_height' ) < wppa_opt( 'thumbsize' ) ||
|
378 |
wppa_opt( 'tf_height_alt') < wppa_opt( 'thumbsize_alt' ) ) ) {
|
379 |
-
wppa_warning_message( __( 'A thumbframe width or height should not be smaller than a thumbnail size.' , 'wp-photo-album-plus') . wppa_see_also( 'thumbs', '1', '1.2.5..8', '', '', true ) );
|
380 |
}
|
381 |
|
382 |
// Check for 'many' albums
|
@@ -410,7 +410,7 @@ global $wppa_subtab_names;
|
|
410 |
$doit = true;
|
411 |
}
|
412 |
if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' && ! ( wppa_switch( 'cover_use_thumb' ) ) ) {
|
413 |
-
$msg = __( 'Thumbnail Aspect may not be set to "--- same as fullsize ---"','wp-photo-album-plus') . wppa_see_also( 'thumbs', '1', '3', '', '', true ) . '<br>' .
|
414 |
__( 'Alternatively you can activate Use thumb on cover', 'wp-photo-album-plus' ) . wppa_see_also( 'covers', '3', '8' );
|
415 |
$message .= $msg;
|
416 |
$doit = true;
|
@@ -425,26 +425,26 @@ global $wppa_subtab_names;
|
|
425 |
if ( class_exists( 'Imagick' ) && function_exists( 'exec' ) ) {
|
426 |
|
427 |
$result = wppa_search_magick();
|
428 |
-
$mes = __('Image Magick is detected on your server', 'wp-photo-album-plus') . '. ';
|
429 |
-
$mes .= __('To be able to use the most advanced features of WPPA, the Imagic shellcommand <b>convert</b> must be available', 'wp-photo-album-plus') . '.<br>';
|
430 |
|
431 |
// Shell command found
|
432 |
if ( ! empty( $result ) ) {
|
433 |
-
$mes .= __('This command is found on the following file system locations', 'wp-photo-album-plus') . ':<br>';
|
434 |
foreach ( $result as $item ) {
|
435 |
$mes .= $item[0] . '<br>';
|
436 |
}
|
437 |
update_option( 'wppa_image_magick', $result[0][0] );
|
438 |
$wppa_opt['wppa_image_magick'] = $result[0][0];
|
439 |
-
$mes .= sprintf( __('The location <b>%s</b> has been activated.', 'wp-photo-album-plus'), $result[0][0] ) . wppa_see_also( 'miscadv', '3', '13' ) . '<br>';
|
440 |
-
$mes .= __('You may change it into a different path that contains the Imagick <b>convert</b> command at any time', 'wp-photo-album-plus') . '.<br>';
|
441 |
-
$mes .= __('To disable ImageMagick, enter <b>none</b>', 'wp-photo-album-plus');
|
442 |
}
|
443 |
|
444 |
// Shell command not found
|
445 |
else {
|
446 |
-
$mes .= __('The Imagick shellcommand <b>convert</b> could not be detected.', 'wp-photo-album-plus') . '<br >';
|
447 |
-
$mes .= __('Ask your hosting provider for the absolute path to this command if it is available', 'wp-photo-album-plus') . '<br>';
|
448 |
}
|
449 |
|
450 |
wppa_ok_message($mes);
|
@@ -473,9 +473,9 @@ global $wppa_subtab_names;
|
|
473 |
$vals_page_post = false;
|
474 |
|
475 |
// First
|
476 |
-
$opts_page_post[] = __('--- the same page or post ---', 'wp-photo-album-plus');
|
477 |
$vals_page_post[] = '0';
|
478 |
-
$opts_page[] = __('--- please select a page ---', 'wp-photo-album-plus');
|
479 |
$vals_page[] = '0';
|
480 |
|
481 |
// Pages if any
|
@@ -487,32 +487,32 @@ global $wppa_subtab_names;
|
|
487 |
|
488 |
// Translate
|
489 |
foreach ( array_keys($pages) as $index ) {
|
490 |
-
$pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
|
491 |
}
|
492 |
|
493 |
$pages = wppa_array_sort($pages, 'post_title');
|
494 |
foreach ($pages as $page) {
|
495 |
if (strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false) {
|
496 |
-
$opts_page[] = __($page['post_title'], 'wp-photo-album-plus');
|
497 |
-
$opts_page_post[] = __($page['post_title'], 'wp-photo-album-plus');
|
498 |
$vals_page[] = $page['ID'];
|
499 |
$vals_page_post[] = $page['ID'];
|
500 |
}
|
501 |
else {
|
502 |
-
$opts_page[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
|
503 |
-
$opts_page_post[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
|
504 |
$vals_page[] = $page['ID'];
|
505 |
$vals_page_post[] = $page['ID'];
|
506 |
}
|
507 |
}
|
508 |
}
|
509 |
else {
|
510 |
-
$opts_page[] = __('--- No page to link to (yet) ---', 'wp-photo-album-plus');
|
511 |
$vals_page[] = '0';
|
512 |
}
|
513 |
|
514 |
$opts_page_auto = $opts_page;
|
515 |
-
$opts_page_auto[0] = __('--- Will be auto created ---', 'wp-photo-album-plus');
|
516 |
}
|
517 |
|
518 |
// Find matching master tab
|
@@ -708,119 +708,119 @@ global $wppa_subtab_names;
|
|
708 |
wppa_setting_tab_description($desc);
|
709 |
wppa_setting_box_header_new($tab);
|
710 |
|
711 |
-
$name = __('Enable Photo', 'wp-photo-album-plus');
|
712 |
-
$desc = __('Enables photo support', 'wp-photo-album-plus');
|
713 |
-
$help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus');
|
714 |
$slug = '';
|
715 |
$html = '<input type="checkbox" style="float:left;" checked disabled >' . wppa_see_also( 'photos', '1' );
|
716 |
wppa_setting_new($slug, '0', $name, $desc, $html, $help);
|
717 |
|
718 |
-
$name = __('Enable Video', 'wp-photo-album-plus');
|
719 |
-
$desc = __('Enables video support.', 'wp-photo-album-plus');
|
720 |
-
$help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus');
|
721 |
$slug = 'wppa_enable_video';
|
722 |
$onch = 'wppaRefreshAfter();';
|
723 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'misc', '1', '7.8', 'enable_video' ) . wppa_see_also( 'users', '1', '2', 'enable_video' );
|
724 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
725 |
|
726 |
-
$name = __('Enable pdf', 'wp-photo-album-plus');
|
727 |
-
$desc = __('Enables the support of pdf files', 'wp-photo-album-plus');
|
728 |
-
$help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus');
|
729 |
$slug = 'wppa_enable_pdf';
|
730 |
$html = wppa_checkbox($slug) . ( wppa_opt( 'art_monkey_link' ) == 'new' ? wppa_see_also( 'links', '4', '3' ) : '' );
|
731 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
732 |
|
733 |
-
$name = __('Enable Audio', 'wp-photo-album-plus');
|
734 |
-
$desc = __('Enables audio support.', 'wp-photo-album-plus');
|
735 |
-
$help = __('Check this box to enable the upload and playing of audio files', 'wp-photo-album-plus');
|
736 |
$slug = 'wppa_enable_audio';
|
737 |
$onch = 'wppaRefreshAfter();';
|
738 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '3', 'enable_audio' );
|
739 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
740 |
|
741 |
-
$name = __('Enable Comments', 'wp-photo-album-plus');
|
742 |
-
$desc = __('Enables the comments system.', 'wp-photo-album-plus');
|
743 |
-
$help = __('Display the comments box under the slideshow images and let users enter their comments on individual photos.', 'wp-photo-album-plus');
|
744 |
$slug = 'wppa_show_comments';
|
745 |
$onch = 'wppaRefreshAfter();';
|
746 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'comments', '1', '', 'show_comments' );
|
747 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
748 |
|
749 |
-
$name = __('Enable Ratings', 'wp-photo-album-plus');
|
750 |
-
$desc = __('Enables the rating system.', 'wp-photo-album-plus');
|
751 |
-
$help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus');
|
752 |
$slug = 'wppa_rating_on';
|
753 |
$onch = 'wppaRefreshAfter();';
|
754 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'rating', '1', '', 'rating_on' );
|
755 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
756 |
|
757 |
-
$name = __('Enable User uploads', 'wp-photo-album-plus');
|
758 |
-
$desc = __('Enables frontend upload.', 'wp-photo-album-plus');
|
759 |
$help = '';
|
760 |
$slug = 'wppa_user_upload_on';
|
761 |
$onch = 'wppaRefreshAfter();';
|
762 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '', 'user_upload_on' ) . wppa_see_also( 'new', '1', '18..26', 'user_upload_on' );
|
763 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
764 |
|
765 |
-
$name = __('Enable Email', 'wp-photo-album-plus');
|
766 |
-
$desc = __('Enables sending emails when albums, photos or comments are entered.', 'wp-photo-album-plus');
|
767 |
-
$help = __('See Tab Emails for detailed settings', 'wp-photo-album-plus');
|
768 |
$slug = 'wppa_email_on';
|
769 |
$onch = 'wppaRefreshAfter();';
|
770 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'email', '1', '', 'email_on' );
|
771 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
772 |
|
773 |
-
$name = __('Enable EXIF', 'wp-photo-album-plus');
|
774 |
-
$desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
|
775 |
-
$help = __('You will need this if you enabled the display of exif data in the photo descriptions.', 'wp-photo-album-plus');
|
776 |
$slug = 'wppa_save_exif';
|
777 |
$onch = 'wppaRefreshAfter();';
|
778 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'exif', '1', '', 'save_exif' );
|
779 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
780 |
|
781 |
-
$name = __('Enable IPTC', 'wp-photo-album-plus');
|
782 |
-
$desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
|
783 |
-
$help = __('You will need this if you enabled the display of iptc data in the photo descriptions.', 'wp-photo-album-plus');
|
784 |
$slug = 'wppa_save_iptc';
|
785 |
$onch = 'wppaRefreshAfter();';
|
786 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'iptc', '1', '', 'save_iptc' );
|
787 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
788 |
|
789 |
-
$name = __('Enable GPX', 'wp-photo-album-plus');
|
790 |
-
$desc = __('Store the gpx data from the photo into the exif db table', 'wp-photo-album-plus');
|
791 |
-
$help = __('You will need this if you enabled the display of gpx data in the photo descriptions.', 'wp-photo-album-plus');
|
792 |
$slug = 'wppa_save_gpx';
|
793 |
$onch = 'wppaRefreshAfter();';
|
794 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'gpx', '1', '', 'save_gpx' );
|
795 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help, function_exists('exif_read_data') && wppa_switch( 'save_exif' ) );
|
796 |
|
797 |
-
$name = __('Enable Custom data albums', 'wp-photo-album-plus');
|
798 |
-
$desc = __('Define up to 10 custom data fields for albums.', 'wp-photo-album-plus');
|
799 |
$help = '';
|
800 |
$slug = 'wppa_album_custom_fields';
|
801 |
$onch = 'wppaRefreshAfter();';
|
802 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '1', '', 'album_custom_fields' );
|
803 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
804 |
|
805 |
-
$name = __('Enable Custom data photos', 'wp-photo-album-plus');
|
806 |
-
$desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus');
|
807 |
$help = '';
|
808 |
$slug = 'wppa_custom_fields';
|
809 |
$onch = 'wppaRefreshAfter();';
|
810 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '2', '', 'custom_fields' );
|
811 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
812 |
|
813 |
-
$name = __('Enable Watermark', 'wp-photo-album-plus');
|
814 |
-
$desc = __('Enable the application of watermarks.', 'wp-photo-album-plus');
|
815 |
$help = '';
|
816 |
$slug = 'wppa_watermark_on';
|
817 |
$onch = 'wppaRefreshAfter();';
|
818 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'watermark', '1', '', 'watermark_on' );
|
819 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
820 |
|
821 |
-
$name = __('Enable shortcode [photo ..]', 'wp-photo-album-plus');
|
822 |
-
$desc = __('Make the use of shortcode [photo ..] possible', 'wp-photo-album-plus');
|
823 |
-
$help = __('Only disable this when there is a conflict with another plugin', 'wp-photo-album-plus');
|
824 |
$slug = 'wppa_photo_shortcode_enabled';
|
825 |
$onch = 'wppaRefreshAfter();';
|
826 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'photos', '2', '', 'photo_shortcode_enabled' );
|
@@ -838,89 +838,89 @@ global $wppa_subtab_names;
|
|
838 |
wppa_setting_tab_description($desc);
|
839 |
wppa_setting_box_header_new($tab);
|
840 |
|
841 |
-
$name = __('WPPA display boxes', 'wp-photo-album-plus');
|
842 |
-
$desc = __('Background and border colors.', 'wp-photo-album-plus');
|
843 |
-
$help = __('Enter valid CSS colors for backgrounds and borders. E.g. #cccccc, gray, lightblue, transparent', 'wp-photo-album-plus');
|
844 |
$slug1 = 'wppa_bgcolor';
|
845 |
$slug2 = 'wppa_bcolor';
|
846 |
$slug = array($slug1, $slug2);
|
847 |
-
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
848 |
-
$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);
|
849 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
850 |
|
851 |
-
$name = __('Border thickness', 'wp-photo-album-plus');
|
852 |
-
$desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus');
|
853 |
-
$help = __('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus');
|
854 |
$slug = 'wppa_bwidth';
|
855 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
856 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
857 |
|
858 |
-
$name = __('Border radius', 'wp-photo-album-plus');
|
859 |
-
$desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus');
|
860 |
-
$help = __('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus');
|
861 |
$slug = 'wppa_bradius';
|
862 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
863 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
864 |
|
865 |
-
$name = __('Box spacing', 'wp-photo-album-plus');
|
866 |
-
$desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus');
|
867 |
$help = '';
|
868 |
$slug = 'wppa_box_spacing';
|
869 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
870 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
871 |
|
872 |
-
$name = __('Initial Width', 'wp-photo-album-plus');
|
873 |
-
$desc = __('The starting width of the wppa display boxes', 'wp-photo-album-plus');
|
874 |
$help = '';
|
875 |
$slug = 'wppa_initial_colwidth';
|
876 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
877 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
878 |
|
879 |
-
$name = __('Sticky header size', 'wp-photo-album-plus');
|
880 |
-
$desc = __('The height of your sticky header.', 'wp-photo-album-plus');
|
881 |
-
$help = __('If your theme has a sticky header, enter its height here.', 'wp-photo-album-plus');
|
882 |
$slug = 'wppa_sticky_header_size';
|
883 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
884 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
885 |
|
886 |
-
$name = __('Area max size', 'wp-photo-album-plus');
|
887 |
-
$desc = __('The max height of the thumbnail and album cover areas', 'wp-photo-album-plus');
|
888 |
-
$help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus');
|
889 |
$slug = 'wppa_area_size';
|
890 |
-
$html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus'));
|
891 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
892 |
|
893 |
-
$name = __('Use nicescroller', 'wp-photo-album-plus');
|
894 |
-
$desc = __('Use nice scrollbars on thumbnail and album cover areas', 'wp-photo-album-plus');
|
895 |
$help = '';
|
896 |
$slug = 'wppa_nicescroll';
|
897 |
$html = wppa_checkbox($slug);
|
898 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
899 |
|
900 |
-
$name = __('Max Pagelinks', 'wp-photo-album-plus');
|
901 |
-
$desc = __('The maximum number of pagelinks to be displayed.', 'wp-photo-album-plus');
|
902 |
$help = '';
|
903 |
$slug = 'wppa_pagelinks_max';
|
904 |
-
$html = wppa_input($slug, '40px', '', __('pages', 'wp-photo-album-plus'));
|
905 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
906 |
|
907 |
-
$name = __('Cover Photo and popups', 'wp-photo-album-plus');
|
908 |
-
$desc = __('Background and Border colors.', 'wp-photo-album-plus');
|
909 |
-
$help = __('Enter valid CSS colors for Cover photo and popup backgrounds and borders.', 'wp-photo-album-plus');
|
910 |
$slug1 = 'wppa_bgcolor_img';
|
911 |
$slug2 = 'wppa_bcolor_img';
|
912 |
$slug = array($slug1, $slug2);
|
913 |
-
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
914 |
-
$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);
|
915 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
916 |
|
917 |
-
$name = __('Modal render box', 'wp-photo-album-plus');
|
918 |
-
$desc = __('The background for the Ajax modal rendering box.', 'wp-photo-album-plus');
|
919 |
-
$help = __('Recommended color: your theme background color.', 'wp-photo-album-plus');
|
920 |
$slug1 = 'wppa_bgcolor_modal';
|
921 |
$slug2 = 'wppa_bcolor_modal';
|
922 |
$slug = array($slug1, $slug2);
|
923 |
-
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
924 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
925 |
|
926 |
wppa_setting_box_footer_new();
|
@@ -931,135 +931,135 @@ global $wppa_subtab_names;
|
|
931 |
wppa_setting_tab_description($desc);
|
932 |
wppa_setting_box_header_new($tab);
|
933 |
|
934 |
-
$name = __('Breadcrumb on posts', 'wp-photo-album-plus');
|
935 |
-
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
|
936 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus');
|
937 |
$slug = 'wppa_show_bread_posts';
|
938 |
$html = wppa_checkbox($slug);
|
939 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
940 |
|
941 |
-
$name = __('Breadcrumb on pages', 'wp-photo-album-plus');
|
942 |
-
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus');
|
943 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus');
|
944 |
$slug = 'wppa_show_bread_pages';
|
945 |
$html = wppa_checkbox($slug);
|
946 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
947 |
|
948 |
-
$name = __('Breadcrumb on search results', 'wp-photo-album-plus');
|
949 |
-
$desc = __('Show breadcrumb navigation bars on the search results page.', 'wp-photo-album-plus');
|
950 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed above the search results.', 'wp-photo-album-plus');
|
951 |
$slug = 'wppa_bc_on_search';
|
952 |
$html = wppa_checkbox($slug);
|
953 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
954 |
|
955 |
-
$name = __('Breadcrumb on topten displays', 'wp-photo-album-plus');
|
956 |
-
$desc = __('Show breadcrumb navigation bars on topten displays.', 'wp-photo-album-plus');
|
957 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed above the topten displays.', 'wp-photo-album-plus');
|
958 |
$slug = 'wppa_bc_on_topten';
|
959 |
$html = wppa_checkbox($slug);
|
960 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
961 |
|
962 |
-
$name = __('Breadcrumb on last ten displays', 'wp-photo-album-plus');
|
963 |
-
$desc = __('Show breadcrumb navigation bars on last ten displays.', 'wp-photo-album-plus');
|
964 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed above the last ten displays.', 'wp-photo-album-plus');
|
965 |
$slug = 'wppa_bc_on_lasten';
|
966 |
$html = wppa_checkbox($slug);
|
967 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
968 |
|
969 |
-
$name = __('Breadcrumb on comment ten displays', 'wp-photo-album-plus');
|
970 |
-
$desc = __('Show breadcrumb navigation bars on comment ten displays.', 'wp-photo-album-plus');
|
971 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed above the comment ten displays.', 'wp-photo-album-plus');
|
972 |
$slug = 'wppa_bc_on_comten';
|
973 |
$html = wppa_checkbox($slug);
|
974 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
975 |
|
976 |
-
$name = __('Breadcrumb on tag result displays', 'wp-photo-album-plus');
|
977 |
-
$desc = __('Show breadcrumb navigation bars on tag result displays.', 'wp-photo-album-plus');
|
978 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed above the tag result displays.', 'wp-photo-album-plus');
|
979 |
$slug = 'wppa_bc_on_tag';
|
980 |
$html = wppa_checkbox($slug);
|
981 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
982 |
|
983 |
-
$name = __('Breadcrumb on featured ten displays', 'wp-photo-album-plus');
|
984 |
-
$desc = __('Show breadcrumb navigation bars on featured ten displays.', 'wp-photo-album-plus');
|
985 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed above the featured ten displays.', 'wp-photo-album-plus');
|
986 |
$slug = 'wppa_bc_on_featen';
|
987 |
$html = wppa_checkbox($slug);
|
988 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
989 |
|
990 |
-
$name = __('Breadcrumb on related photos displays', 'wp-photo-album-plus');
|
991 |
-
$desc = __('Show breadcrumb navigation bars on related photos displays.', 'wp-photo-album-plus');
|
992 |
-
$help = __('Indicate whether a breadcrumb navigation should be displayed above the related photos displays.', 'wp-photo-album-plus');
|
993 |
$slug = 'wppa_bc_on_related';
|
994 |
$html = wppa_checkbox($slug);
|
995 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
996 |
|
997 |
-
$name = __('Home', 'wp-photo-album-plus');
|
998 |
-
$desc = __('Show "Home" in breadcrumb.', 'wp-photo-album-plus');
|
999 |
-
$help = __('Indicate whether the breadcrumb navigation should start with a "Home"-link', 'wp-photo-album-plus');
|
1000 |
$slug = 'wppa_show_home';
|
1001 |
$html = wppa_checkbox($slug);
|
1002 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1003 |
|
1004 |
-
$name = __('Home text', 'wp-photo-album-plus');
|
1005 |
-
$desc = __('The text to use as "Home"', 'wp-photo-album-plus');
|
1006 |
$help = ' ';
|
1007 |
$slug = 'wppa_home_text';
|
1008 |
$html = wppa_input($slug, '100px;');
|
1009 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1010 |
|
1011 |
-
$name = __('Page', 'wp-photo-album-plus');
|
1012 |
-
$desc = __('Show the page(s) in breadcrumb.', 'wp-photo-album-plus');
|
1013 |
-
$help = __('Indicate whether the breadcrumb navigation should show the page(hierarchy)', 'wp-photo-album-plus');
|
1014 |
$slug = 'wppa_show_page';
|
1015 |
$html = wppa_checkbox($slug);
|
1016 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
1017 |
|
1018 |
-
$name = __('Photo name', 'wp-photo-album-plus');
|
1019 |
-
$desc = __('Show name of photo above slideshow.', 'wp-photo-album-plus');
|
1020 |
$help = '';
|
1021 |
$slug = 'wppa_show_pname';
|
1022 |
$html = wppa_checkbox($slug);
|
1023 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
1024 |
|
1025 |
-
$name = __('Separator', 'wp-photo-album-plus');
|
1026 |
-
$desc = __('Breadcrumb separator symbol.', 'wp-photo-album-plus');
|
1027 |
-
$help = __('Select the desired breadcrumb separator element.', 'wp-photo-album-plus');
|
1028 |
-
$help .= '<br>'.__('A text string may contain valid html.', 'wp-photo-album-plus');
|
1029 |
-
$help .= '<br>'.__('An image will be scaled automatically if you set the navigation font size.', 'wp-photo-album-plus');
|
1030 |
$slug = 'wppa_bc_separator';
|
1031 |
-
$opts = array('&raquo', '&rsaquo', '&gt', '&bull', __('Text (html):', 'wp-photo-album-plus'), __('Image (url):', 'wp-photo-album-plus'));
|
1032 |
$vals = array('raquo', 'rsaquo', 'gt', 'bull', 'txt', 'url');
|
1033 |
$html = wppa_select($slug, $opts, $vals);
|
1034 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
1035 |
|
1036 |
-
$name = __('Html', 'wp-photo-album-plus');
|
1037 |
-
$desc = __('Breadcrumb separator text.', 'wp-photo-album-plus');
|
1038 |
-
$help = __('Enter the HTML code that produces the separator symbol you want.', 'wp-photo-album-plus');
|
1039 |
-
$help .= '<br>'.__('It may be as simple as \'-\' (without the quotes) or as complex as a tag like <div>..</div>.', 'wp-photo-album-plus');
|
1040 |
$slug = 'wppa_bc_txt';
|
1041 |
$html = wppa_input($slug, '90%', '300px');
|
1042 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
1043 |
|
1044 |
-
$name = __('Image Url', 'wp-photo-album-plus');
|
1045 |
-
$desc = __('Full url to separator image.', 'wp-photo-album-plus');
|
1046 |
-
$help = __('Enter the full url to the image you want to use for the separator symbol.', 'wp-photo-album-plus');
|
1047 |
$slug = 'wppa_bc_url';
|
1048 |
$html = wppa_input($slug, '90%', '300px');
|
1049 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
1050 |
|
1051 |
-
$name = __('Pagelink position', 'wp-photo-album-plus');
|
1052 |
-
$desc = __('The location for the pagelinks bar.', 'wp-photo-album-plus');
|
1053 |
$help = '';
|
1054 |
$slug = 'wppa_pagelink_pos';
|
1055 |
-
$opts = array(__('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'), __('Both', 'wp-photo-album-plus'));
|
1056 |
$vals = array('top', 'bottom', 'both');
|
1057 |
$html = wppa_select($slug, $opts, $vals);
|
1058 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
1059 |
|
1060 |
-
$name = __('Thumblink on slideshow', 'wp-photo-album-plus');
|
1061 |
-
$desc = __('Show a thumb link on slideshow bc.', 'wp-photo-album-plus');
|
1062 |
-
$help = __('Show a link to thumbnail display on an breadcrumb above a slideshow', 'wp-photo-album-plus');
|
1063 |
$slug = 'wppa_bc_slide_thumblink';
|
1064 |
$html = wppa_checkbox($slug);
|
1065 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
@@ -1072,8 +1072,8 @@ global $wppa_subtab_names;
|
|
1072 |
wppa_setting_tab_description($desc);
|
1073 |
wppa_setting_box_header_new($tab);
|
1074 |
|
1075 |
-
$name = __('Navigation icon size', 'wp-photo-album-plus');
|
1076 |
-
$desc = __('The size of navigation icons', 'wp-photo-album-plus');
|
1077 |
$help = '';
|
1078 |
$slug = 'wppa_nav_icon_size';
|
1079 |
$opts = array( '1.5em',
|
@@ -1091,8 +1091,8 @@ global $wppa_subtab_names;
|
|
1091 |
$html = wppa_select($slug, $opts, $vals);
|
1092 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1093 |
|
1094 |
-
$name = __('Navigation icon size slideshow', 'wp-photo-album-plus');
|
1095 |
-
$desc = __('The size of navigation icons on the slide', 'wp-photo-album-plus');
|
1096 |
$help = '';
|
1097 |
$slug = 'wppa_nav_icon_size_slide';
|
1098 |
$opts = array( '16px',
|
@@ -1110,8 +1110,8 @@ global $wppa_subtab_names;
|
|
1110 |
$html = wppa_select($slug, $opts, $vals);
|
1111 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1112 |
|
1113 |
-
$name = __('Icon size rating', 'wp-photo-album-plus');
|
1114 |
-
$desc = __('The size of rating stars', 'wp-photo-album-plus');
|
1115 |
$help = '';
|
1116 |
$slug = 'wppa_icon_size_rating';
|
1117 |
$opts = array( '1em+3px',
|
@@ -1131,8 +1131,8 @@ global $wppa_subtab_names;
|
|
1131 |
$html = wppa_select($slug, $opts, $vals);
|
1132 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1133 |
|
1134 |
-
$name = __('Navigation icon size panorama', 'wp-photo-album-plus');
|
1135 |
-
$desc = __('The size of navigation icons on panorama photos', 'wp-photo-album-plus');
|
1136 |
$help = '';
|
1137 |
$slug = 'wppa_nav_icon_size_panorama';
|
1138 |
$opts = array( '16px',
|
@@ -1152,8 +1152,8 @@ global $wppa_subtab_names;
|
|
1152 |
$html = wppa_select($slug, $opts, $vals);
|
1153 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1154 |
|
1155 |
-
$name = __('Icon size fullsize page', 'wp-photo-album-plus');
|
1156 |
-
$desc = __('The size of navigation icons for the fullsize page', 'wp-photo-album-plus');
|
1157 |
$help = '';
|
1158 |
$slug = 'wppa_nav_icon_size_global_fs';
|
1159 |
$opts = array( '16px',
|
@@ -1173,20 +1173,20 @@ global $wppa_subtab_names;
|
|
1173 |
$html = wppa_select($slug, $opts, $vals);
|
1174 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1175 |
|
1176 |
-
$name = __('Navigation symbols style', 'wp-photo-album-plus');
|
1177 |
$desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
|
1178 |
-
$help = __('Use gif/png if you have excessive pageload times due to many slideshows on a page', 'wp-photo-album-plus');
|
1179 |
$slug = 'wppa_icon_corner_style';
|
1180 |
-
$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'));
|
1181 |
$vals = array('none', 'light', 'medium', 'heavy', 'gif');
|
1182 |
$html = wppa_select($slug, $opts, $vals);
|
1183 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1184 |
|
1185 |
-
$name = __('Spinner design', 'wp-photo-album-plus');
|
1186 |
-
$desc = __('Shape of the loader symbol', 'wp-photo-album-plus');
|
1187 |
-
$help = __('This works only when the previous item is set to any svg style', 'wp-photo-album-plus');
|
1188 |
$slug = 'wppa_spinner_shape';
|
1189 |
-
$opts = array( __('default', 'wp-photo-album-plus'),
|
1190 |
'puff',
|
1191 |
'rings',
|
1192 |
'tail-spin',
|
@@ -1215,38 +1215,38 @@ global $wppa_subtab_names;
|
|
1215 |
'audio',
|
1216 |
);
|
1217 |
$html = wppa_select($slug, $opts, $vals) .
|
1218 |
-
__('Frontend', 'wp-photo-album-plus') . ': <span id="wppa-spin-pre-1" > </span>' .
|
1219 |
-
__('Lightbox', 'wp-photo-album-plus') . ': <span id="wppa-spin-pre-2" > </span>';
|
1220 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1221 |
|
1222 |
-
$name = __('Navigation symbols', 'wp-photo-album-plus');
|
1223 |
-
$desc = __('Navigation symbol background and fill colors.', 'wp-photo-album-plus');
|
1224 |
$help = '';
|
1225 |
$slug1 = 'wppa_svg_bg_color';
|
1226 |
$slug2 = 'wppa_svg_color';
|
1227 |
$slug = array($slug1, $slug2);
|
1228 |
-
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
1229 |
-
$html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
1230 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1231 |
|
1232 |
-
$name = __('Navigation symbols Lightbox', 'wp-photo-album-plus');
|
1233 |
-
$desc = __('Navigation symbol background and fill colors Lightbox.', 'wp-photo-album-plus');
|
1234 |
$help = '';
|
1235 |
$slug1 = 'wppa_ovl_svg_bg_color';
|
1236 |
$slug2 = 'wppa_ovl_svg_color';
|
1237 |
$slug = array($slug1, $slug2);
|
1238 |
-
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
1239 |
-
$html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
1240 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1241 |
|
1242 |
-
$name = __('Fullscreen button', 'wp-photo-album-plus');
|
1243 |
-
$desc = __('The upper right corner fullscreen button.', 'wp-photo-album-plus');
|
1244 |
$help = '';
|
1245 |
$slug1 = 'wppa_fs_svg_bg_color';
|
1246 |
$slug2 = 'wppa_fs_svg_color';
|
1247 |
$slug = array($slug1, $slug2);
|
1248 |
-
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
1249 |
-
$html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus') . ' </span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
1250 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1251 |
|
1252 |
wppa_setting_box_footer_new();
|
@@ -1294,7 +1294,7 @@ global $wppa_subtab_names;
|
|
1294 |
$slug = 'wppa_document_icon';
|
1295 |
$opts = $icons;
|
1296 |
$vals = $icons;
|
1297 |
-
$onch = 'alert(\''.__('The page will be reloaded.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
1298 |
$html = wppa_select( $slug, $opts, $vals, $onch ) . ' <img src="' . esc_attr( WPPA_UPLOAD_URL . '/icons/' . wppa_opt( 'document_icon' ) ) . '" style="height:24px;" />';
|
1299 |
wppa_setting_new( $slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_pdf' ) );
|
1300 |
|
@@ -1305,23 +1305,23 @@ global $wppa_subtab_names;
|
|
1305 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.jpeg,.jpg,.png,.svg,.gif,.bmp,.ico' );
|
1306 |
wppa_setting_new( $slug, '4', $name, $desc, $html, $help );
|
1307 |
|
1308 |
-
$name = __('Use audiostub', 'wp-photo-album-plus');
|
1309 |
-
$desc = __('Show a dummy image on audio items that have no photo', 'wp-photo-album-plus');
|
1310 |
$help = '';
|
1311 |
$slug = 'wppa_use_audiostub';
|
1312 |
$html = wppa_checkbox($slug);
|
1313 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_switch('enable_audio'));
|
1314 |
|
1315 |
-
$name = __('Upload audiostub', 'wp-photo-album-plus');
|
1316 |
-
$desc = __('Upload a new audio stub file', 'wp-photo-album-plus');
|
1317 |
-
$help = __('This MUST be a .jpg image file', 'wp-photo-album-plus');
|
1318 |
$slug = 'wppa_audiostub_upload';
|
1319 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.jpg' );
|
1320 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help, wppa_switch('enable_audio'));
|
1321 |
|
1322 |
-
$name = __('Upload documentstub', 'wp-photo-album-plus');
|
1323 |
-
$desc = __('Upload a new document stub file', 'wp-photo-album-plus');
|
1324 |
-
$help = __('This MUST be a .png image file', 'wp-photo-album-plus');
|
1325 |
$slug = 'wppa_documentstub_upload';
|
1326 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.png' );
|
1327 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_pdf'));
|
@@ -1333,157 +1333,157 @@ global $wppa_subtab_names;
|
|
1333 |
{
|
1334 |
$coldef = array();
|
1335 |
wppa_setting_tab_description($desc);
|
1336 |
-
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
1337 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
1338 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
1339 |
-
__('Font family', 'wp-photo-album-plus') => 'auto;',
|
1340 |
-
__('Font size', 'wp-photo-album-plus') => 'auto;',
|
1341 |
-
__('Font color', 'wp-photo-album-plus') => 'auto;',
|
1342 |
-
__('Font weight', 'wp-photo-album-plus') => 'auto;',
|
1343 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
1344 |
);
|
1345 |
wppa_setting_box_header_new($tab, $coldef);
|
1346 |
|
1347 |
-
$opts = 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');
|
1348 |
$vals = array('normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900');
|
1349 |
|
1350 |
-
$name = __('Album titles', 'wp-photo-album-plus');
|
1351 |
-
$desc = __('Font used for Album titles.', 'wp-photo-album-plus');
|
1352 |
-
$help = __('Enter font name, size, color and weight for album cover titles.', 'wp-photo-album-plus');
|
1353 |
$slug1 = 'wppa_fontfamily_title';
|
1354 |
$slug2 = 'wppa_fontsize_title';
|
1355 |
$slug3 = 'wppa_fontcolor_title';
|
1356 |
$slug4 = 'wppa_fontweight_title';
|
1357 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1358 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1359 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1360 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1361 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1362 |
$html = array($html1, $html2, $html3, $html4);
|
1363 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1364 |
|
1365 |
-
$name = __('Slideshow desc', 'wp-photo-album-plus');
|
1366 |
-
$desc = __('Font for slideshow photo descriptions.', 'wp-photo-album-plus');
|
1367 |
-
$help = __('Enter font name, size, color and weight for slideshow photo descriptions.', 'wp-photo-album-plus');
|
1368 |
$slug1 = 'wppa_fontfamily_fulldesc';
|
1369 |
$slug2 = 'wppa_fontsize_fulldesc';
|
1370 |
$slug3 = 'wppa_fontcolor_fulldesc';
|
1371 |
$slug4 = 'wppa_fontweight_fulldesc';
|
1372 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1373 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1374 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1375 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1376 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1377 |
$html = array($html1, $html2, $html3, $html4);
|
1378 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1379 |
|
1380 |
-
$name = __('Slideshow name', 'wp-photo-album-plus');
|
1381 |
-
$desc = __('Font for slideshow photo names.', 'wp-photo-album-plus');
|
1382 |
-
$help = __('Enter font name, size, color and weight for slideshow photo names.', 'wp-photo-album-plus');
|
1383 |
$slug1 = 'wppa_fontfamily_fulltitle';
|
1384 |
$slug2 = 'wppa_fontsize_fulltitle';
|
1385 |
$slug3 = 'wppa_fontcolor_fulltitle';
|
1386 |
$slug4 = 'wppa_fontweight_fulltitle';
|
1387 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1388 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1389 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1390 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1391 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1392 |
$html = array($html1, $html2, $html3, $html4);
|
1393 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1394 |
|
1395 |
-
$name = __('Navigations', 'wp-photo-album-plus');
|
1396 |
-
$desc = __('Font for navigations.', 'wp-photo-album-plus');
|
1397 |
-
$help = __('Enter font name, size, color and weight for navigation items.', 'wp-photo-album-plus');
|
1398 |
$slug1 = 'wppa_fontfamily_nav';
|
1399 |
$slug2 = 'wppa_fontsize_nav';
|
1400 |
$slug3 = 'wppa_fontcolor_nav';
|
1401 |
$slug4 = 'wppa_fontweight_nav';
|
1402 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1403 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1404 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1405 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1406 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1407 |
$html = array($html1, $html2, $html3, $html4);
|
1408 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1409 |
|
1410 |
-
$name = __('Thumbnails', 'wp-photo-album-plus');
|
1411 |
-
$desc = __('Font for text under thumbnails.', 'wp-photo-album-plus');
|
1412 |
-
$help = __('Enter font name, size, color and weight for text under thumbnail images.', 'wp-photo-album-plus');
|
1413 |
$slug1 = 'wppa_fontfamily_thumb';
|
1414 |
$slug2 = 'wppa_fontsize_thumb';
|
1415 |
$slug3 = 'wppa_fontcolor_thumb';
|
1416 |
$slug4 = 'wppa_fontweight_thumb';
|
1417 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1418 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1419 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1420 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1421 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1422 |
$html = array($html1, $html2, $html3, $html4);
|
1423 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1424 |
|
1425 |
-
$name = __('Other', 'wp-photo-album-plus');
|
1426 |
-
$desc = __('General font in wppa boxes.', 'wp-photo-album-plus');
|
1427 |
-
$help = __('Enter font name, size, color and weight for all other items.', 'wp-photo-album-plus');
|
1428 |
$slug1 = 'wppa_fontfamily_box';
|
1429 |
$slug2 = 'wppa_fontsize_box';
|
1430 |
$slug3 = 'wppa_fontcolor_box';
|
1431 |
$slug4 = 'wppa_fontweight_box';
|
1432 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1433 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1434 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1435 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1436 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1437 |
$html = array($html1, $html2, $html3, $html4);
|
1438 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1439 |
|
1440 |
-
$name = __('Numbar', 'wp-photo-album-plus');
|
1441 |
-
$desc = __('Font in wppa number bars.', 'wp-photo-album-plus');
|
1442 |
-
$help = __('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus');
|
1443 |
$slug1 = 'wppa_fontfamily_numbar';
|
1444 |
$slug2 = 'wppa_fontsize_numbar';
|
1445 |
$slug3 = 'wppa_fontcolor_numbar';
|
1446 |
$slug4 = 'wppa_fontweight_numbar';
|
1447 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1448 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1449 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1450 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1451 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1452 |
$html = array($html1, $html2, $html3, $html4);
|
1453 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1454 |
|
1455 |
-
$name = __('Numbar Active', 'wp-photo-album-plus');
|
1456 |
-
$desc = __('Font in wppa number bars, active item.', 'wp-photo-album-plus');
|
1457 |
-
$help = __('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus');
|
1458 |
$slug1 = 'wppa_fontfamily_numbar_active';
|
1459 |
$slug2 = 'wppa_fontsize_numbar_active';
|
1460 |
$slug3 = 'wppa_fontcolor_numbar_active';
|
1461 |
$slug4 = 'wppa_fontweight_numbar_active';
|
1462 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1463 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1464 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1465 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1466 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1467 |
$html = array($html1, $html2, $html3, $html4);
|
1468 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1469 |
|
1470 |
-
$name = __('Lightbox', 'wp-photo-album-plus');
|
1471 |
-
$desc = __('Font in wppa lightbox overlays.', 'wp-photo-album-plus');
|
1472 |
-
$help = __('Enter font name, size, color and weight for wppa lightbox overlays.', 'wp-photo-album-plus');
|
1473 |
$slug1 = 'wppa_fontfamily_lightbox';
|
1474 |
$slug2 = 'wppa_fontsize_lightbox';
|
1475 |
$slug3 = 'wppa_fontcolor_lightbox';
|
1476 |
$slug4 = 'wppa_fontweight_lightbox';
|
1477 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1478 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1479 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1480 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1481 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1482 |
$html = array($html1, $html2, $html3, $html4);
|
1483 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1484 |
|
1485 |
-
$name = __('Widget thumbs fontsize', 'wp-photo-album-plus');
|
1486 |
-
$desc = __('Font size for thumbnail subtext in widgets.', 'wp-photo-album-plus');
|
1487 |
$help = '';
|
1488 |
$slug1 = '';
|
1489 |
$slug2 = 'wppa_fontsize_widget_thumb';
|
@@ -1491,14 +1491,14 @@ global $wppa_subtab_names;
|
|
1491 |
$slug4 = '';
|
1492 |
$slug = $slug2;
|
1493 |
$html1 = '';
|
1494 |
-
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1495 |
$html3 = '';
|
1496 |
$html4 = '';
|
1497 |
$html = '</td><td>' . $html2 . '</td><td></td><td>';
|
1498 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1499 |
|
1500 |
-
$name = __('Calendar fontsize', 'wp-photo-album-plus');
|
1501 |
-
$desc = __('Old style calendar fontstyle', 'wp-photo-album-plus');
|
1502 |
$help = '';
|
1503 |
$slug1 = '';
|
1504 |
$slug2 = 'wppa_font_calendar_by';
|
@@ -1506,15 +1506,15 @@ global $wppa_subtab_names;
|
|
1506 |
$slug4 = 'wppa_font_calendar_by_bold';
|
1507 |
$slug = $slug2;
|
1508 |
$html1 = '';
|
1509 |
-
$opts = array( __('Small', 'wp-photo-album-plus'),
|
1510 |
-
__('Medium', 'wp-photo-album-plus'),
|
1511 |
-
__('Large', 'wp-photo-album-plus'),
|
1512 |
-
__('Extra large', 'wp-photo-album-plus'),
|
1513 |
);
|
1514 |
$vals = array( 'small', 'medium', 'large', 'xlarge');
|
1515 |
$html2 = wppa_select($slug2, $opts, $vals);
|
1516 |
$html3 = '';
|
1517 |
-
$html4 = wppa_checkbox($slug4) . ' ' . __('Bold', 'wp-photo-album-plus');
|
1518 |
$html = '</td><td>' . $html2 . '</td><td></td><td>' . $html4;
|
1519 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1520 |
|
@@ -1530,42 +1530,42 @@ global $wppa_subtab_names;
|
|
1530 |
wppa_setting_tab_description($desc);
|
1531 |
wppa_setting_box_header_new($tab);
|
1532 |
|
1533 |
-
$name = __('Max Cover width', 'wp-photo-album-plus');
|
1534 |
-
$desc = __('Maximum width for a album cover display.', 'wp-photo-album-plus');
|
1535 |
-
$help = __('Display covers in 2 or more columns if the display area is wider than the given width.', 'wp-photo-album-plus');
|
1536 |
-
$help .= '<br>'.__('This also applies for \'thumbnails as covers\', and will NOT apply to single items.', 'wp-photo-album-plus');
|
1537 |
$slug = 'wppa_max_cover_width';
|
1538 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1539 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1540 |
|
1541 |
-
$name = __('Min Cover height', 'wp-photo-album-plus');
|
1542 |
-
$desc = __('Minimal height of an album cover.', 'wp-photo-album-plus');
|
1543 |
-
$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');
|
1544 |
$slug = 'wppa_cover_minheight';
|
1545 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1546 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1547 |
|
1548 |
-
$name = __('Min Text frame height', 'wp-photo-album-plus');
|
1549 |
-
$desc = __('The minimal cover text frame height incl header.', 'wp-photo-album-plus');
|
1550 |
-
$help = __('The height starting with the album title up to and including the view- and the slideshow- links.', 'wp-photo-album-plus');
|
1551 |
-
$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');
|
1552 |
-
$help .= '<br>'.__('This is the recommended setting to line-up your covers!', 'wp-photo-album-plus');
|
1553 |
$slug = 'wppa_head_and_text_frame_height';
|
1554 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1555 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1556 |
|
1557 |
-
$name = __('Min Description height', 'wp-photo-album-plus');
|
1558 |
-
$desc = __('The minimal height of the album description text frame.', 'wp-photo-album-plus');
|
1559 |
-
$help = __('The minimal height of the description field in an album cover display.', 'wp-photo-album-plus');
|
1560 |
-
$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');
|
1561 |
-
$help .= '<br>'.__('To force the coverphotos have equal heights, tick the box in <b>Albums -> I -> Size is height</b>', 'wp-photo-album-plus');
|
1562 |
-
$help .= '<br>'.__('You may need this setting if changing the previous setting is not sufficient to line-up the covers.', 'wp-photo-album-plus');
|
1563 |
$slug = 'wppa_text_frame_height';
|
1564 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1565 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1566 |
|
1567 |
-
$name = __('Coverphoto responsive', 'wp-photo-album-plus');
|
1568 |
-
$desc = __('Check this box if you want a responsive coverphoto.', 'wp-photo-album-plus');
|
1569 |
$help = '';
|
1570 |
$slug = 'wppa_coverphoto_responsive';
|
1571 |
$html = wppa_checkbox($slug, 'wppaSlave(this,\'wppa_smallsize_percentage\');' .
|
@@ -1574,56 +1574,56 @@ global $wppa_subtab_names;
|
|
1574 |
'wppaUnSlave(this,\'wppa_smallsize_multi\');');
|
1575 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1576 |
|
1577 |
-
$name = __('Coverphoto size', 'wp-photo-album-plus');
|
1578 |
-
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus');
|
1579 |
-
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
|
1580 |
-
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
1581 |
$slug = 'wppa_smallsize';
|
1582 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1583 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help, ! wppa_switch( 'coverphoto_responsive' ));
|
1584 |
|
1585 |
-
$name = __('Coverphoto size', 'wp-photo-album-plus');
|
1586 |
-
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus');
|
1587 |
-
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
|
1588 |
-
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
1589 |
$slug = 'wppa_smallsize_percentage';
|
1590 |
-
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus'));
|
1591 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch( 'coverphoto_responsive' ));
|
1592 |
|
1593 |
-
$name = __('Coverphoto size multi', 'wp-photo-album-plus');
|
1594 |
-
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus');
|
1595 |
-
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
|
1596 |
-
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
1597 |
$slug = 'wppa_smallsize_multi';
|
1598 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
1599 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, ! wppa_switch( 'coverphoto_responsive' ));
|
1600 |
|
1601 |
-
$name = __('Coverphoto size multi', 'wp-photo-album-plus');
|
1602 |
-
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus');
|
1603 |
-
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
|
1604 |
-
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
1605 |
$slug = 'wppa_smallsize_multi_percentage';
|
1606 |
-
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus'));
|
1607 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help, wppa_switch( 'coverphoto_responsive' ));
|
1608 |
|
1609 |
-
$name = __('Size is height', 'wp-photo-album-plus');
|
1610 |
-
$desc = __('The size of the coverphoto is the height of it.', 'wp-photo-album-plus');
|
1611 |
-
$help = __('If set: the previous setting is the height, if unset: the largest of width and height.', 'wp-photo-album-plus');
|
1612 |
-
$help .= '<br>'.__('This setting applies for coverphoto position top or bottom only (<b>Albums -> III -> Placement</b>).', 'wp-photo-album-plus');
|
1613 |
-
$help .= '<br>'.__('This makes it easyer to make the covers of equal height.', 'wp-photo-album-plus');
|
1614 |
$slug = 'wppa_coversize_is_height';
|
1615 |
$html = wppa_checkbox($slug);
|
1616 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1617 |
|
1618 |
-
$name = __('Page size', 'wp-photo-album-plus');
|
1619 |
-
$desc = __('Max number of covers per page.', 'wp-photo-album-plus');
|
1620 |
-
$help = __('Enter the maximum number of album covers per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus');
|
1621 |
$slug = 'wppa_album_page_size';
|
1622 |
-
$html = wppa_input($slug, '40px', '', __('covers', 'wp-photo-album-plus'));
|
1623 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1624 |
|
1625 |
-
$name = __('Cover spacing', 'wp-photo-album-plus');
|
1626 |
-
$desc = __('The space between album covers', 'wp-photo-album-plus');
|
1627 |
$help = '';
|
1628 |
$slug = 'wppa_cover_spacing';
|
1629 |
$html = wppa_input( $slug, '40px', '', __( 'pixels', 'wp-photo-album-plus' ));
|
@@ -1637,82 +1637,82 @@ global $wppa_subtab_names;
|
|
1637 |
wppa_setting_tab_description($desc);
|
1638 |
wppa_setting_box_header_new($tab);
|
1639 |
|
1640 |
-
$name = __('Covertext', 'wp-photo-album-plus');
|
1641 |
-
$desc = __('Show the text on the album cover.', 'wp-photo-album-plus');
|
1642 |
-
$help = __('Display the album decription on the album cover', 'wp-photo-album-plus');
|
1643 |
$slug = 'wppa_show_cover_text';
|
1644 |
$html = wppa_checkbox($slug);
|
1645 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1646 |
|
1647 |
-
$name = __('Slideshow', 'wp-photo-album-plus');
|
1648 |
-
$desc = __('Enable the slideshow.', 'wp-photo-album-plus');
|
1649 |
-
$help = __('If you do not want slideshows: uncheck this box. Browsing full size images will remain possible.', 'wp-photo-album-plus');
|
1650 |
$slug = 'wppa_enable_slideshow';
|
1651 |
$html = wppa_checkbox($slug);
|
1652 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1653 |
|
1654 |
-
$name = __('Slideshow/Browse', 'wp-photo-album-plus');
|
1655 |
-
$desc = __('Display the Slideshow / Browse photos link on album covers', 'wp-photo-album-plus');
|
1656 |
-
$help = __('This setting causes the Slideshow link to be displayed on the album cover.', 'wp-photo-album-plus');
|
1657 |
-
$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');
|
1658 |
-
$help .= '<br>'.__('If you do not want the browse link either, uncheck this item.', 'wp-photo-album-plus');
|
1659 |
$slug = 'wppa_show_slideshowbrowselink';
|
1660 |
$html = wppa_checkbox($slug);
|
1661 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1662 |
|
1663 |
-
$name = __('View ...', 'wp-photo-album-plus');
|
1664 |
-
$desc = __('Display the View xx albums and yy photos link on album covers', 'wp-photo-album-plus');
|
1665 |
$help = '';
|
1666 |
$slug = 'wppa_show_viewlink';
|
1667 |
$html = wppa_checkbox($slug);
|
1668 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1669 |
|
1670 |
-
$name = __('Treecount', 'wp-photo-album-plus');
|
1671 |
-
$desc = __('Display the total number of (sub)albums and photos in subalbums', 'wp-photo-album-plus');
|
1672 |
-
$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');
|
1673 |
$slug = 'wppa_show_treecount';
|
1674 |
-
$opts = array( __('none', 'wp-photo-album-plus'), __('detailed', 'wp-photo-album-plus'), __('totals only', 'wp-photo-album-plus'));
|
1675 |
$vals = array( '-none-', 'detail', 'total' );
|
1676 |
$html = wppa_select($slug, $opts, $vals);
|
1677 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1678 |
|
1679 |
-
$name = __('Show categories', 'wp-photo-album-plus');
|
1680 |
-
$desc = __('Display the album categories on the covers.', 'wp-photo-album-plus');
|
1681 |
$slug = 'wppa_show_cats';
|
1682 |
$help = '';
|
1683 |
$html = wppa_checkbox($slug);
|
1684 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1685 |
|
1686 |
-
$name = __('Skip empty albums', 'wp-photo-album-plus');
|
1687 |
-
$desc = __('Do not show empty albums, except for admin and owner.', 'wp-photo-album-plus');
|
1688 |
$help = '';
|
1689 |
$slug = 'wppa_skip_empty_albums';
|
1690 |
$html = wppa_checkbox($slug);
|
1691 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1692 |
|
1693 |
-
$name = __('Count on title', 'wp-photo-album-plus');
|
1694 |
-
$desc = __('Show photocount along with album title. ', 'wp-photo-album-plus');
|
1695 |
$help = '';
|
1696 |
$slug = 'wppa_count_on_title';
|
1697 |
-
$opts = array( __('none', 'wp-photo-album-plus'), __('top album only', 'wp-photo-album-plus'), __('total tree', 'wp-photo-album-plus'));
|
1698 |
$vals = array( '-none-', 'self', 'total' );
|
1699 |
$html = wppa_select($slug, $opts, $vals);
|
1700 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1701 |
|
1702 |
-
$name = __('Viewcount on cover', 'wp-photo-album-plus');
|
1703 |
-
$desc = __('Show total photo viewcount on album covers.', 'wp-photo-album-plus');
|
1704 |
$help = '';
|
1705 |
$slug = 'wppa_viewcount_on_cover';
|
1706 |
-
$opts = array( __('none', 'wp-photo-album-plus'), __('top album only', 'wp-photo-album-plus'), __('total tree', 'wp-photo-album-plus'));
|
1707 |
$vals = array( '-none-', 'self', 'total' );
|
1708 |
$html = wppa_select($slug, $opts, $vals);
|
1709 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1710 |
|
1711 |
-
$name = __('Album id on cover', 'wp-photo-album-plus');
|
1712 |
-
$desc = __('Show album id on album cover next to name', 'wp-photo-album-plus');
|
1713 |
$help = '';
|
1714 |
$slug = 'wppa_albumid_on_cover';
|
1715 |
-
$opts = array( __('none', 'wp-photo-album-plus'), __('If user has edit access', 'wp-photo-album-plus'), __('Always', 'wp-photo-album-plus') );
|
1716 |
$vals = array( '-none-', 'access', 'all' );
|
1717 |
$html = wppa_select($slug, $opts, $vals);
|
1718 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
@@ -1725,43 +1725,43 @@ global $wppa_subtab_names;
|
|
1725 |
wppa_setting_tab_description($desc);
|
1726 |
wppa_setting_box_header_new($tab);
|
1727 |
|
1728 |
-
$name = __('Placement', 'wp-photo-album-plus');
|
1729 |
-
$desc = __('Cover image position.', 'wp-photo-album-plus');
|
1730 |
-
$help = __('Enter the position that you want to be used for the default album cover selected in <b>Albums -> III -> Cover type</b>', 'wp-photo-album-plus');
|
1731 |
-
$help .= '<br>'.__('For covertype Image Factory: left will be treated as top and right will be treted as bottom.', 'wp-photo-album-plus');
|
1732 |
-
$help .= '<br>'.__('For covertype Long Descriptions: top will be treated as left and bottom will be treted as right.', 'wp-photo-album-plus');
|
1733 |
$slug = 'wppa_coverphoto_pos';
|
1734 |
-
$opts = array(__('Left', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'), __('Top', 'wp-photo-album-plus'), __('Bottom', 'wp-photo-album-plus'));
|
1735 |
$vals = array('left', 'right', 'top', 'bottom');
|
1736 |
$html = wppa_select($slug, $opts, $vals);
|
1737 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1738 |
|
1739 |
-
$name = __('Cover mouseover', 'wp-photo-album-plus');
|
1740 |
-
$desc = __('Apply coverphoto mouseover effect.', 'wp-photo-album-plus');
|
1741 |
-
$help = (__('Check this box to use mouseover effect on cover images.', 'wp-photo-album-plus'));
|
1742 |
$slug = 'wppa_use_cover_opacity';
|
1743 |
$html = wppa_checkbox($slug);
|
1744 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1745 |
|
1746 |
-
$name = __('Cover opacity', 'wp-photo-album-plus');
|
1747 |
-
$desc = __('Initial opacity value.', 'wp-photo-album-plus');
|
1748 |
-
$help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus');
|
1749 |
$slug = 'wppa_cover_opacity';
|
1750 |
$html = wppa_input($slug, '50px', '', '%');
|
1751 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1752 |
|
1753 |
-
$name = __('Cover type', 'wp-photo-album-plus');
|
1754 |
-
$desc = __('Select the default cover type.', 'wp-photo-album-plus');
|
1755 |
-
$help = __('Types with the addition mcr are suitable for Multi Column in a Responsive theme', 'wp-photo-album-plus');
|
1756 |
-
$help .= '<br>'.__("Type 'Grid with images only' is always responsive and requires a fixed aspect ratio selected for thumbnails in <b>Thumbnails -> I -> Thumbnail Aspect</b>", 'wp-photo-album-plus');
|
1757 |
$slug = 'wppa_cover_type';
|
1758 |
-
$opts = array( __('Standard', 'wp-photo-album-plus'),
|
1759 |
-
__('Long Descriptions', 'wp-photo-album-plus'),
|
1760 |
-
__('Image Factory', 'wp-photo-album-plus'),
|
1761 |
-
__('Standard mcr', 'wp-photo-album-plus'),
|
1762 |
-
__('Long Descriptions mcr', 'wp-photo-album-plus'),
|
1763 |
-
__('Image Factory mcr', 'wp-photo-album-plus'),
|
1764 |
-
__('Grid with images only', 'wp-photo-album-plus'),
|
1765 |
);
|
1766 |
$vals = array( 'default',
|
1767 |
'longdesc',
|
@@ -1774,35 +1774,35 @@ global $wppa_subtab_names;
|
|
1774 |
$html = wppa_select($slug, $opts, $vals);
|
1775 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1776 |
|
1777 |
-
$name = __('Number of coverphotos', 'wp-photo-album-plus');
|
1778 |
-
$desc = __('The umber of coverphotos. Must be > 1 and < 25.', 'wp-photo-album-plus');
|
1779 |
$help = '';
|
1780 |
$slug = 'wppa_imgfact_count';
|
1781 |
-
$html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus'));
|
1782 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1783 |
|
1784 |
-
$name = __('Cats include subs', 'wp-photo-album-plus');
|
1785 |
-
$desc = __('Child albums are included in Category based shortcodes.', 'wp-photo-album-plus');
|
1786 |
-
$help = __('When you use album="#cat,...", in a shortcode, the child albums will be included.', 'wp-photo-album-plus');
|
1787 |
$slug = 'wppa_cats_inherit';
|
1788 |
$html = wppa_checkbox($slug);
|
1789 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1790 |
|
1791 |
-
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
1792 |
-
$desc = __('Adds <br> or <p> and <br> tags in album descriptions.', 'wp-photo-album-plus');
|
1793 |
$help = '';
|
1794 |
$slug = 'wppa_wpautop_on_album_desc';
|
1795 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
1796 |
-
__('Linebreaks only', 'wp-photo-album-plus'),
|
1797 |
-
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
1798 |
);
|
1799 |
$vals = array('nil', 'nl2br', 'wpautop');
|
1800 |
$html = wppa_select($slug, $opts, $vals);
|
1801 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1802 |
|
1803 |
-
$name = __('Use thumb on cover', 'wp-photo-album-plus');
|
1804 |
-
$desc = __('Always use thumbnail file for cover image', 'wp-photo-album-plus');
|
1805 |
-
$help = __('If you crop thumbnails for cover images, and you have a CDN, tick this box', 'wp-photo-album-plus');
|
1806 |
$slug = 'wppa_cover_use_thumb';
|
1807 |
$html = wppa_checkbox($slug);
|
1808 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
@@ -1819,13 +1819,13 @@ global $wppa_subtab_names;
|
|
1819 |
wppa_setting_tab_description($desc);
|
1820 |
wppa_setting_box_header_new($tab);
|
1821 |
|
1822 |
-
$name = __('Resize during upload', 'wp-photo-album-plus');
|
1823 |
-
$desc = __('Resize photos to fit within a given area.', 'wp-photo-album-plus');
|
1824 |
$help = '';
|
1825 |
$slug = 'wppa_resize_to';
|
1826 |
-
$px = __('pixels', 'wp-photo-album-plus');
|
1827 |
-
$opts = array( __('Do not resize', 'wp-photo-album-plus'),
|
1828 |
-
__('Fit within rectangle as set in Tab Slideshow I', 'wp-photo-album-plus'),
|
1829 |
'640 x 480 '.$px,
|
1830 |
'800 x 600 '.$px,
|
1831 |
'1024 x 768 '.$px,
|
@@ -1855,22 +1855,22 @@ global $wppa_subtab_names;
|
|
1855 |
$html = wppa_select($slug, $opts, $vals);
|
1856 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1857 |
|
1858 |
-
$name = __('Enable 3D Stereo', 'wp-photo-album-plus');
|
1859 |
-
$desc = __('Enables 3D stereo photo support.', 'wp-photo-album-plus');
|
1860 |
-
$help = __('Check this box to enable the upload and display of 3D stereo image files', 'wp-photo-album-plus');
|
1861 |
$slug = 'wppa_enable_stereo';
|
1862 |
$html = wppa_checkbox($slug);
|
1863 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1864 |
|
1865 |
-
$name = __('Enable Panorama', 'wp-photo-album-plus');
|
1866 |
-
$desc = __('Enables panorama photo support.', 'wp-photo-album-plus');
|
1867 |
-
$help = __('Check this box to enable the upload and display of flat and 360° spheric panorama image files', 'wp-photo-album-plus');
|
1868 |
$slug = 'wppa_enable_panorama';
|
1869 |
$html = wppa_checkbox($slug);
|
1870 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1871 |
|
1872 |
-
$name = __('Enable zooming', 'wp-photo-album-plus');
|
1873 |
-
$desc = __('Enable zooming and panning', 'wp-photo-album-plus');
|
1874 |
$help = '';
|
1875 |
$slug = 'wppa_zoom_on';
|
1876 |
$html = wppa_checkbox($slug);
|
@@ -1884,14 +1884,14 @@ global $wppa_subtab_names;
|
|
1884 |
wppa_setting_tab_description($desc);
|
1885 |
wppa_setting_box_header_new($tab);
|
1886 |
|
1887 |
-
$name = __('Single image type', 'wp-photo-album-plus');
|
1888 |
-
$desc = __('Specify the single image type the shortcode [photo ..] should show.', 'wp-photo-album-plus');
|
1889 |
$help = '';
|
1890 |
$slug = 'wppa_photo_shortcode_type';
|
1891 |
-
$opts = array( __('A plain single photo', 'wp-photo-album-plus'),
|
1892 |
-
__('A single photo with caption', 'wp-photo-album-plus'),
|
1893 |
-
__('A single photo with extended caption', 'wp-photo-album-plus'),
|
1894 |
-
__('A single photo in the style of a slideshow', 'wp-photo-album-plus'),
|
1895 |
);
|
1896 |
$vals = array( 'photo',
|
1897 |
'mphoto',
|
@@ -1901,22 +1901,22 @@ global $wppa_subtab_names;
|
|
1901 |
$html = wppa_select($slug, $opts, $vals);
|
1902 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1903 |
|
1904 |
-
$name = __('Size', 'wp-photo-album-plus');
|
1905 |
-
$desc = __('Specify the size (width) of the image.', 'wp-photo-album-plus');
|
1906 |
-
$help = __('Use the same syntax as in the [wppa size=".."] shortcode', 'wp-photo-album-plus');
|
1907 |
-
$help .= '<br>'.__('Examples: 350 for a fixed width of 350 pixels, or: 0.75 for a responsive display of 75% width, or: auto,350 for responsive with a maximum of 350 pixels.', 'wp-photo-album-plus');
|
1908 |
$slug = 'wppa_photo_shortcode_size';
|
1909 |
$html = wppa_input($slug, '300px');
|
1910 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1911 |
|
1912 |
-
$name = __('Align', 'wp-photo-album-plus');
|
1913 |
-
$desc = __('Specify the alignment of the image.', 'wp-photo-album-plus');
|
1914 |
$help = '';
|
1915 |
$slug = 'wppa_photo_shortcode_align';
|
1916 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
1917 |
-
__('left', 'wp-photo-album-plus'),
|
1918 |
-
__('center', 'wp-photo-album-plus'),
|
1919 |
-
__('right', 'wp-photo-album-plus'),
|
1920 |
);
|
1921 |
$vals = array( '',
|
1922 |
'left',
|
@@ -1926,15 +1926,15 @@ global $wppa_subtab_names;
|
|
1926 |
$html = wppa_select($slug, $opts, $vals);
|
1927 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1928 |
|
1929 |
-
$name = __('Fe type', 'wp-photo-album-plus');
|
1930 |
-
$desc = __('Frontend editor shortcode generator output type', 'wp-photo-album-plus');
|
1931 |
-
$help = __( 'If you want to use the shortcode generator in frontend tinymce editors, select if you want the shortcode or the html to be entered in the post', 'wp-photo-album-plus');
|
1932 |
-
$help .= '<br>'.__('Select \'html\' if the inserted shortcode not is converted to the photo', 'wp-photo-album-plus');
|
1933 |
$slug = 'wppa_photo_shortcode_fe_type';
|
1934 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
1935 |
-
__('shortcode', 'wp-photo-album-plus'),
|
1936 |
-
__('html', 'wp-photo-album-plus'),
|
1937 |
-
__('img tag', 'wp-photo-album-plus'),
|
1938 |
);
|
1939 |
$vals = array( '-none-',
|
1940 |
'shortcode',
|
@@ -1944,9 +1944,9 @@ global $wppa_subtab_names;
|
|
1944 |
$html = wppa_select($slug, $opts, $vals);
|
1945 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1946 |
|
1947 |
-
$name = __('Albums', 'wp-photo-album-plus');
|
1948 |
-
$desc = __('Select album(s) for random photo', 'wp-photo-album-plus');
|
1949 |
-
$help = __( 'The albums to be used for the selection of a random photo for shortcode: [photo random]', 'wp-photo-album-plus');
|
1950 |
$slug = 'wppa_photo_shortcode_random_albums';
|
1951 |
if ( wppa_has_many_albums() ) {
|
1952 |
$html = wppa_input( $slug, '220', __('Enter album ids separated by commas','wp-photo-album-plus' ) );
|
@@ -1967,18 +1967,18 @@ global $wppa_subtab_names;
|
|
1967 |
}
|
1968 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1969 |
|
1970 |
-
$name = __('Select photo once', 'wp-photo-album-plus');
|
1971 |
-
$desc = __('The same random photo on every pageload', 'wp-photo-album-plus');
|
1972 |
-
$help = __('If ticked: the random photo is determined once at page/post creation time', 'wp-photo-album-plus');
|
1973 |
-
$help .= '<br>'.__('If unticked: every pageload a different photo', 'wp-photo-album-plus');
|
1974 |
$slug = 'wppa_photo_shortcode_random_fixed';
|
1975 |
$html = wppa_checkbox($slug);
|
1976 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1977 |
|
1978 |
-
$name = __('Render photo once', 'wp-photo-album-plus');
|
1979 |
-
$desc = __('Replace shortcode by html', 'wp-photo-album-plus');
|
1980 |
-
$help = __('Do not replace \'random\' by a number, but by the corresponding html', 'wp-photo-album-plus') . '<br>';
|
1981 |
-
$help .= __('WARNING: changes in [photo] shortcode afterwards do no longer have any effect!', 'wp-photo-album-plus');
|
1982 |
$slug = 'wppa_photo_shortcode_random_fixed_html';
|
1983 |
$html = wppa_checkbox($slug);
|
1984 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
@@ -2072,7 +2072,7 @@ global $wppa_subtab_names;
|
|
2072 |
id="wppa_potd_album"
|
2073 |
name="wppa_potd_album"
|
2074 |
style="float:left; max-width: 400px; height: auto !important;"
|
2075 |
-
multiple
|
2076 |
onchange="didsome=true;wppaAjaxUpdateOptionValue(\'potd_album\', this, true)"
|
2077 |
onmouseout="if(didsome)document.location.reload(true);"
|
2078 |
size="10"
|
@@ -2226,7 +2226,7 @@ global $wppa_subtab_names;
|
|
2226 |
}
|
2227 |
$vals = $opts;
|
2228 |
$html = '<span style="float:left;" >' .
|
2229 |
-
sprintf( __('Current day# = %s, offset =', 'wp-photo-album-plus'), wppa_local_date( $date_key ) ) .
|
2230 |
'</span> ' .
|
2231 |
wppa_select( $slug, $opts, $vals, 'wppaRefreshAfter();' );
|
2232 |
|
@@ -2265,7 +2265,7 @@ global $wppa_subtab_names;
|
|
2265 |
<div style="display:inline-block;width:75%;text-align:center;vertical-align:middle;" >' .
|
2266 |
__( 'Album', 'wp-photo-album-plus' ) . ': ' . htmlspecialchars( wppa_get_album_name( $photo['album'] ) ) . '
|
2267 |
<br>' .
|
2268 |
-
__('Uploader', 'wp-photo-album-plus') . ': ' . htmlspecialchars( $photo['owner'] ) . '
|
2269 |
</div>';
|
2270 |
}
|
2271 |
else {
|
@@ -2445,42 +2445,42 @@ global $wppa_subtab_names;
|
|
2445 |
wppa_setting_tab_description($desc);
|
2446 |
wppa_setting_box_header_new($tab);
|
2447 |
|
2448 |
-
$name = __('Thumbnail Size', 'wp-photo-album-plus');
|
2449 |
-
$desc = __('The size of the thumbnail images.', 'wp-photo-album-plus');
|
2450 |
-
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
|
2451 |
-
$help .= '<br>'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
2452 |
$slug = 'wppa_thumbsize';
|
2453 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2454 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2455 |
|
2456 |
-
$name = __('Thumbnail Size Alt', 'wp-photo-album-plus');
|
2457 |
-
$desc = __('The alternative size of the thumbnail images.', 'wp-photo-album-plus');
|
2458 |
-
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
|
2459 |
-
$help .= '<br>'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
2460 |
$slug = 'wppa_thumbsize_alt';
|
2461 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2462 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2463 |
|
2464 |
-
$name = __('Thumbnail Aspect', 'wp-photo-album-plus');
|
2465 |
-
$desc = __('Aspect ration of thumbnail image', 'wp-photo-album-plus');
|
2466 |
$help = '';
|
2467 |
$slug = 'wppa_thumb_aspect';
|
2468 |
$opts = array(
|
2469 |
-
__('--- same as fullsize ---', 'wp-photo-album-plus'),
|
2470 |
-
__('--- square clipped ---', 'wp-photo-album-plus'),
|
2471 |
-
__('4:5 landscape clipped', 'wp-photo-album-plus'),
|
2472 |
-
__('3:4 landscape clipped', 'wp-photo-album-plus'),
|
2473 |
-
__('2:3 landscape clipped', 'wp-photo-album-plus'),
|
2474 |
-
__('5:8 landscape clipped', 'wp-photo-album-plus'),
|
2475 |
-
__('9:16 landscape clipped', 'wp-photo-album-plus'),
|
2476 |
-
__('1:2 landscape clipped', 'wp-photo-album-plus'),
|
2477 |
-
__('--- square padded ---', 'wp-photo-album-plus'),
|
2478 |
-
__('4:5 landscape padded', 'wp-photo-album-plus'),
|
2479 |
-
__('3:4 landscape padded', 'wp-photo-album-plus'),
|
2480 |
-
__('2:3 landscape padded', 'wp-photo-album-plus'),
|
2481 |
-
__('5:8 landscape padded', 'wp-photo-album-plus'),
|
2482 |
-
__('9:16 landscape padded', 'wp-photo-album-plus'),
|
2483 |
-
__('1:2 landscape padded', 'wp-photo-album-plus')
|
2484 |
);
|
2485 |
$vals = array(
|
2486 |
'0:0:none',
|
@@ -2502,88 +2502,88 @@ global $wppa_subtab_names;
|
|
2502 |
$html = wppa_select($slug, $opts, $vals);
|
2503 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2504 |
|
2505 |
-
$name = __('Thumbnail padding', 'wp-photo-album-plus');
|
2506 |
-
$desc = __('Thumbnail padding color if thumbnail aspect is a padded setting.', 'wp-photo-album-plus');
|
2507 |
-
$help = __('Enter valid CSS color hexadecimal like #000000 for black or #ffffff for white for the padded thumbnails.', 'wp-photo-album-plus');
|
2508 |
$slug = 'wppa_bgcolor_thumbnail';
|
2509 |
$html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
|
2510 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2511 |
|
2512 |
-
$name = __('Thumbframe width', 'wp-photo-album-plus');
|
2513 |
-
$desc = __('The width of the thumbnail frame.', 'wp-photo-album-plus');
|
2514 |
-
$help = __('Set the width of the thumbnail frame.', 'wp-photo-album-plus');
|
2515 |
-
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus');
|
2516 |
-
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus');
|
2517 |
$slug = 'wppa_tf_width';
|
2518 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
2519 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2520 |
|
2521 |
-
$name = __('Thumbframe width Alt', 'wp-photo-album-plus');
|
2522 |
-
$desc = __('The width of the alternative thumbnail frame.', 'wp-photo-album-plus');
|
2523 |
-
$help = __('Set the width of the thumbnail frame.', 'wp-photo-album-plus');
|
2524 |
-
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus');
|
2525 |
-
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus');
|
2526 |
$slug = 'wppa_tf_width_alt';
|
2527 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
2528 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2529 |
|
2530 |
-
$name = __('Thumbframe height', 'wp-photo-album-plus');
|
2531 |
-
$desc = __('The height of the thumbnail frame.', 'wp-photo-album-plus');
|
2532 |
-
$help = __('Set the height of the thumbnail frame.', 'wp-photo-album-plus');
|
2533 |
-
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus');
|
2534 |
-
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus');
|
2535 |
$slug = 'wppa_tf_height';
|
2536 |
-
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
2537 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
2538 |
|
2539 |
-
$name = __('Thumbframe height Alt', 'wp-photo-album-plus');
|
2540 |
-
$desc = __('The height of the alternative thumbnail frame.', 'wp-photo-album-plus');
|
2541 |
-
$help = __('Set the height of the thumbnail frame.', 'wp-photo-album-plus');
|
2542 |
-
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus');
|
2543 |
-
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus');
|
2544 |
$slug = 'wppa_tf_height_alt';
|
2545 |
-
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
2546 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
2547 |
|
2548 |
-
$name = __('Thumbnail spacing', 'wp-photo-album-plus');
|
2549 |
-
$desc = __('The spacing between adjacent thumbnail frames.', 'wp-photo-album-plus');
|
2550 |
-
$help = __('Set the minimal spacing between the adjacent thumbnail frames', 'wp-photo-album-plus');
|
2551 |
-
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus');
|
2552 |
-
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus');
|
2553 |
$slug = 'wppa_tn_margin';
|
2554 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2555 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
2556 |
|
2557 |
-
$name = __('Auto spacing', 'wp-photo-album-plus');
|
2558 |
-
$desc = __('Space the thumbnail frames automatic.', 'wp-photo-album-plus');
|
2559 |
-
$help = __('If you check this box, the thumbnail images will be evenly distributed over the available width.', 'wp-photo-album-plus');
|
2560 |
-
$help .= '<br>'.__('In this case, the thumbnail spacing value (setting I-9) will be regarded as a minimum value.', 'wp-photo-album-plus');
|
2561 |
$slug = 'wppa_thumb_auto';
|
2562 |
$html = wppa_checkbox($slug);
|
2563 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
2564 |
|
2565 |
-
$name = __('Page size', 'wp-photo-album-plus');
|
2566 |
-
$desc = __('Max number of thumbnails per page.', 'wp-photo-album-plus');
|
2567 |
-
$help = __('Enter the maximum number of thumbnail images per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus');
|
2568 |
$slug = 'wppa_thumb_page_size';
|
2569 |
-
$html = wppa_input($slug, '40px', '', __('thumbnails', 'wp-photo-album-plus'));
|
2570 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
2571 |
|
2572 |
-
$name = __('Popup size', 'wp-photo-album-plus');
|
2573 |
-
$desc = __('The size of the thumbnail popup images.', 'wp-photo-album-plus');
|
2574 |
-
$help = __('Enter the size of the popup images. This size should be larger than the thumbnail size.', 'wp-photo-album-plus');
|
2575 |
-
$help .= '<br>'.__('This size should also be at least the cover image size.', 'wp-photo-album-plus');
|
2576 |
-
$help .= '<br>'.__('Changing the popup size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
2577 |
-
$help .= '<br>'.__('Although this setting has only visual effect if "Thumb popup" (<b>Thumbnails -> III -> Thumb popup</b>) is checked,', 'wp-photo-album-plus');
|
2578 |
-
$help .= ' '.__('the value must be right as it is the physical size of the thumbnail and coverphoto images.', 'wp-photo-album-plus');
|
2579 |
$slug = 'wppa_popupsize';
|
2580 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2581 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
2582 |
|
2583 |
-
$name = __('Use thumbs if fit', 'wp-photo-album-plus');
|
2584 |
-
$desc = __('Use the thumbnail image files if they are large enough.', 'wp-photo-album-plus');
|
2585 |
-
$help = __('This setting speeds up page loading for small photos.', 'wp-photo-album-plus');
|
2586 |
-
$help .= '<br>'.__('Do NOT use this when your thumbnails have a forced aspect ratio (when <b>Thumbnails -> I -> Thumbnail Aspect</b> is set to anything different from --- same as fullsize ---)', 'wp-photo-album-plus');
|
2587 |
$slug = 'wppa_use_thumbs_if_fit';
|
2588 |
$html = wppa_checkbox($slug);
|
2589 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
@@ -2605,36 +2605,36 @@ global $wppa_subtab_names;
|
|
2605 |
wppa_setting_tab_description($desc);
|
2606 |
wppa_setting_box_header_new($tab);
|
2607 |
|
2608 |
-
$name = __('Thumbnail name', 'wp-photo-album-plus');
|
2609 |
-
$desc = __('Display Thumbnail name.', 'wp-photo-album-plus');
|
2610 |
-
$help = __('Display photo name under thumbnail images.', 'wp-photo-album-plus');
|
2611 |
$slug = 'wppa_thumb_text_name';
|
2612 |
$html = wppa_checkbox($slug);
|
2613 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2614 |
|
2615 |
-
$name = __('Add (Owner)', 'wp-photo-album-plus');
|
2616 |
-
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
|
2617 |
$help = '';
|
2618 |
$slug = 'wppa_thumb_text_owner';
|
2619 |
$html = wppa_checkbox($slug);
|
2620 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2621 |
|
2622 |
-
$name = __('Thumbnail desc', 'wp-photo-album-plus');
|
2623 |
-
$desc = __('Display Thumbnail description.', 'wp-photo-album-plus');
|
2624 |
-
$help = __('Display description of the photo under thumbnail images.', 'wp-photo-album-plus');
|
2625 |
$slug = 'wppa_thumb_text_desc';
|
2626 |
$html = wppa_checkbox($slug);
|
2627 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2628 |
|
2629 |
-
$name = __('Thumbnail comcount', 'wp-photo-album-plus');
|
2630 |
-
$desc = __('Display Thumbnail Comment count.', 'wp-photo-album-plus');
|
2631 |
-
$help = __('Display the number of comments to the photo under the thumbnail image.', 'wp-photo-album-plus');
|
2632 |
$slug = 'wppa_thumb_text_comcount';
|
2633 |
$slug2 = 'wppa_thumb_text_comcount_note_role';
|
2634 |
$roles = $wp_roles->roles;
|
2635 |
$opts = array();
|
2636 |
$vals = array();
|
2637 |
-
$opts[] = '-- '.__('Select a role', 'wp-photo-album-plus').' --';
|
2638 |
$vals[] = '';
|
2639 |
foreach (array_keys($roles) as $key) {
|
2640 |
$role = $roles[$key];
|
@@ -2647,29 +2647,29 @@ global $wppa_subtab_names;
|
|
2647 |
wppa_select($slug2, $opts, $vals);
|
2648 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2649 |
|
2650 |
-
$name = __('Thumbnail viewcount', 'wp-photo-album-plus');
|
2651 |
-
$desc = __('Display the number of views.', 'wp-photo-album-plus');
|
2652 |
-
$help = __('Display the number of views under the thumbnail image.', 'wp-photo-album-plus');
|
2653 |
$slug = 'wppa_thumb_text_viewcount';
|
2654 |
$html = wppa_checkbox($slug);
|
2655 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2656 |
|
2657 |
-
$name = __('Thumbnail virt album', 'wp-photo-album-plus');
|
2658 |
-
$desc = __('Display the real album name on virtual album display.', 'wp-photo-album-plus');
|
2659 |
-
$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');
|
2660 |
$slug = 'wppa_thumb_text_virt_album';
|
2661 |
$html = wppa_checkbox($slug);
|
2662 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2663 |
|
2664 |
-
$name = __('Thumbnail video', 'wp-photo-album-plus');
|
2665 |
-
$desc = __('Show video controls on thumbnail displays.', 'wp-photo-album-plus');
|
2666 |
-
$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');
|
2667 |
$slug = 'wppa_thumb_video';
|
2668 |
$html = wppa_checkbox($slug);
|
2669 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
2670 |
|
2671 |
-
$name = __('Thumbnail audio', 'wp-photo-album-plus');
|
2672 |
-
$desc = __('Show audio controls on thumbnail displays.', 'wp-photo-album-plus');
|
2673 |
$help = '';
|
2674 |
$slug = 'wppa_thumb_audio';
|
2675 |
$html = wppa_checkbox($slug);
|
@@ -2677,86 +2677,86 @@ global $wppa_subtab_names;
|
|
2677 |
|
2678 |
if ( wppa_switch( 'use_thumb_popup' ) ) {
|
2679 |
|
2680 |
-
$name = __('Popup name', 'wp-photo-album-plus');
|
2681 |
-
$desc = __('Display Thumbnail name on popup.', 'wp-photo-album-plus');
|
2682 |
-
$help = __('Display photo name under thumbnail images on the popup.', 'wp-photo-album-plus');
|
2683 |
$slug = 'wppa_popup_text_name';
|
2684 |
$html = wppa_checkbox($slug);
|
2685 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
2686 |
|
2687 |
-
$name = __('Popup (owner)', 'wp-photo-album-plus');
|
2688 |
-
$desc = __('Display owner on popup.', 'wp-photo-album-plus');
|
2689 |
-
$help = __('Display photo owner under thumbnail images on the popup.', 'wp-photo-album-plus');
|
2690 |
$slug = 'wppa_popup_text_owner';
|
2691 |
$html = wppa_checkbox($slug);
|
2692 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
2693 |
|
2694 |
-
$name = __('Popup desc', 'wp-photo-album-plus');
|
2695 |
-
$desc = __('Display Thumbnail description on popup.', 'wp-photo-album-plus');
|
2696 |
-
$help = __('Display description of the photo under thumbnail images on the popup.', 'wp-photo-album-plus');
|
2697 |
$slug = 'wppa_popup_text_desc';
|
2698 |
$html = wppa_checkbox($slug);
|
2699 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
2700 |
|
2701 |
-
$name = __('Popup desc no links', 'wp-photo-album-plus');
|
2702 |
-
$desc = __('Strip html anchor tags from descriptions on popups', 'wp-photo-album-plus');
|
2703 |
-
$help = __('Use this option to prevent the display of links that cannot be activated.', 'wp-photo-album-plus');
|
2704 |
$slug = 'wppa_popup_text_desc_strip';
|
2705 |
$html = wppa_checkbox($slug);
|
2706 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
2707 |
|
2708 |
-
$name = __('Popup rating', 'wp-photo-album-plus');
|
2709 |
-
$desc = __('Display Thumbnail Rating on popup.', 'wp-photo-album-plus');
|
2710 |
-
$help = __('Display the rating of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus');
|
2711 |
$slug = 'wppa_popup_text_rating';
|
2712 |
$html = wppa_checkbox($slug);
|
2713 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help, wppa_switch('rating_on'));
|
2714 |
|
2715 |
-
$name = __('Popup comcount', 'wp-photo-album-plus');
|
2716 |
-
$desc = __('Display Thumbnail Comment count on popup.', 'wp-photo-album-plus');
|
2717 |
-
$help = __('Display the number of comments of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus');
|
2718 |
$slug = 'wppa_popup_text_ncomments';
|
2719 |
$html = wppa_checkbox($slug);
|
2720 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_switch('show_comments'));
|
2721 |
}
|
2722 |
|
2723 |
-
$name = __('Show album name on thumb area', 'wp-photo-album-plus');
|
2724 |
-
$desc = __('Select if and where to display the album name on the thumbnail display.', 'wp-photo-album-plus');
|
2725 |
$help = '';
|
2726 |
$slug = 'wppa_albname_on_thumbarea';
|
2727 |
-
$opts = array(__('None', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'));
|
2728 |
$vals = array('none', 'top', 'bottom');
|
2729 |
$html = wppa_select($slug, $opts, $vals);
|
2730 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
2731 |
|
2732 |
-
$name = __('Show album desc on thumb area', 'wp-photo-album-plus');
|
2733 |
-
$desc = __('Select if and where to display the album description on the thumbnail display.', 'wp-photo-album-plus');
|
2734 |
$help = '';
|
2735 |
$slug = 'wppa_albdesc_on_thumbarea';
|
2736 |
-
$opts = array(__('None', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'));
|
2737 |
$vals = array('none', 'top', 'bottom');
|
2738 |
$html = wppa_select($slug, $opts, $vals);
|
2739 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
2740 |
|
2741 |
-
$name = __('Show Edit/Delete links', 'wp-photo-album-plus');
|
2742 |
-
$desc = __('Show these links under default thumbnails for owner and admin.', 'wp-photo-album-plus');
|
2743 |
$help = '';
|
2744 |
$slug = 'wppa_edit_thumb';
|
2745 |
$html = wppa_checkbox($slug);
|
2746 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
2747 |
|
2748 |
-
$name = __('Show empty thumbnail area', 'wp-photo-album-plus');
|
2749 |
-
$desc = __('Display thumbnail areas with upload link only for empty albums.', 'wp-photo-album-plus');
|
2750 |
$help = '';
|
2751 |
$slug = 'wppa_show_empty_thumblist';
|
2752 |
$html = wppa_checkbox($slug);
|
2753 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
2754 |
|
2755 |
-
$name = __('Upload/create link on thumbnail area', 'wp-photo-album-plus');
|
2756 |
-
$desc = __('Select the location of the upload and crete links.', 'wp-photo-album-plus');
|
2757 |
$help = '';
|
2758 |
$slug = 'wppa_upload_link_thumbs';
|
2759 |
-
$opts = array(__('None', 'wp-photo-album-plus'), __('At the top', 'wp-photo-album-plus'), __('At the bottom', 'wp-photo-album-plus'));
|
2760 |
$vals = array('none', 'top', 'bottom');
|
2761 |
$html = wppa_select($slug, $opts, $vals);
|
2762 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
@@ -2769,17 +2769,17 @@ global $wppa_subtab_names;
|
|
2769 |
wppa_setting_tab_description($desc);
|
2770 |
wppa_setting_box_header_new($tab);
|
2771 |
|
2772 |
-
$name = __('Thumbnail type', 'wp-photo-album-plus');
|
2773 |
-
$desc = __('The way the thumbnail images are displayed.', 'wp-photo-album-plus');
|
2774 |
-
$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');
|
2775 |
$slug = 'wppa_thumbtype';
|
2776 |
-
$opts = array( __('--- default ---', 'wp-photo-album-plus'),
|
2777 |
-
__('like album covers', 'wp-photo-album-plus'),
|
2778 |
-
__('like album covers mcr', 'wp-photo-album-plus'),
|
2779 |
-
__('masonry style columns', 'wp-photo-album-plus'),
|
2780 |
-
__('masonry style rows', 'wp-photo-album-plus'),
|
2781 |
-
__('masonry style plus', 'wp-photo-album-plus'),
|
2782 |
-
__('masonry style mixed', 'wp-photo-album-plus'),
|
2783 |
);
|
2784 |
$vals = array( 'default',
|
2785 |
'ascovers',
|
@@ -2792,67 +2792,67 @@ global $wppa_subtab_names;
|
|
2792 |
$html = wppa_select($slug, $opts, $vals);
|
2793 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2794 |
|
2795 |
-
$name = __('Placement', 'wp-photo-album-plus');
|
2796 |
-
$desc = __('Thumbnail image left or right.', 'wp-photo-album-plus');
|
2797 |
-
$help = __('Indicate the placement position of the thumbnailphoto you wish.', 'wp-photo-album-plus');
|
2798 |
$slug = 'wppa_thumbphoto_left';
|
2799 |
-
$opts = array(__('Left', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'));
|
2800 |
$vals = array('yes', 'no');
|
2801 |
$html = wppa_select($slug, $opts, $vals);
|
2802 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2803 |
|
2804 |
-
$name = __('Vertical alignment', 'wp-photo-album-plus');
|
2805 |
-
$desc = __('Vertical alignment of thumbnails.', 'wp-photo-album-plus');
|
2806 |
-
$help = __('Specify the vertical alignment of thumbnail images. Use this setting when albums contain both portrait and landscape photos.', 'wp-photo-album-plus');
|
2807 |
-
$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');
|
2808 |
$slug = 'wppa_valign';
|
2809 |
-
$opts = array( __('--- default ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'));
|
2810 |
$vals = array('default', 'top', 'center', 'bottom');
|
2811 |
$html = wppa_select($slug, $opts, $vals);
|
2812 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2813 |
|
2814 |
-
$name = __('Thumb mouseover', 'wp-photo-album-plus');
|
2815 |
-
$desc = __('Apply thumbnail mouseover effect.', 'wp-photo-album-plus');
|
2816 |
-
$help = __('Check this box to use mouseover effect on thumbnail images.', 'wp-photo-album-plus');
|
2817 |
$slug = 'wppa_use_thumb_opacity';
|
2818 |
$html = wppa_checkbox($slug);
|
2819 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2820 |
|
2821 |
-
$name = __('Thumb opacity', 'wp-photo-album-plus');
|
2822 |
-
$desc = __('Initial opacity value.', 'wp-photo-album-plus');
|
2823 |
-
$help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus');
|
2824 |
$slug = 'wppa_thumb_opacity';
|
2825 |
$html = wppa_input($slug, '50px', '', '%');
|
2826 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2827 |
|
2828 |
-
$name = __('Thumb popup', 'wp-photo-album-plus');
|
2829 |
-
$desc = __('Use popup effect on thumbnail images.', 'wp-photo-album-plus');
|
2830 |
-
$help = __('Thumbnails pop-up to a larger image when hovered.', 'wp-photo-album-plus');
|
2831 |
$slug = 'wppa_use_thumb_popup';
|
2832 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
2833 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2834 |
|
2835 |
-
$name = __('Align subtext', 'wp-photo-album-plus');
|
2836 |
-
$desc = __('Set thumbnail subtext on equal height.', 'wp-photo-album-plus');
|
2837 |
$help = '';
|
2838 |
$slug = 'wppa_align_thumbtext';
|
2839 |
$html = wppa_checkbox($slug);
|
2840 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
2841 |
|
2842 |
-
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
2843 |
-
$desc = __('Adds <br> or <p> and <br> tags in thumbnail descriptions.', 'wp-photo-album-plus');
|
2844 |
$help = '';
|
2845 |
$slug = 'wppa_wpautop_on_thumb_desc';
|
2846 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
2847 |
-
__('Linebreaks only', 'wp-photo-album-plus'),
|
2848 |
-
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
2849 |
);
|
2850 |
$vals = array('nil', 'nl2br', 'wpautop');
|
2851 |
$html = wppa_select($slug, $opts, $vals);
|
2852 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
2853 |
|
2854 |
-
$name = __('Popup easing formula', 'wp-photo-album-plus');
|
2855 |
-
$desc = __('The animation method', 'wp-photo-album-plus');
|
2856 |
$help = '';
|
2857 |
$slug = 'wppa_easing_popup';
|
2858 |
$opts = array( 'swing', 'linear', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInQuad',
|
@@ -2878,293 +2878,293 @@ global $wppa_subtab_names;
|
|
2878 |
wppa_setting_tab_description($desc);
|
2879 |
wppa_setting_box_header_new($tab);
|
2880 |
|
2881 |
-
$name = __('Maximum Width', 'wp-photo-album-plus');
|
2882 |
-
$desc = __('The maximum width photos will be displayed in slideshows.', 'wp-photo-album-plus');
|
2883 |
-
$help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus');
|
2884 |
-
$help .= '<br>'.__('This is usually the same as the Column Width, but it may differ.', 'wp-photo-album-plus');
|
2885 |
$help .= '<br>'.wppa_see_also( 'layout', '1', '5' );
|
2886 |
$slug = 'wppa_fullsize';
|
2887 |
-
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
|
2888 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2889 |
|
2890 |
-
$name = __('Maximum Height', 'wp-photo-album-plus');
|
2891 |
-
$desc = __('The maximum height photos will be displayed in slideshows.', 'wp-photo-album-plus');
|
2892 |
-
$help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus');
|
2893 |
-
$help .= '<br>'.__('This setting defines the height of the space reserved for photos in slideshows.', 'wp-photo-album-plus');
|
2894 |
-
$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');
|
2895 |
$slug = 'wppa_maxheight';
|
2896 |
-
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus'));
|
2897 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2898 |
|
2899 |
-
$name = __('Stretch to fit', 'wp-photo-album-plus');
|
2900 |
-
$desc = __('Stretch photos that are too small.', 'wp-photo-album-plus');
|
2901 |
-
$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');
|
2902 |
$slug = 'wppa_enlarge';
|
2903 |
$html = wppa_checkbox($slug);
|
2904 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2905 |
|
2906 |
-
$name = __('Slideshow borderwidth', 'wp-photo-album-plus');
|
2907 |
-
$desc = __('The width of the border around slideshow images.', 'wp-photo-album-plus');
|
2908 |
-
$help = __('The border is made by the image background being larger than the image itsself (padding).', 'wp-photo-album-plus');
|
2909 |
-
$help .= '<br>'.__('Additionally there may be a one pixel outline of a different color.', 'wp-photo-album-plus');
|
2910 |
-
$help .= '<br>'.__('The number you enter here is exclusive the one pixel outline.', 'wp-photo-album-plus');
|
2911 |
-
$help .= '<br>'.__('If you leave this entry empty, there will be no outline either.', 'wp-photo-album-plus');
|
2912 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '35' );
|
2913 |
$slug = 'wppa_fullimage_border_width';
|
2914 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2915 |
$clas = '';
|
2916 |
$tags = 'size,slide,layout';
|
2917 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2918 |
|
2919 |
-
$name = __('Share button size', 'wp-photo-album-plus');
|
2920 |
-
$desc = __('The size of the social media icons in the Share box', 'wp-photo-album-plus');
|
2921 |
$help = '';
|
2922 |
$slug = 'wppa_share_size';
|
2923 |
$opts = array('16 x 16', '20 x 20', '32 x 32');
|
2924 |
$vals = array('16', '20', '32');
|
2925 |
-
$html = wppa_select($slug, $opts, $vals) . __('pixels', 'wp-photo-album-plus');
|
2926 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2927 |
|
2928 |
-
$name = __('Mini Threshold', 'wp-photo-album-plus');
|
2929 |
-
$desc = __('Show mini text at slideshow smaller than.', 'wp-photo-album-plus');
|
2930 |
-
$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');
|
2931 |
-
$help .= '<br>'.__('Special use in responsive themes.', 'wp-photo-album-plus');
|
2932 |
$slug = 'wppa_mini_treshold';
|
2933 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2934 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2935 |
|
2936 |
-
$name = __('Slideshow pagesize', 'wp-photo-album-plus');
|
2937 |
-
$desc = __('The maximum number of slides in a certain view. 0 means no pagination', 'wp-photo-album-plus');
|
2938 |
$help = '';
|
2939 |
$slug = 'wppa_slideshow_pagesize';
|
2940 |
-
$html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
|
2941 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
2942 |
|
2943 |
-
$name = __('Filmstrip Thumbnail Size', 'wp-photo-album-plus');
|
2944 |
-
$desc = __('The size of the filmstrip images.', 'wp-photo-album-plus');
|
2945 |
-
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus');
|
2946 |
-
$help .= '<br>'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus');
|
2947 |
$slug = 'wppa_film_thumbsize';
|
2948 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
2949 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
2950 |
|
2951 |
-
$name = __('Slideonly max', 'wp-photo-album-plus');
|
2952 |
-
$desc = __('The max number of slides in a slideonly or filmonly display', 'wp-photo-album-plus');
|
2953 |
$help = '';
|
2954 |
$slug = 'wppa_slideonly_max';
|
2955 |
-
$html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus'));
|
2956 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
2957 |
|
2958 |
-
$name = __('Show Share Box', 'wp-photo-album-plus');
|
2959 |
-
$desc = __('Display the share social media buttons box.', 'wp-photo-album-plus');
|
2960 |
$help = '';
|
2961 |
$slug = 'wppa_share_on';
|
2962 |
$onch = '';
|
2963 |
$html = wppa_checkbox($slug);
|
2964 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
2965 |
|
2966 |
-
$name = __('Start/stop', 'wp-photo-album-plus');
|
2967 |
-
$desc = __('Show the Start/Stop slideshow bar.', 'wp-photo-album-plus');
|
2968 |
-
$help = __('If checked: display the start/stop slideshow navigation bar above the full-size images and slideshow', 'wp-photo-album-plus');
|
2969 |
$slug = 'wppa_show_startstop_navigation';
|
2970 |
$html = wppa_checkbox($slug);
|
2971 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
2972 |
|
2973 |
$name = __('Start/stop on Filmonly');
|
2974 |
-
$desc = __('Show the Start/Stop slideshow bar on filmonly displays.', 'wp-photo-album-plus');
|
2975 |
$help = '';
|
2976 |
$slug = 'wppa_show_startstop_filmonly';
|
2977 |
$html = wppa_checkbox($slug);
|
2978 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
2979 |
|
2980 |
-
$name = __('Renew on Filmonly', 'wp-photo-album-plus');
|
2981 |
-
$desc = __('Show renew link on filmonly displays.', 'wp-photo-album-plus');
|
2982 |
$help = '';
|
2983 |
$slug = 'wppa_show_renew_filmonly';
|
2984 |
$html = wppa_checkbox($slug);
|
2985 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
2986 |
|
2987 |
-
$name = __('Browse bar', 'wp-photo-album-plus');
|
2988 |
-
$desc = __('Show Browse photos bar.', 'wp-photo-album-plus');
|
2989 |
-
$help = __('If checked: display the preveous/next navigation bar under the full-size images and slideshow', 'wp-photo-album-plus');
|
2990 |
$slug = 'wppa_show_browse_navigation';
|
2991 |
$html = wppa_checkbox($slug);
|
2992 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
2993 |
|
2994 |
-
$name = __('Filmstrip', 'wp-photo-album-plus');
|
2995 |
-
$desc = __('Show Filmstrip navigation bar.', 'wp-photo-album-plus');
|
2996 |
-
$help = __('If checked: display the filmstrip navigation bar under the full_size images and slideshow', 'wp-photo-album-plus');
|
2997 |
$slug = 'wppa_filmstrip';
|
2998 |
$html = wppa_checkbox($slug);
|
2999 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
3000 |
|
3001 |
-
$name = __('Film seam', 'wp-photo-album-plus');
|
3002 |
-
$desc = __('Show seam between end and start of film.', 'wp-photo-album-plus');
|
3003 |
-
$help = __('If checked: display the wrap-around point in the filmstrip', 'wp-photo-album-plus');
|
3004 |
$slug = 'wppa_film_show_glue';
|
3005 |
$html = wppa_checkbox($slug);
|
3006 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
3007 |
|
3008 |
-
$name = __('Photo name', 'wp-photo-album-plus');
|
3009 |
-
$desc = __('Display photo name.', 'wp-photo-album-plus');
|
3010 |
-
$help = __('If checked: display the name of the photo under the slideshow image.', 'wp-photo-album-plus');
|
3011 |
$slug = 'wppa_show_full_name';
|
3012 |
$html = wppa_checkbox($slug);
|
3013 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
3014 |
|
3015 |
-
$name = __('Add (Owner)', 'wp-photo-album-plus');
|
3016 |
-
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus');
|
3017 |
$help = '';
|
3018 |
$slug = 'wppa_show_full_owner';
|
3019 |
$html = wppa_checkbox($slug);
|
3020 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
3021 |
|
3022 |
-
$name = __('Owner on new line', 'wp-photo-album-plus');
|
3023 |
-
$desc = __('Place the (owner) text on a new line.', 'wp-photo-album-plus');
|
3024 |
$help = '';
|
3025 |
$slug = 'wppa_owner_on_new_line';
|
3026 |
$html = wppa_checkbox($slug);
|
3027 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
3028 |
|
3029 |
-
$name = __('Photo desc', 'wp-photo-album-plus');
|
3030 |
-
$desc = __('Display Photo description.', 'wp-photo-album-plus');
|
3031 |
-
$help = __('If checked: display the description of the photo under the slideshow image.', 'wp-photo-album-plus');
|
3032 |
$slug = 'wppa_show_full_desc';
|
3033 |
$html = wppa_checkbox($slug);
|
3034 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
3035 |
|
3036 |
-
$name = __('Hide when empty', 'wp-photo-album-plus');
|
3037 |
-
$desc = __('Hide the descriptionbox when empty.', 'wp-photo-album-plus');
|
3038 |
$help = '';
|
3039 |
$slug = 'wppa_hide_when_empty';
|
3040 |
$html = wppa_checkbox($slug);
|
3041 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
3042 |
|
3043 |
-
$name = __('Big Browse Buttons', 'wp-photo-album-plus');
|
3044 |
-
$desc = __('Enable invisible browsing buttons.', 'wp-photo-album-plus');
|
3045 |
-
$help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus');
|
3046 |
-
$help .= '<br>'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
|
3047 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '2' );
|
3048 |
$slug = 'wppa_show_bbb';
|
3049 |
$html = wppa_checkbox($slug);
|
3050 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
3051 |
|
3052 |
-
$name = __('Ugly Browse Buttons', 'wp-photo-album-plus');
|
3053 |
-
$desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus');
|
3054 |
-
$help = __('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus');
|
3055 |
$slug = 'wppa_show_ubb';
|
3056 |
$html = wppa_checkbox($slug);
|
3057 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
3058 |
|
3059 |
-
$name = __('Start/stop icons', 'wp-photo-album-plus');
|
3060 |
-
$desc = __('Show start and stop icons at the center of the slide', 'wp-photo-album-plus');
|
3061 |
$help = '';
|
3062 |
$slug = 'wppa_show_start_stop_icons';
|
3063 |
$html = wppa_checkbox($slug);
|
3064 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
3065 |
|
3066 |
-
$name = __('Show custom box', 'wp-photo-album-plus');
|
3067 |
-
$desc = __('Display the custom box in the slideshow', 'wp-photo-album-plus');
|
3068 |
-
$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');
|
3069 |
$help .= '<br>'.wppa_see_also( 'slide', '2' );
|
3070 |
$slug = 'wppa_custom_on';
|
3071 |
$html = wppa_checkbox($slug);
|
3072 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
3073 |
|
3074 |
-
$name = __('Custom content', 'wp-photo-album-plus');
|
3075 |
-
$desc = __('The content (html) of the custom box.', 'wp-photo-album-plus');
|
3076 |
-
$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');
|
3077 |
$help .= '<br>'.wppa_see_also( 'slide', '2' );
|
3078 |
$slug = 'wppa_custom_content';
|
3079 |
$html = wppa_textarea($slug, $name);
|
3080 |
wppa_setting_new(false, '26', $name, $desc, $html, $help);
|
3081 |
|
3082 |
-
$name = __('Slideshow/Number bar', 'wp-photo-album-plus');
|
3083 |
-
$desc = __('Display the Slideshow / Number bar.', 'wp-photo-album-plus');
|
3084 |
-
$help = __('If checked: display the number boxes on slideshow', 'wp-photo-album-plus');
|
3085 |
$slug = 'wppa_show_slideshownumbar';
|
3086 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
3087 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
3088 |
|
3089 |
-
$name = __('Numbar Max', 'wp-photo-album-plus');
|
3090 |
-
$desc = __('Maximum numbers to display.', 'wp-photo-album-plus');
|
3091 |
-
$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');
|
3092 |
$slug = 'wppa_numbar_max';
|
3093 |
-
$html = wppa_input($slug, '40px', '', __('numbers', 'wp-photo-album-plus'));
|
3094 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help, wppa_switch( 'show_slideshownumbar' ) );
|
3095 |
|
3096 |
-
$name = __('Numbar', 'wp-photo-album-plus');
|
3097 |
-
$desc = __('Number bar box background.', 'wp-photo-album-plus');
|
3098 |
$help = '';
|
3099 |
$slug1 = 'wppa_bgcolor_numbar';
|
3100 |
$slug2 = 'wppa_bcolor_numbar';
|
3101 |
$slug = array($slug1, $slug2);
|
3102 |
-
$html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ': </span>' .
|
3103 |
wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
|
3104 |
-
'<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ': </span>' .
|
3105 |
wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
3106 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
|
3107 |
|
3108 |
-
$name = __('Numbar active', 'wp-photo-album-plus');
|
3109 |
-
$desc = __('Number bar active box background.', 'wp-photo-album-plus');
|
3110 |
$help = '';
|
3111 |
$slug1 = 'wppa_bgcolor_numbar_active';
|
3112 |
$slug2 = 'wppa_bcolor_numbar_active';
|
3113 |
$slug = array($slug1, $slug2);
|
3114 |
-
$html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ': </span>' .
|
3115 |
wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
|
3116 |
-
'<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ': </span>' .
|
3117 |
wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
3118 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
|
3119 |
|
3120 |
-
$name = __('IPTC system', 'wp-photo-album-plus');
|
3121 |
-
$desc = __('Enable the iptc system.', 'wp-photo-album-plus');
|
3122 |
-
$help = __('Display the iptc box under the fullsize images.', 'wp-photo-album-plus');
|
3123 |
$slug = 'wppa_show_iptc';
|
3124 |
$html = wppa_checkbox($slug);
|
3125 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help, wppa_switch('save_iptc'));
|
3126 |
|
3127 |
-
$name = __('IPTC open', 'wp-photo-album-plus');
|
3128 |
-
$desc = __('Display the iptc box initially opened.', 'wp-photo-album-plus');
|
3129 |
-
$help = __('Display the iptc box under the fullsize images initially open.', 'wp-photo-album-plus');
|
3130 |
$slug = 'wppa_show_iptc_open';
|
3131 |
$html = wppa_checkbox($slug);
|
3132 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help, wppa_switch('save_iptc'));
|
3133 |
|
3134 |
-
$name = __('EXIF system', 'wp-photo-album-plus');
|
3135 |
-
$desc = __('Enable the exif system.', 'wp-photo-album-plus');
|
3136 |
-
$help = __('Display the exif box under the fullsize images.', 'wp-photo-album-plus');
|
3137 |
$slug = 'wppa_show_exif';
|
3138 |
$html = wppa_checkbox($slug);
|
3139 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help, wppa_switch('save_exif'));
|
3140 |
|
3141 |
-
$name = __('EXIF open', 'wp-photo-album-plus');
|
3142 |
-
$desc = __('Display the exif box initially opened.', 'wp-photo-album-plus');
|
3143 |
-
$help = __('Display the exif box under the fullsize images initially open.', 'wp-photo-album-plus');
|
3144 |
$slug = 'wppa_show_exif_open';
|
3145 |
$html = wppa_checkbox($slug);
|
3146 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help, wppa_switch('save_exif'));
|
3147 |
|
3148 |
-
$name = __('Slide Image border', 'wp-photo-album-plus');
|
3149 |
-
$desc = __('Fullsize Slideshow Photos background and border.', 'wp-photo-album-plus');
|
3150 |
$help = '';
|
3151 |
-
$help .= '<br>'.__('The colors may be equal or "transparent"', 'wp-photo-album-plus');
|
3152 |
$slug1 = 'wppa_bgcolor_fullimg';
|
3153 |
$slug2 = 'wppa_bcolor_fullimg';
|
3154 |
$slug = array($slug1, $slug2);
|
3155 |
-
$html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus') . ': </span>' .
|
3156 |
wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
|
3157 |
-
'<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus') . ': </span>' .
|
3158 |
wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
3159 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
3160 |
|
3161 |
-
$name = __('Navigation type', 'wp-photo-album-plus');
|
3162 |
-
$desc = __('Select the type of navigation you want.', 'wp-photo-album-plus');
|
3163 |
$help = '';
|
3164 |
$slug = 'wppa_navigation_type';
|
3165 |
-
$opts = array( __('Icons', 'wp-photo-album-plus'),
|
3166 |
-
__('Icons on mobile, text on pc', 'wp-photo-album-plus'),
|
3167 |
-
__('Text', 'wp-photo-album-plus'),
|
3168 |
);
|
3169 |
$vals = array( 'icons',
|
3170 |
'iconsmobile',
|
@@ -3185,34 +3185,34 @@ global $wppa_subtab_names;
|
|
3185 |
$indexopt = wppa_opt( 'slide_order_split' );
|
3186 |
$indexes = explode(',', $indexopt);
|
3187 |
$names = array(
|
3188 |
-
__('StartStop', 'wp-photo-album-plus'),
|
3189 |
-
__('SlideFrame', 'wp-photo-album-plus'),
|
3190 |
-
__('Name', 'wp-photo-album-plus'),
|
3191 |
-
__('Desc', 'wp-photo-album-plus'),
|
3192 |
-
__('Custom', 'wp-photo-album-plus'),
|
3193 |
-
__('Rating', 'wp-photo-album-plus'),
|
3194 |
-
__('FilmStrip', 'wp-photo-album-plus'),
|
3195 |
-
__('Browsebar', 'wp-photo-album-plus'),
|
3196 |
-
__('Comments', 'wp-photo-album-plus'),
|
3197 |
-
__('IPTC data', 'wp-photo-album-plus'),
|
3198 |
-
__('EXIF data', 'wp-photo-album-plus'),
|
3199 |
-
__('Share box', 'wp-photo-album-plus')
|
3200 |
);
|
3201 |
-
$enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus');
|
3202 |
-
$disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus');
|
3203 |
$descs = array(
|
3204 |
-
__('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus') . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
|
3205 |
-
__('The Slide Frame', 'wp-photo-album-plus') . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus').'</span>',
|
3206 |
-
__('Photo Name Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_full_name') ? $enabled : $disabled ) .' )</span>',
|
3207 |
-
__('Photo Description Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_full_desc') ? $enabled : $disabled ) .' )</span>',
|
3208 |
-
__('Custom Box', 'wp-photo-album-plus') . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
|
3209 |
-
__('Rating Bar', 'wp-photo-album-plus') . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
|
3210 |
-
__('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus') . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
|
3211 |
-
__('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus') . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
|
3212 |
-
__('Comments Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
|
3213 |
-
__('IPTC box', 'wp-photo-album-plus') . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
|
3214 |
-
__('EXIF box', 'wp-photo-album-plus') . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
|
3215 |
-
__('Social media share box', 'wp-photo-album-plus') . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
|
3216 |
);
|
3217 |
$i = '0';
|
3218 |
while ( $i < '12' ) {
|
@@ -3229,32 +3229,32 @@ global $wppa_subtab_names;
|
|
3229 |
$indexopt = wppa_opt( 'slide_order' );
|
3230 |
$indexes = explode(',', $indexopt);
|
3231 |
$names = array(
|
3232 |
-
__('StartStop', 'wp-photo-album-plus'),
|
3233 |
-
__('SlideFrame', 'wp-photo-album-plus'),
|
3234 |
-
__('NameDesc', 'wp-photo-album-plus'),
|
3235 |
-
__('Custom', 'wp-photo-album-plus'),
|
3236 |
-
__('Rating', 'wp-photo-album-plus'),
|
3237 |
-
__('FilmStrip', 'wp-photo-album-plus'),
|
3238 |
-
__('Browsebar', 'wp-photo-album-plus'),
|
3239 |
-
__('Comments', 'wp-photo-album-plus'),
|
3240 |
-
__('IPTC data', 'wp-photo-album-plus'),
|
3241 |
-
__('EXIF data', 'wp-photo-album-plus'),
|
3242 |
-
__('Share box', 'wp-photo-album-plus')
|
3243 |
);
|
3244 |
-
$enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus');
|
3245 |
-
$disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus');
|
3246 |
$descs = array(
|
3247 |
-
__('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus') . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
|
3248 |
-
__('The Slide Frame', 'wp-photo-album-plus') . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus').'</span>',
|
3249 |
-
__('Photo Name & Description Box', 'wp-photo-album-plus') . ( ( wppa_switch( 'show_full_name') || wppa_switch( 'show_full_desc') ) ? $enabled : $disabled ) .' )</span>',
|
3250 |
-
__('Custom Box', 'wp-photo-album-plus') . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
|
3251 |
-
__('Rating Bar', 'wp-photo-album-plus') . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
|
3252 |
-
__('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus') . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
|
3253 |
-
__('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus') . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
|
3254 |
-
__('Comments Box', 'wp-photo-album-plus') . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
|
3255 |
-
__('IPTC box', 'wp-photo-album-plus') . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
|
3256 |
-
__('EXIF box', 'wp-photo-album-plus') . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
|
3257 |
-
__('Social media share box', 'wp-photo-album-plus') . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
|
3258 |
);
|
3259 |
$i = '0';
|
3260 |
while ( $i < '11' ) {
|
@@ -3268,15 +3268,15 @@ global $wppa_subtab_names;
|
|
3268 |
}
|
3269 |
}
|
3270 |
|
3271 |
-
$name = __('Swap Namedesc', 'wp-photo-album-plus');
|
3272 |
-
$desc = __('Swap the order sequence of name and description', 'wp-photo-album-plus');
|
3273 |
$help = '';
|
3274 |
$slug = 'wppa_swap_namedesc';
|
3275 |
$html = wppa_checkbox($slug,'wppaRefreshAfter()');
|
3276 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help, ! wppa_switch( 'split_namedesc' ) );
|
3277 |
|
3278 |
-
$name = __('Split Name and Desc', 'wp-photo-album-plus');
|
3279 |
-
$desc = __('Put Name and Description in separate boxes', 'wp-photo-album-plus');
|
3280 |
$help = '';
|
3281 |
$slug = 'wppa_split_namedesc';
|
3282 |
$html = wppa_checkbox($slug,'wppaRefreshAfter()');
|
@@ -3290,67 +3290,67 @@ global $wppa_subtab_names;
|
|
3290 |
wppa_setting_tab_description($desc);
|
3291 |
wppa_setting_box_header_new($tab);
|
3292 |
|
3293 |
-
$name = __('V align', 'wp-photo-album-plus');
|
3294 |
-
$desc = __('Vertical alignment of slideshow images.', 'wp-photo-album-plus');
|
3295 |
-
$help = __('Specify the vertical alignment of slideshow images.', 'wp-photo-album-plus');
|
3296 |
$slug = 'wppa_fullvalign';
|
3297 |
-
$opts = array(__('--- none ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'), __('fit', 'wp-photo-album-plus'));
|
3298 |
$vals = array('default', 'top', 'center', 'bottom', 'fit');
|
3299 |
$html = wppa_select($slug, $opts, $vals);
|
3300 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3301 |
|
3302 |
-
$name = __('V align', 'wp-photo-album-plus');
|
3303 |
-
$desc = __('Vertical alignment of slideonly slidshow images.', 'wp-photo-album-plus');
|
3304 |
-
$help = __('Specify the vertical alignment of slideonly slideshow images.', 'wp-photo-album-plus');
|
3305 |
$slug = 'wppa_fullvalign_slideonly';
|
3306 |
-
$opts = array(__('--- none ---', 'wp-photo-album-plus'), __('top', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('bottom', 'wp-photo-album-plus'), __('fit', 'wp-photo-album-plus'));
|
3307 |
$vals = array('default', 'top', 'center', 'bottom', 'fit');
|
3308 |
$html = wppa_select($slug, $opts, $vals);
|
3309 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3310 |
|
3311 |
-
$name = __('H align', 'wp-photo-album-plus');
|
3312 |
-
$desc = __('Horizontal alignment of slideshow images.', 'wp-photo-album-plus');
|
3313 |
-
$help = __('Specify the horizontal alignment of slideshow images. If you specify --- none --- , no horizontal alignment will take place.', 'wp-photo-album-plus');
|
3314 |
-
$help .= '<br>'.(__('This setting is only usefull when the Column Width differs from the Maximum Width.', 'wp-photo-album-plus'));
|
3315 |
-
$help .= '<br>'.(__('(Settings I-A1 and I-B1)', 'wp-photo-album-plus'));
|
3316 |
$slug = 'wppa_fullhalign';
|
3317 |
-
$opts = array(__('--- none ---', 'wp-photo-album-plus'), __('left', 'wp-photo-album-plus'), __('center', 'wp-photo-album-plus'), __('right', 'wp-photo-album-plus'));
|
3318 |
$vals = array('default', 'left', 'center', 'right');
|
3319 |
$html = wppa_select($slug, $opts, $vals);
|
3320 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3321 |
|
3322 |
-
$name = __('Full desc align', 'wp-photo-album-plus');
|
3323 |
-
$desc = __('The alignment of the descriptions under fullsize images and slideshows.', 'wp-photo-album-plus');
|
3324 |
$help = '';
|
3325 |
$slug = 'wppa_fulldesc_align';
|
3326 |
-
$opts = array(__('Left', 'wp-photo-album-plus'), __('Center', 'wp-photo-album-plus'), __('Right', 'wp-photo-album-plus'));
|
3327 |
$vals = array('left', 'center', 'right');
|
3328 |
$html = wppa_select($slug, $opts, $vals);
|
3329 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3330 |
|
3331 |
-
$name = __('Remove redundant space', 'wp-photo-album-plus');
|
3332 |
-
$desc = __('Removes unwanted <p> and <br> tags in fullsize descriptions.', 'wp-photo-album-plus');
|
3333 |
-
$help = __('This setting has only effect when Foreign Shortcodes is checked.', 'wp-photo-album-plus');
|
3334 |
$help .= '<br>'.wppa_see_also( 'miscadv', '4', '1' );
|
3335 |
$slug = 'wppa_clean_pbr';
|
3336 |
$html = wppa_checkbox($slug);
|
3337 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3338 |
|
3339 |
-
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus');
|
3340 |
-
$desc = __('Adds <br> or <p> and <br> tags in fullsize descriptions.', 'wp-photo-album-plus');
|
3341 |
$help = '';
|
3342 |
$slug = 'wppa_wpautop_on_desc';
|
3343 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
3344 |
-
__('Linebreaks only', 'wp-photo-album-plus'),
|
3345 |
-
__('Linebreaks and paragraphs', 'wp-photo-album-plus'),
|
3346 |
);
|
3347 |
$vals = array('nil', 'nl2br', 'wpautop');
|
3348 |
$html = wppa_select($slug, $opts, $vals);
|
3349 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3350 |
|
3351 |
-
$name = __('Auto open comments', 'wp-photo-album-plus');
|
3352 |
-
$desc = __('Automatic opens comments box when slideshow does not run.', 'wp-photo-album-plus');
|
3353 |
-
$help = __('Works also on type="xphoto"', 'wp-photo-album-plus');
|
3354 |
$slug = 'wppa_auto_open_comments';
|
3355 |
$html = wppa_checkbox($slug);
|
3356 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('show_comments'));
|
@@ -3363,14 +3363,14 @@ global $wppa_subtab_names;
|
|
3363 |
wppa_setting_tab_description($desc);
|
3364 |
wppa_setting_box_header_new($tab);
|
3365 |
|
3366 |
-
$name = __('Start', 'wp-photo-album-plus');
|
3367 |
-
$desc = __('Start slideshow running.', 'wp-photo-album-plus');
|
3368 |
-
$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');
|
3369 |
-
$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');
|
3370 |
$slug = 'wppa_start_slide';
|
3371 |
-
$opts = array( __('running', 'wp-photo-album-plus'),
|
3372 |
-
__('still at first photo', 'wp-photo-album-plus'),
|
3373 |
-
__('still at first norated', 'wp-photo-album-plus')
|
3374 |
);
|
3375 |
$vals = array( 'run',
|
3376 |
'still',
|
@@ -3379,37 +3379,37 @@ global $wppa_subtab_names;
|
|
3379 |
$html = wppa_select($slug, $opts, $vals);
|
3380 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3381 |
|
3382 |
-
$name = __('Start slideonly', 'wp-photo-album-plus');
|
3383 |
-
$desc = __('Start slideonly slideshow running.', 'wp-photo-album-plus');
|
3384 |
$help = '';
|
3385 |
$slug = 'wppa_start_slideonly';
|
3386 |
$html = wppa_checkbox($slug);
|
3387 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3388 |
|
3389 |
-
$name = __('Video autostart', 'wp-photo-album-plus');
|
3390 |
-
$desc = __('Autoplay videos in slideshows.', 'wp-photo-album-plus');
|
3391 |
$help = '';
|
3392 |
$slug = 'wppa_start_slide_video';
|
3393 |
$html = wppa_checkbox($slug);
|
3394 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
3395 |
|
3396 |
-
$name = __('Audio autostart', 'wp-photo-album-plus');
|
3397 |
-
$desc = __('Autoplay audios in slideshows.', 'wp-photo-album-plus');
|
3398 |
$help = '';
|
3399 |
$slug = 'wppa_start_slide_audio';
|
3400 |
$html = wppa_checkbox($slug);
|
3401 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_switch('enable_audio'));
|
3402 |
|
3403 |
-
$name = __('Animation type', 'wp-photo-album-plus');
|
3404 |
-
$desc = __('The way successive slides appear.', 'wp-photo-album-plus');
|
3405 |
-
$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');
|
3406 |
$slug = 'wppa_animation_type';
|
3407 |
-
$opts = array( __('Fade out and in simultaneous', 'wp-photo-album-plus'),
|
3408 |
-
__('Fade in after fade out', 'wp-photo-album-plus'),
|
3409 |
-
__('Shift adjacent', 'wp-photo-album-plus'),
|
3410 |
-
// __('Stack on', 'wp-photo-album-plus'),
|
3411 |
-
// __('Stack off', 'wp-photo-album-plus'),
|
3412 |
-
// __('Turn over', 'wp-photo-album-plus')
|
3413 |
);
|
3414 |
$vals = array( 'fadeover',
|
3415 |
'fadeafter',
|
@@ -3421,76 +3421,76 @@ global $wppa_subtab_names;
|
|
3421 |
$html = wppa_select($slug, $opts, $vals);
|
3422 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3423 |
|
3424 |
-
$name = __('Timeout', 'wp-photo-album-plus');
|
3425 |
-
$desc = __('Slideshow timeout.', 'wp-photo-album-plus');
|
3426 |
-
$help = __('Select the time a single slide will be visible when the slideshow is started.', 'wp-photo-album-plus');
|
3427 |
$slug = 'wppa_slideshow_timeout';
|
3428 |
$opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
|
3429 |
$vals = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
|
3430 |
$html = wppa_select($slug, $opts, $vals);
|
3431 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3432 |
|
3433 |
-
$name = __('Speed', 'wp-photo-album-plus');
|
3434 |
-
$desc = __('Slideshow animation speed.', 'wp-photo-album-plus');
|
3435 |
-
$help = __('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus');
|
3436 |
-
$help .= '<br>'.__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus');
|
3437 |
$slug = 'wppa_animation_speed';
|
3438 |
-
$opts = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.', '6 s.', '8 s.', '10 s.');
|
3439 |
$vals = array('10', '200', '400', '800', '1200', '2000', '4000', '6000', '8000', '10000');
|
3440 |
$html = wppa_select($slug, $opts, $vals);
|
3441 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3442 |
|
3443 |
-
$name = __('Slide hover pause', 'wp-photo-album-plus');
|
3444 |
-
$desc = __('Running Slideshow suspends during mouse hover.', 'wp-photo-album-plus');
|
3445 |
$help = '';
|
3446 |
$slug = 'wppa_slide_pause';
|
3447 |
$html = wppa_checkbox($slug);
|
3448 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
3449 |
|
3450 |
-
$name = __('Slideshow wrap around', 'wp-photo-album-plus');
|
3451 |
-
$desc = __('The slideshow wraps around the start and end', 'wp-photo-album-plus');
|
3452 |
$help = '';
|
3453 |
$slug = 'wppa_slide_wrap';
|
3454 |
$html = wppa_checkbox($slug);
|
3455 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
3456 |
|
3457 |
-
$name = __('Film hover goto', 'wp-photo-album-plus');
|
3458 |
-
$desc = __('Go to slide when hovering filmstrip thumbnail.', 'wp-photo-album-plus');
|
3459 |
-
$help = __('Do not use this setting when slides have different aspect ratios!', 'wp-photo-album-plus');
|
3460 |
$slug = 'wppa_film_hover_goto';
|
3461 |
$html = wppa_checkbox($slug);
|
3462 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
3463 |
|
3464 |
-
$name = __('Slide swipe', 'wp-photo-album-plus');
|
3465 |
-
$desc = __('Enable touch events swipe left-right on slides on touch screens.', 'wp-photo-album-plus');
|
3466 |
$help = '';
|
3467 |
$slug = 'wppa_slide_swipe';
|
3468 |
$html = wppa_checkbox($slug);
|
3469 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
3470 |
|
3471 |
-
$name = __('Filmonly continu', 'wp-photo-album-plus');
|
3472 |
-
$desc = __('The filmstrip will move almost continously', 'wp-photo-album-plus');
|
3473 |
$help = '';
|
3474 |
$slug = 'wppa_filmonly_continuous';
|
3475 |
$html = wppa_checkbox($slug);
|
3476 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
3477 |
|
3478 |
-
$name = __('Filmonly random', 'wp-photo-album-plus');
|
3479 |
$desc = __('Set sequence in filmonly to random');
|
3480 |
-
$help = __('Every pageload the sequence will be different', 'wp-photo-album-plus');
|
3481 |
$slug = 'wppa_filmonly_random';
|
3482 |
$html = wppa_checkbox($slug);
|
3483 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
3484 |
|
3485 |
-
$name = __('No animate on mobile', 'wp-photo-album-plus');
|
3486 |
-
$desc = __('Suppress slideshow animations on mobile devices.', 'wp-photo-album-plus');
|
3487 |
$help = '';
|
3488 |
$slug = 'wppa_no_animate_on_mobile';
|
3489 |
$html = wppa_checkbox($slug);
|
3490 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
3491 |
|
3492 |
-
$name = __('Easing formula', 'wp-photo-album-plus');
|
3493 |
-
$desc = __('The animation method', 'wp-photo-album-plus');
|
3494 |
$help = '';
|
3495 |
$slug = 'wppa_easing_slide';
|
3496 |
$opts = array( 'swing', 'linear', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInQuad',
|
@@ -3516,83 +3516,83 @@ global $wppa_subtab_names;
|
|
3516 |
wppa_setting_tab_description($desc);
|
3517 |
wppa_setting_box_header_new($tab);
|
3518 |
|
3519 |
-
$name = __('Theme color', 'wp-photo-album-plus');
|
3520 |
-
$desc = __('The color of the image border and text background.', 'wp-photo-album-plus');
|
3521 |
$help = '';
|
3522 |
$slug = 'wppa_ovl_theme';
|
3523 |
-
$opts = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
|
3524 |
$vals = array('black', 'white');
|
3525 |
$html = wppa_select($slug, $opts, $vals);
|
3526 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3527 |
|
3528 |
-
$name = __('Theme background color', 'wp-photo-album-plus');
|
3529 |
-
$desc = __('The color of the outer background.', 'wp-photo-album-plus');
|
3530 |
$help = '';
|
3531 |
$slug = 'wppa_ovl_bgcolor';
|
3532 |
-
$opts = array(__('Black', 'wp-photo-album-plus'), __('White', 'wp-photo-album-plus'));
|
3533 |
$vals = array('black', 'white');
|
3534 |
$html = wppa_select($slug, $opts, $vals);
|
3535 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3536 |
|
3537 |
-
$name = __('Overlay name', 'wp-photo-album-plus');
|
3538 |
-
$desc = __('Show the items name.', 'wp-photo-album-plus');
|
3539 |
-
$help = __('Shows the photos name on a lightbox display.', 'wp-photo-album-plus');
|
3540 |
$slug = 'wppa_ovl_name';
|
3541 |
$html = wppa_checkbox($slug);
|
3542 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3543 |
|
3544 |
-
$name = __('Overlay desc', 'wp-photo-album-plus');
|
3545 |
-
$desc = __('Show description.', 'wp-photo-album-plus');
|
3546 |
-
$help = __('Shows the photos description on a lightbox display.', 'wp-photo-album-plus');
|
3547 |
$slug = 'wppa_ovl_desc';
|
3548 |
$html = wppa_checkbox($slug);
|
3549 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3550 |
|
3551 |
-
$name = __('Overlay rating', 'wp-photo-album-plus');
|
3552 |
-
$desc = __('Shows and enables rating on lightbox display.', 'wp-photo-album-plus');
|
3553 |
-
$help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
|
3554 |
$slug = 'wppa_ovl_rating';
|
3555 |
$html = wppa_checkbox($slug);
|
3556 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3557 |
|
3558 |
-
$name = __('Overlay add owner', 'wp-photo-album-plus');
|
3559 |
-
$desc = __('Add the owner to the photo name on lightbox displays.', 'wp-photo-album-plus');
|
3560 |
-
$help = __('This setting is independant of the show name switches and is a global setting.', 'wp-photo-album-plus');
|
3561 |
$slug = 'wppa_ovl_add_owner';
|
3562 |
$html = wppa_checkbox($slug);
|
3563 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3564 |
|
3565 |
-
$name = __('Overlay show start/stop', 'wp-photo-album-plus');
|
3566 |
-
$desc = __('Show Start and Stop for running slideshow on lightbox.', 'wp-photo-album-plus');
|
3567 |
$help = '';
|
3568 |
$slug = 'wppa_ovl_show_startstop';
|
3569 |
$html = wppa_checkbox($slug);
|
3570 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
3571 |
|
3572 |
-
$name = __('Overlay show counter', 'wp-photo-album-plus');
|
3573 |
-
$desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus');
|
3574 |
$help = '';
|
3575 |
$slug = 'wppa_ovl_show_counter';
|
3576 |
$html = wppa_checkbox($slug);
|
3577 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
3578 |
|
3579 |
-
$name = __('WPPA+ Lightbox global', 'wp-photo-album-plus');
|
3580 |
-
$desc = __('Use the wppa+ lightbox also for non-wppa images.', 'wp-photo-album-plus');
|
3581 |
$help = '';
|
3582 |
$slug = 'wppa_lightbox_global';
|
3583 |
$onch = 'wppaSlave( this, "wppa_lightbox_global_set" )';
|
3584 |
$html = wppa_checkbox($slug, $onch);
|
3585 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
3586 |
|
3587 |
-
$name = __('WPPA+ Lightbox global is a set', 'wp-photo-album-plus');
|
3588 |
-
$desc = __('Treat the other images as a set.', 'wp-photo-album-plus');
|
3589 |
-
$help = __('If checked, you can scroll through the non-WPPA images in the lightbox view.', 'wp-photo-album-plus');
|
3590 |
$slug = 'wppa_lightbox_global_set';
|
3591 |
$html = wppa_checkbox($slug);
|
3592 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_switch( 'lightbox_global' ) );
|
3593 |
|
3594 |
-
$name = __('Navigation icon size lightbox', 'wp-photo-album-plus');
|
3595 |
-
$desc = __('The size of navigation icons on lightbox', 'wp-photo-album-plus');
|
3596 |
$help = '';
|
3597 |
$slug = 'wppa_nav_icon_size_lightbox';
|
3598 |
$opts = array( '16px',
|
@@ -3612,29 +3612,29 @@ global $wppa_subtab_names;
|
|
3612 |
$html = wppa_select($slug, $opts, $vals);
|
3613 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
3614 |
|
3615 |
-
$name = __('Show Share Buttons Lightbox', 'wp-photo-album-plus');
|
3616 |
-
$desc = __('Display the share social media buttons on lightbox displays.', 'wp-photo-album-plus');
|
3617 |
$help = '';
|
3618 |
$slug = 'wppa_share_on_lightbox';
|
3619 |
$html = wppa_checkbox($slug);
|
3620 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
3621 |
|
3622 |
-
$name = __('Number of text lines', 'wp-photo-album-plus');
|
3623 |
-
$desc = __('Number of lines on the lightbox description area, exclusive the n/m line.', 'wp-photo-album-plus');
|
3624 |
-
$help = __('Enter a number in the range from 0 to 24 or auto', 'wp-photo-album-plus');
|
3625 |
$slug = 'wppa_ovl_txt_lines';
|
3626 |
-
$html = wppa_input($slug, '40px', '', __('lines', 'wp-photo-album-plus'));
|
3627 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
3628 |
|
3629 |
-
$name = __('Magnifier cursor size', 'wp-photo-album-plus');
|
3630 |
-
$desc = __('Select the size of the magnifier cursor.', 'wp-photo-album-plus');
|
3631 |
$help = '';
|
3632 |
$slug = 'wppa_magnifier';
|
3633 |
-
$opts = array( __('small', 'wp-photo-album-plus'),
|
3634 |
-
__('medium', 'wp-photo-album-plus'),
|
3635 |
-
__('large', 'wp-photo-album-plus'),
|
3636 |
-
__('pointer (hand)', 'wp-photo-album-plus'),
|
3637 |
-
__('--- none ---', 'wp-photo-album-plus')
|
3638 |
);
|
3639 |
$vals = array( 'magnifier-small.png',
|
3640 |
'magnifier-medium.png',
|
@@ -3649,61 +3649,61 @@ global $wppa_subtab_names;
|
|
3649 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
3650 |
wppa_add_inline_script( 'wppa-admin', $onchange );
|
3651 |
|
3652 |
-
$name = __('Border width', 'wp-photo-album-plus');
|
3653 |
-
$desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
|
3654 |
$help = '';
|
3655 |
$slug = 'wppa_ovl_border_width';
|
3656 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3657 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
3658 |
|
3659 |
-
$name = __('Border radius', 'wp-photo-album-plus');
|
3660 |
-
$desc = __('Border radius for lightbox display.', 'wp-photo-album-plus');
|
3661 |
$help = '';
|
3662 |
$slug = 'wppa_ovl_border_radius';
|
3663 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3664 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
3665 |
|
3666 |
-
$name = __('Show Zoom in', 'wp-photo-album-plus');
|
3667 |
-
$desc = __('Display tooltip "Zoom in" along with the magnifier cursor.', 'wp-photo-album-plus');
|
3668 |
-
$help = __('If you select ---none--- in item 14 for magnifier size, the tooltop contains the photo name.', 'wp-photo-album-plus');
|
3669 |
$slug = 'wppa_show_zoomin';
|
3670 |
$html = wppa_checkbox($slug);
|
3671 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
3672 |
|
3673 |
-
$name = __('Overlay opacity', 'wp-photo-album-plus');
|
3674 |
-
$desc = __('The opacity of the lightbox overlay background.', 'wp-photo-album-plus');
|
3675 |
$help = '';
|
3676 |
$slug = 'wppa_ovl_opacity';
|
3677 |
-
$html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
|
3678 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
3679 |
|
3680 |
-
$name = __('Click on background', 'wp-photo-album-plus');
|
3681 |
-
$desc = __('Select the action to be taken on click on background.', 'wp-photo-album-plus');
|
3682 |
$help = '';
|
3683 |
$slug = 'wppa_ovl_onclick';
|
3684 |
-
$opts = array(__('Nothing', 'wp-photo-album-plus'), __('Exit (close)', 'wp-photo-album-plus'), __('Browse (left/right)', 'wp-photo-album-plus'));
|
3685 |
$vals = array('none', 'close', 'browse');
|
3686 |
$html = wppa_select($slug, $opts, $vals);
|
3687 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
3688 |
|
3689 |
-
$name = __('Click on image', 'wp-photo-album-plus');
|
3690 |
-
$desc = __('Clicking the image (left or right half) will browse the images', 'wp-photo-album-plus');
|
3691 |
$help = '';
|
3692 |
$slug = 'wppa_ovl_browse_on_click';
|
3693 |
$html = wppa_checkbox($slug);
|
3694 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
3695 |
|
3696 |
-
$name = __('Overlay animation speed', 'wp-photo-album-plus');
|
3697 |
-
$desc = __('The fade-in time of the lightbox images', 'wp-photo-album-plus');
|
3698 |
$help = '';
|
3699 |
$slug = 'wppa_ovl_anim';
|
3700 |
-
$opts = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '300 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.');
|
3701 |
$vals = array('10', '200', '300', '400', '800', '1200', '2000', '4000');
|
3702 |
$html = wppa_select($slug, $opts, $vals);
|
3703 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
3704 |
|
3705 |
-
$name = __('Overlay slideshow speed', 'wp-photo-album-plus');
|
3706 |
-
$desc = __('The time the lightbox images stay', 'wp-photo-album-plus');
|
3707 |
$help = '';
|
3708 |
$slug = 'wppa_ovl_slide';
|
3709 |
$opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
|
@@ -3711,33 +3711,33 @@ global $wppa_subtab_names;
|
|
3711 |
$html = wppa_select($slug, $opts, $vals);
|
3712 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
3713 |
|
3714 |
-
$name = __('Use hires files', 'wp-photo-album-plus');
|
3715 |
-
$desc = __('Use the highest resolution available for lightbox.', 'wp-photo-album-plus');
|
3716 |
-
$help = __('Ticking this box is recommended for lightbox fullscreen modes.', 'wp-photo-album-plus');
|
3717 |
$slug = 'wppa_lb_hres';
|
3718 |
$html = wppa_checkbox($slug);
|
3719 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
3720 |
|
3721 |
-
$name = __('Video autostart', 'wp-photo-album-plus');
|
3722 |
-
$desc = __('Videos on lightbox start automatically.', 'wp-photo-album-plus');
|
3723 |
$help = '';
|
3724 |
$slug = 'wppa_ovl_video_start';
|
3725 |
$html = wppa_checkbox($slug);
|
3726 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
3727 |
|
3728 |
-
$name = __('Audio autostart', 'wp-photo-album-plus');
|
3729 |
-
$desc = __('Audio on lightbox start automatically.', 'wp-photo-album-plus');
|
3730 |
$help = '';
|
3731 |
$slug = 'wppa_ovl_audio_start';
|
3732 |
$html = wppa_checkbox($slug);
|
3733 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
3734 |
|
3735 |
-
$name = __('Lightbox start mode', 'wp-photo-album-plus');
|
3736 |
-
$desc = __('The mode lightbox starts in.', 'wp-photo-album-plus');
|
3737 |
$help = '';
|
3738 |
$slug = 'wppa_ovl_mode_initial';
|
3739 |
-
$opts = array( __('Normal', 'wp-photo-album-plus'),
|
3740 |
-
__('Fullscreen', 'wp-photo-album-plus'),
|
3741 |
);
|
3742 |
$vals = array( 'normal',
|
3743 |
'padded',
|
@@ -3745,12 +3745,12 @@ global $wppa_subtab_names;
|
|
3745 |
$html = wppa_select($slug,$opts,$vals);
|
3746 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
3747 |
|
3748 |
-
$name = __('Lightbox start mode mobile', 'wp-photo-album-plus');
|
3749 |
-
$desc = __('The mode lightbox starts in on mobile devices.', 'wp-photo-album-plus');
|
3750 |
$help = '';
|
3751 |
$slug = 'wppa_ovl_mode_initial_mob';
|
3752 |
-
$opts = array( __('Normal', 'wp-photo-album-plus'),
|
3753 |
-
__('Fullscreen', 'wp-photo-album-plus'),
|
3754 |
);
|
3755 |
$vals = array( 'normal',
|
3756 |
'padded',
|
@@ -3758,8 +3758,8 @@ global $wppa_subtab_names;
|
|
3758 |
$html = wppa_select($slug,$opts,$vals);
|
3759 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
3760 |
|
3761 |
-
$name = __('Easing formula', 'wp-photo-album-plus');
|
3762 |
-
$desc = __('The animation method', 'wp-photo-album-plus');
|
3763 |
$help = '';
|
3764 |
$slug = 'wppa_easing_lightbox';
|
3765 |
$opts = array( 'swing', 'linear', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInQuad',
|
@@ -3785,36 +3785,36 @@ global $wppa_subtab_names;
|
|
3785 |
wppa_setting_tab_description($desc);
|
3786 |
wppa_setting_box_header_new($tab);
|
3787 |
|
3788 |
-
$name = __('Commenting login', 'wp-photo-album-plus');
|
3789 |
-
$desc = __('Users must be logged in to comment on photos.', 'wp-photo-album-plus');
|
3790 |
-
$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');
|
3791 |
$slug = 'wppa_comment_login';
|
3792 |
$html = wppa_checkbox($slug);
|
3793 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3794 |
|
3795 |
-
$name = __('Comments view login', 'wp-photo-album-plus');
|
3796 |
-
$desc = __('Users must be logged in to see comments on photos.', 'wp-photo-album-plus');
|
3797 |
-
$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');
|
3798 |
$slug = 'wppa_comment_view_login';
|
3799 |
$html = wppa_checkbox($slug);
|
3800 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3801 |
|
3802 |
-
$name = __('Last comment first', 'wp-photo-album-plus');
|
3803 |
-
$desc = __('Display the newest comment on top.', 'wp-photo-album-plus');
|
3804 |
-
$help = __('If checked: Display the newest comment on top.', 'wp-photo-album-plus');
|
3805 |
-
$help .= '<br>'.(__('If unchecked, the comments are listed in the ordere they were entered.', 'wp-photo-album-plus'));
|
3806 |
$slug = 'wppa_comments_desc';
|
3807 |
$html = wppa_checkbox($slug);
|
3808 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3809 |
|
3810 |
-
$name = __('Comment moderation', 'wp-photo-album-plus');
|
3811 |
-
$desc = __('Comments from what users need approval.', 'wp-photo-album-plus');
|
3812 |
-
$help = __('Select the desired users of which the comments need approval.', 'wp-photo-album-plus');
|
3813 |
$slug = 'wppa_moderate_comment';
|
3814 |
-
$opts = array( __('All users', 'wp-photo-album-plus'),
|
3815 |
-
__('Logged out users', 'wp-photo-album-plus'),
|
3816 |
-
__('No users', 'wp-photo-album-plus'),
|
3817 |
-
__('Use WP Discussion rules', 'wp-photo-album-plus'),
|
3818 |
);
|
3819 |
$vals = array( 'all',
|
3820 |
'logout',
|
@@ -3824,13 +3824,13 @@ global $wppa_subtab_names;
|
|
3824 |
$html = wppa_select($slug, $opts, $vals);
|
3825 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3826 |
|
3827 |
-
$name = __('Comment email required', 'wp-photo-album-plus');
|
3828 |
-
$desc = __('Commenting users must enter their email addresses.', 'wp-photo-album-plus');
|
3829 |
$help = '';
|
3830 |
$slug = 'wppa_comment_email_required';
|
3831 |
-
$opts = array( __('None', 'wp-photo-album-plus'),
|
3832 |
-
__('Optional', 'wp-photo-album-plus'),
|
3833 |
-
__('Required', 'wp-photo-album-plus'),
|
3834 |
);
|
3835 |
$vals = array( 'none',
|
3836 |
'optional',
|
@@ -3839,60 +3839,60 @@ global $wppa_subtab_names;
|
|
3839 |
$html = wppa_select($slug, $opts, $vals);
|
3840 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3841 |
|
3842 |
-
$name = __('Comment ntfy added', 'wp-photo-album-plus');
|
3843 |
-
$desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus');
|
3844 |
$help = '';
|
3845 |
$slug = 'wppa_commentnotify_added';
|
3846 |
$html = wppa_checkbox($slug);
|
3847 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3848 |
|
3849 |
-
$name = __('ComTen alt display', 'wp-photo-album-plus');
|
3850 |
-
$desc = __('Display comments at comten thumbnails.', 'wp-photo-album-plus');
|
3851 |
$help = '';
|
3852 |
$slug = 'wppa_comten_alt_display';
|
3853 |
$html = wppa_checkbox($slug);
|
3854 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
3855 |
|
3856 |
-
$name = __('Comten Thumbnail width', 'wp-photo-album-plus');
|
3857 |
-
$desc = __('The width of the thumbnail in the alt comment display.', 'wp-photo-album-plus');
|
3858 |
$help = '';
|
3859 |
$slug = 'wppa_comten_alt_thumbsize';
|
3860 |
-
$html = wppa_input($slug, '50px', '', __('Pixels', 'wp-photo-album-plus'));
|
3861 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
3862 |
|
3863 |
-
$name = __('Show smiley picker', 'wp-photo-album-plus');
|
3864 |
-
$desc = __('Display a clickable row of smileys.', 'wp-photo-album-plus');
|
3865 |
$help = '';
|
3866 |
$slug = 'wppa_comment_smiley_picker';
|
3867 |
$html = wppa_checkbox($slug);
|
3868 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
3869 |
|
3870 |
-
$name = __('Allow clickable links', 'wp-photo-album-plus');
|
3871 |
-
$desc = __('Make links in comments clickable', 'wp-photo-album-plus');
|
3872 |
$help = '';
|
3873 |
$slug = 'wppa_comment_clickable';
|
3874 |
$html = wppa_checkbox($slug);
|
3875 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
3876 |
|
3877 |
-
$name = __('Comment needs vote', 'wp-photo-album-plus');
|
3878 |
-
$desc = __('User needs to give a rating to get his comment published', 'wp-photo-album-plus');
|
3879 |
$help = '';
|
3880 |
$slug = 'wppa_comment_need_vote';
|
3881 |
$html = wppa_checkbox($slug);
|
3882 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
3883 |
|
3884 |
-
$name = __('Comment Avatar default', 'wp-photo-album-plus');
|
3885 |
-
$desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus');
|
3886 |
$help = '';
|
3887 |
$slug = 'wppa_comment_gravatar';
|
3888 |
$onch = '';
|
3889 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
3890 |
-
__('mystery man', 'wp-photo-album-plus'),
|
3891 |
-
__('identicon', 'wp-photo-album-plus'),
|
3892 |
-
__('monsterid', 'wp-photo-album-plus'),
|
3893 |
-
__('wavatar', 'wp-photo-album-plus'),
|
3894 |
-
__('retro', 'wp-photo-album-plus'),
|
3895 |
-
__('--- url ---', 'wp-photo-album-plus')
|
3896 |
);
|
3897 |
$vals = array( 'none',
|
3898 |
'mm',
|
@@ -3905,28 +3905,28 @@ global $wppa_subtab_names;
|
|
3905 |
$html = wppa_select($slug, $opts, $vals, $onch);
|
3906 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
3907 |
|
3908 |
-
$name = __('Comment Avatar url', 'wp-photo-album-plus');
|
3909 |
-
$desc = __('Comment Avatar default url.', 'wp-photo-album-plus');
|
3910 |
$help = '';
|
3911 |
$slug = 'wppa_comment_gravatar_url';
|
3912 |
$html = wppa_input($slug, '90%', '300px');
|
3913 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
3914 |
|
3915 |
-
$name = __('Avatar size', 'wp-photo-album-plus');
|
3916 |
-
$desc = __('Size of Avatar images.', 'wp-photo-album-plus');
|
3917 |
-
$help = __('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus');
|
3918 |
$slug = 'wppa_gravatar_size';
|
3919 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
3920 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
3921 |
|
3922 |
-
$name = __('List comments', 'wp-photo-album-plus');
|
3923 |
-
$desc = __('Show the content of the comments table.', 'wp-photo-album-plus');
|
3924 |
$help = '';
|
3925 |
$slug1 = 'wppa_list_comments_by';
|
3926 |
$slug2 = 'wppa_list_comments';
|
3927 |
$opts = array( 'Email', 'Name', 'Timestamp' );
|
3928 |
$vals = array( 'email', 'name', 'timestamp' );
|
3929 |
-
$html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus').'</small>'.wppa_select($slug1, $opts, $vals);
|
3930 |
$html2 = wppa_popup_button( $slug2, '30' );
|
3931 |
$html = $html1 . '<span style="float:left;" > </span>' .$html2;
|
3932 |
wppa_setting_new($slug1, '16', $name, $desc, $html, $help);
|
@@ -3943,302 +3943,302 @@ global $wppa_subtab_names;
|
|
3943 |
wppa_setting_tab_description($desc);
|
3944 |
wppa_setting_box_header_new($tab);
|
3945 |
|
3946 |
-
$name = __('Slideshow rating', 'wp-photo-album-plus');
|
3947 |
-
$desc = __('Display Slideshow Rating.', 'wp-photo-album-plus');
|
3948 |
-
$help = __('Display the rating of the photo under the slideshow image.', 'wp-photo-album-plus');
|
3949 |
$slug = '';
|
3950 |
$html = '<input type="checkbox" checked disabled >';
|
3951 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3952 |
|
3953 |
-
$name = __('Thumbnail rating', 'wp-photo-album-plus');
|
3954 |
-
$desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus');
|
3955 |
-
$help = __('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus');
|
3956 |
$slug = 'wppa_thumb_text_rating';
|
3957 |
$html = wppa_checkbox($slug);
|
3958 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3959 |
|
3960 |
-
$name = __('Lightbox rating', 'wp-photo-album-plus');
|
3961 |
-
$desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus');
|
3962 |
-
$help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
|
3963 |
$slug = 'wppa_ovl_rating';
|
3964 |
$html = wppa_checkbox($slug);
|
3965 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3966 |
|
3967 |
-
$name = __('Rating display type', 'wp-photo-album-plus');
|
3968 |
-
$desc = __('Specify the type of the rating display.', 'wp-photo-album-plus');
|
3969 |
-
$help = __('If you select "Likes" you must also select "One button vote"', 'wp-photo-album-plus');
|
3970 |
$slug = 'wppa_rating_display_type';
|
3971 |
-
$opts = array(__('Graphic', 'wp-photo-album-plus'), __('Numeric', 'wp-photo-album-plus'), __('Likes', 'wp-photo-album-plus'));
|
3972 |
$vals = array('graphic', 'numeric', 'likes');
|
3973 |
$postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
|
3974 |
$html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
|
3975 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3976 |
|
3977 |
-
$name = __('Rating size', 'wp-photo-album-plus');
|
3978 |
-
$desc = __('Select the number of voting stars.', 'wp-photo-album-plus');
|
3979 |
$help = '';
|
3980 |
$slug = 'wppa_rating_max';
|
3981 |
-
$opts = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
|
3982 |
$vals = array('5', '10', '1');
|
3983 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();') . wppa_see_also( 'maintenance', '1', '5' );
|
3984 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3985 |
|
3986 |
-
$name = __('Display precision', 'wp-photo-album-plus');
|
3987 |
-
$desc = __('Select the desired rating display precision.', 'wp-photo-album-plus');
|
3988 |
$help = '';
|
3989 |
$slug = 'wppa_rating_prec';
|
3990 |
-
$opts = array('1 '.__('decimal places', 'wp-photo-album-plus'), '2 '.__('decimal places', 'wp-photo-album-plus'), '3 '.__('decimal places', 'wp-photo-album-plus'), '4 '.__('decimal places', 'wp-photo-album-plus'));
|
3991 |
$vals = array('1', '2', '3', '4');
|
3992 |
$html = wppa_select($slug, $opts, $vals);
|
3993 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3994 |
|
3995 |
-
$name = __('Rating space', 'wp-photo-album-plus');
|
3996 |
-
$desc = __('Space between avg and my rating stars', 'wp-photo-album-plus');
|
3997 |
$help = '';
|
3998 |
$slug = 'wppa_ratspacing';
|
3999 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4000 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
4001 |
|
4002 |
-
$name = __('Show rating count', 'wp-photo-album-plus');
|
4003 |
-
$desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus');
|
4004 |
-
$help = __('If checked, the number of votes is displayed along with average rating displays.', 'wp-photo-album-plus');
|
4005 |
$slug = 'wppa_show_rating_count';
|
4006 |
$html = wppa_checkbox($slug);
|
4007 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
4008 |
|
4009 |
-
$name = __('Rating login', 'wp-photo-album-plus');
|
4010 |
-
$desc = __('Users must login to rate photos.', 'wp-photo-album-plus');
|
4011 |
-
$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');
|
4012 |
$slug = 'wppa_rating_login';
|
4013 |
$html = wppa_checkbox($slug);
|
4014 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
4015 |
|
4016 |
-
$name = __('Rating change', 'wp-photo-album-plus');
|
4017 |
-
$desc = __('Users may change their ratings.', 'wp-photo-album-plus');
|
4018 |
-
$help = __('Users may change their ratings.', 'wp-photo-album-plus');
|
4019 |
-
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
|
4020 |
$slug = 'wppa_rating_change';
|
4021 |
$html = wppa_checkbox($slug);
|
4022 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4023 |
|
4024 |
-
$name = __('Rating multi', 'wp-photo-album-plus');
|
4025 |
-
$desc = __('Users may give multiple votes.', 'wp-photo-album-plus');
|
4026 |
-
$help = __('Users may give multiple votes. (This has no effect when users may change their votes.)', 'wp-photo-album-plus');
|
4027 |
$slug = 'wppa_rating_multi';
|
4028 |
$html = wppa_checkbox($slug);
|
4029 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
4030 |
|
4031 |
-
$name = __('Rating daily', 'wp-photo-album-plus');
|
4032 |
-
$desc = __('Users may rate only once per period', 'wp-photo-album-plus');
|
4033 |
$help = '';
|
4034 |
$slug = 'wppa_rating_dayly';
|
4035 |
-
$opts = array(__('--- off ---', 'wp-photo-album-plus'), __('Week', 'wp-photo-album-plus'), __('Day', 'wp-photo-album-plus'), __('Hour', 'wp-photo-album-plus') );
|
4036 |
$vals = array(0, 7*24*60*60, 24*60*60, 60*60);
|
4037 |
$html = wppa_select($slug, $opts, $vals);
|
4038 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
4039 |
|
4040 |
-
$name = __('Rate own photos', 'wp-photo-album-plus');
|
4041 |
-
$desc = __('It is allowed to rate photos by the uploader himself.', 'wp-photo-album-plus');
|
4042 |
$help = '';
|
4043 |
$slug = 'wppa_allow_owner_votes';
|
4044 |
$html = wppa_checkbox($slug);
|
4045 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
4046 |
|
4047 |
-
$name = __('Rating requires comment', 'wp-photo-album-plus');
|
4048 |
-
$desc = __('Users must clarify their vote in a comment.', 'wp-photo-album-plus');
|
4049 |
$help = '';
|
4050 |
$slug = 'wppa_vote_needs_comment';
|
4051 |
$html = wppa_checkbox($slug);
|
4052 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
4053 |
|
4054 |
-
$name = __('Next after vote', 'wp-photo-album-plus');
|
4055 |
-
$desc = __('Goto next slide after voting', 'wp-photo-album-plus');
|
4056 |
-
$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');
|
4057 |
$slug = 'wppa_next_on_callback';
|
4058 |
$html = wppa_checkbox($slug);
|
4059 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
4060 |
|
4061 |
-
$name = __('Star off opacity', 'wp-photo-album-plus');
|
4062 |
-
$desc = __('Rating star off state opacity value.', 'wp-photo-album-plus');
|
4063 |
-
$help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus');
|
4064 |
-
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
|
4065 |
$slug = 'wppa_star_opacity';
|
4066 |
-
$html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus'));
|
4067 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4068 |
|
4069 |
-
$name = __('Notify inappropriate', 'wp-photo-album-plus');
|
4070 |
-
$desc = __('Notify admin every x times.', 'wp-photo-album-plus');
|
4071 |
-
$help = __('If this number is positive, there will be a thumb down icon in the rating bar.', 'wp-photo-album-plus');
|
4072 |
-
$help .= '<br>'.(__('Clicking the thumbdown icon indicates a user dislikes a photo.', 'wp-photo-album-plus'));
|
4073 |
-
$help .= '<br>'.(__('Admin will be notified by email after every x dislikes.', 'wp-photo-album-plus'));
|
4074 |
-
$help .= '<br>'.(__('A value of 0 disables this feature.', 'wp-photo-album-plus'));
|
4075 |
-
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
|
4076 |
$slug = 'wppa_dislike_mail_every';
|
4077 |
-
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
4078 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4079 |
|
4080 |
-
$name = __('Dislike value', 'wp-photo-album-plus');
|
4081 |
-
$desc = __('This value counts dislike rating.', 'wp-photo-album-plus');
|
4082 |
-
$help = (__('This value will be used for a dislike rating on calculation of avarage ratings.', 'wp-photo-album-plus'));
|
4083 |
-
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus'));
|
4084 |
$slug = 'wppa_dislike_value';
|
4085 |
-
$html = wppa_input($slug, '50px', '', __('points', 'wp-photo-album-plus'));
|
4086 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4087 |
|
4088 |
-
$name = __('Pending after', 'wp-photo-album-plus');
|
4089 |
-
$desc = __('Set status to pending after xx dislike votes.', 'wp-photo-album-plus');
|
4090 |
-
$help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
|
4091 |
-
$help .= '<br>'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus');
|
4092 |
$slug = 'wppa_dislike_set_pending';
|
4093 |
-
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
4094 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4095 |
|
4096 |
-
$name = __('Delete after', 'wp-photo-album-plus');
|
4097 |
-
$desc = __('Delete photo after xx dislike votes.', 'wp-photo-album-plus');
|
4098 |
-
$help = __('A value of 0 disables this feature.', 'wp-photo-album-plus');
|
4099 |
-
$help .= '<br>'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus');
|
4100 |
$slug = 'wppa_dislike_delete';
|
4101 |
-
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus'));
|
4102 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4103 |
|
4104 |
-
$name = __('Show dislike count', 'wp-photo-album-plus');
|
4105 |
-
$desc = __('Show the number of dislikes in the rating bar.', 'wp-photo-album-plus');
|
4106 |
-
$help = __('Displayes the total number of dislike votes for the current photo.', 'wp-photo-album-plus');
|
4107 |
-
$help .= '<br>'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus');
|
4108 |
$slug = 'wppa_dislike_show_count';
|
4109 |
$html = wppa_checkbox($slug);
|
4110 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4111 |
|
4112 |
-
$name = __('Show average rating', 'wp-photo-album-plus');
|
4113 |
-
$desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus');
|
4114 |
-
$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');
|
4115 |
-
$help .= '<br>'.__('If unchecked, only the current users rating is displayed (if any).', 'wp-photo-album-plus');
|
4116 |
-
$help .= '<br>'.__('If "One button vote" is selected in item 5, this box checked will display the vote count.', 'wp-photo-album-plus');
|
4117 |
$slug = 'wppa_show_avg_rating';
|
4118 |
$html = wppa_checkbox($slug);
|
4119 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
4120 |
|
4121 |
-
$name = __('Avg and Mine on 2 lines', 'wp-photo-album-plus');
|
4122 |
-
$desc = __('Display avarage and my rating on different lines', 'wp-photo-album-plus');
|
4123 |
$help = '';
|
4124 |
$slug = 'wppa_show_avg_mine_2';
|
4125 |
$html = wppa_checkbox($slug);
|
4126 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
4127 |
|
4128 |
-
$name = __('Single vote button text', 'wp-photo-album-plus');
|
4129 |
-
$desc = __('The text on the voting button.', 'wp-photo-album-plus');
|
4130 |
-
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
|
4131 |
$slug = 'wppa_vote_button_text';
|
4132 |
$html = wppa_input($slug, '100');
|
4133 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
4134 |
|
4135 |
-
$name = __('Single vote button text voted', 'wp-photo-album-plus');
|
4136 |
-
$desc = __('The text on the voting button when voted.', 'wp-photo-album-plus');
|
4137 |
-
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus');
|
4138 |
$slug = 'wppa_voted_button_text';
|
4139 |
$html = wppa_input($slug, '100');
|
4140 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
4141 |
|
4142 |
-
$name = __('Single vote button thumbnail', 'wp-photo-album-plus');
|
4143 |
-
$desc = __('Display single vote button below thumbnails.', 'wp-photo-album-plus');
|
4144 |
-
$help = __('This works only in single vote mode: item 5 set to "one button vote"', 'wp-photo-album-plus');
|
4145 |
$slug = 'wppa_vote_thumb';
|
4146 |
$html = wppa_checkbox($slug);
|
4147 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) == '1' );
|
4148 |
|
4149 |
-
$name = __('Medal bronze when', 'wp-photo-album-plus');
|
4150 |
-
$desc = __('Photo gets medal bronze when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
4151 |
-
$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');
|
4152 |
$slug = 'wppa_medal_bronze_when';
|
4153 |
-
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
4154 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
4155 |
|
4156 |
-
$name = __('Medal silver when', 'wp-photo-album-plus');
|
4157 |
-
$desc = __('Photo gets medal silver when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
4158 |
-
$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'));
|
4159 |
$slug = 'wppa_medal_silver_when';
|
4160 |
-
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
4161 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
4162 |
|
4163 |
-
$name = __('Medal gold when', 'wp-photo-album-plus');
|
4164 |
-
$desc = __('Photo gets medal gold when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus');
|
4165 |
-
$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'));
|
4166 |
$slug = 'wppa_medal_gold_when';
|
4167 |
-
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus'));
|
4168 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
4169 |
|
4170 |
-
$name = __('Medal tag color', 'wp-photo-album-plus');
|
4171 |
-
$desc = __('The color of the tag on the medal.', 'wp-photo-album-plus');
|
4172 |
$help = '';
|
4173 |
$slug = 'wppa_medal_color';
|
4174 |
-
$opts = array( __('Red', 'wp-photo-album-plus'), __('Green', 'wp-photo-album-plus'), __('Blue', 'wp-photo-album-plus') );
|
4175 |
$vals = array( '1', '2', '3' );
|
4176 |
$html = wppa_select($slug, $opts, $vals);
|
4177 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
4178 |
|
4179 |
-
$name = __('Medal position', 'wp-photo-album-plus');
|
4180 |
-
$desc = __('The position of the medal on the image.', 'wp-photo-album-plus');
|
4181 |
$help = '';
|
4182 |
$slug = 'wppa_medal_position';
|
4183 |
-
$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') );
|
4184 |
$vals = array( 'topleft', 'topright', 'botleft', 'botright' );
|
4185 |
$html = wppa_select($slug, $opts, $vals);
|
4186 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
4187 |
|
4188 |
-
$name = __('Top criterium', 'wp-photo-album-plus');
|
4189 |
-
$desc = __('The top sort item used for topten results from shortcodes.', 'wp-photo-album-plus');
|
4190 |
$help = '';
|
4191 |
$slug = 'wppa_topten_sortby';
|
4192 |
-
$opts = array( __('Mean rating', 'wp-photo-album-plus'),
|
4193 |
-
__('Rating count', 'wp-photo-album-plus'),
|
4194 |
-
__('Viewcount', 'wp-photo-album-plus'),
|
4195 |
-
__('Downloads', 'wp-photo-album-plus'));
|
4196 |
$vals = array( 'mean_rating', 'rating_count', 'views', 'dlcount' );
|
4197 |
$html = wppa_select($slug, $opts, $vals);
|
4198 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
4199 |
|
4200 |
-
$name = __('Contest top creterium', 'wp-photo-album-plus');
|
4201 |
-
$desc = __('The top sort creterium used for the contest.', 'wp-photo-album-plus');
|
4202 |
$help = '';
|
4203 |
$slug = 'wppa_contest_sortby';
|
4204 |
-
$opts = array( __('Mean rating', 'wp-photo-album-plus'),
|
4205 |
-
__('Total rating', 'wp-photo-album-plus'));
|
4206 |
$vals = array( 'average', 'total' );
|
4207 |
$html = wppa_select($slug, $opts, $vals);
|
4208 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
4209 |
|
4210 |
-
$name = __('Contest photo numbering', 'wp-photo-album-plus');
|
4211 |
-
$desc = __('The number to be placed near the preview.', 'wp-photo-album-plus');
|
4212 |
$help = '';
|
4213 |
$slug = 'wppa_contest_number';
|
4214 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
4215 |
-
__('Photo id', 'wp-photo-album-plus'),
|
4216 |
-
__('Sequence number', 'wp-photo-album-plus'));
|
4217 |
$vals = array( 'none', 'id', 'seqno' );
|
4218 |
$html = wppa_select($slug, $opts, $vals);
|
4219 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
4220 |
|
4221 |
-
$name = __('Contest max ranking', 'wp-photo-album-plus');
|
4222 |
-
$desc = __('The number of photos in the contest results display.', 'wp-photo-album-plus');
|
4223 |
$help = '';
|
4224 |
$slug = 'wppa_contest_max';
|
4225 |
$html = wppa_number($slug, '3', '100');
|
4226 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
4227 |
|
4228 |
-
$name = __('Contest comment visibility', 'wp-photo-album-plus');
|
4229 |
-
$desc = __('The policy to display comments on the contest display', 'wp-photo-album-plus');
|
4230 |
-
$help = __('Admin always sees the comments', 'wp-photo-album-plus');
|
4231 |
$slug = 'wppa_contest_comment_policy';
|
4232 |
$opts = array( __('None', 'wp-photo-album-plus' ),
|
4233 |
-
__('Commenter', 'wp-photo-album-plus'),
|
4234 |
-
__('Commenter and photo owner', 'wp-photo-album-plus'),
|
4235 |
-
__('Every visitor', 'wp-photo-album-plus'));
|
4236 |
$vals = array( 'none', 'comowner', 'owners', 'all' );
|
4237 |
$html = wppa_select($slug, $opts, $vals);
|
4238 |
wppa_setting_new($slug, '36', $name, $desc, $html, $help);
|
4239 |
|
4240 |
-
$name = __('List Ratings', 'wp-photo-album-plus');
|
4241 |
-
$desc = __('Show the most recent ratings.', 'wp-photo-album-plus');
|
4242 |
$help = '';
|
4243 |
$slug = 'wppa_list_rating';
|
4244 |
$html = wppa_popup_button( $slug, '30' );
|
@@ -4256,11 +4256,11 @@ global $wppa_subtab_names;
|
|
4256 |
wppa_setting_tab_description($desc);
|
4257 |
wppa_setting_box_header_new($tab);
|
4258 |
|
4259 |
-
$name = __('Search landing page', 'wp-photo-album-plus');
|
4260 |
-
$desc = __('Display the search results on page.', 'wp-photo-album-plus');
|
4261 |
-
$help = __('Select the page to be used to display search results. The page MUST contain [wppa].', 'wp-photo-album-plus');
|
4262 |
-
$help .= '<br>'.__('You may give it the title "Search results" or something alike.', 'wp-photo-album-plus');
|
4263 |
-
$help .= '<br>'.__('Or you may use the standard page on which you display the generic album.', 'wp-photo-album-plus');
|
4264 |
$slug = 'wppa_search_linkpage';
|
4265 |
wppa_verify_page($slug);
|
4266 |
$pages = $wpdb->get_results( "SELECT ID, post_title, post_content FROM $wpdb->posts
|
@@ -4269,22 +4269,22 @@ global $wppa_subtab_names;
|
|
4269 |
ORDER BY post_title", ARRAY_A );
|
4270 |
$opts = false;
|
4271 |
$vals = false;
|
4272 |
-
$opts[] = __('--- Please select a page ---', 'wp-photo-album-plus');
|
4273 |
$vals[] = '0';
|
4274 |
if ($pages) {
|
4275 |
|
4276 |
// Translate
|
4277 |
foreach ( array_keys($pages) as $index ) {
|
4278 |
-
$pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
|
4279 |
}
|
4280 |
$pages = wppa_array_sort($pages, 'post_title');
|
4281 |
foreach ($pages as $page) {
|
4282 |
if ( strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false ) {
|
4283 |
-
$opts[] = __($page['post_title'], 'wp-photo-album-plus');
|
4284 |
$vals[] = $page['ID'];
|
4285 |
}
|
4286 |
else {
|
4287 |
-
$opts[] = '|'.__($page['post_title'], 'wp-photo-album-plus').'|';
|
4288 |
$vals[] = $page['ID'];
|
4289 |
}
|
4290 |
}
|
@@ -4294,168 +4294,168 @@ global $wppa_subtab_names;
|
|
4294 |
$slug2 = 'wppa_search_oc';
|
4295 |
$opts2 = array('1','2','3','4','5');
|
4296 |
$vals2 = array('1','2','3','4','5');
|
4297 |
-
$html2 = '<div style="float:right;" ><div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug2, $opts2, $vals2).'</div>';
|
4298 |
|
4299 |
$html = $html1 . $html2;
|
4300 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
4301 |
|
4302 |
-
$name = __('Exclude separate', 'wp-photo-album-plus');
|
4303 |
-
$desc = __('Do not search \'separate\' albums.', 'wp-photo-album-plus');
|
4304 |
-
$help = __('When checked, albums (and photos in them) that have the parent set to --- separate --- will be excluded from being searched.', 'wp-photo-album-plus');
|
4305 |
-
$help .= '<br>'.__('Except when you start searching in a \'saparate\' album, with the "search in current section" box ticked.', 'wp-photo-album-plus');
|
4306 |
$slug = 'wppa_excl_sep';
|
4307 |
$html = wppa_checkbox($slug);
|
4308 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4309 |
|
4310 |
-
$name = __('Include tags', 'wp-photo-album-plus');
|
4311 |
-
$desc = __('Do also search the photo tags.', 'wp-photo-album-plus');
|
4312 |
-
$help = __('When checked, the tags of the photo will also be searched.', 'wp-photo-album-plus');
|
4313 |
$slug = 'wppa_search_tags';
|
4314 |
$html = wppa_checkbox($slug);
|
4315 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4316 |
|
4317 |
-
$name = __('Include categories', 'wp-photo-album-plus');
|
4318 |
-
$desc = __('Do also search the album categories.', 'wp-photo-album-plus');
|
4319 |
-
$help = __('When checked, the categories of the album will also be searched.', 'wp-photo-album-plus');
|
4320 |
$slug = 'wppa_search_cats';
|
4321 |
$html = wppa_checkbox($slug);
|
4322 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4323 |
|
4324 |
-
$name = __('Include comments', 'wp-photo-album-plus');
|
4325 |
-
$desc = __('Do also search the comments on photos.', 'wp-photo-album-plus');
|
4326 |
-
$help = __('When checked, the comments of the photos will also be searched.', 'wp-photo-album-plus');
|
4327 |
$slug = 'wppa_search_comments' ;
|
4328 |
$html = wppa_checkbox($slug);
|
4329 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
4330 |
|
4331 |
-
$name = __('Photos only', 'wp-photo-album-plus');
|
4332 |
-
$desc = __('Search for photos only.', 'wp-photo-album-plus');
|
4333 |
-
$help = __('When checked, only photos will be searched for.', 'wp-photo-album-plus');
|
4334 |
$slug = 'wppa_photos_only';
|
4335 |
$html = wppa_checkbox($slug);
|
4336 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
4337 |
|
4338 |
-
$name = __('Max albums found', 'wp-photo-album-plus');
|
4339 |
-
$desc = __('The maximum number of albums to be displayed.', 'wp-photo-album-plus');
|
4340 |
$help = '';
|
4341 |
$slug = 'wppa_max_search_albums';
|
4342 |
$html = wppa_input($slug, '50px');
|
4343 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
4344 |
|
4345 |
-
$name = __('Max photos found', 'wp-photo-album-plus');
|
4346 |
-
$desc = __('The maximum number of photos to be displayed.', 'wp-photo-album-plus');
|
4347 |
$help = '';
|
4348 |
$slug = 'wppa_max_search_photos';
|
4349 |
$html = wppa_input($slug, '50px');
|
4350 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
4351 |
|
4352 |
-
$name = __('Tags OR only', 'wp-photo-album-plus');
|
4353 |
-
$desc = __('No and / or buttons', 'wp-photo-album-plus');
|
4354 |
-
$help = __('Hide the and/or radiobuttons and do the or method in the multitag widget and shortcode.', 'wp-photo-album-plus');
|
4355 |
$slug = 'wppa_tags_or_only';
|
4356 |
$html = wppa_checkbox($slug);
|
4357 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
4358 |
|
4359 |
-
$name = __('Tags add Inverse', 'wp-photo-album-plus');
|
4360 |
-
$desc = __('Add a checkbox to invert the selection.', 'wp-photo-album-plus');
|
4361 |
-
$help = __('Adds an Invert (NOT) checkbox on the multitag widget and shortcode.', 'wp-photo-album-plus');
|
4362 |
$slug = 'wppa_tags_not_on';
|
4363 |
$html = wppa_checkbox($slug);
|
4364 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
4365 |
|
4366 |
-
$name = __('Floating searchtoken', 'wp-photo-album-plus');
|
4367 |
-
$desc = __('A match need not start at the first char.', 'wp-photo-album-plus');
|
4368 |
-
$help = __('A match is found while searching also when the entered token is somewhere in the middle of a word.', 'wp-photo-album-plus');
|
4369 |
$slug = 'wppa_wild_front';
|
4370 |
$html = wppa_checkbox($slug);
|
4371 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
4372 |
|
4373 |
-
$name = __('Search results display', 'wp-photo-album-plus');
|
4374 |
-
$desc = __('Select the way the search results should be displayed.', 'wp-photo-album-plus');
|
4375 |
-
$help = __('If you select anything different from "Albums and thumbnails", "Photos only" is assumed (item 6).', 'wp-photo-album-plus');
|
4376 |
$slug = 'wppa_search_display_type';
|
4377 |
-
$opts = array( __('Albums and thumbnails', 'wp-photo-album-plus'),
|
4378 |
-
__('Slideshow', 'wp-photo-album-plus'),
|
4379 |
-
__('Slideonly slideshow', 'wp-photo-album-plus'),
|
4380 |
-
__('Albums only', 'wp-photo-album-plus')
|
4381 |
);
|
4382 |
$vals = array( 'content', 'slide', 'slideonly', 'albums' );
|
4383 |
$html = wppa_select( $slug, $opts, $vals);
|
4384 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
4385 |
|
4386 |
-
$name = __('Name max length', 'wp-photo-album-plus');
|
4387 |
-
$desc = __('Max length of displayed photonames in supersearch selectionlist', 'wp-photo-album-plus');
|
4388 |
-
$help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus');
|
4389 |
$slug = 'wppa_ss_name_max';
|
4390 |
$html = $html = wppa_input($slug, '50px');
|
4391 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
4392 |
|
4393 |
-
$name = __('Text max length', 'wp-photo-album-plus');
|
4394 |
-
$desc = __('Max length of displayed photo text in supersearch selectionlist', 'wp-photo-album-plus');
|
4395 |
-
$help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus');
|
4396 |
$slug = 'wppa_ss_text_max';
|
4397 |
$html = $html = wppa_input($slug, '50px');
|
4398 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
4399 |
|
4400 |
-
$name = __('Search toptext', 'wp-photo-album-plus');
|
4401 |
-
$desc = __('The text at the top of the search box.', 'wp-photo-album-plus');
|
4402 |
-
$help = __('This is the equivalence of the text you can enter in the widget activation screen to show above the input box, but now for the search shortcode display.', 'wp-photo-album-plus');
|
4403 |
-
$help .= '<br>'.__('May contain unfiltered HTML.', 'wp-photo-album-plus');
|
4404 |
$slug = 'wppa_search_toptext';
|
4405 |
$html = wppa_textarea($slug, $name);
|
4406 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
4407 |
|
4408 |
-
$name = __('Section search text', 'wp-photo-album-plus');
|
4409 |
-
$desc = __('The labeltext at the checkbox for the \'Search in current section\' checkbox.', 'wp-photo-album-plus');
|
4410 |
$help = ' ';
|
4411 |
$slug = 'wppa_search_in_section';
|
4412 |
$html = wppa_input($slug, '300px;');
|
4413 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
4414 |
|
4415 |
-
$name = __('Results search text', 'wp-photo-album-plus');
|
4416 |
-
$desc = __('The labeltext at the checkbox for the \'Search in current results\' checkbox.', 'wp-photo-album-plus');
|
4417 |
$help = ' ';
|
4418 |
$slug = 'wppa_search_in_results';
|
4419 |
$html = wppa_input($slug, '300px;');
|
4420 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
4421 |
|
4422 |
-
$name = __('Minimum search token length', 'wp-photo-album-plus');
|
4423 |
-
$desc = __('The minmum number of chars in a search request.', 'wp-photo-album-plus');
|
4424 |
$help = '';
|
4425 |
$slug = 'wppa_search_min_length';
|
4426 |
$html = wppa_number($slug, '1', '6');
|
4427 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
4428 |
|
4429 |
-
$name = __('Exclude from search', 'wp-photo-album-plus');
|
4430 |
-
$desc = __('Exclude these words from search index.', 'wp-photo-album-plus');
|
4431 |
-
$help = __('Enter words separated by commas (,)', 'wp-photo-album-plus');
|
4432 |
$slug = 'wppa_search_user_void';
|
4433 |
$html = wppa_input($slug, '90%;');
|
4434 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
4435 |
|
4436 |
-
$name = __('Exclude numbers', 'wp-photo-album-plus');
|
4437 |
-
$desc = __('Exclude numbers from search index.', 'wp-photo-album-plus');
|
4438 |
-
$help = __('If ticked, photos and albums are not searchable by numbers.', 'wp-photo-album-plus');
|
4439 |
$slug = 'wppa_search_numbers_void';
|
4440 |
$html = wppa_checkbox($slug);
|
4441 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
4442 |
|
4443 |
-
$name = __('Ignore slash', 'wp-photo-album-plus');
|
4444 |
-
$desc = __('Ignore slash chracter (/).', 'wp-photo-album-plus');
|
4445 |
$help = '';
|
4446 |
$slug = 'wppa_index_ignore_slash';
|
4447 |
$html = wppa_checkbox($slug);
|
4448 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
4449 |
|
4450 |
-
$name = __('Search category box', 'wp-photo-album-plus');
|
4451 |
-
$desc = __('Add a category selection box', 'wp-photo-album-plus');
|
4452 |
$help = '';
|
4453 |
$slug = 'wppa_search_catbox';
|
4454 |
$html = wppa_checkbox($slug);
|
4455 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
4456 |
|
4457 |
-
$name = __('Search selection boxes', 'wp-photo-album-plus');
|
4458 |
-
$desc = __('Enter number of search selection boxes.', 'wp-photo-album-plus');
|
4459 |
$help = '';
|
4460 |
$slug = 'wppa_search_selboxes';
|
4461 |
$opts = array( '0', '1', '2', '3' );
|
@@ -4463,90 +4463,90 @@ global $wppa_subtab_names;
|
|
4463 |
$html = wppa_select( $slug, $opts, $vals );
|
4464 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
4465 |
|
4466 |
-
$name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '1');
|
4467 |
-
$desc = __('Enter caption text', 'wp-photo-album-plus');
|
4468 |
$help = '';
|
4469 |
$slug = 'wppa_search_caption_0';
|
4470 |
$html = wppa_input($slug, '150px;');
|
4471 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
4472 |
|
4473 |
-
$name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '1');
|
4474 |
-
$desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
|
4475 |
$help = '';
|
4476 |
$slug = 'wppa_search_selbox_0';
|
4477 |
$html = wppa_textarea($slug);
|
4478 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
4479 |
|
4480 |
-
$name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '2');
|
4481 |
-
$desc = __('Enter caption text', 'wp-photo-album-plus');
|
4482 |
$help = '';
|
4483 |
$slug = 'wppa_search_caption_1';
|
4484 |
$html = wppa_input($slug, '150px;');
|
4485 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
4486 |
|
4487 |
-
$name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '2');
|
4488 |
-
$desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
|
4489 |
$help = '';
|
4490 |
$slug = 'wppa_search_selbox_1';
|
4491 |
$html = wppa_textarea($slug);
|
4492 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
4493 |
|
4494 |
-
$name = sprintf(__('Box %s caption', 'wp-photo-album-plus'), '3');
|
4495 |
-
$desc = __('Enter caption text', 'wp-photo-album-plus');
|
4496 |
$help = '';
|
4497 |
$slug = 'wppa_search_caption_2';
|
4498 |
$html = wppa_input($slug, '150px;');
|
4499 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
4500 |
|
4501 |
-
$name = sprintf(__('Box %s content', 'wp-photo-album-plus'), '3');
|
4502 |
-
$desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus');
|
4503 |
$help = '';
|
4504 |
$slug = 'wppa_search_selbox_2';
|
4505 |
$html = wppa_textarea($slug);
|
4506 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
4507 |
|
4508 |
-
$name = __('Extended duplicate removal', 'wp-photo-album-plus');
|
4509 |
-
$desc = __('Remove found items from search when name, description and image are identical', 'wp-photo-album-plus');
|
4510 |
$help = '';
|
4511 |
$slug = 'wppa_extended_duplicate_remove';
|
4512 |
$html = wppa_checkbox($slug);
|
4513 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
4514 |
|
4515 |
-
$name = __('Search field placeholder', 'wp-photo-album-plus');
|
4516 |
-
$desc = __('The text of the placeholder', 'wp-photo-album-plus');
|
4517 |
$help = '';
|
4518 |
$slug = 'wppa_search_placeholder';
|
4519 |
$html = wppa_input($slug, '150px;');
|
4520 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
4521 |
|
4522 |
-
$name = __('Search form method', 'wp-photo-album-plus');
|
4523 |
-
$desc = __('Either "get" or "post"', 'wp-photo-album-plus');
|
4524 |
-
$help = __('May be set to "get" to avoid conflicts with other plugins or certain php versions', 'wp-photo-album-plus');
|
4525 |
$slug = 'wppa_search_form_method';
|
4526 |
$html = wppa_select($slug, array('post', 'get'), array('post', 'get'));
|
4527 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
4528 |
|
4529 |
-
$name = __('Use wppa search form', 'wp-photo-album-plus');
|
4530 |
-
$desc = __('Uses wppa specific form', 'wp-photo-album-plus');
|
4531 |
$help = __('You may need to enable this when other (search) plugins break the wppa search mechanism');
|
4532 |
$slug = 'wppa_use_wppa_search_form';
|
4533 |
$onch = '';
|
4534 |
$html = wppa_checkbox($slug, $onch);
|
4535 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
4536 |
|
4537 |
-
$name = __('List Index', 'wp-photo-album-plus');
|
4538 |
-
$desc = __('Show the content of the index table.', 'wp-photo-album-plus');
|
4539 |
$help = '';
|
4540 |
$slug1 = 'wppa_list_index_display_start';
|
4541 |
$slug2 = 'wppa_list_index';
|
4542 |
-
$html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus').' </small>'.wppa_input( $slug1, '150px' );
|
4543 |
$html2 = wppa_popup_button( $slug2, '30' );
|
4544 |
$html = $html1 . '<span style="float:left;" > </span>' . $html2;
|
4545 |
wppa_setting_new(false, '34', $name, $desc, $html, $help);
|
4546 |
|
4547 |
-
$name = __('Show empty search', 'wp-photo-album-plus');
|
4548 |
-
$desc = __('Display empty search message', 'wp-photo-album-plus');
|
4549 |
-
$help = __('Display a message when a search operation has an empty result', 'wp-photo-album-plus');
|
4550 |
$slug = 'wppa_show_empty_search';
|
4551 |
$html = wppa_checkbox($slug);
|
4552 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
@@ -4563,129 +4563,129 @@ global $wppa_subtab_names;
|
|
4563 |
wppa_setting_tab_description($desc);
|
4564 |
wppa_setting_box_header_new($tab);
|
4565 |
|
4566 |
-
$name = __('Widget width', 'wp-photo-album-plus');
|
4567 |
-
$desc = __('The useable width within widgets.', 'wp-photo-album-plus');
|
4568 |
-
$help = __('Widget width for photo of the day, general purpose (default), slideshow (default) and upload widgets.', 'wp-photo-album-plus');
|
4569 |
$slug = 'wppa_widget_width';
|
4570 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4571 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4572 |
|
4573 |
-
$name = __('TopTen count', 'wp-photo-album-plus');
|
4574 |
-
$desc = __('Number of photos in TopTen widget.', 'wp-photo-album-plus');
|
4575 |
-
$help = __('Enter the maximum number of rated photos in the TopTen widget.', 'wp-photo-album-plus');
|
4576 |
$slug1 = 'wppa_topten_count';
|
4577 |
-
$html1 = wppa_input($slug1, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4578 |
$slug2 = 'wppa_topten_non_zero';
|
4579 |
-
$html2 = wppa_checkbox($slug2).__('Non zero only', 'wp-photo-album-plus');
|
4580 |
wppa_setting_new($slug1, '2', $name, $desc, $html1.$html2, $help);
|
4581 |
|
4582 |
-
$name = __('TopTen size', 'wp-photo-album-plus');
|
4583 |
-
$desc = __('Size of thumbnails in TopTen widget.', 'wp-photo-album-plus');
|
4584 |
-
$help = __('Enter the size for the mini photos in the TopTen widget.', 'wp-photo-album-plus');
|
4585 |
-
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
|
4586 |
-
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
|
4587 |
$slug = 'wppa_topten_size';
|
4588 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4589 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4590 |
|
4591 |
-
$name = __('Comment count', 'wp-photo-album-plus');
|
4592 |
-
$desc = __('Number of entries in Comment widget.', 'wp-photo-album-plus');
|
4593 |
-
$help = __('Enter the maximum number of entries in the Comment widget.', 'wp-photo-album-plus');
|
4594 |
$slug = 'wppa_comten_count';
|
4595 |
-
$html = wppa_input($slug, '40px', '', __('entries', 'wp-photo-album-plus'));
|
4596 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4597 |
|
4598 |
-
$name = __('Comment size', 'wp-photo-album-plus');
|
4599 |
-
$desc = __('Size of thumbnails in Comment widget.', 'wp-photo-album-plus');
|
4600 |
-
$help = __('Enter the size for the mini photos in the Comment widget.', 'wp-photo-album-plus');
|
4601 |
-
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
|
4602 |
-
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
|
4603 |
$slug = 'wppa_comten_size';
|
4604 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4605 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
4606 |
|
4607 |
-
$name = __('Thumbnail count', 'wp-photo-album-plus');
|
4608 |
-
$desc = __('Number of photos in Thumbnail widget.', 'wp-photo-album-plus');
|
4609 |
-
$help = (__('Enter the maximum number of rated photos in the Thumbnail widget.', 'wp-photo-album-plus'));
|
4610 |
$slug = 'wppa_thumbnail_widget_count';
|
4611 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4612 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
4613 |
|
4614 |
-
$name = __('Thumbnail widget size', 'wp-photo-album-plus');
|
4615 |
-
$desc = __('Size of thumbnails in Thumbnail widget.', 'wp-photo-album-plus');
|
4616 |
-
$help = __('Enter the size for the mini photos in the Thumbnail widget.', 'wp-photo-album-plus');
|
4617 |
-
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
|
4618 |
-
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
|
4619 |
$slug = 'wppa_thumbnail_widget_size';
|
4620 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4621 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
4622 |
|
4623 |
-
$name = __('LasTen count', 'wp-photo-album-plus');
|
4624 |
-
$desc = __('Number of photos in Last Ten widget.', 'wp-photo-album-plus');
|
4625 |
-
$help = __('Enter the maximum number of photos in the LasTen widget.', 'wp-photo-album-plus');
|
4626 |
$slug = 'wppa_lasten_count';
|
4627 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4628 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
4629 |
|
4630 |
-
$name = __('LasTen size', 'wp-photo-album-plus');
|
4631 |
-
$desc = __('Size of thumbnails in Last Ten widget.', 'wp-photo-album-plus');
|
4632 |
-
$help = __('Enter the size for the mini photos in the LasTen widget.', 'wp-photo-album-plus');
|
4633 |
-
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
|
4634 |
-
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
|
4635 |
$slug = 'wppa_lasten_size';
|
4636 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4637 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
4638 |
|
4639 |
-
$name = __('Album widget count', 'wp-photo-album-plus');
|
4640 |
-
$desc = __('Number of albums in Album widget.', 'wp-photo-album-plus');
|
4641 |
-
$help = __('Enter the maximum number of thumbnail photos of albums in the Album widget.', 'wp-photo-album-plus');
|
4642 |
$slug = 'wppa_album_widget_count';
|
4643 |
-
$html = wppa_input($slug, '40px', '', __('albums', 'wp-photo-album-plus'));
|
4644 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
4645 |
|
4646 |
-
$name = __('Album widget size', 'wp-photo-album-plus');
|
4647 |
-
$desc = __('Size of thumbnails in Album widget.', 'wp-photo-album-plus');
|
4648 |
-
$help = __('Enter the size for the mini photos in the Album widget.', 'wp-photo-album-plus');
|
4649 |
-
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
|
4650 |
-
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
|
4651 |
$slug = 'wppa_album_widget_size';
|
4652 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4653 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
4654 |
|
4655 |
-
$name = __('FeaTen count', 'wp-photo-album-plus');
|
4656 |
-
$desc = __('Number of photos in Featured Ten widget.', 'wp-photo-album-plus');
|
4657 |
-
$help = __('Enter the maximum number of photos in the FeaTen widget.', 'wp-photo-album-plus');
|
4658 |
$slug = 'wppa_featen_count';
|
4659 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
4660 |
$clas = '';
|
4661 |
$tags = 'count,widget';
|
4662 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
4663 |
|
4664 |
-
$name = __('FeaTen size', 'wp-photo-album-plus');
|
4665 |
-
$desc = __('Size of thumbnails in Featured Ten widget.', 'wp-photo-album-plus');
|
4666 |
-
$help = __('Enter the size for the mini photos in the FeaTen widget.', 'wp-photo-album-plus');
|
4667 |
-
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus');
|
4668 |
-
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus');
|
4669 |
$slug = 'wppa_featen_size';
|
4670 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4671 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
4672 |
|
4673 |
-
$name = __('Tagcloud min size', 'wp-photo-album-plus');
|
4674 |
-
$desc = __('Minimal fontsize in tagclouds', 'wp-photo-album-plus');
|
4675 |
$help = '';
|
4676 |
$slug = 'wppa_tagcloud_min';
|
4677 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4678 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
4679 |
|
4680 |
-
$name = __('Tagcloud max size', 'wp-photo-album-plus');
|
4681 |
-
$desc = __('Maximal fontsize in tagclouds', 'wp-photo-album-plus');
|
4682 |
$help = '';
|
4683 |
$slug = 'wppa_tagcloud_max';
|
4684 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
4685 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
4686 |
|
4687 |
-
$name = __('Tagcloud character sizing', 'wp-photo-album-plus');
|
4688 |
-
$desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
|
4689 |
$help = '';
|
4690 |
$slug = 'wppa_tagcloud_formula';
|
4691 |
$opts = array('linear', 'quadratic', 'cubic');
|
@@ -4701,26 +4701,26 @@ global $wppa_subtab_names;
|
|
4701 |
wppa_setting_tab_description($desc);
|
4702 |
wppa_setting_box_header_new($tab);
|
4703 |
|
4704 |
-
$name = __('Big Browse Buttons in widget', 'wp-photo-album-plus');
|
4705 |
-
$desc = __('Enable invisible browsing buttons in widget slideshows.', 'wp-photo-album-plus');
|
4706 |
-
$help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus');
|
4707 |
-
$help .= '<br>'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
|
4708 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '2' );
|
4709 |
$slug = 'wppa_show_bbb_widget';
|
4710 |
$html = wppa_checkbox($slug);
|
4711 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4712 |
|
4713 |
-
$name = __('Ugly Browse Buttons in widget', 'wp-photo-album-plus');
|
4714 |
-
$desc = __('Enable ugly browsing buttons in widget slideshows.', 'wp-photo-album-plus');
|
4715 |
-
$help = __('If checked, the fullsize image is covered by browse buttons.', 'wp-photo-album-plus');
|
4716 |
-
$help .= '<br>'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus');
|
4717 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '2' );
|
4718 |
$slug = 'wppa_show_ubb_widget';
|
4719 |
$html = wppa_checkbox($slug);
|
4720 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4721 |
|
4722 |
-
$name = __('Album widget tooltip', 'wp-photo-album-plus');
|
4723 |
-
$desc = __('Show the album description on hoovering thumbnail in album widget', 'wp-photo-album-plus');
|
4724 |
$help = '';
|
4725 |
$slug = 'wppa_show_albwidget_tooltip';
|
4726 |
$html = wppa_checkbox($slug);
|
@@ -4734,30 +4734,30 @@ global $wppa_subtab_names;
|
|
4734 |
wppa_setting_tab_description($desc);
|
4735 |
wppa_setting_box_header_new($tab);
|
4736 |
|
4737 |
-
$name = __('QR Code widget size', 'wp-photo-album-plus');
|
4738 |
-
$desc = __('The size of the QR code display.', 'wp-photo-album-plus');
|
4739 |
$help = '';
|
4740 |
$slug = 'wppa_qr_size';
|
4741 |
-
$html = wppa_input($slug, '50px', '', __('pixels', 'wp-photo-album-plus'));
|
4742 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4743 |
|
4744 |
-
$name = __('QR color', 'wp-photo-album-plus');
|
4745 |
-
$desc = __('The display color of the qr code (dark)', 'wp-photo-album-plus');
|
4746 |
-
$help = __('This color MUST be given in hexadecimal format!', 'wp-photo-album-plus');
|
4747 |
$slug = 'wppa_qr_color';
|
4748 |
$html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
|
4749 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4750 |
|
4751 |
-
$name = __('QR background color', 'wp-photo-album-plus');
|
4752 |
-
$desc = __('The background color of the qr code (light)', 'wp-photo-album-plus');
|
4753 |
$help = '';
|
4754 |
$slug = 'wppa_qr_bgcolor';
|
4755 |
$html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
|
4756 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4757 |
|
4758 |
-
$name = __('QR cache', 'wp-photo-album-plus');
|
4759 |
-
$desc = __('Enable caching QR codes', 'wp-photo-album-plus') . ' ' . sprintf( __('So far %d cache hits, %d miss', 'wp-photo-album-plus'), wppa_get_option('wppa_qr_cache_hits', '0'), wppa_get_option('wppa_qr_cache_miss', '0'));
|
4760 |
-
$help = __('Enable this to avoid DoS on heavy loads on the qrserver', 'wp-photo-album-plus'); $slug = 'wppa_qr_cache';
|
4761 |
$html = wppa_checkbox($slug);
|
4762 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4763 |
|
@@ -4773,37 +4773,37 @@ global $wppa_subtab_names;
|
|
4773 |
wppa_setting_tab_description($desc);
|
4774 |
wppa_setting_box_header_new($tab);
|
4775 |
|
4776 |
-
$name = __('Photo names in urls', 'wp-photo-album-plus');
|
4777 |
-
$desc = __('Display photo names in urls.', 'wp-photo-album-plus');
|
4778 |
-
$help = __('Urls to wppa+ displays will contain photonames instead of numbers.', 'wp-photo-album-plus');
|
4779 |
-
$help .= '<br>'.__('It is your responsibility to avoid duplicate names of photos in the same album.', 'wp-photo-album-plus');
|
4780 |
$slug = 'wppa_use_photo_names_in_urls';
|
4781 |
$html = wppa_checkbox($slug);
|
4782 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4783 |
|
4784 |
-
$name = __('Album names in urls', 'wp-photo-album-plus');
|
4785 |
-
$desc = __('Display album names in urls.', 'wp-photo-album-plus');
|
4786 |
-
$help = __('Urls to wppa+ displays will contain albumnames instead of numbers.', 'wp-photo-album-plus');
|
4787 |
-
$help .= '<br>'.__('It is your responsibility to avoid duplicate names of albums in the system.', 'wp-photo-album-plus');
|
4788 |
$slug = 'wppa_use_album_names_in_urls';
|
4789 |
$html = wppa_checkbox($slug);
|
4790 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4791 |
|
4792 |
-
$name = __('Use short query args', 'wp-photo-album-plus');
|
4793 |
-
$desc = __('Use &album=... &photo=...', 'wp-photo-album-plus');
|
4794 |
-
$help = __('Urls to wppa+ displays will contain &album=... &photo=... instead of &wppa-album=... &wppa-photo=...', 'wp-photo-album-plus');
|
4795 |
-
$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');
|
4796 |
$slug = 'wppa_use_short_qargs';
|
4797 |
$html = wppa_checkbox($slug);
|
4798 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4799 |
|
4800 |
-
$name = __('Enable pretty links', 'wp-photo-album-plus');
|
4801 |
-
$desc = __('Enable the generation and understanding of pretty links.', 'wp-photo-album-plus');
|
4802 |
-
$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');
|
4803 |
-
$help .= '<br>'.__('These types of links will be interpreted and cause a redirection on entering.', 'wp-photo-album-plus');
|
4804 |
-
$help .= '<br>'.__('It is recommended to check this box. It shortens links dramatically and simplifies qr codes.', 'wp-photo-album-plus');
|
4805 |
-
$help .= '<br>'.__('However, you may encounter conflicts with themes and/or other plugins, so test it throughly!', 'wp-photo-album-plus');
|
4806 |
-
$help .= '<br>'.__('Photo names in urls must be UNchecked for this setting to work!', 'wp-photo-album-plus');
|
4807 |
$help .= '<br>'.wppa_see_also( 'links', '1', '1' );
|
4808 |
$slug = 'wppa_use_pretty_links';
|
4809 |
$opts = array( __( 'None', 'wp-photo-album-plus' ),
|
@@ -4814,16 +4814,16 @@ global $wppa_subtab_names;
|
|
4814 |
$html = wppa_select($slug, $opts, $vals );
|
4815 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4816 |
|
4817 |
-
$name = __('Enable encrypted links', 'wp-photo-album-plus');
|
4818 |
-
$desc = __('Encrypt album and photo ids in links.', 'wp-photo-album-plus');
|
4819 |
$help = '';
|
4820 |
$slug = 'wppa_use_encrypted_links';
|
4821 |
$onch = 'wppaRefreshAfter();';
|
4822 |
$html = wppa_checkbox($slug, $onch);
|
4823 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
4824 |
|
4825 |
-
$name = __('Refuse unencrypted', 'wp-photo-album-plus');
|
4826 |
-
$desc = __('When encrypted is enabled, refuse unencrypted urls.', 'wp-photo-album-plus');
|
4827 |
$help = '';
|
4828 |
$slug = 'wppa_refuse_unencrypted';
|
4829 |
$html = wppa_checkbox($slug);
|
@@ -4835,23 +4835,23 @@ global $wppa_subtab_names;
|
|
4835 |
{
|
4836 |
$desc = $wppa_subtab_names[$tab]['2'];
|
4837 |
wppa_setting_tab_description($desc);
|
4838 |
-
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
4839 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
4840 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
4841 |
-
__('Link type', 'wp-photo-album-plus') => 'auto;',
|
4842 |
-
__('Landing page', 'wp-photo-album-plus') => 'auto;',
|
4843 |
-
__('New tab', 'wp-photo-album-plus') => '80px;',
|
4844 |
-
__('PSO', 'wp-photo-album-plus') => '80px;',
|
4845 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
4846 |
);
|
4847 |
wppa_setting_box_header_new($tab, $coldef);
|
4848 |
|
4849 |
-
$name = __('Cover Image', 'wp-photo-album-plus');
|
4850 |
-
$desc = __('The link from the cover image of an album.', 'wp-photo-album-plus');
|
4851 |
-
$help = __('Select the type of link the coverphoto points to.', 'wp-photo-album-plus');
|
4852 |
-
$help .= '<br>'.__('The link from the album title can be configured on the Edit Album page.', 'wp-photo-album-plus');
|
4853 |
-
$help .= '<br>'.__('This link will be used for the photo also if you select: same as title.', 'wp-photo-album-plus');
|
4854 |
-
$help .= '<br>'.__('If you specify New Tab on this line, all links from the cover will open a new tab,', 'wp-photo-album-plus');
|
4855 |
$slug1 = 'wppa_coverimg_linktype';
|
4856 |
$slug2 = 'wppa_coverimg_linkpage';
|
4857 |
wppa_verify_page($slug2);
|
@@ -4859,11 +4859,11 @@ global $wppa_subtab_names;
|
|
4859 |
$slug4 = 'wppa_coverimg_overrule';
|
4860 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
4861 |
$opts = array(
|
4862 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
4863 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
4864 |
-
__('same as title.', 'wp-photo-album-plus'),
|
4865 |
-
__('lightbox.', 'wp-photo-album-plus'),
|
4866 |
-
__('a slideshow starting at the photo', 'wp-photo-album-plus')
|
4867 |
);
|
4868 |
$vals = array(
|
4869 |
'none',
|
@@ -4880,11 +4880,11 @@ global $wppa_subtab_names;
|
|
4880 |
$html = array($html1, $html2, $html3, $html4);
|
4881 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4882 |
|
4883 |
-
$name = __('Thumbnail', 'wp-photo-album-plus');
|
4884 |
-
$desc = __('Thumbnail link.', 'wp-photo-album-plus');
|
4885 |
-
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
|
4886 |
-
$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');
|
4887 |
-
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
|
4888 |
$slug1 = 'wppa_thumb_linktype';
|
4889 |
$slug2 = 'wppa_thumb_linkpage';
|
4890 |
wppa_verify_page($slug2);
|
@@ -4892,15 +4892,15 @@ global $wppa_subtab_names;
|
|
4892 |
$slug4 = 'wppa_thumb_overrule';
|
4893 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
4894 |
$opts = array(
|
4895 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
4896 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
4897 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
4898 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
4899 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
4900 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
4901 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
4902 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
4903 |
-
__('lightbox.', 'wp-photo-album-plus')
|
4904 |
);
|
4905 |
$vals = array(
|
4906 |
'none',
|
@@ -4914,7 +4914,7 @@ global $wppa_subtab_names;
|
|
4914 |
'lightbox'
|
4915 |
);
|
4916 |
if ( wppa_switch( 'auto_page') ) {
|
4917 |
-
$opts[] = __('Auto Page', 'wp-photo-album-plus');
|
4918 |
$vals[] = 'autopage';
|
4919 |
}
|
4920 |
$html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
|
@@ -4925,11 +4925,11 @@ global $wppa_subtab_names;
|
|
4925 |
$html = array($html1, $html2, $html3, $html4);
|
4926 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4927 |
|
4928 |
-
$name = __('Sphoto', 'wp-photo-album-plus');
|
4929 |
-
$desc = __('Single photo link.', 'wp-photo-album-plus');
|
4930 |
-
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
|
4931 |
-
$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');
|
4932 |
-
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
|
4933 |
$slug1 = 'wppa_sphoto_linktype';
|
4934 |
$slug2 = 'wppa_sphoto_linkpage';
|
4935 |
wppa_verify_page($slug2);
|
@@ -4937,12 +4937,12 @@ global $wppa_subtab_names;
|
|
4937 |
$slug4 = 'wppa_sphoto_overrule';
|
4938 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
4939 |
$opts = array(
|
4940 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
4941 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
4942 |
-
__('the content of the album.', 'wp-photo-album-plus'),
|
4943 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
4944 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
4945 |
-
__('lightbox.', 'wp-photo-album-plus')
|
4946 |
);
|
4947 |
$vals = array(
|
4948 |
'none',
|
@@ -4960,11 +4960,11 @@ global $wppa_subtab_names;
|
|
4960 |
$html = array($html1, $html2, $html3, $html4);
|
4961 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4962 |
|
4963 |
-
$name = __('Mphoto', 'wp-photo-album-plus');
|
4964 |
-
$desc = __('Media-like (like WP photo with caption) photo link.', 'wp-photo-album-plus');
|
4965 |
-
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
|
4966 |
-
$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');
|
4967 |
-
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
|
4968 |
$slug1 = 'wppa_mphoto_linktype';
|
4969 |
$slug2 = 'wppa_mphoto_linkpage';
|
4970 |
wppa_verify_page($slug2);
|
@@ -4979,11 +4979,11 @@ global $wppa_subtab_names;
|
|
4979 |
$html = array($html1, $html2, $html3, $html4);
|
4980 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4981 |
|
4982 |
-
$name = __('Xphoto', 'wp-photo-album-plus');
|
4983 |
-
$desc = __('Media-like (like WP photo with - extended - caption) photo link.', 'wp-photo-album-plus');
|
4984 |
-
$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');
|
4985 |
-
$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');
|
4986 |
-
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
|
4987 |
$slug1 = 'wppa_xphoto_linktype';
|
4988 |
$slug2 = 'wppa_xphoto_linkpage';
|
4989 |
wppa_verify_page($slug2);
|
@@ -4998,10 +4998,10 @@ global $wppa_subtab_names;
|
|
4998 |
$html = array($html1, $html2, $html3, $html4);
|
4999 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
5000 |
|
5001 |
-
$name = __('Slideshow', 'wp-photo-album-plus');
|
5002 |
-
$desc = __('Slideshow fullsize link', 'wp-photo-album-plus');
|
5003 |
-
$help = __('You can overrule lightbox but not big browse buttons with the photo specifc link.', 'wp-photo-album-plus');
|
5004 |
-
$help .= '\n\n* '.__('fullsize slideshow can only be set by the WPPA_SET shortcode.', 'wp-photo-album-plus');
|
5005 |
$slug1 = 'wppa_slideshow_linktype';
|
5006 |
$slug2 = 'wppa_slideshow_linkpage';
|
5007 |
wppa_verify_page($slug2);
|
@@ -5009,15 +5009,15 @@ global $wppa_subtab_names;
|
|
5009 |
$slug4 = 'wppa_slideshow_overrule';
|
5010 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5011 |
$opts = array(
|
5012 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
5013 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5014 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5015 |
-
__('lightbox.', 'wp-photo-album-plus'),
|
5016 |
-
__('lightbox single photos.', 'wp-photo-album-plus'),
|
5017 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
5018 |
-
__('the thumbnails.', 'wp-photo-album-plus'),
|
5019 |
-
__('same as film link', 'wp-photo-album-plus'),
|
5020 |
-
__('fullsize slideshow', 'wp-photo-album-plus') . '*|',
|
5021 |
);
|
5022 |
$vals = array(
|
5023 |
'none',
|
@@ -5038,15 +5038,15 @@ global $wppa_subtab_names;
|
|
5038 |
$html = array($html1, $html2, $html3, $html4);
|
5039 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
5040 |
|
5041 |
-
$name = __('Film linktype', 'wp-photo-album-plus');
|
5042 |
-
$desc = __('Direct access goto image in:', 'wp-photo-album-plus');
|
5043 |
-
$help = __('Select the action to be taken when the user clicks on a filmstrip image.', 'wp-photo-album-plus');
|
5044 |
$slug1 = 'wppa_film_linktype';
|
5045 |
$slug3 = 'wppa_film_blank';
|
5046 |
$slug4 = 'wppa_film_overrule';
|
5047 |
$opts = array(
|
5048 |
-
__('slideshow window', 'wp-photo-album-plus'),
|
5049 |
-
__('lightbox overlay', 'wp-photo-album-plus')
|
5050 |
);
|
5051 |
$vals = array(
|
5052 |
'slideshow',
|
@@ -5059,11 +5059,11 @@ global $wppa_subtab_names;
|
|
5059 |
$html = array($html1, $html2, $html3, $html4);
|
5060 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
5061 |
|
5062 |
-
$name = __('Grid', 'wp-photo-album-plus');
|
5063 |
-
$desc = __('Grid photo link.', 'wp-photo-album-plus');
|
5064 |
-
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus');
|
5065 |
-
$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');
|
5066 |
-
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus');
|
5067 |
$slug1 = 'wppa_grid_linktype';
|
5068 |
$slug2 = 'wppa_grid_linkpage';
|
5069 |
wppa_verify_page($slug2);
|
@@ -5071,11 +5071,11 @@ global $wppa_subtab_names;
|
|
5071 |
$slug4 = 'wppa_grid_overrule';
|
5072 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5073 |
$opts = array(
|
5074 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
5075 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5076 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
5077 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5078 |
-
__('lightbox.', 'wp-photo-album-plus')
|
5079 |
);
|
5080 |
$vals = array(
|
5081 |
'none',
|
@@ -5100,10 +5100,10 @@ global $wppa_subtab_names;
|
|
5100 |
wppa_setting_tab_description($desc);
|
5101 |
wppa_setting_box_header_new($tab, $coldef);
|
5102 |
|
5103 |
-
$name = __('PotdWidget', 'wp-photo-album-plus');
|
5104 |
-
$desc = __('Photo Of The Day widget link.', 'wp-photo-album-plus');
|
5105 |
-
$help = __('Select the type of link the photo of the day points to.', 'wp-photo-album-plus');
|
5106 |
-
$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');
|
5107 |
$slug1 = 'wppa_potd_linktype';
|
5108 |
$slug2 = 'wppa_potd_linkpage';
|
5109 |
wppa_verify_page($slug2);
|
@@ -5111,14 +5111,14 @@ global $wppa_subtab_names;
|
|
5111 |
$slug4 = 'wppa_potdwidget_overrule';
|
5112 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5113 |
$opts = array(
|
5114 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
5115 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5116 |
-
__('defined on widget admin page.', 'wp-photo-album-plus'),
|
5117 |
-
__('the content of the album.', 'wp-photo-album-plus'),
|
5118 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
5119 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5120 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
5121 |
-
__('lightbox.', 'wp-photo-album-plus')
|
5122 |
);
|
5123 |
$vals = array(
|
5124 |
'none',
|
@@ -5138,9 +5138,9 @@ global $wppa_subtab_names;
|
|
5138 |
$html = array($html1, $html2, $html3, $html4);
|
5139 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
5140 |
|
5141 |
-
$name = __('SlideWidget', 'wp-photo-album-plus');
|
5142 |
-
$desc = __('Slideshow widget photo link.', 'wp-photo-album-plus');
|
5143 |
-
$help = __('Select the type of link the slideshow photos point to.', 'wp-photo-album-plus');
|
5144 |
$slug1 = 'wppa_slideonly_widget_linktype';
|
5145 |
$slug2 = 'wppa_slideonly_widget_linkpage';
|
5146 |
wppa_verify_page($slug2);
|
@@ -5148,14 +5148,14 @@ global $wppa_subtab_names;
|
|
5148 |
$slug4 = 'wppa_sswidget_overrule';
|
5149 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5150 |
$opts = array(
|
5151 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
5152 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5153 |
-
__('defined at widget activation.', 'wp-photo-album-plus'),
|
5154 |
-
__('the content of the album.', 'wp-photo-album-plus'),
|
5155 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
5156 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5157 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
5158 |
-
__('lightbox.', 'wp-photo-album-plus')
|
5159 |
);
|
5160 |
$vals = array(
|
5161 |
'none',
|
@@ -5175,11 +5175,11 @@ global $wppa_subtab_names;
|
|
5175 |
$html = array($html1, $html2, $html3, $html4);
|
5176 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
5177 |
|
5178 |
-
$name = __('Album widget', 'wp-photo-album-plus');
|
5179 |
-
$desc = __('Album widget thumbnail link', 'wp-photo-album-plus');
|
5180 |
-
$help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
|
5181 |
'<br>' .
|
5182 |
-
__('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');
|
5183 |
$slug1 = 'wppa_album_widget_linktype';
|
5184 |
$slug2 = 'wppa_album_widget_linkpage';
|
5185 |
wppa_verify_page($slug2);
|
@@ -5187,10 +5187,10 @@ global $wppa_subtab_names;
|
|
5187 |
$slug4 = 'wppa_album_widget_overrule';
|
5188 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5189 |
$opts = array(
|
5190 |
-
__('subalbums and thumbnails.', 'wp-photo-album-plus'),
|
5191 |
-
__('slideshow', 'wp-photo-album-plus'),
|
5192 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
5193 |
-
__('lightbox', 'wp-photo-album-plus'),
|
5194 |
);
|
5195 |
$vals = array(
|
5196 |
'content',
|
@@ -5202,15 +5202,15 @@ global $wppa_subtab_names;
|
|
5202 |
$npag = wppa_need_page($slug1);
|
5203 |
$html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
|
5204 |
$html3 = $npag ? wppa_checkbox($slug3) : '';
|
5205 |
-
$html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO </span>'.wppa_checkbox($slug4);
|
5206 |
$html = array($html1, $html2, $html3, $html4);
|
5207 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
5208 |
|
5209 |
-
$name = __('Album navigator widget', 'wp-photo-album-plus');
|
5210 |
-
$desc = __('Album navigator widget link', 'wp-photo-album-plus');
|
5211 |
-
$help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus') .
|
5212 |
'<br>' .
|
5213 |
-
__('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');
|
5214 |
$slug1 = 'wppa_album_navigator_widget_linktype';
|
5215 |
$slug2 = 'wppa_album_navigator_widget_linkpage';
|
5216 |
wppa_verify_page($slug2);
|
@@ -5218,11 +5218,11 @@ global $wppa_subtab_names;
|
|
5218 |
$slug4 = 'wppa_album_navigator_widget_overrule';
|
5219 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5220 |
$opts = array(
|
5221 |
-
__('thumbnails', 'wp-photo-album-plus'),
|
5222 |
-
__('slideshow', 'wp-photo-album-plus'),
|
5223 |
-
__('subalbums and thumbnails', 'wp-photo-album-plus'),
|
5224 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
5225 |
-
__('lightbox', 'wp-photo-album-plus'),
|
5226 |
);
|
5227 |
$vals = array(
|
5228 |
'thumbs',
|
@@ -5235,13 +5235,13 @@ global $wppa_subtab_names;
|
|
5235 |
$npag = wppa_need_page($slug1);
|
5236 |
$html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
|
5237 |
$html3 = $npag ? wppa_checkbox($slug3) : '';
|
5238 |
-
$html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus')).'" style="float:left; cursor:pointer;" >ASO </span>'.wppa_checkbox($slug4);
|
5239 |
$html = array($html1, $html2, $html3, $html4);
|
5240 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
5241 |
|
5242 |
-
$name = __('ThumbnailWidget', 'wp-photo-album-plus');
|
5243 |
-
$desc = __('Thumbnail widget photo link.', 'wp-photo-album-plus');
|
5244 |
-
$help = __('Select the type of link the thumbnail photos point to.', 'wp-photo-album-plus');
|
5245 |
$slug1 = 'wppa_thumbnail_widget_linktype';
|
5246 |
$slug2 = 'wppa_thumbnail_widget_linkpage';
|
5247 |
wppa_verify_page($slug2);
|
@@ -5249,14 +5249,14 @@ global $wppa_subtab_names;
|
|
5249 |
$slug4 = 'wppa_thumbnail_widget_overrule';
|
5250 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5251 |
$opts = array(
|
5252 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
5253 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5254 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
5255 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5256 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
5257 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
5258 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
5259 |
-
__('lightbox.', 'wp-photo-album-plus')
|
5260 |
);
|
5261 |
$vals = array(
|
5262 |
'none',
|
@@ -5276,9 +5276,9 @@ global $wppa_subtab_names;
|
|
5276 |
$html = array($html1, $html2, $html3, $html4);
|
5277 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
5278 |
|
5279 |
-
$name = __('TopTenWidget', 'wp-photo-album-plus');
|
5280 |
-
$desc = __('TopTen widget photo link.', 'wp-photo-album-plus');
|
5281 |
-
$help = __('Select the type of link the top ten photos point to.', 'wp-photo-album-plus');
|
5282 |
$slug1 = 'wppa_topten_widget_linktype';
|
5283 |
$slug2 = 'wppa_topten_widget_linkpage';
|
5284 |
wppa_verify_page($slug2);
|
@@ -5286,17 +5286,17 @@ global $wppa_subtab_names;
|
|
5286 |
$slug4 = 'wppa_topten_overrule';
|
5287 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5288 |
$opts = array(
|
5289 |
-
__('no link at all.', 'wp-photo-album-plus'),
|
5290 |
-
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5291 |
-
__('the content of the virtual topten album.', 'wp-photo-album-plus'),
|
5292 |
-
__('the content of the thumbnails album.', 'wp-photo-album-plus'),
|
5293 |
-
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
5294 |
-
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
5295 |
-
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5296 |
-
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
5297 |
-
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
5298 |
-
__('a plain page without a querystring.', 'wp-photo-album-plus'),
|
5299 |
-
__('lightbox.', 'wp-photo-album-plus')
|
5300 |
);
|
5301 |
$vals = array(
|
5302 |
'none',
|
@@ -5319,9 +5319,9 @@ global $wppa_subtab_names;
|
|
5319 |
$html = array($html1, $html2, $html3, $html4);
|
5320 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
5321 |
|
5322 |
-
$name = __('TopTenWidget', 'wp-photo-album-plus');
|
5323 |
-
$desc = __('TopTen widget album linkpage.', 'wp-photo-album-plus');
|
5324 |
-
$help = __('Select the linkpage the top ten albums point to.', 'wp-photo-album-plus');
|
5325 |
$slug1 = '';
|
5326 |
$slug2 = 'wppa_topten_widget_album_linkpage';
|
5327 |
wppa_verify_page($slug2);
|
@@ -5336,9 +5336,9 @@ global $wppa_subtab_names;
|
|
5336 |
$clas = 'wppa_rating';
|
5337 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
5338 |
|
5339 |
-
$name = __('LasTenWidget', 'wp-photo-album-plus');
|
5340 |
-
$desc = __('Last Ten widget photo link.', 'wp-photo-album-plus');
|
5341 |
-
$help = __('Select the type of link the last ten photos point to.', 'wp-photo-album-plus');
|
5342 |
$slug1 = 'wppa_lasten_widget_linktype';
|
5343 |
$slug2 = 'wppa_lasten_widget_linkpage';
|
5344 |
wppa_verify_page($slug2);
|
@@ -5353,9 +5353,9 @@ global $wppa_subtab_names;
|
|
5353 |
$html = array($html1, $html2, $html3, $html4);
|
5354 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
5355 |
|
5356 |
-
$name = __('CommentWidget', 'wp-photo-album-plus');
|
5357 |
-
$desc = __('Comment widget photo link.', 'wp-photo-album-plus');
|
5358 |
-
$help = __('Select the type of link the comment widget photos point to.', 'wp-photo-album-plus');
|
5359 |
$slug1 = 'wppa_comment_widget_linktype';
|
5360 |
$slug2 = 'wppa_comment_widget_linkpage';
|
5361 |
wppa_verify_page($slug2);
|
@@ -5370,9 +5370,9 @@ global $wppa_subtab_names;
|
|
5370 |
$html = array($html1, $html2, $html3, $html4);
|
5371 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
5372 |
|
5373 |
-
$name = __('FeaTenWidget', 'wp-photo-album-plus');
|
5374 |
-
$desc = __('FeaTen widget photo link.', 'wp-photo-album-plus');
|
5375 |
-
$help = __('Select the type of link the featured ten photos point to.', 'wp-photo-album-plus');
|
5376 |
$slug1 = 'wppa_featen_widget_linktype';
|
5377 |
$slug2 = 'wppa_featen_widget_linkpage';
|
5378 |
wppa_verify_page($slug2);
|
@@ -5387,10 +5387,10 @@ global $wppa_subtab_names;
|
|
5387 |
$html = array($html1, $html2, $html3, $html4);
|
5388 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
5389 |
|
5390 |
-
$name = __('Tagcloud Link', 'wp-photo-album-plus');
|
5391 |
-
$desc = __('Configure the link from the tags in the tag cloud.', 'wp-photo-album-plus');
|
5392 |
-
$help = __('Link the tag words to either the thumbnails or the slideshow.', 'wp-photo-album-plus');
|
5393 |
-
$help .= '<br>'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
|
5394 |
$slug1 = 'wppa_tagcloud_linktype';
|
5395 |
$slug2 = 'wppa_tagcloud_linkpage';
|
5396 |
wppa_verify_page($slug2);
|
@@ -5398,8 +5398,8 @@ global $wppa_subtab_names;
|
|
5398 |
$slug4 = 'wppa_tagcloud_linkpage_oc';
|
5399 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5400 |
$opts1 = array(
|
5401 |
-
__('thumbnails', 'wp-photo-album-plus'),
|
5402 |
-
__('slideshow', 'wp-photo-album-plus')
|
5403 |
);
|
5404 |
$vals1 = array(
|
5405 |
'album',
|
@@ -5409,19 +5409,19 @@ global $wppa_subtab_names;
|
|
5409 |
$vals4 = array('1','2','3','4','5');
|
5410 |
$html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
|
5411 |
$opts = $opts_page_auto;
|
5412 |
-
$opts[] = __('--- the same page ---', 'wp-photo-album-plus');
|
5413 |
$vals = $vals_page;
|
5414 |
$vals[] = '-1';
|
5415 |
$html2 = wppa_select($slug2, $opts, $vals, 'wppaRefreshAfter();');
|
5416 |
$html3 = wppa_checkbox($slug3);
|
5417 |
-
$html4 = '<div style="font-size:9px;foat:left;" class="'.$clas.'" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
|
5418 |
$html = array($html1, $html2, $html3, $html4);
|
5419 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
5420 |
|
5421 |
-
$name = __('Multitag Link', 'wp-photo-album-plus');
|
5422 |
-
$desc = __('Configure the link from the multitag selection.', 'wp-photo-album-plus');
|
5423 |
-
$help = __('Link to either the thumbnails or the slideshow.', 'wp-photo-album-plus');
|
5424 |
-
$help .= '<br>'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
|
5425 |
$slug1 = 'wppa_multitag_linktype';
|
5426 |
$slug2 = 'wppa_multitag_linkpage';
|
5427 |
wppa_verify_page($slug2);
|
@@ -5429,8 +5429,8 @@ global $wppa_subtab_names;
|
|
5429 |
$slug4 = 'wppa_multitag_linkpage_oc';
|
5430 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5431 |
$opts1 = array(
|
5432 |
-
__('thumbnails', 'wp-photo-album-plus'),
|
5433 |
-
__('slideshow', 'wp-photo-album-plus')
|
5434 |
);
|
5435 |
$vals1 = array(
|
5436 |
'album',
|
@@ -5440,17 +5440,17 @@ global $wppa_subtab_names;
|
|
5440 |
$vals4 = array('1','2','3','4','5');
|
5441 |
$html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
|
5442 |
$opts = $opts_page_auto;
|
5443 |
-
$opts[] = __('--- the same page ---', 'wp-photo-album-plus');
|
5444 |
$vals = $vals_page;
|
5445 |
$vals[] = '-1';
|
5446 |
$html2 = wppa_select($slug2, $opts, $vals);
|
5447 |
$html3 = wppa_checkbox($slug3);
|
5448 |
-
$html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
|
5449 |
$html = array($html1, $html2, $html3, $html4);
|
5450 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
5451 |
|
5452 |
-
$name = __('Bestof Landing', 'wp-photo-album-plus');
|
5453 |
-
$desc = __('Select the landing page for the BestOf Widget / Box', 'wp-photo-album-plus');
|
5454 |
$help = '';
|
5455 |
$slug1 = '';
|
5456 |
$slug2 = 'wppa_bestof_widget_linkpage';
|
@@ -5465,11 +5465,11 @@ global $wppa_subtab_names;
|
|
5465 |
$html = array($html1, $html2, $html3, $html4);
|
5466 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
5467 |
|
5468 |
-
$name = __('SM widget return', 'wp-photo-album-plus');
|
5469 |
-
$desc = __('Select the return link for social media from widgets', 'wp-photo-album-plus');
|
5470 |
-
$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');
|
5471 |
-
$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');
|
5472 |
-
$help .= '<br>'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus');
|
5473 |
$slug1 = 'wppa_widget_sm_linktype';
|
5474 |
$slug2 = 'wppa_widget_sm_linkpage';
|
5475 |
wppa_verify_page($slug2);
|
@@ -5477,8 +5477,8 @@ global $wppa_subtab_names;
|
|
5477 |
$slug4 = 'wppa_widget_sm_linkpage_oc';
|
5478 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5479 |
$opts = array(
|
5480 |
-
__('Home page', 'wp-photo-album-plus'),
|
5481 |
-
__('Landing page', 'wp-photo-album-plus')
|
5482 |
);
|
5483 |
$vals = array(
|
5484 |
'home',
|
@@ -5489,7 +5489,7 @@ global $wppa_subtab_names;
|
|
5489 |
$html3 = '';
|
5490 |
$opts4 = array('1','2','3','4','5');
|
5491 |
$vals4 = array('1','2','3','4','5');
|
5492 |
-
$html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus').'</div>'.wppa_select($slug4, $opts4, $vals4);
|
5493 |
$html = array($html1, $html2, $html3, $html4);
|
5494 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
5495 |
|
@@ -5501,15 +5501,15 @@ global $wppa_subtab_names;
|
|
5501 |
wppa_setting_tab_description($desc);
|
5502 |
wppa_setting_box_header_new($tab, $coldef);
|
5503 |
|
5504 |
-
$name = __('Download Link (aka Art Monkey link)', 'wp-photo-album-plus');
|
5505 |
-
$desc = __('Makes the photo name a download button.', 'wp-photo-album-plus');
|
5506 |
-
$help = __('Link Photo name in slideshow to file or zip with photoname as filename.', 'wp-photo-album-plus');
|
5507 |
$slug = 'wppa_art_monkey_link';
|
5508 |
$opts = array(
|
5509 |
-
__('--- none ---', 'wp-photo-album-plus'),
|
5510 |
-
__('image file', 'wp-photo-album-plus'),
|
5511 |
-
__('zipped image', 'wp-photo-album-plus'),
|
5512 |
-
__('New style', 'wp-photo-album-plus'),
|
5513 |
);
|
5514 |
$vals = array(
|
5515 |
'none',
|
@@ -5520,34 +5520,34 @@ global $wppa_subtab_names;
|
|
5520 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();');
|
5521 |
wppa_setting_new($slug, '1', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5522 |
|
5523 |
-
$name = __('Art Monkey Source', 'wp-photo-album-plus');
|
5524 |
-
$desc = __('Use Source file for art monkey link if available.', 'wp-photo-album-plus');
|
5525 |
$help = '';
|
5526 |
$slug = 'wppa_artmonkey_use_source';
|
5527 |
$html = wppa_checkbox($slug);
|
5528 |
wppa_setting_new($slug, '2', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5529 |
|
5530 |
if ( wppa_opt( 'art_monkey_link' ) == 'new' ) {
|
5531 |
-
$name = __('Art Monkey new filetypes', 'wp-photo-album-plus');
|
5532 |
-
$desc = __('Select filetypes to be downloadable when link is New Style', 'wp-photo-album-plus');
|
5533 |
$help = '';
|
5534 |
$slug = 'wppa_art_monkey_new_types';
|
5535 |
-
$opts = array( __('Photos only', 'wp-photo-album-plus'),
|
5536 |
-
__('PDFs only', 'wp-photo-album-plus'),
|
5537 |
-
__('Both photos and PDFs', 'wp-photo-album-plus')
|
5538 |
);
|
5539 |
$vals = array('photo','pdf','photo-pdf');
|
5540 |
$html = wppa_select($slug, $opts, $vals);
|
5541 |
wppa_setting_new($slug, '3', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5542 |
}
|
5543 |
|
5544 |
-
$name = __('Art Monkey Display', 'wp-photo-album-plus');
|
5545 |
-
$desc = __('Select button or link ( text ).', 'wp-photo-album-plus');
|
5546 |
$help = '';
|
5547 |
$slug = 'wppa_art_monkey_display';
|
5548 |
$opts = array(
|
5549 |
-
__('Button', 'wp-photo-album-plus'),
|
5550 |
-
__('Textlink', 'wp-photo-album-plus')
|
5551 |
);
|
5552 |
$vals = array(
|
5553 |
'button',
|
@@ -5556,13 +5556,13 @@ global $wppa_subtab_names;
|
|
5556 |
$html = wppa_select($slug, $opts, $vals);
|
5557 |
wppa_setting_new($slug, '4', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5558 |
|
5559 |
-
$name = __('Popup Download Link', 'wp-photo-album-plus');
|
5560 |
-
$desc = __('Configure the download link on fullsize popups.', 'wp-photo-album-plus');
|
5561 |
-
$help = __('Link fullsize popup download button to either image or zip file.', 'wp-photo-album-plus');
|
5562 |
$slug = 'wppa_art_monkey_popup_link';
|
5563 |
$opts = array(
|
5564 |
-
__('image file', 'wp-photo-album-plus'),
|
5565 |
-
__('zipped image', 'wp-photo-album-plus')
|
5566 |
);
|
5567 |
$vals = array(
|
5568 |
'file',
|
@@ -5571,29 +5571,29 @@ global $wppa_subtab_names;
|
|
5571 |
$html = wppa_select($slug, $opts, $vals);
|
5572 |
wppa_setting_new($slug, '5', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5573 |
|
5574 |
-
$name = __('Download link on lightbox', 'wp-photo-album-plus');
|
5575 |
-
$desc = __('Art monkey link on lightbox photo names.', 'wp-photo-album-plus');
|
5576 |
$help = '';
|
5577 |
$slug = 'wppa_art_monkey_on_lightbox';
|
5578 |
$html = wppa_checkbox($slug);
|
5579 |
wppa_setting_new($slug, '6', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5580 |
|
5581 |
-
$name = __('Album download link', 'wp-photo-album-plus');
|
5582 |
-
$desc = __('Place an album download link on the album covers and the edit album info page', 'wp-photo-album-plus');
|
5583 |
-
$help = __('Creates a download zipfile containing the photos of the album', 'wp-photo-album-plus');
|
5584 |
$slug = 'wppa_allow_download_album';
|
5585 |
$html = wppa_checkbox($slug);
|
5586 |
wppa_setting_new($slug, '7', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5587 |
|
5588 |
-
$name = __('Album download Source', 'wp-photo-album-plus');
|
5589 |
-
$desc = __('Use Source file for album download link if available.', 'wp-photo-album-plus');
|
5590 |
$help = '';
|
5591 |
$slug = 'wppa_download_album_source';
|
5592 |
$html = wppa_checkbox($slug);
|
5593 |
wppa_setting_new($slug, '8', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5594 |
|
5595 |
-
$name = __('Super View Landing', 'wp-photo-album-plus');
|
5596 |
-
$desc = __('The landing page for the Super View widget.', 'wp-photo-album-plus');
|
5597 |
$help = '';
|
5598 |
$slug1 = '';
|
5599 |
$slug2 = 'wppa_super_view_linkpage';
|
@@ -5601,15 +5601,15 @@ global $wppa_subtab_names;
|
|
5601 |
$slug3 = '';
|
5602 |
$slug4 = '';
|
5603 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5604 |
-
$html1 = __('Defined by the visitor', 'wp-photo-album-plus');
|
5605 |
$html2 = wppa_select($slug2, $opts_page_auto, $vals_page, 'wppaRefreshAfter();');
|
5606 |
$html3 = '';
|
5607 |
$html4 = '';
|
5608 |
$html = array($html1, $html2, $html3, $html4);
|
5609 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
5610 |
|
5611 |
-
$name = __('Uploader Landing', 'wp-photo-album-plus');
|
5612 |
-
$desc = __('Select the landing page for the Uploader Widget', 'wp-photo-album-plus');
|
5613 |
$help = '';
|
5614 |
$slug1 = '';
|
5615 |
$slug2 = 'wppa_upldr_widget_linkpage';
|
@@ -5624,8 +5624,8 @@ global $wppa_subtab_names;
|
|
5624 |
$html = array($html1, $html2, $html3, $html4);
|
5625 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
5626 |
|
5627 |
-
$name = __('Supersearch Landing', 'wp-photo-album-plus');
|
5628 |
-
$desc = __('Select the landing page for the Supersearch Box', 'wp-photo-album-plus');
|
5629 |
$help = '';
|
5630 |
$slug1 = '';
|
5631 |
$slug2 = 'wppa_supersearch_linkpage';
|
@@ -5640,8 +5640,8 @@ global $wppa_subtab_names;
|
|
5640 |
$html = array($html1, $html2, $html3, $html4);
|
5641 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
5642 |
|
5643 |
-
$name = __('Album cover subalbums link', 'wp-photo-album-plus');
|
5644 |
-
$desc = __('Select the linktype and display type for sub-albums on parent album covers.', 'wp-photo-album-plus');
|
5645 |
$help = '';
|
5646 |
$slug1 = 'wppa_cover_sublinks';
|
5647 |
$slug2 = 'wppa_cover_sublinks_display';
|
@@ -5649,10 +5649,10 @@ global $wppa_subtab_names;
|
|
5649 |
$slug4 = '';
|
5650 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5651 |
$opts = array(
|
5652 |
-
__('No link at all', 'wp-photo-album-plus'),
|
5653 |
-
__('Thumbnails and covers', 'wp-photo-album-plus'),
|
5654 |
-
__('Slideshow or covers', 'wp-photo-album-plus'),
|
5655 |
-
__('Subalbum title link', 'wp-photo-album-plus'),
|
5656 |
);
|
5657 |
$vals = array(
|
5658 |
'none',
|
@@ -5662,11 +5662,11 @@ global $wppa_subtab_names;
|
|
5662 |
);
|
5663 |
$html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
|
5664 |
$opts = array(
|
5665 |
-
__('No display at all', 'wp-photo-album-plus'),
|
5666 |
-
__('A list with sub(sub) albums', 'wp-photo-album-plus'),
|
5667 |
-
__('A list of children only', 'wp-photo-album-plus'),
|
5668 |
-
__('An enumeration of names', 'wp-photo-album-plus'),
|
5669 |
-
__('Micro thumbnails', 'wp-photo-album-plus'),
|
5670 |
);
|
5671 |
$vals = array(
|
5672 |
'none',
|
@@ -5681,8 +5681,8 @@ global $wppa_subtab_names;
|
|
5681 |
$html = array($html1, $html2, $html3, $html4);
|
5682 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
5683 |
|
5684 |
-
$name = __('Real calendar link', 'wp-photo-album-plus');
|
5685 |
-
$desc = __('Select the linktype the real calendar day image should link to', 'wp-photo-album-plus');
|
5686 |
$help = '';
|
5687 |
$slug1 = 'wppa_real_calendar_linktype';
|
5688 |
$slug2 = '';
|
@@ -5690,8 +5690,8 @@ global $wppa_subtab_names;
|
|
5690 |
$slug4 = '';
|
5691 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5692 |
$opts = array(
|
5693 |
-
__('Slideshow', 'wp-photo-album-plus'),
|
5694 |
-
__('Lightbox', 'wp-photo-album-plus'),
|
5695 |
);
|
5696 |
$vals = array(
|
5697 |
'slide',
|
@@ -5705,9 +5705,9 @@ global $wppa_subtab_names;
|
|
5705 |
$html = array($html1, $html2, $html3, $html4);
|
5706 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
5707 |
|
5708 |
-
$name = __('Album id on cover is link', 'wp-photo-album-plus');
|
5709 |
-
$desc = __('The album number on the cover links to the album admin page of the album', 'wp-photo-album-plus');
|
5710 |
-
$help = __('<b>Album id on cover</b> must be enabled. The ids are only links when the user has edit album acces to the album', 'wp-photo-album-plus');
|
5711 |
$slug1 = 'wppa_fe_albid_edit';
|
5712 |
$slug2 = '';
|
5713 |
$slug3 = '';
|
@@ -5732,35 +5732,35 @@ global $wppa_subtab_names;
|
|
5732 |
wppa_setting_tab_description($desc);
|
5733 |
wppa_setting_box_header_new($tab);
|
5734 |
|
5735 |
-
$name = __('User upload Photos', 'wp-photo-album-plus');
|
5736 |
-
$desc = __('Enable frontend upload.', 'wp-photo-album-plus');
|
5737 |
$help = '';
|
5738 |
$slug = '';
|
5739 |
$html = '<input type="checkbox" checked disabled >' . wppa_see_also( 'new', '1', '18..26' );
|
5740 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
5741 |
|
5742 |
-
$name = __('User upload Video', 'wp-photo-album-plus');
|
5743 |
-
$desc = __('Enable frontend upload of video.', 'wp-photo-album-plus');
|
5744 |
$help = '';
|
5745 |
$slug = 'wppa_user_upload_video_on';
|
5746 |
$html = wppa_checkbox($slug);
|
5747 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'enable_video' ));
|
5748 |
|
5749 |
-
$name = __('User upload Audio', 'wp-photo-album-plus');
|
5750 |
-
$desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus');
|
5751 |
$help = '';
|
5752 |
$slug = 'wppa_user_upload_audio_on';
|
5753 |
$html = wppa_checkbox($slug);
|
5754 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_audio' ));
|
5755 |
|
5756 |
-
$name = __('User upload roles', 'wp-photo-album-plus');
|
5757 |
-
$desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus');
|
5758 |
$help = '';
|
5759 |
$slug = 'wppa_user_opload_roles';
|
5760 |
$roles = $wp_roles->roles;
|
5761 |
$opts = array();
|
5762 |
$vals = array();
|
5763 |
-
$opts[] = '-- '.__('Not limited', 'wp-photo-album-plus').' --';
|
5764 |
$vals[] = '';
|
5765 |
foreach (array_keys($roles) as $key) {
|
5766 |
$role = $roles[$key];
|
@@ -5772,62 +5772,62 @@ global $wppa_subtab_names;
|
|
5772 |
$html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
|
5773 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
5774 |
|
5775 |
-
$name = __('Show Copyright', 'wp-photo-album-plus');
|
5776 |
-
$desc = __('Show a copyright warning on frontend upload form.', 'wp-photo-album-plus');
|
5777 |
$help = '';
|
5778 |
$slug = 'wppa_copyright_on';
|
5779 |
$html = wppa_checkbox($slug, 'wppaSlave(this,\'wppa_copyright_notice\');');
|
5780 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
5781 |
|
5782 |
-
$name = __('Copyright notice', 'wp-photo-album-plus');
|
5783 |
-
$desc = __('The message to be displayed.', 'wp-photo-album-plus');
|
5784 |
$help = '';
|
5785 |
$slug = 'wppa_copyright_notice';
|
5786 |
$html = wppa_textarea($slug, $name);
|
5787 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch( 'copyright_on' ));
|
5788 |
|
5789 |
-
$name = __('User Watermark', 'wp-photo-album-plus');
|
5790 |
-
$desc = __('Uploading users may select watermark settings', 'wp-photo-album-plus');
|
5791 |
-
$help = __('If checked, anyone who can upload and/or import photos can overrule the default watermark settings.', 'wp-photo-album-plus');
|
5792 |
$slug = 'wppa_watermark_user';
|
5793 |
$html = wppa_checkbox($slug);
|
5794 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch('watermark_on'));
|
5795 |
|
5796 |
-
$name = __('User name', 'wp-photo-album-plus');
|
5797 |
-
$desc = __('Uploading users may overrule the default name.', 'wp-photo-album-plus');
|
5798 |
-
$help = __('If checked, the default photo name may be overruled by the user.', 'wp-photo-album-plus');
|
5799 |
$help .= '<br>'.wppa_see_also( 'new', '1', '29' );
|
5800 |
$slug1 = 'wppa_name_user';
|
5801 |
$slug2 = 'wppa_name_user_mandatory';
|
5802 |
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
5803 |
wppa_setting_new($slug1, '9', $name, $desc, $html, $help);
|
5804 |
|
5805 |
-
$name = __('Apply Newphoto desc user', 'wp-photo-album-plus');
|
5806 |
-
$desc = __('Give each new frontend uploaded photo a standard description.', 'wp-photo-album-plus');
|
5807 |
-
$help = __('If checked, each new photo will get the default New photo description.', 'wp-photo-album-plus');
|
5808 |
-
$help .= '<br>'.__('Note: If the next item is checked, the user can overwrite this', 'wp-photo-album-plus');
|
5809 |
$help .= '<br>'.wppa_see_also( 'new', '1', '13' );
|
5810 |
$slug = 'wppa_apply_newphoto_desc_user';
|
5811 |
$html = wppa_checkbox($slug);
|
5812 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
5813 |
|
5814 |
-
$name = __('User desc', 'wp-photo-album-plus');
|
5815 |
-
$desc = __('Uploading users may overrule the default description.', 'wp-photo-album-plus');
|
5816 |
$help = '';
|
5817 |
$slug1 = 'wppa_desc_user';
|
5818 |
$slug2 = 'wppa_desc_user_mandatory';
|
5819 |
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
5820 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
5821 |
|
5822 |
-
$name = __('User upload custom', 'wp-photo-album-plus');
|
5823 |
-
$desc = __('Frontend upload can fill in custom data fields.', 'wp-photo-album-plus');
|
5824 |
$help = '';
|
5825 |
$slug = 'wppa_fe_custom_fields';
|
5826 |
$html = wppa_checkbox($slug).wppa_see_also( 'custom', '2' );;
|
5827 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
5828 |
|
5829 |
-
$name = __('User upload tags', 'wp-photo-album-plus');
|
5830 |
-
$desc = __('Frontend upload can add tags.', 'wp-photo-album-plus');
|
5831 |
$help = '';
|
5832 |
$slug = 'wppa_fe_upload_tags';
|
5833 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
@@ -5835,115 +5835,115 @@ global $wppa_subtab_names;
|
|
5835 |
|
5836 |
if ( wppa_switch( 'fe_upload_tags' ) ) {
|
5837 |
|
5838 |
-
$name = __('Tag selection box', 'wp-photo-album-plus').' 1';
|
5839 |
-
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
5840 |
$help = '';
|
5841 |
$slug1 = 'wppa_up_tagselbox_on_1';
|
5842 |
$slug2 = 'wppa_up_tagselbox_multi_1';
|
5843 |
-
$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);
|
5844 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
|
5845 |
|
5846 |
-
$name = __('Caption box', 'wp-photo-album-plus').' 1';
|
5847 |
-
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
5848 |
$help = '';
|
5849 |
$slug = 'wppa_up_tagselbox_title_1';
|
5850 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5851 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
|
5852 |
|
5853 |
-
$name = __('Tags box', 'wp-photo-album-plus').' 1';
|
5854 |
-
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
5855 |
-
$help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
|
5856 |
$slug = 'wppa_up_tagselbox_content_1';
|
5857 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5858 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
5859 |
|
5860 |
-
$name = __('Tag selection box', 'wp-photo-album-plus').' 2';
|
5861 |
-
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
5862 |
$help = '';
|
5863 |
$slug1 = 'wppa_up_tagselbox_on_2';
|
5864 |
$slug2 = 'wppa_up_tagselbox_multi_2';
|
5865 |
-
$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);
|
5866 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
5867 |
|
5868 |
-
$name = __('Caption box', 'wp-photo-album-plus').' 2';
|
5869 |
-
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
5870 |
$help = '';
|
5871 |
$slug = 'wppa_up_tagselbox_title_2';
|
5872 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5873 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
5874 |
|
5875 |
-
$name = __('Tags box', 'wp-photo-album-plus').' 2';
|
5876 |
-
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
5877 |
-
$help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
|
5878 |
$slug = 'wppa_up_tagselbox_content_2';
|
5879 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5880 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
5881 |
|
5882 |
-
$name = __('Tag selection box', 'wp-photo-album-plus').' 3';
|
5883 |
-
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus');
|
5884 |
$help = '';
|
5885 |
$slug1 = 'wppa_up_tagselbox_on_3';
|
5886 |
$slug2 = 'wppa_up_tagselbox_multi_3';
|
5887 |
-
$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);
|
5888 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
5889 |
|
5890 |
-
$name = __('Caption box', 'wp-photo-album-plus').' 3';
|
5891 |
-
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus');
|
5892 |
$help = '';
|
5893 |
$slug = 'wppa_up_tagselbox_title_3';
|
5894 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5895 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
5896 |
|
5897 |
-
$name = __('Tags box', 'wp-photo-album-plus').' 3';
|
5898 |
-
$desc = __('The tags in the selection box.', 'wp-photo-album-plus');
|
5899 |
-
$help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus');
|
5900 |
$slug = 'wppa_up_tagselbox_content_3';
|
5901 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5902 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
5903 |
|
5904 |
-
$name = __('New tags', 'wp-photo-album-plus');
|
5905 |
-
$desc = __('Input field for any user defined tags.', 'wp-photo-album-plus');
|
5906 |
$help = '';
|
5907 |
$slug = 'wppa_up_tag_input_on';
|
5908 |
$html = wppa_checkbox($slug);
|
5909 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
5910 |
|
5911 |
-
$name = __('New tags caption', 'wp-photo-album-plus');
|
5912 |
-
$desc = __('The caption above the tags input field.', 'wp-photo-album-plus');
|
5913 |
$help = '';
|
5914 |
$slug = 'wppa_up_tag_input_title';
|
5915 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5916 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
5917 |
|
5918 |
-
$name = __('Tags box New', 'wp-photo-album-plus');
|
5919 |
-
$desc = __('The tags in the New tags input box.', 'wp-photo-album-plus');
|
5920 |
$help = '';
|
5921 |
$slug = 'wppa_up_tagbox_new';
|
5922 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5923 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
5924 |
|
5925 |
-
$name = __('Preview tags', 'wp-photo-album-plus');
|
5926 |
-
$desc = __('Show a preview of all tags that will be added to the photo info.', 'wp-photo-album-plus');
|
5927 |
$help = '';
|
5928 |
$slug = 'wppa_up_tag_preview';
|
5929 |
$html = wppa_checkbox($slug);
|
5930 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
5931 |
}
|
5932 |
|
5933 |
-
$name = __('Camera connect', 'wp-photo-album-plus');
|
5934 |
-
$desc = __('Connect frontend upload to camara on mobile devices with camera', 'wp-photo-album-plus');
|
5935 |
$help = '';
|
5936 |
$slug = 'wppa_camera_connect';
|
5937 |
$html = wppa_checkbox($slug);
|
5938 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
5939 |
|
5940 |
-
$name = __('Blog It!', 'wp-photo-album-plus');
|
5941 |
-
$desc = __('Enable blogging photos.', 'wp-photo-album-plus');
|
5942 |
-
$help = __('Users need the capability edit_posts to directly blog photos.', 'wp-photo-album-plus');
|
5943 |
$slug = 'wppa_blog_it';
|
5944 |
-
$opts = array( __('disabled', 'wp-photo-album-plus'),
|
5945 |
-
__('optional', 'wp-photo-album-plus'),
|
5946 |
-
__('always', 'wp-photo-album-plus'),
|
5947 |
);
|
5948 |
$vals = array( '-none-',
|
5949 |
'optional',
|
@@ -5952,32 +5952,32 @@ global $wppa_subtab_names;
|
|
5952 |
$html = wppa_select($slug, $opts, $vals);
|
5953 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
5954 |
|
5955 |
-
$name = __('Blog It need moderation', 'wp-photo-album-plus');
|
5956 |
-
$desc = __('Posts with blogged photos need moderation.', 'wp-photo-album-plus');
|
5957 |
$help = '';
|
5958 |
$slug = 'wppa_blog_it_moderate';
|
5959 |
$html = wppa_checkbox($slug);
|
5960 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
5961 |
|
5962 |
-
$name = __('Blog It shortcode', 'wp-photo-album-plus');
|
5963 |
-
$desc = __('Shortcode to be used on the blog post', 'wp-photo-album-plus');
|
5964 |
-
$help = __('Make sure it contains photo="#id"', 'wp-photo-album-plus');
|
5965 |
$slug = 'wppa_blog_it_shortcode';
|
5966 |
$html = wppa_input($slug, '85%');
|
5967 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
5968 |
|
5969 |
-
$name = __('Frontend ending label', 'wp-photo-album-plus');
|
5970 |
-
$desc = __('Frontend upload / create / edit dialog closing label text.', 'wp-photo-album-plus');
|
5971 |
$help = '';
|
5972 |
$slug = 'wppa_close_text';
|
5973 |
-
$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') );
|
5974 |
$vals = array( 'Abort', 'Cancel', 'Close', 'Exit', 'Quit' );
|
5975 |
$html = wppa_select($slug, $opts, $vals);
|
5976 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
5977 |
|
5978 |
-
$name = __('Upload logout', 'wp-photo-album-plus');
|
5979 |
-
$desc = __('Allow non logged-in to upload photos', 'wp-photo-album-plus');
|
5980 |
-
$help = __('Non logged in users have a number of restrictions on uploading', 'wp-photo-album-plus');
|
5981 |
$slug = 'wppa_upload_logout';
|
5982 |
$html = wppa_checkbox($slug);
|
5983 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
@@ -5994,17 +5994,17 @@ global $wppa_subtab_names;
|
|
5994 |
wppa_setting_tab_description($desc);
|
5995 |
wppa_setting_box_header_new($tab);
|
5996 |
|
5997 |
-
$name = __('Mail on new album', 'wp-photo-album-plus');
|
5998 |
-
$desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus');
|
5999 |
$help = '';
|
6000 |
$slug = 'wppa_newalbumnotify';
|
6001 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
|
6002 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6003 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6004 |
|
6005 |
-
$name = __('Mail on upload', 'wp-photo-album-plus');
|
6006 |
-
$desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus');
|
6007 |
-
$help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
|
6008 |
$slug1 = 'wppa_feuploadnotify';
|
6009 |
$slug2 = 'wppa_beuploadnotify';
|
6010 |
$slug3 = 'wppa_show_email_thumbs';
|
@@ -6014,10 +6014,10 @@ global $wppa_subtab_names;
|
|
6014 |
wppa_checkbox($slug3) . '<span style="float:left" > ' . __( 'show thumbnails', 'wp-photo-album-plus' ) . '</span>';
|
6015 |
wppa_setting_new($slug1, '2', $name, $desc, $html, $help);
|
6016 |
|
6017 |
-
$name = __('Mail on comment', 'wp-photo-album-plus');
|
6018 |
-
$desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus');
|
6019 |
-
$help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus');
|
6020 |
-
$help .= '<br>' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus');
|
6021 |
$slug1 = 'wppa_commentnotify';
|
6022 |
$slug2 = 'wppa_commentnotify_limit';
|
6023 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
|
@@ -6025,8 +6025,8 @@ global $wppa_subtab_names;
|
|
6025 |
wppa_checkbox($slug2) . '<span style="float:left" > ' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
|
6026 |
wppa_setting_new($slug1, '3', $name, $desc, $html, $help);
|
6027 |
|
6028 |
-
$name = __('Mail on previous comment', 'wp-photo-album-plus');
|
6029 |
-
$desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus');
|
6030 |
$help = '';
|
6031 |
$slug = 'wppa_commentprevious';
|
6032 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
|
@@ -6034,7 +6034,7 @@ global $wppa_subtab_names;
|
|
6034 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
6035 |
|
6036 |
$name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
|
6037 |
-
$desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus');
|
6038 |
$help = '';
|
6039 |
$slug = 'wppa_moderatephoto';
|
6040 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
|
@@ -6042,40 +6042,40 @@ global $wppa_subtab_names;
|
|
6042 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
6043 |
|
6044 |
$name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
|
6045 |
-
$desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus');
|
6046 |
$help = '';
|
6047 |
$slug = 'wppa_moderatecomment';
|
6048 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
|
6049 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6050 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
6051 |
|
6052 |
-
$name = __('Mail on approve photo', 'wp-photo-album-plus');
|
6053 |
-
$desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
|
6054 |
$help = '';
|
6055 |
$slug = 'wppa_photoapproved';
|
6056 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
|
6057 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6058 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
6059 |
|
6060 |
-
$name = __('Mail on approve comment', 'wp-photo-album-plus');
|
6061 |
-
$desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus');
|
6062 |
$help = '';
|
6063 |
$slug = 'wppa_commentapproved';
|
6064 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
|
6065 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6066 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6067 |
|
6068 |
-
$name = __('From site', 'wp-photo-album-plus');
|
6069 |
-
$desc = __('Enter the subject header', 'wp-photo-album-plus');
|
6070 |
-
$help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace(''', '', get_bloginfo('name') ).']');
|
6071 |
$slug = 'wppa_email_from_site';
|
6072 |
$html = wppa_input($slug,'90%');
|
6073 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
6074 |
|
6075 |
-
$name = __('From email', 'wp-photo-album-plus');
|
6076 |
-
$desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
|
6077 |
-
$help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br>' .
|
6078 |
-
__('Make sure this email address exists.', 'wp-photo-album-plus');
|
6079 |
$slug = 'wppa_email_from_email';
|
6080 |
$html = wppa_input($slug,'90%');
|
6081 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
@@ -6105,9 +6105,9 @@ global $wppa_subtab_names;
|
|
6105 |
$html = wppa_input($slug, '90%');
|
6106 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
6107 |
|
6108 |
-
$name = __('Retry failed mails', 'wp-photo-album-plus');
|
6109 |
-
$desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
|
6110 |
-
$help = (__('Retries occur at the background every hour', 'wp-photo-album-plus'));
|
6111 |
$slug = 'wppa_retry_mails';
|
6112 |
$html = wppa_number($slug, '1', '24');
|
6113 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
@@ -6118,11 +6118,11 @@ global $wppa_subtab_names;
|
|
6118 |
{
|
6119 |
$desc = $wppa_subtab_names[$tab]['2'];
|
6120 |
|
6121 |
-
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
6122 |
-
__('To', 'wp-photo-album-plus') => 'auto;',
|
6123 |
-
__('Subject', 'wp-photo-album-plus') => 'auto;',
|
6124 |
-
__('Message', 'wp-photo-album-plus') => 'auto;',
|
6125 |
-
__('Retry', 'wp-photo-album-plus') => '24px;',
|
6126 |
);
|
6127 |
|
6128 |
$mails = wppa_get_option( 'wppa_failed_mails', array() );
|
@@ -6183,138 +6183,138 @@ global $wppa_subtab_names;
|
|
6183 |
wppa_setting_tab_description($desc);
|
6184 |
wppa_setting_box_header_new($tab);
|
6185 |
|
6186 |
-
$name = __('Hide when running', 'wp-photo-album-plus');
|
6187 |
-
$desc = __('Hide the SM box when slideshow runs.', 'wp-photo-album-plus');
|
6188 |
$help = '';
|
6189 |
$slug = 'wppa_share_hide_when_running';
|
6190 |
$html = wppa_checkbox($slug);
|
6191 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6192 |
|
6193 |
-
$name = __('Show Share Box Widget', 'wp-photo-album-plus');
|
6194 |
-
$desc = __('Display the share social media buttons box in widgets.', 'wp-photo-album-plus');
|
6195 |
-
$help = __('This setting applies to normal slideshows in widgets, not to the slideshowwidget as that is a slideonly display.', 'wp-photo-album-plus');
|
6196 |
$slug = 'wppa_share_on_widget';
|
6197 |
$html = wppa_checkbox($slug);
|
6198 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6199 |
|
6200 |
-
$name = __('Show Share Buttons Thumbs', 'wp-photo-album-plus');
|
6201 |
-
$desc = __('Display the share social media buttons under thumbnails.', 'wp-photo-album-plus');
|
6202 |
$help = '';
|
6203 |
$slug = 'wppa_share_on_thumbs';
|
6204 |
$html = wppa_checkbox($slug);
|
6205 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6206 |
|
6207 |
-
$name = __('Show Share Buttons Mphoto', 'wp-photo-album-plus');
|
6208 |
-
$desc = __('Display the share social media buttons on mphoto displays.', 'wp-photo-album-plus');
|
6209 |
$help = '';
|
6210 |
$slug = 'wppa_share_on_mphoto';
|
6211 |
$html = wppa_checkbox($slug);
|
6212 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
6213 |
|
6214 |
-
$name = __('Void pages share', 'wp-photo-album-plus');
|
6215 |
-
$desc = __('Do not show share on these pages', 'wp-photo-album-plus');
|
6216 |
-
$help = __('Use this for pages that require the user is logged in', 'wp-photo-album-plus');
|
6217 |
$slug = 'wppa_sm_void_pages';
|
6218 |
$opts = $opts_page_post;
|
6219 |
-
$opts[0] = __('--- Select one or more pages ---', 'wp-photo-album-plus');
|
6220 |
-
$opts[] = __('--- none ---', 'wp-photo-album-plus');
|
6221 |
$vals = $vals_page_post;
|
6222 |
$vals[] = '0';
|
6223 |
$html = wppa_select_m($slug, $opts, $vals, '', '', true);
|
6224 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
6225 |
|
6226 |
-
$name = __('Show QR Code', 'wp-photo-album-plus');
|
6227 |
-
$desc = __('Display the QR code in the share box.', 'wp-photo-album-plus');
|
6228 |
$help = '';
|
6229 |
$slug = 'wppa_share_qr';
|
6230 |
$html = wppa_checkbox($slug);
|
6231 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
6232 |
|
6233 |
-
$name = __('Show Twitter button', 'wp-photo-album-plus');
|
6234 |
-
$desc = __('Display the Twitter button in the share box.', 'wp-photo-album-plus');
|
6235 |
$help = '';
|
6236 |
$slug1 = 'wppa_share_twitter';
|
6237 |
$slug2 = 'wppa_twitter_black';
|
6238 |
-
$html = wppa_checkbox($slug1) . '<span style="float-left">' . __('Black circle icon', 'wp-photo-album-plus') . '</span>' . wppa_checkbox($slug2);
|
6239 |
wppa_setting_new($slug1, '7', $name, $desc, $html, $help);
|
6240 |
|
6241 |
-
$name = __('The creator\'s Twitter account', 'wp-photo-album-plus');
|
6242 |
-
$desc = __('The Twitter @username a twitter card should be attributed to.', 'wp-photo-album-plus');
|
6243 |
-
$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');
|
6244 |
$slug = 'wppa_twitter_account';
|
6245 |
$html = wppa_input($slug, '150px' );
|
6246 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6247 |
|
6248 |
-
$name = __('Show Pinterest button', 'wp-photo-album-plus');
|
6249 |
-
$desc = __('Display the Pintrest button in the share box.', 'wp-photo-album-plus');
|
6250 |
$help = '';
|
6251 |
$slug1 = 'wppa_share_pinterest';
|
6252 |
$slug2 = 'wppa_pinterest_black';
|
6253 |
-
$html = wppa_checkbox($slug1) . '<span style="float-left">' . __('Black circle icon', 'wp-photo-album-plus') . '</span>' . wppa_checkbox($slug2);
|
6254 |
wppa_setting_new($slug1, '10', $name, $desc, $html, $help);
|
6255 |
|
6256 |
-
$name = __('Show LinkedIn button', 'wp-photo-album-plus');
|
6257 |
-
$desc = __('Display the LinkedIn button in the share box.', 'wp-photo-album-plus');
|
6258 |
$help = '';
|
6259 |
$slug1 = 'wppa_share_linkedin';
|
6260 |
$slug2 = 'wppa_linkedin_black';
|
6261 |
-
$html = wppa_checkbox($slug1) . '<span style="float-left">' . __('Black circle icon', 'wp-photo-album-plus') . '</span>' . wppa_checkbox($slug2);
|
6262 |
wppa_setting_new($slug1, '11', $name, $desc, $html, $help);
|
6263 |
|
6264 |
-
$name = __('Show Facebook share button', 'wp-photo-album-plus');
|
6265 |
-
$desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
|
6266 |
$help = '';
|
6267 |
$slug = 'wppa_share_facebook';
|
6268 |
$html = wppa_checkbox($slug);
|
6269 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
6270 |
|
6271 |
-
$name = __('Show Facebook like button', 'wp-photo-album-plus');
|
6272 |
-
$desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus');
|
6273 |
$help = '';
|
6274 |
$slug = 'wppa_facebook_like';
|
6275 |
$html = wppa_checkbox($slug);
|
6276 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
6277 |
|
6278 |
-
$name = __('Display type', 'wp-photo-album-plus');
|
6279 |
-
$desc = __('Select the Facebook button display type.', 'wp-photo-album-plus');
|
6280 |
$help = '';
|
6281 |
$slug = 'wppa_fb_display';
|
6282 |
-
$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') );
|
6283 |
$vals = array( 'standard', 'button', 'button_count', 'box_count' );
|
6284 |
$html = wppa_select($slug, $opts, $vals);
|
6285 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
6286 |
|
6287 |
-
$name = __('Show Facebook comment box', 'wp-photo-album-plus');
|
6288 |
-
$desc = __('Display the Facebook comment dialog box in the share box.', 'wp-photo-album-plus');
|
6289 |
$help = '';
|
6290 |
$slug = 'wppa_facebook_comments';
|
6291 |
$html = wppa_checkbox($slug);
|
6292 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
6293 |
|
6294 |
-
$name = __('Facebook User Id', 'wp-photo-album-plus');
|
6295 |
-
$desc = __('Enter your facebook user id to be able to moderate comments and sends', 'wp-photo-album-plus');
|
6296 |
$help = '';
|
6297 |
$slug = 'wppa_facebook_admin_id';
|
6298 |
$html = wppa_input($slug, '200px');
|
6299 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
6300 |
|
6301 |
-
$name = __('Facebook App Id', 'wp-photo-album-plus');
|
6302 |
-
$desc = __('Enter your facebook app id to be able to moderate comments and sends', 'wp-photo-album-plus');
|
6303 |
$help = '';
|
6304 |
$slug = 'wppa_facebook_app_id';
|
6305 |
$html = wppa_input($slug, '200px');
|
6306 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
6307 |
|
6308 |
-
$name = __('Facebook js SDK', 'wp-photo-album-plus');
|
6309 |
-
$desc = __('Load Facebook js SDK', 'wp-photo-album-plus');
|
6310 |
-
$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');
|
6311 |
$slug = 'wppa_load_facebook_sdk';
|
6312 |
$html = wppa_checkbox($slug);
|
6313 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
6314 |
|
6315 |
-
$name = __('Share single image', 'wp-photo-album-plus');
|
6316 |
-
$desc = __('Share a link to a single image, not the slideshow.', 'wp-photo-album-plus');
|
6317 |
-
$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');
|
6318 |
$slug = 'wppa_share_single_image';
|
6319 |
$html = wppa_checkbox($slug);
|
6320 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
@@ -6327,33 +6327,33 @@ global $wppa_subtab_names;
|
|
6327 |
wppa_setting_tab_description($desc);
|
6328 |
wppa_setting_box_header_new($tab);
|
6329 |
|
6330 |
-
$name = __('Meta on page', 'wp-photo-album-plus');
|
6331 |
-
$desc = __('Meta tags for photos on the page.', 'wp-photo-album-plus');
|
6332 |
-
$help = __('If checked, the header of the page will contain metatags that refer to featured photos on the page in the page context.', 'wp-photo-album-plus');
|
6333 |
$slug = 'wppa_meta_page';
|
6334 |
$html = wppa_checkbox($slug);
|
6335 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6336 |
|
6337 |
-
$name = __('Meta all', 'wp-photo-album-plus');
|
6338 |
-
$desc = __('Meta tags for all featured photos.', 'wp-photo-album-plus');
|
6339 |
-
$help = __('If checked, the header of the page will contain metatags that refer to all featured photo files.', 'wp-photo-album-plus');
|
6340 |
-
$help .= '<br>'.__('If you have many featured photos, you might wish to uncheck this item to reduce the size of the page header.', 'wp-photo-album-plus');
|
6341 |
$slug = 'wppa_meta_all';
|
6342 |
$html = wppa_checkbox($slug);
|
6343 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6344 |
|
6345 |
-
$name = __('Add og meta tags', 'wp-photo-album-plus');
|
6346 |
-
$desc = __('Add og meta tags to the page header.', 'wp-photo-album-plus');
|
6347 |
-
$help = __('Turning this off may affect the functionality of social media items in the share box that rely on open graph tags information.', 'wp-photo-album-plus');
|
6348 |
$slug = 'wppa_og_tags_on';
|
6349 |
$html = wppa_checkbox($slug);
|
6350 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6351 |
|
6352 |
-
$name = __('Image Alt attribute type', 'wp-photo-album-plus');
|
6353 |
-
$desc = __('Select kind of HTML alt="" content for images.', 'wp-photo-album-plus');
|
6354 |
$help = '';
|
6355 |
$slug = 'wppa_alt_type';
|
6356 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'), __('photo name', 'wp-photo-album-plus'), __('name without file-ext', 'wp-photo-album-plus'), __('set in album admin', 'wp-photo-album-plus') );
|
6357 |
$vals = array( 'none', 'fullname', 'namenoext', 'custom');
|
6358 |
$html = wppa_select($slug, $opts, $vals);
|
6359 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
@@ -6370,46 +6370,46 @@ global $wppa_subtab_names;
|
|
6370 |
wppa_setting_tab_description($desc);
|
6371 |
wppa_setting_box_header_new($tab);
|
6372 |
|
6373 |
-
$name = __('Modal boxes', 'wp-photo-album-plus');
|
6374 |
-
$desc = __('Place Ajax rendered content in modal boxes', 'wp-photo-album-plus');
|
6375 |
$help = '';
|
6376 |
$slug = 'wppa_ajax_render_modal';
|
6377 |
$html = wppa_checkbox($slug);
|
6378 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6379 |
|
6380 |
-
$name = __('Ajax scroll', 'wp-photo-album-plus');
|
6381 |
-
$desc = __('Scroll into position after an ajax call changed the page content', 'wp-photo-album-plus');
|
6382 |
$help = '';
|
6383 |
$slug = 'wppa_ajax_scroll';
|
6384 |
$html = wppa_checkbox($slug);
|
6385 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6386 |
|
6387 |
-
$name = __('Non Ajax scroll', 'wp-photo-album-plus');
|
6388 |
-
$desc = __('Scroll into position after a wppa link changed the page content', 'wp-photo-album-plus');
|
6389 |
$help = '';
|
6390 |
$slug = 'wppa_non_ajax_scroll';
|
6391 |
$html = wppa_checkbox($slug);
|
6392 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6393 |
|
6394 |
-
$name = __('Update addressline', 'wp-photo-album-plus');
|
6395 |
-
$desc = __('Update the addressline after an ajax action or next slide.', 'wp-photo-album-plus');
|
6396 |
-
$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');
|
6397 |
-
$help .= '<br>'.__('If unchecked, refreshing the page will re-display the content of the original page.', 'wp-photo-album-plus');
|
6398 |
-
$help .= '<br>'.__('This will only work on browsers that support history.pushState() and therefor NOT in IE', 'wp-photo-album-plus');
|
6399 |
$slug = 'wppa_update_addressline';
|
6400 |
$html = wppa_checkbox($slug);
|
6401 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
6402 |
|
6403 |
-
$name = __('Ajax method', 'wp-photo-album-plus');
|
6404 |
-
$desc = __('The method Ajax will use', 'wp-photo-album-plus');
|
6405 |
-
$help = __('Only change this setting when there are links that do not work', 'wp-photo-album-plus');
|
6406 |
$slug1 = 'wppa_ajax_method';
|
6407 |
$slug2 = 'wppa_ajax_home';
|
6408 |
-
$opts = array( __('Normal', 'wp-photo-album-plus'),
|
6409 |
-
__('Frontend and Backend: Backend method', 'wp-photo-album-plus'),
|
6410 |
-
__('Frontend: none, Backend: Backend method', 'wp-photo-album-plus'),
|
6411 |
);
|
6412 |
-
if ( wppa_is_file( dirname( __FILE__ ) . '/wppa-ajax-front.php' ) ) $opts[] = __('Classic (deprecated)', 'wp-photo-album-plus');
|
6413 |
|
6414 |
$vals = array( 'normal',
|
6415 |
'admin',
|
@@ -6418,51 +6418,51 @@ global $wppa_subtab_names;
|
|
6418 |
if ( wppa_is_file( dirname( __FILE__ ) . '/wppa-ajax-front.php' ) ) $vals[] = 'extern';
|
6419 |
|
6420 |
$html1 = wppa_select($slug1, $opts, $vals);
|
6421 |
-
$html2 = '<span style="float:left">' . __('Use home url rather than site url', 'wp-photo-album-plus') . wppa_checkbox($slug2);
|
6422 |
wppa_setting_new($slug, '5', $name, $desc, $html1.$html2, $help);
|
6423 |
|
6424 |
-
$name = __('Track viewcounts', 'wp-photo-album-plus');
|
6425 |
-
$desc = __('Register number of views of albums and photos.', 'wp-photo-album-plus');
|
6426 |
$help = '';
|
6427 |
$slug = 'wppa_track_viewcounts';
|
6428 |
$html = wppa_checkbox($slug);
|
6429 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
6430 |
|
6431 |
-
$name = __('Track clickcounts', 'wp-photo-album-plus');
|
6432 |
-
$desc = __('Register number of clicks on photos that link to an url.', 'wp-photo-album-plus');
|
6433 |
$help = '';
|
6434 |
$slug = 'wppa_track_clickcounts';
|
6435 |
$html = wppa_checkbox($slug);
|
6436 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
6437 |
|
6438 |
-
$name = __('Auto page', 'wp-photo-album-plus');
|
6439 |
-
$desc = __('Create a wp page for every fullsize image.', 'wp-photo-album-plus');
|
6440 |
$help = '';
|
6441 |
$slug = 'wppa_auto_page';
|
6442 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
6443 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6444 |
|
6445 |
-
$name = __('Auto page display', 'wp-photo-album-plus');
|
6446 |
-
$desc = __('The type of display on the autopage pages.', 'wp-photo-album-plus');
|
6447 |
$help = '';
|
6448 |
$slug = 'wppa_auto_page_type';
|
6449 |
-
$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') );
|
6450 |
$vals = array('photo', 'mphoto', 'slphoto');
|
6451 |
$html = wppa_select($slug, $opts, $vals);
|
6452 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
6453 |
|
6454 |
-
$name = __('Auto page links', 'wp-photo-album-plus');
|
6455 |
-
$desc = __('The location for the pagelinks.', 'wp-photo-album-plus');
|
6456 |
$help = '';
|
6457 |
$slug = 'wppa_auto_page_links';
|
6458 |
-
$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'));
|
6459 |
$vals = array('none', 'top', 'bottom', 'both');
|
6460 |
$html = wppa_select($slug, $opts, $vals);
|
6461 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
6462 |
/*
|
6463 |
-
$name = __('Defer javascript', 'wp-photo-album-plus');
|
6464 |
-
$desc = __('Put javascript near the end of the page.', 'wp-photo-album-plus');
|
6465 |
-
$help = (__('If checkd: May fix layout problems and broken slideshows. May speed up or slow down page appearing.', 'wp-photo-album-plus'));
|
6466 |
$slug = 'wppa_defer_javascript';
|
6467 |
$html = wppa_checkbox($slug);
|
6468 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
@@ -6471,50 +6471,50 @@ global $wppa_subtab_names;
|
|
6471 |
$wppa_setting_error = true;
|
6472 |
|
6473 |
/*
|
6474 |
-
$name = __('Custom style', 'wp-photo-album-plus');
|
6475 |
-
$desc = __('Enter custom style specs here.', 'wp-photo-album-plus');
|
6476 |
-
$help = __('Please move custom css to the wp customizer. WPPA Custom css will be discontinued in a near future revision.', 'wp-photo-album-plus');
|
6477 |
$slug = 'wppa_custom_style';
|
6478 |
$html = wppa_textarea($slug, $name);
|
6479 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help, wppa_opt( 'custom_style' ) != '' );
|
6480 |
|
6481 |
-
$name = __('Custom style Chrome', 'wp-photo-album-plus');
|
6482 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6483 |
// $help = '';
|
6484 |
$slug = 'wppa_custom_style_chrome';
|
6485 |
$html = wppa_textarea($slug, $name);
|
6486 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_opt( 'custom_style_chrome' ) != '' );
|
6487 |
|
6488 |
-
$name = __('Custom style Firefox', 'wp-photo-album-plus');
|
6489 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6490 |
// $help = '';
|
6491 |
$slug = 'wppa_custom_style_firefox';
|
6492 |
$html = wppa_textarea($slug, $name);
|
6493 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help, wppa_opt( 'custom_style_firefox' ) != '' );
|
6494 |
|
6495 |
-
$name = __('Custom style Safari', 'wp-photo-album-plus');
|
6496 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6497 |
// $help = '';
|
6498 |
$slug = 'wppa_custom_style_safari';
|
6499 |
$html = wppa_textarea($slug, $name);
|
6500 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help, wppa_opt( 'custom_style_safari' ) != '' );
|
6501 |
|
6502 |
-
$name = __('Custom style Edge', 'wp-photo-album-plus');
|
6503 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6504 |
// $help = '';
|
6505 |
$slug = 'wppa_custom_style_edge';
|
6506 |
$html = wppa_textarea($slug, $name);
|
6507 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help, wppa_opt( 'custom_style_edge' ) != '' );
|
6508 |
|
6509 |
-
$name = __('Custom style IE', 'wp-photo-album-plus');
|
6510 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6511 |
// $help = '';
|
6512 |
$slug = 'wppa_custom_style_ie';
|
6513 |
$html = wppa_textarea($slug, $name);
|
6514 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help, wppa_opt( 'custom_style_ie' ) != '' );
|
6515 |
|
6516 |
-
$name = __('Custom style Opera', 'wp-photo-album-plus');
|
6517 |
-
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus');
|
6518 |
// $help = '';
|
6519 |
$slug = 'wppa_custom_style_opera';
|
6520 |
$html = wppa_textarea($slug, $name);
|
@@ -6522,28 +6522,28 @@ global $wppa_subtab_names;
|
|
6522 |
*/
|
6523 |
$wppa_setting_error = false;
|
6524 |
|
6525 |
-
$name = __('Use customized style file', 'wp-photo-album-plus');
|
6526 |
-
$desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
|
6527 |
$help = '';
|
6528 |
$slug = 'wppa_use_custom_style_file';
|
6529 |
$html = wppa_checkbox($slug);
|
6530 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
6531 |
|
6532 |
-
$name = __('Use customized theme file', 'wp-photo-album-plus');
|
6533 |
-
$desc = __('This feature is highly discouraged.', 'wp-photo-album-plus');
|
6534 |
$help = '';
|
6535 |
$slug = 'wppa_use_custom_theme_file';
|
6536 |
$html = wppa_checkbox($slug);
|
6537 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
6538 |
|
6539 |
-
$name = __('Enable photo html access', 'wp-photo-album-plus');
|
6540 |
-
$desc = __('Creates .htaccess files in .../uploads/wppa/ and .../uploads/wppa/thumbs/', 'wp-photo-album-plus');
|
6541 |
$help = '';
|
6542 |
$slug = 'wppa_cre_uploads_htaccess';
|
6543 |
-
$opts = array( __('create \'all access\' .htaccess files', 'wp-photo-album-plus'),
|
6544 |
-
__('remove .htaccess files', 'wp-photo-album-plus'),
|
6545 |
-
__('create \'no hotlinking\' .htaccess files', 'wp-photo-album-plus'),
|
6546 |
-
__('do not change existing .htaccess file(s)', 'wp-photo-album-plus'),
|
6547 |
);
|
6548 |
$vals = array( 'grant',
|
6549 |
'remove',
|
@@ -6553,47 +6553,47 @@ global $wppa_subtab_names;
|
|
6553 |
$html = wppa_select($slug, $opts, $vals);
|
6554 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
6555 |
|
6556 |
-
$name = __('Lazy load', 'wp-photo-album-plus');
|
6557 |
-
$desc = __('Load photos from the server at the moment they will show up.', 'wp-photo-album-plus');
|
6558 |
$help = '';
|
6559 |
$slug = 'wppa_lazy';
|
6560 |
-
$opts = array(__('Off', 'wp-photo-album-plus'),__('On pc only', 'wp-photo-album-plus'),__('On mobile only', 'wp-photo-album-plus'),__('On both', 'wp-photo-album-plus'));
|
6561 |
$vals = array('none','pc','mob','all');
|
6562 |
$html = wppa_select($slug, $opts, $vals);
|
6563 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
6564 |
|
6565 |
-
$name = __('Thumbs first', 'wp-photo-album-plus');
|
6566 |
-
$desc = __('When displaying album content: thumbnails before subalbums.', 'wp-photo-album-plus');
|
6567 |
$help = '';
|
6568 |
$slug = 'wppa_thumbs_first';
|
6569 |
$html = wppa_checkbox($slug);
|
6570 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
6571 |
|
6572 |
-
$name = __('Login links', 'wp-photo-album-plus');
|
6573 |
-
$desc = __('You must login to... links to login page.', 'wp-photo-album-plus');
|
6574 |
$help = '';
|
6575 |
$slug = 'wppa_login_links';
|
6576 |
$onch = 'wppaRefreshAfter();';
|
6577 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'miscadv', '1', '6', 'login_links' );
|
6578 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
6579 |
|
6580 |
-
$name = __('Relative urls', 'wp-photo-album-plus');
|
6581 |
-
$desc = __('Use relative urls only.', 'wp-photo-album-plus');
|
6582 |
$help = '';
|
6583 |
$slug = 'wppa_relative_urls';
|
6584 |
$html = wppa_checkbox($slug);
|
6585 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
6586 |
|
6587 |
-
$name = __('Capitalize tags and cats', 'wp-photo-album-plus');
|
6588 |
-
$desc = __('Format tags and cats to start with one capital character', 'wp-photo-album-plus');
|
6589 |
$help = '';
|
6590 |
$slug = 'wppa_capitalize_tags';
|
6591 |
$html = wppa_checkbox($slug);
|
6592 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
6593 |
|
6594 |
-
$name = __('Enable Admins Choice', 'wp-photo-album-plus');
|
6595 |
-
$desc = __('Enable the creation of zipfiles with selected photos.', 'wp-photo-album-plus');
|
6596 |
-
$help = __('Activate the Admins Choice widget to make the zipfiles downloadable.', 'wp-photo-album-plus');
|
6597 |
$slug = 'wppa_admins_choice';
|
6598 |
$opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
|
6599 |
__( 'Admins and superusers', 'wp-photo-album-plus' ),
|
@@ -6603,55 +6603,55 @@ global $wppa_subtab_names;
|
|
6603 |
$html = wppa_select($slug, $opts, $vals);
|
6604 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
6605 |
|
6606 |
-
$name = __('Tag Admins Choice', 'wp-photo-album-plus');
|
6607 |
-
$desc = __('Tag photos with Admins Choice user', 'wp-photo-album-plus');
|
6608 |
$help = '';
|
6609 |
$slug = 'wppa_choice_is_tag';
|
6610 |
$html = wppa_checkbox($slug);
|
6611 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
6612 |
|
6613 |
-
$name = __('Admins choice me only', 'wp-photo-album-plus');
|
6614 |
-
$desc = __('Shows the link to the current users zipfile only', 'wp-photo-album-plus');
|
6615 |
$help = '';
|
6616 |
$slug = 'wppa_admins_choice_meonly';
|
6617 |
$html = wppa_checkbox($slug);
|
6618 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
6619 |
|
6620 |
-
$name = __('Admins choice action', 'wp-photo-album-plus');
|
6621 |
-
$desc = __('Select the action to be taken after clicking the "My Choice" link', 'wp-photo-album-plus');
|
6622 |
-
$help = __('If set to album, the link is only shown to users who have album admin rights', 'wp-photo-album-plus');
|
6623 |
$slug = 'wppa_admins_choice_action';
|
6624 |
-
$opts = array(__('To zipfile', 'wp-photo-album-plus'), __('To album', 'wp-photo-album-plus'), __('To album and zip', 'wp-photo-album-plus'));
|
6625 |
$vals = array('zip', 'album', 'both');
|
6626 |
$html = wppa_select($slug, $opts, $vals);
|
6627 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
6628 |
|
6629 |
-
$name = __('Make owner like photoname', 'wp-photo-album-plus');
|
6630 |
-
$desc = __('Change the owner to the user who\'s display name equals photoname.', 'wp-photo-album-plus');
|
6631 |
$help = '';
|
6632 |
$slug = 'wppa_owner_to_name';
|
6633 |
$html = wppa_checkbox($slug);
|
6634 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
6635 |
|
6636 |
-
$name = __('No rightclick', 'wp-photo-album-plus');
|
6637 |
-
$desc = __('Disable right mouseclick on all images', 'wp-photo-album-plus');
|
6638 |
$help = '';
|
6639 |
$slug = 'wppa_no_rightclick';
|
6640 |
$html = wppa_checkbox( $slug );
|
6641 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
6642 |
|
6643 |
-
$name = __('Nice scroll on window', 'wp-photo-album-plus');
|
6644 |
-
$desc = __('Apply the nice scroller on the browserwindow', 'wp-photo-album-plus');
|
6645 |
$help = '';
|
6646 |
$slug = 'wppa_nicescroll_window';
|
6647 |
$html = wppa_checkbox( $slug );
|
6648 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
6649 |
|
6650 |
-
$name = __('Nice scroller options', 'wp-photo-album-plus');
|
6651 |
-
$desc = __('The nice scroller configuration options', 'wp-photo-album-plus');
|
6652 |
-
$help = __('Enter options, one per line, seperated by commas(,).', 'wp-photo-album-plus');
|
6653 |
$help .= '<br>' .
|
6654 |
-
sprintf( __('Click %s here %s for documentation and a full list of available options', 'wp-photo-album-plus'),
|
6655 |
'<a href="' . WPPA_URL . '/vendor/nicescroll/README.txt" target="_blank" >',
|
6656 |
'</a>'
|
6657 |
) .
|
@@ -6660,8 +6660,8 @@ global $wppa_subtab_names;
|
|
6660 |
$html = wppa_textarea( $slug );
|
6661 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
6662 |
|
6663 |
-
$name = __('Response speed', 'wp-photo-album-plus');
|
6664 |
-
$desc = __('The speed of responsive size adjustments', 'wp-photo-album-plus');
|
6665 |
$help = '';
|
6666 |
$slug = 'wppa_response_speed';
|
6667 |
$opts = array( __( 'very slow', 'wp-photo-album-plus' ),
|
@@ -6675,63 +6675,63 @@ global $wppa_subtab_names;
|
|
6675 |
$html = wppa_select($slug, $opts, $vals);
|
6676 |
wppa_setting_new( $slug, '36', $name, $desc, $html, $help );
|
6677 |
|
6678 |
-
$name = __('Enable request info', 'wp-photo-album-plus');
|
6679 |
-
$desc = __('Shows a button under the slideshow image to request info by email', 'wp-photo-album-plus');
|
6680 |
$help = '';
|
6681 |
$slug = 'wppa_request_info';
|
6682 |
$html = wppa_checkbox( $slug );
|
6683 |
wppa_setting_new($slug, '37', $name, $desc, $html, $help);
|
6684 |
|
6685 |
-
$name = __('Dialog text', 'wp-photo-album-plus');
|
6686 |
-
$desc = __('The text to display in the dialog box', 'wp-photo-album-plus');
|
6687 |
$help = '';
|
6688 |
$slug = 'wppa_request_info_text';
|
6689 |
$html = wppa_input($slug, '90%');
|
6690 |
wppa_setting_new($slug, '38', $name, $desc, $html, $help);
|
6691 |
|
6692 |
-
$name = __('Gallery not A<b></b>lbum', 'wp-photo-album-plus');
|
6693 |
-
$desc = __('Use the name Gallery rather than A<b></b>lbum', 'wp-photo-album-plus');
|
6694 |
$help = '';
|
6695 |
$slug = 'wppa_album_use_gallery';
|
6696 |
$html = wppa_checkbox($slug);
|
6697 |
wppa_setting_new($slug, '39', $name, $desc, $html, $help);
|
6698 |
|
6699 |
-
$name = __('Fullscreen policy', 'wp-photo-album-plus');
|
6700 |
-
$desc = __('Select the desired fullscreen policy', 'wp-photo-album-plus');
|
6701 |
$help = '';
|
6702 |
$slug = 'wppa_fs_policy';
|
6703 |
-
$opts = array(__('--- none ---', 'wp-photo-album-plus'), __('On lightbox only', 'wp-photo-album-plus'), __('The entire page', 'wp-photo-album-plus') );
|
6704 |
$vals = array('none', 'lightbox', 'global');
|
6705 |
$html = wppa_select($slug, $opts, $vals, '');
|
6706 |
wppa_setting_new($slug, '40', $name, $desc, $html, $help);
|
6707 |
|
6708 |
-
$name = __('Caching overrule', 'wp-photo-album-plus');
|
6709 |
-
$desc = __('Overrule caching settings in shortcodes and widgets', 'wp-photo-album-plus');
|
6710 |
$help = '';
|
6711 |
$slug = 'wppa_cache_overrule';
|
6712 |
-
$opts = array(__('Do not overrule', 'wp-photo-album-plus'),
|
6713 |
-
__('Cache whenever possible', 'wp-photo-album-plus'),
|
6714 |
-
__('Never cache', 'wp-photo-album-plus'),
|
6715 |
);
|
6716 |
$vals = array('default', 'always', 'never');
|
6717 |
$html = wppa_select($slug, $opts, $vals, '');
|
6718 |
wppa_setting_new($slug, '41', $name, $desc, $html, $help);
|
6719 |
|
6720 |
-
$name = __('Delay overrule', 'wp-photo-album-plus');
|
6721 |
-
$desc = __('Overrule delay settings in shortcodes', 'wp-photo-album-plus');
|
6722 |
$help = '';
|
6723 |
$slug = 'wppa_delay_overrule';
|
6724 |
-
$opts = array(__('Do not overrule', 'wp-photo-album-plus'),
|
6725 |
-
__('Delay whenever possible', 'wp-photo-album-plus'),
|
6726 |
-
__('Never delay', 'wp-photo-album-plus'),
|
6727 |
);
|
6728 |
$vals = array('default', 'always', 'never');
|
6729 |
$html = wppa_select($slug, $opts, $vals, '');
|
6730 |
wppa_setting_new($slug, '42', $name, $desc, $html, $help);
|
6731 |
|
6732 |
-
$name = __('Use wp_upload_dir()', 'wp-photo-album-plus');
|
6733 |
-
$desc = __('Rely upon the information supplied by wp_upload_dir() for wppa file locations', 'wp-photo-album-plus');
|
6734 |
-
$help = __('Switch this on only when you are using non-standard locations for uploads etc', 'wp-photo-album-plus');
|
6735 |
$slug = 'wppa_use_wp_upload_dir_locations';
|
6736 |
$html = wppa_checkbox($slug);
|
6737 |
wppa_setting_new($slug, '43', $name, $desc, $html, $help);
|
@@ -6748,27 +6748,27 @@ global $wppa_subtab_names;
|
|
6748 |
wppa_setting_tab_description($desc);
|
6749 |
wppa_setting_box_header_new($tab);
|
6750 |
|
6751 |
-
$name = __('Keep source files', 'wp-photo-album-plus');
|
6752 |
-
$desc = __('Keep the original uploaded and imported photo files.', 'wp-photo-album-plus');
|
6753 |
-
$help = __('The files will be kept in a separate directory with subdirectories for each album', 'wp-photo-album-plus');
|
6754 |
-
$help .= '<br>'.__('These files can be used to update the photos used in displaying in wppa+ and optionally for downloading original, un-downsized images.', 'wp-photo-album-plus');
|
6755 |
$slug = 'wppa_keep_source';
|
6756 |
$html = wppa_checkbox($slug);
|
6757 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6758 |
|
6759 |
-
$name = __('Source directory', 'wp-photo-album-plus');
|
6760 |
-
$desc = __('The path to the directory where the original photofiles will be saved.', 'wp-photo-album-plus');
|
6761 |
-
$help = __('You may change the directory path, but it can not be an url.', 'wp-photo-album-plus');
|
6762 |
-
$help .= '<br>'.__('The parent of the directory that you enter here must exist and be writable.', 'wp-photo-album-plus');
|
6763 |
-
$help .= '<br>'.__('The directory itsself will be created if it does not exist yet.', 'wp-photo-album-plus');
|
6764 |
$slug = 'wppa_source_dir';
|
6765 |
$html = wppa_input($slug, '90%');
|
6766 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6767 |
|
6768 |
-
$name = __('Keep sync', 'wp-photo-album-plus');
|
6769 |
-
$desc = __('Keep source synchronously with wppa system.', 'wp-photo-album-plus');
|
6770 |
-
$help = __('If checked, photos that are deleted from wppa, will also be removed from the source files.', 'wp-photo-album-plus');
|
6771 |
-
$help .= '<br>'.__('Also, copying or moving photos to different albums, will also copy/move the source files.', 'wp-photo-album-plus');
|
6772 |
$slug = 'wppa_keep_sync';
|
6773 |
$html = wppa_checkbox($slug);
|
6774 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
@@ -6785,22 +6785,22 @@ global $wppa_subtab_names;
|
|
6785 |
wppa_setting_tab_description($desc);
|
6786 |
wppa_setting_box_header_new($tab);
|
6787 |
|
6788 |
-
$opts = array( __('--- off ---', 'wp-photo-album-plus'),
|
6789 |
-
sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus'), '1'),
|
6790 |
-
sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
|
6791 |
-
sprintf( _n('%d day', '%d days', '2', 'wp-photo-album-plus'), '2'),
|
6792 |
-
sprintf( _n('%d day', '%d days', '3', 'wp-photo-album-plus'), '3'),
|
6793 |
-
sprintf( _n('%d day', '%d days', '4', 'wp-photo-album-plus'), '4'),
|
6794 |
-
sprintf( _n('%d day', '%d days', '5', 'wp-photo-album-plus'), '5'),
|
6795 |
-
sprintf( _n('%d day', '%d days', '6', 'wp-photo-album-plus'), '6'),
|
6796 |
-
sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus'), '1'),
|
6797 |
-
sprintf( _n('%d day', '%d days', '8', 'wp-photo-album-plus'), '8'),
|
6798 |
-
sprintf( _n('%d day', '%d days', '9', 'wp-photo-album-plus'), '9'),
|
6799 |
-
sprintf( _n('%d day', '%d days', '10', 'wp-photo-album-plus'), '10'),
|
6800 |
-
sprintf( _n('%d week', '%d weeks', '2', 'wp-photo-album-plus'), '2'),
|
6801 |
-
sprintf( _n('%d week', '%d weeks', '3', 'wp-photo-album-plus'), '3'),
|
6802 |
-
sprintf( _n('%d week', '%d weeks', '4', 'wp-photo-album-plus'), '4'),
|
6803 |
-
sprintf( _n('%d month', '%d months', '1', 'wp-photo-album-plus'), '1'),
|
6804 |
);
|
6805 |
$vals = array( 0,
|
6806 |
60*60,
|
@@ -6820,52 +6820,59 @@ global $wppa_subtab_names;
|
|
6820 |
60*60*24*30,
|
6821 |
);
|
6822 |
|
6823 |
-
$name = __('New Album', 'wp-photo-album-plus');
|
6824 |
-
$desc = __('Maximum time an album is indicated as New', 'wp-photo-album-plus');
|
6825 |
$help = '';
|
6826 |
$slug = 'wppa_max_album_newtime';
|
6827 |
$html = wppa_select($slug, $opts, $vals);
|
6828 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6829 |
|
6830 |
-
$name = __('New Photo', 'wp-photo-album-plus');
|
6831 |
-
$desc = __('Maximum time a photo is indicated as New', 'wp-photo-album-plus');
|
6832 |
$help = '';
|
6833 |
$slug = 'wppa_max_photo_newtime';
|
6834 |
$html = wppa_select($slug, $opts, $vals);
|
6835 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6836 |
|
6837 |
-
$name = __('Modified Album', 'wp-photo-album-plus');
|
6838 |
-
$desc = __('Maximum time an album is indicated as Modified', 'wp-photo-album-plus');
|
6839 |
$help = '';
|
6840 |
$slug = 'wppa_max_album_modtime';
|
6841 |
$html = wppa_select($slug, $opts, $vals);
|
6842 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6843 |
|
6844 |
-
$name = __('Modified Photo', 'wp-photo-album-plus');
|
6845 |
-
$desc = __('Maximum time a photo is indicated as Modified', 'wp-photo-album-plus');
|
6846 |
-
$help = __('If you tick the checkbox, a modified photo will also set the album as modified', 'wp-photo-album-plus');
|
6847 |
$slug1 = 'wppa_max_photo_modtime';
|
6848 |
$html1 = wppa_select($slug1, $opts, $vals);
|
6849 |
$slug2 = 'wppa_pup_is_aup';
|
6850 |
$html2 = '<span style="float:left;" >'.__( 'Mod album also' ).'</span>'.wppa_checkbox($slug2);
|
6851 |
wppa_setting_new($slug, '4', $name, $desc, $html1.$html2, $help);
|
6852 |
|
6853 |
-
$name = __('
|
6854 |
-
$desc = __('
|
6855 |
-
$help =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6856 |
$slug = 'wppa_new_mod_label_is_text';
|
6857 |
$onch = 'wppaRefreshAfter();';
|
6858 |
$html = wppa_checkbox($slug,$onch);
|
6859 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
6860 |
|
6861 |
$opts = array(
|
6862 |
-
__('Red', 'wp-photo-album-plus'),
|
6863 |
-
__('Orange', 'wp-photo-album-plus'),
|
6864 |
-
__('Yellow', 'wp-photo-album-plus'),
|
6865 |
-
__('Green', 'wp-photo-album-plus'),
|
6866 |
-
__('Blue', 'wp-photo-album-plus'),
|
6867 |
-
__('Purple', 'wp-photo-album-plus'),
|
6868 |
-
__('Black/white', 'wp-photo-album-plus'),
|
6869 |
);
|
6870 |
$vals = array(
|
6871 |
'red',
|
@@ -6877,150 +6884,166 @@ global $wppa_subtab_names;
|
|
6877 |
'black',
|
6878 |
);
|
6879 |
|
6880 |
-
$name = __('New label', 'wp-photo-album-plus');
|
6881 |
-
$desc = __('Specify the "New" indicator details.', 'wp-photo-album-plus');
|
6882 |
-
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
|
6883 |
$slug1 = 'wppa_new_label_text';
|
6884 |
$slug2 = 'wppa_new_label_color';
|
6885 |
-
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
|
6886 |
-
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
|
6887 |
wppa_setting_new($slug1, '6', $name, $desc, $html1.' '.$html2, $help);
|
6888 |
|
6889 |
-
$name = __('Modified label', 'wp-photo-album-plus');
|
6890 |
-
$desc = __('Specify the "Modified" indicator details.', 'wp-photo-album-plus');
|
6891 |
-
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus');
|
6892 |
$slug1 = 'wppa_mod_label_text';
|
6893 |
$slug2 = 'wppa_mod_label_color';
|
6894 |
-
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus').': </span>'.wppa_input($slug1, '150px');
|
6895 |
-
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus').': </span>'.wppa_select($slug2, $opts, $vals);
|
6896 |
wppa_setting_new($slug1, '7', $name, $desc, $html1.' '.$html2, $help);
|
6897 |
|
6898 |
-
$name = __('
|
6899 |
-
$desc = __('Specify the "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6900 |
$help = ' ';
|
6901 |
$slug = 'wppa_new_label_url';
|
6902 |
$html = wppa_input($slug, '300px');
|
6903 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6904 |
|
6905 |
-
$name = __('Modified label', 'wp-photo-album-plus');
|
6906 |
-
$desc = __('Specify the "Modified" indicator url.', 'wp-photo-album-plus');
|
6907 |
$help = ' ';
|
6908 |
$slug = 'wppa_mod_label_url';
|
6909 |
$html = wppa_input($slug, '300px');
|
6910 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
6911 |
|
6912 |
-
$name = __('
|
6913 |
-
$desc = __('
|
6914 |
-
$help =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6915 |
$slug = 'wppa_lasten_limit_new';
|
6916 |
$html = wppa_checkbox($slug) . wppa_see_also( 'widget', '1', '8' );
|
6917 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
6918 |
|
6919 |
-
$name = __('LasTen use Modified', 'wp-photo-album-plus');
|
6920 |
-
$desc = __('Use the time modified rather than time upload for LasTen widget/shortcode.', 'wp-photo-album-plus');
|
6921 |
$help = '';
|
6922 |
$slug = 'wppa_lasten_use_modified';
|
6923 |
$html = wppa_checkbox($slug);
|
6924 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
6925 |
|
6926 |
-
$name = __('Apply Newphoto desc', 'wp-photo-album-plus');
|
6927 |
-
$desc = __('Give each new photo a standard description.', 'wp-photo-album-plus');
|
6928 |
-
$help = __('If checked, each new photo will get the description (template) as specified in the next item.', 'wp-photo-album-plus');
|
6929 |
$slug = 'wppa_apply_newphoto_desc';
|
6930 |
$html = wppa_checkbox($slug);
|
6931 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
6932 |
|
6933 |
-
$name = __('New photo desc', 'wp-photo-album-plus');
|
6934 |
-
$desc = __('The description (template) to add to a new photo.', 'wp-photo-album-plus');
|
6935 |
-
$help = __('Enter the default description.', 'wp-photo-album-plus');
|
6936 |
-
$help .= '<br>'.__('If you use html, please check item B-1 of this table.', 'wp-photo-album-plus');
|
6937 |
-
$help .= '<br>'.__('If you tick the checkbox, linebreaks and redundand spaces will be removed.', 'wp-photo-album-plus');
|
6938 |
$slug = 'wppa_newphoto_description';
|
6939 |
$slug2 = 'wppa_compress_newdesc';
|
6940 |
$html = wppa_textarea($slug, $name) .
|
6941 |
'<br>' .
|
6942 |
-
__('Compress', 'wp-photo-album-plus') .
|
6943 |
wppa_checkbox($slug2);
|
6944 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
6945 |
|
6946 |
-
$name = __('New photo owner', 'wp-photo-album-plus');
|
6947 |
-
$desc = __('The owner of a new uploaded photo.', 'wp-photo-album-plus');
|
6948 |
-
$help = __('If you leave this blank, the uploader will be set as the owner', 'wp-photo-album-plus');
|
6949 |
$slug = 'wppa_newphoto_owner';
|
6950 |
-
$html = wppa_input($slug, '50px', '', __('leave blank or enter login name', 'wp-photo-album-plus'));
|
6951 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
6952 |
|
6953 |
-
$name = __('Upload limit', 'wp-photo-album-plus');
|
6954 |
-
$desc = __('New albums are created with this upload limit.', 'wp-photo-album-plus');
|
6955 |
-
$help = __('Administrators can change the limit settings in the "Edit Album Information" admin page.', 'wp-photo-album-plus');
|
6956 |
-
$help .= '<br>'.(__('A value of 0 means: no limit.', 'wp-photo-album-plus'));
|
6957 |
$slug = 'wppa_upload_limit_count';
|
6958 |
-
$html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus'));
|
6959 |
$slug = 'wppa_upload_limit_time';
|
6960 |
-
$opts = array( __('for ever', 'wp-photo-album-plus'),
|
6961 |
-
__('per hour', 'wp-photo-album-plus'),
|
6962 |
-
__('per day', 'wp-photo-album-plus'),
|
6963 |
-
__('per week', 'wp-photo-album-plus'),
|
6964 |
-
__('per month', 'wp-photo-album-plus'), // 30 days
|
6965 |
-
__('per year', 'wp-photo-album-plus')); // 364 days
|
6966 |
$vals = array( '0', '3600', '86400', '604800', '2592000', '31449600');
|
6967 |
$html .= wppa_select($slug, $opts, $vals);
|
6968 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
6969 |
|
6970 |
-
$name = __('Default parent', 'wp-photo-album-plus');
|
6971 |
-
$desc = __('The parent album of new albums.', 'wp-photo-album-plus');
|
6972 |
$help = '';
|
6973 |
$slug = 'wppa_default_parent';
|
6974 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
|
6975 |
$vals = array( '0', '-1');
|
6976 |
$albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
6977 |
if ( $albs ) {
|
6978 |
foreach ( $albs as $alb ) {
|
6979 |
-
$opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
|
6980 |
$vals[] = $alb['id'];
|
6981 |
}
|
6982 |
}
|
6983 |
$html = wppa_select($slug, $opts, $vals);
|
6984 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
6985 |
|
6986 |
-
$name = __('Default parent always', 'wp-photo-album-plus');
|
6987 |
-
$desc = __('The parent album of new albums is always the default, except for administrators.', 'wp-photo-album-plus');
|
6988 |
$help = '';
|
6989 |
$slug = 'wppa_default_parent_always';
|
6990 |
$html = wppa_checkbox($slug);
|
6991 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
6992 |
|
6993 |
-
$name = __('Grant an album', 'wp-photo-album-plus');
|
6994 |
-
$desc = __('Create an album for each user logging in.', 'wp-photo-album-plus');
|
6995 |
$help = '';
|
6996 |
$slug = 'wppa_grant_an_album';
|
6997 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
6998 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
6999 |
|
7000 |
if ( wppa_switch( 'grant_an_album' ) ) {
|
7001 |
-
$name = __('Grant album name', 'wp-photo-album-plus');
|
7002 |
-
$desc = __('The name to be used for the album.', 'wp-photo-album-plus');
|
7003 |
$help = '';
|
7004 |
$slug = 'wppa_grant_name';
|
7005 |
-
$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'));
|
7006 |
$vals = array('login', 'display', 'id', 'firstlast');
|
7007 |
$html = wppa_select($slug, $opts, $vals);
|
7008 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
7009 |
|
7010 |
$name = __('Grant alnum description', 'wp-photo-album-plus' );
|
7011 |
-
$desc = __('The description to be used for the album.', 'wp-photo-album-plus');
|
7012 |
-
$help = __('You can use "$user" as placeholder for the name; it will be replaced by the name of the album', 'wp-photo-album-plus');
|
7013 |
$slug = 'wppa_grant_desc';
|
7014 |
$html = wppa_input($slug, '400px;');
|
7015 |
wppa_setting_new($slug, '19a', $name, $desc, $html, $help);
|
7016 |
|
7017 |
-
$name = __('Grant parent selection method', 'wp-photo-album-plus');
|
7018 |
-
$desc = __('The way the grant parents are defined.', 'wp-photo-album-plus');
|
7019 |
$help = '';
|
7020 |
$slug = 'wppa_grant_parent_sel_method';
|
7021 |
-
$opts = array( __('An album (multi)selectionbox', 'wp-photo-album-plus'),
|
7022 |
-
__('An album category', 'wp-photo-album-plus'),
|
7023 |
-
__('An index search token', 'wp-photo-album-plus'),
|
7024 |
);
|
7025 |
$vals = array( 'selectionbox',
|
7026 |
'category',
|
@@ -7032,16 +7055,16 @@ global $wppa_subtab_names;
|
|
7032 |
|
7033 |
switch( wppa_opt( 'grant_parent_sel_method' ) ) {
|
7034 |
case 'selectionbox':
|
7035 |
-
$name = __('Grant parent', 'wp-photo-album-plus');
|
7036 |
-
$desc = __('The parent album(s) of the auto created albums.', 'wp-photo-album-plus');
|
7037 |
-
$help = (__('You may select multiple albums. All logged in visitors will get their own sub-album in each granted parent.', 'wp-photo-album-plus'));
|
7038 |
$slug = 'wppa_grant_parent';
|
7039 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'), __('--- separate ---', 'wp-photo-album-plus') );
|
7040 |
$vals = array( 'zero', '-1');
|
7041 |
$albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
7042 |
if ( $albs ) {
|
7043 |
foreach ( $albs as $alb ) {
|
7044 |
-
$opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus');
|
7045 |
$vals[] = $alb['id'];
|
7046 |
}
|
7047 |
}
|
@@ -7050,8 +7073,8 @@ global $wppa_subtab_names;
|
|
7050 |
break;
|
7051 |
|
7052 |
case 'category':
|
7053 |
-
$name = __('Grant parent category', 'wp-photo-album-plus');
|
7054 |
-
$desc = __('The category of the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
|
7055 |
$help = '';
|
7056 |
$slug = 'wppa_grant_parent';
|
7057 |
$catlist = wppa_get_catlist();
|
@@ -7065,8 +7088,8 @@ global $wppa_subtab_names;
|
|
7065 |
break;
|
7066 |
|
7067 |
case 'indexsearch':
|
7068 |
-
$name = __('Grant parent index token', 'wp-photo-album-plus');
|
7069 |
-
$desc = __('The index token that defines the parent album(s) of the auto created albums.', 'wp-photo-album-plus');
|
7070 |
$help = '';
|
7071 |
$slug = 'wppa_grant_parent';
|
7072 |
$html = wppa_input($slug, '150px');
|
@@ -7078,46 +7101,46 @@ global $wppa_subtab_names;
|
|
7078 |
break;
|
7079 |
}
|
7080 |
|
7081 |
-
$name = __('Grant categories', 'wp-photo-album-plus');
|
7082 |
-
$desc = __('The categories a new granted album will get.', 'wp-photo-album-plus');
|
7083 |
$help = '';
|
7084 |
$slug = 'wppa_grant_cats';
|
7085 |
$html = wppa_input($slug, '150px');
|
7086 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
7087 |
|
7088 |
-
$name = __('Grant tags', 'wp-photo-album-plus');
|
7089 |
-
$desc = __('The default tags the photos in a new granted album will get.', 'wp-photo-album-plus');
|
7090 |
$help = '';
|
7091 |
$slug = 'wppa_grant_tags';
|
7092 |
$html = wppa_input($slug, '150px');
|
7093 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
7094 |
|
7095 |
-
$name = __('Grant restrict', 'wp-photo-album-plus');
|
7096 |
-
$desc = __('Only create albums for users with Album Admin rights', 'wp-photo-album-plus');
|
7097 |
$help = '';
|
7098 |
$slug = 'wppa_grant_restrict';
|
7099 |
$html = wppa_checkbox($slug) . wppa_see_also( 'admin', '1' );
|
7100 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
7101 |
}
|
7102 |
|
7103 |
-
$name = __('Iptc 025 keywords to tags', 'wp-photo-album-plus');
|
7104 |
-
$desc = __('Convert IPTC025 keywords to tags during upload.', 'wp-photo-album-plus');
|
7105 |
-
$help = __('Saving IPTC data must be on for this feature', 'wp-photo-album-plus');
|
7106 |
$slug = 'wppa_ipc025_to_tags';
|
7107 |
$html = wppa_checkbox( $slug );
|
7108 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
7109 |
|
7110 |
-
$name = __('Default photo name', 'wp-photo-album-plus');
|
7111 |
-
$desc = __('Select the way the name of a new uploaded photo should be determined.', 'wp-photo-album-plus');
|
7112 |
-
$help = __('If you select an IPTC Tag and it is not found, the filename will be used instead.', 'wp-photo-album-plus');
|
7113 |
$slug = 'wppa_newphoto_name_method';
|
7114 |
-
$opts = array( __('Filename', 'wp-photo-album-plus'),
|
7115 |
-
__('Filename without extension', 'wp-photo-album-plus'),
|
7116 |
-
__('Filename without extension, spaces for hyphens', 'wp-photo-album-plus'),
|
7117 |
-
__('IPTC Tag 2#005 (Graphic name)', 'wp-photo-album-plus'),
|
7118 |
-
__('IPTC Tag 2#120 (Caption)', 'wp-photo-album-plus'),
|
7119 |
-
__('No name at all', 'wp-photo-album-plus'),
|
7120 |
-
__('Photo w#id (literally)', 'wp-photo-album-plus'),
|
7121 |
);
|
7122 |
$vals = array( 'filename',
|
7123 |
'noext',
|
@@ -7130,50 +7153,50 @@ global $wppa_subtab_names;
|
|
7130 |
$html = wppa_select($slug, $opts, $vals);
|
7131 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
7132 |
|
7133 |
-
$name = __('Default coverphoto', 'wp-photo-album-plus');
|
7134 |
-
$desc = __('Name of photofile to become cover image', 'wp-photo-album-plus');
|
7135 |
-
$help = (__('If you name a photofile like this setting before upload, it will become the coverimage automatically.', 'wp-photo-album-plus'));
|
7136 |
$slug = 'wppa_default_coverimage_name';
|
7137 |
$html = wppa_input($slug, '150px');
|
7138 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
7139 |
|
7140 |
-
$name = __('Copy Timestamp', 'wp-photo-album-plus');
|
7141 |
-
$desc = __('Copy timestamp when copying photo.', 'wp-photo-album-plus');
|
7142 |
-
$help = (__('If checked, the copied photo is not "new"', 'wp-photo-album-plus'));
|
7143 |
$slug = 'wppa_copy_timestamp';
|
7144 |
$html = wppa_checkbox($slug);
|
7145 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
7146 |
|
7147 |
-
$name = __('Copy Owner', 'wp-photo-album-plus');
|
7148 |
-
$desc = __('Copy the owner when copying photo.', 'wp-photo-album-plus');
|
7149 |
$help = '';
|
7150 |
$slug = 'wppa_copy_owner';
|
7151 |
$html = wppa_checkbox($slug);
|
7152 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
7153 |
|
7154 |
-
$name = __('Copy Custom', 'wp-photo-album-plus');
|
7155 |
-
$desc = __('Copy the custom fields when copying photo.', 'wp-photo-album-plus');
|
7156 |
$help = '';
|
7157 |
$slug = 'wppa_copy_custom';
|
7158 |
$html = wppa_checkbox($slug);
|
7159 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
7160 |
|
7161 |
-
$name = __('FE Albums public', 'wp-photo-album-plus');
|
7162 |
-
$desc = __('Frontend created albums are --- public ---', 'wp-photo-album-plus');
|
7163 |
$help = '';
|
7164 |
$slug = 'wppa_frontend_album_public';
|
7165 |
$html = wppa_checkbox($slug);
|
7166 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
7167 |
|
7168 |
-
$name = __('Default album linktype', 'wp-photo-album-plus');
|
7169 |
-
$desc = __('The album linktype for new albums', 'wp-photo-album-plus');
|
7170 |
$help = '';
|
7171 |
$slug = 'wppa_default_album_linktype';
|
7172 |
-
$opts = array( __('the sub-albums and thumbnails', 'wp-photo-album-plus'),
|
7173 |
-
__('the sub-albums', 'wp-photo-album-plus'),
|
7174 |
-
__('the thumbnails', 'wp-photo-album-plus'),
|
7175 |
-
__('the album photos as slideshow', 'wp-photo-album-plus'),
|
7176 |
-
__('no link at all', 'wp-photo-album-plus')
|
7177 |
);
|
7178 |
|
7179 |
$vals = array( 'content',
|
@@ -7185,22 +7208,22 @@ global $wppa_subtab_names;
|
|
7185 |
$html = wppa_select($slug, $opts, $vals);
|
7186 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
7187 |
|
7188 |
-
$name = __('Sanitize files', 'wp-photo-album-plus');
|
7189 |
-
$desc = __('Sanitize filenames during import/upload', 'wp-photo-album-plus');
|
7190 |
$help = '';
|
7191 |
$slug = 'wppa_sanitize_import';
|
7192 |
$html = wppa_checkbox($slug);
|
7193 |
wppa_setting_new($slug, '36', $name, $desc, $html, $help);
|
7194 |
|
7195 |
-
$name = __('Remove accents', 'wp-photo-album-plus');
|
7196 |
-
$desc = __('Remove accents from filenames during import/upload', 'wp-photo-album-plus');
|
7197 |
$help = '';
|
7198 |
$slug = 'wppa_remove_accents';
|
7199 |
$html = wppa_checkbox($slug);
|
7200 |
wppa_setting_new($slug, '37', $name, $desc, $html, $help);
|
7201 |
|
7202 |
-
$name = __('Default photo status', 'wp-photo-album-plus');
|
7203 |
-
$desc = __('The status new photos will have', 'wp-photo-album-plus');
|
7204 |
$help = '';
|
7205 |
$slug = 'wppa_status_new';
|
7206 |
|
@@ -7228,18 +7251,18 @@ global $wppa_subtab_names;
|
|
7228 |
$desc = $wppa_subtab_names[$tab]['1'];
|
7229 |
wppa_setting_tab_description($desc);
|
7230 |
|
7231 |
-
$coldef = array( __('Role', 'wp-photo-album-plus') => 'auto;',
|
7232 |
-
__('Album Admin', 'wp-photo-album-plus') => 'auto;',
|
7233 |
-
__('Upload', 'wp-photo-album-plus') => 'auto;',
|
7234 |
-
__('Import', 'wp-photo-album-plus') => 'auto;',
|
7235 |
-
__('Moderate', 'wp-photo-album-plus') => 'auto;',
|
7236 |
-
__('Export', 'wp-photo-album-plus') => 'auto;',
|
7237 |
-
__('Settings', 'wp-photo-album-plus') => 'auto;',
|
7238 |
-
__('Comments', 'wp-photo-album-plus') => 'auto;',
|
7239 |
-
__('Documentation', 'wp-photo-album-plus') => 'auto;',
|
7240 |
-
__('Tag edit', 'wp-photo-album-plus') => 'auto;',
|
7241 |
-
__('Sequence edit', 'wp-photo-album-plus') => 'auto',
|
7242 |
-
__('Membership', 'wp-photo-album-plus') => 'auto;',
|
7243 |
);
|
7244 |
|
7245 |
|
@@ -7258,11 +7281,11 @@ global $wppa_subtab_names;
|
|
7258 |
'wppa_medal',
|
7259 |
);
|
7260 |
$opts = array( '',
|
7261 |
-
__('bronze', 'wp-photo-album-plus'),
|
7262 |
-
__('silver', 'wp-photo-album-plus'),
|
7263 |
-
__('gold', 'wp-photo-album-plus'),
|
7264 |
-
__('plus', 'wp-photo-album-plus'),
|
7265 |
-
__('basic', 'wp-photo-album-plus'),
|
7266 |
);
|
7267 |
$vals = array( 'none',
|
7268 |
'bronze',
|
@@ -7305,17 +7328,17 @@ global $wppa_subtab_names;
|
|
7305 |
$desc = $wppa_subtab_names[$tab]['2'];
|
7306 |
wppa_setting_tab_description($desc);
|
7307 |
$coldef = array( '#' => 'auto;',
|
7308 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
7309 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
7310 |
-
__('Setting', 'wp-photo-album-plus') => 'auto;',
|
7311 |
-
__('Period', 'wp-photo-album-plus') => 'auto;',
|
7312 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
7313 |
);
|
7314 |
wppa_setting_box_header_new($tab, $coldef);
|
7315 |
|
7316 |
-
$name = __('User create Albums', 'wp-photo-album-plus');
|
7317 |
-
$desc = __('Enable frontend album creation.', 'wp-photo-album-plus');
|
7318 |
-
$help = __('If you check this item, frontend album creation will be enabled.', 'wp-photo-album-plus');
|
7319 |
$slug = 'wppa_user_create_on';
|
7320 |
$onchange = '';
|
7321 |
$html1 = wppa_checkbox($slug, $onchange);
|
@@ -7323,18 +7346,18 @@ global $wppa_subtab_names;
|
|
7323 |
$html = array( $html1, $html2 );
|
7324 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7325 |
|
7326 |
-
$name = __('Max user albums', 'wp-photo-album-plus');
|
7327 |
-
$desc = __('The max number of albums a user can create.', 'wp-photo-album-plus');
|
7328 |
-
$help = __('The maximum number of albums a user can create when he is not admin', 'wp-photo-album-plus');
|
7329 |
-
$help .= '<br>'.__('A number of 0 means No limit', 'wp-photo-album-plus');
|
7330 |
$slug = 'wppa_max_albums';
|
7331 |
$html1 = wppa_input($slug, '50px', '', 'albums');
|
7332 |
$html2 = '';
|
7333 |
$html = array( $html1, $html2 );
|
7334 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'user_create_on' ));
|
7335 |
|
7336 |
-
$name = __('Max nesting level', 'wp-photo-album-plus');
|
7337 |
-
$desc = __('Limits the max nesting level for frontend created albums', 'wp-photo-album-plus');
|
7338 |
$help = '';
|
7339 |
$slug = 'wppa_user_create_max_level';
|
7340 |
$onch = '';
|
@@ -7343,8 +7366,8 @@ global $wppa_subtab_names;
|
|
7343 |
$html = array( $html1, $html2 );
|
7344 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7345 |
|
7346 |
-
$name = __('User edit album', 'wp-photo-album-plus');
|
7347 |
-
$desc = __('Enable frontend edit album name and description.', 'wp-photo-album-plus');
|
7348 |
$help = '';
|
7349 |
$slug = 'wppa_user_album_edit_on';
|
7350 |
$html1 = wppa_checkbox($slug);
|
@@ -7352,9 +7375,9 @@ global $wppa_subtab_names;
|
|
7352 |
$html = array( $html1, $html2 );
|
7353 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7354 |
|
7355 |
-
$name = __('User delete Albums', 'wp-photo-album-plus');
|
7356 |
-
$desc = __('Enable frontend album deletion', 'wp-photo-album-plus');
|
7357 |
-
$help = __('If you check this item, frontend album deletion will be enabled.', 'wp-photo-album-plus');
|
7358 |
$slug = 'wppa_user_destroy_on';
|
7359 |
$onchange = '';
|
7360 |
$html1 = wppa_checkbox($slug, $onchange);
|
@@ -7362,8 +7385,8 @@ global $wppa_subtab_names;
|
|
7362 |
$html = array( $html1, $html2 );
|
7363 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
7364 |
|
7365 |
-
$name = __('User create Albums Captcha', 'wp-photo-album-plus');
|
7366 |
-
$desc = __('User must answer security question.', 'wp-photo-album-plus');
|
7367 |
$help = '';
|
7368 |
$slug = 'wppa_user_create_captcha';
|
7369 |
$html1 = wppa_checkbox($slug);
|
@@ -7371,10 +7394,10 @@ global $wppa_subtab_names;
|
|
7371 |
$html = array( $html1, $html2 );
|
7372 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7373 |
|
7374 |
-
$name = __('Fe limts per album', 'wp-photo-album-plus');
|
7375 |
-
$desc = __('The following limits apply to individual albums', 'wp-photo-album-plus');
|
7376 |
-
$help = __('If this box is ticked, users can upload the limit on every album they have fe upload rights to', 'wp-photo-album-plus');
|
7377 |
-
$help .= '<br>'.__('If this box is unticked, the limits apply to all the users uploads in the system regardless of the album(s)', 'wp-photo-album-plus');
|
7378 |
$slug = 'wppa_role_limit_per_album';
|
7379 |
$html1 = wppa_checkbox($slug);
|
7380 |
$html2 = '';
|
@@ -7382,12 +7405,12 @@ global $wppa_subtab_names;
|
|
7382 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
7383 |
|
7384 |
// User upload limits
|
7385 |
-
$opts = array( __('for ever', 'wp-photo-album-plus'),
|
7386 |
-
__('per hour', 'wp-photo-album-plus'),
|
7387 |
-
__('per day', 'wp-photo-album-plus'),
|
7388 |
-
__('per week', 'wp-photo-album-plus'),
|
7389 |
-
__('per month', 'wp-photo-album-plus'), // 30 days
|
7390 |
-
__('per year', 'wp-photo-album-plus')); // 364 days
|
7391 |
$vals = array( '0', '3600', '86400', '604800', '2592000', '31449600');
|
7392 |
|
7393 |
$roles = $wp_roles->roles;
|
@@ -7396,12 +7419,12 @@ global $wppa_subtab_names;
|
|
7396 |
$t_role = isset( $roles[$role]['name'] ) ? translate_user_role( $roles[$role]['name'] ) : $role;
|
7397 |
if ( get_option('wppa_'.$role.'_upload_limit_count', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_count', '0');
|
7398 |
if ( get_option('wppa_'.$role.'_upload_limit_time', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_time', '0');
|
7399 |
-
$name = sprintf(__('Upload limit %s', 'wp-photo-album-plus'), $t_role);
|
7400 |
-
$desc = sprintf(__('Limit upload capacity for the user role %s.', 'wp-photo-album-plus'), $t_role);
|
7401 |
-
$help = __('This limitation only applies to frontend uploads when the same userrole does not have the Upload checkbox checked.', 'wp-photo-album-plus');
|
7402 |
-
$help .= '<br>'.__('A value of 0 means: no limit.', 'wp-photo-album-plus') . wppa_see_also( 'admin', '1' );
|
7403 |
$slug1 = 'wppa_'.$role.'_upload_limit_count';
|
7404 |
-
$html1 = wppa_input($slug1, '50px', '', __('photos', 'wp-photo-album-plus'));
|
7405 |
$slug2 = 'wppa_'.$role.'_upload_limit_time';
|
7406 |
$html2 = wppa_select($slug2, $opts, $vals);
|
7407 |
$html = array( $html1, $html2 );
|
@@ -7411,20 +7434,20 @@ global $wppa_subtab_names;
|
|
7411 |
foreach (array_keys($roles) as $role) {
|
7412 |
$t_role = isset( $roles[$role]['name'] ) ? translate_user_role( $roles[$role]['name'] ) : $role;
|
7413 |
if ( get_option('wppa_'.$role.'_album_limit_count', 'nil') == 'nil') update_option('wppa_'.$role.'_album_limit_count', '0');
|
7414 |
-
$name = sprintf(__('Album limit %s', 'wp-photo-album-plus'), $t_role);
|
7415 |
-
$desc = sprintf(__('Limit number of albums for the user role %s.', 'wp-photo-album-plus'), $t_role);
|
7416 |
-
$help = __('This limitation only applies to frontend create albums when the same userrole does not have the Album admin checkbox checked.', 'wp-photo-album-plus');
|
7417 |
-
$help .= '<br>'.__('A value of 0 means: no limit.', 'wp-photo-album-plus') . wppa_see_also( 'admin', '1' );
|
7418 |
$slug1 = 'wppa_'.$role.'_album_limit_count';
|
7419 |
-
$html1 = wppa_input($slug1, '50px', '', __('albums', 'wp-photo-album-plus'));
|
7420 |
$slug2 = '';
|
7421 |
$html2 = '';
|
7422 |
$html = array( $html1, $html2 );
|
7423 |
wppa_setting_new(false, '9.'.$t_role, $name, $desc, $html, $help);
|
7424 |
}
|
7425 |
|
7426 |
-
$name = __('Upload one only', 'wp-photo-album-plus');
|
7427 |
-
$desc = __('Non admin users can upload only one photo at a time.', 'wp-photo-album-plus');
|
7428 |
$help = '';
|
7429 |
$slug = 'wppa_upload_one_only';
|
7430 |
$html1 = wppa_checkbox($slug);
|
@@ -7432,10 +7455,10 @@ global $wppa_subtab_names;
|
|
7432 |
$html = array( $html1, $html2 );
|
7433 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
7434 |
|
7435 |
-
$name = __('Upload moderation', 'wp-photo-album-plus');
|
7436 |
-
$desc = __('Uploaded photos need moderation.', 'wp-photo-album-plus');
|
7437 |
-
$help = __('If checked, photos uploaded by users who do not have photo album admin access rights need moderation.', 'wp-photo-album-plus');
|
7438 |
-
$help .= '<br>'.__('Users who have photo album admin access rights can change the photo status to publish or featured.', 'wp-photo-album-plus');
|
7439 |
$help .= '<br>'.wppa_see_also( 'admin', '1' );
|
7440 |
$slug = 'wppa_upload_moderate';
|
7441 |
$html1 = wppa_checkbox($slug);
|
@@ -7443,41 +7466,41 @@ global $wppa_subtab_names;
|
|
7443 |
$html = array( $html1, $html2 );
|
7444 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
7445 |
|
7446 |
-
$name = __('FE Upload private', 'wp-photo-album-plus');
|
7447 |
-
$desc = __('Front-end uploaded photos status is set to private.', 'wp-photo-album-plus');
|
7448 |
-
$help = __('This setting overrules Upload moderation.', 'wp-photo-album-plus');
|
7449 |
$slug = 'wppa_fe_upload_private';
|
7450 |
$html1 = wppa_checkbox($slug);
|
7451 |
$html2 = '';
|
7452 |
$html = array( $html1, $html2 );
|
7453 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
7454 |
|
7455 |
-
$name = __('Min size in pixels', 'wp-photo-album-plus');
|
7456 |
-
$desc = __('Min size for height and width for front-end uploads.', 'wp-photo-album-plus');
|
7457 |
-
$help = __('Enter the minimum size.', 'wp-photo-album-plus');
|
7458 |
$slug = 'wppa_upload_frontend_minsize';
|
7459 |
-
$html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7460 |
$html2 = '';
|
7461 |
$html = array( $html1, $html2 );
|
7462 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
7463 |
|
7464 |
-
$name = __('Max size in pixels', 'wp-photo-album-plus');
|
7465 |
-
$desc = __('Max size for height and width for front-end uploads.', 'wp-photo-album-plus');
|
7466 |
-
$help = __('Enter the maximum size. 0 is unlimited', 'wp-photo-album-plus');
|
7467 |
$slug = 'wppa_upload_frontend_maxsize';
|
7468 |
-
$html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
7469 |
$html2 = '';
|
7470 |
$html = array( $html1, $html2 );
|
7471 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
7472 |
|
7473 |
-
$name = __('Fe alert', 'wp-photo-album-plus');
|
7474 |
-
$desc = __('Show alertbox on front-end.', 'wp-photo-album-plus');
|
7475 |
-
$help = __('Errors are always reported, credit points only when --- none --- is not selected', 'wp-photo-album-plus');
|
7476 |
$slug = 'wppa_fe_alert';
|
7477 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
7478 |
-
__('uploads and create albums', 'wp-photo-album-plus'),
|
7479 |
-
__('blog it', 'wp-photo-album-plus'),
|
7480 |
-
__('all', 'wp-photo-album-plus'),
|
7481 |
);
|
7482 |
$vals = array( '-none-',
|
7483 |
'upcre',
|
@@ -7489,13 +7512,13 @@ global $wppa_subtab_names;
|
|
7489 |
$html = array( $html1, $html2 );
|
7490 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
7491 |
|
7492 |
-
$name = __('Max fe upload albums', 'wp-photo-album-plus');
|
7493 |
-
$desc = __('Max number of albums in frontend upload selection box.', 'wp-photo-album-plus');
|
7494 |
$help = '';
|
7495 |
$slug = 'wppa_fe_upload_max_albums';
|
7496 |
$opts = array('0', '10', '20', '50', '100', '200', '500', '1000');
|
7497 |
$vals = $opts;
|
7498 |
-
$html1 = wppa_select($slug, $opts, $vals).__('albums', 'wp-photo-album-plus');
|
7499 |
$html2 = '';
|
7500 |
$html = array( $html1, $html2 );
|
7501 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
@@ -7508,75 +7531,75 @@ global $wppa_subtab_names;
|
|
7508 |
wppa_setting_tab_description($desc);
|
7509 |
wppa_setting_box_header_new($tab);
|
7510 |
|
7511 |
-
$name = __('Import Create page', 'wp-photo-album-plus');
|
7512 |
-
$desc = __('Create wp page that shows the album when a directory to album is imported.', 'wp-photo-album-plus');
|
7513 |
-
$help = __('As soon as an album is created when a directory is imported, a wp page is made that displays the album content.', 'wp-photo-album-plus');
|
7514 |
$slug = 'wppa_newpag_create';
|
7515 |
$onch = '';
|
7516 |
$html = wppa_checkbox($slug, $onch);
|
7517 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7518 |
|
7519 |
-
$name = __('Page content', 'wp-photo-album-plus');
|
7520 |
-
$desc = __('The content of the page. Must contain <b>w#album</b>', 'wp-photo-album-plus');
|
7521 |
-
$help = __('The content of the page. Note: it must contain w#album. This will be replaced by the album number in the generated shortcode.', 'wp-photo-album-plus');
|
7522 |
$slug = 'wppa_newpag_content';
|
7523 |
$clas = 'wppa_newpag';
|
7524 |
$html = wppa_input($slug, '90%');
|
7525 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7526 |
|
7527 |
-
$name = __('Page type', 'wp-photo-album-plus');
|
7528 |
-
$desc = __('Select the type of page to create.', 'wp-photo-album-plus');
|
7529 |
$help = '';
|
7530 |
$slug = 'wppa_newpag_type';
|
7531 |
$clas = 'wppa_newpag';
|
7532 |
-
$opts = array(__('Page', 'wp-photo-album-plus'), __('Post', 'wp-photo-album-plus'));
|
7533 |
$vals = array('page', 'post');
|
7534 |
$html = wppa_select($slug, $opts, $vals);
|
7535 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7536 |
|
7537 |
-
$name = __('Page status', 'wp-photo-album-plus');
|
7538 |
-
$desc = __('Select the initial status of the page.', 'wp-photo-album-plus');
|
7539 |
$help = '';
|
7540 |
$slug = 'wppa_newpag_status';
|
7541 |
$clas = 'wppa_newpag';
|
7542 |
-
$opts = array(__('Published', 'wp-photo-album-plus'), __('Draft', 'wp-photo-album-plus'));
|
7543 |
$vals = array('publish', 'draft'); // 'draft' | 'publish' | 'pending'| 'future' | 'private'
|
7544 |
$html = wppa_select($slug, $opts, $vals);
|
7545 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7546 |
|
7547 |
if ( ! is_multisite() || WPPA_MULTISITE_GLOBAL ) {
|
7548 |
-
$name = __('Permalink root', 'wp-photo-album-plus');
|
7549 |
-
$desc = __('The name of the root for the photofile permalink structure.', 'wp-photo-album-plus');
|
7550 |
-
$help = __('Choose a convenient name like "albums" or so; this will be the name of a folder inside .../wp-content/. Make sure you choose a unique name', 'wp-photo-album-plus');
|
7551 |
-
$help .= '<br>'.__('If you make this field empty, the feature is disabled.', 'wp-photo-album-plus');
|
7552 |
$slug = 'wppa_pl_dirname';
|
7553 |
$html = wppa_input($slug, '150px');
|
7554 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
7555 |
}
|
7556 |
|
7557 |
-
$name = __('Import parent check', 'wp-photo-album-plus');
|
7558 |
-
$desc = __('Makes the album tree like the directory tree on Import Dirs to albums.', 'wp-photo-album-plus');
|
7559 |
-
$help = __('Untick only if all your albums have unique names. In this case additional photos may be ftp\'d to toplevel depot subdirs.', 'wp-photo-album-plus');
|
7560 |
$slug = 'wppa_import_parent_check';
|
7561 |
$html = wppa_checkbox($slug);
|
7562 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7563 |
|
7564 |
-
$name = __('Keep dir to album files', 'wp-photo-album-plus');
|
7565 |
-
$desc = __('Keep imported files after dir to album import', 'wp-photo-album-plus');
|
7566 |
$help = '';
|
7567 |
$slug = 'wppa_keep_import_files';
|
7568 |
$html = wppa_checkbox($slug);
|
7569 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
7570 |
|
7571 |
-
$name = __('Import page previews', 'wp-photo-album-plus');
|
7572 |
-
$desc = __('Show thumbnail previews in import admin page.', 'wp-photo-album-plus');
|
7573 |
$help = '';
|
7574 |
$slug = 'wppa_import_preview';
|
7575 |
$html = wppa_checkbox($slug);
|
7576 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
7577 |
|
7578 |
-
$name = __('Import source root', 'wp-photo-album-plus');
|
7579 |
-
$desc = __('Specify the highest level in the filesystem where to import from', 'wp-photo-album-plus');
|
7580 |
$help = '';
|
7581 |
$slug = 'wppa_import_root';
|
7582 |
$opts = array();
|
@@ -7591,8 +7614,8 @@ global $wppa_subtab_names;
|
|
7591 |
$html = wppa_select($slug,$opts,$vals,'','',false,'','500');
|
7592 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
7593 |
|
7594 |
-
$name = __('Allow import from WPPA+ source folders', 'wp-photo-album-plus');
|
7595 |
-
$desc = __('Only switch this on if you know what you are doing!', 'wp-photo-album-plus');
|
7596 |
$help = '';
|
7597 |
$slug = 'wppa_allow_import_source';
|
7598 |
$html = wppa_checkbox($slug);
|
@@ -7606,78 +7629,78 @@ global $wppa_subtab_names;
|
|
7606 |
wppa_setting_tab_description($desc);
|
7607 |
wppa_setting_box_header_new($tab);
|
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 |
$html = wppa_checkbox($slug);
|
7614 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7615 |
|
7616 |
-
$name = __('Link is restricted', 'wp-photo-album-plus');
|
7617 |
-
$desc = __('Using <b>Link to</b> is a restricted action.', 'wp-photo-album-plus');
|
7618 |
-
$help = __('If checked: Link to: can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus');
|
7619 |
$slug = 'wppa_link_is_restricted';
|
7620 |
$html = wppa_checkbox($slug);
|
7621 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7622 |
|
7623 |
-
$name = __('CoverType is restricted', 'wp-photo-album-plus');
|
7624 |
-
$desc = __('Changing <b>Cover Type</b> is a restricted action.', 'wp-photo-album-plus');
|
7625 |
-
$help = __('If checked: Cover Type: can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus');
|
7626 |
$slug = 'wppa_covertype_is_restricted';
|
7627 |
$html = wppa_checkbox($slug);
|
7628 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7629 |
|
7630 |
-
$name = __('Photo order is restricted', 'wp-photo-album-plus');
|
7631 |
-
$desc = __('Changing <b>Photo sort order</b> is a restricted action.', 'wp-photo-album-plus');
|
7632 |
-
$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');
|
7633 |
$slug = 'wppa_porder_restricted';
|
7634 |
$html = wppa_checkbox($slug);
|
7635 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7636 |
|
7637 |
-
$name = __('Change source restricted', 'wp-photo-album-plus');
|
7638 |
-
$desc = __('Changing the import source dir requires admin rights.', 'wp-photo-album-plus');
|
7639 |
-
$help = __('If checked, the imput source for importing photos and albums is restricted to user role administrator.', 'wp-photo-album-plus');
|
7640 |
$slug = 'wppa_chgsrc_is_restricted';
|
7641 |
$html = wppa_checkbox($slug);
|
7642 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
7643 |
|
7644 |
-
$name = __('Extended status restricted', 'wp-photo-album-plus');
|
7645 |
-
$desc = __('Setting status other than pending or publish requires admin rights.', 'wp-photo-album-plus');
|
7646 |
$help = '';
|
7647 |
$slug = 'wppa_ext_status_restricted';
|
7648 |
$html = wppa_checkbox($slug);
|
7649 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7650 |
|
7651 |
-
$name = __('Photo description restricted', 'wp-photo-album-plus');
|
7652 |
-
$desc = __('Edit photo description requires admin rights.', 'wp-photo-album-plus');
|
7653 |
$help = '';
|
7654 |
$slug = 'wppa_desc_is_restricted';
|
7655 |
$html = wppa_checkbox($slug);
|
7656 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
7657 |
|
7658 |
-
$name = __('Update photofiles restricted', 'wp-photo-album-plus');
|
7659 |
-
$desc = __('Re-upload files requires admin rights', 'wp-photo-album-plus');
|
7660 |
$help = '';
|
7661 |
$slug = 'wppa_reup_is_restricted';
|
7662 |
$html = wppa_checkbox($slug);
|
7663 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
7664 |
|
7665 |
-
$name = __('New tags restricted', 'wp-photo-album-plus');
|
7666 |
-
$desc = __('Creating new tags requires admin rights', 'wp-photo-album-plus');
|
7667 |
-
$help = __('If ticked, users can ony use existing tags', 'wp-photo-album-plus');
|
7668 |
$slug = 'wppa_newtags_is_restricted';
|
7669 |
$html = wppa_checkbox($slug);
|
7670 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
7671 |
|
7672 |
-
$name = __('Album Admin separate', 'wp-photo-album-plus');
|
7673 |
-
$desc = __('Restrict album admin to separate albums for non administrators', 'wp-photo-album-plus');
|
7674 |
$help = '';
|
7675 |
$slug = 'wppa_admin_separate';
|
7676 |
$html = wppa_checkbox($slug);
|
7677 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
7678 |
|
7679 |
-
$name = __('Album download link restricted', 'wp-photo-album-plus');
|
7680 |
-
$desc = __('The album download link on covers shows only to admin', 'wp-photo-album-plus');
|
7681 |
$help = '';
|
7682 |
$slug = 'wppa_download_album_is_restricted';
|
7683 |
$html = wppa_checkbox($slug);
|
@@ -7691,70 +7714,70 @@ global $wppa_subtab_names;
|
|
7691 |
wppa_setting_tab_description($desc);
|
7692 |
wppa_setting_box_header_new($tab);
|
7693 |
|
7694 |
-
$name = __('Frontend Edit', 'wp-photo-album-plus');
|
7695 |
-
$desc = __('Allow the uploader to edit the photo info', 'wp-photo-album-plus');
|
7696 |
-
$help = __('If selected, any logged in user who meets the criteria has the capability to edit the photo information.', 'wp-photo-album-plus');
|
7697 |
-
$help .= '<br>'.__('Note: This may be AFTER moderation!!', 'wp-photo-album-plus');
|
7698 |
$slug = 'wppa_upload_edit';
|
7699 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'), __('New style', 'wp-photo-album-plus') );
|
7700 |
$vals = array( '-none-', 'new' );
|
7701 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();' );
|
7702 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7703 |
|
7704 |
if ( wppa_opt( 'upload_edit' ) != '-none-' ) {
|
7705 |
|
7706 |
-
$name = __('Fe Edit users', 'wp-photo-album-plus');
|
7707 |
-
$desc = __('The criteria the user must meet to edit photo info', 'wp-photo-album-plus');
|
7708 |
$help = '';
|
7709 |
$slug = 'wppa_upload_edit_users';
|
7710 |
-
$opts = array( __('Admin and superuser', 'wp-photo-album-plus'), __('Owner, admin and superuser', 'wp-photo-album-plus' ) );
|
7711 |
$vals = array( 'admin', 'owner' );
|
7712 |
$html = wppa_select($slug, $opts, $vals);
|
7713 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7714 |
|
7715 |
-
$name = __('Fe Edit period', 'wp-photo-album-plus');
|
7716 |
-
$desc = __('The time since upload the user can edit photo info', 'wp-photo-album-plus');
|
7717 |
-
$help = __('Frontend Edit should be set in order to have effect', 'wp-photo-album-plus');
|
7718 |
-
$help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus');
|
7719 |
$slug = 'wppa_upload_edit_period';
|
7720 |
-
$opts = array( __('15 minutes', 'wp-photo-album-plus'),
|
7721 |
-
__('one hour', 'wp-photo-album-plus'),
|
7722 |
-
__('three hours', 'wp-photo-album-plus'),
|
7723 |
-
__('one day', 'wp-photo-album-plus'),
|
7724 |
-
__('for ever', 'wp-photo-album-plus'),
|
7725 |
);
|
7726 |
$vals = array( 900, 3600, 10800, 86400, 0 );
|
7727 |
$html = wppa_select($slug, $opts, $vals);
|
7728 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7729 |
|
7730 |
-
$name = __('Fe Edit Theme CSS', 'wp-photo-album-plus');
|
7731 |
-
$desc = __('The front-end edit photo dialog uses the theme CSS.', 'wp-photo-album-plus');
|
7732 |
-
$help = __('This setting has effect when Frontend Edit is set to \'Classic\' only.', 'wp-photo-album-plus');
|
7733 |
$slug = 'wppa_upload_edit_theme_css';
|
7734 |
$html = wppa_checkbox($slug);
|
7735 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7736 |
|
7737 |
-
$name = __('Fe Edit New Items', 'wp-photo-album-plus');
|
7738 |
-
$desc = __('The items that are fe editable', 'wp-photo-album-plus');
|
7739 |
$help = wppa_see_also( 'custom', '2' );
|
7740 |
$slug1 = 'wppa_fe_edit_name';
|
7741 |
$slug2 = 'wppa_fe_edit_desc';
|
7742 |
$slug3 = 'wppa_fe_edit_tags';
|
7743 |
-
$html1 = ' <span style="float:left" >'.__('Name', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug1);
|
7744 |
-
$html2 = ' <span style="float:left" >'.__('Description', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug2);
|
7745 |
-
$html3 = ' <span style="float:left" >'.__('Tags', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug3);
|
7746 |
$html = array($html1.$html2.$html3);
|
7747 |
wppa_setting_new($slug1, '5', $name, $desc, $html, $help);
|
7748 |
|
7749 |
-
$name = __('Fe Edit Button text', 'wp-photo-album-plus');
|
7750 |
-
$desc = __('The text on the Edit button.', 'wp-photo-album-plus');
|
7751 |
$help = '';
|
7752 |
$slug = 'wppa_fe_edit_button';
|
7753 |
$html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
|
7754 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7755 |
|
7756 |
-
$name = __('Fe Edit Dialog caption', 'wp-photo-album-plus');
|
7757 |
-
$desc = __('The text on the header of the popup.', 'wp-photo-album-plus');
|
7758 |
$help = '';
|
7759 |
$slug = 'wppa_fe_edit_caption';
|
7760 |
$html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
|
@@ -7762,69 +7785,69 @@ global $wppa_subtab_names;
|
|
7762 |
|
7763 |
}
|
7764 |
|
7765 |
-
$name = __('Frontend Delete', 'wp-photo-album-plus');
|
7766 |
-
$desc = __('Allow the uploader to delete the photo', 'wp-photo-album-plus');
|
7767 |
$help = '';
|
7768 |
$slug = 'wppa_upload_delete';
|
7769 |
$html = wppa_checkbox($slug);
|
7770 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
7771 |
|
7772 |
-
$name = __('Fe Delete period', 'wp-photo-album-plus');
|
7773 |
-
$desc = __('The time since upload the user can delete the photo', 'wp-photo-album-plus');
|
7774 |
-
$help = __('Frontend Delete should be set in order to have effect', 'wp-photo-album-plus');
|
7775 |
-
$help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus');
|
7776 |
$slug = 'wppa_upload_delete_period';
|
7777 |
-
$opts = array( __('15 minutes', 'wp-photo-album-plus'),
|
7778 |
-
__('one hour', 'wp-photo-album-plus'),
|
7779 |
-
__('three hours', 'wp-photo-album-plus'),
|
7780 |
-
__('one day', 'wp-photo-album-plus'),
|
7781 |
-
__('for ever', 'wp-photo-album-plus'),
|
7782 |
);
|
7783 |
$vals = array( 900, 3600, 10800, 86400, 0 );
|
7784 |
$html = wppa_select($slug, $opts, $vals);
|
7785 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
7786 |
|
7787 |
-
$name = __('Uploader Moderate Comment', 'wp-photo-album-plus');
|
7788 |
-
$desc = __('The owner of the photo can moderate the photos comments.', 'wp-photo-album-plus');
|
7789 |
-
$help = __('This setting requires "Uploader edit" to be enabled also.', 'wp-photo-album-plus');
|
7790 |
$slug = 'wppa_owner_moderate_comment';
|
7791 |
$html = wppa_checkbox($slug);
|
7792 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
7793 |
|
7794 |
-
$name = __('Upload memory check', 'wp-photo-album-plus');
|
7795 |
-
$desc = __('Disable uploading photos that are too large.', 'wp-photo-album-plus');
|
7796 |
-
$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');
|
7797 |
$slug = 'wppa_memcheck';
|
7798 |
$html = wppa_checkbox($slug);
|
7799 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
7800 |
|
7801 |
-
$name = __('Upload memory check copy', 'wp-photo-album-plus');
|
7802 |
-
$desc = __('Copy photos that are too large.', 'wp-photo-album-plus');
|
7803 |
-
$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');
|
7804 |
$slug = 'wppa_memcheck_copy';
|
7805 |
$html = wppa_checkbox($slug);
|
7806 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
7807 |
|
7808 |
-
$name = __('Comment captcha', 'wp-photo-album-plus');
|
7809 |
-
$desc = __('Use a simple calculate captcha on comments form.', 'wp-photo-album-plus');
|
7810 |
$help = '';
|
7811 |
$slug = 'wppa_comment_captcha';
|
7812 |
-
$opts = array(__('All users', 'wp-photo-album-plus'), __('Logged out users', 'wp-photo-album-plus'), __('No users', 'wp-photo-album-plus'));
|
7813 |
$vals = array('all', 'logout', 'none');
|
7814 |
$html = wppa_select($slug, $opts, $vals);
|
7815 |
$clas = 'wppa_comment_';
|
7816 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
7817 |
|
7818 |
-
$name = __('Spam lifetime', 'wp-photo-album-plus');
|
7819 |
-
$desc = __('Delete spam comments when older than.', 'wp-photo-album-plus');
|
7820 |
$help = '';
|
7821 |
$slug = 'wppa_spam_maxage';
|
7822 |
-
$opts = array( __('--- off ---', 'wp-photo-album-plus'),
|
7823 |
-
sprintf( _n('%d minute', '%d minutes', '10', 'wp-photo-album-plus'), '10'),
|
7824 |
-
sprintf( _n('%d minute', '%d minutes', '30', 'wp-photo-album-plus'), '30'),
|
7825 |
-
sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus'), '1'),
|
7826 |
-
sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus'), '1'),
|
7827 |
-
sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus'), '1'),
|
7828 |
);
|
7829 |
|
7830 |
$vals = array( 'none',
|
@@ -7839,22 +7862,22 @@ global $wppa_subtab_names;
|
|
7839 |
$clas = 'wppa_comment_';
|
7840 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
7841 |
|
7842 |
-
$name = __('Avoid duplicates', 'wp-photo-album-plus');
|
7843 |
-
$desc = __('Prevent the creation of duplicate photos.', 'wp-photo-album-plus');
|
7844 |
-
$help = __('If checked: uploading, importing, copying or moving photos to other albums will be prevented when the destination album already contains a photo with the same filename.', 'wp-photo-album-plus');
|
7845 |
$slug = 'wppa_void_dups';
|
7846 |
$html = wppa_checkbox($slug);
|
7847 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
7848 |
|
7849 |
-
$name = __('Blacklist user', 'wp-photo-album-plus');
|
7850 |
-
$desc = __('Set the status of all the users photos to \'pending\'.', 'wp-photo-album-plus');
|
7851 |
-
$help = __('Also inhibits further uploads.', 'wp-photo-album-plus');
|
7852 |
$slug = 'wppa_blacklist_user';
|
7853 |
$blacklist = wppa_get_option( 'wppa_black_listed_users', array() );
|
7854 |
|
7855 |
if ( wppa_get_user_count() <= wppa_opt( 'max_users' ) ) {
|
7856 |
$users = wppa_get_users();
|
7857 |
-
$opts = array( __('--- select a user to blacklist ---', 'wp-photo-album-plus') );
|
7858 |
$vals = array( '0' );
|
7859 |
foreach ( $users as $usr ) {
|
7860 |
// if ( ! wppa_user_is( 'administrator', $usr['ID'] ) ) { // an administrator can not be blacklisted
|
@@ -7864,50 +7887,50 @@ global $wppa_subtab_names;
|
|
7864 |
}
|
7865 |
// }
|
7866 |
}
|
7867 |
-
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
7868 |
$html = wppa_select($slug, $opts, $vals, $onchange);
|
7869 |
}
|
7870 |
else { // over 1000 users
|
7871 |
-
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
7872 |
-
$html = '<span style="float:left" >'.__( 'User login name <b>( case sensitive! )</b>:', 'wp-photo-album-plus').'</span>';
|
7873 |
$html .= wppa_input ( $slug, '150px', '', '', $onchange );
|
7874 |
}
|
7875 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
7876 |
|
7877 |
-
$name = __('Unblacklist user', 'wp-photo-album-plus');
|
7878 |
-
$desc = __('Set the status of all the users photos to \'publish\'.', 'wp-photo-album-plus');
|
7879 |
$help = '';
|
7880 |
$slug = 'wppa_un_blacklist_user';
|
7881 |
$blacklist = wppa_get_option( 'wppa_black_listed_users', array() );
|
7882 |
-
$opts = array( __('--- select a user to unblacklist ---', 'wp-photo-album-plus') );
|
7883 |
$vals = array( '0' );
|
7884 |
foreach ( $blacklist as $usr ) {
|
7885 |
$u = wppa_get_user_by( 'login', $usr );
|
7886 |
$opts[] = htmlspecialchars( $u->display_name ).' ('.$u->user_login.')';
|
7887 |
$vals[] = $u->user_login;
|
7888 |
}
|
7889 |
-
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
|
7890 |
$html = wppa_select($slug, $opts, $vals, $onchange);
|
7891 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
7892 |
|
7893 |
-
$name = __('Photo owner change', 'wp-photo-album-plus');
|
7894 |
-
$desc = __('Administrators can change photo owner', 'wp-photo-album-plus');
|
7895 |
$help = '';
|
7896 |
$slug = 'wppa_photo_owner_change';
|
7897 |
$html = wppa_checkbox( $slug );
|
7898 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
7899 |
|
7900 |
-
$name = __('Super user', 'wp-photo-album-plus');
|
7901 |
-
$desc = __('Give these users all rights in wppa.', 'wp-photo-album-plus');
|
7902 |
-
$help = __('This gives the user all the administrator privileges within wppa.', 'wp-photo-album-plus');
|
7903 |
-
$help .= '<br>'.__('Make sure the user also has a role that has all the capability boxes ticked', 'wp-photo-album-plus');
|
7904 |
$help .= '<br>'.wppa_see_also( 'admin', '1' );
|
7905 |
$slug = 'wppa_superuser_user';
|
7906 |
$superlist = wppa_get_option( 'wppa_super_users', array() );
|
7907 |
|
7908 |
if ( wppa_get_user_count() <= wppa_opt( 'max_users' ) ) {
|
7909 |
$users = wppa_get_users();
|
7910 |
-
$opts = array( __('--- select a user to make superuser ---', 'wp-photo-album-plus') );
|
7911 |
$vals = array( '0' );
|
7912 |
foreach ( $users as $usr ) {
|
7913 |
if ( ! in_array( $usr['user_login'], $superlist ) ) { // skip already on superlist
|
@@ -7918,17 +7941,17 @@ global $wppa_subtab_names;
|
|
7918 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();');
|
7919 |
}
|
7920 |
else { // over 1000 users
|
7921 |
-
$html = '<span style="float:left" >'.__( 'User login name <b>( case sensitive! )</b>:', 'wp-photo-album-plus').'</span>';
|
7922 |
$html .= wppa_input( $slug, '150px', '', '', 'wppaRefreshAfter();' );
|
7923 |
}
|
7924 |
wppa_setting_new(false, '19', $name, $desc, $html, $help);
|
7925 |
|
7926 |
-
$name = __('Unsuper user', 'wp-photo-album-plus');
|
7927 |
-
$desc = __('Remove user from super user list.', 'wp-photo-album-plus');
|
7928 |
$help = '';
|
7929 |
$slug = 'wppa_un_superuser_user';
|
7930 |
$superlist = wppa_get_option( 'wppa_super_users', array() );
|
7931 |
-
$opts = array( __('--- select a user to unmake superuser ---', 'wp-photo-album-plus') );
|
7932 |
$vals = array( '0' );
|
7933 |
foreach ( $superlist as $usr ) {
|
7934 |
$u = wppa_get_user_by( 'login', $usr );
|
@@ -7946,13 +7969,13 @@ global $wppa_subtab_names;
|
|
7946 |
wppa_setting_tab_description($desc);
|
7947 |
wppa_setting_box_header_new($tab);
|
7948 |
|
7949 |
-
$name = __('Show dashboard widget', 'wp-photo-album-plus');
|
7950 |
-
$desc = __('Select when the dashboard widget should show up', 'wp-photo-album-plus');
|
7951 |
$help = '';
|
7952 |
$slug = 'wppa_show_dashboard_widgets';
|
7953 |
-
$opts = array( __('Never', 'wp-photo-album-plus'),
|
7954 |
-
__('All loggedin users', 'wp-photo-album-plus'),
|
7955 |
-
__('Administartors only', 'wp-photo-album-plus'),
|
7956 |
);
|
7957 |
$vals = array( 'none',
|
7958 |
'all',
|
@@ -7961,22 +7984,22 @@ global $wppa_subtab_names;
|
|
7961 |
$html = wppa_select($slug, $opts, $vals);
|
7962 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7963 |
|
7964 |
-
$name = __('Admin bar menu admin', 'wp-photo-album-plus');
|
7965 |
-
$desc = __('Show menu on admin bar on admin pages.', 'wp-photo-album-plus');
|
7966 |
$help = '';
|
7967 |
$slug = 'wppa_adminbarmenu_admin';
|
7968 |
$html = wppa_checkbox($slug);
|
7969 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7970 |
|
7971 |
-
$name = __('Admin bar menu frontend', 'wp-photo-album-plus');
|
7972 |
-
$desc = __('Show menu on admin bar on frontend pages.', 'wp-photo-album-plus');
|
7973 |
$help = '';
|
7974 |
$slug = 'wppa_adminbarmenu_frontend';
|
7975 |
$html = wppa_checkbox($slug);
|
7976 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7977 |
|
7978 |
-
$name = __('Album admin page size', 'wp-photo-album-plus');
|
7979 |
-
$desc = __('The number of albums per page on the Edit Album admin page.', 'wp-photo-album-plus');
|
7980 |
$help = '';
|
7981 |
$slug = 'wppa_album_admin_pagesize';
|
7982 |
$opts = array( '10', '20', '50', '100', '200', '500', '700', '1000', '1500', '2000' );
|
@@ -7984,8 +8007,8 @@ global $wppa_subtab_names;
|
|
7984 |
$html = wppa_select($slug, $opts, $vals);
|
7985 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7986 |
|
7987 |
-
$name = __('Photo admin page size', 'wp-photo-album-plus');
|
7988 |
-
$desc = __('The number of photos per page on the <br/>Edit Album -> Manage photos and Edit Photos admin pages.', 'wp-photo-album-plus');
|
7989 |
$help = '';
|
7990 |
$slug = 'wppa_photo_admin_pagesize';
|
7991 |
$opts = array( '10', '20', '50', '100', '200', '500', '700', '1000' );
|
@@ -7993,61 +8016,61 @@ global $wppa_subtab_names;
|
|
7993 |
$html = wppa_select($slug, $opts, $vals);
|
7994 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
7995 |
|
7996 |
-
$name = __('Photo admin max albums', 'wp-photo-album-plus');
|
7997 |
-
$desc = __('Max albums to show in album selectionbox.', 'wp-photo-album-plus');
|
7998 |
-
$help = __('If there are more albums in the system, display an input box asking for album id#', 'wp-photo-album-plus');
|
7999 |
$slug = 'wppa_photo_admin_max_albums';
|
8000 |
-
$opts = array( __( '--- off ---', 'wp-photo-album-plus'), '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
|
8001 |
$vals = array( '0', '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
|
8002 |
$html = wppa_select($slug, $opts, $vals, '', '', '', 'wppaRefreshAfter();');
|
8003 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
8004 |
|
8005 |
-
$name = __('Comment admin page size', 'wp-photo-album-plus');
|
8006 |
-
$desc = __('The number of comments per page on the Comments admin pages.', 'wp-photo-album-plus');
|
8007 |
$help = '';
|
8008 |
$slug = 'wppa_comment_admin_pagesize';
|
8009 |
-
$opts = array( __('--- off ---', 'wp-photo-album-plus'), '10', '20', '50', '100', '200');
|
8010 |
$vals = array('0', '10', '20', '50', '100', '200');
|
8011 |
$html = wppa_select($slug, $opts, $vals);
|
8012 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
8013 |
|
8014 |
-
$name = __('Geo info edit', 'wp-photo-album-plus');
|
8015 |
-
$desc = __('Lattitude and longitude may be edited in photo admin.', 'wp-photo-album-plus');
|
8016 |
$help = '';
|
8017 |
$slug = 'wppa_geo_edit';
|
8018 |
$html = wppa_checkbox($slug);
|
8019 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
8020 |
|
8021 |
-
$name = __('Add shortcode to posts', 'wp-photo-album-plus');
|
8022 |
-
$desc = __('Add a shortcode to the end of all posts.', 'wp-photo-album-plus');
|
8023 |
$help = '';
|
8024 |
$slug = 'wppa_add_shortcode_to_post';
|
8025 |
$html = wppa_checkbox($slug);
|
8026 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
8027 |
|
8028 |
-
$name = __('Shortcode to add', 'wp-photo-album-plus');
|
8029 |
-
$desc = __('The shortcode to be added to the posts.', 'wp-photo-album-plus');
|
8030 |
$help = '';
|
8031 |
$slug = 'wppa_shortcode_to_add';
|
8032 |
$html = wppa_input($slug, '300px');
|
8033 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
8034 |
|
8035 |
-
$name = __('Enable shortcode generator', 'wp-photo-album-plus');
|
8036 |
-
$desc = __('Show album icon above page/post edit window', 'wp-photo-album-plus');
|
8037 |
-
$help = __('Administrators and wppa super users will always have the shortcode generator available.', 'wp-photo-album-plus');
|
8038 |
$slug = 'wppa_enable_generator';
|
8039 |
$html = wppa_checkbox($slug);
|
8040 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
8041 |
|
8042 |
-
$name = __('Bulk photo moderation', 'wp-photo-album-plus');
|
8043 |
-
$desc = __('Use bulk edit for photo moderation', 'wp-photo-album-plus');
|
8044 |
$help = '';
|
8045 |
$slug = 'wppa_moderate_bulk';
|
8046 |
$html = wppa_checkbox($slug);
|
8047 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
8048 |
|
8049 |
-
$name = __('Max in shortcode generator', 'wp-photo-album-plus');
|
8050 |
-
$desc = __('Maximum nuber of selectable photos in the shortcode generators', 'wp-photo-album-plus');
|
8051 |
$help = '';
|
8052 |
$slug = 'wppa_generator_max';
|
8053 |
$opts = array( '5', '10', '20', '50', '100', '200', '500', '1000', '2000', '5000' );
|
@@ -8063,36 +8086,36 @@ global $wppa_subtab_names;
|
|
8063 |
wppa_setting_tab_description($desc);
|
8064 |
wppa_setting_box_header_new($tab);
|
8065 |
|
8066 |
-
$name = __('Search', 'wp-photo-album-plus');
|
8067 |
-
$desc = __('Search bar like on album table page', 'wp-photo-album-plus');
|
8068 |
$help = '';
|
8069 |
$slug = 'wppa_opt_menu_search';
|
8070 |
$html = wppa_checkbox($slug);
|
8071 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
8072 |
|
8073 |
-
$name = __('Logfile', 'wp-photo-album-plus');
|
8074 |
-
$desc = __('List logfile', 'wp-photo-album-plus');
|
8075 |
$help = '';
|
8076 |
$slug = 'wppa_logfile_on_menu';
|
8077 |
$html = wppa_checkbox($slug);
|
8078 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
8079 |
|
8080 |
-
$name = __('Documentation', 'wp-photo-album-plus');
|
8081 |
-
$desc = __('Link to documentation site', 'wp-photo-album-plus');
|
8082 |
$help = '';
|
8083 |
$slug = 'wppa_opt_menu_doc';
|
8084 |
$html = wppa_checkbox($slug);
|
8085 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
8086 |
|
8087 |
-
$name = __('Edit tags', 'wp-photo-album-plus');
|
8088 |
-
$desc = __('Easy way to global edit tags. Requires capability "wppa_edit_tags"', 'wp-photo-album-plus');
|
8089 |
$help = '';
|
8090 |
$slug = 'wppa_opt_menu_edit_tags';
|
8091 |
$html = wppa_checkbox($slug);
|
8092 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
8093 |
|
8094 |
-
$name = __('Photo sequence', 'wp-photo-album-plus');
|
8095 |
-
$desc = __('Rearrange photos of an album. Requires capability "wppa_edit_sequence"', 'wp-photo-album-plus');
|
8096 |
$help = '';
|
8097 |
$slug = 'wppa_opt_menu_edit_sequence';
|
8098 |
$html = wppa_checkbox($slug);
|
@@ -8110,20 +8133,20 @@ global $wppa_subtab_names;
|
|
8110 |
wppa_setting_tab_description($desc);
|
8111 |
|
8112 |
$coldef = array( '#' => '24px;',
|
8113 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
8114 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
8115 |
-
__('Specification', 'wp-photo-album-plus') => 'auto;',
|
8116 |
-
__('Do it!', 'wp-photo-album-plus') => 'auto;',
|
8117 |
-
__('Status', 'wp-photo-album-plus') => 'auto;',
|
8118 |
-
__('To Go', 'wp-photo-album-plus') => 'auto;',
|
8119 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
8120 |
);
|
8121 |
|
8122 |
wppa_setting_box_header_new($tab, $coldef);
|
8123 |
|
8124 |
-
$name = __('Postpone cron', 'wp-photo-album-plus');
|
8125 |
-
$desc = __('Temporary do no background processes.', 'wp-photo-album-plus');
|
8126 |
-
$help = __('This setting is meant to be used a.o. during bulk import/upload. Use with care!', 'wp-photo-album-plus');
|
8127 |
$slug = 'wppa_maint_ignore_cron';
|
8128 |
$html1 = wppa_checkbox( $slug );
|
8129 |
$html2 = '';
|
@@ -8132,10 +8155,10 @@ global $wppa_subtab_names;
|
|
8132 |
$html = array($html1, $html2, $html3, $html4);
|
8133 |
wppa_setting_new(false, '0', $name, $desc, $html, $help);
|
8134 |
|
8135 |
-
$name = __('Setup', 'wp-photo-album-plus');
|
8136 |
-
$desc = __('Re-initialize plugin.', 'wp-photo-album-plus');
|
8137 |
-
$help = __('Re-initilizes the plugin, (re)creates database tables and sets up default settings and directories if required.', 'wp-photo-album-plus');
|
8138 |
-
$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');
|
8139 |
$slug = 'wppa_setup';
|
8140 |
$html1 = '';
|
8141 |
$html2 = wppa_doit_button_new($slug);
|
@@ -8144,9 +8167,9 @@ global $wppa_subtab_names;
|
|
8144 |
$html = array($html1, $html2, $html3, $html4);
|
8145 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
8146 |
|
8147 |
-
$name = __('Backup settings', 'wp-photo-album-plus');
|
8148 |
-
$desc = __('Save all settings into a backup file.', 'wp-photo-album-plus');
|
8149 |
-
$help = __('Saves all the settings into a backup file', 'wp-photo-album-plus');
|
8150 |
$slug1 = 'wppa_backup_filename';
|
8151 |
$slug2 = 'wppa_backup';
|
8152 |
$html1 = wppa_input( $slug1, '200px;', '', '', '', 'settings.bak' );
|
@@ -8189,21 +8212,21 @@ global $wppa_subtab_names;
|
|
8189 |
$html = array($html1, $html2, $html3, $html4);
|
8190 |
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
8191 |
|
8192 |
-
$name = __('Regenerate', 'wp-photo-album-plus');
|
8193 |
-
$desc = __('Regenerate all thumbnails.', 'wp-photo-album-plus');
|
8194 |
$help = '';
|
8195 |
$slug1 = 'wppa_regen_thumbs_skip_one';
|
8196 |
$slug2 = 'wppa_regen_thumbs';
|
8197 |
-
$html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'regen_thumbs_skip_one', '0', true );
|
8198 |
$html2 = wppa_maintenance_button( $slug2 );
|
8199 |
$html3 = wppa_status_field( $slug2 );
|
8200 |
$html4 = wppa_togo_field( $slug2 );
|
8201 |
$html = array($html1, $html2, $html3, $html4);
|
8202 |
wppa_setting_new(false, '4', $name, $desc, $html, $help);
|
8203 |
|
8204 |
-
$name = __('Rerate', 'wp-photo-album-plus');
|
8205 |
-
$desc = __('Recalculate ratings.', 'wp-photo-album-plus');
|
8206 |
-
$help = __('This function will recalculate all mean photo ratings from the ratings table.', 'wp-photo-album-plus');
|
8207 |
$slug2 = 'wppa_rerate';
|
8208 |
$html1 = wppa_cronjob_button( $slug2 );
|
8209 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8212,9 +8235,9 @@ global $wppa_subtab_names;
|
|
8212 |
$html = array($html1, $html2, $html3, $html4);
|
8213 |
wppa_setting_new(false, '5', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
8214 |
|
8215 |
-
$name = __('Lost and found', 'wp-photo-album-plus');
|
8216 |
-
$desc = __('Find "lost" photos.', 'wp-photo-album-plus');
|
8217 |
-
$help = __('This function will attempt to find lost photos.', 'wp-photo-album-plus');
|
8218 |
$slug2 = 'wppa_cleanup';
|
8219 |
$html1 = '';
|
8220 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8223,9 +8246,9 @@ global $wppa_subtab_names;
|
|
8223 |
$html = array($html1, $html2, $html3, $html4);
|
8224 |
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
8225 |
|
8226 |
-
$name = __('Recuperate', 'wp-photo-album-plus');
|
8227 |
-
$desc = __('Recuperate IPTC and EXIF data from photos in WPPA+.', 'wp-photo-album-plus');
|
8228 |
-
$help = __('This action will attempt to find and register IPTC and EXIF data from photos in the WPPA+ system.', 'wp-photo-album-plus');
|
8229 |
$slug2 = 'wppa_recup';
|
8230 |
$html1 = wppa_cronjob_button( $slug2 );
|
8231 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8234,8 +8257,8 @@ global $wppa_subtab_names;
|
|
8234 |
$html = array($html1, $html2, $html3, $html4);
|
8235 |
wppa_setting_new(false, '7', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) || wppa_switch( 'save_iptc' ) );
|
8236 |
|
8237 |
-
$name = __('Format exif', 'wp-photo-album-plus');
|
8238 |
-
$desc = __('Format EXIF data', 'wp-photo-album-plus');
|
8239 |
$help = '';
|
8240 |
$slug2 = 'wppa_format_exif';
|
8241 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8245,19 +8268,19 @@ global $wppa_subtab_names;
|
|
8245 |
$html = array($html1, $html2, $html3, $html4);
|
8246 |
wppa_setting_new(false, '8', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
|
8247 |
|
8248 |
-
$name = __('Remake Index Albums', 'wp-photo-album-plus');
|
8249 |
-
$desc = __('Remakes the index database table for albums.', 'wp-photo-album-plus');
|
8250 |
$help = '';
|
8251 |
$slug2 = 'wppa_remake_index_albums';
|
8252 |
-
$html1 = wppa_cronjob_button( $slug2 );// . __('ad inf', 'wp-photo-album-plus') . wppa_checkbox( $slug2.'_ad_inf' );
|
8253 |
$html2 = wppa_maintenance_button( $slug2 );
|
8254 |
$html3 = wppa_status_field( $slug2 );
|
8255 |
$html4 = wppa_togo_field( $slug2 );
|
8256 |
$html = array($html1, $html2, $html3, $html4);
|
8257 |
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
8258 |
|
8259 |
-
$name = __('Remake Index Photos', 'wp-photo-album-plus');
|
8260 |
-
$desc = __('Remakes the index database table for photos.', 'wp-photo-album-plus');
|
8261 |
$help = '';
|
8262 |
$slug2 = 'wppa_remake_index_photos';
|
8263 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8267,8 +8290,8 @@ global $wppa_subtab_names;
|
|
8267 |
$html = array($html1, $html2, $html3, $html4);
|
8268 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
8269 |
|
8270 |
-
$name = __('Clean Index', 'wp-photo-album-plus');
|
8271 |
-
$desc = __('Remove obsolete entries from index db table.', 'wp-photo-album-plus');
|
8272 |
$help = '';
|
8273 |
$slug2 = 'wppa_cleanup_index';
|
8274 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8284,14 +8307,14 @@ global $wppa_subtab_names;
|
|
8284 |
wppa_update_option('wppa_file_system', 'flat');
|
8285 |
}
|
8286 |
if ( $fs == 'flat' || $fs == 'to-tree' ) {
|
8287 |
-
$name = __('Convert to tree', 'wp-photo-album-plus');
|
8288 |
-
$desc = __('Convert filesystem to tree structure.', 'wp-photo-album-plus');
|
8289 |
}
|
8290 |
if ( $fs == 'tree' || $fs == 'to-flat' ) {
|
8291 |
-
$name = __('Convert to flat', 'wp-photo-album-plus');
|
8292 |
-
$desc = __('Convert filesystem to flat structure.', 'wp-photo-album-plus');
|
8293 |
}
|
8294 |
-
$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');
|
8295 |
$slug2 = 'wppa_file_system';
|
8296 |
$html1 = '';
|
8297 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8300,29 +8323,29 @@ global $wppa_subtab_names;
|
|
8300 |
$html = array($html1, $html2, $html3, $html4);
|
8301 |
wppa_setting_new(false, '12', $name, $desc, $html, $help);
|
8302 |
|
8303 |
-
$name = __('Remake add', 'wp-photo-album-plus');
|
8304 |
-
$desc = __('Photos will be added from the source pool. See next item', 'wp-photo-album-plus');
|
8305 |
-
$help = __('If checked: If photo files are found in the source directory that do not exist in the corresponding album, they will be added to the album.', 'wp-photo-album-plus');
|
8306 |
$slug = 'wppa_remake_add';
|
8307 |
$html1 = wppa_checkbox($slug);
|
8308 |
$html0 = '';
|
8309 |
$html = array($html1, $html0, $html0, $html0);
|
8310 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
8311 |
|
8312 |
-
$name = __('Remake', 'wp-photo-album-plus');
|
8313 |
-
$desc = __('Remake the photofiles from photo sourcefiles.', 'wp-photo-album-plus');
|
8314 |
-
$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');
|
8315 |
$slug1 = 'wppa_remake_skip_one';
|
8316 |
$slug2 = 'wppa_remake';
|
8317 |
-
$html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'remake_skip_one', '0', true );
|
8318 |
$html2 = wppa_maintenance_button( $slug2 );
|
8319 |
$html3 = wppa_status_field( $slug2 );
|
8320 |
$html4 = wppa_togo_field( $slug2 );
|
8321 |
$html = array($html1, $html2, $html3, $html4);
|
8322 |
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
8323 |
|
8324 |
-
$name = __('Orientation only', 'wp-photo-album-plus');
|
8325 |
-
$desc = __('Remake non standard orientated photos only.', 'wp-photo-album-plus');
|
8326 |
$help = '';
|
8327 |
$slug1 = '';
|
8328 |
$slug2 = 'wppa_remake_orientation_only';
|
@@ -8333,8 +8356,8 @@ global $wppa_subtab_names;
|
|
8333 |
$html = array($html1, $html2, $html3, $html4);
|
8334 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
8335 |
|
8336 |
-
$name = __('Missing only', 'wp-photo-album-plus');
|
8337 |
-
$desc = __('Remake missing photofiles only.', 'wp-photo-album-plus');
|
8338 |
$help = '';
|
8339 |
$slug1 = '';
|
8340 |
$slug2 = 'wppa_remake_missing_only';
|
@@ -8345,8 +8368,8 @@ global $wppa_subtab_names;
|
|
8345 |
$html = array($html1, $html2, $html3, $html4);
|
8346 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
8347 |
|
8348 |
-
$name = __('Recalc sizes', 'wp-photo-album-plus');
|
8349 |
-
$desc = __('Recalculate photosizes and save to db.', 'wp-photo-album-plus');
|
8350 |
$help = '';
|
8351 |
$slug2 = 'wppa_comp_sizes';
|
8352 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8356,8 +8379,8 @@ global $wppa_subtab_names;
|
|
8356 |
$html = array($html1, $html2, $html3, $html4);
|
8357 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
8358 |
|
8359 |
-
$name = __('Renew album crypt', 'wp-photo-album-plus');
|
8360 |
-
$desc = __('Renew album encrcryption codes.', 'wp-photo-album-plus');
|
8361 |
$help = '';
|
8362 |
$slug2 = 'wppa_crypt_albums';
|
8363 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8367,22 +8390,22 @@ global $wppa_subtab_names;
|
|
8367 |
$html = array($html1, $html2, $html3, $html4);
|
8368 |
wppa_setting_new(false, '18', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8369 |
|
8370 |
-
$name = __('Renew album crypt every', 'wp-photo-album-plus');
|
8371 |
-
$desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
|
8372 |
-
$help = __('The periodic times are an approximation', 'wp-photo-album-plus');
|
8373 |
$slug = 'wppa_crypt_albums_every';
|
8374 |
-
$opts = array( __('--- off ---', 'wp-photo-album-plus'),
|
8375 |
-
__('hour', 'wp-photo-album-plus'),
|
8376 |
-
__('day', 'wp-photo-album-plus'),
|
8377 |
-
__('week', 'wp-photo-album-plus'),
|
8378 |
-
__('month', 'wp-photo-album-plus'),
|
8379 |
);
|
8380 |
$vals = array( '0', '1', '24', '168', '720' );
|
8381 |
$html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
|
8382 |
wppa_setting_new(false, '19', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8383 |
|
8384 |
-
$name = __('Renew photo crypt', 'wp-photo-album-plus');
|
8385 |
-
$desc = __('Renew photo encrcryption codes.', 'wp-photo-album-plus');
|
8386 |
$help = '';
|
8387 |
$slug2 = 'wppa_crypt_photos';
|
8388 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8392,26 +8415,26 @@ global $wppa_subtab_names;
|
|
8392 |
$html = array($html1, $html2, $html3, $html4);
|
8393 |
wppa_setting_new(false, '20', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8394 |
|
8395 |
-
$name = __('Renew photo crypt every', 'wp-photo-album-plus');
|
8396 |
-
$desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
|
8397 |
-
$help = __('The periodic times are an approximation', 'wp-photo-album-plus');
|
8398 |
$slug = 'wppa_crypt_photos_every';
|
8399 |
-
$opts = array( __('--- off ---', 'wp-photo-album-plus'),
|
8400 |
-
__('hour', 'wp-photo-album-plus'),
|
8401 |
-
__('day', 'wp-photo-album-plus'),
|
8402 |
-
__('week', 'wp-photo-album-plus'),
|
8403 |
-
__('month', 'wp-photo-album-plus'),
|
8404 |
);
|
8405 |
$vals = array( '0', '1', '24', '168', '720' );
|
8406 |
$html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
|
8407 |
wppa_setting_new(false, '21', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8408 |
|
8409 |
-
$name = __('Create orietation sources', 'wp-photo-album-plus');
|
8410 |
-
$desc = __('Creates correctly oriented pseudo source file.', 'wp-photo-album-plus');
|
8411 |
$help = '';
|
8412 |
$slug1 = 'wppa_create_o1_files_skip_one';
|
8413 |
$slug2 = 'wppa_create_o1_files';
|
8414 |
-
$html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'create_o1_files_skip_one', '0', true );
|
8415 |
$html2 = wppa_maintenance_button( $slug2 );
|
8416 |
$html3 = wppa_status_field( $slug2 );
|
8417 |
$html4 = wppa_togo_field( $slug2 );
|
@@ -8426,20 +8449,20 @@ global $wppa_subtab_names;
|
|
8426 |
wppa_setting_tab_description($desc);
|
8427 |
|
8428 |
$coldef = array( '#' => '24px;',
|
8429 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
8430 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
8431 |
-
__('Specification', 'wp-photo-album-plus') => 'auto;',
|
8432 |
-
__('Do it!', 'wp-photo-album-plus') => 'auto;',
|
8433 |
-
__('Status', 'wp-photo-album-plus') => 'auto;',
|
8434 |
-
__('To Go', 'wp-photo-album-plus') => 'auto;',
|
8435 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
8436 |
);
|
8437 |
|
8438 |
wppa_setting_box_header_new($tab, $coldef);
|
8439 |
|
8440 |
-
$name = __('Clear ratings', 'wp-photo-album-plus');
|
8441 |
-
$desc = __('Reset all ratings.', 'wp-photo-album-plus');
|
8442 |
-
$help = __('WARNING: If checked, this will clear all ratings in the system!', 'wp-photo-album-plus');
|
8443 |
$slug = 'wppa_rating_clear';
|
8444 |
$html1 = '';
|
8445 |
$html2 = wppa_ajax_button('', 'rating_clear');
|
@@ -8448,9 +8471,9 @@ global $wppa_subtab_names;
|
|
8448 |
$html = array($html1, $html2, $html3, $html4);
|
8449 |
wppa_setting_new(false, '1', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
8450 |
|
8451 |
-
$name = __('Clear viewcounts', 'wp-photo-album-plus');
|
8452 |
-
$desc = __('Reset all viewcounts.', 'wp-photo-album-plus');
|
8453 |
-
$help = __('WARNING: If checked, this will clear all viewcounts in the system!', 'wp-photo-album-plus');
|
8454 |
$slug = 'wppa_viewcount_clear';
|
8455 |
$html1 = '';
|
8456 |
$html2 = wppa_ajax_button('', 'viewcount_clear');
|
@@ -8459,9 +8482,9 @@ global $wppa_subtab_names;
|
|
8459 |
$html = array($html1, $html2, $html3, $html4);
|
8460 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
8461 |
|
8462 |
-
$name = __('Reset IPTC', 'wp-photo-album-plus');
|
8463 |
-
$desc = __('Clear all IPTC data.', 'wp-photo-album-plus');
|
8464 |
-
$help = __('WARNING: If checked, this will clear all IPTC data in the system!', 'wp-photo-album-plus');
|
8465 |
$slug = 'wppa_iptc_clear';
|
8466 |
$html1 = '';
|
8467 |
$html2 = wppa_ajax_button('', 'iptc_clear');
|
@@ -8470,9 +8493,9 @@ global $wppa_subtab_names;
|
|
8470 |
$html = array($html1, $html2, $html3, $html4);
|
8471 |
wppa_setting_new(false, '3', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
8472 |
|
8473 |
-
$name = __('Reset EXIF', 'wp-photo-album-plus');
|
8474 |
-
$desc = __('Clear all EXIF data.', 'wp-photo-album-plus');
|
8475 |
-
$help = __('WARNING: If checked, this will clear all EXIF data in the system!', 'wp-photo-album-plus');
|
8476 |
$slug = 'wppa_exif_clear';
|
8477 |
$html1 = '';
|
8478 |
$html2 = wppa_ajax_button('', 'exif_clear');
|
@@ -8481,9 +8504,9 @@ global $wppa_subtab_names;
|
|
8481 |
$html = array($html1, $html2, $html3, $html4);
|
8482 |
wppa_setting_new(false, '4', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
|
8483 |
|
8484 |
-
$name = __('Apply Default Photoname', 'wp-photo-album-plus');
|
8485 |
-
$desc = __('Apply Default photo name on all photos in the system.', 'wp-photo-album-plus');
|
8486 |
-
$help = __('Puts the content of Default photo name in all photo name.', 'wp-photo-album-plus');
|
8487 |
$help .= '<br>'.wppa_see_also( 'new', '1', '29' );
|
8488 |
$slug2 = 'wppa_apply_default_photoname_all';
|
8489 |
$html1 = '';
|
@@ -8493,9 +8516,9 @@ global $wppa_subtab_names;
|
|
8493 |
$html = array($html1, $html2, $html3, $html4);
|
8494 |
wppa_setting_new(false, '5', $name, $desc, $html, $help);
|
8495 |
|
8496 |
-
$name = __('Apply New Photodesc', 'wp-photo-album-plus');
|
8497 |
-
$desc = __('Apply New photo description on all photos in the system.', 'wp-photo-album-plus');
|
8498 |
-
$help = __('Puts the content of New photo desc in all photo descriptions.', 'wp-photo-album-plus');
|
8499 |
$help .= '<br>'.wppa_see_also( 'new', '1', '13' );
|
8500 |
$slug2 = 'wppa_apply_new_photodesc_all';
|
8501 |
$html1 = '';
|
@@ -8505,10 +8528,10 @@ global $wppa_subtab_names;
|
|
8505 |
$html = array($html1, $html2, $html3, $html4);
|
8506 |
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
8507 |
|
8508 |
-
$name = __('Append to photodesc', 'wp-photo-album-plus');
|
8509 |
-
$desc = __('Append this text to all photo descriptions.', 'wp-photo-album-plus');
|
8510 |
-
$help = __('Appends a space character and the given text to the description of all photos.', 'wp-photo-album-plus');
|
8511 |
-
$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');
|
8512 |
$slug1 = 'wppa_append_text';
|
8513 |
$slug2 = 'wppa_append_to_photodesc';
|
8514 |
$html1 = wppa_input( $slug1, '200px' );
|
@@ -8518,10 +8541,10 @@ global $wppa_subtab_names;
|
|
8518 |
$html = array($html1, $html2, $html3, $html4);
|
8519 |
wppa_setting_new(false, '7', $name, $desc, $html, $help);
|
8520 |
|
8521 |
-
$name = __('Remove from photodesc', 'wp-photo-album-plus');
|
8522 |
-
$desc = __('Remove this text from all photo descriptions.', 'wp-photo-album-plus');
|
8523 |
-
$help = __('Removes all occurrencies of the given text from the description of all photos.', 'wp-photo-album-plus');
|
8524 |
-
$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');
|
8525 |
$slug1 = 'wppa_remove_text';
|
8526 |
$slug2 = 'wppa_remove_from_photodesc';
|
8527 |
$html1 = wppa_input( $slug1, '200px' );
|
@@ -8531,9 +8554,9 @@ global $wppa_subtab_names;
|
|
8531 |
$html = array($html1, $html2, $html3, $html4);
|
8532 |
wppa_setting_new(false, '8', $name, $desc, $html, $help);
|
8533 |
|
8534 |
-
$name = __('Remove empty albums', 'wp-photo-album-plus');
|
8535 |
-
$desc = __('Removes albums that are not used.', 'wp-photo-album-plus');
|
8536 |
-
$help = __('Removes all albums that have no photos and no sub albums in it.', 'wp-photo-album-plus');
|
8537 |
$slug2 = 'wppa_remove_empty_albums';
|
8538 |
$html1 = '';
|
8539 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8542,9 +8565,9 @@ global $wppa_subtab_names;
|
|
8542 |
$html = array($html1, $html2, $html3, $html4);
|
8543 |
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
8544 |
|
8545 |
-
$name = __('Remove file-ext', 'wp-photo-album-plus');
|
8546 |
-
$desc = __('Remove possible file extension from photo name.', 'wp-photo-album-plus');
|
8547 |
-
$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');
|
8548 |
$slug2 = 'wppa_remove_file_extensions';
|
8549 |
$html1 = '';
|
8550 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8553,8 +8576,8 @@ global $wppa_subtab_names;
|
|
8553 |
$html = array($html1, $html2, $html3, $html4);
|
8554 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
8555 |
|
8556 |
-
$name = __('Re-add file-ext', 'wp-photo-album-plus');
|
8557 |
-
$desc = __('Revert the <b>Remove file-ext</b> action.', 'wp-photo-album-plus');
|
8558 |
$help = '';
|
8559 |
$slug2 = 'wppa_readd_file_extensions';
|
8560 |
$html1 = '';
|
@@ -8564,9 +8587,9 @@ global $wppa_subtab_names;
|
|
8564 |
$html = array($html1, $html2, $html3, $html4);
|
8565 |
wppa_setting_new(false, '11', $name, $desc, $html, $help);
|
8566 |
|
8567 |
-
$name = __('Watermark all', 'wp-photo-album-plus');
|
8568 |
-
$desc = __('Apply watermark according to current settings to all photos.', 'wp-photo-album-plus');
|
8569 |
-
$help = __('See Tab Watermark for the current watermark settings', 'wp-photo-album-plus');
|
8570 |
$slug2 = 'wppa_watermark_all';
|
8571 |
$html1 = '';
|
8572 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8575,9 +8598,9 @@ global $wppa_subtab_names;
|
|
8575 |
$html = array($html1, $html2, $html3, $html4);
|
8576 |
wppa_setting_new(false, '13', $name, $desc, $html, $help, wppa_switch( 'watermark_on' ));
|
8577 |
|
8578 |
-
$name = __('Create all autopages', 'wp-photo-album-plus');
|
8579 |
-
$desc = __('Create all the pages to display slides individually.', 'wp-photo-album-plus');
|
8580 |
-
$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');
|
8581 |
$help .= wppa_see_also( 'system', '1', '8' );
|
8582 |
$slug2 = 'wppa_create_all_autopages';
|
8583 |
$html1 = '';
|
@@ -8587,8 +8610,8 @@ global $wppa_subtab_names;
|
|
8587 |
$html = array($html1, $html2, $html3, $html4);
|
8588 |
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
8589 |
|
8590 |
-
$name = __('Delete all autopages', 'wp-photo-album-plus');
|
8591 |
-
$desc = __('Delete all the pages to display slides individually.', 'wp-photo-album-plus');
|
8592 |
$help = wppa_see_also( 'system', '1', '8' );
|
8593 |
$slug2 = 'wppa_delete_all_autopages';
|
8594 |
$html1 = '';
|
@@ -8598,20 +8621,20 @@ global $wppa_subtab_names;
|
|
8598 |
$html = array($html1, $html2, $html3, $html4);
|
8599 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
8600 |
|
8601 |
-
$name = __('Leading zeroes', 'wp-photo-album-plus');
|
8602 |
-
$desc = __('If photoname numeric, add leading zeros', 'wp-photo-album-plus');
|
8603 |
-
$help = __('You can extend the name with leading zeros, so alphabetic sort becomes equal to numeric sort order.', 'wp-photo-album-plus');
|
8604 |
$slug1 = 'wppa_zero_numbers';
|
8605 |
$slug2 = 'wppa_leading_zeros';
|
8606 |
-
$html1 = wppa_input( $slug1, '50px' ).__('Total chars', 'wp-photo-album-plus');
|
8607 |
$html2 = wppa_maintenance_button( $slug2 );
|
8608 |
$html3 = wppa_status_field( $slug2 );
|
8609 |
$html4 = wppa_togo_field( $slug2 );
|
8610 |
$html = array($html1, $html2, $html3, $html4);
|
8611 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
8612 |
|
8613 |
-
$name = __('Add GPX tag', 'wp-photo-album-plus');
|
8614 |
-
$desc = __('Make sure photos with gpx data have a Gpx tag', 'wp-photo-album-plus');
|
8615 |
$help = '';
|
8616 |
$slug2 = 'wppa_add_gpx_tag';
|
8617 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8621,8 +8644,8 @@ global $wppa_subtab_names;
|
|
8621 |
$html = array($html1, $html2, $html3, $html4);
|
8622 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
8623 |
|
8624 |
-
$name = __('Add HD tag', 'wp-photo-album-plus');
|
8625 |
-
$desc = __('Make sure photos >= 1920 x 1080 have a HD tag', 'wp-photo-album-plus');
|
8626 |
$help = '';
|
8627 |
$slug2 = 'wppa_add_hd_tag';
|
8628 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8633,11 +8656,11 @@ global $wppa_subtab_names;
|
|
8633 |
wppa_setting_new(false, '18', $name, $desc, $html, $help);
|
8634 |
|
8635 |
if ( function_exists( 'ewww_image_optimizer') ) {
|
8636 |
-
$name = __('Optimize files', 'wp-photo-album-plus');
|
8637 |
-
$desc = __('Optimize with EWWW image optimizer', 'wp-photo-album-plus');
|
8638 |
$help = '';
|
8639 |
$slug2 = 'wppa_optimize_ewww';
|
8640 |
-
$html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'optimize_ewww_skip_one', '0', true );
|
8641 |
$html2 = wppa_maintenance_button( $slug2 );
|
8642 |
$html3 = wppa_status_field( $slug2 );
|
8643 |
$html4 = wppa_togo_field( $slug2 );
|
@@ -8645,30 +8668,30 @@ global $wppa_subtab_names;
|
|
8645 |
wppa_setting_new(false, '19', $name, $desc, $html, $help);
|
8646 |
}
|
8647 |
|
8648 |
-
$name = __('Edit tag', 'wp-photo-album-plus');
|
8649 |
-
$desc = __('Globally change a tagname.', 'wp-photo-album-plus');
|
8650 |
$help = '';
|
8651 |
$slug1 = 'wppa_tag_to_edit';
|
8652 |
$slug2 = 'wppa_new_tag_value';
|
8653 |
$slug3 = 'wppa_edit_tag';
|
8654 |
$tags = wppa_get_taglist();
|
8655 |
-
$opts = array(__('-select a tag-', 'wp-photo-album-plus'));
|
8656 |
$vals = array( '' );
|
8657 |
if ( $tags ) foreach( array_keys( $tags ) as $tag ) {
|
8658 |
$opts[] = $tag;
|
8659 |
$vals[] = $tag;
|
8660 |
}
|
8661 |
-
$html1 = '<div><small style="float:left;margin-right:5px;" >'.__('Tag:', 'wp-photo-album-plus').'</small>'.wppa_select( $slug1, $opts, $vals, '', '', false, '', '600').'</div>';
|
8662 |
-
$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>';
|
8663 |
$html3 = wppa_maintenance_button( $slug3 );
|
8664 |
$html4 = wppa_status_field( $slug3 );
|
8665 |
$html5 = wppa_togo_field( $slug3 );
|
8666 |
$html = array( $html1 . '<br>' . $html2, $html3, $html4, $html5 );
|
8667 |
wppa_setting_new( false, '20', $name, $desc, $html, $help);
|
8668 |
|
8669 |
-
$name = __('Synchronize Cloudinary', 'wp-photo-album-plus');
|
8670 |
-
$desc = __('Removes/adds images in the cloud.', 'wp-photo-album-plus');
|
8671 |
-
$help = __('Removes old images and verifies/adds new images to Cloudinary.', 'wp-photo-album-plus');
|
8672 |
$help .= '<br>'.wppa_see_also( 'miscadv', '4', '7' );
|
8673 |
$slug2 = 'wppa_sync_cloud';
|
8674 |
$html1 = '';
|
@@ -8678,8 +8701,8 @@ global $wppa_subtab_names;
|
|
8678 |
$html = array($html1, $html2, $html3, $html4);
|
8679 |
wppa_setting_new(false, '21', $name, $desc, $html, $help);
|
8680 |
|
8681 |
-
$name = __('Set owner to name', 'wp-photo-album-plus');
|
8682 |
-
$desc = __('If photoname equals user display name, set him owner.', 'wp-photo-album-plus');
|
8683 |
$help = '';
|
8684 |
$slug2 = 'wppa_owner_to_name_proc';
|
8685 |
$html1 = '';
|
@@ -8689,8 +8712,8 @@ global $wppa_subtab_names;
|
|
8689 |
$html = array($html1, $html2, $html3, $html4);
|
8690 |
wppa_setting_new(false, '24', $name, $desc, $html, $help);
|
8691 |
|
8692 |
-
$name = __('Move all photos', 'wp-photo-album-plus');
|
8693 |
-
$desc = __('Move all photos from one album to another album.', 'wp-photo-album-plus');
|
8694 |
$help = '';
|
8695 |
$slug2 = 'wppa_move_all_photos';
|
8696 |
$html1 = '';
|
@@ -8702,16 +8725,16 @@ global $wppa_subtab_names;
|
|
8702 |
|
8703 |
if ( wppa_get_total_album_count() > 200 ) { // Many albums: input id
|
8704 |
|
8705 |
-
$name = __('From', 'wp-photo-album-plus');
|
8706 |
-
$desc = __('Move from album number', 'wp-photo-album-plus');
|
8707 |
$help = '';
|
8708 |
$slug = 'wppa_move_all_photos_from';
|
8709 |
$html = wppa_input($slug, '100px' );
|
8710 |
$html = array($html, '', '', '');
|
8711 |
wppa_setting_new(false, '26', $name, $desc, $html, $help);
|
8712 |
|
8713 |
-
$name = __('To', 'wp-photo-album-plus');
|
8714 |
-
$desc = __('Move to album number', 'wp-photo-album-plus');
|
8715 |
$help = '';
|
8716 |
$slug = 'wppa_move_all_photos_to';
|
8717 |
$html = wppa_input($slug, '100px' );
|
@@ -8721,8 +8744,8 @@ global $wppa_subtab_names;
|
|
8721 |
}
|
8722 |
else { // Few albums: selectionbox
|
8723 |
|
8724 |
-
$name = __('From', 'wp-photo-album-plus');
|
8725 |
-
$desc = __('Move from album', 'wp-photo-album-plus');
|
8726 |
$help = '';
|
8727 |
$slug = 'wppa_move_all_photos_from';
|
8728 |
$html = '<select' .
|
@@ -8740,14 +8763,14 @@ global $wppa_subtab_names;
|
|
8740 |
' id="img_move_all_photos_from"' .
|
8741 |
' class=""' .
|
8742 |
' src="'.wppa_get_imgdir().'star.ico"' .
|
8743 |
-
' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
|
8744 |
' style="padding-left:4px; float:left; height:16px; width:16px;"' .
|
8745 |
' />';
|
8746 |
$html = array($html, '', '', '');
|
8747 |
wppa_setting_new(false, '28', $name, $desc, $html, $help);
|
8748 |
|
8749 |
-
$name = __('To', 'wp-photo-album-plus');
|
8750 |
-
$desc = __('Move to album', 'wp-photo-album-plus');
|
8751 |
$help = '';
|
8752 |
$slug = 'wppa_move_all_photos_to';
|
8753 |
$html = '<select' .
|
@@ -8765,15 +8788,15 @@ global $wppa_subtab_names;
|
|
8765 |
' id="img_move_all_photos_to"' .
|
8766 |
' class=""' .
|
8767 |
' src="'.wppa_get_imgdir().'star.ico"' .
|
8768 |
-
' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
|
8769 |
' style="padding-left:4px; float:left; height:16px; width:16px;"' .
|
8770 |
' />';
|
8771 |
$html = array($html, '', '', '');
|
8772 |
wppa_setting_new(false, '29', $name, $desc, $html, $help);
|
8773 |
}
|
8774 |
|
8775 |
-
$name = __('Remove hypens from photonames', 'wp-photo-album-plus');
|
8776 |
-
$desc = __('Remove all hyphens from all photo names and replace them by spaces', 'wp-photo-album-plus');
|
8777 |
$help = '';
|
8778 |
$slug2 = 'wppa_photos_hyphens_to_spaces';
|
8779 |
$html1 = wppa_cronjob_button( $slug2 );
|
@@ -8783,8 +8806,8 @@ global $wppa_subtab_names;
|
|
8783 |
$html = array($html1, $html2, $html3, $html4);
|
8784 |
wppa_setting_new(false, '30', $name, $desc, $html, $help);
|
8785 |
|
8786 |
-
$name = __('PNG to JPG', 'wp-photo-album-plus');
|
8787 |
-
$desc = __('Convert all .png files to .jpg files', 'wp-photo-album-plus');
|
8788 |
$help = '';
|
8789 |
$slug2 = 'wppa_png_to_jpg';
|
8790 |
$html1 = '';
|
@@ -8794,8 +8817,8 @@ global $wppa_subtab_names;
|
|
8794 |
$html = array($html1, $html2, $html3, $html4);
|
8795 |
wppa_setting_new(false, '31', $name, $desc, $html, $help);
|
8796 |
|
8797 |
-
$name = __('Fix mp4 meta data', 'wp-photo-album-plus');
|
8798 |
-
$desc = __('Import framesize, creationdate and duration from mp4 video files', 'wp-photo-album-plus');
|
8799 |
$help = '';
|
8800 |
$slug2 = 'wppa_fix_mp4_meta';
|
8801 |
$html1 = '';
|
@@ -8805,9 +8828,9 @@ global $wppa_subtab_names;
|
|
8805 |
$html = array($html1, $html2, $html3, $html4);
|
8806 |
wppa_setting_new(false, '32', $name, $desc, $html, $help);
|
8807 |
|
8808 |
-
$name = __('Fix user ids', 'wp-photo-album-plus');
|
8809 |
-
$desc = __('Fill in missing user ids to ratings and comments', 'wp-photo-album-plus');
|
8810 |
-
$help = __('Only used to update ratings and comments entered before version 7.3 to meet the new standards', 'wp-photo-album-plus');
|
8811 |
$slug2 = 'wppa_fix_userids';
|
8812 |
$html1 = wppa_cronjob_button( $slug2 );
|
8813 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8816,8 +8839,8 @@ global $wppa_subtab_names;
|
|
8816 |
$html = array($html1, $html2, $html3, $html4);
|
8817 |
wppa_setting_new(false, '33', $name, $desc, $html, $help);
|
8818 |
|
8819 |
-
$name = __('Re-init custom and tags', 'wp-photo-album-plus');
|
8820 |
-
$desc = __('Re-initialize custom photo fields and default tags', 'wp-photo-album-plus');
|
8821 |
$help = '';
|
8822 |
$slug2 = 'wppa_fix_custom_tags';
|
8823 |
$html1 = '';
|
@@ -8828,9 +8851,9 @@ global $wppa_subtab_names;
|
|
8828 |
wppa_setting_new(false, '34', $name, $desc, $html, $help);
|
8829 |
|
8830 |
if ( current_user_can( 'administrator' ) ) {
|
8831 |
-
$name = __('Custom album proc', 'wp-photo-album-plus');
|
8832 |
-
$desc = __('The php code to execute on all albums', 'wp-photo-album-plus');
|
8833 |
-
$help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
|
8834 |
$slug2 = 'wppa_custom_album_proc';
|
8835 |
$html1 = wppa_textarea( $slug2, '', true );
|
8836 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8839,9 +8862,9 @@ global $wppa_subtab_names;
|
|
8839 |
$html = array($html1, $html2, $html3, $html4);
|
8840 |
wppa_setting_new(false, '35', $name, $desc, $html, $help);
|
8841 |
|
8842 |
-
$name = __('Custom photo proc', 'wp-photo-album-plus');
|
8843 |
-
$desc = __('The php code to execute on all photos', 'wp-photo-album-plus');
|
8844 |
-
$help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
|
8845 |
$slug2 = 'wppa_custom_photo_proc';
|
8846 |
$html1 = wppa_textarea( $slug2, '', true );
|
8847 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8851,8 +8874,8 @@ global $wppa_subtab_names;
|
|
8851 |
wppa_setting_new(false, '36', $name, $desc, $html, $help);
|
8852 |
}
|
8853 |
|
8854 |
-
$name = __('List active sessions', 'wp-photo-album-plus');
|
8855 |
-
$desc = __('Show the content of the sessions table.', 'wp-photo-album-plus');
|
8856 |
$help = '';
|
8857 |
$slug1 = '';
|
8858 |
$slug2 = 'wppa_list_session';
|
@@ -8871,20 +8894,20 @@ global $wppa_subtab_names;
|
|
8871 |
wppa_setting_tab_description($desc);
|
8872 |
|
8873 |
$coldef = array( '#' => '24px;',
|
8874 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
8875 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
8876 |
-
__('Specification', 'wp-photo-album-plus') => 'auto;',
|
8877 |
-
__('Do it!', 'wp-photo-album-plus') => 'auto;',
|
8878 |
-
__('Status', 'wp-photo-album-plus') => 'auto;',
|
8879 |
-
__('To Go', 'wp-photo-album-plus') => 'auto;',
|
8880 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
8881 |
);
|
8882 |
|
8883 |
wppa_setting_box_header_new($tab, $coldef);
|
8884 |
|
8885 |
-
$name = __('Fix tags', 'wp-photo-album-plus');
|
8886 |
-
$desc = __('Make sure photo tags format is uptodate', 'wp-photo-album-plus');
|
8887 |
-
$help = __('Fixes tags to be conform current database rules.', 'wp-photo-album-plus');
|
8888 |
$slug2 = 'wppa_sanitize_tags';
|
8889 |
$html1 = wppa_cronjob_button( $slug2 );
|
8890 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8893,9 +8916,9 @@ global $wppa_subtab_names;
|
|
8893 |
$html = array($html1, $html2, $html3, $html4);
|
8894 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
8895 |
|
8896 |
-
$name = __('Fix cats', 'wp-photo-album-plus');
|
8897 |
-
$desc = __('Make sure album cats format is uptodate', 'wp-photo-album-plus');
|
8898 |
-
$help = __('Fixes cats to be conform current database rules.', 'wp-photo-album-plus');
|
8899 |
$slug2 = 'wppa_sanitize_cats';
|
8900 |
$html1 = wppa_cronjob_button( $slug2 );
|
8901 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8904,9 +8927,9 @@ global $wppa_subtab_names;
|
|
8904 |
$html = array($html1, $html2, $html3, $html4);
|
8905 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
8906 |
|
8907 |
-
$name = htmlspecialchars(__('Convert user-<id> tags', 'wp-photo-album-plus'));
|
8908 |
-
$desc = __('Convert old style usertags to new style.', 'wp-photo-album-plus');
|
8909 |
-
$help = htmlspecialchars(__('Converts user-<id> tags - created by the Choice feature - to user displaynames.', 'wp-photo-album-plus'));
|
8910 |
$slug2 = 'wppa_covert_usertags';
|
8911 |
$html1 = wppa_cronjob_button( $slug2 );
|
8912 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8915,10 +8938,10 @@ global $wppa_subtab_names;
|
|
8915 |
$html = array($html1, $html2, $html3, $html4);
|
8916 |
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
8917 |
|
8918 |
-
$name = __('All to lower', 'wp-photo-album-plus');
|
8919 |
-
$desc = __('Convert all file-extensions to lowercase.', 'wp-photo-album-plus');
|
8920 |
-
$help = __('Affects display files, thumbnail files, and saved extensions in database table. Leaves sourcefiles untouched', 'wp-photo-album-plus');
|
8921 |
-
$help .= '<br>'.__('If both upper and lowercase files exist, the file with the uppercase extension will be removed.', 'wp-photo-album-plus');
|
8922 |
$slug2 = 'wppa_all_ext_to_lower';
|
8923 |
$html1 = wppa_cronjob_button( $slug2 );
|
8924 |
$html2 = wppa_maintenance_button( $slug2 );
|
@@ -8938,12 +8961,12 @@ global $wppa_subtab_names;
|
|
8938 |
$desc = $wppa_subtab_names[$tab]['1'];
|
8939 |
wppa_setting_tab_description($desc);
|
8940 |
|
8941 |
-
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
8942 |
-
__('Tag', 'wp-photo-album-plus') => 'auto;',
|
8943 |
-
__('Brand', 'wp-photo-album-plus') => 'auto;',
|
8944 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
8945 |
-
__('Status', 'wp-photo-album-plus') => 'auto;',
|
8946 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
8947 |
);
|
8948 |
wppa_setting_box_header_new($tab, $coldef);
|
8949 |
|
@@ -8976,7 +8999,7 @@ global $wppa_subtab_names;
|
|
8976 |
}
|
8977 |
}
|
8978 |
|
8979 |
-
$opts = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
|
8980 |
$vals = array('display', 'hide', 'option');
|
8981 |
$html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $opts, $vals);
|
8982 |
$html = array($html1, $html2);
|
@@ -8996,11 +9019,11 @@ global $wppa_subtab_names;
|
|
8996 |
$desc = $wppa_subtab_names[$tab]['1'];
|
8997 |
wppa_setting_tab_description($desc);
|
8998 |
|
8999 |
-
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
9000 |
-
__('Tag', 'wp-photo-album-plus') => 'auto;',
|
9001 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
9002 |
-
__('Status', 'wp-photo-album-plus') => 'auto;',
|
9003 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
9004 |
);
|
9005 |
wppa_setting_box_header_new($tab, $coldef);
|
9006 |
|
@@ -9017,7 +9040,7 @@ global $wppa_subtab_names;
|
|
9017 |
$slug1 = 'wppa_iptc_label_'.$name;
|
9018 |
$slug2 = 'wppa_iptc_status_'.$name;
|
9019 |
$html1 = wppa_edit($slug1, htmlspecialchars( $label['description'] ));
|
9020 |
-
$opts = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
|
9021 |
$vals = array('display', 'hide', 'option');
|
9022 |
$html2 = wppa_select_e($slug2, $label['status'], $opts, $vals);
|
9023 |
wppa_setting_new(false, $i, $name, $html1, $html2, $help);
|
@@ -9037,41 +9060,41 @@ global $wppa_subtab_names;
|
|
9037 |
wppa_setting_tab_description($desc);
|
9038 |
wppa_setting_box_header_new($tab);
|
9039 |
|
9040 |
-
$name = __('GPX Implementation', 'wp-photo-album-plus');
|
9041 |
-
$desc = __('The way the maps are produced.', 'wp-photo-album-plus');
|
9042 |
-
$help = __('Select the way the maps are produced.', 'wp-photo-album-plus');
|
9043 |
$slug = 'wppa_gpx_implementation';
|
9044 |
-
$opts = array( __('WPPA+ Embedded code', 'wp-photo-album-plus'), __('External plugin', 'wp-photo-album-plus') );
|
9045 |
$vals = array( 'wppa-plus-embedded', 'external-plugin' );
|
9046 |
$onch = 'wppaRefreshAfter()';
|
9047 |
$html = wppa_select($slug, $opts, $vals, $onch);
|
9048 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
9049 |
|
9050 |
-
$name = __('Map height', 'wp-photo-album-plus');
|
9051 |
-
$desc = __('The height of the map display.', 'wp-photo-album-plus');
|
9052 |
-
$help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
|
9053 |
$slug = 'wppa_map_height';
|
9054 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
9055 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
|
9056 |
|
9057 |
-
$name = __('Google maps API key', 'wp-photo-album-plus');
|
9058 |
-
$desc = __('Enter your Google maps api key here if you have one.', 'wp-photo-album-plus');
|
9059 |
$help = '';
|
9060 |
$slug = 'wppa_map_apikey';
|
9061 |
$html = wppa_input($slug, '300px', '');
|
9062 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
9063 |
|
9064 |
-
$name = __('GPX Shortcode', 'wp-photo-album-plus');
|
9065 |
-
$desc = __('The shortcode to be used for the gpx feature.', 'wp-photo-album-plus');
|
9066 |
-
$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');
|
9067 |
-
$help .= '<br>' . __('This item is required for using an external Google maps viewer plugin only', 'wp-photo-album-plus');
|
9068 |
$slug = 'wppa_gpx_shortcode';
|
9069 |
$html = wppa_input($slug, '500px');
|
9070 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
|
9071 |
|
9072 |
-
$name = __('Zoom level', 'wp-photo-album-plus');
|
9073 |
-
$desc = __('The zoomlevel for GPX maps', 'wp-photo-album-plus');
|
9074 |
-
$help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
|
9075 |
$slug = 'wppa_geo_zoom';
|
9076 |
$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',);
|
9077 |
$vals = $opts;
|
@@ -9089,12 +9112,12 @@ global $wppa_subtab_names;
|
|
9089 |
$desc = $wppa_subtab_names[$tab]['1'];
|
9090 |
if ( wppa_switch( 'album_custom_fields' ) ) {
|
9091 |
$coldef = array( '#' => '24px;',
|
9092 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
9093 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
9094 |
-
__('Custom caption', 'wp-photo-album-plus') => 'auto;',
|
9095 |
-
__('Visible', 'wp-photo-album-plus') => 'auto;',
|
9096 |
-
__('Editable', 'wp-photo-album-plus') => 'auto;',
|
9097 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
9098 |
);
|
9099 |
|
9100 |
|
@@ -9102,10 +9125,10 @@ global $wppa_subtab_names;
|
|
9102 |
wppa_setting_box_header_new($tab, $coldef);
|
9103 |
|
9104 |
for ( $i = '0'; $i < '10'; $i++ ) {
|
9105 |
-
$name = sprintf(__('Name, vis, edit %s', 'wp-photo-album-plus'), $i);
|
9106 |
-
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus'), $i);
|
9107 |
-
$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);
|
9108 |
-
$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');
|
9109 |
$slug1 = 'wppa_album_custom_caption_'.$i;
|
9110 |
$html1 = wppa_input($slug1, '300px');
|
9111 |
$slug2 = 'wppa_album_custom_visible_'.$i;
|
@@ -9124,13 +9147,13 @@ global $wppa_subtab_names;
|
|
9124 |
$desc = $wppa_subtab_names[$tab]['2'];
|
9125 |
if ( wppa_switch( 'custom_fields' ) ) {
|
9126 |
$coldef = array( '#' => '24px;',
|
9127 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
9128 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
9129 |
-
__('Custom caption', 'wp-photo-album-plus') => 'auto;',
|
9130 |
-
__('Visible', 'wp-photo-album-plus') => 'auto;',
|
9131 |
-
__('Editable', 'wp-photo-album-plus') => 'auto;',
|
9132 |
-
__('Default', 'wp-photo-album-plus') => 'auto;',
|
9133 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
9134 |
);
|
9135 |
|
9136 |
|
@@ -9202,10 +9225,10 @@ global $wppa_subtab_names;
|
|
9202 |
*/
|
9203 |
|
9204 |
for ( $i = '0'; $i < '10'; $i++ ) {
|
9205 |
-
$name = sprintf(__('Name, vis, edit %s dflt', 'wp-photo-album-plus'), $i);
|
9206 |
-
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus'), $i);
|
9207 |
-
$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);
|
9208 |
-
$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');
|
9209 |
$slug1 = 'wppa_custom_caption_'.$i;
|
9210 |
$html1 = wppa_input($slug1, '300px');
|
9211 |
$slug2 = 'wppa_custom_visible_'.$i;
|
@@ -9231,39 +9254,39 @@ global $wppa_subtab_names;
|
|
9231 |
wppa_setting_tab_description($desc);
|
9232 |
wppa_setting_box_header_new($tab);
|
9233 |
|
9234 |
-
$name = __('Watermark file', 'wp-photo-album-plus');
|
9235 |
-
$desc = __('The default watermarkfile to be used.', 'wp-photo-album-plus');
|
9236 |
-
$help = __('Watermark files are of type png and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/watermarks/';
|
9237 |
-
$help .= '<br>'.__('A suitable watermarkfile typically consists of a transparent background and a black text or drawing.', 'wp-photo-album-plus');
|
9238 |
-
$help .= '<br>'.sprintf(__('The watermark image will be overlaying the photo with %s%% transparency.', 'wp-photo-album-plus'), (100-wppa_opt( 'watermark_opacity' )));
|
9239 |
-
$help .= '<br>'.__('You may also select one of the textual watermark types at the bottom of the selection list.', 'wp-photo-album-plus');
|
9240 |
$slug = 'wppa_watermark_file';
|
9241 |
$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>';
|
9242 |
-
$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;" />';
|
9243 |
-
$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>';
|
9244 |
-
$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;" />';
|
9245 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
9246 |
|
9247 |
-
$name = __('Upload watermark', 'wp-photo-album-plus');
|
9248 |
-
$desc = __('Upload a new watermark file', 'wp-photo-album-plus');
|
9249 |
$help = '';
|
9250 |
$slug = 'wppa_watermark_file_upload';
|
9251 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.png' );
|
9252 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
9253 |
|
9254 |
-
$name = __('Watermark opacity image', 'wp-photo-album-plus');
|
9255 |
-
$desc = __('You can set the intensity of image watermarks here.', 'wp-photo-album-plus');
|
9256 |
-
$help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
|
9257 |
$slug = 'wppa_watermark_opacity';
|
9258 |
$html = wppa_input($slug, '50px', '', '%');
|
9259 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
9260 |
|
9261 |
-
$name = __('Textual watermark style', 'wp-photo-album-plus');
|
9262 |
-
$desc = __('The way the textual watermarks look like', 'wp-photo-album-plus');
|
9263 |
$help = '';
|
9264 |
$slug = 'wppa_textual_watermark_type';
|
9265 |
$clas = 'wppa_watermark';
|
9266 |
-
$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') );
|
9267 |
$svals = array( 'tvstyle', 'whiteonblack', 'blackonwhite', 'utopia', 'white', 'black' );
|
9268 |
$font = wppa_opt( 'textual_watermark_font' );
|
9269 |
$onch = 'wppaCheckFontPreview()';
|
@@ -9271,19 +9294,19 @@ global $wppa_subtab_names;
|
|
9271 |
$preview = '<img style="background-color:#777;" id="wm-type-preview" src="" />';
|
9272 |
wppa_setting_new($slug, '4', $name, $desc, $html.' '.$preview, $help, $clas);
|
9273 |
|
9274 |
-
$name = __('Predefined watermark text', 'wp-photo-album-plus');
|
9275 |
-
$desc = __('The text to use when --- pre-defined --- is selected.', 'wp-photo-album-plus');
|
9276 |
-
$help = __('You may use the following keywords:', 'wp-photo-album-plus');
|
9277 |
-
$help .= '<br>'.__('w#site, w#displayname, all standard photo keywords, iptc and exif keywords', 'wp-photo-album-plus');
|
9278 |
$slug = 'wppa_textual_watermark_text';
|
9279 |
$html = wppa_textarea($slug, $name);
|
9280 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
9281 |
|
9282 |
if ( function_exists( 'imagettfbbox' ) ) {
|
9283 |
|
9284 |
-
$name = __('Textual watermark font', 'wp-photo-album-plus');
|
9285 |
-
$desc = __('The font to use with textual watermarks.', 'wp-photo-album-plus');
|
9286 |
-
$help = __('Except for the system font, are font files of type ttf and reside in', 'wp-photo-album-plus') . ' ' . WPPA_UPLOAD_URL . '/fonts/';
|
9287 |
$slug = 'wppa_textual_watermark_font';
|
9288 |
$fopts = array( 'System' );
|
9289 |
$fvals = array( 'system' );
|
@@ -9309,48 +9332,48 @@ global $wppa_subtab_names;
|
|
9309 |
}
|
9310 |
}
|
9311 |
|
9312 |
-
$name = __('Textual watermark font size', 'wp-photo-album-plus');
|
9313 |
-
$desc = __('You can set the size of the truetype fonts only.', 'wp-photo-album-plus');
|
9314 |
-
$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');
|
9315 |
-
$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');
|
9316 |
-
$help .= '<br>'.__('It is unclear how many pixels a point is...', 'wp-photo-album-plus');
|
9317 |
$slug = 'wppa_textual_watermark_size';
|
9318 |
$html = wppa_input($slug, '50px', '', 'points');
|
9319 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
9320 |
|
9321 |
-
$name = __('Foreground color', 'wp-photo-album-plus');
|
9322 |
-
$desc = __('Textual watermark foreground color (black).', 'wp-photo-album-plus');
|
9323 |
$help = '';
|
9324 |
$slug = 'wppa_watermark_fgcol_text';
|
9325 |
$onch = 'wppaRefreshAfter();';
|
9326 |
$html = wppa_input_color($slug, '100px;', '', '', $onch );
|
9327 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
9328 |
|
9329 |
-
$name = __('Background color', 'wp-photo-album-plus');
|
9330 |
-
$desc = __('Textual watermark background color (white).', 'wp-photo-album-plus');
|
9331 |
$help = '';
|
9332 |
$slug = 'wppa_watermark_bgcol_text';
|
9333 |
$onch = 'wppaRefreshAfter();';
|
9334 |
$html = wppa_input_color($slug, '100px;', '', '', $onch );
|
9335 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
9336 |
|
9337 |
-
$name = __('Upload watermark font', 'wp-photo-album-plus');
|
9338 |
-
$desc = __('Upload a new watermark font file', 'wp-photo-album-plus');
|
9339 |
-
$help = __('Upload truetype fonts (.ttf) only, and test if they work on your server platform.', 'wp-photo-album-plus');
|
9340 |
$slug = 'wppa_watermark_font_upload';
|
9341 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.ttf' );
|
9342 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
9343 |
|
9344 |
-
$name = __('Watermark opacity text', 'wp-photo-album-plus');
|
9345 |
-
$desc = __('You can set the intensity of a text watermarks here.', 'wp-photo-album-plus');
|
9346 |
-
$help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus');
|
9347 |
$slug = 'wppa_watermark_opacity_text';
|
9348 |
$html = wppa_input($slug, '50px', '', '%');
|
9349 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
9350 |
|
9351 |
-
$name = __('Preview', 'wp-photo-album-plus');
|
9352 |
-
$desc = __('A preview. Keywords in descriptions or predefined text are not translated.', 'wp-photo-album-plus');
|
9353 |
-
$help = __('To see the changes: refresh the page', 'wp-photo-album-plus');
|
9354 |
$slug = 'wppa_watermark_preview';
|
9355 |
$tr = floor( 127 * ( 100 - wppa_opt( 'watermark_opacity_text' ) ) / 100 );
|
9356 |
$args = array( 'id' => '0', 'url' => true, 'width' => '1000', 'height' => '400', 'transp' => $tr );
|
@@ -9373,8 +9396,8 @@ global $wppa_subtab_names;
|
|
9373 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
9374 |
}
|
9375 |
|
9376 |
-
$name = __('Watermark thumbnails', 'wp-photo-album-plus');
|
9377 |
-
$desc = __('Watermark also the thumbnail image files.', 'wp-photo-album-plus');
|
9378 |
$help = '';
|
9379 |
$slug = 'wppa_watermark_thumbs';
|
9380 |
$html = wppa_checkbox($slug);
|
@@ -9382,18 +9405,18 @@ global $wppa_subtab_names;
|
|
9382 |
$tags = 'water,thumb';
|
9383 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
9384 |
|
9385 |
-
$name = __('Watermark size', 'wp-photo-album-plus');
|
9386 |
-
$desc = __('The size of the image based watermark in percents of the image width', 'wp-photo-album-plus');
|
9387 |
-
$help = __('Select a value, --- off --- means: use the watermark image as is', 'wp-photo-album-plus');
|
9388 |
$slug = 'wppa_watermark_size';
|
9389 |
-
$opts = array( __('--- off ---', 'wp-photo-album-plus'), '10%', '20%', '25%', '30%', '40%', '50%', '60%', '70%', '80%', '90%' );
|
9390 |
$vals = array( '0', '10', '20', '25', '30', '40', '50', '60', '70', '80', '90' );
|
9391 |
$html = wppa_select($slug, $opts, $vals);
|
9392 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
9393 |
|
9394 |
-
$name = __('Watermark margin', 'wp-photo-album-plus');
|
9395 |
-
$desc = __('The margin for the watermark from the edge of the image', 'wp-photo-album-plus');
|
9396 |
-
$help = __('A value > 1 means pixels, a value < 1 means fraction. E.g enter 0.12 for 12%', 'wp-photo-album-plus');
|
9397 |
$slug = 'wppa_watermark_margin';
|
9398 |
$html = wppa_input($slug, '40px;');
|
9399 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
@@ -9409,102 +9432,102 @@ global $wppa_subtab_names;
|
|
9409 |
$desc = $wppa_subtab_names[$tab]['1'];
|
9410 |
wppa_setting_tab_description($desc);
|
9411 |
|
9412 |
-
$coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
|
9413 |
-
__('Name', 'wp-photo-album-plus') => 'auto;',
|
9414 |
-
__('Description', 'wp-photo-album-plus') => 'auto;',
|
9415 |
-
__('Value', 'wp-photo-album-plus') => 'auto;',
|
9416 |
-
__('Download', 'wp-photo-album-plus') => 'auto;',
|
9417 |
-
__('Help', 'wp-photo-album-plus') => '24px;',
|
9418 |
);
|
9419 |
wppa_setting_box_header_new($tab, $coldef);
|
9420 |
|
9421 |
$name = 'WPPA_ALBUMS';
|
9422 |
-
$desc = __('Albums db table name.', 'wp-photo-album-plus');
|
9423 |
$help = '';
|
9424 |
$html1 = WPPA_ALBUMS . wppa_see_also( 'miscadv', '1', '12' );
|
9425 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_ALBUMS . '\')" >' .
|
9426 |
-
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_ALBUMS . '.csv' .
|
9427 |
'</a> ' .
|
9428 |
'<img id="' . WPPA_ALBUMS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9429 |
$html = array( $html1, $html2 );
|
9430 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
9431 |
|
9432 |
$name = 'WPPA_PHOTOS';
|
9433 |
-
$desc = __('Photos db table name.', 'wp-photo-album-plus');
|
9434 |
$help = '';
|
9435 |
$html1 = WPPA_PHOTOS;
|
9436 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_PHOTOS . '\')" >' .
|
9437 |
-
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_PHOTOS . '.csv' .
|
9438 |
'</a> ' .
|
9439 |
'<img id="' . WPPA_PHOTOS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9440 |
$html = array( $html1, $html2 );
|
9441 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
9442 |
|
9443 |
$name = 'WPPA_RATING';
|
9444 |
-
$desc = __('Rating db table name.', 'wp-photo-album-plus');
|
9445 |
$help = '';
|
9446 |
$html1 = WPPA_RATING;
|
9447 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_RATING . '\')" >' .
|
9448 |
-
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_RATING . '.csv' .
|
9449 |
'</a> ' .
|
9450 |
'<img id="' . WPPA_RATING . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9451 |
$html = array( $html1, $html2 );
|
9452 |
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
9453 |
|
9454 |
$name = 'WPPA_COMMENTS';
|
9455 |
-
$desc = __('Comments db table name.', 'wp-photo-album-plus');
|
9456 |
$help = '';
|
9457 |
$html1 = WPPA_COMMENTS;
|
9458 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_COMMENTS . '\')" >' .
|
9459 |
-
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_COMMENTS . '.csv' .
|
9460 |
'</a> ' .
|
9461 |
'<img id="' . WPPA_COMMENTS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9462 |
$html = array( $html1, $html2 );
|
9463 |
wppa_setting_new(false, '4', $name, $desc, $html, $help);
|
9464 |
|
9465 |
$name = 'WPPA_IPTC';
|
9466 |
-
$desc = __('IPTC db table name.', 'wp-photo-album-plus');
|
9467 |
$help = '';
|
9468 |
$html1 = WPPA_IPTC;
|
9469 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_IPTC . '\')" >' .
|
9470 |
-
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_IPTC . '.csv' .
|
9471 |
'</a> ' .
|
9472 |
'<img id="' . WPPA_IPTC . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9473 |
$html = array( $html1, $html2 );
|
9474 |
wppa_setting_new(false, '5', $name, $desc, $html, $help);
|
9475 |
|
9476 |
$name = 'WPPA_EXIF';
|
9477 |
-
$desc = __('EXIF db table name.', 'wp-photo-album-plus');
|
9478 |
$help = '';
|
9479 |
$html1 = WPPA_EXIF;
|
9480 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_EXIF . '\')" >' .
|
9481 |
-
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_EXIF . '.csv' .
|
9482 |
'</a> ' .
|
9483 |
'<img id="' . WPPA_EXIF . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9484 |
$html = array( $html1, $html2 );
|
9485 |
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
9486 |
|
9487 |
$name = 'WPPA_INDEX';
|
9488 |
-
$desc = __('Index db table name.', 'wp-photo-album-plus');
|
9489 |
$help = '';
|
9490 |
$html1 = WPPA_INDEX;
|
9491 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_INDEX . '\')" >' .
|
9492 |
-
__('Download', 'wp-photo-album-plus') . ' ' . WPPA_INDEX . '.csv' .
|
9493 |
'</a> ' .
|
9494 |
'<img id="' . WPPA_INDEX . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9495 |
$html = array( $html1, $html2 );
|
9496 |
wppa_setting_new(false, '7', $name, $desc, $html, $help);
|
9497 |
|
9498 |
$name = 'WPPA_SESSION';
|
9499 |
-
$desc = __('Session db table name.', 'wp-photo-album-plus');
|
9500 |
$help = '';
|
9501 |
$html1 = WPPA_SESSION;
|
9502 |
-
$html2 = sprintf( __('Download %s is useless', 'wp-photo-album-plus'), WPPA_SESSION );
|
9503 |
$html = array( $html1, $html2 );
|
9504 |
wppa_setting_new(false, '8', $name, $desc, $html, $help);
|
9505 |
|
9506 |
$name = 'WPPA_FILE';
|
9507 |
-
$desc = __('Plugins main file name.', 'wp-photo-album-plus');
|
9508 |
$help = '';
|
9509 |
$html1 = WPPA_FILE;
|
9510 |
$html2 = '';
|
@@ -9512,7 +9535,7 @@ global $wppa_subtab_names;
|
|
9512 |
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
9513 |
|
9514 |
$name = 'ABSPATH';
|
9515 |
-
$desc = __('WP absolute path.', 'wp-photo-album-plus');
|
9516 |
$help = '';
|
9517 |
$html1 = ABSPATH;
|
9518 |
$html2 = '';
|
@@ -9520,7 +9543,7 @@ global $wppa_subtab_names;
|
|
9520 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
9521 |
|
9522 |
$name = 'WPPA_ABSPATH';
|
9523 |
-
$desc = __('ABSPATH windows proof', 'wp-photo-album-plus');
|
9524 |
$help = '';
|
9525 |
$html1 = WPPA_ABSPATH;
|
9526 |
$html2 = '';
|
@@ -9528,7 +9551,7 @@ global $wppa_subtab_names;
|
|
9528 |
wppa_setting_new(false, '11', $name, $desc, $html, $help);
|
9529 |
|
9530 |
$name = 'WPPA_PATH';
|
9531 |
-
$desc = __('Path to plugins directory.', 'wp-photo-album-plus');
|
9532 |
$help = '';
|
9533 |
$html1 = WPPA_PATH;
|
9534 |
$html2 = '';
|
@@ -9536,7 +9559,7 @@ global $wppa_subtab_names;
|
|
9536 |
wppa_setting_new(false, '12', $name, $desc, $html, $help);
|
9537 |
|
9538 |
$name = 'WPPA_NAME';
|
9539 |
-
$desc = __('Plugins directory name.', 'wp-photo-album-plus');
|
9540 |
$help = '';
|
9541 |
$html1 = WPPA_NAME;
|
9542 |
$html2 = '';
|
@@ -9544,7 +9567,7 @@ global $wppa_subtab_names;
|
|
9544 |
wppa_setting_new(false, '13', $name, $desc, $html, $help);
|
9545 |
|
9546 |
$name = 'WPPA_URL';
|
9547 |
-
$desc = __('Plugins directory url.', 'wp-photo-album-plus');
|
9548 |
$help = '';
|
9549 |
$html1 = WPPA_URL;
|
9550 |
$html2 = '';
|
@@ -9552,7 +9575,7 @@ global $wppa_subtab_names;
|
|
9552 |
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
9553 |
|
9554 |
$name = 'WPPA_UPLOAD';
|
9555 |
-
$desc = __('The relative upload directory.', 'wp-photo-album-plus');
|
9556 |
$help = '';
|
9557 |
$html1 = WPPA_UPLOAD;
|
9558 |
$html2 = '';
|
@@ -9560,7 +9583,7 @@ global $wppa_subtab_names;
|
|
9560 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
9561 |
|
9562 |
$name = 'WPPA_UPLOAD_PATH';
|
9563 |
-
$desc = __('The upload directory path.', 'wp-photo-album-plus');
|
9564 |
$help = '';
|
9565 |
$html1 = WPPA_UPLOAD_PATH;
|
9566 |
$html2 = '';
|
@@ -9568,7 +9591,7 @@ global $wppa_subtab_names;
|
|
9568 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
9569 |
|
9570 |
$name = 'WPPA_UPLOAD_URL';
|
9571 |
-
$desc = __('The upload directory url.', 'wp-photo-album-plus');
|
9572 |
$help = '';
|
9573 |
$html1 = WPPA_UPLOAD_URL;
|
9574 |
$html2 = '';
|
@@ -9576,7 +9599,7 @@ global $wppa_subtab_names;
|
|
9576 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
9577 |
|
9578 |
$name = 'WPPA_DEPOT';
|
9579 |
-
$desc = __('The relative depot directory.', 'wp-photo-album-plus');
|
9580 |
$help = '';
|
9581 |
$html1 = WPPA_DEPOT;
|
9582 |
$html2 = '';
|
@@ -9584,7 +9607,7 @@ global $wppa_subtab_names;
|
|
9584 |
wppa_setting_new(false, '18', $name, $desc, $html, $help);
|
9585 |
|
9586 |
$name = 'WPPA_DEPOT_PATH';
|
9587 |
-
$desc = __('The depot directory path.', 'wp-photo-album-plus');
|
9588 |
$help = '';
|
9589 |
$html1 = WPPA_DEPOT_PATH;
|
9590 |
$html2 = '';
|
@@ -9592,7 +9615,7 @@ global $wppa_subtab_names;
|
|
9592 |
wppa_setting_new(false, '19', $name, $desc, $html, $help);
|
9593 |
|
9594 |
$name = 'WPPA_DEPOT_URL';
|
9595 |
-
$desc = __('The depot directory url.', 'wp-photo-album-plus');
|
9596 |
$help = '';
|
9597 |
$html1 = WPPA_DEPOT_URL;
|
9598 |
$html2 = '';
|
@@ -9600,7 +9623,7 @@ global $wppa_subtab_names;
|
|
9600 |
wppa_setting_new(false, '20', $name, $desc, $html, $help);
|
9601 |
|
9602 |
$name = 'WPPA_CONTENT_PATH';
|
9603 |
-
$desc = __('The path to wp-content.', 'wp-photo-album-plus');
|
9604 |
$help = '';
|
9605 |
$html1 = WPPA_CONTENT_PATH;
|
9606 |
$html2 = '';
|
@@ -9608,7 +9631,7 @@ global $wppa_subtab_names;
|
|
9608 |
wppa_setting_new(false, '21', $name, $desc, $html, $help);
|
9609 |
|
9610 |
$name = 'WPPA_CONTENT_URL';
|
9611 |
-
$desc = __('WP Content url.', 'wp-photo-album-plus');
|
9612 |
$help = '';
|
9613 |
$html1 = WPPA_CONTENT_URL;
|
9614 |
$html2 = '';
|
@@ -9616,7 +9639,7 @@ global $wppa_subtab_names;
|
|
9616 |
wppa_setting_new(false, '22', $name, $desc, $html, $help);
|
9617 |
|
9618 |
$name = 'wp_upload_dir() : [\'basedir\']';
|
9619 |
-
$desc = __('WP Base upload dir.', 'wp-photo-album-plus');
|
9620 |
$help = '';
|
9621 |
$wp_uploaddir = wp_upload_dir();
|
9622 |
$html1 = $wp_uploaddir['basedir'];
|
@@ -9644,18 +9667,18 @@ global $wppa_subtab_names;
|
|
9644 |
wppa_setting_tab_description($desc);
|
9645 |
wppa_setting_box_header_new($tab);
|
9646 |
|
9647 |
-
$name = __('Album sequence default', 'wp-photo-album-plus');
|
9648 |
-
$desc = __('Album ordering sequence method.', 'wp-photo-album-plus');
|
9649 |
-
$help = __('Specify the way the albums should be ordered.', 'wp-photo-album-plus');
|
9650 |
$slug = 'wppa_list_albums_by';
|
9651 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
9652 |
-
__('Order #', 'wp-photo-album-plus'),
|
9653 |
-
__('Name', 'wp-photo-album-plus'),
|
9654 |
-
__('Random', 'wp-photo-album-plus'),
|
9655 |
-
__('Timestamp', 'wp-photo-album-plus'),
|
9656 |
-
__('Order # desc', 'wp-photo-album-plus'),
|
9657 |
-
__('Name desc', 'wp-photo-album-plus'),
|
9658 |
-
__('Timestamp desc', 'wp-photo-album-plus'),
|
9659 |
);
|
9660 |
$vals = array( '0',
|
9661 |
'1',
|
@@ -9669,24 +9692,24 @@ global $wppa_subtab_names;
|
|
9669 |
$html = wppa_select($slug, $opts, $vals);
|
9670 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
9671 |
|
9672 |
-
$name = __('Photo sequence default', 'wp-photo-album-plus');
|
9673 |
-
$desc = __('Photo ordering sequence method.', 'wp-photo-album-plus');
|
9674 |
-
$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');
|
9675 |
$slug = 'wppa_list_photos_by';
|
9676 |
-
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
9677 |
-
__('Order #', 'wp-photo-album-plus'),
|
9678 |
-
__('Name', 'wp-photo-album-plus'),
|
9679 |
-
__('Random', 'wp-photo-album-plus'),
|
9680 |
-
__('Rating mean value', 'wp-photo-album-plus'),
|
9681 |
-
__('Number of votes', 'wp-photo-album-plus'),
|
9682 |
-
__('Timestamp', 'wp-photo-album-plus'),
|
9683 |
-
__('EXIF Date', 'wp-photo-album-plus'),
|
9684 |
-
__('Order # desc', 'wp-photo-album-plus'),
|
9685 |
-
__('Name desc', 'wp-photo-album-plus'),
|
9686 |
-
__('Rating mean value desc', 'wp-photo-album-plus'),
|
9687 |
-
__('Number of votes desc', 'wp-photo-album-plus'),
|
9688 |
-
__('Timestamp desc', 'wp-photo-album-plus'),
|
9689 |
-
__('EXIF Date desc', 'wp-photo-album-plus')
|
9690 |
);
|
9691 |
$vals = array( '0',
|
9692 |
'1',
|
@@ -9706,79 +9729,79 @@ global $wppa_subtab_names;
|
|
9706 |
$html = wppa_select($slug, $opts, $vals);
|
9707 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
9708 |
|
9709 |
-
$name = __('Default coverphoto selection', 'wp-photo-album-plus');
|
9710 |
-
$desc = __('Default select cover photo method.', 'wp-photo-album-plus');
|
9711 |
-
$help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus');
|
9712 |
-
$help .= '<br>' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus');
|
9713 |
-
$opts = array( __('--- random ---', 'wp-photo-album-plus'),
|
9714 |
-
__('--- random featured ---', 'wp-photo-album-plus'),
|
9715 |
-
__('--- most recent added ---', 'wp-photo-album-plus'),
|
9716 |
-
__('--- random from (grand)children ---', 'wp-photo-album-plus'),
|
9717 |
-
__('--- most recent from (grand)children ---', 'wp-photo-album-plus'),
|
9718 |
-
__('--- according to albums photo sequence ---', 'wp-photo-album-plus'),
|
9719 |
);
|
9720 |
$vals = array('-9', '-1', '-2', '-3', '-4', '-5');
|
9721 |
$slug = 'wppa_main_photo';
|
9722 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter()');
|
9723 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt('main_photo') != '-3' && wppa_opt('main_photo') != '-9');
|
9724 |
|
9725 |
-
$name = __('Default coverphoto selection', 'wp-photo-album-plus');
|
9726 |
-
$desc = __('Default select cover photo method.', 'wp-photo-album-plus');
|
9727 |
-
$help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus');
|
9728 |
-
$help .= '<br>' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus');
|
9729 |
-
$opts = array( __('--- random ---', 'wp-photo-album-plus'),
|
9730 |
-
__('--- random featured ---', 'wp-photo-album-plus'),
|
9731 |
-
__('--- most recent added ---', 'wp-photo-album-plus'),
|
9732 |
-
__('--- random from (grand)children ---', 'wp-photo-album-plus'),
|
9733 |
-
__('--- most recent from (grand)children ---', 'wp-photo-album-plus'),
|
9734 |
-
__('--- according to albums photo sequence ---', 'wp-photo-album-plus'),
|
9735 |
);
|
9736 |
$vals = array('-9', '-1', '-2', '-3', '-4', '-5');
|
9737 |
$slug1 = 'wppa_main_photo';
|
9738 |
$slug2 = 'wppa_main_photo_random_once';
|
9739 |
$slug3 = 'wppa_main_photo_reset';
|
9740 |
$html = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter()') .
|
9741 |
-
'<span style="float:left;margin:0 6px;" >' . __('Fix first found', 'wp-photo-album-plus') . '</span>' . wppa_checkbox($slug2) .
|
9742 |
-
'<span style="float:left;margin:0 6px;" >' . __('Reset all', 'wp-photo-album-plus') . '</span>' . wppa_checkbox($slug3);
|
9743 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt('main_photo') == '-3' || wppa_opt('main_photo') == '-9');
|
9744 |
|
9745 |
-
$name = __('Related count', 'wp-photo-album-plus');
|
9746 |
-
$desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus');
|
9747 |
-
$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');
|
9748 |
$slug = 'wppa_related_count';
|
9749 |
-
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
|
9750 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
9751 |
|
9752 |
-
$name = __('Max file name length', 'wp-photo-album-plus');
|
9753 |
-
$desc = __('The max length of a photo file name excluding the extension.', 'wp-photo-album-plus');
|
9754 |
-
$help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus');
|
9755 |
$slug = 'wppa_max_filename_length';
|
9756 |
-
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
|
9757 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
9758 |
|
9759 |
-
$name = __('Max photo name length', 'wp-photo-album-plus');
|
9760 |
-
$desc = __('The max length of a photo name.', 'wp-photo-album-plus');
|
9761 |
-
$help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus');
|
9762 |
$slug = 'wppa_max_photoname_length';
|
9763 |
-
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
|
9764 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
9765 |
|
9766 |
-
$name = __('Default Video width', 'wp-photo-album-plus');
|
9767 |
-
$desc = __('The width of most videos', 'wp-photo-album-plus');
|
9768 |
-
$help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus');
|
9769 |
$slug = 'wppa_video_width';
|
9770 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
9771 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
9772 |
|
9773 |
-
$name = __('Default Video height', 'wp-photo-album-plus');
|
9774 |
-
$desc = __('The height of most videos', 'wp-photo-album-plus');
|
9775 |
-
$help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus');
|
9776 |
$slug = 'wppa_video_height';
|
9777 |
-
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
9778 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
9779 |
|
9780 |
-
$name = __('Grid video controls', 'wp-photo-album-plus');
|
9781 |
-
$desc = __('Show the video controls on a video in a grid display', 'wp-photo-album-plus');
|
9782 |
$help = '';
|
9783 |
$slug = 'wppa_grid_video';
|
9784 |
$html = wppa_checkbox($slug);
|
@@ -9896,80 +9919,80 @@ global $wppa_subtab_names;
|
|
9896 |
wppa_setting_tab_description($desc);
|
9897 |
wppa_setting_box_header_new($tab);
|
9898 |
|
9899 |
-
$name = __('JPG image quality', 'wp-photo-album-plus');
|
9900 |
-
$desc = __('The jpg quality when photos are downsized', 'wp-photo-album-plus');
|
9901 |
-
$help = __('The higher the number the better the quality but the larger the file', 'wp-photo-album-plus');
|
9902 |
-
$help .= '<br>'.__('Possible values 20..100', 'wp-photo-album-plus');
|
9903 |
$slug = 'wppa_jpeg_quality';
|
9904 |
$html = wppa_input($slug, '50px');
|
9905 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
9906 |
|
9907 |
-
$name = __('Allow WPPA+ Debugging', 'wp-photo-album-plus');
|
9908 |
-
$desc = __('Allow the use of &debug=.. in urls to this site.', 'wp-photo-album-plus');
|
9909 |
-
$help = __('If checked: appending (?)(&)debug or (?)(&)debug=<int> to an url to this site will generate the display of special WPPA+ diagnostics, as well as php warnings', 'wp-photo-album-plus');
|
9910 |
$slug = 'wppa_allow_debug';
|
9911 |
$html = wppa_checkbox($slug);
|
9912 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
9913 |
|
9914 |
-
$name = __('Enable <b>in-line</b> settings', 'wp-photo-album-plus');
|
9915 |
-
$desc = __('Activates shortcode [wppa_set].', 'wp-photo-album-plus');
|
9916 |
-
$help = __('Syntax: [wppa_set name="any wppa setting" value="new value"]', 'wp-photo-album-plus');
|
9917 |
-
$help .= '<br>'.__('Example: [wppa_set name="wppa_thumbtype" value="masonry-v"] sets the thumbnail type to vertical masonry style', 'wp-photo-album-plus');
|
9918 |
-
$help .= '<br>'.__('Do not forget to reset with [wppa_set]', 'wp-photo-album-plus');
|
9919 |
-
$help .= '<br>'.__('Use with great care! There is no check on validity of values!', 'wp-photo-album-plus');
|
9920 |
$slug = 'wppa_enable_shortcode_wppa_set';
|
9921 |
$html = wppa_checkbox($slug);
|
9922 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
9923 |
|
9924 |
-
$name = __('Minimum tags', 'wp-photo-album-plus');
|
9925 |
-
$desc = __('These tags exist even when they do not occur in any photo.', 'wp-photo-album-plus');
|
9926 |
-
$help = __('Enter tags, separated by comma\'s (,)', 'wp-photo-album-plus');
|
9927 |
-
$help .= '<br>'.__('Tags exist when they appear on any photo, and vanish when they do no longer appear. Except the tags you list here; they exist always.', 'wp-photo-album-plus');
|
9928 |
$slug = 'wppa_minimum_tags';
|
9929 |
$html = wppa_input($slug, '300px');
|
9930 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
9931 |
|
9932 |
-
$name = __('Show minimum tags only', 'wp-photo-album-plus');
|
9933 |
-
$desc = __('Shows only the minimum tags in the photo admin tags seclection box', 'wp-photo-album-plus');
|
9934 |
-
$help = __('To limit the use of tags to these tags only, also tick New tags restricted', 'wp-photo-album-plus');
|
9935 |
$help .= wppa_see_also( 'admin', '4', '9' );
|
9936 |
$slug = 'wppa_predef_tags_only';
|
9937 |
$html = wppa_checkbox($slug);
|
9938 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
9939 |
|
9940 |
-
$name = __('Login link', 'wp-photo-album-plus');
|
9941 |
-
$desc = __('Modify this link if you have a custom login page.', 'wp-photo-album-plus');
|
9942 |
$help = '';
|
9943 |
$slug = 'wppa_login_url';
|
9944 |
$html = wppa_input($slug, '300px');
|
9945 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
9946 |
|
9947 |
-
$name = __('Cache root', 'wp-photo-album-plus');
|
9948 |
-
$desc = __('The root folder of your caching plugin', 'wp-photo-album-plus') . ': <span style="float:right;" >' . WPPA_CONTENT_PATH . '/</span>';
|
9949 |
-
$help = __('If you have a caching plugin, make sure this setting points to the root folder where the cache files are stored', 'wp-photo-album-plus');
|
9950 |
$slug = 'wppa_cache_root';
|
9951 |
$html = wppa_input($slug, '300px');
|
9952 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
9953 |
|
9954 |
-
$name = __('Direct comment', 'wp-photo-album-plus');
|
9955 |
-
$desc = __('Enable direct commenting and rating from remote source', 'wp-photo-album-plus');
|
9956 |
-
$help = __('This setting has only effect when Encrypted links is mandatory', 'wp-photo-album-plus');
|
9957 |
-
$help .= '<br>' . __('Use with care, and only in special situations!', 'wp-photo-album-plus');
|
9958 |
$slug = 'wppa_direct_comment';
|
9959 |
$html = wppa_checkbox($slug) . wppa_see_also( 'links', '1', '5.6' );
|
9960 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
9961 |
|
9962 |
-
$name = __('Extended resize count', 'wp-photo-album-plus');
|
9963 |
-
$desc = __('Number of extra resize handler actions', 'wp-photo-album-plus');
|
9964 |
$help = '';
|
9965 |
$slug = 'wppa_extended_resize_count';
|
9966 |
$opts = array('0','1','2','3','4','5','6','10','15','20',__( 'infinite', 'wp-photo-album-plus' ) );
|
9967 |
$vals = array('0','1','2','3','4','5','6','10','15','20','-1');
|
9968 |
-
$html = wppa_select($slug, $opts, $vals).' '.__('times', 'wp-photo-album-plus');
|
9969 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
9970 |
|
9971 |
-
$name = __('Extended resize delay', 'wp-photo-album-plus');
|
9972 |
-
$desc = __('Delay time of extra resize handler actions', 'wp-photo-album-plus');
|
9973 |
$help = '';
|
9974 |
$slug = 'wppa_extended_resize_delay';
|
9975 |
$opts = array('5','10','20','50','100','150','200','300','500','700','1000');
|
@@ -9977,16 +10000,16 @@ global $wppa_subtab_names;
|
|
9977 |
$html = wppa_select($slug, $opts, $vals).' ms.';
|
9978 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
9979 |
|
9980 |
-
$name = __('Load nicescroller always', 'wp-photo-album-plus');
|
9981 |
-
$desc = __('Loads nicescroller js on all pages', 'wp-photo-album-plus');
|
9982 |
-
$help = __('Tick this if you use nicescroller anywhere and it is not being loaded', 'wp-photo-album-plus');
|
9983 |
$slug = 'wppa_load_nicescroller';
|
9984 |
$html = wppa_checkbox($slug);
|
9985 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
9986 |
|
9987 |
-
$name = __('CSV file separator', 'wp-photo-album-plus');
|
9988 |
-
$desc = __('Select the separator to be used for csv file data', 'wp-photo-album-plus');
|
9989 |
-
$help = __('This separator is used both during import and export', 'wp-photo-album-plus');
|
9990 |
$slug = 'wppa_csv_sep';
|
9991 |
$opts = array( 'comma (,)', 'semicolon (;)' );
|
9992 |
$vals = array( ',', ';' );
|
@@ -10001,71 +10024,71 @@ global $wppa_subtab_names;
|
|
10001 |
wppa_setting_tab_description($desc);
|
10002 |
wppa_setting_box_header_new($tab);
|
10003 |
|
10004 |
-
$name = __('Log Cron', 'wp-photo-album-plus');
|
10005 |
-
$desc = __('Keep track of cron activity in the wppa logfile.', 'wp-photo-album-plus');
|
10006 |
$help = '';
|
10007 |
$slug = 'wppa_log_cron';
|
10008 |
$html = wppa_checkbox($slug);
|
10009 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
10010 |
|
10011 |
-
$name = __('Log Ajax', 'wp-photo-album-plus');
|
10012 |
-
$desc = __('Keep track of ajax activity in the wppa logfile.', 'wp-photo-album-plus');
|
10013 |
$help = '';
|
10014 |
$slug = 'wppa_log_ajax';
|
10015 |
$html = wppa_checkbox($slug);
|
10016 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
10017 |
|
10018 |
-
$name = __('Log Comments', 'wp-photo-album-plus');
|
10019 |
-
$desc = __('Keep track of commenting activity in the wppa logfile.', 'wp-photo-album-plus');
|
10020 |
$help = '';
|
10021 |
$slug = 'wppa_log_comments';
|
10022 |
$html = wppa_checkbox($slug);
|
10023 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
10024 |
|
10025 |
-
$name = __('Log File events', 'wp-photo-album-plus');
|
10026 |
-
$desc = __('Keep track of dir/file creations.', 'wp-photo-album-plus');
|
10027 |
$help = '';
|
10028 |
$slug = 'wppa_log_fso';
|
10029 |
$html = wppa_checkbox($slug);
|
10030 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
10031 |
|
10032 |
-
$name = __('Log Debug messages', 'wp-photo-album-plus');
|
10033 |
-
$desc = __('Keep track of debug messages.', 'wp-photo-album-plus');
|
10034 |
$help = '';
|
10035 |
$slug = 'wppa_log_debug';
|
10036 |
$html = wppa_checkbox($slug);
|
10037 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
10038 |
|
10039 |
-
$name = __('Log Emails sent', 'wp-photo-album-plus');
|
10040 |
-
$desc = __('Keep track of sending emails.', 'wp-photo-album-plus');
|
10041 |
$help = '';
|
10042 |
$slug = 'wppa_log_email';
|
10043 |
$html = wppa_checkbox($slug);
|
10044 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
10045 |
|
10046 |
-
$name = __('Log Timings', 'wp-photo-album-plus');
|
10047 |
-
$desc = __('Keep track of various timings.', 'wp-photo-album-plus');
|
10048 |
$help = '';
|
10049 |
$slug = 'wppa_log_tim';
|
10050 |
$html = wppa_checkbox($slug);
|
10051 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
10052 |
|
10053 |
-
$name = __('List Logfile', 'wp-photo-album-plus');
|
10054 |
-
$desc = __('Show the content of wppa+ (error) log.', 'wp-photo-album-plus');
|
10055 |
$help = '';
|
10056 |
$slug = 'wppa_list_errorlog';
|
10057 |
$html = wppa_popup_button( $slu
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.1.08.003
|
7 |
*
|
8 |
*/
|
9 |
|
82 |
// Should better be here
|
83 |
case 'wppa_setup':
|
84 |
wppa_setup(true); // Message on success or fail is in the routine
|
85 |
+
wppa_ok_message( __( 'Plugin successfully set up' , 'wp-photo-album-plus' ) );
|
86 |
break;
|
87 |
|
88 |
// Must be here
|
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'] ) {
|
136 |
+
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus' ), $file['error']));
|
137 |
}
|
138 |
else {
|
139 |
$imgsize = getimagesize($file['tmp_name']);
|
140 |
if ( !is_array($imgsize) || !isset($imgsize[2]) || $imgsize[2] != 3 ) {
|
141 |
+
wppa_error_message(sprintf(__('Uploaded file %s is not a .png file', 'wp-photo-album-plus' ), sanitize_file_name( $file['name'] ) ) . ' (Type='.$file['type'].').');
|
142 |
}
|
143 |
else {
|
144 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/watermarks/' . strtolower(sanitize_file_name(basename($file['name']))));
|
145 |
+
wppa_alert(sprintf(__('Upload of %s done', 'wp-photo-album-plus' ), strtolower(sanitize_file_name(basename($file['name'])))));
|
146 |
}
|
147 |
}
|
148 |
}
|
149 |
else {
|
150 |
+
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus' ));
|
151 |
}
|
152 |
break;
|
153 |
|
155 |
if ( isset($_FILES['file_1']) && $_FILES['file_1']['error'] != 4 ) { // Expected a fileupload for a watermark font file
|
156 |
$file = $_FILES['file_1'];
|
157 |
if ( $file['error'] ) {
|
158 |
+
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus' ), $file['error']));
|
159 |
}
|
160 |
else {
|
161 |
if ( substr(sanitize_file_name($file['name']), -4) != '.ttf' ) {
|
162 |
+
wppa_error_message(sprintf(__('Uploaded file %s is not a .ttf file', 'wp-photo-album-plus' ), sanitize_file_name($file['name']) ).' (Type='.$file['type'].').');
|
163 |
}
|
164 |
else {
|
165 |
wppa_copy($file['tmp_name'], WPPA_UPLOAD_PATH . '/fonts/' . sanitize_file_name(basename($file['name'])));
|
166 |
+
wppa_alert(sprintf(__('Upload of %s done', 'wp-photo-album-plus' ), sanitize_file_name(basename($file['name']))));
|
167 |
}
|
168 |
}
|
169 |
}
|
170 |
else {
|
171 |
+
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus' ));
|
172 |
}
|
173 |
break;
|
174 |
|
176 |
if ( isset( $_FILES['file_1'] ) && $_FILES['file_1']['error'] != 4 ) {
|
177 |
$file = $_FILES['file_1'];
|
178 |
if ( $file['error'] ) {
|
179 |
+
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus' ), $file['error']));
|
180 |
}
|
181 |
elseif ( wppa_get_ext( $file['name'] ) != 'jpg' ) {
|
182 |
+
wppa_error_message( __('File MUST be a .jpg image file', 'wp-photo-album-plus' ));
|
183 |
}
|
184 |
else {
|
185 |
$imgsize = getimagesize( $file['tmp_name'] );
|
186 |
if ( ! is_array( $imgsize ) ) {
|
187 |
+
wppa_error_message(sprintf(__('Uploaded file %s is not a valid image file', 'wp-photo-album-plus' ), sanitize_file_name($file['name'])).' (Type='.$file['type'].').');
|
188 |
}
|
189 |
else {
|
190 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/audiostub.jpg' );
|
194 |
SET thumbx = 0, thumby = 0, photox = 0, photoy = 0
|
195 |
WHERE ext = 'xxx'"
|
196 |
);
|
197 |
+
wppa_alert( sprintf( __( 'Upload of %s done', 'wp-photo-album-plus' ), basename( sanitize_file_name( $file['name'] ) ) ) );
|
198 |
|
199 |
wppa_bump_photo_rev();
|
200 |
wppa_bump_thumb_rev();
|
202 |
}
|
203 |
}
|
204 |
else {
|
205 |
+
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus' ));
|
206 |
}
|
207 |
break;
|
208 |
|
210 |
if ( isset( $_FILES['file_1'] ) && $_FILES['file_1']['error'] != 4 ) {
|
211 |
$file = $_FILES['file_1'];
|
212 |
if ( $file['error'] ) {
|
213 |
+
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus' ), $file['error']));
|
214 |
}
|
215 |
elseif ( wppa_get_ext( $file['name'] ) != 'png' ) {
|
216 |
+
wppa_error_message( __('File MUST be a .png image file', 'wp-photo-album-plus' ));
|
217 |
}
|
218 |
else {
|
219 |
$imgsize = getimagesize( $file['tmp_name'] );
|
220 |
if ( ! is_array( $imgsize ) ) {
|
221 |
+
wppa_error_message(sprintf(__('Uploaded file %s is not a valid image file', 'wp-photo-album-plus' ), sanitize_file_name($file['name'])).' (Type='.$file['type'].').');
|
222 |
}
|
223 |
else {
|
224 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/documentstub.png' );
|
228 |
SET thumbx = 0, thumby = 0, photox = 0, photoy = 0
|
229 |
WHERE ext = 'pdf'"
|
230 |
);
|
231 |
+
wppa_alert( sprintf( __( 'Upload of %s done', 'wp-photo-album-plus' ), basename( sanitize_file_name( $file['name'] ) ) ) );
|
232 |
|
233 |
wppa_bump_photo_rev();
|
234 |
wppa_bump_thumb_rev();
|
236 |
}
|
237 |
}
|
238 |
else {
|
239 |
+
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus' ));
|
240 |
}
|
241 |
break;
|
242 |
|
244 |
if ( isset( $_FILES['file_1'] ) && $_FILES['file_1']['error'] != 4 ) {
|
245 |
$file = $_FILES['file_1'];
|
246 |
if ( $file['error'] ) {
|
247 |
+
wppa_error_message(sprintf(__('Upload error %s', 'wp-photo-album-plus' ), $file['error']));
|
248 |
}
|
249 |
else {
|
250 |
$ext = strtolower( wppa_get_ext( $file['name'] ) );
|
251 |
if ( ! in_array( $ext, array( 'jpeg', 'jpg', 'png', 'svg', 'gif', 'bmp', 'ico' ) ) ) {
|
252 |
+
wppa_error_message(sprintf(__('Uploaded file %s is not a valid image file', 'wp-photo-album-plus' ), sanitize_file_name($file['name'])).' (Type='.$file['type'].').');
|
253 |
}
|
254 |
else {
|
255 |
wppa_copy( $file['tmp_name'], WPPA_UPLOAD_PATH . '/icons/' . ucfirst( strtolower( sanitize_file_name( $file['name'] ) ) ) );
|
256 |
+
wppa_alert( sprintf( __( 'Upload of %s done', 'wp-photo-album-plus' ), basename( sanitize_file_name( $file['name'] ) ) ) );
|
257 |
}
|
258 |
}
|
259 |
}
|
260 |
else {
|
261 |
+
wppa_error_message(__('No file selected or error on upload', 'wp-photo-album-plus' ));
|
262 |
}
|
263 |
break;
|
264 |
|
307 |
// General header
|
308 |
echo '
|
309 |
<img id="icon-album" src="'.$iconurl.'" />
|
310 |
+
<h1 style="display:inline" >' . __('WP Photo Album Plus Settings', 'wp-photo-album-plus' ) . '
|
311 |
+
<span style="color:blue;"> ' . __('Auto Save', 'wp-photo-album-plus' ). '</span>
|
312 |
</h1>';
|
313 |
if ( current_user_can( 'administrator' ) ) {
|
314 |
echo ' ' .
|
315 |
__( 'Database revision:', 'wp-photo-album-plus' ) . ' ' . wppa_get_option( 'wppa_revision', '100') . '. ' .
|
316 |
+
__( 'WP Charset:', 'wp-photo-album-plus' ) . ' ' . get_bloginfo( 'charset' ) . '. ' .
|
317 |
__( 'Current PHP version:', 'wp-photo-album-plus' ) . ' ' . phpversion() . '. ' .
|
318 |
__( 'WPPA+ API Version:', 'wp-photo-album-plus' ) . ' ' . $wppa_api_version . '. ' .
|
319 |
__( 'Filesystem method:', 'wp-photo-album-plus' ) . ' ' . get_filesystem_method();
|
323 |
|
324 |
if ( is_multisite() ) {
|
325 |
if ( WPPA_MULTISITE_GLOBAL ) {
|
326 |
+
_e('Multisite in singlesite mode.', 'wp-photo-album-plus' );
|
327 |
}
|
328 |
else {
|
329 |
+
_e('Multisite enabled.', 'wp-photo-album-plus' );
|
330 |
echo ' ';
|
331 |
+
_e('Blogid =', 'wp-photo-album-plus' );
|
332 |
echo ' '.$blog_id;
|
333 |
}
|
334 |
}
|
347 |
$plugins = wppa_get_option('active_plugins');
|
348 |
$matches = array_intersect($blacklist_plugins, $plugins);
|
349 |
foreach ( $matches as $bad ) {
|
350 |
+
wppa_error_message(__('Please de-activate plugin <i style="font-size:14px;">', 'wp-photo-album-plus' ).substr($bad, 0, strpos($bad, '/')).__('. </i>This plugin will cause wppa+ to function not properly.', 'wp-photo-album-plus' ));
|
351 |
}
|
352 |
|
353 |
// Graylist
|
357 |
);
|
358 |
$matches = array_intersect($graylist_plugins, $plugins);
|
359 |
foreach ( $matches as $bad ) {
|
360 |
+
wppa_warning_message(__('Please note that plugin <i style="font-size:14px;">', 'wp-photo-album-plus' ).substr($bad, 0, strpos($bad, '/')).__('</i> can cause wppa+ to function not properly if it is misconfigured.', 'wp-photo-album-plus' ));
|
361 |
}
|
362 |
|
363 |
// Check for trivial requirements
|
364 |
if ( ! function_exists('imagecreatefromjpeg') ) {
|
365 |
+
wppa_error_message(__('There is a serious misconfiguration in your servers PHP config. Function imagecreatefromjpeg() does not exist. You will encounter problems when uploading photos and not be able to generate thumbnail images. Ask your hosting provider to add GD support with a minimal version 1.8.', 'wp-photo-album-plus' ));
|
366 |
}
|
367 |
|
368 |
// Cron disabled?
|
376 |
wppa_opt( 'tf_width_alt') < wppa_opt( 'thumbsize_alt' ) ||
|
377 |
wppa_opt( 'tf_height' ) < wppa_opt( 'thumbsize' ) ||
|
378 |
wppa_opt( 'tf_height_alt') < wppa_opt( 'thumbsize_alt' ) ) ) {
|
379 |
+
wppa_warning_message( __( 'A thumbframe width or height should not be smaller than a thumbnail size.' , 'wp-photo-album-plus' ) . wppa_see_also( 'thumbs', '1', '1.2.5..8', '', '', true ) );
|
380 |
}
|
381 |
|
382 |
// Check for 'many' albums
|
410 |
$doit = true;
|
411 |
}
|
412 |
if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' && ! ( wppa_switch( 'cover_use_thumb' ) ) ) {
|
413 |
+
$msg = __( 'Thumbnail Aspect may not be set to "--- same as fullsize ---"','wp-photo-album-plus' ) . wppa_see_also( 'thumbs', '1', '3', '', '', true ) . '<br>' .
|
414 |
__( 'Alternatively you can activate Use thumb on cover', 'wp-photo-album-plus' ) . wppa_see_also( 'covers', '3', '8' );
|
415 |
$message .= $msg;
|
416 |
$doit = true;
|
425 |
if ( class_exists( 'Imagick' ) && function_exists( 'exec' ) ) {
|
426 |
|
427 |
$result = wppa_search_magick();
|
428 |
+
$mes = __('Image Magick is detected on your server', 'wp-photo-album-plus' ) . '. ';
|
429 |
+
$mes .= __('To be able to use the most advanced features of WPPA, the Imagic shellcommand <b>convert</b> must be available', 'wp-photo-album-plus' ) . '.<br>';
|
430 |
|
431 |
// Shell command found
|
432 |
if ( ! empty( $result ) ) {
|
433 |
+
$mes .= __('This command is found on the following file system locations', 'wp-photo-album-plus' ) . ':<br>';
|
434 |
foreach ( $result as $item ) {
|
435 |
$mes .= $item[0] . '<br>';
|
436 |
}
|
437 |
update_option( 'wppa_image_magick', $result[0][0] );
|
438 |
$wppa_opt['wppa_image_magick'] = $result[0][0];
|
439 |
+
$mes .= sprintf( __('The location <b>%s</b> has been activated.', 'wp-photo-album-plus' ), $result[0][0] ) . wppa_see_also( 'miscadv', '3', '13' ) . '<br>';
|
440 |
+
$mes .= __('You may change it into a different path that contains the Imagick <b>convert</b> command at any time', 'wp-photo-album-plus' ) . '.<br>';
|
441 |
+
$mes .= __('To disable ImageMagick, enter <b>none</b>', 'wp-photo-album-plus' );
|
442 |
}
|
443 |
|
444 |
// Shell command not found
|
445 |
else {
|
446 |
+
$mes .= __('The Imagick shellcommand <b>convert</b> could not be detected.', 'wp-photo-album-plus' ) . '<br >';
|
447 |
+
$mes .= __('Ask your hosting provider for the absolute path to this command if it is available', 'wp-photo-album-plus' ) . '<br>';
|
448 |
}
|
449 |
|
450 |
wppa_ok_message($mes);
|
473 |
$vals_page_post = false;
|
474 |
|
475 |
// First
|
476 |
+
$opts_page_post[] = __('--- the same page or post ---', 'wp-photo-album-plus' );
|
477 |
$vals_page_post[] = '0';
|
478 |
+
$opts_page[] = __('--- please select a page ---', 'wp-photo-album-plus' );
|
479 |
$vals_page[] = '0';
|
480 |
|
481 |
// Pages if any
|
487 |
|
488 |
// Translate
|
489 |
foreach ( array_keys($pages) as $index ) {
|
490 |
+
$pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus' );
|
491 |
}
|
492 |
|
493 |
$pages = wppa_array_sort($pages, 'post_title');
|
494 |
foreach ($pages as $page) {
|
495 |
if (strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false) {
|
496 |
+
$opts_page[] = __($page['post_title'], 'wp-photo-album-plus' );
|
497 |
+
$opts_page_post[] = __($page['post_title'], 'wp-photo-album-plus' );
|
498 |
$vals_page[] = $page['ID'];
|
499 |
$vals_page_post[] = $page['ID'];
|
500 |
}
|
501 |
else {
|
502 |
+
$opts_page[] = '|'.__($page['post_title'], 'wp-photo-album-plus' ).'|';
|
503 |
+
$opts_page_post[] = '|'.__($page['post_title'], 'wp-photo-album-plus' ).'|';
|
504 |
$vals_page[] = $page['ID'];
|
505 |
$vals_page_post[] = $page['ID'];
|
506 |
}
|
507 |
}
|
508 |
}
|
509 |
else {
|
510 |
+
$opts_page[] = __('--- No page to link to (yet) ---', 'wp-photo-album-plus' );
|
511 |
$vals_page[] = '0';
|
512 |
}
|
513 |
|
514 |
$opts_page_auto = $opts_page;
|
515 |
+
$opts_page_auto[0] = __('--- Will be auto created ---', 'wp-photo-album-plus' );
|
516 |
}
|
517 |
|
518 |
// Find matching master tab
|
708 |
wppa_setting_tab_description($desc);
|
709 |
wppa_setting_box_header_new($tab);
|
710 |
|
711 |
+
$name = __('Enable Photo', 'wp-photo-album-plus' );
|
712 |
+
$desc = __('Enables photo support', 'wp-photo-album-plus' );
|
713 |
+
$help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus' );
|
714 |
$slug = '';
|
715 |
$html = '<input type="checkbox" style="float:left;" checked disabled >' . wppa_see_also( 'photos', '1' );
|
716 |
wppa_setting_new($slug, '0', $name, $desc, $html, $help);
|
717 |
|
718 |
+
$name = __('Enable Video', 'wp-photo-album-plus' );
|
719 |
+
$desc = __('Enables video support.', 'wp-photo-album-plus' );
|
720 |
+
$help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus' );
|
721 |
$slug = 'wppa_enable_video';
|
722 |
$onch = 'wppaRefreshAfter();';
|
723 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'misc', '1', '7.8', 'enable_video' ) . wppa_see_also( 'users', '1', '2', 'enable_video' );
|
724 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
725 |
|
726 |
+
$name = __('Enable pdf', 'wp-photo-album-plus' );
|
727 |
+
$desc = __('Enables the support of pdf files', 'wp-photo-album-plus' );
|
728 |
+
$help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus' );
|
729 |
$slug = 'wppa_enable_pdf';
|
730 |
$html = wppa_checkbox($slug) . ( wppa_opt( 'art_monkey_link' ) == 'new' ? wppa_see_also( 'links', '4', '3' ) : '' );
|
731 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
732 |
|
733 |
+
$name = __('Enable Audio', 'wp-photo-album-plus' );
|
734 |
+
$desc = __('Enables audio support.', 'wp-photo-album-plus' );
|
735 |
+
$help = __('Check this box to enable the upload and playing of audio files', 'wp-photo-album-plus' );
|
736 |
$slug = 'wppa_enable_audio';
|
737 |
$onch = 'wppaRefreshAfter();';
|
738 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '3', 'enable_audio' );
|
739 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
740 |
|
741 |
+
$name = __('Enable Comments', 'wp-photo-album-plus' );
|
742 |
+
$desc = __('Enables the comments system.', 'wp-photo-album-plus' );
|
743 |
+
$help = __('Display the comments box under the slideshow images and let users enter their comments on individual photos.', 'wp-photo-album-plus' );
|
744 |
$slug = 'wppa_show_comments';
|
745 |
$onch = 'wppaRefreshAfter();';
|
746 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'comments', '1', '', 'show_comments' );
|
747 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
748 |
|
749 |
+
$name = __('Enable Ratings', 'wp-photo-album-plus' );
|
750 |
+
$desc = __('Enables the rating system.', 'wp-photo-album-plus' );
|
751 |
+
$help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus' );
|
752 |
$slug = 'wppa_rating_on';
|
753 |
$onch = 'wppaRefreshAfter();';
|
754 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'rating', '1', '', 'rating_on' );
|
755 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
756 |
|
757 |
+
$name = __('Enable User uploads', 'wp-photo-album-plus' );
|
758 |
+
$desc = __('Enables frontend upload.', 'wp-photo-album-plus' );
|
759 |
$help = '';
|
760 |
$slug = 'wppa_user_upload_on';
|
761 |
$onch = 'wppaRefreshAfter();';
|
762 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '', 'user_upload_on' ) . wppa_see_also( 'new', '1', '18..26', 'user_upload_on' );
|
763 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
764 |
|
765 |
+
$name = __('Enable Email', 'wp-photo-album-plus' );
|
766 |
+
$desc = __('Enables sending emails when albums, photos or comments are entered.', 'wp-photo-album-plus' );
|
767 |
+
$help = __('See Tab Emails for detailed settings', 'wp-photo-album-plus' );
|
768 |
$slug = 'wppa_email_on';
|
769 |
$onch = 'wppaRefreshAfter();';
|
770 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'email', '1', '', 'email_on' );
|
771 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
772 |
|
773 |
+
$name = __('Enable EXIF', 'wp-photo-album-plus' );
|
774 |
+
$desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus' );
|
775 |
+
$help = __('You will need this if you enabled the display of exif data in the photo descriptions.', 'wp-photo-album-plus' );
|
776 |
$slug = 'wppa_save_exif';
|
777 |
$onch = 'wppaRefreshAfter();';
|
778 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'exif', '1', '', 'save_exif' );
|
779 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
780 |
|
781 |
+
$name = __('Enable IPTC', 'wp-photo-album-plus' );
|
782 |
+
$desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus' );
|
783 |
+
$help = __('You will need this if you enabled the display of iptc data in the photo descriptions.', 'wp-photo-album-plus' );
|
784 |
$slug = 'wppa_save_iptc';
|
785 |
$onch = 'wppaRefreshAfter();';
|
786 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'iptc', '1', '', 'save_iptc' );
|
787 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help, function_exists('exif_read_data') );
|
788 |
|
789 |
+
$name = __('Enable GPX', 'wp-photo-album-plus' );
|
790 |
+
$desc = __('Store the gpx data from the photo into the exif db table', 'wp-photo-album-plus' );
|
791 |
+
$help = __('You will need this if you enabled the display of gpx data in the photo descriptions.', 'wp-photo-album-plus' );
|
792 |
$slug = 'wppa_save_gpx';
|
793 |
$onch = 'wppaRefreshAfter();';
|
794 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'gpx', '1', '', 'save_gpx' );
|
795 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help, function_exists('exif_read_data') && wppa_switch( 'save_exif' ) );
|
796 |
|
797 |
+
$name = __('Enable Custom data albums', 'wp-photo-album-plus' );
|
798 |
+
$desc = __('Define up to 10 custom data fields for albums.', 'wp-photo-album-plus' );
|
799 |
$help = '';
|
800 |
$slug = 'wppa_album_custom_fields';
|
801 |
$onch = 'wppaRefreshAfter();';
|
802 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '1', '', 'album_custom_fields' );
|
803 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
804 |
|
805 |
+
$name = __('Enable Custom data photos', 'wp-photo-album-plus' );
|
806 |
+
$desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus' );
|
807 |
$help = '';
|
808 |
$slug = 'wppa_custom_fields';
|
809 |
$onch = 'wppaRefreshAfter();';
|
810 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '2', '', 'custom_fields' );
|
811 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
812 |
|
813 |
+
$name = __('Enable Watermark', 'wp-photo-album-plus' );
|
814 |
+
$desc = __('Enable the application of watermarks.', 'wp-photo-album-plus' );
|
815 |
$help = '';
|
816 |
$slug = 'wppa_watermark_on';
|
817 |
$onch = 'wppaRefreshAfter();';
|
818 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'watermark', '1', '', 'watermark_on' );
|
819 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
820 |
|
821 |
+
$name = __('Enable shortcode [photo ..]', 'wp-photo-album-plus' );
|
822 |
+
$desc = __('Make the use of shortcode [photo ..] possible', 'wp-photo-album-plus' );
|
823 |
+
$help = __('Only disable this when there is a conflict with another plugin', 'wp-photo-album-plus' );
|
824 |
$slug = 'wppa_photo_shortcode_enabled';
|
825 |
$onch = 'wppaRefreshAfter();';
|
826 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'photos', '2', '', 'photo_shortcode_enabled' );
|
838 |
wppa_setting_tab_description($desc);
|
839 |
wppa_setting_box_header_new($tab);
|
840 |
|
841 |
+
$name = __('WPPA display boxes', 'wp-photo-album-plus' );
|
842 |
+
$desc = __('Background and border colors.', 'wp-photo-album-plus' );
|
843 |
+
$help = __('Enter valid CSS colors for backgrounds and borders. E.g. #cccccc, gray, lightblue, transparent', 'wp-photo-album-plus' );
|
844 |
$slug1 = 'wppa_bgcolor';
|
845 |
$slug2 = 'wppa_bcolor';
|
846 |
$slug = array($slug1, $slug2);
|
847 |
+
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
848 |
+
$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);
|
849 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
850 |
|
851 |
+
$name = __('Border thickness', 'wp-photo-album-plus' );
|
852 |
+
$desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus' );
|
853 |
+
$help = __('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus' );
|
854 |
$slug = 'wppa_bwidth';
|
855 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
856 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
857 |
|
858 |
+
$name = __('Border radius', 'wp-photo-album-plus' );
|
859 |
+
$desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus' );
|
860 |
+
$help = __('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus' );
|
861 |
$slug = 'wppa_bradius';
|
862 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
863 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
864 |
|
865 |
+
$name = __('Box spacing', 'wp-photo-album-plus' );
|
866 |
+
$desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus' );
|
867 |
$help = '';
|
868 |
$slug = 'wppa_box_spacing';
|
869 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
870 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
871 |
|
872 |
+
$name = __('Initial Width', 'wp-photo-album-plus' );
|
873 |
+
$desc = __('The starting width of the wppa display boxes', 'wp-photo-album-plus' );
|
874 |
$help = '';
|
875 |
$slug = 'wppa_initial_colwidth';
|
876 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus' ));
|
877 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
878 |
|
879 |
+
$name = __('Sticky header size', 'wp-photo-album-plus' );
|
880 |
+
$desc = __('The height of your sticky header.', 'wp-photo-album-plus' );
|
881 |
+
$help = __('If your theme has a sticky header, enter its height here.', 'wp-photo-album-plus' );
|
882 |
$slug = 'wppa_sticky_header_size';
|
883 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
884 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
885 |
|
886 |
+
$name = __('Area max size', 'wp-photo-album-plus' );
|
887 |
+
$desc = __('The max height of the thumbnail and album cover areas', 'wp-photo-album-plus' );
|
888 |
+
$help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus' );
|
889 |
$slug = 'wppa_area_size';
|
890 |
+
$html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus' ));
|
891 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
892 |
|
893 |
+
$name = __('Use nicescroller', 'wp-photo-album-plus' );
|
894 |
+
$desc = __('Use nice scrollbars on thumbnail and album cover areas', 'wp-photo-album-plus' );
|
895 |
$help = '';
|
896 |
$slug = 'wppa_nicescroll';
|
897 |
$html = wppa_checkbox($slug);
|
898 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
899 |
|
900 |
+
$name = __('Max Pagelinks', 'wp-photo-album-plus' );
|
901 |
+
$desc = __('The maximum number of pagelinks to be displayed.', 'wp-photo-album-plus' );
|
902 |
$help = '';
|
903 |
$slug = 'wppa_pagelinks_max';
|
904 |
+
$html = wppa_input($slug, '40px', '', __('pages', 'wp-photo-album-plus' ));
|
905 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
906 |
|
907 |
+
$name = __('Cover Photo and popups', 'wp-photo-album-plus' );
|
908 |
+
$desc = __('Background and Border colors.', 'wp-photo-album-plus' );
|
909 |
+
$help = __('Enter valid CSS colors for Cover photo and popup backgrounds and borders.', 'wp-photo-album-plus' );
|
910 |
$slug1 = 'wppa_bgcolor_img';
|
911 |
$slug2 = 'wppa_bcolor_img';
|
912 |
$slug = array($slug1, $slug2);
|
913 |
+
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
914 |
+
$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);
|
915 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
916 |
|
917 |
+
$name = __('Modal render box', 'wp-photo-album-plus' );
|
918 |
+
$desc = __('The background for the Ajax modal rendering box.', 'wp-photo-album-plus' );
|
919 |
+
$help = __('Recommended color: your theme background color.', 'wp-photo-album-plus' );
|
920 |
$slug1 = 'wppa_bgcolor_modal';
|
921 |
$slug2 = 'wppa_bcolor_modal';
|
922 |
$slug = array($slug1, $slug2);
|
923 |
+
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
924 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
925 |
|
926 |
wppa_setting_box_footer_new();
|
931 |
wppa_setting_tab_description($desc);
|
932 |
wppa_setting_box_header_new($tab);
|
933 |
|
934 |
+
$name = __('Breadcrumb on posts', 'wp-photo-album-plus' );
|
935 |
+
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus' );
|
936 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus' );
|
937 |
$slug = 'wppa_show_bread_posts';
|
938 |
$html = wppa_checkbox($slug);
|
939 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
940 |
|
941 |
+
$name = __('Breadcrumb on pages', 'wp-photo-album-plus' );
|
942 |
+
$desc = __('Show breadcrumb navigation bars.', 'wp-photo-album-plus' );
|
943 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed', 'wp-photo-album-plus' );
|
944 |
$slug = 'wppa_show_bread_pages';
|
945 |
$html = wppa_checkbox($slug);
|
946 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
947 |
|
948 |
+
$name = __('Breadcrumb on search results', 'wp-photo-album-plus' );
|
949 |
+
$desc = __('Show breadcrumb navigation bars on the search results page.', 'wp-photo-album-plus' );
|
950 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed above the search results.', 'wp-photo-album-plus' );
|
951 |
$slug = 'wppa_bc_on_search';
|
952 |
$html = wppa_checkbox($slug);
|
953 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
954 |
|
955 |
+
$name = __('Breadcrumb on topten displays', 'wp-photo-album-plus' );
|
956 |
+
$desc = __('Show breadcrumb navigation bars on topten displays.', 'wp-photo-album-plus' );
|
957 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed above the topten displays.', 'wp-photo-album-plus' );
|
958 |
$slug = 'wppa_bc_on_topten';
|
959 |
$html = wppa_checkbox($slug);
|
960 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
961 |
|
962 |
+
$name = __('Breadcrumb on last ten displays', 'wp-photo-album-plus' );
|
963 |
+
$desc = __('Show breadcrumb navigation bars on last ten displays.', 'wp-photo-album-plus' );
|
964 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed above the last ten displays.', 'wp-photo-album-plus' );
|
965 |
$slug = 'wppa_bc_on_lasten';
|
966 |
$html = wppa_checkbox($slug);
|
967 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
968 |
|
969 |
+
$name = __('Breadcrumb on comment ten displays', 'wp-photo-album-plus' );
|
970 |
+
$desc = __('Show breadcrumb navigation bars on comment ten displays.', 'wp-photo-album-plus' );
|
971 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed above the comment ten displays.', 'wp-photo-album-plus' );
|
972 |
$slug = 'wppa_bc_on_comten';
|
973 |
$html = wppa_checkbox($slug);
|
974 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
975 |
|
976 |
+
$name = __('Breadcrumb on tag result displays', 'wp-photo-album-plus' );
|
977 |
+
$desc = __('Show breadcrumb navigation bars on tag result displays.', 'wp-photo-album-plus' );
|
978 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed above the tag result displays.', 'wp-photo-album-plus' );
|
979 |
$slug = 'wppa_bc_on_tag';
|
980 |
$html = wppa_checkbox($slug);
|
981 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
982 |
|
983 |
+
$name = __('Breadcrumb on featured ten displays', 'wp-photo-album-plus' );
|
984 |
+
$desc = __('Show breadcrumb navigation bars on featured ten displays.', 'wp-photo-album-plus' );
|
985 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed above the featured ten displays.', 'wp-photo-album-plus' );
|
986 |
$slug = 'wppa_bc_on_featen';
|
987 |
$html = wppa_checkbox($slug);
|
988 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
989 |
|
990 |
+
$name = __('Breadcrumb on related photos displays', 'wp-photo-album-plus' );
|
991 |
+
$desc = __('Show breadcrumb navigation bars on related photos displays.', 'wp-photo-album-plus' );
|
992 |
+
$help = __('Indicate whether a breadcrumb navigation should be displayed above the related photos displays.', 'wp-photo-album-plus' );
|
993 |
$slug = 'wppa_bc_on_related';
|
994 |
$html = wppa_checkbox($slug);
|
995 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
996 |
|
997 |
+
$name = __('Home', 'wp-photo-album-plus' );
|
998 |
+
$desc = __('Show "Home" in breadcrumb.', 'wp-photo-album-plus' );
|
999 |
+
$help = __('Indicate whether the breadcrumb navigation should start with a "Home"-link', 'wp-photo-album-plus' );
|
1000 |
$slug = 'wppa_show_home';
|
1001 |
$html = wppa_checkbox($slug);
|
1002 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1003 |
|
1004 |
+
$name = __('Home text', 'wp-photo-album-plus' );
|
1005 |
+
$desc = __('The text to use as "Home"', 'wp-photo-album-plus' );
|
1006 |
$help = ' ';
|
1007 |
$slug = 'wppa_home_text';
|
1008 |
$html = wppa_input($slug, '100px;');
|
1009 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1010 |
|
1011 |
+
$name = __('Page', 'wp-photo-album-plus' );
|
1012 |
+
$desc = __('Show the page(s) in breadcrumb.', 'wp-photo-album-plus' );
|
1013 |
+
$help = __('Indicate whether the breadcrumb navigation should show the page(hierarchy)', 'wp-photo-album-plus' );
|
1014 |
$slug = 'wppa_show_page';
|
1015 |
$html = wppa_checkbox($slug);
|
1016 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
1017 |
|
1018 |
+
$name = __('Photo name', 'wp-photo-album-plus' );
|
1019 |
+
$desc = __('Show name of photo above slideshow.', 'wp-photo-album-plus' );
|
1020 |
$help = '';
|
1021 |
$slug = 'wppa_show_pname';
|
1022 |
$html = wppa_checkbox($slug);
|
1023 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
1024 |
|
1025 |
+
$name = __('Separator', 'wp-photo-album-plus' );
|
1026 |
+
$desc = __('Breadcrumb separator symbol.', 'wp-photo-album-plus' );
|
1027 |
+
$help = __('Select the desired breadcrumb separator element.', 'wp-photo-album-plus' );
|
1028 |
+
$help .= '<br>'.__('A text string may contain valid html.', 'wp-photo-album-plus' );
|
1029 |
+
$help .= '<br>'.__('An image will be scaled automatically if you set the navigation font size.', 'wp-photo-album-plus' );
|
1030 |
$slug = 'wppa_bc_separator';
|
1031 |
+
$opts = array('&raquo', '&rsaquo', '&gt', '&bull', __('Text (html):', 'wp-photo-album-plus' ), __('Image (url):', 'wp-photo-album-plus' ));
|
1032 |
$vals = array('raquo', 'rsaquo', 'gt', 'bull', 'txt', 'url');
|
1033 |
$html = wppa_select($slug, $opts, $vals);
|
1034 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
1035 |
|
1036 |
+
$name = __('Html', 'wp-photo-album-plus' );
|
1037 |
+
$desc = __('Breadcrumb separator text.', 'wp-photo-album-plus' );
|
1038 |
+
$help = __('Enter the HTML code that produces the separator symbol you want.', 'wp-photo-album-plus' );
|
1039 |
+
$help .= '<br>'.__('It may be as simple as \'-\' (without the quotes) or as complex as a tag like <div>..</div>.', 'wp-photo-album-plus' );
|
1040 |
$slug = 'wppa_bc_txt';
|
1041 |
$html = wppa_input($slug, '90%', '300px');
|
1042 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
1043 |
|
1044 |
+
$name = __('Image Url', 'wp-photo-album-plus' );
|
1045 |
+
$desc = __('Full url to separator image.', 'wp-photo-album-plus' );
|
1046 |
+
$help = __('Enter the full url to the image you want to use for the separator symbol.', 'wp-photo-album-plus' );
|
1047 |
$slug = 'wppa_bc_url';
|
1048 |
$html = wppa_input($slug, '90%', '300px');
|
1049 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
1050 |
|
1051 |
+
$name = __('Pagelink position', 'wp-photo-album-plus' );
|
1052 |
+
$desc = __('The location for the pagelinks bar.', 'wp-photo-album-plus' );
|
1053 |
$help = '';
|
1054 |
$slug = 'wppa_pagelink_pos';
|
1055 |
+
$opts = array(__('Top', 'wp-photo-album-plus' ), __('Bottom', 'wp-photo-album-plus' ), __('Both', 'wp-photo-album-plus' ));
|
1056 |
$vals = array('top', 'bottom', 'both');
|
1057 |
$html = wppa_select($slug, $opts, $vals);
|
1058 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
1059 |
|
1060 |
+
$name = __('Thumblink on slideshow', 'wp-photo-album-plus' );
|
1061 |
+
$desc = __('Show a thumb link on slideshow bc.', 'wp-photo-album-plus' );
|
1062 |
+
$help = __('Show a link to thumbnail display on an breadcrumb above a slideshow', 'wp-photo-album-plus' );
|
1063 |
$slug = 'wppa_bc_slide_thumblink';
|
1064 |
$html = wppa_checkbox($slug);
|
1065 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
1072 |
wppa_setting_tab_description($desc);
|
1073 |
wppa_setting_box_header_new($tab);
|
1074 |
|
1075 |
+
$name = __('Navigation icon size', 'wp-photo-album-plus' );
|
1076 |
+
$desc = __('The size of navigation icons', 'wp-photo-album-plus' );
|
1077 |
$help = '';
|
1078 |
$slug = 'wppa_nav_icon_size';
|
1079 |
$opts = array( '1.5em',
|
1091 |
$html = wppa_select($slug, $opts, $vals);
|
1092 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1093 |
|
1094 |
+
$name = __('Navigation icon size slideshow', 'wp-photo-album-plus' );
|
1095 |
+
$desc = __('The size of navigation icons on the slide', 'wp-photo-album-plus' );
|
1096 |
$help = '';
|
1097 |
$slug = 'wppa_nav_icon_size_slide';
|
1098 |
$opts = array( '16px',
|
1110 |
$html = wppa_select($slug, $opts, $vals);
|
1111 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1112 |
|
1113 |
+
$name = __('Icon size rating', 'wp-photo-album-plus' );
|
1114 |
+
$desc = __('The size of rating stars', 'wp-photo-album-plus' );
|
1115 |
$help = '';
|
1116 |
$slug = 'wppa_icon_size_rating';
|
1117 |
$opts = array( '1em+3px',
|
1131 |
$html = wppa_select($slug, $opts, $vals);
|
1132 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1133 |
|
1134 |
+
$name = __('Navigation icon size panorama', 'wp-photo-album-plus' );
|
1135 |
+
$desc = __('The size of navigation icons on panorama photos', 'wp-photo-album-plus' );
|
1136 |
$help = '';
|
1137 |
$slug = 'wppa_nav_icon_size_panorama';
|
1138 |
$opts = array( '16px',
|
1152 |
$html = wppa_select($slug, $opts, $vals);
|
1153 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1154 |
|
1155 |
+
$name = __('Icon size fullsize page', 'wp-photo-album-plus' );
|
1156 |
+
$desc = __('The size of navigation icons for the fullsize page', 'wp-photo-album-plus' );
|
1157 |
$help = '';
|
1158 |
$slug = 'wppa_nav_icon_size_global_fs';
|
1159 |
$opts = array( '16px',
|
1173 |
$html = wppa_select($slug, $opts, $vals);
|
1174 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1175 |
|
1176 |
+
$name = __('Navigation symbols style', 'wp-photo-album-plus' );
|
1177 |
$desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
|
1178 |
+
$help = __('Use gif/png if you have excessive pageload times due to many slideshows on a page', 'wp-photo-album-plus' );
|
1179 |
$slug = 'wppa_icon_corner_style';
|
1180 |
+
$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' ));
|
1181 |
$vals = array('none', 'light', 'medium', 'heavy', 'gif');
|
1182 |
$html = wppa_select($slug, $opts, $vals);
|
1183 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1184 |
|
1185 |
+
$name = __('Spinner design', 'wp-photo-album-plus' );
|
1186 |
+
$desc = __('Shape of the loader symbol', 'wp-photo-album-plus' );
|
1187 |
+
$help = __('This works only when the previous item is set to any svg style', 'wp-photo-album-plus' );
|
1188 |
$slug = 'wppa_spinner_shape';
|
1189 |
+
$opts = array( __('default', 'wp-photo-album-plus' ),
|
1190 |
'puff',
|
1191 |
'rings',
|
1192 |
'tail-spin',
|
1215 |
'audio',
|
1216 |
);
|
1217 |
$html = wppa_select($slug, $opts, $vals) .
|
1218 |
+
__('Frontend', 'wp-photo-album-plus' ) . ': <span id="wppa-spin-pre-1" > </span>' .
|
1219 |
+
__('Lightbox', 'wp-photo-album-plus' ) . ': <span id="wppa-spin-pre-2" > </span>';
|
1220 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1221 |
|
1222 |
+
$name = __('Navigation symbols', 'wp-photo-album-plus' );
|
1223 |
+
$desc = __('Navigation symbol background and fill colors.', 'wp-photo-album-plus' );
|
1224 |
$help = '';
|
1225 |
$slug1 = 'wppa_svg_bg_color';
|
1226 |
$slug2 = 'wppa_svg_color';
|
1227 |
$slug = array($slug1, $slug2);
|
1228 |
+
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
1229 |
+
$html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
1230 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1231 |
|
1232 |
+
$name = __('Navigation symbols Lightbox', 'wp-photo-album-plus' );
|
1233 |
+
$desc = __('Navigation symbol background and fill colors Lightbox.', 'wp-photo-album-plus' );
|
1234 |
$help = '';
|
1235 |
$slug1 = 'wppa_ovl_svg_bg_color';
|
1236 |
$slug2 = 'wppa_ovl_svg_color';
|
1237 |
$slug = array($slug1, $slug2);
|
1238 |
+
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
1239 |
+
$html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
1240 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1241 |
|
1242 |
+
$name = __('Fullscreen button', 'wp-photo-album-plus' );
|
1243 |
+
$desc = __('The upper right corner fullscreen button.', 'wp-photo-album-plus' );
|
1244 |
$help = '';
|
1245 |
$slug1 = 'wppa_fs_svg_bg_color';
|
1246 |
$slug2 = 'wppa_fs_svg_color';
|
1247 |
$slug = array($slug1, $slug2);
|
1248 |
+
$html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
|
1249 |
+
$html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus' ) . ' </span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
1250 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1251 |
|
1252 |
wppa_setting_box_footer_new();
|
1294 |
$slug = 'wppa_document_icon';
|
1295 |
$opts = $icons;
|
1296 |
$vals = $icons;
|
1297 |
+
$onch = 'alert(\''.__('The page will be reloaded.', 'wp-photo-album-plus' ).'\');wppaRefreshAfter();';
|
1298 |
$html = wppa_select( $slug, $opts, $vals, $onch ) . ' <img src="' . esc_attr( WPPA_UPLOAD_URL . '/icons/' . wppa_opt( 'document_icon' ) ) . '" style="height:24px;" />';
|
1299 |
wppa_setting_new( $slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_pdf' ) );
|
1300 |
|
1305 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.jpeg,.jpg,.png,.svg,.gif,.bmp,.ico' );
|
1306 |
wppa_setting_new( $slug, '4', $name, $desc, $html, $help );
|
1307 |
|
1308 |
+
$name = __('Use audiostub', 'wp-photo-album-plus' );
|
1309 |
+
$desc = __('Show a dummy image on audio items that have no photo', 'wp-photo-album-plus' );
|
1310 |
$help = '';
|
1311 |
$slug = 'wppa_use_audiostub';
|
1312 |
$html = wppa_checkbox($slug);
|
1313 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_switch('enable_audio'));
|
1314 |
|
1315 |
+
$name = __('Upload audiostub', 'wp-photo-album-plus' );
|
1316 |
+
$desc = __('Upload a new audio stub file', 'wp-photo-album-plus' );
|
1317 |
+
$help = __('This MUST be a .jpg image file', 'wp-photo-album-plus' );
|
1318 |
$slug = 'wppa_audiostub_upload';
|
1319 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.jpg' );
|
1320 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help, wppa_switch('enable_audio'));
|
1321 |
|
1322 |
+
$name = __('Upload documentstub', 'wp-photo-album-plus' );
|
1323 |
+
$desc = __('Upload a new document stub file', 'wp-photo-album-plus' );
|
1324 |
+
$help = __('This MUST be a .png image file', 'wp-photo-album-plus' );
|
1325 |
$slug = 'wppa_documentstub_upload';
|
1326 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.png' );
|
1327 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_pdf'));
|
1333 |
{
|
1334 |
$coldef = array();
|
1335 |
wppa_setting_tab_description($desc);
|
1336 |
+
$coldef = array( __('#', 'wp-photo-album-plus' ) => '24px;',
|
1337 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
1338 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
1339 |
+
__('Font family', 'wp-photo-album-plus' ) => 'auto;',
|
1340 |
+
__('Font size', 'wp-photo-album-plus' ) => 'auto;',
|
1341 |
+
__('Font color', 'wp-photo-album-plus' ) => 'auto;',
|
1342 |
+
__('Font weight', 'wp-photo-album-plus' ) => 'auto;',
|
1343 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
1344 |
);
|
1345 |
wppa_setting_box_header_new($tab, $coldef);
|
1346 |
|
1347 |
+
$opts = 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');
|
1348 |
$vals = array('normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900');
|
1349 |
|
1350 |
+
$name = __('Album titles', 'wp-photo-album-plus' );
|
1351 |
+
$desc = __('Font used for Album titles.', 'wp-photo-album-plus' );
|
1352 |
+
$help = __('Enter font name, size, color and weight for album cover titles.', 'wp-photo-album-plus' );
|
1353 |
$slug1 = 'wppa_fontfamily_title';
|
1354 |
$slug2 = 'wppa_fontsize_title';
|
1355 |
$slug3 = 'wppa_fontcolor_title';
|
1356 |
$slug4 = 'wppa_fontweight_title';
|
1357 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1358 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1359 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1360 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1361 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1362 |
$html = array($html1, $html2, $html3, $html4);
|
1363 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1364 |
|
1365 |
+
$name = __('Slideshow desc', 'wp-photo-album-plus' );
|
1366 |
+
$desc = __('Font for slideshow photo descriptions.', 'wp-photo-album-plus' );
|
1367 |
+
$help = __('Enter font name, size, color and weight for slideshow photo descriptions.', 'wp-photo-album-plus' );
|
1368 |
$slug1 = 'wppa_fontfamily_fulldesc';
|
1369 |
$slug2 = 'wppa_fontsize_fulldesc';
|
1370 |
$slug3 = 'wppa_fontcolor_fulldesc';
|
1371 |
$slug4 = 'wppa_fontweight_fulldesc';
|
1372 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1373 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1374 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1375 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1376 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1377 |
$html = array($html1, $html2, $html3, $html4);
|
1378 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1379 |
|
1380 |
+
$name = __('Slideshow name', 'wp-photo-album-plus' );
|
1381 |
+
$desc = __('Font for slideshow photo names.', 'wp-photo-album-plus' );
|
1382 |
+
$help = __('Enter font name, size, color and weight for slideshow photo names.', 'wp-photo-album-plus' );
|
1383 |
$slug1 = 'wppa_fontfamily_fulltitle';
|
1384 |
$slug2 = 'wppa_fontsize_fulltitle';
|
1385 |
$slug3 = 'wppa_fontcolor_fulltitle';
|
1386 |
$slug4 = 'wppa_fontweight_fulltitle';
|
1387 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1388 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1389 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1390 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1391 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1392 |
$html = array($html1, $html2, $html3, $html4);
|
1393 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1394 |
|
1395 |
+
$name = __('Navigations', 'wp-photo-album-plus' );
|
1396 |
+
$desc = __('Font for navigations.', 'wp-photo-album-plus' );
|
1397 |
+
$help = __('Enter font name, size, color and weight for navigation items.', 'wp-photo-album-plus' );
|
1398 |
$slug1 = 'wppa_fontfamily_nav';
|
1399 |
$slug2 = 'wppa_fontsize_nav';
|
1400 |
$slug3 = 'wppa_fontcolor_nav';
|
1401 |
$slug4 = 'wppa_fontweight_nav';
|
1402 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1403 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1404 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1405 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1406 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1407 |
$html = array($html1, $html2, $html3, $html4);
|
1408 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1409 |
|
1410 |
+
$name = __('Thumbnails', 'wp-photo-album-plus' );
|
1411 |
+
$desc = __('Font for text under thumbnails.', 'wp-photo-album-plus' );
|
1412 |
+
$help = __('Enter font name, size, color and weight for text under thumbnail images.', 'wp-photo-album-plus' );
|
1413 |
$slug1 = 'wppa_fontfamily_thumb';
|
1414 |
$slug2 = 'wppa_fontsize_thumb';
|
1415 |
$slug3 = 'wppa_fontcolor_thumb';
|
1416 |
$slug4 = 'wppa_fontweight_thumb';
|
1417 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1418 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1419 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1420 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1421 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1422 |
$html = array($html1, $html2, $html3, $html4);
|
1423 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1424 |
|
1425 |
+
$name = __('Other', 'wp-photo-album-plus' );
|
1426 |
+
$desc = __('General font in wppa boxes.', 'wp-photo-album-plus' );
|
1427 |
+
$help = __('Enter font name, size, color and weight for all other items.', 'wp-photo-album-plus' );
|
1428 |
$slug1 = 'wppa_fontfamily_box';
|
1429 |
$slug2 = 'wppa_fontsize_box';
|
1430 |
$slug3 = 'wppa_fontcolor_box';
|
1431 |
$slug4 = 'wppa_fontweight_box';
|
1432 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1433 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1434 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1435 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1436 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1437 |
$html = array($html1, $html2, $html3, $html4);
|
1438 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1439 |
|
1440 |
+
$name = __('Numbar', 'wp-photo-album-plus' );
|
1441 |
+
$desc = __('Font in wppa number bars.', 'wp-photo-album-plus' );
|
1442 |
+
$help = __('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus' );
|
1443 |
$slug1 = 'wppa_fontfamily_numbar';
|
1444 |
$slug2 = 'wppa_fontsize_numbar';
|
1445 |
$slug3 = 'wppa_fontcolor_numbar';
|
1446 |
$slug4 = 'wppa_fontweight_numbar';
|
1447 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1448 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1449 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1450 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1451 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1452 |
$html = array($html1, $html2, $html3, $html4);
|
1453 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1454 |
|
1455 |
+
$name = __('Numbar Active', 'wp-photo-album-plus' );
|
1456 |
+
$desc = __('Font in wppa number bars, active item.', 'wp-photo-album-plus' );
|
1457 |
+
$help = __('Enter font name, size, color and weight for numberbar navigation.', 'wp-photo-album-plus' );
|
1458 |
$slug1 = 'wppa_fontfamily_numbar_active';
|
1459 |
$slug2 = 'wppa_fontsize_numbar_active';
|
1460 |
$slug3 = 'wppa_fontcolor_numbar_active';
|
1461 |
$slug4 = 'wppa_fontweight_numbar_active';
|
1462 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1463 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1464 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1465 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1466 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1467 |
$html = array($html1, $html2, $html3, $html4);
|
1468 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1469 |
|
1470 |
+
$name = __('Lightbox', 'wp-photo-album-plus' );
|
1471 |
+
$desc = __('Font in wppa lightbox overlays.', 'wp-photo-album-plus' );
|
1472 |
+
$help = __('Enter font name, size, color and weight for wppa lightbox overlays.', 'wp-photo-album-plus' );
|
1473 |
$slug1 = 'wppa_fontfamily_lightbox';
|
1474 |
$slug2 = 'wppa_fontsize_lightbox';
|
1475 |
$slug3 = 'wppa_fontcolor_lightbox';
|
1476 |
$slug4 = 'wppa_fontweight_lightbox';
|
1477 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
1478 |
$html1 = wppa_input($slug1, '90%', '200px', '');
|
1479 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1480 |
$html3 = wppa_input($slug3, '70px', '', '');
|
1481 |
$html4 = wppa_select($slug4, $opts, $vals);
|
1482 |
$html = array($html1, $html2, $html3, $html4);
|
1483 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1484 |
|
1485 |
+
$name = __('Widget thumbs fontsize', 'wp-photo-album-plus' );
|
1486 |
+
$desc = __('Font size for thumbnail subtext in widgets.', 'wp-photo-album-plus' );
|
1487 |
$help = '';
|
1488 |
$slug1 = '';
|
1489 |
$slug2 = 'wppa_fontsize_widget_thumb';
|
1491 |
$slug4 = '';
|
1492 |
$slug = $slug2;
|
1493 |
$html1 = '';
|
1494 |
+
$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1495 |
$html3 = '';
|
1496 |
$html4 = '';
|
1497 |
$html = '</td><td>' . $html2 . '</td><td></td><td>';
|
1498 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1499 |
|
1500 |
+
$name = __('Calendar fontsize', 'wp-photo-album-plus' );
|
1501 |
+
$desc = __('Old style calendar fontstyle', 'wp-photo-album-plus' );
|
1502 |
$help = '';
|
1503 |
$slug1 = '';
|
1504 |
$slug2 = 'wppa_font_calendar_by';
|
1506 |
$slug4 = 'wppa_font_calendar_by_bold';
|
1507 |
$slug = $slug2;
|
1508 |
$html1 = '';
|
1509 |
+
$opts = array( __('Small', 'wp-photo-album-plus' ),
|
1510 |
+
__('Medium', 'wp-photo-album-plus' ),
|
1511 |
+
__('Large', 'wp-photo-album-plus' ),
|
1512 |
+
__('Extra large', 'wp-photo-album-plus' ),
|
1513 |
);
|
1514 |
$vals = array( 'small', 'medium', 'large', 'xlarge');
|
1515 |
$html2 = wppa_select($slug2, $opts, $vals);
|
1516 |
$html3 = '';
|
1517 |
+
$html4 = wppa_checkbox($slug4) . ' ' . __('Bold', 'wp-photo-album-plus' );
|
1518 |
$html = '</td><td>' . $html2 . '</td><td></td><td>' . $html4;
|
1519 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1520 |
|
1530 |
wppa_setting_tab_description($desc);
|
1531 |
wppa_setting_box_header_new($tab);
|
1532 |
|
1533 |
+
$name = __('Max Cover width', 'wp-photo-album-plus' );
|
1534 |
+
$desc = __('Maximum width for a album cover display.', 'wp-photo-album-plus' );
|
1535 |
+
$help = __('Display covers in 2 or more columns if the display area is wider than the given width.', 'wp-photo-album-plus' );
|
1536 |
+
$help .= '<br>'.__('This also applies for \'thumbnails as covers\', and will NOT apply to single items.', 'wp-photo-album-plus' );
|
1537 |
$slug = 'wppa_max_cover_width';
|
1538 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1539 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1540 |
|
1541 |
+
$name = __('Min Cover height', 'wp-photo-album-plus' );
|
1542 |
+
$desc = __('Minimal height of an album cover.', 'wp-photo-album-plus' );
|
1543 |
+
$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' );
|
1544 |
$slug = 'wppa_cover_minheight';
|
1545 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1546 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1547 |
|
1548 |
+
$name = __('Min Text frame height', 'wp-photo-album-plus' );
|
1549 |
+
$desc = __('The minimal cover text frame height incl header.', 'wp-photo-album-plus' );
|
1550 |
+
$help = __('The height starting with the album title up to and including the view- and the slideshow- links.', 'wp-photo-album-plus' );
|
1551 |
+
$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' );
|
1552 |
+
$help .= '<br>'.__('This is the recommended setting to line-up your covers!', 'wp-photo-album-plus' );
|
1553 |
$slug = 'wppa_head_and_text_frame_height';
|
1554 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1555 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1556 |
|
1557 |
+
$name = __('Min Description height', 'wp-photo-album-plus' );
|
1558 |
+
$desc = __('The minimal height of the album description text frame.', 'wp-photo-album-plus' );
|
1559 |
+
$help = __('The minimal height of the description field in an album cover display.', 'wp-photo-album-plus' );
|
1560 |
+
$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' );
|
1561 |
+
$help .= '<br>'.__('To force the coverphotos have equal heights, tick the box in <b>Albums -> I -> Size is height</b>', 'wp-photo-album-plus' );
|
1562 |
+
$help .= '<br>'.__('You may need this setting if changing the previous setting is not sufficient to line-up the covers.', 'wp-photo-album-plus' );
|
1563 |
$slug = 'wppa_text_frame_height';
|
1564 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1565 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1566 |
|
1567 |
+
$name = __('Coverphoto responsive', 'wp-photo-album-plus' );
|
1568 |
+
$desc = __('Check this box if you want a responsive coverphoto.', 'wp-photo-album-plus' );
|
1569 |
$help = '';
|
1570 |
$slug = 'wppa_coverphoto_responsive';
|
1571 |
$html = wppa_checkbox($slug, 'wppaSlave(this,\'wppa_smallsize_percentage\');' .
|
1574 |
'wppaUnSlave(this,\'wppa_smallsize_multi\');');
|
1575 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1576 |
|
1577 |
+
$name = __('Coverphoto size', 'wp-photo-album-plus' );
|
1578 |
+
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus' );
|
1579 |
+
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus' );
|
1580 |
+
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
1581 |
$slug = 'wppa_smallsize';
|
1582 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1583 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help, ! wppa_switch( 'coverphoto_responsive' ));
|
1584 |
|
1585 |
+
$name = __('Coverphoto size', 'wp-photo-album-plus' );
|
1586 |
+
$desc = __('The size of the coverphoto.', 'wp-photo-album-plus' );
|
1587 |
+
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus' );
|
1588 |
+
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
1589 |
$slug = 'wppa_smallsize_percentage';
|
1590 |
+
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus' ));
|
1591 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch( 'coverphoto_responsive' ));
|
1592 |
|
1593 |
+
$name = __('Coverphoto size multi', 'wp-photo-album-plus' );
|
1594 |
+
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus' );
|
1595 |
+
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus' );
|
1596 |
+
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
1597 |
$slug = 'wppa_smallsize_multi';
|
1598 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
1599 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, ! wppa_switch( 'coverphoto_responsive' ));
|
1600 |
|
1601 |
+
$name = __('Coverphoto size multi', 'wp-photo-album-plus' );
|
1602 |
+
$desc = __('The size of coverphotos if more than one.', 'wp-photo-album-plus' );
|
1603 |
+
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus' );
|
1604 |
+
$help .= '<br>'.__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
1605 |
$slug = 'wppa_smallsize_multi_percentage';
|
1606 |
+
$html = wppa_input($slug, '40px', '', __('percent', 'wp-photo-album-plus' ));
|
1607 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help, wppa_switch( 'coverphoto_responsive' ));
|
1608 |
|
1609 |
+
$name = __('Size is height', 'wp-photo-album-plus' );
|
1610 |
+
$desc = __('The size of the coverphoto is the height of it.', 'wp-photo-album-plus' );
|
1611 |
+
$help = __('If set: the previous setting is the height, if unset: the largest of width and height.', 'wp-photo-album-plus' );
|
1612 |
+
$help .= '<br>'.__('This setting applies for coverphoto position top or bottom only (<b>Albums -> III -> Placement</b>).', 'wp-photo-album-plus' );
|
1613 |
+
$help .= '<br>'.__('This makes it easyer to make the covers of equal height.', 'wp-photo-album-plus' );
|
1614 |
$slug = 'wppa_coversize_is_height';
|
1615 |
$html = wppa_checkbox($slug);
|
1616 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1617 |
|
1618 |
+
$name = __('Page size', 'wp-photo-album-plus' );
|
1619 |
+
$desc = __('Max number of covers per page.', 'wp-photo-album-plus' );
|
1620 |
+
$help = __('Enter the maximum number of album covers per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus' );
|
1621 |
$slug = 'wppa_album_page_size';
|
1622 |
+
$html = wppa_input($slug, '40px', '', __('covers', 'wp-photo-album-plus' ));
|
1623 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
1624 |
|
1625 |
+
$name = __('Cover spacing', 'wp-photo-album-plus' );
|
1626 |
+
$desc = __('The space between album covers', 'wp-photo-album-plus' );
|
1627 |
$help = '';
|
1628 |
$slug = 'wppa_cover_spacing';
|
1629 |
$html = wppa_input( $slug, '40px', '', __( 'pixels', 'wp-photo-album-plus' ));
|
1637 |
wppa_setting_tab_description($desc);
|
1638 |
wppa_setting_box_header_new($tab);
|
1639 |
|
1640 |
+
$name = __('Covertext', 'wp-photo-album-plus' );
|
1641 |
+
$desc = __('Show the text on the album cover.', 'wp-photo-album-plus' );
|
1642 |
+
$help = __('Display the album decription on the album cover', 'wp-photo-album-plus' );
|
1643 |
$slug = 'wppa_show_cover_text';
|
1644 |
$html = wppa_checkbox($slug);
|
1645 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1646 |
|
1647 |
+
$name = __('Slideshow', 'wp-photo-album-plus' );
|
1648 |
+
$desc = __('Enable the slideshow.', 'wp-photo-album-plus' );
|
1649 |
+
$help = __('If you do not want slideshows: uncheck this box. Browsing full size images will remain possible.', 'wp-photo-album-plus' );
|
1650 |
$slug = 'wppa_enable_slideshow';
|
1651 |
$html = wppa_checkbox($slug);
|
1652 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1653 |
|
1654 |
+
$name = __('Slideshow/Browse', 'wp-photo-album-plus' );
|
1655 |
+
$desc = __('Display the Slideshow / Browse photos link on album covers', 'wp-photo-album-plus' );
|
1656 |
+
$help = __('This setting causes the Slideshow link to be displayed on the album cover.', 'wp-photo-album-plus' );
|
1657 |
+
$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' );
|
1658 |
+
$help .= '<br>'.__('If you do not want the browse link either, uncheck this item.', 'wp-photo-album-plus' );
|
1659 |
$slug = 'wppa_show_slideshowbrowselink';
|
1660 |
$html = wppa_checkbox($slug);
|
1661 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1662 |
|
1663 |
+
$name = __('View ...', 'wp-photo-album-plus' );
|
1664 |
+
$desc = __('Display the View xx albums and yy photos link on album covers', 'wp-photo-album-plus' );
|
1665 |
$help = '';
|
1666 |
$slug = 'wppa_show_viewlink';
|
1667 |
$html = wppa_checkbox($slug);
|
1668 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1669 |
|
1670 |
+
$name = __('Treecount', 'wp-photo-album-plus' );
|
1671 |
+
$desc = __('Display the total number of (sub)albums and photos in subalbums', 'wp-photo-album-plus' );
|
1672 |
+
$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' );
|
1673 |
$slug = 'wppa_show_treecount';
|
1674 |
+
$opts = array( __('none', 'wp-photo-album-plus' ), __('detailed', 'wp-photo-album-plus' ), __('totals only', 'wp-photo-album-plus' ));
|
1675 |
$vals = array( '-none-', 'detail', 'total' );
|
1676 |
$html = wppa_select($slug, $opts, $vals);
|
1677 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1678 |
|
1679 |
+
$name = __('Show categories', 'wp-photo-album-plus' );
|
1680 |
+
$desc = __('Display the album categories on the covers.', 'wp-photo-album-plus' );
|
1681 |
$slug = 'wppa_show_cats';
|
1682 |
$help = '';
|
1683 |
$html = wppa_checkbox($slug);
|
1684 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1685 |
|
1686 |
+
$name = __('Skip empty albums', 'wp-photo-album-plus' );
|
1687 |
+
$desc = __('Do not show empty albums, except for admin and owner.', 'wp-photo-album-plus' );
|
1688 |
$help = '';
|
1689 |
$slug = 'wppa_skip_empty_albums';
|
1690 |
$html = wppa_checkbox($slug);
|
1691 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1692 |
|
1693 |
+
$name = __('Count on title', 'wp-photo-album-plus' );
|
1694 |
+
$desc = __('Show photocount along with album title. ', 'wp-photo-album-plus' );
|
1695 |
$help = '';
|
1696 |
$slug = 'wppa_count_on_title';
|
1697 |
+
$opts = array( __('none', 'wp-photo-album-plus' ), __('top album only', 'wp-photo-album-plus' ), __('total tree', 'wp-photo-album-plus' ));
|
1698 |
$vals = array( '-none-', 'self', 'total' );
|
1699 |
$html = wppa_select($slug, $opts, $vals);
|
1700 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1701 |
|
1702 |
+
$name = __('Viewcount on cover', 'wp-photo-album-plus' );
|
1703 |
+
$desc = __('Show total photo viewcount on album covers.', 'wp-photo-album-plus' );
|
1704 |
$help = '';
|
1705 |
$slug = 'wppa_viewcount_on_cover';
|
1706 |
+
$opts = array( __('none', 'wp-photo-album-plus' ), __('top album only', 'wp-photo-album-plus' ), __('total tree', 'wp-photo-album-plus' ));
|
1707 |
$vals = array( '-none-', 'self', 'total' );
|
1708 |
$html = wppa_select($slug, $opts, $vals);
|
1709 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1710 |
|
1711 |
+
$name = __('Album id on cover', 'wp-photo-album-plus' );
|
1712 |
+
$desc = __('Show album id on album cover next to name', 'wp-photo-album-plus' );
|
1713 |
$help = '';
|
1714 |
$slug = 'wppa_albumid_on_cover';
|
1715 |
+
$opts = array( __('none', 'wp-photo-album-plus' ), __('If user has edit access', 'wp-photo-album-plus' ), __('Always', 'wp-photo-album-plus' ) );
|
1716 |
$vals = array( '-none-', 'access', 'all' );
|
1717 |
$html = wppa_select($slug, $opts, $vals);
|
1718 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
1725 |
wppa_setting_tab_description($desc);
|
1726 |
wppa_setting_box_header_new($tab);
|
1727 |
|
1728 |
+
$name = __('Placement', 'wp-photo-album-plus' );
|
1729 |
+
$desc = __('Cover image position.', 'wp-photo-album-plus' );
|
1730 |
+
$help = __('Enter the position that you want to be used for the default album cover selected in <b>Albums -> III -> Cover type</b>', 'wp-photo-album-plus' );
|
1731 |
+
$help .= '<br>'.__('For covertype Image Factory: left will be treated as top and right will be treted as bottom.', 'wp-photo-album-plus' );
|
1732 |
+
$help .= '<br>'.__('For covertype Long Descriptions: top will be treated as left and bottom will be treted as right.', 'wp-photo-album-plus' );
|
1733 |
$slug = 'wppa_coverphoto_pos';
|
1734 |
+
$opts = array(__('Left', 'wp-photo-album-plus' ), __('Right', 'wp-photo-album-plus' ), __('Top', 'wp-photo-album-plus' ), __('Bottom', 'wp-photo-album-plus' ));
|
1735 |
$vals = array('left', 'right', 'top', 'bottom');
|
1736 |
$html = wppa_select($slug, $opts, $vals);
|
1737 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1738 |
|
1739 |
+
$name = __('Cover mouseover', 'wp-photo-album-plus' );
|
1740 |
+
$desc = __('Apply coverphoto mouseover effect.', 'wp-photo-album-plus' );
|
1741 |
+
$help = (__('Check this box to use mouseover effect on cover images.', 'wp-photo-album-plus' ));
|
1742 |
$slug = 'wppa_use_cover_opacity';
|
1743 |
$html = wppa_checkbox($slug);
|
1744 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1745 |
|
1746 |
+
$name = __('Cover opacity', 'wp-photo-album-plus' );
|
1747 |
+
$desc = __('Initial opacity value.', 'wp-photo-album-plus' );
|
1748 |
+
$help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus' );
|
1749 |
$slug = 'wppa_cover_opacity';
|
1750 |
$html = wppa_input($slug, '50px', '', '%');
|
1751 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1752 |
|
1753 |
+
$name = __('Cover type', 'wp-photo-album-plus' );
|
1754 |
+
$desc = __('Select the default cover type.', 'wp-photo-album-plus' );
|
1755 |
+
$help = __('Types with the addition mcr are suitable for Multi Column in a Responsive theme', 'wp-photo-album-plus' );
|
1756 |
+
$help .= '<br>'.__("Type 'Grid with images only' is always responsive and requires a fixed aspect ratio selected for thumbnails in <b>Thumbnails -> I -> Thumbnail Aspect</b>", 'wp-photo-album-plus' );
|
1757 |
$slug = 'wppa_cover_type';
|
1758 |
+
$opts = array( __('Standard', 'wp-photo-album-plus' ),
|
1759 |
+
__('Long Descriptions', 'wp-photo-album-plus' ),
|
1760 |
+
__('Image Factory', 'wp-photo-album-plus' ),
|
1761 |
+
__('Standard mcr', 'wp-photo-album-plus' ),
|
1762 |
+
__('Long Descriptions mcr', 'wp-photo-album-plus' ),
|
1763 |
+
__('Image Factory mcr', 'wp-photo-album-plus' ),
|
1764 |
+
__('Grid with images only', 'wp-photo-album-plus' ),
|
1765 |
);
|
1766 |
$vals = array( 'default',
|
1767 |
'longdesc',
|
1774 |
$html = wppa_select($slug, $opts, $vals);
|
1775 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1776 |
|
1777 |
+
$name = __('Number of coverphotos', 'wp-photo-album-plus' );
|
1778 |
+
$desc = __('The umber of coverphotos. Must be > 1 and < 25.', 'wp-photo-album-plus' );
|
1779 |
$help = '';
|
1780 |
$slug = 'wppa_imgfact_count';
|
1781 |
+
$html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus' ));
|
1782 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1783 |
|
1784 |
+
$name = __('Cats include subs', 'wp-photo-album-plus' );
|
1785 |
+
$desc = __('Child albums are included in Category based shortcodes.', 'wp-photo-album-plus' );
|
1786 |
+
$help = __('When you use album="#cat,...", in a shortcode, the child albums will be included.', 'wp-photo-album-plus' );
|
1787 |
$slug = 'wppa_cats_inherit';
|
1788 |
$html = wppa_checkbox($slug);
|
1789 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1790 |
|
1791 |
+
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus' );
|
1792 |
+
$desc = __('Adds <br> or <p> and <br> tags in album descriptions.', 'wp-photo-album-plus' );
|
1793 |
$help = '';
|
1794 |
$slug = 'wppa_wpautop_on_album_desc';
|
1795 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
1796 |
+
__('Linebreaks only', 'wp-photo-album-plus' ),
|
1797 |
+
__('Linebreaks and paragraphs', 'wp-photo-album-plus' ),
|
1798 |
);
|
1799 |
$vals = array('nil', 'nl2br', 'wpautop');
|
1800 |
$html = wppa_select($slug, $opts, $vals);
|
1801 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
1802 |
|
1803 |
+
$name = __('Use thumb on cover', 'wp-photo-album-plus' );
|
1804 |
+
$desc = __('Always use thumbnail file for cover image', 'wp-photo-album-plus' );
|
1805 |
+
$help = __('If you crop thumbnails for cover images, and you have a CDN, tick this box', 'wp-photo-album-plus' );
|
1806 |
$slug = 'wppa_cover_use_thumb';
|
1807 |
$html = wppa_checkbox($slug);
|
1808 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
1819 |
wppa_setting_tab_description($desc);
|
1820 |
wppa_setting_box_header_new($tab);
|
1821 |
|
1822 |
+
$name = __('Resize during upload', 'wp-photo-album-plus' );
|
1823 |
+
$desc = __('Resize photos to fit within a given area.', 'wp-photo-album-plus' );
|
1824 |
$help = '';
|
1825 |
$slug = 'wppa_resize_to';
|
1826 |
+
$px = __('pixels', 'wp-photo-album-plus' );
|
1827 |
+
$opts = array( __('Do not resize', 'wp-photo-album-plus' ),
|
1828 |
+
__('Fit within rectangle as set in Tab Slideshow I', 'wp-photo-album-plus' ),
|
1829 |
'640 x 480 '.$px,
|
1830 |
'800 x 600 '.$px,
|
1831 |
'1024 x 768 '.$px,
|
1855 |
$html = wppa_select($slug, $opts, $vals);
|
1856 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1857 |
|
1858 |
+
$name = __('Enable 3D Stereo', 'wp-photo-album-plus' );
|
1859 |
+
$desc = __('Enables 3D stereo photo support.', 'wp-photo-album-plus' );
|
1860 |
+
$help = __('Check this box to enable the upload and display of 3D stereo image files', 'wp-photo-album-plus' );
|
1861 |
$slug = 'wppa_enable_stereo';
|
1862 |
$html = wppa_checkbox($slug);
|
1863 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1864 |
|
1865 |
+
$name = __('Enable Panorama', 'wp-photo-album-plus' );
|
1866 |
+
$desc = __('Enables panorama photo support.', 'wp-photo-album-plus' );
|
1867 |
+
$help = __('Check this box to enable the upload and display of flat and 360° spheric panorama image files', 'wp-photo-album-plus' );
|
1868 |
$slug = 'wppa_enable_panorama';
|
1869 |
$html = wppa_checkbox($slug);
|
1870 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1871 |
|
1872 |
+
$name = __('Enable zooming', 'wp-photo-album-plus' );
|
1873 |
+
$desc = __('Enable zooming and panning', 'wp-photo-album-plus' );
|
1874 |
$help = '';
|
1875 |
$slug = 'wppa_zoom_on';
|
1876 |
$html = wppa_checkbox($slug);
|
1884 |
wppa_setting_tab_description($desc);
|
1885 |
wppa_setting_box_header_new($tab);
|
1886 |
|
1887 |
+
$name = __('Single image type', 'wp-photo-album-plus' );
|
1888 |
+
$desc = __('Specify the single image type the shortcode [photo ..] should show.', 'wp-photo-album-plus' );
|
1889 |
$help = '';
|
1890 |
$slug = 'wppa_photo_shortcode_type';
|
1891 |
+
$opts = array( __('A plain single photo', 'wp-photo-album-plus' ),
|
1892 |
+
__('A single photo with caption', 'wp-photo-album-plus' ),
|
1893 |
+
__('A single photo with extended caption', 'wp-photo-album-plus' ),
|
1894 |
+
__('A single photo in the style of a slideshow', 'wp-photo-album-plus' ),
|
1895 |
);
|
1896 |
$vals = array( 'photo',
|
1897 |
'mphoto',
|
1901 |
$html = wppa_select($slug, $opts, $vals);
|
1902 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
1903 |
|
1904 |
+
$name = __('Size', 'wp-photo-album-plus' );
|
1905 |
+
$desc = __('Specify the size (width) of the image.', 'wp-photo-album-plus' );
|
1906 |
+
$help = __('Use the same syntax as in the [wppa size=".."] shortcode', 'wp-photo-album-plus' );
|
1907 |
+
$help .= '<br>'.__('Examples: 350 for a fixed width of 350 pixels, or: 0.75 for a responsive display of 75% width, or: auto,350 for responsive with a maximum of 350 pixels.', 'wp-photo-album-plus' );
|
1908 |
$slug = 'wppa_photo_shortcode_size';
|
1909 |
$html = wppa_input($slug, '300px');
|
1910 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
1911 |
|
1912 |
+
$name = __('Align', 'wp-photo-album-plus' );
|
1913 |
+
$desc = __('Specify the alignment of the image.', 'wp-photo-album-plus' );
|
1914 |
$help = '';
|
1915 |
$slug = 'wppa_photo_shortcode_align';
|
1916 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
1917 |
+
__('left', 'wp-photo-album-plus' ),
|
1918 |
+
__('center', 'wp-photo-album-plus' ),
|
1919 |
+
__('right', 'wp-photo-album-plus' ),
|
1920 |
);
|
1921 |
$vals = array( '',
|
1922 |
'left',
|
1926 |
$html = wppa_select($slug, $opts, $vals);
|
1927 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
1928 |
|
1929 |
+
$name = __('Fe type', 'wp-photo-album-plus' );
|
1930 |
+
$desc = __('Frontend editor shortcode generator output type', 'wp-photo-album-plus' );
|
1931 |
+
$help = __( 'If you want to use the shortcode generator in frontend tinymce editors, select if you want the shortcode or the html to be entered in the post', 'wp-photo-album-plus' );
|
1932 |
+
$help .= '<br>'.__('Select \'html\' if the inserted shortcode not is converted to the photo', 'wp-photo-album-plus' );
|
1933 |
$slug = 'wppa_photo_shortcode_fe_type';
|
1934 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
1935 |
+
__('shortcode', 'wp-photo-album-plus' ),
|
1936 |
+
__('html', 'wp-photo-album-plus' ),
|
1937 |
+
__('img tag', 'wp-photo-album-plus' ),
|
1938 |
);
|
1939 |
$vals = array( '-none-',
|
1940 |
'shortcode',
|
1944 |
$html = wppa_select($slug, $opts, $vals);
|
1945 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
1946 |
|
1947 |
+
$name = __('Albums', 'wp-photo-album-plus' );
|
1948 |
+
$desc = __('Select album(s) for random photo', 'wp-photo-album-plus' );
|
1949 |
+
$help = __( 'The albums to be used for the selection of a random photo for shortcode: [photo random]', 'wp-photo-album-plus' );
|
1950 |
$slug = 'wppa_photo_shortcode_random_albums';
|
1951 |
if ( wppa_has_many_albums() ) {
|
1952 |
$html = wppa_input( $slug, '220', __('Enter album ids separated by commas','wp-photo-album-plus' ) );
|
1967 |
}
|
1968 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
1969 |
|
1970 |
+
$name = __('Select photo once', 'wp-photo-album-plus' );
|
1971 |
+
$desc = __('The same random photo on every pageload', 'wp-photo-album-plus' );
|
1972 |
+
$help = __('If ticked: the random photo is determined once at page/post creation time', 'wp-photo-album-plus' );
|
1973 |
+
$help .= '<br>'.__('If unticked: every pageload a different photo', 'wp-photo-album-plus' );
|
1974 |
$slug = 'wppa_photo_shortcode_random_fixed';
|
1975 |
$html = wppa_checkbox($slug);
|
1976 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
1977 |
|
1978 |
+
$name = __('Render photo once', 'wp-photo-album-plus' );
|
1979 |
+
$desc = __('Replace shortcode by html', 'wp-photo-album-plus' );
|
1980 |
+
$help = __('Do not replace \'random\' by a number, but by the corresponding html', 'wp-photo-album-plus' ) . '<br>';
|
1981 |
+
$help .= __('WARNING: changes in [photo] shortcode afterwards do no longer have any effect!', 'wp-photo-album-plus' );
|
1982 |
$slug = 'wppa_photo_shortcode_random_fixed_html';
|
1983 |
$html = wppa_checkbox($slug);
|
1984 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
2072 |
id="wppa_potd_album"
|
2073 |
name="wppa_potd_album"
|
2074 |
style="float:left; max-width: 400px; height: auto !important;"
|
2075 |
+
multiple
|
2076 |
onchange="didsome=true;wppaAjaxUpdateOptionValue(\'potd_album\', this, true)"
|
2077 |
onmouseout="if(didsome)document.location.reload(true);"
|
2078 |
size="10"
|
2226 |
}
|
2227 |
$vals = $opts;
|
2228 |
$html = '<span style="float:left;" >' .
|
2229 |
+
sprintf( __('Current day# = %s, offset =', 'wp-photo-album-plus' ), wppa_local_date( $date_key ) ) .
|
2230 |
'</span> ' .
|
2231 |
wppa_select( $slug, $opts, $vals, 'wppaRefreshAfter();' );
|
2232 |
|
2265 |
<div style="display:inline-block;width:75%;text-align:center;vertical-align:middle;" >' .
|
2266 |
__( 'Album', 'wp-photo-album-plus' ) . ': ' . htmlspecialchars( wppa_get_album_name( $photo['album'] ) ) . '
|
2267 |
<br>' .
|
2268 |
+
__('Uploader', 'wp-photo-album-plus' ) . ': ' . htmlspecialchars( $photo['owner'] ) . '
|
2269 |
</div>';
|
2270 |
}
|
2271 |
else {
|
2445 |
wppa_setting_tab_description($desc);
|
2446 |
wppa_setting_box_header_new($tab);
|
2447 |
|
2448 |
+
$name = __('Thumbnail Size', 'wp-photo-album-plus' );
|
2449 |
+
$desc = __('The size of the thumbnail images.', 'wp-photo-album-plus' );
|
2450 |
+
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus' );
|
2451 |
+
$help .= '<br>'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
2452 |
$slug = 'wppa_thumbsize';
|
2453 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
2454 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2455 |
|
2456 |
+
$name = __('Thumbnail Size Alt', 'wp-photo-album-plus' );
|
2457 |
+
$desc = __('The alternative size of the thumbnail images.', 'wp-photo-album-plus' );
|
2458 |
+
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus' );
|
2459 |
+
$help .= '<br>'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
2460 |
$slug = 'wppa_thumbsize_alt';
|
2461 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
2462 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2463 |
|
2464 |
+
$name = __('Thumbnail Aspect', 'wp-photo-album-plus' );
|
2465 |
+
$desc = __('Aspect ration of thumbnail image', 'wp-photo-album-plus' );
|
2466 |
$help = '';
|
2467 |
$slug = 'wppa_thumb_aspect';
|
2468 |
$opts = array(
|
2469 |
+
__('--- same as fullsize ---', 'wp-photo-album-plus' ),
|
2470 |
+
__('--- square clipped ---', 'wp-photo-album-plus' ),
|
2471 |
+
__('4:5 landscape clipped', 'wp-photo-album-plus' ),
|
2472 |
+
__('3:4 landscape clipped', 'wp-photo-album-plus' ),
|
2473 |
+
__('2:3 landscape clipped', 'wp-photo-album-plus' ),
|
2474 |
+
__('5:8 landscape clipped', 'wp-photo-album-plus' ),
|
2475 |
+
__('9:16 landscape clipped', 'wp-photo-album-plus' ),
|
2476 |
+
__('1:2 landscape clipped', 'wp-photo-album-plus' ),
|
2477 |
+
__('--- square padded ---', 'wp-photo-album-plus' ),
|
2478 |
+
__('4:5 landscape padded', 'wp-photo-album-plus' ),
|
2479 |
+
__('3:4 landscape padded', 'wp-photo-album-plus' ),
|
2480 |
+
__('2:3 landscape padded', 'wp-photo-album-plus' ),
|
2481 |
+
__('5:8 landscape padded', 'wp-photo-album-plus' ),
|
2482 |
+
__('9:16 landscape padded', 'wp-photo-album-plus' ),
|
2483 |
+
__('1:2 landscape padded', 'wp-photo-album-plus' )
|
2484 |
);
|
2485 |
$vals = array(
|
2486 |
'0:0:none',
|
2502 |
$html = wppa_select($slug, $opts, $vals);
|
2503 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2504 |
|
2505 |
+
$name = __('Thumbnail padding', 'wp-photo-album-plus' );
|
2506 |
+
$desc = __('Thumbnail padding color if thumbnail aspect is a padded setting.', 'wp-photo-album-plus' );
|
2507 |
+
$help = __('Enter valid CSS color hexadecimal like #000000 for black or #ffffff for white for the padded thumbnails.', 'wp-photo-album-plus' );
|
2508 |
$slug = 'wppa_bgcolor_thumbnail';
|
2509 |
$html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
|
2510 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2511 |
|
2512 |
+
$name = __('Thumbframe width', 'wp-photo-album-plus' );
|
2513 |
+
$desc = __('The width of the thumbnail frame.', 'wp-photo-album-plus' );
|
2514 |
+
$help = __('Set the width of the thumbnail frame.', 'wp-photo-album-plus' );
|
2515 |
+
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus' );
|
2516 |
+
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus' );
|
2517 |
$slug = 'wppa_tf_width';
|
2518 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus' ));
|
2519 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2520 |
|
2521 |
+
$name = __('Thumbframe width Alt', 'wp-photo-album-plus' );
|
2522 |
+
$desc = __('The width of the alternative thumbnail frame.', 'wp-photo-album-plus' );
|
2523 |
+
$help = __('Set the width of the thumbnail frame.', 'wp-photo-album-plus' );
|
2524 |
+
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus' );
|
2525 |
+
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus' );
|
2526 |
$slug = 'wppa_tf_width_alt';
|
2527 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus' ));
|
2528 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2529 |
|
2530 |
+
$name = __('Thumbframe height', 'wp-photo-album-plus' );
|
2531 |
+
$desc = __('The height of the thumbnail frame.', 'wp-photo-album-plus' );
|
2532 |
+
$help = __('Set the height of the thumbnail frame.', 'wp-photo-album-plus' );
|
2533 |
+
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus' );
|
2534 |
+
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus' );
|
2535 |
$slug = 'wppa_tf_height';
|
2536 |
+
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus' ));
|
2537 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
2538 |
|
2539 |
+
$name = __('Thumbframe height Alt', 'wp-photo-album-plus' );
|
2540 |
+
$desc = __('The height of the alternative thumbnail frame.', 'wp-photo-album-plus' );
|
2541 |
+
$help = __('Set the height of the thumbnail frame.', 'wp-photo-album-plus' );
|
2542 |
+
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus' );
|
2543 |
+
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus' );
|
2544 |
$slug = 'wppa_tf_height_alt';
|
2545 |
+
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus' ));
|
2546 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
2547 |
|
2548 |
+
$name = __('Thumbnail spacing', 'wp-photo-album-plus' );
|
2549 |
+
$desc = __('The spacing between adjacent thumbnail frames.', 'wp-photo-album-plus' );
|
2550 |
+
$help = __('Set the minimal spacing between the adjacent thumbnail frames', 'wp-photo-album-plus' );
|
2551 |
+
$help .= '<br>'.__('Set width, height and spacing for the thumbnail frames.', 'wp-photo-album-plus' );
|
2552 |
+
$help .= '<br>'.__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wp-photo-album-plus' );
|
2553 |
$slug = 'wppa_tn_margin';
|
2554 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
2555 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
2556 |
|
2557 |
+
$name = __('Auto spacing', 'wp-photo-album-plus' );
|
2558 |
+
$desc = __('Space the thumbnail frames automatic.', 'wp-photo-album-plus' );
|
2559 |
+
$help = __('If you check this box, the thumbnail images will be evenly distributed over the available width.', 'wp-photo-album-plus' );
|
2560 |
+
$help .= '<br>'.__('In this case, the thumbnail spacing value (setting I-9) will be regarded as a minimum value.', 'wp-photo-album-plus' );
|
2561 |
$slug = 'wppa_thumb_auto';
|
2562 |
$html = wppa_checkbox($slug);
|
2563 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
2564 |
|
2565 |
+
$name = __('Page size', 'wp-photo-album-plus' );
|
2566 |
+
$desc = __('Max number of thumbnails per page.', 'wp-photo-album-plus' );
|
2567 |
+
$help = __('Enter the maximum number of thumbnail images per page. A value of 0 indicates no pagination.', 'wp-photo-album-plus' );
|
2568 |
$slug = 'wppa_thumb_page_size';
|
2569 |
+
$html = wppa_input($slug, '40px', '', __('thumbnails', 'wp-photo-album-plus' ));
|
2570 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
2571 |
|
2572 |
+
$name = __('Popup size', 'wp-photo-album-plus' );
|
2573 |
+
$desc = __('The size of the thumbnail popup images.', 'wp-photo-album-plus' );
|
2574 |
+
$help = __('Enter the size of the popup images. This size should be larger than the thumbnail size.', 'wp-photo-album-plus' );
|
2575 |
+
$help .= '<br>'.__('This size should also be at least the cover image size.', 'wp-photo-album-plus' );
|
2576 |
+
$help .= '<br>'.__('Changing the popup size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
2577 |
+
$help .= '<br>'.__('Although this setting has only visual effect if "Thumb popup" (<b>Thumbnails -> III -> Thumb popup</b>) is checked,', 'wp-photo-album-plus' );
|
2578 |
+
$help .= ' '.__('the value must be right as it is the physical size of the thumbnail and coverphoto images.', 'wp-photo-album-plus' );
|
2579 |
$slug = 'wppa_popupsize';
|
2580 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
2581 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
2582 |
|
2583 |
+
$name = __('Use thumbs if fit', 'wp-photo-album-plus' );
|
2584 |
+
$desc = __('Use the thumbnail image files if they are large enough.', 'wp-photo-album-plus' );
|
2585 |
+
$help = __('This setting speeds up page loading for small photos.', 'wp-photo-album-plus' );
|
2586 |
+
$help .= '<br>'.__('Do NOT use this when your thumbnails have a forced aspect ratio (when <b>Thumbnails -> I -> Thumbnail Aspect</b> is set to anything different from --- same as fullsize ---)', 'wp-photo-album-plus' );
|
2587 |
$slug = 'wppa_use_thumbs_if_fit';
|
2588 |
$html = wppa_checkbox($slug);
|
2589 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
2605 |
wppa_setting_tab_description($desc);
|
2606 |
wppa_setting_box_header_new($tab);
|
2607 |
|
2608 |
+
$name = __('Thumbnail name', 'wp-photo-album-plus' );
|
2609 |
+
$desc = __('Display Thumbnail name.', 'wp-photo-album-plus' );
|
2610 |
+
$help = __('Display photo name under thumbnail images.', 'wp-photo-album-plus' );
|
2611 |
$slug = 'wppa_thumb_text_name';
|
2612 |
$html = wppa_checkbox($slug);
|
2613 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2614 |
|
2615 |
+
$name = __('Add (Owner)', 'wp-photo-album-plus' );
|
2616 |
+
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus' );
|
2617 |
$help = '';
|
2618 |
$slug = 'wppa_thumb_text_owner';
|
2619 |
$html = wppa_checkbox($slug);
|
2620 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2621 |
|
2622 |
+
$name = __('Thumbnail desc', 'wp-photo-album-plus' );
|
2623 |
+
$desc = __('Display Thumbnail description.', 'wp-photo-album-plus' );
|
2624 |
+
$help = __('Display description of the photo under thumbnail images.', 'wp-photo-album-plus' );
|
2625 |
$slug = 'wppa_thumb_text_desc';
|
2626 |
$html = wppa_checkbox($slug);
|
2627 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2628 |
|
2629 |
+
$name = __('Thumbnail comcount', 'wp-photo-album-plus' );
|
2630 |
+
$desc = __('Display Thumbnail Comment count.', 'wp-photo-album-plus' );
|
2631 |
+
$help = __('Display the number of comments to the photo under the thumbnail image.', 'wp-photo-album-plus' );
|
2632 |
$slug = 'wppa_thumb_text_comcount';
|
2633 |
$slug2 = 'wppa_thumb_text_comcount_note_role';
|
2634 |
$roles = $wp_roles->roles;
|
2635 |
$opts = array();
|
2636 |
$vals = array();
|
2637 |
+
$opts[] = '-- '.__('Select a role', 'wp-photo-album-plus' ).' --';
|
2638 |
$vals[] = '';
|
2639 |
foreach (array_keys($roles) as $key) {
|
2640 |
$role = $roles[$key];
|
2647 |
wppa_select($slug2, $opts, $vals);
|
2648 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2649 |
|
2650 |
+
$name = __('Thumbnail viewcount', 'wp-photo-album-plus' );
|
2651 |
+
$desc = __('Display the number of views.', 'wp-photo-album-plus' );
|
2652 |
+
$help = __('Display the number of views under the thumbnail image.', 'wp-photo-album-plus' );
|
2653 |
$slug = 'wppa_thumb_text_viewcount';
|
2654 |
$html = wppa_checkbox($slug);
|
2655 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2656 |
|
2657 |
+
$name = __('Thumbnail virt album', 'wp-photo-album-plus' );
|
2658 |
+
$desc = __('Display the real album name on virtual album display.', 'wp-photo-album-plus' );
|
2659 |
+
$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' );
|
2660 |
$slug = 'wppa_thumb_text_virt_album';
|
2661 |
$html = wppa_checkbox($slug);
|
2662 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2663 |
|
2664 |
+
$name = __('Thumbnail video', 'wp-photo-album-plus' );
|
2665 |
+
$desc = __('Show video controls on thumbnail displays.', 'wp-photo-album-plus' );
|
2666 |
+
$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' );
|
2667 |
$slug = 'wppa_thumb_video';
|
2668 |
$html = wppa_checkbox($slug);
|
2669 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
2670 |
|
2671 |
+
$name = __('Thumbnail audio', 'wp-photo-album-plus' );
|
2672 |
+
$desc = __('Show audio controls on thumbnail displays.', 'wp-photo-album-plus' );
|
2673 |
$help = '';
|
2674 |
$slug = 'wppa_thumb_audio';
|
2675 |
$html = wppa_checkbox($slug);
|
2677 |
|
2678 |
if ( wppa_switch( 'use_thumb_popup' ) ) {
|
2679 |
|
2680 |
+
$name = __('Popup name', 'wp-photo-album-plus' );
|
2681 |
+
$desc = __('Display Thumbnail name on popup.', 'wp-photo-album-plus' );
|
2682 |
+
$help = __('Display photo name under thumbnail images on the popup.', 'wp-photo-album-plus' );
|
2683 |
$slug = 'wppa_popup_text_name';
|
2684 |
$html = wppa_checkbox($slug);
|
2685 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
2686 |
|
2687 |
+
$name = __('Popup (owner)', 'wp-photo-album-plus' );
|
2688 |
+
$desc = __('Display owner on popup.', 'wp-photo-album-plus' );
|
2689 |
+
$help = __('Display photo owner under thumbnail images on the popup.', 'wp-photo-album-plus' );
|
2690 |
$slug = 'wppa_popup_text_owner';
|
2691 |
$html = wppa_checkbox($slug);
|
2692 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
2693 |
|
2694 |
+
$name = __('Popup desc', 'wp-photo-album-plus' );
|
2695 |
+
$desc = __('Display Thumbnail description on popup.', 'wp-photo-album-plus' );
|
2696 |
+
$help = __('Display description of the photo under thumbnail images on the popup.', 'wp-photo-album-plus' );
|
2697 |
$slug = 'wppa_popup_text_desc';
|
2698 |
$html = wppa_checkbox($slug);
|
2699 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
2700 |
|
2701 |
+
$name = __('Popup desc no links', 'wp-photo-album-plus' );
|
2702 |
+
$desc = __('Strip html anchor tags from descriptions on popups', 'wp-photo-album-plus' );
|
2703 |
+
$help = __('Use this option to prevent the display of links that cannot be activated.', 'wp-photo-album-plus' );
|
2704 |
$slug = 'wppa_popup_text_desc_strip';
|
2705 |
$html = wppa_checkbox($slug);
|
2706 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
2707 |
|
2708 |
+
$name = __('Popup rating', 'wp-photo-album-plus' );
|
2709 |
+
$desc = __('Display Thumbnail Rating on popup.', 'wp-photo-album-plus' );
|
2710 |
+
$help = __('Display the rating of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus' );
|
2711 |
$slug = 'wppa_popup_text_rating';
|
2712 |
$html = wppa_checkbox($slug);
|
2713 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help, wppa_switch('rating_on'));
|
2714 |
|
2715 |
+
$name = __('Popup comcount', 'wp-photo-album-plus' );
|
2716 |
+
$desc = __('Display Thumbnail Comment count on popup.', 'wp-photo-album-plus' );
|
2717 |
+
$help = __('Display the number of comments of the photo under the thumbnail image on the popup.', 'wp-photo-album-plus' );
|
2718 |
$slug = 'wppa_popup_text_ncomments';
|
2719 |
$html = wppa_checkbox($slug);
|
2720 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_switch('show_comments'));
|
2721 |
}
|
2722 |
|
2723 |
+
$name = __('Show album name on thumb area', 'wp-photo-album-plus' );
|
2724 |
+
$desc = __('Select if and where to display the album name on the thumbnail display.', 'wp-photo-album-plus' );
|
2725 |
$help = '';
|
2726 |
$slug = 'wppa_albname_on_thumbarea';
|
2727 |
+
$opts = array(__('None', 'wp-photo-album-plus' ), __('At the top', 'wp-photo-album-plus' ), __('At the bottom', 'wp-photo-album-plus' ));
|
2728 |
$vals = array('none', 'top', 'bottom');
|
2729 |
$html = wppa_select($slug, $opts, $vals);
|
2730 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
2731 |
|
2732 |
+
$name = __('Show album desc on thumb area', 'wp-photo-album-plus' );
|
2733 |
+
$desc = __('Select if and where to display the album description on the thumbnail display.', 'wp-photo-album-plus' );
|
2734 |
$help = '';
|
2735 |
$slug = 'wppa_albdesc_on_thumbarea';
|
2736 |
+
$opts = array(__('None', 'wp-photo-album-plus' ), __('At the top', 'wp-photo-album-plus' ), __('At the bottom', 'wp-photo-album-plus' ));
|
2737 |
$vals = array('none', 'top', 'bottom');
|
2738 |
$html = wppa_select($slug, $opts, $vals);
|
2739 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
2740 |
|
2741 |
+
$name = __('Show Edit/Delete links', 'wp-photo-album-plus' );
|
2742 |
+
$desc = __('Show these links under default thumbnails for owner and admin.', 'wp-photo-album-plus' );
|
2743 |
$help = '';
|
2744 |
$slug = 'wppa_edit_thumb';
|
2745 |
$html = wppa_checkbox($slug);
|
2746 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
2747 |
|
2748 |
+
$name = __('Show empty thumbnail area', 'wp-photo-album-plus' );
|
2749 |
+
$desc = __('Display thumbnail areas with upload link only for empty albums.', 'wp-photo-album-plus' );
|
2750 |
$help = '';
|
2751 |
$slug = 'wppa_show_empty_thumblist';
|
2752 |
$html = wppa_checkbox($slug);
|
2753 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
2754 |
|
2755 |
+
$name = __('Upload/create link on thumbnail area', 'wp-photo-album-plus' );
|
2756 |
+
$desc = __('Select the location of the upload and crete links.', 'wp-photo-album-plus' );
|
2757 |
$help = '';
|
2758 |
$slug = 'wppa_upload_link_thumbs';
|
2759 |
+
$opts = array(__('None', 'wp-photo-album-plus' ), __('At the top', 'wp-photo-album-plus' ), __('At the bottom', 'wp-photo-album-plus' ));
|
2760 |
$vals = array('none', 'top', 'bottom');
|
2761 |
$html = wppa_select($slug, $opts, $vals);
|
2762 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
2769 |
wppa_setting_tab_description($desc);
|
2770 |
wppa_setting_box_header_new($tab);
|
2771 |
|
2772 |
+
$name = __('Thumbnail type', 'wp-photo-album-plus' );
|
2773 |
+
$desc = __('The way the thumbnail images are displayed.', 'wp-photo-album-plus' );
|
2774 |
+
$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' );
|
2775 |
$slug = 'wppa_thumbtype';
|
2776 |
+
$opts = array( __('--- default ---', 'wp-photo-album-plus' ),
|
2777 |
+
__('like album covers', 'wp-photo-album-plus' ),
|
2778 |
+
__('like album covers mcr', 'wp-photo-album-plus' ),
|
2779 |
+
__('masonry style columns', 'wp-photo-album-plus' ),
|
2780 |
+
__('masonry style rows', 'wp-photo-album-plus' ),
|
2781 |
+
__('masonry style plus', 'wp-photo-album-plus' ),
|
2782 |
+
__('masonry style mixed', 'wp-photo-album-plus' ),
|
2783 |
);
|
2784 |
$vals = array( 'default',
|
2785 |
'ascovers',
|
2792 |
$html = wppa_select($slug, $opts, $vals);
|
2793 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2794 |
|
2795 |
+
$name = __('Placement', 'wp-photo-album-plus' );
|
2796 |
+
$desc = __('Thumbnail image left or right.', 'wp-photo-album-plus' );
|
2797 |
+
$help = __('Indicate the placement position of the thumbnailphoto you wish.', 'wp-photo-album-plus' );
|
2798 |
$slug = 'wppa_thumbphoto_left';
|
2799 |
+
$opts = array(__('Left', 'wp-photo-album-plus' ), __('Right', 'wp-photo-album-plus' ));
|
2800 |
$vals = array('yes', 'no');
|
2801 |
$html = wppa_select($slug, $opts, $vals);
|
2802 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2803 |
|
2804 |
+
$name = __('Vertical alignment', 'wp-photo-album-plus' );
|
2805 |
+
$desc = __('Vertical alignment of thumbnails.', 'wp-photo-album-plus' );
|
2806 |
+
$help = __('Specify the vertical alignment of thumbnail images. Use this setting when albums contain both portrait and landscape photos.', 'wp-photo-album-plus' );
|
2807 |
+
$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' );
|
2808 |
$slug = 'wppa_valign';
|
2809 |
+
$opts = array( __('--- default ---', 'wp-photo-album-plus' ), __('top', 'wp-photo-album-plus' ), __('center', 'wp-photo-album-plus' ), __('bottom', 'wp-photo-album-plus' ));
|
2810 |
$vals = array('default', 'top', 'center', 'bottom');
|
2811 |
$html = wppa_select($slug, $opts, $vals);
|
2812 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2813 |
|
2814 |
+
$name = __('Thumb mouseover', 'wp-photo-album-plus' );
|
2815 |
+
$desc = __('Apply thumbnail mouseover effect.', 'wp-photo-album-plus' );
|
2816 |
+
$help = __('Check this box to use mouseover effect on thumbnail images.', 'wp-photo-album-plus' );
|
2817 |
$slug = 'wppa_use_thumb_opacity';
|
2818 |
$html = wppa_checkbox($slug);
|
2819 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2820 |
|
2821 |
+
$name = __('Thumb opacity', 'wp-photo-album-plus' );
|
2822 |
+
$desc = __('Initial opacity value.', 'wp-photo-album-plus' );
|
2823 |
+
$help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus' );
|
2824 |
$slug = 'wppa_thumb_opacity';
|
2825 |
$html = wppa_input($slug, '50px', '', '%');
|
2826 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2827 |
|
2828 |
+
$name = __('Thumb popup', 'wp-photo-album-plus' );
|
2829 |
+
$desc = __('Use popup effect on thumbnail images.', 'wp-photo-album-plus' );
|
2830 |
+
$help = __('Thumbnails pop-up to a larger image when hovered.', 'wp-photo-album-plus' );
|
2831 |
$slug = 'wppa_use_thumb_popup';
|
2832 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
2833 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2834 |
|
2835 |
+
$name = __('Align subtext', 'wp-photo-album-plus' );
|
2836 |
+
$desc = __('Set thumbnail subtext on equal height.', 'wp-photo-album-plus' );
|
2837 |
$help = '';
|
2838 |
$slug = 'wppa_align_thumbtext';
|
2839 |
$html = wppa_checkbox($slug);
|
2840 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
2841 |
|
2842 |
+
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus' );
|
2843 |
+
$desc = __('Adds <br> or <p> and <br> tags in thumbnail descriptions.', 'wp-photo-album-plus' );
|
2844 |
$help = '';
|
2845 |
$slug = 'wppa_wpautop_on_thumb_desc';
|
2846 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
2847 |
+
__('Linebreaks only', 'wp-photo-album-plus' ),
|
2848 |
+
__('Linebreaks and paragraphs', 'wp-photo-album-plus' ),
|
2849 |
);
|
2850 |
$vals = array('nil', 'nl2br', 'wpautop');
|
2851 |
$html = wppa_select($slug, $opts, $vals);
|
2852 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
2853 |
|
2854 |
+
$name = __('Popup easing formula', 'wp-photo-album-plus' );
|
2855 |
+
$desc = __('The animation method', 'wp-photo-album-plus' );
|
2856 |
$help = '';
|
2857 |
$slug = 'wppa_easing_popup';
|
2858 |
$opts = array( 'swing', 'linear', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInQuad',
|
2878 |
wppa_setting_tab_description($desc);
|
2879 |
wppa_setting_box_header_new($tab);
|
2880 |
|
2881 |
+
$name = __('Maximum Width', 'wp-photo-album-plus' );
|
2882 |
+
$desc = __('The maximum width photos will be displayed in slideshows.', 'wp-photo-album-plus' );
|
2883 |
+
$help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus' );
|
2884 |
+
$help .= '<br>'.__('This is usually the same as the Column Width, but it may differ.', 'wp-photo-album-plus' );
|
2885 |
$help .= '<br>'.wppa_see_also( 'layout', '1', '5' );
|
2886 |
$slug = 'wppa_fullsize';
|
2887 |
+
$html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus' ));
|
2888 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
2889 |
|
2890 |
+
$name = __('Maximum Height', 'wp-photo-album-plus' );
|
2891 |
+
$desc = __('The maximum height photos will be displayed in slideshows.', 'wp-photo-album-plus' );
|
2892 |
+
$help = __('Enter the largest size in pixels as how you want your photos to be displayed.', 'wp-photo-album-plus' );
|
2893 |
+
$help .= '<br>'.__('This setting defines the height of the space reserved for photos in slideshows.', 'wp-photo-album-plus' );
|
2894 |
+
$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' );
|
2895 |
$slug = 'wppa_maxheight';
|
2896 |
+
$html = wppa_input($slug, '40px', '', __('pixels high', 'wp-photo-album-plus' ));
|
2897 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
2898 |
|
2899 |
+
$name = __('Stretch to fit', 'wp-photo-album-plus' );
|
2900 |
+
$desc = __('Stretch photos that are too small.', 'wp-photo-album-plus' );
|
2901 |
+
$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' );
|
2902 |
$slug = 'wppa_enlarge';
|
2903 |
$html = wppa_checkbox($slug);
|
2904 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
2905 |
|
2906 |
+
$name = __('Slideshow borderwidth', 'wp-photo-album-plus' );
|
2907 |
+
$desc = __('The width of the border around slideshow images.', 'wp-photo-album-plus' );
|
2908 |
+
$help = __('The border is made by the image background being larger than the image itsself (padding).', 'wp-photo-album-plus' );
|
2909 |
+
$help .= '<br>'.__('Additionally there may be a one pixel outline of a different color.', 'wp-photo-album-plus' );
|
2910 |
+
$help .= '<br>'.__('The number you enter here is exclusive the one pixel outline.', 'wp-photo-album-plus' );
|
2911 |
+
$help .= '<br>'.__('If you leave this entry empty, there will be no outline either.', 'wp-photo-album-plus' );
|
2912 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '35' );
|
2913 |
$slug = 'wppa_fullimage_border_width';
|
2914 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
2915 |
$clas = '';
|
2916 |
$tags = 'size,slide,layout';
|
2917 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
2918 |
|
2919 |
+
$name = __('Share button size', 'wp-photo-album-plus' );
|
2920 |
+
$desc = __('The size of the social media icons in the Share box', 'wp-photo-album-plus' );
|
2921 |
$help = '';
|
2922 |
$slug = 'wppa_share_size';
|
2923 |
$opts = array('16 x 16', '20 x 20', '32 x 32');
|
2924 |
$vals = array('16', '20', '32');
|
2925 |
+
$html = wppa_select($slug, $opts, $vals) . __('pixels', 'wp-photo-album-plus' );
|
2926 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
2927 |
|
2928 |
+
$name = __('Mini Threshold', 'wp-photo-album-plus' );
|
2929 |
+
$desc = __('Show mini text at slideshow smaller than.', 'wp-photo-album-plus' );
|
2930 |
+
$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' );
|
2931 |
+
$help .= '<br>'.__('Special use in responsive themes.', 'wp-photo-album-plus' );
|
2932 |
$slug = 'wppa_mini_treshold';
|
2933 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
2934 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
2935 |
|
2936 |
+
$name = __('Slideshow pagesize', 'wp-photo-album-plus' );
|
2937 |
+
$desc = __('The maximum number of slides in a certain view. 0 means no pagination', 'wp-photo-album-plus' );
|
2938 |
$help = '';
|
2939 |
$slug = 'wppa_slideshow_pagesize';
|
2940 |
+
$html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus' ));
|
2941 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
2942 |
|
2943 |
+
$name = __('Filmstrip Thumbnail Size', 'wp-photo-album-plus' );
|
2944 |
+
$desc = __('The size of the filmstrip images.', 'wp-photo-album-plus' );
|
2945 |
+
$help = __('This size applies to the width or height, whichever is the largest.', 'wp-photo-album-plus' );
|
2946 |
+
$help .= '<br>'.__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wp-photo-album-plus' );
|
2947 |
$slug = 'wppa_film_thumbsize';
|
2948 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
2949 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
2950 |
|
2951 |
+
$name = __('Slideonly max', 'wp-photo-album-plus' );
|
2952 |
+
$desc = __('The max number of slides in a slideonly or filmonly display', 'wp-photo-album-plus' );
|
2953 |
$help = '';
|
2954 |
$slug = 'wppa_slideonly_max';
|
2955 |
+
$html = wppa_input($slug, '40px', '', __('slides', 'wp-photo-album-plus' ));
|
2956 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
2957 |
|
2958 |
+
$name = __('Show Share Box', 'wp-photo-album-plus' );
|
2959 |
+
$desc = __('Display the share social media buttons box.', 'wp-photo-album-plus' );
|
2960 |
$help = '';
|
2961 |
$slug = 'wppa_share_on';
|
2962 |
$onch = '';
|
2963 |
$html = wppa_checkbox($slug);
|
2964 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
2965 |
|
2966 |
+
$name = __('Start/stop', 'wp-photo-album-plus' );
|
2967 |
+
$desc = __('Show the Start/Stop slideshow bar.', 'wp-photo-album-plus' );
|
2968 |
+
$help = __('If checked: display the start/stop slideshow navigation bar above the full-size images and slideshow', 'wp-photo-album-plus' );
|
2969 |
$slug = 'wppa_show_startstop_navigation';
|
2970 |
$html = wppa_checkbox($slug);
|
2971 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
2972 |
|
2973 |
$name = __('Start/stop on Filmonly');
|
2974 |
+
$desc = __('Show the Start/Stop slideshow bar on filmonly displays.', 'wp-photo-album-plus' );
|
2975 |
$help = '';
|
2976 |
$slug = 'wppa_show_startstop_filmonly';
|
2977 |
$html = wppa_checkbox($slug);
|
2978 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
2979 |
|
2980 |
+
$name = __('Renew on Filmonly', 'wp-photo-album-plus' );
|
2981 |
+
$desc = __('Show renew link on filmonly displays.', 'wp-photo-album-plus' );
|
2982 |
$help = '';
|
2983 |
$slug = 'wppa_show_renew_filmonly';
|
2984 |
$html = wppa_checkbox($slug);
|
2985 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
2986 |
|
2987 |
+
$name = __('Browse bar', 'wp-photo-album-plus' );
|
2988 |
+
$desc = __('Show Browse photos bar.', 'wp-photo-album-plus' );
|
2989 |
+
$help = __('If checked: display the preveous/next navigation bar under the full-size images and slideshow', 'wp-photo-album-plus' );
|
2990 |
$slug = 'wppa_show_browse_navigation';
|
2991 |
$html = wppa_checkbox($slug);
|
2992 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
2993 |
|
2994 |
+
$name = __('Filmstrip', 'wp-photo-album-plus' );
|
2995 |
+
$desc = __('Show Filmstrip navigation bar.', 'wp-photo-album-plus' );
|
2996 |
+
$help = __('If checked: display the filmstrip navigation bar under the full_size images and slideshow', 'wp-photo-album-plus' );
|
2997 |
$slug = 'wppa_filmstrip';
|
2998 |
$html = wppa_checkbox($slug);
|
2999 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
3000 |
|
3001 |
+
$name = __('Film seam', 'wp-photo-album-plus' );
|
3002 |
+
$desc = __('Show seam between end and start of film.', 'wp-photo-album-plus' );
|
3003 |
+
$help = __('If checked: display the wrap-around point in the filmstrip', 'wp-photo-album-plus' );
|
3004 |
$slug = 'wppa_film_show_glue';
|
3005 |
$html = wppa_checkbox($slug);
|
3006 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
3007 |
|
3008 |
+
$name = __('Photo name', 'wp-photo-album-plus' );
|
3009 |
+
$desc = __('Display photo name.', 'wp-photo-album-plus' );
|
3010 |
+
$help = __('If checked: display the name of the photo under the slideshow image.', 'wp-photo-album-plus' );
|
3011 |
$slug = 'wppa_show_full_name';
|
3012 |
$html = wppa_checkbox($slug);
|
3013 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
3014 |
|
3015 |
+
$name = __('Add (Owner)', 'wp-photo-album-plus' );
|
3016 |
+
$desc = __('Add the uploaders display name in parenthesis to the name.', 'wp-photo-album-plus' );
|
3017 |
$help = '';
|
3018 |
$slug = 'wppa_show_full_owner';
|
3019 |
$html = wppa_checkbox($slug);
|
3020 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
3021 |
|
3022 |
+
$name = __('Owner on new line', 'wp-photo-album-plus' );
|
3023 |
+
$desc = __('Place the (owner) text on a new line.', 'wp-photo-album-plus' );
|
3024 |
$help = '';
|
3025 |
$slug = 'wppa_owner_on_new_line';
|
3026 |
$html = wppa_checkbox($slug);
|
3027 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
3028 |
|
3029 |
+
$name = __('Photo desc', 'wp-photo-album-plus' );
|
3030 |
+
$desc = __('Display Photo description.', 'wp-photo-album-plus' );
|
3031 |
+
$help = __('If checked: display the description of the photo under the slideshow image.', 'wp-photo-album-plus' );
|
3032 |
$slug = 'wppa_show_full_desc';
|
3033 |
$html = wppa_checkbox($slug);
|
3034 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
3035 |
|
3036 |
+
$name = __('Hide when empty', 'wp-photo-album-plus' );
|
3037 |
+
$desc = __('Hide the descriptionbox when empty.', 'wp-photo-album-plus' );
|
3038 |
$help = '';
|
3039 |
$slug = 'wppa_hide_when_empty';
|
3040 |
$html = wppa_checkbox($slug);
|
3041 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
3042 |
|
3043 |
+
$name = __('Big Browse Buttons', 'wp-photo-album-plus' );
|
3044 |
+
$desc = __('Enable invisible browsing buttons.', 'wp-photo-album-plus' );
|
3045 |
+
$help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus' );
|
3046 |
+
$help .= '<br>'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus' );
|
3047 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '2' );
|
3048 |
$slug = 'wppa_show_bbb';
|
3049 |
$html = wppa_checkbox($slug);
|
3050 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
3051 |
|
3052 |
+
$name = __('Ugly Browse Buttons', 'wp-photo-album-plus' );
|
3053 |
+
$desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus' );
|
3054 |
+
$help = __('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus' );
|
3055 |
$slug = 'wppa_show_ubb';
|
3056 |
$html = wppa_checkbox($slug);
|
3057 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
3058 |
|
3059 |
+
$name = __('Start/stop icons', 'wp-photo-album-plus' );
|
3060 |
+
$desc = __('Show start and stop icons at the center of the slide', 'wp-photo-album-plus' );
|
3061 |
$help = '';
|
3062 |
$slug = 'wppa_show_start_stop_icons';
|
3063 |
$html = wppa_checkbox($slug);
|
3064 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
3065 |
|
3066 |
+
$name = __('Show custom box', 'wp-photo-album-plus' );
|
3067 |
+
$desc = __('Display the custom box in the slideshow', 'wp-photo-album-plus' );
|
3068 |
+
$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' );
|
3069 |
$help .= '<br>'.wppa_see_also( 'slide', '2' );
|
3070 |
$slug = 'wppa_custom_on';
|
3071 |
$html = wppa_checkbox($slug);
|
3072 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
3073 |
|
3074 |
+
$name = __('Custom content', 'wp-photo-album-plus' );
|
3075 |
+
$desc = __('The content (html) of the custom box.', 'wp-photo-album-plus' );
|
3076 |
+
$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' );
|
3077 |
$help .= '<br>'.wppa_see_also( 'slide', '2' );
|
3078 |
$slug = 'wppa_custom_content';
|
3079 |
$html = wppa_textarea($slug, $name);
|
3080 |
wppa_setting_new(false, '26', $name, $desc, $html, $help);
|
3081 |
|
3082 |
+
$name = __('Slideshow/Number bar', 'wp-photo-album-plus' );
|
3083 |
+
$desc = __('Display the Slideshow / Number bar.', 'wp-photo-album-plus' );
|
3084 |
+
$help = __('If checked: display the number boxes on slideshow', 'wp-photo-album-plus' );
|
3085 |
$slug = 'wppa_show_slideshownumbar';
|
3086 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
3087 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
3088 |
|
3089 |
+
$name = __('Numbar Max', 'wp-photo-album-plus' );
|
3090 |
+
$desc = __('Maximum numbers to display.', 'wp-photo-album-plus' );
|
3091 |
+
$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' );
|
3092 |
$slug = 'wppa_numbar_max';
|
3093 |
+
$html = wppa_input($slug, '40px', '', __('numbers', 'wp-photo-album-plus' ));
|
3094 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help, wppa_switch( 'show_slideshownumbar' ) );
|
3095 |
|
3096 |
+
$name = __('Numbar', 'wp-photo-album-plus' );
|
3097 |
+
$desc = __('Number bar box background.', 'wp-photo-album-plus' );
|
3098 |
$help = '';
|
3099 |
$slug1 = 'wppa_bgcolor_numbar';
|
3100 |
$slug2 = 'wppa_bcolor_numbar';
|
3101 |
$slug = array($slug1, $slug2);
|
3102 |
+
$html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus' ) . ': </span>' .
|
3103 |
wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
|
3104 |
+
'<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus' ) . ': </span>' .
|
3105 |
wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
3106 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
|
3107 |
|
3108 |
+
$name = __('Numbar active', 'wp-photo-album-plus' );
|
3109 |
+
$desc = __('Number bar active box background.', 'wp-photo-album-plus' );
|
3110 |
$help = '';
|
3111 |
$slug1 = 'wppa_bgcolor_numbar_active';
|
3112 |
$slug2 = 'wppa_bcolor_numbar_active';
|
3113 |
$slug = array($slug1, $slug2);
|
3114 |
+
$html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus' ) . ': </span>' .
|
3115 |
wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
|
3116 |
+
'<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus' ) . ': </span>' .
|
3117 |
wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
3118 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
|
3119 |
|
3120 |
+
$name = __('IPTC system', 'wp-photo-album-plus' );
|
3121 |
+
$desc = __('Enable the iptc system.', 'wp-photo-album-plus' );
|
3122 |
+
$help = __('Display the iptc box under the fullsize images.', 'wp-photo-album-plus' );
|
3123 |
$slug = 'wppa_show_iptc';
|
3124 |
$html = wppa_checkbox($slug);
|
3125 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help, wppa_switch('save_iptc'));
|
3126 |
|
3127 |
+
$name = __('IPTC open', 'wp-photo-album-plus' );
|
3128 |
+
$desc = __('Display the iptc box initially opened.', 'wp-photo-album-plus' );
|
3129 |
+
$help = __('Display the iptc box under the fullsize images initially open.', 'wp-photo-album-plus' );
|
3130 |
$slug = 'wppa_show_iptc_open';
|
3131 |
$html = wppa_checkbox($slug);
|
3132 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help, wppa_switch('save_iptc'));
|
3133 |
|
3134 |
+
$name = __('EXIF system', 'wp-photo-album-plus' );
|
3135 |
+
$desc = __('Enable the exif system.', 'wp-photo-album-plus' );
|
3136 |
+
$help = __('Display the exif box under the fullsize images.', 'wp-photo-album-plus' );
|
3137 |
$slug = 'wppa_show_exif';
|
3138 |
$html = wppa_checkbox($slug);
|
3139 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help, wppa_switch('save_exif'));
|
3140 |
|
3141 |
+
$name = __('EXIF open', 'wp-photo-album-plus' );
|
3142 |
+
$desc = __('Display the exif box initially opened.', 'wp-photo-album-plus' );
|
3143 |
+
$help = __('Display the exif box under the fullsize images initially open.', 'wp-photo-album-plus' );
|
3144 |
$slug = 'wppa_show_exif_open';
|
3145 |
$html = wppa_checkbox($slug);
|
3146 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help, wppa_switch('save_exif'));
|
3147 |
|
3148 |
+
$name = __('Slide Image border', 'wp-photo-album-plus' );
|
3149 |
+
$desc = __('Fullsize Slideshow Photos background and border.', 'wp-photo-album-plus' );
|
3150 |
$help = '';
|
3151 |
+
$help .= '<br>'.__('The colors may be equal or "transparent"', 'wp-photo-album-plus' );
|
3152 |
$slug1 = 'wppa_bgcolor_fullimg';
|
3153 |
$slug2 = 'wppa_bcolor_fullimg';
|
3154 |
$slug = array($slug1, $slug2);
|
3155 |
+
$html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus' ) . ': </span>' .
|
3156 |
wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
|
3157 |
+
'<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus' ) . ': </span>' .
|
3158 |
wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
|
3159 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
3160 |
|
3161 |
+
$name = __('Navigation type', 'wp-photo-album-plus' );
|
3162 |
+
$desc = __('Select the type of navigation you want.', 'wp-photo-album-plus' );
|
3163 |
$help = '';
|
3164 |
$slug = 'wppa_navigation_type';
|
3165 |
+
$opts = array( __('Icons', 'wp-photo-album-plus' ),
|
3166 |
+
__('Icons on mobile, text on pc', 'wp-photo-album-plus' ),
|
3167 |
+
__('Text', 'wp-photo-album-plus' ),
|
3168 |
);
|
3169 |
$vals = array( 'icons',
|
3170 |
'iconsmobile',
|
3185 |
$indexopt = wppa_opt( 'slide_order_split' );
|
3186 |
$indexes = explode(',', $indexopt);
|
3187 |
$names = array(
|
3188 |
+
__('StartStop', 'wp-photo-album-plus' ),
|
3189 |
+
__('SlideFrame', 'wp-photo-album-plus' ),
|
3190 |
+
__('Name', 'wp-photo-album-plus' ),
|
3191 |
+
__('Desc', 'wp-photo-album-plus' ),
|
3192 |
+
__('Custom', 'wp-photo-album-plus' ),
|
3193 |
+
__('Rating', 'wp-photo-album-plus' ),
|
3194 |
+
__('FilmStrip', 'wp-photo-album-plus' ),
|
3195 |
+
__('Browsebar', 'wp-photo-album-plus' ),
|
3196 |
+
__('Comments', 'wp-photo-album-plus' ),
|
3197 |
+
__('IPTC data', 'wp-photo-album-plus' ),
|
3198 |
+
__('EXIF data', 'wp-photo-album-plus' ),
|
3199 |
+
__('Share box', 'wp-photo-album-plus' )
|
3200 |
);
|
3201 |
+
$enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus' );
|
3202 |
+
$disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus' );
|
3203 |
$descs = array(
|
3204 |
+
__('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
|
3205 |
+
__('The Slide Frame', 'wp-photo-album-plus' ) . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus' ).'</span>',
|
3206 |
+
__('Photo Name Box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_full_name') ? $enabled : $disabled ) .' )</span>',
|
3207 |
+
__('Photo Description Box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_full_desc') ? $enabled : $disabled ) .' )</span>',
|
3208 |
+
__('Custom Box', 'wp-photo-album-plus' ) . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
|
3209 |
+
__('Rating Bar', 'wp-photo-album-plus' ) . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
|
3210 |
+
__('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus' ) . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
|
3211 |
+
__('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
|
3212 |
+
__('Comments Box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
|
3213 |
+
__('IPTC box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
|
3214 |
+
__('EXIF box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
|
3215 |
+
__('Social media share box', 'wp-photo-album-plus' ) . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
|
3216 |
);
|
3217 |
$i = '0';
|
3218 |
while ( $i < '12' ) {
|
3229 |
$indexopt = wppa_opt( 'slide_order' );
|
3230 |
$indexes = explode(',', $indexopt);
|
3231 |
$names = array(
|
3232 |
+
__('StartStop', 'wp-photo-album-plus' ),
|
3233 |
+
__('SlideFrame', 'wp-photo-album-plus' ),
|
3234 |
+
__('NameDesc', 'wp-photo-album-plus' ),
|
3235 |
+
__('Custom', 'wp-photo-album-plus' ),
|
3236 |
+
__('Rating', 'wp-photo-album-plus' ),
|
3237 |
+
__('FilmStrip', 'wp-photo-album-plus' ),
|
3238 |
+
__('Browsebar', 'wp-photo-album-plus' ),
|
3239 |
+
__('Comments', 'wp-photo-album-plus' ),
|
3240 |
+
__('IPTC data', 'wp-photo-album-plus' ),
|
3241 |
+
__('EXIF data', 'wp-photo-album-plus' ),
|
3242 |
+
__('Share box', 'wp-photo-album-plus' )
|
3243 |
);
|
3244 |
+
$enabled = '<span style="color:green; float:right;">( '.__('Enabled', 'wp-photo-album-plus' );
|
3245 |
+
$disabled = '<span style="color:orange; float:right;">( '.__('Disabled', 'wp-photo-album-plus' );
|
3246 |
$descs = array(
|
3247 |
+
__('Start/Stop & Slower/Faster navigation bar', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_startstop_navigation') ? $enabled : $disabled ) . ' )</span>',
|
3248 |
+
__('The Slide Frame', 'wp-photo-album-plus' ) . '<span style="float:right;">'.__('( Always )', 'wp-photo-album-plus' ).'</span>',
|
3249 |
+
__('Photo Name & Description Box', 'wp-photo-album-plus' ) . ( ( wppa_switch( 'show_full_name') || wppa_switch( 'show_full_desc') ) ? $enabled : $disabled ) .' )</span>',
|
3250 |
+
__('Custom Box', 'wp-photo-album-plus' ) . ( wppa_switch( 'custom_on') ? $enabled : $disabled ).' )</span>',
|
3251 |
+
__('Rating Bar', 'wp-photo-album-plus' ) . ( wppa_switch( 'rating_on') ? $enabled : $disabled ).' )</span>',
|
3252 |
+
__('Film Strip with embedded Start/Stop and Goto functionality', 'wp-photo-album-plus' ) . ( wppa_switch( 'filmstrip') ? $enabled : $disabled ).' )</span>',
|
3253 |
+
__('Browse Bar with Photo X of Y counter', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_browse_navigation') ? $enabled : $disabled ).' )</span>',
|
3254 |
+
__('Comments Box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_comments') ? $enabled : $disabled ).' )</span>',
|
3255 |
+
__('IPTC box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_iptc') ? $enabled : $disabled ).' )</span>',
|
3256 |
+
__('EXIF box', 'wp-photo-album-plus' ) . ( wppa_switch( 'show_exif') ? $enabled : $disabled ).' )</span>',
|
3257 |
+
__('Social media share box', 'wp-photo-album-plus' ) . ( wppa_switch( 'share_on') ? $enabled : $disabled ).' )</span>'
|
3258 |
);
|
3259 |
$i = '0';
|
3260 |
while ( $i < '11' ) {
|
3268 |
}
|
3269 |
}
|
3270 |
|
3271 |
+
$name = __('Swap Namedesc', 'wp-photo-album-plus' );
|
3272 |
+
$desc = __('Swap the order sequence of name and description', 'wp-photo-album-plus' );
|
3273 |
$help = '';
|
3274 |
$slug = 'wppa_swap_namedesc';
|
3275 |
$html = wppa_checkbox($slug,'wppaRefreshAfter()');
|
3276 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help, ! wppa_switch( 'split_namedesc' ) );
|
3277 |
|
3278 |
+
$name = __('Split Name and Desc', 'wp-photo-album-plus' );
|
3279 |
+
$desc = __('Put Name and Description in separate boxes', 'wp-photo-album-plus' );
|
3280 |
$help = '';
|
3281 |
$slug = 'wppa_split_namedesc';
|
3282 |
$html = wppa_checkbox($slug,'wppaRefreshAfter()');
|
3290 |
wppa_setting_tab_description($desc);
|
3291 |
wppa_setting_box_header_new($tab);
|
3292 |
|
3293 |
+
$name = __('V align', 'wp-photo-album-plus' );
|
3294 |
+
$desc = __('Vertical alignment of slideshow images.', 'wp-photo-album-plus' );
|
3295 |
+
$help = __('Specify the vertical alignment of slideshow images.', 'wp-photo-album-plus' );
|
3296 |
$slug = 'wppa_fullvalign';
|
3297 |
+
$opts = array(__('--- none ---', 'wp-photo-album-plus' ), __('top', 'wp-photo-album-plus' ), __('center', 'wp-photo-album-plus' ), __('bottom', 'wp-photo-album-plus' ), __('fit', 'wp-photo-album-plus' ));
|
3298 |
$vals = array('default', 'top', 'center', 'bottom', 'fit');
|
3299 |
$html = wppa_select($slug, $opts, $vals);
|
3300 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3301 |
|
3302 |
+
$name = __('V align', 'wp-photo-album-plus' );
|
3303 |
+
$desc = __('Vertical alignment of slideonly slidshow images.', 'wp-photo-album-plus' );
|
3304 |
+
$help = __('Specify the vertical alignment of slideonly slideshow images.', 'wp-photo-album-plus' );
|
3305 |
$slug = 'wppa_fullvalign_slideonly';
|
3306 |
+
$opts = array(__('--- none ---', 'wp-photo-album-plus' ), __('top', 'wp-photo-album-plus' ), __('center', 'wp-photo-album-plus' ), __('bottom', 'wp-photo-album-plus' ), __('fit', 'wp-photo-album-plus' ));
|
3307 |
$vals = array('default', 'top', 'center', 'bottom', 'fit');
|
3308 |
$html = wppa_select($slug, $opts, $vals);
|
3309 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3310 |
|
3311 |
+
$name = __('H align', 'wp-photo-album-plus' );
|
3312 |
+
$desc = __('Horizontal alignment of slideshow images.', 'wp-photo-album-plus' );
|
3313 |
+
$help = __('Specify the horizontal alignment of slideshow images. If you specify --- none --- , no horizontal alignment will take place.', 'wp-photo-album-plus' );
|
3314 |
+
$help .= '<br>'.(__('This setting is only usefull when the Column Width differs from the Maximum Width.', 'wp-photo-album-plus' ));
|
3315 |
+
$help .= '<br>'.(__('(Settings I-A1 and I-B1)', 'wp-photo-album-plus' ));
|
3316 |
$slug = 'wppa_fullhalign';
|
3317 |
+
$opts = array(__('--- none ---', 'wp-photo-album-plus' ), __('left', 'wp-photo-album-plus' ), __('center', 'wp-photo-album-plus' ), __('right', 'wp-photo-album-plus' ));
|
3318 |
$vals = array('default', 'left', 'center', 'right');
|
3319 |
$html = wppa_select($slug, $opts, $vals);
|
3320 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3321 |
|
3322 |
+
$name = __('Full desc align', 'wp-photo-album-plus' );
|
3323 |
+
$desc = __('The alignment of the descriptions under fullsize images and slideshows.', 'wp-photo-album-plus' );
|
3324 |
$help = '';
|
3325 |
$slug = 'wppa_fulldesc_align';
|
3326 |
+
$opts = array(__('Left', 'wp-photo-album-plus' ), __('Center', 'wp-photo-album-plus' ), __('Right', 'wp-photo-album-plus' ));
|
3327 |
$vals = array('left', 'center', 'right');
|
3328 |
$html = wppa_select($slug, $opts, $vals);
|
3329 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3330 |
|
3331 |
+
$name = __('Remove redundant space', 'wp-photo-album-plus' );
|
3332 |
+
$desc = __('Removes unwanted <p> and <br> tags in fullsize descriptions.', 'wp-photo-album-plus' );
|
3333 |
+
$help = __('This setting has only effect when Foreign Shortcodes is checked.', 'wp-photo-album-plus' );
|
3334 |
$help .= '<br>'.wppa_see_also( 'miscadv', '4', '1' );
|
3335 |
$slug = 'wppa_clean_pbr';
|
3336 |
$html = wppa_checkbox($slug);
|
3337 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3338 |
|
3339 |
+
$name = __('Run nl2br or wpautop on description', 'wp-photo-album-plus' );
|
3340 |
+
$desc = __('Adds <br> or <p> and <br> tags in fullsize descriptions.', 'wp-photo-album-plus' );
|
3341 |
$help = '';
|
3342 |
$slug = 'wppa_wpautop_on_desc';
|
3343 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
3344 |
+
__('Linebreaks only', 'wp-photo-album-plus' ),
|
3345 |
+
__('Linebreaks and paragraphs', 'wp-photo-album-plus' ),
|
3346 |
);
|
3347 |
$vals = array('nil', 'nl2br', 'wpautop');
|
3348 |
$html = wppa_select($slug, $opts, $vals);
|
3349 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3350 |
|
3351 |
+
$name = __('Auto open comments', 'wp-photo-album-plus' );
|
3352 |
+
$desc = __('Automatic opens comments box when slideshow does not run.', 'wp-photo-album-plus' );
|
3353 |
+
$help = __('Works also on type="xphoto"', 'wp-photo-album-plus' );
|
3354 |
$slug = 'wppa_auto_open_comments';
|
3355 |
$html = wppa_checkbox($slug);
|
3356 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('show_comments'));
|
3363 |
wppa_setting_tab_description($desc);
|
3364 |
wppa_setting_box_header_new($tab);
|
3365 |
|
3366 |
+
$name = __('Start', 'wp-photo-album-plus' );
|
3367 |
+
$desc = __('Start slideshow running.', 'wp-photo-album-plus' );
|
3368 |
+
$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' );
|
3369 |
+
$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' );
|
3370 |
$slug = 'wppa_start_slide';
|
3371 |
+
$opts = array( __('running', 'wp-photo-album-plus' ),
|
3372 |
+
__('still at first photo', 'wp-photo-album-plus' ),
|
3373 |
+
__('still at first norated', 'wp-photo-album-plus' )
|
3374 |
);
|
3375 |
$vals = array( 'run',
|
3376 |
'still',
|
3379 |
$html = wppa_select($slug, $opts, $vals);
|
3380 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3381 |
|
3382 |
+
$name = __('Start slideonly', 'wp-photo-album-plus' );
|
3383 |
+
$desc = __('Start slideonly slideshow running.', 'wp-photo-album-plus' );
|
3384 |
$help = '';
|
3385 |
$slug = 'wppa_start_slideonly';
|
3386 |
$html = wppa_checkbox($slug);
|
3387 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3388 |
|
3389 |
+
$name = __('Video autostart', 'wp-photo-album-plus' );
|
3390 |
+
$desc = __('Autoplay videos in slideshows.', 'wp-photo-album-plus' );
|
3391 |
$help = '';
|
3392 |
$slug = 'wppa_start_slide_video';
|
3393 |
$html = wppa_checkbox($slug);
|
3394 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
3395 |
|
3396 |
+
$name = __('Audio autostart', 'wp-photo-album-plus' );
|
3397 |
+
$desc = __('Autoplay audios in slideshows.', 'wp-photo-album-plus' );
|
3398 |
$help = '';
|
3399 |
$slug = 'wppa_start_slide_audio';
|
3400 |
$html = wppa_checkbox($slug);
|
3401 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_switch('enable_audio'));
|
3402 |
|
3403 |
+
$name = __('Animation type', 'wp-photo-album-plus' );
|
3404 |
+
$desc = __('The way successive slides appear.', 'wp-photo-album-plus' );
|
3405 |
+
$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' );
|
3406 |
$slug = 'wppa_animation_type';
|
3407 |
+
$opts = array( __('Fade out and in simultaneous', 'wp-photo-album-plus' ),
|
3408 |
+
__('Fade in after fade out', 'wp-photo-album-plus' ),
|
3409 |
+
__('Shift adjacent', 'wp-photo-album-plus' ),
|
3410 |
+
// __('Stack on', 'wp-photo-album-plus' ),
|
3411 |
+
// __('Stack off', 'wp-photo-album-plus' ),
|
3412 |
+
// __('Turn over', 'wp-photo-album-plus' )
|
3413 |
);
|
3414 |
$vals = array( 'fadeover',
|
3415 |
'fadeafter',
|
3421 |
$html = wppa_select($slug, $opts, $vals);
|
3422 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3423 |
|
3424 |
+
$name = __('Timeout', 'wp-photo-album-plus' );
|
3425 |
+
$desc = __('Slideshow timeout.', 'wp-photo-album-plus' );
|
3426 |
+
$help = __('Select the time a single slide will be visible when the slideshow is started.', 'wp-photo-album-plus' );
|
3427 |
$slug = 'wppa_slideshow_timeout';
|
3428 |
$opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
|
3429 |
$vals = array('1000', '1500', '2500', '3000', '4000', '5000', '6000', '8000', '10000', '12000', '15000', '20000' );
|
3430 |
$html = wppa_select($slug, $opts, $vals);
|
3431 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3432 |
|
3433 |
+
$name = __('Speed', 'wp-photo-album-plus' );
|
3434 |
+
$desc = __('Slideshow animation speed.', 'wp-photo-album-plus' );
|
3435 |
+
$help = __('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus' );
|
3436 |
+
$help .= '<br>'.__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus' );
|
3437 |
$slug = 'wppa_animation_speed';
|
3438 |
+
$opts = array(__('--- off ---', 'wp-photo-album-plus' ), '200 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.', '6 s.', '8 s.', '10 s.');
|
3439 |
$vals = array('10', '200', '400', '800', '1200', '2000', '4000', '6000', '8000', '10000');
|
3440 |
$html = wppa_select($slug, $opts, $vals);
|
3441 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3442 |
|
3443 |
+
$name = __('Slide hover pause', 'wp-photo-album-plus' );
|
3444 |
+
$desc = __('Running Slideshow suspends during mouse hover.', 'wp-photo-album-plus' );
|
3445 |
$help = '';
|
3446 |
$slug = 'wppa_slide_pause';
|
3447 |
$html = wppa_checkbox($slug);
|
3448 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
3449 |
|
3450 |
+
$name = __('Slideshow wrap around', 'wp-photo-album-plus' );
|
3451 |
+
$desc = __('The slideshow wraps around the start and end', 'wp-photo-album-plus' );
|
3452 |
$help = '';
|
3453 |
$slug = 'wppa_slide_wrap';
|
3454 |
$html = wppa_checkbox($slug);
|
3455 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
3456 |
|
3457 |
+
$name = __('Film hover goto', 'wp-photo-album-plus' );
|
3458 |
+
$desc = __('Go to slide when hovering filmstrip thumbnail.', 'wp-photo-album-plus' );
|
3459 |
+
$help = __('Do not use this setting when slides have different aspect ratios!', 'wp-photo-album-plus' );
|
3460 |
$slug = 'wppa_film_hover_goto';
|
3461 |
$html = wppa_checkbox($slug);
|
3462 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
3463 |
|
3464 |
+
$name = __('Slide swipe', 'wp-photo-album-plus' );
|
3465 |
+
$desc = __('Enable touch events swipe left-right on slides on touch screens.', 'wp-photo-album-plus' );
|
3466 |
$help = '';
|
3467 |
$slug = 'wppa_slide_swipe';
|
3468 |
$html = wppa_checkbox($slug);
|
3469 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
3470 |
|
3471 |
+
$name = __('Filmonly continu', 'wp-photo-album-plus' );
|
3472 |
+
$desc = __('The filmstrip will move almost continously', 'wp-photo-album-plus' );
|
3473 |
$help = '';
|
3474 |
$slug = 'wppa_filmonly_continuous';
|
3475 |
$html = wppa_checkbox($slug);
|
3476 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
3477 |
|
3478 |
+
$name = __('Filmonly random', 'wp-photo-album-plus' );
|
3479 |
$desc = __('Set sequence in filmonly to random');
|
3480 |
+
$help = __('Every pageload the sequence will be different', 'wp-photo-album-plus' );
|
3481 |
$slug = 'wppa_filmonly_random';
|
3482 |
$html = wppa_checkbox($slug);
|
3483 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
3484 |
|
3485 |
+
$name = __('No animate on mobile', 'wp-photo-album-plus' );
|
3486 |
+
$desc = __('Suppress slideshow animations on mobile devices.', 'wp-photo-album-plus' );
|
3487 |
$help = '';
|
3488 |
$slug = 'wppa_no_animate_on_mobile';
|
3489 |
$html = wppa_checkbox($slug);
|
3490 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
3491 |
|
3492 |
+
$name = __('Easing formula', 'wp-photo-album-plus' );
|
3493 |
+
$desc = __('The animation method', 'wp-photo-album-plus' );
|
3494 |
$help = '';
|
3495 |
$slug = 'wppa_easing_slide';
|
3496 |
$opts = array( 'swing', 'linear', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInQuad',
|
3516 |
wppa_setting_tab_description($desc);
|
3517 |
wppa_setting_box_header_new($tab);
|
3518 |
|
3519 |
+
$name = __('Theme color', 'wp-photo-album-plus' );
|
3520 |
+
$desc = __('The color of the image border and text background.', 'wp-photo-album-plus' );
|
3521 |
$help = '';
|
3522 |
$slug = 'wppa_ovl_theme';
|
3523 |
+
$opts = array(__('Black', 'wp-photo-album-plus' ), __('White', 'wp-photo-album-plus' ));
|
3524 |
$vals = array('black', 'white');
|
3525 |
$html = wppa_select($slug, $opts, $vals);
|
3526 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3527 |
|
3528 |
+
$name = __('Theme background color', 'wp-photo-album-plus' );
|
3529 |
+
$desc = __('The color of the outer background.', 'wp-photo-album-plus' );
|
3530 |
$help = '';
|
3531 |
$slug = 'wppa_ovl_bgcolor';
|
3532 |
+
$opts = array(__('Black', 'wp-photo-album-plus' ), __('White', 'wp-photo-album-plus' ));
|
3533 |
$vals = array('black', 'white');
|
3534 |
$html = wppa_select($slug, $opts, $vals);
|
3535 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3536 |
|
3537 |
+
$name = __('Overlay name', 'wp-photo-album-plus' );
|
3538 |
+
$desc = __('Show the items name.', 'wp-photo-album-plus' );
|
3539 |
+
$help = __('Shows the photos name on a lightbox display.', 'wp-photo-album-plus' );
|
3540 |
$slug = 'wppa_ovl_name';
|
3541 |
$html = wppa_checkbox($slug);
|
3542 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3543 |
|
3544 |
+
$name = __('Overlay desc', 'wp-photo-album-plus' );
|
3545 |
+
$desc = __('Show description.', 'wp-photo-album-plus' );
|
3546 |
+
$help = __('Shows the photos description on a lightbox display.', 'wp-photo-album-plus' );
|
3547 |
$slug = 'wppa_ovl_desc';
|
3548 |
$html = wppa_checkbox($slug);
|
3549 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3550 |
|
3551 |
+
$name = __('Overlay rating', 'wp-photo-album-plus' );
|
3552 |
+
$desc = __('Shows and enables rating on lightbox display.', 'wp-photo-album-plus' );
|
3553 |
+
$help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus' );
|
3554 |
$slug = 'wppa_ovl_rating';
|
3555 |
$html = wppa_checkbox($slug);
|
3556 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3557 |
|
3558 |
+
$name = __('Overlay add owner', 'wp-photo-album-plus' );
|
3559 |
+
$desc = __('Add the owner to the photo name on lightbox displays.', 'wp-photo-album-plus' );
|
3560 |
+
$help = __('This setting is independant of the show name switches and is a global setting.', 'wp-photo-album-plus' );
|
3561 |
$slug = 'wppa_ovl_add_owner';
|
3562 |
$html = wppa_checkbox($slug);
|
3563 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3564 |
|
3565 |
+
$name = __('Overlay show start/stop', 'wp-photo-album-plus' );
|
3566 |
+
$desc = __('Show Start and Stop for running slideshow on lightbox.', 'wp-photo-album-plus' );
|
3567 |
$help = '';
|
3568 |
$slug = 'wppa_ovl_show_startstop';
|
3569 |
$html = wppa_checkbox($slug);
|
3570 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
3571 |
|
3572 |
+
$name = __('Overlay show counter', 'wp-photo-album-plus' );
|
3573 |
+
$desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus' );
|
3574 |
$help = '';
|
3575 |
$slug = 'wppa_ovl_show_counter';
|
3576 |
$html = wppa_checkbox($slug);
|
3577 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
3578 |
|
3579 |
+
$name = __('WPPA+ Lightbox global', 'wp-photo-album-plus' );
|
3580 |
+
$desc = __('Use the wppa+ lightbox also for non-wppa images.', 'wp-photo-album-plus' );
|
3581 |
$help = '';
|
3582 |
$slug = 'wppa_lightbox_global';
|
3583 |
$onch = 'wppaSlave( this, "wppa_lightbox_global_set" )';
|
3584 |
$html = wppa_checkbox($slug, $onch);
|
3585 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
3586 |
|
3587 |
+
$name = __('WPPA+ Lightbox global is a set', 'wp-photo-album-plus' );
|
3588 |
+
$desc = __('Treat the other images as a set.', 'wp-photo-album-plus' );
|
3589 |
+
$help = __('If checked, you can scroll through the non-WPPA images in the lightbox view.', 'wp-photo-album-plus' );
|
3590 |
$slug = 'wppa_lightbox_global_set';
|
3591 |
$html = wppa_checkbox($slug);
|
3592 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_switch( 'lightbox_global' ) );
|
3593 |
|
3594 |
+
$name = __('Navigation icon size lightbox', 'wp-photo-album-plus' );
|
3595 |
+
$desc = __('The size of navigation icons on lightbox', 'wp-photo-album-plus' );
|
3596 |
$help = '';
|
3597 |
$slug = 'wppa_nav_icon_size_lightbox';
|
3598 |
$opts = array( '16px',
|
3612 |
$html = wppa_select($slug, $opts, $vals);
|
3613 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
3614 |
|
3615 |
+
$name = __('Show Share Buttons Lightbox', 'wp-photo-album-plus' );
|
3616 |
+
$desc = __('Display the share social media buttons on lightbox displays.', 'wp-photo-album-plus' );
|
3617 |
$help = '';
|
3618 |
$slug = 'wppa_share_on_lightbox';
|
3619 |
$html = wppa_checkbox($slug);
|
3620 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
3621 |
|
3622 |
+
$name = __('Number of text lines', 'wp-photo-album-plus' );
|
3623 |
+
$desc = __('Number of lines on the lightbox description area, exclusive the n/m line.', 'wp-photo-album-plus' );
|
3624 |
+
$help = __('Enter a number in the range from 0 to 24 or auto', 'wp-photo-album-plus' );
|
3625 |
$slug = 'wppa_ovl_txt_lines';
|
3626 |
+
$html = wppa_input($slug, '40px', '', __('lines', 'wp-photo-album-plus' ));
|
3627 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
3628 |
|
3629 |
+
$name = __('Magnifier cursor size', 'wp-photo-album-plus' );
|
3630 |
+
$desc = __('Select the size of the magnifier cursor.', 'wp-photo-album-plus' );
|
3631 |
$help = '';
|
3632 |
$slug = 'wppa_magnifier';
|
3633 |
+
$opts = array( __('small', 'wp-photo-album-plus' ),
|
3634 |
+
__('medium', 'wp-photo-album-plus' ),
|
3635 |
+
__('large', 'wp-photo-album-plus' ),
|
3636 |
+
__('pointer (hand)', 'wp-photo-album-plus' ),
|
3637 |
+
__('--- none ---', 'wp-photo-album-plus' )
|
3638 |
);
|
3639 |
$vals = array( 'magnifier-small.png',
|
3640 |
'magnifier-medium.png',
|
3649 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
3650 |
wppa_add_inline_script( 'wppa-admin', $onchange );
|
3651 |
|
3652 |
+
$name = __('Border width', 'wp-photo-album-plus' );
|
3653 |
+
$desc = __('Border width for lightbox display.', 'wp-photo-album-plus' );
|
3654 |
$help = '';
|
3655 |
$slug = 'wppa_ovl_border_width';
|
3656 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
3657 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
3658 |
|
3659 |
+
$name = __('Border radius', 'wp-photo-album-plus' );
|
3660 |
+
$desc = __('Border radius for lightbox display.', 'wp-photo-album-plus' );
|
3661 |
$help = '';
|
3662 |
$slug = 'wppa_ovl_border_radius';
|
3663 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
3664 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
3665 |
|
3666 |
+
$name = __('Show Zoom in', 'wp-photo-album-plus' );
|
3667 |
+
$desc = __('Display tooltip "Zoom in" along with the magnifier cursor.', 'wp-photo-album-plus' );
|
3668 |
+
$help = __('If you select ---none--- in item 14 for magnifier size, the tooltop contains the photo name.', 'wp-photo-album-plus' );
|
3669 |
$slug = 'wppa_show_zoomin';
|
3670 |
$html = wppa_checkbox($slug);
|
3671 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
3672 |
|
3673 |
+
$name = __('Overlay opacity', 'wp-photo-album-plus' );
|
3674 |
+
$desc = __('The opacity of the lightbox overlay background.', 'wp-photo-album-plus' );
|
3675 |
$help = '';
|
3676 |
$slug = 'wppa_ovl_opacity';
|
3677 |
+
$html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus' ));
|
3678 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
3679 |
|
3680 |
+
$name = __('Click on background', 'wp-photo-album-plus' );
|
3681 |
+
$desc = __('Select the action to be taken on click on background.', 'wp-photo-album-plus' );
|
3682 |
$help = '';
|
3683 |
$slug = 'wppa_ovl_onclick';
|
3684 |
+
$opts = array(__('Nothing', 'wp-photo-album-plus' ), __('Exit (close)', 'wp-photo-album-plus' ), __('Browse (left/right)', 'wp-photo-album-plus' ));
|
3685 |
$vals = array('none', 'close', 'browse');
|
3686 |
$html = wppa_select($slug, $opts, $vals);
|
3687 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
3688 |
|
3689 |
+
$name = __('Click on image', 'wp-photo-album-plus' );
|
3690 |
+
$desc = __('Clicking the image (left or right half) will browse the images', 'wp-photo-album-plus' );
|
3691 |
$help = '';
|
3692 |
$slug = 'wppa_ovl_browse_on_click';
|
3693 |
$html = wppa_checkbox($slug);
|
3694 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
3695 |
|
3696 |
+
$name = __('Overlay animation speed', 'wp-photo-album-plus' );
|
3697 |
+
$desc = __('The fade-in time of the lightbox images', 'wp-photo-album-plus' );
|
3698 |
$help = '';
|
3699 |
$slug = 'wppa_ovl_anim';
|
3700 |
+
$opts = array(__('--- off ---', 'wp-photo-album-plus' ), '200 ms.', '300 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.');
|
3701 |
$vals = array('10', '200', '300', '400', '800', '1200', '2000', '4000');
|
3702 |
$html = wppa_select($slug, $opts, $vals);
|
3703 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
3704 |
|
3705 |
+
$name = __('Overlay slideshow speed', 'wp-photo-album-plus' );
|
3706 |
+
$desc = __('The time the lightbox images stay', 'wp-photo-album-plus' );
|
3707 |
$help = '';
|
3708 |
$slug = 'wppa_ovl_slide';
|
3709 |
$opts = array( '1 s.', '1.5 s.', '2.5 s.', '3 s.', '4 s.', '5 s.', '6 s.', '8 s.', '10 s.', '12 s.', '15 s.', '20 s.' );
|
3711 |
$html = wppa_select($slug, $opts, $vals);
|
3712 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
3713 |
|
3714 |
+
$name = __('Use hires files', 'wp-photo-album-plus' );
|
3715 |
+
$desc = __('Use the highest resolution available for lightbox.', 'wp-photo-album-plus' );
|
3716 |
+
$help = __('Ticking this box is recommended for lightbox fullscreen modes.', 'wp-photo-album-plus' );
|
3717 |
$slug = 'wppa_lb_hres';
|
3718 |
$html = wppa_checkbox($slug);
|
3719 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
3720 |
|
3721 |
+
$name = __('Video autostart', 'wp-photo-album-plus' );
|
3722 |
+
$desc = __('Videos on lightbox start automatically.', 'wp-photo-album-plus' );
|
3723 |
$help = '';
|
3724 |
$slug = 'wppa_ovl_video_start';
|
3725 |
$html = wppa_checkbox($slug);
|
3726 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
3727 |
|
3728 |
+
$name = __('Audio autostart', 'wp-photo-album-plus' );
|
3729 |
+
$desc = __('Audio on lightbox start automatically.', 'wp-photo-album-plus' );
|
3730 |
$help = '';
|
3731 |
$slug = 'wppa_ovl_audio_start';
|
3732 |
$html = wppa_checkbox($slug);
|
3733 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
3734 |
|
3735 |
+
$name = __('Lightbox start mode', 'wp-photo-album-plus' );
|
3736 |
+
$desc = __('The mode lightbox starts in.', 'wp-photo-album-plus' );
|
3737 |
$help = '';
|
3738 |
$slug = 'wppa_ovl_mode_initial';
|
3739 |
+
$opts = array( __('Normal', 'wp-photo-album-plus' ),
|
3740 |
+
__('Fullscreen', 'wp-photo-album-plus' ),
|
3741 |
);
|
3742 |
$vals = array( 'normal',
|
3743 |
'padded',
|
3745 |
$html = wppa_select($slug,$opts,$vals);
|
3746 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
3747 |
|
3748 |
+
$name = __('Lightbox start mode mobile', 'wp-photo-album-plus' );
|
3749 |
+
$desc = __('The mode lightbox starts in on mobile devices.', 'wp-photo-album-plus' );
|
3750 |
$help = '';
|
3751 |
$slug = 'wppa_ovl_mode_initial_mob';
|
3752 |
+
$opts = array( __('Normal', 'wp-photo-album-plus' ),
|
3753 |
+
__('Fullscreen', 'wp-photo-album-plus' ),
|
3754 |
);
|
3755 |
$vals = array( 'normal',
|
3756 |
'padded',
|
3758 |
$html = wppa_select($slug,$opts,$vals);
|
3759 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
3760 |
|
3761 |
+
$name = __('Easing formula', 'wp-photo-album-plus' );
|
3762 |
+
$desc = __('The animation method', 'wp-photo-album-plus' );
|
3763 |
$help = '';
|
3764 |
$slug = 'wppa_easing_lightbox';
|
3765 |
$opts = array( 'swing', 'linear', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInQuad',
|
3785 |
wppa_setting_tab_description($desc);
|
3786 |
wppa_setting_box_header_new($tab);
|
3787 |
|
3788 |
+
$name = __('Commenting login', 'wp-photo-album-plus' );
|
3789 |
+
$desc = __('Users must be logged in to comment on photos.', 'wp-photo-album-plus' );
|
3790 |
+
$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' );
|
3791 |
$slug = 'wppa_comment_login';
|
3792 |
$html = wppa_checkbox($slug);
|
3793 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3794 |
|
3795 |
+
$name = __('Comments view login', 'wp-photo-album-plus' );
|
3796 |
+
$desc = __('Users must be logged in to see comments on photos.', 'wp-photo-album-plus' );
|
3797 |
+
$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' );
|
3798 |
$slug = 'wppa_comment_view_login';
|
3799 |
$html = wppa_checkbox($slug);
|
3800 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3801 |
|
3802 |
+
$name = __('Last comment first', 'wp-photo-album-plus' );
|
3803 |
+
$desc = __('Display the newest comment on top.', 'wp-photo-album-plus' );
|
3804 |
+
$help = __('If checked: Display the newest comment on top.', 'wp-photo-album-plus' );
|
3805 |
+
$help .= '<br>'.(__('If unchecked, the comments are listed in the ordere they were entered.', 'wp-photo-album-plus' ));
|
3806 |
$slug = 'wppa_comments_desc';
|
3807 |
$html = wppa_checkbox($slug);
|
3808 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3809 |
|
3810 |
+
$name = __('Comment moderation', 'wp-photo-album-plus' );
|
3811 |
+
$desc = __('Comments from what users need approval.', 'wp-photo-album-plus' );
|
3812 |
+
$help = __('Select the desired users of which the comments need approval.', 'wp-photo-album-plus' );
|
3813 |
$slug = 'wppa_moderate_comment';
|
3814 |
+
$opts = array( __('All users', 'wp-photo-album-plus' ),
|
3815 |
+
__('Logged out users', 'wp-photo-album-plus' ),
|
3816 |
+
__('No users', 'wp-photo-album-plus' ),
|
3817 |
+
__('Use WP Discussion rules', 'wp-photo-album-plus' ),
|
3818 |
);
|
3819 |
$vals = array( 'all',
|
3820 |
'logout',
|
3824 |
$html = wppa_select($slug, $opts, $vals);
|
3825 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3826 |
|
3827 |
+
$name = __('Comment email required', 'wp-photo-album-plus' );
|
3828 |
+
$desc = __('Commenting users must enter their email addresses.', 'wp-photo-album-plus' );
|
3829 |
$help = '';
|
3830 |
$slug = 'wppa_comment_email_required';
|
3831 |
+
$opts = array( __('None', 'wp-photo-album-plus' ),
|
3832 |
+
__('Optional', 'wp-photo-album-plus' ),
|
3833 |
+
__('Required', 'wp-photo-album-plus' ),
|
3834 |
);
|
3835 |
$vals = array( 'none',
|
3836 |
'optional',
|
3839 |
$html = wppa_select($slug, $opts, $vals);
|
3840 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3841 |
|
3842 |
+
$name = __('Comment ntfy added', 'wp-photo-album-plus' );
|
3843 |
+
$desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus' );
|
3844 |
$help = '';
|
3845 |
$slug = 'wppa_commentnotify_added';
|
3846 |
$html = wppa_checkbox($slug);
|
3847 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3848 |
|
3849 |
+
$name = __('ComTen alt display', 'wp-photo-album-plus' );
|
3850 |
+
$desc = __('Display comments at comten thumbnails.', 'wp-photo-album-plus' );
|
3851 |
$help = '';
|
3852 |
$slug = 'wppa_comten_alt_display';
|
3853 |
$html = wppa_checkbox($slug);
|
3854 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
3855 |
|
3856 |
+
$name = __('Comten Thumbnail width', 'wp-photo-album-plus' );
|
3857 |
+
$desc = __('The width of the thumbnail in the alt comment display.', 'wp-photo-album-plus' );
|
3858 |
$help = '';
|
3859 |
$slug = 'wppa_comten_alt_thumbsize';
|
3860 |
+
$html = wppa_input($slug, '50px', '', __('Pixels', 'wp-photo-album-plus' ));
|
3861 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
3862 |
|
3863 |
+
$name = __('Show smiley picker', 'wp-photo-album-plus' );
|
3864 |
+
$desc = __('Display a clickable row of smileys.', 'wp-photo-album-plus' );
|
3865 |
$help = '';
|
3866 |
$slug = 'wppa_comment_smiley_picker';
|
3867 |
$html = wppa_checkbox($slug);
|
3868 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
3869 |
|
3870 |
+
$name = __('Allow clickable links', 'wp-photo-album-plus' );
|
3871 |
+
$desc = __('Make links in comments clickable', 'wp-photo-album-plus' );
|
3872 |
$help = '';
|
3873 |
$slug = 'wppa_comment_clickable';
|
3874 |
$html = wppa_checkbox($slug);
|
3875 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
3876 |
|
3877 |
+
$name = __('Comment needs vote', 'wp-photo-album-plus' );
|
3878 |
+
$desc = __('User needs to give a rating to get his comment published', 'wp-photo-album-plus' );
|
3879 |
$help = '';
|
3880 |
$slug = 'wppa_comment_need_vote';
|
3881 |
$html = wppa_checkbox($slug);
|
3882 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
3883 |
|
3884 |
+
$name = __('Comment Avatar default', 'wp-photo-album-plus' );
|
3885 |
+
$desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus' );
|
3886 |
$help = '';
|
3887 |
$slug = 'wppa_comment_gravatar';
|
3888 |
$onch = '';
|
3889 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
3890 |
+
__('mystery man', 'wp-photo-album-plus' ),
|
3891 |
+
__('identicon', 'wp-photo-album-plus' ),
|
3892 |
+
__('monsterid', 'wp-photo-album-plus' ),
|
3893 |
+
__('wavatar', 'wp-photo-album-plus' ),
|
3894 |
+
__('retro', 'wp-photo-album-plus' ),
|
3895 |
+
__('--- url ---', 'wp-photo-album-plus' )
|
3896 |
);
|
3897 |
$vals = array( 'none',
|
3898 |
'mm',
|
3905 |
$html = wppa_select($slug, $opts, $vals, $onch);
|
3906 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
3907 |
|
3908 |
+
$name = __('Comment Avatar url', 'wp-photo-album-plus' );
|
3909 |
+
$desc = __('Comment Avatar default url.', 'wp-photo-album-plus' );
|
3910 |
$help = '';
|
3911 |
$slug = 'wppa_comment_gravatar_url';
|
3912 |
$html = wppa_input($slug, '90%', '300px');
|
3913 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
3914 |
|
3915 |
+
$name = __('Avatar size', 'wp-photo-album-plus' );
|
3916 |
+
$desc = __('Size of Avatar images.', 'wp-photo-album-plus' );
|
3917 |
+
$help = __('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus' );
|
3918 |
$slug = 'wppa_gravatar_size';
|
3919 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
3920 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
3921 |
|
3922 |
+
$name = __('List comments', 'wp-photo-album-plus' );
|
3923 |
+
$desc = __('Show the content of the comments table.', 'wp-photo-album-plus' );
|
3924 |
$help = '';
|
3925 |
$slug1 = 'wppa_list_comments_by';
|
3926 |
$slug2 = 'wppa_list_comments';
|
3927 |
$opts = array( 'Email', 'Name', 'Timestamp' );
|
3928 |
$vals = array( 'email', 'name', 'timestamp' );
|
3929 |
+
$html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus' ).'</small>'.wppa_select($slug1, $opts, $vals);
|
3930 |
$html2 = wppa_popup_button( $slug2, '30' );
|
3931 |
$html = $html1 . '<span style="float:left;" > </span>' .$html2;
|
3932 |
wppa_setting_new($slug1, '16', $name, $desc, $html, $help);
|
3943 |
wppa_setting_tab_description($desc);
|
3944 |
wppa_setting_box_header_new($tab);
|
3945 |
|
3946 |
+
$name = __('Slideshow rating', 'wp-photo-album-plus' );
|
3947 |
+
$desc = __('Display Slideshow Rating.', 'wp-photo-album-plus' );
|
3948 |
+
$help = __('Display the rating of the photo under the slideshow image.', 'wp-photo-album-plus' );
|
3949 |
$slug = '';
|
3950 |
$html = '<input type="checkbox" checked disabled >';
|
3951 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
3952 |
|
3953 |
+
$name = __('Thumbnail rating', 'wp-photo-album-plus' );
|
3954 |
+
$desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus' );
|
3955 |
+
$help = __('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus' );
|
3956 |
$slug = 'wppa_thumb_text_rating';
|
3957 |
$html = wppa_checkbox($slug);
|
3958 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
3959 |
|
3960 |
+
$name = __('Lightbox rating', 'wp-photo-album-plus' );
|
3961 |
+
$desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus' );
|
3962 |
+
$help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus' );
|
3963 |
$slug = 'wppa_ovl_rating';
|
3964 |
$html = wppa_checkbox($slug);
|
3965 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
3966 |
|
3967 |
+
$name = __('Rating display type', 'wp-photo-album-plus' );
|
3968 |
+
$desc = __('Specify the type of the rating display.', 'wp-photo-album-plus' );
|
3969 |
+
$help = __('If you select "Likes" you must also select "One button vote"', 'wp-photo-album-plus' );
|
3970 |
$slug = 'wppa_rating_display_type';
|
3971 |
+
$opts = array(__('Graphic', 'wp-photo-album-plus' ), __('Numeric', 'wp-photo-album-plus' ), __('Likes', 'wp-photo-album-plus' ));
|
3972 |
$vals = array('graphic', 'numeric', 'likes');
|
3973 |
$postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
|
3974 |
$html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
|
3975 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
3976 |
|
3977 |
+
$name = __('Rating size', 'wp-photo-album-plus' );
|
3978 |
+
$desc = __('Select the number of voting stars.', 'wp-photo-album-plus' );
|
3979 |
$help = '';
|
3980 |
$slug = 'wppa_rating_max';
|
3981 |
+
$opts = array(__('Standard: 5 stars', 'wp-photo-album-plus' ), __('Extended: 10 stars', 'wp-photo-album-plus' ), __('One button vote', 'wp-photo-album-plus' ));
|
3982 |
$vals = array('5', '10', '1');
|
3983 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();') . wppa_see_also( 'maintenance', '1', '5' );
|
3984 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
3985 |
|
3986 |
+
$name = __('Display precision', 'wp-photo-album-plus' );
|
3987 |
+
$desc = __('Select the desired rating display precision.', 'wp-photo-album-plus' );
|
3988 |
$help = '';
|
3989 |
$slug = 'wppa_rating_prec';
|
3990 |
+
$opts = array('1 '.__('decimal places', 'wp-photo-album-plus' ), '2 '.__('decimal places', 'wp-photo-album-plus' ), '3 '.__('decimal places', 'wp-photo-album-plus' ), '4 '.__('decimal places', 'wp-photo-album-plus' ));
|
3991 |
$vals = array('1', '2', '3', '4');
|
3992 |
$html = wppa_select($slug, $opts, $vals);
|
3993 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
3994 |
|
3995 |
+
$name = __('Rating space', 'wp-photo-album-plus' );
|
3996 |
+
$desc = __('Space between avg and my rating stars', 'wp-photo-album-plus' );
|
3997 |
$help = '';
|
3998 |
$slug = 'wppa_ratspacing';
|
3999 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4000 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
4001 |
|
4002 |
+
$name = __('Show rating count', 'wp-photo-album-plus' );
|
4003 |
+
$desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus' );
|
4004 |
+
$help = __('If checked, the number of votes is displayed along with average rating displays.', 'wp-photo-album-plus' );
|
4005 |
$slug = 'wppa_show_rating_count';
|
4006 |
$html = wppa_checkbox($slug);
|
4007 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
4008 |
|
4009 |
+
$name = __('Rating login', 'wp-photo-album-plus' );
|
4010 |
+
$desc = __('Users must login to rate photos.', 'wp-photo-album-plus' );
|
4011 |
+
$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' );
|
4012 |
$slug = 'wppa_rating_login';
|
4013 |
$html = wppa_checkbox($slug);
|
4014 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
4015 |
|
4016 |
+
$name = __('Rating change', 'wp-photo-album-plus' );
|
4017 |
+
$desc = __('Users may change their ratings.', 'wp-photo-album-plus' );
|
4018 |
+
$help = __('Users may change their ratings.', 'wp-photo-album-plus' );
|
4019 |
+
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus' ));
|
4020 |
$slug = 'wppa_rating_change';
|
4021 |
$html = wppa_checkbox($slug);
|
4022 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4023 |
|
4024 |
+
$name = __('Rating multi', 'wp-photo-album-plus' );
|
4025 |
+
$desc = __('Users may give multiple votes.', 'wp-photo-album-plus' );
|
4026 |
+
$help = __('Users may give multiple votes. (This has no effect when users may change their votes.)', 'wp-photo-album-plus' );
|
4027 |
$slug = 'wppa_rating_multi';
|
4028 |
$html = wppa_checkbox($slug);
|
4029 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
4030 |
|
4031 |
+
$name = __('Rating daily', 'wp-photo-album-plus' );
|
4032 |
+
$desc = __('Users may rate only once per period', 'wp-photo-album-plus' );
|
4033 |
$help = '';
|
4034 |
$slug = 'wppa_rating_dayly';
|
4035 |
+
$opts = array(__('--- off ---', 'wp-photo-album-plus' ), __('Week', 'wp-photo-album-plus' ), __('Day', 'wp-photo-album-plus' ), __('Hour', 'wp-photo-album-plus' ) );
|
4036 |
$vals = array(0, 7*24*60*60, 24*60*60, 60*60);
|
4037 |
$html = wppa_select($slug, $opts, $vals);
|
4038 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
4039 |
|
4040 |
+
$name = __('Rate own photos', 'wp-photo-album-plus' );
|
4041 |
+
$desc = __('It is allowed to rate photos by the uploader himself.', 'wp-photo-album-plus' );
|
4042 |
$help = '';
|
4043 |
$slug = 'wppa_allow_owner_votes';
|
4044 |
$html = wppa_checkbox($slug);
|
4045 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
4046 |
|
4047 |
+
$name = __('Rating requires comment', 'wp-photo-album-plus' );
|
4048 |
+
$desc = __('Users must clarify their vote in a comment.', 'wp-photo-album-plus' );
|
4049 |
$help = '';
|
4050 |
$slug = 'wppa_vote_needs_comment';
|
4051 |
$html = wppa_checkbox($slug);
|
4052 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_opt( 'rating_display_type' ) != 'likes' );
|
4053 |
|
4054 |
+
$name = __('Next after vote', 'wp-photo-album-plus' );
|
4055 |
+
$desc = __('Goto next slide after voting', 'wp-photo-album-plus' );
|
4056 |
+
$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' );
|
4057 |
$slug = 'wppa_next_on_callback';
|
4058 |
$html = wppa_checkbox($slug);
|
4059 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
4060 |
|
4061 |
+
$name = __('Star off opacity', 'wp-photo-album-plus' );
|
4062 |
+
$desc = __('Rating star off state opacity value.', 'wp-photo-album-plus' );
|
4063 |
+
$help = __('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wp-photo-album-plus' );
|
4064 |
+
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus' ));
|
4065 |
$slug = 'wppa_star_opacity';
|
4066 |
+
$html = wppa_input($slug, '50px', '', __('%', 'wp-photo-album-plus' ));
|
4067 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4068 |
|
4069 |
+
$name = __('Notify inappropriate', 'wp-photo-album-plus' );
|
4070 |
+
$desc = __('Notify admin every x times.', 'wp-photo-album-plus' );
|
4071 |
+
$help = __('If this number is positive, there will be a thumb down icon in the rating bar.', 'wp-photo-album-plus' );
|
4072 |
+
$help .= '<br>'.(__('Clicking the thumbdown icon indicates a user dislikes a photo.', 'wp-photo-album-plus' ));
|
4073 |
+
$help .= '<br>'.(__('Admin will be notified by email after every x dislikes.', 'wp-photo-album-plus' ));
|
4074 |
+
$help .= '<br>'.(__('A value of 0 disables this feature.', 'wp-photo-album-plus' ));
|
4075 |
+
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus' ));
|
4076 |
$slug = 'wppa_dislike_mail_every';
|
4077 |
+
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus' ));
|
4078 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4079 |
|
4080 |
+
$name = __('Dislike value', 'wp-photo-album-plus' );
|
4081 |
+
$desc = __('This value counts dislike rating.', 'wp-photo-album-plus' );
|
4082 |
+
$help = (__('This value will be used for a dislike rating on calculation of avarage ratings.', 'wp-photo-album-plus' ));
|
4083 |
+
$help .= '<br>'.(__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus' ));
|
4084 |
$slug = 'wppa_dislike_value';
|
4085 |
+
$html = wppa_input($slug, '50px', '', __('points', 'wp-photo-album-plus' ));
|
4086 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4087 |
|
4088 |
+
$name = __('Pending after', 'wp-photo-album-plus' );
|
4089 |
+
$desc = __('Set status to pending after xx dislike votes.', 'wp-photo-album-plus' );
|
4090 |
+
$help = __('A value of 0 disables this feature.', 'wp-photo-album-plus' );
|
4091 |
+
$help .= '<br>'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus' );
|
4092 |
$slug = 'wppa_dislike_set_pending';
|
4093 |
+
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus' ));
|
4094 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4095 |
|
4096 |
+
$name = __('Delete after', 'wp-photo-album-plus' );
|
4097 |
+
$desc = __('Delete photo after xx dislike votes.', 'wp-photo-album-plus' );
|
4098 |
+
$help = __('A value of 0 disables this feature.', 'wp-photo-album-plus' );
|
4099 |
+
$help .= '<br>'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus' );
|
4100 |
$slug = 'wppa_dislike_delete';
|
4101 |
+
$html = wppa_input($slug, '40px', '', __('reports', 'wp-photo-album-plus' ));
|
4102 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4103 |
|
4104 |
+
$name = __('Show dislike count', 'wp-photo-album-plus' );
|
4105 |
+
$desc = __('Show the number of dislikes in the rating bar.', 'wp-photo-album-plus' );
|
4106 |
+
$help = __('Displayes the total number of dislike votes for the current photo.', 'wp-photo-album-plus' );
|
4107 |
+
$help .= '<br>'.__('If "One button vote" is selected in item 5, this setting has no meaning', 'wp-photo-album-plus' );
|
4108 |
$slug = 'wppa_dislike_show_count';
|
4109 |
$html = wppa_checkbox($slug);
|
4110 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) != '1' );
|
4111 |
|
4112 |
+
$name = __('Show average rating', 'wp-photo-album-plus' );
|
4113 |
+
$desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus' );
|
4114 |
+
$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' );
|
4115 |
+
$help .= '<br>'.__('If unchecked, only the current users rating is displayed (if any).', 'wp-photo-album-plus' );
|
4116 |
+
$help .= '<br>'.__('If "One button vote" is selected in item 5, this box checked will display the vote count.', 'wp-photo-album-plus' );
|
4117 |
$slug = 'wppa_show_avg_rating';
|
4118 |
$html = wppa_checkbox($slug);
|
4119 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
4120 |
|
4121 |
+
$name = __('Avg and Mine on 2 lines', 'wp-photo-album-plus' );
|
4122 |
+
$desc = __('Display avarage and my rating on different lines', 'wp-photo-album-plus' );
|
4123 |
$help = '';
|
4124 |
$slug = 'wppa_show_avg_mine_2';
|
4125 |
$html = wppa_checkbox($slug);
|
4126 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
4127 |
|
4128 |
+
$name = __('Single vote button text', 'wp-photo-album-plus' );
|
4129 |
+
$desc = __('The text on the voting button.', 'wp-photo-album-plus' );
|
4130 |
+
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus' );
|
4131 |
$slug = 'wppa_vote_button_text';
|
4132 |
$html = wppa_input($slug, '100');
|
4133 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
4134 |
|
4135 |
+
$name = __('Single vote button text voted', 'wp-photo-album-plus' );
|
4136 |
+
$desc = __('The text on the voting button when voted.', 'wp-photo-album-plus' );
|
4137 |
+
$help = __('This text may contain qTranslate compatible language tags.', 'wp-photo-album-plus' );
|
4138 |
$slug = 'wppa_voted_button_text';
|
4139 |
$html = wppa_input($slug, '100');
|
4140 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
4141 |
|
4142 |
+
$name = __('Single vote button thumbnail', 'wp-photo-album-plus' );
|
4143 |
+
$desc = __('Display single vote button below thumbnails.', 'wp-photo-album-plus' );
|
4144 |
+
$help = __('This works only in single vote mode: item 5 set to "one button vote"', 'wp-photo-album-plus' );
|
4145 |
$slug = 'wppa_vote_thumb';
|
4146 |
$html = wppa_checkbox($slug);
|
4147 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help, wppa_opt( 'rating_max' ) == '1' );
|
4148 |
|
4149 |
+
$name = __('Medal bronze when', 'wp-photo-album-plus' );
|
4150 |
+
$desc = __('Photo gets medal bronze when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus' );
|
4151 |
+
$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' );
|
4152 |
$slug = 'wppa_medal_bronze_when';
|
4153 |
+
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus' ));
|
4154 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
4155 |
|
4156 |
+
$name = __('Medal silver when', 'wp-photo-album-plus' );
|
4157 |
+
$desc = __('Photo gets medal silver when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus' );
|
4158 |
+
$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' ));
|
4159 |
$slug = 'wppa_medal_silver_when';
|
4160 |
+
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus' ));
|
4161 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
4162 |
|
4163 |
+
$name = __('Medal gold when', 'wp-photo-album-plus' );
|
4164 |
+
$desc = __('Photo gets medal gold when number of top-scores ( 5 or 10 ).', 'wp-photo-album-plus' );
|
4165 |
+
$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' ));
|
4166 |
$slug = 'wppa_medal_gold_when';
|
4167 |
+
$html = wppa_input($slug, '50px', '', __('Topscores', 'wp-photo-album-plus' ));
|
4168 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
4169 |
|
4170 |
+
$name = __('Medal tag color', 'wp-photo-album-plus' );
|
4171 |
+
$desc = __('The color of the tag on the medal.', 'wp-photo-album-plus' );
|
4172 |
$help = '';
|
4173 |
$slug = 'wppa_medal_color';
|
4174 |
+
$opts = array( __('Red', 'wp-photo-album-plus' ), __('Green', 'wp-photo-album-plus' ), __('Blue', 'wp-photo-album-plus' ) );
|
4175 |
$vals = array( '1', '2', '3' );
|
4176 |
$html = wppa_select($slug, $opts, $vals);
|
4177 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
4178 |
|
4179 |
+
$name = __('Medal position', 'wp-photo-album-plus' );
|
4180 |
+
$desc = __('The position of the medal on the image.', 'wp-photo-album-plus' );
|
4181 |
$help = '';
|
4182 |
$slug = 'wppa_medal_position';
|
4183 |
+
$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' ) );
|
4184 |
$vals = array( 'topleft', 'topright', 'botleft', 'botright' );
|
4185 |
$html = wppa_select($slug, $opts, $vals);
|
4186 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
4187 |
|
4188 |
+
$name = __('Top criterium', 'wp-photo-album-plus' );
|
4189 |
+
$desc = __('The top sort item used for topten results from shortcodes.', 'wp-photo-album-plus' );
|
4190 |
$help = '';
|
4191 |
$slug = 'wppa_topten_sortby';
|
4192 |
+
$opts = array( __('Mean rating', 'wp-photo-album-plus' ),
|
4193 |
+
__('Rating count', 'wp-photo-album-plus' ),
|
4194 |
+
__('Viewcount', 'wp-photo-album-plus' ),
|
4195 |
+
__('Downloads', 'wp-photo-album-plus' ));
|
4196 |
$vals = array( 'mean_rating', 'rating_count', 'views', 'dlcount' );
|
4197 |
$html = wppa_select($slug, $opts, $vals);
|
4198 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
4199 |
|
4200 |
+
$name = __('Contest top creterium', 'wp-photo-album-plus' );
|
4201 |
+
$desc = __('The top sort creterium used for the contest.', 'wp-photo-album-plus' );
|
4202 |
$help = '';
|
4203 |
$slug = 'wppa_contest_sortby';
|
4204 |
+
$opts = array( __('Mean rating', 'wp-photo-album-plus' ),
|
4205 |
+
__('Total rating', 'wp-photo-album-plus' ));
|
4206 |
$vals = array( 'average', 'total' );
|
4207 |
$html = wppa_select($slug, $opts, $vals);
|
4208 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
4209 |
|
4210 |
+
$name = __('Contest photo numbering', 'wp-photo-album-plus' );
|
4211 |
+
$desc = __('The number to be placed near the preview.', 'wp-photo-album-plus' );
|
4212 |
$help = '';
|
4213 |
$slug = 'wppa_contest_number';
|
4214 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
4215 |
+
__('Photo id', 'wp-photo-album-plus' ),
|
4216 |
+
__('Sequence number', 'wp-photo-album-plus' ));
|
4217 |
$vals = array( 'none', 'id', 'seqno' );
|
4218 |
$html = wppa_select($slug, $opts, $vals);
|
4219 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
4220 |
|
4221 |
+
$name = __('Contest max ranking', 'wp-photo-album-plus' );
|
4222 |
+
$desc = __('The number of photos in the contest results display.', 'wp-photo-album-plus' );
|
4223 |
$help = '';
|
4224 |
$slug = 'wppa_contest_max';
|
4225 |
$html = wppa_number($slug, '3', '100');
|
4226 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
4227 |
|
4228 |
+
$name = __('Contest comment visibility', 'wp-photo-album-plus' );
|
4229 |
+
$desc = __('The policy to display comments on the contest display', 'wp-photo-album-plus' );
|
4230 |
+
$help = __('Admin always sees the comments', 'wp-photo-album-plus' );
|
4231 |
$slug = 'wppa_contest_comment_policy';
|
4232 |
$opts = array( __('None', 'wp-photo-album-plus' ),
|
4233 |
+
__('Commenter', 'wp-photo-album-plus' ),
|
4234 |
+
__('Commenter and photo owner', 'wp-photo-album-plus' ),
|
4235 |
+
__('Every visitor', 'wp-photo-album-plus' ));
|
4236 |
$vals = array( 'none', 'comowner', 'owners', 'all' );
|
4237 |
$html = wppa_select($slug, $opts, $vals);
|
4238 |
wppa_setting_new($slug, '36', $name, $desc, $html, $help);
|
4239 |
|
4240 |
+
$name = __('List Ratings', 'wp-photo-album-plus' );
|
4241 |
+
$desc = __('Show the most recent ratings.', 'wp-photo-album-plus' );
|
4242 |
$help = '';
|
4243 |
$slug = 'wppa_list_rating';
|
4244 |
$html = wppa_popup_button( $slug, '30' );
|
4256 |
wppa_setting_tab_description($desc);
|
4257 |
wppa_setting_box_header_new($tab);
|
4258 |
|
4259 |
+
$name = __('Search landing page', 'wp-photo-album-plus' );
|
4260 |
+
$desc = __('Display the search results on page.', 'wp-photo-album-plus' );
|
4261 |
+
$help = __('Select the page to be used to display search results. The page MUST contain [wppa].', 'wp-photo-album-plus' );
|
4262 |
+
$help .= '<br>'.__('You may give it the title "Search results" or something alike.', 'wp-photo-album-plus' );
|
4263 |
+
$help .= '<br>'.__('Or you may use the standard page on which you display the generic album.', 'wp-photo-album-plus' );
|
4264 |
$slug = 'wppa_search_linkpage';
|
4265 |
wppa_verify_page($slug);
|
4266 |
$pages = $wpdb->get_results( "SELECT ID, post_title, post_content FROM $wpdb->posts
|
4269 |
ORDER BY post_title", ARRAY_A );
|
4270 |
$opts = false;
|
4271 |
$vals = false;
|
4272 |
+
$opts[] = __('--- Please select a page ---', 'wp-photo-album-plus' );
|
4273 |
$vals[] = '0';
|
4274 |
if ($pages) {
|
4275 |
|
4276 |
// Translate
|
4277 |
foreach ( array_keys($pages) as $index ) {
|
4278 |
+
$pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus' );
|
4279 |
}
|
4280 |
$pages = wppa_array_sort($pages, 'post_title');
|
4281 |
foreach ($pages as $page) {
|
4282 |
if ( strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false ) {
|
4283 |
+
$opts[] = __($page['post_title'], 'wp-photo-album-plus' );
|
4284 |
$vals[] = $page['ID'];
|
4285 |
}
|
4286 |
else {
|
4287 |
+
$opts[] = '|'.__($page['post_title'], 'wp-photo-album-plus' ).'|';
|
4288 |
$vals[] = $page['ID'];
|
4289 |
}
|
4290 |
}
|
4294 |
$slug2 = 'wppa_search_oc';
|
4295 |
$opts2 = array('1','2','3','4','5');
|
4296 |
$vals2 = array('1','2','3','4','5');
|
4297 |
+
$html2 = '<div style="float:right;" ><div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus' ).'</div>'.wppa_select($slug2, $opts2, $vals2).'</div>';
|
4298 |
|
4299 |
$html = $html1 . $html2;
|
4300 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
4301 |
|
4302 |
+
$name = __('Exclude separate', 'wp-photo-album-plus' );
|
4303 |
+
$desc = __('Do not search \'separate\' albums.', 'wp-photo-album-plus' );
|
4304 |
+
$help = __('When checked, albums (and photos in them) that have the parent set to --- separate --- will be excluded from being searched.', 'wp-photo-album-plus' );
|
4305 |
+
$help .= '<br>'.__('Except when you start searching in a \'saparate\' album, with the "search in current section" box ticked.', 'wp-photo-album-plus' );
|
4306 |
$slug = 'wppa_excl_sep';
|
4307 |
$html = wppa_checkbox($slug);
|
4308 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4309 |
|
4310 |
+
$name = __('Include tags', 'wp-photo-album-plus' );
|
4311 |
+
$desc = __('Do also search the photo tags.', 'wp-photo-album-plus' );
|
4312 |
+
$help = __('When checked, the tags of the photo will also be searched.', 'wp-photo-album-plus' );
|
4313 |
$slug = 'wppa_search_tags';
|
4314 |
$html = wppa_checkbox($slug);
|
4315 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4316 |
|
4317 |
+
$name = __('Include categories', 'wp-photo-album-plus' );
|
4318 |
+
$desc = __('Do also search the album categories.', 'wp-photo-album-plus' );
|
4319 |
+
$help = __('When checked, the categories of the album will also be searched.', 'wp-photo-album-plus' );
|
4320 |
$slug = 'wppa_search_cats';
|
4321 |
$html = wppa_checkbox($slug);
|
4322 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4323 |
|
4324 |
+
$name = __('Include comments', 'wp-photo-album-plus' );
|
4325 |
+
$desc = __('Do also search the comments on photos.', 'wp-photo-album-plus' );
|
4326 |
+
$help = __('When checked, the comments of the photos will also be searched.', 'wp-photo-album-plus' );
|
4327 |
$slug = 'wppa_search_comments' ;
|
4328 |
$html = wppa_checkbox($slug);
|
4329 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
4330 |
|
4331 |
+
$name = __('Photos only', 'wp-photo-album-plus' );
|
4332 |
+
$desc = __('Search for photos only.', 'wp-photo-album-plus' );
|
4333 |
+
$help = __('When checked, only photos will be searched for.', 'wp-photo-album-plus' );
|
4334 |
$slug = 'wppa_photos_only';
|
4335 |
$html = wppa_checkbox($slug);
|
4336 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
4337 |
|
4338 |
+
$name = __('Max albums found', 'wp-photo-album-plus' );
|
4339 |
+
$desc = __('The maximum number of albums to be displayed.', 'wp-photo-album-plus' );
|
4340 |
$help = '';
|
4341 |
$slug = 'wppa_max_search_albums';
|
4342 |
$html = wppa_input($slug, '50px');
|
4343 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
4344 |
|
4345 |
+
$name = __('Max photos found', 'wp-photo-album-plus' );
|
4346 |
+
$desc = __('The maximum number of photos to be displayed.', 'wp-photo-album-plus' );
|
4347 |
$help = '';
|
4348 |
$slug = 'wppa_max_search_photos';
|
4349 |
$html = wppa_input($slug, '50px');
|
4350 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
4351 |
|
4352 |
+
$name = __('Tags OR only', 'wp-photo-album-plus' );
|
4353 |
+
$desc = __('No and / or buttons', 'wp-photo-album-plus' );
|
4354 |
+
$help = __('Hide the and/or radiobuttons and do the or method in the multitag widget and shortcode.', 'wp-photo-album-plus' );
|
4355 |
$slug = 'wppa_tags_or_only';
|
4356 |
$html = wppa_checkbox($slug);
|
4357 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
4358 |
|
4359 |
+
$name = __('Tags add Inverse', 'wp-photo-album-plus' );
|
4360 |
+
$desc = __('Add a checkbox to invert the selection.', 'wp-photo-album-plus' );
|
4361 |
+
$help = __('Adds an Invert (NOT) checkbox on the multitag widget and shortcode.', 'wp-photo-album-plus' );
|
4362 |
$slug = 'wppa_tags_not_on';
|
4363 |
$html = wppa_checkbox($slug);
|
4364 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
4365 |
|
4366 |
+
$name = __('Floating searchtoken', 'wp-photo-album-plus' );
|
4367 |
+
$desc = __('A match need not start at the first char.', 'wp-photo-album-plus' );
|
4368 |
+
$help = __('A match is found while searching also when the entered token is somewhere in the middle of a word.', 'wp-photo-album-plus' );
|
4369 |
$slug = 'wppa_wild_front';
|
4370 |
$html = wppa_checkbox($slug);
|
4371 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
4372 |
|
4373 |
+
$name = __('Search results display', 'wp-photo-album-plus' );
|
4374 |
+
$desc = __('Select the way the search results should be displayed.', 'wp-photo-album-plus' );
|
4375 |
+
$help = __('If you select anything different from "Albums and thumbnails", "Photos only" is assumed (item 6).', 'wp-photo-album-plus' );
|
4376 |
$slug = 'wppa_search_display_type';
|
4377 |
+
$opts = array( __('Albums and thumbnails', 'wp-photo-album-plus' ),
|
4378 |
+
__('Slideshow', 'wp-photo-album-plus' ),
|
4379 |
+
__('Slideonly slideshow', 'wp-photo-album-plus' ),
|
4380 |
+
__('Albums only', 'wp-photo-album-plus' )
|
4381 |
);
|
4382 |
$vals = array( 'content', 'slide', 'slideonly', 'albums' );
|
4383 |
$html = wppa_select( $slug, $opts, $vals);
|
4384 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
4385 |
|
4386 |
+
$name = __('Name max length', 'wp-photo-album-plus' );
|
4387 |
+
$desc = __('Max length of displayed photonames in supersearch selectionlist', 'wp-photo-album-plus' );
|
4388 |
+
$help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus' );
|
4389 |
$slug = 'wppa_ss_name_max';
|
4390 |
$html = $html = wppa_input($slug, '50px');
|
4391 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
4392 |
|
4393 |
+
$name = __('Text max length', 'wp-photo-album-plus' );
|
4394 |
+
$desc = __('Max length of displayed photo text in supersearch selectionlist', 'wp-photo-album-plus' );
|
4395 |
+
$help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus' );
|
4396 |
$slug = 'wppa_ss_text_max';
|
4397 |
$html = $html = wppa_input($slug, '50px');
|
4398 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
4399 |
|
4400 |
+
$name = __('Search toptext', 'wp-photo-album-plus' );
|
4401 |
+
$desc = __('The text at the top of the search box.', 'wp-photo-album-plus' );
|
4402 |
+
$help = __('This is the equivalence of the text you can enter in the widget activation screen to show above the input box, but now for the search shortcode display.', 'wp-photo-album-plus' );
|
4403 |
+
$help .= '<br>'.__('May contain unfiltered HTML.', 'wp-photo-album-plus' );
|
4404 |
$slug = 'wppa_search_toptext';
|
4405 |
$html = wppa_textarea($slug, $name);
|
4406 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
4407 |
|
4408 |
+
$name = __('Section search text', 'wp-photo-album-plus' );
|
4409 |
+
$desc = __('The labeltext at the checkbox for the \'Search in current section\' checkbox.', 'wp-photo-album-plus' );
|
4410 |
$help = ' ';
|
4411 |
$slug = 'wppa_search_in_section';
|
4412 |
$html = wppa_input($slug, '300px;');
|
4413 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
4414 |
|
4415 |
+
$name = __('Results search text', 'wp-photo-album-plus' );
|
4416 |
+
$desc = __('The labeltext at the checkbox for the \'Search in current results\' checkbox.', 'wp-photo-album-plus' );
|
4417 |
$help = ' ';
|
4418 |
$slug = 'wppa_search_in_results';
|
4419 |
$html = wppa_input($slug, '300px;');
|
4420 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
4421 |
|
4422 |
+
$name = __('Minimum search token length', 'wp-photo-album-plus' );
|
4423 |
+
$desc = __('The minmum number of chars in a search request.', 'wp-photo-album-plus' );
|
4424 |
$help = '';
|
4425 |
$slug = 'wppa_search_min_length';
|
4426 |
$html = wppa_number($slug, '1', '6');
|
4427 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
4428 |
|
4429 |
+
$name = __('Exclude from search', 'wp-photo-album-plus' );
|
4430 |
+
$desc = __('Exclude these words from search index.', 'wp-photo-album-plus' );
|
4431 |
+
$help = __('Enter words separated by commas (,)', 'wp-photo-album-plus' );
|
4432 |
$slug = 'wppa_search_user_void';
|
4433 |
$html = wppa_input($slug, '90%;');
|
4434 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
4435 |
|
4436 |
+
$name = __('Exclude numbers', 'wp-photo-album-plus' );
|
4437 |
+
$desc = __('Exclude numbers from search index.', 'wp-photo-album-plus' );
|
4438 |
+
$help = __('If ticked, photos and albums are not searchable by numbers.', 'wp-photo-album-plus' );
|
4439 |
$slug = 'wppa_search_numbers_void';
|
4440 |
$html = wppa_checkbox($slug);
|
4441 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
4442 |
|
4443 |
+
$name = __('Ignore slash', 'wp-photo-album-plus' );
|
4444 |
+
$desc = __('Ignore slash chracter (/).', 'wp-photo-album-plus' );
|
4445 |
$help = '';
|
4446 |
$slug = 'wppa_index_ignore_slash';
|
4447 |
$html = wppa_checkbox($slug);
|
4448 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
4449 |
|
4450 |
+
$name = __('Search category box', 'wp-photo-album-plus' );
|
4451 |
+
$desc = __('Add a category selection box', 'wp-photo-album-plus' );
|
4452 |
$help = '';
|
4453 |
$slug = 'wppa_search_catbox';
|
4454 |
$html = wppa_checkbox($slug);
|
4455 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
4456 |
|
4457 |
+
$name = __('Search selection boxes', 'wp-photo-album-plus' );
|
4458 |
+
$desc = __('Enter number of search selection boxes.', 'wp-photo-album-plus' );
|
4459 |
$help = '';
|
4460 |
$slug = 'wppa_search_selboxes';
|
4461 |
$opts = array( '0', '1', '2', '3' );
|
4463 |
$html = wppa_select( $slug, $opts, $vals );
|
4464 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
4465 |
|
4466 |
+
$name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '1');
|
4467 |
+
$desc = __('Enter caption text', 'wp-photo-album-plus' );
|
4468 |
$help = '';
|
4469 |
$slug = 'wppa_search_caption_0';
|
4470 |
$html = wppa_input($slug, '150px;');
|
4471 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
4472 |
|
4473 |
+
$name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '1');
|
4474 |
+
$desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
|
4475 |
$help = '';
|
4476 |
$slug = 'wppa_search_selbox_0';
|
4477 |
$html = wppa_textarea($slug);
|
4478 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
4479 |
|
4480 |
+
$name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '2');
|
4481 |
+
$desc = __('Enter caption text', 'wp-photo-album-plus' );
|
4482 |
$help = '';
|
4483 |
$slug = 'wppa_search_caption_1';
|
4484 |
$html = wppa_input($slug, '150px;');
|
4485 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
4486 |
|
4487 |
+
$name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '2');
|
4488 |
+
$desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
|
4489 |
$help = '';
|
4490 |
$slug = 'wppa_search_selbox_1';
|
4491 |
$html = wppa_textarea($slug);
|
4492 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
4493 |
|
4494 |
+
$name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '3');
|
4495 |
+
$desc = __('Enter caption text', 'wp-photo-album-plus' );
|
4496 |
$help = '';
|
4497 |
$slug = 'wppa_search_caption_2';
|
4498 |
$html = wppa_input($slug, '150px;');
|
4499 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
4500 |
|
4501 |
+
$name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '3');
|
4502 |
+
$desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
|
4503 |
$help = '';
|
4504 |
$slug = 'wppa_search_selbox_2';
|
4505 |
$html = wppa_textarea($slug);
|
4506 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
4507 |
|
4508 |
+
$name = __('Extended duplicate removal', 'wp-photo-album-plus' );
|
4509 |
+
$desc = __('Remove found items from search when name, description and image are identical', 'wp-photo-album-plus' );
|
4510 |
$help = '';
|
4511 |
$slug = 'wppa_extended_duplicate_remove';
|
4512 |
$html = wppa_checkbox($slug);
|
4513 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
4514 |
|
4515 |
+
$name = __('Search field placeholder', 'wp-photo-album-plus' );
|
4516 |
+
$desc = __('The text of the placeholder', 'wp-photo-album-plus' );
|
4517 |
$help = '';
|
4518 |
$slug = 'wppa_search_placeholder';
|
4519 |
$html = wppa_input($slug, '150px;');
|
4520 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
4521 |
|
4522 |
+
$name = __('Search form method', 'wp-photo-album-plus' );
|
4523 |
+
$desc = __('Either "get" or "post"', 'wp-photo-album-plus' );
|
4524 |
+
$help = __('May be set to "get" to avoid conflicts with other plugins or certain php versions', 'wp-photo-album-plus' );
|
4525 |
$slug = 'wppa_search_form_method';
|
4526 |
$html = wppa_select($slug, array('post', 'get'), array('post', 'get'));
|
4527 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
4528 |
|
4529 |
+
$name = __('Use wppa search form', 'wp-photo-album-plus' );
|
4530 |
+
$desc = __('Uses wppa specific form', 'wp-photo-album-plus' );
|
4531 |
$help = __('You may need to enable this when other (search) plugins break the wppa search mechanism');
|
4532 |
$slug = 'wppa_use_wppa_search_form';
|
4533 |
$onch = '';
|
4534 |
$html = wppa_checkbox($slug, $onch);
|
4535 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
4536 |
|
4537 |
+
$name = __('List Index', 'wp-photo-album-plus' );
|
4538 |
+
$desc = __('Show the content of the index table.', 'wp-photo-album-plus' );
|
4539 |
$help = '';
|
4540 |
$slug1 = 'wppa_list_index_display_start';
|
4541 |
$slug2 = 'wppa_list_index';
|
4542 |
+
$html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus' ).' </small>'.wppa_input( $slug1, '150px' );
|
4543 |
$html2 = wppa_popup_button( $slug2, '30' );
|
4544 |
$html = $html1 . '<span style="float:left;" > </span>' . $html2;
|
4545 |
wppa_setting_new(false, '34', $name, $desc, $html, $help);
|
4546 |
|
4547 |
+
$name = __('Show empty search', 'wp-photo-album-plus' );
|
4548 |
+
$desc = __('Display empty search message', 'wp-photo-album-plus' );
|
4549 |
+
$help = __('Display a message when a search operation has an empty result', 'wp-photo-album-plus' );
|
4550 |
$slug = 'wppa_show_empty_search';
|
4551 |
$html = wppa_checkbox($slug);
|
4552 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
4563 |
wppa_setting_tab_description($desc);
|
4564 |
wppa_setting_box_header_new($tab);
|
4565 |
|
4566 |
+
$name = __('Widget width', 'wp-photo-album-plus' );
|
4567 |
+
$desc = __('The useable width within widgets.', 'wp-photo-album-plus' );
|
4568 |
+
$help = __('Widget width for photo of the day, general purpose (default), slideshow (default) and upload widgets.', 'wp-photo-album-plus' );
|
4569 |
$slug = 'wppa_widget_width';
|
4570 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4571 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4572 |
|
4573 |
+
$name = __('TopTen count', 'wp-photo-album-plus' );
|
4574 |
+
$desc = __('Number of photos in TopTen widget.', 'wp-photo-album-plus' );
|
4575 |
+
$help = __('Enter the maximum number of rated photos in the TopTen widget.', 'wp-photo-album-plus' );
|
4576 |
$slug1 = 'wppa_topten_count';
|
4577 |
+
$html1 = wppa_input($slug1, '40px', '', __('photos', 'wp-photo-album-plus' ));
|
4578 |
$slug2 = 'wppa_topten_non_zero';
|
4579 |
+
$html2 = wppa_checkbox($slug2).__('Non zero only', 'wp-photo-album-plus' );
|
4580 |
wppa_setting_new($slug1, '2', $name, $desc, $html1.$html2, $help);
|
4581 |
|
4582 |
+
$name = __('TopTen size', 'wp-photo-album-plus' );
|
4583 |
+
$desc = __('Size of thumbnails in TopTen widget.', 'wp-photo-album-plus' );
|
4584 |
+
$help = __('Enter the size for the mini photos in the TopTen widget.', 'wp-photo-album-plus' );
|
4585 |
+
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus' );
|
4586 |
+
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus' );
|
4587 |
$slug = 'wppa_topten_size';
|
4588 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4589 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4590 |
|
4591 |
+
$name = __('Comment count', 'wp-photo-album-plus' );
|
4592 |
+
$desc = __('Number of entries in Comment widget.', 'wp-photo-album-plus' );
|
4593 |
+
$help = __('Enter the maximum number of entries in the Comment widget.', 'wp-photo-album-plus' );
|
4594 |
$slug = 'wppa_comten_count';
|
4595 |
+
$html = wppa_input($slug, '40px', '', __('entries', 'wp-photo-album-plus' ));
|
4596 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4597 |
|
4598 |
+
$name = __('Comment size', 'wp-photo-album-plus' );
|
4599 |
+
$desc = __('Size of thumbnails in Comment widget.', 'wp-photo-album-plus' );
|
4600 |
+
$help = __('Enter the size for the mini photos in the Comment widget.', 'wp-photo-album-plus' );
|
4601 |
+
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus' );
|
4602 |
+
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus' );
|
4603 |
$slug = 'wppa_comten_size';
|
4604 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4605 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
4606 |
|
4607 |
+
$name = __('Thumbnail count', 'wp-photo-album-plus' );
|
4608 |
+
$desc = __('Number of photos in Thumbnail widget.', 'wp-photo-album-plus' );
|
4609 |
+
$help = (__('Enter the maximum number of rated photos in the Thumbnail widget.', 'wp-photo-album-plus' ));
|
4610 |
$slug = 'wppa_thumbnail_widget_count';
|
4611 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus' ));
|
4612 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
4613 |
|
4614 |
+
$name = __('Thumbnail widget size', 'wp-photo-album-plus' );
|
4615 |
+
$desc = __('Size of thumbnails in Thumbnail widget.', 'wp-photo-album-plus' );
|
4616 |
+
$help = __('Enter the size for the mini photos in the Thumbnail widget.', 'wp-photo-album-plus' );
|
4617 |
+
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus' );
|
4618 |
+
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus' );
|
4619 |
$slug = 'wppa_thumbnail_widget_size';
|
4620 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4621 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
4622 |
|
4623 |
+
$name = __('LasTen count', 'wp-photo-album-plus' );
|
4624 |
+
$desc = __('Number of photos in Last Ten widget.', 'wp-photo-album-plus' );
|
4625 |
+
$help = __('Enter the maximum number of photos in the LasTen widget.', 'wp-photo-album-plus' );
|
4626 |
$slug = 'wppa_lasten_count';
|
4627 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus' ));
|
4628 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
4629 |
|
4630 |
+
$name = __('LasTen size', 'wp-photo-album-plus' );
|
4631 |
+
$desc = __('Size of thumbnails in Last Ten widget.', 'wp-photo-album-plus' );
|
4632 |
+
$help = __('Enter the size for the mini photos in the LasTen widget.', 'wp-photo-album-plus' );
|
4633 |
+
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus' );
|
4634 |
+
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus' );
|
4635 |
$slug = 'wppa_lasten_size';
|
4636 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4637 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
4638 |
|
4639 |
+
$name = __('Album widget count', 'wp-photo-album-plus' );
|
4640 |
+
$desc = __('Number of albums in Album widget.', 'wp-photo-album-plus' );
|
4641 |
+
$help = __('Enter the maximum number of thumbnail photos of albums in the Album widget.', 'wp-photo-album-plus' );
|
4642 |
$slug = 'wppa_album_widget_count';
|
4643 |
+
$html = wppa_input($slug, '40px', '', __('albums', 'wp-photo-album-plus' ));
|
4644 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
4645 |
|
4646 |
+
$name = __('Album widget size', 'wp-photo-album-plus' );
|
4647 |
+
$desc = __('Size of thumbnails in Album widget.', 'wp-photo-album-plus' );
|
4648 |
+
$help = __('Enter the size for the mini photos in the Album widget.', 'wp-photo-album-plus' );
|
4649 |
+
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus' );
|
4650 |
+
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus' );
|
4651 |
$slug = 'wppa_album_widget_size';
|
4652 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4653 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
4654 |
|
4655 |
+
$name = __('FeaTen count', 'wp-photo-album-plus' );
|
4656 |
+
$desc = __('Number of photos in Featured Ten widget.', 'wp-photo-album-plus' );
|
4657 |
+
$help = __('Enter the maximum number of photos in the FeaTen widget.', 'wp-photo-album-plus' );
|
4658 |
$slug = 'wppa_featen_count';
|
4659 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus' ));
|
4660 |
$clas = '';
|
4661 |
$tags = 'count,widget';
|
4662 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
4663 |
|
4664 |
+
$name = __('FeaTen size', 'wp-photo-album-plus' );
|
4665 |
+
$desc = __('Size of thumbnails in Featured Ten widget.', 'wp-photo-album-plus' );
|
4666 |
+
$help = __('Enter the size for the mini photos in the FeaTen widget.', 'wp-photo-album-plus' );
|
4667 |
+
$help .= '<br>'.__('The size applies to the width or height, whatever is the largest.', 'wp-photo-album-plus' );
|
4668 |
+
$help .= '<br>'.__('Recommended values: 86 for a two column and 56 for a three column display.', 'wp-photo-album-plus' );
|
4669 |
$slug = 'wppa_featen_size';
|
4670 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4671 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
4672 |
|
4673 |
+
$name = __('Tagcloud min size', 'wp-photo-album-plus' );
|
4674 |
+
$desc = __('Minimal fontsize in tagclouds', 'wp-photo-album-plus' );
|
4675 |
$help = '';
|
4676 |
$slug = 'wppa_tagcloud_min';
|
4677 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4678 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
4679 |
|
4680 |
+
$name = __('Tagcloud max size', 'wp-photo-album-plus' );
|
4681 |
+
$desc = __('Maximal fontsize in tagclouds', 'wp-photo-album-plus' );
|
4682 |
$help = '';
|
4683 |
$slug = 'wppa_tagcloud_max';
|
4684 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
4685 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
4686 |
|
4687 |
+
$name = __('Tagcloud character sizing', 'wp-photo-album-plus' );
|
4688 |
+
$desc = __('Formula to decide fontsizes', 'wp-photo-album-plus' );
|
4689 |
$help = '';
|
4690 |
$slug = 'wppa_tagcloud_formula';
|
4691 |
$opts = array('linear', 'quadratic', 'cubic');
|
4701 |
wppa_setting_tab_description($desc);
|
4702 |
wppa_setting_box_header_new($tab);
|
4703 |
|
4704 |
+
$name = __('Big Browse Buttons in widget', 'wp-photo-album-plus' );
|
4705 |
+
$desc = __('Enable invisible browsing buttons in widget slideshows.', 'wp-photo-album-plus' );
|
4706 |
+
$help = __('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wp-photo-album-plus' );
|
4707 |
+
$help .= '<br>'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus' );
|
4708 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '2' );
|
4709 |
$slug = 'wppa_show_bbb_widget';
|
4710 |
$html = wppa_checkbox($slug);
|
4711 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4712 |
|
4713 |
+
$name = __('Ugly Browse Buttons in widget', 'wp-photo-album-plus' );
|
4714 |
+
$desc = __('Enable ugly browsing buttons in widget slideshows.', 'wp-photo-album-plus' );
|
4715 |
+
$help = __('If checked, the fullsize image is covered by browse buttons.', 'wp-photo-album-plus' );
|
4716 |
+
$help .= '<br>'.__('Make sure the Maximum height is properly configured to prevent these areas to overlap unwanted space.', 'wp-photo-album-plus' );
|
4717 |
$help .= '<br>'.wppa_see_also( 'slide', '1', '2' );
|
4718 |
$slug = 'wppa_show_ubb_widget';
|
4719 |
$html = wppa_checkbox($slug);
|
4720 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4721 |
|
4722 |
+
$name = __('Album widget tooltip', 'wp-photo-album-plus' );
|
4723 |
+
$desc = __('Show the album description on hoovering thumbnail in album widget', 'wp-photo-album-plus' );
|
4724 |
$help = '';
|
4725 |
$slug = 'wppa_show_albwidget_tooltip';
|
4726 |
$html = wppa_checkbox($slug);
|
4734 |
wppa_setting_tab_description($desc);
|
4735 |
wppa_setting_box_header_new($tab);
|
4736 |
|
4737 |
+
$name = __('QR Code widget size', 'wp-photo-album-plus' );
|
4738 |
+
$desc = __('The size of the QR code display.', 'wp-photo-album-plus' );
|
4739 |
$help = '';
|
4740 |
$slug = 'wppa_qr_size';
|
4741 |
+
$html = wppa_input($slug, '50px', '', __('pixels', 'wp-photo-album-plus' ));
|
4742 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4743 |
|
4744 |
+
$name = __('QR color', 'wp-photo-album-plus' );
|
4745 |
+
$desc = __('The display color of the qr code (dark)', 'wp-photo-album-plus' );
|
4746 |
+
$help = __('This color MUST be given in hexadecimal format!', 'wp-photo-album-plus' );
|
4747 |
$slug = 'wppa_qr_color';
|
4748 |
$html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
|
4749 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4750 |
|
4751 |
+
$name = __('QR background color', 'wp-photo-album-plus' );
|
4752 |
+
$desc = __('The background color of the qr code (light)', 'wp-photo-album-plus' );
|
4753 |
$help = '';
|
4754 |
$slug = 'wppa_qr_bgcolor';
|
4755 |
$html = wppa_input($slug, '100px', '', '', "checkColor('".$slug."')") . wppa_color_box($slug);
|
4756 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4757 |
|
4758 |
+
$name = __('QR cache', 'wp-photo-album-plus' );
|
4759 |
+
$desc = __('Enable caching QR codes', 'wp-photo-album-plus' ) . ' ' . sprintf( __('So far %d cache hits, %d miss', 'wp-photo-album-plus' ), wppa_get_option('wppa_qr_cache_hits', '0'), wppa_get_option('wppa_qr_cache_miss', '0'));
|
4760 |
+
$help = __('Enable this to avoid DoS on heavy loads on the qrserver', 'wp-photo-album-plus' ); $slug = 'wppa_qr_cache';
|
4761 |
$html = wppa_checkbox($slug);
|
4762 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4763 |
|
4773 |
wppa_setting_tab_description($desc);
|
4774 |
wppa_setting_box_header_new($tab);
|
4775 |
|
4776 |
+
$name = __('Photo names in urls', 'wp-photo-album-plus' );
|
4777 |
+
$desc = __('Display photo names in urls.', 'wp-photo-album-plus' );
|
4778 |
+
$help = __('Urls to wppa+ displays will contain photonames instead of numbers.', 'wp-photo-album-plus' );
|
4779 |
+
$help .= '<br>'.__('It is your responsibility to avoid duplicate names of photos in the same album.', 'wp-photo-album-plus' );
|
4780 |
$slug = 'wppa_use_photo_names_in_urls';
|
4781 |
$html = wppa_checkbox($slug);
|
4782 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4783 |
|
4784 |
+
$name = __('Album names in urls', 'wp-photo-album-plus' );
|
4785 |
+
$desc = __('Display album names in urls.', 'wp-photo-album-plus' );
|
4786 |
+
$help = __('Urls to wppa+ displays will contain albumnames instead of numbers.', 'wp-photo-album-plus' );
|
4787 |
+
$help .= '<br>'.__('It is your responsibility to avoid duplicate names of albums in the system.', 'wp-photo-album-plus' );
|
4788 |
$slug = 'wppa_use_album_names_in_urls';
|
4789 |
$html = wppa_checkbox($slug);
|
4790 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4791 |
|
4792 |
+
$name = __('Use short query args', 'wp-photo-album-plus' );
|
4793 |
+
$desc = __('Use &album=... &photo=...', 'wp-photo-album-plus' );
|
4794 |
+
$help = __('Urls to wppa+ displays will contain &album=... &photo=... instead of &wppa-album=... &wppa-photo=...', 'wp-photo-album-plus' );
|
4795 |
+
$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' );
|
4796 |
$slug = 'wppa_use_short_qargs';
|
4797 |
$html = wppa_checkbox($slug);
|
4798 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4799 |
|
4800 |
+
$name = __('Enable pretty links', 'wp-photo-album-plus' );
|
4801 |
+
$desc = __('Enable the generation and understanding of pretty links.', 'wp-photo-album-plus' );
|
4802 |
+
$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' );
|
4803 |
+
$help .= '<br>'.__('These types of links will be interpreted and cause a redirection on entering.', 'wp-photo-album-plus' );
|
4804 |
+
$help .= '<br>'.__('It is recommended to check this box. It shortens links dramatically and simplifies qr codes.', 'wp-photo-album-plus' );
|
4805 |
+
$help .= '<br>'.__('However, you may encounter conflicts with themes and/or other plugins, so test it throughly!', 'wp-photo-album-plus' );
|
4806 |
+
$help .= '<br>'.__('Photo names in urls must be UNchecked for this setting to work!', 'wp-photo-album-plus' );
|
4807 |
$help .= '<br>'.wppa_see_also( 'links', '1', '1' );
|
4808 |
$slug = 'wppa_use_pretty_links';
|
4809 |
$opts = array( __( 'None', 'wp-photo-album-plus' ),
|
4814 |
$html = wppa_select($slug, $opts, $vals );
|
4815 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4816 |
|
4817 |
+
$name = __('Enable encrypted links', 'wp-photo-album-plus' );
|
4818 |
+
$desc = __('Encrypt album and photo ids in links.', 'wp-photo-album-plus' );
|
4819 |
$help = '';
|
4820 |
$slug = 'wppa_use_encrypted_links';
|
4821 |
$onch = 'wppaRefreshAfter();';
|
4822 |
$html = wppa_checkbox($slug, $onch);
|
4823 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
4824 |
|
4825 |
+
$name = __('Refuse unencrypted', 'wp-photo-album-plus' );
|
4826 |
+
$desc = __('When encrypted is enabled, refuse unencrypted urls.', 'wp-photo-album-plus' );
|
4827 |
$help = '';
|
4828 |
$slug = 'wppa_refuse_unencrypted';
|
4829 |
$html = wppa_checkbox($slug);
|
4835 |
{
|
4836 |
$desc = $wppa_subtab_names[$tab]['2'];
|
4837 |
wppa_setting_tab_description($desc);
|
4838 |
+
$coldef = array( __('#', 'wp-photo-album-plus' ) => '24px;',
|
4839 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
4840 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
4841 |
+
__('Link type', 'wp-photo-album-plus' ) => 'auto;',
|
4842 |
+
__('Landing page', 'wp-photo-album-plus' ) => 'auto;',
|
4843 |
+
__('New tab', 'wp-photo-album-plus' ) => '80px;',
|
4844 |
+
__('PSO', 'wp-photo-album-plus' ) => '80px;',
|
4845 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
4846 |
);
|
4847 |
wppa_setting_box_header_new($tab, $coldef);
|
4848 |
|
4849 |
+
$name = __('Cover Image', 'wp-photo-album-plus' );
|
4850 |
+
$desc = __('The link from the cover image of an album.', 'wp-photo-album-plus' );
|
4851 |
+
$help = __('Select the type of link the coverphoto points to.', 'wp-photo-album-plus' );
|
4852 |
+
$help .= '<br>'.__('The link from the album title can be configured on the Edit Album page.', 'wp-photo-album-plus' );
|
4853 |
+
$help .= '<br>'.__('This link will be used for the photo also if you select: same as title.', 'wp-photo-album-plus' );
|
4854 |
+
$help .= '<br>'.__('If you specify New Tab on this line, all links from the cover will open a new tab,', 'wp-photo-album-plus' );
|
4855 |
$slug1 = 'wppa_coverimg_linktype';
|
4856 |
$slug2 = 'wppa_coverimg_linkpage';
|
4857 |
wppa_verify_page($slug2);
|
4859 |
$slug4 = 'wppa_coverimg_overrule';
|
4860 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
4861 |
$opts = array(
|
4862 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
4863 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
4864 |
+
__('same as title.', 'wp-photo-album-plus' ),
|
4865 |
+
__('lightbox.', 'wp-photo-album-plus' ),
|
4866 |
+
__('a slideshow starting at the photo', 'wp-photo-album-plus' )
|
4867 |
);
|
4868 |
$vals = array(
|
4869 |
'none',
|
4880 |
$html = array($html1, $html2, $html3, $html4);
|
4881 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
4882 |
|
4883 |
+
$name = __('Thumbnail', 'wp-photo-album-plus' );
|
4884 |
+
$desc = __('Thumbnail link.', 'wp-photo-album-plus' );
|
4885 |
+
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus' );
|
4886 |
+
$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' );
|
4887 |
+
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus' );
|
4888 |
$slug1 = 'wppa_thumb_linktype';
|
4889 |
$slug2 = 'wppa_thumb_linkpage';
|
4890 |
wppa_verify_page($slug2);
|
4892 |
$slug4 = 'wppa_thumb_overrule';
|
4893 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
4894 |
$opts = array(
|
4895 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
4896 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
4897 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus' ),
|
4898 |
+
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus' ),
|
4899 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
4900 |
+
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus' ),
|
4901 |
+
__('the fs photo with download and print buttons.', 'wp-photo-album-plus' ),
|
4902 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus' ),
|
4903 |
+
__('lightbox.', 'wp-photo-album-plus' )
|
4904 |
);
|
4905 |
$vals = array(
|
4906 |
'none',
|
4914 |
'lightbox'
|
4915 |
);
|
4916 |
if ( wppa_switch( 'auto_page') ) {
|
4917 |
+
$opts[] = __('Auto Page', 'wp-photo-album-plus' );
|
4918 |
$vals[] = 'autopage';
|
4919 |
}
|
4920 |
$html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
|
4925 |
$html = array($html1, $html2, $html3, $html4);
|
4926 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
4927 |
|
4928 |
+
$name = __('Sphoto', 'wp-photo-album-plus' );
|
4929 |
+
$desc = __('Single photo link.', 'wp-photo-album-plus' );
|
4930 |
+
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus' );
|
4931 |
+
$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' );
|
4932 |
+
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus' );
|
4933 |
$slug1 = 'wppa_sphoto_linktype';
|
4934 |
$slug2 = 'wppa_sphoto_linkpage';
|
4935 |
wppa_verify_page($slug2);
|
4937 |
$slug4 = 'wppa_sphoto_overrule';
|
4938 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
4939 |
$opts = array(
|
4940 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
4941 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
4942 |
+
__('the content of the album.', 'wp-photo-album-plus' ),
|
4943 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus' ),
|
4944 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
4945 |
+
__('lightbox.', 'wp-photo-album-plus' )
|
4946 |
);
|
4947 |
$vals = array(
|
4948 |
'none',
|
4960 |
$html = array($html1, $html2, $html3, $html4);
|
4961 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
4962 |
|
4963 |
+
$name = __('Mphoto', 'wp-photo-album-plus' );
|
4964 |
+
$desc = __('Media-like (like WP photo with caption) photo link.', 'wp-photo-album-plus' );
|
4965 |
+
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus' );
|
4966 |
+
$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' );
|
4967 |
+
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus' );
|
4968 |
$slug1 = 'wppa_mphoto_linktype';
|
4969 |
$slug2 = 'wppa_mphoto_linkpage';
|
4970 |
wppa_verify_page($slug2);
|
4979 |
$html = array($html1, $html2, $html3, $html4);
|
4980 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
4981 |
|
4982 |
+
$name = __('Xphoto', 'wp-photo-album-plus' );
|
4983 |
+
$desc = __('Media-like (like WP photo with - extended - caption) photo link.', 'wp-photo-album-plus' );
|
4984 |
+
$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' );
|
4985 |
+
$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' );
|
4986 |
+
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus' );
|
4987 |
$slug1 = 'wppa_xphoto_linktype';
|
4988 |
$slug2 = 'wppa_xphoto_linkpage';
|
4989 |
wppa_verify_page($slug2);
|
4998 |
$html = array($html1, $html2, $html3, $html4);
|
4999 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
5000 |
|
5001 |
+
$name = __('Slideshow', 'wp-photo-album-plus' );
|
5002 |
+
$desc = __('Slideshow fullsize link', 'wp-photo-album-plus' );
|
5003 |
+
$help = __('You can overrule lightbox but not big browse buttons with the photo specifc link.', 'wp-photo-album-plus' );
|
5004 |
+
$help .= '\n\n* '.__('fullsize slideshow can only be set by the WPPA_SET shortcode.', 'wp-photo-album-plus' );
|
5005 |
$slug1 = 'wppa_slideshow_linktype';
|
5006 |
$slug2 = 'wppa_slideshow_linkpage';
|
5007 |
wppa_verify_page($slug2);
|
5009 |
$slug4 = 'wppa_slideshow_overrule';
|
5010 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5011 |
$opts = array(
|
5012 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
5013 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
5014 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
5015 |
+
__('lightbox.', 'wp-photo-album-plus' ),
|
5016 |
+
__('lightbox single photos.', 'wp-photo-album-plus' ),
|
5017 |
+
__('the fs photo with download and print buttons.', 'wp-photo-album-plus' ),
|
5018 |
+
__('the thumbnails.', 'wp-photo-album-plus' ),
|
5019 |
+
__('same as film link', 'wp-photo-album-plus' ),
|
5020 |
+
__('fullsize slideshow', 'wp-photo-album-plus' ) . '*|',
|
5021 |
);
|
5022 |
$vals = array(
|
5023 |
'none',
|
5038 |
$html = array($html1, $html2, $html3, $html4);
|
5039 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
5040 |
|
5041 |
+
$name = __('Film linktype', 'wp-photo-album-plus' );
|
5042 |
+
$desc = __('Direct access goto image in:', 'wp-photo-album-plus' );
|
5043 |
+
$help = __('Select the action to be taken when the user clicks on a filmstrip image.', 'wp-photo-album-plus' );
|
5044 |
$slug1 = 'wppa_film_linktype';
|
5045 |
$slug3 = 'wppa_film_blank';
|
5046 |
$slug4 = 'wppa_film_overrule';
|
5047 |
$opts = array(
|
5048 |
+
__('slideshow window', 'wp-photo-album-plus' ),
|
5049 |
+
__('lightbox overlay', 'wp-photo-album-plus' )
|
5050 |
);
|
5051 |
$vals = array(
|
5052 |
'slideshow',
|
5059 |
$html = array($html1, $html2, $html3, $html4);
|
5060 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
5061 |
|
5062 |
+
$name = __('Grid', 'wp-photo-album-plus' );
|
5063 |
+
$desc = __('Grid photo link.', 'wp-photo-album-plus' );
|
5064 |
+
$help = __('Select the type of link you want, or no link at all.', 'wp-photo-album-plus' );
|
5065 |
+
$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' );
|
5066 |
+
$help .= '<br>'.__('Note that a page must have at least [wppa] in its content to show up the photo(s).', 'wp-photo-album-plus' );
|
5067 |
$slug1 = 'wppa_grid_linktype';
|
5068 |
$slug2 = 'wppa_grid_linkpage';
|
5069 |
wppa_verify_page($slug2);
|
5071 |
$slug4 = 'wppa_grid_overrule';
|
5072 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5073 |
$opts = array(
|
5074 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
5075 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
5076 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus' ),
|
5077 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
5078 |
+
__('lightbox.', 'wp-photo-album-plus' )
|
5079 |
);
|
5080 |
$vals = array(
|
5081 |
'none',
|
5100 |
wppa_setting_tab_description($desc);
|
5101 |
wppa_setting_box_header_new($tab, $coldef);
|
5102 |
|
5103 |
+
$name = __('PotdWidget', 'wp-photo-album-plus' );
|
5104 |
+
$desc = __('Photo Of The Day widget link.', 'wp-photo-album-plus' );
|
5105 |
+
$help = __('Select the type of link the photo of the day points to.', 'wp-photo-album-plus' );
|
5106 |
+
$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' );
|
5107 |
$slug1 = 'wppa_potd_linktype';
|
5108 |
$slug2 = 'wppa_potd_linkpage';
|
5109 |
wppa_verify_page($slug2);
|
5111 |
$slug4 = 'wppa_potdwidget_overrule';
|
5112 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5113 |
$opts = array(
|
5114 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
5115 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
5116 |
+
__('defined on widget admin page.', 'wp-photo-album-plus' ),
|
5117 |
+
__('the content of the album.', 'wp-photo-album-plus' ),
|
5118 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus' ),
|
5119 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
5120 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus' ),
|
5121 |
+
__('lightbox.', 'wp-photo-album-plus' )
|
5122 |
);
|
5123 |
$vals = array(
|
5124 |
'none',
|
5138 |
$html = array($html1, $html2, $html3, $html4);
|
5139 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
5140 |
|
5141 |
+
$name = __('SlideWidget', 'wp-photo-album-plus' );
|
5142 |
+
$desc = __('Slideshow widget photo link.', 'wp-photo-album-plus' );
|
5143 |
+
$help = __('Select the type of link the slideshow photos point to.', 'wp-photo-album-plus' );
|
5144 |
$slug1 = 'wppa_slideonly_widget_linktype';
|
5145 |
$slug2 = 'wppa_slideonly_widget_linkpage';
|
5146 |
wppa_verify_page($slug2);
|
5148 |
$slug4 = 'wppa_sswidget_overrule';
|
5149 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5150 |
$opts = array(
|
5151 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
5152 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
5153 |
+
__('defined at widget activation.', 'wp-photo-album-plus' ),
|
5154 |
+
__('the content of the album.', 'wp-photo-album-plus' ),
|
5155 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus' ),
|
5156 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
5157 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus' ),
|
5158 |
+
__('lightbox.', 'wp-photo-album-plus' )
|
5159 |
);
|
5160 |
$vals = array(
|
5161 |
'none',
|
5175 |
$html = array($html1, $html2, $html3, $html4);
|
5176 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
5177 |
|
5178 |
+
$name = __('Album widget', 'wp-photo-album-plus' );
|
5179 |
+
$desc = __('Album widget thumbnail link', 'wp-photo-album-plus' );
|
5180 |
+
$help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus' ) .
|
5181 |
'<br>' .
|
5182 |
+
__('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' );
|
5183 |
$slug1 = 'wppa_album_widget_linktype';
|
5184 |
$slug2 = 'wppa_album_widget_linkpage';
|
5185 |
wppa_verify_page($slug2);
|
5187 |
$slug4 = 'wppa_album_widget_overrule';
|
5188 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5189 |
$opts = array(
|
5190 |
+
__('subalbums and thumbnails.', 'wp-photo-album-plus' ),
|
5191 |
+
__('slideshow', 'wp-photo-album-plus' ),
|
5192 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus' ),
|
5193 |
+
__('lightbox', 'wp-photo-album-plus' ),
|
5194 |
);
|
5195 |
$vals = array(
|
5196 |
'content',
|
5202 |
$npag = wppa_need_page($slug1);
|
5203 |
$html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
|
5204 |
$html3 = $npag ? wppa_checkbox($slug3) : '';
|
5205 |
+
$html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus' )).'" style="float:left; cursor:pointer;" >ASO </span>'.wppa_checkbox($slug4);
|
5206 |
$html = array($html1, $html2, $html3, $html4);
|
5207 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
5208 |
|
5209 |
+
$name = __('Album navigator widget', 'wp-photo-album-plus' );
|
5210 |
+
$desc = __('Album navigator widget link', 'wp-photo-album-plus' );
|
5211 |
+
$help = __('Select the type of link the album widget photos point to.', 'wp-photo-album-plus' ) .
|
5212 |
'<br>' .
|
5213 |
+
__('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' );
|
5214 |
$slug1 = 'wppa_album_navigator_widget_linktype';
|
5215 |
$slug2 = 'wppa_album_navigator_widget_linkpage';
|
5216 |
wppa_verify_page($slug2);
|
5218 |
$slug4 = 'wppa_album_navigator_widget_overrule';
|
5219 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5220 |
$opts = array(
|
5221 |
+
__('thumbnails', 'wp-photo-album-plus' ),
|
5222 |
+
__('slideshow', 'wp-photo-album-plus' ),
|
5223 |
+
__('subalbums and thumbnails', 'wp-photo-album-plus' ),
|
5224 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus' ),
|
5225 |
+
__('lightbox', 'wp-photo-album-plus' ),
|
5226 |
);
|
5227 |
$vals = array(
|
5228 |
'thumbs',
|
5235 |
$npag = wppa_need_page($slug1);
|
5236 |
$html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
|
5237 |
$html3 = $npag ? wppa_checkbox($slug3) : '';
|
5238 |
+
$html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus' )).'" style="float:left; cursor:pointer;" >ASO </span>'.wppa_checkbox($slug4);
|
5239 |
$html = array($html1, $html2, $html3, $html4);
|
5240 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
5241 |
|
5242 |
+
$name = __('ThumbnailWidget', 'wp-photo-album-plus' );
|
5243 |
+
$desc = __('Thumbnail widget photo link.', 'wp-photo-album-plus' );
|
5244 |
+
$help = __('Select the type of link the thumbnail photos point to.', 'wp-photo-album-plus' );
|
5245 |
$slug1 = 'wppa_thumbnail_widget_linktype';
|
5246 |
$slug2 = 'wppa_thumbnail_widget_linkpage';
|
5247 |
wppa_verify_page($slug2);
|
5249 |
$slug4 = 'wppa_thumbnail_widget_overrule';
|
5250 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5251 |
$opts = array(
|
5252 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
5253 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
5254 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus' ),
|
5255 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
5256 |
+
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus' ),
|
5257 |
+
__('the fs photo with download and print buttons.', 'wp-photo-album-plus' ),
|
5258 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus' ),
|
5259 |
+
__('lightbox.', 'wp-photo-album-plus' )
|
5260 |
);
|
5261 |
$vals = array(
|
5262 |
'none',
|
5276 |
$html = array($html1, $html2, $html3, $html4);
|
5277 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
5278 |
|
5279 |
+
$name = __('TopTenWidget', 'wp-photo-album-plus' );
|
5280 |
+
$desc = __('TopTen widget photo link.', 'wp-photo-album-plus' );
|
5281 |
+
$help = __('Select the type of link the top ten photos point to.', 'wp-photo-album-plus' );
|
5282 |
$slug1 = 'wppa_topten_widget_linktype';
|
5283 |
$slug2 = 'wppa_topten_widget_linkpage';
|
5284 |
wppa_verify_page($slug2);
|
5286 |
$slug4 = 'wppa_topten_overrule';
|
5287 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5288 |
$opts = array(
|
5289 |
+
__('no link at all.', 'wp-photo-album-plus' ),
|
5290 |
+
__('the plain photo (file).', 'wp-photo-album-plus' ),
|
5291 |
+
__('the content of the virtual topten album.', 'wp-photo-album-plus' ),
|
5292 |
+
__('the content of the thumbnails album.', 'wp-photo-album-plus' ),
|
5293 |
+
__('the full size photo in a slideshow.', 'wp-photo-album-plus' ),
|
5294 |
+
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus' ),
|
5295 |
+
__('the fullsize photo on its own.', 'wp-photo-album-plus' ),
|
5296 |
+
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus' ),
|
5297 |
+
__('the fs photo with download and print buttons.', 'wp-photo-album-plus' ),
|
5298 |
+
__('a plain page without a querystring.', 'wp-photo-album-plus' ),
|
5299 |
+
__('lightbox.', 'wp-photo-album-plus' )
|
5300 |
);
|
5301 |
$vals = array(
|
5302 |
'none',
|
5319 |
$html = array($html1, $html2, $html3, $html4);
|
5320 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
5321 |
|
5322 |
+
$name = __('TopTenWidget', 'wp-photo-album-plus' );
|
5323 |
+
$desc = __('TopTen widget album linkpage.', 'wp-photo-album-plus' );
|
5324 |
+
$help = __('Select the linkpage the top ten albums point to.', 'wp-photo-album-plus' );
|
5325 |
$slug1 = '';
|
5326 |
$slug2 = 'wppa_topten_widget_album_linkpage';
|
5327 |
wppa_verify_page($slug2);
|
5336 |
$clas = 'wppa_rating';
|
5337 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
5338 |
|
5339 |
+
$name = __('LasTenWidget', 'wp-photo-album-plus' );
|
5340 |
+
$desc = __('Last Ten widget photo link.', 'wp-photo-album-plus' );
|
5341 |
+
$help = __('Select the type of link the last ten photos point to.', 'wp-photo-album-plus' );
|
5342 |
$slug1 = 'wppa_lasten_widget_linktype';
|
5343 |
$slug2 = 'wppa_lasten_widget_linkpage';
|
5344 |
wppa_verify_page($slug2);
|
5353 |
$html = array($html1, $html2, $html3, $html4);
|
5354 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
5355 |
|
5356 |
+
$name = __('CommentWidget', 'wp-photo-album-plus' );
|
5357 |
+
$desc = __('Comment widget photo link.', 'wp-photo-album-plus' );
|
5358 |
+
$help = __('Select the type of link the comment widget photos point to.', 'wp-photo-album-plus' );
|
5359 |
$slug1 = 'wppa_comment_widget_linktype';
|
5360 |
$slug2 = 'wppa_comment_widget_linkpage';
|
5361 |
wppa_verify_page($slug2);
|
5370 |
$html = array($html1, $html2, $html3, $html4);
|
5371 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
5372 |
|
5373 |
+
$name = __('FeaTenWidget', 'wp-photo-album-plus' );
|
5374 |
+
$desc = __('FeaTen widget photo link.', 'wp-photo-album-plus' );
|
5375 |
+
$help = __('Select the type of link the featured ten photos point to.', 'wp-photo-album-plus' );
|
5376 |
$slug1 = 'wppa_featen_widget_linktype';
|
5377 |
$slug2 = 'wppa_featen_widget_linkpage';
|
5378 |
wppa_verify_page($slug2);
|
5387 |
$html = array($html1, $html2, $html3, $html4);
|
5388 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
5389 |
|
5390 |
+
$name = __('Tagcloud Link', 'wp-photo-album-plus' );
|
5391 |
+
$desc = __('Configure the link from the tags in the tag cloud.', 'wp-photo-album-plus' );
|
5392 |
+
$help = __('Link the tag words to either the thumbnails or the slideshow.', 'wp-photo-album-plus' );
|
5393 |
+
$help .= '<br>'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus' );
|
5394 |
$slug1 = 'wppa_tagcloud_linktype';
|
5395 |
$slug2 = 'wppa_tagcloud_linkpage';
|
5396 |
wppa_verify_page($slug2);
|
5398 |
$slug4 = 'wppa_tagcloud_linkpage_oc';
|
5399 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5400 |
$opts1 = array(
|
5401 |
+
__('thumbnails', 'wp-photo-album-plus' ),
|
5402 |
+
__('slideshow', 'wp-photo-album-plus' )
|
5403 |
);
|
5404 |
$vals1 = array(
|
5405 |
'album',
|
5409 |
$vals4 = array('1','2','3','4','5');
|
5410 |
$html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
|
5411 |
$opts = $opts_page_auto;
|
5412 |
+
$opts[] = __('--- the same page ---', 'wp-photo-album-plus' );
|
5413 |
$vals = $vals_page;
|
5414 |
$vals[] = '-1';
|
5415 |
$html2 = wppa_select($slug2, $opts, $vals, 'wppaRefreshAfter();');
|
5416 |
$html3 = wppa_checkbox($slug3);
|
5417 |
+
$html4 = '<div style="font-size:9px;foat:left;" class="'.$clas.'" >'.__('Occur', 'wp-photo-album-plus' ).'</div>'.wppa_select($slug4, $opts4, $vals4);
|
5418 |
$html = array($html1, $html2, $html3, $html4);
|
5419 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
5420 |
|
5421 |
+
$name = __('Multitag Link', 'wp-photo-album-plus' );
|
5422 |
+
$desc = __('Configure the link from the multitag selection.', 'wp-photo-album-plus' );
|
5423 |
+
$help = __('Link to either the thumbnails or the slideshow.', 'wp-photo-album-plus' );
|
5424 |
+
$help .= '<br>'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus' );
|
5425 |
$slug1 = 'wppa_multitag_linktype';
|
5426 |
$slug2 = 'wppa_multitag_linkpage';
|
5427 |
wppa_verify_page($slug2);
|
5429 |
$slug4 = 'wppa_multitag_linkpage_oc';
|
5430 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5431 |
$opts1 = array(
|
5432 |
+
__('thumbnails', 'wp-photo-album-plus' ),
|
5433 |
+
__('slideshow', 'wp-photo-album-plus' )
|
5434 |
);
|
5435 |
$vals1 = array(
|
5436 |
'album',
|
5440 |
$vals4 = array('1','2','3','4','5');
|
5441 |
$html1 = wppa_select($slug1, $opts1, $vals1, 'wppaRefreshAfter();');
|
5442 |
$opts = $opts_page_auto;
|
5443 |
+
$opts[] = __('--- the same page ---', 'wp-photo-album-plus' );
|
5444 |
$vals = $vals_page;
|
5445 |
$vals[] = '-1';
|
5446 |
$html2 = wppa_select($slug2, $opts, $vals);
|
5447 |
$html3 = wppa_checkbox($slug3);
|
5448 |
+
$html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus' ).'</div>'.wppa_select($slug4, $opts4, $vals4);
|
5449 |
$html = array($html1, $html2, $html3, $html4);
|
5450 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
5451 |
|
5452 |
+
$name = __('Bestof Landing', 'wp-photo-album-plus' );
|
5453 |
+
$desc = __('Select the landing page for the BestOf Widget / Box', 'wp-photo-album-plus' );
|
5454 |
$help = '';
|
5455 |
$slug1 = '';
|
5456 |
$slug2 = 'wppa_bestof_widget_linkpage';
|
5465 |
$html = array($html1, $html2, $html3, $html4);
|
5466 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
5467 |
|
5468 |
+
$name = __('SM widget return', 'wp-photo-album-plus' );
|
5469 |
+
$desc = __('Select the return link for social media from widgets', 'wp-photo-album-plus' );
|
5470 |
+
$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' );
|
5471 |
+
$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' );
|
5472 |
+
$help .= '<br>'.__('The Occur(rance) indicates the sequence number of the [wppa] shortcode on the landing page to be used.', 'wp-photo-album-plus' );
|
5473 |
$slug1 = 'wppa_widget_sm_linktype';
|
5474 |
$slug2 = 'wppa_widget_sm_linkpage';
|
5475 |
wppa_verify_page($slug2);
|
5477 |
$slug4 = 'wppa_widget_sm_linkpage_oc';
|
5478 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5479 |
$opts = array(
|
5480 |
+
__('Home page', 'wp-photo-album-plus' ),
|
5481 |
+
__('Landing page', 'wp-photo-album-plus' )
|
5482 |
);
|
5483 |
$vals = array(
|
5484 |
'home',
|
5489 |
$html3 = '';
|
5490 |
$opts4 = array('1','2','3','4','5');
|
5491 |
$vals4 = array('1','2','3','4','5');
|
5492 |
+
$html4 = '<div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus' ).'</div>'.wppa_select($slug4, $opts4, $vals4);
|
5493 |
$html = array($html1, $html2, $html3, $html4);
|
5494 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
5495 |
|
5501 |
wppa_setting_tab_description($desc);
|
5502 |
wppa_setting_box_header_new($tab, $coldef);
|
5503 |
|
5504 |
+
$name = __('Download Link (aka Art Monkey link)', 'wp-photo-album-plus' );
|
5505 |
+
$desc = __('Makes the photo name a download button.', 'wp-photo-album-plus' );
|
5506 |
+
$help = __('Link Photo name in slideshow to file or zip with photoname as filename.', 'wp-photo-album-plus' );
|
5507 |
$slug = 'wppa_art_monkey_link';
|
5508 |
$opts = array(
|
5509 |
+
__('--- none ---', 'wp-photo-album-plus' ),
|
5510 |
+
__('image file', 'wp-photo-album-plus' ),
|
5511 |
+
__('zipped image', 'wp-photo-album-plus' ),
|
5512 |
+
__('New style', 'wp-photo-album-plus' ),
|
5513 |
);
|
5514 |
$vals = array(
|
5515 |
'none',
|
5520 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();');
|
5521 |
wppa_setting_new($slug, '1', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5522 |
|
5523 |
+
$name = __('Art Monkey Source', 'wp-photo-album-plus' );
|
5524 |
+
$desc = __('Use Source file for art monkey link if available.', 'wp-photo-album-plus' );
|
5525 |
$help = '';
|
5526 |
$slug = 'wppa_artmonkey_use_source';
|
5527 |
$html = wppa_checkbox($slug);
|
5528 |
wppa_setting_new($slug, '2', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5529 |
|
5530 |
if ( wppa_opt( 'art_monkey_link' ) == 'new' ) {
|
5531 |
+
$name = __('Art Monkey new filetypes', 'wp-photo-album-plus' );
|
5532 |
+
$desc = __('Select filetypes to be downloadable when link is New Style', 'wp-photo-album-plus' );
|
5533 |
$help = '';
|
5534 |
$slug = 'wppa_art_monkey_new_types';
|
5535 |
+
$opts = array( __('Photos only', 'wp-photo-album-plus' ),
|
5536 |
+
__('PDFs only', 'wp-photo-album-plus' ),
|
5537 |
+
__('Both photos and PDFs', 'wp-photo-album-plus' )
|
5538 |
);
|
5539 |
$vals = array('photo','pdf','photo-pdf');
|
5540 |
$html = wppa_select($slug, $opts, $vals);
|
5541 |
wppa_setting_new($slug, '3', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5542 |
}
|
5543 |
|
5544 |
+
$name = __('Art Monkey Display', 'wp-photo-album-plus' );
|
5545 |
+
$desc = __('Select button or link ( text ).', 'wp-photo-album-plus' );
|
5546 |
$help = '';
|
5547 |
$slug = 'wppa_art_monkey_display';
|
5548 |
$opts = array(
|
5549 |
+
__('Button', 'wp-photo-album-plus' ),
|
5550 |
+
__('Textlink', 'wp-photo-album-plus' )
|
5551 |
);
|
5552 |
$vals = array(
|
5553 |
'button',
|
5556 |
$html = wppa_select($slug, $opts, $vals);
|
5557 |
wppa_setting_new($slug, '4', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5558 |
|
5559 |
+
$name = __('Popup Download Link', 'wp-photo-album-plus' );
|
5560 |
+
$desc = __('Configure the download link on fullsize popups.', 'wp-photo-album-plus' );
|
5561 |
+
$help = __('Link fullsize popup download button to either image or zip file.', 'wp-photo-album-plus' );
|
5562 |
$slug = 'wppa_art_monkey_popup_link';
|
5563 |
$opts = array(
|
5564 |
+
__('image file', 'wp-photo-album-plus' ),
|
5565 |
+
__('zipped image', 'wp-photo-album-plus' )
|
5566 |
);
|
5567 |
$vals = array(
|
5568 |
'file',
|
5571 |
$html = wppa_select($slug, $opts, $vals);
|
5572 |
wppa_setting_new($slug, '5', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5573 |
|
5574 |
+
$name = __('Download link on lightbox', 'wp-photo-album-plus' );
|
5575 |
+
$desc = __('Art monkey link on lightbox photo names.', 'wp-photo-album-plus' );
|
5576 |
$help = '';
|
5577 |
$slug = 'wppa_art_monkey_on_lightbox';
|
5578 |
$html = wppa_checkbox($slug);
|
5579 |
wppa_setting_new($slug, '6', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5580 |
|
5581 |
+
$name = __('Album download link', 'wp-photo-album-plus' );
|
5582 |
+
$desc = __('Place an album download link on the album covers and the edit album info page', 'wp-photo-album-plus' );
|
5583 |
+
$help = __('Creates a download zipfile containing the photos of the album', 'wp-photo-album-plus' );
|
5584 |
$slug = 'wppa_allow_download_album';
|
5585 |
$html = wppa_checkbox($slug);
|
5586 |
wppa_setting_new($slug, '7', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5587 |
|
5588 |
+
$name = __('Album download Source', 'wp-photo-album-plus' );
|
5589 |
+
$desc = __('Use Source file for album download link if available.', 'wp-photo-album-plus' );
|
5590 |
$help = '';
|
5591 |
$slug = 'wppa_download_album_source';
|
5592 |
$html = wppa_checkbox($slug);
|
5593 |
wppa_setting_new($slug, '8', $name, $desc, $html.'</td><td></td><td></td><td>', $help);
|
5594 |
|
5595 |
+
$name = __('Super View Landing', 'wp-photo-album-plus' );
|
5596 |
+
$desc = __('The landing page for the Super View widget.', 'wp-photo-album-plus' );
|
5597 |
$help = '';
|
5598 |
$slug1 = '';
|
5599 |
$slug2 = 'wppa_super_view_linkpage';
|
5601 |
$slug3 = '';
|
5602 |
$slug4 = '';
|
5603 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5604 |
+
$html1 = __('Defined by the visitor', 'wp-photo-album-plus' );
|
5605 |
$html2 = wppa_select($slug2, $opts_page_auto, $vals_page, 'wppaRefreshAfter();');
|
5606 |
$html3 = '';
|
5607 |
$html4 = '';
|
5608 |
$html = array($html1, $html2, $html3, $html4);
|
5609 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
5610 |
|
5611 |
+
$name = __('Uploader Landing', 'wp-photo-album-plus' );
|
5612 |
+
$desc = __('Select the landing page for the Uploader Widget', 'wp-photo-album-plus' );
|
5613 |
$help = '';
|
5614 |
$slug1 = '';
|
5615 |
$slug2 = 'wppa_upldr_widget_linkpage';
|
5624 |
$html = array($html1, $html2, $html3, $html4);
|
5625 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
5626 |
|
5627 |
+
$name = __('Supersearch Landing', 'wp-photo-album-plus' );
|
5628 |
+
$desc = __('Select the landing page for the Supersearch Box', 'wp-photo-album-plus' );
|
5629 |
$help = '';
|
5630 |
$slug1 = '';
|
5631 |
$slug2 = 'wppa_supersearch_linkpage';
|
5640 |
$html = array($html1, $html2, $html3, $html4);
|
5641 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
5642 |
|
5643 |
+
$name = __('Album cover subalbums link', 'wp-photo-album-plus' );
|
5644 |
+
$desc = __('Select the linktype and display type for sub-albums on parent album covers.', 'wp-photo-album-plus' );
|
5645 |
$help = '';
|
5646 |
$slug1 = 'wppa_cover_sublinks';
|
5647 |
$slug2 = 'wppa_cover_sublinks_display';
|
5649 |
$slug4 = '';
|
5650 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5651 |
$opts = array(
|
5652 |
+
__('No link at all', 'wp-photo-album-plus' ),
|
5653 |
+
__('Thumbnails and covers', 'wp-photo-album-plus' ),
|
5654 |
+
__('Slideshow or covers', 'wp-photo-album-plus' ),
|
5655 |
+
__('Subalbum title link', 'wp-photo-album-plus' ),
|
5656 |
);
|
5657 |
$vals = array(
|
5658 |
'none',
|
5662 |
);
|
5663 |
$html1 = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter();');
|
5664 |
$opts = array(
|
5665 |
+
__('No display at all', 'wp-photo-album-plus' ),
|
5666 |
+
__('A list with sub(sub) albums', 'wp-photo-album-plus' ),
|
5667 |
+
__('A list of children only', 'wp-photo-album-plus' ),
|
5668 |
+
__('An enumeration of names', 'wp-photo-album-plus' ),
|
5669 |
+
__('Micro thumbnails', 'wp-photo-album-plus' ),
|
5670 |
);
|
5671 |
$vals = array(
|
5672 |
'none',
|
5681 |
$html = array($html1, $html2, $html3, $html4);
|
5682 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
5683 |
|
5684 |
+
$name = __('Real calendar link', 'wp-photo-album-plus' );
|
5685 |
+
$desc = __('Select the linktype the real calendar day image should link to', 'wp-photo-album-plus' );
|
5686 |
$help = '';
|
5687 |
$slug1 = 'wppa_real_calendar_linktype';
|
5688 |
$slug2 = '';
|
5690 |
$slug4 = '';
|
5691 |
$slug = array($slug1, $slug2, $slug3, $slug4);
|
5692 |
$opts = array(
|
5693 |
+
__('Slideshow', 'wp-photo-album-plus' ),
|
5694 |
+
__('Lightbox', 'wp-photo-album-plus' ),
|
5695 |
);
|
5696 |
$vals = array(
|
5697 |
'slide',
|
5705 |
$html = array($html1, $html2, $html3, $html4);
|
5706 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
5707 |
|
5708 |
+
$name = __('Album id on cover is link', 'wp-photo-album-plus' );
|
5709 |
+
$desc = __('The album number on the cover links to the album admin page of the album', 'wp-photo-album-plus' );
|
5710 |
+
$help = __('<b>Album id on cover</b> must be enabled. The ids are only links when the user has edit album acces to the album', 'wp-photo-album-plus' );
|
5711 |
$slug1 = 'wppa_fe_albid_edit';
|
5712 |
$slug2 = '';
|
5713 |
$slug3 = '';
|
5732 |
wppa_setting_tab_description($desc);
|
5733 |
wppa_setting_box_header_new($tab);
|
5734 |
|
5735 |
+
$name = __('User upload Photos', 'wp-photo-album-plus' );
|
5736 |
+
$desc = __('Enable frontend upload.', 'wp-photo-album-plus' );
|
5737 |
$help = '';
|
5738 |
$slug = '';
|
5739 |
$html = '<input type="checkbox" checked disabled >' . wppa_see_also( 'new', '1', '18..26' );
|
5740 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
5741 |
|
5742 |
+
$name = __('User upload Video', 'wp-photo-album-plus' );
|
5743 |
+
$desc = __('Enable frontend upload of video.', 'wp-photo-album-plus' );
|
5744 |
$help = '';
|
5745 |
$slug = 'wppa_user_upload_video_on';
|
5746 |
$html = wppa_checkbox($slug);
|
5747 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'enable_video' ));
|
5748 |
|
5749 |
+
$name = __('User upload Audio', 'wp-photo-album-plus' );
|
5750 |
+
$desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus' );
|
5751 |
$help = '';
|
5752 |
$slug = 'wppa_user_upload_audio_on';
|
5753 |
$html = wppa_checkbox($slug);
|
5754 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_audio' ));
|
5755 |
|
5756 |
+
$name = __('User upload roles', 'wp-photo-album-plus' );
|
5757 |
+
$desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus' );
|
5758 |
$help = '';
|
5759 |
$slug = 'wppa_user_opload_roles';
|
5760 |
$roles = $wp_roles->roles;
|
5761 |
$opts = array();
|
5762 |
$vals = array();
|
5763 |
+
$opts[] = '-- '.__('Not limited', 'wp-photo-album-plus' ).' --';
|
5764 |
$vals[] = '';
|
5765 |
foreach (array_keys($roles) as $key) {
|
5766 |
$role = $roles[$key];
|
5772 |
$html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
|
5773 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
5774 |
|
5775 |
+
$name = __('Show Copyright', 'wp-photo-album-plus' );
|
5776 |
+
$desc = __('Show a copyright warning on frontend upload form.', 'wp-photo-album-plus' );
|
5777 |
$help = '';
|
5778 |
$slug = 'wppa_copyright_on';
|
5779 |
$html = wppa_checkbox($slug, 'wppaSlave(this,\'wppa_copyright_notice\');');
|
5780 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
5781 |
|
5782 |
+
$name = __('Copyright notice', 'wp-photo-album-plus' );
|
5783 |
+
$desc = __('The message to be displayed.', 'wp-photo-album-plus' );
|
5784 |
$help = '';
|
5785 |
$slug = 'wppa_copyright_notice';
|
5786 |
$html = wppa_textarea($slug, $name);
|
5787 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch( 'copyright_on' ));
|
5788 |
|
5789 |
+
$name = __('User Watermark', 'wp-photo-album-plus' );
|
5790 |
+
$desc = __('Uploading users may select watermark settings', 'wp-photo-album-plus' );
|
5791 |
+
$help = __('If checked, anyone who can upload and/or import photos can overrule the default watermark settings.', 'wp-photo-album-plus' );
|
5792 |
$slug = 'wppa_watermark_user';
|
5793 |
$html = wppa_checkbox($slug);
|
5794 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch('watermark_on'));
|
5795 |
|
5796 |
+
$name = __('User name', 'wp-photo-album-plus' );
|
5797 |
+
$desc = __('Uploading users may overrule the default name.', 'wp-photo-album-plus' );
|
5798 |
+
$help = __('If checked, the default photo name may be overruled by the user.', 'wp-photo-album-plus' );
|
5799 |
$help .= '<br>'.wppa_see_also( 'new', '1', '29' );
|
5800 |
$slug1 = 'wppa_name_user';
|
5801 |
$slug2 = 'wppa_name_user_mandatory';
|
5802 |
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
5803 |
wppa_setting_new($slug1, '9', $name, $desc, $html, $help);
|
5804 |
|
5805 |
+
$name = __('Apply Newphoto desc user', 'wp-photo-album-plus' );
|
5806 |
+
$desc = __('Give each new frontend uploaded photo a standard description.', 'wp-photo-album-plus' );
|
5807 |
+
$help = __('If checked, each new photo will get the default New photo description.', 'wp-photo-album-plus' );
|
5808 |
+
$help .= '<br>'.__('Note: If the next item is checked, the user can overwrite this', 'wp-photo-album-plus' );
|
5809 |
$help .= '<br>'.wppa_see_also( 'new', '1', '13' );
|
5810 |
$slug = 'wppa_apply_newphoto_desc_user';
|
5811 |
$html = wppa_checkbox($slug);
|
5812 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
5813 |
|
5814 |
+
$name = __('User desc', 'wp-photo-album-plus' );
|
5815 |
+
$desc = __('Uploading users may overrule the default description.', 'wp-photo-album-plus' );
|
5816 |
$help = '';
|
5817 |
$slug1 = 'wppa_desc_user';
|
5818 |
$slug2 = 'wppa_desc_user_mandatory';
|
5819 |
$html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
|
5820 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
5821 |
|
5822 |
+
$name = __('User upload custom', 'wp-photo-album-plus' );
|
5823 |
+
$desc = __('Frontend upload can fill in custom data fields.', 'wp-photo-album-plus' );
|
5824 |
$help = '';
|
5825 |
$slug = 'wppa_fe_custom_fields';
|
5826 |
$html = wppa_checkbox($slug).wppa_see_also( 'custom', '2' );;
|
5827 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
5828 |
|
5829 |
+
$name = __('User upload tags', 'wp-photo-album-plus' );
|
5830 |
+
$desc = __('Frontend upload can add tags.', 'wp-photo-album-plus' );
|
5831 |
$help = '';
|
5832 |
$slug = 'wppa_fe_upload_tags';
|
5833 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
5835 |
|
5836 |
if ( wppa_switch( 'fe_upload_tags' ) ) {
|
5837 |
|
5838 |
+
$name = __('Tag selection box', 'wp-photo-album-plus' ).' 1';
|
5839 |
+
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus' );
|
5840 |
$help = '';
|
5841 |
$slug1 = 'wppa_up_tagselbox_on_1';
|
5842 |
$slug2 = 'wppa_up_tagselbox_multi_1';
|
5843 |
+
$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);
|
5844 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
|
5845 |
|
5846 |
+
$name = __('Caption box', 'wp-photo-album-plus' ).' 1';
|
5847 |
+
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus' );
|
5848 |
$help = '';
|
5849 |
$slug = 'wppa_up_tagselbox_title_1';
|
5850 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5851 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help, wppa_switch( 'fe_upload_tags' ) );
|
5852 |
|
5853 |
+
$name = __('Tags box', 'wp-photo-album-plus' ).' 1';
|
5854 |
+
$desc = __('The tags in the selection box.', 'wp-photo-album-plus' );
|
5855 |
+
$help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus' );
|
5856 |
$slug = 'wppa_up_tagselbox_content_1';
|
5857 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5858 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
5859 |
|
5860 |
+
$name = __('Tag selection box', 'wp-photo-album-plus' ).' 2';
|
5861 |
+
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus' );
|
5862 |
$help = '';
|
5863 |
$slug1 = 'wppa_up_tagselbox_on_2';
|
5864 |
$slug2 = 'wppa_up_tagselbox_multi_2';
|
5865 |
+
$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);
|
5866 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
5867 |
|
5868 |
+
$name = __('Caption box', 'wp-photo-album-plus' ).' 2';
|
5869 |
+
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus' );
|
5870 |
$help = '';
|
5871 |
$slug = 'wppa_up_tagselbox_title_2';
|
5872 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5873 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
5874 |
|
5875 |
+
$name = __('Tags box', 'wp-photo-album-plus' ).' 2';
|
5876 |
+
$desc = __('The tags in the selection box.', 'wp-photo-album-plus' );
|
5877 |
+
$help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus' );
|
5878 |
$slug = 'wppa_up_tagselbox_content_2';
|
5879 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5880 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
5881 |
|
5882 |
+
$name = __('Tag selection box', 'wp-photo-album-plus' ).' 3';
|
5883 |
+
$desc = __('Front-end upload tags selecion box.', 'wp-photo-album-plus' );
|
5884 |
$help = '';
|
5885 |
$slug1 = 'wppa_up_tagselbox_on_3';
|
5886 |
$slug2 = 'wppa_up_tagselbox_multi_3';
|
5887 |
+
$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);
|
5888 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
5889 |
|
5890 |
+
$name = __('Caption box', 'wp-photo-album-plus' ).' 3';
|
5891 |
+
$desc = __('The title of the tag selection box.', 'wp-photo-album-plus' );
|
5892 |
$help = '';
|
5893 |
$slug = 'wppa_up_tagselbox_title_3';
|
5894 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5895 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
5896 |
|
5897 |
+
$name = __('Tags box', 'wp-photo-album-plus' ).' 3';
|
5898 |
+
$desc = __('The tags in the selection box.', 'wp-photo-album-plus' );
|
5899 |
+
$help = __('Enter the tags you want to appear in the selection box. Empty means: all existing tags', 'wp-photo-album-plus' );
|
5900 |
$slug = 'wppa_up_tagselbox_content_3';
|
5901 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5902 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
5903 |
|
5904 |
+
$name = __('New tags', 'wp-photo-album-plus' );
|
5905 |
+
$desc = __('Input field for any user defined tags.', 'wp-photo-album-plus' );
|
5906 |
$help = '';
|
5907 |
$slug = 'wppa_up_tag_input_on';
|
5908 |
$html = wppa_checkbox($slug);
|
5909 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
5910 |
|
5911 |
+
$name = __('New tags caption', 'wp-photo-album-plus' );
|
5912 |
+
$desc = __('The caption above the tags input field.', 'wp-photo-album-plus' );
|
5913 |
$help = '';
|
5914 |
$slug = 'wppa_up_tag_input_title';
|
5915 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5916 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
5917 |
|
5918 |
+
$name = __('Tags box New', 'wp-photo-album-plus' );
|
5919 |
+
$desc = __('The tags in the New tags input box.', 'wp-photo-album-plus' );
|
5920 |
$help = '';
|
5921 |
$slug = 'wppa_up_tagbox_new';
|
5922 |
$html = wppa_edit( $slug, wppa_get_option( $slug ), '300px' );
|
5923 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
5924 |
|
5925 |
+
$name = __('Preview tags', 'wp-photo-album-plus' );
|
5926 |
+
$desc = __('Show a preview of all tags that will be added to the photo info.', 'wp-photo-album-plus' );
|
5927 |
$help = '';
|
5928 |
$slug = 'wppa_up_tag_preview';
|
5929 |
$html = wppa_checkbox($slug);
|
5930 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
5931 |
}
|
5932 |
|
5933 |
+
$name = __('Camera connect', 'wp-photo-album-plus' );
|
5934 |
+
$desc = __('Connect frontend upload to camara on mobile devices with camera', 'wp-photo-album-plus' );
|
5935 |
$help = '';
|
5936 |
$slug = 'wppa_camera_connect';
|
5937 |
$html = wppa_checkbox($slug);
|
5938 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
5939 |
|
5940 |
+
$name = __('Blog It!', 'wp-photo-album-plus' );
|
5941 |
+
$desc = __('Enable blogging photos.', 'wp-photo-album-plus' );
|
5942 |
+
$help = __('Users need the capability edit_posts to directly blog photos.', 'wp-photo-album-plus' );
|
5943 |
$slug = 'wppa_blog_it';
|
5944 |
+
$opts = array( __('disabled', 'wp-photo-album-plus' ),
|
5945 |
+
__('optional', 'wp-photo-album-plus' ),
|
5946 |
+
__('always', 'wp-photo-album-plus' ),
|
5947 |
);
|
5948 |
$vals = array( '-none-',
|
5949 |
'optional',
|
5952 |
$html = wppa_select($slug, $opts, $vals);
|
5953 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
5954 |
|
5955 |
+
$name = __('Blog It need moderation', 'wp-photo-album-plus' );
|
5956 |
+
$desc = __('Posts with blogged photos need moderation.', 'wp-photo-album-plus' );
|
5957 |
$help = '';
|
5958 |
$slug = 'wppa_blog_it_moderate';
|
5959 |
$html = wppa_checkbox($slug);
|
5960 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
5961 |
|
5962 |
+
$name = __('Blog It shortcode', 'wp-photo-album-plus' );
|
5963 |
+
$desc = __('Shortcode to be used on the blog post', 'wp-photo-album-plus' );
|
5964 |
+
$help = __('Make sure it contains photo="#id"', 'wp-photo-album-plus' );
|
5965 |
$slug = 'wppa_blog_it_shortcode';
|
5966 |
$html = wppa_input($slug, '85%');
|
5967 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
5968 |
|
5969 |
+
$name = __('Frontend ending label', 'wp-photo-album-plus' );
|
5970 |
+
$desc = __('Frontend upload / create / edit dialog closing label text.', 'wp-photo-album-plus' );
|
5971 |
$help = '';
|
5972 |
$slug = 'wppa_close_text';
|
5973 |
+
$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' ) );
|
5974 |
$vals = array( 'Abort', 'Cancel', 'Close', 'Exit', 'Quit' );
|
5975 |
$html = wppa_select($slug, $opts, $vals);
|
5976 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
5977 |
|
5978 |
+
$name = __('Upload logout', 'wp-photo-album-plus' );
|
5979 |
+
$desc = __('Allow non logged-in to upload photos', 'wp-photo-album-plus' );
|
5980 |
+
$help = __('Non logged in users have a number of restrictions on uploading', 'wp-photo-album-plus' );
|
5981 |
$slug = 'wppa_upload_logout';
|
5982 |
$html = wppa_checkbox($slug);
|
5983 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
5994 |
wppa_setting_tab_description($desc);
|
5995 |
wppa_setting_box_header_new($tab);
|
5996 |
|
5997 |
+
$name = __('Mail on new album', 'wp-photo-album-plus' );
|
5998 |
+
$desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus' );
|
5999 |
$help = '';
|
6000 |
$slug = 'wppa_newalbumnotify';
|
6001 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
|
6002 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6003 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6004 |
|
6005 |
+
$name = __('Mail on upload', 'wp-photo-album-plus' );
|
6006 |
+
$desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus' );
|
6007 |
+
$help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus' ));
|
6008 |
$slug1 = 'wppa_feuploadnotify';
|
6009 |
$slug2 = 'wppa_beuploadnotify';
|
6010 |
$slug3 = 'wppa_show_email_thumbs';
|
6014 |
wppa_checkbox($slug3) . '<span style="float:left" > ' . __( 'show thumbnails', 'wp-photo-album-plus' ) . '</span>';
|
6015 |
wppa_setting_new($slug1, '2', $name, $desc, $html, $help);
|
6016 |
|
6017 |
+
$name = __('Mail on comment', 'wp-photo-album-plus' );
|
6018 |
+
$desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus' );
|
6019 |
+
$help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus' );
|
6020 |
+
$help .= '<br>' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus' );
|
6021 |
$slug1 = 'wppa_commentnotify';
|
6022 |
$slug2 = 'wppa_commentnotify_limit';
|
6023 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
|
6025 |
wppa_checkbox($slug2) . '<span style="float:left" > ' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
|
6026 |
wppa_setting_new($slug1, '3', $name, $desc, $html, $help);
|
6027 |
|
6028 |
+
$name = __('Mail on previous comment', 'wp-photo-album-plus' );
|
6029 |
+
$desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus' );
|
6030 |
$help = '';
|
6031 |
$slug = 'wppa_commentprevious';
|
6032 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
|
6034 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
6035 |
|
6036 |
$name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
|
6037 |
+
$desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus' );
|
6038 |
$help = '';
|
6039 |
$slug = 'wppa_moderatephoto';
|
6040 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
|
6042 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
6043 |
|
6044 |
$name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
|
6045 |
+
$desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus' );
|
6046 |
$help = '';
|
6047 |
$slug = 'wppa_moderatecomment';
|
6048 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
|
6049 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6050 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
6051 |
|
6052 |
+
$name = __('Mail on approve photo', 'wp-photo-album-plus' );
|
6053 |
+
$desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus' );
|
6054 |
$help = '';
|
6055 |
$slug = 'wppa_photoapproved';
|
6056 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
|
6057 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6058 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
6059 |
|
6060 |
+
$name = __('Mail on approve comment', 'wp-photo-album-plus' );
|
6061 |
+
$desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus' );
|
6062 |
$help = '';
|
6063 |
$slug = 'wppa_commentapproved';
|
6064 |
$subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
|
6065 |
$html = wppa_checkbox($slug) . ' ' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
|
6066 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6067 |
|
6068 |
+
$name = __('From site', 'wp-photo-album-plus' );
|
6069 |
+
$desc = __('Enter the subject header', 'wp-photo-album-plus' );
|
6070 |
+
$help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus' ), '['.str_replace(''', '', get_bloginfo('name') ).']');
|
6071 |
$slug = 'wppa_email_from_site';
|
6072 |
$html = wppa_input($slug,'90%');
|
6073 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
6074 |
|
6075 |
+
$name = __('From email', 'wp-photo-album-plus' );
|
6076 |
+
$desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus' );
|
6077 |
+
$help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus' ) . '<br>' .
|
6078 |
+
__('Make sure this email address exists.', 'wp-photo-album-plus' );
|
6079 |
$slug = 'wppa_email_from_email';
|
6080 |
$html = wppa_input($slug,'90%');
|
6081 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
6105 |
$html = wppa_input($slug, '90%');
|
6106 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
6107 |
|
6108 |
+
$name = __('Retry failed mails', 'wp-photo-album-plus' );
|
6109 |
+
$desc = __('Select number of retries for failed mails', 'wp-photo-album-plus' );
|
6110 |
+
$help = (__('Retries occur at the background every hour', 'wp-photo-album-plus' ));
|
6111 |
$slug = 'wppa_retry_mails';
|
6112 |
$html = wppa_number($slug, '1', '24');
|
6113 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
6118 |
{
|
6119 |
$desc = $wppa_subtab_names[$tab]['2'];
|
6120 |
|
6121 |
+
$coldef = array( __('#', 'wp-photo-album-plus' ) => '24px;',
|
6122 |
+
__('To', 'wp-photo-album-plus' ) => 'auto;',
|
6123 |
+
__('Subject', 'wp-photo-album-plus' ) => 'auto;',
|
6124 |
+
__('Message', 'wp-photo-album-plus' ) => 'auto;',
|
6125 |
+
__('Retry', 'wp-photo-album-plus' ) => '24px;',
|
6126 |
);
|
6127 |
|
6128 |
$mails = wppa_get_option( 'wppa_failed_mails', array() );
|
6183 |
wppa_setting_tab_description($desc);
|
6184 |
wppa_setting_box_header_new($tab);
|
6185 |
|
6186 |
+
$name = __('Hide when running', 'wp-photo-album-plus' );
|
6187 |
+
$desc = __('Hide the SM box when slideshow runs.', 'wp-photo-album-plus' );
|
6188 |
$help = '';
|
6189 |
$slug = 'wppa_share_hide_when_running';
|
6190 |
$html = wppa_checkbox($slug);
|
6191 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6192 |
|
6193 |
+
$name = __('Show Share Box Widget', 'wp-photo-album-plus' );
|
6194 |
+
$desc = __('Display the share social media buttons box in widgets.', 'wp-photo-album-plus' );
|
6195 |
+
$help = __('This setting applies to normal slideshows in widgets, not to the slideshowwidget as that is a slideonly display.', 'wp-photo-album-plus' );
|
6196 |
$slug = 'wppa_share_on_widget';
|
6197 |
$html = wppa_checkbox($slug);
|
6198 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6199 |
|
6200 |
+
$name = __('Show Share Buttons Thumbs', 'wp-photo-album-plus' );
|
6201 |
+
$desc = __('Display the share social media buttons under thumbnails.', 'wp-photo-album-plus' );
|
6202 |
$help = '';
|
6203 |
$slug = 'wppa_share_on_thumbs';
|
6204 |
$html = wppa_checkbox($slug);
|
6205 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6206 |
|
6207 |
+
$name = __('Show Share Buttons Mphoto', 'wp-photo-album-plus' );
|
6208 |
+
$desc = __('Display the share social media buttons on mphoto displays.', 'wp-photo-album-plus' );
|
6209 |
$help = '';
|
6210 |
$slug = 'wppa_share_on_mphoto';
|
6211 |
$html = wppa_checkbox($slug);
|
6212 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
6213 |
|
6214 |
+
$name = __('Void pages share', 'wp-photo-album-plus' );
|
6215 |
+
$desc = __('Do not show share on these pages', 'wp-photo-album-plus' );
|
6216 |
+
$help = __('Use this for pages that require the user is logged in', 'wp-photo-album-plus' );
|
6217 |
$slug = 'wppa_sm_void_pages';
|
6218 |
$opts = $opts_page_post;
|
6219 |
+
$opts[0] = __('--- Select one or more pages ---', 'wp-photo-album-plus' );
|
6220 |
+
$opts[] = __('--- none ---', 'wp-photo-album-plus' );
|
6221 |
$vals = $vals_page_post;
|
6222 |
$vals[] = '0';
|
6223 |
$html = wppa_select_m($slug, $opts, $vals, '', '', true);
|
6224 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
6225 |
|
6226 |
+
$name = __('Show QR Code', 'wp-photo-album-plus' );
|
6227 |
+
$desc = __('Display the QR code in the share box.', 'wp-photo-album-plus' );
|
6228 |
$help = '';
|
6229 |
$slug = 'wppa_share_qr';
|
6230 |
$html = wppa_checkbox($slug);
|
6231 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
6232 |
|
6233 |
+
$name = __('Show Twitter button', 'wp-photo-album-plus' );
|
6234 |
+
$desc = __('Display the Twitter button in the share box.', 'wp-photo-album-plus' );
|
6235 |
$help = '';
|
6236 |
$slug1 = 'wppa_share_twitter';
|
6237 |
$slug2 = 'wppa_twitter_black';
|
6238 |
+
$html = wppa_checkbox($slug1) . '<span style="float-left">' . __('Black circle icon', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug2);
|
6239 |
wppa_setting_new($slug1, '7', $name, $desc, $html, $help);
|
6240 |
|
6241 |
+
$name = __('The creator\'s Twitter account', 'wp-photo-album-plus' );
|
6242 |
+
$desc = __('The Twitter @username a twitter card should be attributed to.', 'wp-photo-album-plus' );
|
6243 |
+
$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' );
|
6244 |
$slug = 'wppa_twitter_account';
|
6245 |
$html = wppa_input($slug, '150px' );
|
6246 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6247 |
|
6248 |
+
$name = __('Show Pinterest button', 'wp-photo-album-plus' );
|
6249 |
+
$desc = __('Display the Pintrest button in the share box.', 'wp-photo-album-plus' );
|
6250 |
$help = '';
|
6251 |
$slug1 = 'wppa_share_pinterest';
|
6252 |
$slug2 = 'wppa_pinterest_black';
|
6253 |
+
$html = wppa_checkbox($slug1) . '<span style="float-left">' . __('Black circle icon', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug2);
|
6254 |
wppa_setting_new($slug1, '10', $name, $desc, $html, $help);
|
6255 |
|
6256 |
+
$name = __('Show LinkedIn button', 'wp-photo-album-plus' );
|
6257 |
+
$desc = __('Display the LinkedIn button in the share box.', 'wp-photo-album-plus' );
|
6258 |
$help = '';
|
6259 |
$slug1 = 'wppa_share_linkedin';
|
6260 |
$slug2 = 'wppa_linkedin_black';
|
6261 |
+
$html = wppa_checkbox($slug1) . '<span style="float-left">' . __('Black circle icon', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug2);
|
6262 |
wppa_setting_new($slug1, '11', $name, $desc, $html, $help);
|
6263 |
|
6264 |
+
$name = __('Show Facebook share button', 'wp-photo-album-plus' );
|
6265 |
+
$desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus' );
|
6266 |
$help = '';
|
6267 |
$slug = 'wppa_share_facebook';
|
6268 |
$html = wppa_checkbox($slug);
|
6269 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
6270 |
|
6271 |
+
$name = __('Show Facebook like button', 'wp-photo-album-plus' );
|
6272 |
+
$desc = __('Display the Facebook button in the share box.', 'wp-photo-album-plus' );
|
6273 |
$help = '';
|
6274 |
$slug = 'wppa_facebook_like';
|
6275 |
$html = wppa_checkbox($slug);
|
6276 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
6277 |
|
6278 |
+
$name = __('Display type', 'wp-photo-album-plus' );
|
6279 |
+
$desc = __('Select the Facebook button display type.', 'wp-photo-album-plus' );
|
6280 |
$help = '';
|
6281 |
$slug = 'wppa_fb_display';
|
6282 |
+
$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' ) );
|
6283 |
$vals = array( 'standard', 'button', 'button_count', 'box_count' );
|
6284 |
$html = wppa_select($slug, $opts, $vals);
|
6285 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
6286 |
|
6287 |
+
$name = __('Show Facebook comment box', 'wp-photo-album-plus' );
|
6288 |
+
$desc = __('Display the Facebook comment dialog box in the share box.', 'wp-photo-album-plus' );
|
6289 |
$help = '';
|
6290 |
$slug = 'wppa_facebook_comments';
|
6291 |
$html = wppa_checkbox($slug);
|
6292 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
6293 |
|
6294 |
+
$name = __('Facebook User Id', 'wp-photo-album-plus' );
|
6295 |
+
$desc = __('Enter your facebook user id to be able to moderate comments and sends', 'wp-photo-album-plus' );
|
6296 |
$help = '';
|
6297 |
$slug = 'wppa_facebook_admin_id';
|
6298 |
$html = wppa_input($slug, '200px');
|
6299 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
6300 |
|
6301 |
+
$name = __('Facebook App Id', 'wp-photo-album-plus' );
|
6302 |
+
$desc = __('Enter your facebook app id to be able to moderate comments and sends', 'wp-photo-album-plus' );
|
6303 |
$help = '';
|
6304 |
$slug = 'wppa_facebook_app_id';
|
6305 |
$html = wppa_input($slug, '200px');
|
6306 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
6307 |
|
6308 |
+
$name = __('Facebook js SDK', 'wp-photo-album-plus' );
|
6309 |
+
$desc = __('Load Facebook js SDK', 'wp-photo-album-plus' );
|
6310 |
+
$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' );
|
6311 |
$slug = 'wppa_load_facebook_sdk';
|
6312 |
$html = wppa_checkbox($slug);
|
6313 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
6314 |
|
6315 |
+
$name = __('Share single image', 'wp-photo-album-plus' );
|
6316 |
+
$desc = __('Share a link to a single image, not the slideshow.', 'wp-photo-album-plus' );
|
6317 |
+
$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' );
|
6318 |
$slug = 'wppa_share_single_image';
|
6319 |
$html = wppa_checkbox($slug);
|
6320 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
6327 |
wppa_setting_tab_description($desc);
|
6328 |
wppa_setting_box_header_new($tab);
|
6329 |
|
6330 |
+
$name = __('Meta on page', 'wp-photo-album-plus' );
|
6331 |
+
$desc = __('Meta tags for photos on the page.', 'wp-photo-album-plus' );
|
6332 |
+
$help = __('If checked, the header of the page will contain metatags that refer to featured photos on the page in the page context.', 'wp-photo-album-plus' );
|
6333 |
$slug = 'wppa_meta_page';
|
6334 |
$html = wppa_checkbox($slug);
|
6335 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6336 |
|
6337 |
+
$name = __('Meta all', 'wp-photo-album-plus' );
|
6338 |
+
$desc = __('Meta tags for all featured photos.', 'wp-photo-album-plus' );
|
6339 |
+
$help = __('If checked, the header of the page will contain metatags that refer to all featured photo files.', 'wp-photo-album-plus' );
|
6340 |
+
$help .= '<br>'.__('If you have many featured photos, you might wish to uncheck this item to reduce the size of the page header.', 'wp-photo-album-plus' );
|
6341 |
$slug = 'wppa_meta_all';
|
6342 |
$html = wppa_checkbox($slug);
|
6343 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6344 |
|
6345 |
+
$name = __('Add og meta tags', 'wp-photo-album-plus' );
|
6346 |
+
$desc = __('Add og meta tags to the page header.', 'wp-photo-album-plus' );
|
6347 |
+
$help = __('Turning this off may affect the functionality of social media items in the share box that rely on open graph tags information.', 'wp-photo-album-plus' );
|
6348 |
$slug = 'wppa_og_tags_on';
|
6349 |
$html = wppa_checkbox($slug);
|
6350 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6351 |
|
6352 |
+
$name = __('Image Alt attribute type', 'wp-photo-album-plus' );
|
6353 |
+
$desc = __('Select kind of HTML alt="" content for images.', 'wp-photo-album-plus' );
|
6354 |
$help = '';
|
6355 |
$slug = 'wppa_alt_type';
|
6356 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ), __('photo name', 'wp-photo-album-plus' ), __('name without file-ext', 'wp-photo-album-plus' ), __('set in album admin', 'wp-photo-album-plus' ) );
|
6357 |
$vals = array( 'none', 'fullname', 'namenoext', 'custom');
|
6358 |
$html = wppa_select($slug, $opts, $vals);
|
6359 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
6370 |
wppa_setting_tab_description($desc);
|
6371 |
wppa_setting_box_header_new($tab);
|
6372 |
|
6373 |
+
$name = __('Modal boxes', 'wp-photo-album-plus' );
|
6374 |
+
$desc = __('Place Ajax rendered content in modal boxes', 'wp-photo-album-plus' );
|
6375 |
$help = '';
|
6376 |
$slug = 'wppa_ajax_render_modal';
|
6377 |
$html = wppa_checkbox($slug);
|
6378 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6379 |
|
6380 |
+
$name = __('Ajax scroll', 'wp-photo-album-plus' );
|
6381 |
+
$desc = __('Scroll into position after an ajax call changed the page content', 'wp-photo-album-plus' );
|
6382 |
$help = '';
|
6383 |
$slug = 'wppa_ajax_scroll';
|
6384 |
$html = wppa_checkbox($slug);
|
6385 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6386 |
|
6387 |
+
$name = __('Non Ajax scroll', 'wp-photo-album-plus' );
|
6388 |
+
$desc = __('Scroll into position after a wppa link changed the page content', 'wp-photo-album-plus' );
|
6389 |
$help = '';
|
6390 |
$slug = 'wppa_non_ajax_scroll';
|
6391 |
$html = wppa_checkbox($slug);
|
6392 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6393 |
|
6394 |
+
$name = __('Update addressline', 'wp-photo-album-plus' );
|
6395 |
+
$desc = __('Update the addressline after an ajax action or next slide.', 'wp-photo-album-plus' );
|
6396 |
+
$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' );
|
6397 |
+
$help .= '<br>'.__('If unchecked, refreshing the page will re-display the content of the original page.', 'wp-photo-album-plus' );
|
6398 |
+
$help .= '<br>'.__('This will only work on browsers that support history.pushState() and therefor NOT in IE', 'wp-photo-album-plus' );
|
6399 |
$slug = 'wppa_update_addressline';
|
6400 |
$html = wppa_checkbox($slug);
|
6401 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
6402 |
|
6403 |
+
$name = __('Ajax method', 'wp-photo-album-plus' );
|
6404 |
+
$desc = __('The method Ajax will use', 'wp-photo-album-plus' );
|
6405 |
+
$help = __('Only change this setting when there are links that do not work', 'wp-photo-album-plus' );
|
6406 |
$slug1 = 'wppa_ajax_method';
|
6407 |
$slug2 = 'wppa_ajax_home';
|
6408 |
+
$opts = array( __('Normal', 'wp-photo-album-plus' ),
|
6409 |
+
__('Frontend and Backend: Backend method', 'wp-photo-album-plus' ),
|
6410 |
+
__('Frontend: none, Backend: Backend method', 'wp-photo-album-plus' ),
|
6411 |
);
|
6412 |
+
if ( wppa_is_file( dirname( __FILE__ ) . '/wppa-ajax-front.php' ) ) $opts[] = __('Classic (deprecated)', 'wp-photo-album-plus' );
|
6413 |
|
6414 |
$vals = array( 'normal',
|
6415 |
'admin',
|
6418 |
if ( wppa_is_file( dirname( __FILE__ ) . '/wppa-ajax-front.php' ) ) $vals[] = 'extern';
|
6419 |
|
6420 |
$html1 = wppa_select($slug1, $opts, $vals);
|
6421 |
+
$html2 = '<span style="float:left">' . __('Use home url rather than site url', 'wp-photo-album-plus' ) . wppa_checkbox($slug2);
|
6422 |
wppa_setting_new($slug, '5', $name, $desc, $html1.$html2, $help);
|
6423 |
|
6424 |
+
$name = __('Track viewcounts', 'wp-photo-album-plus' );
|
6425 |
+
$desc = __('Register number of views of albums and photos.', 'wp-photo-album-plus' );
|
6426 |
$help = '';
|
6427 |
$slug = 'wppa_track_viewcounts';
|
6428 |
$html = wppa_checkbox($slug);
|
6429 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
6430 |
|
6431 |
+
$name = __('Track clickcounts', 'wp-photo-album-plus' );
|
6432 |
+
$desc = __('Register number of clicks on photos that link to an url.', 'wp-photo-album-plus' );
|
6433 |
$help = '';
|
6434 |
$slug = 'wppa_track_clickcounts';
|
6435 |
$html = wppa_checkbox($slug);
|
6436 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
6437 |
|
6438 |
+
$name = __('Auto page', 'wp-photo-album-plus' );
|
6439 |
+
$desc = __('Create a wp page for every fullsize image.', 'wp-photo-album-plus' );
|
6440 |
$help = '';
|
6441 |
$slug = 'wppa_auto_page';
|
6442 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
6443 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6444 |
|
6445 |
+
$name = __('Auto page display', 'wp-photo-album-plus' );
|
6446 |
+
$desc = __('The type of display on the autopage pages.', 'wp-photo-album-plus' );
|
6447 |
$help = '';
|
6448 |
$slug = 'wppa_auto_page_type';
|
6449 |
+
$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' ) );
|
6450 |
$vals = array('photo', 'mphoto', 'slphoto');
|
6451 |
$html = wppa_select($slug, $opts, $vals);
|
6452 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
6453 |
|
6454 |
+
$name = __('Auto page links', 'wp-photo-album-plus' );
|
6455 |
+
$desc = __('The location for the pagelinks.', 'wp-photo-album-plus' );
|
6456 |
$help = '';
|
6457 |
$slug = 'wppa_auto_page_links';
|
6458 |
+
$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' ));
|
6459 |
$vals = array('none', 'top', 'bottom', 'both');
|
6460 |
$html = wppa_select($slug, $opts, $vals);
|
6461 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
6462 |
/*
|
6463 |
+
$name = __('Defer javascript', 'wp-photo-album-plus' );
|
6464 |
+
$desc = __('Put javascript near the end of the page.', 'wp-photo-album-plus' );
|
6465 |
+
$help = (__('If checkd: May fix layout problems and broken slideshows. May speed up or slow down page appearing.', 'wp-photo-album-plus' ));
|
6466 |
$slug = 'wppa_defer_javascript';
|
6467 |
$html = wppa_checkbox($slug);
|
6468 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
6471 |
$wppa_setting_error = true;
|
6472 |
|
6473 |
/*
|
6474 |
+
$name = __('Custom style', 'wp-photo-album-plus' );
|
6475 |
+
$desc = __('Enter custom style specs here.', 'wp-photo-album-plus' );
|
6476 |
+
$help = __('Please move custom css to the wp customizer. WPPA Custom css will be discontinued in a near future revision.', 'wp-photo-album-plus' );
|
6477 |
$slug = 'wppa_custom_style';
|
6478 |
$html = wppa_textarea($slug, $name);
|
6479 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help, wppa_opt( 'custom_style' ) != '' );
|
6480 |
|
6481 |
+
$name = __('Custom style Chrome', 'wp-photo-album-plus' );
|
6482 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus' );
|
6483 |
// $help = '';
|
6484 |
$slug = 'wppa_custom_style_chrome';
|
6485 |
$html = wppa_textarea($slug, $name);
|
6486 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help, wppa_opt( 'custom_style_chrome' ) != '' );
|
6487 |
|
6488 |
+
$name = __('Custom style Firefox', 'wp-photo-album-plus' );
|
6489 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus' );
|
6490 |
// $help = '';
|
6491 |
$slug = 'wppa_custom_style_firefox';
|
6492 |
$html = wppa_textarea($slug, $name);
|
6493 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help, wppa_opt( 'custom_style_firefox' ) != '' );
|
6494 |
|
6495 |
+
$name = __('Custom style Safari', 'wp-photo-album-plus' );
|
6496 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus' );
|
6497 |
// $help = '';
|
6498 |
$slug = 'wppa_custom_style_safari';
|
6499 |
$html = wppa_textarea($slug, $name);
|
6500 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help, wppa_opt( 'custom_style_safari' ) != '' );
|
6501 |
|
6502 |
+
$name = __('Custom style Edge', 'wp-photo-album-plus' );
|
6503 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus' );
|
6504 |
// $help = '';
|
6505 |
$slug = 'wppa_custom_style_edge';
|
6506 |
$html = wppa_textarea($slug, $name);
|
6507 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help, wppa_opt( 'custom_style_edge' ) != '' );
|
6508 |
|
6509 |
+
$name = __('Custom style IE', 'wp-photo-album-plus' );
|
6510 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus' );
|
6511 |
// $help = '';
|
6512 |
$slug = 'wppa_custom_style_ie';
|
6513 |
$html = wppa_textarea($slug, $name);
|
6514 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help, wppa_opt( 'custom_style_ie' ) != '' );
|
6515 |
|
6516 |
+
$name = __('Custom style Opera', 'wp-photo-album-plus' );
|
6517 |
+
$desc = __('Enter browser specific custom style specs here', 'wp-photo-album-plus' );
|
6518 |
// $help = '';
|
6519 |
$slug = 'wppa_custom_style_opera';
|
6520 |
$html = wppa_textarea($slug, $name);
|
6522 |
*/
|
6523 |
$wppa_setting_error = false;
|
6524 |
|
6525 |
+
$name = __('Use customized style file', 'wp-photo-album-plus' );
|
6526 |
+
$desc = __('This feature is highly discouraged.', 'wp-photo-album-plus' );
|
6527 |
$help = '';
|
6528 |
$slug = 'wppa_use_custom_style_file';
|
6529 |
$html = wppa_checkbox($slug);
|
6530 |
wppa_setting_new($slug, '20', $name, $desc, $html, $help);
|
6531 |
|
6532 |
+
$name = __('Use customized theme file', 'wp-photo-album-plus' );
|
6533 |
+
$desc = __('This feature is highly discouraged.', 'wp-photo-album-plus' );
|
6534 |
$help = '';
|
6535 |
$slug = 'wppa_use_custom_theme_file';
|
6536 |
$html = wppa_checkbox($slug);
|
6537 |
wppa_setting_new($slug, '21', $name, $desc, $html, $help);
|
6538 |
|
6539 |
+
$name = __('Enable photo html access', 'wp-photo-album-plus' );
|
6540 |
+
$desc = __('Creates .htaccess files in .../uploads/wppa/ and .../uploads/wppa/thumbs/', 'wp-photo-album-plus' );
|
6541 |
$help = '';
|
6542 |
$slug = 'wppa_cre_uploads_htaccess';
|
6543 |
+
$opts = array( __('create \'all access\' .htaccess files', 'wp-photo-album-plus' ),
|
6544 |
+
__('remove .htaccess files', 'wp-photo-album-plus' ),
|
6545 |
+
__('create \'no hotlinking\' .htaccess files', 'wp-photo-album-plus' ),
|
6546 |
+
__('do not change existing .htaccess file(s)', 'wp-photo-album-plus' ),
|
6547 |
);
|
6548 |
$vals = array( 'grant',
|
6549 |
'remove',
|
6553 |
$html = wppa_select($slug, $opts, $vals);
|
6554 |
wppa_setting_new($slug, '22', $name, $desc, $html, $help);
|
6555 |
|
6556 |
+
$name = __('Lazy load', 'wp-photo-album-plus' );
|
6557 |
+
$desc = __('Load photos from the server at the moment they will show up.', 'wp-photo-album-plus' );
|
6558 |
$help = '';
|
6559 |
$slug = 'wppa_lazy';
|
6560 |
+
$opts = array(__('Off', 'wp-photo-album-plus' ),__('On pc only', 'wp-photo-album-plus' ),__('On mobile only', 'wp-photo-album-plus' ),__('On both', 'wp-photo-album-plus' ));
|
6561 |
$vals = array('none','pc','mob','all');
|
6562 |
$html = wppa_select($slug, $opts, $vals);
|
6563 |
wppa_setting_new($slug, '23', $name, $desc, $html, $help);
|
6564 |
|
6565 |
+
$name = __('Thumbs first', 'wp-photo-album-plus' );
|
6566 |
+
$desc = __('When displaying album content: thumbnails before subalbums.', 'wp-photo-album-plus' );
|
6567 |
$help = '';
|
6568 |
$slug = 'wppa_thumbs_first';
|
6569 |
$html = wppa_checkbox($slug);
|
6570 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
6571 |
|
6572 |
+
$name = __('Login links', 'wp-photo-album-plus' );
|
6573 |
+
$desc = __('You must login to... links to login page.', 'wp-photo-album-plus' );
|
6574 |
$help = '';
|
6575 |
$slug = 'wppa_login_links';
|
6576 |
$onch = 'wppaRefreshAfter();';
|
6577 |
$html = wppa_checkbox($slug, $onch) . wppa_see_also( 'miscadv', '1', '6', 'login_links' );
|
6578 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
6579 |
|
6580 |
+
$name = __('Relative urls', 'wp-photo-album-plus' );
|
6581 |
+
$desc = __('Use relative urls only.', 'wp-photo-album-plus' );
|
6582 |
$help = '';
|
6583 |
$slug = 'wppa_relative_urls';
|
6584 |
$html = wppa_checkbox($slug);
|
6585 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
6586 |
|
6587 |
+
$name = __('Capitalize tags and cats', 'wp-photo-album-plus' );
|
6588 |
+
$desc = __('Format tags and cats to start with one capital character', 'wp-photo-album-plus' );
|
6589 |
$help = '';
|
6590 |
$slug = 'wppa_capitalize_tags';
|
6591 |
$html = wppa_checkbox($slug);
|
6592 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
6593 |
|
6594 |
+
$name = __('Enable Admins Choice', 'wp-photo-album-plus' );
|
6595 |
+
$desc = __('Enable the creation of zipfiles with selected photos.', 'wp-photo-album-plus' );
|
6596 |
+
$help = __('Activate the Admins Choice widget to make the zipfiles downloadable.', 'wp-photo-album-plus' );
|
6597 |
$slug = 'wppa_admins_choice';
|
6598 |
$opts = array( __( '--- none ---', 'wp-photo-album-plus' ),
|
6599 |
__( 'Admins and superusers', 'wp-photo-album-plus' ),
|
6603 |
$html = wppa_select($slug, $opts, $vals);
|
6604 |
wppa_setting_new($slug, '28', $name, $desc, $html, $help);
|
6605 |
|
6606 |
+
$name = __('Tag Admins Choice', 'wp-photo-album-plus' );
|
6607 |
+
$desc = __('Tag photos with Admins Choice user', 'wp-photo-album-plus' );
|
6608 |
$help = '';
|
6609 |
$slug = 'wppa_choice_is_tag';
|
6610 |
$html = wppa_checkbox($slug);
|
6611 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
6612 |
|
6613 |
+
$name = __('Admins choice me only', 'wp-photo-album-plus' );
|
6614 |
+
$desc = __('Shows the link to the current users zipfile only', 'wp-photo-album-plus' );
|
6615 |
$help = '';
|
6616 |
$slug = 'wppa_admins_choice_meonly';
|
6617 |
$html = wppa_checkbox($slug);
|
6618 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
6619 |
|
6620 |
+
$name = __('Admins choice action', 'wp-photo-album-plus' );
|
6621 |
+
$desc = __('Select the action to be taken after clicking the "My Choice" link', 'wp-photo-album-plus' );
|
6622 |
+
$help = __('If set to album, the link is only shown to users who have album admin rights', 'wp-photo-album-plus' );
|
6623 |
$slug = 'wppa_admins_choice_action';
|
6624 |
+
$opts = array(__('To zipfile', 'wp-photo-album-plus' ), __('To album', 'wp-photo-album-plus' ), __('To album and zip', 'wp-photo-album-plus' ));
|
6625 |
$vals = array('zip', 'album', 'both');
|
6626 |
$html = wppa_select($slug, $opts, $vals);
|
6627 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
6628 |
|
6629 |
+
$name = __('Make owner like photoname', 'wp-photo-album-plus' );
|
6630 |
+
$desc = __('Change the owner to the user who\'s display name equals photoname.', 'wp-photo-album-plus' );
|
6631 |
$help = '';
|
6632 |
$slug = 'wppa_owner_to_name';
|
6633 |
$html = wppa_checkbox($slug);
|
6634 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
6635 |
|
6636 |
+
$name = __('No rightclick', 'wp-photo-album-plus' );
|
6637 |
+
$desc = __('Disable right mouseclick on all images', 'wp-photo-album-plus' );
|
6638 |
$help = '';
|
6639 |
$slug = 'wppa_no_rightclick';
|
6640 |
$html = wppa_checkbox( $slug );
|
6641 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
6642 |
|
6643 |
+
$name = __('Nice scroll on window', 'wp-photo-album-plus' );
|
6644 |
+
$desc = __('Apply the nice scroller on the browserwindow', 'wp-photo-album-plus' );
|
6645 |
$help = '';
|
6646 |
$slug = 'wppa_nicescroll_window';
|
6647 |
$html = wppa_checkbox( $slug );
|
6648 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
6649 |
|
6650 |
+
$name = __('Nice scroller options', 'wp-photo-album-plus' );
|
6651 |
+
$desc = __('The nice scroller configuration options', 'wp-photo-album-plus' );
|
6652 |
+
$help = __('Enter options, one per line, seperated by commas(,).', 'wp-photo-album-plus' );
|
6653 |
$help .= '<br>' .
|
6654 |
+
sprintf( __('Click %s here %s for documentation and a full list of available options', 'wp-photo-album-plus' ),
|
6655 |
'<a href="' . WPPA_URL . '/vendor/nicescroll/README.txt" target="_blank" >',
|
6656 |
'</a>'
|
6657 |
) .
|
6660 |
$html = wppa_textarea( $slug );
|
6661 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
6662 |
|
6663 |
+
$name = __('Response speed', 'wp-photo-album-plus' );
|
6664 |
+
$desc = __('The speed of responsive size adjustments', 'wp-photo-album-plus' );
|
6665 |
$help = '';
|
6666 |
$slug = 'wppa_response_speed';
|
6667 |
$opts = array( __( 'very slow', 'wp-photo-album-plus' ),
|
6675 |
$html = wppa_select($slug, $opts, $vals);
|
6676 |
wppa_setting_new( $slug, '36', $name, $desc, $html, $help );
|
6677 |
|
6678 |
+
$name = __('Enable request info', 'wp-photo-album-plus' );
|
6679 |
+
$desc = __('Shows a button under the slideshow image to request info by email', 'wp-photo-album-plus' );
|
6680 |
$help = '';
|
6681 |
$slug = 'wppa_request_info';
|
6682 |
$html = wppa_checkbox( $slug );
|
6683 |
wppa_setting_new($slug, '37', $name, $desc, $html, $help);
|
6684 |
|
6685 |
+
$name = __('Dialog text', 'wp-photo-album-plus' );
|
6686 |
+
$desc = __('The text to display in the dialog box', 'wp-photo-album-plus' );
|
6687 |
$help = '';
|
6688 |
$slug = 'wppa_request_info_text';
|
6689 |
$html = wppa_input($slug, '90%');
|
6690 |
wppa_setting_new($slug, '38', $name, $desc, $html, $help);
|
6691 |
|
6692 |
+
$name = __('Gallery not A<b></b>lbum', 'wp-photo-album-plus' );
|
6693 |
+
$desc = __('Use the name Gallery rather than A<b></b>lbum', 'wp-photo-album-plus' );
|
6694 |
$help = '';
|
6695 |
$slug = 'wppa_album_use_gallery';
|
6696 |
$html = wppa_checkbox($slug);
|
6697 |
wppa_setting_new($slug, '39', $name, $desc, $html, $help);
|
6698 |
|
6699 |
+
$name = __('Fullscreen policy', 'wp-photo-album-plus' );
|
6700 |
+
$desc = __('Select the desired fullscreen policy', 'wp-photo-album-plus' );
|
6701 |
$help = '';
|
6702 |
$slug = 'wppa_fs_policy';
|
6703 |
+
$opts = array(__('--- none ---', 'wp-photo-album-plus' ), __('On lightbox only', 'wp-photo-album-plus' ), __('The entire page', 'wp-photo-album-plus' ) );
|
6704 |
$vals = array('none', 'lightbox', 'global');
|
6705 |
$html = wppa_select($slug, $opts, $vals, '');
|
6706 |
wppa_setting_new($slug, '40', $name, $desc, $html, $help);
|
6707 |
|
6708 |
+
$name = __('Caching overrule', 'wp-photo-album-plus' );
|
6709 |
+
$desc = __('Overrule caching settings in shortcodes and widgets', 'wp-photo-album-plus' );
|
6710 |
$help = '';
|
6711 |
$slug = 'wppa_cache_overrule';
|
6712 |
+
$opts = array(__('Do not overrule', 'wp-photo-album-plus' ),
|
6713 |
+
__('Cache whenever possible', 'wp-photo-album-plus' ),
|
6714 |
+
__('Never cache', 'wp-photo-album-plus' ),
|
6715 |
);
|
6716 |
$vals = array('default', 'always', 'never');
|
6717 |
$html = wppa_select($slug, $opts, $vals, '');
|
6718 |
wppa_setting_new($slug, '41', $name, $desc, $html, $help);
|
6719 |
|
6720 |
+
$name = __('Delay overrule', 'wp-photo-album-plus' );
|
6721 |
+
$desc = __('Overrule delay settings in shortcodes', 'wp-photo-album-plus' );
|
6722 |
$help = '';
|
6723 |
$slug = 'wppa_delay_overrule';
|
6724 |
+
$opts = array(__('Do not overrule', 'wp-photo-album-plus' ),
|
6725 |
+
__('Delay whenever possible', 'wp-photo-album-plus' ),
|
6726 |
+
__('Never delay', 'wp-photo-album-plus' ),
|
6727 |
);
|
6728 |
$vals = array('default', 'always', 'never');
|
6729 |
$html = wppa_select($slug, $opts, $vals, '');
|
6730 |
wppa_setting_new($slug, '42', $name, $desc, $html, $help);
|
6731 |
|
6732 |
+
$name = __('Use wp_upload_dir()', 'wp-photo-album-plus' );
|
6733 |
+
$desc = __('Rely upon the information supplied by wp_upload_dir() for wppa file locations', 'wp-photo-album-plus' );
|
6734 |
+
$help = __('Switch this on only when you are using non-standard locations for uploads etc', 'wp-photo-album-plus' );
|
6735 |
$slug = 'wppa_use_wp_upload_dir_locations';
|
6736 |
$html = wppa_checkbox($slug);
|
6737 |
wppa_setting_new($slug, '43', $name, $desc, $html, $help);
|
6748 |
wppa_setting_tab_description($desc);
|
6749 |
wppa_setting_box_header_new($tab);
|
6750 |
|
6751 |
+
$name = __('Keep source files', 'wp-photo-album-plus' );
|
6752 |
+
$desc = __('Keep the original uploaded and imported photo files.', 'wp-photo-album-plus' );
|
6753 |
+
$help = __('The files will be kept in a separate directory with subdirectories for each album', 'wp-photo-album-plus' );
|
6754 |
+
$help .= '<br>'.__('These files can be used to update the photos used in displaying in wppa+ and optionally for downloading original, un-downsized images.', 'wp-photo-album-plus' );
|
6755 |
$slug = 'wppa_keep_source';
|
6756 |
$html = wppa_checkbox($slug);
|
6757 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6758 |
|
6759 |
+
$name = __('Source directory', 'wp-photo-album-plus' );
|
6760 |
+
$desc = __('The path to the directory where the original photofiles will be saved.', 'wp-photo-album-plus' );
|
6761 |
+
$help = __('You may change the directory path, but it can not be an url.', 'wp-photo-album-plus' );
|
6762 |
+
$help .= '<br>'.__('The parent of the directory that you enter here must exist and be writable.', 'wp-photo-album-plus' );
|
6763 |
+
$help .= '<br>'.__('The directory itsself will be created if it does not exist yet.', 'wp-photo-album-plus' );
|
6764 |
$slug = 'wppa_source_dir';
|
6765 |
$html = wppa_input($slug, '90%');
|
6766 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6767 |
|
6768 |
+
$name = __('Keep sync', 'wp-photo-album-plus' );
|
6769 |
+
$desc = __('Keep source synchronously with wppa system.', 'wp-photo-album-plus' );
|
6770 |
+
$help = __('If checked, photos that are deleted from wppa, will also be removed from the source files.', 'wp-photo-album-plus' );
|
6771 |
+
$help .= '<br>'.__('Also, copying or moving photos to different albums, will also copy/move the source files.', 'wp-photo-album-plus' );
|
6772 |
$slug = 'wppa_keep_sync';
|
6773 |
$html = wppa_checkbox($slug);
|
6774 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6785 |
wppa_setting_tab_description($desc);
|
6786 |
wppa_setting_box_header_new($tab);
|
6787 |
|
6788 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus' ),
|
6789 |
+
sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus' ), '1'),
|
6790 |
+
sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus' ), '1'),
|
6791 |
+
sprintf( _n('%d day', '%d days', '2', 'wp-photo-album-plus' ), '2'),
|
6792 |
+
sprintf( _n('%d day', '%d days', '3', 'wp-photo-album-plus' ), '3'),
|
6793 |
+
sprintf( _n('%d day', '%d days', '4', 'wp-photo-album-plus' ), '4'),
|
6794 |
+
sprintf( _n('%d day', '%d days', '5', 'wp-photo-album-plus' ), '5'),
|
6795 |
+
sprintf( _n('%d day', '%d days', '6', 'wp-photo-album-plus' ), '6'),
|
6796 |
+
sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus' ), '1'),
|
6797 |
+
sprintf( _n('%d day', '%d days', '8', 'wp-photo-album-plus' ), '8'),
|
6798 |
+
sprintf( _n('%d day', '%d days', '9', 'wp-photo-album-plus' ), '9'),
|
6799 |
+
sprintf( _n('%d day', '%d days', '10', 'wp-photo-album-plus' ), '10'),
|
6800 |
+
sprintf( _n('%d week', '%d weeks', '2', 'wp-photo-album-plus' ), '2'),
|
6801 |
+
sprintf( _n('%d week', '%d weeks', '3', 'wp-photo-album-plus' ), '3'),
|
6802 |
+
sprintf( _n('%d week', '%d weeks', '4', 'wp-photo-album-plus' ), '4'),
|
6803 |
+
sprintf( _n('%d month', '%d months', '1', 'wp-photo-album-plus' ), '1'),
|
6804 |
);
|
6805 |
$vals = array( 0,
|
6806 |
60*60,
|
6820 |
60*60*24*30,
|
6821 |
);
|
6822 |
|
6823 |
+
$name = __('New Album', 'wp-photo-album-plus' );
|
6824 |
+
$desc = __('Maximum time an album is indicated as New', 'wp-photo-album-plus' );
|
6825 |
$help = '';
|
6826 |
$slug = 'wppa_max_album_newtime';
|
6827 |
$html = wppa_select($slug, $opts, $vals);
|
6828 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
6829 |
|
6830 |
+
$name = __('New Photo', 'wp-photo-album-plus' );
|
6831 |
+
$desc = __('Maximum time a photo is indicated as New', 'wp-photo-album-plus' );
|
6832 |
$help = '';
|
6833 |
$slug = 'wppa_max_photo_newtime';
|
6834 |
$html = wppa_select($slug, $opts, $vals);
|
6835 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
6836 |
|
6837 |
+
$name = __('Modified Album', 'wp-photo-album-plus' );
|
6838 |
+
$desc = __('Maximum time an album is indicated as Modified', 'wp-photo-album-plus' );
|
6839 |
$help = '';
|
6840 |
$slug = 'wppa_max_album_modtime';
|
6841 |
$html = wppa_select($slug, $opts, $vals);
|
6842 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
6843 |
|
6844 |
+
$name = __('Modified Photo', 'wp-photo-album-plus' );
|
6845 |
+
$desc = __('Maximum time a photo is indicated as Modified', 'wp-photo-album-plus' );
|
6846 |
+
$help = __('If you tick the checkbox, a modified photo will also set the album as modified', 'wp-photo-album-plus' );
|
6847 |
$slug1 = 'wppa_max_photo_modtime';
|
6848 |
$html1 = wppa_select($slug1, $opts, $vals);
|
6849 |
$slug2 = 'wppa_pup_is_aup';
|
6850 |
$html2 = '<span style="float:left;" >'.__( 'Mod album also' ).'</span>'.wppa_checkbox($slug2);
|
6851 |
wppa_setting_new($slug, '4', $name, $desc, $html1.$html2, $help);
|
6852 |
|
6853 |
+
$name = __('First photo', 'wp-photo-album-plus' );
|
6854 |
+
$desc = __('Indicate the users very first upload', 'wp-photo-album-plus' );
|
6855 |
+
$help = '';
|
6856 |
+
$slug = 'wppa_show_first';
|
6857 |
+
$html = wppa_checkbox($slug);
|
6858 |
+
wppa_setting_new($slug, '4a', $name, $desc, $html, $help);
|
6859 |
+
|
6860 |
+
$name = __('Use text labels', 'wp-photo-album-plus' );
|
6861 |
+
$desc = __('Use editable text for the New and Modified labels', 'wp-photo-album-plus' );
|
6862 |
+
$help = __('If UNticked, you can specify the urls for custom images to be used.', 'wp-photo-album-plus' );
|
6863 |
$slug = 'wppa_new_mod_label_is_text';
|
6864 |
$onch = 'wppaRefreshAfter();';
|
6865 |
$html = wppa_checkbox($slug,$onch);
|
6866 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
6867 |
|
6868 |
$opts = array(
|
6869 |
+
__('Red', 'wp-photo-album-plus' ),
|
6870 |
+
__('Orange', 'wp-photo-album-plus' ),
|
6871 |
+
__('Yellow', 'wp-photo-album-plus' ),
|
6872 |
+
__('Green', 'wp-photo-album-plus' ),
|
6873 |
+
__('Blue', 'wp-photo-album-plus' ),
|
6874 |
+
__('Purple', 'wp-photo-album-plus' ),
|
6875 |
+
__('Black/white', 'wp-photo-album-plus' ),
|
6876 |
);
|
6877 |
$vals = array(
|
6878 |
'red',
|
6884 |
'black',
|
6885 |
);
|
6886 |
|
6887 |
+
$name = __('New label', 'wp-photo-album-plus' );
|
6888 |
+
$desc = __('Specify the "New" indicator details.', 'wp-photo-album-plus' );
|
6889 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus' );
|
6890 |
$slug1 = 'wppa_new_label_text';
|
6891 |
$slug2 = 'wppa_new_label_color';
|
6892 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus' ).': </span>'.wppa_input($slug1, '150px');
|
6893 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus' ).': </span>'.wppa_select($slug2, $opts, $vals);
|
6894 |
wppa_setting_new($slug1, '6', $name, $desc, $html1.' '.$html2, $help);
|
6895 |
|
6896 |
+
$name = __('Modified label', 'wp-photo-album-plus' );
|
6897 |
+
$desc = __('Specify the "Modified" indicator details.', 'wp-photo-album-plus' );
|
6898 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus' );
|
6899 |
$slug1 = 'wppa_mod_label_text';
|
6900 |
$slug2 = 'wppa_mod_label_color';
|
6901 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus' ).': </span>'.wppa_input($slug1, '150px');
|
6902 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus' ).': </span>'.wppa_select($slug2, $opts, $vals);
|
6903 |
wppa_setting_new($slug1, '7', $name, $desc, $html1.' '.$html2, $help);
|
6904 |
|
6905 |
+
$name = __('First label', 'wp-photo-album-plus' );
|
6906 |
+
$desc = __('Specify the "First" indicator details.', 'wp-photo-album-plus' );
|
6907 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus' );
|
6908 |
+
$slug1 = 'wppa_first_label_text';
|
6909 |
+
$slug2 = 'wppa_first_label_color';
|
6910 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus' ).': </span>'.wppa_input($slug1, '150px');
|
6911 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus' ).': </span>'.wppa_select($slug2, $opts, $vals);
|
6912 |
+
wppa_setting_new($slug1, '7a', $name, $desc, $html1.' '.$html2, $help);
|
6913 |
+
|
6914 |
+
$name = __('New label', 'wp-photo-album-plus' );
|
6915 |
+
$desc = __('Specify the "New" indicator url.', 'wp-photo-album-plus' );
|
6916 |
$help = ' ';
|
6917 |
$slug = 'wppa_new_label_url';
|
6918 |
$html = wppa_input($slug, '300px');
|
6919 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6920 |
|
6921 |
+
$name = __('Modified label', 'wp-photo-album-plus' );
|
6922 |
+
$desc = __('Specify the "Modified" indicator url.', 'wp-photo-album-plus' );
|
6923 |
$help = ' ';
|
6924 |
$slug = 'wppa_mod_label_url';
|
6925 |
$html = wppa_input($slug, '300px');
|
6926 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
6927 |
|
6928 |
+
$name = __('First label', 'wp-photo-album-plus' );
|
6929 |
+
$desc = __('Specify the "First" indicator url.', 'wp-photo-album-plus' );
|
6930 |
+
$help = ' ';
|
6931 |
+
$slug = 'wppa_first_label_url';
|
6932 |
+
$html = wppa_input($slug, '300px');
|
6933 |
+
wppa_setting_new($slug, '9a', $name, $desc, $html, $help);
|
6934 |
+
|
6935 |
+
$name = __('Limit LasTen New', 'wp-photo-album-plus' );
|
6936 |
+
$desc = __('Limits the LasTen photos to those that are \'New\', or newly modified.', 'wp-photo-album-plus' );
|
6937 |
+
$help = __('If you tick this box and configured the new photo time, you can even limit the number in LasTen Count, or set that number to an unlikely high value.', 'wp-photo-album-plus' );
|
6938 |
$slug = 'wppa_lasten_limit_new';
|
6939 |
$html = wppa_checkbox($slug) . wppa_see_also( 'widget', '1', '8' );
|
6940 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
6941 |
|
6942 |
+
$name = __('LasTen use Modified', 'wp-photo-album-plus' );
|
6943 |
+
$desc = __('Use the time modified rather than time upload for LasTen widget/shortcode.', 'wp-photo-album-plus' );
|
6944 |
$help = '';
|
6945 |
$slug = 'wppa_lasten_use_modified';
|
6946 |
$html = wppa_checkbox($slug);
|
6947 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
6948 |
|
6949 |
+
$name = __('Apply Newphoto desc', 'wp-photo-album-plus' );
|
6950 |
+
$desc = __('Give each new photo a standard description.', 'wp-photo-album-plus' );
|
6951 |
+
$help = __('If checked, each new photo will get the description (template) as specified in the next item.', 'wp-photo-album-plus' );
|
6952 |
$slug = 'wppa_apply_newphoto_desc';
|
6953 |
$html = wppa_checkbox($slug);
|
6954 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
6955 |
|
6956 |
+
$name = __('New photo desc', 'wp-photo-album-plus' );
|
6957 |
+
$desc = __('The description (template) to add to a new photo.', 'wp-photo-album-plus' );
|
6958 |
+
$help = __('Enter the default description.', 'wp-photo-album-plus' );
|
6959 |
+
$help .= '<br>'.__('If you use html, please check item B-1 of this table.', 'wp-photo-album-plus' );
|
6960 |
+
$help .= '<br>'.__('If you tick the checkbox, linebreaks and redundand spaces will be removed.', 'wp-photo-album-plus' );
|
6961 |
$slug = 'wppa_newphoto_description';
|
6962 |
$slug2 = 'wppa_compress_newdesc';
|
6963 |
$html = wppa_textarea($slug, $name) .
|
6964 |
'<br>' .
|
6965 |
+
__('Compress', 'wp-photo-album-plus' ) .
|
6966 |
wppa_checkbox($slug2);
|
6967 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
6968 |
|
6969 |
+
$name = __('New photo owner', 'wp-photo-album-plus' );
|
6970 |
+
$desc = __('The owner of a new uploaded photo.', 'wp-photo-album-plus' );
|
6971 |
+
$help = __('If you leave this blank, the uploader will be set as the owner', 'wp-photo-album-plus' );
|
6972 |
$slug = 'wppa_newphoto_owner';
|
6973 |
+
$html = wppa_input($slug, '50px', '', __('leave blank or enter login name', 'wp-photo-album-plus' ));
|
6974 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
6975 |
|
6976 |
+
$name = __('Upload limit', 'wp-photo-album-plus' );
|
6977 |
+
$desc = __('New albums are created with this upload limit.', 'wp-photo-album-plus' );
|
6978 |
+
$help = __('Administrators can change the limit settings in the "Edit Album Information" admin page.', 'wp-photo-album-plus' );
|
6979 |
+
$help .= '<br>'.(__('A value of 0 means: no limit.', 'wp-photo-album-plus' ));
|
6980 |
$slug = 'wppa_upload_limit_count';
|
6981 |
+
$html = wppa_input($slug, '50px', '', __('photos', 'wp-photo-album-plus' ));
|
6982 |
$slug = 'wppa_upload_limit_time';
|
6983 |
+
$opts = array( __('for ever', 'wp-photo-album-plus' ),
|
6984 |
+
__('per hour', 'wp-photo-album-plus' ),
|
6985 |
+
__('per day', 'wp-photo-album-plus' ),
|
6986 |
+
__('per week', 'wp-photo-album-plus' ),
|
6987 |
+
__('per month', 'wp-photo-album-plus' ), // 30 days
|
6988 |
+
__('per year', 'wp-photo-album-plus' )); // 364 days
|
6989 |
$vals = array( '0', '3600', '86400', '604800', '2592000', '31449600');
|
6990 |
$html .= wppa_select($slug, $opts, $vals);
|
6991 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
6992 |
|
6993 |
+
$name = __('Default parent', 'wp-photo-album-plus' );
|
6994 |
+
$desc = __('The parent album of new albums.', 'wp-photo-album-plus' );
|
6995 |
$help = '';
|
6996 |
$slug = 'wppa_default_parent';
|
6997 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ), __('--- separate ---', 'wp-photo-album-plus' ) );
|
6998 |
$vals = array( '0', '-1');
|
6999 |
$albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
7000 |
if ( $albs ) {
|
7001 |
foreach ( $albs as $alb ) {
|
7002 |
+
$opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus' );
|
7003 |
$vals[] = $alb['id'];
|
7004 |
}
|
7005 |
}
|
7006 |
$html = wppa_select($slug, $opts, $vals);
|
7007 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
7008 |
|
7009 |
+
$name = __('Default parent always', 'wp-photo-album-plus' );
|
7010 |
+
$desc = __('The parent album of new albums is always the default, except for administrators.', 'wp-photo-album-plus' );
|
7011 |
$help = '';
|
7012 |
$slug = 'wppa_default_parent_always';
|
7013 |
$html = wppa_checkbox($slug);
|
7014 |
wppa_setting_new($slug, '17', $name, $desc, $html, $help);
|
7015 |
|
7016 |
+
$name = __('Grant an album', 'wp-photo-album-plus' );
|
7017 |
+
$desc = __('Create an album for each user logging in.', 'wp-photo-album-plus' );
|
7018 |
$help = '';
|
7019 |
$slug = 'wppa_grant_an_album';
|
7020 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
7021 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
7022 |
|
7023 |
if ( wppa_switch( 'grant_an_album' ) ) {
|
7024 |
+
$name = __('Grant album name', 'wp-photo-album-plus' );
|
7025 |
+
$desc = __('The name to be used for the album.', 'wp-photo-album-plus' );
|
7026 |
$help = '';
|
7027 |
$slug = 'wppa_grant_name';
|
7028 |
+
$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' ));
|
7029 |
$vals = array('login', 'display', 'id', 'firstlast');
|
7030 |
$html = wppa_select($slug, $opts, $vals);
|
7031 |
wppa_setting_new($slug, '19', $name, $desc, $html, $help);
|
7032 |
|
7033 |
$name = __('Grant alnum description', 'wp-photo-album-plus' );
|
7034 |
+
$desc = __('The description to be used for the album.', 'wp-photo-album-plus' );
|
7035 |
+
$help = __('You can use "$user" as placeholder for the name; it will be replaced by the name of the album', 'wp-photo-album-plus' );
|
7036 |
$slug = 'wppa_grant_desc';
|
7037 |
$html = wppa_input($slug, '400px;');
|
7038 |
wppa_setting_new($slug, '19a', $name, $desc, $html, $help);
|
7039 |
|
7040 |
+
$name = __('Grant parent selection method', 'wp-photo-album-plus' );
|
7041 |
+
$desc = __('The way the grant parents are defined.', 'wp-photo-album-plus' );
|
7042 |
$help = '';
|
7043 |
$slug = 'wppa_grant_parent_sel_method';
|
7044 |
+
$opts = array( __('An album (multi)selectionbox', 'wp-photo-album-plus' ),
|
7045 |
+
__('An album category', 'wp-photo-album-plus' ),
|
7046 |
+
__('An index search token', 'wp-photo-album-plus' ),
|
7047 |
);
|
7048 |
$vals = array( 'selectionbox',
|
7049 |
'category',
|
7055 |
|
7056 |
switch( wppa_opt( 'grant_parent_sel_method' ) ) {
|
7057 |
case 'selectionbox':
|
7058 |
+
$name = __('Grant parent', 'wp-photo-album-plus' );
|
7059 |
+
$desc = __('The parent album(s) of the auto created albums.', 'wp-photo-album-plus' );
|
7060 |
+
$help = (__('You may select multiple albums. All logged in visitors will get their own sub-album in each granted parent.', 'wp-photo-album-plus' ));
|
7061 |
$slug = 'wppa_grant_parent';
|
7062 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ), __('--- separate ---', 'wp-photo-album-plus' ) );
|
7063 |
$vals = array( 'zero', '-1');
|
7064 |
$albs = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
7065 |
if ( $albs ) {
|
7066 |
foreach ( $albs as $alb ) {
|
7067 |
+
$opts[] = __(stripslashes($alb['name']), 'wp-photo-album-plus' );
|
7068 |
$vals[] = $alb['id'];
|
7069 |
}
|
7070 |
}
|
7073 |
break;
|
7074 |
|
7075 |
case 'category':
|
7076 |
+
$name = __('Grant parent category', 'wp-photo-album-plus' );
|
7077 |
+
$desc = __('The category of the parent album(s) of the auto created albums.', 'wp-photo-album-plus' );
|
7078 |
$help = '';
|
7079 |
$slug = 'wppa_grant_parent';
|
7080 |
$catlist = wppa_get_catlist();
|
7088 |
break;
|
7089 |
|
7090 |
case 'indexsearch':
|
7091 |
+
$name = __('Grant parent index token', 'wp-photo-album-plus' );
|
7092 |
+
$desc = __('The index token that defines the parent album(s) of the auto created albums.', 'wp-photo-album-plus' );
|
7093 |
$help = '';
|
7094 |
$slug = 'wppa_grant_parent';
|
7095 |
$html = wppa_input($slug, '150px');
|
7101 |
break;
|
7102 |
}
|
7103 |
|
7104 |
+
$name = __('Grant categories', 'wp-photo-album-plus' );
|
7105 |
+
$desc = __('The categories a new granted album will get.', 'wp-photo-album-plus' );
|
7106 |
$help = '';
|
7107 |
$slug = 'wppa_grant_cats';
|
7108 |
$html = wppa_input($slug, '150px');
|
7109 |
wppa_setting_new($slug, '24', $name, $desc, $html, $help);
|
7110 |
|
7111 |
+
$name = __('Grant tags', 'wp-photo-album-plus' );
|
7112 |
+
$desc = __('The default tags the photos in a new granted album will get.', 'wp-photo-album-plus' );
|
7113 |
$help = '';
|
7114 |
$slug = 'wppa_grant_tags';
|
7115 |
$html = wppa_input($slug, '150px');
|
7116 |
wppa_setting_new($slug, '25', $name, $desc, $html, $help);
|
7117 |
|
7118 |
+
$name = __('Grant restrict', 'wp-photo-album-plus' );
|
7119 |
+
$desc = __('Only create albums for users with Album Admin rights', 'wp-photo-album-plus' );
|
7120 |
$help = '';
|
7121 |
$slug = 'wppa_grant_restrict';
|
7122 |
$html = wppa_checkbox($slug) . wppa_see_also( 'admin', '1' );
|
7123 |
wppa_setting_new($slug, '26', $name, $desc, $html, $help);
|
7124 |
}
|
7125 |
|
7126 |
+
$name = __('Iptc 025 keywords to tags', 'wp-photo-album-plus' );
|
7127 |
+
$desc = __('Convert IPTC025 keywords to tags during upload.', 'wp-photo-album-plus' );
|
7128 |
+
$help = __('Saving IPTC data must be on for this feature', 'wp-photo-album-plus' );
|
7129 |
$slug = 'wppa_ipc025_to_tags';
|
7130 |
$html = wppa_checkbox( $slug );
|
7131 |
wppa_setting_new($slug, '27', $name, $desc, $html, $help);
|
7132 |
|
7133 |
+
$name = __('Default photo name', 'wp-photo-album-plus' );
|
7134 |
+
$desc = __('Select the way the name of a new uploaded photo should be determined.', 'wp-photo-album-plus' );
|
7135 |
+
$help = __('If you select an IPTC Tag and it is not found, the filename will be used instead.', 'wp-photo-album-plus' );
|
7136 |
$slug = 'wppa_newphoto_name_method';
|
7137 |
+
$opts = array( __('Filename', 'wp-photo-album-plus' ),
|
7138 |
+
__('Filename without extension', 'wp-photo-album-plus' ),
|
7139 |
+
__('Filename without extension, spaces for hyphens', 'wp-photo-album-plus' ),
|
7140 |
+
__('IPTC Tag 2#005 (Graphic name)', 'wp-photo-album-plus' ),
|
7141 |
+
__('IPTC Tag 2#120 (Caption)', 'wp-photo-album-plus' ),
|
7142 |
+
__('No name at all', 'wp-photo-album-plus' ),
|
7143 |
+
__('Photo w#id (literally)', 'wp-photo-album-plus' ),
|
7144 |
);
|
7145 |
$vals = array( 'filename',
|
7146 |
'noext',
|
7153 |
$html = wppa_select($slug, $opts, $vals);
|
7154 |
wppa_setting_new($slug, '29', $name, $desc, $html, $help);
|
7155 |
|
7156 |
+
$name = __('Default coverphoto', 'wp-photo-album-plus' );
|
7157 |
+
$desc = __('Name of photofile to become cover image', 'wp-photo-album-plus' );
|
7158 |
+
$help = (__('If you name a photofile like this setting before upload, it will become the coverimage automatically.', 'wp-photo-album-plus' ));
|
7159 |
$slug = 'wppa_default_coverimage_name';
|
7160 |
$html = wppa_input($slug, '150px');
|
7161 |
wppa_setting_new($slug, '30', $name, $desc, $html, $help);
|
7162 |
|
7163 |
+
$name = __('Copy Timestamp', 'wp-photo-album-plus' );
|
7164 |
+
$desc = __('Copy timestamp when copying photo.', 'wp-photo-album-plus' );
|
7165 |
+
$help = (__('If checked, the copied photo is not "new"', 'wp-photo-album-plus' ));
|
7166 |
$slug = 'wppa_copy_timestamp';
|
7167 |
$html = wppa_checkbox($slug);
|
7168 |
wppa_setting_new($slug, '31', $name, $desc, $html, $help);
|
7169 |
|
7170 |
+
$name = __('Copy Owner', 'wp-photo-album-plus' );
|
7171 |
+
$desc = __('Copy the owner when copying photo.', 'wp-photo-album-plus' );
|
7172 |
$help = '';
|
7173 |
$slug = 'wppa_copy_owner';
|
7174 |
$html = wppa_checkbox($slug);
|
7175 |
wppa_setting_new($slug, '32', $name, $desc, $html, $help);
|
7176 |
|
7177 |
+
$name = __('Copy Custom', 'wp-photo-album-plus' );
|
7178 |
+
$desc = __('Copy the custom fields when copying photo.', 'wp-photo-album-plus' );
|
7179 |
$help = '';
|
7180 |
$slug = 'wppa_copy_custom';
|
7181 |
$html = wppa_checkbox($slug);
|
7182 |
wppa_setting_new($slug, '33', $name, $desc, $html, $help);
|
7183 |
|
7184 |
+
$name = __('FE Albums public', 'wp-photo-album-plus' );
|
7185 |
+
$desc = __('Frontend created albums are --- public ---', 'wp-photo-album-plus' );
|
7186 |
$help = '';
|
7187 |
$slug = 'wppa_frontend_album_public';
|
7188 |
$html = wppa_checkbox($slug);
|
7189 |
wppa_setting_new($slug, '34', $name, $desc, $html, $help);
|
7190 |
|
7191 |
+
$name = __('Default album linktype', 'wp-photo-album-plus' );
|
7192 |
+
$desc = __('The album linktype for new albums', 'wp-photo-album-plus' );
|
7193 |
$help = '';
|
7194 |
$slug = 'wppa_default_album_linktype';
|
7195 |
+
$opts = array( __('the sub-albums and thumbnails', 'wp-photo-album-plus' ),
|
7196 |
+
__('the sub-albums', 'wp-photo-album-plus' ),
|
7197 |
+
__('the thumbnails', 'wp-photo-album-plus' ),
|
7198 |
+
__('the album photos as slideshow', 'wp-photo-album-plus' ),
|
7199 |
+
__('no link at all', 'wp-photo-album-plus' )
|
7200 |
);
|
7201 |
|
7202 |
$vals = array( 'content',
|
7208 |
$html = wppa_select($slug, $opts, $vals);
|
7209 |
wppa_setting_new($slug, '35', $name, $desc, $html, $help);
|
7210 |
|
7211 |
+
$name = __('Sanitize files', 'wp-photo-album-plus' );
|
7212 |
+
$desc = __('Sanitize filenames during import/upload', 'wp-photo-album-plus' );
|
7213 |
$help = '';
|
7214 |
$slug = 'wppa_sanitize_import';
|
7215 |
$html = wppa_checkbox($slug);
|
7216 |
wppa_setting_new($slug, '36', $name, $desc, $html, $help);
|
7217 |
|
7218 |
+
$name = __('Remove accents', 'wp-photo-album-plus' );
|
7219 |
+
$desc = __('Remove accents from filenames during import/upload', 'wp-photo-album-plus' );
|
7220 |
$help = '';
|
7221 |
$slug = 'wppa_remove_accents';
|
7222 |
$html = wppa_checkbox($slug);
|
7223 |
wppa_setting_new($slug, '37', $name, $desc, $html, $help);
|
7224 |
|
7225 |
+
$name = __('Default photo status', 'wp-photo-album-plus' );
|
7226 |
+
$desc = __('The status new photos will have', 'wp-photo-album-plus' );
|
7227 |
$help = '';
|
7228 |
$slug = 'wppa_status_new';
|
7229 |
|
7251 |
$desc = $wppa_subtab_names[$tab]['1'];
|
7252 |
wppa_setting_tab_description($desc);
|
7253 |
|
7254 |
+
$coldef = array( __('Role', 'wp-photo-album-plus' ) => 'auto;',
|
7255 |
+
__('Album Admin', 'wp-photo-album-plus' ) => 'auto;',
|
7256 |
+
__('Upload', 'wp-photo-album-plus' ) => 'auto;',
|
7257 |
+
__('Import', 'wp-photo-album-plus' ) => 'auto;',
|
7258 |
+
__('Moderate', 'wp-photo-album-plus' ) => 'auto;',
|
7259 |
+
__('Export', 'wp-photo-album-plus' ) => 'auto;',
|
7260 |
+
__('Settings', 'wp-photo-album-plus' ) => 'auto;',
|
7261 |
+
__('Comments', 'wp-photo-album-plus' ) => 'auto;',
|
7262 |
+
__('Documentation', 'wp-photo-album-plus' ) => 'auto;',
|
7263 |
+
__('Tag edit', 'wp-photo-album-plus' ) => 'auto;',
|
7264 |
+
__('Sequence edit', 'wp-photo-album-plus' ) => 'auto',
|
7265 |
+
__('Membership', 'wp-photo-album-plus' ) => 'auto;',
|
7266 |
);
|
7267 |
|
7268 |
|
7281 |
'wppa_medal',
|
7282 |
);
|
7283 |
$opts = array( '',
|
7284 |
+
__('bronze', 'wp-photo-album-plus' ),
|
7285 |
+
__('silver', 'wp-photo-album-plus' ),
|
7286 |
+
__('gold', 'wp-photo-album-plus' ),
|
7287 |
+
__('plus', 'wp-photo-album-plus' ),
|
7288 |
+
__('basic', 'wp-photo-album-plus' ),
|
7289 |
);
|
7290 |
$vals = array( 'none',
|
7291 |
'bronze',
|
7328 |
$desc = $wppa_subtab_names[$tab]['2'];
|
7329 |
wppa_setting_tab_description($desc);
|
7330 |
$coldef = array( '#' => 'auto;',
|
7331 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
7332 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
7333 |
+
__('Setting', 'wp-photo-album-plus' ) => 'auto;',
|
7334 |
+
__('Period', 'wp-photo-album-plus' ) => 'auto;',
|
7335 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
7336 |
);
|
7337 |
wppa_setting_box_header_new($tab, $coldef);
|
7338 |
|
7339 |
+
$name = __('User create Albums', 'wp-photo-album-plus' );
|
7340 |
+
$desc = __('Enable frontend album creation.', 'wp-photo-album-plus' );
|
7341 |
+
$help = __('If you check this item, frontend album creation will be enabled.', 'wp-photo-album-plus' );
|
7342 |
$slug = 'wppa_user_create_on';
|
7343 |
$onchange = '';
|
7344 |
$html1 = wppa_checkbox($slug, $onchange);
|
7346 |
$html = array( $html1, $html2 );
|
7347 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7348 |
|
7349 |
+
$name = __('Max user albums', 'wp-photo-album-plus' );
|
7350 |
+
$desc = __('The max number of albums a user can create.', 'wp-photo-album-plus' );
|
7351 |
+
$help = __('The maximum number of albums a user can create when he is not admin', 'wp-photo-album-plus' );
|
7352 |
+
$help .= '<br>'.__('A number of 0 means No limit', 'wp-photo-album-plus' );
|
7353 |
$slug = 'wppa_max_albums';
|
7354 |
$html1 = wppa_input($slug, '50px', '', 'albums');
|
7355 |
$html2 = '';
|
7356 |
$html = array( $html1, $html2 );
|
7357 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'user_create_on' ));
|
7358 |
|
7359 |
+
$name = __('Max nesting level', 'wp-photo-album-plus' );
|
7360 |
+
$desc = __('Limits the max nesting level for frontend created albums', 'wp-photo-album-plus' );
|
7361 |
$help = '';
|
7362 |
$slug = 'wppa_user_create_max_level';
|
7363 |
$onch = '';
|
7366 |
$html = array( $html1, $html2 );
|
7367 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7368 |
|
7369 |
+
$name = __('User edit album', 'wp-photo-album-plus' );
|
7370 |
+
$desc = __('Enable frontend edit album name and description.', 'wp-photo-album-plus' );
|
7371 |
$help = '';
|
7372 |
$slug = 'wppa_user_album_edit_on';
|
7373 |
$html1 = wppa_checkbox($slug);
|
7375 |
$html = array( $html1, $html2 );
|
7376 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7377 |
|
7378 |
+
$name = __('User delete Albums', 'wp-photo-album-plus' );
|
7379 |
+
$desc = __('Enable frontend album deletion', 'wp-photo-album-plus' );
|
7380 |
+
$help = __('If you check this item, frontend album deletion will be enabled.', 'wp-photo-album-plus' );
|
7381 |
$slug = 'wppa_user_destroy_on';
|
7382 |
$onchange = '';
|
7383 |
$html1 = wppa_checkbox($slug, $onchange);
|
7385 |
$html = array( $html1, $html2 );
|
7386 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
7387 |
|
7388 |
+
$name = __('User create Albums Captcha', 'wp-photo-album-plus' );
|
7389 |
+
$desc = __('User must answer security question.', 'wp-photo-album-plus' );
|
7390 |
$help = '';
|
7391 |
$slug = 'wppa_user_create_captcha';
|
7392 |
$html1 = wppa_checkbox($slug);
|
7394 |
$html = array( $html1, $html2 );
|
7395 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7396 |
|
7397 |
+
$name = __('Fe limts per album', 'wp-photo-album-plus' );
|
7398 |
+
$desc = __('The following limits apply to individual albums', 'wp-photo-album-plus' );
|
7399 |
+
$help = __('If this box is ticked, users can upload the limit on every album they have fe upload rights to', 'wp-photo-album-plus' );
|
7400 |
+
$help .= '<br>'.__('If this box is unticked, the limits apply to all the users uploads in the system regardless of the album(s)', 'wp-photo-album-plus' );
|
7401 |
$slug = 'wppa_role_limit_per_album';
|
7402 |
$html1 = wppa_checkbox($slug);
|
7403 |
$html2 = '';
|
7405 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
7406 |
|
7407 |
// User upload limits
|
7408 |
+
$opts = array( __('for ever', 'wp-photo-album-plus' ),
|
7409 |
+
__('per hour', 'wp-photo-album-plus' ),
|
7410 |
+
__('per day', 'wp-photo-album-plus' ),
|
7411 |
+
__('per week', 'wp-photo-album-plus' ),
|
7412 |
+
__('per month', 'wp-photo-album-plus' ), // 30 days
|
7413 |
+
__('per year', 'wp-photo-album-plus' )); // 364 days
|
7414 |
$vals = array( '0', '3600', '86400', '604800', '2592000', '31449600');
|
7415 |
|
7416 |
$roles = $wp_roles->roles;
|
7419 |
$t_role = isset( $roles[$role]['name'] ) ? translate_user_role( $roles[$role]['name'] ) : $role;
|
7420 |
if ( get_option('wppa_'.$role.'_upload_limit_count', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_count', '0');
|
7421 |
if ( get_option('wppa_'.$role.'_upload_limit_time', 'nil') == 'nil') update_option('wppa_'.$role.'_upload_limit_time', '0');
|
7422 |
+
$name = sprintf(__('Upload limit %s', 'wp-photo-album-plus' ), $t_role);
|
7423 |
+
$desc = sprintf(__('Limit upload capacity for the user role %s.', 'wp-photo-album-plus' ), $t_role);
|
7424 |
+
$help = __('This limitation only applies to frontend uploads when the same userrole does not have the Upload checkbox checked.', 'wp-photo-album-plus' );
|
7425 |
+
$help .= '<br>'.__('A value of 0 means: no limit.', 'wp-photo-album-plus' ) . wppa_see_also( 'admin', '1' );
|
7426 |
$slug1 = 'wppa_'.$role.'_upload_limit_count';
|
7427 |
+
$html1 = wppa_input($slug1, '50px', '', __('photos', 'wp-photo-album-plus' ));
|
7428 |
$slug2 = 'wppa_'.$role.'_upload_limit_time';
|
7429 |
$html2 = wppa_select($slug2, $opts, $vals);
|
7430 |
$html = array( $html1, $html2 );
|
7434 |
foreach (array_keys($roles) as $role) {
|
7435 |
$t_role = isset( $roles[$role]['name'] ) ? translate_user_role( $roles[$role]['name'] ) : $role;
|
7436 |
if ( get_option('wppa_'.$role.'_album_limit_count', 'nil') == 'nil') update_option('wppa_'.$role.'_album_limit_count', '0');
|
7437 |
+
$name = sprintf(__('Album limit %s', 'wp-photo-album-plus' ), $t_role);
|
7438 |
+
$desc = sprintf(__('Limit number of albums for the user role %s.', 'wp-photo-album-plus' ), $t_role);
|
7439 |
+
$help = __('This limitation only applies to frontend create albums when the same userrole does not have the Album admin checkbox checked.', 'wp-photo-album-plus' );
|
7440 |
+
$help .= '<br>'.__('A value of 0 means: no limit.', 'wp-photo-album-plus' ) . wppa_see_also( 'admin', '1' );
|
7441 |
$slug1 = 'wppa_'.$role.'_album_limit_count';
|
7442 |
+
$html1 = wppa_input($slug1, '50px', '', __('albums', 'wp-photo-album-plus' ));
|
7443 |
$slug2 = '';
|
7444 |
$html2 = '';
|
7445 |
$html = array( $html1, $html2 );
|
7446 |
wppa_setting_new(false, '9.'.$t_role, $name, $desc, $html, $help);
|
7447 |
}
|
7448 |
|
7449 |
+
$name = __('Upload one only', 'wp-photo-album-plus' );
|
7450 |
+
$desc = __('Non admin users can upload only one photo at a time.', 'wp-photo-album-plus' );
|
7451 |
$help = '';
|
7452 |
$slug = 'wppa_upload_one_only';
|
7453 |
$html1 = wppa_checkbox($slug);
|
7455 |
$html = array( $html1, $html2 );
|
7456 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
7457 |
|
7458 |
+
$name = __('Upload moderation', 'wp-photo-album-plus' );
|
7459 |
+
$desc = __('Uploaded photos need moderation.', 'wp-photo-album-plus' );
|
7460 |
+
$help = __('If checked, photos uploaded by users who do not have photo album admin access rights need moderation.', 'wp-photo-album-plus' );
|
7461 |
+
$help .= '<br>'.__('Users who have photo album admin access rights can change the photo status to publish or featured.', 'wp-photo-album-plus' );
|
7462 |
$help .= '<br>'.wppa_see_also( 'admin', '1' );
|
7463 |
$slug = 'wppa_upload_moderate';
|
7464 |
$html1 = wppa_checkbox($slug);
|
7466 |
$html = array( $html1, $html2 );
|
7467 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
7468 |
|
7469 |
+
$name = __('FE Upload private', 'wp-photo-album-plus' );
|
7470 |
+
$desc = __('Front-end uploaded photos status is set to private.', 'wp-photo-album-plus' );
|
7471 |
+
$help = __('This setting overrules Upload moderation.', 'wp-photo-album-plus' );
|
7472 |
$slug = 'wppa_fe_upload_private';
|
7473 |
$html1 = wppa_checkbox($slug);
|
7474 |
$html2 = '';
|
7475 |
$html = array( $html1, $html2 );
|
7476 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
7477 |
|
7478 |
+
$name = __('Min size in pixels', 'wp-photo-album-plus' );
|
7479 |
+
$desc = __('Min size for height and width for front-end uploads.', 'wp-photo-album-plus' );
|
7480 |
+
$help = __('Enter the minimum size.', 'wp-photo-album-plus' );
|
7481 |
$slug = 'wppa_upload_frontend_minsize';
|
7482 |
+
$html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
7483 |
$html2 = '';
|
7484 |
$html = array( $html1, $html2 );
|
7485 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
7486 |
|
7487 |
+
$name = __('Max size in pixels', 'wp-photo-album-plus' );
|
7488 |
+
$desc = __('Max size for height and width for front-end uploads.', 'wp-photo-album-plus' );
|
7489 |
+
$help = __('Enter the maximum size. 0 is unlimited', 'wp-photo-album-plus' );
|
7490 |
$slug = 'wppa_upload_frontend_maxsize';
|
7491 |
+
$html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
7492 |
$html2 = '';
|
7493 |
$html = array( $html1, $html2 );
|
7494 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
7495 |
|
7496 |
+
$name = __('Fe alert', 'wp-photo-album-plus' );
|
7497 |
+
$desc = __('Show alertbox on front-end.', 'wp-photo-album-plus' );
|
7498 |
+
$help = __('Errors are always reported, credit points only when --- none --- is not selected', 'wp-photo-album-plus' );
|
7499 |
$slug = 'wppa_fe_alert';
|
7500 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
7501 |
+
__('uploads and create albums', 'wp-photo-album-plus' ),
|
7502 |
+
__('blog it', 'wp-photo-album-plus' ),
|
7503 |
+
__('all', 'wp-photo-album-plus' ),
|
7504 |
);
|
7505 |
$vals = array( '-none-',
|
7506 |
'upcre',
|
7512 |
$html = array( $html1, $html2 );
|
7513 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
7514 |
|
7515 |
+
$name = __('Max fe upload albums', 'wp-photo-album-plus' );
|
7516 |
+
$desc = __('Max number of albums in frontend upload selection box.', 'wp-photo-album-plus' );
|
7517 |
$help = '';
|
7518 |
$slug = 'wppa_fe_upload_max_albums';
|
7519 |
$opts = array('0', '10', '20', '50', '100', '200', '500', '1000');
|
7520 |
$vals = $opts;
|
7521 |
+
$html1 = wppa_select($slug, $opts, $vals).__('albums', 'wp-photo-album-plus' );
|
7522 |
$html2 = '';
|
7523 |
$html = array( $html1, $html2 );
|
7524 |
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
7531 |
wppa_setting_tab_description($desc);
|
7532 |
wppa_setting_box_header_new($tab);
|
7533 |
|
7534 |
+
$name = __('Import Create page', 'wp-photo-album-plus' );
|
7535 |
+
$desc = __('Create wp page that shows the album when a directory to album is imported.', 'wp-photo-album-plus' );
|
7536 |
+
$help = __('As soon as an album is created when a directory is imported, a wp page is made that displays the album content.', 'wp-photo-album-plus' );
|
7537 |
$slug = 'wppa_newpag_create';
|
7538 |
$onch = '';
|
7539 |
$html = wppa_checkbox($slug, $onch);
|
7540 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7541 |
|
7542 |
+
$name = __('Page content', 'wp-photo-album-plus' );
|
7543 |
+
$desc = __('The content of the page. Must contain <b>w#album</b>', 'wp-photo-album-plus' );
|
7544 |
+
$help = __('The content of the page. Note: it must contain w#album. This will be replaced by the album number in the generated shortcode.', 'wp-photo-album-plus' );
|
7545 |
$slug = 'wppa_newpag_content';
|
7546 |
$clas = 'wppa_newpag';
|
7547 |
$html = wppa_input($slug, '90%');
|
7548 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7549 |
|
7550 |
+
$name = __('Page type', 'wp-photo-album-plus' );
|
7551 |
+
$desc = __('Select the type of page to create.', 'wp-photo-album-plus' );
|
7552 |
$help = '';
|
7553 |
$slug = 'wppa_newpag_type';
|
7554 |
$clas = 'wppa_newpag';
|
7555 |
+
$opts = array(__('Page', 'wp-photo-album-plus' ), __('Post', 'wp-photo-album-plus' ));
|
7556 |
$vals = array('page', 'post');
|
7557 |
$html = wppa_select($slug, $opts, $vals);
|
7558 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7559 |
|
7560 |
+
$name = __('Page status', 'wp-photo-album-plus' );
|
7561 |
+
$desc = __('Select the initial status of the page.', 'wp-photo-album-plus' );
|
7562 |
$help = '';
|
7563 |
$slug = 'wppa_newpag_status';
|
7564 |
$clas = 'wppa_newpag';
|
7565 |
+
$opts = array(__('Published', 'wp-photo-album-plus' ), __('Draft', 'wp-photo-album-plus' ));
|
7566 |
$vals = array('publish', 'draft'); // 'draft' | 'publish' | 'pending'| 'future' | 'private'
|
7567 |
$html = wppa_select($slug, $opts, $vals);
|
7568 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7569 |
|
7570 |
if ( ! is_multisite() || WPPA_MULTISITE_GLOBAL ) {
|
7571 |
+
$name = __('Permalink root', 'wp-photo-album-plus' );
|
7572 |
+
$desc = __('The name of the root for the photofile permalink structure.', 'wp-photo-album-plus' );
|
7573 |
+
$help = __('Choose a convenient name like "albums" or so; this will be the name of a folder inside .../wp-content/. Make sure you choose a unique name', 'wp-photo-album-plus' );
|
7574 |
+
$help .= '<br>'.__('If you make this field empty, the feature is disabled.', 'wp-photo-album-plus' );
|
7575 |
$slug = 'wppa_pl_dirname';
|
7576 |
$html = wppa_input($slug, '150px');
|
7577 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
7578 |
}
|
7579 |
|
7580 |
+
$name = __('Import parent check', 'wp-photo-album-plus' );
|
7581 |
+
$desc = __('Makes the album tree like the directory tree on Import Dirs to albums.', 'wp-photo-album-plus' );
|
7582 |
+
$help = __('Untick only if all your albums have unique names. In this case additional photos may be ftp\'d to toplevel depot subdirs.', 'wp-photo-album-plus' );
|
7583 |
$slug = 'wppa_import_parent_check';
|
7584 |
$html = wppa_checkbox($slug);
|
7585 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7586 |
|
7587 |
+
$name = __('Keep dir to album files', 'wp-photo-album-plus' );
|
7588 |
+
$desc = __('Keep imported files after dir to album import', 'wp-photo-album-plus' );
|
7589 |
$help = '';
|
7590 |
$slug = 'wppa_keep_import_files';
|
7591 |
$html = wppa_checkbox($slug);
|
7592 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
7593 |
|
7594 |
+
$name = __('Import page previews', 'wp-photo-album-plus' );
|
7595 |
+
$desc = __('Show thumbnail previews in import admin page.', 'wp-photo-album-plus' );
|
7596 |
$help = '';
|
7597 |
$slug = 'wppa_import_preview';
|
7598 |
$html = wppa_checkbox($slug);
|
7599 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
7600 |
|
7601 |
+
$name = __('Import source root', 'wp-photo-album-plus' );
|
7602 |
+
$desc = __('Specify the highest level in the filesystem where to import from', 'wp-photo-album-plus' );
|
7603 |
$help = '';
|
7604 |
$slug = 'wppa_import_root';
|
7605 |
$opts = array();
|
7614 |
$html = wppa_select($slug,$opts,$vals,'','',false,'','500');
|
7615 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
7616 |
|
7617 |
+
$name = __('Allow import from WPPA+ source folders', 'wp-photo-album-plus' );
|
7618 |
+
$desc = __('Only switch this on if you know what you are doing!', 'wp-photo-album-plus' );
|
7619 |
$help = '';
|
7620 |
$slug = 'wppa_allow_import_source';
|
7621 |
$html = wppa_checkbox($slug);
|
7629 |
wppa_setting_tab_description($desc);
|
7630 |
wppa_setting_box_header_new($tab);
|
7631 |
|
7632 |
+
$name = __('Alt thumb is restricted', 'wp-photo-album-plus' );
|
7633 |
+
$desc = __('Using <b>alt thumbsize</b> is a restricted action.', 'wp-photo-album-plus' );
|
7634 |
+
$help = __('If checked: alt thumbsize can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus' );
|
7635 |
$slug = 'wppa_alt_is_restricted';
|
7636 |
$html = wppa_checkbox($slug);
|
7637 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7638 |
|
7639 |
+
$name = __('Link is restricted', 'wp-photo-album-plus' );
|
7640 |
+
$desc = __('Using <b>Link to</b> is a restricted action.', 'wp-photo-album-plus' );
|
7641 |
+
$help = __('If checked: Link to: can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus' );
|
7642 |
$slug = 'wppa_link_is_restricted';
|
7643 |
$html = wppa_checkbox($slug);
|
7644 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7645 |
|
7646 |
+
$name = __('CoverType is restricted', 'wp-photo-album-plus' );
|
7647 |
+
$desc = __('Changing <b>Cover Type</b> is a restricted action.', 'wp-photo-album-plus' );
|
7648 |
+
$help = __('If checked: Cover Type: can not be set in album admin by users not having admin rights.', 'wp-photo-album-plus' );
|
7649 |
$slug = 'wppa_covertype_is_restricted';
|
7650 |
$html = wppa_checkbox($slug);
|
7651 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7652 |
|
7653 |
+
$name = __('Photo order is restricted', 'wp-photo-album-plus' );
|
7654 |
+
$desc = __('Changing <b>Photo sort order</b> is a restricted action.', 'wp-photo-album-plus' );
|
7655 |
+
$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' );
|
7656 |
$slug = 'wppa_porder_restricted';
|
7657 |
$html = wppa_checkbox($slug);
|
7658 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7659 |
|
7660 |
+
$name = __('Change source restricted', 'wp-photo-album-plus' );
|
7661 |
+
$desc = __('Changing the import source dir requires admin rights.', 'wp-photo-album-plus' );
|
7662 |
+
$help = __('If checked, the imput source for importing photos and albums is restricted to user role administrator.', 'wp-photo-album-plus' );
|
7663 |
$slug = 'wppa_chgsrc_is_restricted';
|
7664 |
$html = wppa_checkbox($slug);
|
7665 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
7666 |
|
7667 |
+
$name = __('Extended status restricted', 'wp-photo-album-plus' );
|
7668 |
+
$desc = __('Setting status other than pending or publish requires admin rights.', 'wp-photo-album-plus' );
|
7669 |
$help = '';
|
7670 |
$slug = 'wppa_ext_status_restricted';
|
7671 |
$html = wppa_checkbox($slug);
|
7672 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7673 |
|
7674 |
+
$name = __('Photo description restricted', 'wp-photo-album-plus' );
|
7675 |
+
$desc = __('Edit photo description requires admin rights.', 'wp-photo-album-plus' );
|
7676 |
$help = '';
|
7677 |
$slug = 'wppa_desc_is_restricted';
|
7678 |
$html = wppa_checkbox($slug);
|
7679 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
7680 |
|
7681 |
+
$name = __('Update photofiles restricted', 'wp-photo-album-plus' );
|
7682 |
+
$desc = __('Re-upload files requires admin rights', 'wp-photo-album-plus' );
|
7683 |
$help = '';
|
7684 |
$slug = 'wppa_reup_is_restricted';
|
7685 |
$html = wppa_checkbox($slug);
|
7686 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
7687 |
|
7688 |
+
$name = __('New tags restricted', 'wp-photo-album-plus' );
|
7689 |
+
$desc = __('Creating new tags requires admin rights', 'wp-photo-album-plus' );
|
7690 |
+
$help = __('If ticked, users can ony use existing tags', 'wp-photo-album-plus' );
|
7691 |
$slug = 'wppa_newtags_is_restricted';
|
7692 |
$html = wppa_checkbox($slug);
|
7693 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
7694 |
|
7695 |
+
$name = __('Album Admin separate', 'wp-photo-album-plus' );
|
7696 |
+
$desc = __('Restrict album admin to separate albums for non administrators', 'wp-photo-album-plus' );
|
7697 |
$help = '';
|
7698 |
$slug = 'wppa_admin_separate';
|
7699 |
$html = wppa_checkbox($slug);
|
7700 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
7701 |
|
7702 |
+
$name = __('Album download link restricted', 'wp-photo-album-plus' );
|
7703 |
+
$desc = __('The album download link on covers shows only to admin', 'wp-photo-album-plus' );
|
7704 |
$help = '';
|
7705 |
$slug = 'wppa_download_album_is_restricted';
|
7706 |
$html = wppa_checkbox($slug);
|
7714 |
wppa_setting_tab_description($desc);
|
7715 |
wppa_setting_box_header_new($tab);
|
7716 |
|
7717 |
+
$name = __('Frontend Edit', 'wp-photo-album-plus' );
|
7718 |
+
$desc = __('Allow the uploader to edit the photo info', 'wp-photo-album-plus' );
|
7719 |
+
$help = __('If selected, any logged in user who meets the criteria has the capability to edit the photo information.', 'wp-photo-album-plus' );
|
7720 |
+
$help .= '<br>'.__('Note: This may be AFTER moderation!!', 'wp-photo-album-plus' );
|
7721 |
$slug = 'wppa_upload_edit';
|
7722 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ), __('New style', 'wp-photo-album-plus' ) );
|
7723 |
$vals = array( '-none-', 'new' );
|
7724 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();' );
|
7725 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7726 |
|
7727 |
if ( wppa_opt( 'upload_edit' ) != '-none-' ) {
|
7728 |
|
7729 |
+
$name = __('Fe Edit users', 'wp-photo-album-plus' );
|
7730 |
+
$desc = __('The criteria the user must meet to edit photo info', 'wp-photo-album-plus' );
|
7731 |
$help = '';
|
7732 |
$slug = 'wppa_upload_edit_users';
|
7733 |
+
$opts = array( __('Admin and superuser', 'wp-photo-album-plus' ), __('Owner, admin and superuser', 'wp-photo-album-plus' ) );
|
7734 |
$vals = array( 'admin', 'owner' );
|
7735 |
$html = wppa_select($slug, $opts, $vals);
|
7736 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7737 |
|
7738 |
+
$name = __('Fe Edit period', 'wp-photo-album-plus' );
|
7739 |
+
$desc = __('The time since upload the user can edit photo info', 'wp-photo-album-plus' );
|
7740 |
+
$help = __('Frontend Edit should be set in order to have effect', 'wp-photo-album-plus' );
|
7741 |
+
$help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus' );
|
7742 |
$slug = 'wppa_upload_edit_period';
|
7743 |
+
$opts = array( __('15 minutes', 'wp-photo-album-plus' ),
|
7744 |
+
__('one hour', 'wp-photo-album-plus' ),
|
7745 |
+
__('three hours', 'wp-photo-album-plus' ),
|
7746 |
+
__('one day', 'wp-photo-album-plus' ),
|
7747 |
+
__('for ever', 'wp-photo-album-plus' ),
|
7748 |
);
|
7749 |
$vals = array( 900, 3600, 10800, 86400, 0 );
|
7750 |
$html = wppa_select($slug, $opts, $vals);
|
7751 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
7752 |
|
7753 |
+
$name = __('Fe Edit Theme CSS', 'wp-photo-album-plus' );
|
7754 |
+
$desc = __('The front-end edit photo dialog uses the theme CSS.', 'wp-photo-album-plus' );
|
7755 |
+
$help = __('This setting has effect when Frontend Edit is set to \'Classic\' only.', 'wp-photo-album-plus' );
|
7756 |
$slug = 'wppa_upload_edit_theme_css';
|
7757 |
$html = wppa_checkbox($slug);
|
7758 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
7759 |
|
7760 |
+
$name = __('Fe Edit New Items', 'wp-photo-album-plus' );
|
7761 |
+
$desc = __('The items that are fe editable', 'wp-photo-album-plus' );
|
7762 |
$help = wppa_see_also( 'custom', '2' );
|
7763 |
$slug1 = 'wppa_fe_edit_name';
|
7764 |
$slug2 = 'wppa_fe_edit_desc';
|
7765 |
$slug3 = 'wppa_fe_edit_tags';
|
7766 |
+
$html1 = ' <span style="float:left" >'.__('Name', 'wp-photo-album-plus' ).':</span>'.wppa_checkbox($slug1);
|
7767 |
+
$html2 = ' <span style="float:left" >'.__('Description', 'wp-photo-album-plus' ).':</span>'.wppa_checkbox($slug2);
|
7768 |
+
$html3 = ' <span style="float:left" >'.__('Tags', 'wp-photo-album-plus' ).':</span>'.wppa_checkbox($slug3);
|
7769 |
$html = array($html1.$html2.$html3);
|
7770 |
wppa_setting_new($slug1, '5', $name, $desc, $html, $help);
|
7771 |
|
7772 |
+
$name = __('Fe Edit Button text', 'wp-photo-album-plus' );
|
7773 |
+
$desc = __('The text on the Edit button.', 'wp-photo-album-plus' );
|
7774 |
$help = '';
|
7775 |
$slug = 'wppa_fe_edit_button';
|
7776 |
$html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
|
7777 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
7778 |
|
7779 |
+
$name = __('Fe Edit Dialog caption', 'wp-photo-album-plus' );
|
7780 |
+
$desc = __('The text on the header of the popup.', 'wp-photo-album-plus' );
|
7781 |
$help = '';
|
7782 |
$slug = 'wppa_fe_edit_caption';
|
7783 |
$html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
|
7785 |
|
7786 |
}
|
7787 |
|
7788 |
+
$name = __('Frontend Delete', 'wp-photo-album-plus' );
|
7789 |
+
$desc = __('Allow the uploader to delete the photo', 'wp-photo-album-plus' );
|
7790 |
$help = '';
|
7791 |
$slug = 'wppa_upload_delete';
|
7792 |
$html = wppa_checkbox($slug);
|
7793 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
7794 |
|
7795 |
+
$name = __('Fe Delete period', 'wp-photo-album-plus' );
|
7796 |
+
$desc = __('The time since upload the user can delete the photo', 'wp-photo-album-plus' );
|
7797 |
+
$help = __('Frontend Delete should be set in order to have effect', 'wp-photo-album-plus' );
|
7798 |
+
$help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus' );
|
7799 |
$slug = 'wppa_upload_delete_period';
|
7800 |
+
$opts = array( __('15 minutes', 'wp-photo-album-plus' ),
|
7801 |
+
__('one hour', 'wp-photo-album-plus' ),
|
7802 |
+
__('three hours', 'wp-photo-album-plus' ),
|
7803 |
+
__('one day', 'wp-photo-album-plus' ),
|
7804 |
+
__('for ever', 'wp-photo-album-plus' ),
|
7805 |
);
|
7806 |
$vals = array( 900, 3600, 10800, 86400, 0 );
|
7807 |
$html = wppa_select($slug, $opts, $vals);
|
7808 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
7809 |
|
7810 |
+
$name = __('Uploader Moderate Comment', 'wp-photo-album-plus' );
|
7811 |
+
$desc = __('The owner of the photo can moderate the photos comments.', 'wp-photo-album-plus' );
|
7812 |
+
$help = __('This setting requires "Uploader edit" to be enabled also.', 'wp-photo-album-plus' );
|
7813 |
$slug = 'wppa_owner_moderate_comment';
|
7814 |
$html = wppa_checkbox($slug);
|
7815 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
7816 |
|
7817 |
+
$name = __('Upload memory check', 'wp-photo-album-plus' );
|
7818 |
+
$desc = __('Disable uploading photos that are too large.', 'wp-photo-album-plus' );
|
7819 |
+
$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' );
|
7820 |
$slug = 'wppa_memcheck';
|
7821 |
$html = wppa_checkbox($slug);
|
7822 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
7823 |
|
7824 |
+
$name = __('Upload memory check copy', 'wp-photo-album-plus' );
|
7825 |
+
$desc = __('Copy photos that are too large.', 'wp-photo-album-plus' );
|
7826 |
+
$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' );
|
7827 |
$slug = 'wppa_memcheck_copy';
|
7828 |
$html = wppa_checkbox($slug);
|
7829 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
7830 |
|
7831 |
+
$name = __('Comment captcha', 'wp-photo-album-plus' );
|
7832 |
+
$desc = __('Use a simple calculate captcha on comments form.', 'wp-photo-album-plus' );
|
7833 |
$help = '';
|
7834 |
$slug = 'wppa_comment_captcha';
|
7835 |
+
$opts = array(__('All users', 'wp-photo-album-plus' ), __('Logged out users', 'wp-photo-album-plus' ), __('No users', 'wp-photo-album-plus' ));
|
7836 |
$vals = array('all', 'logout', 'none');
|
7837 |
$html = wppa_select($slug, $opts, $vals);
|
7838 |
$clas = 'wppa_comment_';
|
7839 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
7840 |
|
7841 |
+
$name = __('Spam lifetime', 'wp-photo-album-plus' );
|
7842 |
+
$desc = __('Delete spam comments when older than.', 'wp-photo-album-plus' );
|
7843 |
$help = '';
|
7844 |
$slug = 'wppa_spam_maxage';
|
7845 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus' ),
|
7846 |
+
sprintf( _n('%d minute', '%d minutes', '10', 'wp-photo-album-plus' ), '10'),
|
7847 |
+
sprintf( _n('%d minute', '%d minutes', '30', 'wp-photo-album-plus' ), '30'),
|
7848 |
+
sprintf( _n('%d hour', '%d hours', '1', 'wp-photo-album-plus' ), '1'),
|
7849 |
+
sprintf( _n('%d day', '%d days', '1', 'wp-photo-album-plus' ), '1'),
|
7850 |
+
sprintf( _n('%d week', '%d weeks', '1', 'wp-photo-album-plus' ), '1'),
|
7851 |
);
|
7852 |
|
7853 |
$vals = array( 'none',
|
7862 |
$clas = 'wppa_comment_';
|
7863 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
7864 |
|
7865 |
+
$name = __('Avoid duplicates', 'wp-photo-album-plus' );
|
7866 |
+
$desc = __('Prevent the creation of duplicate photos.', 'wp-photo-album-plus' );
|
7867 |
+
$help = __('If checked: uploading, importing, copying or moving photos to other albums will be prevented when the destination album already contains a photo with the same filename.', 'wp-photo-album-plus' );
|
7868 |
$slug = 'wppa_void_dups';
|
7869 |
$html = wppa_checkbox($slug);
|
7870 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
7871 |
|
7872 |
+
$name = __('Blacklist user', 'wp-photo-album-plus' );
|
7873 |
+
$desc = __('Set the status of all the users photos to \'pending\'.', 'wp-photo-album-plus' );
|
7874 |
+
$help = __('Also inhibits further uploads.', 'wp-photo-album-plus' );
|
7875 |
$slug = 'wppa_blacklist_user';
|
7876 |
$blacklist = wppa_get_option( 'wppa_black_listed_users', array() );
|
7877 |
|
7878 |
if ( wppa_get_user_count() <= wppa_opt( 'max_users' ) ) {
|
7879 |
$users = wppa_get_users();
|
7880 |
+
$opts = array( __('--- select a user to blacklist ---', 'wp-photo-album-plus' ) );
|
7881 |
$vals = array( '0' );
|
7882 |
foreach ( $users as $usr ) {
|
7883 |
// if ( ! wppa_user_is( 'administrator', $usr['ID'] ) ) { // an administrator can not be blacklisted
|
7887 |
}
|
7888 |
// }
|
7889 |
}
|
7890 |
+
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus' ).'\');wppaRefreshAfter();';
|
7891 |
$html = wppa_select($slug, $opts, $vals, $onchange);
|
7892 |
}
|
7893 |
else { // over 1000 users
|
7894 |
+
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus' ).'\');wppaRefreshAfter();';
|
7895 |
+
$html = '<span style="float:left" >'.__( 'User login name <b>( case sensitive! )</b>:', 'wp-photo-album-plus' ).'</span>';
|
7896 |
$html .= wppa_input ( $slug, '150px', '', '', $onchange );
|
7897 |
}
|
7898 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
7899 |
|
7900 |
+
$name = __('Unblacklist user', 'wp-photo-album-plus' );
|
7901 |
+
$desc = __('Set the status of all the users photos to \'publish\'.', 'wp-photo-album-plus' );
|
7902 |
$help = '';
|
7903 |
$slug = 'wppa_un_blacklist_user';
|
7904 |
$blacklist = wppa_get_option( 'wppa_black_listed_users', array() );
|
7905 |
+
$opts = array( __('--- select a user to unblacklist ---', 'wp-photo-album-plus' ) );
|
7906 |
$vals = array( '0' );
|
7907 |
foreach ( $blacklist as $usr ) {
|
7908 |
$u = wppa_get_user_by( 'login', $usr );
|
7909 |
$opts[] = htmlspecialchars( $u->display_name ).' ('.$u->user_login.')';
|
7910 |
$vals[] = $u->user_login;
|
7911 |
}
|
7912 |
+
$onchange = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus' ).'\');wppaRefreshAfter();';
|
7913 |
$html = wppa_select($slug, $opts, $vals, $onchange);
|
7914 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
7915 |
|
7916 |
+
$name = __('Photo owner change', 'wp-photo-album-plus' );
|
7917 |
+
$desc = __('Administrators can change photo owner', 'wp-photo-album-plus' );
|
7918 |
$help = '';
|
7919 |
$slug = 'wppa_photo_owner_change';
|
7920 |
$html = wppa_checkbox( $slug );
|
7921 |
wppa_setting_new($slug, '18', $name, $desc, $html, $help);
|
7922 |
|
7923 |
+
$name = __('Super user', 'wp-photo-album-plus' );
|
7924 |
+
$desc = __('Give these users all rights in wppa.', 'wp-photo-album-plus' );
|
7925 |
+
$help = __('This gives the user all the administrator privileges within wppa.', 'wp-photo-album-plus' );
|
7926 |
+
$help .= '<br>'.__('Make sure the user also has a role that has all the capability boxes ticked', 'wp-photo-album-plus' );
|
7927 |
$help .= '<br>'.wppa_see_also( 'admin', '1' );
|
7928 |
$slug = 'wppa_superuser_user';
|
7929 |
$superlist = wppa_get_option( 'wppa_super_users', array() );
|
7930 |
|
7931 |
if ( wppa_get_user_count() <= wppa_opt( 'max_users' ) ) {
|
7932 |
$users = wppa_get_users();
|
7933 |
+
$opts = array( __('--- select a user to make superuser ---', 'wp-photo-album-plus' ) );
|
7934 |
$vals = array( '0' );
|
7935 |
foreach ( $users as $usr ) {
|
7936 |
if ( ! in_array( $usr['user_login'], $superlist ) ) { // skip already on superlist
|
7941 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();');
|
7942 |
}
|
7943 |
else { // over 1000 users
|
7944 |
+
$html = '<span style="float:left" >'.__( 'User login name <b>( case sensitive! )</b>:', 'wp-photo-album-plus' ).'</span>';
|
7945 |
$html .= wppa_input( $slug, '150px', '', '', 'wppaRefreshAfter();' );
|
7946 |
}
|
7947 |
wppa_setting_new(false, '19', $name, $desc, $html, $help);
|
7948 |
|
7949 |
+
$name = __('Unsuper user', 'wp-photo-album-plus' );
|
7950 |
+
$desc = __('Remove user from super user list.', 'wp-photo-album-plus' );
|
7951 |
$help = '';
|
7952 |
$slug = 'wppa_un_superuser_user';
|
7953 |
$superlist = wppa_get_option( 'wppa_super_users', array() );
|
7954 |
+
$opts = array( __('--- select a user to unmake superuser ---', 'wp-photo-album-plus' ) );
|
7955 |
$vals = array( '0' );
|
7956 |
foreach ( $superlist as $usr ) {
|
7957 |
$u = wppa_get_user_by( 'login', $usr );
|
7969 |
wppa_setting_tab_description($desc);
|
7970 |
wppa_setting_box_header_new($tab);
|
7971 |
|
7972 |
+
$name = __('Show dashboard widget', 'wp-photo-album-plus' );
|
7973 |
+
$desc = __('Select when the dashboard widget should show up', 'wp-photo-album-plus' );
|
7974 |
$help = '';
|
7975 |
$slug = 'wppa_show_dashboard_widgets';
|
7976 |
+
$opts = array( __('Never', 'wp-photo-album-plus' ),
|
7977 |
+
__('All loggedin users', 'wp-photo-album-plus' ),
|
7978 |
+
__('Administartors only', 'wp-photo-album-plus' ),
|
7979 |
);
|
7980 |
$vals = array( 'none',
|
7981 |
'all',
|
7984 |
$html = wppa_select($slug, $opts, $vals);
|
7985 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
7986 |
|
7987 |
+
$name = __('Admin bar menu admin', 'wp-photo-album-plus' );
|
7988 |
+
$desc = __('Show menu on admin bar on admin pages.', 'wp-photo-album-plus' );
|
7989 |
$help = '';
|
7990 |
$slug = 'wppa_adminbarmenu_admin';
|
7991 |
$html = wppa_checkbox($slug);
|
7992 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
7993 |
|
7994 |
+
$name = __('Admin bar menu frontend', 'wp-photo-album-plus' );
|
7995 |
+
$desc = __('Show menu on admin bar on frontend pages.', 'wp-photo-album-plus' );
|
7996 |
$help = '';
|
7997 |
$slug = 'wppa_adminbarmenu_frontend';
|
7998 |
$html = wppa_checkbox($slug);
|
7999 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
8000 |
|
8001 |
+
$name = __('Album admin page size', 'wp-photo-album-plus' );
|
8002 |
+
$desc = __('The number of albums per page on the Edit Album admin page.', 'wp-photo-album-plus' );
|
8003 |
$help = '';
|
8004 |
$slug = 'wppa_album_admin_pagesize';
|
8005 |
$opts = array( '10', '20', '50', '100', '200', '500', '700', '1000', '1500', '2000' );
|
8007 |
$html = wppa_select($slug, $opts, $vals);
|
8008 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
8009 |
|
8010 |
+
$name = __('Photo admin page size', 'wp-photo-album-plus' );
|
8011 |
+
$desc = __('The number of photos per page on the <br/>Edit Album -> Manage photos and Edit Photos admin pages.', 'wp-photo-album-plus' );
|
8012 |
$help = '';
|
8013 |
$slug = 'wppa_photo_admin_pagesize';
|
8014 |
$opts = array( '10', '20', '50', '100', '200', '500', '700', '1000' );
|
8016 |
$html = wppa_select($slug, $opts, $vals);
|
8017 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
8018 |
|
8019 |
+
$name = __('Photo admin max albums', 'wp-photo-album-plus' );
|
8020 |
+
$desc = __('Max albums to show in album selectionbox.', 'wp-photo-album-plus' );
|
8021 |
+
$help = __('If there are more albums in the system, display an input box asking for album id#', 'wp-photo-album-plus' );
|
8022 |
$slug = 'wppa_photo_admin_max_albums';
|
8023 |
+
$opts = array( __( '--- off ---', 'wp-photo-album-plus' ), '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
|
8024 |
$vals = array( '0', '10', '20', '50', '100', '200', '500', '1000', '2000', '3000', '4000', '5000' );
|
8025 |
$html = wppa_select($slug, $opts, $vals, '', '', '', 'wppaRefreshAfter();');
|
8026 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
8027 |
|
8028 |
+
$name = __('Comment admin page size', 'wp-photo-album-plus' );
|
8029 |
+
$desc = __('The number of comments per page on the Comments admin pages.', 'wp-photo-album-plus' );
|
8030 |
$help = '';
|
8031 |
$slug = 'wppa_comment_admin_pagesize';
|
8032 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus' ), '10', '20', '50', '100', '200');
|
8033 |
$vals = array('0', '10', '20', '50', '100', '200');
|
8034 |
$html = wppa_select($slug, $opts, $vals);
|
8035 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
8036 |
|
8037 |
+
$name = __('Geo info edit', 'wp-photo-album-plus' );
|
8038 |
+
$desc = __('Lattitude and longitude may be edited in photo admin.', 'wp-photo-album-plus' );
|
8039 |
$help = '';
|
8040 |
$slug = 'wppa_geo_edit';
|
8041 |
$html = wppa_checkbox($slug);
|
8042 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
8043 |
|
8044 |
+
$name = __('Add shortcode to posts', 'wp-photo-album-plus' );
|
8045 |
+
$desc = __('Add a shortcode to the end of all posts.', 'wp-photo-album-plus' );
|
8046 |
$help = '';
|
8047 |
$slug = 'wppa_add_shortcode_to_post';
|
8048 |
$html = wppa_checkbox($slug);
|
8049 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
8050 |
|
8051 |
+
$name = __('Shortcode to add', 'wp-photo-album-plus' );
|
8052 |
+
$desc = __('The shortcode to be added to the posts.', 'wp-photo-album-plus' );
|
8053 |
$help = '';
|
8054 |
$slug = 'wppa_shortcode_to_add';
|
8055 |
$html = wppa_input($slug, '300px');
|
8056 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
8057 |
|
8058 |
+
$name = __('Enable shortcode generator', 'wp-photo-album-plus' );
|
8059 |
+
$desc = __('Show album icon above page/post edit window', 'wp-photo-album-plus' );
|
8060 |
+
$help = __('Administrators and wppa super users will always have the shortcode generator available.', 'wp-photo-album-plus' );
|
8061 |
$slug = 'wppa_enable_generator';
|
8062 |
$html = wppa_checkbox($slug);
|
8063 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
8064 |
|
8065 |
+
$name = __('Bulk photo moderation', 'wp-photo-album-plus' );
|
8066 |
+
$desc = __('Use bulk edit for photo moderation', 'wp-photo-album-plus' );
|
8067 |
$help = '';
|
8068 |
$slug = 'wppa_moderate_bulk';
|
8069 |
$html = wppa_checkbox($slug);
|
8070 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
8071 |
|
8072 |
+
$name = __('Max in shortcode generator', 'wp-photo-album-plus' );
|
8073 |
+
$desc = __('Maximum nuber of selectable photos in the shortcode generators', 'wp-photo-album-plus' );
|
8074 |
$help = '';
|
8075 |
$slug = 'wppa_generator_max';
|
8076 |
$opts = array( '5', '10', '20', '50', '100', '200', '500', '1000', '2000', '5000' );
|
8086 |
wppa_setting_tab_description($desc);
|
8087 |
wppa_setting_box_header_new($tab);
|
8088 |
|
8089 |
+
$name = __('Search', 'wp-photo-album-plus' );
|
8090 |
+
$desc = __('Search bar like on album table page', 'wp-photo-album-plus' );
|
8091 |
$help = '';
|
8092 |
$slug = 'wppa_opt_menu_search';
|
8093 |
$html = wppa_checkbox($slug);
|
8094 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
8095 |
|
8096 |
+
$name = __('Logfile', 'wp-photo-album-plus' );
|
8097 |
+
$desc = __('List logfile', 'wp-photo-album-plus' );
|
8098 |
$help = '';
|
8099 |
$slug = 'wppa_logfile_on_menu';
|
8100 |
$html = wppa_checkbox($slug);
|
8101 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
8102 |
|
8103 |
+
$name = __('Documentation', 'wp-photo-album-plus' );
|
8104 |
+
$desc = __('Link to documentation site', 'wp-photo-album-plus' );
|
8105 |
$help = '';
|
8106 |
$slug = 'wppa_opt_menu_doc';
|
8107 |
$html = wppa_checkbox($slug);
|
8108 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
8109 |
|
8110 |
+
$name = __('Edit tags', 'wp-photo-album-plus' );
|
8111 |
+
$desc = __('Easy way to global edit tags. Requires capability "wppa_edit_tags"', 'wp-photo-album-plus' );
|
8112 |
$help = '';
|
8113 |
$slug = 'wppa_opt_menu_edit_tags';
|
8114 |
$html = wppa_checkbox($slug);
|
8115 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
8116 |
|
8117 |
+
$name = __('Photo sequence', 'wp-photo-album-plus' );
|
8118 |
+
$desc = __('Rearrange photos of an album. Requires capability "wppa_edit_sequence"', 'wp-photo-album-plus' );
|
8119 |
$help = '';
|
8120 |
$slug = 'wppa_opt_menu_edit_sequence';
|
8121 |
$html = wppa_checkbox($slug);
|
8133 |
wppa_setting_tab_description($desc);
|
8134 |
|
8135 |
$coldef = array( '#' => '24px;',
|
8136 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
8137 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
8138 |
+
__('Specification', 'wp-photo-album-plus' ) => 'auto;',
|
8139 |
+
__('Do it!', 'wp-photo-album-plus' ) => 'auto;',
|
8140 |
+
__('Status', 'wp-photo-album-plus' ) => 'auto;',
|
8141 |
+
__('To Go', 'wp-photo-album-plus' ) => 'auto;',
|
8142 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
8143 |
);
|
8144 |
|
8145 |
wppa_setting_box_header_new($tab, $coldef);
|
8146 |
|
8147 |
+
$name = __('Postpone cron', 'wp-photo-album-plus' );
|
8148 |
+
$desc = __('Temporary do no background processes.', 'wp-photo-album-plus' );
|
8149 |
+
$help = __('This setting is meant to be used a.o. during bulk import/upload. Use with care!', 'wp-photo-album-plus' );
|
8150 |
$slug = 'wppa_maint_ignore_cron';
|
8151 |
$html1 = wppa_checkbox( $slug );
|
8152 |
$html2 = '';
|
8155 |
$html = array($html1, $html2, $html3, $html4);
|
8156 |
wppa_setting_new(false, '0', $name, $desc, $html, $help);
|
8157 |
|
8158 |
+
$name = __('Setup', 'wp-photo-album-plus' );
|
8159 |
+
$desc = __('Re-initialize plugin.', 'wp-photo-album-plus' );
|
8160 |
+
$help = __('Re-initilizes the plugin, (re)creates database tables and sets up default settings and directories if required.', 'wp-photo-album-plus' );
|
8161 |
+
$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' );
|
8162 |
$slug = 'wppa_setup';
|
8163 |
$html1 = '';
|
8164 |
$html2 = wppa_doit_button_new($slug);
|
8167 |
$html = array($html1, $html2, $html3, $html4);
|
8168 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
8169 |
|
8170 |
+
$name = __('Backup settings', 'wp-photo-album-plus' );
|
8171 |
+
$desc = __('Save all settings into a backup file.', 'wp-photo-album-plus' );
|
8172 |
+
$help = __('Saves all the settings into a backup file', 'wp-photo-album-plus' );
|
8173 |
$slug1 = 'wppa_backup_filename';
|
8174 |
$slug2 = 'wppa_backup';
|
8175 |
$html1 = wppa_input( $slug1, '200px;', '', '', '', 'settings.bak' );
|
8212 |
$html = array($html1, $html2, $html3, $html4);
|
8213 |
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
8214 |
|
8215 |
+
$name = __('Regenerate', 'wp-photo-album-plus' );
|
8216 |
+
$desc = __('Regenerate all thumbnails.', 'wp-photo-album-plus' );
|
8217 |
$help = '';
|
8218 |
$slug1 = 'wppa_regen_thumbs_skip_one';
|
8219 |
$slug2 = 'wppa_regen_thumbs';
|
8220 |
+
$html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus' ), 'regen_thumbs_skip_one', '0', true );
|
8221 |
$html2 = wppa_maintenance_button( $slug2 );
|
8222 |
$html3 = wppa_status_field( $slug2 );
|
8223 |
$html4 = wppa_togo_field( $slug2 );
|
8224 |
$html = array($html1, $html2, $html3, $html4);
|
8225 |
wppa_setting_new(false, '4', $name, $desc, $html, $help);
|
8226 |
|
8227 |
+
$name = __('Rerate', 'wp-photo-album-plus' );
|
8228 |
+
$desc = __('Recalculate ratings.', 'wp-photo-album-plus' );
|
8229 |
+
$help = __('This function will recalculate all mean photo ratings from the ratings table.', 'wp-photo-album-plus' );
|
8230 |
$slug2 = 'wppa_rerate';
|
8231 |
$html1 = wppa_cronjob_button( $slug2 );
|
8232 |
$html2 = wppa_maintenance_button( $slug2 );
|
8235 |
$html = array($html1, $html2, $html3, $html4);
|
8236 |
wppa_setting_new(false, '5', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
8237 |
|
8238 |
+
$name = __('Lost and found', 'wp-photo-album-plus' );
|
8239 |
+
$desc = __('Find "lost" photos.', 'wp-photo-album-plus' );
|
8240 |
+
$help = __('This function will attempt to find lost photos.', 'wp-photo-album-plus' );
|
8241 |
$slug2 = 'wppa_cleanup';
|
8242 |
$html1 = '';
|
8243 |
$html2 = wppa_maintenance_button( $slug2 );
|
8246 |
$html = array($html1, $html2, $html3, $html4);
|
8247 |
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
8248 |
|
8249 |
+
$name = __('Recuperate', 'wp-photo-album-plus' );
|
8250 |
+
$desc = __('Recuperate IPTC and EXIF data from photos in WPPA+.', 'wp-photo-album-plus' );
|
8251 |
+
$help = __('This action will attempt to find and register IPTC and EXIF data from photos in the WPPA+ system.', 'wp-photo-album-plus' );
|
8252 |
$slug2 = 'wppa_recup';
|
8253 |
$html1 = wppa_cronjob_button( $slug2 );
|
8254 |
$html2 = wppa_maintenance_button( $slug2 );
|
8257 |
$html = array($html1, $html2, $html3, $html4);
|
8258 |
wppa_setting_new(false, '7', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) || wppa_switch( 'save_iptc' ) );
|
8259 |
|
8260 |
+
$name = __('Format exif', 'wp-photo-album-plus' );
|
8261 |
+
$desc = __('Format EXIF data', 'wp-photo-album-plus' );
|
8262 |
$help = '';
|
8263 |
$slug2 = 'wppa_format_exif';
|
8264 |
$html1 = wppa_cronjob_button( $slug2 );
|
8268 |
$html = array($html1, $html2, $html3, $html4);
|
8269 |
wppa_setting_new(false, '8', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
|
8270 |
|
8271 |
+
$name = __('Remake Index Albums', 'wp-photo-album-plus' );
|
8272 |
+
$desc = __('Remakes the index database table for albums.', 'wp-photo-album-plus' );
|
8273 |
$help = '';
|
8274 |
$slug2 = 'wppa_remake_index_albums';
|
8275 |
+
$html1 = wppa_cronjob_button( $slug2 );// . __('ad inf', 'wp-photo-album-plus' ) . wppa_checkbox( $slug2.'_ad_inf' );
|
8276 |
$html2 = wppa_maintenance_button( $slug2 );
|
8277 |
$html3 = wppa_status_field( $slug2 );
|
8278 |
$html4 = wppa_togo_field( $slug2 );
|
8279 |
$html = array($html1, $html2, $html3, $html4);
|
8280 |
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
8281 |
|
8282 |
+
$name = __('Remake Index Photos', 'wp-photo-album-plus' );
|
8283 |
+
$desc = __('Remakes the index database table for photos.', 'wp-photo-album-plus' );
|
8284 |
$help = '';
|
8285 |
$slug2 = 'wppa_remake_index_photos';
|
8286 |
$html1 = wppa_cronjob_button( $slug2 );
|
8290 |
$html = array($html1, $html2, $html3, $html4);
|
8291 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
8292 |
|
8293 |
+
$name = __('Clean Index', 'wp-photo-album-plus' );
|
8294 |
+
$desc = __('Remove obsolete entries from index db table.', 'wp-photo-album-plus' );
|
8295 |
$help = '';
|
8296 |
$slug2 = 'wppa_cleanup_index';
|
8297 |
$html1 = wppa_cronjob_button( $slug2 );
|
8307 |
wppa_update_option('wppa_file_system', 'flat');
|
8308 |
}
|
8309 |
if ( $fs == 'flat' || $fs == 'to-tree' ) {
|
8310 |
+
$name = __('Convert to tree', 'wp-photo-album-plus' );
|
8311 |
+
$desc = __('Convert filesystem to tree structure.', 'wp-photo-album-plus' );
|
8312 |
}
|
8313 |
if ( $fs == 'tree' || $fs == 'to-flat' ) {
|
8314 |
+
$name = __('Convert to flat', 'wp-photo-album-plus' );
|
8315 |
+
$desc = __('Convert filesystem to flat structure.', 'wp-photo-album-plus' );
|
8316 |
}
|
8317 |
+
$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' );
|
8318 |
$slug2 = 'wppa_file_system';
|
8319 |
$html1 = '';
|
8320 |
$html2 = wppa_maintenance_button( $slug2 );
|
8323 |
$html = array($html1, $html2, $html3, $html4);
|
8324 |
wppa_setting_new(false, '12', $name, $desc, $html, $help);
|
8325 |
|
8326 |
+
$name = __('Remake add', 'wp-photo-album-plus' );
|
8327 |
+
$desc = __('Photos will be added from the source pool. See next item', 'wp-photo-album-plus' );
|
8328 |
+
$help = __('If checked: If photo files are found in the source directory that do not exist in the corresponding album, they will be added to the album.', 'wp-photo-album-plus' );
|
8329 |
$slug = 'wppa_remake_add';
|
8330 |
$html1 = wppa_checkbox($slug);
|
8331 |
$html0 = '';
|
8332 |
$html = array($html1, $html0, $html0, $html0);
|
8333 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
8334 |
|
8335 |
+
$name = __('Remake', 'wp-photo-album-plus' );
|
8336 |
+
$desc = __('Remake the photofiles from photo sourcefiles.', 'wp-photo-album-plus' );
|
8337 |
+
$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' );
|
8338 |
$slug1 = 'wppa_remake_skip_one';
|
8339 |
$slug2 = 'wppa_remake';
|
8340 |
+
$html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus' ), 'remake_skip_one', '0', true );
|
8341 |
$html2 = wppa_maintenance_button( $slug2 );
|
8342 |
$html3 = wppa_status_field( $slug2 );
|
8343 |
$html4 = wppa_togo_field( $slug2 );
|
8344 |
$html = array($html1, $html2, $html3, $html4);
|
8345 |
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
8346 |
|
8347 |
+
$name = __('Orientation only', 'wp-photo-album-plus' );
|
8348 |
+
$desc = __('Remake non standard orientated photos only.', 'wp-photo-album-plus' );
|
8349 |
$help = '';
|
8350 |
$slug1 = '';
|
8351 |
$slug2 = 'wppa_remake_orientation_only';
|
8356 |
$html = array($html1, $html2, $html3, $html4);
|
8357 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
8358 |
|
8359 |
+
$name = __('Missing only', 'wp-photo-album-plus' );
|
8360 |
+
$desc = __('Remake missing photofiles only.', 'wp-photo-album-plus' );
|
8361 |
$help = '';
|
8362 |
$slug1 = '';
|
8363 |
$slug2 = 'wppa_remake_missing_only';
|
8368 |
$html = array($html1, $html2, $html3, $html4);
|
8369 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
8370 |
|
8371 |
+
$name = __('Recalc sizes', 'wp-photo-album-plus' );
|
8372 |
+
$desc = __('Recalculate photosizes and save to db.', 'wp-photo-album-plus' );
|
8373 |
$help = '';
|
8374 |
$slug2 = 'wppa_comp_sizes';
|
8375 |
$html1 = wppa_cronjob_button( $slug2 );
|
8379 |
$html = array($html1, $html2, $html3, $html4);
|
8380 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
8381 |
|
8382 |
+
$name = __('Renew album crypt', 'wp-photo-album-plus' );
|
8383 |
+
$desc = __('Renew album encrcryption codes.', 'wp-photo-album-plus' );
|
8384 |
$help = '';
|
8385 |
$slug2 = 'wppa_crypt_albums';
|
8386 |
$html1 = wppa_cronjob_button( $slug2 );
|
8390 |
$html = array($html1, $html2, $html3, $html4);
|
8391 |
wppa_setting_new(false, '18', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8392 |
|
8393 |
+
$name = __('Renew album crypt every', 'wp-photo-album-plus' );
|
8394 |
+
$desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus' );
|
8395 |
+
$help = __('The periodic times are an approximation', 'wp-photo-album-plus' );
|
8396 |
$slug = 'wppa_crypt_albums_every';
|
8397 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus' ),
|
8398 |
+
__('hour', 'wp-photo-album-plus' ),
|
8399 |
+
__('day', 'wp-photo-album-plus' ),
|
8400 |
+
__('week', 'wp-photo-album-plus' ),
|
8401 |
+
__('month', 'wp-photo-album-plus' ),
|
8402 |
);
|
8403 |
$vals = array( '0', '1', '24', '168', '720' );
|
8404 |
$html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
|
8405 |
wppa_setting_new(false, '19', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8406 |
|
8407 |
+
$name = __('Renew photo crypt', 'wp-photo-album-plus' );
|
8408 |
+
$desc = __('Renew photo encrcryption codes.', 'wp-photo-album-plus' );
|
8409 |
$help = '';
|
8410 |
$slug2 = 'wppa_crypt_photos';
|
8411 |
$html1 = wppa_cronjob_button( $slug2 );
|
8415 |
$html = array($html1, $html2, $html3, $html4);
|
8416 |
wppa_setting_new(false, '20', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8417 |
|
8418 |
+
$name = __('Renew photo crypt every', 'wp-photo-album-plus' );
|
8419 |
+
$desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus' );
|
8420 |
+
$help = __('The periodic times are an approximation', 'wp-photo-album-plus' );
|
8421 |
$slug = 'wppa_crypt_photos_every';
|
8422 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus' ),
|
8423 |
+
__('hour', 'wp-photo-album-plus' ),
|
8424 |
+
__('day', 'wp-photo-album-plus' ),
|
8425 |
+
__('week', 'wp-photo-album-plus' ),
|
8426 |
+
__('month', 'wp-photo-album-plus' ),
|
8427 |
);
|
8428 |
$vals = array( '0', '1', '24', '168', '720' );
|
8429 |
$html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
|
8430 |
wppa_setting_new(false, '21', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
|
8431 |
|
8432 |
+
$name = __('Create orietation sources', 'wp-photo-album-plus' );
|
8433 |
+
$desc = __('Creates correctly oriented pseudo source file.', 'wp-photo-album-plus' );
|
8434 |
$help = '';
|
8435 |
$slug1 = 'wppa_create_o1_files_skip_one';
|
8436 |
$slug2 = 'wppa_create_o1_files';
|
8437 |
+
$html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus' ), 'create_o1_files_skip_one', '0', true );
|
8438 |
$html2 = wppa_maintenance_button( $slug2 );
|
8439 |
$html3 = wppa_status_field( $slug2 );
|
8440 |
$html4 = wppa_togo_field( $slug2 );
|
8449 |
wppa_setting_tab_description($desc);
|
8450 |
|
8451 |
$coldef = array( '#' => '24px;',
|
8452 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
8453 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
8454 |
+
__('Specification', 'wp-photo-album-plus' ) => 'auto;',
|
8455 |
+
__('Do it!', 'wp-photo-album-plus' ) => 'auto;',
|
8456 |
+
__('Status', 'wp-photo-album-plus' ) => 'auto;',
|
8457 |
+
__('To Go', 'wp-photo-album-plus' ) => 'auto;',
|
8458 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
8459 |
);
|
8460 |
|
8461 |
wppa_setting_box_header_new($tab, $coldef);
|
8462 |
|
8463 |
+
$name = __('Clear ratings', 'wp-photo-album-plus' );
|
8464 |
+
$desc = __('Reset all ratings.', 'wp-photo-album-plus' );
|
8465 |
+
$help = __('WARNING: If checked, this will clear all ratings in the system!', 'wp-photo-album-plus' );
|
8466 |
$slug = 'wppa_rating_clear';
|
8467 |
$html1 = '';
|
8468 |
$html2 = wppa_ajax_button('', 'rating_clear');
|
8471 |
$html = array($html1, $html2, $html3, $html4);
|
8472 |
wppa_setting_new(false, '1', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
8473 |
|
8474 |
+
$name = __('Clear viewcounts', 'wp-photo-album-plus' );
|
8475 |
+
$desc = __('Reset all viewcounts.', 'wp-photo-album-plus' );
|
8476 |
+
$help = __('WARNING: If checked, this will clear all viewcounts in the system!', 'wp-photo-album-plus' );
|
8477 |
$slug = 'wppa_viewcount_clear';
|
8478 |
$html1 = '';
|
8479 |
$html2 = wppa_ajax_button('', 'viewcount_clear');
|
8482 |
$html = array($html1, $html2, $html3, $html4);
|
8483 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
8484 |
|
8485 |
+
$name = __('Reset IPTC', 'wp-photo-album-plus' );
|
8486 |
+
$desc = __('Clear all IPTC data.', 'wp-photo-album-plus' );
|
8487 |
+
$help = __('WARNING: If checked, this will clear all IPTC data in the system!', 'wp-photo-album-plus' );
|
8488 |
$slug = 'wppa_iptc_clear';
|
8489 |
$html1 = '';
|
8490 |
$html2 = wppa_ajax_button('', 'iptc_clear');
|
8493 |
$html = array($html1, $html2, $html3, $html4);
|
8494 |
wppa_setting_new(false, '3', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
|
8495 |
|
8496 |
+
$name = __('Reset EXIF', 'wp-photo-album-plus' );
|
8497 |
+
$desc = __('Clear all EXIF data.', 'wp-photo-album-plus' );
|
8498 |
+
$help = __('WARNING: If checked, this will clear all EXIF data in the system!', 'wp-photo-album-plus' );
|
8499 |
$slug = 'wppa_exif_clear';
|
8500 |
$html1 = '';
|
8501 |
$html2 = wppa_ajax_button('', 'exif_clear');
|
8504 |
$html = array($html1, $html2, $html3, $html4);
|
8505 |
wppa_setting_new(false, '4', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
|
8506 |
|
8507 |
+
$name = __('Apply Default Photoname', 'wp-photo-album-plus' );
|
8508 |
+
$desc = __('Apply Default photo name on all photos in the system.', 'wp-photo-album-plus' );
|
8509 |
+
$help = __('Puts the content of Default photo name in all photo name.', 'wp-photo-album-plus' );
|
8510 |
$help .= '<br>'.wppa_see_also( 'new', '1', '29' );
|
8511 |
$slug2 = 'wppa_apply_default_photoname_all';
|
8512 |
$html1 = '';
|
8516 |
$html = array($html1, $html2, $html3, $html4);
|
8517 |
wppa_setting_new(false, '5', $name, $desc, $html, $help);
|
8518 |
|
8519 |
+
$name = __('Apply New Photodesc', 'wp-photo-album-plus' );
|
8520 |
+
$desc = __('Apply New photo description on all photos in the system.', 'wp-photo-album-plus' );
|
8521 |
+
$help = __('Puts the content of New photo desc in all photo descriptions.', 'wp-photo-album-plus' );
|
8522 |
$help .= '<br>'.wppa_see_also( 'new', '1', '13' );
|
8523 |
$slug2 = 'wppa_apply_new_photodesc_all';
|
8524 |
$html1 = '';
|
8528 |
$html = array($html1, $html2, $html3, $html4);
|
8529 |
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
8530 |
|
8531 |
+
$name = __('Append to photodesc', 'wp-photo-album-plus' );
|
8532 |
+
$desc = __('Append this text to all photo descriptions.', 'wp-photo-album-plus' );
|
8533 |
+
$help = __('Appends a space character and the given text to the description of all photos.', 'wp-photo-album-plus' );
|
8534 |
+
$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' );
|
8535 |
$slug1 = 'wppa_append_text';
|
8536 |
$slug2 = 'wppa_append_to_photodesc';
|
8537 |
$html1 = wppa_input( $slug1, '200px' );
|
8541 |
$html = array($html1, $html2, $html3, $html4);
|
8542 |
wppa_setting_new(false, '7', $name, $desc, $html, $help);
|
8543 |
|
8544 |
+
$name = __('Remove from photodesc', 'wp-photo-album-plus' );
|
8545 |
+
$desc = __('Remove this text from all photo descriptions.', 'wp-photo-album-plus' );
|
8546 |
+
$help = __('Removes all occurrencies of the given text from the description of all photos.', 'wp-photo-album-plus' );
|
8547 |
+
$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' );
|
8548 |
$slug1 = 'wppa_remove_text';
|
8549 |
$slug2 = 'wppa_remove_from_photodesc';
|
8550 |
$html1 = wppa_input( $slug1, '200px' );
|
8554 |
$html = array($html1, $html2, $html3, $html4);
|
8555 |
wppa_setting_new(false, '8', $name, $desc, $html, $help);
|
8556 |
|
8557 |
+
$name = __('Remove empty albums', 'wp-photo-album-plus' );
|
8558 |
+
$desc = __('Removes albums that are not used.', 'wp-photo-album-plus' );
|
8559 |
+
$help = __('Removes all albums that have no photos and no sub albums in it.', 'wp-photo-album-plus' );
|
8560 |
$slug2 = 'wppa_remove_empty_albums';
|
8561 |
$html1 = '';
|
8562 |
$html2 = wppa_maintenance_button( $slug2 );
|
8565 |
$html = array($html1, $html2, $html3, $html4);
|
8566 |
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
8567 |
|
8568 |
+
$name = __('Remove file-ext', 'wp-photo-album-plus' );
|
8569 |
+
$desc = __('Remove possible file extension from photo name.', 'wp-photo-album-plus' );
|
8570 |
+
$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' );
|
8571 |
$slug2 = 'wppa_remove_file_extensions';
|
8572 |
$html1 = '';
|
8573 |
$html2 = wppa_maintenance_button( $slug2 );
|
8576 |
$html = array($html1, $html2, $html3, $html4);
|
8577 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
8578 |
|
8579 |
+
$name = __('Re-add file-ext', 'wp-photo-album-plus' );
|
8580 |
+
$desc = __('Revert the <b>Remove file-ext</b> action.', 'wp-photo-album-plus' );
|
8581 |
$help = '';
|
8582 |
$slug2 = 'wppa_readd_file_extensions';
|
8583 |
$html1 = '';
|
8587 |
$html = array($html1, $html2, $html3, $html4);
|
8588 |
wppa_setting_new(false, '11', $name, $desc, $html, $help);
|
8589 |
|
8590 |
+
$name = __('Watermark all', 'wp-photo-album-plus' );
|
8591 |
+
$desc = __('Apply watermark according to current settings to all photos.', 'wp-photo-album-plus' );
|
8592 |
+
$help = __('See Tab Watermark for the current watermark settings', 'wp-photo-album-plus' );
|
8593 |
$slug2 = 'wppa_watermark_all';
|
8594 |
$html1 = '';
|
8595 |
$html2 = wppa_maintenance_button( $slug2 );
|
8598 |
$html = array($html1, $html2, $html3, $html4);
|
8599 |
wppa_setting_new(false, '13', $name, $desc, $html, $help, wppa_switch( 'watermark_on' ));
|
8600 |
|
8601 |
+
$name = __('Create all autopages', 'wp-photo-album-plus' );
|
8602 |
+
$desc = __('Create all the pages to display slides individually.', 'wp-photo-album-plus' );
|
8603 |
+
$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' );
|
8604 |
$help .= wppa_see_also( 'system', '1', '8' );
|
8605 |
$slug2 = 'wppa_create_all_autopages';
|
8606 |
$html1 = '';
|
8610 |
$html = array($html1, $html2, $html3, $html4);
|
8611 |
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
8612 |
|
8613 |
+
$name = __('Delete all autopages', 'wp-photo-album-plus' );
|
8614 |
+
$desc = __('Delete all the pages to display slides individually.', 'wp-photo-album-plus' );
|
8615 |
$help = wppa_see_also( 'system', '1', '8' );
|
8616 |
$slug2 = 'wppa_delete_all_autopages';
|
8617 |
$html1 = '';
|
8621 |
$html = array($html1, $html2, $html3, $html4);
|
8622 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
8623 |
|
8624 |
+
$name = __('Leading zeroes', 'wp-photo-album-plus' );
|
8625 |
+
$desc = __('If photoname numeric, add leading zeros', 'wp-photo-album-plus' );
|
8626 |
+
$help = __('You can extend the name with leading zeros, so alphabetic sort becomes equal to numeric sort order.', 'wp-photo-album-plus' );
|
8627 |
$slug1 = 'wppa_zero_numbers';
|
8628 |
$slug2 = 'wppa_leading_zeros';
|
8629 |
+
$html1 = wppa_input( $slug1, '50px' ).__('Total chars', 'wp-photo-album-plus' );
|
8630 |
$html2 = wppa_maintenance_button( $slug2 );
|
8631 |
$html3 = wppa_status_field( $slug2 );
|
8632 |
$html4 = wppa_togo_field( $slug2 );
|
8633 |
$html = array($html1, $html2, $html3, $html4);
|
8634 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
8635 |
|
8636 |
+
$name = __('Add GPX tag', 'wp-photo-album-plus' );
|
8637 |
+
$desc = __('Make sure photos with gpx data have a Gpx tag', 'wp-photo-album-plus' );
|
8638 |
$help = '';
|
8639 |
$slug2 = 'wppa_add_gpx_tag';
|
8640 |
$html1 = wppa_cronjob_button( $slug2 );
|
8644 |
$html = array($html1, $html2, $html3, $html4);
|
8645 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
8646 |
|
8647 |
+
$name = __('Add HD tag', 'wp-photo-album-plus' );
|
8648 |
+
$desc = __('Make sure photos >= 1920 x 1080 have a HD tag', 'wp-photo-album-plus' );
|
8649 |
$help = '';
|
8650 |
$slug2 = 'wppa_add_hd_tag';
|
8651 |
$html1 = wppa_cronjob_button( $slug2 );
|
8656 |
wppa_setting_new(false, '18', $name, $desc, $html, $help);
|
8657 |
|
8658 |
if ( function_exists( 'ewww_image_optimizer') ) {
|
8659 |
+
$name = __('Optimize files', 'wp-photo-album-plus' );
|
8660 |
+
$desc = __('Optimize with EWWW image optimizer', 'wp-photo-album-plus' );
|
8661 |
$help = '';
|
8662 |
$slug2 = 'wppa_optimize_ewww';
|
8663 |
+
$html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus' ), 'optimize_ewww_skip_one', '0', true );
|
8664 |
$html2 = wppa_maintenance_button( $slug2 );
|
8665 |
$html3 = wppa_status_field( $slug2 );
|
8666 |
$html4 = wppa_togo_field( $slug2 );
|
8668 |
wppa_setting_new(false, '19', $name, $desc, $html, $help);
|
8669 |
}
|
8670 |
|
8671 |
+
$name = __('Edit tag', 'wp-photo-album-plus' );
|
8672 |
+
$desc = __('Globally change a tagname.', 'wp-photo-album-plus' );
|
8673 |
$help = '';
|
8674 |
$slug1 = 'wppa_tag_to_edit';
|
8675 |
$slug2 = 'wppa_new_tag_value';
|
8676 |
$slug3 = 'wppa_edit_tag';
|
8677 |
$tags = wppa_get_taglist();
|
8678 |
+
$opts = array(__('-select a tag-', 'wp-photo-album-plus' ));
|
8679 |
$vals = array( '' );
|
8680 |
if ( $tags ) foreach( array_keys( $tags ) as $tag ) {
|
8681 |
$opts[] = $tag;
|
8682 |
$vals[] = $tag;
|
8683 |
}
|
8684 |
+
$html1 = '<div><small style="float:left;margin-right:5px;" >'.__('Tag:', 'wp-photo-album-plus' ).'</small>'.wppa_select( $slug1, $opts, $vals, '', '', false, '', '600').'</div>';
|
8685 |
+
$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>';
|
8686 |
$html3 = wppa_maintenance_button( $slug3 );
|
8687 |
$html4 = wppa_status_field( $slug3 );
|
8688 |
$html5 = wppa_togo_field( $slug3 );
|
8689 |
$html = array( $html1 . '<br>' . $html2, $html3, $html4, $html5 );
|
8690 |
wppa_setting_new( false, '20', $name, $desc, $html, $help);
|
8691 |
|
8692 |
+
$name = __('Synchronize Cloudinary', 'wp-photo-album-plus' );
|
8693 |
+
$desc = __('Removes/adds images in the cloud.', 'wp-photo-album-plus' );
|
8694 |
+
$help = __('Removes old images and verifies/adds new images to Cloudinary.', 'wp-photo-album-plus' );
|
8695 |
$help .= '<br>'.wppa_see_also( 'miscadv', '4', '7' );
|
8696 |
$slug2 = 'wppa_sync_cloud';
|
8697 |
$html1 = '';
|
8701 |
$html = array($html1, $html2, $html3, $html4);
|
8702 |
wppa_setting_new(false, '21', $name, $desc, $html, $help);
|
8703 |
|
8704 |
+
$name = __('Set owner to name', 'wp-photo-album-plus' );
|
8705 |
+
$desc = __('If photoname equals user display name, set him owner.', 'wp-photo-album-plus' );
|
8706 |
$help = '';
|
8707 |
$slug2 = 'wppa_owner_to_name_proc';
|
8708 |
$html1 = '';
|
8712 |
$html = array($html1, $html2, $html3, $html4);
|
8713 |
wppa_setting_new(false, '24', $name, $desc, $html, $help);
|
8714 |
|
8715 |
+
$name = __('Move all photos', 'wp-photo-album-plus' );
|
8716 |
+
$desc = __('Move all photos from one album to another album.', 'wp-photo-album-plus' );
|
8717 |
$help = '';
|
8718 |
$slug2 = 'wppa_move_all_photos';
|
8719 |
$html1 = '';
|
8725 |
|
8726 |
if ( wppa_get_total_album_count() > 200 ) { // Many albums: input id
|
8727 |
|
8728 |
+
$name = __('From', 'wp-photo-album-plus' );
|
8729 |
+
$desc = __('Move from album number', 'wp-photo-album-plus' );
|
8730 |
$help = '';
|
8731 |
$slug = 'wppa_move_all_photos_from';
|
8732 |
$html = wppa_input($slug, '100px' );
|
8733 |
$html = array($html, '', '', '');
|
8734 |
wppa_setting_new(false, '26', $name, $desc, $html, $help);
|
8735 |
|
8736 |
+
$name = __('To', 'wp-photo-album-plus' );
|
8737 |
+
$desc = __('Move to album number', 'wp-photo-album-plus' );
|
8738 |
$help = '';
|
8739 |
$slug = 'wppa_move_all_photos_to';
|
8740 |
$html = wppa_input($slug, '100px' );
|
8744 |
}
|
8745 |
else { // Few albums: selectionbox
|
8746 |
|
8747 |
+
$name = __('From', 'wp-photo-album-plus' );
|
8748 |
+
$desc = __('Move from album', 'wp-photo-album-plus' );
|
8749 |
$help = '';
|
8750 |
$slug = 'wppa_move_all_photos_from';
|
8751 |
$html = '<select' .
|
8763 |
' id="img_move_all_photos_from"' .
|
8764 |
' class=""' .
|
8765 |
' src="'.wppa_get_imgdir().'star.ico"' .
|
8766 |
+
' title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'"' .
|
8767 |
' style="padding-left:4px; float:left; height:16px; width:16px;"' .
|
8768 |
' />';
|
8769 |
$html = array($html, '', '', '');
|
8770 |
wppa_setting_new(false, '28', $name, $desc, $html, $help);
|
8771 |
|
8772 |
+
$name = __('To', 'wp-photo-album-plus' );
|
8773 |
+
$desc = __('Move to album', 'wp-photo-album-plus' );
|
8774 |
$help = '';
|
8775 |
$slug = 'wppa_move_all_photos_to';
|
8776 |
$html = '<select' .
|
8788 |
' id="img_move_all_photos_to"' .
|
8789 |
' class=""' .
|
8790 |
' src="'.wppa_get_imgdir().'star.ico"' .
|
8791 |
+
' title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'"' .
|
8792 |
' style="padding-left:4px; float:left; height:16px; width:16px;"' .
|
8793 |
' />';
|
8794 |
$html = array($html, '', '', '');
|
8795 |
wppa_setting_new(false, '29', $name, $desc, $html, $help);
|
8796 |
}
|
8797 |
|
8798 |
+
$name = __('Remove hypens from photonames', 'wp-photo-album-plus' );
|
8799 |
+
$desc = __('Remove all hyphens from all photo names and replace them by spaces', 'wp-photo-album-plus' );
|
8800 |
$help = '';
|
8801 |
$slug2 = 'wppa_photos_hyphens_to_spaces';
|
8802 |
$html1 = wppa_cronjob_button( $slug2 );
|
8806 |
$html = array($html1, $html2, $html3, $html4);
|
8807 |
wppa_setting_new(false, '30', $name, $desc, $html, $help);
|
8808 |
|
8809 |
+
$name = __('PNG to JPG', 'wp-photo-album-plus' );
|
8810 |
+
$desc = __('Convert all .png files to .jpg files', 'wp-photo-album-plus' );
|
8811 |
$help = '';
|
8812 |
$slug2 = 'wppa_png_to_jpg';
|
8813 |
$html1 = '';
|
8817 |
$html = array($html1, $html2, $html3, $html4);
|
8818 |
wppa_setting_new(false, '31', $name, $desc, $html, $help);
|
8819 |
|
8820 |
+
$name = __('Fix mp4 meta data', 'wp-photo-album-plus' );
|
8821 |
+
$desc = __('Import framesize, creationdate and duration from mp4 video files', 'wp-photo-album-plus' );
|
8822 |
$help = '';
|
8823 |
$slug2 = 'wppa_fix_mp4_meta';
|
8824 |
$html1 = '';
|
8828 |
$html = array($html1, $html2, $html3, $html4);
|
8829 |
wppa_setting_new(false, '32', $name, $desc, $html, $help);
|
8830 |
|
8831 |
+
$name = __('Fix user ids', 'wp-photo-album-plus' );
|
8832 |
+
$desc = __('Fill in missing user ids to ratings and comments', 'wp-photo-album-plus' );
|
8833 |
+
$help = __('Only used to update ratings and comments entered before version 7.3 to meet the new standards', 'wp-photo-album-plus' );
|
8834 |
$slug2 = 'wppa_fix_userids';
|
8835 |
$html1 = wppa_cronjob_button( $slug2 );
|
8836 |
$html2 = wppa_maintenance_button( $slug2 );
|
8839 |
$html = array($html1, $html2, $html3, $html4);
|
8840 |
wppa_setting_new(false, '33', $name, $desc, $html, $help);
|
8841 |
|
8842 |
+
$name = __('Re-init custom and tags', 'wp-photo-album-plus' );
|
8843 |
+
$desc = __('Re-initialize custom photo fields and default tags', 'wp-photo-album-plus' );
|
8844 |
$help = '';
|
8845 |
$slug2 = 'wppa_fix_custom_tags';
|
8846 |
$html1 = '';
|
8851 |
wppa_setting_new(false, '34', $name, $desc, $html, $help);
|
8852 |
|
8853 |
if ( current_user_can( 'administrator' ) ) {
|
8854 |
+
$name = __('Custom album proc', 'wp-photo-album-plus' );
|
8855 |
+
$desc = __('The php code to execute on all albums', 'wp-photo-album-plus' );
|
8856 |
+
$help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus' );
|
8857 |
$slug2 = 'wppa_custom_album_proc';
|
8858 |
$html1 = wppa_textarea( $slug2, '', true );
|
8859 |
$html2 = wppa_maintenance_button( $slug2 );
|
8862 |
$html = array($html1, $html2, $html3, $html4);
|
8863 |
wppa_setting_new(false, '35', $name, $desc, $html, $help);
|
8864 |
|
8865 |
+
$name = __('Custom photo proc', 'wp-photo-album-plus' );
|
8866 |
+
$desc = __('The php code to execute on all photos', 'wp-photo-album-plus' );
|
8867 |
+
$help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus' );
|
8868 |
$slug2 = 'wppa_custom_photo_proc';
|
8869 |
$html1 = wppa_textarea( $slug2, '', true );
|
8870 |
$html2 = wppa_maintenance_button( $slug2 );
|
8874 |
wppa_setting_new(false, '36', $name, $desc, $html, $help);
|
8875 |
}
|
8876 |
|
8877 |
+
$name = __('List active sessions', 'wp-photo-album-plus' );
|
8878 |
+
$desc = __('Show the content of the sessions table.', 'wp-photo-album-plus' );
|
8879 |
$help = '';
|
8880 |
$slug1 = '';
|
8881 |
$slug2 = 'wppa_list_session';
|
8894 |
wppa_setting_tab_description($desc);
|
8895 |
|
8896 |
$coldef = array( '#' => '24px;',
|
8897 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
8898 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
8899 |
+
__('Specification', 'wp-photo-album-plus' ) => 'auto;',
|
8900 |
+
__('Do it!', 'wp-photo-album-plus' ) => 'auto;',
|
8901 |
+
__('Status', 'wp-photo-album-plus' ) => 'auto;',
|
8902 |
+
__('To Go', 'wp-photo-album-plus' ) => 'auto;',
|
8903 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
8904 |
);
|
8905 |
|
8906 |
wppa_setting_box_header_new($tab, $coldef);
|
8907 |
|
8908 |
+
$name = __('Fix tags', 'wp-photo-album-plus' );
|
8909 |
+
$desc = __('Make sure photo tags format is uptodate', 'wp-photo-album-plus' );
|
8910 |
+
$help = __('Fixes tags to be conform current database rules.', 'wp-photo-album-plus' );
|
8911 |
$slug2 = 'wppa_sanitize_tags';
|
8912 |
$html1 = wppa_cronjob_button( $slug2 );
|
8913 |
$html2 = wppa_maintenance_button( $slug2 );
|
8916 |
$html = array($html1, $html2, $html3, $html4);
|
8917 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
8918 |
|
8919 |
+
$name = __('Fix cats', 'wp-photo-album-plus' );
|
8920 |
+
$desc = __('Make sure album cats format is uptodate', 'wp-photo-album-plus' );
|
8921 |
+
$help = __('Fixes cats to be conform current database rules.', 'wp-photo-album-plus' );
|
8922 |
$slug2 = 'wppa_sanitize_cats';
|
8923 |
$html1 = wppa_cronjob_button( $slug2 );
|
8924 |
$html2 = wppa_maintenance_button( $slug2 );
|
8927 |
$html = array($html1, $html2, $html3, $html4);
|
8928 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
8929 |
|
8930 |
+
$name = htmlspecialchars(__('Convert user-<id> tags', 'wp-photo-album-plus' ));
|
8931 |
+
$desc = __('Convert old style usertags to new style.', 'wp-photo-album-plus' );
|
8932 |
+
$help = htmlspecialchars(__('Converts user-<id> tags - created by the Choice feature - to user displaynames.', 'wp-photo-album-plus' ));
|
8933 |
$slug2 = 'wppa_covert_usertags';
|
8934 |
$html1 = wppa_cronjob_button( $slug2 );
|
8935 |
$html2 = wppa_maintenance_button( $slug2 );
|
8938 |
$html = array($html1, $html2, $html3, $html4);
|
8939 |
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
8940 |
|
8941 |
+
$name = __('All to lower', 'wp-photo-album-plus' );
|
8942 |
+
$desc = __('Convert all file-extensions to lowercase.', 'wp-photo-album-plus' );
|
8943 |
+
$help = __('Affects display files, thumbnail files, and saved extensions in database table. Leaves sourcefiles untouched', 'wp-photo-album-plus' );
|
8944 |
+
$help .= '<br>'.__('If both upper and lowercase files exist, the file with the uppercase extension will be removed.', 'wp-photo-album-plus' );
|
8945 |
$slug2 = 'wppa_all_ext_to_lower';
|
8946 |
$html1 = wppa_cronjob_button( $slug2 );
|
8947 |
$html2 = wppa_maintenance_button( $slug2 );
|
8961 |
$desc = $wppa_subtab_names[$tab]['1'];
|
8962 |
wppa_setting_tab_description($desc);
|
8963 |
|
8964 |
+
$coldef = array( __('#', 'wp-photo-album-plus' ) => '24px;',
|
8965 |
+
__('Tag', 'wp-photo-album-plus' ) => 'auto;',
|
8966 |
+
__('Brand', 'wp-photo-album-plus' ) => 'auto;',
|
8967 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
8968 |
+
__('Status', 'wp-photo-album-plus' ) => 'auto;',
|
8969 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
8970 |
);
|
8971 |
wppa_setting_box_header_new($tab, $coldef);
|
8972 |
|
8999 |
}
|
9000 |
}
|
9001 |
|
9002 |
+
$opts = array(__('Display', 'wp-photo-album-plus' ), __('Hide', 'wp-photo-album-plus' ), __('Optional', 'wp-photo-album-plus' ));
|
9003 |
$vals = array('display', 'hide', 'option');
|
9004 |
$html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $opts, $vals);
|
9005 |
$html = array($html1, $html2);
|
9019 |
$desc = $wppa_subtab_names[$tab]['1'];
|
9020 |
wppa_setting_tab_description($desc);
|
9021 |
|
9022 |
+
$coldef = array( __('#', 'wp-photo-album-plus' ) => '24px;',
|
9023 |
+
__('Tag', 'wp-photo-album-plus' ) => 'auto;',
|
9024 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
9025 |
+
__('Status', 'wp-photo-album-plus' ) => 'auto;',
|
9026 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
9027 |
);
|
9028 |
wppa_setting_box_header_new($tab, $coldef);
|
9029 |
|
9040 |
$slug1 = 'wppa_iptc_label_'.$name;
|
9041 |
$slug2 = 'wppa_iptc_status_'.$name;
|
9042 |
$html1 = wppa_edit($slug1, htmlspecialchars( $label['description'] ));
|
9043 |
+
$opts = array(__('Display', 'wp-photo-album-plus' ), __('Hide', 'wp-photo-album-plus' ), __('Optional', 'wp-photo-album-plus' ));
|
9044 |
$vals = array('display', 'hide', 'option');
|
9045 |
$html2 = wppa_select_e($slug2, $label['status'], $opts, $vals);
|
9046 |
wppa_setting_new(false, $i, $name, $html1, $html2, $help);
|
9060 |
wppa_setting_tab_description($desc);
|
9061 |
wppa_setting_box_header_new($tab);
|
9062 |
|
9063 |
+
$name = __('GPX Implementation', 'wp-photo-album-plus' );
|
9064 |
+
$desc = __('The way the maps are produced.', 'wp-photo-album-plus' );
|
9065 |
+
$help = __('Select the way the maps are produced.', 'wp-photo-album-plus' );
|
9066 |
$slug = 'wppa_gpx_implementation';
|
9067 |
+
$opts = array( __('WPPA+ Embedded code', 'wp-photo-album-plus' ), __('External plugin', 'wp-photo-album-plus' ) );
|
9068 |
$vals = array( 'wppa-plus-embedded', 'external-plugin' );
|
9069 |
$onch = 'wppaRefreshAfter()';
|
9070 |
$html = wppa_select($slug, $opts, $vals, $onch);
|
9071 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
9072 |
|
9073 |
+
$name = __('Map height', 'wp-photo-album-plus' );
|
9074 |
+
$desc = __('The height of the map display.', 'wp-photo-album-plus' );
|
9075 |
+
$help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus' );
|
9076 |
$slug = 'wppa_map_height';
|
9077 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
9078 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
|
9079 |
|
9080 |
+
$name = __('Google maps API key', 'wp-photo-album-plus' );
|
9081 |
+
$desc = __('Enter your Google maps api key here if you have one.', 'wp-photo-album-plus' );
|
9082 |
$help = '';
|
9083 |
$slug = 'wppa_map_apikey';
|
9084 |
$html = wppa_input($slug, '300px', '');
|
9085 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
9086 |
|
9087 |
+
$name = __('GPX Shortcode', 'wp-photo-album-plus' );
|
9088 |
+
$desc = __('The shortcode to be used for the gpx feature.', 'wp-photo-album-plus' );
|
9089 |
+
$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' );
|
9090 |
+
$help .= '<br>' . __('This item is required for using an external Google maps viewer plugin only', 'wp-photo-album-plus' );
|
9091 |
$slug = 'wppa_gpx_shortcode';
|
9092 |
$html = wppa_input($slug, '500px');
|
9093 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
|
9094 |
|
9095 |
+
$name = __('Zoom level', 'wp-photo-album-plus' );
|
9096 |
+
$desc = __('The zoomlevel for GPX maps', 'wp-photo-album-plus' );
|
9097 |
+
$help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus' );
|
9098 |
$slug = 'wppa_geo_zoom';
|
9099 |
$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',);
|
9100 |
$vals = $opts;
|
9112 |
$desc = $wppa_subtab_names[$tab]['1'];
|
9113 |
if ( wppa_switch( 'album_custom_fields' ) ) {
|
9114 |
$coldef = array( '#' => '24px;',
|
9115 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
9116 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
9117 |
+
__('Custom caption', 'wp-photo-album-plus' ) => 'auto;',
|
9118 |
+
__('Visible', 'wp-photo-album-plus' ) => 'auto;',
|
9119 |
+
__('Editable', 'wp-photo-album-plus' ) => 'auto;',
|
9120 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
9121 |
);
|
9122 |
|
9123 |
|
9125 |
wppa_setting_box_header_new($tab, $coldef);
|
9126 |
|
9127 |
for ( $i = '0'; $i < '10'; $i++ ) {
|
9128 |
+
$name = sprintf(__('Name, vis, edit %s', 'wp-photo-album-plus' ), $i);
|
9129 |
+
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus' ), $i);
|
9130 |
+
$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);
|
9131 |
+
$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' );
|
9132 |
$slug1 = 'wppa_album_custom_caption_'.$i;
|
9133 |
$html1 = wppa_input($slug1, '300px');
|
9134 |
$slug2 = 'wppa_album_custom_visible_'.$i;
|
9147 |
$desc = $wppa_subtab_names[$tab]['2'];
|
9148 |
if ( wppa_switch( 'custom_fields' ) ) {
|
9149 |
$coldef = array( '#' => '24px;',
|
9150 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
9151 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
9152 |
+
__('Custom caption', 'wp-photo-album-plus' ) => 'auto;',
|
9153 |
+
__('Visible', 'wp-photo-album-plus' ) => 'auto;',
|
9154 |
+
__('Editable', 'wp-photo-album-plus' ) => 'auto;',
|
9155 |
+
__('Default', 'wp-photo-album-plus' ) => 'auto;',
|
9156 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
9157 |
);
|
9158 |
|
9159 |
|
9225 |
*/
|
9226 |
|
9227 |
for ( $i = '0'; $i < '10'; $i++ ) {
|
9228 |
+
$name = sprintf(__('Name, vis, edit %s dflt', 'wp-photo-album-plus' ), $i);
|
9229 |
+
$desc = sprintf(__('The caption for field %s, visibility and editability at frontend.', 'wp-photo-album-plus' ), $i);
|
9230 |
+
$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);
|
9231 |
+
$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' );
|
9232 |
$slug1 = 'wppa_custom_caption_'.$i;
|
9233 |
$html1 = wppa_input($slug1, '300px');
|
9234 |
$slug2 = 'wppa_custom_visible_'.$i;
|
9254 |
wppa_setting_tab_description($desc);
|
9255 |
wppa_setting_box_header_new($tab);
|
9256 |
|
9257 |
+
$name = __('Watermark file', 'wp-photo-album-plus' );
|
9258 |
+
$desc = __('The default watermarkfile to be used.', 'wp-photo-album-plus' );
|
9259 |
+
$help = __('Watermark files are of type png and reside in', 'wp-photo-album-plus' ) . ' ' . WPPA_UPLOAD_URL . '/watermarks/';
|
9260 |
+
$help .= '<br>'.__('A suitable watermarkfile typically consists of a transparent background and a black text or drawing.', 'wp-photo-album-plus' );
|
9261 |
+
$help .= '<br>'.sprintf(__('The watermark image will be overlaying the photo with %s%% transparency.', 'wp-photo-album-plus' ), (100-wppa_opt( 'watermark_opacity' )));
|
9262 |
+
$help .= '<br>'.__('You may also select one of the textual watermark types at the bottom of the selection list.', 'wp-photo-album-plus' );
|
9263 |
$slug = 'wppa_watermark_file';
|
9264 |
$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>';
|
9265 |
+
$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;" />';
|
9266 |
+
$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>';
|
9267 |
+
$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;" />';
|
9268 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
9269 |
|
9270 |
+
$name = __('Upload watermark', 'wp-photo-album-plus' );
|
9271 |
+
$desc = __('Upload a new watermark file', 'wp-photo-album-plus' );
|
9272 |
$help = '';
|
9273 |
$slug = 'wppa_watermark_file_upload';
|
9274 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.png' );
|
9275 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
9276 |
|
9277 |
+
$name = __('Watermark opacity image', 'wp-photo-album-plus' );
|
9278 |
+
$desc = __('You can set the intensity of image watermarks here.', 'wp-photo-album-plus' );
|
9279 |
+
$help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus' );
|
9280 |
$slug = 'wppa_watermark_opacity';
|
9281 |
$html = wppa_input($slug, '50px', '', '%');
|
9282 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
9283 |
|
9284 |
+
$name = __('Textual watermark style', 'wp-photo-album-plus' );
|
9285 |
+
$desc = __('The way the textual watermarks look like', 'wp-photo-album-plus' );
|
9286 |
$help = '';
|
9287 |
$slug = 'wppa_textual_watermark_type';
|
9288 |
$clas = 'wppa_watermark';
|
9289 |
+
$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' ) );
|
9290 |
$svals = array( 'tvstyle', 'whiteonblack', 'blackonwhite', 'utopia', 'white', 'black' );
|
9291 |
$font = wppa_opt( 'textual_watermark_font' );
|
9292 |
$onch = 'wppaCheckFontPreview()';
|
9294 |
$preview = '<img style="background-color:#777;" id="wm-type-preview" src="" />';
|
9295 |
wppa_setting_new($slug, '4', $name, $desc, $html.' '.$preview, $help, $clas);
|
9296 |
|
9297 |
+
$name = __('Predefined watermark text', 'wp-photo-album-plus' );
|
9298 |
+
$desc = __('The text to use when --- pre-defined --- is selected.', 'wp-photo-album-plus' );
|
9299 |
+
$help = __('You may use the following keywords:', 'wp-photo-album-plus' );
|
9300 |
+
$help .= '<br>'.__('w#site, w#displayname, all standard photo keywords, iptc and exif keywords', 'wp-photo-album-plus' );
|
9301 |
$slug = 'wppa_textual_watermark_text';
|
9302 |
$html = wppa_textarea($slug, $name);
|
9303 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
9304 |
|
9305 |
if ( function_exists( 'imagettfbbox' ) ) {
|
9306 |
|
9307 |
+
$name = __('Textual watermark font', 'wp-photo-album-plus' );
|
9308 |
+
$desc = __('The font to use with textual watermarks.', 'wp-photo-album-plus' );
|
9309 |
+
$help = __('Except for the system font, are font files of type ttf and reside in', 'wp-photo-album-plus' ) . ' ' . WPPA_UPLOAD_URL . '/fonts/';
|
9310 |
$slug = 'wppa_textual_watermark_font';
|
9311 |
$fopts = array( 'System' );
|
9312 |
$fvals = array( 'system' );
|
9332 |
}
|
9333 |
}
|
9334 |
|
9335 |
+
$name = __('Textual watermark font size', 'wp-photo-album-plus' );
|
9336 |
+
$desc = __('You can set the size of the truetype fonts only.', 'wp-photo-album-plus' );
|
9337 |
+
$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' );
|
9338 |
+
$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' );
|
9339 |
+
$help .= '<br>'.__('It is unclear how many pixels a point is...', 'wp-photo-album-plus' );
|
9340 |
$slug = 'wppa_textual_watermark_size';
|
9341 |
$html = wppa_input($slug, '50px', '', 'points');
|
9342 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
9343 |
|
9344 |
+
$name = __('Foreground color', 'wp-photo-album-plus' );
|
9345 |
+
$desc = __('Textual watermark foreground color (black).', 'wp-photo-album-plus' );
|
9346 |
$help = '';
|
9347 |
$slug = 'wppa_watermark_fgcol_text';
|
9348 |
$onch = 'wppaRefreshAfter();';
|
9349 |
$html = wppa_input_color($slug, '100px;', '', '', $onch );
|
9350 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
9351 |
|
9352 |
+
$name = __('Background color', 'wp-photo-album-plus' );
|
9353 |
+
$desc = __('Textual watermark background color (white).', 'wp-photo-album-plus' );
|
9354 |
$help = '';
|
9355 |
$slug = 'wppa_watermark_bgcol_text';
|
9356 |
$onch = 'wppaRefreshAfter();';
|
9357 |
$html = wppa_input_color($slug, '100px;', '', '', $onch );
|
9358 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
9359 |
|
9360 |
+
$name = __('Upload watermark font', 'wp-photo-album-plus' );
|
9361 |
+
$desc = __('Upload a new watermark font file', 'wp-photo-album-plus' );
|
9362 |
+
$help = __('Upload truetype fonts (.ttf) only, and test if they work on your server platform.', 'wp-photo-album-plus' );
|
9363 |
$slug = 'wppa_watermark_font_upload';
|
9364 |
$html = wppa_upload_form( $slug, $wppa_cur_tab, '.ttf' );
|
9365 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
9366 |
|
9367 |
+
$name = __('Watermark opacity text', 'wp-photo-album-plus' );
|
9368 |
+
$desc = __('You can set the intensity of a text watermarks here.', 'wp-photo-album-plus' );
|
9369 |
+
$help = __('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wp-photo-album-plus' );
|
9370 |
$slug = 'wppa_watermark_opacity_text';
|
9371 |
$html = wppa_input($slug, '50px', '', '%');
|
9372 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
9373 |
|
9374 |
+
$name = __('Preview', 'wp-photo-album-plus' );
|
9375 |
+
$desc = __('A preview. Keywords in descriptions or predefined text are not translated.', 'wp-photo-album-plus' );
|
9376 |
+
$help = __('To see the changes: refresh the page', 'wp-photo-album-plus' );
|
9377 |
$slug = 'wppa_watermark_preview';
|
9378 |
$tr = floor( 127 * ( 100 - wppa_opt( 'watermark_opacity_text' ) ) / 100 );
|
9379 |
$args = array( 'id' => '0', 'url' => true, 'width' => '1000', 'height' => '400', 'transp' => $tr );
|
9396 |
wppa_setting_new($slug, '12', $name, $desc, $html, $help);
|
9397 |
}
|
9398 |
|
9399 |
+
$name = __('Watermark thumbnails', 'wp-photo-album-plus' );
|
9400 |
+
$desc = __('Watermark also the thumbnail image files.', 'wp-photo-album-plus' );
|
9401 |
$help = '';
|
9402 |
$slug = 'wppa_watermark_thumbs';
|
9403 |
$html = wppa_checkbox($slug);
|
9405 |
$tags = 'water,thumb';
|
9406 |
wppa_setting_new($slug, '13', $name, $desc, $html, $help);
|
9407 |
|
9408 |
+
$name = __('Watermark size', 'wp-photo-album-plus' );
|
9409 |
+
$desc = __('The size of the image based watermark in percents of the image width', 'wp-photo-album-plus' );
|
9410 |
+
$help = __('Select a value, --- off --- means: use the watermark image as is', 'wp-photo-album-plus' );
|
9411 |
$slug = 'wppa_watermark_size';
|
9412 |
+
$opts = array( __('--- off ---', 'wp-photo-album-plus' ), '10%', '20%', '25%', '30%', '40%', '50%', '60%', '70%', '80%', '90%' );
|
9413 |
$vals = array( '0', '10', '20', '25', '30', '40', '50', '60', '70', '80', '90' );
|
9414 |
$html = wppa_select($slug, $opts, $vals);
|
9415 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
9416 |
|
9417 |
+
$name = __('Watermark margin', 'wp-photo-album-plus' );
|
9418 |
+
$desc = __('The margin for the watermark from the edge of the image', 'wp-photo-album-plus' );
|
9419 |
+
$help = __('A value > 1 means pixels, a value < 1 means fraction. E.g enter 0.12 for 12%', 'wp-photo-album-plus' );
|
9420 |
$slug = 'wppa_watermark_margin';
|
9421 |
$html = wppa_input($slug, '40px;');
|
9422 |
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
9432 |
$desc = $wppa_subtab_names[$tab]['1'];
|
9433 |
wppa_setting_tab_description($desc);
|
9434 |
|
9435 |
+
$coldef = array( __('#', 'wp-photo-album-plus' ) => '24px;',
|
9436 |
+
__('Name', 'wp-photo-album-plus' ) => 'auto;',
|
9437 |
+
__('Description', 'wp-photo-album-plus' ) => 'auto;',
|
9438 |
+
__('Value', 'wp-photo-album-plus' ) => 'auto;',
|
9439 |
+
__('Download', 'wp-photo-album-plus' ) => 'auto;',
|
9440 |
+
__('Help', 'wp-photo-album-plus' ) => '24px;',
|
9441 |
);
|
9442 |
wppa_setting_box_header_new($tab, $coldef);
|
9443 |
|
9444 |
$name = 'WPPA_ALBUMS';
|
9445 |
+
$desc = __('Albums db table name.', 'wp-photo-album-plus' );
|
9446 |
$help = '';
|
9447 |
$html1 = WPPA_ALBUMS . wppa_see_also( 'miscadv', '1', '12' );
|
9448 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_ALBUMS . '\')" >' .
|
9449 |
+
__('Download', 'wp-photo-album-plus' ) . ' ' . WPPA_ALBUMS . '.csv' .
|
9450 |
'</a> ' .
|
9451 |
'<img id="' . WPPA_ALBUMS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9452 |
$html = array( $html1, $html2 );
|
9453 |
wppa_setting_new(false, '1', $name, $desc, $html, $help);
|
9454 |
|
9455 |
$name = 'WPPA_PHOTOS';
|
9456 |
+
$desc = __('Photos db table name.', 'wp-photo-album-plus' );
|
9457 |
$help = '';
|
9458 |
$html1 = WPPA_PHOTOS;
|
9459 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_PHOTOS . '\')" >' .
|
9460 |
+
__('Download', 'wp-photo-album-plus' ) . ' ' . WPPA_PHOTOS . '.csv' .
|
9461 |
'</a> ' .
|
9462 |
'<img id="' . WPPA_PHOTOS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9463 |
$html = array( $html1, $html2 );
|
9464 |
wppa_setting_new(false, '2', $name, $desc, $html, $help);
|
9465 |
|
9466 |
$name = 'WPPA_RATING';
|
9467 |
+
$desc = __('Rating db table name.', 'wp-photo-album-plus' );
|
9468 |
$help = '';
|
9469 |
$html1 = WPPA_RATING;
|
9470 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_RATING . '\')" >' .
|
9471 |
+
__('Download', 'wp-photo-album-plus' ) . ' ' . WPPA_RATING . '.csv' .
|
9472 |
'</a> ' .
|
9473 |
'<img id="' . WPPA_RATING . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9474 |
$html = array( $html1, $html2 );
|
9475 |
wppa_setting_new(false, '3', $name, $desc, $html, $help);
|
9476 |
|
9477 |
$name = 'WPPA_COMMENTS';
|
9478 |
+
$desc = __('Comments db table name.', 'wp-photo-album-plus' );
|
9479 |
$help = '';
|
9480 |
$html1 = WPPA_COMMENTS;
|
9481 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_COMMENTS . '\')" >' .
|
9482 |
+
__('Download', 'wp-photo-album-plus' ) . ' ' . WPPA_COMMENTS . '.csv' .
|
9483 |
'</a> ' .
|
9484 |
'<img id="' . WPPA_COMMENTS . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9485 |
$html = array( $html1, $html2 );
|
9486 |
wppa_setting_new(false, '4', $name, $desc, $html, $help);
|
9487 |
|
9488 |
$name = 'WPPA_IPTC';
|
9489 |
+
$desc = __('IPTC db table name.', 'wp-photo-album-plus' );
|
9490 |
$help = '';
|
9491 |
$html1 = WPPA_IPTC;
|
9492 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_IPTC . '\')" >' .
|
9493 |
+
__('Download', 'wp-photo-album-plus' ) . ' ' . WPPA_IPTC . '.csv' .
|
9494 |
'</a> ' .
|
9495 |
'<img id="' . WPPA_IPTC . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9496 |
$html = array( $html1, $html2 );
|
9497 |
wppa_setting_new(false, '5', $name, $desc, $html, $help);
|
9498 |
|
9499 |
$name = 'WPPA_EXIF';
|
9500 |
+
$desc = __('EXIF db table name.', 'wp-photo-album-plus' );
|
9501 |
$help = '';
|
9502 |
$html1 = WPPA_EXIF;
|
9503 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_EXIF . '\')" >' .
|
9504 |
+
__('Download', 'wp-photo-album-plus' ) . ' ' . WPPA_EXIF . '.csv' .
|
9505 |
'</a> ' .
|
9506 |
'<img id="' . WPPA_EXIF . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9507 |
$html = array( $html1, $html2 );
|
9508 |
wppa_setting_new(false, '6', $name, $desc, $html, $help);
|
9509 |
|
9510 |
$name = 'WPPA_INDEX';
|
9511 |
+
$desc = __('Index db table name.', 'wp-photo-album-plus' );
|
9512 |
$help = '';
|
9513 |
$html1 = WPPA_INDEX;
|
9514 |
$html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_INDEX . '\')" >' .
|
9515 |
+
__('Download', 'wp-photo-album-plus' ) . ' ' . WPPA_INDEX . '.csv' .
|
9516 |
'</a> ' .
|
9517 |
'<img id="' . WPPA_INDEX . '-spin" src="' . wppa_get_imgdir( 'spinner.gif' ) . '" style="display:none;" />';
|
9518 |
$html = array( $html1, $html2 );
|
9519 |
wppa_setting_new(false, '7', $name, $desc, $html, $help);
|
9520 |
|
9521 |
$name = 'WPPA_SESSION';
|
9522 |
+
$desc = __('Session db table name.', 'wp-photo-album-plus' );
|
9523 |
$help = '';
|
9524 |
$html1 = WPPA_SESSION;
|
9525 |
+
$html2 = sprintf( __('Download %s is useless', 'wp-photo-album-plus' ), WPPA_SESSION );
|
9526 |
$html = array( $html1, $html2 );
|
9527 |
wppa_setting_new(false, '8', $name, $desc, $html, $help);
|
9528 |
|
9529 |
$name = 'WPPA_FILE';
|
9530 |
+
$desc = __('Plugins main file name.', 'wp-photo-album-plus' );
|
9531 |
$help = '';
|
9532 |
$html1 = WPPA_FILE;
|
9533 |
$html2 = '';
|
9535 |
wppa_setting_new(false, '9', $name, $desc, $html, $help);
|
9536 |
|
9537 |
$name = 'ABSPATH';
|
9538 |
+
$desc = __('WP absolute path.', 'wp-photo-album-plus' );
|
9539 |
$help = '';
|
9540 |
$html1 = ABSPATH;
|
9541 |
$html2 = '';
|
9543 |
wppa_setting_new(false, '10', $name, $desc, $html, $help);
|
9544 |
|
9545 |
$name = 'WPPA_ABSPATH';
|
9546 |
+
$desc = __('ABSPATH windows proof', 'wp-photo-album-plus' );
|
9547 |
$help = '';
|
9548 |
$html1 = WPPA_ABSPATH;
|
9549 |
$html2 = '';
|
9551 |
wppa_setting_new(false, '11', $name, $desc, $html, $help);
|
9552 |
|
9553 |
$name = 'WPPA_PATH';
|
9554 |
+
$desc = __('Path to plugins directory.', 'wp-photo-album-plus' );
|
9555 |
$help = '';
|
9556 |
$html1 = WPPA_PATH;
|
9557 |
$html2 = '';
|
9559 |
wppa_setting_new(false, '12', $name, $desc, $html, $help);
|
9560 |
|
9561 |
$name = 'WPPA_NAME';
|
9562 |
+
$desc = __('Plugins directory name.', 'wp-photo-album-plus' );
|
9563 |
$help = '';
|
9564 |
$html1 = WPPA_NAME;
|
9565 |
$html2 = '';
|
9567 |
wppa_setting_new(false, '13', $name, $desc, $html, $help);
|
9568 |
|
9569 |
$name = 'WPPA_URL';
|
9570 |
+
$desc = __('Plugins directory url.', 'wp-photo-album-plus' );
|
9571 |
$help = '';
|
9572 |
$html1 = WPPA_URL;
|
9573 |
$html2 = '';
|
9575 |
wppa_setting_new(false, '14', $name, $desc, $html, $help);
|
9576 |
|
9577 |
$name = 'WPPA_UPLOAD';
|
9578 |
+
$desc = __('The relative upload directory.', 'wp-photo-album-plus' );
|
9579 |
$help = '';
|
9580 |
$html1 = WPPA_UPLOAD;
|
9581 |
$html2 = '';
|
9583 |
wppa_setting_new(false, '15', $name, $desc, $html, $help);
|
9584 |
|
9585 |
$name = 'WPPA_UPLOAD_PATH';
|
9586 |
+
$desc = __('The upload directory path.', 'wp-photo-album-plus' );
|
9587 |
$help = '';
|
9588 |
$html1 = WPPA_UPLOAD_PATH;
|
9589 |
$html2 = '';
|
9591 |
wppa_setting_new(false, '16', $name, $desc, $html, $help);
|
9592 |
|
9593 |
$name = 'WPPA_UPLOAD_URL';
|
9594 |
+
$desc = __('The upload directory url.', 'wp-photo-album-plus' );
|
9595 |
$help = '';
|
9596 |
$html1 = WPPA_UPLOAD_URL;
|
9597 |
$html2 = '';
|
9599 |
wppa_setting_new(false, '17', $name, $desc, $html, $help);
|
9600 |
|
9601 |
$name = 'WPPA_DEPOT';
|
9602 |
+
$desc = __('The relative depot directory.', 'wp-photo-album-plus' );
|
9603 |
$help = '';
|
9604 |
$html1 = WPPA_DEPOT;
|
9605 |
$html2 = '';
|
9607 |
wppa_setting_new(false, '18', $name, $desc, $html, $help);
|
9608 |
|
9609 |
$name = 'WPPA_DEPOT_PATH';
|
9610 |
+
$desc = __('The depot directory path.', 'wp-photo-album-plus' );
|
9611 |
$help = '';
|
9612 |
$html1 = WPPA_DEPOT_PATH;
|
9613 |
$html2 = '';
|
9615 |
wppa_setting_new(false, '19', $name, $desc, $html, $help);
|
9616 |
|
9617 |
$name = 'WPPA_DEPOT_URL';
|
9618 |
+
$desc = __('The depot directory url.', 'wp-photo-album-plus' );
|
9619 |
$help = '';
|
9620 |
$html1 = WPPA_DEPOT_URL;
|
9621 |
$html2 = '';
|
9623 |
wppa_setting_new(false, '20', $name, $desc, $html, $help);
|
9624 |
|
9625 |
$name = 'WPPA_CONTENT_PATH';
|
9626 |
+
$desc = __('The path to wp-content.', 'wp-photo-album-plus' );
|
9627 |
$help = '';
|
9628 |
$html1 = WPPA_CONTENT_PATH;
|
9629 |
$html2 = '';
|
9631 |
wppa_setting_new(false, '21', $name, $desc, $html, $help);
|
9632 |
|
9633 |
$name = 'WPPA_CONTENT_URL';
|
9634 |
+
$desc = __('WP Content url.', 'wp-photo-album-plus' );
|
9635 |
$help = '';
|
9636 |
$html1 = WPPA_CONTENT_URL;
|
9637 |
$html2 = '';
|
9639 |
wppa_setting_new(false, '22', $name, $desc, $html, $help);
|
9640 |
|
9641 |
$name = 'wp_upload_dir() : [\'basedir\']';
|
9642 |
+
$desc = __('WP Base upload dir.', 'wp-photo-album-plus' );
|
9643 |
$help = '';
|
9644 |
$wp_uploaddir = wp_upload_dir();
|
9645 |
$html1 = $wp_uploaddir['basedir'];
|
9667 |
wppa_setting_tab_description($desc);
|
9668 |
wppa_setting_box_header_new($tab);
|
9669 |
|
9670 |
+
$name = __('Album sequence default', 'wp-photo-album-plus' );
|
9671 |
+
$desc = __('Album ordering sequence method.', 'wp-photo-album-plus' );
|
9672 |
+
$help = __('Specify the way the albums should be ordered.', 'wp-photo-album-plus' );
|
9673 |
$slug = 'wppa_list_albums_by';
|
9674 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
9675 |
+
__('Order #', 'wp-photo-album-plus' ),
|
9676 |
+
__('Name', 'wp-photo-album-plus' ),
|
9677 |
+
__('Random', 'wp-photo-album-plus' ),
|
9678 |
+
__('Timestamp', 'wp-photo-album-plus' ),
|
9679 |
+
__('Order # desc', 'wp-photo-album-plus' ),
|
9680 |
+
__('Name desc', 'wp-photo-album-plus' ),
|
9681 |
+
__('Timestamp desc', 'wp-photo-album-plus' ),
|
9682 |
);
|
9683 |
$vals = array( '0',
|
9684 |
'1',
|
9692 |
$html = wppa_select($slug, $opts, $vals);
|
9693 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
9694 |
|
9695 |
+
$name = __('Photo sequence default', 'wp-photo-album-plus' );
|
9696 |
+
$desc = __('Photo ordering sequence method.', 'wp-photo-album-plus' );
|
9697 |
+
$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' );
|
9698 |
$slug = 'wppa_list_photos_by';
|
9699 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus' ),
|
9700 |
+
__('Order #', 'wp-photo-album-plus' ),
|
9701 |
+
__('Name', 'wp-photo-album-plus' ),
|
9702 |
+
__('Random', 'wp-photo-album-plus' ),
|
9703 |
+
__('Rating mean value', 'wp-photo-album-plus' ),
|
9704 |
+
__('Number of votes', 'wp-photo-album-plus' ),
|
9705 |
+
__('Timestamp', 'wp-photo-album-plus' ),
|
9706 |
+
__('EXIF Date', 'wp-photo-album-plus' ),
|
9707 |
+
__('Order # desc', 'wp-photo-album-plus' ),
|
9708 |
+
__('Name desc', 'wp-photo-album-plus' ),
|
9709 |
+
__('Rating mean value desc', 'wp-photo-album-plus' ),
|
9710 |
+
__('Number of votes desc', 'wp-photo-album-plus' ),
|
9711 |
+
__('Timestamp desc', 'wp-photo-album-plus' ),
|
9712 |
+
__('EXIF Date desc', 'wp-photo-album-plus' )
|
9713 |
);
|
9714 |
$vals = array( '0',
|
9715 |
'1',
|
9729 |
$html = wppa_select($slug, $opts, $vals);
|
9730 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
9731 |
|
9732 |
+
$name = __('Default coverphoto selection', 'wp-photo-album-plus' );
|
9733 |
+
$desc = __('Default select cover photo method.', 'wp-photo-album-plus' );
|
9734 |
+
$help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus' );
|
9735 |
+
$help .= '<br>' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus' );
|
9736 |
+
$opts = array( __('--- random ---', 'wp-photo-album-plus' ),
|
9737 |
+
__('--- random featured ---', 'wp-photo-album-plus' ),
|
9738 |
+
__('--- most recent added ---', 'wp-photo-album-plus' ),
|
9739 |
+
__('--- random from (grand)children ---', 'wp-photo-album-plus' ),
|
9740 |
+
__('--- most recent from (grand)children ---', 'wp-photo-album-plus' ),
|
9741 |
+
__('--- according to albums photo sequence ---', 'wp-photo-album-plus' ),
|
9742 |
);
|
9743 |
$vals = array('-9', '-1', '-2', '-3', '-4', '-5');
|
9744 |
$slug = 'wppa_main_photo';
|
9745 |
$html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter()');
|
9746 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt('main_photo') != '-3' && wppa_opt('main_photo') != '-9');
|
9747 |
|
9748 |
+
$name = __('Default coverphoto selection', 'wp-photo-album-plus' );
|
9749 |
+
$desc = __('Default select cover photo method.', 'wp-photo-album-plus' );
|
9750 |
+
$help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus' );
|
9751 |
+
$help .= '<br>' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus' );
|
9752 |
+
$opts = array( __('--- random ---', 'wp-photo-album-plus' ),
|
9753 |
+
__('--- random featured ---', 'wp-photo-album-plus' ),
|
9754 |
+
__('--- most recent added ---', 'wp-photo-album-plus' ),
|
9755 |
+
__('--- random from (grand)children ---', 'wp-photo-album-plus' ),
|
9756 |
+
__('--- most recent from (grand)children ---', 'wp-photo-album-plus' ),
|
9757 |
+
__('--- according to albums photo sequence ---', 'wp-photo-album-plus' ),
|
9758 |
);
|
9759 |
$vals = array('-9', '-1', '-2', '-3', '-4', '-5');
|
9760 |
$slug1 = 'wppa_main_photo';
|
9761 |
$slug2 = 'wppa_main_photo_random_once';
|
9762 |
$slug3 = 'wppa_main_photo_reset';
|
9763 |
$html = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter()') .
|
9764 |
+
'<span style="float:left;margin:0 6px;" >' . __('Fix first found', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug2) .
|
9765 |
+
'<span style="float:left;margin:0 6px;" >' . __('Reset all', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug3);
|
9766 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt('main_photo') == '-3' || wppa_opt('main_photo') == '-9');
|
9767 |
|
9768 |
+
$name = __('Related count', 'wp-photo-album-plus' );
|
9769 |
+
$desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus' );
|
9770 |
+
$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' );
|
9771 |
$slug = 'wppa_related_count';
|
9772 |
+
$html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus' ));
|
9773 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
9774 |
|
9775 |
+
$name = __('Max file name length', 'wp-photo-album-plus' );
|
9776 |
+
$desc = __('The max length of a photo file name excluding the extension.', 'wp-photo-album-plus' );
|
9777 |
+
$help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus' );
|
9778 |
$slug = 'wppa_max_filename_length';
|
9779 |
+
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus' ));
|
9780 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
9781 |
|
9782 |
+
$name = __('Max photo name length', 'wp-photo-album-plus' );
|
9783 |
+
$desc = __('The max length of a photo name.', 'wp-photo-album-plus' );
|
9784 |
+
$help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus' );
|
9785 |
$slug = 'wppa_max_photoname_length';
|
9786 |
+
$html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus' ));
|
9787 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
9788 |
|
9789 |
+
$name = __('Default Video width', 'wp-photo-album-plus' );
|
9790 |
+
$desc = __('The width of most videos', 'wp-photo-album-plus' );
|
9791 |
+
$help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus' );
|
9792 |
$slug = 'wppa_video_width';
|
9793 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
9794 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
9795 |
|
9796 |
+
$name = __('Default Video height', 'wp-photo-album-plus' );
|
9797 |
+
$desc = __('The height of most videos', 'wp-photo-album-plus' );
|
9798 |
+
$help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus' );
|
9799 |
$slug = 'wppa_video_height';
|
9800 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
|
9801 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch('enable_video'));
|
9802 |
|
9803 |
+
$name = __('Grid video controls', 'wp-photo-album-plus' );
|
9804 |
+
$desc = __('Show the video controls on a video in a grid display', 'wp-photo-album-plus' );
|
9805 |
$help = '';
|
9806 |
$slug = 'wppa_grid_video';
|
9807 |
$html = wppa_checkbox($slug);
|
9919 |
wppa_setting_tab_description($desc);
|
9920 |
wppa_setting_box_header_new($tab);
|
9921 |
|
9922 |
+
$name = __('JPG image quality', 'wp-photo-album-plus' );
|
9923 |
+
$desc = __('The jpg quality when photos are downsized', 'wp-photo-album-plus' );
|
9924 |
+
$help = __('The higher the number the better the quality but the larger the file', 'wp-photo-album-plus' );
|
9925 |
+
$help .= '<br>'.__('Possible values 20..100', 'wp-photo-album-plus' );
|
9926 |
$slug = 'wppa_jpeg_quality';
|
9927 |
$html = wppa_input($slug, '50px');
|
9928 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
9929 |
|
9930 |
+
$name = __('Allow WPPA+ Debugging', 'wp-photo-album-plus' );
|
9931 |
+
$desc = __('Allow the use of &debug=.. in urls to this site.', 'wp-photo-album-plus' );
|
9932 |
+
$help = __('If checked: appending (?)(&)debug or (?)(&)debug=<int> to an url to this site will generate the display of special WPPA+ diagnostics, as well as php warnings', 'wp-photo-album-plus' );
|
9933 |
$slug = 'wppa_allow_debug';
|
9934 |
$html = wppa_checkbox($slug);
|
9935 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
9936 |
|
9937 |
+
$name = __('Enable <b>in-line</b> settings', 'wp-photo-album-plus' );
|
9938 |
+
$desc = __('Activates shortcode [wppa_set].', 'wp-photo-album-plus' );
|
9939 |
+
$help = __('Syntax: [wppa_set name="any wppa setting" value="new value"]', 'wp-photo-album-plus' );
|
9940 |
+
$help .= '<br>'.__('Example: [wppa_set name="wppa_thumbtype" value="masonry-v"] sets the thumbnail type to vertical masonry style', 'wp-photo-album-plus' );
|
9941 |
+
$help .= '<br>'.__('Do not forget to reset with [wppa_set]', 'wp-photo-album-plus' );
|
9942 |
+
$help .= '<br>'.__('Use with great care! There is no check on validity of values!', 'wp-photo-album-plus' );
|
9943 |
$slug = 'wppa_enable_shortcode_wppa_set';
|
9944 |
$html = wppa_checkbox($slug);
|
9945 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
9946 |
|
9947 |
+
$name = __('Minimum tags', 'wp-photo-album-plus' );
|
9948 |
+
$desc = __('These tags exist even when they do not occur in any photo.', 'wp-photo-album-plus' );
|
9949 |
+
$help = __('Enter tags, separated by comma\'s (,)', 'wp-photo-album-plus' );
|
9950 |
+
$help .= '<br>'.__('Tags exist when they appear on any photo, and vanish when they do no longer appear. Except the tags you list here; they exist always.', 'wp-photo-album-plus' );
|
9951 |
$slug = 'wppa_minimum_tags';
|
9952 |
$html = wppa_input($slug, '300px');
|
9953 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
9954 |
|
9955 |
+
$name = __('Show minimum tags only', 'wp-photo-album-plus' );
|
9956 |
+
$desc = __('Shows only the minimum tags in the photo admin tags seclection box', 'wp-photo-album-plus' );
|
9957 |
+
$help = __('To limit the use of tags to these tags only, also tick New tags restricted', 'wp-photo-album-plus' );
|
9958 |
$help .= wppa_see_also( 'admin', '4', '9' );
|
9959 |
$slug = 'wppa_predef_tags_only';
|
9960 |
$html = wppa_checkbox($slug);
|
9961 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
9962 |
|
9963 |
+
$name = __('Login link', 'wp-photo-album-plus' );
|
9964 |
+
$desc = __('Modify this link if you have a custom login page.', 'wp-photo-album-plus' );
|
9965 |
$help = '';
|
9966 |
$slug = 'wppa_login_url';
|
9967 |
$html = wppa_input($slug, '300px');
|
9968 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
9969 |
|
9970 |
+
$name = __('Cache root', 'wp-photo-album-plus' );
|
9971 |
+
$desc = __('The root folder of your caching plugin', 'wp-photo-album-plus' ) . ': <span style="float:right;" >' . WPPA_CONTENT_PATH . '/</span>';
|
9972 |
+
$help = __('If you have a caching plugin, make sure this setting points to the root folder where the cache files are stored', 'wp-photo-album-plus' );
|
9973 |
$slug = 'wppa_cache_root';
|
9974 |
$html = wppa_input($slug, '300px');
|
9975 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
9976 |
|
9977 |
+
$name = __('Direct comment', 'wp-photo-album-plus' );
|
9978 |
+
$desc = __('Enable direct commenting and rating from remote source', 'wp-photo-album-plus' );
|
9979 |
+
$help = __('This setting has only effect when Encrypted links is mandatory', 'wp-photo-album-plus' );
|
9980 |
+
$help .= '<br>' . __('Use with care, and only in special situations!', 'wp-photo-album-plus' );
|
9981 |
$slug = 'wppa_direct_comment';
|
9982 |
$html = wppa_checkbox($slug) . wppa_see_also( 'links', '1', '5.6' );
|
9983 |
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
9984 |
|
9985 |
+
$name = __('Extended resize count', 'wp-photo-album-plus' );
|
9986 |
+
$desc = __('Number of extra resize handler actions', 'wp-photo-album-plus' );
|
9987 |
$help = '';
|
9988 |
$slug = 'wppa_extended_resize_count';
|
9989 |
$opts = array('0','1','2','3','4','5','6','10','15','20',__( 'infinite', 'wp-photo-album-plus' ) );
|
9990 |
$vals = array('0','1','2','3','4','5','6','10','15','20','-1');
|
9991 |
+
$html = wppa_select($slug, $opts, $vals).' '.__('times', 'wp-photo-album-plus' );
|
9992 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
9993 |
|
9994 |
+
$name = __('Extended resize delay', 'wp-photo-album-plus' );
|
9995 |
+
$desc = __('Delay time of extra resize handler actions', 'wp-photo-album-plus' );
|
9996 |
$help = '';
|
9997 |
$slug = 'wppa_extended_resize_delay';
|
9998 |
$opts = array('5','10','20','50','100','150','200','300','500','700','1000');
|
10000 |
$html = wppa_select($slug, $opts, $vals).' ms.';
|
10001 |
wppa_setting_new($slug, '10', $name, $desc, $html, $help);
|
10002 |
|
10003 |
+
$name = __('Load nicescroller always', 'wp-photo-album-plus' );
|
10004 |
+
$desc = __('Loads nicescroller js on all pages', 'wp-photo-album-plus' );
|
10005 |
+
$help = __('Tick this if you use nicescroller anywhere and it is not being loaded', 'wp-photo-album-plus' );
|
10006 |
$slug = 'wppa_load_nicescroller';
|
10007 |
$html = wppa_checkbox($slug);
|
10008 |
wppa_setting_new($slug, '11', $name, $desc, $html, $help);
|
10009 |
|
10010 |
+
$name = __('CSV file separator', 'wp-photo-album-plus' );
|
10011 |
+
$desc = __('Select the separator to be used for csv file data', 'wp-photo-album-plus' );
|
10012 |
+
$help = __('This separator is used both during import and export', 'wp-photo-album-plus' );
|
10013 |
$slug = 'wppa_csv_sep';
|
10014 |
$opts = array( 'comma (,)', 'semicolon (;)' );
|
10015 |
$vals = array( ',', ';' );
|
10024 |
wppa_setting_tab_description($desc);
|
10025 |
wppa_setting_box_header_new($tab);
|
10026 |
|
10027 |
+
$name = __('Log Cron', 'wp-photo-album-plus' );
|
10028 |
+
$desc = __('Keep track of cron activity in the wppa logfile.', 'wp-photo-album-plus' );
|
10029 |
$help = '';
|
10030 |
$slug = 'wppa_log_cron';
|
10031 |
$html = wppa_checkbox($slug);
|
10032 |
wppa_setting_new($slug, '1', $name, $desc, $html, $help);
|
10033 |
|
10034 |
+
$name = __('Log Ajax', 'wp-photo-album-plus' );
|
10035 |
+
$desc = __('Keep track of ajax activity in the wppa logfile.', 'wp-photo-album-plus' );
|
10036 |
$help = '';
|
10037 |
$slug = 'wppa_log_ajax';
|
10038 |
$html = wppa_checkbox($slug);
|
10039 |
wppa_setting_new($slug, '2', $name, $desc, $html, $help);
|
10040 |
|
10041 |
+
$name = __('Log Comments', 'wp-photo-album-plus' );
|
10042 |
+
$desc = __('Keep track of commenting activity in the wppa logfile.', 'wp-photo-album-plus' );
|
10043 |
$help = '';
|
10044 |
$slug = 'wppa_log_comments';
|
10045 |
$html = wppa_checkbox($slug);
|
10046 |
wppa_setting_new($slug, '3', $name, $desc, $html, $help);
|
10047 |
|
10048 |
+
$name = __('Log File events', 'wp-photo-album-plus' );
|
10049 |
+
$desc = __('Keep track of dir/file creations.', 'wp-photo-album-plus' );
|
10050 |
$help = '';
|
10051 |
$slug = 'wppa_log_fso';
|
10052 |
$html = wppa_checkbox($slug);
|
10053 |
wppa_setting_new($slug, '4', $name, $desc, $html, $help);
|
10054 |
|
10055 |
+
$name = __('Log Debug messages', 'wp-photo-album-plus' );
|
10056 |
+
$desc = __('Keep track of debug messages.', 'wp-photo-album-plus' );
|
10057 |
$help = '';
|
10058 |
$slug = 'wppa_log_debug';
|
10059 |
$html = wppa_checkbox($slug);
|
10060 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
10061 |
|
10062 |
+
$name = __('Log Emails sent', 'wp-photo-album-plus' );
|
10063 |
+
$desc = __('Keep track of sending emails.', 'wp-photo-album-plus' );
|
10064 |
$help = '';
|
10065 |
$slug = 'wppa_log_email';
|
10066 |
$html = wppa_checkbox($slug);
|
10067 |
wppa_setting_new($slug, '6', $name, $desc, $html, $help);
|
10068 |
|
10069 |
+
$name = __('Log Timings', 'wp-photo-album-plus' );
|
10070 |
+
$desc = __('Keep track of various timings.', 'wp-photo-album-plus' );
|
10071 |
$help = '';
|
10072 |
$slug = 'wppa_log_tim';
|
10073 |
$html = wppa_checkbox($slug);
|
10074 |
wppa_setting_new($slug, '7', $name, $desc, $html, $help);
|
10075 |
|
10076 |
+
$name = __('List Logfile', 'wp-photo-album-plus' );
|
10077 |
+
$desc = __('Show the content of wppa+ (error) log.', 'wp-photo-album-plus' );
|
10078 |
$help = '';
|
10079 |
$slug = 'wppa_list_errorlog';
|
10080 |
$html = wppa_popup_button( $slu
|