{strip}

{tr}Crosspost{/tr}

{form enctype="multipart/form-data" name="blogpost" id="editpageform"} {legend legend="Crosspost"} {* we loop over this twice because we want two separate lists from the same hash *} {if $availableBlogs}
{formlabel label="Blogs this Post is Already Crossposted To" for="blog_id"} {forminput} {foreach from=$availableBlogs key=blogContentId item=availBlogTitle} {if $gContent->mInfo.blogs.$blogContentId && ($blogContentId != $crosspost.blog_content_id) } {assign var="has_crosspost" value=TRUE} {$availBlogTitle|escape}  {biticon ipackage="icons" iname="accessories-text-editor" iexplain="edit crosspost note"}  {biticon ipackage="icons" iname="edit-delete" iexplain="delete this crossposting"}
{/if} {/foreach} {if !$has_crosspost} {formhelp note="This blog post has not been crossposted to any blogs yet."} {else} {formhelp note=""} {/if} {/forminput}

{/if} {if $availableBlogs}
{formlabel label="Include in Blogs" for="blog_id"} {forminput} {foreach from=$availableBlogs key=blogContentId item=availBlogTitle} {if !$gContent->mInfo.blogs.$blogContentId || ($blogContentId == $crosspost.blog_content_id) } {assign var="has_crosspost_option" value=TRUE} {$availBlogTitle|escape}
{/if} {/foreach} {if !$has_crosspost_option} {formhelp note="This blog post has been crossposted to all blogs you have permission to cross post to."} {else} {formhelp note="You can cross post to any and all of the blogs listed above.
Just check off the blogs you wish this post to also show up in."} {/if} {/forminput}
{/if} {if $has_crosspost_option} {formlabel label="Crosspost Note Format"} {forminput} {foreach name=formatPlugins from=$gLibertySystem->mPlugins item=plugin key=guid} {if $plugin.edit_field eq $post_info.format_guid} {$plugin.edit_label} {/if} {/foreach} {/forminput} {textarea id="crosspost_note" label="Crosspost Note (Optional)" name="crosspost_note" noformat="y" rows=6 help="Add a note you would like to appear above the post when viewed on the crossposted blog. This does not appear on the post page."}{$crosspost.crosspost_note}{/textarea}
 
{/if} {/legend} {/form} {* ------this is the same as the guts of view_blog_post---- *}

{$post_info.blogtitle|escape}

{if $post_info.use_title eq 'y'} {$post_info.title|escape} {else} {$post_info.publish_date|default:$post_info.created|bit_long_date} {/if}

{tr}Posted by{/tr} {displayname hash=$post_info}
{tr}Posted on{/tr} {$post_info.publish_date|default:$post_info.created|bit_long_date}
{if count($post_info.blogs) > 0} {tr}Posted to{/tr} {foreach from=$post_info.blogs item=memberBlog key=blogContentId name=memberBlogLoop} {$memberBlog.title}{if $smarty.foreach.memberBlogLoop.total > 1 && !$smarty.foreach.memberBlogLoop.last }, {/if} {/foreach}
{/if}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$post_info} {$parsed_data}
{* end .footer *}
{* end .blog *}
{/strip}