Skip to content

Commit

Permalink
Merge pull request atutor#17 from donadiomauro/atutor-lti1.1
Browse files Browse the repository at this point in the history
Atutor lti1.1
  • Loading branch information
cindyli committed Aug 10, 2012
2 parents 6c913a5 + e202724 commit e16e712
Show file tree
Hide file tree
Showing 60 changed files with 2,499 additions and 381 deletions.
Empty file modified bundle.sh
100755 → 100644
Empty file.
22 changes: 22 additions & 0 deletions content.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,29 @@

require(AT_INCLUDE_PATH.'header.inc.php');

//
// Mauro Donadio
//

$fp = @file_get_contents($content_row['text']);
// just for AContent content
if(strstr($fp, 'AContent Handbook')){

// a new dom object
$dom = new DomDocument('1.0', 'utf-8');
// load the html into the object
$dom->loadHTML($fp);
//discard white space
$dom->preserveWhiteSpace = false;
$content = $dom->saveHTML($dom->getElementById('content-text'));

// overwrite the original content with the filtered one
$savant->assign('body', $content);
$savant->assign('module_contents', '');
}

$savant->display('content.tmpl.php');
// --

//save last visit page.
$_SESSION['last_visited_page'] = $server_protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
Expand Down
Binary file added images/add-course.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e16e712

Please sign in to comment.