Changeset 10788
- Timestamp:
- 03/15/2009 11:04:34 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/theme-install.css
r10668 r10788 76 76 margin-bottom: 3px; 77 77 } 78 79 #search-field { 80 padding: 1px; 81 } 82 83 p.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 126 126 127 127 <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(); ?> 135 129 136 130 <h4><?php _e('Install a plugin in .zip format') ?></h4> -
trunk/wp-admin/includes/template.php
r10774 r10788 3381 3381 case 'options-general': 3382 3382 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"; 3384 3394 break; 3385 3395 } … … 3449 3459 } 3450 3460 3451 3452 3461 function screen_layout($screen) { 3453 3462 global $screen_layout_columns; -
trunk/wp-admin/includes/theme-install.php
r10675 r10788 143 143 <p><?php _e('Search for themes by keyword, author, or tag.') ?></p> 144 144 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(); ?> 152 146 153 147 <h4><?php _e('Advanced Search') ?></h4> … … 169 163 'count' => $tag['count'] ); 170 164 } 171 echo '<p >';165 echo '<p class="popular-tags">'; 172 166 echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%d theme'), 'multiple_text' => __('%d themes') ) ); 173 167 echo '</p><br class="clear" />'; … … 306 300 <?php if ( $show_details ) { ?> 307 301 <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"> 309 303 <p><strong><?php _e('Version:') ?></strong> <?php echo wp_kses($theme->version, $themes_allowedtags) ?></p> 310 304 <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 25 25 thickDims() 26 26 .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 = ''; 28 28 29 if ( null == text ) text = ''; 29 if ( alink.length ) { 30 url = alink.attr('href') || ''; 31 text = alink.html() || ''; 32 } 33 30 34 $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); 31 35 $('#TB_closeAjaxWindow').css({'float':'left'}); … … 41 45 // Theme details disclosure 42 46 $('.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(); 48 48 return false; 49 49 }); -
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(' <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()};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="",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(' <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 354 354 )); 355 355 356 $scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20090 225' );356 $scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20090314' ); 357 357 $scripts->add_data( 'theme-preview', 'group', 1 ); 358 358 … … 447 447 $styles->add( 'login', '/wp-admin/css/login.css', array(), '20081210' ); 448 448 $styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081210' ); 449 $styles->add( 'theme-install', '/wp-admin/css/theme-install.css', array(), '20090 227' );449 $styles->add( 'theme-install', '/wp-admin/css/theme-install.css', array(), '20090314' ); 450 450 $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' ); 451 451
Note: See TracChangeset
for help on using the changeset viewer.