2026-05-10 19:55:15 +00:00
|
|
|
# CLAUDE.md
|
|
|
|
|
|
|
|
|
|
This file provides guidance to Claude Code when working with this repository.
|
|
|
|
|
|
|
|
|
|
## Project Overview
|
|
|
|
|
|
2026-06-03 21:19:18 -05:00
|
|
|
**MokoJoomHero** -- Random hero image slideshow/video with content overlay for Joomla
|
2026-05-10 19:55:15 +00:00
|
|
|
|
|
|
|
|
| Field | Value |
|
|
|
|
|
|---|---|
|
|
|
|
|
| **Platform** | joomla |
|
|
|
|
|
| **Language** | PHP |
|
|
|
|
|
| **Default branch** | main |
|
|
|
|
|
| **License** | GPL-3.0-or-later |
|
|
|
|
|
| **Wiki** | [MokoJoomHero Wiki](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/wiki) |
|
|
|
|
|
| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) |
|
|
|
|
|
|
|
|
|
|
## Common Commands
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-05-23 17:51:54 -05:00
|
|
|
make build # Build the project
|
|
|
|
|
make lint # Run linters
|
|
|
|
|
make validate # Validate structure
|
|
|
|
|
make release # Full release pipeline
|
|
|
|
|
make minify # Minify CSS/JS assets
|
2026-05-10 19:55:15 +00:00
|
|
|
make clean # Clean build artifacts
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-05-23 17:51:54 -05:00
|
|
|
composer install # Install PHP dependencies
|
2026-05-10 19:55:15 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Architecture
|
|
|
|
|
|
2026-06-04 11:07:35 -05:00
|
|
|
This is a Joomla **site module** (`mod_mokojoomhero`).
|
2026-06-03 21:19:18 -05:00
|
|
|
|
|
|
|
|
- Random hero image slideshow or background video with content overlay
|
2026-06-04 07:45:23 -05:00
|
|
|
- Supports image folders, YouTube, Vimeo, local video, solid colour, gradient
|
|
|
|
|
- Configurable overlay, text alignment, card animation, parallax, content animations
|
2026-06-04 11:07:35 -05:00
|
|
|
- A/B testing with weighted variations, scheduling with start/end datetime
|
|
|
|
|
- Article content source, per-slide unique content via subform
|
2026-06-03 21:19:18 -05:00
|
|
|
|
|
|
|
|
### Key files
|
2026-06-04 11:07:35 -05:00
|
|
|
- `src/mod_mokojoomhero.xml` — module manifest
|
|
|
|
|
- `src/mod_mokojoomhero.php` — module entry point
|
|
|
|
|
- `src/tmpl/default.php` — template
|
|
|
|
|
- `src/media/` — CSS, JS, and web asset registry
|
|
|
|
|
- `src/language/` — en-GB and en-US translations
|
|
|
|
|
- `src/script.php` — install script (creates default image folder)
|
2026-05-10 19:55:15 +00:00
|
|
|
|
|
|
|
|
## Rules
|
|
|
|
|
|
2026-05-21 20:09:06 +00:00
|
|
|
- **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`)
|
2026-05-10 19:55:15 +00:00
|
|
|
- **Never commit** `.claude/`, `.mcp.json`, `TODO.md`, or `*.min.css`/`*.min.js`
|
|
|
|
|
- **Attribution**: use `Authored-by: Moko Consulting` in commits
|
|
|
|
|
- **Branch strategy**: develop on `dev`, merge to `main` for release
|
2026-06-03 21:19:18 -05:00
|
|
|
- **Minification**: handled at build time (CI)
|
2026-05-10 19:55:15 +00:00
|
|
|
- **Wiki**: documentation lives in the Gitea wiki, not in `docs/` files
|
|
|
|
|
- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)
|
2026-06-03 21:19:18 -05:00
|
|
|
|
|
|
|
|
## Coding Standards
|
|
|
|
|
|
|
|
|
|
- PHP 8.1+ minimum
|
|
|
|
|
- SPDX license headers on all PHP files
|