Skip to:
Content

BuddyPress.org

Changeset 3280


Ignore:
Timestamp:
10/07/2010 07:56:57 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2024, #2448 (trunk). Also adds missing new lines. Props TobiasBg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-cssjs.php

    r3232 r3280  
    3636    global $bp;
    3737?>
     38
    3839    <style type="text/css">
    3940        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; }
     
    4142        ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img { display: none; }
    4243    </style>
     44
    4345<?php
    4446}
     
    5153        return false;
    5254?>
     55
    5356    <script type="text/javascript"> jQuery(document).ready( function() { jQuery("a.confirm").click( function() { if ( confirm( '<?php _e( 'Are you sure?', 'buddypress' ) ?>' ) ) return true; else return false; }); });</script>
     57
    5458<?php
    5559}
     
    8488    /* Calculate Aspect Ratio */
    8589    if ( (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) && ( (int) constant( 'BP_AVATAR_FULL_WIDTH' ) != (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) ) )
    86          $aspect_ratio = (int) constant( 'BP_AVATAR_FULL_WIDTH' ) / (int) constant( 'BP_AVATAR_FULL_HEIGHT' );
     90        $aspect_ratio = (int) constant( 'BP_AVATAR_FULL_WIDTH' ) / (int) constant( 'BP_AVATAR_FULL_HEIGHT' );
    8791?>
     92
    8893    <script type="text/javascript">
    8994        jQuery(window).load( function(){
     
    120125        }
    121126    </script>
     127
    122128<?php
    123129}
     
    133139    global $bp;
    134140?>
     141
    135142    <style type="text/css">
    136143        .jcrop-holder { float: left; margin: 0 20px 20px 0; text-align: left; }
     
    146153        #avatar-upload-form img, #create-group-form img, #group-settings-form img { border: none !important; }
    147154    </style>
     155
    148156<?php
    149157}
     
    158166function bp_core_add_ajax_url_js() {
    159167    global $bp;
     168?>
    160169
    161     echo
    162 '<script type="text/javascript">var ajaxurl = "' . site_url( 'wp-load.php' ) . '";</script>
    163 ';
     170    <script type="text/javascript">var ajaxurl = "<?php echo site_url( 'wp-load.php' ); ?>";</script>
     171
     172<?php
    164173}
    165174add_action( 'wp_head', 'bp_core_add_ajax_url_js' );
    166175
    167 /**
    168  * bp_core_override_adminbar_css()
    169  *
    170  * Overrides the theme's admin bar CSS to hide the adminbar if disabled.
    171  *
    172  * @package BuddyPress Core
    173  */
    174 function bp_core_override_adminbar_css() {
    175     global $bp;
    176 
    177     if ( defined( 'BP_DISABLE_ADMIN_BAR' ) || ( $bp->site_options['hide-loggedout-adminbar'] && !is_user_logged_in() ) ) {
    178     ?>
    179 <style type="text/css">body { padding-top: 0 !important; } #wp-admin-bar { display: none; }</style>
    180     <?php }
    181 }
    182 add_action( 'wp_footer', 'bp_core_override_adminbar_css' );
    183176?>
Note: See TracChangeset for help on using the changeset viewer.