diff --git a/templates/search_item.tpl b/templates/search_item.tpl
index a5baf70423..937dbc5ccf 100644
--- a/templates/search_item.tpl
+++ b/templates/search_item.tpl
@@ -126,10 +126,10 @@
{{/if}}
{{if $item.title}}
-
+
{{/if}}
- {{$item.body}}
+
{{$item.body}}
@@ -245,7 +245,11 @@ $(document).ready(function() {
$('li a[href^="message/new"]').attr('rel','modal');
// put shared content in an own wrapper div
- $('#wall-item-content-{{$item.id}} .shared_content').after('');
- $("#wall-item-content-{{$item.id}} .shared_header, #wall-item-content-{{$item.id}} .shared_content").appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper");
+ $('#wall-item-content-{{$item.id}} > #wall-item-body-{{$item.id}} > .shared_content').after('');
+ $("#wall-item-content-{{$item.id}} > #wall-item-body-{{$item.id}} > .shared_header, #wall-item-content-{{$item.id}} > #wall-item-body-{{$item.id}} > .shared_content").appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper");
+
+ // put shared content in an own wrapper (with showmore addon)
+ $('#wall-item-content-{{$item.id}} .showmore-content > .shared_content').parent().after('');
+ $("#wall-item-content-{{$item.id}} .showmore-teaser > .shared_header, #wall-item-content-{{$item.id}} .showmore-content > .shared_header").parent().appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper");
});
diff --git a/templates/wall_thread.tpl b/templates/wall_thread.tpl
index 256a20333b..c8aea4a1ba 100644
--- a/templates/wall_thread.tpl
+++ b/templates/wall_thread.tpl
@@ -250,10 +250,10 @@ as the value of $top_child_total (this is done at the end of this file)
{{/if}}
{{if $item.title}}
-
+
{{/if}}
- {{$item.body}}
+ {{$item.body}}
@@ -439,12 +439,11 @@ $(document).ready(function() {
$('li a[href^="message/new"]').attr('rel','modal');
// put shared content in an own wrapper div
- $('#wall-item-content-{{$item.id}} > .shared_content').after('');
- $("#wall-item-content-{{$item.id}} > .shared_header, #wall-item-content-{{$item.id}} > .shared_content").appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper");
+ $('#wall-item-content-{{$item.id}} > #wall-item-body-{{$item.id}} > .shared_content').after('');
+ $("#wall-item-content-{{$item.id}} > #wall-item-body-{{$item.id}} > .shared_header, #wall-item-content-{{$item.id}} > #wall-item-body-{{$item.id}} > .shared_content").appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper");
// put shared content in an own wrapper (with showmore addon)
$('#wall-item-content-{{$item.id}} .showmore-content > .shared_content').parent().after('');
$("#wall-item-content-{{$item.id}} .showmore-teaser > .shared_header, #wall-item-content-{{$item.id}} .showmore-content > .shared_header").parent().appendTo("#wall-item-content-{{$item.id}} .shared-content-wrapper");
-
});
\ No newline at end of file