radio_get_layout()

Parameters

ColumnTypeDefaultDescription
$options

Location

include/render_functions.php lines 5820 to 5847

Definition

 
function radio_get_layout($options)
    {
    
$l average_length($options);
    
    
$cols 10;
    if(
$l 5
        {
        
$cols 6;
        }

    if(
$l 10)
        {
        
$cols 4;
        }

    if(
$l 15)
        {
        
$cols 3;
        }

    if(
$l 25)
        {
        
$cols 2;
        }

    
$rows ceil(count($options) / $cols);
    return array(
$rows$cols);
    }

This article was last updated 6th June 2025 12:35 Europe/London time based on the source file dated 3rd June 2025 16:35 Europe/London time.