forked from ThinkUpLLC/ThinkUp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_post.otherorphan.tpl
62 lines (62 loc) · 2.62 KB
/
_post.otherorphan.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
{if $smarty.foreach.foo.first}
<div class="header clearfix">
<div class="grid_1 alpha">
</div>
<div class="grid_3 right">
name
</div>
<div class="grid_3 right">
followers
</div>
<div class="grid_3 right">
date
</div>
<div class="grid_12 omega">
post
</div>
</div>
{/if}
<div class="individual-tweet clearfix{if $t->is_protected} private{/if}">
<div class="grid_1 alpha">
<a href="{$cfg->site_root_path}user/?u={$t->author_username}&i={$i->network_username}"><img src="{$t->author_avatar}" width="48" height="48" class="avatar"></a>
</div>
<div class="grid_3 right small">
<a href="{$cfg->site_root_path}user/?u={$t->author_username}&i={$i->network_username}">{$t->author_username}</a>
</div>
<div class="grid_3 right small">
{$t->author->follower_count|number_format}
</div>
<div class="grid_3 right small">
<a href="{$cfg->site_root_path}post/?t={$t->post_id}">{$t->adj_pub_date|relative_datetime}</a>
</div>
<div class="grid_12 omega">
<div class="tweet-body">
{if $t->link->is_image}<a href="{$t->link->url}"><img src="{$t->link->expanded_url}" style="float:right;background:#eee;padding:5px"/></a>{/if}
<p>
{$t->post_text|regex_replace:"/^@[a-zA-Z0-9_]+/":""|link_usernames}{if $t->in_reply_to_post_id} <a href="{$cfg->site_root_path}post/?t={$t->in_reply_to_post_id}">in reply to</a>
{/if}
</p>
{if $t->link->expanded_url}<a href="{$t->link->expanded_url}" title="{$t->link->expanded_url}">{$t->link->title}</a>{/if}
{if $t->author->location}
<div class="small gray">
Location: {$t->author->location}
</div>{/if}
{if $t->author->description}
<div class="small gray">
Description: {$t->author->description}
</div>{/if}
<div id="div{$t->post_id}">
<form action="" class="post-setparent">
<select name="pid{$t->post_id}" id="pid{$t->post_id}" onselect>
<option disabled="disabled">Is in reply to...</option>
<option value="0">No particular tweet (standalone)</option>
{foreach from=$all_tweets key=aid item=a}<option value="{$a->post_id}">{$a->post_text|truncate_for_select}</option>
{/foreach}
</select>
<input type="submit" name="submit" class="button" id="{$t->post_id}" value="Save" />
</form>
</div>
</div>
</div>
</div>