]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19824 upgraded calls to print_container*
authornicolasconnault <nicolasconnault>
Thu, 20 Aug 2009 08:50:03 +0000 (08:50 +0000)
committernicolasconnault <nicolasconnault>
Thu, 20 Aug 2009 08:50:03 +0000 (08:50 +0000)
35 files changed:
theme/anomaly/footer.html
theme/anomaly/header.html
theme/colors/footer.html
theme/colors/header.html
theme/cornflower/footer.html
theme/cornflower/header.html
theme/custom_corners/footer.html
theme/custom_corners/header.html
theme/formal_white/footer.html
theme/formal_white/header.html
theme/index.php
theme/lines/footer.html
theme/lines/header.html
theme/metal/footer.html
theme/metal/header.html
theme/oceanblue/footer.html
theme/oceanblue/header.html
theme/orangewhite/footer.html
theme/orangewhite/header.html
theme/orangewhitepda/footer.html
theme/orangewhitepda/header.html
theme/standard/footer.html
theme/standard/header.html
theme/standardblue/footer.html
theme/standardblue/header.html
theme/standardgreen/footer.html
theme/standardgreen/header.html
theme/standardlogo/footer.html
theme/standardlogo/header.html
theme/standardred/footer.html
theme/standardred/header.html
theme/standardwhite/footer.html
theme/standardwhite/header.html
theme/wood/footer.html
theme/wood/header.html

index 94b10ed34efa2ab93fd723fe0b5df642b0b59958..153cbfe5c9502ed17265ca5194724b13ee3e69a4 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
 ?>
 
@@ -27,7 +27,7 @@
         </div>
     </div>
 </div>
-<?php print_container_end(); ?>
+<?php echo $OUTPUT->container_end(); ?>
                                 </div>
                             </div>
                         </div>
index 0700af48fd14f6877a80b597973e5686a1b2c0eb..fa145b966d30cc794a088e1bc1d80e92019f148b 100644 (file)
@@ -33,7 +33,7 @@
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
     
     <div id="header-t">
        <div id="header-r">
        </div>
     </div>
 
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
     <div id="header-t">
        <div id="header-r">
                <div id="header-l">
@@ -62,7 +62,7 @@
                                </div>
                        </div>
                </div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -74,4 +74,4 @@
 ?>
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 9f8460dd41401ede5aa612ade1794b2d52e4c3db..3788820a19db7ddcee28d31f18eedefa77238887 100755 (executable)
@@ -1,8 +1,8 @@
 
 <?php    
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(true, '', 'footer');
+    echo $OUTPUT->container_start('clearfix footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -18,7 +18,7 @@
         echo $performanceinfo;
     }
     
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 <?php
index 3368232dabe2d5a8ac85076261d4df25510ca6c6..48f4ce8be0f081e8ae72f0312af9b09cf87e15a0 100755 (executable)
     
 <?php if ($home) {  // This is what gets printed on the home page only  
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
        <div class="navbar clearfix">
                &nbsp;      
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
     <div class="navbar clearfix">
     <?php if ($navigation) { // This is the navigation table with breadcrumbs
     ?>
@@ -36,4 +36,4 @@
     </div>
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index a7fea6e95c5326c00be51799eb38149d9045a4e1..78d16c8c3eb0859bad936285f781b1f619da7359 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -23,7 +23,7 @@
         echo $performanceinfo;
     }
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 
 </div>
index 74383a45299839d2ad960cfa83fbccc5d594cab0..1141f23312ee98e5c4f688addca4b1a08d922d7e 100644 (file)
 <?php //Accessibility: warning: ALT text will need editing when logo changes. 'headermain' is now H1.
 
       if ($home) {  // home page ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><img alt="[ REPLACE ME ]" src="<?php echo $CFG->themewww.'/'.current_theme() ?>/images/logo.jpg" width="457" height="64" /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><img alt="[ REPLACE ME ]" src="<?php echo $CFG->themewww.'/'.current_theme() ?>/images/logo.jpg" width="457" height="64" /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
     <div class="clearer"></div>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
@@ -43,4 +43,4 @@
 <?php }  ?>
     <!-- END OF HEADER -->
     <div class="clearer"></div>
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index cce3af0ec7be2886d58b0884c863e4fa4863bcd3..87ec37e7308847dafd4df1cfd8c8349347594459 100644 (file)
@@ -1,4 +1,4 @@
-<?php print_container_end(); ?><!-- end container Content -->
+<?php echo $OUTPUT->container_end(); ?><!-- end container Content -->
 <!-- START OF FOOTER -->
 <?php 
 
@@ -10,7 +10,7 @@ if (function_exists('is_in_popup')) {
 }
 
 if (!$inpopup) { 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
     
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -26,7 +26,7 @@ if (!$inpopup) {
         echo $performanceinfo;
     }
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 
 } // end if inpopup
 
index 559aaeac09d2ebb152e82059b54106613c923790..508df7552fd307234b1ca565fb5c77969b0e4c1f 100644 (file)
 <?php if (!$inpopup) { 
     if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
         <div class="navbar clearfix">
@@ -65,9 +65,9 @@
             <div class="navbutton"><?php echo $button; ?></div>
             <?php } ?>
         </div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php }
     }
 ?>
     <!-- END OF HEADER -->
