Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

render_help_link()

Parameters

ColumnTypeDefaultDescription
$page ''
$return_string false

Location

include/render_functions.php lines 3329 to 3348

Definition

 
function render_help_link($page='',$return_string=false)
    {
    global 
$lang,$help_modal,$baseurl;

    
// Build html for link into a string
    
$help_link_html  =      '<a ';
    
$help_link_html .=          'href="' $baseurl '/pages/help.php?page=' escape($page) . '" ';
    
$help_link_html .=          'title="' escape($lang["help-tooltip"]) . '" ';
    
$help_link_html .=          'class="HelpLink" ';
    if (
$help_modal
        { 
$help_link_html .=    'onClick="return ModalLoad(this, true);" ';}
    else
        { 
$help_link_html .=    'target="_blank" ';}
    
$help_link_html .=      '>';
    
$help_link_html .=      '<i aria-hidden="true" class="fa fa-fw fa-question-circle"></i>';
    
$help_link_html .=      '</a>';

    if (
$return_string===false) {echo $help_link_html;}
    else {return 
$help_link_html;}
    }

This article was last updated 18th May 2024 08:35 Europe/London time based on the source file dated 17th May 2024 16:45 Europe/London time.