62 Commits

Author SHA1 Message Date
Petr Skoda
d68b3dbe72 MDL-30007 standard version file for all blocks 2011-11-29 20:57:30 +01:00
Sam Hemelryk
797cedc7cf MDL-25249 Tidied up calendar variable passing and removed session abuse 2011-06-29 14:50:38 +08:00
Dan Poltawski
e60a00f9a4 blocks/calendar_month MDL-23657 - don't assume id param is courseid
This was casuing context creation on invalid courses..

There remains a problem with previous/next buttons on non course pages.
2011-01-03 23:21:44 +00:00
Petr Skoda
8571833f0b MDL-23069 moving version and cron info into standard version.php - finally, yay! 2010-07-04 12:18:22 +00:00
Petr Skoda
a4cdd6d2c8 MDL-23068 removing obsolete $result and removing empty upgrade files that would be probably never used at all + minor cleanup/fixing 2010-07-04 10:27:56 +00:00
Sam Hemelryk
36dc3b7104 calendar MDL-22887 Output is now through a renderer, all pages have navigation, and now uses true pretend blocks. 2010-06-22 04:03:44 +00:00
Petr Skoda
58aac666ee MDL-22054 startinging blocks to pluginname
AMOS START
 CPY [calendar,core_calendar],[pluginname,block_calendar_month]
AMOS END
2010-04-11 11:07:47 +00:00
Sam Hemelryk
90723839ca themes MDL-21862 Implements base theme and standard theme.
Very big theme changes, standardold theme has been split into two themes base and standard. Base theme contains only CSS that is absolutly required (e.g. layout, white space rules, specific widths) and standard (which now looks like standardwhite) contains all the frills.
The following noteable changes have also been made:
  * Plugin CSS has been pushed back into the plugin directories as styles.css files.
  * Install_print_header has been corrected.
  * Redundant or deprecated rules have been removed.
  * Several minor class changes throughout Moodle.
  * CSS is now single line rules not multiline indented.
  * Installs with theme=standardold automatically switch to standard.
  * body classes / id now have prefixes to make it clearer what they are and avoid conflicts.
Also worth noting:
  * There is still alot of tweaking that is required to get everything looking as it is supposed to, please be patient or better yet help out.
  * I am currently working on the documentation for the themes system... it will be here soon.
2010-03-25 06:38:21 +00:00
Sam Hemelryk
53fc3e7040 javascript MDL-21503 Removed use of the global Y from dock, navigation and calendar
Also included in this patch the ability to switch the dock from the left to right side of the screen.
Altered js_object_init to deliver Y like js_init_call does now.
Several minor tweaks made to the dock and navigation as well at the same time.
2010-02-05 06:36:09 +00:00
Petr Skoda
2b8c3f8c1a MDL-21435 api changes and simplification needed for JS caching and compression 2010-01-26 08:33:21 +00:00
Sam Hemelryk
bdbae764d9 calendar MDL-21240 Converted calendar JS to YUI3 module 2010-01-22 03:06:01 +00:00
Petr Skoda
9dec75dbcc MDL-21240 shortened urls now start with / everywhere 2010-01-18 20:57:32 +00:00
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
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
tjhunt
cb6402296c blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks 2009-05-06 09:28:26 +00:00
Francois Marier
6280ef3e58 Fix CVS-git drift (remove some files deleted in CVS) 2009-02-01 23:43:28 +00:00
jerome
b894086df5 calendar MDL-14693 fix month link when calendar is displayed on a text page resource, merged from 1.9 2009-01-30 06:27:20 +00:00
skodak
775f811a66 MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes 2008-08-16 12:16:01 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak
b1f93b1512 MDL-15246 moving all remaining ddl function to adminlib, keeping old lib/ddllib.php only for BC withexisting code; fixed inline docs related to ddl 2008-06-15 10:32:50 +00:00
skodak
219f652b91 MDL-14679 upgrade $DB conversion 2008-05-31 18:05:42 +00:00
skodak
d747d41bf2 MDL-13749 Front Page Calendar: Not displaying information from courses student is a member of.; merged from MOODLE_19_STABLE 2008-03-03 20:40:03 +00:00
moodler
433c242f1a Merged new block versions from 1.9 2008-03-03 11:43:32 +00:00
skodak
dd97c32868 MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker; merged from MOODLE_19_STABLE 2008-01-24 20:33:50 +00:00
toyomoyo
24028abc95 fixing a warning 2007-10-16 04:33:46 +00:00
toyomoyo
02d5eba3f8 MDL-9059, admins can't see group events in calendar 2007-10-16 03:47:41 +00:00
dwoolhead
b74be1a20a MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 12:45:20 +00:00
dwoolhead
6284362d1c MDL-10048 Separate events key and monthly view in right side panel 2007-06-12 09:48:56 +00:00
martinlanghoff
37d87d11f9 calendar: performance optimisations + behaviour fix (MDL-7416 MDL-9617)
With 2500 courses the calendar was causing around 15000 queries at login and 5000 on the home page.

