| 1 |
<?php |
| 2 |
/** |
| 3 |
* Renders the campaign description field for the Campaign post type. |
| 4 |
* |
| 5 |
* @author Studio 164a |
| 6 |
* @since 1.0.0 |
| 7 |
* @package Charitable/Admin Views/Metaboxes |
| 8 |
*/ |
| 9 |
|
| 10 |
global $post; |
| 11 |
|
| 12 |
$title = isset( $view_args['title'] ) ? $view_args['title'] : ''; |
| 13 |
$tooltip = isset( $view_args['tooltip'] ) ? '<span class="tooltip"> '. $view_args['tooltip'] . '</span>' : ''; |
| 14 |
$campaign_description = esc_textarea( get_post_meta( $post->ID, '_campaign_description', true ) ); |
| 15 |
|
| 16 |
?> |
| 17 |
<div id="charitable-campaign-description-metabox-wrap" class="charitable-metabox-wrap"> |
| 18 |
<label class="screen-reader-text" for="campaign_description"><?php echo $campaign_description ?></label> |
| 19 |
<textarea name="_campaign_description" id="campaign_description" tabindex="" rows="10" placeholder="<?php _e( 'Enter a short description of your campaign', 'charitable' ); ?>"><?php echo $campaign_description ?></textarea> |
| 20 |
</div> |
| 21 |
|