blob: c6867b2c26603de1f1d2e14c6fbb040fcd7d90a8 (
plain)
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
{* $Header$ *}
{if empty($print_page)}{assign var=print_page value=false}{/if}
{if !empty($liberty_preview) || !empty($preview)}
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="{$uri}"
dc:identifer="{$uri}"
dc:title="{if $post_info.use_title eq 'y'}{$post_info.title|escape} posted by {$post_info.user} on {$post_info.publish_date|default:$post_info.created|bit_short_datetime}{else}{$post_info.publish_date|default:$post_info.created|bit_short_datetime} posted by {$post_info.user}{/if}"
trackback:ping="{$uri2}" />
</rdf:RDF>
-->
{/if}
{strip}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$post_info}
<div class="display blogs">
{if empty($liberty_preview)}
{if !($preview)}
<div class="floaticon">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$post_info}
{if $gBitUser->hasPermission( 'p_users_view_icons_and_tools' )}
{if $gBitSystem->isPackageActive( 'rss' ) && $gBitSystem->isFeatureActive( 'rss_blogs' )}
<a href="{$smarty.const.BLOGS_PKG_URL}blogs_rss.php?user_id={$post_info.user_id}">{biticon ipackage="icons" iname="network-transmit" iexplain="RSS feed"}</a>
{/if}
{if $gContent->hasUserPermission( 'p_blogs_admin' )}
<a title="{tr}Crosspost{/tr}" href="{$smarty.const.BLOGS_PKG_URL}crosspost.php?post_id={$post_info.post_id}">{biticon ipackage="icons" iname="stock_attach" iexplain="Crosspost"}</a>
{/if}
<a title="{tr}Print{/tr}" href="{$smarty.const.BLOGS_PKG_URL}print_blog_post.php?post_id={$post_info.post_id}">{biticon ipackage="icons" iname="document-print" iexplain="Print"}</a>
{if $gBitUser->hasPermission('p_blogs_send_post')}
<a title="{tr}Email This Post{/tr}" href="{$smarty.const.BLOGS_PKG_URL}send_post.php?post_id={$post_info.post_id}">{biticon ipackage="icons" iname="internet-mail" iexplain="Email This Post"}</a>
{/if}
{if $gContent->hasUpdatePermission()}
<a title="{tr}Edit{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$post_info.blog_id|default:0}&post_id={$post_info.post_id}">{biticon ipackage="icons" iname="edit" iexplain="edit"}</a>
<a title="{tr}History{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post_history.php?content_id={$post_info.content_id}">{biticon ipackage="icons" iname="appointment" iexplain="History"}</a>
{/if}
{if $gContent->hasUserPermission( 'p_blogs_admin' )}
<a title="{tr}Remove{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?action=remove&post_id={$post_info.post_id}&status_id=300">{biticon ipackage="icons" iname="user-trash" iexplain="delete"}</a>
{/if}
{/if}
</div>
{/if}
{/if}
<div class="main_header">
{if !empty($post_info.blogtitle)}
<h1>{$post_info.blogtitle|escape|highlight}</h1>
{/if}
<div class="navigation">
{if $gContent_previous}
<span class="left">
Previous: <a href="{$gContent_previous->getDisplayUrl()}">{$gContent_previous->getTitle()|escape}</a>
</span>
{/if}
{if $gContent_next}
<span class="right">
Next: <a href="{$gContent_next->getDisplayUrl()}">{$gContent_next->getTitle()|escape}</a>
</span>
{/if}
</div>
<h1>
{if $post_info.use_title eq 'y' && $post_info.title}
{$post_info.title|escape|highlight}
{else}
{$post_info.publish_date|default:$post_info.created|bit_long_date}
{/if}
</h1>
<div class="date">
{tr}by {displayname hash=$post_info}{/tr}<br />
{$post_info.publish_date|default:$post_info.created|bit_long_date}<br />
{if count($post_info.blogs) > 0}
{tr}Posted to{/tr}
{foreach from=$post_info.blogs item=memberBlog key=blogContentId name=memberBlogLoop}
<a href="{$memberBlog.blog_url}">{$memberBlog.title}</a>{if $smarty.foreach.memberBlogLoop.total > 1 && !$smarty.foreach.memberBlogLoop.last }, {/if}
{/foreach}
<br />
{/if}
</div>
{if ( !empty( $highlightWordList) ) }{$highlightWordList}{/if}
</div>
<div class="body"
{if $gBitUser->getPreference( 'users_double_click' ) eq 'y' && (($ownsblog eq 'y') || $gContent->hasUserPermission( 'p_blogs_admin' ))}
ondblclick="location.href='{$smarty.const.BLOGS_PKG_URL}post.php?post_id={$post_info.post_id}';"
{/if}
>
<div class="content">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$post_info}
{* deal with the blog post image if there is one *}
{if $gBitSystem->isFeatureActive( 'blog_show_image' ) && $post_info.thumbnail_url}
<div class="image primary">
{jspopup notra=1 href=$post_info.thumbnail_url.original alt=$post_info.title|escape title=$post_info.title|escape img=$post_info.thumbnail_url.medium}
</div>
{/if}
{$parsed_data|highlight}
</div> <!-- end .content -->
</div> <!-- end .body -->
<div class="footer">
<a href="{$post_info.display_url}" rel="bookmark">{tr}Permalink{/tr}</a>
{assign var=spacer value=true}
{if $post_info.trackbacks_from_count > 0}
{if $spacer} • {/if}
{tr}referenced by{/tr} {$post_info.trackbacks_from_count} {tr}posts{/tr}
{/if}
{if $post_info.trackbacks_to_count > 0}
{if $spacer} • {/if}
{tr}references{/tr} {$post_info.trackbacks_to_count} {tr}posts{/tr}
{/if}
{if $gBitSystem->isFeatureActive( 'blog_posts_comments' )}
{if $spacer} • {/if}
{if $showDescriptionsOnly}<a href="{$post_info.display_url}#editcomments">{/if}
{$post_info.num_comments} {if $post_info.num_comments neq 1}{tr}Comments{/tr}{else}{tr}Comment{/tr}{/if}
{if $showDescriptionsOnly}</a>{/if}
{/if}
</div> {* end .footer *}
{if !empty($pages) && $pages > 1}
<div class="pagination">
<a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$smarty.request.blog_id}&post_id={$smarty.request.post_id}&page={$first_page}">{biticon ipackage="icons" iname="go-first" iexplain="first page"}</a>
<a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$smarty.request.blog_id}&post_id={$smarty.request.post_id}&page={$prev_page}">{biticon ipackage="icons" iname="go-previous" iexplain="previous page"}</a>
{tr}page{/tr}:{$page}/{$pages}
<a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$smarty.request.blog_id}&post_id={$smarty.request.post_id}&page={$next_page}">{biticon ipackage="icons" iname="go-next" iexplain="next page"}</a>
<a href="{$smarty.const.BLOGS_PKG_URL}view_post.php?blog_id={$smarty.request.blog_id}&post_id={$smarty.request.post_id}&page={$last_page}">{biticon ipackage="icons" iname="go-last" iexplain="last page"}</a>
</div>
{/if}
{if $post_info.trackbacks_from_count > 0}
<table>
<caption>{tr}Trackback Pings{/tr}</caption>
<tr>
<th>{tr}Title{/tr}</th>
<th>{tr}URI{/tr}</th>
<th>{tr}Blog name{/tr}</th>
</tr>
{cycle values="even,odd" print=false}
{foreach from=$post_info.trackbacks_from key=key item=item}
<tr class="{cycle}">
<td>{$item.title|escape}</td>
<td><a href="{$key}" title="{$key}" class="external">{$key|truncate:"40"}</a></td>
<td>{$item.blog_name}</td>
</tr>
{/foreach}
</table>
{/if}
</div> {* end .blog *}
{if $gBitSystem->isFeatureActive( 'blog_posts_comments' ) && !empty($preview) && !empty($liberty_preview)}
{include file="bitpackage:liberty/comments.tpl"}
{/if}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$post_info}
{/strip}
|