Commit | Line | Data |
---|---|---|
0f704140 PS |
1 | This files describes API changes in /theme/* themes, |
2 | information provided here is intended especially for theme designer. | |
3 | ||
f982303d JF |
4 | === 2.6 === |
5 | * re-wrote the table for the course completion status block to use html_table - added some CSS classes to the table in the process. | |
6 | MDL-35608 - Blocks - Updating the Completion Status block to use HTML Writer | |
7 | ||
8 | ||
fc7defef JF |
9 | === 2.5 === |
10 | ||
09ae7ee0 MG |
11 | required changes: |
12 | * Functions core_course_renderer::course_category_tree() and course_category_tree_category() | |
13 | are deprecated | |
14 | * Significant changes in rendering of courses and categories listings, lots of CSS classes changed, | |
15 | several functions such as print_courses(), print_whole_category_list(), print_category_info() | |
16 | are moved to course renderer. | |
17 | See http://docs.moodle.org/dev/Courses_lists_upgrade_to_2.5 | |
18 | ||
fc7defef JF |
19 | DOM changes: |
20 | * changed the h1 title in the help popup to a h2. | |
97dbc8f2 PS |
21 | * new setting $THEME->yuicssmodules = array('cssreset', 'cssfonts', 'cssgrids', 'cssbase'); which |
22 | allows themes to use different CSS reset normalisers such as cssnormalize YUI module | |
6e5d002e | 23 | * Re-wrote the user profile views to definition lists. |
5581c618 | 24 | * Cancel buttons have the class btn-cancel. |
fc7defef | 25 | |
6671fa73 JF |
26 | Renderer changes: |
27 | * Mymobile theme changed to support more verbose move-block-here descriptions. | |
28 | ||
2d0e682d MV |
29 | === 2.4 === |
30 | ||
52b1ed5e MG |
31 | required changes: |
32 | * output course and course content header/footer that may be returned by course format (see MDL-36048) | |
e40bd746 | 33 | * span.completionprogress has been changed to a <div> and is not a float by default any more. |
52b1ed5e | 34 | |
fbb207c5 FM |
35 | deprecation: |
36 | * i/roles: Use t/assignroles instead | |
0cddd851 FM |
37 | * t/manual_item: Use i/manual_item instead |
38 | * t/unlock_gray: Use t/locked instead | |
f2bba619 | 39 | * t/userblue: Previously used to unblock a user, use t/unblock. |
5326675e BR |
40 | * c/course: Use i/courseevent instead |
41 | * c/group: Use i/groupevent instead | |
42 | * c/site: Use i/siteevent instead | |
43 | * c/user: Use i/userevent instead | |
99938034 | 44 | * t/clear: Use t/check instead |
c3847443 FM |
45 | * i/cross_red_big: Use i/invalid or i/grade_incorrect |
46 | * i/tick_green_big: Use i/valid or i/grade_correct | |
47 | * i/tick_amber_big: Use i/caution or i/grade_partiallycorrect | |
48 | * No more small versions of i/cross_red_small, i/tick_green_small and i/tick_amber_small, use their big equivalent. | |
501380a9 | 49 | * t/addgreen: Use t/add instead. |
851d3b7a | 50 | * i/approve: Use t/approve instead |
fbb207c5 | 51 | |
2d0e682d MV |
52 | optional changes: |
53 | * new optional boolean parameter $withlinks for public function login_info() in lib/outputrenderers.php (MDL-31365) | |
54 | * new layout option "nologinlinks" and new page layout "secure" e.g. for safebrowser and securewindow (MDL-31365) | |
bb128107 | 55 | * new class 'iconlarge' for 24x24 icons. |
fbb207c5 FM |
56 | * new icons i/export and i/import (sized 16x16). Previously export and import actions used i/backup and i/restore. |
57 | * new icon i/assignroles (sized 16x16), to prevent the use of i/roles which is 12x12. | |
58 | * new icon i/switchrole (sized 16x16), was previously using i/roles. Now is a copy of the new i/assignroles icon. | |
c42651d6 FM |
59 | * new icons i/enrolusers and t/enrolusers, previsouly i/users was used. |
60 | * new icon t/cohorts (sized 12x12), to prevent the use of i/cohorts which is 16x16. | |
06b7ed0a FM |
61 | * new icons t/sort_asc, t/sort_desc to use for ordering in table headers. |
62 | * new class 'iconsort' for icons used for ordering in table headers. | |
fa9c0aab | 63 | * new icons t/locked and t/unlocked (12x12) which should be used when there is no action associated to the icon. |
0cddd851 | 64 | * new icons i/folder (16x16), monochrome equivalent to f/folder. |
f2bba619 FM |
65 | * new icons t/addcontact, t/removecontact and t/messages, previously t/addgreen, t/delete and t/log were used in messaging. |
66 | * new icons t/unblock and i/twoway. | |
5326675e | 67 | * new icons i/courseevent, i/groupevent, i/siteevent and i/userevent (16x16) instead of c/* for calendar events. |
99938034 FM |
68 | * new icon t/markasread (12x12) to replace t/clear used in forums. |
69 | * new icon t/check (12x12) to replace t/clear which name does not reflect the icon meaning. | |
c22fbd38 | 70 | * 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. |
c3847443 FM |
71 | * new icons i/valid, i/caution and i/invalid for generic statuses. |
72 | * new icons i/grade_correct, i/grade_partiallycorrect and i/grade_incorrect for grades. | |
851d3b7a | 73 | * new icon t/approve (12x12). |
0348468b | 74 | * new icon t/contextmenu (12x12) for a monochrome version of i/menu. |
ee362526 | 75 | |
33d9f44b PS |
76 | === 2.3 === |
77 | ||
78 | optional changes: | |
79 | * add new u/f3.png image when theme contains customised f1 and f2 default user images | |
80 | ||
0f704140 PS |
81 | === 2.2 === |
82 | ||
83 | required changes: | |
84 | * use new page content placeholder "echo $OUTPUT->main_content()" instead of "echo core_renderer::MAIN_CONTENT_TOKEN" | |
ee362526 | 85 | see git commit: 3b3f302855d7621405a8b93e49bd399d67a998d7 |
2d0e682d | 86 | * upgrade report selectors: search for "-course-report-" and replace with "-report-" |