Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

radio_get_layout()

Parameters

ColumnTypeDefaultDescription
$options

Location

include/render_functions.php lines 5564 to 5591

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 24th May 2024 11:05 Europe/London time based on the source file dated 23rd May 2024 10:00 Europe/London time.