Version Description
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 6.4.18 |
Comparing to | |
See all releases |
Code changes from version 6.4.17 to 6.4.18
- images/linkedin.png +0 -0
- js/wppa-admin-scripts.js +17 -16
- js/wppa-ajax-front.js +95 -95
- js/wppa-ajax-front.min.js +3 -3
- js/wppa-lightbox.js +8 -8
- js/wppa-lightbox.min.js +6 -6
- js/wppa.js +4 -3
- js/wppa.min.js +1 -1
- languages/wp-photo-album-plus-fr_FR.mo +0 -0
- languages/wp-photo-album-plus-fr_FR.po +139 -142
- readme.txt +22 -2
- wppa-admin-functions.php +2 -2
- wppa-ajax.php +16 -4
- wppa-album-covers.php +4 -0
- wppa-boxes-html.php +21 -9
- wppa-common-functions.php +1 -0
- wppa-encrypt.php +3 -5
- wppa-functions.php +22 -5
- wppa-items.php +23 -1
- wppa-non-admin.php +61 -7
- wppa-photo-files.php +20 -7
- wppa-settings-autosave.php +24 -5
- wppa-setup.php +3 -1
- wppa-stereo.php +2 -2
- wppa-upload.php +3 -3
- wppa-utils.php +3 -1
- wppa-watermark.php +2 -2
- wppa.php +3 -3
images/linkedin.png
ADDED
Binary file
|
js/wppa-admin-scripts.js
CHANGED
@@ -958,8 +958,9 @@ function wppa_move_up(who) {
|
|
958 |
document.location = wppa_moveup_url+who+"&wppa-nonce="+document.getElementById('wppa-nonce').value;
|
959 |
}
|
960 |
|
961 |
-
function checkColor(
|
962 |
-
var
|
|
|
963 |
jQuery('#colorbox-'+slug).css('background-color', color);
|
964 |
}
|
965 |
|
@@ -1142,10 +1143,10 @@ function wppaAjaxUpdatePhotoMonitor() {
|
|
1142 |
// New style front-end edit photo
|
1143 |
function wppaUpdatePhotoNew(id) {
|
1144 |
|
1145 |
-
var myItems = [ 'name',
|
1146 |
-
'description',
|
1147 |
'tags',
|
1148 |
-
'custom_0',
|
1149 |
'custom_1',
|
1150 |
'custom_2',
|
1151 |
'custom_3',
|
@@ -1156,12 +1157,12 @@ function wppaUpdatePhotoNew(id) {
|
|
1156 |
'custom_8',
|
1157 |
'custom_9'
|
1158 |
];
|
1159 |
-
|
1160 |
var myData = 'action=wppa' +
|
1161 |
'&wppa-action=update-photo-new' +
|
1162 |
'&photo-id=' + id +
|
1163 |
'&wppa-nonce=' + jQuery('#wppa-nonce').val();
|
1164 |
-
|
1165 |
var i = 0;
|
1166 |
while ( i < myItems.length ) {
|
1167 |
if ( typeof(jQuery('#'+myItems[i] ).val() ) != 'undefined' ) {
|
@@ -1170,13 +1171,13 @@ function wppaUpdatePhotoNew(id) {
|
|
1170 |
i++;
|
1171 |
}
|
1172 |
|
1173 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
1174 |
data: myData,
|
1175 |
async: false,
|
1176 |
type: 'POST',
|
1177 |
timeout: 10000,
|
1178 |
beforeSend: function( xhr ) {
|
1179 |
-
|
1180 |
},
|
1181 |
success: function( result, status, xhr ) {
|
1182 |
if ( result.length > 0 ) { alert(result); }
|
@@ -1187,7 +1188,7 @@ function wppaUpdatePhotoNew(id) {
|
|
1187 |
wppaConsoleLog( 'wppaUpdatePhotoNew failed. Error = ' + error + ', status = ' + status, 'force' );
|
1188 |
},
|
1189 |
complete: function( xhr, status, newurl ) {
|
1190 |
-
|
1191 |
}
|
1192 |
} );
|
1193 |
|
@@ -1668,7 +1669,7 @@ function wppaMaintenanceProc(slug, intern) {
|
|
1668 |
wppaAjaxUpdateOptionValue( 'wppa_create_o1_files_skip_one', 0 );
|
1669 |
}
|
1670 |
setTimeout('wppaMaintenanceProc(\''+slug+'\', true)', 2000);
|
1671 |
-
}
|
1672 |
},
|
1673 |
|
1674 |
complete: function( xhr, status, newurl ) {
|
@@ -1844,7 +1845,7 @@ function wppaPhotoStatusChange(id) {
|
|
1844 |
// Init
|
1845 |
jQuery('#psdesc-'+id).css({display: 'none'});
|
1846 |
if ( ! jQuery('#status-'+id) ) return;
|
1847 |
-
|
1848 |
elm = document.getElementById('status-'+id);
|
1849 |
|
1850 |
if ( elm.value == 'pending' || elm.value == 'scheduled' ) {
|
@@ -2074,7 +2075,7 @@ function wppaEditSearch( url, id ) {
|
|
2074 |
}
|
2075 |
|
2076 |
function wppaExportDbTable( table ) {
|
2077 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
2078 |
data: 'action=wppa' +
|
2079 |
'&wppa-action=export-table' +
|
2080 |
'&table=' + table,
|
@@ -2087,15 +2088,15 @@ function wppaExportDbTable( table ) {
|
|
2087 |
success: function( result, status, xhr ) {
|
2088 |
var ArrValues = result.split( "||" );
|
2089 |
if ( ArrValues[1] == '0' ) { // Ok, no error
|
2090 |
-
|
2091 |
// Publish result
|
2092 |
document.location = ArrValues[2];
|
2093 |
}
|
2094 |
else {
|
2095 |
-
|
2096 |
// Show error
|
2097 |
alert( 'Error: '+ArrValues[1]+'\n\n'+ArrValues[2] );
|
2098 |
-
}
|
2099 |
},
|
2100 |
error: function( xhr, status, error ) {
|
2101 |
alert( 'Export Db Table ' + table + ' failed. Error = ' + error + ', status = ' + status );
|
958 |
document.location = wppa_moveup_url+who+"&wppa-nonce="+document.getElementById('wppa-nonce').value;
|
959 |
}
|
960 |
|
961 |
+
function checkColor(xslug) {
|
962 |
+
var slug = xslug.substr(5);
|
963 |
+
var color = jQuery('#'+slug).val();
|
964 |
jQuery('#colorbox-'+slug).css('background-color', color);
|
965 |
}
|
966 |
|
1143 |
// New style front-end edit photo
|
1144 |
function wppaUpdatePhotoNew(id) {
|
1145 |
|
1146 |
+
var myItems = [ 'name',
|
1147 |
+
'description',
|
1148 |
'tags',
|
1149 |
+
'custom_0',
|
1150 |
'custom_1',
|
1151 |
'custom_2',
|
1152 |
'custom_3',
|
1157 |
'custom_8',
|
1158 |
'custom_9'
|
1159 |
];
|
1160 |
+
|
1161 |
var myData = 'action=wppa' +
|
1162 |
'&wppa-action=update-photo-new' +
|
1163 |
'&photo-id=' + id +
|
1164 |
'&wppa-nonce=' + jQuery('#wppa-nonce').val();
|
1165 |
+
|
1166 |
var i = 0;
|
1167 |
while ( i < myItems.length ) {
|
1168 |
if ( typeof(jQuery('#'+myItems[i] ).val() ) != 'undefined' ) {
|
1171 |
i++;
|
1172 |
}
|
1173 |
|
1174 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
1175 |
data: myData,
|
1176 |
async: false,
|
1177 |
type: 'POST',
|
1178 |
timeout: 10000,
|
1179 |
beforeSend: function( xhr ) {
|
1180 |
+
|
1181 |
},
|
1182 |
success: function( result, status, xhr ) {
|
1183 |
if ( result.length > 0 ) { alert(result); }
|
1188 |
wppaConsoleLog( 'wppaUpdatePhotoNew failed. Error = ' + error + ', status = ' + status, 'force' );
|
1189 |
},
|
1190 |
complete: function( xhr, status, newurl ) {
|
1191 |
+
|
1192 |
}
|
1193 |
} );
|
1194 |
|
1669 |
wppaAjaxUpdateOptionValue( 'wppa_create_o1_files_skip_one', 0 );
|
1670 |
}
|
1671 |
setTimeout('wppaMaintenanceProc(\''+slug+'\', true)', 2000);
|
1672 |
+
}
|
1673 |
},
|
1674 |
|
1675 |
complete: function( xhr, status, newurl ) {
|
1845 |
// Init
|
1846 |
jQuery('#psdesc-'+id).css({display: 'none'});
|
1847 |
if ( ! jQuery('#status-'+id) ) return;
|
1848 |
+
|
1849 |
elm = document.getElementById('status-'+id);
|
1850 |
|
1851 |
if ( elm.value == 'pending' || elm.value == 'scheduled' ) {
|
2075 |
}
|
2076 |
|
2077 |
function wppaExportDbTable( table ) {
|
2078 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
2079 |
data: 'action=wppa' +
|
2080 |
'&wppa-action=export-table' +
|
2081 |
'&table=' + table,
|
2088 |
success: function( result, status, xhr ) {
|
2089 |
var ArrValues = result.split( "||" );
|
2090 |
if ( ArrValues[1] == '0' ) { // Ok, no error
|
2091 |
+
|
2092 |
// Publish result
|
2093 |
document.location = ArrValues[2];
|
2094 |
}
|
2095 |
else {
|
2096 |
+
|
2097 |
// Show error
|
2098 |
alert( 'Error: '+ArrValues[1]+'\n\n'+ArrValues[2] );
|
2099 |
+
}
|
2100 |
},
|
2101 |
error: function( xhr, status, error ) {
|
2102 |
alert( 'Export Db Table ' + table + ' failed. Error = ' + error + ', status = ' + status );
|
js/wppa-ajax-front.js
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
//
|
3 |
// Contains frontend ajax modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
-
//
|
6 |
-
var wppaJsAjaxVersion = '6.4.
|
7 |
|
8 |
var wppaRenderAdd = false;
|
9 |
var wppaWaitForCounter = 0;
|
@@ -23,14 +23,14 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor ) {
|
|
23 |
if ( wppaAutoColumnWidth[mocc] ) ajaxurl += '&resp=1';
|
24 |
|
25 |
// Ajax possible ?
|
26 |
-
if ( wppaCanAjaxRender ) {
|
27 |
|
28 |
-
jQuery.ajax( { url: ajaxurl,
|
29 |
async: true,
|
30 |
type: 'GET',
|
31 |
timeout: 60000,
|
32 |
beforeSend: function( xhr ) {
|
33 |
-
|
34 |
// If it is a slideshow: Stop slideshow before pushing it on the stack
|
35 |
if ( _wppaSSRuns[mocc] ) _wppaStop( mocc );
|
36 |
|
@@ -46,7 +46,7 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor ) {
|
|
46 |
else {
|
47 |
jQuery( '#wppa-container-'+mocc ).html( result );
|
48 |
}
|
49 |
-
|
50 |
// Push the stack
|
51 |
if ( wppaCanPushState && wppaUpdateAddressLine ) {
|
52 |
wppaHis++;
|
@@ -54,7 +54,7 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor ) {
|
|
54 |
try {
|
55 |
history.pushState( {page: wppaHis, occur: mocc, type: 'html', html: result}, "", newurl );
|
56 |
wppaConsoleLog( 'Ajax rendering: History stack pushed', 'force' );
|
57 |
-
|
58 |
}
|
59 |
catch( err ) {
|
60 |
try {
|
@@ -65,28 +65,28 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor ) {
|
|
65 |
wppaConsoleLog( 'Ajax rendering: History stack update failed', 'force' );
|
66 |
}
|
67 |
}
|
68 |
-
|
69 |
if ( wppaFirstOccur == 0 ) wppaFirstOccur = mocc;
|
70 |
}
|
71 |
-
|
72 |
-
// If lightbox is on board, refresh the imagelist. It has just changed, you know!
|
73 |
wppaUpdateLightboxes();
|
74 |
-
|
75 |
// Update qrcode
|
76 |
if ( typeof( wppaQRUpdate ) != 'undefined' ) wppaQRUpdate( newurl );
|
77 |
|
78 |
-
// Run Autocol?
|
79 |
-
wppaColWidth[mocc] = 0;
|
80 |
_wppaDoAutocol( mocc );
|
81 |
-
|
82 |
// If it is a slideshow: Update 'Faster' and 'Slower' to the desired language.
|
83 |
// The ajax stuff may get the admin language while we need the frontend language
|
84 |
jQuery( '#speed0-'+mocc ).html( wppaSlower );
|
85 |
jQuery( '#speed1-'+mocc ).html( wppaFaster );
|
86 |
-
|
87 |
// Remove spinner
|
88 |
jQuery( '#wppa-ajax-spin-'+mocc ).css( 'display', 'none' );
|
89 |
-
|
90 |
// Report if scripts
|
91 |
var scriptPos = result.indexOf( '<script' );
|
92 |
var scriptPosLast = result.lastIndexOf( '<script' );
|
@@ -95,30 +95,30 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor ) {
|
|
95 |
}
|
96 |
else {
|
97 |
wppaConsoleLog( 'Ajax render did contain a script tag at position '+scriptPos+' last at '+scriptPosLast, 'force' );
|
98 |
-
}
|
99 |
},
|
100 |
error: function( xhr, status, error ) {
|
101 |
wppaConsoleLog( 'wppaDoAjaxRender failed. Error = ' + error + ', status = ' + status, 'force' );
|
102 |
-
|
103 |
// Do it by reload
|
104 |
document.location.href = newurl;
|
105 |
|
106 |
-
// Run Autocol?
|
107 |
wppaColWidth[mocc] = 0; // force a recalc and triggers autocol if needed
|
108 |
_wppaDoAutocol( mocc );
|
109 |
},
|
110 |
complete: function( xhr, status, newurl ) {
|
111 |
wppaWaitForCounter++;
|
112 |
-
jQuery('html, body').animate({ scrollTop: jQuery("#wppa-container-"+mocc).offset().top - 32 }, 1000);
|
113 |
}
|
114 |
-
} );
|
115 |
}
|
116 |
-
|
117 |
// Ajax NOT possible
|
118 |
else {
|
119 |
document.location.href = newurl;
|
120 |
|
121 |
-
// Run Autocol?
|
122 |
wppaColWidth[mocc] = 0; // force a recalc and triggers autocol if needed
|
123 |
_wppaDoAutocol( mocc );
|
124 |
}
|
@@ -127,7 +127,7 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, add, waitfor ) {
|
|
127 |
// Set photo status to 'publish'
|
128 |
function wppaAjaxApprovePhoto( photo ) {
|
129 |
|
130 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
131 |
data: 'action=wppa' +
|
132 |
'&wppa-action=approve' +
|
133 |
'&photo-id=' + photo,
|
@@ -151,7 +151,7 @@ function wppaAjaxApprovePhoto( photo ) {
|
|
151 |
// Remove photo
|
152 |
function wppaAjaxRemovePhoto( mocc, photo, isslide ) {
|
153 |
|
154 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
155 |
data: 'action=wppa' +
|
156 |
'&wppa-action=remove' +
|
157 |
'&photo-id=' + photo,
|
@@ -159,11 +159,11 @@ function wppaAjaxRemovePhoto( mocc, photo, isslide ) {
|
|
159 |
type: 'GET',
|
160 |
timeout: 60000,
|
161 |
success: function( result, status, xhr ) {
|
162 |
-
|
163 |
// Remove succeeded?
|
164 |
rtxt = result.split( '||' );
|
165 |
if ( rtxt[0] == 'OK' ) {
|
166 |
-
|
167 |
// Slide?
|
168 |
if ( isslide ) {
|
169 |
jQuery( '#wppa-film-'+_wppaCurIdx[mocc]+'-'+mocc ).attr( 'src', '' );
|
@@ -172,14 +172,14 @@ function wppaAjaxRemovePhoto( mocc, photo, isslide ) {
|
|
172 |
jQuery( '#wppa-pre-'+_wppaCurIdx[mocc]+'-'+mocc ).attr( 'alt', 'removed' );
|
173 |
wppaNext( mocc );
|
174 |
}
|
175 |
-
|
176 |
// Thumbnail
|
177 |
else {
|
178 |
jQuery( '.wppa-approve-'+photo ).css( 'display', 'none' );
|
179 |
jQuery( '.thumbnail-frame-photo-'+photo ).css( 'display', 'none' );
|
180 |
}
|
181 |
}
|
182 |
-
|
183 |
// Remove failed
|
184 |
else {
|
185 |
alert( result );
|
@@ -194,7 +194,7 @@ function wppaAjaxRemovePhoto( mocc, photo, isslide ) {
|
|
194 |
// Set comment status to 'pblish'
|
195 |
function wppaAjaxApproveComment( comment ) {
|
196 |
|
197 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
198 |
data: 'action=wppa' +
|
199 |
'&wppa-action=approve' +
|
200 |
'&comment-id=' + comment,
|
@@ -202,12 +202,12 @@ function wppaAjaxApproveComment( comment ) {
|
|
202 |
type: 'GET',
|
203 |
timeout: 60000,
|
204 |
success: function( result, status, xhr ) {
|
205 |
-
|
206 |
// Approve succeeded?
|
207 |
if ( result == 'OK' ) {
|
208 |
jQuery( '.wppa-approve-'+comment ).css( 'display', 'none' );
|
209 |
}
|
210 |
-
|
211 |
// Approve failed
|
212 |
else {
|
213 |
alert( result );
|
@@ -217,13 +217,13 @@ function wppaAjaxApproveComment( comment ) {
|
|
217 |
wppaConsoleLog( 'wppaAjaxApproveComment failed. Error = ' + error + ', status = ' + status, 'force' );
|
218 |
}
|
219 |
} );
|
220 |
-
|
221 |
}
|
222 |
|
223 |
// Remove comment
|
224 |
function wppaAjaxRemoveComment( comment ) {
|
225 |
|
226 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
227 |
data: 'action=wppa' +
|
228 |
'&wppa-action=remove' +
|
229 |
'&comment-id=' + comment,
|
@@ -231,7 +231,7 @@ function wppaAjaxRemoveComment( comment ) {
|
|
231 |
type: 'GET',
|
232 |
timeout: 60000,
|
233 |
success: function( result, status, xhr ) {
|
234 |
-
|
235 |
// Remove succeeded?
|
236 |
var rtxt = result.split( '||' );
|
237 |
if ( rtxt[0] == 'OK' ) {
|
@@ -251,7 +251,7 @@ function wppaAjaxRemoveComment( comment ) {
|
|
251 |
// Add photo to zip
|
252 |
function wppaAjaxAddPhotoToZip( mocc, id, reload ) {
|
253 |
|
254 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
255 |
data: 'action=wppa' +
|
256 |
'&wppa-action=addtozip' +
|
257 |
'&photo-id=' + id,
|
@@ -259,7 +259,7 @@ function wppaAjaxAddPhotoToZip( mocc, id, reload ) {
|
|
259 |
type: 'GET',
|
260 |
timeout: 60000,
|
261 |
success: function( result, status, xhr ) {
|
262 |
-
|
263 |
// Adding succeeded?
|
264 |
var rtxt = result.split( '||' );
|
265 |
if ( rtxt[0] == 'OK' ) {
|
@@ -268,7 +268,7 @@ function wppaAjaxAddPhotoToZip( mocc, id, reload ) {
|
|
268 |
else {
|
269 |
alert( result );
|
270 |
}
|
271 |
-
|
272 |
// Reload
|
273 |
if ( reload ) {
|
274 |
document.location.reload( true );
|
@@ -282,18 +282,18 @@ function wppaAjaxAddPhotoToZip( mocc, id, reload ) {
|
|
282 |
|
283 |
// Remove admins choice zipfile
|
284 |
function wppaAjaxDeleteMyZip() {
|
285 |
-
|
286 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
287 |
data: 'action=wppa' +
|
288 |
'&wppa-action=delmyzip',
|
289 |
async: true,
|
290 |
type: 'GET',
|
291 |
timeout: 60000,
|
292 |
success: function( result, status, xhr ) {
|
293 |
-
|
294 |
// Reload
|
295 |
document.location.reload( true );
|
296 |
-
|
297 |
},
|
298 |
error: function( xhr, status, error ) {
|
299 |
wppaConsoleLog( 'wppaAjaxDeleteMyZip failed. Error = ' + error + ', status = ' + status, 'force' );
|
@@ -304,7 +304,7 @@ function wppaAjaxDeleteMyZip() {
|
|
304 |
// Frontend Edit Photo
|
305 |
function wppaEditPhoto( mocc, xid ) {
|
306 |
|
307 |
-
var id = String(xid);
|
308 |
var name = 'Edit Photo '+id;
|
309 |
var desc = '';
|
310 |
var width = wppaEditPhotoWidth; //960;
|
@@ -317,7 +317,7 @@ function wppaEditPhoto( mocc, xid ) {
|
|
317 |
jQuery.ajax( { url: wppaAjaxUrl,
|
318 |
data: 'action=wppa' +
|
319 |
'&wppa-action=front-edit' +
|
320 |
-
'&photo-id=' + id +
|
321 |
'&moccur=' + mocc,
|
322 |
async: true,
|
323 |
type: 'POST',
|
@@ -325,7 +325,7 @@ function wppaEditPhoto( mocc, xid ) {
|
|
325 |
beforeSend: function( xhr ) {
|
326 |
wnd.document.write( '<! DOCTYPE html>' );
|
327 |
wnd.document.write( '<html>' );
|
328 |
-
wnd.document.write( '<head>' );
|
329 |
// The following is one statement that fixes a bug in opera
|
330 |
var myHead = '<meta name="viewport" content="width=320" >' +
|
331 |
'<link rel="stylesheet" id="wppa_style-css" href="'+wppaWppaUrl+'/wppa-admin-styles.css?ver='+wppaVersion+'" type="text/css" media="all" />'+
|
@@ -340,7 +340,7 @@ function wppaEditPhoto( mocc, xid ) {
|
|
340 |
wnd.document.write( myHead );
|
341 |
wnd.document.write( '</head>' );
|
342 |
wnd.document.write( '<body>' ); // onunload="window.opener.location.reload()">' ); // This does not work in Opera
|
343 |
-
|
344 |
},
|
345 |
success: function( result, status, xhr ) {
|
346 |
wnd.document.write( result );
|
@@ -350,7 +350,7 @@ function wppaEditPhoto( mocc, xid ) {
|
|
350 |
wppaConsoleLog( 'wppaEditPhoto failed. Error = ' + error + ', status = ' + status, 'force' );
|
351 |
},
|
352 |
complete: function( xhr, status, newurl ) {
|
353 |
-
// wnd.document.write( '<script>wppaPhotoStatusChange( "'+id+'" )</script>' );
|
354 |
wnd.document.write( '</body>' );
|
355 |
wnd.document.write( '</html>' );
|
356 |
}
|
@@ -376,20 +376,20 @@ function wppaPrevTags( tagsSel, tagsEdit, tagsAlbum, tagsPrev ) {
|
|
376 |
}
|
377 |
i++;
|
378 |
}
|
379 |
-
|
380 |
// Add edit field if not empty
|
381 |
editTag = jQuery( '#'+tagsEdit ).val();
|
382 |
if ( editTag != '' ) {
|
383 |
selArr[j] = editTag;
|
384 |
}
|
385 |
-
|
386 |
// Prelim result
|
387 |
tags = selArr.join();
|
388 |
-
|
389 |
// Sanitize if edit field is not empty or album known and put result in preview field
|
390 |
if ( editTag != '' || tagsAlbum != '' ) {
|
391 |
|
392 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
393 |
data: 'action=wppa' +
|
394 |
'&wppa-action=sanitizetags' +
|
395 |
'&tags=' + tags +
|
@@ -416,12 +416,12 @@ function wppaAjaxDestroyAlbum( album, nonce ) {
|
|
416 |
|
417 |
// Are you sure?
|
418 |
if ( confirm('Are you sure you want to delete this album?') ) {
|
419 |
-
|
420 |
jQuery.ajax( { url: wppaAjaxUrl,
|
421 |
data: 'action=wppa' +
|
422 |
'&wppa-action=destroyalbum' +
|
423 |
'&album=' + album +
|
424 |
-
'&nonce=' + nonce,
|
425 |
async: true,
|
426 |
type: 'GET',
|
427 |
timeout: 60000,
|
@@ -442,11 +442,11 @@ function _bumpViewCount( photo ) {
|
|
442 |
|
443 |
// Feature enabled?
|
444 |
if ( ! wppaBumpViewCount ) return;
|
445 |
-
|
446 |
// Already bumped?
|
447 |
if ( wppaPhotoView[photo] ) return;
|
448 |
|
449 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
450 |
data: 'action=wppa' +
|
451 |
'&wppa-action=bumpviewcount' +
|
452 |
'&wppa-photo=' + photo +
|
@@ -455,7 +455,7 @@ function _bumpViewCount( photo ) {
|
|
455 |
type: 'GET',
|
456 |
timeout: 60000,
|
457 |
success: function( result, status, xhr ) {
|
458 |
-
wppaPhotoView[photo] = true;
|
459 |
},
|
460 |
error: function( xhr, status, error ) {
|
461 |
wppaConsoleLog( '_bumpViewCount failed. Error = ' + error + ', status = ' + status, 'force' );
|
@@ -466,12 +466,12 @@ function _bumpViewCount( photo ) {
|
|
466 |
// Vote a thumbnail
|
467 |
function wppaVoteThumb( mocc, photo ) {
|
468 |
|
469 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
470 |
data: 'action=wppa' +
|
471 |
'&wppa-action=rate' +
|
472 |
'&wppa-rating=1' +
|
473 |
'&wppa-rating-id=' + photo +
|
474 |
-
'&wppa-occur=' + mocc +
|
475 |
'&wppa-nonce=' + jQuery( '#wppa-nonce' ).val(),
|
476 |
async: true,
|
477 |
type: 'GET',
|
@@ -490,42 +490,42 @@ function _wppaRateIt( mocc, value ) {
|
|
490 |
|
491 |
// No value, no vote
|
492 |
if ( value == 0 ) return;
|
493 |
-
|
494 |
-
// Do not rate a running show
|
495 |
if ( _wppaSSRuns[mocc] ) return;
|
496 |
-
|
497 |
// Init vars
|
498 |
-
var photo = _wppaId[mocc][_wppaCurIdx[mocc]];
|
499 |
var oldval = _wppaMyr[mocc][_wppaCurIdx[mocc]];
|
500 |
-
|
501 |
// Already rated, and once allowed only?
|
502 |
-
if ( oldval != 0 && wppaRatingOnce ) return;
|
|
|
|
|
|
|
503 |
|
504 |
-
// Disliked aleady?
|
505 |
-
if ( oldval < 0 ) return;
|
506 |
-
|
507 |
// Set Vote in progress flag
|
508 |
-
_wppaVoteInProgress = true;
|
509 |
|
510 |
// Do the voting
|
511 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
512 |
data: 'action=wppa' +
|
513 |
'&wppa-action=rate' +
|
514 |
'&wppa-rating=' + value +
|
515 |
'&wppa-rating-id=' + photo +
|
516 |
-
'&wppa-occur=' + mocc +
|
517 |
'&wppa-index=' + _wppaCurIdx[mocc] +
|
518 |
'&wppa-nonce=' + jQuery( '#wppa-nonce' ).val(),
|
519 |
async: true,
|
520 |
type: 'GET',
|
521 |
timeout: 60000,
|
522 |
beforeSend: function( xhr ) {
|
523 |
-
|
524 |
// Set icon
|
525 |
jQuery( '#wppa-rate-'+mocc+'-'+value ).attr( 'src', wppaImageDirectory+'tick.png' );
|
526 |
-
|
527 |
// Fade in fully
|
528 |
-
jQuery( '#wppa-rate-'+mocc+'-'+value ).stop().fadeTo( 100, 1.0 );
|
529 |
},
|
530 |
success: function( result, status, xhr ) {
|
531 |
|
@@ -541,25 +541,25 @@ function _wppaRateIt( mocc, value ) {
|
|
541 |
alert( 'Error Code='+ArrValues[1]+'\n\n'+ArrValues[2] );
|
542 |
}
|
543 |
}
|
544 |
-
|
545 |
// No rating error
|
546 |
else {
|
547 |
-
|
548 |
// Store new values
|
549 |
_wppaMyr[ArrValues[0]][ArrValues[2]] = ArrValues[3];
|
550 |
_wppaAvg[ArrValues[0]][ArrValues[2]] = ArrValues[4];
|
551 |
_wppaDisc[ArrValues[0]][ArrValues[2]] = ArrValues[5];
|
552 |
-
|
553 |
// Update display
|
554 |
_wppaSetRatingDisplay( mocc );
|
555 |
-
|
556 |
// If commenting required and not done so far...
|
557 |
if ( wppaCommentRequiredAfterVote ) {
|
558 |
if ( ArrValues[6] == 0 ) {
|
559 |
alert( ArrValues[7] );
|
560 |
}
|
561 |
}
|
562 |
-
|
563 |
// Shift to next slide?
|
564 |
if ( wppaNextOnCallback ) _wppaNextOnCallback( mocc );
|
565 |
}
|
@@ -572,8 +572,8 @@ function _wppaRateIt( mocc, value ) {
|
|
572 |
|
573 |
// Download a photo having its original name as filename
|
574 |
function wppaAjaxMakeOrigName( mocc, photo ) {
|
575 |
-
|
576 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
577 |
data: 'action=wppa' +
|
578 |
'&wppa-action=makeorigname' +
|
579 |
'&photo-id=' + photo +
|
@@ -582,36 +582,36 @@ function wppaAjaxMakeOrigName( mocc, photo ) {
|
|
582 |
type: 'GET',
|
583 |
timeout: 60000,
|
584 |
beforeSend: function( xhr ) {
|
585 |
-
|
586 |
},
|
587 |
success: function( result, status, xhr ) {
|
588 |
|
589 |
var ArrValues = result.split( "||" );
|
590 |
if ( ArrValues[1] == '0' ) { // Ok, no error
|
591 |
-
|
592 |
// Publish result
|
593 |
if ( wppaArtMonkyLink == 'file' ) window.open( ArrValues[2] );
|
594 |
if ( wppaArtMonkyLink == 'zip' ) document.location = ArrValues[2];
|
595 |
}
|
596 |
else {
|
597 |
-
|
598 |
// Show error
|
599 |
alert( 'Error: '+ArrValues[1]+'\n\n'+ArrValues[2] );
|
600 |
-
}
|
601 |
},
|
602 |
error: function( xhr, status, error ) {
|
603 |
wppaConsoleLog( 'wppaAjaxMakeOrigName failed. Error = ' + error + ', status = ' + status, 'force' );
|
604 |
},
|
605 |
complete: function( xhr, status, newurl ) {
|
606 |
-
|
607 |
}
|
608 |
} );
|
609 |
}
|
610 |
|
611 |
// Download an album
|
612 |
function wppaAjaxDownloadAlbum( mocc, id ) {
|
613 |
-
|
614 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
615 |
data: 'action=wppa' +
|
616 |
'&wppa-action=downloadalbum' +
|
617 |
'&album-id=' + id,
|
@@ -619,7 +619,7 @@ function wppaAjaxDownloadAlbum( mocc, id ) {
|
|
619 |
type: 'GET',
|
620 |
timeout: 60000,
|
621 |
beforeSend: function( xhr ) {
|
622 |
-
|
623 |
// Show spinner
|
624 |
jQuery( '#dwnspin-'+mocc+'-'+id ).css( 'display', '' );
|
625 |
},
|
@@ -630,13 +630,13 @@ function wppaAjaxDownloadAlbum( mocc, id ) {
|
|
630 |
var url = ArrValues[0];
|
631 |
var erok = ArrValues[1];
|
632 |
var text = ArrValues[2];
|
633 |
-
|
634 |
if ( ArrValues.length == 3 && text != '' ) alert( 'Attention:\n\n'+text );
|
635 |
|
636 |
if ( erok == 'OK' ) {
|
637 |
document.location = url;
|
638 |
}
|
639 |
-
|
640 |
else { // See if a ( partial ) zipfile has been created
|
641 |
alert( 'The server could not complete the request.\nPlease try again.' );
|
642 |
}
|
@@ -646,7 +646,7 @@ function wppaAjaxDownloadAlbum( mocc, id ) {
|
|
646 |
alert( 'An error occurred:\n'+error+'\nPlease try again' );
|
647 |
},
|
648 |
complete: function( xhr, status, newurl ) {
|
649 |
-
|
650 |
// Hide spinner
|
651 |
jQuery( '#dwnspin-'+mocc+'-'+id ).css( 'display', 'none' );
|
652 |
}
|
@@ -677,16 +677,16 @@ function wppaAjaxComment( mocc, id ) {
|
|
677 |
if ( typeof ( jQuery( "#wppa-returnurl-"+mocc ).val() ) != 'undefined' ) {
|
678 |
data += '&returnurl='+encodeURIComponent(jQuery( "#wppa-returnurl-"+mocc ).val());
|
679 |
}
|
680 |
-
|
681 |
// Do the ajax commit
|
682 |
-
jQuery.ajax( { url: wppaAjaxUrl,
|
683 |
data: data,//'action=wppa' +
|
684 |
// '&wppa-action=',
|
685 |
async: true,
|
686 |
type: 'POST',
|
687 |
timeout: 60000,
|
688 |
beforeSend: function( xhr ) {
|
689 |
-
|
690 |
// Show spinner
|
691 |
jQuery( "#wppa-comment-spin-"+mocc ).css( 'display', 'inline' );
|
692 |
},
|
@@ -700,7 +700,7 @@ function wppaAjaxComment( mocc, id ) {
|
|
700 |
wppaConsoleLog( 'wppaAjaxComment failed. Error = ' + error + ', status = ' + status, 'force' );
|
701 |
},
|
702 |
complete: function( xhr, status, newurl ) {
|
703 |
-
|
704 |
// Hide spinner
|
705 |
jQuery( "#wppa-comment-spin-"+mocc ).css( 'display', 'none' );
|
706 |
}
|
2 |
//
|
3 |
// Contains frontend ajax modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
+
//
|
6 |
+
var wppaJsAjaxVersion = '6.4.18';
|
7 |
|
8 |
var wppaRenderAdd = false;
|
9 |
var wppaWaitForCounter = 0;
|
23 |
if ( wppaAutoColumnWidth[mocc] ) ajaxurl += '&resp=1';
|
24 |
|
25 |
// Ajax possible ?
|
26 |
+
if ( wppaCanAjaxRender ) {
|
27 |
|
28 |
+
jQuery.ajax( { url: ajaxurl,
|
29 |
async: true,
|
30 |
type: 'GET',
|
31 |
timeout: 60000,
|
32 |
beforeSend: function( xhr ) {
|
33 |
+
|
34 |
// If it is a slideshow: Stop slideshow before pushing it on the stack
|
35 |
if ( _wppaSSRuns[mocc] ) _wppaStop( mocc );
|
36 |
|
46 |
else {
|
47 |
jQuery( '#wppa-container-'+mocc ).html( result );
|
48 |
}
|
49 |
+
|
50 |
// Push the stack
|
51 |
if ( wppaCanPushState && wppaUpdateAddressLine ) {
|
52 |
wppaHis++;
|
54 |
try {
|
55 |
history.pushState( {page: wppaHis, occur: mocc, type: 'html', html: result}, "", newurl );
|
56 |
wppaConsoleLog( 'Ajax rendering: History stack pushed', 'force' );
|
57 |
+
|
58 |
}
|
59 |
catch( err ) {
|
60 |
try {
|
65 |
wppaConsoleLog( 'Ajax rendering: History stack update failed', 'force' );
|
66 |
}
|
67 |
}
|
68 |
+
|
69 |
if ( wppaFirstOccur == 0 ) wppaFirstOccur = mocc;
|
70 |
}
|
71 |
+
|
72 |
+
// If lightbox is on board, refresh the imagelist. It has just changed, you know!
|
73 |
wppaUpdateLightboxes();
|
74 |
+
|
75 |
// Update qrcode
|
76 |
if ( typeof( wppaQRUpdate ) != 'undefined' ) wppaQRUpdate( newurl );
|
77 |
|
78 |
+
// Run Autocol?
|
79 |
+
wppaColWidth[mocc] = 0;
|
80 |
_wppaDoAutocol( mocc );
|
81 |
+
|
82 |
// If it is a slideshow: Update 'Faster' and 'Slower' to the desired language.
|
83 |
// The ajax stuff may get the admin language while we need the frontend language
|
84 |
jQuery( '#speed0-'+mocc ).html( wppaSlower );
|
85 |
jQuery( '#speed1-'+mocc ).html( wppaFaster );
|
86 |
+
|
87 |
// Remove spinner
|
88 |
jQuery( '#wppa-ajax-spin-'+mocc ).css( 'display', 'none' );
|
89 |
+
|
90 |
// Report if scripts
|
91 |
var scriptPos = result.indexOf( '<script' );
|
92 |
var scriptPosLast = result.lastIndexOf( '<script' );
|
95 |
}
|
96 |
else {
|
97 |
wppaConsoleLog( 'Ajax render did contain a script tag at position '+scriptPos+' last at '+scriptPosLast, 'force' );
|
98 |
+
}
|
99 |
},
|
100 |
error: function( xhr, status, error ) {
|
101 |
wppaConsoleLog( 'wppaDoAjaxRender failed. Error = ' + error + ', status = ' + status, 'force' );
|
102 |
+
|
103 |
// Do it by reload
|
104 |
document.location.href = newurl;
|
105 |
|
106 |
+
// Run Autocol?
|
107 |
wppaColWidth[mocc] = 0; // force a recalc and triggers autocol if needed
|
108 |
_wppaDoAutocol( mocc );
|
109 |
},
|
110 |
complete: function( xhr, status, newurl ) {
|
111 |
wppaWaitForCounter++;
|
112 |
+
jQuery('html, body').animate({ scrollTop: jQuery("#wppa-container-"+mocc).offset().top - 32 - wppaStickyHeaderHeight }, 1000);
|
113 |
}
|
114 |
+
} );
|
115 |
}
|
116 |
+
|
117 |
// Ajax NOT possible
|
118 |
else {
|
119 |
document.location.href = newurl;
|
120 |
|
121 |
+
// Run Autocol?
|
122 |
wppaColWidth[mocc] = 0; // force a recalc and triggers autocol if needed
|
123 |
_wppaDoAutocol( mocc );
|
124 |
}
|
127 |
// Set photo status to 'publish'
|
128 |
function wppaAjaxApprovePhoto( photo ) {
|
129 |
|
130 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
131 |
data: 'action=wppa' +
|
132 |
'&wppa-action=approve' +
|
133 |
'&photo-id=' + photo,
|
151 |
// Remove photo
|
152 |
function wppaAjaxRemovePhoto( mocc, photo, isslide ) {
|
153 |
|
154 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
155 |
data: 'action=wppa' +
|
156 |
'&wppa-action=remove' +
|
157 |
'&photo-id=' + photo,
|
159 |
type: 'GET',
|
160 |
timeout: 60000,
|
161 |
success: function( result, status, xhr ) {
|
162 |
+
|
163 |
// Remove succeeded?
|
164 |
rtxt = result.split( '||' );
|
165 |
if ( rtxt[0] == 'OK' ) {
|
166 |
+
|
167 |
// Slide?
|
168 |
if ( isslide ) {
|
169 |
jQuery( '#wppa-film-'+_wppaCurIdx[mocc]+'-'+mocc ).attr( 'src', '' );
|
172 |
jQuery( '#wppa-pre-'+_wppaCurIdx[mocc]+'-'+mocc ).attr( 'alt', 'removed' );
|
173 |
wppaNext( mocc );
|
174 |
}
|
175 |
+
|
176 |
// Thumbnail
|
177 |
else {
|
178 |
jQuery( '.wppa-approve-'+photo ).css( 'display', 'none' );
|
179 |
jQuery( '.thumbnail-frame-photo-'+photo ).css( 'display', 'none' );
|
180 |
}
|
181 |
}
|
182 |
+
|
183 |
// Remove failed
|
184 |
else {
|
185 |
alert( result );
|
194 |
// Set comment status to 'pblish'
|
195 |
function wppaAjaxApproveComment( comment ) {
|
196 |
|
197 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
198 |
data: 'action=wppa' +
|
199 |
'&wppa-action=approve' +
|
200 |
'&comment-id=' + comment,
|
202 |
type: 'GET',
|
203 |
timeout: 60000,
|
204 |
success: function( result, status, xhr ) {
|
205 |
+
|
206 |
// Approve succeeded?
|
207 |
if ( result == 'OK' ) {
|
208 |
jQuery( '.wppa-approve-'+comment ).css( 'display', 'none' );
|
209 |
}
|
210 |
+
|
211 |
// Approve failed
|
212 |
else {
|
213 |
alert( result );
|
217 |
wppaConsoleLog( 'wppaAjaxApproveComment failed. Error = ' + error + ', status = ' + status, 'force' );
|
218 |
}
|
219 |
} );
|
220 |
+
|
221 |
}
|
222 |
|
223 |
// Remove comment
|
224 |
function wppaAjaxRemoveComment( comment ) {
|
225 |
|
226 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
227 |
data: 'action=wppa' +
|
228 |
'&wppa-action=remove' +
|
229 |
'&comment-id=' + comment,
|
231 |
type: 'GET',
|
232 |
timeout: 60000,
|
233 |
success: function( result, status, xhr ) {
|
234 |
+
|
235 |
// Remove succeeded?
|
236 |
var rtxt = result.split( '||' );
|
237 |
if ( rtxt[0] == 'OK' ) {
|
251 |
// Add photo to zip
|
252 |
function wppaAjaxAddPhotoToZip( mocc, id, reload ) {
|
253 |
|
254 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
255 |
data: 'action=wppa' +
|
256 |
'&wppa-action=addtozip' +
|
257 |
'&photo-id=' + id,
|
259 |
type: 'GET',
|
260 |
timeout: 60000,
|
261 |
success: function( result, status, xhr ) {
|
262 |
+
|
263 |
// Adding succeeded?
|
264 |
var rtxt = result.split( '||' );
|
265 |
if ( rtxt[0] == 'OK' ) {
|
268 |
else {
|
269 |
alert( result );
|
270 |
}
|
271 |
+
|
272 |
// Reload
|
273 |
if ( reload ) {
|
274 |
document.location.reload( true );
|
282 |
|
283 |
// Remove admins choice zipfile
|
284 |
function wppaAjaxDeleteMyZip() {
|
285 |
+
|
286 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
287 |
data: 'action=wppa' +
|
288 |
'&wppa-action=delmyzip',
|
289 |
async: true,
|
290 |
type: 'GET',
|
291 |
timeout: 60000,
|
292 |
success: function( result, status, xhr ) {
|
293 |
+
|
294 |
// Reload
|
295 |
document.location.reload( true );
|
296 |
+
|
297 |
},
|
298 |
error: function( xhr, status, error ) {
|
299 |
wppaConsoleLog( 'wppaAjaxDeleteMyZip failed. Error = ' + error + ', status = ' + status, 'force' );
|
304 |
// Frontend Edit Photo
|
305 |
function wppaEditPhoto( mocc, xid ) {
|
306 |
|
307 |
+
var id = String(xid);
|
308 |
var name = 'Edit Photo '+id;
|
309 |
var desc = '';
|
310 |
var width = wppaEditPhotoWidth; //960;
|
317 |
jQuery.ajax( { url: wppaAjaxUrl,
|
318 |
data: 'action=wppa' +
|
319 |
'&wppa-action=front-edit' +
|
320 |
+
'&photo-id=' + id +
|
321 |
'&moccur=' + mocc,
|
322 |
async: true,
|
323 |
type: 'POST',
|
325 |
beforeSend: function( xhr ) {
|
326 |
wnd.document.write( '<! DOCTYPE html>' );
|
327 |
wnd.document.write( '<html>' );
|
328 |
+
wnd.document.write( '<head>' );
|
329 |
// The following is one statement that fixes a bug in opera
|
330 |
var myHead = '<meta name="viewport" content="width=320" >' +
|
331 |
'<link rel="stylesheet" id="wppa_style-css" href="'+wppaWppaUrl+'/wppa-admin-styles.css?ver='+wppaVersion+'" type="text/css" media="all" />'+
|
340 |
wnd.document.write( myHead );
|
341 |
wnd.document.write( '</head>' );
|
342 |
wnd.document.write( '<body>' ); // onunload="window.opener.location.reload()">' ); // This does not work in Opera
|
343 |
+
|
344 |
},
|
345 |
success: function( result, status, xhr ) {
|
346 |
wnd.document.write( result );
|
350 |
wppaConsoleLog( 'wppaEditPhoto failed. Error = ' + error + ', status = ' + status, 'force' );
|
351 |
},
|
352 |
complete: function( xhr, status, newurl ) {
|
353 |
+
// wnd.document.write( '<script>wppaPhotoStatusChange( "'+id+'" )</script>' );
|
354 |
wnd.document.write( '</body>' );
|
355 |
wnd.document.write( '</html>' );
|
356 |
}
|
376 |
}
|
377 |
i++;
|
378 |
}
|
379 |
+
|
380 |
// Add edit field if not empty
|
381 |
editTag = jQuery( '#'+tagsEdit ).val();
|
382 |
if ( editTag != '' ) {
|
383 |
selArr[j] = editTag;
|
384 |
}
|
385 |
+
|
386 |
// Prelim result
|
387 |
tags = selArr.join();
|
388 |
+
|
389 |
// Sanitize if edit field is not empty or album known and put result in preview field
|
390 |
if ( editTag != '' || tagsAlbum != '' ) {
|
391 |
|
392 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
393 |
data: 'action=wppa' +
|
394 |
'&wppa-action=sanitizetags' +
|
395 |
'&tags=' + tags +
|
416 |
|
417 |
// Are you sure?
|
418 |
if ( confirm('Are you sure you want to delete this album?') ) {
|
419 |
+
|
420 |
jQuery.ajax( { url: wppaAjaxUrl,
|
421 |
data: 'action=wppa' +
|
422 |
'&wppa-action=destroyalbum' +
|
423 |
'&album=' + album +
|
424 |
+
'&nonce=' + nonce,
|
425 |
async: true,
|
426 |
type: 'GET',
|
427 |
timeout: 60000,
|
442 |
|
443 |
// Feature enabled?
|
444 |
if ( ! wppaBumpViewCount ) return;
|
445 |
+
|
446 |
// Already bumped?
|
447 |
if ( wppaPhotoView[photo] ) return;
|
448 |
|
449 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
450 |
data: 'action=wppa' +
|
451 |
'&wppa-action=bumpviewcount' +
|
452 |
'&wppa-photo=' + photo +
|
455 |
type: 'GET',
|
456 |
timeout: 60000,
|
457 |
success: function( result, status, xhr ) {
|
458 |
+
wppaPhotoView[photo] = true;
|
459 |
},
|
460 |
error: function( xhr, status, error ) {
|
461 |
wppaConsoleLog( '_bumpViewCount failed. Error = ' + error + ', status = ' + status, 'force' );
|
466 |
// Vote a thumbnail
|
467 |
function wppaVoteThumb( mocc, photo ) {
|
468 |
|
469 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
470 |
data: 'action=wppa' +
|
471 |
'&wppa-action=rate' +
|
472 |
'&wppa-rating=1' +
|
473 |
'&wppa-rating-id=' + photo +
|
474 |
+
'&wppa-occur=' + mocc +
|
475 |
'&wppa-nonce=' + jQuery( '#wppa-nonce' ).val(),
|
476 |
async: true,
|
477 |
type: 'GET',
|
490 |
|
491 |
// No value, no vote
|
492 |
if ( value == 0 ) return;
|
493 |
+
|
494 |
+
// Do not rate a running show
|
495 |
if ( _wppaSSRuns[mocc] ) return;
|
496 |
+
|
497 |
// Init vars
|
498 |
+
var photo = _wppaId[mocc][_wppaCurIdx[mocc]];
|
499 |
var oldval = _wppaMyr[mocc][_wppaCurIdx[mocc]];
|
500 |
+
|
501 |
// Already rated, and once allowed only?
|
502 |
+
if ( oldval != 0 && wppaRatingOnce ) return;
|
503 |
+
|
504 |
+
// Disliked aleady?
|
505 |
+
if ( oldval < 0 ) return;
|
506 |
|
|
|
|
|
|
|
507 |
// Set Vote in progress flag
|
508 |
+
_wppaVoteInProgress = true;
|
509 |
|
510 |
// Do the voting
|
511 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
512 |
data: 'action=wppa' +
|
513 |
'&wppa-action=rate' +
|
514 |
'&wppa-rating=' + value +
|
515 |
'&wppa-rating-id=' + photo +
|
516 |
+
'&wppa-occur=' + mocc +
|
517 |
'&wppa-index=' + _wppaCurIdx[mocc] +
|
518 |
'&wppa-nonce=' + jQuery( '#wppa-nonce' ).val(),
|
519 |
async: true,
|
520 |
type: 'GET',
|
521 |
timeout: 60000,
|
522 |
beforeSend: function( xhr ) {
|
523 |
+
|
524 |
// Set icon
|
525 |
jQuery( '#wppa-rate-'+mocc+'-'+value ).attr( 'src', wppaImageDirectory+'tick.png' );
|
526 |
+
|
527 |
// Fade in fully
|
528 |
+
jQuery( '#wppa-rate-'+mocc+'-'+value ).stop().fadeTo( 100, 1.0 );
|
529 |
},
|
530 |
success: function( result, status, xhr ) {
|
531 |
|
541 |
alert( 'Error Code='+ArrValues[1]+'\n\n'+ArrValues[2] );
|
542 |
}
|
543 |
}
|
544 |
+
|
545 |
// No rating error
|
546 |
else {
|
547 |
+
|
548 |
// Store new values
|
549 |
_wppaMyr[ArrValues[0]][ArrValues[2]] = ArrValues[3];
|
550 |
_wppaAvg[ArrValues[0]][ArrValues[2]] = ArrValues[4];
|
551 |
_wppaDisc[ArrValues[0]][ArrValues[2]] = ArrValues[5];
|
552 |
+
|
553 |
// Update display
|
554 |
_wppaSetRatingDisplay( mocc );
|
555 |
+
|
556 |
// If commenting required and not done so far...
|
557 |
if ( wppaCommentRequiredAfterVote ) {
|
558 |
if ( ArrValues[6] == 0 ) {
|
559 |
alert( ArrValues[7] );
|
560 |
}
|
561 |
}
|
562 |
+
|
563 |
// Shift to next slide?
|
564 |
if ( wppaNextOnCallback ) _wppaNextOnCallback( mocc );
|
565 |
}
|
572 |
|
573 |
// Download a photo having its original name as filename
|
574 |
function wppaAjaxMakeOrigName( mocc, photo ) {
|
575 |
+
|
576 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
577 |
data: 'action=wppa' +
|
578 |
'&wppa-action=makeorigname' +
|
579 |
'&photo-id=' + photo +
|
582 |
type: 'GET',
|
583 |
timeout: 60000,
|
584 |
beforeSend: function( xhr ) {
|
585 |
+
|
586 |
},
|
587 |
success: function( result, status, xhr ) {
|
588 |
|
589 |
var ArrValues = result.split( "||" );
|
590 |
if ( ArrValues[1] == '0' ) { // Ok, no error
|
591 |
+
|
592 |
// Publish result
|
593 |
if ( wppaArtMonkyLink == 'file' ) window.open( ArrValues[2] );
|
594 |
if ( wppaArtMonkyLink == 'zip' ) document.location = ArrValues[2];
|
595 |
}
|
596 |
else {
|
597 |
+
|
598 |
// Show error
|
599 |
alert( 'Error: '+ArrValues[1]+'\n\n'+ArrValues[2] );
|
600 |
+
}
|
601 |
},
|
602 |
error: function( xhr, status, error ) {
|
603 |
wppaConsoleLog( 'wppaAjaxMakeOrigName failed. Error = ' + error + ', status = ' + status, 'force' );
|
604 |
},
|
605 |
complete: function( xhr, status, newurl ) {
|
606 |
+
|
607 |
}
|
608 |
} );
|
609 |
}
|
610 |
|
611 |
// Download an album
|
612 |
function wppaAjaxDownloadAlbum( mocc, id ) {
|
613 |
+
|
614 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
615 |
data: 'action=wppa' +
|
616 |
'&wppa-action=downloadalbum' +
|
617 |
'&album-id=' + id,
|
619 |
type: 'GET',
|
620 |
timeout: 60000,
|
621 |
beforeSend: function( xhr ) {
|
622 |
+
|
623 |
// Show spinner
|
624 |
jQuery( '#dwnspin-'+mocc+'-'+id ).css( 'display', '' );
|
625 |
},
|
630 |
var url = ArrValues[0];
|
631 |
var erok = ArrValues[1];
|
632 |
var text = ArrValues[2];
|
633 |
+
|
634 |
if ( ArrValues.length == 3 && text != '' ) alert( 'Attention:\n\n'+text );
|
635 |
|
636 |
if ( erok == 'OK' ) {
|
637 |
document.location = url;
|
638 |
}
|
639 |
+
|
640 |
else { // See if a ( partial ) zipfile has been created
|
641 |
alert( 'The server could not complete the request.\nPlease try again.' );
|
642 |
}
|
646 |
alert( 'An error occurred:\n'+error+'\nPlease try again' );
|
647 |
},
|
648 |
complete: function( xhr, status, newurl ) {
|
649 |
+
|
650 |
// Hide spinner
|
651 |
jQuery( '#dwnspin-'+mocc+'-'+id ).css( 'display', 'none' );
|
652 |
}
|
677 |
if ( typeof ( jQuery( "#wppa-returnurl-"+mocc ).val() ) != 'undefined' ) {
|
678 |
data += '&returnurl='+encodeURIComponent(jQuery( "#wppa-returnurl-"+mocc ).val());
|
679 |
}
|
680 |
+
|
681 |
// Do the ajax commit
|
682 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
683 |
data: data,//'action=wppa' +
|
684 |
// '&wppa-action=',
|
685 |
async: true,
|
686 |
type: 'POST',
|
687 |
timeout: 60000,
|
688 |
beforeSend: function( xhr ) {
|
689 |
+
|
690 |
// Show spinner
|
691 |
jQuery( "#wppa-comment-spin-"+mocc ).css( 'display', 'inline' );
|
692 |
},
|
700 |
wppaConsoleLog( 'wppaAjaxComment failed. Error = ' + error + ', status = ' + status, 'force' );
|
701 |
},
|
702 |
complete: function( xhr, status, newurl ) {
|
703 |
+
|
704 |
// Hide spinner
|
705 |
jQuery( "#wppa-comment-spin-"+mocc ).css( 'display', 'none' );
|
706 |
}
|
js/wppa-ajax-front.min.js
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
//
|
3 |
// Contains frontend ajax modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
-
//
|
6 |
|
7 |
-
var wppaJsAjaxVersion='6.4.
|
8 |
wppaRenderAdd=add;if(wppaLang!='')ajaxurl+='&lang='+wppaLang;if(wppaAutoColumnWidth[mocc])ajaxurl+='&resp=1';if(wppaCanAjaxRender){jQuery.ajax({url:ajaxurl,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){if(_wppaSSRuns[mocc])_wppaStop(mocc);jQuery('#wppa-ajax-spin-'+mocc).css('display','');},success:function(result,status,xhr){if(wppaRenderAdd){jQuery(wppaRenderAdd+result).insertBefore('#wppa-container-'+mocc+'-end');}
|
9 |
else{jQuery('#wppa-container-'+mocc).html(result);}
|
10 |
if(wppaCanPushState&&wppaUpdateAddressLine){wppaHis++;try{history.pushState({page:wppaHis,occur:mocc,type:'html',html:result},"",newurl);wppaConsoleLog('Ajax rendering: History stack pushed','force');}
|
@@ -12,7 +12,7 @@ catch(err){try{history.replaceState({page:wppaHis,occur:mocc,type:'html'},"",new
|
|
12 |
catch(err){wppaConsoleLog('Ajax rendering: History stack update failed','force');}}
|
13 |
if(wppaFirstOccur==0)wppaFirstOccur=mocc;}
|
14 |
wppaUpdateLightboxes();if(typeof(wppaQRUpdate)!='undefined')wppaQRUpdate(newurl);wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);jQuery('#speed0-'+mocc).html(wppaSlower);jQuery('#speed1-'+mocc).html(wppaFaster);jQuery('#wppa-ajax-spin-'+mocc).css('display','none');var scriptPos=result.indexOf('<script');var scriptPosLast=result.lastIndexOf('<script');if(scriptPos==-1){wppaConsoleLog('Ajax render did NOT contain a script tag','force');}
|
15 |
-
else{wppaConsoleLog('Ajax render did contain a script tag at position '+scriptPos+' last at '+scriptPosLast,'force');}},error:function(xhr,status,error){wppaConsoleLog('wppaDoAjaxRender failed. Error = '+error+', status = '+status,'force');document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);},complete:function(xhr,status,newurl){wppaWaitForCounter++;jQuery('html, body').animate({scrollTop:jQuery("#wppa-container-"+mocc).offset().top-32},1000);}});}
|
16 |
else{document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}
|
17 |
function wppaAjaxApprovePhoto(photo){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=approve'+'&photo-id='+photo,async:true,type:'GET',timeout:60000,success:function(result,status,xhr){if(result=='OK'){jQuery('.wppa-approve-'+photo).css('display','none');}
|
18 |
else{alert(result);}},error:function(xhr,status,error){wppaConsoleLog('wppaAjaxApprovePhoto failed. Error = '+error+', status = '+status,'force');},});}
|
2 |
//
|
3 |
// Contains frontend ajax modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
+
//
|
6 |
|
7 |
+
var wppaJsAjaxVersion='6.4.18';var wppaRenderAdd=false;var wppaWaitForCounter=0;function wppaDoAjaxRender(mocc,ajaxurl,newurl,add,waitfor){if(parseInt(waitfor)>0&&waitfor!=wppaWaitForCounter){setTimeout('wppaDoAjaxRender( '+mocc+', \''+ajaxurl+'\', \''+newurl+'\', \''+add+'\', '+waitfor+' )',100);return;}
|
8 |
wppaRenderAdd=add;if(wppaLang!='')ajaxurl+='&lang='+wppaLang;if(wppaAutoColumnWidth[mocc])ajaxurl+='&resp=1';if(wppaCanAjaxRender){jQuery.ajax({url:ajaxurl,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){if(_wppaSSRuns[mocc])_wppaStop(mocc);jQuery('#wppa-ajax-spin-'+mocc).css('display','');},success:function(result,status,xhr){if(wppaRenderAdd){jQuery(wppaRenderAdd+result).insertBefore('#wppa-container-'+mocc+'-end');}
|
9 |
else{jQuery('#wppa-container-'+mocc).html(result);}
|
10 |
if(wppaCanPushState&&wppaUpdateAddressLine){wppaHis++;try{history.pushState({page:wppaHis,occur:mocc,type:'html',html:result},"",newurl);wppaConsoleLog('Ajax rendering: History stack pushed','force');}
|
12 |
catch(err){wppaConsoleLog('Ajax rendering: History stack update failed','force');}}
|
13 |
if(wppaFirstOccur==0)wppaFirstOccur=mocc;}
|
14 |
wppaUpdateLightboxes();if(typeof(wppaQRUpdate)!='undefined')wppaQRUpdate(newurl);wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);jQuery('#speed0-'+mocc).html(wppaSlower);jQuery('#speed1-'+mocc).html(wppaFaster);jQuery('#wppa-ajax-spin-'+mocc).css('display','none');var scriptPos=result.indexOf('<script');var scriptPosLast=result.lastIndexOf('<script');if(scriptPos==-1){wppaConsoleLog('Ajax render did NOT contain a script tag','force');}
|
15 |
+
else{wppaConsoleLog('Ajax render did contain a script tag at position '+scriptPos+' last at '+scriptPosLast,'force');}},error:function(xhr,status,error){wppaConsoleLog('wppaDoAjaxRender failed. Error = '+error+', status = '+status,'force');document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);},complete:function(xhr,status,newurl){wppaWaitForCounter++;jQuery('html, body').animate({scrollTop:jQuery("#wppa-container-"+mocc).offset().top-32-wppaStickyHeaderHeight},1000);}});}
|
16 |
else{document.location.href=newurl;wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}
|
17 |
function wppaAjaxApprovePhoto(photo){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=approve'+'&photo-id='+photo,async:true,type:'GET',timeout:60000,success:function(result,status,xhr){if(result=='OK'){jQuery('.wppa-approve-'+photo).css('display','none');}
|
18 |
else{alert(result);}},error:function(xhr,status,error){wppaConsoleLog('wppaAjaxApprovePhoto failed. Error = '+error+', status = '+status,'force');},});}
|
js/wppa-lightbox.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// Conatins lightbox modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
-
var wppaLightboxVersion = '6.4.
|
7 |
|
8 |
// Global inits
|
9 |
var wppaNormsBtnOpac = 1;
|
@@ -295,7 +295,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
295 |
|
296 |
// Globalize indesx
|
297 |
wppaOvlCurIdx = idx;
|
298 |
-
|
299 |
// Show spinner
|
300 |
jQuery( '#wppa-overlay-sp' ).css( { visibility: 'visible' } );
|
301 |
|
@@ -440,7 +440,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
440 |
' alt="' + wppaToggleFullScreen + '"' +
|
441 |
' style="height:32px;z-index:100092;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+'"' +
|
442 |
' onclick="wppaOvlNorm()"' +
|
443 |
-
' ontouchstart="wppaOvlNorm()"' +
|
444 |
' onmouseover="jQuery(this).fadeTo(600,1);"' +
|
445 |
' onmouseout="jQuery(this).fadeTo(600,0);wppaNormsBtnOpac=0;"' +
|
446 |
' >';
|
@@ -599,7 +599,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
599 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
600 |
'"' +
|
601 |
' onclick="wppaOvlHide()"' +
|
602 |
-
' ontouchend="wppaOvlHide()"' +
|
603 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
604 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
605 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
@@ -628,7 +628,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
628 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
629 |
'"' +
|
630 |
' onclick="wppaOvlStartStop()"' +
|
631 |
-
' ontouchend="wppaOvlStartStop()"' +
|
632 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
633 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
634 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
@@ -656,7 +656,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
656 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
657 |
'"' +
|
658 |
' onclick="wppaOvlShowPrev()"' +
|
659 |
-
' ontouchend="wppaOvlShowPrev()"' +
|
660 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
661 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
662 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
@@ -680,7 +680,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
680 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
681 |
'"' +
|
682 |
' onclick="wppaOvlShowNext()"' +
|
683 |
-
' ontouchend="wppaOvlShowNext()"' +
|
684 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
685 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
686 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
@@ -833,7 +833,7 @@ wppaConsoleLog( 'wppaOvlSize' );
|
|
833 |
}
|
834 |
|
835 |
wid = parseInt(wid);
|
836 |
-
|
837 |
wppaSavedImageWidth = wid;
|
838 |
wppaSavedImageHeight = wid * nh / nw;
|
839 |
wppaSavedMarginLeft = - ( wid / 2 + wppaOvlBorderWidth );
|
3 |
// Conatins lightbox modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
+
var wppaLightboxVersion = '6.4.18';
|
7 |
|
8 |
// Global inits
|
9 |
var wppaNormsBtnOpac = 1;
|
295 |
|
296 |
// Globalize indesx
|
297 |
wppaOvlCurIdx = idx;
|
298 |
+
|
299 |
// Show spinner
|
300 |
jQuery( '#wppa-overlay-sp' ).css( { visibility: 'visible' } );
|
301 |
|
440 |
' alt="' + wppaToggleFullScreen + '"' +
|
441 |
' style="height:32px;z-index:100092;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+'"' +
|
442 |
' onclick="wppaOvlNorm()"' +
|
443 |
+
// ' ontouchstart="wppaOvlNorm()"' +
|
444 |
' onmouseover="jQuery(this).fadeTo(600,1);"' +
|
445 |
' onmouseout="jQuery(this).fadeTo(600,0);wppaNormsBtnOpac=0;"' +
|
446 |
' >';
|
599 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
600 |
'"' +
|
601 |
' onclick="wppaOvlHide()"' +
|
602 |
+
// ' ontouchend="wppaOvlHide()"' +
|
603 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
604 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
605 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
628 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
629 |
'"' +
|
630 |
' onclick="wppaOvlStartStop()"' +
|
631 |
+
// ' ontouchend="wppaOvlStartStop()"' +
|
632 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
633 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
634 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
656 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
657 |
'"' +
|
658 |
' onclick="wppaOvlShowPrev()"' +
|
659 |
+
// ' ontouchend="wppaOvlShowPrev()"' +
|
660 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
661 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
662 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
680 |
( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
|
681 |
'"' +
|
682 |
' onclick="wppaOvlShowNext()"' +
|
683 |
+
// ' ontouchend="wppaOvlShowNext()"' +
|
684 |
' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
|
685 |
' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
|
686 |
' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
|
833 |
}
|
834 |
|
835 |
wid = parseInt(wid);
|
836 |
+
|
837 |
wppaSavedImageWidth = wid;
|
838 |
wppaSavedImageHeight = wid * nh / nw;
|
839 |
wppaSavedMarginLeft = - ( wid / 2 + wppaOvlBorderWidth );
|
js/wppa-lightbox.min.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
-
var wppaLightboxVersion='6.4.
|
8 |
var key=String.fromCharCode(keycode).toLowerCase();switch(keycode){case escapeKey:wppaStopVideo(mocc);if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
9 |
wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext();break;}
|
10 |
switch(key){case'p':wppaOvlShowPrev();break;case'n':wppaOvlShowNext();break;case's':wppaOvlStartStop();break;case'd':jQuery('#wppa-ovl-legenda-1').css('visibility','hidden');jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';break;case'f':wppaOvlFull();break;case'q':case'x':wppaStopVideo(mocc);if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
@@ -51,7 +51,7 @@ else{html='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+jQuery(wind
|
|
51 |
wppaOvlAudioHtmls[idx]+'</audio>';}
|
52 |
html+='<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';if(wppaOvlShowLegenda){html+='<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme=='black'?'#272727':'#a7a7a7')+'; color:'+(wppaOvlTheme=='black'?'#a7a7a7':'#272727')+'; visibility:'+wppaShowLegenda+';" >'+'Mode='+wppaOvlMode+'. '+(wppaOvlIsSingle?wppaOvlFullLegendaSingle:wppaOvlFullLegenda)+'</div>';}
|
53 |
html+='</div>';'</div>';}
|
54 |
-
html+='<img'+' id="wppa-norms-btn"'+' src="'+wppaImageDirectory+'norms.png"'+' alt="'+wppaToggleFullScreen+'"'+' style="height:32px;z-index:100092;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+'"'+' onclick="wppaOvlNorm()"'+'
|
55 |
wppaOvlIsVideo=wppaIsVideo;setTimeout('wppaOvlFormatFull()',10);if(wppaIsVideo||wppaHasAudio){setTimeout('wppaOvlUpdateFsId()',2000);}
|
56 |
else{wppaOvlFsPhotoId=0;}
|
57 |
wppaOvlFirst=false;return false;}
|
@@ -64,15 +64,15 @@ wppaOvlAudioHtmls[idx]+'</audio>';}
|
|
64 |
wppaOvlIsVideo=false;}
|
65 |
html+='<img'+' id="wppa-overlay-qt-img"'+' class="wppa-ovl-nav-btn"'+' src="'+wppaStopSymbolUrl+'"'+' style="'+'position:absolute;'+'z-index:100101;'+'right:'+wppaOvlBorderWidth+'px;'+'top:'+wppaOvlBorderWidth+'px;'+'box-shadow:none;'+'cursor:pointer;'+'height:'+wppaStopSymbolSize+'px;'+
|
66 |
(wppaStopSumbolBradius>0?'border-radius:'+wppaStopSumbolBradius+'px;':'')+
|
67 |
-
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlHide()"'+'
|
68 |
(wppaStartPauseSymbolBradius>0?'border-radius:'+wppaStartPauseSymbolBradius+'px;':'')+'z-index:100101;'+'position:absolute;'+'top:50%;'+'margin-top:'+(-wppaStartPauseSymbolSize/2)+'px;'+'left:50%;'+'margin-left:'+(-wppaStartPauseSymbolSize/2)+'px;'+
|
69 |
(wppaOvlIdx==-1?'visibility:hidden;':'')+'box-shadow:none;'+
|
70 |
-
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlStartStop()"'+'
|
71 |
if(!wppaOvlIsSingle){html+='<img'+' id="wppa-ovl-prev-btn"'+' class="wppa-ovl-nav-btn"'+' src="'+wppaImageDirectory+'prev-'+wppaOvlTheme+'.gif"'+' style="'+'position:absolute;'+'z-index:100101;'+'width:'+wppaLeftRightSymbolSize+'px;'+
|
72 |
(wppaLeftRightSymbolBradius?'border-radius:'+wppaLeftRightSymbolBradius+'px;':'')+'top:50%;'+'margin-top:-'+(wppaLeftRightSymbolSize/2)+'px;'+'left:1px;'+'box-shadow:none;'+
|
73 |
-
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlShowPrev()"'+'
|
74 |
(wppaLeftRightSymbolBradius?'border-radius:'+wppaLeftRightSymbolBradius+'px;':'')+'top:50%;'+'margin-top:-'+(wppaLeftRightSymbolSize/2)+'px;'+'right:1px;'+'box-shadow:none;'+
|
75 |
-
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlShowNext()"'+'
|
76 |
html+='</div>';var showCounter=!wppaOvlIsSingle&&wppaOvlShowCounter;html+='<div id="wppa-overlay-txt-container"'+' style="'+'position:relative;'+'padding:10px;'+'background-color:'+wppaOvlTheme+';'+'color:'+txtcol+';'+'text-align:center;'+'font-family:'+wppaOvlFontFamily+';'+'font-size:'+wppaOvlFontSize+'px;'+'font-weight:'+wppaOvlFontWeight+';'+'line-height:'+wppaOvlLineHeight+'px;'+'box-shadow:none;'+'border-bottom-left-radius:'+wppaOvlRadius+'px;'+'border-bottom-right-radius:'+wppaOvlRadius+'px;'+'"'+' >'+'<div'+' id="wppa-overlay-txt"'+' style="'+'text-align:center;'+'min-height:36px;'+'width:100%;'+
|
77 |
(wppaOvlTxtHeight=='auto'?'max-height:200px;':'max-height:'+wppaOvlTxtHeight+'px;')+'overflow:auto;'+'box-shadow:none;'+'"'+' >'+
|
78 |
(showCounter?(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />':'')+
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
+
var wppaLightboxVersion='6.4.18';var wppaNormsBtnOpac=1;var wppaIsVideo=false;var wppaHasAudio=false;var wppaOvlImgs=[];var wppaKbHandlerInstalled=false;var wppaOvlMode='normal';var wppaOvlCurIdx=0;var wppaSavedContainerWidth;var wppaSavedContainerHeight;var wppaSavedMarginLeft;var wppaSavedMarginTop;var wppaSavedImageWidth;var wppaSavedImageHeight;jQuery(document).ready(function(e){wppaInitOverlay();});jQuery(window).resize(function(){jQuery("#wppa-overlay-bg").css({height:window.innerHeight,width:window.innerWidth,});wppaOvlResize();});function wppaOvlKeyboardHandler(e){var keycode;var escapeKey;if(e==null){keycode=event.keyCode;escapeKey=27;}else{keycode=e.keyCode;escapeKey=27;}
|
8 |
var key=String.fromCharCode(keycode).toLowerCase();switch(keycode){case escapeKey:wppaStopVideo(mocc);if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
9 |
wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext();break;}
|
10 |
switch(key){case'p':wppaOvlShowPrev();break;case'n':wppaOvlShowNext();break;case's':wppaOvlStartStop();break;case'd':jQuery('#wppa-ovl-legenda-1').css('visibility','hidden');jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';break;case'f':wppaOvlFull();break;case'q':case'x':wppaStopVideo(mocc);if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
51 |
wppaOvlAudioHtmls[idx]+'</audio>';}
|
52 |
html+='<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';if(wppaOvlShowLegenda){html+='<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme=='black'?'#272727':'#a7a7a7')+'; color:'+(wppaOvlTheme=='black'?'#a7a7a7':'#272727')+'; visibility:'+wppaShowLegenda+';" >'+'Mode='+wppaOvlMode+'. '+(wppaOvlIsSingle?wppaOvlFullLegendaSingle:wppaOvlFullLegenda)+'</div>';}
|
53 |
html+='</div>';'</div>';}
|
54 |
+
html+='<img'+' id="wppa-norms-btn"'+' src="'+wppaImageDirectory+'norms.png"'+' alt="'+wppaToggleFullScreen+'"'+' style="height:32px;z-index:100092;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+'"'+' onclick="wppaOvlNorm()"'+' onmouseover="jQuery(this).fadeTo(600,1);"'+' onmouseout="jQuery(this).fadeTo(600,0);wppaNormsBtnOpac=0;"'+' >';if((!wppaIsVideo&&!wppaHasAudio)||wppaOvlFsPhotoId!=wppaPhotoId||wppaPhotoId==0){wppaStopVideo(0);wppaStopAudio();jQuery('#wppa-overlay-ic').html(html);}
|
55 |
wppaOvlIsVideo=wppaIsVideo;setTimeout('wppaOvlFormatFull()',10);if(wppaIsVideo||wppaHasAudio){setTimeout('wppaOvlUpdateFsId()',2000);}
|
56 |
else{wppaOvlFsPhotoId=0;}
|
57 |
wppaOvlFirst=false;return false;}
|
64 |
wppaOvlIsVideo=false;}
|
65 |
html+='<img'+' id="wppa-overlay-qt-img"'+' class="wppa-ovl-nav-btn"'+' src="'+wppaStopSymbolUrl+'"'+' style="'+'position:absolute;'+'z-index:100101;'+'right:'+wppaOvlBorderWidth+'px;'+'top:'+wppaOvlBorderWidth+'px;'+'box-shadow:none;'+'cursor:pointer;'+'height:'+wppaStopSymbolSize+'px;'+
|
66 |
(wppaStopSumbolBradius>0?'border-radius:'+wppaStopSumbolBradius+'px;':'')+
|
67 |
+
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlHide()"'+' onmouseover="jQuery(this).stop().fadeTo(200,1);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,1);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';if(wppaOvlShowStartStop&&!wppaOvlIsSingle&&!wppaIsVideo){html+='<img'+' id="wppa-ovl-start-stop-btn"'+' class="wppa-ovl-nav-btn"'+' src="'+(wppaOvlRunning?wppaPauseSymbolUrl:wppaStartSymbolUrl)+'"'+' style="'+'height:'+wppaStartPauseSymbolSize+'px;'+
|
68 |
(wppaStartPauseSymbolBradius>0?'border-radius:'+wppaStartPauseSymbolBradius+'px;':'')+'z-index:100101;'+'position:absolute;'+'top:50%;'+'margin-top:'+(-wppaStartPauseSymbolSize/2)+'px;'+'left:50%;'+'margin-left:'+(-wppaStartPauseSymbolSize/2)+'px;'+
|
69 |
(wppaOvlIdx==-1?'visibility:hidden;':'')+'box-shadow:none;'+
|
70 |
+
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlStartStop()"'+' onmouseover="jQuery(this).stop().fadeTo(200,1);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,1);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';}
|
71 |
if(!wppaOvlIsSingle){html+='<img'+' id="wppa-ovl-prev-btn"'+' class="wppa-ovl-nav-btn"'+' src="'+wppaImageDirectory+'prev-'+wppaOvlTheme+'.gif"'+' style="'+'position:absolute;'+'z-index:100101;'+'width:'+wppaLeftRightSymbolSize+'px;'+
|
72 |
(wppaLeftRightSymbolBradius?'border-radius:'+wppaLeftRightSymbolBradius+'px;':'')+'top:50%;'+'margin-top:-'+(wppaLeftRightSymbolSize/2)+'px;'+'left:1px;'+'box-shadow:none;'+
|
73 |
+
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlShowPrev()"'+' onmouseover="jQuery(this).stop().fadeTo(200,1);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,1);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';html+='<img'+' id="wppa-ovl-next-btn"'+' class="wppa-ovl-nav-btn"'+' src="'+wppaImageDirectory+'next-'+wppaOvlTheme+'.gif"'+' style="'+'position:absolute;'+'z-index:100101;'+'width:'+wppaLeftRightSymbolSize+'px;'+
|
74 |
(wppaLeftRightSymbolBradius?'border-radius:'+wppaLeftRightSymbolBradius+'px;':'')+'top:50%;'+'margin-top:-'+(wppaLeftRightSymbolSize/2)+'px;'+'right:1px;'+'box-shadow:none;'+
|
75 |
+
(wppaOvlFirst?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlShowNext()"'+' onmouseover="jQuery(this).stop().fadeTo(200,1);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,1);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';}
|
76 |
html+='</div>';var showCounter=!wppaOvlIsSingle&&wppaOvlShowCounter;html+='<div id="wppa-overlay-txt-container"'+' style="'+'position:relative;'+'padding:10px;'+'background-color:'+wppaOvlTheme+';'+'color:'+txtcol+';'+'text-align:center;'+'font-family:'+wppaOvlFontFamily+';'+'font-size:'+wppaOvlFontSize+'px;'+'font-weight:'+wppaOvlFontWeight+';'+'line-height:'+wppaOvlLineHeight+'px;'+'box-shadow:none;'+'border-bottom-left-radius:'+wppaOvlRadius+'px;'+'border-bottom-right-radius:'+wppaOvlRadius+'px;'+'"'+' >'+'<div'+' id="wppa-overlay-txt"'+' style="'+'text-align:center;'+'min-height:36px;'+'width:100%;'+
|
77 |
(wppaOvlTxtHeight=='auto'?'max-height:200px;':'max-height:'+wppaOvlTxtHeight+'px;')+'overflow:auto;'+'box-shadow:none;'+'"'+' >'+
|
78 |
(showCounter?(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />':'')+
|
js/wppa.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
-
var wppaJsVersion = '6.4.
|
6 |
|
7 |
// Important notice:
|
8 |
// All external vars that may be given a value in wppa-non-admin.php must be declared here and not in other front-end js files!!
|
@@ -145,6 +145,7 @@ var wppaStopSymbolSize = '48';
|
|
145 |
var wppaStopSumbolBradius = '24';
|
146 |
var wppaEditPhotoWidth = '960';
|
147 |
var wppaThemeStyles = '';
|
|
|
148 |
|
149 |
// 'Internal' variables ( private )
|
150 |
var _wppaId = [];
|
@@ -452,7 +453,7 @@ function _wppaDoAutocol( mocc ) {
|
|
452 |
var myCss = {
|
453 |
'width' : ( w - wppaBoxDelta ),
|
454 |
'maxWidth' : ( w - wppaBoxDelta ),
|
455 |
-
'marginLeft': '0px',
|
456 |
'float' : 'left'
|
457 |
}
|
458 |
jQuery( ".wppa-cover-box-mcr-"+mocc ).css( myCss );
|
@@ -1258,7 +1259,7 @@ function wppaDisplaySelectedFiles(id) {
|
|
1258 |
result += theFiles[0].files[i].name+' ';
|
1259 |
i++;
|
1260 |
}
|
1261 |
-
|
1262 |
jQuery('#'+id+'-display').val(result);
|
1263 |
}
|
1264 |
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
+
var wppaJsVersion = '6.4.18';
|
6 |
|
7 |
// Important notice:
|
8 |
// All external vars that may be given a value in wppa-non-admin.php must be declared here and not in other front-end js files!!
|
145 |
var wppaStopSumbolBradius = '24';
|
146 |
var wppaEditPhotoWidth = '960';
|
147 |
var wppaThemeStyles = '';
|
148 |
+
var wppaStickyHeaderHeight = 0;
|
149 |
|
150 |
// 'Internal' variables ( private )
|
151 |
var _wppaId = [];
|
453 |
var myCss = {
|
454 |
'width' : ( w - wppaBoxDelta ),
|
455 |
'maxWidth' : ( w - wppaBoxDelta ),
|
456 |
+
'marginLeft': '0px',
|
457 |
'float' : 'left'
|
458 |
}
|
459 |
jQuery( ".wppa-cover-box-mcr-"+mocc ).css( myCss );
|
1259 |
result += theFiles[0].files[i].name+' ';
|
1260 |
i++;
|
1261 |
}
|
1262 |
+
|
1263 |
jQuery('#'+id+'-display').val(result);
|
1264 |
}
|
1265 |
|
js/wppa.min.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
-
var wppaJsVersion='6.4.
|
7 |
_wppaTextDelay=wppaAnimationSpeed;if(wppaFadeInAfterFadeOut)_wppaTextDelay*=2;if(anyAutocol){jQuery(window).resize(function(){for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}});}});jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax){wppaCanAjaxRender=true;}
|
8 |
if(typeof(history.pushState)!='undefined'){var i=1;while(i<=wppaMaxOccur){wppaStartHtml[i]=jQuery('#wppa-container-'+i).html();i++;}
|
9 |
wppaCanPushState=true;}});function wppaUpdateLightboxes(){if(typeof(wppaInitOverlay)=='function'){wppaInitOverlay();}
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
+
var wppaJsVersion='6.4.18';var wppaVersion='0';var wppaDebug;var wppaFullValign=[];var wppaFullHalign=[];var wppaFullFrameDelta=[];var wppaAnimationSpeed;var wppaImageDirectory;var wppaAutoColumnWidth=[];var wppaAutoColumnFrac=[];var wppaThumbnailAreaDelta;var wppaSlideShowTimeOut=2500;var wppaFadeInAfterFadeOut=false;var wppaTextFrameDelta=0;var wppaBoxDelta=0;var wppaPreambule;var wppaHideWhenEmpty=false;var wppaThumbnailPitch=[];var wppaFilmStripLength=[];var wppaFilmStripMargin=[];var wppaFilmStripAreaDelta=[];var wppaFilmShowGlue=false;var wppaIsMini=[];var wppaPortraitOnly=[];var wppaSlideShow;var wppaPhoto;var wppaOf;var wppaNextPhoto;var wppaPreviousPhoto;var wppaSlower;var wppaFaster;var wppaNextP;var wppaPrevP;var wppaAvgRating;var wppaMyRating;var wppaAvgRat;var wppaMyRat;var wppaDislikeMsg;var wppaMiniTreshold=300;var wppaStart='Start';var wppaStop='Stop';var wppaPleaseName;var wppaPleaseEmail;var wppaPleaseComment;var wppaRatingOnce=true;var wppaBGcolorNumbar='transparent';var wppaBcolorNumbar='transparent';var wppaBGcolorNumbarActive='transparent';var wppaBcolorNumbarActive='transparent';var wppaFontFamilyNumbar='';var wppaFontSizeNumbar='';var wppaFontColorNumbar='';var wppaFontWeightNumbar='';var wppaFontFamilyNumbarActive='';var wppaFontSizeNumbarActive='';var wppaFontColorNumbarActive='';var wppaFontWeightNumbarActive='';var wppaNumbarMax='10';var wppaAjaxUrl='';var wppaLang='';var wppaNextOnCallback=false;var wppaStarOpacity=0.2;var wppaSlideWrap=true;var wppaLightBox=[];var wppaEmailRequired='required';var wppaSlideBorderWidth=0;var wppaSlideInitRunning=[];var wppaAnimationType='fadeover';var wppaSlidePause=[];var wppaSlideBlank=[];var wppaRatingMax=5;var wppaRatingDisplayType='graphic';var wppaRatingPrec=2;var wppaFilmPageSize=[];var wppaAspectRatio=[];var wppaFullSize=[];var wppaStretch=false;var wppaThumbSpaceAuto=false;var wppaMinThumbSpace=4;var wppaMagnifierCursor='';var wppaArtMonkyLink='none';var wppaAutoOpenComments=false;var wppaUpdateAddressLine=false;var wppaFilmThumbTitle='';var wppaUploadUrl='';var wppaVoteForMe='';var wppaVotedForMe='';var wppaSlideSwipe=true;var wppaLightboxSingle=[];var wppaMaxCoverWidth=300;var wppaDownLoad='Download';var wppaSiteUrl='';var wppaWppaUrl='';var wppaIncludeUrl='';var wppaSlideToFullpopup=false;var wppaComAltSize=75;var wppaBumpViewCount=true;var wppaFotomoto=false;var wppaArtMonkeyButton=true;var wppaShortQargs=false;var wppaOvlHires=false;var wppaMasonryCols=[];var wppaVideoPlaying=[];var wppaAudioPlaying=[];var wppaSlideVideoStart=false;var wppaSlideAudioStart=false;var wppaAudioHeight=28;var wppaHis=0;var wppaStartHtml=[];var wppaCanAjaxRender=false;var wppaCanPushState=false;var wppaAllowAjax=true;var wppaMaxOccur=0;var wppaFirstOccur=0;var wppaUsePhotoNamesInUrls=false;var wppaShareHideWhenRunning=false;var wppaCommentRequiredAfterVote=true;var wppaTopMoc=0;var wppaColWidth=[];var wppaFotomotoHideWhenRunning=false;var wppaFotomotoMinWidth=400;var wppaPhotoView=[];var wppaBackgroundColorImage='';var wppaPopupLinkType='';var wppaPopupOnclick=[];var wppaThumbTargetBlank=false;var wppaRel='rel';var wppaStartSymbolUrl='';var wppaPauseSymbolUrl='';var wppaStopSymbolUrl='';var wppaStartPauseSymbolSize='64';var wppaStartPauseSymbolBradius='32';var wppaStopSymbolSize='48';var wppaStopSumbolBradius='24';var wppaEditPhotoWidth='960';var wppaThemeStyles='';var wppaStickyHeaderHeight=0;var _wppaId=[];var _wppaAvg=[];var _wppaDisc=[];var _wppaMyr=[];var _wppaVRU=[];var _wppaLinkUrl=[];var _wppaLinkTitle=[];var _wppaLinkTarget=[];var _wppaCommentHtml=[];var _wppaIptcHtml=[];var _wppaExifHtml=[];var _wppaToTheSame=false;var _wppaSlides=[];var _wppaNames=[];var _wppaFullNames=[];var _wppaDsc=[];var _wppaOgDsc=[];var _wppaCurIdx=[];var _wppaNxtIdx=[];var _wppaTimeOut=[];var _wppaSSRuns=[];var _wppaFg=[];var _wppaTP=[];var _wppaIsBusy=[];var _wppaFirst=[];var _wppaVoteInProgress=false;var _wppaTextDelay;var _wppaUrl=[];var _wppaSkipRated=[];var _wppaLbTitle=[];var _wppaStateCount=0;var _wppaDidGoto=[];var _wppaShareUrl=[];var _wppaShareHtml=[];var _wppaFilmNoMove=[];var _wppaHiresUrl=[];var _wppaIsVideo=[];var _wppaVideoHtml=[];var _wppaAudioHtml=[];var _wppaVideoNatWidth=[];var _wppaVideoNatHeight=[];var __wppaOverruleRun=false;var wppaOvlUrls;var wppaOvlTitles;var wppaOvlIdx=0;var wppaOvlFirst=true;var wppaOvlKbHandler='';var wppaOvlSizeHandler='';var wppaOvlPadTop=5;var wppaOvlIsSingle;var wppaOvlRunning=false;var wppaOvlVideoHtmls;var wppaOvlAudioHtmls;var wppaOvlVideoNaturalWidths;var wppaOvlVideoNaturalHeights;var wppaOvlModeInitial='normal';var wppaOvlVideoPlaying=false;var wppaOvlAudioPlaying=false;var wppaOvlShowLegenda=true;var wppaOvlShowStartStop=true;var wppaOvlRadius=0;var wppaOvlBorderWidth=16;var wppaOvlLeftSymbolUrl;var wppaOvlRightSymbolUrl;var wppaLeftRightSymbolSize=32;var wppaLeftRightSymbolBradius=4;var wppaOvlTxtHeight=36;var wppaOvlOpacity=0.8;var wppaOvlOnclickType='none';var wppaOvlTheme='black';var wppaOvlAnimSpeed=300;var wppaOvlSlideSpeed=3000;var wppaVer4WindowWidth=800;var wppaVer4WindowHeight=600;var wppaOvlFontFamily='Helvetica';var wppaOvlFontSize='10';var wppaOvlFontColor='';var wppaOvlFontWeight='bold';var wppaOvlLineHeight='12';var wppaOvlShowCounter=true;var wppaOvlIsVideo=false;var wppaShowLegenda='';var wppaOvlFsPhotoId=0;var wppaPhotoId=0;var wppaOvlVideoStart=false;var wppaOvlAudioStart=false;var wppaLastIptc='';var wppaLastExif='';jQuery(document).ready(function(){var anyAutocol=false;for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);anyAutocol=true;}}
|
7 |
_wppaTextDelay=wppaAnimationSpeed;if(wppaFadeInAfterFadeOut)_wppaTextDelay*=2;if(anyAutocol){jQuery(window).resize(function(){for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}});}});jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax){wppaCanAjaxRender=true;}
|
8 |
if(typeof(history.pushState)!='undefined'){var i=1;while(i<=wppaMaxOccur){wppaStartHtml[i]=jQuery('#wppa-container-'+i).html();i++;}
|
9 |
wppaCanPushState=true;}});function wppaUpdateLightboxes(){if(typeof(wppaInitOverlay)=='function'){wppaInitOverlay();}
|
languages/wp-photo-album-plus-fr_FR.mo
CHANGED
Binary file
|
languages/wp-photo-album-plus-fr_FR.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Photo Album Plus\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2016-06-
|
6 |
-
"PO-Revision-Date: 2016-06-
|
7 |
"Last-Translator: J.N. Breetvelt <OpaJaap@OpaJaap.nl>\n"
|
8 |
"Language-Team: French <kde-i18n-doc@kde.org>\n"
|
9 |
"Language: fr_FR\n"
|
@@ -34,7 +34,7 @@ msgstr "Pages:"
|
|
34 |
#: wppa-album-admin-autosave.php:1524 wppa-album-admin-autosave.php:1598
|
35 |
#: wppa-album-admin-autosave.php:1709 wppa-album-admin-autosave.php:2031
|
36 |
#: wppa-comment-admin.php:318 wppa-comment-admin.php:387
|
37 |
-
#: wppa-comment-admin.php:405 wppa-setup.php:
|
38 |
msgid "Edit"
|
39 |
msgstr "Modifier"
|
40 |
|
@@ -266,7 +266,7 @@ msgid "Photo of the day Widget"
|
|
266 |
msgstr "Widget \"Photo du jour\""
|
267 |
|
268 |
#: wppa-admin.php:67 wppa-adminbar.php:89 wppa-potd-widget.php:60
|
269 |
-
#: wppa-settings-autosave.php:5923 wppa-setup.php:
|
270 |
msgid "Photo of the day"
|
271 |
msgstr "Photo du jour"
|
272 |
|
@@ -342,7 +342,7 @@ msgstr "S'il vous plaît activer cette fonctionnalité dans le Table IV-A27"
|
|
342 |
#: wppa-slideshow-widget.php:198 wppa-stereo-widget.php:68
|
343 |
#: wppa-super-view-widget.php:73 wppa-tagcloud-widget.php:68
|
344 |
#: wppa-thumbnail-widget.php:184 wppa-topten-widget.php:323
|
345 |
-
#: wppa-upldr-widget.php:
|
346 |
msgid "Title:"
|
347 |
msgstr "Titre:"
|
348 |
|
@@ -1362,7 +1362,7 @@ msgid "Edit photo information except copy and move"
|
|
1362 |
msgstr "Modifier l'information de la photo excepté copier et déplacer"
|
1363 |
|
1364 |
#: wppa-album-admin-autosave.php:82 wppa-album-admin-autosave.php:784
|
1365 |
-
#: wppa-setup.php:
|
1366 |
msgid "Edit photo information"
|
1367 |
msgstr "Éditer les infos de la photo"
|
1368 |
|
@@ -2339,7 +2339,7 @@ msgstr[1] "%d albums"
|
|
2339 |
#: wppa-breadcrumb.php:151 wppa-breadcrumb.php:158 wppa-breadcrumb.php:382
|
2340 |
#: wppa-breadcrumb.php:384 wppa-breadcrumb.php:390 wppa-breadcrumb.php:392
|
2341 |
#: wppa-breadcrumb.php:400 wppa-breadcrumb.php:416 wppa-breadcrumb.php:429
|
2342 |
-
#: wppa-breadcrumb.php:435 wppa-utils.php:
|
2343 |
msgid "and"
|
2344 |
msgstr "et"
|
2345 |
|
@@ -2399,7 +2399,7 @@ msgstr "--- tous albums génériques ---"
|
|
2399 |
msgid "--- all separate albums ---"
|
2400 |
msgstr "--- tous albums séparés ---"
|
2401 |
|
2402 |
-
#: wppa-album-navigator-widget.php:102 wppa-common-functions.php:
|
2403 |
#: wppa-items.php:405
|
2404 |
msgid "--- owner/public ---"
|
2405 |
msgstr "--- Propriétaire / publique ---"
|
@@ -2530,7 +2530,7 @@ msgstr "Moyenne des notes:"
|
|
2530 |
msgid "Rating count:"
|
2531 |
msgstr "Nombre de notes:"
|
2532 |
|
2533 |
-
#: wppa-bestof-widget.php:198 wppa-common-functions.php:
|
2534 |
#: wppa-settings-autosave.php:1375 wppa-settings-autosave.php:1724
|
2535 |
#: wppa-settings-autosave.php:3657 wppa-settings-autosave.php:3671
|
2536 |
#: wppa-settings-autosave.php:3859 wppa-settings-autosave.php:3973
|
@@ -2663,7 +2663,7 @@ msgstr "Trouver!"
|
|
2663 |
msgid "Social media landing page"
|
2664 |
msgstr "Social media landing page"
|
2665 |
|
2666 |
-
#: wppa-boxes-html.php:1269 wppa-utils.php:
|
2667 |
#, php-format
|
2668 |
msgid "See this image on %s"
|
2669 |
msgstr "Voir cette image sur %s"
|
@@ -3199,7 +3199,7 @@ msgstr "Utilisateur:"
|
|
3199 |
msgid "Email:"
|
3200 |
msgstr "Email:"
|
3201 |
|
3202 |
-
#: wppa-comment-admin.php:80 wppa-utils.php:
|
3203 |
msgid "Comment:"
|
3204 |
msgstr "Commentaire:"
|
3205 |
|
@@ -3514,39 +3514,39 @@ msgstr ""
|
|
3514 |
"devriez pas charger des images plus grandes que : <strong>%d x %d (%2.1f MP)</"
|
3515 |
"strong>"
|
3516 |
|
3517 |
-
#: wppa-common-functions.php:
|
3518 |
msgid "- select an album -"
|
3519 |
msgstr "- Choisir un album -"
|
3520 |
|
3521 |
-
#: wppa-common-functions.php:
|
3522 |
#: wppa-multitag-widget.php:84 wppa-slideshow-widget.php:199
|
3523 |
#: wppa-tagcloud-widget.php:71 wppa-tagcloud-widget.php:79
|
3524 |
msgid "--- all ---"
|
3525 |
msgstr "--- tout ---"
|
3526 |
|
3527 |
-
#: wppa-common-functions.php:
|
3528 |
msgid "--- generic ---"
|
3529 |
msgstr "--- générique ---"
|
3530 |
|
3531 |
-
#: wppa-common-functions.php:
|
3532 |
msgid "--- multiple see below ---"
|
3533 |
msgstr "--- multiples voir ci-dessous ---"
|
3534 |
|
3535 |
-
#: wppa-common-functions.php:
|
3536 |
msgid "--- a selection box ---"
|
3537 |
msgstr "--- une sélection ---"
|
3538 |
|
3539 |
-
#: wppa-common-functions.php:
|
3540 |
#: wppa-settings-autosave.php:7815 wppa-settings-autosave.php:7871
|
3541 |
#: wppa-upload.php:1529
|
3542 |
msgid "--- separate ---"
|
3543 |
msgstr "--- séparé ---"
|
3544 |
|
3545 |
-
#: wppa-common-functions.php:
|
3546 |
msgid "Photo id ="
|
3547 |
msgstr "ID photo ="
|
3548 |
|
3549 |
-
#: wppa-common-functions.php:
|
3550 |
msgid "Value ="
|
3551 |
msgstr "Valeur ="
|
3552 |
|
@@ -3598,11 +3598,11 @@ msgstr "Nov"
|
|
3598 |
msgid "Dec"
|
3599 |
msgstr "Dec"
|
3600 |
|
3601 |
-
#: wppa-encrypt.php:
|
3602 |
msgid "Invalid photo identifier:"
|
3603 |
msgstr "Identifiant de photo incorrect:"
|
3604 |
|
3605 |
-
#: wppa-encrypt.php:
|
3606 |
msgid "Invalid album identifier:"
|
3607 |
msgstr "Identifiant d'album incorrect"
|
3608 |
|
@@ -3610,180 +3610,180 @@ msgstr "Identifiant d'album incorrect"
|
|
3610 |
msgid "n.a."
|
3611 |
msgstr "Non applicable"
|
3612 |
|
3613 |
-
#: wppa-exif-iptc-common.php:239 wppa-utils.php:
|
3614 |
msgid "Not Defined"
|
3615 |
msgstr "Non défini"
|
3616 |
|
3617 |
-
#: wppa-exif-iptc-common.php:240 wppa-utils.php:
|
3618 |
msgid "Manual"
|
3619 |
msgstr "Manuel"
|
3620 |
|
3621 |
-
#: wppa-exif-iptc-common.php:241 wppa-utils.php:
|
3622 |
msgid "Program AE"
|
3623 |
msgstr "Programme AE"
|
3624 |
|
3625 |
-
#: wppa-exif-iptc-common.php:242 wppa-utils.php:
|
3626 |
msgid "Aperture-priority AE"
|
3627 |
msgstr "Priorité ouverture AE"
|
3628 |
|
3629 |
-
#: wppa-exif-iptc-common.php:243 wppa-utils.php:
|
3630 |
msgid "Shutter speed priority AE"
|
3631 |
msgstr "Priorité vitesse d'obturation AE"
|
3632 |
|
3633 |
-
#: wppa-exif-iptc-common.php:244 wppa-utils.php:
|
3634 |
msgid "Creative (Slow speed)"
|
3635 |
msgstr "Créatif (vitesse lente)"
|
3636 |
|
3637 |
-
#: wppa-exif-iptc-common.php:245 wppa-utils.php:
|
3638 |
msgid "Action (High speed)"
|
3639 |
msgstr "Action (vitesse haute)"
|
3640 |
|
3641 |
-
#: wppa-exif-iptc-common.php:246 wppa-utils.php:
|
3642 |
msgid "Portrait"
|
3643 |
msgstr "Portrait"
|
3644 |
|
3645 |
-
#: wppa-exif-iptc-common.php:247 wppa-utils.php:
|
3646 |
msgid "Landscape"
|
3647 |
msgstr "Paysage"
|
3648 |
|
3649 |
-
#: wppa-exif-iptc-common.php:248 wppa-utils.php:
|
3650 |
msgid "Bulb"
|
3651 |
msgstr "Ampoule électrique"
|
3652 |
|
3653 |
-
#: wppa-exif-iptc-common.php:270 wppa-utils.php:
|
3654 |
msgid "Average"
|
3655 |
msgstr "Moyen"
|
3656 |
|
3657 |
-
#: wppa-exif-iptc-common.php:271 wppa-utils.php:
|
3658 |
msgid "Center-weighted average"
|
3659 |
msgstr "Mesure centrale pondérée"
|
3660 |
|
3661 |
-
#: wppa-exif-iptc-common.php:272 wppa-utils.php:
|
3662 |
msgid "Spot"
|
3663 |
msgstr "Spot"
|
3664 |
|
3665 |
-
#: wppa-exif-iptc-common.php:273 wppa-utils.php:
|
3666 |
msgid "Multi-spot"
|
3667 |
msgstr "Multi-spot"
|
3668 |
|
3669 |
-
#: wppa-exif-iptc-common.php:274 wppa-utils.php:
|
3670 |
msgid "Multi-segment"
|
3671 |
msgstr "Multi-segments"
|
3672 |
|
3673 |
-
#: wppa-exif-iptc-common.php:275 wppa-utils.php:
|
3674 |
msgid "Partial"
|
3675 |
msgstr "Partiel"
|
3676 |
|
3677 |
#: wppa-exif-iptc-common.php:276 wppa-settings-autosave.php:4737
|
3678 |
-
#: wppa-utils.php:
|
3679 |
msgid "Other"
|
3680 |
msgstr "Autre"
|
3681 |
|
3682 |
-
#: wppa-exif-iptc-common.php:312 wppa-utils.php:
|
3683 |
msgid "No Flash"
|
3684 |
msgstr "Pas de flash"
|
3685 |
|
3686 |
-
#: wppa-exif-iptc-common.php:314 wppa-utils.php:
|
3687 |
msgid "Fired"
|
3688 |
msgstr "Fired"
|
3689 |
|
3690 |
-
#: wppa-exif-iptc-common.php:316 wppa-utils.php:
|
3691 |
msgid "Fired, Return not detected"
|
3692 |
msgstr "Fired, Retour non détecté"
|
3693 |
|
3694 |
-
#: wppa-exif-iptc-common.php:318 wppa-utils.php:
|
3695 |
msgid "Fired, Return detected"
|
3696 |
msgstr "Fired, Retour détecté"
|
3697 |
|
3698 |
-
#: wppa-exif-iptc-common.php:320 wppa-utils.php:
|
3699 |
msgid "On, Did not fire"
|
3700 |
msgstr "Activé, Did not fire"
|
3701 |
|
3702 |
-
#: wppa-exif-iptc-common.php:322 wppa-utils.php:
|
3703 |
msgid "On, Fired"
|
3704 |
msgstr "Activé, Fired"
|
3705 |
|
3706 |
-
#: wppa-exif-iptc-common.php:324 wppa-utils.php:
|
3707 |
msgid "On, Return not detected"
|
3708 |
msgstr "Activé, Retour non détecté"
|
3709 |
|
3710 |
-
#: wppa-exif-iptc-common.php:326 wppa-utils.php:
|
3711 |
msgid "On, Return detected"
|
3712 |
msgstr "Activé, Retour détecté"
|
3713 |
|
3714 |
-
#: wppa-exif-iptc-common.php:328 wppa-utils.php:
|
3715 |
msgid "Off, Did not fire"
|
3716 |
msgstr "Désactivé, Did not fire"
|
3717 |
|
3718 |
-
#: wppa-exif-iptc-common.php:330 wppa-utils.php:
|
3719 |
msgid "Off, Did not fire, Return not detected"
|
3720 |
msgstr "Désactivé, Did not fire, Retour non détecté"
|
3721 |
|
3722 |
-
#: wppa-exif-iptc-common.php:332 wppa-utils.php:
|
3723 |
msgid "Auto, Did not fire"
|
3724 |
msgstr "Auto, Did not fire"
|
3725 |
|
3726 |
-
#: wppa-exif-iptc-common.php:334 wppa-utils.php:
|
3727 |
msgid "Auto, Fired"
|
3728 |
msgstr "Auto, Fired"
|
3729 |
|
3730 |
-
#: wppa-exif-iptc-common.php:336 wppa-utils.php:
|
3731 |
msgid "Auto, Fired, Return not detected"
|
3732 |
msgstr "Auto, Fired, Retour non détecté"
|
3733 |
|
3734 |
-
#: wppa-exif-iptc-common.php:338 wppa-utils.php:
|
3735 |
msgid "Auto, Fired, Return detected"
|
3736 |
msgstr "Auto, Fired, Retour détecté"
|
3737 |
|
3738 |
-
#: wppa-exif-iptc-common.php:340 wppa-utils.php:
|
3739 |
msgid "No flash function"
|
3740 |
msgstr "Pas de fonction flash"
|
3741 |
|
3742 |
-
#: wppa-exif-iptc-common.php:342 wppa-utils.php:
|
3743 |
msgid "Off, No flash function"
|
3744 |
msgstr "Désactivé, Pas de fonction flash"
|
3745 |
|
3746 |
-
#: wppa-exif-iptc-common.php:344 wppa-utils.php:
|
3747 |
msgid "Fired, Red-eye reduction"
|
3748 |
msgstr "Fired, Réduction yeux rouges"
|
3749 |
|
3750 |
-
#: wppa-exif-iptc-common.php:346 wppa-utils.php:
|
3751 |
msgid "Fired, Red-eye reduction, Return not detected"
|
3752 |
msgstr "Fired, Réduction yeux rouges, Retour non détecté"
|
3753 |
|
3754 |
-
#: wppa-exif-iptc-common.php:348 wppa-utils.php:
|
3755 |
msgid "Fired, Red-eye reduction, Return detected"
|
3756 |
msgstr "Fired, Réduction yeux rouges, Retour détecté"
|
3757 |
|
3758 |
-
#: wppa-exif-iptc-common.php:350 wppa-utils.php:
|
3759 |
msgid "On, Red-eye reduction"
|
3760 |
msgstr "Activé, Réduction yeux rouges"
|
3761 |
|
3762 |
-
#: wppa-exif-iptc-common.php:352 wppa-utils.php:
|
3763 |
msgid "Red-eye reduction, Return not detected"
|
3764 |
msgstr "Réduction yeux rouges, Retour non détecté"
|
3765 |
|
3766 |
-
#: wppa-exif-iptc-common.php:354 wppa-utils.php:
|
3767 |
msgid "On, Red-eye reduction, Return detected"
|
3768 |
msgstr "Activé, Réduction yeux rouges, Retour détecté"
|
3769 |
|
3770 |
-
#: wppa-exif-iptc-common.php:356 wppa-utils.php:
|
3771 |
msgid "Off, Red-eye reduction"
|
3772 |
msgstr "Désactivé, Réduction yeux rouges"
|
3773 |
|
3774 |
-
#: wppa-exif-iptc-common.php:358 wppa-utils.php:
|
3775 |
msgid "Auto, Did not fire, Red-eye reduction"
|
3776 |
msgstr "Auto, Did not fire, Réduction yeux rouges"
|
3777 |
|
3778 |
-
#: wppa-exif-iptc-common.php:360 wppa-utils.php:
|
3779 |
msgid "Auto, Fired, Red-eye reduction"
|
3780 |
msgstr "Auto, Fired, Réduction yeux rouges"
|
3781 |
|
3782 |
-
#: wppa-exif-iptc-common.php:362 wppa-utils.php:
|
3783 |
msgid "Auto, Fired, Red-eye reduction, Return not detected"
|
3784 |
msgstr "Auto, Fired, Réduction yeux rouges, Retour non détecté"
|
3785 |
|
3786 |
-
#: wppa-exif-iptc-common.php:364 wppa-utils.php:
|
3787 |
msgid "Auto, Fired, Red-eye reduction, Return detected"
|
3788 |
msgstr "Auto, Fired, Réduction yeux rouges, Retour détecté"
|
3789 |
|
@@ -4115,8 +4115,8 @@ msgstr "Cet upload nécessite une modération"
|
|
4115 |
msgid "Details:"
|
4116 |
msgstr "Détails:"
|
4117 |
|
4118 |
-
#: wppa-functions.php:4459 wppa-upload.php:1432 wppa-utils.php:
|
4119 |
-
#: wppa-utils.php:
|
4120 |
msgid "Manage photo"
|
4121 |
msgstr "Gérer photo"
|
4122 |
|
@@ -4971,33 +4971,33 @@ msgstr "Photo orphelines"
|
|
4971 |
msgid "This album contains refound lost photos"
|
4972 |
msgstr "Cet album contient des photos perdues"
|
4973 |
|
4974 |
-
#: wppa-maintenance.php:
|
4975 |
msgid "Feature must be enabled in Table IV-A28 first"
|
4976 |
msgstr "Feature doit être activé dans le Table IV-A28 premier"
|
4977 |
|
4978 |
-
#: wppa-maintenance.php:
|
4979 |
#: wppa-photo-admin-autosave.php:1742 wppa-photo-admin-autosave.php:1763
|
4980 |
#: wppa-settings-autosave.php:4359 wppa-setup.php:350
|
4981 |
msgid "Required"
|
4982 |
msgstr "requis"
|
4983 |
|
4984 |
-
#: wppa-maintenance.php:
|
4985 |
msgid "There are no index items."
|
4986 |
msgstr "Il n'y a pas d'entités index."
|
4987 |
|
4988 |
-
#: wppa-maintenance.php:
|
4989 |
msgid "There are no error log messages"
|
4990 |
msgstr "Il n'y a pas de journal d'erreurs"
|
4991 |
|
4992 |
-
#: wppa-maintenance.php:
|
4993 |
msgid "There are no ratings"
|
4994 |
msgstr "Il n'y a pas de notes"
|
4995 |
|
4996 |
-
#: wppa-maintenance.php:
|
4997 |
msgid "There are no active sessions"
|
4998 |
msgstr "Il n'y a pas de sessions actives"
|
4999 |
|
5000 |
-
#: wppa-maintenance.php:
|
5001 |
msgid "There are no comments"
|
5002 |
msgstr "Il n’y a aucun commentaire"
|
5003 |
|
@@ -5124,7 +5124,7 @@ msgstr "Il n'y pas encore de photos"
|
|
5124 |
msgid "There are too many registered users in the system for this widget"
|
5125 |
msgstr "Il y a trop d'utilisateurs enregistrés dans le système pour ce widget"
|
5126 |
|
5127 |
-
#: wppa-non-admin.php:845 wppa-upldr-widget.php:
|
5128 |
msgid "Photos uploaded by"
|
5129 |
msgstr "Photos chargées par"
|
5130 |
|
@@ -7833,7 +7833,7 @@ msgstr ""
|
|
7833 |
"Indique si une barre de chemin de fer doit être affichée au dessus des "
|
7834 |
"affichages Related Photos."
|
7835 |
|
7836 |
-
#: wppa-settings-autosave.php:1545 wppa-setup.php:
|
7837 |
msgid "Home"
|
7838 |
msgstr "Accueil"
|
7839 |
|
@@ -12796,13 +12796,12 @@ msgid "Uploaded photos need moderation."
|
|
12796 |
msgstr "La photo chargée nécessite une modération."
|
12797 |
|
12798 |
#: wppa-settings-autosave.php:6069
|
12799 |
-
#, fuzzy
|
12800 |
msgid ""
|
12801 |
"If checked, photos uploaded by users who do not have photo album admin access "
|
12802 |
"rights need moderation."
|
12803 |
msgstr ""
|
12804 |
-
"
|
12805 |
-
"droits d
|
12806 |
|
12807 |
#: wppa-settings-autosave.php:6070
|
12808 |
#, fuzzy
|
@@ -14366,12 +14365,11 @@ msgid "Meta tags for all featured photos."
|
|
14366 |
msgstr "Meta tags pour toutes les photos de recommandés."
|
14367 |
|
14368 |
#: wppa-settings-autosave.php:7574
|
14369 |
-
#, fuzzy
|
14370 |
msgid ""
|
14371 |
"If checked, the header of the page will contain metatags that refer to all "
|
14372 |
"featured photo files."
|
14373 |
msgstr ""
|
14374 |
-
"
|
14375 |
"référence à tous les fichiers photo recommandés."
|
14376 |
|
14377 |
#: wppa-settings-autosave.php:7575
|
@@ -14680,7 +14678,7 @@ msgstr "Le nom à utiliser pour l’album."
|
|
14680 |
msgid "Login name"
|
14681 |
msgstr "Identifiant"
|
14682 |
|
14683 |
-
#: wppa-settings-autosave.php:7860 wppa-upldr-widget.php:
|
14684 |
msgid "Display name"
|
14685 |
msgstr "Afficher le nom"
|
14686 |
|
@@ -14782,9 +14780,8 @@ msgid "Copy timestamp when copying photo."
|
|
14782 |
msgstr "Copiez timestamp lors de la copie de photo."
|
14783 |
|
14784 |
#: wppa-settings-autosave.php:7922
|
14785 |
-
#, fuzzy
|
14786 |
msgid "If checked, the copied photo is not \"new\""
|
14787 |
-
msgstr "
|
14788 |
|
14789 |
#: wppa-settings-autosave.php:7929
|
14790 |
msgid "Copy Owner"
|
@@ -16433,11 +16430,11 @@ msgstr ""
|
|
16433 |
"Si vous omettez ceci, le lien ne fonctionnera pas du tout ou se contentera de "
|
16434 |
"rafraîchir la page."
|
16435 |
|
16436 |
-
#: wppa-setup.php:
|
16437 |
msgid "IMPORTANT UPGRADE NOTICE"
|
16438 |
msgstr "MESSAGE IMPORTANT DE MISE A NIVEAU"
|
16439 |
|
16440 |
-
#: wppa-setup.php:
|
16441 |
msgid ""
|
16442 |
"Please CHECK your customized WPPA-STYLE.CSS file against the newly supplied "
|
16443 |
"one. You may wish to add or modify some attributes. Be aware of the fact that "
|
@@ -16448,7 +16445,7 @@ msgstr ""
|
|
16448 |
"certains attributs. Soyez conscient du fait que la plupart des paramètres "
|
16449 |
"peuvent maintenant être réglés dans la page d'administration."
|
16450 |
|
16451 |
-
#: wppa-setup.php:
|
16452 |
msgid ""
|
16453 |
"Please REPLACE your customized WPPA-THEME.PHP file by the newly supplied one, "
|
16454 |
"or just remove it from your theme directory. You may modify it later if you "
|
@@ -16460,152 +16457,152 @@ msgstr ""
|
|
16460 |
"thème. Vous pouvez le modifier plus tard si vous voulez. La version "
|
16461 |
"personnalisée courante n'est PAS compatible avec cette version du plugin."
|
16462 |
|
16463 |
-
#: wppa-setup.php:
|
16464 |
#, php-format
|
16465 |
msgid "WPPA+ successfully updated in multi site mode to db version %s."
|
16466 |
msgstr ""
|
16467 |
"WPPA+ s'est mis à jour avec succès en mode multi site vers la version de base "
|
16468 |
"de donnée %s."
|
16469 |
|
16470 |
-
#: wppa-setup.php:
|
16471 |
#, php-format
|
16472 |
msgid "WPPA+ successfully updated in single site mode to db version %s."
|
16473 |
msgstr ""
|
16474 |
"WPPA+ s'est mis à jour avec succès en mode mono site vers la version de base "
|
16475 |
"de donnée %s."
|
16476 |
|
16477 |
-
#: wppa-setup.php:
|
16478 |
msgid "An error occurred during update"
|
16479 |
msgstr "Erreur durant le la mise à jour"
|
16480 |
|
16481 |
-
#: wppa-setup.php:
|
16482 |
msgid ""
|
16483 |
"<span style=\"color:red\" >Warning: Do not upload copyrighted material!</span>"
|
16484 |
msgstr ""
|
16485 |
"<span style=\"color:red\" >Attention: Ne chargez pas de fichiers sous "
|
16486 |
"copyright!!</span>"
|
16487 |
|
16488 |
-
#: wppa-setup.php:
|
16489 |
msgid "Select tags:"
|
16490 |
msgstr "Choisir les tags:"
|
16491 |
|
16492 |
-
#: wppa-setup.php:
|
16493 |
msgid "Enter new tags:"
|
16494 |
msgstr "Entrez les nouveaux tags:"
|
16495 |
|
16496 |
-
#: wppa-setup.php:
|
16497 |
msgid "Vote for me!"
|
16498 |
msgstr "Votez pour moi !"
|
16499 |
|
16500 |
-
#: wppa-setup.php:
|
16501 |
msgid "Voted for me"
|
16502 |
msgstr "Ont voté pour moi"
|
16503 |
|
16504 |
-
#: wppa-setup.php:
|
16505 |
msgid "NEW"
|
16506 |
msgstr "NOUVEAU"
|
16507 |
|
16508 |
-
#: wppa-setup.php:
|
16509 |
msgid "MODIFIED"
|
16510 |
msgstr "MODIFIE"
|
16511 |
|
16512 |
-
#: wppa-setup.php:
|
16513 |
msgid "Search in current section"
|
16514 |
msgstr "Rechercher dans la section courante"
|
16515 |
|
16516 |
-
#: wppa-setup.php:
|
16517 |
msgid "Search in current results"
|
16518 |
msgstr "Rechercher dans les résultats courants"
|
16519 |
|
16520 |
-
#: wppa-setup.php:
|
16521 |
msgid "Type your custom url here"
|
16522 |
msgstr "Tapez votre URL personnalisée ici"
|
16523 |
|
16524 |
-
#: wppa-setup.php:
|
16525 |
msgid "Type the title here"
|
16526 |
msgstr "Entrez ici le titre de la page"
|
16527 |
|
16528 |
-
#: wppa-setup.php:
|
16529 |
#: wppa-topten-widget.php:298
|
16530 |
msgid "Top Ten Photos"
|
16531 |
msgstr "Meilleures photos"
|
16532 |
|
16533 |
-
#: wppa-setup.php:
|
16534 |
msgid "Thumbnail Photos"
|
16535 |
msgstr "Vignettes"
|
16536 |
|
16537 |
-
#: wppa-setup.php:
|
16538 |
msgid "Search photos"
|
16539 |
msgstr "Rechercher dans les photos"
|
16540 |
|
16541 |
-
#: wppa-setup.php:
|
16542 |
msgid ""
|
16543 |
"The uploads directory does not exist, please do a regular WP upload first."
|
16544 |
msgstr ""
|
16545 |
"Le répertoire de chargement (uploads) n'existe pas, veuillez d'abord faire un "
|
16546 |
"chargement basique via WordPress."
|
16547 |
|
16548 |
-
#: wppa-setup.php:
|
16549 |
msgid "Successfully created uploads directory."
|
16550 |
msgstr "Répertoire de chargement (uploads) créé avec succès."
|
16551 |
|
16552 |
-
#: wppa-setup.php:
|
16553 |
msgid "Could not create the wppa directory."
|
16554 |
msgstr "Impossible de créer le répertoire WPPA."
|
16555 |
|
16556 |
-
#: wppa-setup.php:
|
16557 |
msgid "Successfully created wppa directory."
|
16558 |
msgstr "Répertoire WPPA créé avec succès."
|
16559 |
|
16560 |
-
#: wppa-setup.php:
|
16561 |
msgid "Could not create the wppa thumbs directory."
|
16562 |
msgstr "Impossible de créer le répertoire de vignettes WPPA."
|
16563 |
|
16564 |
-
#: wppa-setup.php:
|
16565 |
msgid "Successfully created wppa thumbs directory."
|
16566 |
msgstr "Répertoire des vignettes WPPA créé avec succès."
|
16567 |
|
16568 |
-
#: wppa-setup.php:
|
16569 |
msgid "Could not create the wppa watermarks directory."
|
16570 |
msgstr "Impossible de créer le répertoire des filigranes WPPA."
|
16571 |
|
16572 |
-
#: wppa-setup.php:
|
16573 |
msgid "Successfully created wppa watermarks directory."
|
16574 |
msgstr "Répertoire des filigranes WPPA créé avec succès."
|
16575 |
|
16576 |
-
#: wppa-setup.php:
|
16577 |
msgid "Could not create the wppa fonts directory."
|
16578 |
msgstr "Impossible de créer le répertoire de fontes WPPA."
|
16579 |
|
16580 |
-
#: wppa-setup.php:
|
16581 |
msgid "Successfully created wppa fonts directory."
|
16582 |
msgstr "Répertoire de fontes WPPA créé avec succès."
|
16583 |
|
16584 |
-
#: wppa-setup.php:
|
16585 |
msgid "Unable to create depot directory."
|
16586 |
msgstr "Impossible de créer le répertoire de dépôt WPPA."
|
16587 |
|
16588 |
-
#: wppa-setup.php:
|
16589 |
msgid "Successfully created wppa depot directory."
|
16590 |
msgstr "Répertoire de dépôt WPPA créé avec succès."
|
16591 |
|
16592 |
-
#: wppa-setup.php:
|
16593 |
msgid "Unable to create user depot directory"
|
16594 |
msgstr "Impossible de créer le répertoire de dépôt utilisateur"
|
16595 |
|
16596 |
-
#: wppa-setup.php:
|
16597 |
msgid "Successfully created wppa user depot directory."
|
16598 |
msgstr "Répertoire de dépôt utilisateur WPPA créé avec succès."
|
16599 |
|
16600 |
-
#: wppa-setup.php:
|
16601 |
msgid "Unable to create temp directory"
|
16602 |
msgstr "Impossible de créer le répertoire temporaire"
|
16603 |
|
16604 |
-
#: wppa-setup.php:
|
16605 |
msgid "Successfully created temp directory."
|
16606 |
msgstr "Répertoire temporaire créé avec succès."
|
16607 |
|
16608 |
-
#: wppa-setup.php:
|
16609 |
#, php-format
|
16610 |
msgid ""
|
16611 |
"Ask your administrator to give you more rights, or create <b>%s</b> manually "
|
@@ -16895,7 +16892,7 @@ msgid "Link Title ( tooltip ):"
|
|
16895 |
msgstr "Lien titre ( tooltip ):"
|
16896 |
|
16897 |
#: wppa-thumbnail-widget.php:198 wppa-topten-widget.php:342
|
16898 |
-
#: wppa-upldr-widget.php:
|
16899 |
msgid "Sort by:"
|
16900 |
msgstr "Trier par:"
|
16901 |
|
@@ -17358,7 +17355,7 @@ msgstr "Le(s) album(s) à utiliser:"
|
|
17358 |
msgid "Please select one or more albums"
|
17359 |
msgstr "Sélectionner un ou plus album(s)"
|
17360 |
|
17361 |
-
#: wppa-tinymce-shortcodes.php:309 wppa-upldr-widget.php:
|
17362 |
msgid "All albums"
|
17363 |
msgstr "Tous les albums"
|
17364 |
|
@@ -17547,27 +17544,27 @@ msgstr "Photos de l'utilisateur qui les a chargées"
|
|
17547 |
msgid "User uploaded photos"
|
17548 |
msgstr "Photos chargées par l'utilisateur"
|
17549 |
|
17550 |
-
#: wppa-upldr-widget.php:
|
17551 |
msgid "User Photos"
|
17552 |
msgstr "Photos de l'utilisateur"
|
17553 |
|
17554 |
-
#: wppa-upldr-widget.php:
|
17555 |
msgid "Number of photos"
|
17556 |
msgstr "Nombre de photos"
|
17557 |
|
17558 |
-
#: wppa-upldr-widget.php:
|
17559 |
msgid "Most recent photo"
|
17560 |
msgstr "Photo la plus récente"
|
17561 |
|
17562 |
-
#: wppa-upldr-widget.php:
|
17563 |
msgid "Ignore:"
|
17564 |
msgstr "Ignorer:"
|
17565 |
|
17566 |
-
#: wppa-upldr-widget.php:
|
17567 |
msgid "Enter loginnames seperated by commas"
|
17568 |
msgstr "Entrer les identifiants séparés par des virgules"
|
17569 |
|
17570 |
-
#: wppa-upldr-widget.php:
|
17571 |
msgid "Look only in albums (including sub-albums):"
|
17572 |
msgstr "Regarder uniquement dans les albums (et les fils):"
|
17573 |
|
@@ -18222,63 +18219,63 @@ msgstr "--- Ngg Galleries --- "
|
|
18222 |
msgid "Rating: %s"
|
18223 |
msgstr "Vote: %s"
|
18224 |
|
18225 |
-
#: wppa-utils.php:
|
18226 |
msgid "Notification of inappropriate image"
|
18227 |
msgstr "Notification d'image inappropriée"
|
18228 |
|
18229 |
-
#: wppa-utils.php:
|
18230 |
#, php-format
|
18231 |
msgid "Photo %s has been marked as inappropriate by %s different visitors."
|
18232 |
msgstr ""
|
18233 |
"La photo %s a été marquée comme inappropriée par %s visiteurs différents."
|
18234 |
|
18235 |
-
#: wppa-utils.php:
|
18236 |
msgid "The status has been changed to 'pending'."
|
18237 |
msgstr "Le statut est passé à \"pending\"."
|
18238 |
|
18239 |
-
#: wppa-utils.php:
|
18240 |
msgid "It has been deleted."
|
18241 |
msgstr "A été effacé."
|
18242 |
|
18243 |
-
#: wppa-utils.php:
|
18244 |
msgid "Your photo has a new approved comment"
|
18245 |
msgstr "Votre photo a un nouveau commentaire approuvé"
|
18246 |
|
18247 |
-
#: wppa-utils.php:
|
18248 |
msgid "From:"
|
18249 |
msgstr "De:"
|
18250 |
|
18251 |
-
#: wppa-utils.php:
|
18252 |
msgid "Approved comment on photo"
|
18253 |
msgstr "Approuvé commentaire sur photo"
|
18254 |
|
18255 |
-
#: wppa-utils.php:
|
18256 |
#, php-format
|
18257 |
msgid "The visitors email address is: <a href=\"mailto:%s\">%s</a>"
|
18258 |
msgstr "L'adresse email du visiteur est: <a href=\"mailto:%s\">%s</a>"
|
18259 |
|
18260 |
-
#: wppa-utils.php:
|
18261 |
#, php-format
|
18262 |
msgid "The visitor says his email address is: <a href=\"mailto:%s\">%s</a>"
|
18263 |
msgstr "Le visiteur dit que son adresse email est: <a href=\"mailto:%s\">%s</a>"
|
18264 |
|
18265 |
-
#: wppa-utils.php:
|
18266 |
#, php-format
|
18267 |
msgid ""
|
18268 |
"This message is automaticly generated at %s. It is useless to respond to it."
|
18269 |
msgstr "Ce message est généré automatiquement à %s. Il est inutile d'y répondre."
|
18270 |
|
18271 |
-
#: wppa-utils.php:
|
18272 |
#, php-format
|
18273 |
msgid "Time out after processing %s items."
|
18274 |
msgstr "Time out après traitement de %s objets."
|
18275 |
|
18276 |
-
#: wppa-utils.php:
|
18277 |
#, php-format
|
18278 |
msgid "Time out after processing %s items. Please restart this operation"
|
18279 |
msgstr "Time out après traitement de %s objets. Recommencer l'opération"
|
18280 |
|
18281 |
-
#: wppa-utils.php:
|
18282 |
msgid "There are no ratings between"
|
18283 |
msgstr "Il n’y a aucune cote entre"
|
18284 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP Photo Album Plus\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2016-06-12 14:02+0200\n"
|
6 |
+
"PO-Revision-Date: 2016-06-12 14:05+0200\n"
|
7 |
"Last-Translator: J.N. Breetvelt <OpaJaap@OpaJaap.nl>\n"
|
8 |
"Language-Team: French <kde-i18n-doc@kde.org>\n"
|
9 |
"Language: fr_FR\n"
|
34 |
#: wppa-album-admin-autosave.php:1524 wppa-album-admin-autosave.php:1598
|
35 |
#: wppa-album-admin-autosave.php:1709 wppa-album-admin-autosave.php:2031
|
36 |
#: wppa-comment-admin.php:318 wppa-comment-admin.php:387
|
37 |
+
#: wppa-comment-admin.php:405 wppa-setup.php:1251 wppa-thumbnails.php:638
|
38 |
msgid "Edit"
|
39 |
msgstr "Modifier"
|
40 |
|
266 |
msgstr "Widget \"Photo du jour\""
|
267 |
|
268 |
#: wppa-admin.php:67 wppa-adminbar.php:89 wppa-potd-widget.php:60
|
269 |
+
#: wppa-settings-autosave.php:5923 wppa-setup.php:1522
|
270 |
msgid "Photo of the day"
|
271 |
msgstr "Photo du jour"
|
272 |
|
342 |
#: wppa-slideshow-widget.php:198 wppa-stereo-widget.php:68
|
343 |
#: wppa-super-view-widget.php:73 wppa-tagcloud-widget.php:68
|
344 |
#: wppa-thumbnail-widget.php:184 wppa-topten-widget.php:323
|
345 |
+
#: wppa-upldr-widget.php:176 wppa-upload-widget.php:83 wppa-widget-admin.php:238
|
346 |
msgid "Title:"
|
347 |
msgstr "Titre:"
|
348 |
|
1362 |
msgstr "Modifier l'information de la photo excepté copier et déplacer"
|
1363 |
|
1364 |
#: wppa-album-admin-autosave.php:82 wppa-album-admin-autosave.php:784
|
1365 |
+
#: wppa-setup.php:1252
|
1366 |
msgid "Edit photo information"
|
1367 |
msgstr "Éditer les infos de la photo"
|
1368 |
|
2339 |
#: wppa-breadcrumb.php:151 wppa-breadcrumb.php:158 wppa-breadcrumb.php:382
|
2340 |
#: wppa-breadcrumb.php:384 wppa-breadcrumb.php:390 wppa-breadcrumb.php:392
|
2341 |
#: wppa-breadcrumb.php:400 wppa-breadcrumb.php:416 wppa-breadcrumb.php:429
|
2342 |
+
#: wppa-breadcrumb.php:435 wppa-utils.php:1696 wppa-utils.php:2344
|
2343 |
msgid "and"
|
2344 |
msgstr "et"
|
2345 |
|
2399 |
msgid "--- all separate albums ---"
|
2400 |
msgstr "--- tous albums séparés ---"
|
2401 |
|
2402 |
+
#: wppa-album-navigator-widget.php:102 wppa-common-functions.php:1695
|
2403 |
#: wppa-items.php:405
|
2404 |
msgid "--- owner/public ---"
|
2405 |
msgstr "--- Propriétaire / publique ---"
|
2530 |
msgid "Rating count:"
|
2531 |
msgstr "Nombre de notes:"
|
2532 |
|
2533 |
+
#: wppa-bestof-widget.php:198 wppa-common-functions.php:1677 wppa-items.php:393
|
2534 |
#: wppa-settings-autosave.php:1375 wppa-settings-autosave.php:1724
|
2535 |
#: wppa-settings-autosave.php:3657 wppa-settings-autosave.php:3671
|
2536 |
#: wppa-settings-autosave.php:3859 wppa-settings-autosave.php:3973
|
2663 |
msgid "Social media landing page"
|
2664 |
msgstr "Social media landing page"
|
2665 |
|
2666 |
+
#: wppa-boxes-html.php:1269 wppa-utils.php:1696
|
2667 |
#, php-format
|
2668 |
msgid "See this image on %s"
|
2669 |
msgstr "Voir cette image sur %s"
|
3199 |
msgid "Email:"
|
3200 |
msgstr "Email:"
|
3201 |
|
3202 |
+
#: wppa-comment-admin.php:80 wppa-utils.php:1001
|
3203 |
msgid "Comment:"
|
3204 |
msgstr "Commentaire:"
|
3205 |
|
3514 |
"devriez pas charger des images plus grandes que : <strong>%d x %d (%2.1f MP)</"
|
3515 |
"strong>"
|
3516 |
|
3517 |
+
#: wppa-common-functions.php:1671
|
3518 |
msgid "- select an album -"
|
3519 |
msgstr "- Choisir un album -"
|
3520 |
|
3521 |
+
#: wppa-common-functions.php:1683 wppa-items.php:401 wppa-multitag-widget.php:76
|
3522 |
#: wppa-multitag-widget.php:84 wppa-slideshow-widget.php:199
|
3523 |
#: wppa-tagcloud-widget.php:71 wppa-tagcloud-widget.php:79
|
3524 |
msgid "--- all ---"
|
3525 |
msgstr "--- tout ---"
|
3526 |
|
3527 |
+
#: wppa-common-functions.php:1689
|
3528 |
msgid "--- generic ---"
|
3529 |
msgstr "--- générique ---"
|
3530 |
|
3531 |
+
#: wppa-common-functions.php:1706
|
3532 |
msgid "--- multiple see below ---"
|
3533 |
msgstr "--- multiples voir ci-dessous ---"
|
3534 |
|
3535 |
+
#: wppa-common-functions.php:1712
|
3536 |
msgid "--- a selection box ---"
|
3537 |
msgstr "--- une sélection ---"
|
3538 |
|
3539 |
+
#: wppa-common-functions.php:1751 wppa-items.php:397
|
3540 |
#: wppa-settings-autosave.php:7815 wppa-settings-autosave.php:7871
|
3541 |
#: wppa-upload.php:1529
|
3542 |
msgid "--- separate ---"
|
3543 |
msgstr "--- séparé ---"
|
3544 |
|
3545 |
+
#: wppa-common-functions.php:1852
|
3546 |
msgid "Photo id ="
|
3547 |
msgstr "ID photo ="
|
3548 |
|
3549 |
+
#: wppa-common-functions.php:1852
|
3550 |
msgid "Value ="
|
3551 |
msgstr "Valeur ="
|
3552 |
|
3598 |
msgid "Dec"
|
3599 |
msgstr "Dec"
|
3600 |
|
3601 |
+
#: wppa-encrypt.php:141
|
3602 |
msgid "Invalid photo identifier:"
|
3603 |
msgstr "Identifiant de photo incorrect:"
|
3604 |
|
3605 |
+
#: wppa-encrypt.php:197
|
3606 |
msgid "Invalid album identifier:"
|
3607 |
msgstr "Identifiant d'album incorrect"
|
3608 |
|
3610 |
msgid "n.a."
|
3611 |
msgstr "Non applicable"
|
3612 |
|
3613 |
+
#: wppa-exif-iptc-common.php:239 wppa-utils.php:2576
|
3614 |
msgid "Not Defined"
|
3615 |
msgstr "Non défini"
|
3616 |
|
3617 |
+
#: wppa-exif-iptc-common.php:240 wppa-utils.php:2577
|
3618 |
msgid "Manual"
|
3619 |
msgstr "Manuel"
|
3620 |
|
3621 |
+
#: wppa-exif-iptc-common.php:241 wppa-utils.php:2578
|
3622 |
msgid "Program AE"
|
3623 |
msgstr "Programme AE"
|
3624 |
|
3625 |
+
#: wppa-exif-iptc-common.php:242 wppa-utils.php:2579
|
3626 |
msgid "Aperture-priority AE"
|
3627 |
msgstr "Priorité ouverture AE"
|
3628 |
|
3629 |
+
#: wppa-exif-iptc-common.php:243 wppa-utils.php:2580
|
3630 |
msgid "Shutter speed priority AE"
|
3631 |
msgstr "Priorité vitesse d'obturation AE"
|
3632 |
|
3633 |
+
#: wppa-exif-iptc-common.php:244 wppa-utils.php:2581
|
3634 |
msgid "Creative (Slow speed)"
|
3635 |
msgstr "Créatif (vitesse lente)"
|
3636 |
|
3637 |
+
#: wppa-exif-iptc-common.php:245 wppa-utils.php:2582
|
3638 |
msgid "Action (High speed)"
|
3639 |
msgstr "Action (vitesse haute)"
|
3640 |
|
3641 |
+
#: wppa-exif-iptc-common.php:246 wppa-utils.php:2583
|
3642 |
msgid "Portrait"
|
3643 |
msgstr "Portrait"
|
3644 |
|
3645 |
+
#: wppa-exif-iptc-common.php:247 wppa-utils.php:2584
|
3646 |
msgid "Landscape"
|
3647 |
msgstr "Paysage"
|
3648 |
|
3649 |
+
#: wppa-exif-iptc-common.php:248 wppa-utils.php:2585
|
3650 |
msgid "Bulb"
|
3651 |
msgstr "Ampoule électrique"
|
3652 |
|
3653 |
+
#: wppa-exif-iptc-common.php:270 wppa-utils.php:2586
|
3654 |
msgid "Average"
|
3655 |
msgstr "Moyen"
|
3656 |
|
3657 |
+
#: wppa-exif-iptc-common.php:271 wppa-utils.php:2587
|
3658 |
msgid "Center-weighted average"
|
3659 |
msgstr "Mesure centrale pondérée"
|
3660 |
|
3661 |
+
#: wppa-exif-iptc-common.php:272 wppa-utils.php:2588
|
3662 |
msgid "Spot"
|
3663 |
msgstr "Spot"
|
3664 |
|
3665 |
+
#: wppa-exif-iptc-common.php:273 wppa-utils.php:2589
|
3666 |
msgid "Multi-spot"
|
3667 |
msgstr "Multi-spot"
|
3668 |
|
3669 |
+
#: wppa-exif-iptc-common.php:274 wppa-utils.php:2590
|
3670 |
msgid "Multi-segment"
|
3671 |
msgstr "Multi-segments"
|
3672 |
|
3673 |
+
#: wppa-exif-iptc-common.php:275 wppa-utils.php:2591
|
3674 |
msgid "Partial"
|
3675 |
msgstr "Partiel"
|
3676 |
|
3677 |
#: wppa-exif-iptc-common.php:276 wppa-settings-autosave.php:4737
|
3678 |
+
#: wppa-utils.php:2592
|
3679 |
msgid "Other"
|
3680 |
msgstr "Autre"
|
3681 |
|
3682 |
+
#: wppa-exif-iptc-common.php:312 wppa-utils.php:2593
|
3683 |
msgid "No Flash"
|
3684 |
msgstr "Pas de flash"
|
3685 |
|
3686 |
+
#: wppa-exif-iptc-common.php:314 wppa-utils.php:2594
|
3687 |
msgid "Fired"
|
3688 |
msgstr "Fired"
|
3689 |
|
3690 |
+
#: wppa-exif-iptc-common.php:316 wppa-utils.php:2595
|
3691 |
msgid "Fired, Return not detected"
|
3692 |
msgstr "Fired, Retour non détecté"
|
3693 |
|
3694 |
+
#: wppa-exif-iptc-common.php:318 wppa-utils.php:2596
|
3695 |
msgid "Fired, Return detected"
|
3696 |
msgstr "Fired, Retour détecté"
|
3697 |
|
3698 |
+
#: wppa-exif-iptc-common.php:320 wppa-utils.php:2597
|
3699 |
msgid "On, Did not fire"
|
3700 |
msgstr "Activé, Did not fire"
|
3701 |
|
3702 |
+
#: wppa-exif-iptc-common.php:322 wppa-utils.php:2598
|
3703 |
msgid "On, Fired"
|
3704 |
msgstr "Activé, Fired"
|
3705 |
|
3706 |
+
#: wppa-exif-iptc-common.php:324 wppa-utils.php:2599
|
3707 |
msgid "On, Return not detected"
|
3708 |
msgstr "Activé, Retour non détecté"
|
3709 |
|
3710 |
+
#: wppa-exif-iptc-common.php:326 wppa-utils.php:2600
|
3711 |
msgid "On, Return detected"
|
3712 |
msgstr "Activé, Retour détecté"
|
3713 |
|
3714 |
+
#: wppa-exif-iptc-common.php:328 wppa-utils.php:2601
|
3715 |
msgid "Off, Did not fire"
|
3716 |
msgstr "Désactivé, Did not fire"
|
3717 |
|
3718 |
+
#: wppa-exif-iptc-common.php:330 wppa-utils.php:2602
|
3719 |
msgid "Off, Did not fire, Return not detected"
|
3720 |
msgstr "Désactivé, Did not fire, Retour non détecté"
|
3721 |
|
3722 |
+
#: wppa-exif-iptc-common.php:332 wppa-utils.php:2603
|
3723 |
msgid "Auto, Did not fire"
|
3724 |
msgstr "Auto, Did not fire"
|
3725 |
|
3726 |
+
#: wppa-exif-iptc-common.php:334 wppa-utils.php:2604
|
3727 |
msgid "Auto, Fired"
|
3728 |
msgstr "Auto, Fired"
|
3729 |
|
3730 |
+
#: wppa-exif-iptc-common.php:336 wppa-utils.php:2605
|
3731 |
msgid "Auto, Fired, Return not detected"
|
3732 |
msgstr "Auto, Fired, Retour non détecté"
|
3733 |
|
3734 |
+
#: wppa-exif-iptc-common.php:338 wppa-utils.php:2606
|
3735 |
msgid "Auto, Fired, Return detected"
|
3736 |
msgstr "Auto, Fired, Retour détecté"
|
3737 |
|
3738 |
+
#: wppa-exif-iptc-common.php:340 wppa-utils.php:2607
|
3739 |
msgid "No flash function"
|
3740 |
msgstr "Pas de fonction flash"
|
3741 |
|
3742 |
+
#: wppa-exif-iptc-common.php:342 wppa-utils.php:2608
|
3743 |
msgid "Off, No flash function"
|
3744 |
msgstr "Désactivé, Pas de fonction flash"
|
3745 |
|
3746 |
+
#: wppa-exif-iptc-common.php:344 wppa-utils.php:2609
|
3747 |
msgid "Fired, Red-eye reduction"
|
3748 |
msgstr "Fired, Réduction yeux rouges"
|
3749 |
|
3750 |
+
#: wppa-exif-iptc-common.php:346 wppa-utils.php:2610
|
3751 |
msgid "Fired, Red-eye reduction, Return not detected"
|
3752 |
msgstr "Fired, Réduction yeux rouges, Retour non détecté"
|
3753 |
|
3754 |
+
#: wppa-exif-iptc-common.php:348 wppa-utils.php:2611
|
3755 |
msgid "Fired, Red-eye reduction, Return detected"
|
3756 |
msgstr "Fired, Réduction yeux rouges, Retour détecté"
|
3757 |
|
3758 |
+
#: wppa-exif-iptc-common.php:350 wppa-utils.php:2612
|
3759 |
msgid "On, Red-eye reduction"
|
3760 |
msgstr "Activé, Réduction yeux rouges"
|
3761 |
|
3762 |
+
#: wppa-exif-iptc-common.php:352 wppa-utils.php:2613
|
3763 |
msgid "Red-eye reduction, Return not detected"
|
3764 |
msgstr "Réduction yeux rouges, Retour non détecté"
|
3765 |
|
3766 |
+
#: wppa-exif-iptc-common.php:354 wppa-utils.php:2614
|
3767 |
msgid "On, Red-eye reduction, Return detected"
|
3768 |
msgstr "Activé, Réduction yeux rouges, Retour détecté"
|
3769 |
|
3770 |
+
#: wppa-exif-iptc-common.php:356 wppa-utils.php:2615
|
3771 |
msgid "Off, Red-eye reduction"
|
3772 |
msgstr "Désactivé, Réduction yeux rouges"
|
3773 |
|
3774 |
+
#: wppa-exif-iptc-common.php:358 wppa-utils.php:2616
|
3775 |
msgid "Auto, Did not fire, Red-eye reduction"
|
3776 |
msgstr "Auto, Did not fire, Réduction yeux rouges"
|
3777 |
|
3778 |
+
#: wppa-exif-iptc-common.php:360 wppa-utils.php:2617
|
3779 |
msgid "Auto, Fired, Red-eye reduction"
|
3780 |
msgstr "Auto, Fired, Réduction yeux rouges"
|
3781 |
|
3782 |
+
#: wppa-exif-iptc-common.php:362 wppa-utils.php:2618
|
3783 |
msgid "Auto, Fired, Red-eye reduction, Return not detected"
|
3784 |
msgstr "Auto, Fired, Réduction yeux rouges, Retour non détecté"
|
3785 |
|
3786 |
+
#: wppa-exif-iptc-common.php:364 wppa-utils.php:2619
|
3787 |
msgid "Auto, Fired, Red-eye reduction, Return detected"
|
3788 |
msgstr "Auto, Fired, Réduction yeux rouges, Retour détecté"
|
3789 |
|
4115 |
msgid "Details:"
|
4116 |
msgstr "Détails:"
|
4117 |
|
4118 |
+
#: wppa-functions.php:4459 wppa-upload.php:1432 wppa-utils.php:906
|
4119 |
+
#: wppa-utils.php:918
|
4120 |
msgid "Manage photo"
|
4121 |
msgstr "Gérer photo"
|
4122 |
|
4971 |
msgid "This album contains refound lost photos"
|
4972 |
msgstr "Cet album contient des photos perdues"
|
4973 |
|
4974 |
+
#: wppa-maintenance.php:153
|
4975 |
msgid "Feature must be enabled in Table IV-A28 first"
|
4976 |
msgstr "Feature doit être activé dans le Table IV-A28 premier"
|
4977 |
|
4978 |
+
#: wppa-maintenance.php:726 wppa-maintenance.php:742
|
4979 |
#: wppa-photo-admin-autosave.php:1742 wppa-photo-admin-autosave.php:1763
|
4980 |
#: wppa-settings-autosave.php:4359 wppa-setup.php:350
|
4981 |
msgid "Required"
|
4982 |
msgstr "requis"
|
4983 |
|
4984 |
+
#: wppa-maintenance.php:812
|
4985 |
msgid "There are no index items."
|
4986 |
msgstr "Il n'y a pas d'entités index."
|
4987 |
|
4988 |
+
#: wppa-maintenance.php:825
|
4989 |
msgid "There are no error log messages"
|
4990 |
msgstr "Il n'y a pas de journal d'erreurs"
|
4991 |
|
4992 |
+
#: wppa-maintenance.php:893
|
4993 |
msgid "There are no ratings"
|
4994 |
msgstr "Il n'y a pas de notes"
|
4995 |
|
4996 |
+
#: wppa-maintenance.php:961
|
4997 |
msgid "There are no active sessions"
|
4998 |
msgstr "Il n'y a pas de sessions actives"
|
4999 |
|
5000 |
+
#: wppa-maintenance.php:1022
|
5001 |
msgid "There are no comments"
|
5002 |
msgstr "Il n’y a aucun commentaire"
|
5003 |
|
5124 |
msgid "There are too many registered users in the system for this widget"
|
5125 |
msgstr "Il y a trop d'utilisateurs enregistrés dans le système pour ce widget"
|
5126 |
|
5127 |
+
#: wppa-non-admin.php:845 wppa-upldr-widget.php:125 wppa-upldr-widget.php:132
|
5128 |
msgid "Photos uploaded by"
|
5129 |
msgstr "Photos chargées par"
|
5130 |
|
7833 |
"Indique si une barre de chemin de fer doit être affichée au dessus des "
|
7834 |
"affichages Related Photos."
|
7835 |
|
7836 |
+
#: wppa-settings-autosave.php:1545 wppa-setup.php:719
|
7837 |
msgid "Home"
|
7838 |
msgstr "Accueil"
|
7839 |
|
12796 |
msgstr "La photo chargée nécessite une modération."
|
12797 |
|
12798 |
#: wppa-settings-autosave.php:6069
|
|
|
12799 |
msgid ""
|
12800 |
"If checked, photos uploaded by users who do not have photo album admin access "
|
12801 |
"rights need moderation."
|
12802 |
msgstr ""
|
12803 |
+
"Si elle est cochée, les photos téléchargées par les utilisateurs qui ne "
|
12804 |
+
"disposent pas des droits d'accès album photo admin besoin de modération."
|
12805 |
|
12806 |
#: wppa-settings-autosave.php:6070
|
12807 |
#, fuzzy
|
14365 |
msgstr "Meta tags pour toutes les photos de recommandés."
|
14366 |
|
14367 |
#: wppa-settings-autosave.php:7574
|
|
|
14368 |
msgid ""
|
14369 |
"If checked, the header of the page will contain metatags that refer to all "
|
14370 |
"featured photo files."
|
14371 |
msgstr ""
|
14372 |
+
"Si elle est cocheé, l’en-tête de la page contiendra les metatags qui font "
|
14373 |
"référence à tous les fichiers photo recommandés."
|
14374 |
|
14375 |
#: wppa-settings-autosave.php:7575
|
14678 |
msgid "Login name"
|
14679 |
msgstr "Identifiant"
|
14680 |
|
14681 |
+
#: wppa-settings-autosave.php:7860 wppa-upldr-widget.php:182
|
14682 |
msgid "Display name"
|
14683 |
msgstr "Afficher le nom"
|
14684 |
|
14780 |
msgstr "Copiez timestamp lors de la copie de photo."
|
14781 |
|
14782 |
#: wppa-settings-autosave.php:7922
|
|
|
14783 |
msgid "If checked, the copied photo is not \"new\""
|
14784 |
+
msgstr "Si elle est cochée, la photo copiée n'est pas \"nouveau\""
|
14785 |
|
14786 |
#: wppa-settings-autosave.php:7929
|
14787 |
msgid "Copy Owner"
|
16430 |
"Si vous omettez ceci, le lien ne fonctionnera pas du tout ou se contentera de "
|
16431 |
"rafraîchir la page."
|
16432 |
|
16433 |
+
#: wppa-setup.php:507
|
16434 |
msgid "IMPORTANT UPGRADE NOTICE"
|
16435 |
msgstr "MESSAGE IMPORTANT DE MISE A NIVEAU"
|
16436 |
|
16437 |
+
#: wppa-setup.php:508
|
16438 |
msgid ""
|
16439 |
"Please CHECK your customized WPPA-STYLE.CSS file against the newly supplied "
|
16440 |
"one. You may wish to add or modify some attributes. Be aware of the fact that "
|
16445 |
"certains attributs. Soyez conscient du fait que la plupart des paramètres "
|
16446 |
"peuvent maintenant être réglés dans la page d'administration."
|
16447 |
|
16448 |
+
#: wppa-setup.php:509
|
16449 |
msgid ""
|
16450 |
"Please REPLACE your customized WPPA-THEME.PHP file by the newly supplied one, "
|
16451 |
"or just remove it from your theme directory. You may modify it later if you "
|
16457 |
"thème. Vous pouvez le modifier plus tard si vous voulez. La version "
|
16458 |
"personnalisée courante n'est PAS compatible avec cette version du plugin."
|
16459 |
|
16460 |
+
#: wppa-setup.php:537
|
16461 |
#, php-format
|
16462 |
msgid "WPPA+ successfully updated in multi site mode to db version %s."
|
16463 |
msgstr ""
|
16464 |
"WPPA+ s'est mis à jour avec succès en mode multi site vers la version de base "
|
16465 |
"de donnée %s."
|
16466 |
|
16467 |
+
#: wppa-setup.php:540
|
16468 |
#, php-format
|
16469 |
msgid "WPPA+ successfully updated in single site mode to db version %s."
|
16470 |
msgstr ""
|
16471 |
"WPPA+ s'est mis à jour avec succès en mode mono site vers la version de base "
|
16472 |
"de donnée %s."
|
16473 |
|
16474 |
+
#: wppa-setup.php:545
|
16475 |
msgid "An error occurred during update"
|
16476 |
msgstr "Erreur durant le la mise à jour"
|
16477 |
|
16478 |
+
#: wppa-setup.php:848
|
16479 |
msgid ""
|
16480 |
"<span style=\"color:red\" >Warning: Do not upload copyrighted material!</span>"
|
16481 |
msgstr ""
|
16482 |
"<span style=\"color:red\" >Attention: Ne chargez pas de fichiers sous "
|
16483 |
"copyright!!</span>"
|
16484 |
|
16485 |
+
#: wppa-setup.php:857 wppa-setup.php:861 wppa-setup.php:865
|
16486 |
msgid "Select tags:"
|
16487 |
msgstr "Choisir les tags:"
|
16488 |
|
16489 |
+
#: wppa-setup.php:868
|
16490 |
msgid "Enter new tags:"
|
16491 |
msgstr "Entrez les nouveaux tags:"
|
16492 |
|
16493 |
+
#: wppa-setup.php:1052
|
16494 |
msgid "Vote for me!"
|
16495 |
msgstr "Votez pour moi !"
|
16496 |
|
16497 |
+
#: wppa-setup.php:1053
|
16498 |
msgid "Voted for me"
|
16499 |
msgstr "Ont voté pour moi"
|
16500 |
|
16501 |
+
#: wppa-setup.php:1399
|
16502 |
msgid "NEW"
|
16503 |
msgstr "NOUVEAU"
|
16504 |
|
16505 |
+
#: wppa-setup.php:1401
|
16506 |
msgid "MODIFIED"
|
16507 |
msgstr "MODIFIE"
|
16508 |
|
16509 |
+
#: wppa-setup.php:1451
|
16510 |
msgid "Search in current section"
|
16511 |
msgstr "Rechercher dans la section courante"
|
16512 |
|
16513 |
+
#: wppa-setup.php:1452
|
16514 |
msgid "Search in current results"
|
16515 |
msgstr "Rechercher dans les résultats courants"
|
16516 |
|
16517 |
+
#: wppa-setup.php:1523
|
16518 |
msgid "Type your custom url here"
|
16519 |
msgstr "Tapez votre URL personnalisée ici"
|
16520 |
|
16521 |
+
#: wppa-setup.php:1524
|
16522 |
msgid "Type the title here"
|
16523 |
msgstr "Entrez ici le titre de la page"
|
16524 |
|
16525 |
+
#: wppa-setup.php:1536 wppa-topten-widget.php:13 wppa-topten-widget.php:48
|
16526 |
#: wppa-topten-widget.php:298
|
16527 |
msgid "Top Ten Photos"
|
16528 |
msgstr "Meilleures photos"
|
16529 |
|
16530 |
+
#: wppa-setup.php:1539 wppa-thumbnail-widget.php:13 wppa-thumbnail-widget.php:166
|
16531 |
msgid "Thumbnail Photos"
|
16532 |
msgstr "Vignettes"
|
16533 |
|
16534 |
+
#: wppa-setup.php:1542
|
16535 |
msgid "Search photos"
|
16536 |
msgstr "Rechercher dans les photos"
|
16537 |
|
16538 |
+
#: wppa-setup.php:1584
|
16539 |
msgid ""
|
16540 |
"The uploads directory does not exist, please do a regular WP upload first."
|
16541 |
msgstr ""
|
16542 |
"Le répertoire de chargement (uploads) n'existe pas, veuillez d'abord faire un "
|
16543 |
"chargement basique via WordPress."
|
16544 |
|
16545 |
+
#: wppa-setup.php:1588
|
16546 |
msgid "Successfully created uploads directory."
|
16547 |
msgstr "Répertoire de chargement (uploads) créé avec succès."
|
16548 |
|
16549 |
+
#: wppa-setup.php:1599
|
16550 |
msgid "Could not create the wppa directory."
|
16551 |
msgstr "Impossible de créer le répertoire WPPA."
|
16552 |
|
16553 |
+
#: wppa-setup.php:1603
|
16554 |
msgid "Successfully created wppa directory."
|
16555 |
msgstr "Répertoire WPPA créé avec succès."
|
16556 |
|
16557 |
+
#: wppa-setup.php:1613
|
16558 |
msgid "Could not create the wppa thumbs directory."
|
16559 |
msgstr "Impossible de créer le répertoire de vignettes WPPA."
|
16560 |
|
16561 |
+
#: wppa-setup.php:1617
|
16562 |
msgid "Successfully created wppa thumbs directory."
|
16563 |
msgstr "Répertoire des vignettes WPPA créé avec succès."
|
16564 |
|
16565 |
+
#: wppa-setup.php:1627
|
16566 |
msgid "Could not create the wppa watermarks directory."
|
16567 |
msgstr "Impossible de créer le répertoire des filigranes WPPA."
|
16568 |
|
16569 |
+
#: wppa-setup.php:1631
|
16570 |
msgid "Successfully created wppa watermarks directory."
|
16571 |
msgstr "Répertoire des filigranes WPPA créé avec succès."
|
16572 |
|
16573 |
+
#: wppa-setup.php:1641
|
16574 |
msgid "Could not create the wppa fonts directory."
|
16575 |
msgstr "Impossible de créer le répertoire de fontes WPPA."
|
16576 |
|
16577 |
+
#: wppa-setup.php:1645
|
16578 |
msgid "Successfully created wppa fonts directory."
|
16579 |
msgstr "Répertoire de fontes WPPA créé avec succès."
|
16580 |
|
16581 |
+
#: wppa-setup.php:1657
|
16582 |
msgid "Unable to create depot directory."
|
16583 |
msgstr "Impossible de créer le répertoire de dépôt WPPA."
|
16584 |
|
16585 |
+
#: wppa-setup.php:1661
|
16586 |
msgid "Successfully created wppa depot directory."
|
16587 |
msgstr "Répertoire de dépôt WPPA créé avec succès."
|
16588 |
|
16589 |
+
#: wppa-setup.php:1672
|
16590 |
msgid "Unable to create user depot directory"
|
16591 |
msgstr "Impossible de créer le répertoire de dépôt utilisateur"
|
16592 |
|
16593 |
+
#: wppa-setup.php:1676
|
16594 |
msgid "Successfully created wppa user depot directory."
|
16595 |
msgstr "Répertoire de dépôt utilisateur WPPA créé avec succès."
|
16596 |
|
16597 |
+
#: wppa-setup.php:1686
|
16598 |
msgid "Unable to create temp directory"
|
16599 |
msgstr "Impossible de créer le répertoire temporaire"
|
16600 |
|
16601 |
+
#: wppa-setup.php:1690
|
16602 |
msgid "Successfully created temp directory."
|
16603 |
msgstr "Répertoire temporaire créé avec succès."
|
16604 |
|
16605 |
+
#: wppa-setup.php:1698
|
16606 |
#, php-format
|
16607 |
msgid ""
|
16608 |
"Ask your administrator to give you more rights, or create <b>%s</b> manually "
|
16892 |
msgstr "Lien titre ( tooltip ):"
|
16893 |
|
16894 |
#: wppa-thumbnail-widget.php:198 wppa-topten-widget.php:342
|
16895 |
+
#: wppa-upldr-widget.php:180
|
16896 |
msgid "Sort by:"
|
16897 |
msgstr "Trier par:"
|
16898 |
|
17355 |
msgid "Please select one or more albums"
|
17356 |
msgstr "Sélectionner un ou plus album(s)"
|
17357 |
|
17358 |
+
#: wppa-tinymce-shortcodes.php:309 wppa-upldr-widget.php:210 wppa-utils.php:422
|
17359 |
msgid "All albums"
|
17360 |
msgstr "Tous les albums"
|
17361 |
|
17544 |
msgid "User uploaded photos"
|
17545 |
msgstr "Photos chargées par l'utilisateur"
|
17546 |
|
17547 |
+
#: wppa-upldr-widget.php:168
|
17548 |
msgid "User Photos"
|
17549 |
msgstr "Photos de l'utilisateur"
|
17550 |
|
17551 |
+
#: wppa-upldr-widget.php:183
|
17552 |
msgid "Number of photos"
|
17553 |
msgstr "Nombre de photos"
|
17554 |
|
17555 |
+
#: wppa-upldr-widget.php:184
|
17556 |
msgid "Most recent photo"
|
17557 |
msgstr "Photo la plus récente"
|
17558 |
|
17559 |
+
#: wppa-upldr-widget.php:188
|
17560 |
msgid "Ignore:"
|
17561 |
msgstr "Ignorer:"
|
17562 |
|
17563 |
+
#: wppa-upldr-widget.php:190
|
17564 |
msgid "Enter loginnames seperated by commas"
|
17565 |
msgstr "Entrer les identifiants séparés par des virgules"
|
17566 |
|
17567 |
+
#: wppa-upldr-widget.php:193
|
17568 |
msgid "Look only in albums (including sub-albums):"
|
17569 |
msgstr "Regarder uniquement dans les albums (et les fils):"
|
17570 |
|
18219 |
msgid "Rating: %s"
|
18220 |
msgstr "Vote: %s"
|
18221 |
|
18222 |
+
#: wppa-utils.php:904 wppa-utils.php:915 wppa-utils.php:926
|
18223 |
msgid "Notification of inappropriate image"
|
18224 |
msgstr "Notification d'image inappropriée"
|
18225 |
|
18226 |
+
#: wppa-utils.php:905 wppa-utils.php:916 wppa-utils.php:927
|
18227 |
#, php-format
|
18228 |
msgid "Photo %s has been marked as inappropriate by %s different visitors."
|
18229 |
msgstr ""
|
18230 |
"La photo %s a été marquée comme inappropriée par %s visiteurs différents."
|
18231 |
|
18232 |
+
#: wppa-utils.php:917
|
18233 |
msgid "The status has been changed to 'pending'."
|
18234 |
msgstr "Le statut est passé à \"pending\"."
|
18235 |
|
18236 |
+
#: wppa-utils.php:928
|
18237 |
msgid "It has been deleted."
|
18238 |
msgstr "A été effacé."
|
18239 |
|
18240 |
+
#: wppa-utils.php:995
|
18241 |
msgid "Your photo has a new approved comment"
|
18242 |
msgstr "Votre photo a un nouveau commentaire approuvé"
|
18243 |
|
18244 |
+
#: wppa-utils.php:998
|
18245 |
msgid "From:"
|
18246 |
msgstr "De:"
|
18247 |
|
18248 |
+
#: wppa-utils.php:1006
|
18249 |
msgid "Approved comment on photo"
|
18250 |
msgstr "Approuvé commentaire sur photo"
|
18251 |
|
18252 |
+
#: wppa-utils.php:1053
|
18253 |
#, php-format
|
18254 |
msgid "The visitors email address is: <a href=\"mailto:%s\">%s</a>"
|
18255 |
msgstr "L'adresse email du visiteur est: <a href=\"mailto:%s\">%s</a>"
|
18256 |
|
18257 |
+
#: wppa-utils.php:1058
|
18258 |
#, php-format
|
18259 |
msgid "The visitor says his email address is: <a href=\"mailto:%s\">%s</a>"
|
18260 |
msgstr "Le visiteur dit que son adresse email est: <a href=\"mailto:%s\">%s</a>"
|
18261 |
|
18262 |
+
#: wppa-utils.php:1066
|
18263 |
#, php-format
|
18264 |
msgid ""
|
18265 |
"This message is automaticly generated at %s. It is useless to respond to it."
|
18266 |
msgstr "Ce message est généré automatiquement à %s. Il est inutile d'y répondre."
|
18267 |
|
18268 |
+
#: wppa-utils.php:1273
|
18269 |
#, php-format
|
18270 |
msgid "Time out after processing %s items."
|
18271 |
msgstr "Time out après traitement de %s objets."
|
18272 |
|
18273 |
+
#: wppa-utils.php:1276 wppa-utils.php:1280
|
18274 |
#, php-format
|
18275 |
msgid "Time out after processing %s items. Please restart this operation"
|
18276 |
msgstr "Time out après traitement de %s objets. Recommencer l'opération"
|
18277 |
|
18278 |
+
#: wppa-utils.php:2341
|
18279 |
msgid "There are no ratings between"
|
18280 |
msgstr "Il n’y a aucune cote entre"
|
18281 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: opajaap
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source¤cy_code=USD&lc=US
|
4 |
Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto
|
5 |
-
Version: 6.4.
|
6 |
-
Stable tag: 6.4.
|
7 |
Author: J.N. Breetvelt
|
8 |
Author URI: http://www.opajaap.nl/
|
9 |
Requires at least: 3.9
|
@@ -180,6 +180,26 @@ Oh, just Google on 'picture resizer' and you will find a bunch of free programs
|
|
180 |
|
181 |
See for additional information: http://wppa.opajaap.nl/changelog/
|
182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
= 6.4.17 =
|
184 |
|
185 |
= Bug Fixes =
|
2 |
Contributors: opajaap
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source¤cy_code=USD&lc=US
|
4 |
Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto
|
5 |
+
Version: 6.4.18
|
6 |
+
Stable tag: 6.4.17
|
7 |
Author: J.N. Breetvelt
|
8 |
Author URI: http://www.opajaap.nl/
|
9 |
Requires at least: 3.9
|
180 |
|
181 |
See for additional information: http://wppa.opajaap.nl/changelog/
|
182 |
|
183 |
+
= 6.4.18 =
|
184 |
+
|
185 |
+
= Bug Fixes =
|
186 |
+
|
187 |
+
* Fixed a layout issue of lightbox on Edge: display was 5 px to low and it left a white line after closure on certain themes.
|
188 |
+
* Ticking the arrows on lightbox on mobile devices executed 'next' and 'previous' twice. Fixed.
|
189 |
+
* Changing background and border colors stopped working in 6.4.17. Fixed.
|
190 |
+
|
191 |
+
= New Features =
|
192 |
+
|
193 |
+
* Table I-A11: Sticky header size. To scroll the result of an ajax rendering to a lower position.
|
194 |
+
|
195 |
+
= Other Changes =
|
196 |
+
|
197 |
+
* Twitter image can now post the image directly on twitter. For this feature to work, it is required to fill in a twitter account name in Table II-C13.1.
|
198 |
+
There will no longer be pre-edited text in the tweet. There will be a subtitle to the image, but this does not count to the 140 chars. Leave the link in the tweet as it is.
|
199 |
+
* Various performance improveents.
|
200 |
+
* In shortcodes: album="$Albumname" will now return all albums with the supplied name.
|
201 |
+
* Provided a workaround for a php bug causing upload of selfies to fail.
|
202 |
+
|
203 |
= 6.4.17 =
|
204 |
|
205 |
= Bug Fixes =
|
wppa-admin-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
-
* Version 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -368,7 +368,7 @@ global $wpdb;
|
|
368 |
break;
|
369 |
case 2: // jpg
|
370 |
$err = '6';
|
371 |
-
$source =
|
372 |
break;
|
373 |
case 3: // png
|
374 |
$err = '7';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
368 |
break;
|
369 |
case 2: // jpg
|
370 |
$err = '6';
|
371 |
+
$source = wppa_imagecreatefromjpeg( $file );
|
372 |
break;
|
373 |
case 3: // png
|
374 |
$err = '7';
|
wppa-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
-
* Version 6.4.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -1731,7 +1731,7 @@ global $wppa_log_file;
|
|
1731 |
}
|
1732 |
}
|
1733 |
else switch ( $option ) {
|
1734 |
-
|
1735 |
case 'wppa_colwidth': // ?? fixed low high title
|
1736 |
wppa_ajax_check_range( $value, 'auto', '100', false, __( 'Column width.' , 'wp-photo-album-plus') );
|
1737 |
break;
|
@@ -1907,6 +1907,9 @@ global $wppa_log_file;
|
|
1907 |
case 'wppa_stop_symbol_bradius':
|
1908 |
wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol border radius', 'wp-photo-album-plus') );
|
1909 |
break;
|
|
|
|
|
|
|
1910 |
|
1911 |
case 'wppa_rating_clear':
|
1912 |
$iret1 = $wpdb->query( 'TRUNCATE TABLE '.WPPA_RATING );
|
@@ -2418,6 +2421,15 @@ global $wppa_log_file;
|
|
2418 |
// if off: set all statusses of videos to pending
|
2419 |
break;
|
2420 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2421 |
default:
|
2422 |
|
2423 |
wppa( 'error', '0' );
|
@@ -2425,12 +2437,12 @@ global $wppa_log_file;
|
|
2425 |
}
|
2426 |
|
2427 |
if ( wppa( 'error' ) ) {
|
2428 |
-
if ( ! $title ) $title = sprintf( __( 'Failed to set %s to %s'
|
2429 |
if ( ! $alert ) $alert .= wppa( 'out' );
|
2430 |
}
|
2431 |
else {
|
2432 |
wppa_update_option( $option, $value );
|
2433 |
-
if ( ! $title ) $title = sprintf( __( 'Setting %s updated to %s'
|
2434 |
}
|
2435 |
|
2436 |
// Save possible error
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
+
* Version 6.4.18
|
6 |
*
|
7 |
*/
|
8 |
|
1731 |
}
|
1732 |
}
|
1733 |
else switch ( $option ) {
|
1734 |
+
//wppa_log('obs', 'option '.$option.' attempt to set to '.$value);
|
1735 |
case 'wppa_colwidth': // ?? fixed low high title
|
1736 |
wppa_ajax_check_range( $value, 'auto', '100', false, __( 'Column width.' , 'wp-photo-album-plus') );
|
1737 |
break;
|
1907 |
case 'wppa_stop_symbol_bradius':
|
1908 |
wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol border radius', 'wp-photo-album-plus') );
|
1909 |
break;
|
1910 |
+
case 'wppa_sticky_header_size':
|
1911 |
+
wppa_ajax_check_range( $value, false, '0', '200', __('Sticky header size', 'wp-photo-album-plus') );
|
1912 |
+
break;
|
1913 |
|
1914 |
case 'wppa_rating_clear':
|
1915 |
$iret1 = $wpdb->query( 'TRUNCATE TABLE '.WPPA_RATING );
|
2421 |
// if off: set all statusses of videos to pending
|
2422 |
break;
|
2423 |
|
2424 |
+
case 'wppa_twitter_account':
|
2425 |
+
$value = sanitize_text_field( $value );
|
2426 |
+
$value = str_replace( ' ', '', $value );
|
2427 |
+
if ( substr( $value, 0, 1 ) != '@' ) {
|
2428 |
+
wppa( 'error', '4712' );
|
2429 |
+
$alert .= __( 'A Twitter account name must start with an at sign: @', 'wp-photo-album-plus' );
|
2430 |
+
}
|
2431 |
+
break;
|
2432 |
+
|
2433 |
default:
|
2434 |
|
2435 |
wppa( 'error', '0' );
|
2437 |
}
|
2438 |
|
2439 |
if ( wppa( 'error' ) ) {
|
2440 |
+
if ( ! $title ) $title = sprintf( __( 'Failed to set %s to %s', 'wp-photo-album-plus'), $option, $value );
|
2441 |
if ( ! $alert ) $alert .= wppa( 'out' );
|
2442 |
}
|
2443 |
else {
|
2444 |
wppa_update_option( $option, $value );
|
2445 |
+
if ( ! $title ) $title = sprintf( __( 'Setting %s updated to %s', 'wp-photo-album-plus'), $option, $value );
|
2446 |
}
|
2447 |
|
2448 |
// Save possible error
|
wppa-album-covers.php
CHANGED
@@ -889,6 +889,7 @@ global $wpdb;
|
|
889 |
wppa_out( "\n\t" .
|
890 |
'<a' .
|
891 |
' href="' . $link . '"' .
|
|
|
892 |
( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $id ) ) . '"' .
|
893 |
' data-videonatwidth="'.wppa_get_videox( $id ).'"' .
|
894 |
' data-videonatheight="'.wppa_get_videoy( $id ).'"' : '' ) .
|
@@ -929,6 +930,7 @@ global $wpdb;
|
|
929 |
else {
|
930 |
$href = $photolink['url'] == '#' ? '' : 'href="' . wppa_convert_to_pretty( $photolink['url'] ) . '" ';
|
931 |
wppa_out( '<a' .
|
|
|
932 |
' ' . $href .
|
933 |
' target="' . $photolink['target'] . '"' .
|
934 |
' title="' . $photolink['title'] . '"' .
|
@@ -1042,6 +1044,7 @@ global $wpdb;
|
|
1042 |
wppa_out(
|
1043 |
'<a' .
|
1044 |
' href="' . $link . '"' .
|
|
|
1045 |
( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $thumb['id'] ) ) . '"' .
|
1046 |
' data-videonatwidth="' . wppa_get_videox( $thumb['id'] ) . '"' .
|
1047 |
' data-videonatheight="' . wppa_get_videoy( $thumb['id'] ) . '"' : '' ) .
|
@@ -1081,6 +1084,7 @@ global $wpdb;
|
|
1081 |
wppa_out(
|
1082 |
'<a ' .
|
1083 |
$href .
|
|
|
1084 |
' target="' . $photolink['target'] . '"' .
|
1085 |
' title="' . $photolink['title'] . '"' .
|
1086 |
' onclick="' . $photolink['onclick'] . '"' .
|
889 |
wppa_out( "\n\t" .
|
890 |
'<a' .
|
891 |
' href="' . $link . '"' .
|
892 |
+
' style="border:0;"' .
|
893 |
( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $id ) ) . '"' .
|
894 |
' data-videonatwidth="'.wppa_get_videox( $id ).'"' .
|
895 |
' data-videonatheight="'.wppa_get_videoy( $id ).'"' : '' ) .
|
930 |
else {
|
931 |
$href = $photolink['url'] == '#' ? '' : 'href="' . wppa_convert_to_pretty( $photolink['url'] ) . '" ';
|
932 |
wppa_out( '<a' .
|
933 |
+
' style="border:0;"' .
|
934 |
' ' . $href .
|
935 |
' target="' . $photolink['target'] . '"' .
|
936 |
' title="' . $photolink['title'] . '"' .
|
1044 |
wppa_out(
|
1045 |
'<a' .
|
1046 |
' href="' . $link . '"' .
|
1047 |
+
' style="border:0;"' .
|
1048 |
( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $thumb['id'] ) ) . '"' .
|
1049 |
' data-videonatwidth="' . wppa_get_videox( $thumb['id'] ) . '"' .
|
1050 |
' data-videonatheight="' . wppa_get_videoy( $thumb['id'] ) . '"' : '' ) .
|
1084 |
wppa_out(
|
1085 |
'<a ' .
|
1086 |
$href .
|
1087 |
+
' style="border:0;"' .
|
1088 |
' target="' . $photolink['target'] . '"' .
|
1089 |
' title="' . $photolink['title'] . '"' .
|
1090 |
' onclick="' . $photolink['onclick'] . '"' .
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
-
* Version 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1275,9 +1275,11 @@ global $wppa_locale;
|
|
1275 |
// The icon size
|
1276 |
if ( ( wppa_in_widget() && $key != 'lightbox' ) || $key == 'thumb' ) {
|
1277 |
$s = '16';
|
|
|
1278 |
}
|
1279 |
else {
|
1280 |
$s = wppa_opt( 'share_size' );
|
|
|
1281 |
}
|
1282 |
|
1283 |
// qr code
|
@@ -1333,7 +1335,7 @@ global $wppa_locale;
|
|
1333 |
$tweet .= ': '. urlencode( substr( $photo_desc, 0, $rest_len ) ) . '...';
|
1334 |
}
|
1335 |
}
|
1336 |
-
|
1337 |
$tw = '<div style="float:left; padding:0 2px;" >' .
|
1338 |
'<a' .
|
1339 |
' title="' . sprintf( __( 'Tweet %s on Twitter', 'wp-photo-album-plus' ), esc_attr( $photo_name ) ) . '"' .
|
@@ -1387,7 +1389,8 @@ global $wppa_locale;
|
|
1387 |
' target="_blank"' .
|
1388 |
' >' .
|
1389 |
'<img' .
|
1390 |
-
' src="' . wppa_get_imgdir() . 'pinterest.png"
|
|
|
1391 |
' alt="' . esc_attr( __( 'Share on Pinterest', 'wp-photo-album-plus' ) ) . '"' .
|
1392 |
' />' .
|
1393 |
'</a>' .
|
@@ -1400,6 +1403,7 @@ global $wppa_locale;
|
|
1400 |
|
1401 |
// LinkedIn
|
1402 |
if ( wppa_switch( 'share_linkedin' ) && $key != 'thumb' && $key != 'lightbox' ) {
|
|
|
1403 |
$li = '<script' .
|
1404 |
' type="text/javascript"' .
|
1405 |
' src="//platform.linkedin.com/in.js"' .
|
@@ -1415,6 +1419,14 @@ global $wppa_locale;
|
|
1415 |
if ( $js ) {
|
1416 |
$li = str_replace( '<', '[', $li );
|
1417 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1418 |
}
|
1419 |
else {
|
1420 |
$li = '';
|
@@ -1441,7 +1453,7 @@ global $wppa_locale;
|
|
1441 |
if ( $small ) {
|
1442 |
$fb .= '<div' .
|
1443 |
' class="fb-share-button"' .
|
1444 |
-
' style="float:left;"' .
|
1445 |
' data-href="' . $share_url . '"' .
|
1446 |
' data-type="icon"' .
|
1447 |
' >' .
|
@@ -1454,7 +1466,7 @@ global $wppa_locale;
|
|
1454 |
}
|
1455 |
$fb .= '<div' .
|
1456 |
' class="fb-share-button"' .
|
1457 |
-
' style="float:left; '. $lbs . '"' .
|
1458 |
' data-width="200"' .
|
1459 |
' data-href="' . $share_url . '"' .
|
1460 |
' data-type="' . $disp . '"' .
|
@@ -1469,7 +1481,7 @@ global $wppa_locale;
|
|
1469 |
if ( $small ) {
|
1470 |
$fb .= '<div' .
|
1471 |
' class="fb-like"' .
|
1472 |
-
' style="float:left;"' .
|
1473 |
' data-href="' . $share_url . '"' .
|
1474 |
' data-layout="button"' .
|
1475 |
' >' .
|
@@ -1478,7 +1490,7 @@ global $wppa_locale;
|
|
1478 |
else {
|
1479 |
$fb .= '<div' .
|
1480 |
' class="fb-like"' .
|
1481 |
-
' style="float:left; '.$lbs.'"' .
|
1482 |
' data-width="200"' .
|
1483 |
' data-href="' . $share_url . '"' .
|
1484 |
' data-layout="' . wppa_opt( 'fb_display' ) . '"' .
|
@@ -1493,7 +1505,7 @@ global $wppa_locale;
|
|
1493 |
if ( $small ) {
|
1494 |
$fb .= '<div' .
|
1495 |
' class="fb-like"' .
|
1496 |
-
' style="float:left;"' .
|
1497 |
' data-href="' . $share_url . '"' .
|
1498 |
' data-layout="button"' .
|
1499 |
' data-action="like"' .
|
@@ -1505,7 +1517,7 @@ global $wppa_locale;
|
|
1505 |
else {
|
1506 |
$fb .= '<div' .
|
1507 |
' class="fb-like"' .
|
1508 |
-
' style="float:left; '.$lbs.'"' .
|
1509 |
' data-width="200"' .
|
1510 |
' data-href="' . $share_url . '"' .
|
1511 |
' data-layout="' . wppa_opt( 'fb_display' ) . '"' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
1275 |
// The icon size
|
1276 |
if ( ( wppa_in_widget() && $key != 'lightbox' ) || $key == 'thumb' ) {
|
1277 |
$s = '16';
|
1278 |
+
$br = '2';
|
1279 |
}
|
1280 |
else {
|
1281 |
$s = wppa_opt( 'share_size' );
|
1282 |
+
$br = ceil( $s/8 );
|
1283 |
}
|
1284 |
|
1285 |
// qr code
|
1335 |
$tweet .= ': '. urlencode( substr( $photo_desc, 0, $rest_len ) ) . '...';
|
1336 |
}
|
1337 |
}
|
1338 |
+
$tweet = urlencode( $share_url );
|
1339 |
$tw = '<div style="float:left; padding:0 2px;" >' .
|
1340 |
'<a' .
|
1341 |
' title="' . sprintf( __( 'Tweet %s on Twitter', 'wp-photo-album-plus' ), esc_attr( $photo_name ) ) . '"' .
|
1389 |
' target="_blank"' .
|
1390 |
' >' .
|
1391 |
'<img' .
|
1392 |
+
' src="' . wppa_get_imgdir() . 'pinterest.png"' .
|
1393 |
+
' style="height:' . $s . 'px;vertical-align:top;border-radius:' . $br . 'px;"' .
|
1394 |
' alt="' . esc_attr( __( 'Share on Pinterest', 'wp-photo-album-plus' ) ) . '"' .
|
1395 |
' />' .
|
1396 |
'</a>' .
|
1403 |
|
1404 |
// LinkedIn
|
1405 |
if ( wppa_switch( 'share_linkedin' ) && $key != 'thumb' && $key != 'lightbox' ) {
|
1406 |
+
/* old style that does no longer work
|
1407 |
$li = '<script' .
|
1408 |
' type="text/javascript"' .
|
1409 |
' src="//platform.linkedin.com/in.js"' .
|
1419 |
if ( $js ) {
|
1420 |
$li = str_replace( '<', '[', $li );
|
1421 |
}
|
1422 |
+
*/
|
1423 |
+
// New style under development
|
1424 |
+
$li = '<div style="float:left; padding:0 2px;" >' .
|
1425 |
+
'<a' .
|
1426 |
+
' href="https://www.linkedin.com/shareArticle?mini=true&url=' . urlencode( $share_url ) . '" >' .
|
1427 |
+
'<img src="' . wppa_get_imgdir() . 'linkedin.png" style="height:' . $s . 'px;vertical-align:top;" />' .
|
1428 |
+
'</a>' .
|
1429 |
+
'</div>';
|
1430 |
}
|
1431 |
else {
|
1432 |
$li = '';
|
1453 |
if ( $small ) {
|
1454 |
$fb .= '<div' .
|
1455 |
' class="fb-share-button"' .
|
1456 |
+
' style="float:left; padding:0 2px;"' .
|
1457 |
' data-href="' . $share_url . '"' .
|
1458 |
' data-type="icon"' .
|
1459 |
' >' .
|
1466 |
}
|
1467 |
$fb .= '<div' .
|
1468 |
' class="fb-share-button"' .
|
1469 |
+
' style="float:left; padding:0 2px; '. $lbs . '"' .
|
1470 |
' data-width="200"' .
|
1471 |
' data-href="' . $share_url . '"' .
|
1472 |
' data-type="' . $disp . '"' .
|
1481 |
if ( $small ) {
|
1482 |
$fb .= '<div' .
|
1483 |
' class="fb-like"' .
|
1484 |
+
' style="float:left; padding:0 2px; "' .
|
1485 |
' data-href="' . $share_url . '"' .
|
1486 |
' data-layout="button"' .
|
1487 |
' >' .
|
1490 |
else {
|
1491 |
$fb .= '<div' .
|
1492 |
' class="fb-like"' .
|
1493 |
+
' style="float:left; padding:0 2px; '.$lbs.'"' .
|
1494 |
' data-width="200"' .
|
1495 |
' data-href="' . $share_url . '"' .
|
1496 |
' data-layout="' . wppa_opt( 'fb_display' ) . '"' .
|
1505 |
if ( $small ) {
|
1506 |
$fb .= '<div' .
|
1507 |
' class="fb-like"' .
|
1508 |
+
' style="float:left; padding:0 2px; "' .
|
1509 |
' data-href="' . $share_url . '"' .
|
1510 |
' data-layout="button"' .
|
1511 |
' data-action="like"' .
|
1517 |
else {
|
1518 |
$fb .= '<div' .
|
1519 |
' class="fb-like"' .
|
1520 |
+
' style="float:left; padding:0 2px; '.$lbs.'"' .
|
1521 |
' data-width="200"' .
|
1522 |
' data-href="' . $share_url . '"' .
|
1523 |
' data-layout="' . wppa_opt( 'fb_display' ) . '"' .
|
wppa-common-functions.php
CHANGED
@@ -270,6 +270,7 @@ global $thumbs;
|
|
270 |
'landingpage' => '',
|
271 |
'is_admins_choice' => false,
|
272 |
'admins_choice_users' => '',
|
|
|
273 |
|
274 |
);
|
275 |
}
|
270 |
'landingpage' => '',
|
271 |
'is_admins_choice' => false,
|
272 |
'admins_choice_users' => '',
|
273 |
+
'for_sm' => false,
|
274 |
|
275 |
);
|
276 |
}
|
wppa-encrypt.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all ecryption/decryption logic
|
6 |
-
* Version 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -99,15 +99,13 @@ function wppa_encrypt_album( $album ) {
|
|
99 |
case '-1':
|
100 |
$crypt = get_option( 'wppa_album_crypt_1', false );
|
101 |
break;
|
|
|
102 |
case '0':
|
103 |
$crypt = get_option( 'wppa_album_crypt_0', false );
|
104 |
break;
|
105 |
case '999999':
|
106 |
$crypt = get_option( 'wppa_album_crypt_9', false );
|
107 |
break;
|
108 |
-
case '':
|
109 |
-
$crypt = '';
|
110 |
-
break;
|
111 |
default:
|
112 |
if ( strlen( $id ) < 12 ) {
|
113 |
$crypt = wppa_get_album_item( $id, 'crypt' );
|
@@ -218,7 +216,7 @@ global $wpdb;
|
|
218 |
|
219 |
// Compose result
|
220 |
$result = implode( '.', $album_ids );
|
221 |
-
|
222 |
// Remove not found/deleted albums
|
223 |
$result = str_replace( '..-9', '', $result );
|
224 |
$result = str_replace( '.-9', '', $result );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all ecryption/decryption logic
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
99 |
case '-1':
|
100 |
$crypt = get_option( 'wppa_album_crypt_1', false );
|
101 |
break;
|
102 |
+
case '':
|
103 |
case '0':
|
104 |
$crypt = get_option( 'wppa_album_crypt_0', false );
|
105 |
break;
|
106 |
case '999999':
|
107 |
$crypt = get_option( 'wppa_album_crypt_9', false );
|
108 |
break;
|
|
|
|
|
|
|
109 |
default:
|
110 |
if ( strlen( $id ) < 12 ) {
|
111 |
$crypt = wppa_get_album_item( $id, 'crypt' );
|
216 |
|
217 |
// Compose result
|
218 |
$result = implode( '.', $album_ids );
|
219 |
+
|
220 |
// Remove not found/deleted albums
|
221 |
$result = str_replace( '..-9', '', $result );
|
222 |
$result = str_replace( '.-9', '', $result );
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various funcions
|
6 |
-
* Version 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -572,7 +572,7 @@ global $wppa_session;
|
|
572 |
}
|
573 |
|
574 |
// See if the album id is a name and convert it if possible
|
575 |
-
wppa( 'start_album', wppa_album_name_to_number( wppa( 'start_album' ) ) );
|
576 |
if ( wppa( 'start_album' ) === false ) {
|
577 |
wppa_reset_occurrance();
|
578 |
return;
|
@@ -808,12 +808,29 @@ global $wppa_session;
|
|
808 |
return $out;
|
809 |
}
|
810 |
|
811 |
-
|
|
|
|
|
|
|
812 |
$xalb = strip_tags( $xalb );
|
|
|
|
|
813 |
if ( $xalb && ! wppa_is_int( $xalb ) ) {
|
814 |
-
|
815 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
816 |
if ( $id > '0' ) return $id;
|
|
|
|
|
817 |
elseif ( $id < '0' ) {
|
818 |
wppa_dbg_msg( 'Duplicate album names found: '.$xalb, 'red', 'force' );
|
819 |
wppa_reset_occurrance();
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various funcions
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
572 |
}
|
573 |
|
574 |
// See if the album id is a name and convert it if possible
|
575 |
+
wppa( 'start_album', wppa_album_name_to_number( wppa( 'start_album' ), true ) );
|
576 |
if ( wppa( 'start_album' ) === false ) {
|
577 |
wppa_reset_occurrance();
|
578 |
return;
|
808 |
return $out;
|
809 |
}
|
810 |
|
811 |
+
|
812 |
+
function wppa_album_name_to_number( $xalb, $return_dups = false ) {
|
813 |
+
|
814 |
+
// Sanitize
|
815 |
$xalb = strip_tags( $xalb );
|
816 |
+
|
817 |
+
// Any non integer input left?
|
818 |
if ( $xalb && ! wppa_is_int( $xalb ) ) {
|
819 |
+
|
820 |
+
// Is it a name?
|
821 |
+
if ( substr( $xalb, 0, 1 ) == '$' ) {
|
822 |
+
|
823 |
+
if ( $return_dups ) {
|
824 |
+
$id = wppa_get_album_id_by_name( substr( $xalb, 1 ), 'return_dups' );
|
825 |
+
}
|
826 |
+
else {
|
827 |
+
$id = wppa_get_album_id_by_name( substr( $xalb, 1 ) );
|
828 |
+
}
|
829 |
+
|
830 |
+
// Anything found?
|
831 |
if ( $id > '0' ) return $id;
|
832 |
+
|
833 |
+
// Handle exceptions
|
834 |
elseif ( $id < '0' ) {
|
835 |
wppa_dbg_msg( 'Duplicate album names found: '.$xalb, 'red', 'force' );
|
836 |
wppa_reset_occurrance();
|
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 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -16,6 +16,28 @@ global $wpdb;
|
|
16 |
static $album;
|
17 |
static $album_cache_2;
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
// Action?
|
20 |
if ( $id == 'invalidate' ) {
|
21 |
if ( isset( $album_cache_2[$data] ) ) unset( $album_cache_2[$data] );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains functions to retrieve album and photo items
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
16 |
static $album;
|
17 |
static $album_cache_2;
|
18 |
|
19 |
+
// Init. If there are less than 1000 albums, cache them all on beforehand.
|
20 |
+
// This reduces the number of queries for albums to two.
|
21 |
+
// Only for front-end
|
22 |
+
if ( empty( $album_cache_2 ) && ! is_admin() ) {
|
23 |
+
|
24 |
+
// Find # of albums
|
25 |
+
$n_albs = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPPA_ALBUMS . "`" );
|
26 |
+
|
27 |
+
if ( $n_albs && $n_albs < 1000 ) {
|
28 |
+
|
29 |
+
// Get them all
|
30 |
+
$allalbs = $wpdb->get_results( "SELECT * FROM `" . WPPA_ALBUMS ."`", ARRAY_A );
|
31 |
+
|
32 |
+
// Store in 2nd level cache
|
33 |
+
foreach( $allalbs as $album ) { // Add multiple
|
34 |
+
if ( isset( $album['id'] ) ) { // Looks valid
|
35 |
+
$album_cache_2[$album['id']] = $album;
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
// Action?
|
42 |
if ( $id == 'invalidate' ) {
|
43 |
if ( isset( $album_cache_2[$data] ) ) unset( $album_cache_2[$data] );
|
wppa-non-admin.php
CHANGED
@@ -72,7 +72,11 @@ global $wpdb;
|
|
72 |
// Share info for sm that uses og
|
73 |
$id = wppa_get_get( 'photo' );
|
74 |
if ( $id ) {
|
|
|
|
|
|
|
75 |
$imgurl = wppa_get_photo_url( $id );
|
|
|
76 |
if ( wppa_is_video( $id ) ) {
|
77 |
$imgurl = wppa_fix_poster_ext( $imgurl, $id );
|
78 |
}
|
@@ -90,17 +94,60 @@ global $wpdb;
|
|
90 |
$site = get_bloginfo('name');
|
91 |
|
92 |
echo '
|
93 |
-
<!-- WPPA+ Share data -->
|
94 |
<meta property="og:site_name" content="' . esc_attr( sanitize_text_field( $site ) ) . '" />
|
95 |
<meta property="og:type" content="article" />
|
96 |
<meta property="og:url" content="' . esc_url( sanitize_text_field( $url ) ) . '" />
|
97 |
<meta property="og:title" content="' . esc_attr( sanitize_text_field( $title ) ) . '" />
|
98 |
<meta property="og:image" content="' . esc_url( sanitize_text_field( $imgurl ) ) . '" />
|
99 |
<meta property="og:description" content="' . esc_attr( sanitize_text_field( $desc ) ) . '" />
|
100 |
-
<!-- WPPA+ End Share data -->
|
101 |
';
|
102 |
}
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
|
106 |
// To make sure we are on a page that contains at least %%wppa%% we check for Get var 'wppa-album'.
|
@@ -582,20 +629,26 @@ global $wppa_dynamic_css_data;
|
|
582 |
|
583 |
// init.js failed?
|
584 |
if ( $wppa_init_js_data ) echo $wppa_init_js_data;
|
585 |
-
|
586 |
-
// Patch for chrome?
|
587 |
-
|
|
|
588 |
echo '
|
589 |
|
590 |
<!-- WPPA+ Kickoff -->
|
591 |
<!-- Browser detected = '.wppa_decode_uri_component(strip_tags($_SERVER["HTTP_USER_AGENT"])).' -->';
|
592 |
-
if ( strstr($_SERVER["HTTP_USER_AGENT"], 'Chrome') && wppa_switch( 'ovl_chrome_at_top') ) echo '
|
593 |
<style type="text/css">
|
594 |
#wppa-overlay-ic { padding-top: 5px !important; }
|
595 |
#wppa-overlay-qt-img { top: 5px !important; }
|
|
|
|
|
|
|
|
|
|
|
596 |
</style>';
|
597 |
}
|
598 |
-
|
599 |
// Inline styles?
|
600 |
if ( wppa_switch( 'inline_css') ) {
|
601 |
echo '
|
@@ -772,6 +825,7 @@ global $wppa_init_js_data;
|
|
772 |
wppaLeftRightSymbolBradius = '.wppa_opt( 'left_right_symbol_bradius').';
|
773 |
wppaEditPhotoWidth = "'.(wppa_opt( 'upload_edit') == 'new' ? 500 : 960).'";
|
774 |
wppaThemeStyles = "'.(wppa_switch( 'upload_edit_theme_css') ? get_stylesheet_uri() : '' ).'";
|
|
|
775 |
';
|
776 |
|
777 |
// Open file
|
72 |
// Share info for sm that uses og
|
73 |
$id = wppa_get_get( 'photo' );
|
74 |
if ( $id ) {
|
75 |
+
|
76 |
+
// SM may not accept images from the cloud.
|
77 |
+
wppa( 'for_sm', true );
|
78 |
$imgurl = wppa_get_photo_url( $id );
|
79 |
+
wppa( 'for_sm', false );
|
80 |
if ( wppa_is_video( $id ) ) {
|
81 |
$imgurl = wppa_fix_poster_ext( $imgurl, $id );
|
82 |
}
|
94 |
$site = get_bloginfo('name');
|
95 |
|
96 |
echo '
|
97 |
+
<!-- WPPA+ Og Share data -->
|
98 |
<meta property="og:site_name" content="' . esc_attr( sanitize_text_field( $site ) ) . '" />
|
99 |
<meta property="og:type" content="article" />
|
100 |
<meta property="og:url" content="' . esc_url( sanitize_text_field( $url ) ) . '" />
|
101 |
<meta property="og:title" content="' . esc_attr( sanitize_text_field( $title ) ) . '" />
|
102 |
<meta property="og:image" content="' . esc_url( sanitize_text_field( $imgurl ) ) . '" />
|
103 |
<meta property="og:description" content="' . esc_attr( sanitize_text_field( $desc ) ) . '" />
|
104 |
+
<!-- WPPA+ End Og Share data -->
|
105 |
';
|
106 |
}
|
107 |
}
|
108 |
+
if ( wppa_switch( 'share_twitter' ) && wppa_opt( 'twitter_account' ) ) {
|
109 |
+
$thumb = wppa_cache_thumb( $id );
|
110 |
+
|
111 |
+
// Twitter wants at least 280px in width, and at least 150px in height
|
112 |
+
if ( $thumb ) {
|
113 |
+
$x = wppa_get_photo_item( $id, 'photox' );
|
114 |
+
$y = wppa_get_photo_item( $id, 'photoy' );
|
115 |
+
}
|
116 |
+
if ( $thumb && $x >= 280 && $y >= 150 ) {
|
117 |
+
$title = wppa_get_photo_name( $id );
|
118 |
+
$desc = wppa_get_og_desc( $id );
|
119 |
+
$url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
120 |
+
$site = get_bloginfo('name');
|
121 |
+
|
122 |
+
echo '
|
123 |
+
<!-- WPPA+ Twitter Share data -->
|
124 |
+
<meta name="twitter:card" content="summary_large_image">
|
125 |
+
<meta name="twitter:site" content="' . wppa_opt( 'twitter_account' ) . '">
|
126 |
+
<meta name="twitter:creator" content="' . wppa_opt( 'twitter_account' ) . '">
|
127 |
+
<meta name="twitter:title" content="' . esc_attr( sanitize_text_field( $title ) ) . '">
|
128 |
+
<meta name="twitter:description" content="' . esc_attr( sanitize_text_field( $desc ) ) . '">
|
129 |
+
<meta name="twitter:image" content="' . esc_url( sanitize_text_field( $imgurl ) ) . '">
|
130 |
+
<!-- WPPA+ End Twitter Share data -->
|
131 |
+
';
|
132 |
+
}
|
133 |
+
elseif ( $thumb && $x >= 120 && $y >= 120 ) {
|
134 |
+
$title = wppa_get_photo_name( $id );
|
135 |
+
$desc = wppa_get_og_desc( $id );
|
136 |
+
$url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
137 |
+
$site = get_bloginfo('name');
|
138 |
+
|
139 |
+
echo '
|
140 |
+
<!-- WPPA+ Twitter Share data -->
|
141 |
+
<meta name="twitter:card" content="summary">
|
142 |
+
<meta name="twitter:site" content="' . wppa_opt( 'twitter_account' ) . '">
|
143 |
+
<meta name="twitter:title" content="' . esc_attr( sanitize_text_field( $title ) ) . '">
|
144 |
+
<meta name="twitter:description" content="' . esc_attr( sanitize_text_field( $desc ) ) . '">
|
145 |
+
<meta name="twitter:image" content="' . esc_url( sanitize_text_field( $imgurl ) ) . '">
|
146 |
+
<!-- WPPA+ End Twitter Share data -->
|
147 |
+
';
|
148 |
+
|
149 |
+
}
|
150 |
+
}
|
151 |
}
|
152 |
|
153 |
// To make sure we are on a page that contains at least %%wppa%% we check for Get var 'wppa-album'.
|
629 |
|
630 |
// init.js failed?
|
631 |
if ( $wppa_init_js_data ) echo $wppa_init_js_data;
|
632 |
+
/* Obsolete?
|
633 |
+
// Patch for chrome or Edge?
|
634 |
+
// Test for chrome needs also test for NOT Edge, because browser signature of Edge also reports that it is chrome(-like)
|
635 |
+
if ( false && isset($_SERVER["HTTP_USER_AGENT"] ) ) {
|
636 |
echo '
|
637 |
|
638 |
<!-- WPPA+ Kickoff -->
|
639 |
<!-- Browser detected = '.wppa_decode_uri_component(strip_tags($_SERVER["HTTP_USER_AGENT"])).' -->';
|
640 |
+
if ( strstr($_SERVER["HTTP_USER_AGENT"], 'Chrome') && ! strstr($_SERVER["HTTP_USER_AGENT"], 'Edge') && wppa_switch( 'ovl_chrome_at_top') ) echo '
|
641 |
<style type="text/css">
|
642 |
#wppa-overlay-ic { padding-top: 5px !important; }
|
643 |
#wppa-overlay-qt-img { top: 5px !important; }
|
644 |
+
</style>';
|
645 |
+
if ( strstr($_SERVER["HTTP_USER_AGENT"], 'Edge') ) echo '
|
646 |
+
<style type="text/css">
|
647 |
+
#wppa-overlay-ic { padding-top: 0px !important; }
|
648 |
+
#wppa-overlay-qt-img { top: 5px !important; }
|
649 |
</style>';
|
650 |
}
|
651 |
+
*/
|
652 |
// Inline styles?
|
653 |
if ( wppa_switch( 'inline_css') ) {
|
654 |
echo '
|
825 |
wppaLeftRightSymbolBradius = '.wppa_opt( 'left_right_symbol_bradius').';
|
826 |
wppaEditPhotoWidth = "'.(wppa_opt( 'upload_edit') == 'new' ? 500 : 960).'";
|
827 |
wppaThemeStyles = "'.(wppa_switch( 'upload_edit_theme_css') ? get_stylesheet_uri() : '' ).'";
|
828 |
+
wppaStickyHeaderHeight = '.wppa_opt( 'sticky_header_size' ).';
|
829 |
';
|
830 |
|
831 |
// Open file
|
wppa-photo-files.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-photo-files.php
|
3 |
*
|
4 |
* Functions used to create/manipulate photofiles
|
5 |
-
* Version 6.4.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -84,7 +84,11 @@ function wppa_orientate_image_file( $file, $ori ) {
|
|
84 |
}
|
85 |
|
86 |
// Load image
|
87 |
-
$source =
|
|
|
|
|
|
|
|
|
88 |
|
89 |
// Perform operation
|
90 |
switch ( $ori ) {
|
@@ -212,10 +216,10 @@ global $wpdb;
|
|
212 |
else $src = false;
|
213 |
break;
|
214 |
case 2: // jpeg
|
215 |
-
if ( ! function_exists( '
|
216 |
-
wppa_log( 'Error', 'Function
|
217 |
}
|
218 |
-
$src = @
|
219 |
break;
|
220 |
case 3: // png
|
221 |
$src = @ imagecreatefrompng( $file );
|
@@ -419,8 +423,8 @@ function wppa_create_thumbnail( $id, $use_source = true ) {
|
|
419 |
else $src = false;
|
420 |
break;
|
421 |
case 2: // jpeg
|
422 |
-
if ( ! function_exists( '
|
423 |
-
$src = @
|
424 |
break;
|
425 |
case 3: // png
|
426 |
$src = @ imagecreatefrompng( $file );
|
@@ -557,3 +561,12 @@ function wppa_create_thumbnail( $id, $use_source = true ) {
|
|
557 |
|
558 |
return true;
|
559 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/* wppa-photo-files.php
|
3 |
*
|
4 |
* Functions used to create/manipulate photofiles
|
5 |
+
* Version 6.4.18
|
6 |
*
|
7 |
*/
|
8 |
|
84 |
}
|
85 |
|
86 |
// Load image
|
87 |
+
$source = wppa_imagecreatefromjpeg( $file );
|
88 |
+
if ( ! $source ) {
|
89 |
+
wppa_log( 'Err', 'Could not create memoryimage from jpg file ' . $file );
|
90 |
+
return false;
|
91 |
+
}
|
92 |
|
93 |
// Perform operation
|
94 |
switch ( $ori ) {
|
216 |
else $src = false;
|
217 |
break;
|
218 |
case 2: // jpeg
|
219 |
+
if ( ! function_exists( 'wppa_imagecreatefromjpeg' ) ) {
|
220 |
+
wppa_log( 'Error', 'Function wppa_imagecreatefromjpeg does not exist.' );
|
221 |
}
|
222 |
+
$src = @ wppa_imagecreatefromjpeg( $file );
|
223 |
break;
|
224 |
case 3: // png
|
225 |
$src = @ imagecreatefrompng( $file );
|
423 |
else $src = false;
|
424 |
break;
|
425 |
case 2: // jpeg
|
426 |
+
if ( ! function_exists( 'wppa_imagecreatefromjpeg' ) ) wppa_log( 'Error', 'Function wppa_imagecreatefromjpeg does not exist.' );
|
427 |
+
$src = @ wppa_imagecreatefromjpeg( $file );
|
428 |
break;
|
429 |
case 3: // png
|
430 |
$src = @ imagecreatefrompng( $file );
|
561 |
|
562 |
return true;
|
563 |
}
|
564 |
+
|
565 |
+
// To fix a bug in PHP as that photos made with the selfie camera of an android smartphone
|
566 |
+
// irroneously cause the PHP warning 'is not a valid JPEG file' and cause imagecreatefromjpag crash.
|
567 |
+
function wppa_imagecreatefromjpeg( $file ) {
|
568 |
+
|
569 |
+
ini_set( 'gd.jpeg_ignore_warning', true );
|
570 |
+
$img = imagecreatefromjpeg( $file );
|
571 |
+
return $img;
|
572 |
+
}
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -354,8 +354,8 @@ global $wp_version;
|
|
354 |
}
|
355 |
|
356 |
// Check for trivial requirements
|
357 |
-
if ( ! function_exists('
|
358 |
-
wppa_error_message(__('There is a serious misconfiguration in your servers PHP config. Function
|
359 |
}
|
360 |
|
361 |
// Check for pending actions
|
@@ -820,6 +820,16 @@ global $wp_version;
|
|
820 |
$clas = '';
|
821 |
$tags = 'size,system';
|
822 |
wppa_setting($slug, '10.2', $name, $desc, $html, $help, $clas, $tags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
823 |
}
|
824 |
wppa_setting_subheader( 'B', '1', __( 'Slideshow related size settings' , 'wp-photo-album-plus') );
|
825 |
{
|
@@ -1937,6 +1947,15 @@ global $wp_version;
|
|
1937 |
$tags = 'slide,sm,layout';
|
1938 |
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
1939 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1940 |
$name = __('Show Google+ button', 'wp-photo-album-plus');
|
1941 |
$desc = __('Display the Google+ button in the share box.', 'wp-photo-album-plus');
|
1942 |
$help = '';
|
@@ -4528,7 +4547,7 @@ global $wp_version;
|
|
4528 |
$clas = '';
|
4529 |
$tags = 'lightbox';
|
4530 |
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
4531 |
-
|
4532 |
$name = __('Overlay at top in Chrome', 'wp-photo-album-plus');
|
4533 |
$desc = __('Place the overlay (lightbox) image at the top of the page in Chrome browsers.', 'wp-photo-album-plus');
|
4534 |
$help = esc_js(__('This is required for certain mobile devices.', 'wp-photo-album-plus'));
|
@@ -4537,7 +4556,7 @@ global $wp_version;
|
|
4537 |
$clas = '';
|
4538 |
$tags = 'lightbox,layout';
|
4539 |
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
4540 |
-
|
4541 |
$name = __('WPPA+ Lightbox global', 'wp-photo-album-plus');
|
4542 |
$desc = __('Use the wppa+ lightbox also for non-wppa images.', 'wp-photo-album-plus');
|
4543 |
$help = '';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
354 |
}
|
355 |
|
356 |
// Check for trivial requirements
|
357 |
+
if ( ! function_exists('wppa_imagecreatefromjpeg') ) {
|
358 |
+
wppa_error_message(__('There is a serious misconfiguration in your servers PHP config. Function wppa_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'));
|
359 |
}
|
360 |
|
361 |
// Check for pending actions
|
820 |
$clas = '';
|
821 |
$tags = 'size,system';
|
822 |
wppa_setting($slug, '10.2', $name, $desc, $html, $help, $clas, $tags);
|
823 |
+
|
824 |
+
$name = __('Sticky header size', 'wp-photo-album-plus');
|
825 |
+
$desc = __('The height of your sticky header.', 'wp-photo-album-plus');
|
826 |
+
$help = esc_js(__('If your theme has a sticky header, enter its height here.', 'wp-photo-album-plus'));
|
827 |
+
$slug = 'wppa_sticky_header_size';
|
828 |
+
$html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
|
829 |
+
$clas = '';
|
830 |
+
$tags = 'size,system';
|
831 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
832 |
+
|
833 |
}
|
834 |
wppa_setting_subheader( 'B', '1', __( 'Slideshow related size settings' , 'wp-photo-album-plus') );
|
835 |
{
|
1947 |
$tags = 'slide,sm,layout';
|
1948 |
wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
|
1949 |
|
1950 |
+
$name = __('The creator\'s Twitter account', 'wp-photo-album-plus');
|
1951 |
+
$desc = __('The Twitter @username a twitter card should be attributed to.', 'wp-photo-album-plus');
|
1952 |
+
$help = esc_js(__('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'));
|
1953 |
+
$slug = 'wppa_twitter_account';
|
1954 |
+
$html = wppa_input($slug, '150px' );
|
1955 |
+
$clas = 'wppa_share';
|
1956 |
+
$tags = 'slide,sm,layout';
|
1957 |
+
wppa_setting($slug, '13.1', $name, $desc, $html, $help, $clas, $tags);
|
1958 |
+
|
1959 |
$name = __('Show Google+ button', 'wp-photo-album-plus');
|
1960 |
$desc = __('Display the Google+ button in the share box.', 'wp-photo-album-plus');
|
1961 |
$help = '';
|
4547 |
$clas = '';
|
4548 |
$tags = 'lightbox';
|
4549 |
wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
|
4550 |
+
/*
|
4551 |
$name = __('Overlay at top in Chrome', 'wp-photo-album-plus');
|
4552 |
$desc = __('Place the overlay (lightbox) image at the top of the page in Chrome browsers.', 'wp-photo-album-plus');
|
4553 |
$help = esc_js(__('This is required for certain mobile devices.', 'wp-photo-album-plus'));
|
4556 |
$clas = '';
|
4557 |
$tags = 'lightbox,layout';
|
4558 |
wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
|
4559 |
+
*/
|
4560 |
$name = __('WPPA+ Lightbox global', 'wp-photo-album-plus');
|
4561 |
$desc = __('Use the wppa+ lightbox also for non-wppa images.', 'wp-photo-album-plus');
|
4562 |
$help = '';
|
wppa-setup.php
CHANGED
@@ -634,6 +634,7 @@ Hide Camera info
|
|
634 |
'wppa_pagelinks_max' => '7',
|
635 |
'wppa_max_filename_length' => '0',
|
636 |
'wppa_max_photoname_length' => '0',
|
|
|
637 |
|
638 |
// B Fullsize
|
639 |
'wppa_fullsize' => '640', // 1
|
@@ -763,6 +764,7 @@ Hide Camera info
|
|
763 |
'wppa_share_qr' => 'no',
|
764 |
'wppa_share_facebook' => 'yes',
|
765 |
'wppa_share_twitter' => 'yes',
|
|
|
766 |
'wppa_share_google' => 'yes',
|
767 |
'wppa_share_pinterest' => 'yes',
|
768 |
'wppa_share_linkedin' => 'yes',
|
@@ -1081,7 +1083,7 @@ Hide Camera info
|
|
1081 |
'wppa_ovl_onclick' => 'none',
|
1082 |
'wppa_ovl_anim' => '300',
|
1083 |
'wppa_ovl_slide' => '5000',
|
1084 |
-
'wppa_ovl_chrome_at_top' => 'yes',
|
1085 |
'wppa_lightbox_global' => 'no',
|
1086 |
'wppa_lightbox_global_set' => 'no',
|
1087 |
'wppa_lb_hres' => 'no',
|
634 |
'wppa_pagelinks_max' => '7',
|
635 |
'wppa_max_filename_length' => '0',
|
636 |
'wppa_max_photoname_length' => '0',
|
637 |
+
'wppa_sticky_header_size' => '0',
|
638 |
|
639 |
// B Fullsize
|
640 |
'wppa_fullsize' => '640', // 1
|
764 |
'wppa_share_qr' => 'no',
|
765 |
'wppa_share_facebook' => 'yes',
|
766 |
'wppa_share_twitter' => 'yes',
|
767 |
+
'wppa_twitter_account' => '',
|
768 |
'wppa_share_google' => 'yes',
|
769 |
'wppa_share_pinterest' => 'yes',
|
770 |
'wppa_share_linkedin' => 'yes',
|
1083 |
'wppa_ovl_onclick' => 'none',
|
1084 |
'wppa_ovl_anim' => '300',
|
1085 |
'wppa_ovl_slide' => '5000',
|
1086 |
+
// 'wppa_ovl_chrome_at_top' => 'yes',
|
1087 |
'wppa_lightbox_global' => 'no',
|
1088 |
'wppa_lightbox_global_set' => 'no',
|
1089 |
'wppa_lb_hres' => 'no',
|
wppa-stereo.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the stereo stuff
|
6 |
-
* Version 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -99,7 +99,7 @@ static $f114;
|
|
99 |
$width = $sizes['0'] / 2;
|
100 |
$height = $sizes['1'];
|
101 |
|
102 |
-
$fromimage =
|
103 |
$toimage = imagecreatetruecolor( $width, $height );
|
104 |
if ( $is_stereo == 1 ) {
|
105 |
$offset1 = 0;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the stereo stuff
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
99 |
$width = $sizes['0'] / 2;
|
100 |
$height = $sizes['1'];
|
101 |
|
102 |
+
$fromimage = wppa_imagecreatefromjpeg( $fromfile );
|
103 |
$toimage = imagecreatetruecolor( $width, $height );
|
104 |
if ( $is_stereo == 1 ) {
|
105 |
$offset1 = 0;
|
wppa-upload.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the upload/import pages and functions
|
6 |
-
* Version 6.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -89,8 +89,8 @@ global $wppa_revno;
|
|
89 |
|
90 |
<?php
|
91 |
// Check for trivial requirements
|
92 |
-
if ( ! function_exists( '
|
93 |
-
wppa_error_message( __( 'There is a serious misconfiguration in your servers PHP config. Function
|
94 |
}
|
95 |
|
96 |
$max_files = ini_get( 'max_file_uploads' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the upload/import pages and functions
|
6 |
+
* Version 6.4.18
|
7 |
*
|
8 |
*/
|
9 |
|
89 |
|
90 |
<?php
|
91 |
// Check for trivial requirements
|
92 |
+
if ( ! function_exists( 'wppa_imagecreatefromjpeg' ) ) {
|
93 |
+
wppa_error_message( __( 'There is a serious misconfiguration in your servers PHP config. Function wppa_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' ) );
|
94 |
}
|
95 |
|
96 |
$max_files = ini_get( 'max_file_uploads' );
|
wppa-utils.php
CHANGED
@@ -100,8 +100,9 @@ global $wppa_supported_stereo_types;
|
|
100 |
if ( is_feed() && wppa_switch( 'feed_use_thumb') ) return wppa_get_thumb_url($id, $system);
|
101 |
|
102 |
// If in the cloud...
|
|
|
103 |
$is_old = wppa_too_old_for_cloud( $id );
|
104 |
-
if ( wppa_cdn( 'front' ) && ! wppa_is_multi( $id ) && ! $is_old && ! wppa_is_stereo( $id ) ) {
|
105 |
switch ( wppa_cdn( 'front' ) ) {
|
106 |
case 'cloudinary':
|
107 |
$x = round($x);
|
@@ -784,6 +785,7 @@ global $wppa_opt;
|
|
784 |
'wppa_relative_urls',
|
785 |
'wppa_upload_edit',
|
786 |
'wppa_upload_edit_theme_css',
|
|
|
787 |
|
788 |
|
789 |
);
|
100 |
if ( is_feed() && wppa_switch( 'feed_use_thumb') ) return wppa_get_thumb_url($id, $system);
|
101 |
|
102 |
// If in the cloud...
|
103 |
+
$for_sm = wppa( 'for_sm' ); // Social media do not accept cloud images
|
104 |
$is_old = wppa_too_old_for_cloud( $id );
|
105 |
+
if ( wppa_cdn( 'front' ) && ! wppa_is_multi( $id ) && ! $is_old && ! wppa_is_stereo( $id ) && ! $for_sm ) {
|
106 |
switch ( wppa_cdn( 'front' ) ) {
|
107 |
case 'cloudinary':
|
108 |
$x = round($x);
|
785 |
'wppa_relative_urls',
|
786 |
'wppa_upload_edit',
|
787 |
'wppa_upload_edit_theme_css',
|
788 |
+
'wppa_sticky_header_size',
|
789 |
|
790 |
|
791 |
);
|
wppa-watermark.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-watermark.php
|
3 |
*
|
4 |
* Functions used for the application of watermarks
|
5 |
-
* Version 6.4.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -384,7 +384,7 @@ function wppa_add_watermark( $id ) {
|
|
384 |
$photoimage = imagecreatetruecolor( $photosize[0], $photosize[1] );
|
385 |
imagecopy( $photoimage, $tempimage, 0, 0, 0, 0, $photosize[0], $photosize[1] );
|
386 |
break;
|
387 |
-
case 2: $photoimage =
|
388 |
break;
|
389 |
case 3: $photoimage = imagecreatefrompng( $file );
|
390 |
break;
|
2 |
/* wppa-watermark.php
|
3 |
*
|
4 |
* Functions used for the application of watermarks
|
5 |
+
* Version 6.4.18
|
6 |
*
|
7 |
*/
|
8 |
|
384 |
$photoimage = imagecreatetruecolor( $photosize[0], $photosize[1] );
|
385 |
imagecopy( $photoimage, $tempimage, 0, 0, 0, 0, $photosize[0], $photosize[1] );
|
386 |
break;
|
387 |
+
case 2: $photoimage = wppa_imagecreatefromjpeg( $file );
|
388 |
break;
|
389 |
case 3: $photoimage = imagecreatefrompng( $file );
|
390 |
break;
|
wppa.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: WP Photo Album Plus
|
4 |
* Description: Easily manage and display your photo albums and slideshows within your WordPress site.
|
5 |
-
* Version: 6.4.
|
6 |
* Author: J.N. Breetvelt a.k.a. OpaJaap
|
7 |
* Author URI: http://wppa.opajaap.nl/
|
8 |
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
|
@@ -22,8 +22,8 @@ global $wpdb;
|
|
22 |
global $wp_version;
|
23 |
|
24 |
/* WPPA GLOBALS */
|
25 |
-
global $wppa_revno; $wppa_revno = '
|
26 |
-
global $wppa_api_version; $wppa_api_version = '6-4-
|
27 |
|
28 |
/* start timers */
|
29 |
global $wppa_starttime; $wppa_starttime = microtime(true);
|
2 |
/*
|
3 |
* Plugin Name: WP Photo Album Plus
|
4 |
* Description: Easily manage and display your photo albums and slideshows within your WordPress site.
|
5 |
+
* Version: 6.4.18
|
6 |
* Author: J.N. Breetvelt a.k.a. OpaJaap
|
7 |
* Author URI: http://wppa.opajaap.nl/
|
8 |
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
|
22 |
global $wp_version;
|
23 |
|
24 |
/* WPPA GLOBALS */
|
25 |
+
global $wppa_revno; $wppa_revno = '6418'; // WPPA db version
|
26 |
+
global $wppa_api_version; $wppa_api_version = '6-4-18-006'; // WPPA software version
|
27 |
|
28 |
/* start timers */
|
29 |
global $wppa_starttime; $wppa_starttime = microtime(true);
|