Changeset 2373 for trunk/bp-themes/bp-default/functions.php
- Timestamp:
- 01/19/2010 09:43:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r2287 r2373 201 201 } 202 202 203 /* Add words that we need to use in JS to the end of the page so they can be translated and still used. */ 204 function bp_dtheme_js_terms() { ?> 205 <script type="text/javascript"> 206 var bp_terms_my_favs = '<?php _e( "My Favorites", "buddypress" ) ?>'; 207 var bp_terms_accepted = '<?php _e( "Accepted", "buddypress" ) ?>'; 208 var bp_terms_rejected = '<?php _e( "Rejected", "buddypress" ) ?>'; 209 var bp_terms_show_all_comments = '<?php _e( "Show all comments for this thread", "buddypress" ) ?>'; 210 var bp_terms_show_all = '<?php _e( "Show all", "buddypress" ) ?>'; 211 var bp_terms_comments = '<?php _e( "comments", "buddypress" ) ?>'; 212 </script> 213 <?php 214 } 215 add_action( 'wp_footer', 'bp_dtheme_js_terms' ); 216 203 217 /* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */ 204 218 if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
Note: See TracChangeset
for help on using the changeset viewer.