aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/river/controls.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-13 12:32:43 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-13 12:32:43 +0000
commitd611e9c962ce825eb7f4600f27f74c3dc477000f (patch)
treef5b600ce1ef7e27536548b514b3144ae138f1c7c /views/default/core/river/controls.php
parentf03c3bd5bfa8d8425121c769b27c4382147dec65 (diff)
downloadelgg-d611e9c962ce825eb7f4600f27f74c3dc477000f.tar.gz
elgg-d611e9c962ce825eb7f4600f27f74c3dc477000f.tar.bz2
Refs #2226 moving riverdashboard into core - need to clean up riverdashboard plugin and move to plugins repository and update plugins with new river views
git-svn-id: http://code.elgg.org/elgg/trunk@7610 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/core/river/controls.php')
-rw-r--r--views/default/core/river/controls.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/default/core/river/controls.php b/views/default/core/river/controls.php
new file mode 100644
index 000000000..7d6feaadd
--- /dev/null
+++ b/views/default/core/river/controls.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Controls on an river item
+ *
+ *
+ * @uses $vars['item']
+ */
+
+$object = $vars['item']->getObjectEntity();
+
+if (isloggedin()) {
+ if ($vars['item']->annotation_id == 0) {
+ $params = array(
+ 'href' => '#',
+ 'text' => elgg_echo('generic_comments:text'),
+ 'class' => 'elgg-toggle',
+ 'internalid' => "elgg-toggler-{$object->getGUID()}",
+ );
+ echo elgg_view('output/url', $params);
+ //echo elgg_view('likes/forms/link', array('entity' => $object));
+ }
+} \ No newline at end of file