Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/06/2008 05:16:28 PM (18 years ago)
Author:
apeatling
Message:

Support for private groups and group membership requests.

File:
1 edited

Legend:

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

    r373 r502  
    77add_action( 'wp_head', 'xprofile_add_signup_css' );
    88
     9function xprofile_add_signup_js() {
     10        if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' )
     11                wp_enqueue_script( 'jquery' );
     12}
     13add_action( 'wp', 'xprofile_add_signup_js' );
    914
    1015function xprofile_add_admin_css() {
    … …  
    1520add_action( 'admin_head', 'xprofile_add_admin_css' );
    1621
    17 
    18 function xprofile_add_admin_js() {
    19         if ( strpos( $_GET['page'], 'xprofile' ) !== false ) {
    20                 wp_enqueue_script( 'bp-xprofile-admin-js', site_url() . "/wp-content/mu-plugins/bp-xprofile/js/admin.js" );
    21                 add_action( 'admin_head', 'bp_core_add_cropper_js' );
    22         }
    23 }
    24 add_action( 'admin_menu', 'xprofile_add_admin_js' );
    25 
    2622function xprofile_add_cropper_js() {
    2723        global $bp;
    2824
    29         if ( $_SERVER['SCRIPT_NAME'] == '/wp-activate.php' || $bp['current_action'] == 'change-avatar' || ( isset($_GET['page']) && $_GET['page'] == 'bp-xprofile.php' ) ) {
     25        if ( $_SERVER['SCRIPT_NAME'] == '/wp-activate.php' || $bp['current_action'] == 'change-avatar' ) {
    3026                wp_enqueue_script('jquery');
    3127                wp_enqueue_script('prototype');
Note: See TracChangeset for help on using the changeset viewer.