hPage.php

The hPage.php helper is designed to manage static pages within Osclass. It provides functions to retrieve the current static page object, access its fields such as title, text, and metadata, and perform operations such as counting and iterating through the available static pages. Additionally, it includes functions to determine whether a static page should be shown in the footer or indexed by search engines.

Functions Description

osc_static_page() – Gets the current page object.

osc_static_page_field($field, $locale = '') – Gets the specified field from the current page.

osc_static_page_title($locale = '') – Gets the title of the current page.

osc_static_page_text($locale = '') – Gets the text content of the current page.

osc_static_page_id() – Gets the ID of the current page.

osc_static_page_order() – Retrieves the order value of the current page.

osc_static_page_mod_date() – Gets the modification date of the current page.

osc_static_page_pub_date() – Gets the publication date of the current page.

osc_static_page_url($locale = '') – Retrieves the URL of the current page.

osc_get_static_page($internal_name, $locale = '') – Gets the specified static page by its internal name.

osc_count_static_pages() – Gets the total number of static pages.

osc_has_static_pages() – Indicates if there are more static pages in the list.

osc_reset_static_pages() – Resets the internal pointer of the static pages array to its first element.

osc_static_page_footer_link() – Returns true if the page should be shown in the footer.

osc_static_page_indexable() – Returns true if the page should be indexable by search engines.