Merge branch 'MDL-38474-master' of git://
[moodle.git] / theme / upgrade.txt
... / ...
1This files describes API changes in /theme/* themes,
2information provided here is intended especially for theme designer.
4=== 2.5 ===
6DOM changes:
7* changed the h1 title in the help popup to a h2.
9=== 2.4 ===
11required changes:
12* output course and course content header/footer that may be returned by course format (see MDL-36048)
13* span.completionprogress has been changed to a <div> and is not a float by default any more.
16* i/roles: Use t/assignroles instead
17* t/manual_item: Use i/manual_item instead
18* t/unlock_gray: Use t/locked instead
19* t/userblue: Previously used to unblock a user, use t/unblock.
20* c/course: Use i/courseevent instead
21* c/group: Use i/groupevent instead
22* c/site: Use i/siteevent instead
23* c/user: Use i/userevent instead
24* t/clear: Use t/check instead
25* i/cross_red_big: Use i/invalid or i/grade_incorrect
26* i/tick_green_big: Use i/valid or i/grade_correct
27* i/tick_amber_big: Use i/caution or i/grade_partiallycorrect
28* No more small versions of i/cross_red_small, i/tick_green_small and i/tick_amber_small, use their big equivalent.
29* t/addgreen: Use t/add instead.
30* i/approve: Use t/approve instead
32optional changes:
33* new optional boolean parameter $withlinks for public function login_info() in lib/outputrenderers.php (MDL-31365)
34* new layout option "nologinlinks" and new page layout "secure" e.g. for safebrowser and securewindow (MDL-31365)
35* new class 'iconlarge' for 24x24 icons.
36* new icons i/export and i/import (sized 16x16). Previously export and import actions used i/backup and i/restore.
37* new icon i/assignroles (sized 16x16), to prevent the use of i/roles which is 12x12.
38* new icon i/switchrole (sized 16x16), was previously using i/roles. Now is a copy of the new i/assignroles icon.
39* new icons i/enrolusers and t/enrolusers, previsouly i/users was used.
40* new icon t/cohorts (sized 12x12), to prevent the use of i/cohorts which is 16x16.
41* new icons t/sort_asc, t/sort_desc to use for ordering in table headers.
42* new class 'iconsort' for icons used for ordering in table headers.
43* new icons t/locked and t/unlocked (12x12) which should be used when there is no action associated to the icon.
44* new icons i/folder (16x16), monochrome equivalent to f/folder.
45* new icons t/addcontact, t/removecontact and t/messages, previously t/addgreen, t/delete and t/log were used in messaging.
46* new icons t/unblock and i/twoway.
47* new icons i/courseevent, i/groupevent, i/siteevent and i/userevent (16x16) instead of c/* for calendar events.
48* new icon t/markasread (12x12) to replace t/clear used in forums.
49* new icon t/check (12x12) to replace t/clear which name does not reflect the icon meaning.
50* new classes 'icon-pre' and 'icon-post' supposedly to be used when the icon is positioned before or after the text. This is not really used yet, but it's a start towards some standardisation of the icon selectors.
51* new icons i/valid, i/caution and i/invalid for generic statuses.
52* new icons i/grade_correct, i/grade_partiallycorrect and i/grade_incorrect for grades.
53* new icon t/approve (12x12).
54* new icon t/contextmenu (12x12) for a monochrome version of i/menu.
56=== 2.3 ===
58optional changes:
59* add new u/f3.png image when theme contains customised f1 and f2 default user images
61=== 2.2 ===
63required changes:
64* use new page content placeholder "echo $OUTPUT->main_content()" instead of "echo core_renderer::MAIN_CONTENT_TOKEN"
65 see git commit: 3b3f302855d7621405a8b93e49bd399d67a998d7
66* upgrade report selectors: search for "-course-report-" and replace with "-report-"