diff options
Diffstat (limited to 'modules/notification/views')
| -rw-r--r-- | modules/notification/views/comment_published.html.php | 35 | ||||
| -rw-r--r-- | modules/notification/views/item_added.html.php | 29 | ||||
| -rw-r--r-- | modules/notification/views/item_deleted.html.php | 25 | ||||
| -rw-r--r-- | modules/notification/views/item_updated.html.php | 35 | ||||
| -rw-r--r-- | modules/notification/views/user_profile_notification.html.php | 12 |
5 files changed, 136 insertions, 0 deletions
diff --git a/modules/notification/views/comment_published.html.php b/modules/notification/views/comment_published.html.php new file mode 100644 index 0000000..ac36a2c --- /dev/null +++ b/modules/notification/views/comment_published.html.php @@ -0,0 +1,35 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> + <head> + <title><?= html::clean($subject) ?> </title> + </head> + <body> + <h2><?= html::clean($subject) ?></h2> + <table> + <tr> + <td><?= t("Comment:") ?></td> + <td><?= nl2br(html::purify($comment->text)) ?></td> + </tr> + <tr> + <td><?= t("Author name:") ?></td> + <td><?= html::clean($comment->author_name()) ?></td> + </tr> + <tr> + <td><?= t("Author email:") ?></td> + <td><?= html::clean($comment->author_email()) ?></td> + </tr> + <tr> + <td><?= t("Author URL:") ?></td> + <td><?= html::clean($comment->author_url()) ?></td> + </tr> + <tr> + <td><?= t("Url:") ?></td> + <td> + <a href="<?= $comment->item()->abs_url() ?>#comments"> + <?= $comment->item()->abs_url() ?>#comments + </a> + </td> + </tr> + </table> + </body> +</html> diff --git a/modules/notification/views/item_added.html.php b/modules/notification/views/item_added.html.php new file mode 100644 index 0000000..1ea3720 --- /dev/null +++ b/modules/notification/views/item_added.html.php @@ -0,0 +1,29 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> + <head> + <title><?= html::clean($subject) ?> </title> + </head> + <body> + <h2><?= html::clean($subject) ?></h2> + <table> + <tr> + <td><?= t("Title:") ?></td> + <td><?= html::purify($item->title) ?></td> + </tr> + <tr> + <td><?= t("Url:") ?></td> + <td> + <a href="<?= $item->abs_url() ?>"> + <?= $item->abs_url() ?> + </a> + </td> + </tr> + <? if ($item->description): ?> + <tr> + <td><?= t("Description:") ?></td> + <td><?= nl2br(html::purify($item->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 0000000..a95cdd8 --- /dev/null +++ b/modules/notification/views/item_deleted.html.php @@ -0,0 +1,25 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> + <head> + <title><?= html::clean($subject) ?> </title> + </head> + <body> + <h2><?= html::clean($subject) ?></h2> + <table> + <tr> + <td colspan="2"> + <?= t("To view the changed album %title use the link below.", + array("title" => html::purify($item->parent()->title))) ?> + </td> + </tr> + <tr> + <td><?= t("Url:") ?></td> + <td> + <a href="<?= $item->parent()->abs_url() ?>"> + <?= $item->parent()->abs_url() ?> + </a> + </td> + </tr> + </table> + </body> +</html> diff --git a/modules/notification/views/item_updated.html.php b/modules/notification/views/item_updated.html.php new file mode 100644 index 0000000..7020fd5 --- /dev/null +++ b/modules/notification/views/item_updated.html.php @@ -0,0 +1,35 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<html> + <head> + <title><?= html::clean($subject) ?> </title> + </head> + <body> + <h2> <?= html::clean($subject) ?> </h2> + <table> + <tr> + <? if ($original->title != $item->title): ?> + <td><?= t("New title:") ?></td> + <td><?= html::clean($item->title) ?></td> + <? else: ?> + <td><?= t("Title:") ?></td> + <td><?= html::clean($item->title) ?></td> + <? endif ?> + </tr> + <tr> + <td><?= t("Url:") ?></td> + <td><a href="<?= $item->abs_url() ?>"><?= $item->abs_url() ?></a></td> + </tr> + <? if ($original->description != $item->description): ?> + <tr> + <td><?= t("New description:") ?></td> + <td><?= html::clean($item->description) ?></td> + </tr> + <? elseif (!empty($item->description)): ?> + <tr> + <td><?= t("Description:") ?></td> + <td><?= html::clean($item->description) ?></td> + </tr> + <? endif ?> + </table> + </body> +</html> diff --git a/modules/notification/views/user_profile_notification.html.php b/modules/notification/views/user_profile_notification.html.php new file mode 100644 index 0000000..8864f0c --- /dev/null +++ b/modules/notification/views/user_profile_notification.html.php @@ -0,0 +1,12 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-notification-detail"> +<ul> + <? foreach ($subscriptions as $subscription): ?> + <li id="g-watch-<?= $subscription->id ?>"> + <a href="<?= $subscription->url ?>"> + <?= html::purify($subscription->title) ?> + </a> + </li> + <? endforeach ?> +</ul> +</div> |
