From: nicolasconnault Date: Thu, 23 Aug 2007 18:01:27 +0000 (+0000) Subject: MDL-10969 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=74df4357265ef03ae439508bc0ac8acc551300f8;p=moodle.git MDL-10969 --- diff --git a/theme/index.php b/theme/index.php index ac6d6fd552..d38dc6f436 100644 --- a/theme/index.php +++ b/theme/index.php @@ -57,12 +57,15 @@ $themes = get_list_of_plugins("theme"); $sesskey = !empty($USER->id) ? $USER->sesskey : ''; - echo ""; + echo "
\n"; if (!$USER->screenreader) { - echo ""; - echo ""; + echo "\t\n\t\t\n"; + echo "\t\t\n\t\n"; } + + $original_theme = fullclone($THEME); + foreach ($themes as $theme) { unset($THEME); @@ -78,11 +81,11 @@ $screenshotpath = ''; if (file_exists("$theme/README.html")) { - $readme = '
  • '. - link_to_popup_window($CFG->themewww .'/'. $theme .'/README.html', $theme, $strinfo, 400, 500, '', 'none', true).'
  • '; + $readme = "\t\t\t\t
  • ". + link_to_popup_window($CFG->themewww .'/'. $theme .'/README.html', $theme, $strinfo, 400, 500, '', 'none', true)."
  • \n"; } else if (file_exists("$theme/README.txt")) { - $readme = '
  • '. - link_to_popup_window($CFG->themewww .'/'. $theme .'/README.txt', $theme, $strinfo, 400, 500, '', 'none', true).'
  • '; + $readme = "\t\t\t\t
  • ". + link_to_popup_window($CFG->themewww .'/'. $theme .'/README.txt', $theme, $strinfo, 400, 500, '', 'none', true)."
  • \n"; } if (file_exists("$theme/screenshot.png")) { $screenshotpath = "$theme/screenshot.png"; @@ -90,48 +93,50 @@ $screenshotpath = "$theme/screenshot.jpg"; } - echo ""; + echo "\t\n"; // no point showing this if user is using screen reader if (!$USER->screenreader) { - echo ""; + $screenshot = "\t\t\t\t
  • $strscreenshot
  • \n"; + echo "\t\t\t$theme\n\t\t\n"; } else { - echo "$theme"; + echo "\t\t\t$theme\n\t\t\n"; } } if ($CFG->theme == $theme) { - echo ''; - echo ""; + echo "\t\t\t" . print_single_button('index.php', $options, $strchoose, 'get', null, true) . "\n"; + echo "\t\t\n"; + echo "\t\n"; } - echo "
    $strtheme$strinfo
    $strtheme$strinfo
    "; + echo "\t\t\n"; if ($screenshotpath) { - $screenshot = "
  • $strscreenshot
  • "; - echo "$theme
    '; + echo "\t\t" . ''."\n"; } else { - echo ''; + echo "\t\t" . ''."\n"; } if (isset($THEME->sheets)) { - echo '

    '.$theme.'

    '; + echo "\t\t\t" . '

    '.$theme.'

    '."\n"; } else { - echo '

    '.$theme.' (Moodle 1.4)

    '; + echo "\t\t\t" . '

    '.$theme.' (Moodle 1.4)

    '."\n"; } if ($screenshot or $readme) { - echo '
      '; + echo "\t\t\t
        \n"; if (!$USER->screenreader) { - echo "
      • $strpreview
      • "; + echo "\t\t\t\t
      • $strpreview
      • \n"; } echo $screenshot.$readme; - echo '
      '; + echo "\t\t\t
    \n"; } $options = null; $options['choose'] = $theme; $options['sesskey'] = $sesskey; - print_single_button('index.php', $options, $strchoose); - echo '
    "; + echo "\n"; + + $THEME = $original_theme; admin_externalpage_print_footer(); ?>