Proyectos de Subversion Moodle

Rev

Rev 1310 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1310 Rev 1312
Línea 1367... Línea 1367...
1367
     *
1367
     *
1368
     * @return string HTML fragment.
1368
     * @return string HTML fragment.
1369
     */
1369
     */
1370
    public function main_content()
1370
    public function main_content()
1371
    {
1371
    {
1372
        $this->page->set_state(moodle_page::STATE_IN_BODY);
1372
        // This is here because it is the only place we can inject the "main" role over the entire main content area
-
 
1373
        // without requiring all theme's to manually do it, and without creating yet another thing people need to
1373
        ob_start();
1374
        // remember in the theme.
1374
        $this->page->get_renderer('core')->render_page_content();
1375
        // This is an unfortunate hack. DO NO EVER add anything more here.
1375
        return ob_get_clean();
1376
        // DO NOT add classes.
-
 
1377
        // DO NOT add an id.
-
 
1378
        return '<div class="main-content" role="main">' . $this->unique_main_content_token . '</div>';
1376
    }
1379
    }
Línea 1377... Línea 1380...
1377
 
1380
 
1378
    /**
1381
    /**
1379
     * Outputs a heading
1382
     * Outputs a heading