| 1 |
<?php |
| 2 |
/** |
| 3 |
* This template contains the small editor shown on /friends/. |
| 4 |
* |
| 5 |
* @package Friends |
| 6 |
*/ |
| 7 |
|
| 8 |
?> |
| 9 |
<form method="post" action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>" class="friends-post-inline"> |
| 10 |
<?php wp_nonce_field( 'friends_publish' ); ?> |
| 11 |
<input type="hidden" name="action" value="friends_publish" /> |
| 12 |
<input type="text" name="title" value="" placeholder="<?php /* phpcs:ignore WordPress.WP.I18n.MissingArgDomain */ esc_attr_e( 'Title' ); ?>" /><br /> |
| 13 |
<textarea name="content" rows="5" cols="70" placeholder="<?php echo /* translators: %s is a user display name. */ esc_attr( sprintf( __( 'What are you up to, %s?', 'friends' ), wp_get_current_user()->display_name ) ); ?>"></textarea><br/> |
| 14 |
<button>Post to your friends</button> |
| 15 |
<span style="margin-left: 2em"><input type="hidden" name="status" value="private" /> Published Privately</span> |
| 16 |
</form> |
| 17 |
|