Changeset 561 for trunk/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 11/21/2008 03:33:24 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-cssjs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cssjs.php
r502 r561 1 1 <?php 2 2 3 function xprofile_add_signup_css() { 4 if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' ) 5 echo '<link rel="stylesheet" href="' . site_url() . '/wp-content/mu-plugins/bp-xprofile/css/signup.css" type="text/css" />'; 6 } 7 add_action( 'wp_head', 'xprofile_add_signup_css' ); 8 9 function xprofile_add_signup_js() { 3 function xprofile_add_js() { 10 4 if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' ) 11 5 wp_enqueue_script( 'jquery' ); 12 6 } 13 add_action( 'wp', 'xprofile_add_signup_js' ); 7 add_action( 'wp', 'xprofile_add_js' ); 8 9 function xprofile_add_css() { 10 if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' ) 11 wp_enqueue_style( 'bp-xprofile-signup', site_url() . '/wp-content/mu-plugins/bp-xprofile/css/signup.css' ); 12 13 wp_print_styles(); 14 } 15 add_action( 'wp_head', 'xprofile_add_css' ); 16 17 function xprofile_add_structure_css() { 18 /* Enqueue the structure CSS file to give basic positional formatting for xprofile pages */ 19 wp_enqueue_style( 'bp-xprofile-structure', site_url() . '/wp-content/mu-plugins/bp-xprofile/css/structure.css' ); 20 } 21 add_action( 'bp_styles', 'xprofile_add_structure_css' ); 14 22 15 23 function xprofile_add_admin_css() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)