You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.5 KiB
52 lines
1.5 KiB
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
/**
|
|
* Script that displays the author name and image of a LP
|
|
* @package chamilo.learnpath
|
|
* @author Julio Montoya Armas <gugli100@gmail.com>
|
|
*/
|
|
/**
|
|
* Code
|
|
*/
|
|
$use_anonymous = true;
|
|
require_once 'back_compat.inc.php';
|
|
require_once 'learnpath.class.php';
|
|
require_once 'scorm.class.php';
|
|
require_once 'aicc.class.php';
|
|
|
|
// Getting the LP.
|
|
if (isset($_SESSION['lpobject'])) {
|
|
$oLP = unserialize($_SESSION['lpobject']);
|
|
if (is_object($oLP)) {
|
|
$_SESSION['oLP'] = $oLP;
|
|
} else {
|
|
die('Could not instanciate lp object');
|
|
}
|
|
}
|
|
/*
|
|
$lp_theme_css = $_SESSION['oLP']->get_theme();
|
|
*/
|
|
|
|
$scorm_css_header = true;
|
|
// scorm.css loaded
|
|
require_once '../inc/reduced_header.inc.php';
|
|
|
|
echo '<body dir="'.api_get_text_direction().'">';
|
|
$image = '../img/lp_author_background.gif';
|
|
echo '<div id="image_preview">';
|
|
echo '<table STYLE="width:250px;height:110px;background-image: url('.$image.');">';
|
|
echo '<tr><td align="center">';
|
|
if ($_SESSION['oLP']->get_preview_image()!='')
|
|
echo '<img alt="" src="'.api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image().'">';
|
|
else
|
|
echo Display::display_icon('unknown_250_100.jpg', ' ');
|
|
echo '</td></tr>';
|
|
echo '</table>';
|
|
echo '<div id="author_name">';
|
|
echo $_SESSION['oLP']->get_author();
|
|
echo '</div>';
|
|
echo '</div>';
|
|
?>
|
|
</body>
|
|
</html>
|
|
|