X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Ffrio_boot.php;h=59a246bf99647cf53ad6eca0cb8086923a1b37f6;hb=e301fa083291f2df98192532c9c5cba03abfeb5a;hp=827874d7e1628ac60247ed14a3a30f8b122210c1;hpb=b67378ac6983d185175d50f8129d443b649a1a46;p=friendica.git diff --git a/view/theme/frio/php/frio_boot.php b/view/theme/frio/php/frio_boot.php index 827874d7e1..59a246bf99 100644 --- a/view/theme/frio/php/frio_boot.php +++ b/view/theme/frio/php/frio_boot.php @@ -2,18 +2,18 @@ /** * @file view/theme/frio/php/frio_boot.php - * + * * @brief This file contains functions for page contstruction - * + * */ /** * @brief Load page template in dependence of the template mode - * + * * @todo Check if this is really needed. */ -function load_page(&$a) { +function load_page(App $a) { if(isset($_GET["mode"]) AND ($_GET["mode"] == "minimal")) { require "view/theme/frio/minimal.php"; } elseif((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) { @@ -27,16 +27,16 @@ function load_page(&$a) { require_once(str_replace('theme/' . current_theme() . '/', '', $template)); } - + } /** * @brief Check if page is a modal page - * + * * This function checks if $_REQUEST['pagename'] is * a defined in a $modalpages - * + * * @return bool */ function is_modal() { @@ -48,16 +48,16 @@ function is_modal() { $is_modal = true; } } - + return $is_modal; } /** * @brief Array with modalpages - * + * * The array contains the page names of the pages * which should displayed as modals - * + * * @return array Pagenames as path */ function get_modalpage_list() { @@ -74,10 +74,10 @@ function get_modalpage_list() { /** * @brief Array with standard pages - * + * * The array contains the page names of the pages * which should displayed as standard-page - * + * * @return array Pagenames as path */ function get_standard_page_list() { @@ -91,10 +91,10 @@ function get_standard_page_list() { /** * @brief Check if page is standard page - * + * * This function checks if $_REQUEST['pagename'] is * a defined $standardpages - * + * * @param string $pagetitle Title of the actual page * @return bool */ @@ -107,12 +107,12 @@ function is_standard_page($pagetitle) { $is_standard_page = true; } } - + return $is_standard_page; } /** * @brief Get the typ of the page - * + * * @param type $pagetitle * @return string */