mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
user modules. * Don't delete vars when we delete a module. This makes reinstalling a module a lot easier. * Add user::lookup() as the preferred way to load a user, so that other modules don't delve into the user module (that'd be a problem when we swap out user modules) * Notify site admins if Akismet is not fully configured * Bundle all server variables into the comment so that if/when we re-check the comment, we are not using the server info from the site admin's request. * Update Akismet to grab request context data from the comment * Pre-seed comment fields if we have a logged in user. Update comment::create() API to clarify it for this. * Delete comment::update(), that's a controller function. * Add url to User_Model * Add author_name() author_email() and author_url() to Comment_Model. It'll return the appropriate values depending on whether the comment was left by a logged in user or a guest. * Use resetForm() instead of clearForm() when we reload the comment form after ajax submit, this way we preserve the pre-seeded values. * In the user profile page, ignore blank passwords.
19 lines
580 B
PHP
19 lines
580 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<a name="comments"></a>
|
|
<ul id="gComments">
|
|
<? foreach ($comments as $comment): ?>
|
|
<li id="gComment-<?= $comment->id ?>">
|
|
<p class="gAuthor">
|
|
<a href="#">
|
|
<img src="<?= $theme->url("images/avatar.jpg") ?>"
|
|
class="gAvatar" alt="<?= $comment->author_name() ?>" />
|
|
</a>
|
|
<? printf(t("on %s <a href=#>%s</a> said"), date("Y-M-d H:i:s", $comment->created), $comment->author_name()) ?>
|
|
</p>
|
|
<div>
|
|
<?= $comment->text ?>
|
|
</div>
|
|
</li>
|
|
<? endforeach ?>
|
|
</ul>
|