From deaaeec04747c5585ba1a04d53c01e4f805ad90b Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Thu, 14 Apr 2016 03:42:36 +0200 Subject: [PATCH] wall thread: add wall-item-body div for post content --- templates/search_item.tpl | 12 ++++++++---- templates/wall_thread.tpl | 9 ++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/templates/search_item.tpl b/templates/search_item.tpl index a5baf7042..937dbc5cc 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 256a20333..c8aea4a1b 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