# friends/2.8.5/templates/frontend/editor.php

Friends, version 2.8.5. 17 lines.

- Page: https://pluginprobe.com/plugins/friends/2.8.5/code/templates/frontend/editor.php
- Raw: https://pluginprobe.com/plugins/friends/2.8.5/raw/templates/frontend/editor.php
- Modified: 2022-04-09T05:27:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/friends/2.8.5/code/templates/frontend/editor.php#L10-L20`.

```php
<?php
/**
 * This template contains the small editor shown on /friends/.
 *
 * @package Friends
 */

?>
<form method="post" action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>" class="friends-post-inline">
	<?php wp_nonce_field( 'friends_publish' ); ?>
	<input type="hidden" name="action" value="friends_publish" />
	<input type="text" name="title" value="" placeholder="<?php /* phpcs:ignore WordPress.WP.I18n.MissingArgDomain */ esc_attr_e( 'Title' ); ?>" /><br />
	<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/>
	<button>Post to your friends</button>
	<span style="margin-left: 2em"><input type="hidden" name="status" value="private" /> Published Privately</span>
</form>

```
