Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_creativecommons
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29422/plugins/serendipity_event_creativecommons
Modified Files:
serendipity_event_creativecommons.php
Log Message:
* Move Smarty object instancing to a function call, so that is not
created when not needed (like for CSS)
* make head_title / head_subtitle globally available, so that plugins
can also use it
* Code optimizations: Queries, referenced variables, plugin API
* Improved entryproperties cache
* Improved Plugin API calls to fetch titles of entries
* Improved Plugin aPI calls to set the authorid of a plugin
* Improved some plugins to not create costy introspect() calls, and move
them to the introspect_config_item() part
* Fixed trackexits plugin to not abuse the query() function too often
Index: serendipity_event_creativecommons.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_creativecommons/serendipity_event_creativecommons.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- serendipity_event_creativecommons.php 19 Nov 2004 11:05:38 -0000 1.13
+++ serendipity_event_creativecommons.php 19 Nov 2004 11:24:53 -0000 1.14
@@ -36,8 +36,11 @@
}
class serendipity_event_creativecommons extends serendipity_event {
+ var $title = PLUGIN_CREATIVECOMMONS_NAME;
+
function introspect(&$propbag)
{
+
$propbag->add('name', PLUGIN_CREATIVECOMMONS_NAME);
$propbag->add('description', PLUGIN_CREATIVECOMMONS_DESC);
$propbag->add('stackable', false);
@@ -105,7 +108,7 @@
}
function generate_content(&$title) {
- $title = PLUGIN_CREATIVECOMMONS_NAME;
+ $title = $this->title;
}
function event_hook($event, &$bag, &$eventData) {
|