From 11606820a6f4df89a885ae31fcff8b42a67b316b Mon Sep 17 00:00:00 2001 From: pete Date: Tue, 30 Mar 2010 16:28:41 +0000 Subject: Updated UI for commentwall on profile page. git-svn-id: http://code.elgg.org/elgg/trunk@5551 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/languages/en.php | 1 + .../default/profile/commentwall/commentwall.php | 4 ++-- .../profile/commentwall/commentwall_content.php | 26 +++++++++++----------- .../default/profile/commentwall/commentwalladd.php | 4 ++-- mod/profile/views/default/profile/css.php | 7 ++++++ 5 files changed, 25 insertions(+), 17 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/languages/en.php b/mod/profile/languages/en.php index bb4230070..7430f9596 100644 --- a/mod/profile/languages/en.php +++ b/mod/profile/languages/en.php @@ -82,6 +82,7 @@ $english = array( 'profile:commentwall:blank' => "Sorry; you need to actually put something in the message area before we can save it.", 'profile:commentwall:notfound' => "Sorry; we could not find the specified item.", 'profile:commentwall:notdeleted' => "Sorry; we could not delete this message.", + 'profile:commentwall:none' => "No comment wall posts found.", 'profile:commentwall:somethingwentwrong' => "Something went wrong when trying to save your message, make sure you actually wrote a message.", 'profile:commentwall:failure' => "An unexpected error occurred when adding your message. Please try again.", diff --git a/mod/profile/views/default/profile/commentwall/commentwall.php b/mod/profile/views/default/profile/commentwall/commentwall.php index 9c1ff3fdb..f693a3317 100644 --- a/mod/profile/views/default/profile/commentwall/commentwall.php +++ b/mod/profile/views/default/profile/commentwall/commentwall.php @@ -7,7 +7,7 @@ if (is_array($vars['annotation']) && sizeof($vars['annotation']) > 0) { //start the div which will wrap all the message board contents - echo "
"; + echo "
"; //loop through all annotations and display foreach($vars['annotation'] as $content) { @@ -18,5 +18,5 @@ if (is_array($vars['annotation']) && sizeof($vars['annotation']) > 0) { echo "
"; } else { - echo "
" . elgg_echo("profile:commentwall:none") . "
"; + echo "

" . elgg_echo("profile:commentwall:none") . "

"; } \ No newline at end of file diff --git a/mod/profile/views/default/profile/commentwall/commentwall_content.php b/mod/profile/views/default/profile/commentwall/commentwall_content.php index d2a313d93..1317ba62e 100644 --- a/mod/profile/views/default/profile/commentwall/commentwall_content.php +++ b/mod/profile/views/default/profile/commentwall/commentwall_content.php @@ -3,30 +3,30 @@ * Elgg Message board individual item display page */ ?> -
+
-
+
get_entity($vars['annotation']->owner_guid), 'size' => 'tiny')); ?>
- -

- owner_guid)->name . " " . friendly_time($vars['annotation']->time_created); ?> -

- -
parse_urls($vars['annotation']->value))); ?>
-
+ +
canEdit()) { - echo "
" . elgg_view("output/confirmlink",array( + echo ""; + )) . "
"; } //end of can edit if statement ?> + +

+ owner_guid)->name . " " . friendly_time($vars['annotation']->time_created); ?> +

+ + parse_urls($vars['annotation']->value))); ?>
-
-
+
diff --git a/mod/profile/views/default/profile/commentwall/commentwalladd.php b/mod/profile/views/default/profile/commentwall/commentwalladd.php index 0d696b955..084ffc400 100644 --- a/mod/profile/views/default/profile/commentwall/commentwalladd.php +++ b/mod/profile/views/default/profile/commentwall/commentwalladd.php @@ -3,10 +3,10 @@ * Elgg profile comment wall add */ ?> -
+
-
+
diff --git a/mod/profile/views/default/profile/css.php b/mod/profile/views/default/profile/css.php index 7a82b2bec..57e54cc52 100644 --- a/mod/profile/views/default/profile/css.php +++ b/mod/profile/views/default/profile/css.php @@ -209,6 +209,13 @@ } +/* *************************************** + commentwall within profile +*************************************** */ +#comment_wall_add textarea { + width:685px; +} + /* *************************************** twitter panel within profile *************************************** */ -- cgit v1.2.3