Changeset 2761 for trunk/bp-themes/bp-default/functions.php
- Timestamp:
- 02/22/2010 01:25:56 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r2723 r2761 128 128 /**** 129 129 * 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 ); 131 131 */ 132 132 function bp_dtheme_add_custom_header_support() { … … 200 200 add_custom_image_header( 'bp_dtheme_header_style', 'bp_dtheme_admin_header_style' ); 201 201 } 202 add_action( 'init', 'bp_dtheme_add_custom_header_support' ); 202 if ( !defined( 'BP_DTHEME_DISABLE_CUSTOM_HEADER' ) ) 203 add_action( 'init', 'bp_dtheme_add_custom_header_support' ); 203 204 204 205 /* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */ … … 230 231 add_action( 'wp_footer', 'bp_dtheme_js_terms' ); 231 232 232 //Google Maps Shortcode233 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 239 233 ?>
Note: See TracChangeset
for help on using the changeset viewer.