diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-02 15:41:47 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-02 15:41:47 +0000 |
commit | ef58ac91e8c23832e657a4f8dee57fe0b7733ae8 (patch) | |
tree | 4c5979f253d66cba03731261d04cf5a0621b7816 /modules/notification/views | |
parent | 89edd4d3ff307d79b82a3eb196b6bdad5be26804 (diff) |
Notifications now send emails when a comment is published. It won't
send the email if the comment status is not published. This gives the
administrator to moderate the comments prior to being published.
Diffstat (limited to 'modules/notification/views')
-rw-r--r-- | modules/notification/views/comment_added.html.php | 1 | ||||
-rw-r--r-- | modules/notification/views/comment_changed.html.php | 1 | ||||
-rw-r--r-- | modules/notification/views/comment_published.html.php | 19 |
3 files changed, 19 insertions, 2 deletions
diff --git a/modules/notification/views/comment_added.html.php b/modules/notification/views/comment_added.html.php deleted file mode 100644 index 115bfc86..00000000 --- a/modules/notification/views/comment_added.html.php +++ /dev/null @@ -1 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access.") ?> diff --git a/modules/notification/views/comment_changed.html.php b/modules/notification/views/comment_changed.html.php deleted file mode 100644 index 115bfc86..00000000 --- a/modules/notification/views/comment_changed.html.php +++ /dev/null @@ -1 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access.") ?> diff --git a/modules/notification/views/comment_published.html.php b/modules/notification/views/comment_published.html.php new file mode 100644 index 00000000..4a7936e6 --- /dev/null +++ b/modules/notification/views/comment_published.html.php @@ -0,0 +1,19 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> +<head> + <title><?= $subject ?> </title> +</head> +<body> + <h2><?= sprintf(t("A new comment was added by %s"), $author); ?></h2> + <table> + <tr> + <td><?= t("Comment:") ?></td> + <td><?= $text ?></td> + </tr> + <tr> + <td><?= t("Url:") ?></td> + <td><a href="<?= $url ?>"><?= $url ?></a></td> + </tr> + </table> +</body> +</html> |