[habari commit] r919 - trunk/htdocs/system/admin

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 23, 2007, 4:50:01 PM9/23/07
to habar...@googlegroups.com
Author: epithet
Date: Sun Sep 23 13:49:10 2007
New Revision: 919

Modified:
trunk/htdocs/system/admin/footer.php
trunk/htdocs/system/admin/header.php

Log:
Adding plugin hook for 'admin_header' in the admin header, along with stack output for 'admin_stylesheet' and 'admin_header_javascript'.
Adding plugin hook for 'admin_footer' in the admin footer, along with stack output for 'admin_footer_javascript'.

Modified: trunk/htdocs/system/admin/footer.php
==============================================================================
--- trunk/htdocs/system/admin/footer.php (original)
+++ trunk/htdocs/system/admin/footer.php Sun Sep 23 13:49:10 2007
@@ -11,6 +11,10 @@

</div>
</div>
-<?php include ('db_profiling.php');?>
+<?php
+ Plugins::act( 'admin_footer', $this );
+ Stack::out( 'admin_footer_javascript', ' <script src="%s" type="text/javascript"></script>'."\r\n" );
+ include ('db_profiling.php');
+?>
</body>
</html>

Modified: trunk/htdocs/system/admin/header.php
==============================================================================
--- trunk/htdocs/system/admin/header.php (original)
+++ trunk/htdocs/system/admin/header.php Sun Sep 23 13:49:10 2007
@@ -14,6 +14,11 @@

<script src="<?php Site::out_url('scripts'); ?>/jquery.js" type="text/javascript"></script>
<script src="<?php Site::out_url('scripts'); ?>/support.js" type="text/javascript"></script>
+ <?php
+ Plugins::act( 'admin_header', $this );
+ Stack::out( 'admin_stylesheet', '<link rel="stylesheet" type="text/css" href="%s" media="%s">'."\r\n" );
+ Stack::out( 'admin_header_javascript', '<script src="%s" type="text/javascript"></script>'."\r\n" );
+ ?>
<script type="text/javascript">
$(document).ready(function(){
$("tbody/tr:nth-child(even)").addClass("even");

Reply all
Reply to author
Forward
0 new messages