Collections functions
Encryption functions
General functions
Theme permission functions
Resource 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 1118 to 1170

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]);
                break;

            case 
'file_input':
                
config_file_input($def[1], $def[2], $GLOBALS[$def[1]], $def[3], $def[4]);
                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]);
                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], $def[4]);
                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;
            }
        }
    }

This article was last updated 7th July 2020 11:05 Europe/London time based on the source file dated 18th May 2020 17:14 Europe/London time.