function cherry_plugin_parse_import_data($import_array)
{
    $sidebars_data = $import_array[0];
    $widget_data = $import_array[1];
    $current_sidebars = get_option('sidebars_widgets');
    $new_widgets = array();
    $inactive_widgets = array();
    foreach ($current_sidebars as $import_sidebars => $import_sidebar) {
        if (is_array($import_sidebar)) {
            array_push($import_sidebar, array());
        }
    }
    foreach ($sidebars_data as $import_sidebar => $import_widgets) {
        $current_sidebars[$import_sidebar] = array();
        foreach ($import_widgets as $import_widget) {
            $title = trim(substr($import_widget, 0, strrpos($import_widget, '-')));
            $index = trim(substr($import_widget, strrpos($import_widget, '-') + 1));
            $current_widget_data = get_option('widget_' . $title);
            $new_widget_name = get_new_widget_name($title, $index);
            $new_index = trim(substr($new_widget_name, strrpos($new_widget_name, '-') + 1));
            if (!empty($new_widgets[$title]) && is_array($new_widgets[$title])) {
                while (array_key_exists($new_index, $new_widgets[$title])) {
                    $new_index++;
                }
            }
            $current_sidebars[$import_sidebar][] = $title . '-' . $new_index;
            if (array_key_exists($title, $new_widgets)) {
                $new_widgets[$title][$new_index] = $widget_data[$title][$index];
                $multiwidget = $new_widgets[$title]['_multiwidget'];
                unset($new_widgets[$title]['_multiwidget']);
                $new_widgets[$title]['_multiwidget'] = $multiwidget;
            } else {
                $current_widget_data[$new_index] = $widget_data[$title][$index];
                $current_multiwidget = array_key_exists('_multiwidget', $current_widget_data) ? $current_widget_data['_multiwidget'] : null;
                $new_multiwidget = $widget_data[$title]['_multiwidget'];
                $multiwidget = $current_multiwidget != $new_multiwidget ? $current_multiwidget : 1;
                unset($current_widget_data['_multiwidget']);
                $current_widget_data['_multiwidget'] = $multiwidget;
                $new_widgets[$title] = $current_widget_data;
            }
        }
    }
    if (isset($new_widgets) && isset($current_sidebars)) {
        if (!empty($inactive_widgets)) {
            $current_sidebars['wp_inactive_widgets'] = $inactive_widgets;
        }
        update_option('sidebars_widgets', $current_sidebars);
        foreach ($new_widgets as $title => $content) {
            update_option('widget_' . $title, $content);
        }
        return true;
    }
    return false;
}
Example #2
0
function parse_import_data($import_array)
{
    $sidebars_data = $import_array[0];
    $widget_data = $import_array[1];
    $current_sidebars = get_option('sidebars_widgets');
    $new_widgets = array();
    foreach ($sidebars_data as $import_sidebar => $import_widgets) {
        if (!is_array($import_widgets)) {
            continue;
        }
        foreach ($import_widgets as $import_widget) {
            //if the sidebar exists
            if (isset($current_sidebars[$import_sidebar])) {
                $title = trim(substr($import_widget, 0, strrpos($import_widget, '-')));
                $index = trim(substr($import_widget, strrpos($import_widget, '-') + 1));
                $current_widget_data = get_option('widget_' . $title);
                $new_widget_name = get_new_widget_name($title, $index);
                $new_index = trim(substr($new_widget_name, strrpos($new_widget_name, '-') + 1));
                if (is_array($new_widgets[$title])) {
                    while (array_key_exists($new_index, $new_widgets[$title])) {
                        $new_index++;
                    }
                }
                $current_sidebars[$import_sidebar][] = $title . '-' . $new_index;
                if (array_key_exists($title, $new_widgets)) {
                    $new_widgets[$title][$new_index] = $widget_data[$title][$index];
                    $multiwidget = $new_widgets[$title]['_multiwidget'];
                    unset($new_widgets[$title]['_multiwidget']);
                    $new_widgets[$title]['_multiwidget'] = $multiwidget;
                } else {
                    $current_widget_data[$new_index] = $widget_data[$title][$index];
                    $current_multiwidget = $current_widget_data['_multiwidget'];
                    $new_multiwidget = $widget_data[$title]['_multiwidget'];
                    $multiwidget = $current_multiwidget != $new_multiwidget ? $current_multiwidget : 1;
                    unset($current_widget_data['_multiwidget']);
                    $current_widget_data['_multiwidget'] = $multiwidget;
                    $new_widgets[$title] = $current_widget_data;
                }
                //Going to use for future functionality
                //if the sidebar does not exist, put the widget in the in-active
                //				else :
                //
                //					if(isset($sidebars_data['wp_inactive_widgets'])){ //if wp_inactive_widgets is set on the import
                //						foreach($sidebars_data[$import_sidebar] as $widget){ // just append all that sidebars widgets to the array
                //							$sidebars_data['wp_inactive_widets'][] = $widget;
                //					}
                //					} else { // if the wp_inactive_widets is not defined
                //						$sidebars_data['wp_inactive_widgets'] = $sidebars_data[$import_sidebar]; // just set the old array as the wp_inactive_widgets array
                //					}
                //					unset($sidebars_data[$import_sidebar]);  // remove old sidebar array in the import data
            }
        }
    }
    if (isset($new_widgets) && isset($current_sidebars)) {
        var_dump($current_sidebars);
        echo '<br/>+++++<br/>';
        // update_option('sidebars_widgets', $current_sidebars);
        foreach ($new_widgets as $title => $content) {
            print_r('widget_' . $title);
            echo '<br/>';
            print_r($content);
            echo '<br/>------<br/>';
            // update_option('widget_'.$title, $content);
        }
        return true;
    } else {
        return false;
    }
}
Example #3
0
function medicenter_import_dummy2()
{
    $result = array("info" => "");
    //import dummy content
    $fetch_attachments = false;
    $file = download_import_file(array("name" => "dummy-" . $_POST["version"], "extension" => "xml"));
    if (!is_wp_error($file)) {
        require_once locate_template('importer/importer.php');
    } else {
        $result["info"] .= "Import file: dummy-" . $_POST["version"] . ".xml not found! Please upload import file manually into Media library. You can find this file in 'dummy content files' directory inside zip archive downloaded from ThemeForest.";
        exit;
    }
    //set menu
    $locations = get_theme_mod('nav_menu_locations');
    $menus = wp_get_nav_menus();
    $locations['main-menu'] = $menus[0]->term_id;
    set_theme_mod('nav_menu_locations', $locations);
    //set front page
    $home = get_page_by_title('HOME');
    update_option('page_on_front', $home->ID);
    update_option('show_on_front', 'page');
    //widget import
    $response = array('what' => 'widget_import_export', 'action' => 'import_submit');
    $widgets = isset($_POST['widgets']) ? $_POST['widgets'] : false;
    $json_file = download_import_file(array("name" => "widget_data-" . $_POST["version"], "extension" => "json"));
    if (!is_wp_error($json_file)) {
        $json_data = file_get_contents($json_file);
        $json_data = json_decode($json_data, true);
        $sidebars_data = $json_data[0];
        $widget_data = $json_data[1];
        $current_sidebars = get_option('sidebars_widgets');
        //remove inactive widgets
        $current_sidebars['wp_inactive_widgets'] = array();
        update_option('sidebars_widgets', $current_sidebars);
        $new_widgets = array();
        foreach ($sidebars_data as $import_sidebar => $import_widgets) {
            foreach ($import_widgets as $import_widget) {
                //if the sidebar exists
                //if ( isset( $current_sidebars[$import_sidebar] ) ) :
                $title = trim(substr($import_widget, 0, strrpos($import_widget, '-')));
                $index = trim(substr($import_widget, strrpos($import_widget, '-') + 1));
                $current_widget_data = get_option('widget_' . $title);
                $new_widget_name = get_new_widget_name($title, $index);
                $new_index = trim(substr($new_widget_name, strrpos($new_widget_name, '-') + 1));
                if (!empty($new_widgets[$title]) && is_array($new_widgets[$title])) {
                    while (array_key_exists($new_index, $new_widgets[$title])) {
                        $new_index++;
                    }
                }
                $current_sidebars[$import_sidebar][] = $title . '-' . $new_index;
                if (array_key_exists($title, $new_widgets)) {
                    $new_widgets[$title][$new_index] = $widget_data[$title][$index];
                    $multiwidget = $new_widgets[$title]['_multiwidget'];
                    unset($new_widgets[$title]['_multiwidget']);
                    $new_widgets[$title]['_multiwidget'] = $multiwidget;
                } else {
                    $current_widget_data[$new_index] = $widget_data[$title][$index];
                    $current_multiwidget = isset($current_widget_data['_multiwidget']) ? $current_widget_data['_multiwidget'] : "";
                    $new_multiwidget = isset($widget_data[$title]['_multiwidget']) ? $widget_data[$title]['_multiwidget'] : "";
                    $multiwidget = $current_multiwidget != $new_multiwidget ? $current_multiwidget : 1;
                    unset($current_widget_data['_multiwidget']);
                    $current_widget_data['_multiwidget'] = $multiwidget;
                    $new_widgets[$title] = $current_widget_data;
                }
                //endif;
            }
        }
        if (isset($new_widgets) && isset($current_sidebars)) {
            update_option('sidebars_widgets', $current_sidebars);
            foreach ($new_widgets as $title => $content) {
                update_option('widget_' . $title, $content);
            }
        }
    } else {
        $result["info"] .= "Widgets data file not found! Please upload widgets data file manually.";
        exit;
    }
    if ($result["info"] == "") {
        $result["info"] = "dummy-" . $_POST["version"] . ".xml file content and widgets settings has been imported successfully!";
    }
    echo "dummy_import_start" . json_encode($result) . "dummy_import_end";
    exit;
}
Example #4
0
 function timetable_import_dummy()
 {
     $result = array("info" => "");
     //import dummy content
     $fetch_attachments = true;
     $file = tt_download_import_file(array("name" => "dummy-timetable", "extension" => "xml"));
     if (!is_wp_error($file)) {
         require_once 'importer/importer.php';
     } else {
         $result["info"] .= __("Import file: dummy-timetable.xml not found! Please upload import file manually into Media library. You can find this file inside zip archive downloaded from CodeCanyon.", 'timetable');
         exit;
     }
     //widget import
     $response = array('what' => 'widget_import_export', 'action' => 'import_submit');
     $widgets = isset($_POST['widgets']) ? $_POST['widgets'] : false;
     $json_file = tt_download_import_file(array("name" => "widget_data", "extension" => "json"));
     if (!is_wp_error($json_file)) {
         $json_data = file_get_contents($json_file);
         $json_data = json_decode($json_data, true);
         $sidebars_data = $json_data[0];
         $widget_data = $json_data[1];
         $current_sidebars = get_option('sidebars_widgets');
         //remove inactive widgets
         $current_sidebars['wp_inactive_widgets'] = array();
         update_option('sidebars_widgets', $current_sidebars);
         $new_widgets = array();
         foreach ($sidebars_data as $import_sidebar => $import_widgets) {
             foreach ($import_widgets as $import_widget) {
                 //if the sidebar exists
                 //if ( isset( $current_sidebars[$import_sidebar] ) ) :
                 $title = trim(substr($import_widget, 0, strrpos($import_widget, '-')));
                 $index = trim(substr($import_widget, strrpos($import_widget, '-') + 1));
                 $current_widget_data = get_option('widget_' . $title);
                 $new_widget_name = get_new_widget_name($title, $index);
                 $new_index = trim(substr($new_widget_name, strrpos($new_widget_name, '-') + 1));
                 if (!empty($new_widgets[$title]) && is_array($new_widgets[$title])) {
                     while (array_key_exists($new_index, $new_widgets[$title])) {
                         $new_index++;
                     }
                 }
                 $current_sidebars[$import_sidebar][] = $title . '-' . $new_index;
                 if (array_key_exists($title, $new_widgets)) {
                     $new_widgets[$title][$new_index] = $widget_data[$title][$index];
                     $multiwidget = $new_widgets[$title]['_multiwidget'];
                     unset($new_widgets[$title]['_multiwidget']);
                     $new_widgets[$title]['_multiwidget'] = $multiwidget;
                 } else {
                     $current_widget_data[$new_index] = $widget_data[$title][$index];
                     $current_multiwidget = $current_widget_data['_multiwidget'];
                     $new_multiwidget = $widget_data[$title]['_multiwidget'];
                     $multiwidget = $current_multiwidget != $new_multiwidget ? $current_multiwidget : 1;
                     unset($current_widget_data['_multiwidget']);
                     $current_widget_data['_multiwidget'] = $multiwidget;
                     $new_widgets[$title] = $current_widget_data;
                 }
                 //endif;
             }
         }
         if (isset($new_widgets) && isset($current_sidebars)) {
             update_option('sidebars_widgets', $current_sidebars);
             foreach ($new_widgets as $title => $content) {
                 update_option('widget_' . $title, $content);
             }
         }
     } else {
         $result["info"] .= __("Widgets data file not found! Please upload widgets data file manually.", 'timetable');
         exit;
     }
     //import sample hours
     global $wpdb;
     $query = "INSERT INTO `" . $wpdb->prefix . "event_hours` (`event_hours_id`, `event_id`, `weekday_id`, `start`, `end`, `tooltip`, `before_hour_text`, `after_hour_text`, `category`) VALUES\n\t\t\t(242, 2146, 1217, '11:00:00', '13:00:00', 'Reaction time training with sparring partners.', 'Boxing class', 'Robert Bandana', ''),\n\t\t\t(247, 15, 1214, '15:00:00', '15:45:00', '', 'High impact', 'Mark Moreau', ''),\n\t\t\t(238, 2148, 1217, '17:00:00', '18:30:00', '', 'Advanced', 'Kevin Nomak', ''),\n\t\t\t(222, 2148, 1218, '15:00:00', '16:00:00', '', 'Beginners', 'Kevin Nomak', ''),\n\t\t\t(223, 2148, 1213, '15:00:00', '16:00:00', '', 'Intermediate', 'Kevin Nomak', ''),\n\t\t\t(244, 2144, 1217, '15:00:00', '16:00:00', 'Basic exercises for kids.', 'Preschool class', 'Emma Brown', ''),\n\t\t\t(183, 15, 2132, '16:00:00', '17:00:00', '', 'Low impact', 'Mark Moreau', ''),\n\t\t\t(184, 15, 1213, '16:00:00', '17:00:00', '', 'High impact', 'Trevor Smith', ''),\n\t\t\t(199, 2139, 1216, '07:00:00', '09:00:00', 'Open entry to the fitness room with wide variety of equipment.', 'Open entry', 'Mark Moreau', ''),\n\t\t\t(185, 15, 1214, '16:00:00', '17:00:00', '', 'Low impact', 'Mark Moreau', ''),\n\t\t\t(228, 2142, 1218, '13:00:00', '15:00:00', '', 'Body works', 'Kevin Nomak', ''),\n\t\t\t(239, 2148, 2132, '15:00:00', '16:00:00', 'Advanced stamina workout.', 'Advanced', 'Kevin Nomak', ''),\n\t\t\t(205, 2139, 1213, '07:00:00', '11:00:00', 'Open entry to the fitness room with wide variety of equipment.', 'Open entry', 'Mark Moreau', ''),\n\t\t\t(163, 2146, 1216, '14:00:00', '15:00:00', '', 'Thai boxing', 'Robert Bandana', ''),\n\t\t\t(156, 2146, 1213, '11:00:00', '13:00:00', '', 'MMA beginners', 'Robert Bandana', ''),\n\t\t\t(243, 2144, 1216, '15:00:00', '16:00:00', 'Basic exercises for kids.', 'Preschool class', 'Emma Brown', ''),\n\t\t\t(162, 2146, 1215, '14:00:00', '15:00:00', '', 'Thai boxing', 'Robert Bandana', ''),\n\t\t\t(190, 2142, 1213, '18:00:00', '19:30:00', '', 'Weightlifting', 'Kevin Nomak', ''),\n\t\t\t(141, 2144, 1216, '17:00:00', '18:30:00', '', 'Fitness and fun', 'Emma Brown', ''),\n\t\t\t(139, 2144, 1214, '17:00:00', '18:30:00', '', 'Zumba dance', 'Emma Brown', ''),\n\t\t\t(144, 2144, 1217, '17:00:00', '18:30:00', '', 'Fitness and fun', 'Emma Brown', ''),\n\t\t\t(164, 2148, 1214, '07:00:00', '09:00:00', '', 'Weightlifting', 'Kevin Nomak', ''),\n\t\t\t(193, 2148, 1215, '17:00:00', '18:30:00', '', 'Beginners', 'Kevin Nomak', ''),\n\t\t\t(231, 15, 1217, '16:00:00', '17:00:00', '', 'High impact', 'Trevor Smith', ''),\n\t\t\t(152, 2146, 1213, '13:00:00', '14:00:00', '', 'MMA all levels', 'Robert Bandana', ''),\n\t\t\t(153, 2146, 1217, '13:00:00', '14:00:00', '', 'MMA all levels', 'Robert Bandana', ''),\n\t\t\t(157, 2146, 2132, '11:00:00', '13:00:00', '', 'Boxing class', 'Robert Bandana', ''),\n\t\t\t(214, 2148, 1217, '14:00:00', '15:00:00', '', 'Weightlifting', 'Kevin Nomak', ''),\n\t\t\t(204, 2139, 2132, '07:00:00', '11:00:00', 'Open entry to the fitness room with wide variety of equipment.', 'Open entry', 'Mark Moreau', ''),\n\t\t\t(189, 2142, 2132, '18:00:00', '19:30:00', '', 'Weightlifting', 'Kevin Nomak', ''),\n\t\t\t(175, 2144, 1215, '17:00:00', '18:30:00', '', 'Advanced', 'Emma Brown', ''),\n\t\t\t(229, 2139, 1218, '07:00:00', '11:00:00', 'Open entry to the fitness room with wide variety of equipment.', 'Open entry', 'Mark Moreau', ''),\n\t\t\t(221, 2139, 1215, '07:00:00', '12:00:00', 'Open entry to the fitness room with wide variety of equipment.', 'Open entry', 'Mark Moreau', ''),\n\t\t\t(227, 2142, 1218, '11:00:00', '13:00:00', '', 'Weightlifting', 'Kevin Nomak', ''),\n\t\t\t(232, 2144, 1213, '08:00:00', '09:00:00', '', 'Advanced', 'Emma Brown', ''),\n\t\t\t(191, 2142, 1215, '12:30:00', '14:00:00', '', 'Weightlifting', 'Kevin Nomak', ''),\n\t\t\t(192, 2142, 1216, '12:30:00', '14:00:00', '', 'Weightlifting', 'Kevin Nomak', ''),\n\t\t\t(207, 2144, 1214, '11:00:00', '13:00:00', '', 'Beginners', 'Emma Brown', ''),\n\t\t\t(210, 2144, 2132, '08:00:00', '09:00:00', '', 'Beginners', 'Emma Brown', ''),\n\t\t\t(246, 2148, 1214, '13:00:00', '15:00:00', '', 'Beginners', 'Kevin Nomak', ''),\n\t\t\t(230, 2146, 1218, '16:00:00', '17:00:00', '', 'Thai boxing', 'Robert Bandana', ''),\n\t\t\t(315, 2159, 2132, '11:00:00', '12:45:00', '', '', '<strong>Instructor:</strong> M. Moreau<br/>\r\n<strong>Room:</strong> 6<br/>\r\n<strong>Level:</strong> Beginner', ''),\n\t\t\t(329, 2164, 1214, '09:00:00', '10:30:00', 'Mixed Martial Arts training with Muay Thai and Thai Boxing.', '', '<strong>Instructor:</strong> R. Bandana<br/>\r\n<strong>Room:</strong> 24<br/>\r\n<strong>Level:</strong> Beginner', ''),\n\t\t\t(313, 2164, 2132, '09:00:00', '10:30:00', '', '', '<strong>Instructor:</strong> R. Bandana<br/>\r\n<strong>Room:</strong> 24<br/>\r\n<strong>Level:</strong> Beginner', ''),\n\t\t\t(331, 2177, 1215, '14:00:00', '17:00:00', 'Super stamina workout and weightlifting.', '', '<strong>Instructor:</strong> K. Nomak<br/>\r\n<strong>Room:</strong> 305A<br/>\r\n<strong>Level:</strong> All Levels', ''),\n\t\t\t(319, 2159, 1215, '11:00:00', '12:45:00', '', '', '<strong>Instructor:</strong> M. Moreau<br/>\r\n<strong>Room:</strong> 6<br/>\r\n<strong>Level:</strong> Beginner', ''),\n\t\t\t(493, 2244, 2229, '16:00:00', '18:22:00', '', 'Horror', 'Free Entry<br/>\r\n142 min.', ''),\n\t\t\t(330, 2159, 1214, '11:00:00', '14:00:00', '', '', '<strong>Instructor:</strong> M. Moreau<br/>\r\n<strong>Room:</strong> 6<br/>\r\n<strong>Level:</strong> Advanced', ''),\n\t\t\t(314, 2164, 1213, '11:00:00', '12:45:00', '', '', '<strong>Instructor:</strong> R. Bandana<br/>\r\n<strong>Room:</strong> 24<br/>\r\n<strong>Level:</strong> Intermediate', ''),\n\t\t\t(459, 2298, 2230, '12:30:00', '14:00:00', '', 'Catering', 'Free Entry<br/>\r\n90 min.', ''),\n\t\t\t(327, 2164, 1217, '09:00:00', '12:45:00', 'Mixed Martial Arts training with Muay Thai and Thai Boxing.', '', '<strong>Instructor:</strong> R. Bandana<br/>\r\n<strong>Room:</strong> 24<br/>\r\n<strong>Level:</strong> All Levels', ''),\n\t\t\t(473, 2243, 2227, '16:30:00', '17:56:00', '', 'Animation', 'Free Entry<br/>\r\n86 min.', ''),\n\t\t\t(323, 2177, 1217, '14:00:00', '18:00:00', '', '', '<strong>Instructor:</strong> K. Nomak<br/>\r\n<strong>Room:</strong> 305A<br/>\r\n<strong>Level:</strong> All Levels', ''),\n\t\t\t(325, 2164, 1215, '09:00:00', '10:30:00', '', '', '<strong>Instructor:</strong> R. Bandana<br/>\r\n<strong>Room:</strong> 24<br/>\r\n<strong>Level:</strong> Beginner', ''),\n\t\t\t(301, 2177, 1213, '13:00:00', '14:00:00', '', '', '<strong>Instructor:</strong> K. Nomak<br/>\r\n<strong>Room:</strong> 305A<br/>\r\n<strong>Level:</strong> All Levels', ''),\n\t\t\t(300, 2177, 2132, '13:00:00', '14:00:00', '', '', '<strong>Instructor:</strong> K. Nomak<br/>\r\n<strong>Room:</strong> 305A<br/>\r\n<strong>Level:</strong> All Levels', ''),\n\t\t\t(309, 2159, 2132, '15:00:00', '16:30:00', '', '', '<strong>Instructor:</strong> M. Moreau<br/>\r\n<strong>Room:</strong> 6<br/>\r\n<strong>Level:</strong> Advanced', ''),\n\t\t\t(332, 2191, 1213, '09:00:00', '09:45:00', '', '', 'Class Leader<br/>Ann Smith', ''),\n\t\t\t(333, 2191, 1214, '10:00:00', '10:45:00', '', '', 'Class Leader<br/>Emma White', ''),\n\t\t\t(324, 2159, 1217, '13:00:00', '14:00:00', '', '', '<strong>Instructor:</strong> M. Moreau<br/>\r\n<strong>Room:</strong> 6<br/>\r\n<strong>Level:</strong> All Levels', ''),\n\t\t\t(310, 2159, 1213, '15:00:00', '16:30:00', '', '', '<strong>Instructor:</strong> M. Moreau<br/>\r\n<strong>Room:</strong> 6<br/>\r\n<strong>Level:</strong> Advanced', ''),\n\t\t\t(417, 2242, 2229, '14:40:00', '16:30:00', '', 'Animation', 'G Rating<br/>\r\n110 min.', ''),\n\t\t\t(433, 2264, 2229, '16:30:00', '17:30:00', '', 'Free Snacks', 'Festival Pass', ''),\n\t\t\t(492, 2244, 2227, '14:00:00', '16:22:00', '', 'Horror', 'Free Entry<br/>\r\n142 min.', ''),\n\t\t\t(488, 2266, 2227, '09:00:00', '12:30:00', '', 'Concert', '\$60 Entry<br/>\r\n210 min.<br/><br/>\r\nUnder 16''s to be accompanied by an adult.', ''),\n\t\t\t(467, 2239, 2231, '14:00:00', '16:15:00', '', 'Adventure', '\$10 Entry<br/>\r\n135 min.', ''),\n\t\t\t(560, 2353, 2343, '11:30:00', '12:45:00', '', '', 'Performance', ''),\n\t\t\t(434, 2264, 2231, '16:30:00', '17:30:00', '', 'Free Snacks', 'Festival Pass', ''),\n\t\t\t(466, 2236, 2230, '14:00:00', '16:10:00', '', 'Thriller', 'Free Entry<br/>\r\n130 min.', ''),\n\t\t\t(460, 2298, 2231, '12:30:00', '14:00:00', '', 'Catering', 'Free Entry<br/>\r\n90 min.', ''),\n\t\t\t(479, 2310, 2231, '16:30:00', '18:30:00', '', 'Thriller', '\$20 Entry<br/>\r\n120 min.', ''),\n\t\t\t(474, 2238, 2231, '09:00:00', '10:45:00', '', 'Action', 'Free Entry<br/>\r\n105 min.', ''),\n\t\t\t(458, 2298, 2229, '12:30:00', '14:00:00', '', 'Catering', 'Free Entry<br/>\r\n90 min.', ''),\n\t\t\t(435, 2264, 2232, '16:30:00', '17:30:00', '', 'Free Snacks', 'Festival Pass', ''),\n\t\t\t(477, 2245, 2232, '16:30:00', '17:56:00', '', 'Horror', '\$10 Entry<br/>\r\n86 min.', ''),\n\t\t\t(438, 2264, 2227, '16:30:00', '17:30:00', '', 'Free Snacks', 'Festival Pass', ''),\n\t\t\t(471, 2243, 2231, '11:00:00', '12:26:00', '', 'Animation', 'Free Entry<br/>\r\n86 min.', ''),\n\t\t\t(448, 2234, 2230, '11:00:00', '12:25:00', '', 'Animation', 'Free Entry<br/>\r\n85 min.', ''),\n\t\t\t(496, 2237, 2229, '18:30:00', '20:10:00', '', 'Action', 'Free Entry<br/>\r\n100 min.', ''),\n\t\t\t(461, 2298, 2227, '12:30:00', '14:00:00', '', 'Catering', 'Free Entry<br/>\r\n90 min.', ''),\n\t\t\t(490, 2235, 2230, '09:00:00', '10:42:00', '', 'Comedy', 'Free Entry<br/>\r\n102 min.', ''),\n\t\t\t(436, 2264, 2230, '16:30:00', '17:30:00', '', 'Free Snacks', 'Festival Pass', ''),\n\t\t\t(476, 2245, 2232, '11:00:00', '12:26:00', '', 'Horror', '\$10 Entry<br/>\r\n86 min.', ''),\n\t\t\t(485, 2241, 2232, '12:30:00', '16:30:00', '', 'Concert', '\$50 ticket<br/>\r\n240 min.<br/><br/>\r\nWith special guest Kevin Numan and Markus Smith.', ''),\n\t\t\t(491, 2235, 2229, '14:00:00', '15:42:00', '', 'Comedy', 'Free Entry<br/>\r\n102 min.', ''),\n\t\t\t(486, 2240, 2229, '09:00:00', '12:10:00', '', 'Concert', '\$50 ticket<br/>\r\n190 min.<br/><br/>\r\nWith special guest Kevin Numan and Markus Smith.', ''),\n\t\t\t(489, 2266, 2230, '16:30:00', '20:00:00', '', 'Concert', '\$60 Entry<br/>\r\n210 min.<br/><br/>\r\nUnder 16''s to be accompanied by an adult.', ''),\n\t\t\t(495, 2237, 2232, '09:00:00', '10:40:00', '', 'Action', 'Free Entry<br/>\r\n100 min.', ''),\n\t\t\t(573, 2365, 2342, '09:00:00', '12:00:00', '', '', 'Registration and General Information', ''),\n\t\t\t(561, 2350, 2343, '12:45:00', '14:00:00', '', '', 'Performance', ''),\n\t\t\t(581, 2375, 2342, '16:30:00', '19:00:00', '', '', 'Conference Banquet With Closing Ceremony. John Williams Speech.', ''),\n\t\t\t(570, 2351, 2343, '15:30:00', '16:45:00', '', '', 'Performance', ''),\n\t\t\t(519, 2359, 2346, '12:00:00', '13:15:00', '', '', 'Screening', ''),\n\t\t\t(536, 2367, 2344, '12:00:00', '15:00:00', '', '', 'Display', ''),\n\t\t\t(537, 2366, 2344, '15:00:00', '17:30:00', '', '', 'Display', ''),\n\t\t\t(526, 2362, 2346, '10:00:00', '12:00:00', '', '', 'Screening', ''),\n\t\t\t(558, 2355, 2343, '09:00:00', '10:15:00', '', '', 'Performance', ''),\n\t\t\t(520, 2361, 2346, '13:15:00', '14:40:00', '', '', 'Screening', ''),\n\t\t\t(554, 2357, 2345, '13:30:00', '14:15:00', '', '', 'Panel with Josh Kowalsky', ''),\n\t\t\t(535, 2368, 2344, '09:00:00', '12:00:00', '', '', 'Display', ''),\n\t\t\t(556, 2374, 2342, '08:30:00', '09:00:00', '', '', '', ''),\n\t\t\t(564, 2363, 2345, '09:00:00', '10:15:00', '', '', 'Panel with Ann Perkins', ''),\n\t\t\t(572, 2352, 2346, '15:30:00', '17:15:00', '', '', 'Performance', ''),\n\t\t\t(566, 2358, 2345, '11:30:00', '13:30:00', '', '', 'Panel with Robin Watson, Chris Prochaska and Shawn Georges', ''),\n\t\t\t(562, 2364, 2347, '09:00:00', '12:30:00', '', '', 'Free Entry', ''),\n\t\t\t(551, 2373, 2347, '12:30:00', '16:30:00', '', '', 'Luch Menu', ''),\n\t\t\t(567, 2356, 2345, '14:15:00', '16:15:00', '', '', 'Panel with Helena Howington, Frank Kasper and John Williams ', ''),\n\t\t\t(559, 2354, 2343, '10:15:00', '11:30:00', '', '', 'Performance', ''),\n\t\t\t(565, 2360, 2345, '10:15:00', '11:30:00', '', '', 'Panel with Robin Landrum', ''),\n\t\t\t(576, 2365, 2342, '13:30:00', '15:00:00', '', '', 'Registration and General Information', ''),\n\t\t\t(588, 2367, 2344, '14:30:00', '15:00:00', '', 'Comments', 'Comments on Display Session', ''),\n\t\t\t(589, 2366, 2344, '17:00:00', '17:30:00', '', 'Comments', 'Comments on Display Session', ''),\n\t\t\t(587, 2368, 2344, '11:30:00', '12:00:00', '', 'Comments', 'Comments on Display Session', '');";
     $wpdb->query($query);
     if ($result["info"] == "") {
         $result["info"] = __("dummy-timetable.xml file content and widgets settings has been imported successfully!", 'timetable');
     }
     echo "dummy_import_start" . json_encode($result) . "dummy_import_end";
     exit;
 }