Proyectos de Subversion Moodle

Rev

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

Rev 1313 Rev 1314
Línea 1366... Línea 1366...
1366
            $this->render($am),
1366
            $this->render($am),
1367
            $usermenuclasses
1367
            $usermenuclasses
1368
        );
1368
        );
1369
    }
1369
    }
Línea 1370... Línea -...
1370
 
-
 
1371
 
-
 
1372
    /**
-
 
1373
     * Returns standard main content placeholder.
-
 
1374
     * Designed to be called in theme layout.php files.
-
 
1375
     *
-
 
1376
     * @return string HTML fragment.
-
 
1377
     */
-
 
1378
    public function main_content()
-
 
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.
-
 
1386
        return '<div class="main-content" role="main">' . $this->unique_main_content_token . '</div>';
-
 
1387
    }
-
 
1388
 
1370
 
1389
    /**
1371
    /**
1390
     * Outputs a heading
1372
     * Outputs a heading
1391
     *
1373
     *
1392
     * @param string $text The text of the heading
1374
     * @param string $text The text of the heading
Línea 2910... Línea 2892...
2910
        }
2892
        }
Línea 2911... Línea 2893...
2911
 
2893
 
2912
        return '';
2894
        return '';
Línea -... Línea 2895...
-
 
2895
    }
-
 
2896
 
-
 
2897
    public function main_content()
-
 
2898
    {
-
 
2899
        // This is here because it is the only place we can inject the "main" role over the entire main content area
-
 
2900
        // without requiring all theme's to manually do it, and without creating yet another thing people need to
-
 
2901
        // remember in the theme.
-
 
2902
        // This is an unfortunate hack. DO NO EVER add anything more here.
-
 
2903
        // DO NOT add classes.
-
 
2904
        // DO NOT add an id.
-
 
2905
        return '<div class="main-content" role="main">' . $this->unique_main_content_token . '</div>';
2913
    }
2906
    }
2914
 
2907
 
2915
    /*
2908
    /*
2916
    *
2909
    *
2917
    * Method to get reference to $CFG->themedir variable
2910
    * Method to get reference to $CFG->themedir variable