Browse
For agents
About
Friends
/
2.7.8
Friends
v2.7.8
Switch version
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
Overview
Code
friends
/
templates
/
frontend
/
reactions-picker.php
reactions-picker.php
in Friends 2.7.8, at templates/frontend/reactions-picker.php
14 lines
541 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
/**
3
* This contains the frontend reactions picker.
4
*
5
*
@package
Friends
6
*/
7
8
?
>
9
<
div
class
=
"
friends-reaction-picker menu
"
data
-
nonce
=
"
<?php echo esc_attr( wp_create_nonce( 'friends-reaction' ) ); ?>
"
data
-
id
=
"
<?php echo esc_attr( get_the_ID() ); ?>
"
>
10
<
?
php
foreach
(
Friends
\
Reactions
::
get_available_emojis
(
)
as
$
id
=>
$
data
)
:
?
>
11
<
button
class
=
"
btn btn-link
"
data
-
emoji
=
"
<?php echo esc_attr(
$
id
); ?>
"
title
=
"
<?php echo esc_attr(
$
data
->
name
); ?>
"
>
<
?
php
echo
esc_html
(
$
data
->
char
)
;
?
>
<
/
button
>
12
<
?
php
endforeach
;
?
>
13
<
/
div
>
14