Changeset 3280
- Timestamp:
- 10/07/2010 07:56:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-cssjs.php
r3232 r3280 36 36 global $bp; 37 37 ?> 38 38 39 <style type="text/css"> 39 40 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; } … … 41 42 ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img { display: none; } 42 43 </style> 44 43 45 <?php 44 46 } … … 51 53 return false; 52 54 ?> 55 53 56 <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 54 58 <?php 55 59 } … … 84 88 /* Calculate Aspect Ratio */ 85 89 if ( (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) && ( (int) constant( 'BP_AVATAR_FULL_WIDTH' ) != (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) ) ) 86 90 $aspect_ratio = (int) constant( 'BP_AVATAR_FULL_WIDTH' ) / (int) constant( 'BP_AVATAR_FULL_HEIGHT' ); 87 91 ?> 92 88 93 <script type="text/javascript"> 89 94 jQuery(window).load( function(){ … … 120 125 } 121 126 </script> 127 122 128 <?php 123 129 } … … 133 139 global $bp; 134 140 ?> 141 135 142 <style type="text/css"> 136 143 .jcrop-holder { float: left; margin: 0 20px 20px 0; text-align: left; } … … 146 153 #avatar-upload-form img, #create-group-form img, #group-settings-form img { border: none !important; } 147 154 </style> 155 148 156 <?php 149 157 } … … 158 166 function bp_core_add_ajax_url_js() { 159 167 global $bp; 168 ?> 160 169 161 echo162 '<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 164 173 } 165 174 add_action( 'wp_head', 'bp_core_add_ajax_url_js' ); 166 175 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 Core173 */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' );183 176 ?>
Note: See TracChangeset
for help on using the changeset viewer.