Make WordPress Core

Changeset 10788


Ignore:
Timestamp:
03/15/2009 11:04:34 AM (16 years ago)
Author:
azaozz
Message:

Theme install style tweaks, see #8652

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/theme-install.css

    r10668 r10788  
    7676    margin-bottom: 3px;
    7777}
     78
     79#search-field {
     80    padding: 1px;
     81}
     82
     83p.popular-tags {
     84    line-height: 1.8em;
     85}
     86
     87.available-theme {
     88    text-align: center;
     89}
     90
     91#theme-information .available-theme a.screenshot {
     92    border: 0 none;
     93    display: inline;
     94}
     95
     96#theme-information .available-theme h3 {
     97    margin: 1em 0;
     98}
     99
  • trunk/wp-admin/includes/plugin-install.php

    r10759 r10788  
    126126
    127127    <h4><?php _e('Search') ?></h4>
    128     <?php install_search_form('<a href="' . add_query_arg('show-help', !isset($_REQUEST['show-help'])) .'" onclick="jQuery(\'#search-help\').toggle(); return false;">' . __('[need help?]') . '</a>') ?>
    129     <div id="search-help" style="display: <?php echo isset($_REQUEST['show-help']) ? 'block' : 'none'; ?>;">
    130     <p> <?php _e('You may search based on 3 criteria:') ?><br />
    131         <?php _e('<strong>Term:</strong> Searches plugins names and descriptions for the specified term') ?><br />
    132         <?php _e('<strong>Tag:</strong> Searches for plugins tagged as such') ?><br />
    133         <?php _e('<strong>Author:</strong> Searches for plugins created by the Author, or which the Author contributed to.') ?></p>
    134     </div>
     128    <?php install_search_form(); ?>
    135129
    136130    <h4><?php _e('Install a plugin in .zip format') ?></h4>
  • trunk/wp-admin/includes/template.php

    r10774 r10788  
    33813381        case 'options-general':
    33823382            if ( !isset($_wp_contextual_help['options-general']) )
    3383                 $_wp_contextual_help['options-general'] =  __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>');
     3383                $_wp_contextual_help['options-general'] = __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>');
     3384            break;
     3385        case 'theme-install':
     3386        case 'plugin-install':
     3387            if ( !isset($_GET['tab']) || 'dashboard' == $_GET['tab'] )
     3388                $_wp_contextual_help[$screen] = '
     3389        <p><strong>' . __('Search help') . '</strong></p>' .
     3390        '<p>' . __('You may search based on 3 criteria:') . '<br />' .
     3391        __('<strong>Term:</strong> Searches theme names and descriptions for the specified term') . '<br />' .
     3392        __('<strong>Tag:</strong> Searches for themes tagged as such') . '<br />' .
     3393        __('<strong>Author:</strong> Searches for themes created by the Author, or which the Author contributed to.') . "</p>\n";
    33843394            break;
    33853395    }
     
    34493459}
    34503460
    3451 
    34523461function screen_layout($screen) {
    34533462    global $screen_layout_columns;
  • trunk/wp-admin/includes/theme-install.php

    r10675 r10788  
    143143<p><?php _e('Search for themes by keyword, author, or tag.') ?></p>
    144144
    145     <?php install_theme_search_form('<a href="' . add_query_arg('show-help', !isset($_REQUEST['show-help'])) .'" onclick="jQuery(\'#search-help\').toggle(); return false;">' . __('[need help?]') . '</a>') ?>
    146 <div id="search-help" style="display: <?php echo isset($_REQUEST['show-help']) ? 'block' : 'none'; ?>;">
    147 <p><?php _e('You may search based on 3 criteria:') ?><br />
    148     <?php _e('<strong>Term:</strong> Searches theme names and descriptions for the specified term') ?><br />
    149     <?php _e('<strong>Tag:</strong> Searches for themes tagged as such') ?><br />
    150     <?php _e('<strong>Author:</strong> Searches for themes created by the Author, or which the Author contributed to.') ?></p>
    151 </div>
     145    <?php install_theme_search_form(); ?>
    152146
    153147<h4><?php _e('Advanced Search') ?></h4>
     
    169163                                'count' => $tag['count'] );
    170164    }
    171     echo '<p>';
     165    echo '<p class="popular-tags">';
    172166    echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%d theme'), 'multiple_text' => __('%d themes') ) );
    173167    echo '</p><br class="clear" />';
     
    306300<?php if ( $show_details ) { ?>
    307301<a href="#theme_detail" class="theme-detail hide-if-no-js" tabindex='4'><?php _e('Details') ?></a>
    308 <div id="themedetaildiv" class="hide-if-js">
     302<div class="themedetaildiv hide-if-js">
    309303<p><strong><?php _e('Version:') ?></strong> <?php echo wp_kses($theme->version, $themes_allowedtags) ?></p>
    310304<p><strong><?php _e('Author:') ?></strong> <?php echo wp_kses($theme->author, $themes_allowedtags) ?></p>
  • trunk/wp-admin/js/theme-preview.dev.js

    r10655 r10788  
    2525    thickDims()
    2626    .click( function() {
    27         var alink = $(this).parents('.available-theme').find('.activatelink'), url = alink.attr('href'), text = alink.html();
     27        var alink = $(this).parents('.available-theme').find('.activatelink'), url = '', text = '';
    2828
    29         if ( null == text ) text = '';
     29        if ( alink.length ) {
     30            url = alink.attr('href') || '';
     31            text = alink.html() || '';
     32        }
     33       
    3034        $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'});
    3135        $('#TB_closeAjaxWindow').css({'float':'left'});
     
    4145    // Theme details disclosure
    4246    $('.theme-detail').click(function () {
    43         if ($(this).parents('.available-theme').find('#themedetaildiv').is(":hidden")) {
    44             $(this).parents('.available-theme').find('#themedetaildiv').slideDown("normal");
    45             $(this).hide();
    46         }
    47 
     47        $(this).siblings('.themedetaildiv').toggle();
    4848        return false;
    4949    });
  • trunk/wp-admin/js/theme-preview.js

    r10655 r10788  
    1 var thickDims;jQuery(document).ready(function(a){thickDims=function(){var d=a("#TB_window"),c=a(window).height(),b=a(window).width();if(d.size()){d.width(b-90).height(c-60);a("#TB_iframeContent").width(b-90).height(c-90);d.css({"margin-left":"-"+parseInt(((b-90)/2),10)+"px"});if(typeof document.body.style.maxWidth!="undefined"){d.css({top:"30px","margin-top":"0"})}}return a("a.thickbox-preview").each(function(){var e=a(this).parents(".available-theme").find(".previewlink").attr("href");if(!e){return}e=e.replace(/&width=[0-9]+/g,"");e=e.replace(/&height=[0-9]+/g,"");a(this).attr("href",e+"&width="+(b-110)+"&height="+(c-100))})};thickDims().click(function(){var c=a(this).parents(".available-theme").find(".activatelink"),b=c.attr("href"),d=c.html();if(null==d){d=""}a("#TB_title").css({"background-color":"#222",color:"#cfcfcf"});a("#TB_closeAjaxWindow").css({"float":"left"});a("#TB_ajaxWindowTitle").css({"float":"right"}).append('&nbsp;<a href="'+b+'" target="_top" class="tb-theme-preview-link">'+d+"</a>");a("#TB_iframeContent").width("100%");return false});a(window).resize(function(){thickDims()});a(".theme-detail").click(function(){if(a(this).parents(".available-theme").find("#themedetaildiv").is(":hidden")){a(this).parents(".available-theme").find("#themedetaildiv").slideDown("normal");a(this).hide()}return false})});function tb_position(){thickDims()};
     1var thickDims;jQuery(document).ready(function(a){thickDims=function(){var d=a("#TB_window"),c=a(window).height(),b=a(window).width();if(d.size()){d.width(b-90).height(c-60);a("#TB_iframeContent").width(b-90).height(c-90);d.css({"margin-left":"-"+parseInt(((b-90)/2),10)+"px"});if(typeof document.body.style.maxWidth!="undefined"){d.css({top:"30px","margin-top":"0"})}}return a("a.thickbox-preview").each(function(){var e=a(this).parents(".available-theme").find(".previewlink").attr("href");if(!e){return}e=e.replace(/&width=[0-9]+/g,"");e=e.replace(/&height=[0-9]+/g,"");a(this).attr("href",e+"&width="+(b-110)+"&height="+(c-100))})};thickDims().click(function(){var c=a(this).parents(".available-theme").find(".activatelink"),b="",d="";if(c.length){b=c.attr("href")||"";d=c.html()||""}a("#TB_title").css({"background-color":"#222",color:"#cfcfcf"});a("#TB_closeAjaxWindow").css({"float":"left"});a("#TB_ajaxWindowTitle").css({"float":"right"}).append('&nbsp;<a href="'+b+'" target="_top" class="tb-theme-preview-link">'+d+"</a>");a("#TB_iframeContent").width("100%");return false});a(window).resize(function(){thickDims()});a(".theme-detail").click(function(){a(this).siblings(".themedetaildiv").toggle();return false})});function tb_position(){thickDims()};
  • trunk/wp-includes/script-loader.php

    r10774 r10788  
    354354        ));
    355355
    356         $scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20090225' );
     356        $scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20090314' );
    357357        $scripts->add_data( 'theme-preview', 'group', 1 );
    358358
     
    447447    $styles->add( 'login', '/wp-admin/css/login.css', array(), '20081210' );
    448448    $styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081210' );
    449     $styles->add( 'theme-install', '/wp-admin/css/theme-install.css', array(), '20090227' );
     449    $styles->add( 'theme-install', '/wp-admin/css/theme-install.css', array(), '20090314' );
    450450    $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
    451451
Note: See TracChangeset for help on using the changeset viewer.