get_toc();
$is_allowed_to_edit = api_is_allowed_to_edit(null, true, false, false);
if ($is_allowed_to_edit) {
echo '
';
global $interbreadcrumb;
$interbreadcrumb[] = array('url' => 'lp_controller.php?action=list&isStudentView=false', 'name' => get_lang('LearningPaths'));
$interbreadcrumb[] = array('url' => api_get_self()."?action=add_item&type=step&lp_id=".$_SESSION['oLP']->lp_id."&isStudentView=false", 'name' => $_SESSION['oLP']->get_name());
$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Preview'));
echo $app['template']->returnBreadcrumb($interbreadcrumb, null, null);
echo '
';
}
$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 .= '';
$html .= '
'.$toc['title'].'
';
$src = $_SESSION['oLP']->get_link('http', $toc['id']);
//just showing the src in a iframe ...
$html .= '';
$html .= "";
$step++;
}
//Setting the template
$app['template']->assign('html', $html);
$content = $app['template']->fetch('default/learnpath/impress.tpl');
$app['template']->assign('content', $content);
$app['template']->display_one_col_template();