Ejemplo n.º 1
0
?>
</h1></div>
        <div><?php 
echo $abstract_array['abstract_zone_desc'];
?>
</div>
<?php 
$zones_array = $cSuper->get_entries($current_abstract_id);
// Setup the best fit arrays
$length_array = array();
for ($i = 0, $j = DEFAULT_COLUMN_SUPER_SPLIT; $i < $j; $i++) {
    $length_array[] = 0;
    $content_array[] = '';
}
foreach ($zones_array as $id => $zone) {
    if (!$cSuper->is_enabled($id)) {
        continue;
    }
    $zone_class = $cSuper->get_zone_class($id);
    $module = DIR_WS_MODULES . $zone_class . '_mod.php';
    $module_class = $zone_class . '_mod';
    if (file_exists($module)) {
        require_once $module;
        $cModule = new $module_class($id);
        $result = $cModule->output();
        // Execute a simple best fit routine to balance the columns
        $index = key($length_array);
        $length_array[$index] += tep_string_length(strip_tags($result));
        $content_array[$index] .= '<div class="splitColumn">' . $result . '</div>' . "\n";
        asort($length_array, SORT_NUMERIC);
    }