Make WordPress Core

Changeset 11133


Ignore:
Timestamp:
04/30/2009 02:33:22 AM (16 years ago)
Author:
azaozz
Message:

Add some help for the widgets screen, make css class .description usable everywhere, fixes #5859

Location:
trunk/wp-admin
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r11107 r11133  
    136136}
    137137
    138 .setting-description,
     138.description,
    139139.form-wrap p {
    140140    color: #666;
  • trunk/wp-admin/css/colors-fresh.css

    r11100 r11133  
    120120}
    121121
    122 .setting-description, .form-wrap p {
     122.description,
     123.form-wrap p {
    123124    color: #666;
    124125}
  • trunk/wp-admin/css/widgets.css

    r11009 r11133  
    174174    vertical-align: middle;
    175175}
     176
     177#wp_inactive_widgets .sidebar-name {
     178    margin: 0;
     179    padding: 2px 0;
     180}
     181
     182#wp_inactive_widgets p.description {
     183    margin: 0 0 15px;
     184}
  • trunk/wp-admin/includes/template.php

    r11132 r11133  
    34593459            }
    34603460            break;
     3461        case 'widgets':
     3462            if ( !isset($_wp_contextual_help['widgets']) ) {
     3463                $help = widgets_help();
     3464                $_wp_contextual_help['widgets'] = $help;
     3465            }
     3466            break;
    34613467    }
    34623468?>
     
    35633569}
    35643570
     3571function widgets_help() {
     3572    return '
     3573    <p>' .  __('Widgets can be added or arranged by dragging. If you hover your mouse over the title bar of a widget you&rsquo;ll notice the 4 arrow cursor appears to let you know it is movable. Click on it, hold down the mouse button and start dragging the widget to a new location. As you drag the module, notice the dotted gray box that also moves. This box indicates where the widget will be placed when you release the mouse button.') . '</p>
     3574    <p>' . __('To show or hide the settings for a widget, click on the arrow that appears on the right of the widget title.') . '</p>
     3575    <p>' . __('The Inactive Widgets area stores all widgets that are configured but not curently used on the web site. After changing themes if the new theme has less sidebars than the old theme, all widgets that were in these sidebars will be transfered to Inactive Widgets.') . '</p>
     3576';
     3577}
     3578
    35653579function screen_layout($screen) {
    35663580    global $screen_layout_columns;
  • trunk/wp-admin/options-general.php

    r11110 r11133  
    6666<th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>
    6767<td><input name="blogdescription" type="text" id="blogdescription"  value="<?php form_option('blogdescription'); ?>" class="regular-text" />
    68 <span class="setting-description"><?php _e('In a few words, explain what this blog is about.') ?></span></td>
     68<span class="description"><?php _e('In a few words, explain what this blog is about.') ?></span></td>
    6969</tr>
    7070<tr valign="top">
     
    7575<th scope="row"><label for="home"><?php _e('Blog address (URL)') ?></label></th>
    7676<td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" class="regular-text code<?php if ( defined( 'WP_HOME' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> />
    77 <span class="setting-description"><?php _e('Enter the address here if you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td>
     77<span class="description"><?php _e('Enter the address here if you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td>
    7878</tr>
    7979<tr valign="top">
    8080<th scope="row"><label for="admin_email"><?php _e('E-mail address') ?> </label></th>
    8181<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />
    82 <span class="setting-description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td>
     82<span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td>
    8383</tr>
    8484<tr valign="top">
     
    130130    <span id="local-time"><?php printf(__('UTC %1$s is <code>%2$s</code>'), $current_offset_name, date_i18n($time_format)); ?></span>
    131131<?php endif; ?>
    132 <br/>
    133 <span class="setting-description"><?php _e('Unfortunately, you have to manually update this for Daylight Savings Time. Lame, we know, but will be fixed in the future.'); ?></span>
     132<br />
     133<span class="description"><?php _e('Unfortunately, you have to manually update this for Daylight Savings Time. Lame, we know, but will be fixed in the future.'); ?></span>
    134134</td>
    135135<?php
     
    154154    <span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span>
    155155<?php endif; ?>
    156 <br/>
    157 <span class="setting-description"><?php _e('Choose a city in the same timezone as you.'); ?></span>
     156<br />
     157<span class="description"><?php _e('Choose a city in the same timezone as you.'); ?></span>
    158158<br />
    159159<span>
  • trunk/wp-admin/options-misc.php

    r11110 r11133  
    2929<th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
    3030<td><input name="upload_path" type="text" id="upload_path" value="<?php echo attr(str_replace(ABSPATH, '', get_option('upload_path'))); ?>" class="regular-text code" />
    31 <span class="setting-description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
     31<span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
    3232</td>
    3333</tr>
     
    3636<th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>
    3737<td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo attr( get_option('upload_url_path')); ?>" class="regular-text code" />
    38 <span class="setting-description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span>
     38<span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span>
    3939</td>
    4040</tr>
  • trunk/wp-admin/options-reading.php

    r11110 r11133  
    7373<th scope="row"><label for="blog_charset"><?php _e('Encoding for pages and feeds') ?></label></th>
    7474<td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option('blog_charset'); ?>" class="regular-text" />
    75 <span class="setting-description"><?php _e('The character encoding you write your blog in (UTF-8 is <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">recommended</a>)') ?></span></td>
     75<span class="description"><?php _e('The character encoding you write your blog in (UTF-8 is <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">recommended</a>)') ?></span></td>
    7676</tr>
    7777<?php do_settings_fields('reading', 'default'); ?>
  • trunk/wp-admin/rtl.css

    r10834 r11133  
    243243    clear: right;
    244244}
    245 .setting-description, .form-wrap p {
     245.description, .form-wrap p {
    246246    font-family: Tahoma, Arial;
    247247}
  • trunk/wp-admin/themes.php

    r11109 r11133  
    122122    /* translators: 1: theme title, 2: theme version, 3: theme author */
    123123    printf(__('%1$s %2$s by %3$s'), $ct->title, $ct->version, $ct->author) ; ?></h4>
    124 <p class="description"><?php echo $ct->description; ?></p>
     124<p class="theme-description"><?php echo $ct->description; ?></p>
    125125<?php if ($ct->parent_theme) { ?>
    126126    <p><?php printf(__('The template files are located in <code>%2$s</code>.  The stylesheet files are located in <code>%3$s</code>.  <strong>%4$s</strong> uses templates from <strong>%5$s</strong>.  Changes made to the templates will affect both themes.'), $ct->title, $ct->template_dir, $ct->stylesheet_dir, $ct->title, $ct->parent_theme); ?></p>
  • trunk/wp-admin/widgets.php

    r11110 r11133  
    345345        <h3 class="sidebar-name"><?php _e('Inactive Widgets'); ?>
    346346        <span><img src="images/loading-publish.gif" class="ajax-feedback" title="" alt="" /></span></h3>
     347        <p class="description"><?php _e('Drag widgets here to remove them from the web site but keep their settings.'); ?></p>
    347348        <?php wp_list_widget_controls('wp_inactive_widgets'); ?>
    348349        <br class="clear" />
  • trunk/wp-admin/wp-admin.css

    r11118 r11133  
    136136}
    137137
    138 #current-theme .description {
     138#current-theme .theme-description {
    139139    margin-top: 5px;
    140140}
     
    13691369}
    13701370
     1371p.description,
    13711372.form-wrap p {
    13721373    margin: 2px 0 5px;
    1373 }
    1374 
    1375 .setting-description, .form-wrap p {
     1374    font-size: 11px;
     1375}
     1376
     1377.description,
     1378.form-wrap p {
    13761379    font-style: italic;
    13771380    font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
     
    29562959
    29572960#favorite-actions .slide-down {
    2958 /*  background-image: url(images/fav-top.png);
    2959     background-repeat: repeat-x;
    2960     background-position: 0 top;
    2961 */  -moz-border-radius: 12px 12px 0 0;
     2961    -moz-border-radius: 12px 12px 0 0;
    29622962    -webkit-border-bottom-right-radius: 0;
    29632963    -webkit-border-bottom-left-radius: 0;
Note: See TracChangeset for help on using the changeset viewer.