pakua-cambridge/index.php

403 lines
20 KiB
PHP

<html lang="en">
<?php
$org = json_decode('{
"name": "Pa-Kua Cambridge",
"site": "pakua-cambridge.co.uk",
"url": "https://pakua-cambridge.co.uk/",
"logo": "https://pakua-cambridge.co.uk/favicon.png",
"email": "contact@pakua-cambridge.co.uk",
"tel": "00441223852904"
}', True);
?>
<head>
<title><?php echo($org['name']); ?></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1" />
<meta name="author" content="Pa-Kua International League" />
<link rel="icon" href="<?php echo($org['logo']); ?>" />
<link rel="shortcut icon" type="image/png" href="<?php echo($org['logo']); ?>" />
<link rel="canonical" href="<?php echo($org['url']); ?>" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta property="og:title" content="<?php echo($org['name']); ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($org['url']); ?>" />
<meta property="og:description" content="" />
<meta property="og:site_name" content="pakua-cambridge.co.uk" />
<meta property="og:image" content="<?php echo($org['logo']); ?>" />
<meta property="article:published_time" content="2021-09-01T09:00:00+01:00">
<meta property="article:modified_time" content="2021-09-01T09:00:00+01:00">
<meta property="article:author" content="Pa-Kua International League">
<link rel="stylesheet" href="style.css" media="all" />
<link rel="stylesheet" href="print.css" media="print">
</head>
<body>
<div id="header" role="banner">
<div id="logo">
<img src="pakua-logo.svg" alt="logo of the Pa-Kua International League" />
</div>
<div class="nav" role="navigation">
<ul>
<li><a href="#schedule">Schedule</a></li>
<li><a href="#payments">Payments</a></li>
<li><a href="#instructors">Instructors</a></li>
</ul>
</div>
<div class="nav" role="navigation">
<ul>
<li><a href="#documents">Documents</a></li>
<li><a href="#links">Links</a></li>
<li><a href="#footer">Contact</a></li>
</ul>
</div>
</div>
<div id="main" role="main">
<div id="article" class="h-entry hentry" vocab="http://schema.org/" typeof="Article" resource="#article" >
<img class="photo logo u-photo u-logo" property="image" src="<?php echo($org['logo']); ?>" alt="<?php echo($org['name']); ?>" hidden="hidden" />
<h1 class="p-name entry-title" property="headline"><?php echo($org['name']); ?></h1>
<div class="e-summary entry-summary" property="description">
<p>Pa-Kua is an international school of martial arts established in 1976, where we teach a system based on multiple styles and ancient Chinese knowledge. We offer a unique approach which emphasizes family atmosphere, personalized attention, acceptance of all people, and individual evolution.</p>
<p>The homepage of the Pa-Kua International League is <a href="https://pakua.com">pakua.com</a>, with information about our history, other locations around the world, and details on what we teach.</p>
</div>
<div class="e-content entry-content" property="articleBody">
<h2><a id="disciplines" name="disciplines">Disciplines of Pa-Kua in Cambridge</a></h2>
<div class="grid large">
<?php
$disciplines = json_decode('{
"acrobatics": {
"image": "acrobacia.jpg",
"alt": "photo of people practising Pa-Kua acrobatics",
"name": "Acrobatics",
"url": "https://www.pakua.com/acrobatics/",
"description": "Pa-Kua Acrobatics a discpipline based Chinese acrobatics and acro-yoga",
"active": 0
},
"archery": {
"image": "arqueria.jpg",
"alt": "photo of a Pa-Kua Archer",
"name": "Archery",
"url": "https://www.pakua.com/archery/",
"description": "Pa-Kua Archery is a Chinese archery that incorporates martial art elements and uses traditional recurve bows and bamboo arrows",
"active": 1
},
"weapons": {
"image": "armas.jpg",
"alt": "photo of a Pa-Kua Master with sword",
"name": "Edged Weapons",
"url": "https://www.pakua.com/edged-weapons/",
"description": "Pa-Kua Edged Weapons is a discipline where one can learn to use swords, knives, and spears.",
"active": 0
},
"martialart": {
"image": "marcial.jpg",
"alt": "photo of a Pa-Kua martial artists",
"name": "Martial Art",
"url": "https://www.pakua.com/martial-art/",
"description": "Pa-Kua martial art is an internal martial art based on multiple styles and ancient Chinese knowledge.",
"active": 0
},
"cosmo": {
"image": "cosmo.jpg",
"alt": "photo of Pa-Kua members in a Cosmodynamics class",
"name": "Tai-chi - Cosmodynamics",
"url": "https://www.pakua.com/tai-chi-en-pakua/",
"description": "Pa-Kua Tai-Chi - Cosmodynamics is the practise of the internal aspect of martial arts and the the understanding of the universe surrounding us.",
"active": 0
}
}', True);
?>
<?php
foreach($disciplines as $key => $details):
if($details['active'] == 0) {
continue;
}
?>
<div vocab="http://schema.org/" typeof="Course">
<img property="image" src="<?php echo($details['image']); ?>" alt="<?php echo($details['alt']); ?>">
<h4 property="name"><?php echo($details['name']); ?></h4>
<a class="more" property="url" href="<?php echo($details['url']); ?>">read more on<br /> pakua.com »</a>
<span property="description" content="<?php echo($details['description']); ?>"></span>
<div property="provider" vocab="http://schema.org/" typeof="Organization" hidden="hidden">
<img property="image" src="<?php echo($org['logo']); ?>" alt="<?php echo($org['name']); ?>" />
<span property="name"><?php echo($org['name']); ?></span>
<a property="url" href="<?php echo($org['url']); ?>"><?php echo($org['url']); ?></a>
<a href="mailto:<?php echo($org['email']); ?>"><span property="email"><?php echo($org['email']); ?></span></a>
<a href="tel:<?php echo($org['tel']); ?>"><span property="telephone"><?php echo($org['tel']); ?></span></a>
</div>
</div>
<?php endforeach; ?>
</div>
<h2><a id="schedule" name="schedule">Classes and Events</a></h2>
<div class="h-feed">
<?php
$event_templates = json_decode('{
"archery": {
"name": "Pa-Kua Archery",
"img": "archery-event-header.jpg",
"alt": "Pa-Kua Archery in Dojo Stara Wies",
"addr": {
"name": "Fenners Gallery, Kelsey Kerridge Sports Centre",
"url": "https://www.kelseykerridge.co.uk/",
"streetAddress": "Queen Anne Terrace",
"addressLocality": "Cambridge",
"postalCode": "CB1 1NA"
},
"description": "2 hour Pa-Kua Archery session using traditional recurve bows with bamboo arrows, learning Chinese archery with martial art elements.",
"tickets": [
{
"name": "Using school bows & arrows",
"price": "24",
"validFrom": "2021-09-02T09:00:00+01:00",
"description": "Attending to the session using recurve bows and arrows provided by Pa-Kua Cambridge."
},
{
"name": "Using your own bow with school arrows",
"price": "20",
"validFrom": "2021-09-02T09:00:00+01:00",
"description": "Your bow should be a traditional recurve bow, ideally around 30# on 28\", and must be below 60# on 28\". We will not allow participation with compound, takedown, hunting, or similar bows. There will be no refund in case of breaching these rules. If you are in doubt, please get in touch with us before purchasing a ticket."
},
{
"name": "Using your own bow & your own arrows",
"price": "16",
"validFrom": "2021-09-02T09:00:00+01:00",
"description": "Your bow should be a traditional recurve bow, ideally around 30# on 28\", and must be below 60# on 28\". We will not allow participation with compound, takedown, hunting, or similar bows. Your arrows must be equipped with target practice arrow heads, and we heavily recommend using bamboo arrows. There will be no refund in case of breaching these rules. If you are in doubt, please get in touch with us before purchasing a ticket."
}
]
}
}', True);
$archery_schedules = json_decode(file_get_contents('eventbrite-archery.json'), True);
$archery_schedules = $archery_schedules["events"]
?>
<?php foreach($archery_schedules as $event_schedule) : ?>
<?php
if(stristr($event_schedule['name']['text'], 'archery')){
$event = $event_templates['archery'];
}
?>
<?php if(strtotime($event_schedule['start']['utc']) < (time() + 3600)) { continue; } ?>
<?php date_default_timezone_set("Europe/London"); ?>
<div class="h-event" vocab="https://schema.org/" typeof="Event">
<h3 class="p-name" property="name">
<?php echo($event['name']) ?>
</h3>
<img class="u-photo photo" property="image" src="<?php echo($event['img']) ?>" alt="<?php echo($event['alt']) ?>" hidden="hidden" />
<div>
<strong>When:</strong>
<time class="dt-start" property="startDate" datetime="<?php echo($event_schedule['start']['utc']) ?>">
<?php echo(strftime("%d %B %Y, %A, %I %p", strtotime($event_schedule['start']['utc']))); ?>
</time>
<span class="to">to</span>
<time class="dt-end" property="endDate" datetime="<?php echo($event_schedule['end']['utc']) ?>">
<?php echo(strftime("%I %p", strtotime($event_schedule['end']['utc']))); ?>
</time>
</div>
<div class="addr">
<strong>Where:</strong>
<span property="location" typeof="Place" class="p-location">
<a href="<?php echo($event['addr']['url']) ?>" property="url">
<span property="name">
<?php echo($event['addr']['name']) ?>
</span>,
<span class="address" property="address" typeof="PostalAddress">
<span property="streetAddress">
<?php echo($event['addr']['streetAddress']) ?>
</span>,
<span property="addressLocality">
<?php echo($event['addr']['addressLocality']) ?>
</span>,
<span property="postalCode">
<?php echo($event['addr']['postalCode']) ?>
</span>
</span>
</a>
</span>
</div>
<p class="p-summary" property="description">
<?php echo($event['description']) ?>
</p>
<div property="organizer" class="p-author h-card vcard" vocab="http://schema.org/" typeof="Organization" hidden="hidden">
<img class="photo logo u-photo u-logo" property="image" src="<?php echo($org['logo']); ?>" alt="<?php echo($org['name']); ?>" />
<span property="name" class="fn name p-name">
<?php echo($org['name']); ?>
</span>
<a property="url" class="url u-url u-uid org u-org" href="<?php echo($org['url']); ?>">
<?php echo($org['url']); ?>
</a>
<a href="mailto:<?php echo($org['email']); ?>" class="email u-email">
<span property="email">
<?php echo($org['email']); ?>
</span>
</a>
<a href="tel:<?php echo($org['tel']); ?>" class="tel u-tel">
<span property="telephone">
<?php echo($org['tel']); ?>
</span>
</a>
</div>
<span property="eventAttendanceMode" content="https://schema.org/OfflineEventAttendanceMode"></span>
<span property="eventStatus" content="https://schema.org/EventScheduled"></span>
<?php foreach($event['tickets'] as $ticket): ?>
<p property="offers" vocab="https://schema.org/" typeof="Offer" class="offer">
<span property="name"><?php echo($ticket['name']); ?></span>:
<a property="url" href="<?php echo($event_schedule['url']); ?>"><?php echo($event_schedule['url']); ?></a>
<span property="price" content="<?php echo($ticket['price']); ?>"></span>
<span property="priceCurrency" content="GBP"></span>
<span property="validFrom" content="<?php echo($ticket['validFrom']); ?>"></span>
<span property="availability" content="https://schema.org/InStock"></span>
<span property="description"><?php echo($ticket['description']); ?></span>
</p>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
<!-- <h3>Monthly classes</h3> -->
<!-- <h3>Weekly classes</h3> -->
<h2><a id="payments" name="payments">Payments</a></h2>
<div id="eventbrite-widget-container-169252373405"></div>
<script src="https://www.eventbrite.co.uk/static/widgets/eb_widgets.js"></script>
<script type="text/javascript">
var exampleCallback = function() {
console.log('Order complete!');
};
window.EBWidgets.createWidget({
// Required
widgetType: 'checkout',
eventId: '169252373405',
iframeContainerId: 'eventbrite-widget-container-169252373405',
// Optional
//iframeContainerHeight: 425, // Widget height in pixels. Defaults to a minimum of 425px if not provided
//onOrderComplete: exampleCallback // Method called when an order has successfully completed
});
</script>
<!-- <h3>Drop-in fees</h3> -->
<!-- <h3>Membership fees</h3> -->
<h3>Special Class and Itinerancy Payments</h3>
<p>
Payments of special classes with visiting Masters, and payments of itinerancies have to be made via <a href="https://europa.pakua.com/">https://europa.pakua.com/</a>.
</p>
<h2><a id="instructors" name="instructors">Instructors</a></h2>
<div class="grid">
<div>
<img src="peter-molnar.jpg">
<h4>Peter Molnar</h4>
<a class="more" href="https://bmaba.org.uk/verify/311040000001909038-2/">Verify via BMABA »</a>
</div>
</div>
<h2><a id="documents" name="documents">Documents</a></h2>
<h3>Documents to download</h3>
<div class="grid">
<div>
<img src="student-manual-cover.jpg" />
<h4><a href="pakua-student-handbook.pdf">Pa-Kua Manual for Students</a></h4>
</div>
</div>
<h3>Legal documents</h3>
<ul>
<li><a href="pakua_cambridge-safeguarding_policy.html">Safeguarding Statement and Policy</a></li>
<li><a href="pakua_cambridge-code_of_conduct.html">Code of Conduct</a></li>
<li><a href="pakua_cambridge-privacy_policy.html">Privacy Policy</a></li>
<li><a href="pakua_cambridge-student_registration_form.html">Student Registration Form</a></li>
</ul>
<h3>Risk Assessments</h3>
<ul>
<li><a href="pakua_cambridge-risk_assessment-fenners_gallery_2021.html">Risk Assessment for Pa-Kua Archery in Fenners Gallery of Kelsey Kerridge</a></li>
</ul>
<h2><a id="links" name="links">Links</a></h2>
<dl>
<dt><a href="https://pakua.com/">Pa-Kua International League &raquo;</a></dt>
<dd>Read about the international school, of our history, about details on the disciplines!</dd>
<dt><a href="https://www.pakuastore.com/">Pa-Kua Accessories Store &raquo;</a></dt>
<dd>Buy equipment for our classes: uniforms, bows, arrows, clothing, etc.</dd>
</ul>
</div>
<div class="entry-footer" hidden="hidden">
<p>
First published at:
<time datetime="2021-09-01T09:00:00+01:00" class="dt-published published" property="datePublished">01/September/2021</time><br />
Last modified at:
<time datetime="2021-09-07T13:15:00+01:00" class="dt-updated updated" property="dateModified">07/September/2021</time>
</p>
<p>
Original article URL:
<a class="url u-url" property="url" href="<?php echo($org['url']); ?>"><?php echo($org['url']); ?></a>
</p>
<div property="publisher" vocab="http://schema.org/" typeof="Organization" hidden="hidden">
<img property="image" src="<?php echo($org['logo']); ?>" alt="<?php echo($org['name']); ?>" />
<span property="name"><?php echo($org['name']); ?></span>
<a property="url" href="<?php echo($org['url']); ?>"><?php echo($org['url']); ?>/</a>
<a href="mailto:<?php echo($org['email']); ?>"><span property="email"><?php echo($org['email']); ?></span></a>
<a href="tel:<?php echo($org['tel']); ?>"><span property="telephone"><?php echo($org['tel']); ?></span></a>
</div>
<div class="p-author h-card vcard" property="author" vocab="http://schema.org/" typeof="Organization">
<img class="photo logo u-photo u-logo" property="image" src="<?php echo($org['logo']); ?>" alt="<?php echo($org['name']); ?>" />
<a class="url u-url u-uid fn name p-name org u-org" property="url" href="<?php echo($org['url']); ?>" rel="me">
<span property="name"><?php echo($org['name']); ?></span>
</a><br />
<a class="email u-email" href="mailto:<?php echo($org['email']); ?>"><span property="email"><?php echo($org['email']); ?></span></a>
<a class="tel u-tel" href="tel:<?php echo($org['tel']); ?>"><span property="telephone"><?php echo($org['tel']); ?></span></a>
</div>
</div>
</div>
</div>
<div id="footer" role="contentinfo">
<div class="p-author h-card vcard" vocab="http://schema.org/" typeof="Organization">
<img class="photo logo u-photo u-logo" property="image" src="<?php echo($org['logo']); ?>" alt="<?php echo($org['name']); ?>" />
<p>
<a class="url u-url u-uid fn name p-name org u-org" property="url" href="<?php echo($org['url']); ?>" rel="me">
<span property="name"><?php echo($org['name']); ?></span>
</a>
</p>
<p class="note p-note">
Cambridge branch of The Pa-Kua International League in the United Kingdom.
</p>
<!--, teaching Martial Art &amp; Self-Defence for adults and kids, Acrobatics &amp; Acro-Yoga, Oriental Archery, and Chinese Edged Weapons.-->
<p>
<strong>Email:</strong>
<a class="email u-email" href="mailto:<?php echo($org['email']); ?>">
<span property="email"><?php echo($org['email']); ?></span>
</a><br />
<strong>Phone:</strong>
<a class="tel u-tel" href="tel:<?php echo($org['tel']); ?>">
<span property="telephone"><?php echo($org['tel']); ?></span>
</a>
<br />
<span>© 2021 by Peter Molnar, trading as <?php echo($org['name']); ?></span>
</p>
</div>
</div>
</body>
</html>