+ list($categories, $folders) = get_cats_and_terms($item);
+
+ if($a->theme['template_engine'] === 'internal') {
+ $body_e = template_escape($body);
+ $text_e = strip_tags(template_escape($body));
+ $name_e = template_escape($profile_name);
+ $title_e = template_escape($item['title']);
+ $location_e = template_escape($location);
+ $owner_name_e = template_escape($this->get_owner_name());
+ }
+ else {
+ $body_e = $body;
+ $text_e = strip_tags($body);
+ $name_e = $profile_name;
+ $title_e = $item['title'];
+ $location_e = $location;
+ $owner_name_e = $this->get_owner_name();
+ }
+
+ // Disable features that aren't available in several networks
+ if (($item["item_network"] != NETWORK_DFRN) AND isset($buttons["dislike"])) {
+ unset($buttons["dislike"],$isevent);
+ $tagger = '';
+ }
+
+ if (($item["item_network"] == NETWORK_FEED) AND isset($buttons["like"]))
+ unset($buttons["like"]);
+
+ if (($item["item_network"] == NETWORK_MAIL) AND isset($buttons["like"]))
+ unset($buttons["like"]);
+
+ // Diaspora isn't able to do likes on comments - but red does
+ if (($item["item_network"] == NETWORK_DIASPORA) AND ($indent == 'comment') AND
+ !diaspora::is_redmatrix($item["owner-link"]) AND isset($buttons["like"]))
+ unset($buttons["like"]);
+
+ // Diaspora doesn't has multithreaded comments
+ if (($item["item_network"] == NETWORK_DIASPORA) AND ($indent == 'comment'))
+ unset($comment);
+
+ // Facebook can like comments - but it isn't programmed in the connector yet.
+ if (($item["item_network"] == NETWORK_FACEBOOK) AND ($indent == 'comment') AND isset($buttons["like"]))
+ unset($buttons["like"]);