gl_field_languages

The Google Locker for WordPress gl field languages function.

Description

gl_field_languages(); 

Usage

  1. if ( !function_exists( 'gl_field_languages' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-locker-for-wordpress/admin/pages.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gl_field_languages(); 
  7.  

Defined (1)

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

/admin/pages.php  
  1. function gl_field_languages( ) { 
  2. global $languages; 
  3.  
  4. $general_settings = gl_get_general_settings_values(); 
  5. ?> 
  6. <select name="<?php echo gl_get_general_settings_key(); ?>[language]" id="<?php echo esc_attr( $general_settings[ 'language' ] ); ?>"> 
  7. <?php foreach( $languages as $lang ) {?> 
  8. <option value="<?php echo $lang[0] ?>" <?php if ( $general_settings[ 'language' ] == $lang[0] ) { echo 'selected="selected"'; } ?>><?php echo $lang[1] ?></option> 
  9. <?php }?> 
  10. </select><br><br> 
  11. <span style="color:#999"><em>Language for all Social</em></span> 
  12. <?php