From: rabuzarus Date: Thu, 14 Apr 2016 01:42:36 +0000 (+0200) Subject: wall thread: add wall-item-body div for post content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=deaaeec04747c5585ba1a04d53c01e4f805ad90b;p=friendica.git wall thread: add wall-item-body div for post content --- 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}} -

{{$item.title}}


+

{{$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}} -

{{$item.title}}


+

{{$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