1228 Commits

Author SHA1 Message Date
Petr Skoda
4ca6cfbfd4 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:00:47 +00:00
Nicolas Connault
dc01eb84f2 MDL-19688 Recent blog entries block 2009-10-30 07:27:33 +00:00
Nicolas Connault
730d28c53b MDL-19685 Upgraded blog_tags block so that it displays course-associated or module-associated tags on the appropriate pages 2009-10-30 07:27:02 +00:00
Nicolas Connault
6b157f87fa MDL-19687 MDL-19686 Completely rewrote the blog_menu block, so that it can be used as a sticky block and varies in content depending on the current page. 2009-10-30 07:26:50 +00:00
samhemelryk
1cc0286707 tag MDL-16704 Moved inline Javascript to tag.js and upgraded to page methods 2009-10-22 03:59:35 +00:00
nicolasconnault
b58961acaa MDL-20565 When editing is off, hiding blocks whose sub-system is disabled at site level. When editing is on, printing a "[subsytem] is disabled" message. 2009-10-15 01:36:50 +00:00
samhemelryk
4cdb8d70ae blocks MDL-19791 Upgrade deprecated function calls 2009-09-30 06:54:07 +00:00
samhemelryk
458eb0d10c overlib MDL-19735 Overlib is now included only where it is used
At the same time I have converted the calendar block to use YUI instead of overlib, this introduces one regression in that the panel is shown immediatly but should really have a minimal delay for usability.
This will be fixed once the theme changes for 2.0 have been commited
2009-09-17 07:46:20 +00:00
nicolasconnault
2367726155 MDL-20219 Deleted external blog block, and preferences link from blog_menu block. Placed these as links in settings block instead 2009-09-15 07:57:54 +00:00
nicolasconnault
ca497f4f7c MDL-19676 Properly hiding blog_menu from block dropdown when blogs are disabled. Also showing "Blogs are disabled" in existing blog_menu blocks and removing old bloglevel options from subsystems settings 2009-09-15 07:19:03 +00:00
nicolasconnault
ee00eb8c69 MDL-19792 Fixed output of URLs for blog menu block 2009-09-10 07:05:50 +00:00
poltawski
03f3a43441 blocks/tag_youtube MDL-18974 - Switch to SimpleXML
We use SimpleXML throughout Moodle now and its a dependency for Moodle 2.0.
It peforms better and allow us to remove another embeded library!

Also set the curl timeout on the youtube http requests so not to slow down
interactive page loads.
2009-09-09 13:34:41 +00:00
samhemelryk
d7319652ad navigation MDL-20234 Fixed bug with moveto icon action and added support for URL switching of dock state 2009-09-09 03:59:26 +00:00
nicolasconnault
b0e90a0ccd MDL-19792 Fixed number of bugs in URLs 2009-09-09 03:26:18 +00:00
samhemelryk
d972bad1b0 navigationMDL-20216 Moved type argument to third argument 2009-09-04 08:43:49 +00:00
samhemelryk
91152a3518 navigation MDL-20216 Refactored add arguments
Moved $action argument from arg5 to arg2
2009-09-04 03:12:01 +00:00
nicolasconnault
cae837087a MDL-19676 Blog improvements 2009-09-04 00:36:43 +00:00
samhemelryk
fff23fcd86 navigation MDL-14632 Fixed minor regressions for recent patches
* Search field now takes input again
 * Javascript event propogration is stopped to prevent refreshing when switch block position
2009-09-01 02:07:01 +00:00
samhemelryk
65bd8c4cda navigation MDL-14632 Fixed regression in action_icon conversion 2009-08-31 02:27:40 +00:00
nicolasconnault
c1c0cecf3a MDL-14632 Improved the output code of the settings block and fixed typo of toogle to toggle. 2009-08-28 10:28:16 +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
poltawski
8ab2c23ba1 blocks/rss_client MDL-13932 Fix wrong param order in $OUTPUT->link() 2009-08-23 17:56:01 +00:00
nicolasconnault
cda9c83d16 MDL-19790 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:39 +00:00
nicolasconnault
25c56af824 MDL-19791 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:29:31 +00:00
nicolasconnault
ba179d56c9 MDL-19791 Upgraded calls to choose_from_menu 2009-08-17 15:16:26 +00:00
skodak
aa54ed7b02 MDL-20065 new implementation of File module, modules sub-types are being migrated to separate modules; remaining issues to be listed as sub-tasks in tracker 2009-08-13 20:45:50 +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
beb56299ec MDL-19786 Renamed user_picture and action_icon component classes to moodle_user_picture and moodle_action_icon. Also moved around the classes in a more logical order in outputcomponents.php 2009-08-10 06:37:29 +00:00
poltawski
612e3be501 blocks/rss_client: MDL-13932 - alter output formating
Doesn't make much sense to have FORMAT_MOODLE for external
rss content.
2009-08-05 16:38:27 +00:00
poltawski
28dd2513a2 block/rss_client: MDL-19990 Make feed discovery configurable
Simplepie will try quite aggresively to autodiscover rss feeds by
default. Make this configurable when adding a feed and also store
the autodiscovered location rather than the input location.

