mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-11 23:29:08 -04:00
* Allow for the "movie" type in all of our text * Try to follow the pattern of mainly only passing ORM objects to the view and let it generate its own text (this becomes even more important when 3rd parties want to customize notification messages) * Rename _send_message to be _notify_subscribers to be more acccurate and have it explicitly take a subject in the API * Use Item_Model::url() in the views instead of hand crafting URLs * Reformat HTML in views * Use $comment->author_xxx() functions instead of replicating that code * Fix several places where we were encoding data by doing ucfirst($item->type) with conditionals where we form the text properly. We should *never* be showing data types to the end user! This is not localizable! Note that this probably breaks the existing batch processing code. I am going to redo that in a subsequent pass.
22 lines
573 B
PHP
22 lines
573 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<html>
|
|
<head>
|
|
<title><?= $subject ?> </title>
|
|
</head>
|
|
<body>
|
|
<h2><?= $subject ?></h2>
|
|
<table>
|
|
<tr>
|
|
<td colspan="2">
|
|
<?= t("To view the changed album %title use the link below.",
|
|
array("title" => $item->parent()->title)) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><?= t("Url:") ?></td>
|
|
<td><a href="<?= $item->parent()->url(array(), true) ?>"><?= $item->parent()->url(array(), true) ?></a></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|