"http://www.schema.org", "@type" => "SportsOrganisation", "name" => "Pa-Kua Cambridge", "url" => "https://pakua-cambridge.co.uk", "telephone" => "00441223852904", "email" => "cambridge@pakuauk.com", "image" => "https://pakua-cambridge.co.uk/favicon.png", "address" => array( "@context" => "http://www.schema.org", "@type" => "PostalAddress", "streetAddress" => "45 Keynes Road", "addressLocality" => "Cambridge", "postalCode" => "CB5 8PP" ), ); $discipline_list = array( "@context" => "https://schema.org", "@type" => "ItemList", "name" => "Modalities of Pa-Kua in Cambridge", "itemListElement" => array( array( "@context" => "https://schema.org", "@type" => "ListItem", "position" => "1", "item" => array( "@context" => "http://www.schema.org", "@type" => "Course", "name" => "Martial Art & Self-Defense for kids and adults", "description" => "Pa-Kua martial art is a complex, internal martial art based on multiple styles, and ancient Chinese knowledge.", "image" => "https://pakua-cambridge.co.uk/martialart.jpg", "url" => "https://pakua-cambridge.co.uk/#martialart", "video" => array( "https://www.youtube.com/watch?v=AfT2hM5FcgI", "https://www.youtube.com/watch?v=XCw3jzzup3w" ), "provider" => $provider ) ), array( "@context" => "https://schema.org", "@type" => "ListItem", "position" => "2", "item" => array( "@context" => "http://www.schema.org", "@type" => "Course", "name" => "Pa-Kua Chinese Archery for teens and adults", "description" => "Pa-Kua Archery is a Chinese archery, that incorporates martial art elements, and uses traditional recurve bows, bamboo arrows, archery thumb rings with thumb pull technique.", "image" => "https://pakua-cambridge.co.uk/archery.jpg", "url" => "https://pakua-cambridge.co.uk/#archery", "video" => array( "https://www.youtube.com/watch?v=Ds5zO-_ONQY", "https://www.youtube.com/watch?v=FLiNcw7_sGc", "https://www.youtube.com/watch?v=IHQ_-3HOn_g" ), "provider" => $provider ) ), array( "@context" => "https://schema.org", "@type" => "ListItem", "position" => "3", "item" => array( "@context" => "http://www.schema.org", "@type" => "Course", "name" => "Tai Chi Cosmodynamics for kids and adults", "description" => "Pa-Kua Cosmodynamics is the study and practice of slow, Yin movements of Martial Arts in order to train and control your body, to relieve joint pain, and to understand the universe around us.", "image" => "https://pakua-cambridge.co.uk/taichi.jpg", "url" => "https://pakua-cambridge.co.uk/#cosmodynamics", "video" => array( "https://www.youtube.com/watch?v=ATyd4HHcTeA", "https://www.youtube.com/watch?v=2skyNNf83k8" ), "provider" => $provider ) ) ) ); array_push($output, $discipline_list); $e = array( "@context" => "http://www.schema.org", "@type" => "SportsEvent", "eventAttendanceMode" => "https://schema.org/OfflineEventAttendanceMode", "eventStatus" => "https://schema.org/EventScheduled", "organizer" => $provider, "performer" => array( "@context" => "http://www.schema.org", "@type" => "PerformingGroup", "name" => "Pa-Kua Cambridge", ), "location" => array ( "@context" => "http://www.schema.org", "@type" => "LocalBusiness", "url" => "https://www.klubpolonia.co.uk/", "name" => "Polonia Club", "telephone" => "00441223365854", "priceRange" => "££", "email" => "info@klubpolonia.co.uk", "image" => "https://www.klubpolonia.co.uk/wp-content/uploads/2018/03/polonia-front.jpg", "address" => array( "@context" => "http://www.schema.org", "@type" => "PostalAddress", "streetAddress" => "231 Chesterton Road", "addressLocality" => "Cambridge", "postalCode" => "CB4 1AS" ), "geo" => array( "@context" => "http://www.schema.org", "@type" => "GeoCoordinates", "latitude" => 52.21576358, "longitude" => 0.13070574 ), ), "offers" => array( array( "@context" => "http://www.schema.org", "@type" => "Offer", "name" => "Trial class (your first ever class)", "url" => "mailto:cambridge@pakuauk.com", "price" => "0", "priceCurrency" => "GBP", "validFrom" => "2021-11-03T09:00:00+01:00", "availability" => "https://schema.org/InStock", "description" => "A free trial class for each discipline." ), array( "@context" => "http://www.schema.org", "@type" => "Offer", "name" => "Pay as you go (single class)", "url" => "https://buy.stripe.com/28o9EA5Tib4C2Fq001", "price" => "10", "priceCurrency" => "GBP", "validFrom" => "2021-11-03T09:00:00+01:00", "availability" => "https://schema.org/InStock", "description" => "A single class." ), array( "@context" => "http://www.schema.org", "@type" => "Offer", "name" => "Pay monthly (1 class per week)", "url" => "https://buy.stripe.com/00geYUgxW0pYa7S28a", "price" => "34", "priceCurrency" => "GBP", "validFrom" => "2021-11-03T09:00:00+01:00", "availability" => "https://schema.org/InStock", "description" => "Monthly subscription for 1 class per week." ), array( "@context" => "http://www.schema.org", "@type" => "Offer", "name" => "Pay monthly (2 classes per week)", "url" => "https://buy.stripe.com/9AQ184chGdcK6VGfZc", "price" => "49", "priceCurrency" => "GBP", "validFrom" => "2021-11-03T09:00:00+01:00", "availability" => "https://schema.org/InStock", "description" => "Monthly subscription for 2 classes per week." ), ), "startDate" => "", "endDate" => "", ); $b = strtotime("now"); for($i=0; $i<3; $i++) { $nextWed = strtotime("next Wednesday", $b); $e_ = $e; $e_["name"] = "Tai Chi Cosmodynamics"; $e_["description"] = "Study and practice movements of martial arts to train and control your body, to relieve joint pain, and to understand the universe around us."; $e_["image"] = "https://pakua-cambridge.co.uk/taichi.jpg"; $e_["url"] = "https://pakua-cambridge.co.uk/#cosmodynamics"; $st = $nextWed + (18 * 60 * 60); $et = $nextWed + (19 * 60 * 60); $e_["startDate"] = date(DATE_ATOM, $st); $e_["endDate"] = date(DATE_ATOM, $st); array_push($output, $e_); $e_ = $e; $e_["name"] = "Martial art & Self-Defense"; $e_["description"] = "Learn to defend yourself through an internal martial art based on multiple styles, in a non-competitive, friendly, inclusive environment. "; $e_["image"] = "https://pakua-cambridge.co.uk/martialart.jpg"; $e_["url"] = "https://pakua-cambridge.co.uk/#martialart"; $st = $nextWed + (19 * 60 * 60); $et = $nextWed + (20 * 60 * 60); $e_["startDate"] = date(DATE_ATOM, $st); $e_["endDate"] = date(DATE_ATOM, $et); array_push($output, $e_); $b = $nextWed; } echo(json_encode($output, JSON_PRETTY_PRINT));