]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Moved all river entry metadata inside span (pushed onto new line) and added relevant css
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 8 Jul 2010 12:10:14 +0000 (12:10 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 8 Jul 2010 12:10:14 +0000 (12:10 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6660 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/views/default/river/object/blog/create.php
mod/bookmarks/views/default/river/object/bookmarks/create.php
mod/groups/views/default/river/forum/create.php
mod/groups/views/default/river/forum/topic/create.php
mod/riverdashboard/views/default/river/item/wrapper.php
mod/riverdashboard/views/default/riverdashboard/css.php
mod/thewire/views/default/river/object/thewire/create.php
views/default/annotation/annotate.php

index c14bd56e80b0a87c81a188a597405eb12c4ee5fa..eadd4381d77566eb61ae3ad74a8f5bc275515250 100644 (file)
@@ -10,12 +10,13 @@ $contents = strip_tags($object->excerpt);
 
 $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
 $title = sprintf(elgg_echo('blog:river:create'), $url);
-$string .= $title . " <a href=\"{$object->getURL()}\">{$object->title}</a> <span class=\"entity_subtext\">" . friendly_time($object->time_created) . '</span>';
+$string .= $title . " <a href=\"{$object->getURL()}\">{$object->title}</a> <span class='entity_subtext'>" . friendly_time($object->time_created);
 
 if (isloggedin()) {
        $string .= '<a class="river_comment_form_button link">' . elgg_echo('generic_comments:text') . '</a>';
        $string .= elgg_view('likes/forms/link', array('entity' => $object));
 }
+$string .= "</span>";
 
 $string .= '<div class="river_content_display">';
 $string .= '<div class="river_object_blog_create"></div>';
index d5124e4caaa8215962aee7380cdc25882cb603b2..2e27961c0e8f7accbbad233a5f275d5b27d4f8c2 100644 (file)
@@ -13,9 +13,10 @@ $string .= "<a href=\"" . $object->address . "\">" . $object->title . "</a>";
 if(($is_group instanceof ElggGroup) && (get_context() != 'groups')){
        $string .= " " . elgg_echo('bookmarks:ingroup') . " <a href=\"{$is_group->getURL()}\">" . $is_group->name . "</a>";
 }
-$string .= " <span class='entity_subtext'>" . friendly_time($object->time_created) . "</span>";
+$string .= " <span class='entity_subtext'>" . friendly_time($object->time_created);
 if (isloggedin()){
        $string .= "<a class='river_comment_form_button link'>Comment</a>";
        $string .= elgg_view('likes/forms/link', array('entity' => $object));
 }
+$string .= "</span>";
 echo $string;
\ No newline at end of file
index 4906fc869ac0d1d67e83259f71ad57f7cf352dd4..e99c77a4e72ad84ec408ca220f631a1fafd1570f 100644 (file)
@@ -16,8 +16,9 @@
        $url = $vars['url'] . "mod/groups/topicposts.php?topic=" . $forumtopic . "&group_guid=" . $group_guid;
        $url_user = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
        $string = sprintf(elgg_echo("groupforum:river:posted"),$url_user) . " ";
-       $string .= elgg_echo("groupforum:river:annotate:create") . " | <a href=\"" . $url . "\">" . $object->title . "</a> <span class='entity_subtext'>". friendly_time($object->time_created) ."</span> <a class='river_comment_form_button link' href=\"{$object_url}\">Visit discussion</a>";
+       $string .= elgg_echo("groupforum:river:annotate:create") . " | <a href=\"" . $url . "\">" . $object->title . "</a> <span class='entity_subtext'>". friendly_time($object->time_created) ."<a class='river_comment_form_button link' href=\"{$object_url}\">Visit discussion</a>";
        $string .= elgg_view('likes/forms/link', array('entity' => $object));
+       $string .= "</span>";
        $string .= "<div class=\"river_content_display\">";
        $string .= elgg_make_excerpt($contents, 200);
        $string .= "</div>";
index fb2a3556d303888751a2da42a7ea131fb40d37ce..b44922022c07a0d4886379acb4d6b783fe6eb8fd 100644 (file)
        $string = sprintf(elgg_echo("groupforum:river:postedtopic"),$url_user) . ": ";
        $string .= "<a href=\"" . $url . "\">" . $object->title . "</a>";
        $string .= " " . elgg_echo('groups:ingroup') . " <a href=\"{$group->getURL()}\">" . $group->name . "</a>";
-       $string .= " <span class='entity_subtext'>". friendly_time($object->time_created) ."</span>";
+       $string .= " <span class='entity_subtext'>". friendly_time($object->time_created);
        if (isloggedin() && $object->status != "closed") {
                $string .= '<a class="river_comment_form_button link">' . elgg_echo('generic_comments:text') . '</a>';
                $string .= elgg_view('likes/forms/link', array('entity' => $object));
        }
+       $string .= "</span>";
        $string .= "<div class=\"river_content_display\">";
        $string .= elgg_make_excerpt($contents, 200);
        $string .= "</div>";
index 40b5f09b51d1076a5eb2e8d109aeeedc782fef4d..482057ed4721276ae7cefeaaacdbba7920c1c849 100644 (file)
@@ -104,7 +104,7 @@ if ($comments){
                $contents = elgg_make_excerpt($comment->value, 150);
 
                echo "<div class='river_comment_contents'>";
-               echo "<a href=\"{$comment_owner_url}\">" . $comment_owner->name . '</a>&nbsp;<span class="twitter_anywhere">' . parse_urls($contents) . '</span>';
+               echo "<a href=\"{$comment_owner_url}\">" . $comment_owner->name . '</a>&nbsp;<span class="elgg_excerpt">' . parse_urls($contents) . '</span>';
                echo "<span class='entity_subtext'>" . friendly_time($comment->time_created) . "</span>";
                echo "</div></div>";
                $counter++;
index 24c960fbcf5ad43db1311a146169e2e69c73e5a1..20da6ebeb4965b8f4c708a10f4450acf9b09d28c 100644 (file)
@@ -37,9 +37,8 @@
        margin:0;
 }
 .river_item .entity_subtext {
-       padding-left:5px;
-       padding-right:12px;
-       /*font-size:85%;*/
+       display: block;
+       line-height: 1.4em;
 }
 .river_item_useravatar {
        float:left;
 }
 .river_link_divider {
        color:#999999;
+       font-style: normal;
 }
 .river_item_contents .river_comment_form_button,
 .river_item_contents .river_user_like_button {
-       font-size:85%;
        font-weight:normal;
+       font-style: normal;
+}
+.river_item_contents .river_comment_form_button {
+       margin-left: 7px;
 }
 /* hidden list of users that liked item */
 .river_item .elgg_likes_user {
        margin-top:3px;
 }
 .river_item p.elgg_likes_owner {
-       padding-top:4px;
+       padding-top:0;
 }
 .river_item a.river_more_comments {
        display:block;
index 8114e969eda60f34a00178e68075caf79251dcd2..d8d8ba3b5cced9e3b15fdc89401425fda73dae17 100644 (file)
@@ -8,9 +8,10 @@ $string = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}:</a> ";
 $desc = $object->description;
 //$desc = preg_replace('/\@([A-Za-z0-9\_\.\-]*)/i','@<a href="' . $vars['url'] . 'pg/thewire/$1">$1</a>',$desc);
 $string .= parse_urls($desc);
-$string .= " <span class='entity_subtext'>" . friendly_time($object->time_created) . "</span>";
+$string .= " <span class='entity_subtext'>" . friendly_time($object->time_created);
        if (isloggedin()){
                $string .= "<a class='river_comment_form_button link'>Comment</a>";
                $string .= elgg_view('likes/forms/link', array('entity' => $object));
        }
+$string .= "</span>";
 echo $string;
\ No newline at end of file
index 2cb35798b550957fbc86fb6b771cd984e90ac761..5cd2879c29178cff5f585f4eae255548c138500c 100644 (file)
@@ -12,8 +12,9 @@
                $comment = get_annotation($vars['item']->annotation_id)->value; 
        $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
        $string = sprintf(elgg_echo("river:posted:generic"),$url) . " ";
-       $string .= elgg_echo("{$subtype}:river:annotate") . "  <a href=\"{$object->getURL()}\">" . $title . "</a> <span class='entity_subtext'>". friendly_time($object->time_created) ."</span> <a class='river_comment_form_button link'>Comment</a>";
+       $string .= elgg_echo("{$subtype}:river:annotate") . "  <a href=\"{$object->getURL()}\">" . $title . "</a> <span class='entity_subtext'>". friendly_time($object->time_created) ."<a class='river_comment_form_button link'>Comment</a>";
        $string .= elgg_view('likes/forms/link', array('entity' => $object));
+       $string .= "</span>";
        if(get_context() != 'riverdashboard'){
                $string .= "<div class='river_content_display'>";
                if($comment){