bump
This commit is contained in:
@ -3,6 +3,9 @@
|
|||||||
Version 1.3 ()
|
Version 1.3 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Allow the "send mail" plugin to send mails to all registered
|
||||||
|
authors (garvinhicking)
|
||||||
|
|
||||||
* Add spartacus remote management versioning information subpage.
|
* Add spartacus remote management versioning information subpage.
|
||||||
(garvinhicking)
|
(garvinhicking)
|
||||||
|
|
||||||
|
@ -382,7 +382,7 @@ class serendipity_quicksearch_plugin extends serendipity_plugin {
|
|||||||
<div>
|
<div>
|
||||||
<input type="hidden" name="serendipity[action]" value="search" />
|
<input type="hidden" name="serendipity[action]" value="search" />
|
||||||
<input alt="<?php echo QUICKSEARCH; ?>" type="text" id="serendipityQuickSearchTermField" name="serendipity[searchTerm]" size="13" />
|
<input alt="<?php echo QUICKSEARCH; ?>" type="text" id="serendipityQuickSearchTermField" name="serendipity[searchTerm]" size="13" />
|
||||||
<input type="submit" value=">" alt="<?php echo QUICKSEARCH; ?>" name="serendipity[searchButton]" title="<?PHP echo GO; ?>" style="width: 2em;" />
|
<input class="quicksearch_submit" type="submit" value=">" alt="<?php echo QUICKSEARCH; ?>" name="serendipity[searchButton]" title="<?PHP echo GO; ?>" style="width: 2em;" />
|
||||||
</div>
|
</div>
|
||||||
<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>
|
<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -14,3 +14,4 @@
|
|||||||
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.');
|
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.');
|
||||||
@define('PLUGIN_EVENT_MAILER_SENDING', 'Versende');
|
@define('PLUGIN_EVENT_MAILER_SENDING', 'Versende');
|
||||||
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden');
|
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden');
|
||||||
|
@define('PLUGIN_EVENT_MAILER_SENDTOALL', 'An alle Redakteure schicken');
|
||||||
|
@ -14,3 +14,4 @@
|
|||||||
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.');
|
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'Dieser Eintrage wurde nicht per E-Mail versendet, da diese Option deaktiviert wurde.');
|
||||||
@define('PLUGIN_EVENT_MAILER_SENDING', 'Versende');
|
@define('PLUGIN_EVENT_MAILER_SENDING', 'Versende');
|
||||||
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden');
|
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Diesen Eintrag per E-Mail versenden');
|
||||||
|
@define('PLUGIN_EVENT_MAILER_SENDTOALL', 'An alle Redakteure schicken');
|
||||||
|
@ -20,6 +20,4 @@
|
|||||||
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'This entry was not sent via E-Mail because you decided to not send it.');
|
@define('PLUGIN_EVENT_MAILER_NOTSENDDECISION', 'This entry was not sent via E-Mail because you decided to not send it.');
|
||||||
@define('PLUGIN_EVENT_MAILER_SENDING', 'Sending');
|
@define('PLUGIN_EVENT_MAILER_SENDING', 'Sending');
|
||||||
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Send this entry via E-Mail');
|
@define('PLUGIN_EVENT_MAILER_ISTOSENDIT', 'Send this entry via E-Mail');
|
||||||
|
@define('PLUGIN_EVENT_MAILER_SENDTOALL', 'Send to all authors');
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -26,7 +26,7 @@ class serendipity_event_mailer extends serendipity_event
|
|||||||
$propbag->add('description', PLUGIN_EVENT_MAILER_DESC);
|
$propbag->add('description', PLUGIN_EVENT_MAILER_DESC);
|
||||||
$propbag->add('stackable', false);
|
$propbag->add('stackable', false);
|
||||||
$propbag->add('author', 'Sebastian Nohn, Kristian Koehntopp, Garvin Hicking');
|
$propbag->add('author', 'Sebastian Nohn, Kristian Koehntopp, Garvin Hicking');
|
||||||
$propbag->add('version', '1.47');
|
$propbag->add('version', '1.50');
|
||||||
$propbag->add('requirements', array(
|
$propbag->add('requirements', array(
|
||||||
'serendipity' => '0.8',
|
'serendipity' => '0.8',
|
||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
@ -38,7 +38,7 @@ class serendipity_event_mailer extends serendipity_event
|
|||||||
));
|
));
|
||||||
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED'));
|
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED'));
|
||||||
|
|
||||||
$config = array('what', 'mailto', 'includelink', 'striptags', 'convertp');
|
$config = array('what', 'mailto', 'sendtoall', 'includelink', 'striptags', 'convertp');
|
||||||
$propbag->add('configuration', $config);
|
$propbag->add('configuration', $config);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,6 +99,13 @@ class serendipity_event_mailer extends serendipity_event
|
|||||||
$propbag->add('default', '');
|
$propbag->add('default', '');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'sendtoall':
|
||||||
|
$propbag->add('type', 'boolean');
|
||||||
|
$propbag->add('name', PLUGIN_EVENT_MAILER_SENDTOALL);
|
||||||
|
$propbag->add('description', '');
|
||||||
|
$propbag->add('default', 'false');
|
||||||
|
break;
|
||||||
|
|
||||||
case 'includelink':
|
case 'includelink':
|
||||||
$propbag->add('type', 'boolean');
|
$propbag->add('type', 'boolean');
|
||||||
$propbag->add('name', PLUGIN_EVENT_MAILER_LINK);
|
$propbag->add('name', PLUGIN_EVENT_MAILER_LINK);
|
||||||
@ -144,6 +151,12 @@ class serendipity_event_mailer extends serendipity_event
|
|||||||
} else {
|
} else {
|
||||||
$mailto = $this->get_config('mailto');
|
$mailto = $this->get_config('mailto');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($serendipity['POST']['properties']['sendentry_all'])) {
|
||||||
|
$sendtoall = $serendipity['POST']['properties']['sendentry_all'];
|
||||||
|
} else {
|
||||||
|
$sendtoall = serendipity_db_bool($this->get_config('sendtoall'));
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<fieldset style="margin: 5px">
|
<fieldset style="margin: 5px">
|
||||||
@ -151,7 +164,9 @@ class serendipity_event_mailer extends serendipity_event
|
|||||||
<input class="input_checkbox" type="checkbox" name="serendipity[properties][sendentry]" id="properties_sendentry" value="true" checked="checked" />
|
<input class="input_checkbox" type="checkbox" name="serendipity[properties][sendentry]" id="properties_sendentry" value="true" checked="checked" />
|
||||||
<label title="<?php echo PLUGIN_EVENT_MAILER_SENDING; ?>" for="properties_sendentry"> <?php echo PLUGIN_EVENT_MAILER_ISTOSENDIT; ?></label><br />
|
<label title="<?php echo PLUGIN_EVENT_MAILER_SENDING; ?>" for="properties_sendentry"> <?php echo PLUGIN_EVENT_MAILER_ISTOSENDIT; ?></label><br />
|
||||||
<label title="<?php echo PLUGIN_EVENT_MAILER_RECIPIENT; ?>" for="properties_mailto"> <?php echo PLUGIN_EVENT_MAILER_RECIPIENTS; ?> </label>
|
<label title="<?php echo PLUGIN_EVENT_MAILER_RECIPIENT; ?>" for="properties_mailto"> <?php echo PLUGIN_EVENT_MAILER_RECIPIENTS; ?> </label>
|
||||||
<input class="input_textbox" type="text" name="serendipity[properties][mailto]" id="properties_mailto" value="<?php echo htmlspecialchars($mailto); ?>" />
|
<input class="input_textbox" type="text" name="serendipity[properties][mailto]" id="properties_mailto" value="<?php echo htmlspecialchars($mailto); ?>" /><br />
|
||||||
|
<input type="checkbox" value="true" id="sendall" name="serendipity[properties][sendentry_all]" <?php echo ($sendtoall ? 'checked="checked"': ''); ?> />
|
||||||
|
<label title="<?php echo PLUGIN_EVENT_MAILER_SENDTOALL; ?>" for="sendall"> <?php echo PLUGIN_EVENT_MAILER_SENDTOALL; ?></label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
@ -190,6 +205,12 @@ class serendipity_event_mailer extends serendipity_event
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($serendipity['POST']['properties']['sendentry_all']) {
|
||||||
|
$mails = serendipity_db_query("SELECT email FROM {$serendipity['dbPrefix']}authors");
|
||||||
|
foreach($mails AS $mail) {
|
||||||
|
$to[] = trim($mail['email']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$mail = array(
|
$mail = array(
|
||||||
'subject' => $eventData['title'],
|
'subject' => $eventData['title'],
|
||||||
|
Reference in New Issue
Block a user