diff options
| -rw-r--r-- | BitBlogPost.php | 12 | ||||
| -rw-r--r-- | templates/crosspost.tpl | 9 |
2 files changed, 16 insertions, 5 deletions
diff --git a/BitBlogPost.php b/BitBlogPost.php index 10182d0..81747ef 100644 --- a/BitBlogPost.php +++ b/BitBlogPost.php @@ -1,12 +1,12 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_blogs/BitBlogPost.php,v 1.105 2007/11/12 04:00:13 wjames5 Exp $ + * $Header: /cvsroot/bitweaver/_bit_blogs/BitBlogPost.php,v 1.106 2007/11/12 22:39:18 wjames5 Exp $ * * Copyright (c) 2004 bitweaver.org * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: BitBlogPost.php,v 1.105 2007/11/12 04:00:13 wjames5 Exp $ + * $Id: BitBlogPost.php,v 1.106 2007/11/12 22:39:18 wjames5 Exp $ * * Virtual base class (as much as one can have such things in PHP) for all * derived tikiwiki classes that require database access. @@ -16,7 +16,7 @@ * * @author drewslater <andrew@andrewslater.com>, spiderr <spider@steelsun.com> * - * @version $Revision: 1.105 $ $Date: 2007/11/12 04:00:13 $ $Author: wjames5 $ + * @version $Revision: 1.106 $ $Date: 2007/11/12 22:39:18 $ $Author: wjames5 $ */ /** @@ -963,6 +963,10 @@ class BitBlogPost extends LibertyAttachable { if( !empty( $this->mInfo['summary'] ) ) { $res['summary'] = $this->mInfo['summary']; } + if( !empty( $res['crosspost_note'] ) ){ + $res['crosspost_note_raw'] = $parseHash['data'] = $res['crosspost_note']; + $res['crosspost_note'] = $this->parseData( $parseHash ); + } $ret[] = $res; @@ -1111,4 +1115,4 @@ class BitBlogPost extends LibertyAttachable { } } -?>
\ No newline at end of file +?> diff --git a/templates/crosspost.tpl b/templates/crosspost.tpl index 57c5a3f..9ac6357 100644 --- a/templates/crosspost.tpl +++ b/templates/crosspost.tpl @@ -51,8 +51,15 @@ </div> {/if} - FORMAT: {$post_info.format_guid}<br/> {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} <div class="row submit"> |
