$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); $hasfooter = (empty($PAGE->layout_options['nofooter'])); $hasmyblocks = $PAGE->blocks->region_has_content('myblocks', $OUTPUT); $bodyclasses = array(); $bodyclasses[] = (string)$hasithumb; $bodyclasses[] = (string)$showsitetopic; // add ithumb class to decide whether to show or hide images and site topic // TODO: Better illustrate preceedence $gowide = ($mydevice == 'default' && $showusetableview == 'tabshow' || $mydevice == 'tablet' && $showusetableview == 'tabshow'); if ($gowide) { // initialize column position choices. mymobile_initialise_colpos($PAGE); } $usercol = (mymobile_get_colpos() == 'on'); $renderer = $PAGE->get_renderer('theme_mymobile'); echo $OUTPUT->doctype() ?> <html <?php echo $OUTPUT->htmlattributes() ?>> <head> <title><?php echo $PAGE->title ?></title> <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $OUTPUT->pix_url('m2m2x', 'theme')?>" /> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $OUTPUT->pix_url('m2m', 'theme')?>" /> <link rel="apple-touch-icon-precomposed" href="<?php echo $OUTPUT->pix_url('m2m', 'theme')?>" /> <meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" /> <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
if (empty($PAGE->layout_options['nocoursefooter'])) { $coursecontentfooter = $OUTPUT->course_content_footer(); $coursefooter = $OUTPUT->course_footer(); } } $bodyclasses = array(); $bodyclasses[] = (string) $hasithumb; $bodyclasses[] = (string) $showsitetopic; // add ithumb class to decide whether to show or hide images and site topic // TODO: Better illustrate preceedence $gowide = $mydevice == 'default' && $showusetableview == 'tabshow' || $mydevice == 'tablet' && $showusetableview == 'tabshow'; if ($gowide) { // initialize column position choices. mymobile_initialise_colpos($PAGE); } $usercol = mymobile_get_colpos() == 'on'; $renderer = $PAGE->get_renderer('theme_mymobile'); echo $OUTPUT->doctype(); ?> <html id="mymobile" <?php echo $OUTPUT->htmlattributes(); ?> > <head> <title><?php echo $PAGE->title; ?> </title> <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme'); ?>