Commit Graph

37 Commits

Author SHA1 Message Date
Marina Glancy f26481c2dc MDL-51802 course: allow to edit section names on the course page 2016-02-13 11:07:46 +08:00
Jun Pataleta f1bfc8971f MDL-51250 course: Display the default section name
This patch makes the default section name appear in brackets
beside the 'Use default section name' checkbox.
2015-10-05 14:03:07 -05:00
Marina Glancy bb01883867 MDL-10405 course: auto delete sections when numsections changed 2015-02-09 16:46:19 +08:00
Marina Glancy ca9cae84ad MDL-10405 course: deleting sections 2015-02-09 16:46:07 +08:00
Dan Poltawski 13e0300961 Merge branch '26226-48304-29' of git://github.com/samhemelryk/moodle 2014-12-04 12:06:04 +00:00
Sam Hemelryk 53623a70f0 MDL-26226 course: new setting for sections as links
This commit adds a new setting to always display course sections
as links (if possible).
2014-11-20 15:41:24 +13:00
Sam Hemelryk f9745259b7 MDL-47434 format_weeks: section 0 navigation tweak
Section 0 is now only shown in the navigation block if it contains
activities.
If there are no activities then the section is removed.
This mimicks the display on the course page.
2014-11-14 11:40:17 +13:00
Tim Hunt 5bcfd504df MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
Andrew Nicols af64bc6179 MDL-33099 Javascript: Deprecate the ajaxenabled function 2014-02-17 14:11:21 +08:00
Ruslan Kabalin f81d63553e MDL-33546: course: Fix current week hightlighting after dragging the section 2013-06-18 13:01:18 +10:00
David Monllao af248633f5 MDL-40109 format_weeks: Removing extra space 2013-06-10 13:30:10 +08:00
Eloy Lafuente (stronk7) aed9401e14 MDL-39764 style: phpdoc changed to inline comments 2013-06-04 01:41:58 +02:00
Gareth J Barnard 86f590b45f MDL-39764 course_format: Allow courses to have numsections > maxsections. 2013-06-03 23:36:32 +01:00
Marina Glancy 2333bfa7e8 MDL-37976 fixed missing global 2013-02-12 12:59:35 +11:00
Adrian Greeve 341bfedf90 MDL-36795 - lib / administration: maxsections now limits the default setting for numsections.
In the default course settings, setting the maximum number topics / weeks  to 0 would not
change the default number of sections on the same page as any other number would.
A more appropriate check has been put in place.

This also incorporates a fix for MDL-28584. The course edit screen now also checks to see
if maxsections is set or numeric. If it is not set or numeric then it defaults to 52.
2012-11-26 14:41:50 +08:00
Marina Glancy 399ad6bf3b MDL-35770 Include file defining base class in order to work correctly in cron 2012-11-15 13:26:28 +08:00
Marina Glancy 081c8f7fe0 MDL-36594 Add function format_base::is_section_current()
- added function format_base::is_section_current()
- overwritten in format_weeks::is_section_current()
- deprecated function format_section_renderer_base::is_section_current()
2012-11-14 15:54:13 +08:00
Marina Glancy 1b2581f430 MDL-35770 Moved format_weeks_get_section_dates() to format_weeks::get_section_dates() 2012-11-14 14:31:07 +08:00
Marina Glancy 0f070867b8 MDL-35770 Converted weeks format to new course formats API 2012-11-14 13:58:40 +08:00
Marina Glancy 62a3f7ef46 MDL-35770 Created class format_weeks as copy of format_legacy 2012-11-14 13:58:34 +08:00
Tim Hunt bb410a1ecc MDL-33681 course: cannot have a section called '0'.
No reason to prevent this. It is just a matter of doing a proper test,
rather than the sloppy PHP !empty().
2012-06-12 17:45:40 +01:00
Dan Poltawski 786cd60ee3 Merge branch 'MDL-32824-master-2' of git://git.luns.net.uk/moodle
Conflicts:
	course/format/weeks/format.js
	course/format/weeks/lib.php
2012-05-29 15:21:55 +08:00
Ruslan Kabalin 9f3015ecf8 MDL-32824: Make dragdrop work correctly with section titles/links
Initially, the default section title was swapped within the course format
javascript functions. Though some section titles may be custom and does not
require swapping, in addition they may have links to single section view. This
introduces some callback functions for define what needs to be done in
sections libs and js files.
2012-05-25 11:39:44 +01:00
Dan Poltawski b6283a4970 MDL-33307 format_weeks - sort out week date display
* Introduce function format_weeks_get_section_dates which is used
  as the consistent place to calculate the current section start and
  end date

* Rework callback_weeks_get_section_name to not use the above function
  rather than do crazy needless looping through all sections to work
  out the current week title.

* Change the just introduced is_current renderer function to share
  the format_weeks_get_section_dates function to ensure both the title
  and 'current week' are using the same dates to do their job
2012-05-24 23:10:28 +08:00
Dan Poltawski d9e1326536 MDL-32508 course: deprecate get_section_url format callback 2012-05-04 10:52:59 +08:00
Dan Poltawski f755868314 MDL-32508 course formats: Remove key callback
This was used by course formats but now there is a standardised
'section' param
2012-05-04 10:52:59 +08:00
Sam Hemelryk 113b970e62 MDL-29188 course_formats Fixed up formatting of section name within navigation 2011-09-14 11:39:48 +12:00
Sam Hemelryk ad4700977a MDL-26477 Added a setting to display course sections as links within the navigation 2011-08-02 15:24:59 +02:00
Eloy Lafuente (stronk7) 162bbbe2f4 MDL-27140 weeks course format - incorrect roll of dates on hidden sections
Credit goes to Nikhil Gupta, big thanks!
2011-05-09 18:15:10 +02:00
David Mudrak c0b5d9252b MDL-25072 Stop abusing $CFG->ajaxcapable and $CFG->ajaxtestedbrowsers 2010-11-09 11:54:58 +00:00
Sam Hemelryk 7487c85699 course formats MDL-22647 Course format names are now properly supported and used. Big thanks to Brandon Turner for the patch. 2010-06-08 06:21:25 +00:00
Sam Hemelryk 0f4ab67d84 course MDL-20628 Added the ability to name a course section, thanks Michael for the initial patch 2010-04-23 07:17:21 +00:00
Sam Hemelryk dc07683108 navigation MDL-22044 Course format can now choose the string that is used for section 0, defaults to general 2010-04-22 01:26:45 +00:00
Sam Hemelryk 3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Petr Skoda aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
samhemelryk 47c96a774e mod-assignment MDL-20241 Upgraded assignment to use new navigation blocks 2009-09-09 08:23:41 +00:00
samhemelryk 7d2a049292 navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php
2009-08-28 08:47:31 +00:00