From: vanmer Date: Sun, 9 Jul 2006 22:29:07 +0000 (+0000) Subject: - added template output for style links before link to style.php X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4740fdd88933c5de8c8e2c353030accd8a62a39a;p=squirrelmail.git - added template output for style links before link to style.php git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11384 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index 199a80f0..bf5bc2eb 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -27,7 +27,7 @@ include_once(SM_PATH . 'functions/imap_mailbox.php'); * @return void */ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE, $frames = FALSE ) { - global $squirrelmail_language, $sTplDir, $oErrorHandler; + global $squirrelmail_language, $sTplDir, $oErrorHandler, $oTemplate; if ( !sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) { global $base_uri; @@ -57,13 +57,17 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE * Add closing / to link and meta elements only after switching to xhtml 1.0 Transitional. * It is not compatible with html 4.01 Transitional */ + $templateid=basename($sTplDir); + $oTemplate->assign('base_uri',$base_uri); + $oTemplate->assign('templateid',$templateid); + $oTemplate->assign('themeid',$used_theme); + $oTemplate->display('stylelink.tpl'); echo '\n"; - // load custom style sheet (deprecated) if ( ! empty($theme_css) ) { echo "\n";