Skip to:
Content

BuddyPress.org

Changeset 5739


Ignore:
Timestamp:
02/12/2012 09:59:53 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Remove unused images and add new ones from Ben; update CSS to use new icons and images; welcome the pinata for Activity. Fixes #4003.

Location:
trunk
Files:
1 added
4 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r5684 r5739  
    555555
    556556    <div class="wrap">
    557         <?php screen_icon( 'buddypress' ); ?>
     557        <?php screen_icon( 'buddypress-activity' ); ?>
    558558        <h2><?php printf( __( 'Editing Activity (ID #%s)', 'buddypress' ), number_format_i18n( (int) $_REQUEST['aid'] ) ); ?></h2>
    559559
     
    818818
    819819    <div class="wrap">
    820         <?php screen_icon( 'buddypress' ); ?>
     820        <?php screen_icon( 'buddypress-activity' ); ?>
    821821        <h2>
    822822            <?php if ( !empty( $_REQUEST['aid'] ) ) : ?>
  • trunk/bp-core/admin/bp-core-functions.php

    r5729 r5739  
    330330
    331331/** UI/Styling ****************************************************************/
    332 
    333 /**
    334  * bp_core_admin_menu_icon_css()
    335  *
    336  * Add a hover-able icon to the "BuddyPress" wp-admin area menu.
    337  *
    338  * @package BuddyPress Core
    339  */
    340 function bp_core_admin_menu_icon_css() {
    341     global $bp; ?>
    342 
    343     <style type="text/css">
    344         /* Wizard Icon */
    345         ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a img { display: none; }
    346         ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a { background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; }
    347         ul#adminmenu li.toplevel_page_bp-wizard:hover .wp-menu-image a,
    348         ul#adminmenu li.toplevel_page_bp-wizard.wp-has-current-submenu .wp-menu-image a {
    349             background-position: -1px 0;
    350         }
    351 
    352         /* Settings Icon */
    353         ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a img,
    354         ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img {
    355             display: none;
    356         }
    357 
    358         ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a,
    359         ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a {
    360             background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px;
    361         }
    362 
    363         ul#adminmenu li.toplevel_page_bp-components:hover .wp-menu-image a,
    364         ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a,
    365         ul#adminmenu li.toplevel_page_bp-components.wp-has-current-submenu .wp-menu-image a,
    366         ul#adminmenu li.toplevel_page_bp-general-settings.wp-has-current-submenu .wp-menu-image a {
    367             background-position: -1px 0;
    368         }
    369 
    370         /* Activity Icon */
    371         ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a img { display: none; }
    372         ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a { background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; }
    373         ul#adminmenu li.toplevel_page_bp-activity:hover .wp-menu-image a,
    374         ul#adminmenu li.toplevel_page_bp-activity.wp-has-current-submenu .wp-menu-image a {
    375             background-position: -1px 0;
    376         }
    377     </style>
    378 
    379 <?php
    380 }
    381 add_action( 'admin_head', 'bp_core_admin_menu_icon_css' );
    382332
    383333/**
  • trunk/bp-core/admin/bp-core-update.php

    r5729 r5739  
    11931193
    11941194    wp_enqueue_script( 'thickbox' );
    1195     wp_enqueue_style( 'thickbox' ); ?>
    1196 
    1197     <style type="text/css">
    1198         /* Wizard Icon */
    1199         ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a img { display: none; }
    1200         ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a { background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; }
    1201         ul#adminmenu li.toplevel_page_bp-wizard:hover .wp-menu-image a,
    1202         ul#adminmenu li.toplevel_page_bp-wizard.wp-has-current-submenu .wp-menu-image a {
    1203             background-position: -1px 0;
    1204         }
    1205 
    1206         /* Settings Icon */
    1207         ul#adminmenu li.toplevel_page_bp-general-config .wp-menu-image a img { display: none; }
    1208         ul#adminmenu li.toplevel_page_bp-general-config .wp-menu-image a { background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; }
    1209         ul#adminmenu li.toplevel_page_bp-general-config:hover .wp-menu-image a,
    1210         ul#adminmenu li.toplevel_page_bp-general-config.wp-has-current-submenu .wp-menu-image a {
    1211             background-position: -1px 0;
    1212         }
    1213     </style>
    1214 
    1215 <?php
     1195    wp_enqueue_style( 'thickbox' );
    12161196}
    12171197add_action( 'admin_head', 'bp_core_update_add_admin_menu_styles' );
  • trunk/bp-core/css/admin.dev.css

    r5261 r5739  
     1
     2/* Icon 32
     3------------------------------------------------------------------------------*/
     4
    15div#icon-buddypress {
    2     background: url( ../images/icons32.png ) no-repeat -4px 0px;
    3 }
     6    background: url( ../images/icons32.png ) no-repeat -370px -6px;
     7}
     8
     9div#icon-buddypress-activity {
     10    background: url( ../images/icons32.png ) no-repeat -10px -6px;
     11}
     12
     13/* Menu Icons
     14------------------------------------------------------------------------------*/
     15
     16ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a img {
     17    display: none;
     18}
     19ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a {
     20    background-image: url( '../images/menu.png' ) !important;
     21    background-position: -178pxpx -34px;
     22}
     23ul#adminmenu li.toplevel_page_bp-wizard:hover .wp-menu-image a,
     24ul#adminmenu li.toplevel_page_bp-wizard.wp-has-current-submenu .wp-menu-image a {
     25    background-position: -178px -2px;
     26}
     27
     28/* Backpat Icon */
     29ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a img,
     30ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img {
     31    display: none;
     32}
     33
     34ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a,
     35ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a {
     36    background-image: url( '../images/menu.png' ) !important;
     37    background-position: -178px -34px;
     38}
     39
     40ul#adminmenu li.toplevel_page_bp-components:hover .wp-menu-image a,
     41ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a,
     42ul#adminmenu li.toplevel_page_bp-components.wp-has-current-submenu .wp-menu-image a,
     43ul#adminmenu li.toplevel_page_bp-general-settings.wp-has-current-submenu .wp-menu-image a {
     44    background-position: -178px -2px;
     45}
     46
     47/* Activity Icon */
     48ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a img {
     49    display: none;
     50}
     51ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a {
     52    background-image: url( '../images/menu.png' ) !important;
     53    background-position: 0px -34px;
     54}
     55ul#adminmenu li.toplevel_page_bp-activity:hover .wp-menu-image a,
     56ul#adminmenu li.toplevel_page_bp-activity.current .wp-menu-image a,
     57ul#adminmenu li.toplevel_page_bp-activity.wp-has-current-submenu .wp-menu-image a {
     58    background-position: 0 -2px;
     59}
     60
     61/* General Admin Styling
     62------------------------------------------------------------------------------*/
    463
    564div#bp-admin {
    665    color: #555;
    766    min-width: 680px;
    8     }
    9     div#bp-admin p { line-height: 170%; }
     67}
     68div#bp-admin p {
     69    line-height: 170%;
     70}
    1071
    1172form#bp-admin-form {
     
    52113                    color: #555;
    53114                }
     115
    54116    div#bp-admin-nav ol li span.complete {
    55117        background: url( ../images/completed.gif ) center left no-repeat;
Note: See TracChangeset for help on using the changeset viewer.