{* $Id$ *} {title url="tiki-blog_post.php?blogId=$blogId&postId=$postId"}{if $postId gt 0}{tr}Edit Post{/tr}{else}{tr}New Post{/tr}{/if}{if !empty($blog_data.title)} - {$blog_data.title}{/if}{/title}
{if $postId> 0} {button href=$postId|sefurl:blogpost class="btn btn-info" _text="{tr}View post{/tr}"} {/if} {if $blogId gt 0} {assign var=thisblog value=$blogId|sefurl:blog} {button href=$thisblog class="btn btn-info" _text="{tr}View Blog{/tr}"} {/if} {if $blogs|@count gt 1} {* No need for users to go to blog list if they are already looking at the only blog *} {button href="tiki-list_blogs.php" class="btn btn-info" _text="{tr}List Blogs{/tr}"} {/if}
{if isset($contribution_needed) and $contribution_needed eq 'y'} {remarksbox type='Warning' title="{tr}Warning{/tr}"}
{tr}A contribution is mandatory{/tr}
{/remarksbox} {/if} {if $preview eq 'y'}
{tr}Note: Remember that this is only a preview, and has not yet been saved!{/tr}
{include file='blog_wrapper.tpl' blog_post_context='preview'}
{/if} {capture name=actionUrlParam}{strip} {if $postId > 0 && $blogId > 0} ?blogId={$blogId}&postId={$postId} {elseif $postId > 0} ?postId={$postId} {elseif $blogId > 0} ?blogId={$blogId} {/if} {/strip}{/capture}
{ticket}
{if $blogs|@count gt 1 and ( !isset($blogId) or $blogId eq 0 )}
{else} {/if}
{if $blog_data.use_excerpt eq 'y'}
{textarea id="post_excerpt" class="form-control wikiedit" name="excerpt" rows="3"}{if isset($post_info.excerpt)}{$post_info.excerpt}{/if}{/textarea}
{/if}
{textarea id='blogedit' class="form-control wikiedit" name="data"}{if isset($data)}{$data}{/if}{/textarea}
{if $postId > 0 && $wysiwyg ne 'y'} {if count($post_images) > 0}
{section name=ix loop=$post_images} {/section}
{$post_images[ix].filename}
{icon name='trash' iclass='tips' ititle=":{tr}Delete{/tr}"}
{/if} {/if} {if $prefs.geo_locate_blogpost eq 'y'}
{$headerlib->add_map()}
{/if}
{if $prefs.feature_blog_edit_publish_date eq 'y'}
{if isset($post_info.created)} {$created = $post_info.created} {else} {$created = ''} {/if} {html_select_date prefix="publish_" time=$created start_year=$prefs.display_start_year end_year=$prefs.display_end_year field_order=$prefs.display_field_order} {tr}at{/tr} {html_select_time prefix="publish_" time=$created display_seconds=false use_24_hours=$use_24hr_clock}
{/if} {if $prefs.feature_freetags eq 'y' and $tiki_p_freetags_tag eq 'y'} {include file='freetag.tpl'} {/if} {if $prefs.feature_contribution eq 'y'} {include file='contribution.tpl'} {/if} {include file='categorize.tpl'}