Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

render_help_link()

Description

Generates a help icon that opens the relevant Knowledge Base article in a modal

Parameters

ColumnTypeDefaultDescription
$page string '' Knowledge Base article to display, leave blank to show the Knowledge Base homepage
$return_string boolean false Set to true to return the html as a single line string, False will cause the function to echo the html

Return

mixed if $return_string=true return is string, else void

Location

include/render_functions.php lines 3399 to 3418

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="icon-circle-question-mark"></i>';
    
$help_link_html .=      '</a>';

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

This article was last updated 6th June 2026 21:35 Europe/London time based on the source file dated 4th June 2026 10:35 Europe/London time.