diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-02 20:08:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-02 20:08:53 +0000 |
commit | c70b19a91bfedbae40304cbfed7b5875c5aae342 (patch) | |
tree | b237cd93f51090265af063ffb54b1730f9e33eec /themes | |
parent | bb7d1395bc0bc7eafc3a2ba5a410ed35978ba9a6 (diff) | |
download | brdo-c70b19a91bfedbae40304cbfed7b5875c5aae342.tar.gz brdo-c70b19a91bfedbae40304cbfed7b5875c5aae342.tar.bz2 |
- Patch #163723 by Eaton and Frando: fix default page.tpl markup (and removed some whitespace).
Diffstat (limited to 'themes')
-rw-r--r-- | themes/engines/phptemplate/phptemplate.engine | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index 48f620838..007c7a735 100644 --- a/themes/engines/phptemplate/phptemplate.engine +++ b/themes/engines/phptemplate/phptemplate.engine @@ -36,6 +36,7 @@ function phptemplate_theme($existing, $type, $theme, $path) { * The name of the theme function being executed. */ function phptemplate_engine_preprocess(&$variables, $hook) { + global $user; static $count = array(); // Create variables so anything which is themed can be zebra striped automatically. @@ -46,4 +47,7 @@ function phptemplate_engine_preprocess(&$variables, $hook) { // Tell all templates where they are located. $variables['directory'] = path_to_theme(); $variables['is_front'] = drupal_is_front_page(); + // Tell all templates by which kind of user they're viewed. + $variables['logged_in'] = ($user->uid > 0); + $variables['is_admin'] = user_access('access administration pages'); } |