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 5561 to 5588

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 27th April 2024 08:35 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.