Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_mailer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15613/plugins/serendipity_event_mailer
Modified Files:
Tag: branch-smarty
serendipity_event_mailer.php
Log Message:
- New plugin manager
- Give some of the plugin longer descriptions
- Allow plugins to set 'stackable' directive to false which will prevent it from being installed more than once - Still 'beta'
- MFH plugin config redirection fix
Index: serendipity_event_mailer.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_mailer/serendipity_event_mailer.php,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -u -d -r1.5 -r1.5.2.1
--- serendipity_event_mailer.php 22 Jun 2004 13:45:45 -0000 1.5
+++ serendipity_event_mailer.php 28 Oct 2004 20:17:25 -0000 1.5.2.1
@@ -15,8 +15,8 @@
case 'en':
case 'es':
default:
- @define('PLUGIN_EVENT_MAILER_NAME', 'Mail entry');
- @define('PLUGIN_EVENT_MAILER_DESC', 'Mails each new entry to your blog via E-Mail');
+ @define('PLUGIN_EVENT_MAILER_NAME', 'Mail notifier');
+ @define('PLUGIN_EVENT_MAILER_DESC', 'Sends a mail to your when new entries are made to your blog');
@define('PLUGIN_EVENT_MAILER_RECIPIENT', 'Mail recipient');
@define('PLUGIN_EVENT_MAILER_RECIPIENTDESC', 'E-Mail address you want to send the entries to (suggested: a mailing list)');
@define('PLUGIN_EVENT_MAILER_LINK', 'Mail link to article?');
@@ -37,7 +37,7 @@
$propbag->add('event_hooks', array(
'backend_publish' => true
));
-
+
$propbag->add('configuration', array('mailto', 'includelink', 'striptags'));
}
@@ -90,7 +90,7 @@
'body' => $eventData['body'] . $eventData['extended'] . $serendipity['signature'],
'from' => $serendipity['blogTitle'] . ' - ' . $eventData['author'] . ' <' . $serendipity['serendipityEmail'] . '>'
);
-
+
if($this->get_config('includelink') == true) {
$mail['body'] = serendipity_archiveURL($eventData['id'], $eventData['title']) . "\n\n" . $mail['body'];
}
|