MDL-39814 frontend: increased size of editing icons for activities
[moodle.git] / theme / upgrade.txt
CommitLineData
0f704140
PS
1This files describes API changes in /theme/* themes,
2information provided here is intended especially for theme designer.
3
90160639 4=== 2.5.1 ===
d3e5a21e
SH
5
6Notes:
7* Block drag and drop functionality has been improved so that it works regardless of what block regions you use
8 or how many block regions you have. In order to benefit from this improvement you must convert your calls from
9 $OUTPUT->blocks_for_region() to $OUTPUT->blocks.
10
11Optional changes:
12* Theme config can nominate block regions to swap if the user is using a rtl languages such as Hebrew.
13 $THEME->blockrtlmanipulations should be an associative array, the key is the original block region, and the
14 value should be where the blocks in that region should be displayed.
15* New $OUTPUT methods to replace code that was previously using $PAGE. Converting to these methods is optional
16 but highly recommended. Refer to the bootstrapbase layouts for examples.
17 - $OUTPUT->body_attributes() returns a string you can use for the body id and classes.
18 - $OUTPUT->blocks() returns HTML to display a block region and all of its blocks. This adds data attributes
19 that ensure drag and drop of blocks will work no matter what block regions or how many you have.
20 - $OUTPUT->page_heading() returns the page heading. Replaces $PAGE->heading.
21 - $OUTPUT->page_heading_button() returns the button to display with the heading. Replaces $page->button.
22 - $OUTPUT->page_doc_link() returns the link to moodle docs for the page. Replaces page_doc_link().
23 - $OUTPUT->page_heading_menu() returns the heading menu for the page. Replaces $PAGE->headingmenu.
24 - $OUTPUT->page_title() Returns the title to use for the head section.
25 - $OUTPUT->favicon() returns the URL to the favicon.
26
27Renderer changes:
28* core_renderer::navbar now returns an empty string if there are no navigation items to display.
29* core_renderer::custom_menu now adds a class "custom_menu" to the div that contains the HTML for the custom menu.
30
fc7defef
JF
31=== 2.5 ===
32
09ae7ee0
MG
33required changes:
34* Functions core_course_renderer::course_category_tree() and course_category_tree_category()
35 are deprecated
36* Significant changes in rendering of courses and categories listings, lots of CSS classes changed,
37 several functions such as print_courses(), print_whole_category_list(), print_category_info()
38 are moved to course renderer.
39 See http://docs.moodle.org/dev/Courses_lists_upgrade_to_2.5
40
fc7defef
JF
41DOM changes:
42* changed the h1 title in the help popup to a h2.
97dbc8f2 43* new setting $THEME->yuicssmodules = array('cssreset', 'cssfonts', 'cssgrids', 'cssbase'); which
12cb45f1 44 allows themes to use different CSS reset normalisers such as cssnormalize YUI module.
6e5d002e 45* Re-wrote the user profile views to definition lists.
12cb45f1
MN
46* Re-wrote the table for the course completion status block to use html_table - added some CSS classes to
47 the table in the process (see MDL-35608).
5581c618 48* Cancel buttons have the class btn-cancel.
12cb45f1
MN
49* Added a z-index for the div#dateselector-calendar-panel so that the calendar pop-up renders above
50 the filemanager when they overlap, ie. the course settings page (see MDL-39047).
9074e478
DM
51* Trivial change of CSS selectors used to display plugin status at the plugins overview
52 screen (#plugins-control-panel).
fc7defef 53
6671fa73
JF
54Renderer changes:
55* Mymobile theme changed to support more verbose move-block-here descriptions.
56
2d0e682d
MV
57=== 2.4 ===
58
52b1ed5e
MG
59required changes:
60* output course and course content header/footer that may be returned by course format (see MDL-36048)
e40bd746 61* span.completionprogress has been changed to a <div> and is not a float by default any more.
52b1ed5e 62
fbb207c5
FM
63deprecation:
64* i/roles: Use t/assignroles instead
0cddd851
FM
65* t/manual_item: Use i/manual_item instead
66* t/unlock_gray: Use t/locked instead
f2bba619 67* t/userblue: Previously used to unblock a user, use t/unblock.
5326675e
BR
68* c/course: Use i/courseevent instead
69* c/group: Use i/groupevent instead
70* c/site: Use i/siteevent instead
71* c/user: Use i/userevent instead
99938034 72* t/clear: Use t/check instead
c3847443
FM
73* i/cross_red_big: Use i/invalid or i/grade_incorrect
74* i/tick_green_big: Use i/valid or i/grade_correct
75* i/tick_amber_big: Use i/caution or i/grade_partiallycorrect
76* No more small versions of i/cross_red_small, i/tick_green_small and i/tick_amber_small, use their big equivalent.
501380a9 77* t/addgreen: Use t/add instead.
851d3b7a 78* i/approve: Use t/approve instead
fbb207c5 79
2d0e682d
MV
80optional changes:
81* new optional boolean parameter $withlinks for public function login_info() in lib/outputrenderers.php (MDL-31365)
82* new layout option "nologinlinks" and new page layout "secure" e.g. for safebrowser and securewindow (MDL-31365)
bb128107 83* new class 'iconlarge' for 24x24 icons.
fbb207c5
FM
84* new icons i/export and i/import (sized 16x16). Previously export and import actions used i/backup and i/restore.
85* new icon i/assignroles (sized 16x16), to prevent the use of i/roles which is 12x12.
86* new icon i/switchrole (sized 16x16), was previously using i/roles. Now is a copy of the new i/assignroles icon.
c42651d6
FM
87* new icons i/enrolusers and t/enrolusers, previsouly i/users was used.
88* new icon t/cohorts (sized 12x12), to prevent the use of i/cohorts which is 16x16.
06b7ed0a
FM
89* new icons t/sort_asc, t/sort_desc to use for ordering in table headers.
90* new class 'iconsort' for icons used for ordering in table headers.
fa9c0aab 91* new icons t/locked and t/unlocked (12x12) which should be used when there is no action associated to the icon.
0cddd851 92* new icons i/folder (16x16), monochrome equivalent to f/folder.
f2bba619
FM
93* new icons t/addcontact, t/removecontact and t/messages, previously t/addgreen, t/delete and t/log were used in messaging.
94* new icons t/unblock and i/twoway.
5326675e 95* new icons i/courseevent, i/groupevent, i/siteevent and i/userevent (16x16) instead of c/* for calendar events.
99938034
FM
96* new icon t/markasread (12x12) to replace t/clear used in forums.
97* new icon t/check (12x12) to replace t/clear which name does not reflect the icon meaning.
c22fbd38 98* 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
99* new icons i/valid, i/caution and i/invalid for generic statuses.
100* new icons i/grade_correct, i/grade_partiallycorrect and i/grade_incorrect for grades.
851d3b7a 101* new icon t/approve (12x12).
0348468b 102* new icon t/contextmenu (12x12) for a monochrome version of i/menu.
ee362526 103
33d9f44b
PS
104=== 2.3 ===
105
106optional changes:
107* add new u/f3.png image when theme contains customised f1 and f2 default user images
108
0f704140
PS
109=== 2.2 ===
110
111required changes:
112* use new page content placeholder "echo $OUTPUT->main_content()" instead of "echo core_renderer::MAIN_CONTENT_TOKEN"
ee362526 113 see git commit: 3b3f302855d7621405a8b93e49bd399d67a998d7
2d0e682d 114* upgrade report selectors: search for "-course-report-" and replace with "-report-"