get_toc(); $html = ''; $step = 1; foreach ($list as $toc) { $x = 1000*$step; //data-scale="'.$step.'" //data-x="850" data-y="3000" data-rotate="90" data-scale="5" $html .= '
\n"; $step ++; } //Setting the template //$tpl = new Template($tool_name, false, false, true); $tpl = new Template($tool_name); $tpl->assign('html', $html); $content = $tpl->fetch('default/learnpath/impress.tpl'); $tpl->assign('content', $content); $tpl->display_one_col_template();