| Server IP : 68.178.247.200 / Your IP : 216.73.216.110 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/publishpress/modules/calendar/lib/async-calendar/js/ |
Upload File : |
import AsyncCalendar from "./AsyncCalendar";
import {getDateWithNoTimezoneOffset, getDateInstanceFromString} from "./Functions";
jQuery(() => {
ReactDOM.render(
<AsyncCalendar
firstDateToDisplay={getDateWithNoTimezoneOffset(publishpressCalendarParams.firstDateToDisplay)}
weekStartsOnSunday={parseInt(publishpressCalendarParams.weekStartsOnSunday) === 1}
numberOfWeeksToDisplay={publishpressCalendarParams.numberOfWeeksToDisplay}
todayDate={getDateInstanceFromString(publishpressCalendarParams.todayDate)}
dateFormat={publishpressCalendarParams.dateFormat}
timeFormat={publishpressCalendarParams.timeFormat}
theme={publishpressCalendarParams.theme}
statusesToDisplayTime={publishpressCalendarParams.statusesToDisplayTime}
maxVisibleItems={publishpressCalendarParams.maxVisibleItems}
ajaxUrl={publishpressCalendarParams.ajaxUrl}
actionGetData={'publishpress_calendar_get_data'}
actionMoveItem={'publishpress_calendar_move_item'}
actionGetPostTypeFields={'publishpress_calendar_get_post_type_fields'}
nonce={publishpressCalendarParams.nonce}
statuses={publishpressCalendarParams.statuses}
postTypes={publishpressCalendarParams.postTypes}
postTypesCanCreate={publishpressCalendarParams.postTypesCanCreate}
userCanAddPosts={publishpressCalendarParams.userCanAddPosts}
items={publishpressCalendarParams.items}
allowAddingMultipleAuthors={publishpressCalendarParams.allowAddingMultipleAuthors}/>,
document.getElementById('publishpress-calendar-wrap')
);
});