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 3328 to 3347

Definition

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

    
// Build html for link into a string
    
$help_link_html  =      '<a ';
    
$help_link_html .=          'href="' $baseurl '/pages/help.php?page=' $page '" ';
    
$help_link_html .=          'title="' $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 26th April 2024 21:05 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.