lang_code the ISO language code * SITE_NAME the site name from the config file * $this->page_title the name of this page to use in the * $this->lang_charset the ISO language character set * $this->content_base_href the <base href> to use for this page * $this->base_path the absolute path to this atutor installation * $this->rtl_css if set, the path to the RTL style sheet * $this->icon the path to a course icon * $this->banner_style -deprecated- * $this->theme the directory name of the current theme * $this->base_href the full url to this atutor installation * $this->onload javascript onload() calls * $this->img the absolute path to this theme's images/ directory * $this->sequence_links associative array of 'previous', 'next', and/or 'resume' links * $this->path associative array of path to this page: aka bread crumbs * $this->rel_url the relative url from the installation root to this page * $this->nav_courses associative array of this user's enrolled courses * $this->section_title the title of this section (course, public, admin, my start page) * $this->current_top_level_page the full path to the current top level page with file name * $this->sub_level_pages associate array of sub level navigation * $this->back_to_page if set, the path and file name to the part of this page (if parent is not a top level nav) * $this->current_sub_level_page the full path to the current sub level page with file name * $this->guide the full path and file name to the guide page * ====================================== * top_level_pages array(array('url', 'title')) the top level pages. ATutor default creates tabs. * section_title string the name of the current section. either name of the course, administration, my start page, etc. * page_title string the title of the current page. * path array(array('url', 'title')) the path to the current page. * back_to_page array('url', 'title') the link back to the part of the current page, if needed. * current_top_level_page string full url to the current top level page in "top_leve_pages" * current_sub_level_page string full url to the current sub level page in the "sub_level_pages" * sub_level_pages array(array('url', 'title')) the sub level pages. * is_mobile_device true or false the request is from a mobile device or a desktop device * mobile_device_type One of the constants: IPOD_DEVICE, BLACKBERRY_DEVICE, ANDROID_DEVICE, UNKNOWN_DEVICE (@see include/lib/constants.inc.php) */ // will have to be moved to the header.inc.php global $system_courses, $_custom_css, $db, $_base_path, $contentManager; // 1. any click on the page closes the content menu but the link "content_link" itself // 2. the click on link "content_link" opens the content menu require ('TeraWurflRemoteClient.php'); $wurflObj = new TeraWurflRemoteClient('http://wurfl.thesedays.com/webservice.php'); $capabilities = array("product_info"); $data_format = TeraWurflRemoteClient::$FORMAT_JSON; $wurflObj->getCapabilitiesFromAgent(null, $capabilities, $data_format); // open/close content menu $this->onload .= " jQuery('#content_link').click(function(e) { e.stopPropagation(); jQuery('#content').slideToggle(0); jQuery('#content_link').toggleClass('content_link_tablet_highlight'); jQuery('#content_link').toggleClass('triangle-isosceles'); jQuery('#content_link').toggleClass('top'); jQuery('#content_link').toggleClass('right'); "; $this->onload .= "}); "; //open/close subnavlist in smartphones $this->onload .= " jQuery('#subnavlist-link').click(function(e) { e.stopPropagation(); jQuery('#subnavlist').slideToggle(); jQuery('#subnavlist-link').toggleClass('content-closed'); jQuery('fl-theme-iphone').toggleClass('subnavcontain2'); "; $this->onload .= "}); "; // open/close content menu - smartphones $this->onload .= " jQuery('#content_link_phone').click(function(e) { e.stopPropagation(); jQuery('#content').slideToggle(); jQuery('#content_link_phone').toggleClass('topnavlist-link-highlight'); jQuery('#content_link_phone').toggleClass('content-closed'); "; $this->onload .= "}); "; // open/close header navigational menu for smartphones // jQuery('#topnavlist-link').toggleClass('topnavlist-link-highlight'); $this->onload .= " jQuery(document).click(function () { jQuery('#topnavlist').slideUp(600);}); jQuery('.topnavlist-link').click(function(e) { e.stopPropagation(); jQuery('#topnavlist').slideToggle(); jQuery('#topnavlist-link').toggleClass('.topnavlist-link-highlight'); }); "; // open/close header navigational menu for tablets $this->onload .= " jQuery(document).click(function () { jQuery('#navigation-column').slideUp(200);}); jQuery('.topnavlist-link').click(function(e) { e.stopPropagation(); jQuery('#navigation-column').slideToggle(0); jQuery('#topnavlist-link').toggleClass('topnavlist-link-highlight'); jQuery('#topnavlist-link').toggleClass('triangle-isosceles'); jQuery('#topnavlist-link').toggleClass('top'); }); "; //jQuery for Gmail dock-style "more" button that makes the subnavlist expand for more options $this->onload .= " jQuery('.more-button').click(function(e) { e.stopPropagation(); jQuery('.subnavlist-more').slideToggle(); jQuery('#switch').attr('src', 'images/hidemenu.gif'); jQuery('#switch').attr('title', 'less menu items'); jQuery('#switch').attr('alt', 'less menu items'); }); "; /* * * $(".wizard-img").toggle( function () { $(this).find("img").attr({src:"x-on.png"}); }, function () { $(this).find("img").attr({src:"x-off.png"}); }, function () { $(this).find("img").attr({src:"x.png"}); } ); // works jQuery('#switch').attr('src', 'images/hidemenu.gif'); jQuery('#switch').attr('title', 'less menu items'); jQuery('#switch').attr('alt', 'less menu items'); * */ //hide and show results on Browse Courses page $this->onload .= " jQuery('#results-hide-show-link').click(function(e) { e.stopPropagation(); jQuery('#results-display').slideToggle(); jQuery(this).toggleClass('content-closed'); jQuery(this).preventDefault(); "; $this->onload .= "}); "; //hide and show results elsewhere (uses classes) $this->onload .= " jQuery('.results-hide-show-link').click(function(e) { e.stopPropagation(); jQuery(this).parent().next('.results-display').slideToggle(); jQuery(this).toggleClass('content-closed'); "; $this->onload .= "}); "; // Hide the addressbar $this->onload .= " setTimeout(function() { window.scrollTo(0, 1) }, 100); "; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $this->lang_code; ?>"> <head> <title><?php echo SITE_NAME; ?> : <?php echo $this->page_title; ?> is_mobile_device == true): ?> mobile_device_type == ANDROID_DEVICE): ?> mobile_device_type == IPOD_DEVICE || $this->mobile_device_type == IPHONE_DEVICE): ?> mobile_device_type == BLACKBERRY_DEVICE): ?> mobile_device_type == IPAD_DEVICE): ?> rtl_css; ?> course_id) && $system_courses[$this->course_id]['rss']): ?> custom_css; ?> mobile_device_type != IPAD_DEVICE): ?>

page_title; ?>

back_to_page)): ?> <?php echo _AT('back_to').' '.$this->back_to_page['title']; ?> 
printAll(); $_base_href;?> mobile_device_type == IPAD_DEVICE): ?>
sub_level_pages) > 0): ?> printAll(); $_base_href;?>

page_title; ?>

0): ?>