Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




install_dashboard [ WordPress Function ]

install_dashboard ( No parameters )
Defined at:



No description yet.

Source


<?php
function install_dashboard() {
    
?>
    <p><?php printf__'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="http://wordpress.org/extend/plugins/">WordPress Plugin Directory</a> or upload a plugin in .zip format via <a href="%s">this page</a>.' ), self_admin_url'plugin-install.php?tab=upload' ) ); ?></p>

    <h4><?php _e('Search'?></h4>
    <?php install_search_formfalse ); ?>

    <h4><?php _e('Popular tags'?></h4>
    <p class="install-help"><?php _e('You may also browse based on the most popular tags in the Plugin Directory:'?></p>
    <?php

    $api_tags 
install_popular_tags();

    echo 
'<p class="popular-tags">';
    if ( 
is_wp_error($api_tags) ) {
        echo 
$api_tags->get_error_message();
    } else {
        
//Set up the tags in a way which can be interpreted by wp_generate_tag_cloud()
        
$tags = array();
        foreach ( (array)
$api_tags as $tag )
            
$tags$tag['name'] ] = (object) array(
                                    
'link' => esc_urlself_admin_url('plugin-install.php?tab=search&type=tag&s=' urlencode($tag['name'])) ),
                                    
'name' => $tag['name'],
                                    
'id' => sanitize_title_with_dashes($tag['name']),
                                    
'count' => $tag['count'] );
        echo 
wp_generate_tag_cloud($tags, array( 'single_text' => __('%s plugin'), 'multiple_text' => __('%s plugins') ) );
    }
    echo 
'</p><br class="clear" />';
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics