/**
* @file view/theme/frio/php/frio_boot.php
*
- * @brief This file contains functions for page construction
+ * 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() . '/'
- . ((x($a->page, 'template')) ? $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 modalpages
*
* The array contains the page names of the pages
* which should displayed as modals
}
/**
- * @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