]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/smarty3/conversation.tpl
newline at end of header
[friendica.git] / view / theme / quattro / smarty3 / conversation.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6 {{$live_update}}
7
8 {{foreach $threads as $thread}}
9 <div id="tread-wrapper-{{$thread.id}}" class="tread-wrapper">
10         {{foreach $thread.items as $item}}
11         {{if $mode == display}}
12         {{else}}
13                 {{if $item.comment_firstcollapsed}}
14                         <div class="hide-comments-outer">
15                         <span id="hide-comments-total-{{$thread.id}}" class="hide-comments-total">{{$thread.num_comments}}</span> <span id="hide-comments-{{$thread.id}}" class="hide-comments fakelink" onclick="showHideComments({{$thread.id}});">{{$thread.hide_text}}</span>
16                         </div>
17                         <div id="collapsed-comments-{{$thread.id}}" class="collapsed-comments" style="display: none;">
18                 {{/if}}
19                 {{if $item.comment_lastcollapsed}}</div>{{/if}}
20         {{/if}}
21         
22                 {{if $item.type == tag}}
23                         {{include file="wall_item_tag.tpl"}}
24                 {{else}}
25                         {{include file="{{$item.template}}"}}
26                 {{/if}}
27                 
28         {{/foreach}}
29 </div>
30 {{/foreach}}
31
32 <div id="conversation-end"></div>
33
34 {{if $dropping}}
35 <a href="#" onclick="deleteCheckedItems();return false;">
36         <span class="icon s22 delete text">{{$dropping}}</span>
37 </a>
38 {{/if}}
39
40 <script>
41 // jquery color plugin from https://raw.github.com/gist/1891361/17747b50ad87f7a59a14b4e0f38d8f3fb6a18b27/gistfile1.js
42     (function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(!g.colorInit){g.start=c(g.elem,e);g.end=b(g.end);g.colorInit=true}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={transparent:[255,255,255]}})(jQuery);
43     var colWhite = {backgroundColor:'#EFF0F1'};
44     var colShiny = {backgroundColor:'#FCE94F'};
45 </script>
46
47 {{if $mode == display}}
48 <script>
49     var id = window.location.pathname.split("/").pop();
50     $(window).scrollTop($('#item-'+id).position().top);
51     $('#item-'+id).animate(colWhite, 1000).animate(colShiny).animate(colWhite, 2000);   
52 </script>
53 {{/if}}
54