/
post.index.tpl
executable file
·142 lines (134 loc) · 7.01 KB
/
post.index.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{include file="_header.tpl"}
{include file="_statusbar.tpl"}
<div class="thinkup-canvas round-all container_24">
<div class="clearfix">
<div class="grid_4 alpha">
<div id="nav-sidebar">
<ul id="top-level-sidenav"><br />
{if $post}
<ul class="side-subnav">
<li{if $smarty.get.v eq ''} class="currentview"{/if}><a href="index.php?t={$post->post_id}&n={$post->network}">Post Replies </a></li>
{if $logged_in_user}
<li><a href="#" class="grid_search" title="Search" onclick="return false;"><span id="grid_search_icon">Search & Filter Replies</span></a></li>
{/if}
<li><a href="{$site_root_path}post/export.php?u={$post->author_username}&n={$post->network}&post_id={$post->post_id}&type=replies">Export Replies (CSV)</a></li>
{if $post->reply_count_cache > $top_20_post_min}
<li><a href="#" class="grid_search" title="Search" onclick="return false;"><span class="word_frequency">Top 20 Words</span></a></li>
{/if}
</ul></li>
{/if}
{if $sidebar_menu}
{foreach from=$sidebar_menu key=smkey item=sidebar_menu_item name=smenuloop}
{if $sidebar_menu_item->header}</li></ul> <li>{$sidebar_menu_item->header}<ul class="side-subnav">{/if}
<li{if $smarty.get.v eq $smkey} class="currentview"{/if}><a href="index.php?v={$smkey}&t={$post->post_id}&n={$post->network}">{$sidebar_menu_item->name} </a></li>
{/foreach}
</li>
</ul>
{/if}
</ul>
</div>
</div>
<div class="grid_20 omega prepend_20 append_20">
{include file="_usermessage.tpl"}
{if $data_template}
{include file=$data_template}
<div class="float-l">
<!-- {if $next_page}
<a href="{$site_root_path}index.php?{if $smarty.get.v}v={$smarty.get.v}&{/if}{if $smarty.get.u}u={$smarty.get.u}&{/if}{if $smarty.get.n}n={$smarty.get.n}&{/if}page={$next_page}" id="next_page">< Older Posts</a>
{/if}
{if $last_page}
| <a href="{$site_root_path}index.php?{if $smarty.get.v}v={$smarty.get.v}&{/if}{if $smarty.get.u}u={$smarty.get.u}&{/if}{if $smarty.get.n}n={$smarty.get.n}&{/if}page={$last_page}" id="last_page">Newer Posts ></a>
{/if}-->
</div>
{else}
{if $post}
<div class="clearfix">
<div class="grid_2 alpha">
<div class="avatar-container">
<img src="{$post->author_avatar}" class="avatar2"/><img src="{$site_root_path}plugins/{$post->network|get_plugin_path}/assets/img/favicon.ico" class="service-icon2"/>
</div>
</div>
<div class="{if $replies}grid_12{else}grid_16{/if}">
<span class="tweet">
{if $post->post_text}
{$post->post_text|link_usernames_to_twitter}
{else}
<span class="no-post-text">No post text</span>
{/if}
</span>
{if $post->link->expanded_url and !$post->link->is_image and $post->link->expanded_url != $post->link->url}
<br><a href="{$post->link->expanded_url}" title="{$post->link->expanded_url}">
{$post->link->expanded_url}
</a>
{/if}
{if $post->link->expanded_url and $post->link->is_image}<br ><br >
<div class="pic"><a href="{$post->link->url}"><img src="{$post->link->expanded_url}" alt=""></a></div>
{/if}
<div class="grid_6 omega small gray {if $replies}prefix_3 prepend{else}prefix_10{/if}">
<img src="{$site_root_path}assets/img/social_icons/{$post->network|get_plugin_path}.png" class="float-l">
{if $post->network eq 'twitter'}
Posted at <a href="http://twitter.com/{$post->author_username}/statuses/{$post->post_id}">{$post->adj_pub_date}</a>{if $post->source} via {$post->source}{/if}<br>
{else}
Posted at {$post->adj_pub_date}{if $post->source} via {$post->source}{/if}<br>
{/if}
{if $post->location}From: {$post->location}{/if}
<!--{if $post->is_geo_encoded eq 1}
<div>
<a href="{$site_root_path}post/map.php?t=post&pid={$post->post_id}&n={$post->network}" title="Locate on Map">
<img src="{$site_root_path}assets/img/map_icon.png" class="map-icon map-icon-public">
</a>
</div>
{/if}-->
{if $replies}
</div>
</div>
<div class="grid_5 center big-number omega">
<div class="bl">
<div class="key-stat">
<h1>{$post->reply_count_cache|number_format}</h1>
<h3>replies in {$post->adj_pub_date|relative_datetime}</h3>
{/if}
</div>
</div>
</div>
{/if}
</div> <!-- end .clearfix -->
{if $replies}
<div class="append_20 clearfix"><br />
{if $post->reply_count_cache > $top_20_post_min}
{include file="_post.word-frequency.tpl"}
{/if}
<div id="post-replies-div">
{foreach from=$replies key=tid item=t name=foo}
{include file="_post.tpl" t=$t sort='no' scrub_reply_username=true reply_count=$post->reply_count_cache}
{/foreach}
</div>
{if $post->reply_count_cache > $top_20_post_min}
{include file="_post.word-frequency.tpl"}
<script src="{$site_root_path}assets/js/extlib/Snowball.stemmer.min.js" type="text/javascript"></script>
<script src="{$site_root_path}assets/js/word_frequency.js" type="text/javascript"></script>
{/if}
{if !$logged_in_user && $private_reply_count > 0}
<span style="font-size:12px">Not showing {$private_reply_count} private repl{if $private_reply_count == 1}y{else}ies{/if}.</span>
{/if}
</div>
{/if}
{/if}
<div class="append prepend clearfix">
<a href="{$site_root_path}index.php" class="tt-button ui-state-default tt-button-icon-left ui-corner-all">
<span class="ui-icon ui-icon-circle-arrow-w"></span>
Back home
</a>
</div>
</div>
</div>
</div> <!-- end .thinkup-canvas -->
<script type="text/javascript" src="{$site_root_path}assets/js/linkify.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
{if $replies && $logged_in_user}
{include file="_grid.search.tpl" version2=true}
<script type="text/javascript">post_username = '{$post->author_username}';</script>
<script type="text/javascript" src="{$site_root_path}assets/js/grid_search.js"></script>
{/if}
{include file="_footer.tpl"}