Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3877
Modified Files:
serendipity_entries.php NEWS
Log Message:
Added a statistics panel.
NOT TESTED ON POSTGRESQL. I bet it won't work without some tweaks.
This integration is mostly a "proof of concept" to show how event plugins
can be used to output specific contents by being embeded inside the s9y
admin panel.
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- NEWS 26 Mar 2004 16:44:18 -0000 1.98
+++ NEWS 26 Mar 2004 16:47:22 -0000 1.99
@@ -3,6 +3,9 @@
Version 0.6 ()
------------------------------------------------------------------------
+ * Added plugin 'serendipity_event_statistics'. Hooks into the
+ admin entry-panel. (garvinhicking)
+
* Do some "common XHTML-mistakes" fixing for output of RSS feeds
(jalcorn)
Index: serendipity_entries.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_entries.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- serendipity_entries.php 24 Mar 2004 12:45:23 -0000 1.26
+++ serendipity_entries.php 26 Mar 2004 16:47:22 -0000 1.27
@@ -59,6 +59,7 @@
• <a href="?serendipity[adminModule]=entries&serendipity[adminAction]=new"><?php echo NEW_ENTRY; ?></a><br />
• <a href="?serendipity[adminModule]=entries&serendipity[adminAction]=editSelect"><?php echo EDIT_ENTRIES; ?></a><br />
• <a href="?serendipity[adminModule]=entries&serendipity[adminAction]=deleteSelect"><?php echo DELETE_ENTRIES; ?></a><br />
+ <?php serendipity_plugin_api::hook_event('backend_sidebar_entries', $serendipity); ?>
</div>
</div>
@@ -77,6 +78,7 @@
• <a href="?serendipity[adminModule]=images&serendipity[adminAction]=sync" onclick="return confirm('<?php echo WARNING_THIS_BLAHBLAH; ?>');"><?php echo CREATE_THUMBS; ?></a><br />
</div>
</div>
+
<div class="serendipitySideBarItem">
<div class="serendipitySideBarContent">
• <a href="<?php echo $serendipity['serendipityHTTPPath']; ?>serendipity_admin.php"><?php echo ADMIN_INTERFACE; ?></a><br />
@@ -109,7 +111,11 @@
case 'logout':
echo LOGGEDOUT;
- break;
+ break;
+
+ case 'event_display':
+ serendipity_plugin_api::hook_event('backend_sidebar_entries_event_display_' . $serendipity['GET']['adminAction'], $serendipity);
+ break;
default:
include S9Y_INCLUDE_PATH . 'serendipity_entries_overview.inc.php';
|