Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/22/2010 01:25:56 PM (16 years ago)
Author:
apeatling
Message:

Merging 1.2 branch into trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r2723 r2761  
    128128/****
    129129 * Custom header image support. You can remove this entirely in a child theme by adding this line
    130  * to your functions.php: remove_action( 'init', 'bp_dtheme_add_custom_header_support' );
     130 * to your functions.php: define( 'BP_DTHEME_DISABLE_CUSTOM_HEADER', true );
    131131 */
    132132function bp_dtheme_add_custom_header_support() {
     
    200200    add_custom_image_header( 'bp_dtheme_header_style', 'bp_dtheme_admin_header_style' );
    201201}
    202 add_action( 'init', 'bp_dtheme_add_custom_header_support' );
     202if ( !defined( 'BP_DTHEME_DISABLE_CUSTOM_HEADER' ) )
     203    add_action( 'init', 'bp_dtheme_add_custom_header_support' );
    203204
    204205/* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */
     
    230231add_action( 'wp_footer', 'bp_dtheme_js_terms' );
    231232
    232 //Google Maps Shortcode
    233 function fn_googleMaps($atts, $content = null) {
    234     extract( shortcode_atts( array( "width" => '640', "height" => '480', "src" => '' ), $atts ) );
    235     return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'"></iframe>';
    236 }
    237 add_shortcode( "googlemap", "fn_googleMaps" );
    238 
    239233?>
Note: See TracChangeset for help on using the changeset viewer.