PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 6.2.1
پارسی دیت – Parsi Date v6.2.1
6.2.1 6.2 6.1 5.1.6 5.1.7 5.1.8 5.1.8.2 6.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0-alpha 2.1 2.1.1 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0.1 2.3.0.2 2.3.1 2.3.2 2.3.3 2.3.4 3.0.1 3.0.2 3.0.3 4.0.0 4.0.1 4.0.2 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5
wp-parsidate / assets / js-admin / dashboard.min.js
wp-parsidate / assets / js-admin Last commit date
wc-pg-blocks 2 weeks ago admin.js 2 weeks ago admin.min.js 2 weeks ago dashboard.js 2 weeks ago dashboard.min.js 2 weeks ago gutenberg-jalali-calendar.build.js 2 weeks ago index.php 2 weeks ago jalalidatepicker.min.js 2 weeks ago keen-slider.min.js 2 weeks ago script.js 2 weeks ago script.min.js 2 weeks ago
dashboard.min.js
1 lines
1 (()=>{window.wp=window.wp||{},window.communityEventsData=window.communityEventsData||{},jQuery(function(e){window.ajaxWidgets=["wpp_dashboard_primary"],window.ajaxPopulateWidgets=function(t){function show(t,n){var o,i=e("#"+n+" div.inside:visible").find(".widget-loading");i.length&&(o=i.parent(),setTimeout(function(){o.load(ajaxurl+"?action=wpp-dashboard-widgets&widget="+n+"&pagenow="+pagenow,"",function(){o.hide().slideDown("normal",function(){e(this).css("display","")})})},500*t))}t?(t=t.toString(),-1!==e.inArray(t,ajaxWidgets)&&show(0,t)):e.each(ajaxWidgets,show)},ajaxPopulateWidgets(),e(document).on("postbox-toggled",function(e,t){-1!==ajaxWidgets.indexOf(t.id)&&(wppDashboardSlider&&wppDashboardSlider.update(),ajaxPopulateWidgets())})}),jQuery(function(e){"use strict";var t,n=window.communityEventsData,o=wp.date.dateI18n,i=wp.date.format,a=wp.i18n.sprintf,s=wp.i18n.__,r=wp.i18n._x;t=window.wp.communityEvents={initialized:!1,model:null,init:function(){if(!t.initialized){var o=e("#community-events");e(".community-events-errors").attr("aria-hidden","true").removeClass("hide-if-js"),o.on("click",".community-events-toggle-location, .community-events-cancel",t.toggleLocationForm),o.on("submit",".community-events-form",function(n){var o=e("#community-events-location").val().trim();n.preventDefault(),o&&t.getEvents({location:o})}),n&&n.cache&&n.cache.location&&n.cache.events?t.renderEventsTemplate(n.cache,"app"):t.getEvents(),t.initialized=!0}},toggleLocationForm:function(t){var n=e(".community-events-toggle-location"),o=e(".community-events-cancel"),i=e(".community-events-form"),a=e();"object"==typeof t&&(a=e(t.target),t="true"===n.attr("aria-expanded")?"hide":"show"),"hide"===t?(n.attr("aria-expanded","false"),o.attr("aria-expanded","false"),i.attr("aria-hidden","true"),a.hasClass("community-events-cancel")&&n.trigger("focus")):(n.attr("aria-expanded","true"),o.attr("aria-expanded","true"),i.attr("aria-hidden","false"))},getEvents:function(t){var o,i=this,a=e(".community-events-form").children(".spinner");(t=t||{})._wpnonce=n.nonce,t.timezone=window.Intl?window.Intl.DateTimeFormat().resolvedOptions().timeZone:"",o=t.location?"user":"app",a.addClass("is-active"),wp.ajax.post("get-community-events",t).always(function(){a.removeClass("is-active")}).done(function(e){"no_location_available"===e.error&&(t.location?e.unknownCity=t.location:delete e.error),i.renderEventsTemplate(e,o)}).fail(function(){i.renderEventsTemplate({location:!1,events:[],error:!0},o)})},renderEventsTemplate:function(o,i){var r,m,c=e(".community-events-toggle-location"),l=e("#community-events-location-message"),d=e(".community-events-results");o.events=t.populateDynamicEventFields(o.events,n.time_format),m={".community-events":!0,".community-events-loading":!1,".community-events-errors":!1,".community-events-error-occurred":!1,".community-events-could-not-locate":!1,"#community-events-location-message":!1,".community-events-toggle-location":!1,".community-events-results":!1},o.location.ip?(l.text(s("Attend an upcoming event near you.")),o.events.length?(r=wp.template("community-events-event-list"),d.html(r(o))):(r=wp.template("community-events-no-upcoming-events"),d.html(r(o))),m["#community-events-location-message"]=!0,m[".community-events-toggle-location"]=!0,m[".community-events-results"]=!0):o.location.description?(r=wp.template("community-events-attend-event-near"),l.html(r(o)),o.events.length?(r=wp.template("community-events-event-list"),d.html(r(o))):(r=wp.template("community-events-no-upcoming-events"),d.html(r(o))),"user"===i&&wp.a11y.speak(a(s("City updated. Listing events near %s."),o.location.description),"assertive"),m["#community-events-location-message"]=!0,m[".community-events-toggle-location"]=!0,m[".community-events-results"]=!0):o.unknownCity?(r=wp.template("community-events-could-not-locate"),e(".community-events-could-not-locate").html(r(o)),wp.a11y.speak(a(s("We couldn’t locate %s. Please try another nearby city. For example: Kansas City; Springfield; Portland."),o.unknownCity)),m[".community-events-errors"]=!0,m[".community-events-could-not-locate"]=!0):o.error&&"user"===i?(wp.a11y.speak(s("An error occurred. Please try again.")),m[".community-events-errors"]=!0,m[".community-events-error-occurred"]=!0):(l.text(s("Enter your closest city to find nearby events.")),m["#community-events-location-message"]=!0,m[".community-events-toggle-location"]=!0),_.each(m,function(t,n){e(n).attr("aria-hidden",!t)}),c.attr("aria-expanded",m[".community-events-toggle-location"]),o.location&&(o.location.ip||o.location.latitude)?(t.toggleLocationForm("hide"),"user"===i&&c.trigger("focus")):t.toggleLocationForm("show")},populateDynamicEventFields:function(n,i){var a=JSON.parse(JSON.stringify(n));return e.each(a,function(e,n){var a=t.getTimeZone(1e3*n.start_unix_timestamp);n.user_formatted_date=t.getFormattedDate(1e3*n.start_unix_timestamp,1e3*n.end_unix_timestamp,a),n.user_formatted_time=o(i,1e3*n.start_unix_timestamp,a),n.timeZoneAbbreviation=t.getTimeZoneAbbreviation(1e3*n.start_unix_timestamp)}),a},getTimeZone:function(e){var n=Intl.DateTimeFormat().resolvedOptions().timeZone;return void 0===n&&(n=t.getFlippedTimeZoneOffset(e)),n},getFlippedTimeZoneOffset:function(e){return-1*new Date(e).getTimezoneOffset()},getTimeZoneAbbreviation:function(e){var n,o=new Date(e).toLocaleTimeString(void 0,{timeZoneName:"short"}).split(" ");if(3===o.length&&(n=o[2]),void 0===n){var i=t.getFlippedTimeZoneOffset(e),a=-1===Math.sign(i)?"":"+";n=r("GMT","Events widget offset prefix")+a+i/60}return n},getFormattedDate:function(e,t,n){var m=s("l, M j, Y"),c=s("%1$s %2$d–%3$d, %4$d"),l=s("%1$s %2$d – %3$s %4$d, %5$d");return t&&i("Y-m-d",e)!==i("Y-m-d",t)?i("Y-m",e)===i("Y-m",t)?a(c,o(r("F","upcoming events month format"),e,n),o(r("j","upcoming events day format"),e,n),o(r("j","upcoming events day format"),t,n),o(r("Y","upcoming events year format"),t,n)):a(l,o(r("F","upcoming events month format"),e,n),o(r("j","upcoming events day format"),e,n),o(r("F","upcoming events month format"),t,n),o(r("j","upcoming events day format"),t,n),o(r("Y","upcoming events year format"),t,n)):o(m,e,n)}};e("#wpp_dashboard_primary").is(":visible")?t.init():e(document).on("postbox-toggled",function(n,o){var i=e(o);"wpp_dashboard_primary"===i.attr("id")&&i.is(":visible")&&t.init()})});const e=document.getElementById("wpp_sponsorship"),t=document.getElementById("wpp-sponsorship-guide"),n=document.getElementById("wpp_sponsorship_placeholder"),o=document.querySelector("#wpp-sponsorship-guide .question"),i=document.querySelector("#wpp-sponsorship-guide ul");!function wppInitSponsors(){try{const t=Object.values(wpp_dashboard.sponsors);if(t.length>0){n.remove();const o=t[function wppSponsorsIndex(e){if(1===e)return 0;let t=parseInt(localStorage.getItem("wpp_sponsor_index"));isNaN(t)?t=Math.floor(Math.random()*e):t+1>=e?t=0:t++;return localStorage.setItem("wpp_sponsor_index",""+t),t}(t.length)];console.log(o);const i=document.createElement("div");i.innerHTML='<a href="'+o.link+'" target="_blank"><img src="'+o.image+'" alt="'+o.image_alt+'"></a>',e.appendChild(i)}}catch(e){console.error("Error fetching slides:",e)}}(),o.addEventListener("click",function(e){i.classList.toggle("show"),e.stopPropagation()}),document.addEventListener("click",function(e){t.contains(e.target)||i.classList.remove("show")})})();