Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/21/2008 03:33:24 PM (18 years ago)
Author:
apeatling
Message:

Moved CSS layout structure to the components and not the themes. This allows components to define basic layout without relying on the theme.

This will also make using existing WordPress themes as member themes far easier. The component CSS can be over-ridden in the theme.

File:
1 edited

Legend:

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

    r502 r561  
    11<?php
    22
    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() {
     3function xprofile_add_js() {
    104        if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' )
    115                wp_enqueue_script( 'jquery' );
    126}
    13 add_action( 'wp', 'xprofile_add_signup_js' );
     7add_action( 'wp', 'xprofile_add_js' );
     8
     9function 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}
     15add_action( 'wp_head', 'xprofile_add_css' );
     16
     17function 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}
     21add_action( 'bp_styles', 'xprofile_add_structure_css' );
    1422
    1523function xprofile_add_admin_css() {
Note: See TracChangeset for help on using the changeset viewer.