Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30008
Modified Files:
serendipity_plugin_api.php
Log Message:
Don't display a title for plugins with no name. Displaying the classname
instead is quite ugly and often destroys layout, so I agree with Tom who
wanted this. :-)
Index: serendipity_plugin_api.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_plugin_api.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- serendipity_plugin_api.php 11 Jun 2004 12:19:05 -0000 1.22
+++ serendipity_plugin_api.php 17 Jun 2004 20:57:10 -0000 1.23
@@ -306,7 +306,7 @@
echo "<$tagname id=\"serendipity" . ucfirst($side) . "SideBar\">\n";
foreach ($plugins as $plugin_data) {
$plugin =& serendipity_plugin_api::load_plugin($plugin_data['name']);
- $title = get_class($plugin);
+ $title = '';
ob_start();
if ($plugin->generate_content($title) !== false) {
@@ -315,7 +315,9 @@
ob_end_clean();
echo " <div class=\"$plugin->wrap_class sidebar_wrap_$class\">\n";
- echo " <h3 class=\"$plugin->title_class sidebar_title_$class\">$title</h3>\n";
+ if (!empty($title)) {
+ echo " <h3 class=\"$plugin->title_class sidebar_title_$class\">$title</h3>\n";
+ }
echo " <div class=\"$plugin->content_class sidebar_content_$class\">\n";
echo " $content\n";
echo " </div>\n";
|