foreach ( (array) $api_tags as $tag ) { $url =
self_admin_url( 'plugin-install.php?tab=search&type=tag&s=' .
urlencode( $tag['name'
] ) );
$data = array
( 'link' =>
esc_url( $url ),
'name' =>
$tag['name'
],
'slug' =>
$tag['slug'
],
'id' =>
sanitize_title_with_dashes( $tag['name'
] ),
'count' =>
$tag['count'
],
);
$tags[ $tag['name'
] ] =
(object) $data;
} echo wp_generate_tag_cloud( $tags,
array
( /* translators: %s: Number of plugins. */
'single_text' =>
__( '%s plugin'
),
/* translators: %s: Number of plugins. */
'multiple_text' =>
__( '%s plugins'
),
) );
} echo '</p><br class="clear" /></div>';
}