Proyectos de Subversion Moodle

Rev

Rev 1312 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1312 Rev 1317
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 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
-
 
1374
        // remember in the theme.
-
 
1375
        // This is an unfortunate hack. DO NO EVER add anything more here.
1372
        $this->page->set_state(moodle_page::STATE_IN_BODY);
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>';
1373
        return $this->render_from_template('core/local/content', []);
1379
    }
1374
    }
Línea 1380... Línea 1375...
1380
 
1375
 
1381
    /**
1376
    /**
1382
     * Outputs a heading
1377
     * Outputs a heading