Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_contentrewrite
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24806/plugins/serendipity_event_contentrewrite
Modified Files:
serendipity_event_contentrewrite.php
Log Message:
Merge from 'branch-smarty' to HEAD.
Index: serendipity_event_contentrewrite.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_contentrewrite/serendipity_event_contentrewrite.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- serendipity_event_contentrewrite.php 30 Aug 2004 08:46:04 -0000 1.9
+++ serendipity_event_contentrewrite.php 19 Nov 2004 11:05:38 -0000 1.10
@@ -28,7 +28,7 @@
@define('PLUGIN_EVENT_CONTENTREWRITE_FROM', 'from');
@define('PLUGIN_EVENT_CONTENTREWRITE_TO', 'to');
@define('PLUGIN_EVENT_CONTENTREWRITE_NAME', 'Content Rewriter');
- @define('PLUGIN_EVENT_CONTENTREWRITE_DESCRIPTION', 'Replaces any word with a new string (like for Acronyms)');
+ @define('PLUGIN_EVENT_CONTENTREWRITE_DESCRIPTION', 'Replaces words with a new selected string (useful for acronyms)');
@define('PLUGIN_EVENT_CONTENTREWRITE_NEWTITLE', 'New Title');
@define('PLUGIN_EVENT_CONTENTREWRITE_NEWTDESCRIPTION', 'Enter the acronym-title for a new item here ({from})');
@define('PLUGIN_EVENT_CONTENTREWRITE_OLDTITLE', 'Title #%d');
@@ -63,6 +63,9 @@
$propbag->add('name', PLUGIN_EVENT_CONTENTREWRITE_NAME);
$propbag->add('description', PLUGIN_EVENT_CONTENTREWRITE_DESCRIPTION);
+ $propbag->add('stackable', true);
+ $propbag->add('author', 'Garvin Hicking');
+ $propbag->add('version', '1.0');
$propbag->add('event_hooks', array(
'frontend_display' => true
));
@@ -239,6 +242,10 @@
if (isset($hooks[$event])) {
switch($event) {
case 'frontend_display':
+ if (isset($eventData['is_cached']) && $eventData['is_cached']) {
+ continue;
+ }
+
$char = &$this->get_config('rewrite_char');
$string = &$this->get_config('rewrite_string');
foreach($this->rewrite_from AS $nr => $v_from) {
@@ -287,4 +294,4 @@
}
/* vim: set sts=4 ts=4 expandtab : */
-?>
+?>
\ No newline at end of file
|