Make WordPress Core


Ignore:
Timestamp:
11/04/2011 12:37:56 AM (13 years ago)
Author:
koopersmith
Message:

Formatting and CSS for credits and freedoms pages. see #18742.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/credits.php

    r19141 r19143  
    2424    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    2525);
    26 
    27 add_action( 'admin_head', '_wp_credits_add_css' );
    28 function _wp_credits_add_css() { ?>
    29 <style type="text/css">
    30 div.wrap { max-width: 750px }
    31 h3.wp-people-group, p.wp-credits-list { clear: both; }
    32 ul.compact { margin-bottom: 0 }
    33 
    34 <?php if ( is_rtl() ) { ?>
    35 li.wp-person { float: right; margin-left: 10px; }
    36 li.wp-person img.gravatar { float: right; margin-left: 10px; }
    37 <?php } else { ?>
    38 li.wp-person { float: left; margin-right: 10px; }
    39 li.wp-person img.gravatar { float: left; margin-right: 10px; }
    40 <?php } ?>
    41 li.wp-person img.gravatar { width: 60px; height: 60px; margin-bottom: 10px; }
    42 ul.compact li.wp-person img.gravatar { width: 30px; height: 30px; }
    43 li.wp-person { height: 70px; width: 220px; }
    44 ul.compact li.wp-person { height: 40px; width: auto; white-space: nowrap }
    45 li.wp-person a.web { font-size: 16px; text-decoration: none; }
    46 p.wp-credits-list a { white-space: nowrap; }
    47 </style>
    48 <?php }
    4926
    5027function wp_credits() {
     
    10178</h2>
    10279
     80<h3><?php _e( 'Credits' ); ?></h3>
     81
    10382<?php
    10483
     
    10685
    10786if ( ! $credits ) {
    108     echo '<p>' . sprintf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
     87    echo '<p class="about-description">' . sprintf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
    10988        'http://wordpress.org/about/',
    11089        /* translators: Url to the codex documentation on contributing to WordPress used on the credits page */
     
    11493}
    11594
    116 echo '<p>' . __( 'WordPress is created by a worldwide team of passionate individuals. We couldn&#8217;t possibly list them all, but here some of the most influential people currently involved with the project:' ) . "</p>\n";
     95echo '<p class="about-description">' . __( 'WordPress is created by a worldwide team of passionate individuals. We couldn&#8217;t possibly list them all, but here some of the most influential people currently involved with the project:' ) . "</p>\n";
    11796
    11897$gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/';
     
    129108        }
    130109
    131         echo '<h3 class="wp-people-group">' . $title . "</h3>\n";
     110        echo '<h4 class="wp-people-group">' . $title . "</h4>\n";
    132111    }
    133112
     
    155134                echo '<a class="web" href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) . '">' . $person_data[0] . "</a>\n\t";
    156135                if ( ! $compact )
    157                     echo '<br /><span class="title">' . translate( $person_data[3] ) . "</span>\n";
     136                    echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n";
    158137                echo "</li>\n";
    159138            }
Note: See TracChangeset for help on using the changeset viewer.