WP Photo Album Plus - Version 7.5.10.008

Version Description

= 7.5.10 =

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

Release Info

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

Code changes from version 7.5.10.007 to 7.5.10.008

changelog.txt CHANGED
@@ -9,6 +9,7 @@ WP Photo Album Plus Changelog
9
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
10
  * New setting Table I-F15: Character sizing.
11
  You can specify 'linear' (default), 'quadratic' or 'cubic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
 
12
 
13
  = 7.5.09 =
14
 
9
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
10
  * New setting Table I-F15: Character sizing.
11
  You can specify 'linear' (default), 'quadratic' or 'cubic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
12
+ * Fixed shortcode generators. They all work now properly, both on classic asn block editor in classic blocks as well as the wppa custom block types.
13
 
14
  = 7.5.09 =
15
 
js/wppa-gutenberg-photo.js CHANGED
@@ -1,7 +1,7 @@
1
  /* wppa-gutenberg-photo.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
- * Version 7.3.06
5
  */
6
 
7
  // Global vars
@@ -60,15 +60,18 @@ jQuery(document).ready(function(){
60
  // Bind onchange handler to ready button
61
  jQuery( '#wppa-shortcode-photo-ready' ).on( 'click',
62
  function() {
 
63
  var res = wppaPhotoEvaluate(),
64
  sc = res.shortcode,
65
  photo = res.photo;
66
 
 
67
  if ( sc.length ) {
68
  props.setAttributes({
69
  shortcode: sc,
70
  photo: photo
71
  });
 
72
  }
73
  });
74
  }, 150 );
@@ -160,7 +163,10 @@ function wppaPhotoEvaluate() {
160
  // shortcode = shortcode.replace(/"/g, '"');
161
 
162
  if ( shortcode.length ) {
163
- jQuery( '#wppa-shortcode-photo-ready' ).css( 'display', 'block' );
 
 
 
164
  }
165
 
166
  // Is shortcode complete?
1
  /* wppa-gutenberg-photo.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
+ * Version 7.5.10
5
  */
6
 
7
  // Global vars
60
  // Bind onchange handler to ready button
61
  jQuery( '#wppa-shortcode-photo-ready' ).on( 'click',
62
  function() {
63
+
64
  var res = wppaPhotoEvaluate(),
65
  sc = res.shortcode,
66
  photo = res.photo;
67
 
68
+ // alert(res.photo+', '+res.shortcode);
69
  if ( sc.length ) {
70
  props.setAttributes({
71
  shortcode: sc,
72
  photo: photo
73
  });
74
+ return sc;
75
  }
76
  });
77
  }, 150 );
163
  // shortcode = shortcode.replace(/"/g, '"');
164
 
165
  if ( shortcode.length ) {
166
+ jQuery( '#wppa-shortcode-photo-ready' ).show();
167
+ }
168
+ else {
169
+ jQuery( '#wppa-shortcode-photo-ready' ).hide();
170
  }
171
 
172
  // Is shortcode complete?
js/wppa-gutenberg-wppa.js CHANGED
@@ -1,7 +1,7 @@
1
  /* wppa-gutenberg-wppa.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
- * Version 7.3.06
5
  */
6
 
7
  // Global vars
@@ -58,6 +58,8 @@ jQuery(document).ready(function(){
58
  var sc = wppaGalleryEvaluate();
59
 
60
  props.setAttributes({shortcode: sc});
 
 
61
  });
62
  }, 150 );
63
 
@@ -662,13 +664,9 @@ function wppaGalleryEvaluate() {
662
  if ( shortcodeOk ) {
663
 
664
  jQuery( '#wppa-shortcode-wppa-ready' ).show();
665
- // jQuery('#wppagallery-submit').show();
666
- // jQuery('#wppagallery-submit-notok').hide();
667
  }
668
  else {
669
  jQuery( '#wppa-shortcode-wppa-ready' ).hide();
670
- // jQuery('#wppagallery-submit').hide();
671
- // jQuery('#wppagallery-submit-notok').show();
672
  }
673
 
674
  if ( shortcodeOk ) {
1
  /* wppa-gutenberg-wppa.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
+ * Version 7.5.10
5
  */
6
 
7
  // Global vars
58
  var sc = wppaGalleryEvaluate();
59
 
60
  props.setAttributes({shortcode: sc});
61
+
62
+ return sc.replace( /@/g, '#' );
63
  });
64
  }, 150 );
65
 
664
  if ( shortcodeOk ) {
665
 
666
  jQuery( '#wppa-shortcode-wppa-ready' ).show();
 
 
667
  }
668
  else {
669
  jQuery( '#wppa-shortcode-wppa-ready' ).hide();
 
 
670
  }
671
 
672
  if ( shortcodeOk ) {
js/wppa-tinymce-photo-front.js CHANGED
@@ -1,8 +1,8 @@
1
- /* wppa-tinymce-photo.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
  *
5
- * Version 7.0.00
6
  *
7
  */
8
 
@@ -146,7 +146,6 @@ jQuery(function(){
146
 
147
  // closes Dialog box
148
  jQuery( "#wppaphoto-form" ).dialog( "close" );
149
- //tb_remove();
150
  });
151
  }
152
  }
1
+ /* wppa-tinymce-photo-front.js
2
  * Pachkage: wp-photo-album-plus
3
  *
4
  *
5
+ * Version 7.5.10
6
  *
7
  */
8
 
146
 
147
  // closes Dialog box
148
  jQuery( "#wppaphoto-form" ).dialog( "close" );
 
149
  });
150
  }
151
  }
