diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-02 03:09:17 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-02 03:09:17 +0000 |
commit | 69a7e238a4da3ac92f0b62aa2aba6ce3b530a943 (patch) | |
tree | 8e64d2da818f1b0f37ce7e5ebbbf07b80edf8a64 /modules/notification/views | |
parent | 41dbe5cf6cbd9939da1423a5000808814bb5979e (diff) |
As we stagger towards completing the notification module.
Item changes and Item additions email notifications with this change.
Still to come is item deleted, comment added and comment updated.
Diffstat (limited to 'modules/notification/views')
-rw-r--r-- | modules/notification/views/comment_added.html.php | 0 | ||||
-rw-r--r-- | modules/notification/views/comment_changed.html.php | 0 | ||||
-rw-r--r-- | modules/notification/views/item_added.html.php | 25 | ||||
-rw-r--r-- | modules/notification/views/item_deleted.html.php | 0 | ||||
-rw-r--r-- | modules/notification/views/item_updated.html.php | 36 |
5 files changed, 61 insertions, 0 deletions
diff --git a/modules/notification/views/comment_added.html.php b/modules/notification/views/comment_added.html.php new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/modules/notification/views/comment_added.html.php diff --git a/modules/notification/views/comment_changed.html.php b/modules/notification/views/comment_changed.html.php new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/modules/notification/views/comment_changed.html.php diff --git a/modules/notification/views/item_added.html.php b/modules/notification/views/item_added.html.php new file mode 100644 index 00000000..1832fb39 --- /dev/null +++ b/modules/notification/views/item_added.html.php @@ -0,0 +1,25 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> +<head> + <title><?= $subject ?> </title> +</head> +<body> + <h2><?= sprintf(t("A new %s was added to %s"), $type, $parent_title); ?></h2> + <table> + <tr> + <td><?= t("Title:") ?></td> + <td><?= $item_title ?></td> + </tr> + <tr> + <td><?= t("Url:") ?></td> + <td><a href="<?= $url ?>"><?= $url ?></a></td> + </tr> + <? if (!empty($description)): ?> + <tr> + <td><?= t("Description:") ?></td> + <td><?= $description ?></td> + </tr> + <? endif ?> + </table> +</body> +</html> diff --git a/modules/notification/views/item_deleted.html.php b/modules/notification/views/item_deleted.html.php new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/modules/notification/views/item_deleted.html.php diff --git a/modules/notification/views/item_updated.html.php b/modules/notification/views/item_updated.html.php new file mode 100644 index 00000000..126bd5cc --- /dev/null +++ b/modules/notification/views/item_updated.html.php @@ -0,0 +1,36 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> +<head> + <title><?= $subject ?> </title> +</head> +<body> + <h2><?= sprintf(t("%s %s was updated"), ucfirst($type), $item_title); ?></h2> + <table> + <tr> + <? if (!empty($new_title)): ?> + <td><?= t("New Title:") ?></td> + <td><?= $new_title ?></td> + <? else: ?> + <td><?= t("Title:") ?></td> + <td><?= $item_title ?></td> + <? endif ?> + </tr> + <tr> + <td><?= t("Url:") ?></td> + <td><a href="<?= $url ?>"><?= $url ?></a></td> + </tr> + <? if (!empty($new_description)): ?> + <tr> + <td><?= t("New Description:") ?></td> + <td><?= $new_description ?></td> + </tr> + <? else: if (!empty($description)): ?> + <tr> + <td><?= t("Description:") ?></td> + <td><?= $description ?></td> + </tr> + <? endif ?> + <? endif ?> + </table> +</body> +</html> |