]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Updated/cleaned-up generic comments with new UI.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 12 Mar 2010 15:53:03 +0000 (15:53 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 12 Mar 2010 15:53:03 +0000 (15:53 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5377 36083f99-b078-4883-b0ff-0f9b5a30f544

_graphics/header_shadow.png [new file with mode: 0644]
mod/blog/views/default/blog/css.php
mod/blog/views/default/object/blog.php
views/default/annotation/annotate.php
views/default/annotation/generic_comment.php
views/default/annotation/latest_comments.php
views/default/css.php

diff --git a/_graphics/header_shadow.png b/_graphics/header_shadow.png
new file mode 100644 (file)
index 0000000..4c07b81
Binary files /dev/null and b/_graphics/header_shadow.png differ
index 1a85330e25a8238d473212fe9b76c441846444f3..3cddd31056b8b178b74d44124b0185f58bcdcbbf 100644 (file)
@@ -9,3 +9,14 @@
  * @link http://elgg.org/
 */
 ?>
+.blogpost {
+       border-bottom:1px dotted #CCCCCC;
+}
+.blogpost .body {
+       margin-top:5px;
+       margin-bottom:10px;
+       display:block;
+}
+.blogpost .body p {
+       line-height: 1.4em;
+}
\ No newline at end of file
index 4a56ec0e16fd92718407d96c5e218c5578904ca8..5a86e7e3d0a4816b9ce485ccef36d8032e94b9df 100644 (file)
@@ -61,7 +61,7 @@ if ($full) {
        $owner_title = sprintf(elgg_echo('blog:owner_title'), $user->name);
 
 echo <<<___END
-<div class="blog clearfloat">
+<div class="blogpost clearfloat">
        <div id="content_header" class="clearfloat">
                <div class="content_header_title"><h2>$owner_title</h2></div>
        </div>  
@@ -77,7 +77,7 @@ echo <<<___END
                        $comments_link
                </p>
                <p class="tags">$tags</p>
-               <p class="blog body">$body</p>
+               <span class="body">$body</span>
        </div>
 </div>
 
index a1940bed70e4f6eb68b066acd5c5e26b713f47d6..e66035204a9eeee17f6d6500504e2b6ac727db16 100644 (file)
@@ -14,7 +14,7 @@
        $string = sprintf(elgg_echo("river:posted:generic"),$url) . " ";
        $string .= elgg_echo("{$subtype}:river:annotate") . "  <a href=\"{$object->getURL()}\">" . $title . "</a> " . friendly_time($object->time_created);
        if(get_context() != 'riverdashboard'){
-               $string .= "<div class=\"river_content_display\">";
+               $string .= "<div class='river_content_display'>";
                if($comment){
                        $contents = strip_tags($comment);//this is so we don't get large images etc in the activity river
                        if(strlen($contents) > 200)
index c747120be8fd3525c6e64971265be38e48c460a4..ebcae0f974ae1dce43a8d592cbcd5853c7400a73 100644 (file)
@@ -6,44 +6,41 @@
 $owner = get_user($vars['annotation']->owner_guid);
 
 ?>
-<div class="generic_comment clearfloat"><!-- start of generic_comment div -->
-
+<div class="generic_comment clearfloat">
        <div class="generic_comment_icon">
                <?php
-                       echo elgg_view("profile/icon",
-                               array(
+                       echo elgg_view("profile/icon", array(
                                        'entity' => $owner,
-                                       'size' => 'small'
-                               )
-                       );
+                                       'size' => 'tiny'
+                                       ));
                ?>
        </div>
+       
        <div class="generic_comment_details">
                <?php
-
-                       // if the user looking at the comment can edit, show the delete link
-                       if ($vars['annotation']->canEdit()) {
-
-                       ?>
-               <span class="delete_button">
-                       <?php
-
-                               echo elgg_view("output/confirmlink",array(
-                                       'href' => $vars['url'] . "action/comments/delete?annotation_id=" . $vars['annotation']->id,
-                                       'text' => elgg_echo('delete'),
-                                       'confirm' => elgg_echo('deleteconfirm'),
-                               ));
-
-                       ?>
-               </span>
-
-                       <?php
+               // if the user looking at the comment can edit, show the delete link
+               if ($vars['annotation']->canEdit()) {
+               ?>
+                       <span class="delete_button">
+                               <?php echo elgg_view("output/confirmlink",array(
+                                               'href' => $vars['url'] . "action/comments/delete?annotation_id=" . $vars['annotation']->id,
+                                               'text' => elgg_echo('delete'),
+                                               'confirm' => elgg_echo('deleteconfirm')
+                                               ));
+                               ?>
+                       </span>
+               <?php
                        } //end of can edit if statement
                ?>
                <p class="generic_comment_owner">
-                       <a href="<?php echo $owner->getURL(); ?>"><?php echo $owner->name; ?></a> <?php echo friendly_time($vars['annotation']->time_created); ?>
+                       <a href="<?php echo $owner->getURL(); ?>"><?php echo $owner->name; ?></a>
+                       <span class="entity_subtext">
+                               <?php echo friendly_time($vars['annotation']->time_created); ?>
+                       </span>
                </p>
                <!-- output the actual comment -->
-               <div class="generic_comment_body"><?php echo elgg_view("output/longtext",array("value" => $vars['annotation']->value)); ?></div>
-       </div><div class="clearfloat"></div><!-- end of generic_comment_details -->
-</div><!-- end of generic_comment div -->
\ No newline at end of file
+               <div class="generic_comment_body">
+                       <?php echo elgg_view("output/longtext",array("value" => $vars['annotation']->value)); ?>
+               </div>
+       </div>
+</div>
\ No newline at end of file
index 85ddfab7b7268869682810bf56e34c9a5c1c5932..6ab7163ed9913900992b75248397034e6d130a29 100644 (file)
@@ -5,8 +5,6 @@
         
 if($vars['comments']){
        global $CONFIG;
-               
-       echo "<div class='sidebar container'>";
        echo "<h2>" . elgg_echo('latestcomments') . "</h2>";            
        foreach($vars['comments'] as $comment){
           //grab the entity the comment is on
@@ -30,10 +28,9 @@ if($vars['comments']){
                        $url_display = $objecttitle;
                }
        
-               echo "<div class='LatestComment'><span class='generic_comment_icon'>" . elgg_view("profile/icon",array('entity' => $comment_owner, 'size' => 'tiny')) . "</span>";
+               echo "<div class='latest_comment'><span class='generic_comment_icon'>" . elgg_view("profile/icon",array('entity' => $comment_owner, 'size' => 'tiny')) . "</span>";
                echo "<p class='owner_timestamp'><a href=\"{$vars['url']}pg/profile/{$comment_owner->username}\">{$comment_owner->name}</a> " . elgg_echo('on') . " {$url_display} <small>{$friendlytime}</small></p>";
-               echo "<div class='clearfloat'></div></div>";
+               echo "</div>";
        
        }
-       echo "</div>";
 }
\ No newline at end of file
index 61b736af61d183e38a8d79ba5c079409cd73bb37..f7ed1c2db7259ee12929b0e722fc0a2eab59a310 100644 (file)
        ELGG TABBED NAVIGATION          re-usable tabbed navigation
        LOGIN / REGISTER                        login box, register, and lost password page styles
        CONTENT HEADER
+       DEFAULT COMMENTS
        ENTITY LISTINGS                         elgg's default entity listings
        USER SETTINGS & ADMIN AREA      styles for user settings and default admin area
        GENERAL FORM ELEMENTS           default styles for all elgg input/form elements
-       
+       FRIENDS PICKER
        
 
 */
@@ -642,7 +643,7 @@ h2 {
        line-height:1.2em;
        color:#bababa;
        position: relative;
-       top:-8px;
+       top:-6px;
        left:0;
 }
 #breadcrumbs a {
@@ -914,6 +915,53 @@ select.styled .select_option {
 }
 
 
+/* ***************************************
+       DEFAULT COMMENTS
+**************************************** */
+.generic_comment {
+       border-bottom:1px dotted #cccccc;
+       clear:both;
+       display:block;
+       margin:0;
+       padding:5px 0 7px;
+       position:relative;
+}
+.generic_comment:first-child {
+       border-top:1px dotted #cccccc;
+}
+.generic_comment_icon {
+       float:left;
+       margin-left:3px;
+       margin-top:3px;
+}
+.generic_comment_icon img {
+       width: auto;
+}
+.generic_comment_details {
+       float:left;
+       margin-left:7px;
+       min-height:28px;
+       width:693px;
+}
+.generic_comment_details p {
+       margin:0;
+}
+.generic_comment_owner {
+       font-size: 1.1em;
+       line-height:1.2em;
+       color:#666666;
+}
+.generic_comment_owner a {
+       color:#0054A7;
+}
+.generic_comment_owner .entity_subtext {
+       color:#666666;
+       font-size: 90%;
+}
+.generic_comment_body {
+       margin:3px 0 5px 0;
+}
+
 
 /* ***************************************
        DEFAULT ENTITY LISTINGS
@@ -997,12 +1045,6 @@ select.styled .select_option {
 .admin_settings {
        margin-bottom:20px;
 }
-/*
-.user_settings p,
-.admin_settings p {
-       margin-bottom:6px;
-}
-*/
 .user_settings h3,
 .admin_settings h3 {
        background:#e4e4e4;
@@ -1312,7 +1354,7 @@ a.action_button:focus {
 
 
 /* ***************************************
-       FRIENDS PICKER SLIDER
+       FRIENDS PICKER
 *************************************** */
 .friends_picker_container h3 {
        font-size:4em !important;
@@ -1340,11 +1382,6 @@ a.action_button:focus {
        padding:0;
        width: 730px;
        height: auto;
-/*
-       background: #dedede;
-       -webkit-border-radius: 8px;
-       -moz-border-radius: 8px;
-*/
 }
 .friendspicker_savebuttons {
        background: white;