331 Commits

Author SHA1 Message Date
Andrew Robert Nicols
ebaa29d107 MDL-31096 Convert course resource/section javascript to YUI3 Module
AMOS BEGIN
  MOV [hideweekfromothers,moodle],[hidefromothers,format_week]
  MOV [showweekfromothers,moodle],[showfromothers,format_week]
  MOV [hidetopicfromothers,moodle],[hidefromothers,format_topics]
  MOV [showtopicfromothers,moodle],[showfromothers,format_topics]
AMOS END
2012-04-23 21:28:39 +01:00
Sam Hemelryk
859a181627 Merge branch 'wip-mdl-32270' of git://github.com/rajeshtaneja/moodle 2012-04-10 10:53:34 +12:00
Rajesh Taneja
ab6ec58a2e MDL-32270 Library: ->defaulthomepage is checked before used 2012-04-03 11:28:07 +08:00
Petr Skoda
54352ac979 MDL-32251 more E_STRICT fixes 2012-03-30 19:02:58 +02:00
Petr Skoda
98054db10b MDL-31534 init PAGE before require_login() 2012-03-12 13:58:01 +01:00
Petr Skoda
6f3451e540 MDL-31301 remove all uses of moodle_strtolower() and deprecated it 2012-03-03 11:46:26 +01:00
Ruslan Kabalin
29b9b464d8 MDL-31316 Fix block controls when default home is My Moodle 2012-02-08 09:46:36 +00:00
Sam Hemelryk
ecb731cb03 MDL-30222 Fixed home page redirection madness. Thank you Julien Boulen for providing the solution 2011-12-06 12:09:01 +13:00
Sam Hemelryk
32b9e80b15 MDL-27278 navigation: Admin users can now set the home page preference like normal users 2011-10-10 10:17:00 +13:00
Eloy Lafuente (stronk7)
c3b825e1b8 MDL-28489 site news forum - support multilang filter 2011-08-29 22:03:04 +02:00
Petr Skoda
8275eab842 MDL-28163 custom site frontpage support 2011-07-03 15:02:46 +02:00
David Mudrak
1c5ab635b6 MDL-27053 Revert "MDL-26985 make sure admins do not upgrade to 2.1dev accidentally"
This reverts commit 9778dae374b10a825b8e500e36958b92a6b4e9ad.
2011-04-13 14:08:32 +02:00
Petr Skoda
9778dae374 MDL-26985 make sure admins do not upgrade to 2.1dev accidentally
We already have the new maturity warning in the upgrade page but we are not changing versions yet, we should better give admins one extra chance to go back to latest 2.0.2+ stable.
2011-03-26 22:28:32 +01:00
Dongsheng Cai
2848b97948 MDL-24877, do not display all courses in course category tree if there are too many courses in moodle 2011-03-14 17:04:06 +08:00
David Mudrak
6f7d65c724 MDL-24561 forum subscription checks sesskey
The only case when sesskey is not available is when we came to
subscribe.php from a link in email. In that case, we display a
confirmation page that redirects back providing the sesskey.
All other links to subscribe.php are fixed now so they provide sesskey
as a parameter.
I also polished $mode parameter handling a bit because the check
against empty string was not correct as the value is cast to PARAM_INT.
2011-01-05 13:01:46 +01:00
Sam Hemelryk
367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00
Petr Skoda
8a8f1c7cd6 MDL-10137 rewritten cookie test on login page, username cookie is not required any more - hopefully this will be more reliable test 2010-10-10 17:30:28 +00:00
jerome mouneyrac
a4e56bf335 hub server MDL-24015 add hub setting to not display the search form on the front page when users are not logged 2010-10-08 08:54:36 +00:00
Petr Skoda
a226a972f7 MDL-24321 switching to stdClass in /admin/ and / 2010-09-21 08:44:02 +00:00
Petr Skoda
af9f54303f standardised license headers 2010-09-06 12:01:57 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Rossiani Wijaya
fd2aa40b0a MDL-21615 - add skip link to main column content (front page). 2010-06-23 08:54:19 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
David Mudrak
09eb215121 MDL-22729 Course sections can be re-edited again
By the way, the current style of creating course_sections is ugly. We
should probably have something like
make_sure_that_at_least_default_section_exists($courseid, $sectionid=null)
and not to insert it into database at many places as we do now.
2010-06-10 18:25:06 +00:00
Sam Hemelryk
e34a326f72 course-section MDL-22262 Added a summaryformat field to the database and implemented it when editing/viewing sections and backup 2010-05-27 03:07:54 +00:00
Sam Hemelryk
24e27ac0c1 course MDL-8369 Front page combo list is now restructured and exandable by JavaScript
This patch also implements a course renderer.
2010-05-27 01:40:11 +00:00
Martin Dougiamas
825b6fdb0f MDL-19311 Fixing some bad comment layout 2010-05-16 16:23:27 +00:00
jerome mouneyrac
abf63f981b hub server MDL-19311 add some code to the index page to display the hub course list in case the hub plugin is installed + improve community block search form (subject + language) 2010-05-14 07:04:17 +00:00
Sam Hemelryk
4766a50c19 navigation MDL-22425 Restructured navigation for the nth time plus performance tweaking and course display limit 2010-05-13 09:57:43 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
244a32c617 MDL-21119 lang menu and login info now handled by themes 2009-12-29 17:26:29 +00:00
Petr Skoda
191b267bcd MDL-20790 more page layouts -see base theme for full list; also added new css body class for describing current layout; base layout is now default for beter BC; require_login() now sets 'incourse' layout automatically 2009-12-27 12:02:04 +00:00
Petr Skoda
b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
samhemelryk
474f6bfed9 core MDL-19799 Added set_url calls and replaced deprecated functions 2009-10-15 03:43:28 +00:00
samhemelryk
393f161545 core MDL-19786 Updated OUTPUT->header calls that were still using arguments 2009-09-08 02:23:00 +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
nicolasconnault
7b1f2c829f MDL-19756 Renamed moodle_select to html_select for better API consistency 2009-08-10 08:38:45 +00:00
nicolasconnault
20486a5a21 MDL-19787 Converted print_box* to $OUTPUT->box* 2009-08-10 04:53:22 +00:00
nicolasconnault
d81b05e701 MDL-19799 Converted calls to popup_form() 2009-08-10 03:39:21 +00:00
nicolasconnault
706b82dade MDL-19799 Upgraded calls to print_heading_block 2009-08-06 01:26:12 +00:00
nicolasconnault
f8065dd287 MDL-19756 Migrated the following functions from weblib to outputlib:
1. button_to_popup_window
2. link_to_popup_window
3. print_single_button
4. print_spacer
5. print_file_picture (deprecated)
6. print_user_picture
7. print_png (deprecated)
8. helpbutton
9. doclink
10. print_paging_bar
11. notice_yesno
2009-07-27 10:33:00 +00:00
tjhunt
5e39d7aa09 upgrade: MDL-19763 Improve the redirect that forces a DB upgrade when there are major changes
Also fix redirect, so 303 redirects don't need to fully initialise $OUTPUT.
2009-07-10 08:44:01 +00:00
skodak
80b3328712 MDL-19010 fixed redirect at main page if upgrade required, otherwise it would end with exception due to DB structure changes 2009-07-10 08:03:06 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
tjhunt
4096752d1d MDL-19690 - first 53 $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:06:39 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
skodak
4fe2250a1f MDL-19352 maintenance mode reiplemented 2009-05-31 14:42:29 +00:00
tjhunt
bb46a4fa2a blocklib: MDL-19010 refactor blocklib to use block_manager to get the blocks for rendering 2009-05-06 09:15:05 +00:00