/var/www/(Del)hsihk.com/wp-content/plugins/ninja-forms/includes/display/fields/help.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
 * Outputs the HTML of the help icon if it is set to display.
 *
**/

function ninja_forms_display_field_help$field_id$data ){
    
$plugin_settings nf_get_settings();

    if( isset( 
$data['show_help'] ) ){
        
$show_help $data['show_help'];
    }else{
        
$show_help 0;
    }

    if( isset( 
$data['help_text'] ) ){
        
$help_text $data['help_text'];
    }else{
        
$help_text '';
    }

    
$help_text htmlspecialchars$help_text );

    if(
$show_help){
        
?>
        <img class='ninja-forms-help-text' src="<?php echo NINJA_FORMS_URL;?>images/question-ico.gif" title="<?php echo $help_text;?>" alt="<?php _e'Help Text''ninja-forms' ); ?>">
    <?php
    
}
}

add_action'ninja_forms_display_field_help''ninja_forms_display_field_help'10);