get_head_title() . localize("content.item.head.title.suffix"); $content_head_description = $content->get_head_description(); $content_head_title = localize("content.item.og.title.prefix") . $content->get_head_title() . localize("content.item.og.title.suffix"); $content_head_og_description = $content->get_head_description(); } elseif($requested_content_display_type == ContentDisplayType::SEARCH) { $content_head_title = localize("content.search.head.title"); $content_head_description = localize("content.search.head.description");; $content_head_og_title = localize("content.search.og.title");; $content_head_og_description = localize("content.search.og.description");; } // TODO: Fix the OG URL tag to add the tags ! ?> <?php echo($content_head_title); ?>

'); echo(localize("content.header.base")); echo(''); echo(localize("content.error.header")); } elseif($requested_content_display_type == ContentDisplayType::SEARCH) { echo(''); echo(localize("content.header.base")); echo(''); echo(localize("content.search.header")); } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { echo(''); echo(localize("content.header.base")); echo(''); echo('' . $content->get_head_title() . ''); } ?>

' . $content_error_message . ''); goto content_printing_end; } if($requested_content_display_type == ContentDisplayType::SEARCH) { // We are handling a content search with at least one result. // Making the header with the amount of results. printMainHeader( count($filtered_content_index_data) > 1 ? localize("content.search.heading.main.multiple") : localize("content.search.heading.main.single"), "fad fa-file-search", count($filtered_content_index_data) . " " . ( count($filtered_content_index_data) > 1 ? localize("content.search.count.multiple") : localize("content.search.count.single"))); // Printing the entry for each piece of relevant content. for($iContent = 0; $iContent < count($filtered_content_index_data); $iContent++) { $current_content = $filtered_content_index_data[$iContent]; if($iContent > 0) { echo('
'); } echo('
'); echo(''); echo('
'); echo(''); echo('

' . $current_content["title"][$user_language] . '

'); echo('

' . $current_content["preamble"][$user_language] . '

'); echo('
'); echo('
'); echo('

'); for($iContentTag = 0; $iContentTag < count($current_content["tags"]); $iContentTag++) { echo('#' . $current_content["tags"][$iContentTag] . ''); } echo('

'); echo('
'); } // // Printing the tags used in the search and others that may be available. } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { echo($content->get_html()); } // Label used when there is an error to skip the content printing parts. content_printing_end: ?>
"); } ?>