Proyectos de Subversion Moodle

Rev

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

Rev 1306 Rev 1307
Línea 1372... Línea 1372...
1372
    /**
1372
    /**
1373
     * Returns standard main content placeholder.
1373
     * Returns standard main content placeholder.
1374
     * Designed to be called in theme layout.php files.
1374
     * Designed to be called in theme layout.php files.
1375
     *
1375
     *
1376
     * @return string HTML fragment.
1376
     * @return string HTML fragment.
1377
     
-
 
1378
     * public function main_content()
-
 
1379
     *{
1377
     */
1380
     * This is here because it is the only place we can inject the "main" role over the entire main content area
-
 
1381
     * without requiring all theme's to manually do it, and without creating yet another thing people need to
-
 
1382
     * remember in the theme.
-
 
1383
     * This is an unfortunate hack. DO NO EVER add anything more here.
-
 
1384
     * DO NOT add classes.
-
 
1385
     * DO NOT add an id.
-
 
1386
     *return '<div class="main-content" role="main">' . $this->unique_main_content_token . '</div>';
-
 
1387
     *}*/
-
 
1388
 
-
 
1389
    public function main_content()
1378
    public function main_content()
1390
    {
1379
    {
-
 
1380
        // This is here because it is the only place we can inject the "main" role over the entire main content area
-
 
1381
        // without requiring all theme's to manually do it, and without creating yet another thing people need to
-
 
1382
        // remember in the theme.
-
 
1383
        // This is an unfortunate hack. DO NO EVER add anything more here.
-
 
1384
        // DO NOT add classes.
-
 
1385
        // DO NOT add an id.
1391
        return '<div class="main-content" role="main">' . $this->page->get_main_content() . '</div>';
1386
        return '<div class="main-content" role="main">' . $this->unique_main_content_token . '</div>';
1392
    }
1387
    }
Línea 1393... Línea 1388...
1393
 
1388
 
1394
    /**
1389
    /**
1395
     * Outputs a heading
1390
     * Outputs a heading