I also removed the feed validator as this doesn't make much sense with
feed autodiscovery, and I think we can improve simplepie integration to
do this instead
2009-08-03 16:56:53 +00:00
skodak
0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
poltawski
8887711be4 blocks/rss_client: MDL-13932 Fix typo when editting feed
This caused loss of which course we were adding/edditing a feed to.
2009-07-31 21:20:35 +00:00
poltawski
3095d19932 blocks/rss_client: MDL-13932: viewfeed.php typo
link -> description
2009-07-31 21:20:21 +00:00
poltawski
5966474298 blocks/rss_client: MDL-13932 Incease timeout when adding feeds
In order to stop 'slow loading feeds' causing performance problems
with standard moodle pages, i've set the timeout for simplepie quite
low. When cron runs i've set this timeout high and cache duration low.

The intention is that cron does all the hard work of connecting to remote
sites and users get this fast fast fast from cache.

However, in the case of adding a feed its probably better to try and get the
feed more agressively..
2009-07-31 21:19:55 +00:00
poltawski
6d2382b6d7 blocks/rss_client: MDL-13932 fix config_shownumentries typo
This caused incorrect rules/defaults to be added

Also add client side validation of the number
2009-07-31 21:19:37 +00:00
moodler
e530f3a97b blocks MDL-19010 Fixed a typo to make the title a string 2009-07-31 04:18:57 +00:00
moodler
e54f4a78cc blocks MDL-19010 Slight reordering of logic to allow titles to be changed by block get_contents (credit to tim) 2009-07-31 04:17:09 +00:00
poltawski
d175fe4c53 lib/simplepie MDL-7946 - improve simplepie defaults
- Specify default low connect timeout in order that 'interactive' pages are
  not slowed down by slow feeds
- Set default cache feed duration of 1 hour

In RSS feed block:
- Try really hard in cron to retreive the feed
- Set the cache duration low in order to help cron refresh the cache
2009-07-30 18:57:19 +00:00
poltawski
e760cced27 block/rss_client MDL-19970 - feeds failed to be deleted
The removing the rssfeed from cache is no longer relevant with simplepie,
but i'll create a bug to investigate clearning the cache.
2009-07-30 13:52:05 +00:00
tjhunt
2cdb8d8452 blocks: MDL-19893 move blocks on page UI - part 2
This updates the DB.

I beleive this is correct, but it is very hairy and badly needs unit tests.
2009-07-30 10:29:14 +00:00
tjhunt
00a24d44f7 blocks: MDL-19893 move blocks on page UI - part 1
This does all the UI. It does not yet update the DB when you click to complete the action.
2009-07-30 08:22:12 +00:00
nicolasconnault
52fa87553e MDL-19791 Fixed call to add_action 2009-07-30 06:29:38 +00:00
tjhunt
d14edf06ee blocks: MDL-19399 proper permissions checks for editing blocks.
In particular for editing sticky blocks. If the admin addes one at site level,
then the teacher should not be able to change its configuration from
the course page, but should be able to set the position on this page.
2009-07-30 03:44:10 +00:00
poltawski
53fe72ee1f block_rss_client/rsslib MDL-1393 Clean up
- Remove obsolete magpie configuration
- Remove block_rss_client_submitters which has not been used for some
  time
- Remove some block_rss_client setup from rsslib.php
2009-07-29 14:10:15 +00:00
poltawski
0864a0837b block_rss_client: MDL-13932/MDL-7946 - Switch to use Simplepie
Simplepie is actively maintained and supports a broader range of feeds
2009-07-29 13:44:28 +00:00
poltawski
6dcf276fb2 block_rss_client: MDL-13932 Fix equality typo 2009-07-29 13:13:04 +00:00
tjhunt
f1a34d8f05 block_rss_client: MDL-13932 Clean up a lot of the crap.
This was all in order to do MDL-19889!

* The old tabbed interface is gone.
* The manage feeds UI has been completely rewritten to be a few
separate sane scripts like managefeeds.php, editfeed.php and viewfeed.php
* This is used from both Admin -> plugins -> blocks ... and as a link from the block edit_form.php
* new edit_form.php for the block replacing config_istance.php.
* A lot of stuff to do with UI specific to this block has been removed from rsslib.php
2009-07-29 11:18:55 +00:00
tjhunt
f34b1a71a0 blocks: MDL-19889 Convert mentees block to use edit_form.php 2009-07-29 05:19:39 +00:00
tjhunt
b4a2d7f711 blocks: MDL-19889 Convert blog tags block to use edit_form.php - fix comment typo. 2009-07-29 05:13:34 +00:00