| 1 |
<?php |
| 2 |
/** |
| 3 |
* This template contains the activitypub boost button. |
| 4 |
* |
| 5 |
* @version 1.0 |
| 6 |
* @package Friends |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( \Friends\User::get_post_author( get_post() )->ID === get_current_user_id() ) { |
| 10 |
return; |
| 11 |
} |
| 12 |
?> |
| 13 |
<a tabindex="0" href="#" data-id="<?php echo esc_attr( get_the_ID() ); ?>" data-nonce="<?php echo esc_attr( wp_create_nonce( 'friends-boost' ) ); ?>" class="btn btn-link ml-1 friends-boost has-icon-right" title="<?php echo esc_attr_x( 'Boost', 'button', 'friends' ); ?>"> |
| 14 |
<i class="dashicons dashicons-controls-repeat"></i> <span class="text"><?php echo esc_html_x( 'Boost', 'button', 'friends' ); ?></span> |
| 15 |
<?php if ( get_post_meta( get_the_ID(), 'boosted', true ) ) : ?> |
| 16 |
<i class="friends-boost-status dashicons dashicons-saved"></i> |
| 17 |
<?php else : ?> |
| 18 |
<i class="friends-boost-status"></i> |
| 19 |
<?php endif; ?> |
| 20 |
</a> |
| 21 |
|