예제 #1
0
파일: functions.php 프로젝트: seoduda/Patua
function dpProEventCalendar_getEvents()
{
    $nonce = $_POST['postEventsNonce'];
    //if ( ! wp_verify_nonce( $nonce, 'ajax-get-events-nonce' ) )
    //   die ( 'Busted!');
    if (!isset($_POST['date'])) {
        die;
    }
    $date = $_POST['date'];
    $calendar = $_POST['calendar'];
    $category = $_POST['category'];
    $event_id = $_POST['event_id'];
    $author = $_POST['author'];
    require_once 'classes/base.class.php';
    $dpProEventCalendar = new DpProEventCalendar(false, $calendar, null, null, '', $category, $event_id, $author);
    die($dpProEventCalendar->eventsListLayout($date));
}