# Airline theme (Avios)

Bright editorial travel-rewards theme for [Struxa CMS](https://github.com/struxa/struxa): hero, deal ticker, tools hub, destinations map, guides layout, and branded auth shells. Extends the **default** parent theme for CMS fallbacks.

**Requirements:** Struxa CMS 1.0.0+, PHP 8.1+.

Works best with the Avios / FL350 plugin set (destination reviews, How Many Avios, forum widgets, theme helpers). Core pages and content-type templates are included under `views/content/`.

## Install

From your Struxa site root:

```bash
git clone https://github.com/struxa/airline-theme.git themes/avios
```

Activate **Avios** under **Admin → Appearance → Themes**.

## Update

```bash
cd themes/avios
git pull
```

## Airport map data

`assets/data/airports.json` powers the destinations map and `airport()` Twig helper (via **Avios Theme Helpers** plugin). After adding new destination IATAs, sync coordinates from your site root:

```bash
php bin/sync-destination-airports.php --from-db
```

(Script lives in the FL350 site repo; copy or run equivalent if you maintain airports manually.)

## License

MIT — see `theme.json`.