-<?php print_container_start(false, '', 'content'); ?>
+<?php echo $OUTPUT->container_start('content'); ?>
index 63070788c53c5ee1067cf9f2f0d3d49c6ea66518..aff0409aa478c2985c416c7e373cacc9145d7153 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -32,7 +32,7 @@
         </ul></div>
 <?php }
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 
 </div>
index c781b7a90787e464397adbaf298b1a2729febe26..bced405b6474d9ed305d23cc315696876a559225 100644 (file)
 <?php //Accessibility: warning: ALT text will need editing if logo changes. 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/logo.jpg' /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/logo_small.jpg' /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -42,4 +42,4 @@
        <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index b259b3573febac3a92e2a99324b1dcc0faaf31d0..588138a4db4ea5a52b8cb233eeff132a24a66013 100644 (file)
@@ -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 .= "<ul>\n<li>" . implode("</li>\n<li>", $infoitems) . "</li>\n</ul>\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();
 ?>
index 63fe8394651d8009667075179521490d37c947ff..2193d1be04ef756413d41fe0b65ed043496f4a18 100755 (executable)
@@ -1,8 +1,8 @@
 
 <?php    
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(true, '', 'footer');
+    echo $OUTPUT->container_start('clearfix footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -18,7 +18,7 @@
         echo $performanceinfo;
     }
     
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 <?php
index a730b603fc3f44a993406fb7dd0fbbf59738ee91..7bb3e9c20d2aa6c0d634e08beb257a4336db62ac 100755 (executable)
     
 <?php if ($home) {  // This is what gets printed on the home page only  
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
        <div class="navbar clearfix">
                &nbsp;      
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
     <div class="navbar clearfix">
     <?php if ($navigation) { // This is the navigation table with breadcrumbs
     ?>
@@ -37,4 +37,4 @@
     </div>
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index bb3b585c209f5ecd1c6074f1b69db4c526fe00c7..e455b05c5bda683cb90c1fe5c06052ad3a175a03 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo '<hr />';
     echo $loggedinas;
@@ -25,7 +25,7 @@
         </ul></div>
 <?php }
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 
 </div>
index 19b7b637622cd27017ebbf25ce7203698680660a..a12259bad9f5d7d3e3b6113c3649730aa0833946 100644 (file)
 
 <?php if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
     <div class="clearer">&nbsp;</div>
 <?php if ($navigation) { // This is the navigation table with breadcrumbs  ?>
@@ -42,4 +42,4 @@
 <?php } ?>
     <div class="clearer">&nbsp;</div>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 63070788c53c5ee1067cf9f2f0d3d49c6ea66518..aff0409aa478c2985c416c7e373cacc9145d7153 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -32,7 +32,7 @@
         </ul></div>
 <?php }
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 
 </div>
index 8876ebe0c39c9ecacb151ed422b09e4acc1e1656..86dac6328dde07d809fcec33c2296c20410fdda0 100644 (file)
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -42,4 +42,4 @@
         <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 101b724aea2c17934420c88490e125866e72f52f..6d1eb8aed22b676cb9b14f6116cca3fcd29529ba 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -11,7 +11,7 @@
     echo $loggedinas;
     echo $homelink;
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 </body>
index 5e6e2a66f4c842bd0aa6c1073853079eef7d9353..2115554c94c76079af1c7b366262c4d36e214b3a 100644 (file)
@@ -19,7 +19,7 @@
 
 <?php if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     <?php print_container_end(); ?>
@@ -27,7 +27,7 @@
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
         <!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> -->
@@ -41,4 +41,4 @@
     </div>
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 101b724aea2c17934420c88490e125866e72f52f..6d1eb8aed22b676cb9b14f6116cca3fcd29529ba 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -11,7 +11,7 @@
     echo $loggedinas;
     echo $homelink;
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 </body>
index 5e6e2a66f4c842bd0aa6c1073853079eef7d9353..00c0b62d0cd821da0c5a6bc1acf43073b80b922b 100644 (file)
 
 <?php if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
     <div class="navbar">
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
         <!-- <div class="headermenu"><div id="new-menu"><?php echo $navmenulist ?></div></div> -->
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php if ($navigation) { // This is the navigation table with breadcrumbs
 ?>
@@ -41,4 +41,4 @@
     </div>
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 6c75742330521026dc69f64f15728553fc671d34..eedcbdeca2be0f3218e0e587a1a4bff595a07833 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
@@ -31,7 +31,7 @@
         </ul></div>
 <?php }
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 
 </div>
