diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-21 09:59:37 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-21 09:59:37 +0000 |
commit | ddda4706db4f6e1f1656f41fcb5e9680b6339151 (patch) | |
tree | 90b349b94f0a1723c51cc777bda6dcbeeb5ea9d0 /mod/blog/views/default | |
parent | d8e044d4b6bcc240f974d457a4601f54b6eea526 (diff) | |
download | elgg-ddda4706db4f6e1f1656f41fcb5e9680b6339151.tar.gz elgg-ddda4706db4f6e1f1656f41fcb5e9680b6339151.tar.bz2 |
remove likes and comments from blog activity view if in classic mode
git-svn-id: http://code.elgg.org/elgg/trunk@5827 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default')
-rw-r--r-- | mod/blog/views/default/river/object/blog/create.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php index 1071deb30..d74a0bd8f 100644 --- a/mod/blog/views/default/river/object/blog/create.php +++ b/mod/blog/views/default/river/object/blog/create.php @@ -10,8 +10,11 @@ $contents = strip_tags($object->description); //strip tags from the contents to $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->publish_time) . "</span> <a class='river_comment_form_button link'>Comment</a>"; -$string .= elgg_view('likes/forms/link', array('entity' => $object)); +$string .= $title . " <a href=\"" . $object->getURL() . "\">" . $object->title . "</a> <span class='entity_subtext'>" . friendly_time($object->publish_time) . "</span>"; +if (get_plugin_setting('activitytype', 'riverdashboard') != 'classic'){ + $string .= "<a class='river_comment_form_button link'>Comment</a>"; + $string .= elgg_view('likes/forms/link', array('entity' => $object)); +} $string .= "<div class=\"river_content_display\">"; $string .= "<div class='river_object_blog_create'></div>"; if(strlen($contents) > 200) { |