bp_dtheme_js_terms

Add words that we need to use in JS to the end of the page so they can be translated and still used.

Description

bp_dtheme_js_terms(); 

Usage

  1. if ( !function_exists( 'bp_dtheme_js_terms' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/themes/p2-buddypress/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_dtheme_js_terms(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/themes/p2-buddypress/functions.php  
  1. function bp_dtheme_js_terms() { ?> 
  2. <script type="text/javascript"> 
  3. var bp_terms_my_favs = '<?php _e( "My Favorites", "buddypress" ) ?>'; 
  4. var bp_terms_accepted = '<?php _e( "Accepted", "buddypress" ) ?>'; 
  5. var bp_terms_rejected = '<?php _e( "Rejected", "buddypress" ) ?>'; 
  6. var bp_terms_show_all_comments = '<?php _e( "Show all comments for this thread", "buddypress" ) ?>'; 
  7. var bp_terms_show_all = '<?php _e( "Show all", "buddypress" ) ?>'; 
  8. var bp_terms_comments = '<?php _e( "comments", "buddypress" ) ?>'; 
  9. var bp_terms_close = '<?php _e( "Close", "buddypress" ) ?>'; 
  10. var bp_terms_mention_explain = '<?php printf( __( "%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.", "buddypress" ), '@' . bp_get_displayed_user_username(), bp_get_user_firstname(bp_get_displayed_user_fullname()), bp_get_user_firstname(bp_get_displayed_user_fullname()) ); ?>'; 
  11. </script> 
  12. <?php