1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
# Northfield Theatre A WordPress theme for a fictional 1,200-seat receiving house in West Yorkshire. Built as a portfolio demonstration of the capability required for UK public-sector theatre tenders (Victoria Theatre Halifax and similar). It demonstrates: a custom branded WordPress theme, a Spektrix-style ticketing integration (mocked with JSON data), a custom localStorage + REST basket, WCAG 2.2 AA accessibility, mobile-first responsive design, Gutenberg block editor support, and a domain-mapped microsite concept (Moorside Town Hall). ## What's in the box **Pages** - `front-page.php` — homepage: hero, "This Week" tabs, Now Booking grid, About. - `page-whats-on.php` — filterable event listing with calendar. - `single-event.php` — event detail with sticky Book Now bar, tabs, booking modal. - `page-basket.php` + `page-checkout.php` — custom basket and checkout placeholder. - `page-seating.php` — interactive SVG seating plan with clickable zones. - `page-visit.php` — visitor information. - `page-access.php` — accessibility statement and information. - `page-our-story.php` — history, values, timeline, team, press. - `page-contact.php` — contact form with client-side validation. - `page-moorside.php` — branded microsite for the second venue. - `home.php` + `single.php` — news archive and single post. - `404.php`, `search.php`. **Data** - `data/events.json` — 21 events (18 main venue + 3 Moorside). - `data/instances.json` — 94 performance instances. - `data/ticket-types.json` — four ticket types with price multipliers. **Custom post types** - `nt_event` — imported from JSON on activation. - `nt_instance` — performance dates linked to events. - `event_category` taxonomy. **Mock Spektrix REST API** (namespace `spektrix-mock/v1`): ``` GET /events GET /events/{id} GET /instances GET /ticket-types/{event_id} GET /basket POST /basket/items PATCH /basket/items/{id} DELETE /basket/items/{id} ``` Basket state is persisted server-side via transients keyed by a session cookie. **Gutenberg blocks** (server-rendered, no build step) - `northfield/hero-gallery` - `northfield/event-grid` - `northfield/alert-banner` ## Install 1. Copy the theme folder to `wp-content/themes/northfield-theatre/`. 2. In the WordPress admin: **Appearance → Themes → Activate**. 3. On activation the theme will: - Import the 21 events and 94 instances from `data/*.json`. - Create all content pages (What's On, Basket, Seating Plan, Our Story, Contact, etc.). - Create the Primary and Footer navigation menus. - Seed 5 sample news posts. - Set the static front page and News as the posts page. 4. Permalink structure is set to `/%postname%/` automatically. If the theme was activated before this release, the missing pages and posts will be created idempotently on the next admin page load. To re-import event data at any time: **Tools → Import Events**. The "Force re-import" option wipes existing events before re-importing. ## Customising **Brand colours** — edit the CSS custom properties in `assets/css/main.css` (section 2, `:root`): ```css --color-primary: #1B4D3E; /* Deep green */ --color-accent: #E8A33D; /* Warm gold */ --color-dark: #1A1A1A; /* …etc */ ``` **Fonts** — Inter and Fraunces are self-hosted under `assets/fonts/`. Swap the woff2 files and update the `@font-face` blocks at the top of `main.css`. **Alert banner** — Appearance → Customize → Theme Options (or use the Customizer theme mod `northfield_alert_message`). **GA4 measurement ID** — replace `G-XXXXXXXXXX` in `inc/analytics.php`. Analytics only load after cookie consent is accepted and not for logged-in admins. ## Swapping the mock API for real Spektrix The mock layer was deliberately kept isolated. To point the frontend at a real Spektrix instance, only these files need changes: 1. **`inc/data-helpers.php`** — replace each function (`northfield_get_events`, `northfield_get_instances`, `northfield_get_event_ticket_types` etc.) with HTTP calls to the real Spektrix API v3. Function signatures and return shapes stay the same. 2. **`inc/spektrix-mock-api.php`** — either remove (if your frontend can hit Spektrix directly via your API integration user) or repoint the REST handlers to proxy to Spektrix so CORS stays clean. 3. **Basket session** — replace the transient-backed basket with Spektrix's own basket session (cookie-based) via the API. The frontend JavaScript (`basket.js`, `single-event.js`, `whats-on-filter.js`) does not need to change — it consumes the REST endpoints defined in `northfieldData.restUrl` and the exact payload shape is preserved. ## Accessibility - WCAG 2.2 AA colour contrast across the palette. - Semantic landmarks, skip-to-main link, visible focus rings, keyboard-accessible dropdowns, modal, accordion and seating plan. - `prefers-reduced-motion` respected throughout. - Public-sector accessibility statement on `/access/`. - Interactive SVG seating plan uses `role="button"` with keyboard (Enter/Space) activation. ## Performance - Conditional CSS/JS loading per-template via `inc/enqueue.php`. - Deferred script strategy for non-critical JS. - Self-hosted variable fonts with `font-display: swap` and preload. - No jQuery, no JavaScript frameworks, no CSS preprocessors. - Images lazy-loaded + `decoding="async"`. ## Deployment 1. Upload the theme directory via SFTP, or commit to a repo and deploy with your preferred tool (Deployer, WP Pusher, `rsync` etc.). 2. Ensure WordPress 6.3+ and PHP 8.0+ are available. 3. On first load the theme will set up pages, menus, CPTs and import events automatically. 4. Set the GA4 Measurement ID in `inc/analytics.php`. 5. Populate the alert banner via the Customizer if needed. No build step is required — ship the theme as-is. ## Licence GPL v2 or later. Stock imagery under the Unsplash / Pexels licences. Fraunces and Inter are under the SIL Open Font License.