Plugin Directory

Changeset 3437768


Ignore:
Timestamp:
01/12/2026 01:38:03 PM (3 months ago)
Author:
grandplugins
Message:
  • Update to Latest WP version
  • fix comp
  • Update to V1.2.0
Location:
watermark-images-for-wp-and-woo-grandpluginswp/trunk
Files:
22 added
25 edited

Legend:

Unmodified
Added
Removed
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/assets/dist/js/admin/image-edit-page.min.js

    r2799501 r3437768  
    1 'use strict';(function(_0x5447d2,_0x236239){var _0x12aea8=_0x1185,_0x240c75=_0x5447d2();while(!![]){try{var _0x8588ef=parseInt(_0x12aea8(0x201))/0x1*(-parseInt(_0x12aea8(0x208))/0x2)+parseInt(_0x12aea8(0x1ef))/0x3*(parseInt(_0x12aea8(0x1f8))/0x4)+parseInt(_0x12aea8(0x1db))/0x5*(-parseInt(_0x12aea8(0x20d))/0x6)+parseInt(_0x12aea8(0x1da))/0x7*(parseInt(_0x12aea8(0x215))/0x8)+parseInt(_0x12aea8(0x1f0))/0x9+parseInt(_0x12aea8(0x1f9))/0xa*(-parseInt(_0x12aea8(0x204))/0xb)+parseInt(_0x12aea8(0x1e8))/0xc;if(_0x8588ef===_0x236239)break;else _0x240c75['push'](_0x240c75['shift']());}catch(_0x12d15e){_0x240c75['push'](_0x240c75['shift']());}}}(_0x47a4,0x5cbc1));function _0x1185(_0x148988,_0x195834){var _0x47a496=_0x47a4();return _0x1185=function(_0x118513,_0x26345c){_0x118513=_0x118513-0x1d1;var _0xfa1002=_0x47a496[_0x118513];return _0xfa1002;},_0x1185(_0x148988,_0x195834);}function _0x47a4(){var _0x187d2f=['result','parents','<li\x20class=\x22notice-item\x22><p>','bg-primary','3589842Ofqmva','show','find','click','-watermarks-options','.toast-body','</p>','message','24pdVrzZ','deleteOriginalImageBackupAction','prop','restoreOriginalImageBackupAction','delete','target','toast','val','href','match','length','1425158yEtBDI','5KfuicD','searchParams','-watermarks-options\x20.delete-backup','push','d-none','POST','</p></li>','-msgs-toast\x20.close-toast','forEach','addClass','remove','<p>','labels','2173956yjSBDw','-restore-backup-image-size:checked','restore_backup_prompt','-watermarks-options\x20.restore-backup','gpls_wmfw_watermark_image_for_wordpress_localize_vars','.backup-options','delete_backup_prompt','15567rBtmTC','6580179kfCUlm','msg','preventDefault','<ul\x20class=\x22toast-notice-list\x22>','errors','.toast','.action-btn','data','404yiIJCX','3269990UFcaKB','classes_prefix','ajax','ajaxUrl','success','ready','bg-danger','-msgs-toast','11OWPmdl','removeClass','hide','22swTRFS','history','.loading','disabled','75458kRDVdL'];_0x47a4=function(){return _0x187d2f;};return _0x47a4();}!function(_0x5772b5){var _0x4d7619=_0x1185,_0x41f905=window[_0x4d7619(0x1ec)];function _0x5df0a4(_0x3d76e6,_0x590b1f,_0x18633a){var _0xbebe9d=_0x4d7619,_0x507b03=0x1<arguments[_0xbebe9d(0x1d9)]&&void 0x0!==_0x590b1f?_0x590b1f:_0xbebe9d(0x20c),_0x590b1f=0x2<arguments[_0xbebe9d(0x1d9)]&&void 0x0!==_0x18633a&&_0x18633a,_0x18633a=_0x5772b5('.'+_0x41f905[_0xbebe9d(0x1fa)]+_0xbebe9d(0x200));_0x18633a[_0xbebe9d(0x202)](function(_0x2067f6,_0x348fe0){var _0x4f2f78=_0xbebe9d;return(_0x348fe0[_0x4f2f78(0x1d8)](/(^|\s)bg-\S+/g)||[])['join']('\x20');});var _0x425231='';_0x590b1f?(_0x425231=_0xbebe9d(0x1f3),_0x3d76e6[_0xbebe9d(0x1e3)](function(_0x5edc79){var _0x30e706=_0xbebe9d;_0x425231+=_0x30e706(0x20b)+_0x5edc79+_0x30e706(0x1e1);}),_0x425231+='</ul>'):_0x425231=_0xbebe9d(0x1e6)+_0x3d76e6+_0xbebe9d(0x213),_0x18633a['addClass'](_0x507b03)[_0xbebe9d(0x20f)](_0xbebe9d(0x212))['html'](_0x425231),_0x18633a[_0xbebe9d(0x1d5)](_0xbebe9d(0x20e));}_0x5772b5(document)['on'](_0x4d7619(0x1fe),function(_0x525cc1){var _0x123100=_0x4d7619,_0x534cab;_0x5772b5('.'+_0x41f905[_0x123100(0x1fa)]+_0x123100(0x200))[_0x123100(0x1d5)]({'autohide':!0x1}),_0x5772b5(document)['on'](_0x123100(0x210),'.'+_0x41f905[_0x123100(0x1fa)]+_0x123100(0x1e2),function(_0x3c6ac2){var _0x213124=_0x123100;_0x5772b5(_0x3c6ac2['target'])[_0x213124(0x20a)](_0x213124(0x1f5))[_0x213124(0x1d5)](_0x213124(0x203));}),(_0x534cab=new URL(window['location'][_0x123100(0x1d7)]))[_0x123100(0x1dc)]['get'](_0x41f905[_0x123100(0x1fa)]+'-force-img-refresh')&&(_0x534cab[_0x123100(0x1dc)][_0x123100(0x1d3)](_0x41f905['classes_prefix']+'-force-img-refresh'),window[_0x123100(0x205)]['replaceState'](null,null,_0x534cab['href'])),_0x5772b5(document)['on'](_0x123100(0x210),'.'+_0x41f905[_0x123100(0x1fa)]+_0x123100(0x1eb),function(_0x5bebc0){var _0x588f6d=_0x123100,_0x2c140f;_0x5bebc0[_0x588f6d(0x1f2)](),confirm(_0x41f905[_0x588f6d(0x1e7)][_0x588f6d(0x1ea)])&&((_0x2c140f=_0x5772b5('.'+_0x41f905[_0x588f6d(0x1fa)]+_0x588f6d(0x211)))[_0x588f6d(0x20f)](_0x588f6d(0x1f6))[_0x588f6d(0x1d1)](_0x588f6d(0x207),!0x0),_0x2c140f[_0x588f6d(0x20f)]('.loading')['removeClass'](_0x588f6d(0x1df)),function(_0x513e33){var _0x15b64c=_0x588f6d,_0x44ebaf=_0x5772b5('.'+_0x41f905[_0x15b64c(0x1fa)]+_0x15b64c(0x211)),_0x4af922=[];_0x5772b5('.'+_0x41f905[_0x15b64c(0x1fa)]+_0x15b64c(0x1e9))['each'](function(_0x46b8ae,_0x4013c6){var _0x3c61fa=_0x15b64c;_0x4013c6=_0x5772b5(_0x4013c6),_0x4af922[_0x3c61fa(0x1de)](_0x4013c6[_0x3c61fa(0x1d6)]());}),_0x513e33={'action':_0x41f905[_0x15b64c(0x1d2)],'nonce':_0x41f905['nonce'],'attachmentID':_0x513e33,'sizes':_0x4af922},_0x5772b5[_0x15b64c(0x1fb)]({'method':_0x15b64c(0x1e0),'url':_0x41f905[_0x15b64c(0x1fc)],'data':_0x513e33,'success':function(_0x4f9868){var _0x5ecb7d=_0x15b64c,_0x3d3dac=_0x4f9868[_0x5ecb7d(0x1f7)][_0x5ecb7d(0x209)]&&_0x5ecb7d(0x1fd)===_0x4f9868[_0x5ecb7d(0x1f7)][_0x5ecb7d(0x209)]?'bg-primary':_0x5ecb7d(0x1ff);_0x4f9868['data']['errors']&&_0x5df0a4(_0x4f9868['data'][_0x5ecb7d(0x1f4)],_0x5ecb7d(0x1ff),!0x0),_0x4f9868[_0x5ecb7d(0x1f7)]['msg']&&_0x5df0a4(_0x4f9868[_0x5ecb7d(0x1f7)][_0x5ecb7d(0x1f1)],_0x3d3dac);},'error':function(_0x1116cd){var _0x5a25e5=_0x15b64c,_0x2c18be;null!=_0x1116cd&&null!==(_0x2c18be=_0x1116cd[_0x5a25e5(0x1f7)])&&void 0x0!==_0x2c18be&&_0x2c18be[_0x5a25e5(0x214)]&&_0x5df0a4(_0x1116cd[_0x5a25e5(0x1f7)]['message'],_0x5a25e5(0x1ff));},'complete':function(){var _0x45d784=_0x15b64c;_0x44ebaf[_0x45d784(0x20f)](_0x45d784(0x1f6))[_0x45d784(0x1d1)](_0x45d784(0x207),!0x1),_0x44ebaf['find'](_0x45d784(0x206))[_0x45d784(0x1e4)]('d-none');}});}(_0x5772b5(_0x5bebc0[_0x588f6d(0x1d4)])[_0x588f6d(0x1f7)]('id')));}),_0x5772b5(document)['on'](_0x123100(0x210),'.'+_0x41f905[_0x123100(0x1fa)]+_0x123100(0x1dd),function(_0x10703c){var _0x2c558c=_0x123100,_0x32a189,_0x14665f;_0x10703c['preventDefault'](),confirm(_0x41f905[_0x2c558c(0x1e7)][_0x2c558c(0x1ee)])&&((_0x32a189=_0x5772b5('.'+_0x41f905[_0x2c558c(0x1fa)]+_0x2c558c(0x211)))[_0x2c558c(0x20f)](_0x2c558c(0x1f6))['prop'](_0x2c558c(0x207),!0x0),_0x32a189[_0x2c558c(0x20f)](_0x2c558c(0x206))[_0x2c558c(0x202)](_0x2c558c(0x1df)),_0x10703c=_0x5772b5(_0x10703c[_0x2c558c(0x1d4)])[_0x2c558c(0x1f7)]('id'),_0x10703c=_0x10703c,_0x14665f=_0x5772b5('.'+_0x41f905[_0x2c558c(0x1fa)]+'-watermarks-options'),_0x10703c={'action':_0x41f905[_0x2c558c(0x216)],'nonce':_0x41f905['nonce'],'attachmentID':_0x10703c},_0x5772b5['ajax']({'method':_0x2c558c(0x1e0),'url':_0x41f905[_0x2c558c(0x1fc)],'data':_0x10703c,'success':function(_0x25aab0){var _0x30320d=_0x2c558c,_0x51c7e2=_0x25aab0[_0x30320d(0x1f7)]['result']&&_0x30320d(0x1fd)===_0x25aab0[_0x30320d(0x1f7)][_0x30320d(0x209)]?_0x30320d(0x20c):_0x30320d(0x1ff);_0x25aab0['data'][_0x30320d(0x1f1)]&&_0x5df0a4(_0x25aab0[_0x30320d(0x1f7)][_0x30320d(0x1f1)],_0x51c7e2),_0x25aab0[_0x30320d(0x1f7)][_0x30320d(0x1f4)]&&_0x5df0a4(_0x25aab0[_0x30320d(0x1f7)]['errors'],_0x30320d(0x1ff),!0x0),_0x25aab0['data'][_0x30320d(0x209)]&&_0x30320d(0x1fd)===_0x25aab0[_0x30320d(0x1f7)]['result']&&_0x14665f['find'](_0x30320d(0x1ed))[_0x30320d(0x1e5)]();},'error':function(_0x5aeb73){var _0xbc8987=_0x2c558c,_0x569b6d;null!=_0x5aeb73&&null!==(_0x569b6d=_0x5aeb73['data'])&&void 0x0!==_0x569b6d&&_0x569b6d[_0xbc8987(0x214)]&&_0x5df0a4(_0x5aeb73[_0xbc8987(0x1f7)][_0xbc8987(0x214)],_0xbc8987(0x1ff));},'complete':function(){var _0x3b0da5=_0x2c558c;_0x14665f[_0x3b0da5(0x20f)](_0x3b0da5(0x1f6))[_0x3b0da5(0x1d1)](_0x3b0da5(0x207),!0x1),_0x14665f['find'](_0x3b0da5(0x206))[_0x3b0da5(0x1e4)](_0x3b0da5(0x1df));}}));});});}(jQuery);
     1!function(a){"use strict";var e=window.gpls_wmfw_watermark_image_for_wordpress_localize_vars;function s(s){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bg-primary",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=a("."+e.classes_prefix+"-msgs-toast");n.removeClass((function(a,e){return(e.match(/(^|\s)bg-\S+/g)||[]).join(" ")}));var o="";r?(o='<ul class="toast-notice-list">',s.forEach((function(a){o+='<li class="notice-item"><p>'+a+"</p></li>"})),o+="</ul>"):o="<p>"+s+"</p>",n.addClass(t).find(".toast-body").html(o),n.toast("show")}a(document).on("ready",(function(t){var r;a("."+e.classes_prefix+"-msgs-toast").toast({autohide:!1}),a(document).on("click","."+e.classes_prefix+"-msgs-toast .close-toast",(function(e){a(e.target).parents(".toast").toast("hide")})),(r=new URL(window.location.href)).searchParams.get(e.classes_prefix+"-force-img-refresh")&&(r.searchParams.delete(e.classes_prefix+"-force-img-refresh"),window.history.replaceState(null,null,r.href)),a(document).on("click","."+e.classes_prefix+"-watermarks-options .restore-backup",(function(t){if(t.preventDefault(),confirm(e.labels.restore_backup_prompt)){var r=a("."+e.classes_prefix+"-watermarks-options");r.find(".action-btn").prop("disabled",!0),r.find(".loading").removeClass("d-none"),function(t){var r=a("."+e.classes_prefix+"-watermarks-options"),n=[];a("."+e.classes_prefix+"-restore-backup-image-size:checked").each((function(e,s){var t=a(s);n.push(t.val())}));var o={action:e.restoreOriginalImageBackupAction,nonce:e.nonce,attachmentID:t,sizes:n};a.ajax({method:"POST",url:e.ajaxUrl,data:o,success:function(a){var e=a.data.result&&"success"===a.data.result?"bg-primary":"bg-danger";a.data.errors&&s(a.data.errors,"bg-danger",!0),a.data.msg&&s(a.data.msg,e)},error:function(a){var e;null!=a&&null!==(e=a.data)&&void 0!==e&&e.message&&s(a.data.message,"bg-danger")},complete:function(){r.find(".action-btn").prop("disabled",!1),r.find(".loading").addClass("d-none")}})}(a(t.target).data("id"))}})),a(document).on("click","."+e.classes_prefix+"-watermarks-options .delete-backup",(function(t){if(t.preventDefault(),confirm(e.labels.delete_backup_prompt)){var r=a("."+e.classes_prefix+"-watermarks-options");r.find(".action-btn").prop("disabled",!0),r.find(".loading").removeClass("d-none"),function(t){var r=a("."+e.classes_prefix+"-watermarks-options"),n={action:e.deleteOriginalImageBackupAction,nonce:e.nonce,attachmentID:t};a.ajax({method:"POST",url:e.ajaxUrl,data:n,success:function(a){var e=a.data.result&&"success"===a.data.result?"bg-primary":"bg-danger";a.data.msg&&s(a.data.msg,e),a.data.errors&&s(a.data.errors,"bg-danger",!0),a.data.result&&"success"===a.data.result&&r.find(".backup-options").remove()},error:function(a){var e;null!=a&&null!==(e=a.data)&&void 0!==e&&e.message&&s(a.data.message,"bg-danger")},complete:function(){r.find(".action-btn").prop("disabled",!1),r.find(".loading").addClass("d-none")}})}(a(t.target).data("id"))}}))}))}(jQuery);
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/assets/dist/js/admin/settings.min.js

    r2799501 r3437768  
    1 'use strict';(function(_0x3659a8,_0x51f144){var _0x4abc52=_0x39c1,_0x47e4cd=_0x3659a8();while(!![]){try{var _0x443e44=parseInt(_0x4abc52(0xf1))/0x1*(-parseInt(_0x4abc52(0xe2))/0x2)+parseInt(_0x4abc52(0xd2))/0x3+parseInt(_0x4abc52(0xeb))/0x4*(-parseInt(_0x4abc52(0xd8))/0x5)+-parseInt(_0x4abc52(0xd5))/0x6+parseInt(_0x4abc52(0xde))/0x7+-parseInt(_0x4abc52(0xe4))/0x8+parseInt(_0x4abc52(0xe3))/0x9;if(_0x443e44===_0x51f144)break;else _0x47e4cd['push'](_0x47e4cd['shift']());}catch(_0x36228c){_0x47e4cd['push'](_0x47e4cd['shift']());}}}(_0x19b7,0x53d5a));function _0x39c1(_0x57aca2,_0x4bf675){var _0x19b737=_0x19b7();return _0x39c1=function(_0x39c1f7,_0x897b06){_0x39c1f7=_0x39c1f7-0xcb;var _0x149697=_0x19b737[_0x39c1f7];return _0x149697;},_0x39c1(_0x57aca2,_0x4bf675);}function _0x19b7(){var _0x2235ab=['.main-loader','html','toggle','labels','addClass','4628358BoRyGo','ttf','uploadFontFileAction','</div><div\x20class=\x22col-6\x20font-file-name\x22>','46hssYUg','320400nZPrKT','1778840zCwcfH','collapse','.available-fonts-toggle','removeClass','json','ajaxUrl','only_ttf','1938724TVReoW','.custom-font-file-notice','d-none','empty','<li\x20class=\x22font-item\x20row\x20list-group-item\x20d-flex\x20flex-row\x22><div\x20class=\x22col-6\x20font-title\x22>','</div></li>','1900vLbJKc','title','data','active','find','notice-','status','fonts','dmUploader','gpls_wmfw_watermark_image_for_wordpress_localize_vars','name','#custom-fonts-file-wrapper','1677480zudtwx','.available-fonts','ready','970992ldgVJE','class','error','5ukvqJd'];_0x19b7=function(){return _0x2235ab;};return _0x19b7();}!function(_0x57d429){var _0x9bf354=_0x39c1,_0x10e62c=window[_0x9bf354(0xcf)];function _0x3761da(){var _0x548496=_0x9bf354,_0x4dbbb3=_0x57d429(_0x548496(0xec));_0x4dbbb3['removeAttr'](_0x548496(0xd6)),_0x4dbbb3[_0x548496(0xdd)]('d-none\x20custom-font-file-notice\x20notice');}function _0x15bd59(_0x308137,_0x5aeca3){var _0x67611f=_0x9bf354;_0x3761da();var _0xae7f4=_0x57d429(_0x67611f(0xec));_0xae7f4[_0x67611f(0xdd)](_0x67611f(0xcb)+_0x5aeca3),_0xae7f4['removeClass'](_0x67611f(0xed)),_0xae7f4[_0x67611f(0xf5)]('.notice-message')[_0x67611f(0xda)](_0x308137);}_0x57d429(document)['on'](_0x9bf354(0xd4),function(){var _0x4980e6=_0x9bf354;_0x57d429(_0x4980e6(0xd1))[_0x4980e6(0xce)]({'url':_0x10e62c[_0x4980e6(0xe9)],'extraData':function(_0x1f777e){var _0x580076=_0x4980e6;return{'action':_0x10e62c[_0x580076(0xe0)],'nonce':_0x10e62c['nonce']};},'fieldName':'file','extFilter':[_0x4980e6(0xdf)],'dataType':_0x4980e6(0xe8),'onNewFile':function(){_0x3761da();},'onDragEnter':function(){var _0x24528a=_0x4980e6;this['addClass'](_0x24528a(0xf4));},'onDragLeave':function(){var _0xa90a7a=_0x4980e6;this['removeClass'](_0xa90a7a(0xf4));},'onBeforeUpload':function(_0x317103){var _0x160fb4=_0x4980e6;_0x57d429(_0x160fb4(0xd9))[_0x160fb4(0xe7)]('d-none');},'onUploadSuccess':function(_0x136165,_0x10083d){var _0x3eb28d=_0x4980e6;!0x0===_0x10083d[_0x3eb28d(0xf3)]['result']&&_0x10083d['data'][_0x3eb28d(0xcd)]&&function(_0x4757d2){var _0x9e1d28=_0x3eb28d,_0x1a429d,_0x19f68a=_0x57d429(_0x9e1d28(0xd3));for(_0x1a429d in(_0x19f68a[_0x9e1d28(0xee)](),_0x4757d2)){var _0x3b49a3=_0x9e1d28(0xef)+_0x4757d2[_0x1a429d][_0x9e1d28(0xf2)]+_0x9e1d28(0xe1)+_0x4757d2[_0x1a429d][_0x9e1d28(0xd0)]+_0x9e1d28(0xf0);_0x19f68a['append'](_0x3b49a3);}}(_0x10083d[_0x3eb28d(0xf3)][_0x3eb28d(0xcd)]),_0x15bd59(_0x10083d[_0x3eb28d(0xf3)]['message'],_0x10083d[_0x3eb28d(0xf3)][_0x3eb28d(0xcc)]);},'onUploadError':function(_0x36eec9,_0x412f20,_0x5088ec,_0x30e926){var _0x1dc7f8=_0x4980e6;_0x15bd59(_0x412f20['responseText'],_0x1dc7f8(0xd7));},'onUploadComplete':function(_0x3262bb){var _0x4b89bc=_0x4980e6;_0x57d429(_0x4b89bc(0xd9))['addClass']('d-none');},'onFileTypeError':function(_0x3c6e4e){var _0x1ef89f=_0x4980e6;_0x15bd59(_0x10e62c['labels'][_0x1ef89f(0xea)],'error');},'onFileExtError':function(_0x16dfbf){var _0x4f01d1=_0x4980e6;_0x15bd59(_0x10e62c[_0x4f01d1(0xdc)][_0x4f01d1(0xea)],_0x4f01d1(0xd7));}}),_0x57d429(document)['on']('click',_0x4980e6(0xe6),function(_0x5b48b2){var _0x21bca5=_0x4980e6;_0x57d429('.available-fonts')[_0x21bca5(0xe5)](_0x21bca5(0xdb));});});}(jQuery);
     1!function(o){"use strict";var n=window.gpls_wmfw_watermark_image_for_wordpress_localize_vars;function e(){var n=o(".custom-font-file-notice");n.removeAttr("class"),n.addClass("d-none custom-font-file-notice notice")}function t(n,t){e();var a=o(".custom-font-file-notice");a.addClass("notice-"+t),a.removeClass("d-none"),a.find(".notice-message").html(n)}o(document).on("ready",(function(){o("#custom-fonts-file-wrapper").dmUploader({url:n.ajaxUrl,extraData:function(o){return{action:n.uploadFontFileAction,nonce:n.nonce}},fieldName:"file",extFilter:["ttf"],dataType:"json",onNewFile:function(){e()},onDragEnter:function(){this.addClass("active")},onDragLeave:function(){this.removeClass("active")},onBeforeUpload:function(n){o(".main-loader").removeClass("d-none")},onUploadSuccess:function(n,e){!0===e.data.result&&e.data.fonts&&function(n){var e=o(".available-fonts");for(var t in e.empty(),n){var a='<li class="font-item row list-group-item d-flex flex-row"><div class="col-6 font-title">'+n[t].title+'</div><div class="col-6 font-file-name">'+n[t].name+"</div></li>";e.append(a)}}(e.data.fonts),t(e.data.message,e.data.status)},onUploadError:function(o,n,e,a){t(n.responseText,"error")},onUploadComplete:function(n){o(".main-loader").addClass("d-none")},onFileTypeError:function(o){t(n.labels.only_ttf,"error")},onFileExtError:function(o){t(n.labels.only_ttf,"error")}}),o(document).on("click",".available-fonts-toggle",(function(n){o(".available-fonts").collapse("toggle")}))}))}(jQuery);
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/core/core.php

    r2953808 r3437768  
    8686                'desc'      => 'Track all carts in your website in real time. apply coupon, send custom notices to customers and get push notifications in real time...',
    8787                'thumbnail' => 'woo-cart-tracker.webp',
    88                 'pro_link'  => 'https://grandplugins.com/product/woo-cart-tracker/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     88                'pro_link'  => 'https://grandplugins.com/product/woo-cart-tracker/',
    8989            ),
    9090            'woo-advanced-add-to-cart' => array(
     
    9292                'desc'      => 'Add To cart in bulk, custom prices and more...',
    9393                'thumbnail' => 'woo-advanced-add-to-cart.webp',
    94                 'pro_link'  => 'https://grandplugins.com/product/woo-advanced-add-to-cart/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     94                'pro_link'  => 'https://grandplugins.com/product/woo-advanced-add-to-cart/',
    9595            ),
    9696            'woo-advanced-pricing' => array(
     
    9898                'desc'      => 'Apply all types of Quantity based pricing models',
    9999                'thumbnail' => 'woo-advanced-pricing.webp',
    100                 'pro_link'  => 'https://grandplugins.com/product/woo-advanced-pricing/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     100                'pro_link'  => 'https://grandplugins.com/product/woo-advanced-pricing/',
    101101            ),
    102102            'woo-maintenance-mode' => array(
     
    105105                'thumbnail' => 'woo-maintenance-mode.png',
    106106                'free_link' => 'https://wordpress.org/plugins/ultimate-maintenance-mode-for-woocommerce/',
    107                 'pro_link'  => 'https://grandplugins.com/product/woocommerce-maintenance-mode-pro/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     107                'pro_link'  => 'https://grandplugins.com/product/woocommerce-maintenance-mode-pro/',
    108108            ),
    109109            'woo-quick-view'         => array(
     
    112112                'thumbnail' => 'woo-quick-view-and-buy-now.png',
    113113                'free_link' => 'https://wordpress.org/plugins/quick-view-and-buy-now-for-woocommerce/',
    114                 'pro_link'  => 'https://grandplugins.com/product/quick-view-and-buy-now-for-woocommerce/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     114                'pro_link'  => 'https://grandplugins.com/product/quick-view-and-buy-now-for-woocommerce/',
    115115            ),
    116116            'woo-cart-limiter'       => array(
     
    119119                'thumbnail' => 'woo-cart-limiter.jpg',
    120120                'free_link' => 'https://wordpress.org/plugins/cart-limiter/',
    121                 'pro_link'  => 'https://grandplugins.com/product/woo-cart-limiter/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     121                'pro_link'  => 'https://grandplugins.com/product/woo-cart-limiter/',
    122122            ),
    123123            'simple-countdown-timer' => array(
     
    126126                'thumbnail' => 'simple-countdown-timer.gif',
    127127                'free_link' => 'https://wordpress.org/plugins/simple-countdown/',
    128                 'pro_link'  => 'https://grandplugins.com/product/simple-countdown-timer/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     128                'pro_link'  => 'https://grandplugins.com/product/simple-countdown-timer/',
    129129            ),
    130130            'wp-watermark-pdf'       => array(
     
    133133                'thumbnail' => 'wp-watermark-pdf.png',
    134134                'free_link' => 'https://wordpress.org/plugins/watermark-pdf/',
    135                 'pro_link'  => 'https://grandplugins.com/product/wp-watermark-pdf/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     135                'pro_link'  => 'https://grandplugins.com/product/wp-watermark-pdf/',
    136136            ),
    137137
     
    141141                'thumbnail' => 'image-sizes-controller.png',
    142142                'free_link' => 'https://wordpress.org/plugins/image-sizes-controller/',
    143                 'pro_link'  => 'https://grandplugins.com/product/image-sizes-controller/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     143                'pro_link'  => 'https://grandplugins.com/product/image-sizes-controller/',
    144144            ),
    145145            'wp-gif-editor'   => array(
     
    148148                'thumbnail' => 'wp-gif-editor.gif',
    149149                'free_link' => 'https://wordpress.org/plugins/gif-uploader-wp-grandplugins',
    150                 'pro_link'  => 'https://grandplugins.com/product/wp-gif-editor/?utm_source=free&utm_medium=sidebar&utm_content=' . $this->plugin_info['name'],
     150                'pro_link'  => 'https://grandplugins.com/product/wp-gif-editor/',
    151151            ),
    152152        );
     
    239239     * @param string $additional_classes
    240240     * @param string $additional_css
    241      * @return void
     241     * @return mixed
    242242     */
    243243    public function pro_btn( $pro_link = '', $btn_title = 'Pro', $additional_classes = '', $additional_css = '', $return = false ) {
     
    251251        }
    252252        ?>
    253         <a target="_blank" class="ms-2 btn gpls-permium-btn-wave btn-primary <?php echo esc_attr( $additional_classes ); ?>" href="<?php echo esc_url_raw( $pro_link ); ?>">
    254             <span class="pro-title" style="position:relative;z-index:10;color:#FFF;"><?php printf( esc_html__( '%s' ), $btn_title ); ?></span>
     253        <a target="_blank" class="ms-2 btn gpls-permium-btn-wave btn-primary <?php echo esc_attr( $additional_classes ); ?>" href="<?php echo esc_url( $pro_link ); ?>" style="position: relative;text-decoration: none;overflow: hidden;display: inline-block;font-weight: 400;line-height: 1.5;color: #FFF;text-align: center;text-decoration: none;vertical-align: middle;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;user-select: none;background-color: transparent;border: 1px solid transparent;padding: .375rem .75rem;font-size: 1rem;border-radius: .25rem;transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;background-color: #0d6efd;border-color: #0d6efd;">
     254            <?php /* translators: Button title */ ?>
     255            <span class="pro-title" style="position:relative;z-index:10;"><?php echo esc_html( sprintf( esc_html__( '%s', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $btn_title ) ); // phpcs:ignore WordPress.WP.I18n.NoEmptyStrings ?></span>
    255256            <span class="wave"></span>
    256257        </a>
     
    279280        ?>
    280281        <p class="notice notice-success p-4 <?php echo esc_attr( $is_dismissible ? 'is-dismissible' : '' ); ?>">
    281             <?php esc_html_e( 'We would love your feedback. leaving ' ); ?>
    282             <a class="text-decoration-none" href="<?php echo esc_url_raw( $review_link ); ?>" target="_blank">
    283                 <u><?php esc_html_e( 'a review is much appreciated' ); ?></u>
     282            <?php esc_html_e( 'We would love your feedback. leaving ', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
     283            <a class="text-decoration-none" href="<?php echo esc_url( $review_link ); ?>" target="_blank">
     284                <u><?php esc_html_e( 'a review is much appreciated', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></u>
    284285                <span class="dashicons dashicons-star-filled"></span>
    285286                <span class="dashicons dashicons-star-filled"></span>
     
    288289                <span class="dashicons dashicons-star-filled"></span>
    289290            </a>
    290             <?php esc_html_e( ':) Thanks!' ); ?>
     291            <?php esc_html_e( ':) Thanks!', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
    291292        </p>
    292293        <?php
     
    306307        }
    307308        ?>
    308         <span class="<?php echo esc_attr( $this->plugin_info['classes_general'] . '-new-keyword' ); ?> ms-1"><?php esc_html_e( 'New' ); ?></span>
     309        <span class="<?php echo esc_attr( $this->plugin_info['classes_general'] . '-new-keyword' ); ?> ms-1"><?php esc_html_e( 'New', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></span>
    309310        <?php
    310311        if ( $return ) {
     
    321322        ?>
    322323        <div class="gpls-core-recommended-section mb-5">
    323             <h6 class="shadow-sm border p-3 shadow-sm border rounded"><?php esc_html_e( 'Empower Your Website with Our Additional Plugins' ); ?></h6>
     324            <h6 class="shadow-sm border p-3 shadow-sm border rounded"><?php esc_html_e( 'Empower Your Website with Our Additional Plugins', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></h6>
    324325            <div class="section-body bg-light p-3 shadow-sm border rounded">
    325326                <ul class="plugins-list list-group">
     
    333334                        <h6 class="border rounded p-1 mb-2 text-center py-3 shadow-sm fw-bolder"><?php echo esc_html( $plugin_arr['title'] ); ?></h6>
    334335                        <?php if ( ! empty( $plugin_arr['thumbnail'] ) ) : ?>
    335                             <img width="200px" src="<?php echo esc_url_raw( $this->plugin_info['url'] . 'core/assets/images/' . $plugin_arr['thumbnail'] ); ?>" class="thumbnail img-thumbanil my-3 mx-auto">
     336                            <img width="200px" src="<?php echo esc_url( $this->plugin_info['url'] . 'core/assets/images/' . $plugin_arr['thumbnail'] ); ?>" class="thumbnail img-thumbanil my-3 mx-auto">
    336337                        <?php endif; ?>
    337338                        <p><?php echo esc_html( $plugin_arr['desc'] ); ?></p>
     
    339340                            <?php if ( ! empty( $plugin_arr['pro_link'] ) ) : ?>
    340341                            <div class="col d-flex justify-content-center border-end">
    341                                 <a class="btn btn-primary text-decoration-underline" target="_blank" href="<?php echo esc_url_raw( $plugin_arr['pro_link'] ); ?>"><strong><?php esc_html_e( 'Pro' ); ?></strong></a>
     342                                <a class="btn btn-primary text-decoration-underline" target="_blank" href="<?php echo esc_url( $plugin_arr['pro_link'] ); ?>"><strong><?php esc_html_e( 'Pro', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></strong></a>
    342343                            </div>
    343344                            <?php endif; ?>
    344345                            <?php if ( ! empty( $plugin_arr['free_link'] ) ) : ?>
    345346                            <div class="col d-flex justify-content-center">
    346                                 <a class="btn btn-success text-decoration-underline" target="_blank" href="<?php echo esc_url_raw( $plugin_arr['free_link'] ); ?>"><?php esc_html_e( 'Free' ); ?></a>
     347                                <a class="btn btn-success text-decoration-underline" target="_blank" href="<?php echo esc_url( $plugin_arr['free_link'] ); ?>"><?php esc_html_e( 'Free', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></a>
    347348                            </div>
    348349                            <?php endif; ?>
     
    351352                    <?php endforeach; ?>
    352353                </ul>
    353                 <a class="btn btn-primary d-block mt-3" target="_blank" href="https://grandplugins.com/product-category/plugin/?utm_source=free&utm_medium=sidebar&utm_content=<?php echo esc_attr( $this->plugin_info['name'] ); ?>"><?php esc_html_e( 'Browse All Plugins' ); ?></a>
     354                <a class="btn btn-primary d-block mt-3" target="_blank" href="https://grandplugins.com/product-category/plugin/"><?php esc_html_e( 'Browse All Plugins', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></a>
    354355            </div>
    355356        </div>
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/gpls-wmfw-watermark-image-for-wordpress.php

    r3428126 r3437768  
    1414 * Text Domain:       watermark-images-for-wp-and-woo-grandpluginswp
    1515 * Std Name:          gpls-wmfw-watermark-image-for-wordpress
    16  * Version:           1.1.9
     16 * Version:           1.2.0
     17 * Stable Tag:        1.2.0
     18 * License:           GPLv3
     19 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
    1720 */
    1821
     
    7780         * Singular init Function.
    7881         *
    79          * @return Object
     82         * @return self
    8083         */
    8184        public static function init() {
     
    190193         * Set Plugin Info
    191194         *
    192          * @return array
     195         * @return void
    193196         */
    194197        public static function setup_plugin_info() {
     
    226229                'classes_prefix'    => 'gpls-wmfw',
    227230                'classes_general'   => 'gpls-general',
    228                 'pro_link'          => 'https://grandplugins.com/product/wp-images-watermark?utm_source=free_plugin&utm_medium=wp&utm_campaign=ref',
     231                'pro_link'          => 'https://grandplugins.com/product/wp-images-watermark',
    229232                'review_link'       => 'https://wordpress.org/support/plugin/watermark-images-for-wp-and-woo-grandpluginswp/reviews/#new-post',
    230233                'duplicate_base'    => 'gpls-wmfw-watermark-images-for-wordpress-pro/gpls-wmfw-watermark-image-for-wordpress.php',
     
    239242        private static function disable_duplicate() {
    240243            require_once \ABSPATH . 'wp-admin/includes/plugin.php';
    241            if ( ! empty( self::$plugin_info['duplicate_base'] ) && is_plugin_active( self::$plugin_info['duplicate_base'] ) ) {
     244            if ( ! empty( self::$plugin_info['duplicate_base'] ) && is_plugin_active( self::$plugin_info['duplicate_base'] ) ) {
    242245                require_once \ABSPATH . 'wp-admin/includes/plugin.php';
    243                deactivate_plugins( self::$plugin_info['duplicate_base'] );
    244            }
     246                deactivate_plugins( self::$plugin_info['duplicate_base'] );
     247            }
    245248        }
    246249
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/MasterStudyLMS.php

    r3145166 r3437768  
    1111class MasterStudyLMS {
    1212
    13     use WatermarkUtilsTrait;
     13    use WatermarkUtilsTrait;
    1414
    1515    /**
     
    2020    protected static $instance = null;
    2121
    22     /**
    23      * Plugin Info
    24      * @var array
    25      */
    26     protected static $plugin_info;
     22    /**
     23     * Plugin Info
     24     *
     25     * @var array
     26     */
     27    protected static $plugin_info;
    2728
    28     /**
    29      * Core
    30      * @var array
    31      */
    32     protected static $core;
     29    /**
     30     * Core
     31     *
     32     * @var Core
     33     */
     34    protected static $core;
    3335
    34     /**
    35     * MasterStudy LMS Watermarks Template Key.
    36     *
    37     * @var string
    38     */
    39     protected $ms_lms_watermarks_template_key = '';
     36    /**
     37    * MasterStudy LMS Watermarks Template Key.
     38    *
     39    * @var string
     40    */
     41    protected $ms_lms_watermarks_template_key = '';
    4042
    4143    /**
     
    6567     */
    6668    private function setup( $core, $plugin_info ) {
    67         self::$plugin_info                    = $plugin_info;
    68         self::$core                           = $core;
    69         $this->ms_lms_watermarks_template_key = self::$plugin_info['prefix'] . '-ms-lms-watermarks-template';
     69        self::$plugin_info                    = $plugin_info;
     70        self::$core                           = $core;
     71        $this->ms_lms_watermarks_template_key = self::$plugin_info['prefix'] . '-ms-lms-watermarks-template';
    7072    }
    7173
     
    9597        add_meta_box(
    9698            self::$plugin_info['prefix'] . '-pdf-lms-template-select',
    97             esc_html__( 'Image Masterstudy LMS Watermark template', 'gpls-wmfw-watermark-image-for-wordpress' ),
     99            esc_html__( 'Image Masterstudy LMS Watermark template', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    98100            array( $this, 'img_lms_watermark_template_metabox' ),
    99101            'attachment',
    100102            'side',
    101             'high'
    102         );
     103            'high'
     104        );
    103105    }
    104106
     
    110112     */
    111113    public function img_lms_watermark_template_metabox( $post ) {
    112         ?>
     114        ?>
    113115        <div>
    114116            <span>
    115                 <?php esc_html_e( 'Select watermarks template', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>
    116                 <span><?php self::$core->pro_btn(); ?></span>
    117             </span>
    118             <select class="form-control" name="<?php echo esc_attr( self::$plugin_info['prefix'] . '-selected-watermark-img-template-id' ); ?>">
    119                 <option selected value="0"><?php esc_html_e( '-- Select Watermarks Template --', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
    120                 <?php
    121                 $watermarks_templates = Watermarks_Templates::get_watermark_templates( false );
    122                 foreach ( $watermarks_templates as $watermarks_template ) :
    123                     ?>
    124                     <option value="<?php echo esc_attr( $watermarks_template['id'] ); ?>"><?php echo esc_html( $watermarks_template['title'] ); ?></option>
    125                 <?php endforeach; ?>
    126             </select>
     117                <?php esc_html_e( 'Select watermarks template', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
     118                <span><?php self::$core->pro_btn(); ?></span>
     119            </span>
     120            <select class="form-control" name="<?php echo esc_attr( self::$plugin_info['prefix'] . '-selected-watermark-img-template-id' ); ?>">
     121                <option selected value="0"><?php esc_html_e( '-- Select Watermarks Template --', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     122                <?php
     123                $watermarks_templates = Watermarks_Templates::get_watermark_templates( false );
     124                foreach ( $watermarks_templates as $watermarks_template ) :
     125                    ?>
     126                    <option value="<?php echo esc_attr( $watermarks_template['id'] ); ?>"><?php echo esc_html( $watermarks_template['title'] ); ?></option>
     127                <?php endforeach; ?>
     128            </select>
    127129        </div>
    128130        <?php
     
    132134    /**
    133135     * Check if MasterStudy LMS Plugin is active.
     136     *
    134137     * @return bool
    135138     */
     
    137140        return self::is_plugin_active( 'masterstudy-lms-learning-management-system/masterstudy-lms-learning-management-system.php' );
    138141    }
    139 
    140142}
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/Settings.php

    r3145166 r3437768  
    6363     * Settings Tab Fields
    6464     *
    65      * @var Array
     65     * @var array
    6666     */
    6767    protected $fields = array();
     
    101101     */
    102102    public function plugin_pro_button( $links ) {
    103         $links[] = '<a target="_blank" href="' . esc_url_raw( self::$plugin_info['pro_link'] ) . '"><b style="color:#F00;">' . esc_html__( 'Premium', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</b></a>';
     103        $links[] = '<a target="_blank" href="' . esc_url( self::$plugin_info['pro_link'] ) . '"><b style="color:#F00;">' . esc_html__( 'Premium', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</b></a>';
    104104        return $links;
    105105    }
     
    163163        $uploads              = wp_upload_dir();
    164164        $fonts_path           = trailingslashit( $uploads['basedir'] ) . trailingslashit( self::$plugin_info['name'] );
    165         $font_file            = $_FILES['file'];
     165        $font_file            = $_FILES['file']; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    166166        $font_file_name       = sanitize_text_field( wp_unslash( $font_file['name'] ) );
    167167        $font_file_ext        = pathinfo( $font_file['name'], PATHINFO_EXTENSION );
     
    170170            sprintf(
    171171                /* translators: 1: upload_max_filesize, 2: php.ini */
    172                 esc_html__( 'The uploaded file exceeds the %1$s directive in %2$s.' ),
     172                esc_html__( 'The uploaded file exceeds the %1$s directive in %2$s.', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    173173                'upload_max_filesize',
    174174                'php.ini'
     
    176176            sprintf(
    177177                /* translators: %s: MAX_FILE_SIZE */
    178                 esc_html__( 'The uploaded file exceeds the %s directive that was specified in the HTML form.' ),
     178                esc_html__( 'The uploaded file exceeds the %s directive that was specified in the HTML form.', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    179179                'MAX_FILE_SIZE'
    180180            ),
    181             esc_html__( 'The uploaded file was only partially uploaded.' ),
    182             esc_html__( 'No file was uploaded.' ),
     181            esc_html__( 'The uploaded file was only partially uploaded.', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
     182            esc_html__( 'No file was uploaded.', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    183183            '',
    184             esc_html__( 'Missing a temporary folder.' ),
    185             esc_html__( 'Failed to write file to disk.' ),
    186             esc_html__( 'File upload stopped by extension.' ),
     184            esc_html__( 'Missing a temporary folder.', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
     185            esc_html__( 'Failed to write file to disk.', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
     186            esc_html__( 'File upload stopped by extension.', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    187187        );
    188188        $ttf_mime_types       = array(
     
    252252            finfo_close( $finfo );
    253253        } else {
    254             $mime_type = @mime_content_type( $font_file['tmp_name'] );
     254            $mime_type = @mime_content_type( $font_file['tmp_name'] ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    255255        }
    256256
     
    278278        // Move the file to the plugin fonts folder.
    279279        $new_font_file  = $fonts_path . $font_file_name;
    280         $moved_new_file = @move_uploaded_file( $font_file['tmp_name'], $new_font_file );
     280        $moved_new_file = @move_uploaded_file( $font_file['tmp_name'], $new_font_file ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    281281
    282282        if ( false === $moved_new_file ) {
     
    285285                    'result'  => false,
    286286                    'status'  => 'error',
     287                    /* translators: Target PATH */
    287288                    'message' => sprintf( esc_html__( 'The uploaded file could not be moved to %s.', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $new_font_file ),
    288289                )
     
    316317     */
    317318    public function settings_link( $links ) {
    318         $links[] = '<a href="' . esc_url_raw( admin_url( 'upload.php?page=' . self::$plugin_info['options_page'] ) ) . '">' . esc_html__( 'GIF Editor' ) . '</a>';
     319        $links[] = '<a href="' . esc_url( admin_url( 'upload.php?page=' . self::$plugin_info['options_page'] ) ) . '">' . esc_html__( 'Settings', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</a>';
    319320        return $links;
    320321    }
     
    361362     */
    362363    public function is_settings_page( $tab = '' ) {
    363         if ( ! empty( $_GET['page'] ) && self::$plugin_info['options_page'] === sanitize_text_field( wp_unslash( $_GET['page'] ) ) ) {
     364        if ( ! empty( $_GET['page'] ) && sanitize_text_field( wp_unslash( $_GET['page'] ) ) === self::$plugin_info['options_page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    364365            if ( ! empty( $tab ) ) {
    365                 if ( ! empty( $_GET['tab'] ) && ( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) === $tab ) ) {
     366                if ( ! empty( $_GET['tab'] ) && ( sanitize_text_field( wp_unslash( $_GET['tab'] ) ) === $tab ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    366367                    return true;
    367368                } else {
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/Utils/WatermarkUtilsTrait.php

    r3145166 r3437768  
    4040
    4141        $dynamic_keys['wp_user'] = array(
    42             'title'  => esc_html__( 'User data', 'gpls-wmfw-watermark-image-for-wordpress' ),
     42            'title'  => esc_html__( 'User data', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    4343            'prefix' => 'wp_user_',
    4444            'keys'   => $user_data,
     
    6565            }
    6666            $dynamic_keys['woo_order'] = array(
    67                 'title'  => esc_html__( 'Woo order data', 'gpls-wmfw-watermark-image-for-wordpress' ),
     67                'title'  => esc_html__( 'Woo order data', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    6868                'prefix' => 'woo_order_',
    6969                'keys'   => $order_data_formatted,
     
    8787            }
    8888            $dynamic_keys['woo_customer'] = array(
    89                 'title'  => esc_html__( 'Woo Customer data', 'gpls-wmfw-watermark-image-for-wordpress' ),
     89                'title'  => esc_html__( 'Woo Customer data', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    9090                'prefix' => 'woo_customer_',
    9191                'keys'   => $customer_data_formatted,
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/WooImageWatermarker.php

    r3145166 r3437768  
    88/**
    99 * Woo Downloadable Image Watermarker Class.
    10  *
    1110 */
    1211class WooImageWatermark {
     
    2120    protected static $instance = null;
    2221
    23     /**
    24      * Core
    25      * @var Core
    26      */
    27     protected static $core;
     22    /**
     23     * Core
     24     *
     25     * @var Core
     26     */
     27    protected static $core;
    2828
    29     /**
    30      * Plugin Info.
    31      * @var array
    32      */
    33     protected static $plugin_info;
     29    /**
     30     * Plugin Info.
     31     *
     32     * @var array
     33     */
     34    protected static $plugin_info;
    3435
    3536    /**
     
    5960     */
    6061    private function setup( $core, $plugin_info ) {
    61         self::$core        = $core;
    62         self::$plugin_info = $plugin_info;
    63     }
     62        self::$core        = $core;
     63        self::$plugin_info = $plugin_info;
     64    }
    6465
    6566    /**
     
    6970     */
    7071    private function hooks() {
    71         // Password Protected IMGs Meta.
     72        // Password Protected IMGs Meta.
    7273        add_action( 'woocommerce_product_options_downloads', array( $this, 'watermark_img_template_select' ), PHP_INT_MAX );
    7374    }
    7475
    75     /**
    76      * Watermark Image Template Select.
    77      * @return void
    78      */
    79     public function watermark_img_template_select() {
     76    /**
     77     * Watermark Image Template Select.
     78     *
     79     * @return void
     80     */
     81    public function watermark_img_template_select() {
    8082        global $post;
    81         $template_id = get_post_meta( $post->ID, self::$plugin_info['prefix'] . '-selected-watermark-img-template-id', true );
     83        $template_id = get_post_meta( $post->ID, self::$plugin_info['prefix'] . '-selected-watermark-img-template-id', true );
    8284        ?>
    8385        <div class="<?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-disabled' ); ?>">
    8486            <div style="border:2px solid #EEE;padding:10px;margin:10px;display:block;overflow:hidden;" class="<?php echo esc_attr( self::$plugin_info['prefix'] . '-watermarked-downloadable-images-wrapper' ); ?>">
    85                 <h3><?php esc_html_e( 'Watermark Downloadable Images [GrandPlugins]', 'gpls-wmfw-watermark-image-for-wordpress' ); ?> <span><?php self::$core->pro_btn(); ?></span></h3>
     87                <h3><?php esc_html_e( 'Watermark Downloadable Images [GrandPlugins]', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> <span><?php self::$core->pro_btn(); ?></span></h3>
    8688                <div class="wrapper">
    8789                    <div class="input-field" style="overflow:hidden;">
    8890                        <!-- 1| Watermarks Template Selection -->
    8991                        <div class="mb-5">
    90                             <h5 class="form-label"><?php esc_html_e( 'Select Watermarks Template', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></h5>
     92                            <h5 class="form-label"><?php esc_html_e( 'Select Watermarks Template', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></h5>
    9193                            <select class="form-control" name="<?php echo esc_attr( self::$plugin_info['prefix'] . '-selected-watermark-img-template-id' ); ?>">
    92                                 <option selected value="0"><?php esc_html_e( '-- Select Watermarks Template --', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     94                                <option selected value="0"><?php esc_html_e( '-- Select Watermarks Template --', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    9395                                <?php
    9496                                $watermarks_templates = Watermarks_Templates::get_watermark_templates( false );
     
    104106        </div>
    105107        <?php
    106     }
    107 
     108    }
    108109}
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-apply-watermarks-queries.php

    r2932599 r3437768  
    8585     * @param array  $cpt_options_arr
    8686     * @param array  $terms
    87      * @return void
     87     * @return array
    8888     */
    8989    private static function get_cpt_for_terms( $cpt_name, $cpt_options_arr, $terms = array() ) {
     
    108108
    109109        foreach ( $terms[ $cpt_name ] as $taxonomy_name => $taxonomy_terms_arr ) :
    110             $cpt_ids = $wpdb->get_col(
    111                 "SELECT
     110            $sql = "SELECT
    112111                    p.id
    113112                FROM
     
    125124                AND
    126125                    tt.term_id IN ('" . implode( "','", $taxonomy_terms_arr ) . "')
    127                 "
    128             );
     126                ";
     127            $cpt_ids = $wpdb->get_col( $sql ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder
    129128        endforeach;
    130129
     
    148147                {$wpdb->prefix}posts p
    149148            WHERE
    150                 p.post_type = '{$cpt_name}'
    151         ";
     149                p.post_type = '{$cpt_name}'";
    152150
    153151        if ( ! empty( $cpt_options_arr['statuses'] ) ) {
     
    173171        }
    174172
    175         $cpts_ids = $wpdb->get_col( $query );
     173        $cpts_ids = $wpdb->get_col( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder
    176174        return $cpts_ids;
    177175    }
     
    252250                pm.meta_key = '_product_image_gallery'";
    253251
    254         $attachments = $wpdb->get_col( $query );
     252        $attachments = $wpdb->get_col( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder
    255253
    256254        return $attachments;
     
    270268                )
    271269            ),
    272             function( $cpt_slug ) use ( $pypass_cpts ) {
     270            function ( $cpt_slug ) use ( $pypass_cpts ) {
    273271                return ! in_array( $cpt_slug, $pypass_cpts );
    274272            }
     
    320318    public static function get_cpt_statuses( $cpt_slug ) {
    321319        global $wpdb;
    322         $statuses         = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT post_status FROM {$wpdb->prefix}posts WHERE post_type = '%s'", $cpt_slug ) );
     320        $statuses         = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT post_status FROM {$wpdb->prefix}posts WHERE post_type = '%s'", $cpt_slug ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder
    323321        $auto_draft_index = array_search( 'auto-draft', $statuses, true );
    324322        if ( false !== $auto_draft_index ) {
     
    332330     *
    333331     * @param string $cpt_slug
    334      * @return void
     332     * @return mixed
    335333     */
    336334    public static function get_cpt_count( $cpt_slug ) {
    337335        global $wpdb;
    338         return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}posts WHERE post_type = '%s'", $cpt_slug ) );
     336        return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}posts WHERE post_type = '%s'", $cpt_slug ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder
    339337    }
    340338
     
    361359                    post_date DESC";
    362360
    363             $months          = $wpdb->get_results( $query, \ARRAY_A );
     361            $months          = $wpdb->get_results( $query, \ARRAY_A );  // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQLPlaceholders.QuotedSimplePlaceholder
    364362            $filtered_months = array();
    365363            foreach ( $months as $month_arr ) {
     
    412410                    p.post_date DESC";
    413411
    414             $cpts_authors = $wpdb->get_results( $query, \ARRAY_A );
     412            $cpts_authors = $wpdb->get_results( $query, \ARRAY_A ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
    415413            foreach ( $cpts_authors as $author ) {
    416414                self::$cpts_author_options[ $author['post_type'] ][] = $author;
     
    419417        ?>
    420418        <select class="cpt-authors-select" data-cpt_type="<?php echo esc_attr( $post_type ); ?>" name="rule_group[<?php echo esc_attr( $post_type ); ?>][<?php echo esc_attr( $counter ); ?>][authors][]" multiple>
    421             <option value="">&mdash; <?php esc_html_e( 'Select' ); ?> &mdash;</option>
     419            <option value="">&mdash; <?php esc_html_e( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> &mdash;</option>
    422420            <?php
    423421            foreach ( (array) self::$cpts_author_options[ $post_type ] as $user ) :
    424                 $display = sprintf( esc_html__( '%1$s', 'user dropdown' ), $user['display_name'] );
     422                /* translators: User display Name */
     423                $display = sprintf( esc_html__( '%1$s', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $user['display_name'] ); // phpcs:ignore WordPress.WP.I18n.NoEmptyStrings
    425424                ?>
    426425                <option <?php echo esc_attr( in_array( $user['ID'], $selected_authors ) ? 'selected="selected"' : '' ); ?> value="<?php echo esc_attr( $user['ID'] ); ?>"><?php echo esc_html( $display ); ?></option>
     
    436435     *
    437436     * @param array $terms
    438      * @return Array
     437     * @return array
    439438     */
    440439    public static function filter_terms_ids( $terms, $cpt_names ) {
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-apply-watermarks-templates.php

    r2932599 r3437768  
    145145     */
    146146    public static function ajax_apply_watermarks_template() {
    147         if ( ! empty( $_POST['nonce'] ) && wp_verify_nonce( wp_unslash( $_POST['nonce'] ), self::$plugin_info['name'] . '-ajax-nonce' ) ) {
     147        if ( ! empty( $_POST['nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), self::$plugin_info['name'] . '-ajax-nonce' ) ) {
    148148            $errors      = array();
    149149            $step        = isset( $_POST['step'] ) ? absint( sanitize_text_field( wp_unslash( $_POST['step'] ) ) ) : 'end';
     
    194194            $step += 1;
    195195            if ( $step >= $total_steps ) {
    196                 $message = '<p>' . esc_html__( 'Watermarks Template has been applied successfully on selected images', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</p><a class ="button" target="_blank" href="' . esc_url_raw( admin_url( 'upload.php' ) ) . '" ><strong>' . esc_html__( 'Media Library', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</strong></a>  ';
     196                $message = '<p>' . esc_html__( 'Watermarks Template has been applied successfully on selected images', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</p><a class ="button" target="_blank" href="' . esc_url( admin_url( 'upload.php' ) ) . '" ><strong>' . esc_html__( 'Media Library', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</strong></a>  ';
    197197            } else {
    198198                $message = '';
     
    361361            $link_start = sprintf(
    362362                '<a target="_blank" href="%s" aria-label="%s">',
    363                 esc_url_raw( get_edit_post_link( $post->ID ) ),
     363                esc_url( get_edit_post_link( $post->ID ) ),
    364364                /* translators: %s: Attachment title. */
    365                 esc_attr( sprintf( esc_html__( '&#8220;%s&#8221; (Edit)' ), $title ) )
     365                esc_attr( sprintf( esc_html__( '&#8220;%s&#8221; (Edit)', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $title ) )
    366366            );
    367367            $link_end = '</a>';
     
    385385            ?>
    386386            <p class="filename">
    387             <span class="screen-reader-text"><?php esc_html_e( 'File name:' ); ?> </span>
     387            <span class="screen-reader-text"><?php esc_html_e( 'File name:', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> </span>
    388388            <?php
    389389            $file = get_attached_file( $post->ID );
     
    411411            $parent_type = get_post_type_object( $parent->post_type );
    412412            if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $post->post_parent ) ) {
    413                 printf( '<strong><a target="_blank" href="%s">%s</a></strong>', esc_url_raw( get_edit_post_link( $post->post_parent ) ), esc_html( $title ) );
     413                printf( '<strong><a target="_blank" href="%s">%s</a></strong>', esc_url( get_edit_post_link( $post->post_parent ) ), esc_html( $title ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    414414            } elseif ( $parent_type && current_user_can( 'read_post', $post->post_parent ) ) {
    415                 printf( '<strong>%s</strong>', $title );
     415                printf( '<strong>%s</strong>', $title ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    416416            } else {
    417                 esc_html_e( '(Private post)' );
     417                esc_html_e( '(Private post)', 'watermark-images-for-wp-and-woo-grandpluginswp' );
    418418            }
    419419        } else {
    420             esc_html_e( '(Unattached)' );
     420            esc_html_e( '(Unattached)', 'watermark-images-for-wp-and-woo-grandpluginswp' );
    421421        }
    422422    }
     
    433433        printf(
    434434            '<a target="_blank" href="%s">%s</a>',
    435             esc_url_raw( add_query_arg( array( 'author' => get_the_author_meta( 'ID', $post->post_author ) ), 'upload.php' ) ),
     435            esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID', $post->post_author ) ), 'upload.php' ) ),
    436436            get_the_author_meta( 'nicename', $post->post_author )
    437437        );
     
    450450        }
    451451        if ( '0000-00-00 00:00:00' === $post->post_date ) {
    452             $h_time = esc_html__( 'Unpublished' );
     452            $h_time = esc_html__( 'Unpublished', 'watermark-images-for-wp-and-woo-grandpluginswp' );
    453453        } else {
    454454            $time      = get_post_timestamp( $post );
     
    457457            if ( $time && $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) {
    458458                /* translators: %s: Human-readable time difference. */
    459                 $h_time = sprintf( esc_html__( '%s ago' ), human_time_diff( $time ) );
     459                $h_time = sprintf( esc_html__( '%s ago', 'watermark-images-for-wp-and-woo-grandpluginswp' ), human_time_diff( $time ) );
    460460            } else {
    461                 $h_time = get_the_time( esc_html__( 'Y/m/d' ), $post );
     461                $h_time = get_the_time( 'Y/m/d', $post );
    462462            }
    463463        }
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-gd-image.php

    r2966022 r3437768  
    217217            return new \WP_Error(
    218218                self::$plugin_info['name'] . '-failed-image-resource',
    219                 esc_html__( 'Failed to detect image mime type', 'gpls-wmfw-watermark-image-for-wordpress' )
     219                esc_html__( 'Failed to detect image mime type', 'watermark-images-for-wp-and-woo-grandpluginswp' )
    220220            );
    221221        }
     
    225225            ( 'image/webp' === wp_get_image_mime( $img_path ) )
    226226        ) {
    227             $gdimg = @imagecreatefromwebp( $img_path );
     227            $gdimg = @imagecreatefromwebp( $img_path ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    228228        } else {
    229             $gdimg = @imagecreatefromstring( file_get_contents( $img_path ) );
     229            $gdimg = @imagecreatefromstring( file_get_contents( $img_path ) ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    230230        }
    231231
     
    233233            return new \WP_Error(
    234234                self::$plugin_info['name'] . '-failed-image-resource',
    235                 esc_html__( 'Image format is not supported', 'gpls-wmfw-watermark-image-for-wordpress' )
     235                esc_html__( 'Image format is not supported', 'watermark-images-for-wp-and-woo-grandpluginswp' )
    236236            );
    237237        }
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-image-edit-page.php

    r2932599 r3437768  
    108108                        </div>
    109109                        <div class="thumbnail-wrapper flex-grow-1 d-flex justify-contnet-center align-items-center w-100 flex-column">
    110                             <a class="thumbnail border" href="<?php echo esc_url_raw( $size_url ); ?>" target="_blank">
    111                                 <img src="<?php echo esc_url_raw( $size_url ); ?>" alt="image-subsize" class="card-img-bottom">
     110                            <a class="thumbnail border" href="<?php echo esc_url( $size_url ); ?>" target="_blank">
     111                                <img src="<?php echo esc_url( $size_url ); ?>" alt="image-subsize" class="card-img-bottom">
    112112                            </a>
    113113                        </div>
     
    131131     */
    132132    public static function restore_original( $backup_path, $img_path ) {
    133         return @copy( $backup_path, $img_path );
     133        return @copy( $backup_path, $img_path ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    134134    }
    135135
     
    139139     * @param string $original_path Original Image FULL PATH.
    140140     * @param int    $attachment_id Attachment Post ID.
    141      * @return boolean|\WP_Error
     141     * @return mixed
    142142     */
    143143    public static function restore_scaled( $original_path, $attachment_id ) {
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-image-watermark.php

    r2932599 r3437768  
    102102            return new \WP_Error(
    103103                self::$plugin_info['name'] . '-unsupported-type',
    104                 esc_html( sprintf( esc_html__( 'Image format is not supported : %s' ), $img['path'] ) )
     104                /* translators: Image format */
     105                esc_html( sprintf( esc_html__( 'Image format is not supported : %s', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $img['path'] ) )
    105106            );
    106107        }
     
    139140        }
    140141
    141         $img_mime_type = @mime_content_type( $this->img['path'] );
     142        $img_mime_type = @mime_content_type( $this->img['path'] ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    142143        if ( ! $img_mime_type ) {
    143144            return false;
     
    238239     * Force Cache Busting for images after adding watermarks to purge the browser cached version.
    239240     *
    240      * @param string $image Image Array ( 0 => URL, 1 => width, 2 => height, 3 => is a resized image boolean ).
     241     * @param array $image Image Array ( 0 => URL, 1 => width, 2 => height, 3 => is a resized image boolean ).
    241242     * @param int    $attachment_id Attachment Post ID.
    242243     * @param int    $size Target Size.
     
    245246     */
    246247    public static function force_cache_bust_in_media_listing( $image, $attachment_id, $size, $icon ) {
    247         if ( is_array( $image ) && ! empty( $_SERVER['HTTP_REFERER'] ) && ( admin_url( 'upload.php' ) === esc_url( strtok( wp_unslash( $_SERVER['HTTP_REFERER'] ), '?' ) ) ) ) {
     248        if ( is_array( $image ) && ! empty( $_SERVER['HTTP_REFERER'] ) && ( admin_url( 'upload.php' ) === esc_url( strtok( wp_unslash( $_SERVER['HTTP_REFERER'] ), '?' ) ) ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    248249            $image[0] = add_query_arg(
    249250                array(
     
    265266     */
    266267    public static function force_cache_bust_after_watermarking( $url, $post_id ) {
    267         if ( ! empty( $url ) && ! empty( $_REQUEST[ self::$plugin_info['classes_prefix'] . '-force-img-refresh' ] ) || ( ( ! empty( $_SERVER['HTTP_REFERER'] ) ) && admin_url( 'upload.php' ) === esc_url( strtok( wp_unslash( $_SERVER['HTTP_REFERER'] ), '?' ) ) ) ) {
     268        if ( ! empty( $url ) && ! empty( $_REQUEST[ self::$plugin_info['classes_prefix'] . '-force-img-refresh' ] ) || ( ( ! empty( $_SERVER['HTTP_REFERER'] ) ) && admin_url( 'upload.php' ) === esc_url( strtok( wp_unslash( $_SERVER['HTTP_REFERER'] ), '?' ) ) ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    268269            $url = add_query_arg(
    269270                array(
     
    280281     * Initialize the watermarks images sources.
    281282     *
    282      * @return false|\WP_Error
     283     * @return \GdImage|\WP_Error
    283284     */
    284285    public function get_img_watermark_resource( &$watermark ) {
     
    346347                self::clear_image_resource( $watermark_resource );
    347348            } elseif ( 'text' === $watermark['type'] ) {
    348                 // TODO: maybe used later!
    349                 // $watermark = $this->scale_text_watermarks( $watermark );
    350349                $this->add_text_watermark( $image_details['resource'], $watermark );
    351350            }
     
    398397            ?>@font-face {
    399398            font-family: "<?php echo esc_attr( $font_family_name ); ?>";
    400             src: url( '<?php echo esc_url_raw( $font['url'] ); ?>' ) format('truetype');
     399            src: url( '<?php echo esc_url( $font['url'] ); ?>' ) format('truetype');
    401400        }
    402401            <?php
     
    416415    public static function add_watermark_chosen_size_to_js_object( $response, $attachment, $meta ) {
    417416        // Check if its auto apply watermarks, force refresh link.
    418         if ( ( ! empty( $GLOBALS[ self::$plugin_info['name'] . '-is-auto-apply-watermarks-template' ] ) && ! empty( $response['type'] ) && ( 'image' === $response['type'] ) ) || ( ! empty( $_SERVER['HTTP_REFERER'] ) && admin_url( 'upload.php' ) === esc_url( strtok( wp_unslash( $_SERVER['HTTP_REFERER'] ), '?' ) ) ) ) {
     417        if ( ( ! empty( $GLOBALS[ self::$plugin_info['name'] . '-is-auto-apply-watermarks-template' ] ) && ! empty( $response['type'] ) && ( 'image' === $response['type'] ) ) || ( ! empty( $_SERVER['HTTP_REFERER'] ) && admin_url( 'upload.php' ) === esc_url( strtok( wp_unslash( $_SERVER['HTTP_REFERER'] ), '?' ) ) ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    419418            // cache bust refresh.
    420419            $cache_bust_refresh = wp_generate_password( 5, false, false );
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-image.php

    r2932599 r3437768  
    3636                self::$plugin_info['name'] . '-get-image-resource-error',
    3737                sprintf(
     38                    /* translators: Image PATH */
    3839                    esc_html__( 'Image file does not exist %s', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    3940                    $img_path
     
    7475            $original_full_path         = trailingslashit( $uploads['basedir'] ) . $original_img_relative_path;
    7576            // check if the original exists.
    76             if ( @file_exists( $original_full_path ) ) {
     77            if ( @file_exists( $original_full_path ) ) { // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    7778                $img_details['scaled_path'] = get_attached_file( $attachment_id );
    7879                $img_relative_path          = $original_img_relative_path;
     
    9798            return new \WP_Error(
    9899                self::$plugin_info['name'] . '-attachment-subsize-not-found',
     100                /* translators: Image file subsize name */
    99101                sprintf( esc_html__( 'Image file sub-size: %s not found!', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $img_size_name )
    100102            );
     
    104106            return new \WP_Error(
    105107                self::$plugin_info['name'] . '-attachment-file-not-found',
     108                /* translators: Image file name */
    106109                sprintf( esc_html__( 'image file %s not found!', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $img_file_name )
    107110            );
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-imagick-image.php

    r2966022 r3437768  
    212212            return new \WP_Error(
    213213                self::$plugin_info['name'] . '-imagick-failed-img-resource',
    214                 esc_html__( 'Image type is not supported' )
     214                esc_html__( 'Image type is not supported', 'watermark-images-for-wp-and-woo-grandpluginswp' )
    215215            );
    216216        }
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-single-apply-watermarks.php

    r2932599 r3437768  
    5050
    5151        // Single Apply Page.
    52         if ( ! empty( $_GET['page'] ) && self::$plugin_info['single_apply_page'] === sanitize_text_field( wp_unslash( $_GET['page'] ) ) ) {
     52        if ( ! empty( $_GET['page'] ) && sanitize_text_field( wp_unslash( $_GET['page'] ) ) === self::$plugin_info['single_apply_page'] ) {
    5353            wp_enqueue_style( self::$plugin_info['name'] . '-settings-menu-bootstrap-style', self::$core->core_assets_lib( 'bootstrap', 'css' ), array(), self::$plugin_info['version'], 'all' );
    5454            wp_enqueue_style( self::$plugin_info['name'] . '-watermark-template-css', self::$plugin_info['url'] . 'assets/dist/css/admin/admin-styles.min.css', array(), self::$plugin_info['version'], 'all' );
     
    107107                        'search_term'               => esc_html__( 'Search Term', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    108108                        'search_terms'              => esc_html__( 'Search Terms', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
     109                        /* translators: Maximum allowed watermarks */
    109110                        'limited_watermarks_notice' => sprintf( esc_html__( 'Maximum %d watermarks can be added in Free Version', 'watermark-images-for-wp-and-woo-grandpluginswp' ), Watermarks_Templates::$watermarks_limit ),
    110111                        'remove_watermark'          => esc_html__( 'You are about to remove a watermark, confirm?', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
     
    122123         */
    123124    public static function ajax_single_apply_watermarks() {
    124         if ( ! empty( $_POST['nonce'] ) && wp_verify_nonce( wp_unslash( $_POST['nonce'] ), self::$plugin_info['name'] . '-ajax-nonce' ) ) {
     125        if ( ! empty( $_POST['nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), self::$plugin_info['name'] . '-ajax-nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    125126            $errors        = array();
    126127            $preview_image = ! empty( $_POST['preview_img'] ) ? map_deep( wp_unslash( $_POST['preview_img'] ), 'sanitize_text_field' ) : array();
    127             $watermarks    = map_deep( wp_unslash( $_POST['watermarks'] ), 'sanitize_text_field' );
     128            $watermarks    = map_deep( wp_unslash( $_POST['watermarks'] ), 'sanitize_text_field' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
    128129            $options       = ! empty( $_POST['options'] ) ? map_deep( wp_unslash( $_POST['options'] ), 'sanitize_text_field' ) : array();
    129130
     
    207208     * @param array $watermarks Watermarks Array.
    208209     *
    209      * @return array|int
     210     * @return array|int|string
    210211     */
    211212    private static function single_apply_watermarks( $img, $watermarks, $apply_options ) {
     
    256257            // Overwrite.
    257258            // If original is among the sizes and its scaled, apply the template on scaled image.
    258             if ( in_array( 'original', $apply_options['imageSizes'] ) && ! empty( $img_details['scaled_path'] ) && @file_exists( $img_details['scaled_path'] ) ) {
     259            if ( in_array( 'original', $apply_options['imageSizes'] ) && ! empty( $img_details['scaled_path'] ) && @file_exists( $img_details['scaled_path'] ) ) { // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
    259260                $scaled_img_details = Image::get_image_file_details_direct( $img_details['scaled_path'] );
    260261
     
    265266                    return $errors;
    266267                }
    267                 $scaled_result        = $scaled_watermark_img->draw_watermarks_on_image();
     268                $scaled_result = $scaled_watermark_img->draw_watermarks_on_image();
    268269
    269270                $scaled_result = Watermark_Base::save_watermarked_image( $scaled_result['img_string'], $scaled_img_details );
     
    313314     * Display Image Box after save.
    314315     *
    315      * @return void
     316     * @return string
    316317     */
    317318    public static function display_img_icon_box( $media_id ) {
     
    329330        <div class="img-media-icon-box card mb-3 w-auto mx-auto border container px-0 py-0">
    330331            <div class="card-body">
    331                 <h5 class="card-title"><a target="_blank" href="<?php echo esc_url_raw( $edit_link ); ?>"><strong><?php echo esc_html( $title ); ?></strong></a></h5>
     332                <h5 class="card-title"><a target="_blank" href="<?php echo esc_url( $edit_link ); ?>"><strong><?php echo esc_html( $title ); ?></strong></a></h5>
    332333                <p class="card-text mt-4"><?php echo esc_html( wp_basename( $file ) ); ?></p>
    333                 <a class="mt-3" target="_blank" href="<?php echo esc_url_raw( $edit_link ); ?>"><?php echo wp_kses_post( $thumb ); ?></a>
     334                <a class="mt-3" target="_blank" href="<?php echo esc_url( $edit_link ); ?>"><?php echo wp_kses_post( $thumb ); ?></a>
    334335            </div>
    335336        </div>
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/includes/class-watermarks-templates.php

    r3145166 r3437768  
    5555     * @var array
    5656     */
    57     private static $text_watermark_fields = array( 'id', 'type', 'width', 'height', 'title', 'isRepeat', 'centerOffset', 'repeatAxis', 'repeatXAxisOffset', 'repeatYAxisOffset', 'positionSpot', 'positionType', 'absLeft', 'absTop', 'leftPercent', 'topPercent', 'baselineOffset', 'exactWidth', 'botLeft', 'botTop', 'opacity', 'degree', 'color', 'fontsize', 'fontfamily' );
     57    private static $text_watermark_fields = array( 'id', 'type', 'width', 'height', 'title', 'isRepeat', 'centerOffset', 'repeatAxis', 'repeatXAxisOffset', 'repeatYAxisOffset', 'positionSpot', 'positionType', 'absLeft', 'absTop', 'leftPercent', 'topPercent', 'baselineOffset', 'exactWidth', 'botLeft', 'botTop', 'opacity', 'degree', 'color', 'fontsize', 'fontfamily', 'offsetCorner' );
    5858
    5959    /**
     
    6262     * @var array
    6363     */
    64     private static $image_watermark_fields = array( 'id', 'type', 'width', 'height', 'imgID', 'isRepeat', 'centerOffset', 'repeatAxis', 'repeatXAxisOffset', 'repeatYAxisOffset', 'positionSpot', 'positionType', 'absLeft', 'absTop', 'leftPercent', 'topPercent', 'url', 'opacity', 'degree' );
     64    private static $image_watermark_fields = array( 'id', 'type', 'width', 'height', 'imgID', 'isRepeat', 'centerOffset', 'repeatAxis', 'repeatXAxisOffset', 'repeatYAxisOffset', 'positionSpot', 'positionType', 'absLeft', 'absTop', 'leftPercent', 'topPercent', 'url', 'opacity', 'degree', 'offsetCorner' );
    6565
    6666    /**
     
    159159
    160160    /**
    161      *
     161     * Limit Watermarks templates.
    162162     *
    163163     * @param array $data
     
    181181                    <div>
    182182                        <h4><?php esc_html_e( 'You have reached the maximum watermarks templates!', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></h4>
    183                         <h3><?php echo wp_kses_post( esc_html__( 'Upgrade to', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . ' <a href="' . esc_url_raw( self::$plugin_info['pro_link'] ) . '" target="_blank" ><strong style="font-weight:bolder;">' . esc_html( 'Pro' ) . '</strong></a> ' . esc_html__( 'for unlimited watermarks templates', 'watermark-images-for-wp-and-woo-grandpluginswp' ) ); ?></h3>
     183                        <h3><?php echo wp_kses_post( esc_html__( 'Upgrade to', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . ' <a href="' . esc_url( self::$plugin_info['pro_link'] ) . '" target="_blank" ><strong style="font-weight:bolder;">' . esc_html__( 'Pro', 'watermark-images-for-wp-and-woo-grandpluginswp' ) . '</strong></a> ' . esc_html__( 'for unlimited watermarks templates', 'watermark-images-for-wp-and-woo-grandpluginswp' ) ); ?></h3>
    184184                    </div>
    185185                    <?php
    186186                    $limit_msg = ob_get_clean();
    187                     wp_die( $limit_msg );
     187                    wp_die( $limit_msg ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    188188            }
    189189        }
     
    202202            ( is_object( $screen ) && ! is_wp_error( $screen ) && ! empty( $screen->post_type ) && ( 'post' === $screen->base ) && ( $screen->post_type === self::$post_type_key ) )
    203203            ||
    204             ( ! empty( $_GET['page'] ) && self::$plugin_info['single_apply_page'] === sanitize_text_field( wp_unslash( $_GET['page'] ) ) )
     204            ( ! empty( $_GET['page'] ) && sanitize_text_field( wp_unslash( $_GET['page'] ) ) === self::$plugin_info['single_apply_page'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    205205        ) {
    206206            $fonts = Image_Watermark::get_available_fonts( true );
     
    284284                        'search_term'               => esc_html__( 'Search Term', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    285285                        'search_terms'              => esc_html__( 'Search Terms', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    286                         'limited_watermarks_notice' => esc_html__( 'Maximum ' . self::$watermarks_limit . ' watermarks can be added in Free Version', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
     286                        /* translators: Maximum allowed watermarks */
     287                        'limited_watermarks_notice' => sprintf( esc_html__( 'Maximum %d watermarks can be added in Free Version', 'watermark-images-for-wp-and-woo-grandpluginswp' ), self::$watermarks_limit ),
    287288                        'remove_watermark'          => esc_html__( 'You are about to remove a watermark, confirm?', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    288289                    ),
     
    332333        $data = self::$default_metadata;
    333334
    334         if ( ! empty( $_POST['action'] ) && 'inline-save' === sanitize_text_field( wp_unslash( $_POST['action'] ) ) ) {
     335        if ( ! empty( $_POST['action'] ) && 'inline-save' === sanitize_text_field( wp_unslash( $_POST['action'] ) ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
    335336            return;
    336337        }
    337338
    338339        // Preview Image.
    339         if ( ! empty( $_POST['selected-preview-img-id'] ) ) {
    340             $data['preview_img_id'] = absint( sanitize_text_field( wp_unslash( $_POST['selected-preview-img-id'] ) ) );
     340        if ( ! empty( $_POST['selected-preview-img-id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
     341            $data['preview_img_id'] = absint( sanitize_text_field( wp_unslash( $_POST['selected-preview-img-id'] ) ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing
    341342        }
    342343
    343344        // Watermarks.
    344         if ( ! empty( $_POST['watermarks'] ) && is_array( $_POST['watermarks'] ) ) {
    345             $watermarks = wp_unslash( $_POST['watermarks'] );
     345        if ( ! empty( $_POST['watermarks'] ) && is_array( $_POST['watermarks'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
     346            $watermarks = wp_unslash( $_POST['watermarks'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    346347            foreach ( $watermarks as $watermark ) {
    347348                $watermark = array_map( 'sanitize_text_field', $watermark );
    348                 if ( ! empty( $watermark['id'] ) && ! empty( $watermark['type'] ) && in_array( $watermark['type'], self::$watermarks_types ) ) {
     349                if ( ! empty( $watermark['id'] ) && ! empty( $watermark['type'] ) && in_array( $watermark['type'], self::$watermarks_types, true ) ) {
    349350                    $data['watermarks'][ $watermark['id'] ] = array();
    350351                    foreach ( self::${ $watermark['type'] . '_watermark_fields' } as $field ) {
     
    360361
    361362        update_post_meta( $post_id, self::$watermarks_template_meta_key, $data );
    362 
    363363    }
    364364
     
    369369     */
    370370    public static function ajax_preview_watermarks_template() {
    371         if ( ! empty( $_POST['nonce'] ) && wp_verify_nonce( wp_unslash( $_POST['nonce'] ), self::$plugin_info['name'] . '-ajax-nonce' ) ) {
     371        if ( ! empty( $_POST['nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), self::$plugin_info['name'] . '-ajax-nonce' ) ) {
    372372            if ( ! empty( $_POST['watermarks'] ) ) {
    373373                $preview_image = ! empty( $_POST['preview_img'] ) ? map_deep( wp_unslash( $_POST['preview_img'] ), 'sanitize_text_field' ) : array();
     
    420420        if ( is_array( $img ) && ! empty( $img['id'] ) ) {
    421421            $img['path'] = get_attached_file( $img['id'] );
    422         } else {
    423             if ( ! $is_preview ) {
     422        } elseif ( ! $is_preview ) {
    424423                $img = self::$default_preview_imgs['preview_bg_white'];
    425             }
    426424        }
    427425        return $img;
     
    440438            return $watermark_img;
    441439        }
    442         $result        = $watermark_img->draw_watermarks_on_image( true );
     440        $result = $watermark_img->draw_watermarks_on_image( true );
    443441        if ( is_wp_error( $result ) ) {
    444442            return $result;
     
    479477        add_meta_box(
    480478            self::$plugin_info['name'] . '-auto-resize-watermarks-template',
    481             esc_html__( 'Auto resize watermarks (Pro)', 'gpls-wmfw-watermark-image-for-wordpress' ),
     479            esc_html__( 'Auto resize watermarks (Pro)', 'watermark-images-for-wp-and-woo-grandpluginswp' ),
    482480            array( get_called_class(), 'auto_resize_watermarks_template' ),
    483481            self::$post_type_key,
     
    521519                            <input type="hidden" name="watermarks[<?php echo esc_attr( $watermark_id ); ?>][id]" value="<?php echo esc_attr( $watermark_id ); ?>" />
    522520                                <?php if ( ! empty( 'image' === $watermark_data['type'] ) ) : ?>
    523                                 <input type="hidden" name="watermarks[<?php echo esc_attr( $watermark_id ); ?>][url]" value="<?php echo esc_url_raw( $watermark_data['url'] ); ?>" />
     521                                <input type="hidden" name="watermarks[<?php echo esc_attr( $watermark_id ); ?>][url]" value="<?php echo esc_url( $watermark_data['url'] ); ?>" />
    524522                                <input type="hidden" name="watermarks[<?php echo esc_attr( $watermark_id ); ?>][imgID]" value="<?php echo esc_attr( $watermark_data['imgID'] ); ?>" />
    525523                                <input type="hidden" name="watermarks[<?php echo esc_attr( $watermark_id ); ?>][width]" value="<?php echo esc_attr( $watermark_data['width'] ); ?>" />
     
    534532                    </div>
    535533                    <?php
    536                     $index++;
     534                    ++$index;
    537535                endforeach;
    538536            endif;
     
    647645     * @param int    $template_id Watermarks Template Post ID.
    648646     * @param string $return_part Preview Image Part to return.
    649      * @return string
     647     * @return mixed
    650648     */
    651649    private static function get_watermarks_template_preview_img( $template_id, $return_part ) {
     
    705703                        'baselineOffset'    => $watermark_data['baselineOffset'],
    706704                        'exactWidth'        => $watermark_data['exactWidth'],
     705                        'offsetCorner'      => $watermark_data['offsetCorner'],
    707706                        'botLeft'           => $watermark_data['botLeft'],
    708707                        'botTop'            => $watermark_data['botTop'],
     
    736735                        'url'               => $watermark_data['url'],
    737736                        'imgID'             => $watermark_data['imgID'],
     737                        'offsetCorner'      => $watermark_data['offsetCorner'],
    738738                        'styles'            => array(
    739739                            'opacity' => $watermark_data['opacity'],
     
    777777    /**
    778778     * Watermarks Text meta select.
     779     *
    779780     * @return void
    780781     */
     
    784785        <div class="<?php echo esc_attr( self::$plugin_info['classes_prefix'] . '-disabled' ); ?>">
    785786            <select class="watermark-dynamic-data-field" data-watermarkid="<?php echo esc_attr( ! empty( $watermark_data ) ? $watermark_data['id'] : '' ); ?>" data-type="dynamic" class="edit edit-dynamic-data-field watermark-dynamic-data-field mt-1">
    786                 <option selected value=""><?php esc_html_e( '--- Select data field ---', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     787                <option selected value=""><?php esc_html_e( '--- Select data field ---', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    787788       
    788789                <?php foreach ( $dynamic_fields as $dynamic_group_key => $group_arr ) : ?>
     
    827828                    p.post_date DESC";
    828829
    829             $cpts_authors = $wpdb->get_results( $query, ARRAY_A );
     830            $cpts_authors = $wpdb->get_results( $query, ARRAY_A ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.DirectQuery
    830831            foreach ( $cpts_authors as $author ) {
    831832                self::$cpts_author_options[ $author['post_type'] ][] = $author;
     
    834835        ?>
    835836        <select class="cpt-authors-select" data-cpt_type="<?php echo esc_attr( $post_type ); ?>" name="rule_group[<?php echo esc_attr( $post_type ); ?>][<?php echo esc_attr( $counter ); ?>][author]">
    836             <option value="">&mdash; <?php esc_html_e( 'Select' ); ?> &mdash;</option>
     837            <option value="">&mdash; <?php esc_html_e( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> &mdash;</option>
    837838            <?php
    838839            foreach ( (array) self::$cpts_author_options[ $post_type ] as $user ) :
    839                 $display = sprintf( esc_html__( '%1$s (%2$s)', 'user dropdown' ), $user['display_name'], $user['user_login'] );
     840                /* translators: %1s user display name, %2s user login */
     841                $display = sprintf( esc_html__( '%1$s (%2$s)', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $user['display_name'], $user['user_login'] );
    840842                ?>
    841843                <option <?php echo esc_attr( in_array( $user['ID'], $selected_authors ) ? 'selected="selected"' : '' ); ?> value="<?php echo esc_attr( $user['ID'] ); ?>"><?php echo esc_html( $display ); ?></option>
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/languages/watermark-images-for-wp-and-woo-grandpluginswp.pot

    r3145166 r3437768  
    1 # Copyright (C) 2024 GrandPlugins
    2 # This file is distributed under the same license as the Grand Watermark Images [[GrandPlugins]] plugin.
     1# Copyright (C) 2026 GrandPlugins
     2# This file is distributed under the GPLv3.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Grand Watermark Images [[GrandPlugins]] 1.1.7\n"
     5"Project-Id-Version: GrandPlugins Image Watermark 1.1.9\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gpls-wmfw-watermark-images-for-wordpress-pro\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-09-02T08:29:27+00:00\n"
     12"POT-Creation-Date: 2026-01-12T06:59:41+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    1616
    1717#. Plugin Name of the plugin
    18 #: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
    19 msgid "Grand Watermark Images [[GrandPlugins]]"
     18#: gpls-wmfw-watermark-image-for-wordpress.php
     19msgid "GrandPlugins Image Watermark"
    2020msgstr ""
    2121
    2222#. Plugin URI of the plugin
    23 #: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
     23#: gpls-wmfw-watermark-image-for-wordpress.php
    2424msgid "https://grandplugins.com/product/wp-images-watermark/"
    2525msgstr ""
    2626
    2727#. Description of the plugin
    28 #: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
     28#: gpls-wmfw-watermark-image-for-wordpress.php
    2929msgid "Add Text and Image watermarks to your images in your WordPress website"
    3030msgstr ""
    3131
    3232#. Author of the plugin
    33 #: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
     33#: gpls-wmfw-watermark-image-for-wordpress.php
    3434msgid "GrandPlugins"
    3535msgstr ""
    3636
    3737#. Author URI of the plugin
    38 #: C:\laragon\www\WatermarkImages\wp-content\plugins\gpls-wmfw-watermark-images-for-wordpress-pro\gpls-wmfw-watermark-image-for-wordpress.php
     38#: gpls-wmfw-watermark-image-for-wordpress.php
    3939msgid "https://profiles.wordpress.org/grandplugins/"
     40msgstr ""
     41
     42#. translators: Button title
     43#: core/core.php:255
     44msgid "%s"
     45msgstr ""
     46
     47#: core/core.php:282
     48msgid "We would love your feedback. leaving "
     49msgstr ""
     50
     51#: core/core.php:284
     52msgid "a review is much appreciated"
     53msgstr ""
     54
     55#: core/core.php:291
     56msgid ":) Thanks!"
     57msgstr ""
     58
     59#: core/core.php:309
     60#: templates/auto-resize-watermarks-template-metabox.php:9
     61msgid "New"
     62msgstr ""
     63
     64#: core/core.php:324
     65msgid "Empower Your Website with Our Additional Plugins"
     66msgstr ""
     67
     68#: core/core.php:342
     69#: includes/class-watermarks-templates.php:183
     70msgid "Pro"
     71msgstr ""
     72
     73#: core/core.php:347
     74msgid "Free"
     75msgstr ""
     76
     77#: core/core.php:354
     78msgid "Browse All Plugins"
     79msgstr ""
     80
     81#: includes/class-apply-watermarks-queries.php:419
     82#: includes/class-watermarks-templates.php:837
     83#: templates/apply-watermarks-templates-by-posts-template.php:41
     84#: templates/apply-watermarks-templates-by-posts-template.php:60
     85#: templates/apply-watermarks-templates-by-posts-template.php:79
     86#: templates/apply-watermarks-templates-by-posts-template.php:86
     87#: templates/watermark-specs-template-metabox.php:149
     88#: templates/watermark-specs-template-metabox.php:171
     89msgid "Select"
     90msgstr ""
     91
     92#. translators: User display Name
     93#: includes/class-apply-watermarks-queries.php:423
     94msgid "%1$s"
    4095msgstr ""
    4196
     
    81136
    82137#: includes/class-apply-watermarks-templates.php:158
    83 #: includes/class-single-apply-watermarks.php:134
     138#: includes/class-single-apply-watermarks.php:135
    84139msgid "Apply rules are empty!"
    85140msgstr ""
     
    98153
    99154#: includes/class-apply-watermarks-templates.php:216
    100 #: includes/class-single-apply-watermarks.php:197
     155#: includes/class-single-apply-watermarks.php:198
    101156#: includes/class-watermarks-templates.php:396
    102157msgid "The link has expired, please refresh the page!"
     
    104159
    105160#: includes/class-apply-watermarks-templates.php:261
    106 #: includes/class-single-apply-watermarks.php:235
     161#: includes/class-single-apply-watermarks.php:236
    107162msgid "Failed to create watermarked image file!"
    108163msgstr ""
    109164
    110165#: includes/class-apply-watermarks-templates.php:277
    111 #: includes/class-single-apply-watermarks.php:251
     166#: includes/class-single-apply-watermarks.php:252
    112167msgid "Failed to create watermarked attachment!"
     168msgstr ""
     169
     170#. translators: %s: Attachment title.
     171#: includes/class-apply-watermarks-templates.php:365
     172msgid "&#8220;%s&#8221; (Edit)"
     173msgstr ""
     174
     175#: includes/class-apply-watermarks-templates.php:387
     176msgid "File name:"
     177msgstr ""
     178
     179#: includes/class-apply-watermarks-templates.php:417
     180msgid "(Private post)"
     181msgstr ""
     182
     183#: includes/class-apply-watermarks-templates.php:420
     184msgid "(Unattached)"
     185msgstr ""
     186
     187#: includes/class-apply-watermarks-templates.php:452
     188msgid "Unpublished"
     189msgstr ""
     190
     191#. translators: %s: Human-readable time difference.
     192#: includes/class-apply-watermarks-templates.php:459
     193msgid "%s ago"
     194msgstr ""
     195
     196#: includes/class-gd-image.php:219
     197msgid "Failed to detect image mime type"
     198msgstr ""
     199
     200#: includes/class-gd-image.php:235
     201msgid "Image format is not supported"
    113202msgstr ""
    114203
     
    125214msgstr ""
    126215
    127 #: includes/class-image.php:38
     216#. translators: Image format
     217#: includes/class-image-watermark.php:105
     218msgid "Image format is not supported : %s"
     219msgstr ""
     220
     221#. translators: Image PATH
     222#: includes/class-image.php:39
    128223msgid "Image file does not exist %s"
    129224msgstr ""
    130225
    131 #: includes/class-image.php:99
     226#. translators: Image file subsize name
     227#: includes/class-image.php:101
    132228msgid "Image file sub-size: %s not found!"
    133229msgstr ""
    134230
    135 #: includes/class-image.php:106
     231#. translators: Image file name
     232#: includes/class-image.php:109
    136233msgid "image file %s not found!"
     234msgstr ""
     235
     236#: includes/class-imagick-image.php:214
     237msgid "Image type is not supported"
    137238msgstr ""
    138239
     
    156257msgstr ""
    157258
    158 #: includes/class-single-apply-watermarks.php:109
    159 msgid "Maximum %d watermarks can be added in Free Version"
    160 msgstr ""
    161 
     259#. translators: Maximum allowed watermarks
    162260#: includes/class-single-apply-watermarks.php:110
    163261#: includes/class-watermarks-templates.php:287
     262msgid "Maximum %d watermarks can be added in Free Version"
     263msgstr ""
     264
     265#: includes/class-single-apply-watermarks.php:111
     266#: includes/class-watermarks-templates.php:288
    164267msgid "You are about to remove a watermark, confirm?"
    165268msgstr ""
    166269
    167 #: includes/class-single-apply-watermarks.php:142
     270#: includes/class-single-apply-watermarks.php:143
    168271msgid "No selected image!"
    169272msgstr ""
    170273
    171 #: includes/class-single-apply-watermarks.php:158
     274#: includes/class-single-apply-watermarks.php:159
    172275msgid "No sizes selected!"
    173276msgstr ""
    174277
    175 #: includes/class-single-apply-watermarks.php:188
     278#: includes/class-single-apply-watermarks.php:189
    176279msgid "Watermarks have been applied successfully!"
    177280msgstr ""
     
    210313msgstr ""
    211314
    212 #: includes/class-watermarks-templates.php:286
    213 msgid "Maximum "
    214 msgstr ""
    215 
    216 #: includes/class-watermarks-templates.php:306
     315#: includes/class-watermarks-templates.php:307
    217316msgid "Watermarks"
    218317msgstr ""
    219318
    220 #: includes/class-watermarks-templates.php:307
     319#: includes/class-watermarks-templates.php:308
    221320msgid "Watermarks Templates"
    222321msgstr ""
    223322
    224 #: includes/class-watermarks-templates.php:308
     323#: includes/class-watermarks-templates.php:309
    225324msgid "Watermarks Template"
    226325msgstr ""
    227326
    228 #: includes/class-watermarks-templates.php:310
     327#: includes/class-watermarks-templates.php:311
    229328msgid "Watermarks Templates to be applied on selected images"
    230329msgstr ""
    231330
    232 #: includes/class-watermarks-templates.php:465
     331#: includes/class-watermarks-templates.php:463
    233332#: templates/single-apply-watermarks-template.php:27
    234333msgid "Current Watermarks"
    235334msgstr ""
    236335
    237 #: includes/class-watermarks-templates.php:473
     336#: includes/class-watermarks-templates.php:471
    238337msgid "Create Watermark Template"
    239338msgstr ""
    240339
    241 #: includes/class-watermarks-templates.php:489
     340#: includes/class-watermarks-templates.php:479
     341msgid "Auto resize watermarks (Pro)"
     342msgstr ""
     343
     344#: includes/class-watermarks-templates.php:487
    242345msgid "Auto Apply Settings (Pro)"
     346msgstr ""
     347
     348#: includes/class-watermarks-templates.php:787
     349msgid "--- Select data field ---"
     350msgstr ""
     351
     352#. translators: %1s user display name, %2s user login
     353#: includes/class-watermarks-templates.php:841
     354msgid "%1$s (%2$s)"
     355msgstr ""
     356
     357#: includes/MasterStudyLMS.php:99
     358msgid "Image Masterstudy LMS Watermark template"
     359msgstr ""
     360
     361#: includes/MasterStudyLMS.php:117
     362msgid "Select watermarks template"
     363msgstr ""
     364
     365#: includes/MasterStudyLMS.php:121
     366#: includes/WooImageWatermarker.php:94
     367#: templates/bulk-apply-watermarks-template.php:31
     368msgid "-- Select Watermarks Template --"
    243369msgstr ""
    244370
     
    255381msgstr ""
    256382
     383#. translators: 1: upload_max_filesize, 2: php.ini
     384#: includes/Settings.php:172
     385msgid "The uploaded file exceeds the %1$s directive in %2$s."
     386msgstr ""
     387
     388#. translators: %s: MAX_FILE_SIZE
     389#: includes/Settings.php:178
     390msgid "The uploaded file exceeds the %s directive that was specified in the HTML form."
     391msgstr ""
     392
     393#: includes/Settings.php:181
     394msgid "The uploaded file was only partially uploaded."
     395msgstr ""
     396
     397#: includes/Settings.php:182
     398msgid "No file was uploaded."
     399msgstr ""
     400
     401#: includes/Settings.php:184
     402msgid "Missing a temporary folder."
     403msgstr ""
     404
     405#: includes/Settings.php:185
     406msgid "Failed to write file to disk."
     407msgstr ""
     408
     409#: includes/Settings.php:186
     410msgid "File upload stopped by extension."
     411msgstr ""
     412
    257413#: includes/Settings.php:198
    258414msgid "file upload is failed!"
     
    275431msgstr ""
    276432
    277 #: includes/Settings.php:287
     433#. translators: Target PATH
     434#: includes/Settings.php:288
    278435msgid "The uploaded file could not be moved to %s."
    279436msgstr ""
    280437
    281 #: includes/Settings.php:305
     438#: includes/Settings.php:306
    282439msgid "Font file is added successfully!"
    283440msgstr ""
    284441
    285 #: includes/Settings.php:331
     442#: includes/Settings.php:319
    286443#: includes/Settings.php:332
     444#: includes/Settings.php:333
    287445#: templates/settings-page-template.php:12
    288446msgid "Settings"
    289447msgstr ""
    290448
    291 #: includes/Settings.php:340
    292449#: includes/Settings.php:341
     450#: includes/Settings.php:342
    293451msgid "Single Editor"
    294452msgstr ""
    295453
    296 #: includes/Settings.php:349
    297454#: includes/Settings.php:350
     455#: includes/Settings.php:351
    298456msgid "Bulk Apply"
    299457msgstr ""
    300458
    301 #: templates/apply-watermarks-templates-by-posts-template.php:21
     459#: includes/Utils/WatermarkUtilsTrait.php:42
     460msgid "User data"
     461msgstr ""
     462
     463#: includes/Utils/WatermarkUtilsTrait.php:67
     464msgid "Woo order data"
     465msgstr ""
     466
     467#: includes/Utils/WatermarkUtilsTrait.php:89
     468msgid "Woo Customer data"
     469msgstr ""
     470
     471#: includes/WooImageWatermarker.php:87
     472msgid "Watermark Downloadable Images [GrandPlugins]"
     473msgstr ""
     474
     475#: includes/WooImageWatermarker.php:92
     476#: templates/bulk-apply-watermarks-template.php:28
     477msgid "Select Watermarks Template"
     478msgstr ""
     479
     480#. translators: Post type name
     481#: templates/apply-watermarks-templates-by-posts-template.php:22
    302482msgid "No %s yet:"
    303483msgstr ""
    304484
    305 #: templates/apply-watermarks-templates-by-posts-template.php:34
     485#: templates/apply-watermarks-templates-by-posts-template.php:35
    306486msgid "Select posts: "
    307487msgstr ""
    308488
    309 #: templates/apply-watermarks-templates-by-posts-template.php:40
    310 msgid "Select"
    311 msgstr ""
    312 
    313 #: templates/apply-watermarks-templates-by-posts-template.php:49
     489#: templates/apply-watermarks-templates-by-posts-template.php:50
    314490msgid "Select posts by filters: "
    315491msgstr ""
    316492
    317 #: templates/apply-watermarks-templates-by-posts-template.php:57
    318 #: templates/apply-watermarks-templates-by-posts-template.php:94
     493#: templates/apply-watermarks-templates-by-posts-template.php:58
     494#: templates/apply-watermarks-templates-by-posts-template.php:95
    319495msgid "( Any of )"
    320496msgstr ""
    321497
    322 #: templates/apply-watermarks-templates-by-posts-template.php:57
     498#: templates/apply-watermarks-templates-by-posts-template.php:58
    323499msgid "Available Status:"
    324500msgstr ""
    325501
    326 #: templates/apply-watermarks-templates-by-posts-template.php:129
     502#: templates/apply-watermarks-templates-by-posts-template.php:71
     503#: templates/apply-watermarks-templates-by-posts-template.php:92
     504#: templates/apply-watermarks-templates-by-posts-template.php:106
     505msgid "and"
     506msgstr ""
     507
     508#: templates/apply-watermarks-templates-by-posts-template.php:76
     509msgid "Date range"
     510msgstr ""
     511
     512#: templates/apply-watermarks-templates-by-posts-template.php:77
     513msgid "Start date:"
     514msgstr ""
     515
     516#: templates/apply-watermarks-templates-by-posts-template.php:84
     517msgid "End date:"
     518msgstr ""
     519
     520#: templates/apply-watermarks-templates-by-posts-template.php:95
     521msgid "Authors "
     522msgstr ""
     523
     524#: templates/apply-watermarks-templates-by-posts-template.php:130
    327525msgid "All Posts"
    328526msgstr ""
    329527
    330 #: templates/apply-watermarks-templates-by-posts-template.php:130
    331 #: templates/apply-watermarks-templates-by-posts-template.php:138
     528#: templates/apply-watermarks-templates-by-posts-template.php:131
     529#: templates/apply-watermarks-templates-by-posts-template.php:139
    332530msgid "Selected Posts"
    333531msgstr ""
    334532
    335 #: templates/apply-watermarks-templates-by-posts-template.php:150
    336 #: templates/apply-watermarks-templates-by-posts-template.php:209
     533#: templates/apply-watermarks-templates-by-posts-template.php:151
     534#: templates/apply-watermarks-templates-by-posts-template.php:210
    337535msgid "Title"
    338536msgstr ""
    339537
    340 #: templates/apply-watermarks-templates-by-posts-template.php:153
    341 #: templates/apply-watermarks-templates-by-posts-template.php:212
    342 #: templates/apply-watermarks-templates-by-posts-template.php:277
     538#: templates/apply-watermarks-templates-by-posts-template.php:154
     539#: templates/apply-watermarks-templates-by-posts-template.php:213
     540#: templates/apply-watermarks-templates-by-posts-template.php:278
    343541msgid "Date"
    344542msgstr ""
    345543
    346 #: templates/apply-watermarks-templates-by-posts-template.php:156
     544#: templates/apply-watermarks-templates-by-posts-template.php:157
    347545msgid "Actions"
    348546msgstr ""
    349547
    350 #: templates/apply-watermarks-templates-by-posts-template.php:168
     548#: templates/apply-watermarks-templates-by-posts-template.php:169
    351549msgid "Select posts to search in"
    352550msgstr ""
    353551
    354 #: templates/apply-watermarks-templates-by-posts-template.php:183
     552#: templates/apply-watermarks-templates-by-posts-template.php:184
    355553msgid "items"
    356554msgstr ""
    357555
    358 #: templates/apply-watermarks-templates-by-posts-template.php:205
     556#: templates/apply-watermarks-templates-by-posts-template.php:206
     557#: templates/apply-watermarks-templates-by-posts-template.php:268
    359558msgid "Select All"
    360559msgstr ""
    361560
    362 #: templates/apply-watermarks-templates-by-posts-template.php:233
     561#: templates/apply-watermarks-templates-by-posts-template.php:234
    363562msgid "Images found in selected posts"
    364563msgstr ""
    365564
    366 #: templates/apply-watermarks-templates-by-posts-template.php:245
     565#: templates/apply-watermarks-templates-by-posts-template.php:246
    367566msgid "item"
    368567msgstr ""
    369568
    370 #: templates/apply-watermarks-templates-by-posts-template.php:271
     569#: templates/apply-watermarks-templates-by-posts-template.php:254
     570msgid "of"
     571msgstr ""
     572
     573#: templates/apply-watermarks-templates-by-posts-template.php:272
    371574msgid "File"
    372575msgstr ""
    373576
    374 #: templates/apply-watermarks-templates-by-posts-template.php:274
     577#: templates/apply-watermarks-templates-by-posts-template.php:275
    375578msgid "Attached to"
    376579msgstr ""
     
    390593#: templates/auto-apply-watermarks-template-metabox.php:26
    391594msgid "Apply the template on images that have min|max width and height."
     595msgstr ""
     596
     597#: templates/auto-apply-watermarks-template-metabox.php:30
     598msgid "width"
     599msgstr ""
     600
     601#: templates/auto-apply-watermarks-template-metabox.php:33
     602#: templates/auto-apply-watermarks-template-metabox.php:46
     603msgid "Min"
     604msgstr ""
     605
     606#: templates/auto-apply-watermarks-template-metabox.php:34
     607#: templates/auto-apply-watermarks-template-metabox.php:47
     608msgid "Max"
     609msgstr ""
     610
     611#: templates/auto-apply-watermarks-template-metabox.php:43
     612msgid "height"
    392613msgstr ""
    393614
     
    444665msgstr ""
    445666
     667#: templates/auto-apply-watermarks-template-metabox.php:126
     668msgid "Create in a custom Directory"
     669msgstr ""
     670
     671#: templates/auto-apply-watermarks-template-metabox.php:130
     672msgid "Place the watermarked image in custom directory, suitable for custom code snippets to show watermarked images with the same name from a separated directory."
     673msgstr ""
     674
     675#: templates/auto-apply-watermarks-template-metabox.php:138
     676msgid "Select sub-sizes to create"
     677msgstr ""
     678
     679#: templates/auto-resize-watermarks-template-metabox.php:8
     680msgid "Auto resize watermarks in ( auto / bulk ) watermarking"
     681msgstr ""
     682
     683#: templates/auto-resize-watermarks-template-metabox.php:11
     684msgid "Image watermarks size and text watermarks fontsize will be resized proportionally with the image size"
     685msgstr ""
     686
     687#: templates/auto-resize-watermarks-template-metabox.php:17
     688msgid "Reference width "
     689msgstr ""
     690
     691#: templates/auto-resize-watermarks-template-metabox.php:24
     692msgid "This is the reference width to use watermarks at without resizing."
     693msgstr ""
     694
     695#: templates/auto-resize-watermarks-template-metabox.php:30
     696msgid "Image watermark resize percentage"
     697msgstr ""
     698
     699#: templates/auto-resize-watermarks-template-metabox.php:38
     700msgid "Image width percentage"
     701msgstr ""
     702
     703#: templates/auto-resize-watermarks-template-metabox.php:40
     704msgid "The image watermarks dimensions will be equal to the percentage of the image width."
     705msgstr ""
     706
     707#: templates/auto-resize-watermarks-template-metabox.php:54
     708msgid "Auto scale offsets"
     709msgstr ""
     710
     711#: templates/auto-resize-watermarks-template-metabox.php:59
     712msgid "Auto scale repeat axis offset."
     713msgstr ""
     714
     715#: templates/auto-resize-watermarks-template-metabox.php:60
     716msgid "The repeat offset values in x and y will be scaled up/down depending on the image width relative to the reference width."
     717msgstr ""
     718
     719#: templates/auto-resize-watermarks-template-metabox.php:67
     720msgid "Auto resize context"
     721msgstr ""
     722
     723#: templates/auto-resize-watermarks-template-metabox.php:72
     724msgid "Auto watermarking"
     725msgstr ""
     726
     727#: templates/auto-resize-watermarks-template-metabox.php:76
     728msgid "Bulk watermarking"
     729msgstr ""
     730
    446731#: templates/bulk-apply-watermarks-template.php:12
    447732#: templates/create-watermarks-template-metabox.php:11
     
    458743msgstr ""
    459744
    460 #: templates/bulk-apply-watermarks-template.php:28
    461 msgid "Select Watermarks Template"
    462 msgstr ""
    463 
    464 #: templates/bulk-apply-watermarks-template.php:31
    465 msgid "-- Select Watermarks Template --"
    466 msgstr ""
    467 
    468745#: templates/bulk-apply-watermarks-template.php:42
    469746msgid "Select Images"
     
    678955msgstr ""
    679956
     957#: templates/watermark-specs-template-metabox.php:143
     958msgid "Offset corner"
     959msgstr ""
     960
     961#: templates/watermark-specs-template-metabox.php:145
     962msgid "Select which corner of the selected position box above to set offset from"
     963msgstr ""
     964
     965#: templates/watermark-specs-template-metabox.php:150
     966msgid "Top Left"
     967msgstr ""
     968
     969#: templates/watermark-specs-template-metabox.php:151
     970msgid "Top Right"
     971msgstr ""
     972
     973#: templates/watermark-specs-template-metabox.php:152
     974msgid "Bottom Left"
     975msgstr ""
     976
     977#: templates/watermark-specs-template-metabox.php:153
     978msgid "Bottom Right"
     979msgstr ""
     980
    680981#: templates/watermark-specs-template-metabox.php:162
    681982msgid "Repeat"
     
    686987msgstr ""
    687988
     989#: templates/watermark-specs-template-metabox.php:172
     990msgid "X axis"
     991msgstr ""
     992
     993#: templates/watermark-specs-template-metabox.php:173
     994msgid "Y axis"
     995msgstr ""
     996
     997#: templates/watermark-specs-template-metabox.php:174
     998msgid "Diagonal Axis ( Pro )"
     999msgstr ""
     1000
     1001#: templates/watermark-specs-template-metabox.php:175
     1002msgid "X and Y Axis"
     1003msgstr ""
     1004
     1005#: templates/watermark-specs-template-metabox.php:176
     1006msgid "Full Repeat ( Pro )"
     1007msgstr ""
     1008
    6881009#: templates/watermark-specs-template-metabox.php:182
    6891010msgid "Repeat Axis Offset"
     
    7011022msgid "Rotation"
    7021023msgstr ""
     1024
     1025#: templates/watermark-specs-template-metabox.php:213
     1026msgid "Dynamic placeholders (pro)"
     1027msgstr ""
     1028
     1029#: templates/watermark-specs-template-metabox.php:215
     1030msgid "These placeholders will take the value of the selected data field for each order / customer."
     1031msgstr ""
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/readme.txt

    r3428126 r3437768  
    44Requires at least: 5.6
    55Requires PHP: 7.0
    6 Version: 1.1.9
     6Version: 1.2.0
     7Stable tag: 1.2.0
    78Contributors: GrandPlugins
    89Author: GrandPlugins
    910Plugin URI: https://grandplugins.com/product/wp-images-watermark/
    1011Author email: [email protected]
    11 License: GPLv2
     12License: GPLv3
     13License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1214Text Domain: watermark-images-for-wp-and-woo-grandpluginswp
    1315Domain Path: /languages
     
    3335[Pro Version]
    3436
    35 👉 **[Premium](https://grandplugins.com/product/wp-images-watermark/?utm_source=free)** | **[Documentation](https://grandplugins.com/documentation/wp-watermark-images/)** 👈
     37👉 **[Premium](https://grandplugins.com/product/wp-images-watermark/)** | **[Documentation](https://grandplugins.com/documentation/wp-watermark-images/)** 👈
    3638
    3739Pro version includes all free features plus:
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/apply-watermarks-templates-by-posts-template.php

    r2914099 r3437768  
    1919            ?>
    2020            <div class="subtitle w-100 d-inline-block" >
     21                <?php /* translators: Post type name */ ?>
    2122                <?php printf( esc_html__( 'No %s yet:', 'watermark-images-for-wp-and-woo-grandpluginswp' ), $cpt_obj->label ); ?>
    2223            </div>
     
    5758                                <p class="ps-0 nonessential column-name text-primary"><small><?php esc_html_e( '( Any of )', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></small>&nbsp;<?php echo esc_html__( 'Available Status:', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></p>
    5859                                <select class="cpt-statuses-select" data-cpt_type="<?php echo esc_attr( $cpt_slug ); ?>" name="cpt_statuses[<?php echo esc_attr( $cpt_slug ); ?>][]" multiple>
    59                                     <option value="">&mdash; <?php esc_html_e( 'Select' ); ?> &mdash;</option>
     60                                    <option value="">&mdash; <?php esc_html_e( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> &mdash;</option>
    6061                                    <?php
    6162                                    $post_statuses = Apply_Watermarks_Queries::get_cpt_statuses( $cpt_slug );
     
    6869                                </select>
    6970                            </div>
    70                             <div class="relation d-inline-block mx-2"><?php esc_html_e( 'and' ); ?></div>
     71                            <div class="relation d-inline-block mx-2"><?php esc_html_e( 'and', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></div>
    7172                            <!-- Date Filter -->
    7273                            <div class="d-inline-block ms-3 align-middle pb-3">
    7374                                <fieldset>
    7475                                    <div class="block mb-3">
    75                                         <legend class="screen-reader-text"><?php esc_html_e( 'Date range' ); ?></legend>
    76                                         <p for="post-start-date" class="label-responsive me-1 d-block"><?php esc_html_e( 'Start date:' ); ?></p>
     76                                        <legend class="screen-reader-text"><?php esc_html_e( 'Date range', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></legend>
     77                                        <p for="post-start-date" class="label-responsive me-1 d-block"><?php esc_html_e( 'Start date:', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></p>
    7778                                        <select class="cpt-start-date-select" data-cpt_type="<?php echo esc_attr( $cpt_slug ); ?>" name="cpt_start_date[<?php echo esc_attr( $cpt_slug ); ?>]">
    78                                             <option value="">&mdash; <?php esc_html_e( 'Select' ); ?> &mdash;</option>
     79                                            <option value="">&mdash; <?php esc_html_e( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> &mdash;</option>
    7980                                            <?php Apply_Watermarks_Queries::select_date_options( $cpt_slug ); ?>
    8081                                        </select>
    8182                                    </div>
    8283                                    <div class="block">
    83                                         <p for="post-end-date" class="label-responsive me-2 d-block"><?php esc_html_e( 'End date:' ); ?></p>
     84                                        <p for="post-end-date" class="label-responsive me-2 d-block"><?php esc_html_e( 'End date:', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></p>
    8485                                        <select class="cpt-end-date-select" data-cpt_type="<?php echo esc_attr( $cpt_slug ); ?>" name="cpt_end_date[<?php echo esc_attr( $cpt_slug ); ?>]">
    85                                             <option value="">&mdash; <?php esc_html_e( 'Select' ); ?> &mdash;</option>
     86                                            <option value="">&mdash; <?php esc_html_e( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> &mdash;</option>
    8687                                            <?php Apply_Watermarks_Queries::select_date_options( $cpt_slug ); ?>
    8788                                        </select>
     
    8990                                </fieldset>
    9091                            </div>
    91                             <div class="relation d-inline-block mx-2"><?php esc_html_e( 'and' ); ?></div>
     92                            <div class="relation d-inline-block mx-2"><?php esc_html_e( 'and', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></div>
    9293                            <!-- Authors Filter -->
    9394                            <div class="d-inline-block ms-3">
    94                                 <p class="ps-0 nonessential column-name text-primary"><small><?php esc_html_e( '( Any of )', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></small>&nbsp;<?php esc_html_e( 'Authors ' ); ?></p>
     95                                <p class="ps-0 nonessential column-name text-primary"><small><?php esc_html_e( '( Any of )', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></small>&nbsp;<?php esc_html_e( 'Authors ', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></p>
    9596                                <?php Apply_Watermarks_Queries::select_authors_options( $cpt_slug ); ?>
    9697                            </div>
     
    103104                                    if ( ! empty( $cpt_taxonomy_name ) ) :
    104105                                        ?>
    105                                         <div class="relation d-inline-block mx-2"><?php esc_html_e( 'and' ); ?></div>
    106                                        <div class="ms-2 d-inline-block" >
     106                                        <div class="relation d-inline-block mx-2"><?php esc_html_e( 'and', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></div>
     107                                        <div class="ms-2 d-inline-block" >
    107108                                            <p class="ps-0 nonessential column-name text-primary"><?php echo esc_attr( $taxonomy_obj->label . ' [ ' . $cpt_taxonomy_name . ' ] ' ); ?></p>
    108109                                            <select class="cpt-terms-select" data-cpt_type="<?php echo esc_attr( $cpt_slug ); ?>" data-tax_name="<?php echo esc_attr( $cpt_taxonomy_name ); ?>" name="cpt_name_terms[<?php echo esc_attr( $cpt_slug ); ?>][<?php echo esc_attr( $cpt_taxonomy_name ); ?>]" id="<?php echo esc_attr( 'cpt-name-terms-select-' . $cpt_slug . '-' . $cpt_taxonomy_name ); ?>"></select>
     
    186187                                                <button type="button" data-cpt="<?php echo esc_attr( $cpt_slug ); ?>" class="btn btn-primary float-left me-1 prev-page button disabled" data-paged="1"><span>&#8592;</span></button>
    187188                                                <span class="float-left me-1 paging-input">
    188                                                     <span id="current-page-selector-<?php echo esc_attr( $cpt_slug ); ?>" class="float-left p-1 current-page">1</span>
     189                                                    <span id="current-page-selector-<?php echo esc_attr( $cpt_slug ); ?>" class="float-left p-1 current-page">1</span>
    189190                                                    <span class="float-left tablenav-paging-text">
    190191                                                        <span class="float-left p-1"> <?php esc_html( 'of' ); ?> </span>
     
    227228<div class="modal selected-images-watermarks-template-modal fade bulk-apply-modal" id="modal-found-images-watermarks-template">
    228229    <div class="modal-dialog modal-fullscreen mx-auto position-relative">
    229         <?php Apply_Watermarks_Queries::loader_html(); ?>
     230        <?php Apply_Watermarks_Queries::loader_html(); ?>
    230231        <div class="modal-content">
    231232            <div class="modal-header">
     
    251252                                    <!-- <input type="number" min="1" max="1" value="1" class="float-left current-page" size="3"> -->
    252253                                    <span class="float-left tablenav-paging-text">
    253                                         <span class="float-left p-1"> <?php esc_html_e( 'of' ); ?> </span>
     254                                        <span class="float-left p-1"> <?php esc_html_e( 'of', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> </span>
    254255                                        <span class="float-left total-pages p-1" data-pages="1">1</span>
    255256                                    </span>
     
    265266                        <tr>
    266267                            <td class="manage-column column-cb check-column">
    267                                 <label for="cb-select-all-1" for="cb-select-all-1" class="screen-reader-text"><?php esc_html_e( 'Select All', 'gpls-wmfw-watermark-image-for-wordpress'); ?></label>
     268                                <label for="cb-select-all-1" for="cb-select-all-1" class="screen-reader-text"><?php esc_html_e( 'Select All', 'watermark-images-for-wp-and-woo-grandpluginswp'); ?></label>
    268269                                <input type="checkbox" id="cb-select-all-1" class="cb-select-all-1">
    269270                            </td>
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/auto-apply-watermarks-template-metabox.php

    r2914099 r3437768  
    2828                <div class="col-3">
    2929                    <div class="auto-apply-img-dimension-width-container" >
    30                         <label class="my-3"><?php esc_html_e( 'width' ); ?></label>
     30                        <label class="my-3"><?php esc_html_e( 'width', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
    3131                        <div class="auto-apply-img-dimension-width-wrapper">
    3232                            <select disabled class="auto-apply-img-dimension-width-type" >
    33                                 <option><?php esc_html_e( 'Min' ); ?>
    34                                 <option><?php esc_html_e( 'Max' ); ?>
     33                                <option><?php esc_html_e( 'Min', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
     34                                <option><?php esc_html_e( 'Max', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
    3535                            </select>
    3636                            <input disabled type="number" class="auto-apply-img-dimension-width">
     
    4141                <div class="col-3">
    4242                    <div class="auto-apply-img-dimension-height-container" >
    43                         <label class="my-3"><?php esc_html_e( 'height' ); ?></label>
     43                        <label class="my-3"><?php esc_html_e( 'height', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
    4444                        <div class="auto-apply-img-dimension-height-wrapper">
    4545                            <select disabled class="auto-apply-img-dimension-height-type" data-type="img-height-type" >
    46                                 <option><?php esc_html_e( 'Min' ); ?>
    47                                 <option><?php esc_html_e( 'Max' ); ?>
     46                                <option><?php esc_html_e( 'Min', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
     47                                <option><?php esc_html_e( 'Max', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
    4848                            </select>
    4949                            <input disabled type="number" class="auto-apply-img-dimension-height" value="">
     
    124124                    <label for="custom-dir">
    125125                        <input disabled type="checkbox" <?php echo esc_attr( $auto_apply_options['create_backup'] ? 'checked="checked"' : '' ); ?> name="custom_dir" class="custom-dir" id="custom-dir" value="custom_dir" >
    126                         <strong><?php esc_html_e( 'Create in a custom Directory', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></strong>
     126                        <strong><?php esc_html_e( 'Create in a custom Directory', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></strong>
    127127                    </label>
    128128                    <?php $upload_dir = wp_upload_dir(); ?>
    129129                    <?php echo esc_attr( trailingslashit( $upload_dir['basedir'] ) ); ?><input disabled type="text" name="custom_dir_path" class="custom-dir-path regular-text" id="custom-dir-path" value="" >
    130                     <small class="d-block mt-2 subtitle"><?php esc_html_e( 'Place the watermarked image in custom directory, suitable for custom code snippets to show watermarked images with the same name from a separated directory.', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></small>
     130                    <small class="d-block mt-2 subtitle"><?php esc_html_e( 'Place the watermarked image in custom directory, suitable for custom code snippets to show watermarked images with the same name from a separated directory.', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></small>
    131131                </div>
    132132
     
    136136                        <div class="heading d-flex align-items-center">
    137137                            <input disabled type="checkbox" class="apply-watermarks-image-sizes-options-all" />
    138                             <h5 class="image-sizes-options-new"><?php esc_html_e( 'Select sub-sizes to create', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></h5>
     138                            <h5 class="image-sizes-options-new"><?php esc_html_e( 'Select sub-sizes to create', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></h5>
    139139                        </div>
    140140                        <div class="subtitle select-image-sizes-checkboxes">
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/auto-resize-watermarks-template-metabox.php

    r3145166 r3437768  
    66?>
    77<div class="col-md-12 watermark-template-auto-apply-wrapper <?php echo esc_attr( $plugin_info['classes_prefix'] . '-disabled' ); ?>">
    8     <h1 class="display-4 border shadow-sm mt-3 p-4 d-flex align-items-center"><?php esc_html_e( 'Auto resize watermarks in ( auto / bulk ) watermarking', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>
    9         <span class="<?php echo esc_attr( $plugin_info['classes_prefix'] . '-new-keyword' ); ?> ms-2" style="padding: 5px 10px;border-radius: 5px;background: #e17b7b;color: #FFF;"><?php esc_html_e( 'New', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></span><?php $core->pro_btn(); ?>
     8    <h1 class="display-4 border shadow-sm mt-3 p-4 d-flex align-items-center"><?php esc_html_e( 'Auto resize watermarks in ( auto / bulk ) watermarking', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
     9        <span class="<?php echo esc_attr( $plugin_info['classes_prefix'] . '-new-keyword' ); ?> ms-2" style="padding: 5px 10px;border-radius: 5px;background: #e17b7b;color: #FFF;"><?php esc_html_e( 'New', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></span><?php $core->pro_btn(); ?>
    1010    </h1>
    11     <h6 class="mt-3"><?php esc_html_e( 'Image watermarks size and text watermarks fontsize will be resized proportionally with the image size', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></h6>
     11    <h6 class="mt-3"><?php esc_html_e( 'Image watermarks size and text watermarks fontsize will be resized proportionally with the image size', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></h6>
    1212    <!-- Auto Apply Options -->
    1313    <div class="auto-apply-options my-5">
     
    1515        <div class="row my-3">
    1616            <div class="col-3 mb-2 d-flex align-items-center">
    17                 <label class="me-1 fw-bold" for="auto-resize-img-width-ref"><?php esc_html_e( 'Reference width ', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></label>
     17                <label class="me-1 fw-bold" for="auto-resize-img-width-ref"><?php esc_html_e( 'Reference width ', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
    1818            </div>
    1919            <div class="col-9 mb-2">
     
    2222                    <span class="ms-1">px</span>
    2323                </div>
    24                 <span class="muted d-block my-1"><?php esc_html_e( 'This is the reference width to use watermarks at without resizing.', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></span>
     24                <span class="muted d-block my-1"><?php esc_html_e( 'This is the reference width to use watermarks at without resizing.', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></span>
     25            </div>
     26        </div>
     27        <!-- Auto resize Image watermark -->
     28        <div class="row my-3">
     29            <div class="col-3 mb-2 d-flex align-items-center">
     30                <label class="me-1 fw-bold" for="auto-resize-img-width-ref"><?php esc_html_e( 'Image watermark resize percentage', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
     31            </div>
     32            <div class="col-9 mb-2">
     33                <div class="apply-type step-3">
     34                    <!-- Image Percentage -->
     35                    <div class="apply-type-select apply-type-select-new my-4">
     36                        <label for="auto-resize-watermark-type-percentage">
     37                            <input disabled data-bs-target="#auto-resize-watermark-type-percentage-field" data-bs-toggle="collapse" type="checkbox" name="auto-resize-watermark-type" class="auto-resize-watermark-type" id="auto-resize-watermark-type-percentage" value="percentage" >
     38                            <strong><?php esc_html_e( 'Image width percentage', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></strong>
     39                        </label>
     40                        <small class="d-block mt-2 subtitle"><?php esc_html_e( 'The image watermarks dimensions will be equal to the percentage of the image width.', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></small>
     41
     42                        <div class="auto-resize-watermark-type-percentage-field-wrapper subtitle m-3" id="auto-resize-watermark-type-percentage-field" >
     43                            <div class="p-3">
     44                                <input value="30" disabled type="number" name="auto-resize-watermark-type-percentage-value" class="auto-resize-watermark-type-percentage-value" ><span class="ms-1">%</span>
     45                            </div>
     46                        </div>
     47                    </div>
     48                </div>
    2549            </div>
    2650        </div>
     
    2852        <div class="row my-3">
    2953            <div class="col-3 mb-2 d-flex align-items-center">
    30                 <label class="me-1 fw-bold" for="auto-resize-img-width-ref"><?php esc_html_e( 'Auto scale offsets', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></label>
     54                <label class="me-1 fw-bold" for="auto-resize-img-width-ref"><?php esc_html_e( 'Auto scale offsets', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
    3155            </div>
    3256            <div class="col-9 mb-2">
    3357                <div class="input-wrapper">
    34                     <input type="checkbox" disabled checked="checked" id="auto-resize-scale-offset" class="auto-resize-scale-offset" >
    35                     <span class="muted ms-1 my-1"><?php esc_html_e( 'Auto scale repeat axis offset.', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></span>
    36                     <span class="muted ms-1 my-1 d-block"><?php esc_html_e( 'The repeat offset values in x and y will be scaled up/down depending on the image width relative to the reference width.', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></span>
     58                    <input disabled type="checkbox" id="auto-resize-scale-offset" class="auto-resize-scale-offset" name="auto-resize-scale-offset" >
     59                    <span class="muted ms-1 my-1"><?php esc_html_e( 'Auto scale repeat axis offset.', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></span>
     60                    <span class="muted ms-1 my-1 d-block"><?php esc_html_e( 'The repeat offset values in x and y will be scaled up/down depending on the image width relative to the reference width.', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></span>
    3761                </div>
    3862            </div>
     
    4165        <div class="row my-3">
    4266            <div class="col-3 mb-2 d-flex align-items-center">
    43                 <label class="me-1 fw-bold" for="auto-resize-img-width-ref"><?php esc_html_e( 'Auto resize context', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></label>
     67                <label class="me-1 fw-bold" for="auto-resize-img-width-ref"><?php esc_html_e( 'Auto resize context', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
    4468            </div>
    4569            <div class="col-9 mb-2">
    4670                <div class="form-check my-1 ps-0">
    4771                    <input type="checkbox" disabled checked="checked" id="auto-resize-context" class="m-0 auto-resize-context me-2" value="auto" >
    48                     <label for="auto-apply-context"><?php esc_html_e( 'Auto watermarking', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></label>
     72                    <label for="auto-apply-context"><?php esc_html_e( 'Auto watermarking', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
    4973                </div>
    5074                <div class="form-check my-1 ps-0">
    5175                    <input type="checkbox" disabled checked="checked" id="auto-resize-context" class="m-0 auto-resize-context me-2" value="bulk" >
    52                     <label for="auto-apply-context"><?php esc_html_e( 'Bulk watermarking', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></label>
     76                    <label for="auto-apply-context"><?php esc_html_e( 'Bulk watermarking', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></label>
    5377                </div>
    5478            </div>
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/bulk-apply-watermarks-template.php

    r2914099 r3437768  
    145145<div class="main-loader loader w-100 h-100 position-fixed top-0 left-0">
    146146    <div class="text-white wrapper text-center position-absolute d-block w-100 h-100">
    147         <img class="loader-icon position-fixed" src="<?php echo esc_url_raw( admin_url( 'images/spinner-2x.gif' ) ); ?>"  />
     147        <img class="loader-icon position-fixed" src="<?php echo esc_url( admin_url( 'images/spinner-2x.gif' ) ); ?>"  />
    148148        <div class="d-none loader-progress-num" ></div>
    149149        <progress class="d-none loader-progress" value="0" max="100" ></progress>
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/create-watermarks-template-metabox.php

    r2914099 r3437768  
    4242                <div class="img-item preview-selected-item text-center overflow-auto">
    4343                    <div id="selected-preview-container" class="selected-preview-container position-relative d-inline-block" style="overflow: auto !important; width: auto; margin: 0px;">
    44                         <img class="selected-preview" src="<?php echo esc_url_raw( $template_preview_img_url ); ?>" alt="" style="max-width: none !important;">
     44                        <img class="selected-preview" src="<?php echo esc_url( $template_preview_img_url ); ?>" alt="" style="max-width: none !important;">
    4545                        <input type="hidden" name="selected-preview-img-id" class="selected-preview-img-id" value="<?php echo absint( esc_attr( ! empty( $template_watermarks['preview_img_id'] ) ? $template_watermarks['preview_img_id'] : 0 ) ); ?>" >
    4646                        <!-- === Watermark Image Placeholder === -->
  • watermark-images-for-wp-and-woo-grandpluginswp/trunk/templates/watermark-specs-template-metabox.php

    r3145166 r3437768  
    141141                        <div class="col mt-2">
    142142                            <label class="mb-2" for="<?php echo esc_attr( $plugin_info['name'] . '-position-offset-corner' ); ?>">
    143                                 <span><?php $core->new_keyword( 'New', false ); ?></span> <?php esc_html_e( 'Offset corner', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>
     143                                <?php esc_html_e( 'Offset corner', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
    144144                                <span><?php $core->pro_btn(); ?></span>
    145                                 <button style="padding: 1px 9px;" type="button" class="btn btn-secondary rounded-circle mt-1" data-bs-toggle="tooltip" data-bs-placement="right" title="<?php esc_html_e( 'Select which corner of the selected position box above to set offset from', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>" >?</button>
     145                                <button style="padding: 1px 9px;" type="button" class="btn btn-secondary rounded-circle mt-1" data-bs-toggle="tooltip" data-bs-placement="right" title="<?php esc_html_e( 'Select which corner of the selected position box above to set offset from', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>" >?</button>
    146146                            </label>
    147147                            <div class="edit offset-corner-select-wrapper">
    148148                                <select data-watermarkid="<?php echo esc_attr( ! empty( $watermark_data ) ? $watermark_data['id'] : '' ); ?>" class="edit edit-position-offset-corner form-control" name="<?php echo esc_attr( ! empty( $watermark_data ) ? 'watermarks[' . $watermark_data['id'] . '][offsetCorner]' : '' ); ?>" id="<?php echo esc_attr( $plugin_info['name'] . '-offset-corner' ); ?>" data-type="position-offset-corner">
    149                                     <option value="">&mdash; <?php echo esc_attr( esc_html__( 'Select', 'gpls-wmfw-watermark-image-for-wordpress' ) ); ?> &mdash;</option>
    150                                     <option <?php echo esc_attr( empty( $watermark_data ) || empty( $watermark_data['offsetCorner'] ) || ( ! empty( $watermark_data['offsetCorner'] ) && 'tl' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="tl"><?php echo esc_html_e( 'Top Left', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
    151                                     <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'tr' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="tr"><?php esc_html_e( 'Top Right', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
    152                                     <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'bl' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="bl"><?php esc_html_e( 'Bottom Left', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
    153                                     <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'br' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="br"><?php esc_html_e( 'Bottom Right', 'gpls-wmfw-watermark-image-for-wordpress' ); ?></option>
     149                                    <option value="">&mdash; <?php echo esc_attr( esc_html__( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ) ); ?> &mdash;</option>
     150                                    <option <?php echo esc_attr( empty( $watermark_data ) || empty( $watermark_data['offsetCorner'] ) || ( ! empty( $watermark_data['offsetCorner'] ) && 'tl' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="tl"><?php echo esc_html_e( 'Top Left', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     151                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ! empty( $watermark_data['offsetCorner'] ) && ( 'tr' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="tr"><?php esc_html_e( 'Top Right', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     152                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ! empty( $watermark_data['offsetCorner'] ) && ( 'bl' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="bl"><?php esc_html_e( 'Bottom Left', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     153                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ! empty( $watermark_data['offsetCorner'] ) && ( 'br' === $watermark_data['offsetCorner'] ) ? 'selected' : '' ); ?> value="br"><?php esc_html_e( 'Bottom Right', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    154154                                </select>
    155155                            </div>
     
    169169                            <div class="repeat-axis-select-wrapper">
    170170                                <select data-watermarkid="<?php echo esc_attr( ! empty( $watermark_data ) ? $watermark_data['id'] : '' ); ?>" class="repeat-axis-select" name="<?php echo esc_attr( ! empty( $watermark_data ) ? 'watermarks[' . $watermark_data['id'] . '][repeatAxis]' : '' ); ?>" id="<?php echo esc_attr( $plugin_info['name'] . '-position-repeat-axis' ); ?>">
    171                                     <option value="">&mdash; <?php echo esc_attr( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> &mdash;</option>
    172                                     <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'x' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="x"><?php echo esc_html( 'X axis', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    173                                     <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'y' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="y"><?php echo esc_html( 'Y axis', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    174                                     <option disabled <?php echo esc_attr( ! empty( $watermark_data ) && ( 'diagonal' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="diagonal"><?php echo esc_html( 'Diagonal Axis ( Pro )', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    175                                     <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'both' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="both"><?php echo esc_html( 'X and Y Axis', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    176                                     <option disabled <?php echo esc_attr( ! empty( $watermark_data ) && ( 'full' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="full"><?php echo esc_html( 'Full Repeat ( Pro )', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     171                                    <option value="">&mdash; <?php esc_html_e( 'Select', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?> &mdash;</option>
     172                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'x' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="x"><?php esc_html_e( 'X axis', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     173                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'y' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="y"><?php esc_html_e( 'Y axis', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     174                                    <option disabled <?php echo esc_attr( ! empty( $watermark_data ) && ( 'diagonal' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="diagonal"><?php esc_html_e( 'Diagonal Axis ( Pro )', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     175                                    <option <?php echo esc_attr( ! empty( $watermark_data ) && ( 'both' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="both"><?php esc_html_e( 'X and Y Axis', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
     176                                    <option disabled <?php echo esc_attr( ! empty( $watermark_data ) && ( 'full' === $watermark_data['repeatAxis'] ) ? 'selected' : '' ); ?> value="full"><?php esc_html_e( 'Full Repeat ( Pro )', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?></option>
    177177                                </select>
    178178                            </div>
     
    211211                    <div class="<?php echo esc_attr( Watermarks_Templates::$plugin_info['classes_prefix'] . '-disabled' ); ?>">
    212212                        <h6 class="me-1 form-check-label mt-1">
    213                             <?php esc_html_e( 'Dynamic placeholders (pro)', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>
    214                             <span><?php $core->new_keyword( 'New', false ); ?></span>
     213                            <?php esc_html_e( 'Dynamic placeholders (pro)', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>
    215214                            <span><?php $core->pro_btn(); ?></span>
    216                             <button style="padding: 1px 9px;" type="button" class="btn btn-secondary rounded-circle mt-1" data-bs-toggle="tooltip" data-bs-placement="right" title="<?php esc_html_e( 'These placeholders will take the value of the selected data field for each order / customer.', 'gpls-wmfw-watermark-image-for-wordpress' ); ?>" >?</button>
     215                            <button style="padding: 1px 9px;" type="button" class="btn btn-secondary rounded-circle mt-1" data-bs-toggle="tooltip" data-bs-placement="right" title="<?php esc_html_e( 'These placeholders will take the value of the selected data field for each order / customer.', 'watermark-images-for-wp-and-woo-grandpluginswp' ); ?>" >?</button>
    217216                        </h6>
    218217                        <?php Watermarks_Templates::watermarks_text_meta_select( $watermark_data ); ?>
     
    247246                    <!-- imgID -->
    248247                    <input type="hidden" name="<?php echo esc_attr( 'watermarks[' . $watermark_data['id'] . '][imgID]' ); ?>" value="<?php echo esc_attr( $watermark_data['imgID'] ); ?>" >
    249                                                           <?php
     248                    <?php
    250249                    endif;
    251250                endif;
Note: See TracChangeset for help on using the changeset viewer.