Commit graph

67 commits

Author SHA1 Message Date
Simey Lameze
46e4130b6f MDL-73067 block_calendar_month: remove event key filter 2021-11-18 09:08:03 +08:00
Huong Nguyen
0328241373 MDL-71810 calendar: responsiveness for calendar block
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>>
2021-10-15 10:24:34 +07:00
Michael Hawkins
9eed82a7f5 MDL-72355 calendar: Remove export link from the calendar footer
Now that subscriptions and exports are accessed from the same page which
is linked as "Import / export calendars", there is no need to have a
separate "Export calendar" link.
2021-09-24 11:29:56 +08:00
Simey Lameze
d2f612ab24 MDL-71817 block_calendar_month: load month view in the block 2021-07-22 08:46:01 +08:00
Simey Lameze
f58750c2a5 MDL-71775 block_calendar_month: add footer options 2021-07-15 10:20:54 +08:00
Tim Lock
9790093d1a MDL-63321 block: Fix warning in Calendar month block after MDL-60587 2018-09-10 07:43:41 +09:30
Ryan Wyllie
7884ecf24f MDL-60962 block_calendar_month: load content after page render 2017-12-06 06:21:16 +00:00
Ryan Wyllie
eac88b955f MDL-60766 block_calendar_month: hide nav when not logged in 2017-11-10 02:07:50 +00:00
Andrew Nicols
1ab858314a MDL-60587 block: Correct courseid/categoryid check
pagelib uses magic getters for both the course, and category.
It does not define the magic __isset function though.
2017-11-03 08:14:56 +08:00
Andrew Nicols
0bd6039f40 MDL-60587 block_calendar_month: Setup calendar using new helper 2017-11-02 21:49:28 +08:00
Andrew Nicols
d0e56d847a MDL-59890 calendar: Display category events on calendars 2017-10-03 23:22:18 +08:00
Andrew Nicols
02d0c4355e MDL-59890 calendar: Stop adding time for mini view - not used 2017-10-03 21:28:31 +08:00
Andrew Nicols
c8b6e9ab34 MDL-59392 calendar: Switch to templates in the cal block
This commit adds a set of templates for the calendar month block, and
the events filter. The same data exporters used in the main calendar
view are utilised and the same logic.

Some additional data was added to the exporters, and in the long term
this will be used in the main monthly view so I did not feel it was
prudent to strip it out into a different view of the model.

AMOS BEGIN
 MOV [monthnext,access],[monthnext,calendar]
AMOS END
2017-09-11 12:45:46 +08:00
Mark Nelson
23a29de7ee MDL-58424 core_calendar: moved logic from api.php to lib.php
Also moved related PHPUnit tests.

Part of MDL-55611 epic.
2017-04-04 11:01:52 +01:00
Mark Nelson
12cbce0aa3 MDL-57888 core_calendar: moved functions from calendar/lib.php
Part of MDL-55611 epic.
2017-04-03 11:35:38 +08:00
Frederic Massart
2c2171bdce MDL-45295 core_block: Removing obsolete method preferred_width() 2014-12-09 15:29:12 +08:00
Mark Nelson
da3041379a MDL-41792 core_calendar: refactored the calendar to allow the use of multiple calendar types 2013-10-04 16:17:02 +08:00
Mark Nelson
ec126f624e MDL-41792 block_calendar_month: tidy existing code 2013-10-04 12:35:57 +08:00
Jason Fowler
512edd65d8 MDL-35826 - Calendar - Creating a caption containing the month name for mini-calendars 2013-01-22 13:51:09 +08:00
Frederic Massart
e57948f58b MDL-32309 Calendar: Fixed CSS in calendar block 2012-09-19 15:54:44 +08: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
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
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
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
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
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
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