"awordpresslife", "page" => $paged, "per_page" => $per_page, "fields" => array( "last_updated" => true, "active_installs" => true, "downloaded" => true, "icons" => true, ), "locale" => get_locale(), ); $arges = apply_filters( "install_plugins_table_api_args_$tab", $args ); $api = plugins_api( "query_plugins", $arges ); $item = $api->plugins; if(!function_exists("wp_star_rating")) { function wp_star_rating( $args = array() ) { $defaults = array( 'rating' => 0, 'type' => 'rating', 'number' => 0, ); $r = wp_parse_args( $args, $defaults ); // Non-english decimal places when the $rating is coming from a string $rating = str_replace( ',', '.', $r['rating'] ); // Convert Percentage to star rating, 0..5 in .5 increments if ( 'percent' == $r['type'] ) { $rating = round( $rating / 10, 0 ) / 2; } // Calculate the number of each type of star needed $full_stars = floor( $rating ); $half_stars = ceil( $rating - $full_stars ); $empty_stars = 5 - $full_stars - $half_stars; if ( $r['number'] ) { /* translators: 1: The rating, 2: The number of ratings */ $format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $r['number'] ); $title = sprintf( $format, number_format_i18n( $rating, 1 ), number_format_i18n( $r['number'] ) ); } else { /* translators: 1: The rating */ $title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) ); } echo '
'; echo '' . $title . ''; echo str_repeat( '
', $full_stars ); echo str_repeat( '
', $half_stars ); echo str_repeat( '
', $empty_stars); echo '
'; } } ?>

array( "href" => array(),"title" => array(), "target" => array() ), "abbr" => array( "title" => array() ),"acronym" => array( "title" => array() ), "code" => array(), "pre" => array(), "em" => array(),"strong" => array(), "ul" => array(), "ol" => array(), "li" => array(), "p" => array(), "br" => array() ); $title = wp_kses($plugin["name"], $plugins_allowedtags); $description = strip_tags($plugin["short_description"]); $author = wp_kses($plugin["author"], $plugins_allowedtags); $version = wp_kses($plugin["version"], $plugins_allowedtags); $name = strip_tags( $title . " " . $version ); $details_link = self_admin_url( "plugin-install.php?tab=plugin-information&plugin=" . $plugin["slug"] . "&TB_iframe=true&width=600&height=550" ); /* translators: 1: Plugin name and version. */ $action_links[] = '' . __( 'More Details' ) . ''; $action_links = array(); if (current_user_can( "install_plugins") || current_user_can("update_plugins")) { $status = install_plugin_install_status( $plugin ); switch ($status["status"]) { case "install": if ( $status["url"] ) { /* translators: 1: Plugin name and version. */ $action_links[] = '' . __( 'Install Now' ) . ''; } break; case "update_available": if ($status["url"]) { /* translators: 1: Plugin name and version */ $action_links[] = '' . __( 'Update Now' ) . ''; } break; case "latest_installed": case "newer_installed": $action_links[] = '' . _x( 'Installed', 'plugin' ) . ''; break; } } ?>

$plugin["rating"], "type" => "percent", "number" => $plugin["num_ratings"] ) ); ?> ()
">