Esempio n. 1
0
    $output[3]['second_color'] = $colorData['second_color'];
    $output[3]['room'] = $colorData['room'];
    $output[4][0] = $agenda->get_header_text($_POST['category']);
    $output[7][0] = $agenda->agenda_sponsor_display(1, $_POST['category']);
    $output[7][1] = $agenda->agenda_sponsor_display(2, $_POST['category']);
    if (isset($output[0]) && isset($output[1]) && isset($output[3]) && isset($output[4]) && isset($output[7])) {
        echo json_encode($output);
    }
}
//
if (isset($_POST['action']) && $_POST['action'] == 'change_agenda_category_mobile_v6') {
    $agenda = new agenda\agenda_main();
    $_SESSION['Category'] = $_POST['category'];
    //Session table update
    $data = $agenda->agenda_session($_POST['category'], 1);
    $output[0] = $agenda->display_session_mobile_v6($data);
    $data2 = $agenda->agenda_session($_POST['category'], 2);
    $output[1] = $agenda->display_session_mobile_v6($data2);
    //Hide Labs3 day 1
    if ($_POST['category'] == 17) {
        $output[0] = 'Nope';
    }
    //if it's Product demo
    if ($_POST['category'] == 14) {
        $data3 = $agenda->agenda_session(18, 2);
        $output[5] = $agenda->display_session_mobile_v6($data3);
    }
    //Testimonial update
    $blocks = $agenda->block_display($_POST['category'], 1);
    $output[2] = '';
    foreach ($blocks as $elems) {