/**
* @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.
*/
} 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';
+ $template = 'view/theme/' . $a->getCurrentTheme() . '/'
+ . ((DI::page()['template'] ?? '') ?: 'default' ) . '.php';
if (file_exists($template)) {
require_once $template;
} else {
- require_once str_replace('theme/' . current_theme() . '/', '', $template);
+ require_once str_replace('theme/' . $a->getCurrentTheme() . '/', '', $template);
}
}
}
/**
- * @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