blob: a3686c0d0da54af58608ced384e300402debc1e4 (
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
|
{* $Header$ *}
{strip}
<div class="edit blogs">
<div class="header">
{if !$post_info.content_id}
<h1>{tr}Create Post{/tr}</h1>
{else}
<h1>{tr}Edit Post{/tr}</h1>
{/if}
</div>
<div class="body">
{if $preview eq 'y'}
<h2>Preview {$title}</h2>
<div class="preview">
{include file="bitpackage:blogs/view_blog_post.tpl"}
</div>
{/if}
{form enctype="multipart/form-data" id="editpageform"}
<input type="hidden" name="content_id" value="{$gContent->getField('content_id')}" />
<input type="hidden" name="rows" value="{$rows}"/>
<input type="hidden" name="cols" value="{$cols}"/>
{jstabs}
{jstab title="Blog Post"}
{legend legend="Post"}
{if !$blog_data.use_title OR $blog_data.use_title eq 'y'}
<div class="control-group">
{formlabel label="Title" for="title"}
{forminput}
<input type="text" size="50" name="title" id="title" value="{$post_info.title|escape}" />
{formhelp note="When you leave the title blank, the current date will be substituted automagically."}
{/forminput}
</div>
{/if}
<div class="control-group">
{formlabel label="Summary" for="summary"}
{forminput}
<input type="text" size="50" name="summary" id="summary" value="{$post_info.summary|escape}" />
{formhelp note="Description used in listings and search results. If left empty, the first few sentences of the body text will be used."}
{/forminput}
</div>
{if $gBitSystem->isFeatureActive( 'blog_posts_autosplit' )}
{include file="bitpackage:liberty/edit_format.tpl"}
{formlabel label="Intro" for="edit"}
{formhelp note="Text entered here is the top half of your post."}
{textarea noformat="y" edit=$post_info.raw}
{formlabel label="Body" for="edit_body"}
{formhelp note="Text entered here will be displayed in the full blog post, commonly known as the Read More section."}
{textarea id="edit_body" name="edit_body" noformat="y" edit=$post_info.raw_more}
{else}
{textarea edit=$post_info.raw}
{/if}
{if $availableBlogs}
<div class="control-group">
{formlabel label="Include in Blogs" for=""}
{forminput}
{if count($availableBlogs) > 10}
<select name="blog_content_id[]" size="6" id="blog_id" multiple="multiple">
{foreach from=$availableBlogs key=blogContentId item=availBlogTitle}
<option value="{$blogContentId}" {if $gContent->mInfo.blogs.$blogContentId || $blogContentId == $smarty.request.blog_id}selected="selected"{/if}>{$availBlogTitle|escape}</option>
{/foreach}
</select>
{else}
{foreach from=$availableBlogs key=blogContentId item=availBlogTitle}
<input name="blog_content_id[]" type="checkbox" value="{$blogContentId}" {if $gContent->mInfo.blogs.$blogContentId || $blogContentId == $smarty.request.blog_id || $blogContentId == $default_target_blog_content_id}checked="checked"{/if} /> {$availBlogTitle|escape}<br/>
{/foreach}
{/if}
{formhelp note="You can cross post to any and all of the blogs listed above.<br />Just check off the blogs you wish this post to also show up in."}
{/forminput}
</div>
{/if}
{* here we assign edit_content_status_tpl to customize the status input presentation. this gets passed along to liberty::edit_service_mini_inc.tpl *}
{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl" edit_content_status_tpl="bitpackage:blogs/edit_blogpost_status_inc.tpl"}
{include file="bitpackage:liberty/edit_storage_list.tpl"}
<div class="control-group submit">
<input type="submit" class="btn btn-default" name="preview" value="{tr}Preview{/tr}" />
<input type="submit" class="btn btn-default" name="save_post_exit" value="{tr}Save{/tr}" />
</div>
{/legend}
{/jstab}
{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_tab_tpl"}
{if $gBitUser->hasPermission('p_liberty_attach_attachments') }
{jstab title="Attachments"}
{legend legend="Attachments"}
{include file="bitpackage:liberty/edit_storage.tpl"}
{/legend}
{/jstab}
{/if}
{jstab title="Advanced Options"}
{legend legend="Publication and Expiration Dates"}
<div class="control-group">
<input type="hidden" name="publishDateInput" value="1" />
{formlabel label="Publish Date" for=""}
{forminput}
{html_select_date prefix="publish_" time=$post_info.publish_date start_year="-5" end_year="+10"} {tr}at{/tr}
<span dir="ltr">{html_select_time prefix="publish_" time=$post_info.publish_date display_seconds=false} {$siteTimeZone}</span>
{formhelp note="This post will not be displayed <strong>before</strong> this date."}
{/forminput}
</div>
<div class="control-group">
<input type="hidden" name="expireDateInput" value="1" />
{formlabel label="Expiration Date" for=""}
{forminput}
{html_select_date prefix="expire_" time=$post_info.expire_date start_year="-5" end_year="+10"} {tr}at{/tr}
<span dir="ltr">{html_select_time prefix="expire_" time=$post_info.expire_date display_seconds=false} {$siteTimeZone}</span>
{formhelp note="If this date is set after the publish date, this post will not be displayed <strong>after</strong> the expiration date."}
{/forminput}
</div>
{/legend}
{legend legend="Trackbacks"}
<div class="control-group">
{formlabel label="Send trackback pings" for="trackback"}
{forminput}
<textarea name="trackback" id="trackback" rows="3" cols="50">{section name=ix loop=$trackbacks_to}{if not $smarty.section.ix.first},{/if}{$trackbacks_to[ix]}{/section}</textarea>
{formhelp note="Insert a comma separated list of URIs to send blogs."}
{/forminput}
</div>
{/legend}
{/jstab}
{/jstabs}
{/form}
</div><!-- end .body -->
</div><!-- end .blogs -->
{/strip}
|