Exemple #1
0
function exponent_theme_getPrinterFriendlyTheme()
{
    return expTheme::getPrinterFriendlyTheme();
}
Exemple #2
0
 if (MAINTENANCE_MODE > 0) {
     flash('error', gt('Maintenance Mode is Enabled'));
 }
 //the default user is anonymous
 //	if (!expSession::loggedIn()) {
 //TODO: Maxims initial anonymous user implementation
 //user::login("anonymous", "anonymous");
 //	}
 // check to see if we need to install or upgrade the system
 expVersion::checkVersion();
 // Handle sub themes
 $page = expTheme::getTheme();
 // If we are in a printer friendly request then we need to change to our printer friendly subtheme
 if (PRINTER_FRIENDLY == 1) {
     expSession::set("uilevel", 0);
     $pftheme = expTheme::getPrinterFriendlyTheme();
     // get the printer friendly theme
     $page = $pftheme == null ? $page : $pftheme;
     // if there was no theme found then just use the current subtheme
 }
 if (is_readable($page)) {
     if (!expJavascript::inAjaxAction()) {
         include_once $page;
         expTheme::satisfyThemeRequirements();
     } else {
         expTheme::runAction();
     }
 } else {
     echo sprintf(gt('Page "%s" not readable.'), $page);
 }
 if (PRINTER_FRIENDLY == 1) {