{"id":56411,"date":"2024-01-30T15:24:50","date_gmt":"2024-01-30T15:24:50","guid":{"rendered":"https:\/\/stampipilone.com\/?page_id=56411"},"modified":"2024-01-30T15:24:50","modified_gmt":"2024-01-30T15:24:50","slug":"test","status":"publish","type":"page","link":"https:\/\/stampipilone.com\/en\/test\/","title":{"rendered":"Test"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text]<\/p>\n<pre class=\"wp-block-preformatted\"><div id=\"ea-full-calendar-6a14734d8a891\"><\/div><div class=\"fc\">\r\n    <div id=\"ea-calendar-color-map-6a14734d8a891\" class=\"ea-calendar-color-map fc-view-container\">\r\n        <div>Status<\/div>\r\n        <div data-class=\"grape\" class=\"fc-event status grape\">pending<\/div>\r\n        <div data-class=\"darkgreen\" class=\"fc-event status darkgreen\">confirmed<\/div>\r\n        <div data-class=\"darkblue\" class=\"fc-event status darkblue\">reservation<\/div>\r\n        <div data-class=\"graffit\" class=\"fc-event status graffit\">cancelled<\/div>\r\n    <\/div>\r\n<\/div><style><\/style>\r\n<script>\r\n  jQuery(document).ready(function() {\r\n  \r\n    jQuery('#ea-calendar-color-map-6a14734d8a891').find('.status').hover(\r\n        function(event) {\r\n            var el = jQuery(event.target);\r\n            var classSelector = '.' + el.data('class');\r\n            jQuery('#ea-full-calendar-6a14734d8a891').find('.fc-event:not(' + classSelector + ')').animate({ opacity: 1\/2 }, 200);\r\n        },\r\n    function(event){\r\n        jQuery('#ea-full-calendar-6a14734d8a891').find('.fc-event').animate({ opacity: 1 }, 100);\r\n    });\r\n\r\n    jQuery('#ea-full-calendar-6a14734d8a891').fullCalendar({\r\n      header: {\r\n        left: 'prev,next today',\r\n        center: 'title',\r\n        right: 'month,basicWeek,basicDay'\r\n      },\r\n      dayNamesShort: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],\r\n      dayNames: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],\r\n      monthNamesShort: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],\r\n      monthNames: ['January','February','March','April','May','June','July','August','September','October','November','December'],\r\n      buttonText: {\r\n        today: 'today',\r\n        month: 'month',\r\n        week:  'week',\r\n        day:   'day',\r\n        list:  'list'\r\n      },\r\n      views: {\r\n        month: {\r\n          titleFormat: 'MMM YYYY',\r\n        },\r\n        week: {\r\n          titleFormat: 'MMM DD, YYYY',\r\n        },\r\n        day: {\r\n          titleFormat: 'MMM DD, YYYY',\r\n        }\r\n      },\r\n      isRTL: false,\r\n      defaultView: 'month',\r\n      showNonCurrentDates: false,\r\n      timeFormat: 'h:mmt',\r\n      \r\n      displayEventEnd: false,\r\n      weekNumbers: false,\r\n      firstDay: 1,\r\n      defaultDate: '2026-05-25',\r\n      navLinks: true, \/\/ can click day\/week names to navigate views\r\n      editable: false,\r\n      eventLimit: true, \/\/ allow \"more\" link when too many events\r\n      events: {\r\n        url: wpApiSettings.root + 'easy-appointments\/v1\/appointments',\r\n        type: 'GET',\r\n        data: {\r\n          _wpnonce: wpApiSettings.nonce,\r\n          hide_cancelled: '0',\r\n          location: '1',\r\n          service: '1',\r\n          worker: '1',\r\n          \r\n          title_field: 'name',\r\n        },\r\n        error: function() {\r\n          alert('there was an error while fetching events!');\r\n        },\r\n        textColor: 'white' \/\/ a non-ajax option\r\n      },\r\n      eventClick: function(calEvent, jsEvent, view) {\r\n        \/\/ console.log(calEvent, jsEvent, view);\r\n      },\r\n      eventRender: function(event, element) {\r\n        var statusMapping = {\r\n          canceled: 'graffit',\r\n          confirmed: 'darkgreen',\r\n          pending: 'grape',\r\n          reserved: 'darkblue'\r\n        }\r\n \r\n        element.addClass(statusMapping[event.status]);\r\n                element.addClass('thickbox');\r\n        element.addClass('ea-full-calendar-dialog-event');\r\n        element.attr('href', wpApiSettings.root + 'easy-appointments\/v1\/appointment\/' + event.id + '?hash=' + event.hash + '&_wpnonce=' + wpApiSettings.nonce + '&width=100%&height=100%');\r\n        element.attr('title', '#' + event.id + ' - ' + _.escape(event.title));\r\n      }\r\n    });\r\n  });\r\n<\/script><\/pre>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text] [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"class_list":["post-56411","page","type-page","status-publish","hentry","description-off"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/pages\/56411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/comments?post=56411"}],"version-history":[{"count":1,"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/pages\/56411\/revisions"}],"predecessor-version":[{"id":56412,"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/pages\/56411\/revisions\/56412"}],"wp:attachment":[{"href":"https:\/\/stampipilone.com\/en\/wp-json\/wp\/v2\/media?parent=56411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}