Shared
Table of Contents
Functions
- useCarousel() : void
- Carousel Component
- start_page() : void
- Renders the page header with navigation
- end_page() : void
- Renders the page footer
Functions
useCarousel()
Carousel Component
useCarousel(string $carouselLabel, array<int, array{src: string, alt?: string}> $imageMap, string $carouselId, mixed $event) : void
Reusable carousel component for displaying sliding image content. Used on homepage and other pages for featured content display.
Parameters
- $carouselLabel : string
- $imageMap : array<int, array{src: string, alt?: string}>
- $carouselId : string
- $event : mixed
Tags
start_page()
Renders the page header with navigation
start_page(string $title[, bool $wouldNav = true ][, array<string, mixed>|null $user = null ]) : void
Generates the HTML head section and navigation bar with responsive hamburger menu for mobile devices. Includes user-specific navigation options based on authentication status and user role.
Parameters
- $title : string
-
Page title for the browser tab
- $wouldNav : bool = true
-
Whether to display the navigation bar
- $user : array<string, mixed>|null = null
-
Current user data or null if not logged in
Tags
end_page()
Renders the page footer
end_page() : void
Generates the HTML footer section with navigation links, social media icons, and copyright information. Also handles cookie consent popup display.