From: nicolasconnault Date: Thu, 20 Aug 2009 08:50:03 +0000 (+0000) Subject: MDL-19824 upgraded calls to print_container* X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fd09397ee13e88cb6fad4b1e765c9418a2a5b3f8;p=moodle.git MDL-19824 upgraded calls to print_container* --- diff --git a/theme/anomaly/footer.html b/theme/anomaly/footer.html index 94b10ed34e..153cbfe5c9 100644 --- a/theme/anomaly/footer.html +++ b/theme/anomaly/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); ?> @@ -27,7 +27,7 @@ - +container_end(); ?> diff --git a/theme/anomaly/header.html b/theme/anomaly/header.html index 0700af48fd..fa145b966d 100644 --- a/theme/anomaly/header.html +++ b/theme/anomaly/header.html @@ -33,7 +33,7 @@ - + container_start('clearfix header-home'); ?>
@@ -48,10 +48,10 @@
- + container_end(); ?> - + container_start('clearfix header'); ?>
@@ -62,7 +62,7 @@
- + container_end(); ?> @@ -74,4 +74,4 @@ ?> - + container_start('content'); ?> diff --git a/theme/colors/footer.html b/theme/colors/footer.html index 9f8460dd41..3788820a19 100755 --- a/theme/colors/footer.html +++ b/theme/colors/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(true, '', 'footer'); + echo $OUTPUT->container_start('clearfix footer'); echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> - + container_start('content'); ?> diff --git a/theme/cornflower/footer.html b/theme/cornflower/footer.html index a7fea6e95c..78d16c8c3e 100644 --- a/theme/cornflower/footer.html +++ b/theme/cornflower/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '

[ REPLACE ME ]

- + container_end(); ?> - + container_start('clearfix header'); ?>

[ REPLACE ME ]

- + container_end(); ?>
- + container_start('content'); ?> diff --git a/theme/custom_corners/footer.html b/theme/custom_corners/footer.html index cce3af0ec7..87ec37e730 100644 --- a/theme/custom_corners/footer.html +++ b/theme/custom_corners/footer.html @@ -1,4 +1,4 @@ - +container_end(); ?> container_start('footer'); echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> - +container_start('content'); ?> diff --git a/theme/formal_white/footer.html b/theme/formal_white/footer.html index 63070788c5..aff0409aa4 100644 --- a/theme/formal_white/footer.html +++ b/theme/formal_white/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '

Moodle/logo.jpg' />

- + container_end(); ?> - + container_start('clearfix header'); ?>

Moodle/logo_small.jpg' />

- + container_end(); ?> @@ -42,4 +42,4 @@
- + container_start('content'); ?> diff --git a/theme/index.php b/theme/index.php index b259b3573f..588138a4db 100644 --- a/theme/index.php +++ b/theme/index.php @@ -65,7 +65,7 @@ if ($choose and confirm_sesskey()) { admin_externalpage_print_header('themeselector'); echo $OUTPUT->heading(get_string('themes')); -$table = new stdClass; +$table = new html_table(); $table->id = 'adminthemeselector'; $table->head = array(get_string('theme'), get_string('info')); @@ -126,8 +126,8 @@ foreach ($themes as $themename => $themedir) { $infocell .= "\n"; } if ($themename != $CFG->theme) { - $infocell .= print_single_button('index.php', array('choose' => $themename, 'sesskey' => $sesskey), - get_string('choose'), 'get', null, true); + $infocell .= $OUTPUT->button(html_form::make_button('index.php', array('choose' => $themename, 'sesskey' => $sesskey), + get_string('choose'), 'get')); } $row[] = $infocell; @@ -138,7 +138,7 @@ foreach ($themes as $themename => $themedir) { } } -print_table($table); +echo $OUTPUT->table($table); echo $OUTPUT->footer(); ?> diff --git a/theme/lines/footer.html b/theme/lines/footer.html index 63fe839465..2193d1be04 100755 --- a/theme/lines/footer.html +++ b/theme/lines/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(true, '', 'footer'); + echo $OUTPUT->container_start('clearfix footer'); echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> - + container_start('content'); ?> diff --git a/theme/metal/footer.html b/theme/metal/footer.html index bb3b585c20..e455b05c5b 100644 --- a/theme/metal/footer.html +++ b/theme/metal/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '
'; echo $loggedinas; @@ -25,7 +25,7 @@ container_end(); ?> diff --git a/theme/metal/header.html b/theme/metal/header.html index 19b7b63762..a12259bad9 100644 --- a/theme/metal/header.html +++ b/theme/metal/header.html @@ -19,16 +19,16 @@ - + container_start('clearfix header-home'); ?>

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?>
 