index 8876ebe0c39c9ecacb151ed422b09e4acc1e1656..86dac6328dde07d809fcec33c2296c20410fdda0 100644 (file)
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -42,4 +42,4 @@
         <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 635ad3500a93b835875003a646fad1665fda03bc..e1669c74eb1d6f2be17bc0ca0720c135bb8d339e 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
     echo '<hr />';
 
     echo '<p class="helplink">';
@@ -12,7 +12,7 @@
     echo $loggedinas;
     echo $homelink;
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 </body>
index 8876ebe0c39c9ecacb151ed422b09e4acc1e1656..86dac6328dde07d809fcec33c2296c20410fdda0 100644 (file)
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -42,4 +42,4 @@
         <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 635ad3500a93b835875003a646fad1665fda03bc..e1669c74eb1d6f2be17bc0ca0720c135bb8d339e 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
     echo '<hr />';
 
     echo '<p class="helplink">';
@@ -12,7 +12,7 @@
     echo $loggedinas;
     echo $homelink;
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 </body>
index 8876ebe0c39c9ecacb151ed422b09e4acc1e1656..86dac6328dde07d809fcec33c2296c20410fdda0 100644 (file)
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -42,4 +42,4 @@
         <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 635ad3500a93b835875003a646fad1665fda03bc..e1669c74eb1d6f2be17bc0ca0720c135bb8d339e 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
     echo '<hr />';
 
     echo '<p class="helplink">';
@@ -12,7 +12,7 @@
     echo $loggedinas;
     echo $homelink;
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 </body>
index bde61b4da56119f67bf2bce4b32f73a8fe255d81..f261a54a3f9e74266fcd6116cac1930641914144 100644 (file)
 
       //Accessibility: warning: ALT text will need editing if logo changes. 'headermain' is now H1.
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><img alt="Moodle" src="<?php echo $standardlogo ?>" /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation table with breadcrumbs  ?>
@@ -56,4 +56,4 @@
         <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 635ad3500a93b835875003a646fad1665fda03bc..e1669c74eb1d6f2be17bc0ca0720c135bb8d339e 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
     echo '<hr />';
 
     echo '<p class="helplink">';
@@ -12,7 +12,7 @@
     echo $loggedinas;
     echo $homelink;
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 </body>
index 8876ebe0c39c9ecacb151ed422b09e4acc1e1656..86dac6328dde07d809fcec33c2296c20410fdda0 100644 (file)
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -42,4 +42,4 @@
         <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>
index 443ebe83fce4b99043904192781dd0efcb3e2d8a..2a348043ef1387df4f4b662231d251a39086b6ca 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
     echo "<hr />";
 
     echo '<p class="helplink">';
@@ -24,7 +24,7 @@
           <li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=0&amp;warnp2n3e=1&amp;url1=<?php echo urlencode(qualified_me()) ?>">WCAG 1 (2,3) Check</a></li>
         </ul></div>
 <?php } 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 
 </div>
index deb3ec5762e9698c488ed70c6b1e891441346ff5..1bbab044d77a2a62c0da08fa583a12be773ab122 100644 (file)
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
       if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
@@ -42,4 +42,4 @@
         <hr />
 <?php } ?>
     <!-- END OF HEADER -->
-    <?php print_container_start(true, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('clearfix content'); ?>
index 9692ad2af9749bcfc578de80b59a0feb76418ec8..d3a2a79e4946ed3d86201093b1634a8f6c29a3cf 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-    print_container_end(); // content container
+    echo $OUTPUT->container_end(); // content container
 
-    print_container_start(false, '', 'footer');
+    echo $OUTPUT->container_start('footer');
 
     echo "<div id=\"footer-bar\">";
     echo '<span class="helplink">';
@@ -17,7 +17,7 @@
         echo $performanceinfo;
     }
 
-    print_container_end();
+    echo $OUTPUT->container_end();
 ?>
 </div>
 </body>
index 2eeb76bf39da8db50daecb46e0a8ebe7061ebb5c..978e8bfc915b86b1dd1a8e322deedc18fa60b323 100644 (file)
 
 <?php if ($home) {  // This is what gets printed on the home page only
 ?>
-    <?php print_container_start(true, '', 'header-home'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
-    <?php print_container_start(true, '', 'header'); ?>
+    <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
-    <?php print_container_end(); ?>
+    <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php if ($navigation) { // This is the navigation table with breadcrumbs  ?>
     <div class="navbar clearfix">
@@ -41,4 +41,4 @@
 <?php } ?>
     <div class="clearer">&nbsp;</div>
     <!-- END OF HEADER -->
-    <?php print_container_start(false, '', 'content'); ?>
+    <?php echo $OUTPUT->container_start('content'); ?>