Skip to:
Content

BuddyPress.org

Ticket #2395: #2395.patch

File #2395.patch, 7.9 KB (added by arena, 16 years ago)

patch

  • bp-core.php

     
    18041804                add_action( $hookname, $function );
    18051805
    18061806        if ( empty($icon_url) )
    1807                 $icon_url = 'images/generic.png';
     1807                $icon_url = 'div';
    18081808        elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') )
    18091809                $icon_url = 'https://' . substr($icon_url, 7);
    18101810
  • bp-core/admin/bp-core-admin.php

     
    4949
    5050        <div class="wrap">
    5151
     52                <div class="icon32" id="icon-buddypress"><br></div>
     53
    5254                <h2><?php _e( 'BuddyPress Settings', 'buddypress' ) ?></h2>
    5355
    5456                <?php if ( isset( $_POST['bp-admin'] ) ) : ?>
     
    173175
    174176        <div class="wrap">
    175177
     178                <div class="icon32" id="icon-buddypress"><br></div>
     179
    176180                <h2><?php _e( 'BuddyPress Component Setup', 'buddypress' ) ?></h2>
    177181
    178182                <?php if ( isset( $_POST['bp-admin-component-submit'] ) ) : ?>
  • bp-core/bp-core-cssjs.php

     
    2323                        wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/css/adminbar.css' ) );
    2424        }
    2525}
    26 add_action( 'init', 'bp_core_add_admin_bar_css' );
     26add_action( (is_admin()) ? 'admin_print_styles' : 'init' ,      'bp_core_add_admin_bar_css' );
    2727
    2828/**
    2929 * bp_core_admin_menu_icon_css()
     
    3333 * @package BuddyPress Core
    3434 */
    3535function bp_core_admin_menu_icon_css() {
    36         global $bp;
    37 ?>
    38         <style type="text/css">
    39                 ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a { background-image: url( <?php echo BP_PLUGIN_URL . '/bp-core/images/admin_menu_icon.png' ?> ) !important; background-position: -1px -32px; }
    40                 ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a { background-position: -1px 0; }
    41                 ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img { display: none; }
    42         </style>
    43 <?php
     36        $pathcss                = BP_PLUGIN_DIR . '/bp-core/css/colors_' . get_user_option('admin_color') . '.css';
     37        $css_url                = BP_PLUGIN_URL . '/bp-core/css/colors_' . get_user_option('admin_color') . '.css';
     38        $css_url_default        = BP_PLUGIN_URL . '/bp-core/css/colors_fresh.css';
     39        $css_url                = (is_file($pathcss)) ? $css_url : $css_url_default;
     40        wp_register_style ( 'BuddyPress_colors',        $css_url);
     41        wp_enqueue_style  ( 'BuddyPress_colors' );
    4442}
    45 add_action( 'admin_head', 'bp_core_admin_menu_icon_css' );
     43add_action( 'admin_print_styles', 'bp_core_admin_menu_icon_css' );
    4644
    4745function bp_core_confirmation_js() {
    4846        global $current_blog;
  • bp-core/css/colors_classic.css

     
     1ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a {
     2        background-image: url(../images/bp_admin_menu_icon-vs.png);
     3        background-position: -1px -32px;
     4}
     5ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a {
     6        background-position: -1px 0;
     7}
     8ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img {
     9        display: none;
     10}
     11
     12#icon-buddypress {
     13        background:transparent url(../images/icon32-vs.png) no-repeat;
     14}
     15 No newline at end of file
  • bp-core/css/colors_fresh.css

     
     1ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a {
     2        background-image: url(../images/bp_admin_menu_icon.png);
     3        background-position: -1px -32px;
     4}
     5ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a {
     6        background-position: -1px 0;
     7}
     8ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img {
     9        display: none;
     10}
     11
     12#icon-buddypress {
     13        background:transparent url(../images/icon32.png);
     14}
     15 No newline at end of file
  • bp-forums/bp-forums-admin.php

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: bp-core\images\bp_admin_menu_icon-vs.png
    ___________________________________________________________________
    Added: svn:mime-type
       + application/octet-stream
    
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: bp-core\images\bp_admin_menu_icon.png
    ___________________________________________________________________
    Added: svn:mime-type
       + application/octet-stream
    
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: bp-core\images\icon32-vs.png
    ___________________________________________________________________
    Added: svn:mime-type
       + application/octet-stream
    
    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: bp-core\images\icon32.png
    ___________________________________________________________________
    Added: svn:mime-type
       + application/octet-stream
    
     
    55?>
    66        <div class="wrap">
    77
     8                <div class="icon32" id="icon-buddypress"><br></div>
     9
    810                <h2><?php _e( 'Forums Setup', 'buddypress' ) ?></h2>
    911
    1012                <?php if ( isset( $_POST['submit'] ) ) : ?>
  • bp-themes/bp-default/_inc/options.php

     
    2424        } ?>
    2525
    2626                <div class="wrap">
     27
     28                    <div class="icon32" id="icon-buddypress"><br></div>
     29
    2730                    <?php echo "<h2>" . __( 'Theme Options', 'buddypress' ) . "</h2>"; ?>
    2831
    2932                        <form name="options" method="post" action="">
  • bp-xprofile/bp-xprofile-admin.php

     
    4141?>
    4242
    4343        <div class="wrap">
    44                 <div class="icon32" id="icon-tools"><br></div>
     44                <div class="icon32" id="icon-buddypress"><br></div>
    4545                <h2>
    4646                        <?php _e( 'Profile Field Setup', 'buddypress'); ?>
    4747                        <a id="add_group" class="button add-new-h2" href="admin.php?page=bp-profile-setup&amp;mode=add_group"><?php _e( 'Add New Group', 'buddypress' ); ?></a>
  • bp-xprofile/bp-xprofile-classes.php

     
    190190                }
    191191?>
    192192                <div class="wrap">
    193                         <div class="icon32" id="icon-tools"><br></div>
     193
     194                        <div class="icon32" id="icon-buddypress"><br></div>
     195
    194196                        <h2><?php echo $title; ?></h2>
    195197                        <p><?php _e( 'Fields marked * are required', 'buddypress' ) ?></p>
    196198
     
    592594                }
    593595?>
    594596        <div class="wrap">
    595                 <div id="icon-users" class="icon32"><br /></div>
     597
     598                <div class="icon32" id="icon-buddypress"><br></div>
     599
    596600                <h2><?php echo $title; ?></h2>
    597601                <p><?php _e( 'Fields marked * are required', 'buddypress' ) ?></p>
    598602