- Replaced queries inside loops with single unlooped queries.
- Fixed calendar so that course events will show when the users role is assigned at a category level.
- Moved calendar_session_vars() function call out of calendar/lib.php (including a lib should not have side effects)

Author: Matt Clarkson - with some conflict resolution from MartinL
2007-05-06 04:28:11 +00:00
urs_hunkler
e331bccf75 'preferred_width changed to 210 because with lower values column width changes when block is closed by user' 2007-01-27 20:56:55 +00:00
stronk7
5d0fc5c33d Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:46:02 +00:00
stronk7
3aac1dc9a0 Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:39:10 +00:00
stronk7
d7a7184730 New upgrade.php file added for this module. MDL-7214 2006-10-26 16:33:49 +00:00
moodler
1a2ea6f488 Merged $course -> $COURSE fixes from 1.6 stable 2006-05-29 08:17:57 +00:00
defacer
13f64465e1 Removing some code which looks _very_ dead to me (traced its origins back
to when the Blocks2 stuff was first committed).

Unless I have forgotten something important and this breaks stuff horribly
somewhere, then it should be taken out from many other standard blocks as well!
2005-11-23 23:40:26 +00:00
mjollnir_
0d6b9d4f4d MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in. 2005-08-16 00:25:39 +00:00
thepurpleblob
e0de1be592 Fixed all instanced of optional_variable(), require_variable(), $_GET, $_POST etc
..all replaced with appropriate secure versions.
2005-06-10 10:05:30 +00:00
defacer
21d04cedfa Somehow this stopped working correctly when the styles got moved. Fixed. 2005-03-26 14:04:13 +00:00
moodler
01454bd0c8 Styles updates 2005-03-25 16:41:05 +00:00
mjollnir_
900416ed8e Fixing warning (postgres does not like where id = '') 2005-03-03 23:11:13 +00:00
defacer
3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
defacer
3c1348758d Fixed styles and improved lots of things in calendar. It should work all
right and even be a bit cooler than it was before. :)
2005-02-11 15:52:59 +00:00
gustav_delius
adfefeb12a $this->course was used but not defined. 2004-12-07 07:32:16 +00:00
defacer
e89d741af3 New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.
2004-11-23 18:53:34 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
defacer
02ce384808 Merging fix for bug 1957 from MOODLE_14_STABLE. 2004-09-19 22:25:21 +00:00
moodler
23f160464a Merged changes from stable to fix bug 1957 2004-09-18 13:17:23 +00:00
defacer
de79ec4550 Merging patch for improved calendar block behavior from MOODLE_14_STABLE. 2004-09-07 10:31:18 +00:00
defacer
9ed66e56b5 Switching to using the new SITEID constant. 2004-08-30 06:47:45 +00:00
paca70
fbb869e97e Use get_site() to get site's course number.
Site course  could be different from course '1' in older installations.
2004-08-30 06:03:29 +00:00