<?php
-
/**
- * @file view/theme/frio/php/frio_boot.php
+ * @copyright Copyright (C) 2010-2022, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
*
- * @brief This file contains functions for page construction
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ * This file contains functions for page construction
*
*/
use Friendica\App;
+use Friendica\DI;
/**
- * @brief Load page template in dependence of the template mode
+ * Load page template in dependence of the template mode
*
* @todo Check if this is really needed.
*/
require 'view/theme/frio/none.php';
} else {
$template = 'view/theme/' . $a->getCurrentTheme() . '/'
- . defaults($a->page, 'template', 'default' ) . '.php';
+ . ((DI::page()['template'] ?? '') ?: 'default' ) . '.php';
if (file_exists($template)) {
require_once $template;
} else {
}
/**
- * @brief Check if page is a modal page
+ * Check if page is a modal page
*
* This function checks if $_REQUEST['pagename'] is
* a defined in a $modalpages
}
/**
- * @brief Array with modalpages
+ * Array with modal pages
*
* The array contains the page names of the pages
* which should displayed as modals
*
- * @return array Pagenames as path
+ * @return array Page names as path
*/
function get_modalpage_list() {
- //Arry of pages wich getting bootstrap modal dialogs
- $modalpages = ['poke/',
- 'message/new',
- 'settings/oauth/add',
- 'events/new',
-// 'fbrowser/image/'
+ //Array of pages which getting bootstrap modal dialogs
+ $modalpages = [
+ 'message/new',
+ 'settings/oauth/add',
+ 'calendar/event/new',
+// 'fbrowser/image/'
];
return $modalpages;
}
/**
- * @brief Array with standard pages
+ * Array with standard pages
*
* The array contains the page names of the pages
* which should displayed as standard-page
}
/**
- * @brief Check if page is standard page
+ * Check if page is standard page
*
* This function checks if $_REQUEST['pagename'] is
* a defined $standardpages
return $is_standard_page;
}
/**
- * @brief Get the typ of the page
+ * Get the typ of the page
*
* @param type $pagetitle
* @return string