X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fmessage_list.tpl;h=6040788559f3e3bcf06594dbfa1f3e4e7bf646ab;hb=b1870063b2e576ca9ff3cd41ada9cda1f8812507;hp=748329c25a2fa1003090a08544a951e6bc10a1c9;hpb=ac85807341b9090368bd27a890ef4d7949e69549;p=squirrelmail.git diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index 748329c2..60407885 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -5,6 +5,61 @@ * * Template for viewing a messages list * + * The following variables are available in this template: +//FIXME: need to clean (and document) this list, it is just a dump of the array keys of $t + * $sTemplateID + * $icon_theme_path + * $javascript_on + * $delayed_errors + * $frames + * $lang + * $page_title + * $header_tags + * $plugin_output + * $header_sent + * $body_tag_js + * $shortBoxName + * $sm_attribute_str + * $frame_top + * $urlMailbox + * $startMessage + * $hide_sm_attributions + * $uri + * $text + * $onclick + * $class + * $id + * $target + * $color + * $form_name + * $form_id + * $page_selector + * $page_selector_max + * $messagesPerPage + * $showall + * $end_msg + * $align + * $iNumberOfMessages + * $aOrder + * $aFormElements + * $sort + * $pageOffset + * $baseurl + * $aMessages + * $trash_folder + * $sent_folder + * $draft_folder + * $thread_link_str + * $php_self + * $mailbox + * $enablesort + * $icon_theme + * $use_icons + * $alt_index_colors + * $fancy_index_highlite + * $compact_paginator + * $aErrors + * * @copyright © 1999-2006 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ @@ -18,7 +73,9 @@ include_once(SM_PATH . 'templates/util_message_list.php'); /* retrieve the template vars */ extract($t); -do_hook('mailbox_index_before'); +//FIXME: no hooks in templates! +global $null; +do_hook('mailbox_index_before', $null); /** * Calculate string "Viewing message x to y (z total)" @@ -77,16 +134,10 @@ if (!($javascript_on && $fancy_index_highlite)) { } /** - * Check usage of images for attachments, flags and priority - */ -$bIcons = ($use_icons && $icon_theme) ? true : false; - -/** - * Location of icon images - */ -if ($bIcons) { - $sImageLocation = SM_PATH . 'images/themes/' . $icon_theme . '/'; -} + * All icon functionality is now handled through $icon_theme_path. + * $icon_theme_path will contain the path to the user-selected theme. If it is + * NULL, the user and/or admin have turned off icons. +*/ // set this to an empty string to turn off extra // highlighting of checked rows @@ -96,7 +147,7 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; ?>