diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-24 15:27:33 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-24 15:27:33 -0800 |
commit | 7c06e21ec443a46bd78bc9e99d8284283ff85c59 (patch) | |
tree | f30063fc106eaace4a02c01a9c857924213f7eb9 /modules/comment/views | |
parent | 3b16d0662b8a4b06f4be72165c858a1231e9bd67 (diff) |
Refactor creating the user profile page content into the the event module. The show_user_profile is used to provide content to the user profile page. Add the list of the users comments to the profile page.
Diffstat (limited to 'modules/comment/views')
-rw-r--r-- | modules/comment/views/user_profile_comments.html.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/comment/views/user_profile_comments.html.php b/modules/comment/views/user_profile_comments.html.php new file mode 100644 index 00000000..a2a641ba --- /dev/null +++ b/modules/comment/views/user_profile_comments.html.php @@ -0,0 +1,20 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-comment-detail"> +<ul> + <? foreach ($comments as $comment): ?> + <li id="g-comment-<?= $comment->id ?>"> + <p class="g-author"> + <?= t('on %date for %title ', + array("date" => date("Y-M-d H:i:s", $comment->created), + "title" => $comment->item()->title)); ?> + <a href="<?= $comment->item()->url() ?>"> + <?= $comment->item()->thumb_img(array(), 50) ?> + </a> + </p> + <div> + <?= nl2br(html::purify($comment->text)) ?> + </div> + </li> + <? endforeach ?> +</ul> +</div> |