]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
cleaned up left over views and css from likes
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Dec 2010 18:22:11 +0000 (18:22 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Dec 2010 18:22:11 +0000 (18:22 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7749 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css/screen.php
views/default/forms/likes/display.php [deleted file]
views/default/forms/likes/link.php [deleted file]

index bae0404f78e564a40c563a0f727f6dd30786a082..1aaffaaa810fbeb6e5db75e6df9ef4a6f831b6fb 100644 (file)
@@ -253,7 +253,7 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
 .elgg-river {
        border-top: 1px solid #CCCCCC;
 }
-.elgg-river li {
+.elgg-river li {
        border-bottom: 1px solid #CCCCCC;
 }
 .elgg-river-item {
@@ -342,6 +342,11 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
 .elgg-river-item input[type=submit] {
        margin: 0 0 0 10px;
 }
+.elgg-river-item > .elgg-alt a {
+       font-size: 90%;
+       float: right;
+       clear: both;
+}
 
 /* ***************************************
        LOGIN / REGISTER
@@ -773,75 +778,10 @@ a.elgg-widget-edit-button:hover, a.elgg-widget-delete-button:hover {
        -webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
        -moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
 }
-.elgg-river-item > .elgg-alt a {
-       font-size: 90%;
-       float: right;
-       clear: both;
-}
-
 
-
-.likes-list-holder {
-       position: relative;
-       float:right;
-}
-.likes-list-holder a.user-like {
-       cursor:pointer;
-       background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat left -101px;
-       text-indent: -9000em;
-       text-align: left;
-       display:block;
-       width:20px;
-       height:20px;
-       margin:0;
-       float:left;
-}
-.likes-list-holder a.user-like:hover {
-       background-position: left -131px;
-}
-.likes-list-holder .likes-list-button.link {
-       float:left;
-       text-align: left;
-       background: url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat left -131px;
-       padding-left:21px;
-       height:20px;
-}
-.likes-list-holder .likes-list-button.link.not-liked {
-       background:none;
-       padding-left:0;
-}
-.likes-list-holder .likes-list {
-       background-color: white;
-       border:1px solid #cccccc;
-       width: 345px;
-       height: auto;
-       position: absolute;
-       text-align: left;
-       z-index: 9999;
-       -webkit-border-radius: 6px;
-       -moz-border-radius: 6px;
-       -webkit-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
-       -moz-box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
-}
-.likes-list-holder .elgg-likes-user {
-       border-bottom:1px solid #cccccc;
-       padding:3px;
-}
-.likes-list-holder .elgg-likes-user .entity-listing-info {
-       width:305px;
-}
-.entity-listing .elgg-likes-user .entity-metadata {
-       min-width:20px !important;
-}
-.elgg-likes-user .entity-listing-icon {
-       margin:3px 0 4px 2px;
-}
-.elgg-likes-user .entity-metadata {
-       margin-top:3px;
-}
-p.elgg-likes-owner {
-       padding-top:4px;
-}
+/* ***************************************
+       MISC
+*************************************** */
 
 .user-picker .user-picker-entry {
        clear:both;
@@ -854,9 +794,7 @@ p.elgg-likes-owner {
        margin-right:10px;
 }
 
-/* ***************************************
-       MISC
-*************************************** */
+
 #dashboard-info {
        float: left;
        margin-bottom: 15px;
diff --git a/views/default/forms/likes/display.php b/views/default/forms/likes/display.php
deleted file mode 100644 (file)
index e71688b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-/**
- * Elgg likes - display users liked link/text
- *
- * @package Elgg
- *
- * @uses $vars['entity']
- */
-
-if (isset($vars['entity']) && isloggedin()) {
-
-       //display the number of likes
-       $numoflikes = elgg_count_likes($vars['entity']);
-       if ($numoflikes != 0) {
-               if ($numoflikes == 1) {
-                       $user_string = elgg_echo('likes:userlikedthis');
-               } else {
-                       $user_string = elgg_echo('likes:userslikedthis');
-               }
-
-               echo "<a class='river-more-comments off likes-user-list-button link'>" . elgg_count_likes($vars['entity']) . " " . $user_string . "</a>";
-       }
-}
\ No newline at end of file
diff --git a/views/default/forms/likes/link.php b/views/default/forms/likes/link.php
deleted file mode 100644 (file)
index decb4aa..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/**
- * Elgg likes link form - used on riverdashboard where we want the likes link separate from the list of users that liked the object
- *
- * @package Elgg
- *
- * @uses $vars['entity']
- */
-
-if (isset($vars['entity']) && isloggedin()) {
-       $guid = $vars['entity']->getGuid();
-       $url = elgg_add_action_tokens_to_url(elgg_get_site_url() . "action/likes/add?guid={$guid}");
-       //check to see if the user has already liked
-       if (!elgg_annotation_exists($guid, 'likes') ) {
-               echo "<span class='river_link_divider'> | </span><a class='river_user-like_button link' href=\"{$url}\">" . elgg_echo('likes:likethis') . "</a>";
-       }
-}
\ No newline at end of file