* @package block * @link https://www.zentao.net */ namespace zin; /** * 展示流程图。 * Print flow chart. */ function printFlowchart() { global $lang; $charts = array(); foreach($lang->block->flowchart as $flowName => $flow) { $items = array(); $index = 0; foreach ($flow as $flowItem) { $items[] = div ( set('class', 'flow-item flow-item-' . $index++), div ( set('class', 'flow-item-display'), $flowItem ) ); } $charts[] = div ( set('class', 'row flow-chart-row row-' . $flowName), $items ); } return div(set('class', 'flowchart p-6'), $charts); }