@@ -42,4 +42,4 @@
 
- + container_start('content'); ?> diff --git a/theme/oceanblue/footer.html b/theme/oceanblue/footer.html index 63070788c5..aff0409aa4 100644 --- a/theme/oceanblue/footer.html +++ b/theme/oceanblue/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> @@ -42,4 +42,4 @@
- + container_start('content'); ?> diff --git a/theme/orangewhite/footer.html b/theme/orangewhite/footer.html index 101b724aea..6d1eb8aed2 100644 --- a/theme/orangewhite/footer.html +++ b/theme/orangewhite/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '

@@ -27,7 +27,7 @@ - + container_start('clearfix header'); ?>

@@ -41,4 +41,4 @@ - + container_start('content'); ?> diff --git a/theme/orangewhitepda/footer.html b/theme/orangewhitepda/footer.html index 101b724aea..6d1eb8aed2 100644 --- a/theme/orangewhitepda/footer.html +++ b/theme/orangewhitepda/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> @@ -41,4 +41,4 @@ - + container_start('content'); ?> diff --git a/theme/standard/footer.html b/theme/standard/footer.html index 6c75742330..eedcbdeca2 100644 --- a/theme/standard/footer.html +++ b/theme/standard/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> @@ -42,4 +42,4 @@
- + container_start('content'); ?> diff --git a/theme/standardblue/footer.html b/theme/standardblue/footer.html index 635ad3500a..e1669c74eb 100644 --- a/theme/standardblue/footer.html +++ b/theme/standardblue/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '
'; echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> @@ -42,4 +42,4 @@
- + container_start('content'); ?> diff --git a/theme/standardgreen/footer.html b/theme/standardgreen/footer.html index 635ad3500a..e1669c74eb 100644 --- a/theme/standardgreen/footer.html +++ b/theme/standardgreen/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '
'; echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> @@ -42,4 +42,4 @@
- + container_start('content'); ?> diff --git a/theme/standardlogo/footer.html b/theme/standardlogo/footer.html index 635ad3500a..e1669c74eb 100644 --- a/theme/standardlogo/footer.html +++ b/theme/standardlogo/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '
'; echo '

Moodle

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> @@ -56,4 +56,4 @@
- + container_start('content'); ?> diff --git a/theme/standardred/footer.html b/theme/standardred/footer.html index 635ad3500a..e1669c74eb 100644 --- a/theme/standardred/footer.html +++ b/theme/standardred/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo '
'; echo '

- + container_end(); ?> - + container_start('clearfix header'); ?>

- + container_end(); ?> @@ -42,4 +42,4 @@
- + container_start('content'); ?> diff --git a/theme/standardwhite/footer.html b/theme/standardwhite/footer.html index 443ebe83fc..2a348043ef 100644 --- a/theme/standardwhite/footer.html +++ b/theme/standardwhite/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo "
"; echo '
  • WCAG 1 (2,3) Check
  • container_end(); ?> diff --git a/theme/standardwhite/header.html b/theme/standardwhite/header.html index deb3ec5762..1bbab044d7 100644 --- a/theme/standardwhite/header.html +++ b/theme/standardwhite/header.html @@ -20,16 +20,16 @@ - + container_start('clearfix header-home'); ?>

    - + container_end(); ?> - + container_start('clearfix header'); ?>

    - + container_end(); ?> @@ -42,4 +42,4 @@
    - + container_start('clearfix content'); ?> diff --git a/theme/wood/footer.html b/theme/wood/footer.html index 9692ad2af9..d3a2a79e49 100644 --- a/theme/wood/footer.html +++ b/theme/wood/footer.html @@ -1,8 +1,8 @@ container_end(); // content container - print_container_start(false, '', 'footer'); + echo $OUTPUT->container_start('footer'); echo "
    "; echo ''; @@ -17,7 +17,7 @@ echo $performanceinfo; } - print_container_end(); + echo $OUTPUT->container_end(); ?>
    diff --git a/theme/wood/header.html b/theme/wood/header.html index 2eeb76bf39..978e8bfc91 100644 --- a/theme/wood/header.html +++ b/theme/wood/header.html @@ -19,16 +19,16 @@ - + container_start('clearfix header-home'); ?>

    - + container_end(); ?> - + container_start('clearfix header'); ?>

    - + container_end(); ?>