' : this.value;" /> </div> <?php if (current_user_can('upload_files')) { ?> <div id="media-buttons" class="hide-if-no-js"> <?php echo P2::media_buttons(); ?> </div> <?php } ?> <textarea class="expand70-200" name="posttext" id="posttext" tabindex="1" rows="3" cols="60"></textarea> <div id="postbox-type-quote" class="post-input <?php if ('quote' == p2_get_posting_type()) { echo " selected"; } ?> "> <label for="postcitation" class="invisible"><?php _e('Citation', 'p2'); ?> </label> <input id="postcitation" name="postcitation" type="text" tabindex="2" value="<?php echo attribute_escape(__('Citation', 'p2')); ?> " onfocus="this.value=(this.value=='<?php echo js_escape(__('Citation', 'p2'));
<?php p2_user_prompt(); ?> </label> <?php endif; ?> <div id="postbox-type-post" class="post-input <?php if ( 'post' == p2_get_posting_type() ) echo ' selected'; ?>"> <input type="text" name="posttitle" id="posttitle" tabindex="1" value="" onfocus="this.value=(this.value=='<?php echo esc_js( __( 'Post Title', 'p2' ) ); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php echo esc_js( __( 'Post Title', 'p2' ) ); ?>' : this.value;" /> </div> <?php if ( current_user_can( 'upload_files' ) ): ?> <div id="media-buttons" class="hide-if-no-js"> <?php echo P2::media_buttons(); ?> </div> <?php endif; ?> <textarea class="expand70-200" name="posttext" id="posttext" tabindex="1" rows="4" cols="60"></textarea> <div id="postbox-type-quote" class="post-input <?php if ( 'quote' == p2_get_posting_type() ) echo " selected"; ?>"> <label for="postcitation" class="invisible"><?php _e( 'Citation', 'p2' ); ?></label> <input id="postcitation" name="postcitation" type="text" tabindex="2" value="<?php esc_attr_e( 'Citation', 'p2' ); ?>" onfocus="this.value=(this.value=='<?php echo esc_js( __( 'Citation', 'p2' ) ); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php echo esc_js( __( 'Citation', 'p2' ) ); ?>' : this.value;" /> </div> <label class="post-error" for="posttext" id="posttext_error"></label> <div class="postrow"> <input id="tags" name="tags" type="text" tabindex="2" autocomplete="off" value="<?php esc_attr_e( 'Tag it', 'p2' ); ?>" onfocus="this.value=(this.value=='<?php echo esc_js( __( 'Tag it', 'p2' ) ); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php echo esc_js( __( 'Tag it', 'p2' ) ); ?>' : this.value;" /> <input id="submit" type="submit" tabindex="3" value="<?php esc_attr_e( 'Post it', 'p2' ); ?>" /> </div> <input type="hidden" name="post_cat" id="post_cat" value="<?php echo esc_attr( $post_type ); ?>" />
function p2_posting_type() { echo p2_get_posting_type(); }
<div id="whats-new-content" class="inputarea"> <div id="whats-new-title"> <?php if ('status' == p2_get_posting_type() || '' == p2_get_posting_type()) { ?> <h5 id="whats-new-status"><?php p2_user_prompt(); ?> </h5> <?php } ?> <div id="whats-new-post" class="post-input<?php if ('post' == p2_get_posting_type()) { echo ' selected'; } ?> "> <input type="text" name="posttitle" id="posttitle" tabindex="1" value="" /> </div> <div id="char-count"><span id='counter'>140</span></div> <?php if (current_user_can('upload_files')) { ?> <div id="media-buttons" class="hide-if-no-js" style="display:none;"> <?php echo P2::media_buttons();