diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-11 22:46:25 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-11 22:46:25 +0000 |
commit | b0a3308740d121c7ba504c1625f08901d713d750 (patch) | |
tree | b27409031e19077b6dc4a836266d23fadb1a01f8 | |
parent | 752459c64cafec0f003c4b8531201c58a5fecad7 (diff) |
Minor cleanup; localization, indentation, etc.
-rw-r--r-- | modules/comment/helpers/comment.php | 6 | ||||
-rw-r--r-- | modules/comment/views/comment_form.html.php | 8 | ||||
-rw-r--r-- | modules/comment/views/comment_list.html.php | 2 | ||||
-rw-r--r-- | modules/comment/views/show_comments.html.php | 6 |
4 files changed, 12 insertions, 10 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index a768bdcf..1c454952 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -33,7 +33,7 @@ class Comment_Core { * @param integer $datetime optional comment date and time in Unix format * @return Comment_Model */ - static function create($author, $email, $text, $item_id, $datetime = NULL) { + static function create($author, $email, $text, $item_id, $datetime=NULL) { if (is_null($datetime)) { $datetime = time(); } @@ -68,4 +68,6 @@ class Comment_Core { $v = new View('comment_form.html'); $v->item_id = $item_id; return $v; - }} + } +} + diff --git a/modules/comment/views/comment_form.html.php b/modules/comment/views/comment_form.html.php index 418f0027..163fd180 100644 --- a/modules/comment/views/comment_form.html.php +++ b/modules/comment/views/comment_form.html.php @@ -3,19 +3,19 @@ <fieldset> <legend>Add comment</legend> <div class="row"> - <label for="gCommentAuthor">Your Name</label> + <label for="gCommentAuthor"><?= _("Your Name") ?></label> <input type="text" name="author" id="gCommentAuthor" class="text" /> </div> <div class="row"> - <label for="gCommentEmail">Your Email (not displayed)</label> + <label for="gCommentEmail"><?= _("Your Email (not displayed)") ?></label> <input type="text" name="email" id="gCommentEmail" class="text" /> </div> <div class="row"> - <label for="gCommentText">Comment</label> + <label for="gCommentText"><?= _("Comment") ?></label> <textarea name="text" id="gCommentText"></textarea> </div> <input type="hidden" id="gItemId" name="item_id" value="<?= $item_id ?>" /> - <input type="submit" id="gCommentSubmit" value="Add" /> + <input type="submit" id="gCommentSubmit" value="<?= _("Add") ?>" /> </fieldset> </form> diff --git a/modules/comment/views/comment_list.html.php b/modules/comment/views/comment_list.html.php index 2196af1c..ffd64c0c 100644 --- a/modules/comment/views/comment_list.html.php +++ b/modules/comment/views/comment_list.html.php @@ -1,6 +1,6 @@ <? defined("SYSPATH") or die("No direct script access."); ?> <ul id="gCommentThread"> - <? foreach (array_reverse($comments) as $index => $comment): ?> + <? foreach (array_reverse($comments) as $index => $comment): ?> <li id="gComment-<?= $index; ?>" class="gComment <?= $index % 2 ? 'odd' : 'even' ?>"> <p> <a href="#" class="gAuthor"><?= $comment->author ?></a> diff --git a/modules/comment/views/show_comments.html.php b/modules/comment/views/show_comments.html.php index 9726364f..5ba45883 100644 --- a/modules/comment/views/show_comments.html.php +++ b/modules/comment/views/show_comments.html.php @@ -1,9 +1,9 @@ <? defined("SYSPATH") or die("No direct script access."); ?> -<div id="gComments"><!-- BEGIN #gComments --> +<div id="gComments"> <? if ($comment_list): ?> - <h2>Comments</h2> + <h2><?= _("Comments") ?></h2> <?= $comment_list ?> <? endif ?> <?= $comment_form ?> -</div><!-- END #gComments --> +</div> |