gde_help_link

The Google Doc Embedder gde help link function.

Description

gde_help_link( $url, (string) $float = '' ); 

Parameters (2)

0. $url
The url.
1. $float — Optional. (string) => ''
The float.

Usage

  1. if ( !function_exists( 'gde_help_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/options.php'; 
  3.  
  4. // The url. 
  5. $url = null; 
  6.  
  7. // The float. 
  8. $float = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = gde_help_link($url, $float); 
  12.  

Defined (1)

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

/options.php  
  1. function gde_help_link( $url, $float = '' ) { 
  2. $title = __('Help', 'google-document-embedder'); 
  3. $img = GDE_PLUGIN_URL . "img/help.png"; 
  4.  
  5. if ( ! empty( $float ) ) { 
  6. echo '<div style="float:'.esc_attr($float).';">'; 
  7.  
  8. echo '<a href="'.esc_attr($url).'" target="_blank" title="'.esc_attr($title).'"><img src="'.esc_attr($img).'" alt="?"></a>'; 
  9.  
  10. if ( ! empty( $float ) ) { 
  11. echo "</div>\n";