This document describes the Frontend Website system of the Hotelaro codebase. It covers the structure, theming, customization, and main public-facing features of the website as seen by hotel guests and visitors. This includes the Moonlit theme, the website builder, and the main public pages (such as rooms, restaurant, blog, and activities).
Scope:
Not covered here:
The Frontend Website is the public-facing entry point for hotel guests and visitors. It provides:
The Frontend Website is a modular, theme-based system. The main theme is "Moonlit", which provides a set of components and page templates. The website builder allows admins to select layouts, edit content, and adjust theme settings.
Diagram: "Frontend Website High-Level Structure"
The theme system is responsible for the look and feel of the public website. The main theme, "Moonlit", is implemented as a set of PHP view components, CSS, and assets.
| Component Type | Example File Path | Description |
|---|---|---|
| Header | components/header/header-1.php | Main navigation and branding |
| Hero/Banner | components/hero/home/home-1.php | Homepage banner/slider |
| Footer | components/footer/footer-1.php | Footer area |
| Room Cards | components/rooms/room-1.php | Room listing cards |
| Gallery | components/gallery/gallery-1.php | Image gallery section |
Diagram: "Theme System and Code Entities"
The Website Builder allows hotel admins to customize the public website without editing code. It provides:
Diagram: "Website Builder UI to Code Mapping"
The public website includes several main pages, each implemented as a PHP view under the theme directory. These pages are:
| Page Type | Example File Path | Description |
|---|---|---|
| Home | Index/index-1.php, Index/index-3.php | Main landing page |
| About | Pages/about.php | About the hotel |
| Activities | Pages/activities.php | Activities and experiences |
| Restaurant | Pages/resturant.php | Restaurant info and gallery |
| Blog | Pages/blog.php | Blog articles and news |
| Room Listings | Pages/room-one.php, Pages/room-two.php, etc. | Room types and details |
| Room Details | Pages/room-details-1.php, Pages/room-details-2.php | Detailed room info |
Each page is composed of reusable components (header, hero, sections, footer) and can be customized via the website builder.
The frontend website integrates with the booking engine to allow guests to:
Room search forms and booking widgets are implemented as components and included in room listing and detail pages.
Styling for the frontend website is managed through:
These files define typography, color schemes, layout, and responsive behavior.
The frontend website is built from modular components, which are included in page templates. For example, the home page (Index/index-1.php) includes:
This modular approach allows for easy customization and extension.
Bridging Diagram: "Public Page Names to Code Files"
The Frontend Website system provides a modular, theme-driven, and customizable public website for hotels using the Hotelaro platform. It is built on reusable PHP components, a flexible website builder, and integrates with the booking engine for real-time room availability and reservations.
For more details on theme customization, see Theme System.
For a breakdown of public pages, see Public Pages.
For website builder internals, see Website Builder.