diff --git a/assets/scss/config/_icon-font.scss b/assets/scss/config/_icon-font.scss index 4ba0981c..50470382 100644 --- a/assets/scss/config/_icon-font.scss +++ b/assets/scss/config/_icon-font.scss @@ -1,5 +1,5 @@ $icomoon-font-family: "courier" !default; -$icomoon-font-path: "fonts" !default; +$icomoon-font-path: "../fonts" !default; @font-face { font-family: '#{$icomoon-font-family}'; diff --git a/assets/scss/ui/_admin-icons.scss b/assets/scss/ui/_admin-icons.scss index 3c00d641..60e94ae1 100644 --- a/assets/scss/ui/_admin-icons.scss +++ b/assets/scss/ui/_admin-icons.scss @@ -1,5 +1,5 @@ $icomoon-admin-font-family: "courier-admin" !default; -$icomoon-admin-font-path: "fonts" !default; +$icomoon-admin-font-path: "../fonts" !default; $icon-pro: "\e901"; $icon-courier-logo: "\e900"; diff --git a/composer.lock b/composer.lock index ea2a3d13..60c471d0 100644 --- a/composer.lock +++ b/composer.lock @@ -355,16 +355,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.2", + "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619", + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619", "shasum": "" }, "require": { @@ -407,7 +407,7 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-12-12T21:44:58+00:00" + "time": "2022-06-18T07:21:10+00:00" }, { "name": "wp-coding-standards/wpcs", @@ -470,5 +470,5 @@ "php": ">=7.3" }, "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.1.0" } diff --git a/css/courier-notices-admin-global.css b/css/courier-notices-admin-global.css index 3abb67c1..0733817b 100644 --- a/css/courier-notices-admin-global.css +++ b/css/courier-notices-admin-global.css @@ -11,8 +11,8 @@ /* Notice Colors */ @font-face { font-family: "courier"; - src: url("fonts/courier.eot?j1xoo0"); - src: url("fonts/courier.eot?j1xoo0#iefix") format("embedded-opentype"), url("fonts/courier.woff2?j1xoo0") format("woff2"), url("fonts/courier.ttf?j1xoo0") format("truetype"), url("fonts/courier.woff?j1xoo0") format("woff"), url("fonts/courier.svg?j1xoo0#courier") format("svg"); + src: url("../fonts/courier.eot?j1xoo0"); + src: url("../fonts/courier.eot?j1xoo0#iefix") format("embedded-opentype"), url("../fonts/courier.woff2?j1xoo0") format("woff2"), url("../fonts/courier.ttf?j1xoo0") format("truetype"), url("../fonts/courier.woff?j1xoo0") format("woff"), url("../fonts/courier.svg?j1xoo0#courier") format("svg"); font-weight: normal; font-style: normal; font-display: block; } @@ -102,8 +102,8 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { * * */ @font-face { font-family: "courier-admin"; - src: url("fonts/courier-admin.eot?qlkzon"); - src: url("fonts/courier-admin.eot?qlkzon#iefix") format("embedded-opentype"), url("fonts/courier-admin.ttf?qlkzon") format("truetype"), url("fonts/courier-admin.woff?qlkzon") format("woff"), url("fonts/courier-admin.svg?qlkzon#courier-admin") format("svg"); + src: url("../fonts/courier-admin.eot?qlkzon"); + src: url("../fonts/courier-admin.eot?qlkzon#iefix") format("embedded-opentype"), url("../fonts/courier-admin.ttf?qlkzon") format("truetype"), url("../fonts/courier-admin.woff?qlkzon") format("woff"), url("../fonts/courier-admin.svg?qlkzon#courier-admin") format("svg"); font-weight: normal; font-style: normal; font-display: block; } diff --git a/css/courier-notices-admin.css b/css/courier-notices-admin.css index cdc6f454..f5fc1f41 100644 --- a/css/courier-notices-admin.css +++ b/css/courier-notices-admin.css @@ -11,8 +11,8 @@ /* Notice Colors */ @font-face { font-family: "courier"; - src: url("fonts/courier.eot?j1xoo0"); - src: url("fonts/courier.eot?j1xoo0#iefix") format("embedded-opentype"), url("fonts/courier.woff2?j1xoo0") format("woff2"), url("fonts/courier.ttf?j1xoo0") format("truetype"), url("fonts/courier.woff?j1xoo0") format("woff"), url("fonts/courier.svg?j1xoo0#courier") format("svg"); + src: url("../fonts/courier.eot?j1xoo0"); + src: url("../fonts/courier.eot?j1xoo0#iefix") format("embedded-opentype"), url("../fonts/courier.woff2?j1xoo0") format("woff2"), url("../fonts/courier.ttf?j1xoo0") format("truetype"), url("../fonts/courier.woff?j1xoo0") format("woff"), url("../fonts/courier.svg?j1xoo0#courier") format("svg"); font-weight: normal; font-style: normal; font-display: block; } @@ -1711,8 +1711,8 @@ pre.courier-notice-type-css-class { **/ @font-face { font-family: "courier"; - src: url("fonts/courier.eot?f4juv"); - src: url("fonts/courier.eot?f4juv#iefix") format("embedded-opentype"), url("fonts/courier.woff2?f4juv") format("woff2"), url("fonts/courier.ttf?f4juv") format("truetype"), url("fonts/courier.woff?f4juv") format("woff"), url("fonts/courier.svg?f4juv#courier") format("svg"); + src: url("../fonts/courier.eot?f4juv"); + src: url("../fonts/courier.eot?f4juv#iefix") format("embedded-opentype"), url("../fonts/courier.woff2?f4juv") format("woff2"), url("../fonts/courier.ttf?f4juv") format("truetype"), url("../fonts/courier.woff?f4juv") format("woff"), url("../fonts/courier.svg?f4juv#courier") format("svg"); font-weight: normal; font-style: normal; } diff --git a/css/courier-notices.css b/css/courier-notices.css index 20c0f6f8..f450d542 100644 --- a/css/courier-notices.css +++ b/css/courier-notices.css @@ -11,8 +11,8 @@ /* Notice Colors */ @font-face { font-family: "courier"; - src: url("fonts/courier.eot?j1xoo0"); - src: url("fonts/courier.eot?j1xoo0#iefix") format("embedded-opentype"), url("fonts/courier.woff2?j1xoo0") format("woff2"), url("fonts/courier.ttf?j1xoo0") format("truetype"), url("fonts/courier.woff?j1xoo0") format("woff"), url("fonts/courier.svg?j1xoo0#courier") format("svg"); + src: url("../fonts/courier.eot?j1xoo0"); + src: url("../fonts/courier.eot?j1xoo0#iefix") format("embedded-opentype"), url("../fonts/courier.woff2?j1xoo0") format("woff2"), url("../fonts/courier.ttf?j1xoo0") format("truetype"), url("../fonts/courier.woff?j1xoo0") format("woff"), url("../fonts/courier.svg?j1xoo0#courier") format("svg"); font-weight: normal; font-style: normal; font-display: block; } diff --git a/css/fonts/courier-admin.eot b/fonts/courier-admin.eot similarity index 100% rename from css/fonts/courier-admin.eot rename to fonts/courier-admin.eot diff --git a/css/fonts/courier-admin.svg b/fonts/courier-admin.svg similarity index 100% rename from css/fonts/courier-admin.svg rename to fonts/courier-admin.svg diff --git a/css/fonts/courier-admin.ttf b/fonts/courier-admin.ttf similarity index 100% rename from css/fonts/courier-admin.ttf rename to fonts/courier-admin.ttf diff --git a/css/fonts/courier-admin.woff b/fonts/courier-admin.woff similarity index 100% rename from css/fonts/courier-admin.woff rename to fonts/courier-admin.woff diff --git a/css/fonts/courier-logo.svg b/fonts/courier-logo.svg similarity index 100% rename from css/fonts/courier-logo.svg rename to fonts/courier-logo.svg diff --git a/css/fonts/courier.eot b/fonts/courier.eot similarity index 100% rename from css/fonts/courier.eot rename to fonts/courier.eot diff --git a/css/fonts/courier.svg b/fonts/courier.svg similarity index 100% rename from css/fonts/courier.svg rename to fonts/courier.svg diff --git a/css/fonts/courier.ttf b/fonts/courier.ttf similarity index 100% rename from css/fonts/courier.ttf rename to fonts/courier.ttf diff --git a/css/fonts/courier.woff b/fonts/courier.woff similarity index 100% rename from css/fonts/courier.woff rename to fonts/courier.woff diff --git a/css/fonts/courier.woff2 b/fonts/courier.woff2 similarity index 100% rename from css/fonts/courier.woff2 rename to fonts/courier.woff2 diff --git a/js/courier-notices-admin.js b/js/courier-notices-admin.js index 538f4f00..a31e07a4 100644 --- a/js/courier-notices-admin.js +++ b/js/courier-notices-admin.js @@ -1,2 +1,2211 @@ -/*! For license information please see courier-notices-admin.js.LICENSE.txt */ -(function(){"use strict";var __webpack_modules__={350:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return core}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(311),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),a;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a=function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.6.3"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:!0,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",oneLine:!1,defaultValue:null,parse:"strict",afterInject:null},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_newInst:function _newInst($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults)if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue)try{inlineSettings[attrName]=eval(attrValue)}catch(e){inlineSettings[attrName]=attrValue}}for(i in overrides={beforeShow:function(e,t){return $.isFunction(tp_inst._defaults.evnts.beforeShow)?tp_inst._defaults.evnts.beforeShow.call($input[0],e,t,tp_inst):void 0},onChangeMonthYear:function(e,t,i){$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],e,t,i,tp_inst)},onClose:function(e,t){!0===tp_inst.timeDefined&&""!==$input.val()&&tp_inst._updateDateTime(t),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_inst._defaults.evnts.onClose.call($input[0],e,t,tp_inst)}},overrides)overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||this._defaults[i]||null);tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,(function(e){return e.toUpperCase()})),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,(function(e){return e.toUpperCase()})),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&void 0===$.ui.slider&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&"object"!=_typeof(timezoneList[0]))for(;tzl>tzi;tzi++)tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hourtp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minutetp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.secondtp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second,tp_inst.millisec=tp_inst._defaults.millisectp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec,tp_inst.microsec=tp_inst._defaults.microsectp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec,tp_inst.ampm="",tp_inst.$input=$input,tp_inst._defaults.altField&&(tp_inst.$altInput=$(tp_inst._defaults.altField),!0===tp_inst._defaults.altRedirectFocus&&tp_inst.$altInput.css({cursor:"pointer"}).focus((function(){$input.trigger("focus")}))),(0===tp_inst._defaults.minDate||0===tp_inst._defaults.minDateTime)&&(tp_inst._defaults.minDate=new Date),(0===tp_inst._defaults.maxDate||0===tp_inst._defaults.maxDateTime)&&(tp_inst._defaults.maxDate=new Date),void 0!==tp_inst._defaults.minDate&&tp_inst._defaults.minDate instanceof Date&&(tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())),void 0!==tp_inst._defaults.minDateTime&&tp_inst._defaults.minDateTime instanceof Date&&(tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())),void 0!==tp_inst._defaults.maxDate&&tp_inst._defaults.maxDate instanceof Date&&(tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())),void 0!==tp_inst._defaults.maxDateTime&&tp_inst._defaults.maxDateTime instanceof Date&&(tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())),tp_inst.$input.bind("focus",(function(){tp_inst._onFocus()})),tp_inst},_addTimePicker:function(e){var t=$.trim(this.$altInput&&this._defaults.altFieldTimeOnly?this.$input.val()+" "+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(t),this._limitMinMaxDateTime(e,!1),this._injectTimePicker(),this._afterInject()},_parseTime:function(e,t){if(this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),t||!this._defaults.timeOnly){var i=$.datepicker._get(this.inst,"dateFormat");try{var s=parseDateTimeInternal(i,this._defaults.timeFormat,e,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!s.timeObj)return!1;$.extend(this,s.timeObj)}catch(t){return $.timepicker.log("Error parsing the date/time string: "+t+"\ndate/time string = "+e+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+i),!1}return!0}var n=$.datepicker.parseTime(this._defaults.timeFormat,e,this._defaults);return!!n&&($.extend(this,n),!0)},_afterInject:function(){var e=this.inst.settings;$.isFunction(e.afterInject)&&e.afterInject.call(this)},_injectTimePicker:function(){var e=this.inst.dpDiv,t=this.inst.settings,i=this,s="",n="",a=null,r={},o={},c=null,l=0,u=0;if(0===e.find("div.ui-timepicker-div").length&&t.showTimepicker){var d=" ui_tpicker_unit_hide",m='
'+t.timeText+'
";for(l=0,u=this.units.length;u>l;l++){if(a=null!==t["show"+(n=(s=this.units[l]).substr(0,1).toUpperCase()+s.substr(1))]?t["show"+n]:this.support[s],r[s]=parseInt(t[s+"Max"]-(t[s+"Max"]-t[s+"Min"])%t["step"+n],10),o[s]=0,m+='
'+t[s+"Text"]+'
',a&&t[s+"Grid"]>0){if(m+='
',"hour"===s)for(var _=t[s+"Min"];_<=r[s];_+=parseInt(t[s+"Grid"],10)){o[s]++;var p=$.datepicker.formatTime(this.support.ampm?"hht":"HH",{hour:_},t);m+='"}else for(var f=t[s+"Min"];f<=r[s];f+=parseInt(t[s+"Grid"],10))o[s]++,m+='";m+="
'+p+"'+(10>f?"0":"")+f+"
"}m+="
"}var h=null!==t.showTimezone?t.showTimezone:this.support.timezone;m+='
'+t.timezoneText+"
",m+='
';var g=$(m+="
");for(!0===t.timeOnly&&(g.prepend('
'+t.timeOnlyTitle+"
"),e.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()),l=0,u=i.units.length;u>l;l++)a=null!==t["show"+(n=(s=i.units[l]).substr(0,1).toUpperCase()+s.substr(1))]?t["show"+n]:this.support[s],i[s+"_slider"]=i.control.create(i,g.find(".ui_tpicker_"+s+"_slider"),s,i[s],t[s+"Min"],r[s],t["step"+n]),a&&t[s+"Grid"]>0&&(c=100*o[s]*t[s+"Grid"]/(r[s]-t[s+"Min"]),g.find(".ui_tpicker_"+s+" table").css({width:c+"%",marginLeft:t.isRTL?"0":c/(-2*o[s])+"%",marginRight:t.isRTL?c/(-2*o[s])+"%":"0",borderCollapse:"collapse"}).find("td").click((function(e){var t=$(this),n=t.html(),a=parseInt(n.replace(/[^0-9]/g),10),r=n.replace(/[^apm]/gi),o=t.data("for");"hour"===o&&(-1!==r.indexOf("p")&&12>a?a+=12:-1!==r.indexOf("a")&&12===a&&(a=0)),i.control.value(i,i[o+"_slider"],s,a),i._onTimeChange(),i._onSelectHandler()})).css({cursor:"pointer",width:100/o[s]+"%",textAlign:"center",overflow:"hidden"}));this.timezone_select=g.find(".ui_tpicker_timezone").append("").find("select"),$.fn.append.apply(this.timezone_select,$.map(t.timezoneList,(function(e,t){return $("