This trait, Pages_Frontend, contains methods for handling different types of frontend pages and functionality in a web application.

Landing Page

phpInfo

Displays PHP configuration information.

public function phpInfo()

openai_controller

Handles OpenAI API requests for generating funny words.

public function openai_controller()
POST Parameters
object
Returns
object

openai_view

Loads the OpenAI view.

public function openai_view()

index

Handles the main landing page.

public function index($tag_id = false)
Parameters
object

Category Page

programme

Displays the event category overview.

public function programme($pretty_url)
Parameters
object

Normal Page Template

normal_page_template

A template for normal pages.

public function normal_page_template()

Custom Detail Page

custom_detail_without_modules

Displays a custom detail page for artists.

public function custom_detail_without_modules($pretty_url)
Parameters
object

Site Map

site_map

Generates a site map.

public function site_map()

search

Performs a search across articles and text modules.

public function search($search_term)
Parameters
object

Miscellaneous

heygen

Loads the Heygen view for logged-in users.

public function heygen()

cookies

Handles cookie-related functionality.

public function cookies()

This trait assumes the existence of various helper methods and properties that are not defined within the provided code snippet. These may be defined in a parent class or other traits.