Allow your visitors to leave messages(Clap) easily without typing a comment.
<?php if(function_exists('wp_clap')) { wp_clap(); } ?>
You can use the following functions in 'index.php' to show how many claps there are:
<?php if(function_exists('get_wp_claps')) { get_wp_claps(zero, one, more, mode, link, echo, post_id); } ?>
Parameters of get_wp_claps():
NAME TYPE DESCRIPTION DEFAULT VERSIONS
zero string Text to display when there are no claps. 'No Claps' 1.0
one string Text to display when there is one clap. 'One Clap' 1.0
more string Text to display when there are more than one claps, '% Claps' 1.0
'%' is replaced by the number of claps.
mode integer Which number you want to show. 0 1.0
0 = Total claps,
1 = Total clappers,
2 = Average claps.
link integer 0 = No link, 1 = A link to the clap area. 0 1.0
echo integer 0 = echo, 1 = return value. 1 1.0
post_id integer Target post. Generally you do not need to set it. 0 1.0
Using Examples:
As the function get_wp_claps(), generally you do not neet to reset the $link, $echo and $post_id. There are some examples:
<?php get_wp_claps('No Claps', 'One Clap', '% Claps'); // total claps ?>
<?php get_wp_claps('0 Clap', '1 Clap', '% Claps', 1); // total clappers ?>
<?php get_wp_claps('0 Clap', '1 Clap', '% Claps', 2); // average claps ?>
<?php get_wp_claps('0 Claps', '1 Clap', '% Claps', 0, 0); // total claps with no link ?>
Custom CSS:
Requires: 2.7 or higher
Compatible up to: 3.0.5
Last Updated: 2010-9-12
Downloads: 2,328
Got something to say? Need help?