浏览代码

Convert plugin output on signout page to new template system; plugins previously hooking into the 'logout_above_text' hook should hook into the 'template_construct_signout.tpl' hook and return output in an array under a key called 'signout_message', such as: return array('signout_message' => )

pdontthink 18 年之前
父节点
当前提交
3c7ea09275
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/default/signout.tpl

+ 1 - 1
templates/default/signout.tpl

@@ -23,7 +23,7 @@ $plugin_message = concat_hook_function('logout_above_text');
 <tr width="100%"><th class="sqm_signoutBar">
   <?php echo _("Sign Out"); ?>
 </th></tr>
-<?php echo $plugin_message; ?>
+<?php if (!empty($plugin_output['signout_message'])) echo $plugin_output['signout_message']; ?>
 <tr width="100%"><td>
   <?php echo _("You have been successfully signed out."); ?><br />
   <a href="<?php echo $login_uri; ?>" target="<?php echo $frame_top; ?>"><?php echo _("Click here to log back in."); ?></a><br />