aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/likes
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 18:22:11 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 18:22:11 +0000
commit6729784c18099d4e34c2ed6146b63f275a2eea54 (patch)
treeadf09be5723bec75d5500d2c2eb704bdeb4623d8 /views/default/forms/likes
parent3c083f6c4ff4d354a546e03477e7a4acbb16d4a9 (diff)
downloadelgg-6729784c18099d4e34c2ed6146b63f275a2eea54.tar.gz
elgg-6729784c18099d4e34c2ed6146b63f275a2eea54.tar.bz2
cleaned up left over views and css from likes
git-svn-id: http://code.elgg.org/elgg/trunk@7749 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms/likes')
-rw-r--r--views/default/forms/likes/display.php23
-rw-r--r--views/default/forms/likes/link.php17
2 files changed, 0 insertions, 40 deletions
diff --git a/views/default/forms/likes/display.php b/views/default/forms/likes/display.php
deleted file mode 100644
index e71688bac..000000000
--- a/views/default/forms/likes/display.php
+++ /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
index decb4aa7f..000000000
--- a/views/default/forms/likes/link.php
+++ /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