PluginProbe
Friends / 4.2.2
Friends v4.2.2
4.3.2 4.3.1 4.3.0 4.2.2 4.2.1 4.2.0 4.1.0 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.0 2.9.1 All 88 releases
friends / templates / frontend / parts / activitypub / boost-button.php

boost-button.php in Friends 4.2.2, at templates/frontend/parts/activitypub/boost-button.php

21 lines 827 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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