X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Ffrio_boot.php;h=3f8ed1ed0b0e87a857aff5e56c84781768d8bbff;hb=e88781164a2e60c439c755d96a639ef2093a7305;hp=17fbb1fbac85a3433fd4e1ad9a3a1720010e4735;hpb=1f58bcc114928a5a3cd97bd0de34a5aa7d585931;p=friendica.git diff --git a/view/theme/frio/php/frio_boot.php b/view/theme/frio/php/frio_boot.php index 17fbb1fbac..3f8ed1ed0b 100644 --- a/view/theme/frio/php/frio_boot.php +++ b/view/theme/frio/php/frio_boot.php @@ -14,24 +14,23 @@ use Friendica\App; * * @todo Check if this is really needed. */ -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"))) { - require "view/theme/frio/none.php"; +function load_page(App $a) +{ + if (isset($_GET['mode']) && ($_GET['mode'] == 'minimal')) { + require 'view/theme/frio/minimal.php'; + } elseif ((isset($_GET['mode']) && ($_GET['mode'] == 'none'))) { + require 'view/theme/frio/none.php'; } else { - $template = 'view/theme/' . current_theme() . '/' - . ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php'; - if(file_exists($template)) - require_once($template); - else - require_once(str_replace('theme/' . current_theme() . '/', '', $template)); + $template = 'view/theme/' . $a->getCurrentTheme() . '/' + . ((x($a->page, 'template')) ? $a->page['template'] : 'default' ) . '.php'; + if (file_exists($template)) { + require_once $template; + } else { + require_once str_replace('theme/' . $a->getCurrentTheme() . '/', '', $template); + } } - - } - /** * @brief Check if page is a modal page * @@ -63,12 +62,12 @@ function is_modal() { */ function get_modalpage_list() { //Arry of pages wich getting bootstrap modal dialogs - $modalpages = array('poke/', + $modalpages = ['poke/', 'message/new', 'settings/oauth/add', 'events/new', // 'fbrowser/image/' - ); + ]; return $modalpages; } @@ -83,9 +82,9 @@ function get_modalpage_list() { */ function get_standard_page_list() { //Arry of pages wich getting the standard page template - $standardpages = array(//'profile', + $standardpages = [//'profile', // 'fbrowser/image/' - ); + ]; return $standardpages; }