Exhibit builder section has pages

exhibit_builder_section_has_pages returns true or false if the current section has pages.

Usage

<?php exhibit_builder_section_has_pages(); ?>

Arguments

None

Examples

The following example, used on an exhibit theme's show.php template file, will display a list of pages (using the exhibit_builder_page_nav) if the currently-viewed section has pages:

<?php
if (exhibit_builder_section_has_pages() {
    echo exhibit_builder_page_nav();
}
?>