PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
mycred
/
includes
/
shortcodes
<?php if ( ! defined( 'myCRED_VERSION' ) ) exit; /** * myCRED Shortcode: mycred_leaderboard * @see http://codex.mycred.me/shortcodes/mycred_leaderboard/ * @since 0.1 * @version 1.6 */ if ( ! function_exists( 'mycred_render_shortcode_leaderboard' ) ) : function mycred_render_shortcode_leaderboard( $atts, $content = '' ) { $args = shortcode_atts( array( 'number' => 25, 'order' => 'DESC', 'offset' => 0, 'type' => MYCRED_DEFAULT_TYPE_KEY, 'based_on' => 'balance', 'total' => 0, 'wrap' => 'li', 'template' => '#%position% %user_profile_link% %cred_f%', 'nothing' => 'Leaderboard is empty', 'current' => 0, 'exclude_zero' => 1, 'timeframe' => '', 'to' => '' ), $atts, MYCRED_SLUG . '_leaderboard' ); // Construct the leaderboard class $leaderboard = mycred_get_leaderboard( $args ); // Just constructing the class will not yeld any results // We need to run the query to populate the leaderboard $leaderboard->get_leaderboard_results( (bool) $args['current'] ); // Render and return return do_shortcode( $leaderboard->render( $args, $content ) ); } endif; add_shortcode( MYCRED_SLUG . '_leaderboard', 'mycred_render_shortcode_leaderboard' );
[+]
..
[-] mycred_hide_if.php
[edit]
[-] mycred_best_user.php
[edit]
[-] mycred_total_points.php
[edit]
[-] mycred_total_balance.php
[edit]
[-] mycred_affiliate_link.php
[edit]
[-] mycred_affiliate_id.php
[edit]
[-] mycred_link.php
[edit]
[-] mycred_leaderboard_position.php
[edit]
[-] index.php
[edit]
[-] mycred_give.php
[edit]
[-] mycred_total_since.php
[edit]
[-] mycred_leaderboard.php
[edit]
[-] mycred_exchange.php
[edit]
[-] mycred_show_if.php
[edit]
[-] mycred_my_balance_converted.php
[edit]
[-] mycred_my_balance.php
[edit]
[-] mycred_send.php
[edit]
[-] mycred_history.php
[edit]
[-] mycred_video.php
[edit]
[-] mycred_hook_table.php
[edit]