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

config_generate_html()

Description

Generates HTML foreach element found in the page definition

Parameters

ColumnTypeDefaultDescription
$page_def array Array of all elements for which we need to generate HTML

Location

include/config_functions.php lines 1261 to 1321

Definition

 
function config_generate_html(array $page_def)
    {
    global 
$lang,$baseurl;
    
$included_colour_picker_library=false;

    foreach(
$page_def as $def)
        {
        if(!isset(
$def[0])){continue;}
        switch(
$def[0])
            {
            case 
'html':
                
config_html($def[1]);
                break;

            case 
'text_input':
                
config_text_input($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4], $def[5], $def[6], $def[7], $def[8], $def[9]);
                break;

            case 
'file_input':
                
config_file_input($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4], $def[5], $def[6]);
                break;

            case 
'boolean_select':
                
config_boolean_select($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4], $def[5], $def[6], $def[7], $def[8], $def[9], $def[10]);
                break;

            case 
'single_select':
                
config_single_select($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4], $def[5], $def[6], $def[7], $def[8], $def[9]);
                break;
            
             case 
'checkbox_select':
                
config_checkbox_select($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4], $def[5], $def[6], $def[7], $def[8], $def[9]);
                break;

            case 
'colouroverride_input':
                if (!
$included_colour_picker_library)
                    {
                    
?><script src=" echo $baseurl?>/lib/spectrum/spectrum.js"></script>
                        <link rel="stylesheet" href=" echo $baseurl?>/lib/spectrum/spectrum.css" />
                    
                    $included_colour_picker_library
=true;
                    }
                
config_colouroverride_input($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4], $def[5],$def[6],$def[7]);
                break;
            case 
'multi_rtype_select':
                
config_multi_rtype_select($def[1], $def[2], $GLOBALS[$def[1]], $def[3]);
                break;
            case 
'single_ftype_select':
                
config_single_ftype_select($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4], $def[5],$def[6]);
                break;
            case 
'multi_archive_select':
                
config_multi_archive_select($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4]);
                break;
            case 
'fixed_input':
                
render_fixed_text_question($def[1], $def[2], $def[3]);
                break;
            default:
                break;
            }
        }
    }

This article was last updated 4th December 2024 09:05 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.