js/wppa-tinymce-photo-front.min.js CHANGED
@@ -1 +1 @@
1
- tinymce.PluginManager.add("wppaphoto",function(o,e){o.addButton("wppa_photo_button",{image:wppaImageDirectory+"camera32.png",tooltip:"WPPA+ Insert photo",onclick:function(){var o={modal:!0,resizable:!0,width:720,show:{effect:"fadeIn",duration:400},closeText:"",close:function(o,e){wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0))},open:function(o,e){wppaPhotoEvaluate()}};jQuery("#wppaphoto-form").dialog(o).dialog("open"),jQuery(".ui-widget-header").css({background:"none"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-dialog-title").css({position:"absolute",top:"15px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"20px",width:"16px",height:"16px"}),jQuery(".ui-widget-overlay").css({background:"none"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-icon-closethick").css({display:"none"})}})}),jQuery(function(){var p;p=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var o=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcephotodialogfront";p.onreadystatechange=function(){if(4==p.readyState&&404!=p.status){var o=wppaEntityDecode(p.responseText),e=jQuery(o);e.find("table");e.appendTo("body").hide(),e.find("#wppaphoto-submit").click(function(){newShortcode=jQuery("#wppaphoto-shortcode-preview").val(),newShortcode=newShortcode.replace(/&quot;/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0),jQuery("#wppaphoto-myphoto").val("")),jQuery("#wppaphoto-form").dialog("close")})}},p.open("GET",o,!0),p.send()});var wppaMyPhotoSelection=!0;function wppaPhotoEvaluate(){var o,e;if(e=wppaMyPhotoSelection?"my":"all",photo=jQuery("#wppaphoto-"+e+"photo").val(),wppaIsEmpty(photo))jQuery("#wppaphoto-"+e+"photo").css("color","#700"),o="";else{switch(wppaOutputType){case"shortcode":id=photo.replace(/\//g,""),id=id.split("."),id=id[0],o="[photo "+id+"]";break;case"html":if(-1!=photo.indexOf("xxx"))o="Videos are not supported here";else{var p=wppaShortcodeTemplateId;o=wppaShortcodeTemplate.split(p).join(photo)}break;case"img":if(-1!=photo.indexOf("xxx")){var t=photo.replace("xxx","");o='<video preload="metadata" style="width:100%;height:auto;" controls ><source src="'+wppaPhotoDirectory+t+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+t+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+t+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+t+'webm" type="video/webm"></video>'}else o='<img src="'+wppaPhotoDirectory+photo+'" />';break;default:o="Unimplemented output type"}jQuery("#wppaphoto-"+e+"photo").css("color","#070"),o=o.replace(/"/g,"&quot;"),jQuery("#wppaphoto-photo-preview-tr").show(),wppaTinyMceBasicPhotoPreview(photo)}var a='<input type="text" id="wppaphoto-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+o+'" />';jQuery("#wppaphoto-shortcode-preview-container").html(a),!wppaIsEmpty(photo)?(jQuery("#wppaphoto-submit").show(),jQuery("#wppaphoto-submit-notok").hide()):(jQuery("#wppaphoto-submit").hide(),jQuery("#wppaphoto-submit-notok").show())}function wppaTinyMceBasicPhotoPreview(o){if(jQuery("#wppaphoto-photo-preview").html(""),"#potd"==o)jQuery("#wppaphoto-photo-preview").html(wppaNoPreview);else if(-1!=o.indexOf("xxx")){var e=o.replace("xxx","");jQuery("#wppaphoto-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+e+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+e+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'webm" type="video/webm"></video>')}else jQuery("#wppaphoto-photo-preview").html('<img src="'+wppaPhotoDirectory+o+'" style="max-width:400px; max-height:300px;" />')}function wppaDisplaySelectedFile(o,e){var p=jQuery("#"+o)[0].files[0].name;jQuery("#"+e).val("Upload "+p)}
1
+ tinymce.PluginManager.add("wppaphoto",function(o,e){o.addButton("wppa_photo_button",{image:wppaImageDirectory+"camera32.png",tooltip:"WPPA+ Insert photo",onclick:function(){var o={modal:!0,resizable:!0,width:720,show:{effect:"fadeIn",duration:400},closeText:"",close:function(o,e){wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0))},open:function(o,e){wppaPhotoEvaluate()}};jQuery("#wppaphoto-form").dialog(o).dialog("open"),jQuery(".ui-widget-header").css({background:"none"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-dialog-title").css({position:"absolute",top:"15px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"20px",width:"16px",height:"16px"}),jQuery(".ui-widget-overlay").css({background:"none"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-icon-closethick").css({display:"none"})}})}),jQuery(function(){var p=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),o=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcephotodialogfront";p.onreadystatechange=function(){var o,e;4==p.readyState&&404!=p.status&&(o=wppaEntityDecode(p.responseText),(e=jQuery(o)).find("table"),e.appendTo("body").hide(),e.find("#wppaphoto-submit").click(function(){newShortcode=jQuery("#wppaphoto-shortcode-preview").val(),newShortcode=newShortcode.replace(/&quot;/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0),jQuery("#wppaphoto-myphoto").val("")),jQuery("#wppaphoto-form").dialog("close")}))},p.open("GET",o,!0),p.send()});var wppaMyPhotoSelection=!0;function wppaPhotoEvaluate(){var o,e,p,t=wppaMyPhotoSelection?"my":"all";if(photo=jQuery("#wppaphoto-"+t+"photo").val(),wppaIsEmpty(photo))jQuery("#wppaphoto-"+t+"photo").css("color","#700"),e="";else{switch(wppaOutputType){case"shortcode":id=photo.replace(/\//g,""),id=id.split("."),id=id[0],e="[photo "+id+"]";break;case"html":e=-1!=photo.indexOf("xxx")?"Videos are not supported here":(o=wppaShortcodeTemplateId,wppaShortcodeTemplate.split(o).join(photo));break;case"img":e=-1!=photo.indexOf("xxx")?(p=photo.replace("xxx",""),'<video preload="metadata" style="width:100%;height:auto;" controls ><source src="'+wppaPhotoDirectory+p+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+p+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+p+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+p+'webm" type="video/webm"></video>'):'<img src="'+wppaPhotoDirectory+photo+'" />';break;default:e="Unimplemented output type"}jQuery("#wppaphoto-"+t+"photo").css("color","#070"),e=e.replace(/"/g,"&quot;"),jQuery("#wppaphoto-photo-preview-tr").show(),wppaTinyMceBasicPhotoPreview(photo)}var a='<input type="text" id="wppaphoto-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+e+'" />';jQuery("#wppaphoto-shortcode-preview-container").html(a),!wppaIsEmpty(photo)?(jQuery("#wppaphoto-submit").show(),jQuery("#wppaphoto-submit-notok").hide()):(jQuery("#wppaphoto-submit").hide(),jQuery("#wppaphoto-submit-notok").show())}function wppaTinyMceBasicPhotoPreview(o){var e;jQuery("#wppaphoto-photo-preview").html(""),"#potd"==o?jQuery("#wppaphoto-photo-preview").html(wppaNoPreview):-1!=o.indexOf("xxx")?(e=o.replace("xxx",""),jQuery("#wppaphoto-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+e+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+e+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'webm" type="video/webm"></video>')):jQuery("#wppaphoto-photo-preview").html('<img src="'+wppaPhotoDirectory+o+'" style="max-width:400px; max-height:300px;" />')}function wppaDisplaySelectedFile(o,e){var p=jQuery("#"+o)[0].files[0].name;jQuery("#"+e).val("Upload "+p)}
js/wppa-tinymce-photo.js CHANGED
@@ -2,7 +2,7 @@
2
  * Pachkage: wp-photo-album-plus
3
  *
4
  *
5
- * Version 7.3.06
6
  *
7
  */
8
 
@@ -10,13 +10,83 @@
10
  tinymce.PluginManager.add('wppaphoto', function(editor, url) {
11
 
12
  function openWppaPhotoShortcodeGenerator() {
13
- // triggers the thickbox
14
- var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width;
15
- W = W - 80;
16
- H = jQuery(window).height();
17
- H = H - 120;
18
- tb_show( 'WPPA+ Insert photo', '#TB_inline?width=' + W + '&height=' + H + '&inlineId=wppaphoto-form' );
19
- wppaPhotoEvaluate();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  editor.addButton('wppa_photo_button', {
@@ -71,8 +141,8 @@ jQuery(function(){
71
  jQuery('#wppaphoto-myphoto-tr').show();
72
  jQuery('#wppaphoto-photo-preview').html('');
73
 
74
- // closes Thickbox
75
- tb_remove();
76
  });
77
  }
78
  }
2
  * Pachkage: wp-photo-album-plus
3
  *
4
  *
5
+ * Version 7.5.10
6
  *
7
  */
8
 
10
  tinymce.PluginManager.add('wppaphoto', function(editor, url) {
11
 
12
  function openWppaPhotoShortcodeGenerator() {
13
+
14
+
15
+ var opt = {
16
+ modal: true,
17
+ resizable: true,
18
+ width: 720,
19
+ show: {
20
+ effect: "fadeIn",
21
+ duration: 400
22
+ },
23
+ closeText: "",
24
+ close: function(event,ui) {
25
+
26
+ if ( ! wppaMyPhotoSelection ) {
27
+ wppaMyPhotoSelection=true;
28
+ jQuery('#wppaphoto-allphoto-tr').hide();
29
+ jQuery('#wppaphoto-myphoto-tr').show();
30
+ jQuery('#wppaphoto-photo-preview').html('');
31
+ jQuery('.wppa-photo-select-item').prop('selected',false);
32
+ jQuery('.wppa-photo-select-item-first').prop('selected',true);
33
+ }
34
+ },
35
+ open: function(event,ui) {
36
+ wppaPhotoEvaluate();
37
+ }
38
+ };
39
+
40
+ jQuery( "#wppaphoto-form" ).dialog(opt).dialog( "open" );
41
+
42
+ jQuery( '.ui-widget-header' ).css( {
43
+ background: 'none',
44
+ });
45
+
46
+ jQuery( '.ui-dialog' ).css( {
47
+ boxShadow: '0px 0px 5px 5px #aaaaaa',
48
+ borderRadius: wppaBoxRadius+'px',
49
+ padding: '8px',
50
+ backgroundColor: wppaModalBgColor,
51
+ boxSizing: 'content-box',
52
+ zIndex: 100000,
53
+ });
54
+
55
+ jQuery( '.ui-dialog-titlebar' ).css( {
56
+ lineHeight: '0px',
57
+ height: '24px',
58
+ fontSize: '18px',
59
+ fontWeight: 'bold',
60
+ });
61
+
62
+ jQuery( '.ui-dialog-title' ).css( {
63
+ position: 'absolute',
64
+ top: '15px',
65
+ fontSize: '18px',
66
+ fontWeight: 'bold',
67
+ });
68
+
69
+ jQuery( '.ui-button' ).css( {
70
+ backgroundImage: wppaModalQuitImg,
71
+ padding: 0,
72
+ position: 'absolute',
73
+ right: '8px',
74
+ top: '20px',
75
+ width: '16px',
76
+ height: '16px',
77
+ });
78
+
79
+ jQuery( '.ui-widget-overlay' ).css( {
80
+ background: 'none',
81
+ });
82
+
83
+ jQuery( '.ui-button' ).attr( 'title', 'Close' );
84
+
85
+ jQuery( '.ui-icon-closethick' ).css( {
86
+ display: 'none',
87
+ });
88
+
89
+
90
  }
91
 
92
  editor.addButton('wppa_photo_button', {
141
  jQuery('#wppaphoto-myphoto-tr').show();
142
  jQuery('#wppaphoto-photo-preview').html('');
143
 
144
+ // closes Dialog box
145
+ jQuery( "#wppaphoto-form" ).dialog( "close" );
146
  });
147
  }
148
  }
js/wppa-tinymce-photo.min.js CHANGED
@@ -1 +1 @@
1
- tinymce.PluginManager.add("wppaphoto",function(o,e){o.addButton("wppa_photo_button",{image:wppaImageDirectory+"camera32.png",tooltip:"WPPA+ Insert photo",onclick:function(){var o=jQuery(window).width(),e=jQuery(window).height(),p=720<o?720:o;p-=80,e=jQuery(window).height(),e-=120,tb_show("WPPA+ Insert photo","#TB_inline?width="+p+"&height="+e+"&inlineId=wppaphoto-form"),wppaPhotoEvaluate()}})}),jQuery(function(){var p;p=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var o=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcephotodialog";p.open("GET",o,!0),p.send(),p.onreadystatechange=function(){if(4==p.readyState&&404!=p.status){var o=wppaEntityDecode(p.responseText),e=jQuery(o);e.find("table");e.appendTo("body").hide(),e.find("#wppaphoto-submit").click(function(){newShortcode=jQuery("#wppaphoto-shortcode-preview").val(),newShortcode=newShortcode.replace(/&quot;/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),tb_remove()})}}});var wppaMyPhotoSelection=!0;function wppaPhotoEvaluate(){var o,e;e=wppaMyPhotoSelection?"my":"all",photo=jQuery("#wppaphoto-"+e+"photo").val(),o=wppaIsEmpty(photo)?(jQuery("#wppaphoto-"+e+"photo").css("color","#700"),""):(id=photo.replace(/\//g,""),id=id.split("."),id=id[0],jQuery("#wppaphoto-photo-preview-tr").show(),wppaTinyMceBasicPhotoPreview(photo),jQuery("#wppaphoto-"+e+"photo").css("color","#070"),"[photo "+id),jQuery("#wppaphoto-cache").prop("checked")&&(o+=' cache="inf"'),o.length&&(o+="]");var p='<input type="text" id="wppaphoto-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+(o=o.replace(/"/g,"&quot;"))+'" />';jQuery("#wppaphoto-shortcode-preview-container").html(p),!wppaIsEmpty(photo)?(jQuery("#wppaphoto-submit").show(),jQuery("#wppaphoto-submit-notok").hide()):(jQuery("#wppaphoto-submit").hide(),jQuery("#wppaphoto-submit-notok").show())}function wppaTinyMceBasicPhotoPreview(o){if("#potd"==o)jQuery("#wppaphoto-photo-preview").html(wppaNoPreview);else if(-1!=o.indexOf("xxx")){var e=o.replace("xxx","");jQuery("#wppaphoto-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+e+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+e+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'webm" type="video/webm"></video>')}else jQuery("#wppaphoto-photo-preview").html('<img src="'+wppaPhotoDirectory+o+'" style="max-width:400px; max-height:300px;" />')}function wppaDisplaySelectedFile(o,e){var p=jQuery("#"+o)[0].files[0].name;jQuery("#"+e).val("Upload "+p)}
1
+ tinymce.PluginManager.add("wppaphoto",function(o,e){o.addButton("wppa_photo_button",{image:wppaImageDirectory+"camera32.png",tooltip:"WPPA+ Insert photo",onclick:function(){var o={modal:!0,resizable:!0,width:720,show:{effect:"fadeIn",duration:400},closeText:"",close:function(o,e){wppaMyPhotoSelection||(wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery(".wppa-photo-select-item").prop("selected",!1),jQuery(".wppa-photo-select-item-first").prop("selected",!0))},open:function(o,e){wppaPhotoEvaluate()}};jQuery("#wppaphoto-form").dialog(o).dialog("open"),jQuery(".ui-widget-header").css({background:"none"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-dialog-title").css({position:"absolute",top:"15px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"20px",width:"16px",height:"16px"}),jQuery(".ui-widget-overlay").css({background:"none"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-icon-closethick").css({display:"none"})}})}),jQuery(function(){var p=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),o=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcephotodialog";p.open("GET",o,!0),p.send(),p.onreadystatechange=function(){var o,e;4==p.readyState&&404!=p.status&&(o=wppaEntityDecode(p.responseText),(e=jQuery(o)).find("table"),e.appendTo("body").hide(),e.find("#wppaphoto-submit").click(function(){newShortcode=jQuery("#wppaphoto-shortcode-preview").val(),newShortcode=newShortcode.replace(/&quot;/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),wppaMyPhotoSelection=!0,jQuery("#wppaphoto-allphoto-tr").hide(),jQuery("#wppaphoto-myphoto-tr").show(),jQuery("#wppaphoto-photo-preview").html(""),jQuery("#wppaphoto-form").dialog("close")}))}});var wppaMyPhotoSelection=!0;function wppaPhotoEvaluate(){var o,e=wppaMyPhotoSelection?"my":"all";photo=jQuery("#wppaphoto-"+e+"photo").val(),o=wppaIsEmpty(photo)?(jQuery("#wppaphoto-"+e+"photo").css("color","#700"),""):(id=photo.replace(/\//g,""),id=id.split("."),id=id[0],jQuery("#wppaphoto-photo-preview-tr").show(),wppaTinyMceBasicPhotoPreview(photo),jQuery("#wppaphoto-"+e+"photo").css("color","#070"),"[photo "+id),jQuery("#wppaphoto-cache").prop("checked")&&(o+=' cache="inf"'),o.length&&(o+="]");var p='<input type="text" id="wppaphoto-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+(o=o.replace(/"/g,"&quot;"))+'" />';jQuery("#wppaphoto-shortcode-preview-container").html(p),!wppaIsEmpty(photo)?(jQuery("#wppaphoto-submit").show(),jQuery("#wppaphoto-submit-notok").hide()):(jQuery("#wppaphoto-submit").hide(),jQuery("#wppaphoto-submit-notok").show())}function wppaTinyMceBasicPhotoPreview(o){var e;"#potd"==o?jQuery("#wppaphoto-photo-preview").html(wppaNoPreview):-1!=o.indexOf("xxx")?(e=o.replace("xxx",""),jQuery("#wppaphoto-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+e+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+e+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+e+'webm" type="video/webm"></video>')):jQuery("#wppaphoto-photo-preview").html('<img src="'+wppaPhotoDirectory+o+'" style="max-width:400px; max-height:300px;" />')}function wppaDisplaySelectedFile(o,e){var p=jQuery("#"+o)[0].files[0].name;jQuery("#"+e).val("Upload "+p)}
js/wppa-tinymce-shortcodes.js CHANGED
@@ -2,7 +2,7 @@
2
  * Pachkage: wp-photo-album-plus
3
  *
4
  *
5
- * Version 7.3.06
6
  *
7
  */
8
 
@@ -10,12 +10,75 @@
10
  tinymce.PluginManager.add('wppagallery', function(editor, url) {
11
 
12
  function openWppaShortcodeGenerator() {
13
- // triggers the thickbox
14
- var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width;
15
- W = W - 80;
16
- H = jQuery(window).height();
17
- H = H - 120;
18
- tb_show( 'WPPA+ Shortcode Generator', '#TB_inline?width=' + W + '&height=' + H + '&inlineId=wppagallery-form' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
 
21
  editor.addButton('wppa_gallery_button', {
@@ -58,8 +121,8 @@ jQuery(function(){
58
  // inserts the shortcode into the active editor
59
  tinyMCE.activeEditor.execCommand('mceInsertContent', 0, newShortcode);
60
 
61
- // closes Thickbox
62
- tb_remove();
63
  });
64
  }
65
  }
2
  * Pachkage: wp-photo-album-plus
3
  *
4
  *
5
+ * Version 7.5.10
6
  *
7
  */
8
 
10
  tinymce.PluginManager.add('wppagallery', function(editor, url) {
11
 
12
  function openWppaShortcodeGenerator() {
13
+
14
+ var opt = {
15
+ modal: true,
16
+ resizable: true,
17
+ width: 720,
18
+ show: {
19
+ effect: "fadeIn",
20
+ duration: 400
21
+ },
22
+ closeText: "",
23
+ close: function(event,ui) {
24
+
25
+
26
+ },
27
+ open: function(event,ui) {
28
+ wppaGalleryEvaluate();
29
+ }
30
+ };
31
+
32
+ jQuery( "#wppagallery-form" ).dialog(opt).dialog( "open" );
33
+
34
+ jQuery( '.ui-widget-header' ).css( {
35
+ background: 'none',
36
+ });
37
+
38
+ jQuery( '.ui-dialog' ).css( {
39
+ boxShadow: '0px 0px 5px 5px #aaaaaa',
40
+ borderRadius: wppaBoxRadius+'px',
41
+ padding: '8px',
42
+ backgroundColor: wppaModalBgColor,
43
+ boxSizing: 'content-box',
44
+ zIndex: 100000,
45
+ });
46
+
47
+ jQuery( '.ui-dialog-titlebar' ).css( {
48
+ lineHeight: '0px',
49
+ height: '24px',
50
+ fontSize: '18px',
51
+ fontWeight: 'bold',
52
+ });
53
+
54
+ jQuery( '.ui-dialog-title' ).css( {
55
+ position: 'absolute',
56
+ top: '15px',
57
+ fontSize: '18px',
58
+ fontWeight: 'bold',
59
+ });
60
+
61
+ jQuery( '.ui-button' ).css( {
62
+ backgroundImage: wppaModalQuitImg,
63
+ padding: 0,
64
+ position: 'absolute',
65
+ right: '8px',
66
+ top: '20px',
67
+ width: '16px',
68
+ height: '16px',
69
+ });
70
+
71
+ jQuery( '.ui-widget-overlay' ).css( {
72
+ background: 'none',
73
+ });
74
+
75
+ jQuery( '.ui-button' ).attr( 'title', 'Close' );
76
+
77
+ jQuery( '.ui-icon-closethick' ).css( {
78
+ display: 'none',
79
+ });
80
+
81
+
82
  }
83
 
84
  editor.addButton('wppa_gallery_button', {
121
  // inserts the shortcode into the active editor
122
  tinyMCE.activeEditor.execCommand('mceInsertContent', 0, newShortcode);
123
 
124
+ // closes Dialog box
125
+ jQuery( "#wppagallery-form" ).dialog( "close" );
126
  });
127
  }
128
  }
js/wppa-tinymce-shortcodes.min.js CHANGED
@@ -1 +1 @@
1
- function wppaGalleryEvaluate(){var e;jQuery("#wppagallery-galery-type-tr").hide(),jQuery("#wppagallery-slides-type-tr").hide(),jQuery("#wppagallery-single-type-tr").hide(),jQuery("#wppagallery-search-type-tr").hide(),jQuery("#wppagallery-miscel-type-tr").hide(),jQuery("#wppagallery-album-type-tr").hide(),jQuery("#wppagallery-album-real-tr").hide(),jQuery("#wppagallery-album-real-search-tr").hide(),jQuery("#wppagallery-album-realopt-tr").hide(),jQuery("#wppagallery-album-virt-tr").hide(),jQuery("#wppagallery-album-virt-cover-tr").hide(),jQuery("#wppagallery-owner-tr").hide(),jQuery("#wppagallery-owner-parent-tr").hide(),jQuery("#wppagallery-album-parent-tr").hide(),jQuery("#wppagallery-album-count-tr").hide(),jQuery("#wppagallery-photo-count-tr").hide(),jQuery("#wppagallery-albumcat-tr").hide(),jQuery("#wppagallery-photo-tr").hide(),jQuery("#wppagallery-photo-preview-tr").hide(),jQuery("#wppagallery-phototags-tr").hide(),jQuery("#wppagallery-search-tr").hide(),jQuery("#wppagallery-taglist-tr").hide(),jQuery("#wppagallery-album-super-tr").hide(),jQuery("#wppagallery-calendar-tr").hide(),jQuery("#wppagallery-tags-cats-tr").hide(),jQuery("#wppagallery-landing-tr").hide(),jQuery("#wppagallery-rootalbum-tr").hide(),jQuery("#wppagallery-admins-tr").hide(),jQuery("#wppagallery-cache-tr").hide(),jQuery("#wppagallery-delay-tr").hide();var a,r,l,p,y,t="[wppa",o="",u="",w="",s="",c="",g="",i="",h="",n="",j="",Q="",d=!1,m=!1,b=!1,v=!1,k=!1,f=!1,E=!1,x=!1,I=!1,P=!1,S="",T="",A="",C="",G="",z=!1,B=!1,D="",M="0",_="0",L="";switch(jQuery("select").css("color","#700"),jQuery("#wppagallery-album-parent-parent").css("color","#070"),jQuery("#wppagallery-align").css("color","#070"),a=jQuery("#wppagallery-top-type").val(),wppaIsEmpty(a)||jQuery("#wppagallery-top-type").css("color","#070"),a){case"galerytype":jQuery("#wppagallery-galery-type-tr").show(),o=jQuery("#wppagallery-galery-type").val(),b=d=!0,jQuery("#wppagallery-album-type-tr").show(),wppaIsEmpty(o)||(jQuery("#wppagallery-galery-type").css("color","#070"),u=o);break;case"slidestype":jQuery("#wppagallery-slides-type-tr").show(),o=jQuery("#wppagallery-slides-type").val(),b=m=!0,jQuery("#wppagallery-album-type-tr").show(),wppaIsEmpty(o)||(jQuery("#wppagallery-slides-type").css("color","#070"),w=o);break;case"singletype":jQuery("#wppagallery-single-type-tr").show(),o=jQuery("#wppagallery-single-type").val(),v=!0,jQuery("#wppagallery-photo-tr").show(),wppaIsEmpty(o)||jQuery("#wppagallery-single-type").css("color","#070");break;case"searchtype":switch(jQuery("#wppagallery-search-type-tr").show(),I=!0,c=o=jQuery("#wppagallery-search-type").val(),wppaIsEmpty(o)||jQuery("#wppagallery-search-type").css("color","#070"),o){case"search":jQuery("#wppagallery-search-tr").show(),jQuery("#wppagallery-root").prop("checked")&&jQuery("#wppagallery-rootalbum-tr").show(),_=jQuery("#wppagallery-rootalbum").val(),jQuery("#wppagallery-landing-tr").show(),M=jQuery("#wppagallery-landing").val();break;case"supersearch":break;case"tagcloud":case"multitag":if(jQuery("#wppagallery-taglist-tr").show(),!jQuery("#wppagallery-alltags").prop("checked")){E=!0,jQuery("#wppagallery-seltags").show(),l=jQuery(".wppagallery-taglist-tags");var q=[];for(r=O=0;O<l.length;)l[O].selected&&(q[r]=l[O].value,r++),O++;S=wppaArrayToEnum(q,",")}break;case"superview":jQuery("#wppagallery-album-super-tr").show(),i=jQuery("#wppagallery-album-super-parent").val();break;case"calendar":jQuery("#wppagallery-calendar-tr").show(),jQuery("#wppagallery-album-super-tr").show(),G=jQuery("#wppagallery-calendar-type").val(),z=jQuery("#wppagallery-calendar-reverse").prop("checked"),B=jQuery("#wppagallery-calendar-allopen").prop("checked"),h=jQuery("#wppagallery-album-super-parent").val()}break;case"misceltype":switch(jQuery("#wppagallery-miscel-type-tr").show(),o=jQuery("#wppagallery-miscel-type").val(),P=!0,wppaIsEmpty(o)||jQuery("#wppagallery-miscel-type").css("color","#070"),o){case"generic":g=o;break;case"upload":g=o,jQuery("#wppagallery-album-realopt-tr").show(),i=(i=jQuery("#wppagallery-album-realopt").val()).toString().replace(/,/g,".");break;case"landing":case"stereo":g=o;break;case"choice":g=o,jQuery("#wppagallery-admins-tr").show(),L=wppaGetSelectionEnumByClass(".wppagallery-admin",",")}}if(wppaIsEmpty(o)||(t+=' type="'+o+'"'),b)switch(s=jQuery("#wppagallery-album-type").val(),wppaIsEmpty(s)||jQuery("#wppagallery-album-type").css("color","#070"),s){case"real":if(jQuery("#wppagallery-album-real-tr").show(),jQuery("#wppagallery-album-real-search-tr").show(),jQuery("#wppagallery-album-real-search"))if(jQuery("#wppagallery-album-real-search").val()){var H=jQuery("#wppagallery-album-real-search").val().toLowerCase();if(!wppaIsEmpty(H)&&(albums=jQuery(".wppagallery-album-r"),0<albums.length))for(var O=0;O<albums.length;){-1==albums[O].innerHTML.toLowerCase().search(H)?(jQuery(albums[O]).removeAttr("selected"),jQuery(albums[O]).hide()):jQuery(albums[O]).show(),O++}}else jQuery(".wppagallery-album-r").show();i=(i=jQuery("#wppagallery-album-real").val()).toString().replace(/,/g,".");break;case"virtual":if(i="cover"==o?(jQuery("#wppagallery-album-virt-cover-tr").show(),jQuery("#wppagallery-album-virt-cover").val()):(jQuery("#wppagallery-album-virt-tr").show(),jQuery("#wppagallery-album-virt").val()),!wppaIsEmpty(i))switch(jQuery("#wppagallery-album-virt").css("color","#070"),i){case"#topten":case"#lasten":case"#featen":case"#comten":jQuery("#wppagallery-album-realopt-tr").show(),0<jQuery(".wppagallery-album-ropt").length?h=wppaGetSelectionEnumByClass(".wppagallery-album-ropt","."):-1!=(h=jQuery("#wppagallery-album-realopt").val()).indexOf(",")&&(parr=h.split(","),h=wppaArrayToEnum(parr,".")),""==h&&(h="0"),jQuery("#wppagallery-photo-count-tr").show(),n=jQuery("#wppagallery-photo-count").val();break;case"#tags":jQuery("#wppagallery-phototags-tr").show(),jQuery("#wppagallery-tags-cats-tr").show(),jQuery("[name=andor]:checked").val()||jQuery("#wppagallery-or").prop("checked",!0),D="or"==jQuery("[name=andor]:checked").val()?";":",",f=!0,l=jQuery(".wppagallery-phototags");q=[];for(r=O=0;O<l.length;)l[O].selected&&(q[r]=l[O].value,r++),O++;A=wppaArrayToEnum(q,D);break;case"#last":jQuery("#wppagallery-album-parent-tr").show(),h=jQuery("#wppagallery-album-parent-parent").val(),jQuery("#wppagallery-album-count-tr").show(),n=jQuery("#wppagallery-album-count").val();break;case"#cat":jQuery("#wppagallery-albumcat-tr").show(),jQuery("#wppagallery-tags-cats-tr").show(),jQuery("[name=andor]:checked").val()||jQuery("#wppagallery-or").prop("checked",!0),D="or"==jQuery("[name=andor]:checked").val()?";":",",x=!0,l=jQuery(".wppagallery-albumcat");var R=[];for(r=O=0;O<l.length;)l[O].selected&&(R[r]=l[O].value,r++),O++;C=wppaArrayToEnum(R,D);break;case"#owner":case"#upldr":jQuery("#wppagallery-owner-tr").show(),k=!0,T=jQuery("#wppagallery-owner").val(),wppaIsEmpty(T)||(jQuery("#wppagallery-owner").css("color","#070"),jQuery("#wppagallery-owner-parent-tr").show(),h=(h=wppaGetSelectionEnumByClass(".wppagallery-album-p",".")).toString().replace("zero","0"));break;case"#all":break;default:null!=i&&alert(wppaUIERR+": "+i)}break;default:i=""}wppaIsEmpty(i)||(t+=' album="'+i,""!=T&&(t+=","+T),""==h&&""!=n&&(h="0"),""!=h&&(t+=","+h),""!=n&&(t+=","+n),""!=A&&(t+=","+A),""!=C&&(t+=","+C),t+='"'),v&&(j=jQuery("#wppagallery-photo").val())&&(Q=(Q=(Q=j.replace(/\//g,"")).split("."))[0],jQuery("#wppagallery-photo-preview-tr").show(),wppaTinyMcePhotoPreview(j),t+=' photo="'+Q+'"',jQuery("#wppagallery-photo").css("color","#070")),"search"==o&&(jQuery("#wppagallery-sub").prop("checked")&&(t+=' sub="1"'),jQuery("#wppagallery-root").prop("checked")&&(t+="0"!=_?' root="#'+_+'"':' root="1"'),"0"!=M&&(t+=' landing="'+M+'"')),"tagcloud"!=o&&"multitag"!=o||""!=S&&(t+=' taglist="'+S+'"'),"calendar"==o&&(t+=' calendar="'+G+'"',h&&(t+=' album="'+h+'"'),z&&(t+=' reverse="1"'),B&&(t+=' all="1"')),"choice"==o&&0<L.length&&(t+=' admin="'+L+'"');var U=document.getElementById("wppagallery-size").value,W=U.split(",");if(W[1]?"auto"==W[0]&&parseInt(W[1])==W[1]&&100<W[1]?jQuery("#wppagallery-size").css("color","#070"):(U=0,jQuery("#wppagallery-size").css("color","#700")):(""!=U&&"auto"!=U&&parseInt(U)!=U&&(U=0,jQuery("#wppagallery-size").css("color","#700")),U<0&&(U=-U),U<100&&(U/=100),jQuery("#wppagallery-size").css("color","#070")),0!=U&&(t+=' size="'+U+'"'),"none"!=(p=jQuery("#wppagallery-align").val())&&(t+=' align="'+p+'"'),"landing"!=g&&(jQuery("#wppagallery-cache-tr").show(),jQuery("#wppagallery-cache").prop("checked")&&(t+=' cache="inf"')),"landing"!=g&&"singletype"!=a&&(jQuery("#wppagallery-delay-tr").show(),jQuery("#wppagallery-delay").prop("checked")&&(t+=' delay="yes"')),y='<input type="text" id="wppagallery-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+(t=(t+="]").replace(/"/g,"&quot;"))+'" />',jQuery("#wppagallery-shortcode-preview-container").html(y),!(e=!(""==i&&b||""==j&&v||""==T&&k||""==S&&E||""==u&&d||""==w&&m||""==c&&I||""==g&&P||""==A&&f||""==C&&x))){""==i&&b&&0,""==j&&v&&0,""==T&&k&&0,""==S&&E&&0,""==u&&d&&0,""==w&&m&&0,""==c&&I&&0,""==g&&P&&0,""==A&&f&&0,""==C&&x&&0}e?(jQuery("#wppagallery-submit").show(),jQuery("#wppagallery-submit-notok").hide()):(jQuery("#wppagallery-submit").hide(),jQuery("#wppagallery-submit-notok").show())}function wppaTinyMcePhotoPreview(e){if("#potd"==e)jQuery("#wppagallery-photo-preview").html(wppaNoPreview);else if(-1!=e.indexOf("xxx")){var a=e.replace("xxx","");jQuery("#wppagallery-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+a+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+a+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+a+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+a+'webm" type="video/webm"></video>')}else jQuery("#wppagallery-photo-preview").html('<img src="'+wppaPhotoDirectory+e+'" style="max-width:400px; max-height:300px;" />')}tinymce.PluginManager.add("wppagallery",function(e,a){e.addButton("wppa_gallery_button",{image:wppaImageDirectory+"albumnew32.png",tooltip:"WPPA+ Shortcode Generator",onclick:function(){var e=jQuery(window).width(),a=jQuery(window).height(),r=720<e?720:e;r-=80,a=jQuery(window).height(),a-=120,tb_show("WPPA+ Shortcode Generator","#TB_inline?width="+r+"&height="+a+"&inlineId=wppagallery-form")}})}),jQuery(function(){var r=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcedialog";r.open("GET",e,!0),r.send(),r.onreadystatechange=function(){if(4==r.readyState&&404!=r.status){var e=wppaEntityDecode(r.responseText),a=jQuery(e);a.find("table");a.appendTo("body").hide(),a.find("#wppagallery-submit").click(function(){newShortcode=document.getElementById("wppagallery-shortcode-preview").value,newShortcode=newShortcode.replace(/&quot;/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),tb_remove()})}}});
1
+ function wppaGalleryEvaluate(){var e;jQuery("#wppagallery-galery-type-tr").hide(),jQuery("#wppagallery-slides-type-tr").hide(),jQuery("#wppagallery-single-type-tr").hide(),jQuery("#wppagallery-search-type-tr").hide(),jQuery("#wppagallery-miscel-type-tr").hide(),jQuery("#wppagallery-album-type-tr").hide(),jQuery("#wppagallery-album-real-tr").hide(),jQuery("#wppagallery-album-real-search-tr").hide(),jQuery("#wppagallery-album-realopt-tr").hide(),jQuery("#wppagallery-album-virt-tr").hide(),jQuery("#wppagallery-album-virt-cover-tr").hide(),jQuery("#wppagallery-owner-tr").hide(),jQuery("#wppagallery-owner-parent-tr").hide(),jQuery("#wppagallery-album-parent-tr").hide(),jQuery("#wppagallery-album-count-tr").hide(),jQuery("#wppagallery-photo-count-tr").hide(),jQuery("#wppagallery-albumcat-tr").hide(),jQuery("#wppagallery-photo-tr").hide(),jQuery("#wppagallery-photo-preview-tr").hide(),jQuery("#wppagallery-phototags-tr").hide(),jQuery("#wppagallery-search-tr").hide(),jQuery("#wppagallery-taglist-tr").hide(),jQuery("#wppagallery-album-super-tr").hide(),jQuery("#wppagallery-calendar-tr").hide(),jQuery("#wppagallery-tags-cats-tr").hide(),jQuery("#wppagallery-landing-tr").hide(),jQuery("#wppagallery-rootalbum-tr").hide(),jQuery("#wppagallery-admins-tr").hide(),jQuery("#wppagallery-cache-tr").hide(),jQuery("#wppagallery-delay-tr").hide();var a,r,l,p,t="[wppa",y="",o="",u="",s="",w="",c="",g="",i="",n="",h="",d="",j=!1,Q=!1,m=!1,b=!1,v=!1,k=!1,x=!1,f=!1,E=!1,I=!1,S="",P="",z="",C="",T="",B=!1,G=!1,A="",D="0",M="0",R="";switch(jQuery("select").css("color","#700"),jQuery("#wppagallery-album-parent-parent").css("color","#070"),jQuery("#wppagallery-align").css("color","#070"),a=jQuery("#wppagallery-top-type").val(),wppaIsEmpty(a)||jQuery("#wppagallery-top-type").css("color","#070"),a){case"galerytype":jQuery("#wppagallery-galery-type-tr").show(),y=jQuery("#wppagallery-galery-type").val(),m=j=!0,jQuery("#wppagallery-album-type-tr").show(),wppaIsEmpty(y)||(jQuery("#wppagallery-galery-type").css("color","#070"),o=y);break;case"slidestype":jQuery("#wppagallery-slides-type-tr").show(),y=jQuery("#wppagallery-slides-type").val(),m=Q=!0,jQuery("#wppagallery-album-type-tr").show(),wppaIsEmpty(y)||(jQuery("#wppagallery-slides-type").css("color","#070"),u=y);break;case"singletype":jQuery("#wppagallery-single-type-tr").show(),y=jQuery("#wppagallery-single-type").val(),b=!0,jQuery("#wppagallery-photo-tr").show(),wppaIsEmpty(y)||jQuery("#wppagallery-single-type").css("color","#070");break;case"searchtype":switch(jQuery("#wppagallery-search-type-tr").show(),E=!0,w=y=jQuery("#wppagallery-search-type").val(),wppaIsEmpty(y)||jQuery("#wppagallery-search-type").css("color","#070"),y){case"search":jQuery("#wppagallery-search-tr").show(),jQuery("#wppagallery-root").prop("checked")&&jQuery("#wppagallery-rootalbum-tr").show(),M=jQuery("#wppagallery-rootalbum").val(),jQuery("#wppagallery-landing-tr").show(),D=jQuery("#wppagallery-landing").val();break;case"supersearch":break;case"tagcloud":case"multitag":if(jQuery("#wppagallery-taglist-tr").show(),!jQuery("#wppagallery-alltags").prop("checked")){x=!0,jQuery("#wppagallery-seltags").show(),r=jQuery(".wppagallery-taglist-tags");for(var H=[],L=q=0;q<r.length;)r[q].selected&&(H[L]=r[q].value,L++),q++;S=wppaArrayToEnum(H,",")}break;case"superview":jQuery("#wppagallery-album-super-tr").show(),g=jQuery("#wppagallery-album-super-parent").val();break;case"calendar":jQuery("#wppagallery-calendar-tr").show(),jQuery("#wppagallery-album-super-tr").show(),T=jQuery("#wppagallery-calendar-type").val(),B=jQuery("#wppagallery-calendar-reverse").prop("checked"),G=jQuery("#wppagallery-calendar-allopen").prop("checked"),i=jQuery("#wppagallery-album-super-parent").val()}break;case"misceltype":switch(jQuery("#wppagallery-miscel-type-tr").show(),y=jQuery("#wppagallery-miscel-type").val(),I=!0,wppaIsEmpty(y)||jQuery("#wppagallery-miscel-type").css("color","#070"),y){case"generic":c=y;break;case"upload":c=y,jQuery("#wppagallery-album-realopt-tr").show(),g=(g=jQuery("#wppagallery-album-realopt").val()).toString().replace(/,/g,".");break;case"landing":case"stereo":c=y;break;case"choice":c=y,jQuery("#wppagallery-admins-tr").show(),R=wppaGetSelectionEnumByClass(".wppagallery-admin",",")}}if(wppaIsEmpty(y)||(t+=' type="'+y+'"'),m)switch(s=jQuery("#wppagallery-album-type").val(),wppaIsEmpty(s)||jQuery("#wppagallery-album-type").css("color","#070"),s){case"real":if(jQuery("#wppagallery-album-real-tr").show(),jQuery("#wppagallery-album-real-search-tr").show(),jQuery("#wppagallery-album-real-search"))if(jQuery("#wppagallery-album-real-search").val()){var W=jQuery("#wppagallery-album-real-search").val().toLowerCase();if(!wppaIsEmpty(W)&&(albums=jQuery(".wppagallery-album-r"),0<albums.length))for(var q=0;q<albums.length;){-1==albums[q].innerHTML.toLowerCase().search(W)?(jQuery(albums[q]).removeAttr("selected"),jQuery(albums[q]).hide()):jQuery(albums[q]).show(),q++}}else jQuery(".wppagallery-album-r").show();g=(g=jQuery("#wppagallery-album-real").val()).toString().replace(/,/g,".");break;case"virtual":if(g="cover"==y?(jQuery("#wppagallery-album-virt-cover-tr").show(),jQuery("#wppagallery-album-virt-cover").val()):(jQuery("#wppagallery-album-virt-tr").show(),jQuery("#wppagallery-album-virt").val()),!wppaIsEmpty(g))switch(jQuery("#wppagallery-album-virt").css("color","#070"),g){case"#topten":case"#lasten":case"#featen":case"#comten":jQuery("#wppagallery-album-realopt-tr").show(),0<jQuery(".wppagallery-album-ropt").length?i=wppaGetSelectionEnumByClass(".wppagallery-album-ropt","."):-1!=(i=jQuery("#wppagallery-album-realopt").val()).indexOf(",")&&(parr=i.split(","),i=wppaArrayToEnum(parr,".")),""==i&&(i="0"),jQuery("#wppagallery-photo-count-tr").show(),n=jQuery("#wppagallery-photo-count").val();break;case"#tags":jQuery("#wppagallery-phototags-tr").show(),jQuery("#wppagallery-tags-cats-tr").show(),jQuery("[name=andor]:checked").val()||jQuery("#wppagallery-or").prop("checked",!0),A="or"==jQuery("[name=andor]:checked").val()?";":",",k=!0,r=jQuery(".wppagallery-phototags");H=[];for(L=q=0;q<r.length;)r[q].selected&&(H[L]=r[q].value,L++),q++;z=wppaArrayToEnum(H,A);break;case"#last":jQuery("#wppagallery-album-parent-tr").show(),i=jQuery("#wppagallery-album-parent-parent").val(),jQuery("#wppagallery-album-count-tr").show(),n=jQuery("#wppagallery-album-count").val();break;case"#cat":jQuery("#wppagallery-albumcat-tr").show(),jQuery("#wppagallery-tags-cats-tr").show(),jQuery("[name=andor]:checked").val()||jQuery("#wppagallery-or").prop("checked",!0),A="or"==jQuery("[name=andor]:checked").val()?";":",",f=!0,r=jQuery(".wppagallery-albumcat");var O=[];for(L=q=0;q<r.length;)r[q].selected&&(O[L]=r[q].value,L++),q++;C=wppaArrayToEnum(O,A);break;case"#owner":case"#upldr":jQuery("#wppagallery-owner-tr").show(),v=!0,P=jQuery("#wppagallery-owner").val(),wppaIsEmpty(P)||(jQuery("#wppagallery-owner").css("color","#070"),jQuery("#wppagallery-owner-parent-tr").show(),i=(i=wppaGetSelectionEnumByClass(".wppagallery-album-p",".")).toString().replace("zero","0"));break;case"#all":break;default:null!=g&&alert(wppaUIERR+": "+g)}break;default:g=""}wppaIsEmpty(g)||(t+=' album="'+g,""!=P&&(t+=","+P),""==i&&""!=n&&(i="0"),""!=i&&(t+=","+i),""!=n&&(t+=","+n),""!=z&&(t+=","+z),""!=C&&(t+=","+C),t+='"'),b&&(h=jQuery("#wppagallery-photo").val())&&(d=(d=(d=h.replace(/\//g,"")).split("."))[0],jQuery("#wppagallery-photo-preview-tr").show(),wppaTinyMcePhotoPreview(h),t+=' photo="'+d+'"',jQuery("#wppagallery-photo").css("color","#070")),"search"==y&&(jQuery("#wppagallery-sub").prop("checked")&&(t+=' sub="1"'),jQuery("#wppagallery-root").prop("checked")&&(t+="0"!=M?' root="#'+M+'"':' root="1"'),"0"!=D&&(t+=' landing="'+D+'"')),"tagcloud"!=y&&"multitag"!=y||""!=S&&(t+=' taglist="'+S+'"'),"calendar"==y&&(t+=' calendar="'+T+'"',i&&(t+=' album="'+i+'"'),B&&(t+=' reverse="1"'),G&&(t+=' all="1"')),"choice"==y&&0<R.length&&(t+=' admin="'+R+'"');var U=document.getElementById("wppagallery-size").value,_=U.split(",");_[1]?"auto"==_[0]&&parseInt(_[1])==_[1]&&100<_[1]?jQuery("#wppagallery-size").css("color","#070"):(U=0,jQuery("#wppagallery-size").css("color","#700")):(""!=U&&"auto"!=U&&parseInt(U)!=U&&(U=0,jQuery("#wppagallery-size").css("color","#700")),U<0&&(U=-U),U<100&&(U/=100),jQuery("#wppagallery-size").css("color","#070")),0!=U&&(t+=' size="'+U+'"'),"none"!=(l=jQuery("#wppagallery-align").val())&&(t+=' align="'+l+'"'),"landing"!=c&&(jQuery("#wppagallery-cache-tr").show(),jQuery("#wppagallery-cache").prop("checked")&&(t+=' cache="inf"')),"landing"!=c&&"singletype"!=a&&(jQuery("#wppagallery-delay-tr").show(),jQuery("#wppagallery-delay").prop("checked")&&(t+=' delay="yes"')),p='<input type="text" id="wppagallery-shortcode-preview" style="background-color:#ddd; width:100%; height:26px;" value="'+(t=(t+="]").replace(/"/g,"&quot;"))+'" />',jQuery("#wppagallery-shortcode-preview-container").html(p),e=!(""==g&&m||""==h&&b||""==P&&v||""==S&&x||""==o&&j||""==u&&Q||""==w&&E||""==c&&I||""==z&&k||""==C&&f),e?(jQuery("#wppagallery-submit").show(),jQuery("#wppagallery-submit-notok").hide()):(jQuery("#wppagallery-submit").hide(),jQuery("#wppagallery-submit-notok").show())}function wppaTinyMcePhotoPreview(e){var a;"#potd"==e?jQuery("#wppagallery-photo-preview").html(wppaNoPreview):-1!=e.indexOf("xxx")?(a=e.replace("xxx",""),jQuery("#wppagallery-photo-preview").html('<video preload="metadata" style="max-width:400px; max-height:300px; margin-top:3px;" controls><source src="'+wppaPhotoDirectory+a+'mp4" type="video/mp4"><source src="'+wppaPhotoDirectory+a+'ogg" type="video/ogg"><source src="'+wppaPhotoDirectory+a+'ogv" type="video/ogg"><source src="'+wppaPhotoDirectory+a+'webm" type="video/webm"></video>')):jQuery("#wppagallery-photo-preview").html('<img src="'+wppaPhotoDirectory+e+'" style="max-width:400px; max-height:300px;" />')}tinymce.PluginManager.add("wppagallery",function(e,a){e.addButton("wppa_gallery_button",{image:wppaImageDirectory+"albumnew32.png",tooltip:"WPPA+ Shortcode Generator",onclick:function(){var e={modal:!0,resizable:!0,width:720,show:{effect:"fadeIn",duration:400},closeText:"",close:function(e,a){},open:function(e,a){wppaGalleryEvaluate()}};jQuery("#wppagallery-form").dialog(e).dialog("open"),jQuery(".ui-widget-header").css({background:"none"}),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-dialog-title").css({position:"absolute",top:"15px",fontSize:"18px",fontWeight:"bold"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"20px",width:"16px",height:"16px"}),jQuery(".ui-widget-overlay").css({background:"none"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-icon-closethick").css({display:"none"})}})}),jQuery(function(){var r=wppaGetXmlHttp(),e=wppaAjaxUrl+"?action=wppa&wppa-action=tinymcedialog";r.open("GET",e,!0),r.send(),r.onreadystatechange=function(){var e,a;4==r.readyState&&404!=r.status&&(e=wppaEntityDecode(r.responseText),(a=jQuery(e)).find("table"),a.appendTo("body").hide(),a.find("#wppagallery-submit").click(function(){newShortcode=document.getElementById("wppagallery-shortcode-preview").value,newShortcode=newShortcode.replace(/&quot;/g,'"'),tinyMCE.activeEditor.execCommand("mceInsertContent",0,newShortcode),jQuery("#wppagallery-form").dialog("close")}))}});
wppa-gutenberg-photo.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-gutenberg-photo.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 7.3.06
6
  */
7
 
8
  function wppa_gutenberg_photo_block() {
@@ -281,7 +281,6 @@ global $wpdb;
281
  '<input
282
  id="wppa-shortcode-photo-ready"
283
  type="button"
284
- style="display:none;"
285
  value="' . __( 'Ready', 'wp-photo-album-plus' ) . '"
286
  / >' .
287
 
2
  /* wppa-gutenberg-photo.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 7.5.10
6
  */
7
 
8
  function wppa_gutenberg_photo_block() {
281
  '<input
282
  id="wppa-shortcode-photo-ready"
283
  type="button"
 
284
  value="' . __( 'Ready', 'wp-photo-album-plus' ) . '"
285
  / >' .
286
 
wppa-gutenberg-wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-gutenberg-wppa.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 7.4.02
6
  */
7
 
8
  function wppa_gutenberg_wppa_block() {
@@ -670,7 +670,6 @@ global $wpdb;
670
  '<input
671
  id="wppa-shortcode-wppa-ready"
672
  type="button"
673
- style="display:none;"
674
  value="' . __( 'Ready', 'wp-photo-album-plus' ) . '"
675
  / >' .
676
 
2
  /* wppa-gutenberg-wppa.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 7.5.10
6
  */
7
 
8
  function wppa_gutenberg_wppa_block() {
670
  '<input
671
  id="wppa-shortcode-wppa-ready"
672
  type="button"
 
673
  value="' . __( 'Ready', 'wp-photo-album-plus' ) . '"
674
  / >' .
675
 
wppa-non-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
- * Version 7.5.08
7
  *
8
  */
9
 
@@ -14,7 +14,9 @@ require_once 'wppa-filter.php';
14
  require_once 'wppa-breadcrumb.php';
15
  require_once 'wppa-album-covers.php';
16
  require_once 'wppa-cart.php';
17
- require_once 'wppa-tinymce-photo-front.php';
 
 
18
 
19
  /* LOAD STYLESHEET */
20
  add_action('wp_enqueue_scripts', 'wppa_add_style');
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 7.5.10
7
  *
8
  */
9
 
14
  require_once 'wppa-breadcrumb.php';
15
  require_once 'wppa-album-covers.php';
16
  require_once 'wppa-cart.php';
17
+ if ( ! is_admin() ) {
18
+ require_once 'wppa-tinymce-photo-front.php';
19
+ }
20
 
21
  /* LOAD STYLESHEET */
22
  add_action('wp_enqueue_scripts', 'wppa_add_style');
wppa-tinymce-photo-front.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-photo-front.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 7.1.06
6
  *
7
  */
8
 
@@ -44,12 +44,11 @@ add_action( 'wp_head', 'wppa_inject_3_js' );
44
 
45
  function wppa_inject_3_js() {
46
  global $wppa_api_version;
47
- static $done;
48
  global $wpdb;
49
  global $wppa_js_page_data;
50
 
51
 
52
- if ( wppa_switch( 'photo_shortcode_enabled' ) && ! $done ) {
53
 
54
  // Find an existing photo
55
  $id = $wpdb->get_var( "SELECT id FROM $wpdb->wppa_photos
@@ -63,7 +62,7 @@ global $wppa_js_page_data;
63
 
64
  // Things that wppa-tinymce.js AND OTHER MODULES!!! need to know
65
  $result =
66
- '/* START PHOTO sc and TynyMce fe vars */
67
  wppaImageDirectory = "' . wppa_get_imgdir() . '";
68
  wppaPhotoDirectory = "' . WPPA_UPLOAD_URL . '/";
69
  wppaNoPreview = "' . __( 'No Preview available', 'wp-photo-album-plus' ) . '";
@@ -88,6 +87,5 @@ wppaShortcodeTemplateId = "' . $id . '.' . wppa_get_photo_item( $id, 'ext' ) . '
88
  // Reset faked widget
89
  wppa( 'in_widget', false );
90
 
91
- $done = true;
92
  }
93
  }
2
  /* wppa-tinymce-photo-front.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 7.5.10
6
  *
7
  */
8
 
44
 
45
  function wppa_inject_3_js() {
46
  global $wppa_api_version;
 
47
  global $wpdb;
48
  global $wppa_js_page_data;
49
 
50
 
51
+ if ( wppa_switch( 'photo_shortcode_enabled' ) ) {
52
 
53
  // Find an existing photo
54
  $id = $wpdb->get_var( "SELECT id FROM $wpdb->wppa_photos
62
 
63
  // Things that wppa-tinymce.js AND OTHER MODULES!!! need to know
64
  $result =
65
+ '/* START PHOTO sc and TynyMce fe vars from p-f*/
66
  wppaImageDirectory = "' . wppa_get_imgdir() . '";
67
  wppaPhotoDirectory = "' . WPPA_UPLOAD_URL . '/";
68
  wppaNoPreview = "' . __( 'No Preview available', 'wp-photo-album-plus' ) . '";
87
  // Reset faked widget
88
  wppa( 'in_widget', false );
89
 
 
90
  }
91
  }
wppa-tinymce-photo.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-photo.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 6.9.03
6
  *
7
  */
8
 
@@ -39,37 +39,3 @@ function wppa_filter_mce_photo_plugin( $plugins ) {
39
  $plugins['wppaphoto'] = plugin_dir_url( __FILE__ ) . $file;
40
  return $plugins;
41
  }
42
-
43
- add_action( 'admin_head', 'wppa_inject_2_js' );
44
-
45
- function wppa_inject_2_js() {
46
- global $wppa_api_version;
47
- static $done;
48
-
49
- if ( wppa_switch( 'photo_shortcode_enabled' ) && ! $done ) {
50
-
51
- // Things that wppa-tinymce.js AND OTHER MODULES!!! need to know
52
- echo('<script type="text/javascript" >'."\n");
53
- echo('/* <![CDATA[ */'."\n");
54
- echo("\t".'wppaImageDirectory = "'.wppa_get_imgdir().'";'."\n");
55
- echo("\t".'wppaAjaxUrl = "'.admin_url('admin-ajax.php').'";'."\n");
56
- echo("\t".'wppaPhotoDirectory = "'.WPPA_UPLOAD_URL.'/";'."\n");
57
- echo("\t".'wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/";'."\n");
58
- echo("\t".'wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/";'."\n");
59
- echo("\t".'wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/";'."\n");
60
- echo("\t".'wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'";'."\n");
61
- echo("\t".'wppaVersion = "'.$wppa_api_version.'";'."\n");
62
- echo("\t".'wppaSiteUrl = "'.site_url().'";'."\n");
63
- echo("\t".'wppaWppaUrl = "'.WPPA_URL.'";'."\n");
64
- echo("\t".'wppaIncludeUrl = "'.trim(includes_url(), '/').'";'."\n");
65
- echo("\t".'wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'";'."\n");
66
- echo("\t".'wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus').'";'."\n");
67
- echo("\t".'wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus').'";'."\n");
68
- echo("\t".'wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'";');
69
- echo("/* ]]> */\n");
70
- echo("</script>\n");
71
-
72
- $done = true;
73
- }
74
- }
75
-
2
  /* wppa-tinymce-photo.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 7.5.10
6
  *
7
  */
8
 
39
  $plugins['wppaphoto'] = plugin_dir_url( __FILE__ ) . $file;
40
  return $plugins;
41
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wppa-tinymce-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 7.4.02
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
@@ -46,23 +46,26 @@ function wppa_inject_js() {
46
  global $wppa_api_version;
47
 
48
  // Things that wppa-tinymce.js AND OTHER MODULES!!! need to know
49
- echo('<script type="text/javascript" >'."\n");
50
- echo('/* <![CDATA[ */'."\n");
51
- echo("\t".'wppaImageDirectory = "'.wppa_get_imgdir().'";'."\n");
52
- echo("\t".'wppaAjaxUrl = "'.admin_url('admin-ajax.php').'";'."\n");
53
- echo("\t".'wppaPhotoDirectory = "'.WPPA_UPLOAD_URL.'/";'."\n");
54
- echo("\t".'wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/";'."\n");
55
- echo("\t".'wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/";'."\n");
56
- echo("\t".'wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/";'."\n");
57
- echo("\t".'wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'";'."\n");
58
- echo("\t".'wppaVersion = "'.$wppa_api_version.'";'."\n");
59
- echo("\t".'wppaSiteUrl = "'.site_url().'";'."\n");
60
- echo("\t".'wppaWppaUrl = "'.WPPA_URL.'";'."\n");
61
- echo("\t".'wppaIncludeUrl = "'.trim(includes_url(), '/').'";'."\n");
62
- echo("\t".'wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'";'."\n");
63
- echo("\t".'wppaLazyLoad = '.(wppa_switch( 'lazy' ) ? 'true' : 'false' ).';');
64
- echo("/* ]]> */\n");
65
- echo("</script>\n");
 
 
 
66
  }
67
 
68
  function wppa_make_tinymce_dialog() {
@@ -132,7 +135,7 @@ global $wpdb;
132
  color: #070;
133
  }
134
  </style>'.
135
- '<div id="wppagallery-form">'.
136
  '<style type="text/css">'.
137
  '#wppagallery-table tr, #wppagallery-table th, #wppagallery-table td {'.
138
  'padding: 2px; 0;'.
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 7.5.10
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
46
  global $wppa_api_version;
47
 
48
  // Things that wppa-tinymce.js AND OTHER MODULES!!! need to know
49
+ echo '
50
+ <script type="text/javascript" >
51
+ wppaImageDirectory = "'.wppa_get_imgdir().'";
52
+ wppaAjaxUrl = "'.admin_url('admin-ajax.php').'";
53
+ wppaPhotoDirectory = "'.WPPA_UPLOAD_URL.'/";
54
+ wppaThumbDirectory = "'.WPPA_UPLOAD_URL.'/thumbs/";
55
+ wppaTempDirectory = "'.WPPA_UPLOAD_URL.'/temp/";
56
+ wppaFontDirectory = "'.WPPA_UPLOAD_URL.'/fonts/";
57
+ wppaNoPreview = "'.__('No Preview available', 'wp-photo-album-plus').'";
58
+ wppaVersion = "'.$wppa_api_version.'";
59
+ wppaSiteUrl = "'.site_url().'";
60
+ wppaWppaUrl = "'.WPPA_URL.'";
61
+ wppaIncludeUrl = "'.trim(includes_url(), '/').'";
62
+ wppaUIERR = "'.__('Unimplemented virtual album', 'wp-photo-album-plus').'";
63
+ wppaLazyLoad = '.(wppa_switch( 'lazy' ) ? 'true' : 'false' ).';
64
+ wppaTxtProcessing = "'.__('Processing...', 'wp-photo-album-plus').'";
65
+ wppaTxtDone = "'.__('Done!', 'wp-photo-album-plus').'";
66
+ wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'";
67
+ wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";
68
+ </script>';
69
  }
70
 
71
  function wppa_make_tinymce_dialog() {
135
  color: #070;
136
  }
137
  </style>'.
138
+ '<div id="wppagallery-form" title="' . esc_attr( __( 'Insert gallery', 'wp-photo-album-plus' ) ) . '" >'.
139
  '<style type="text/css">'.
140
  '#wppagallery-table tr, #wppagallery-table th, #wppagallery-table td {'.
141
  'padding: 2px; 0;'.
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: 7.5.10.007
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7510'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.5.10.007'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';
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: 7.5.10.008
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7510'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.5.10.008'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';