273 Commits

Author SHA1 Message Date
moodler
1c9d49c21c FIxes for news forum heading on home page (Strict) MDL-7861 2007-01-05 16:10:13 +00:00
skodak
535792b23e MDL-7861 some xhtml strict fixes 2007-01-04 18:58:31 +00:00
moodler
db0852c5d7 Merged mymoodleredirect fix from stable, see MDL-7583 2006-12-06 05:08:37 +00:00
toyomoyo
89948e4575 merged fix upgrading from 1.6 not redirecting problem 2006-11-08 06:24:05 +00:00
toyomoyo
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
skodak
86a1ba04fd replace all uses of isset($USER->id) with empty() to allow proper operation of $CFG->notloggedinroleid hack 2006-09-02 11:44:04 +00:00
moodler
0cfb6a52fb Adding a copyright notice, and mentioning MDL-3717 purely as a test of the
new CVS integration on tracker.moodle.org
2006-08-23 08:39:15 +00:00
skodak
5337b2b727 yet another fix for course list for guests; merged from MOODLE_16_STABLE 2006-07-19 13:59:06 +00:00
skodak
d35d50bf94 fixed course list for guests; merged from MOODLE_16_STABLE 2006-07-19 13:45:13 +00:00
skodak
fe2920ad54 admin should not see list of courses on the frontpage when there are too many of them; merged from MOODLE_16_STABLE 2006-07-19 13:37:09 +00:00
skodak
d157bd5b28 fixed course/index.php category display affected by previous commit - improved category and course list display on front page; merged from MOODLE_16_STABLE 2006-07-19 13:16:57 +00:00
skodak
6f24e48e1f Improved category and course list display on front page- see bug Bug #5965 - Frontpage Category List also showing courses; new Combo List(categories + courses), fixed categories list and separate settings for not logged in / logged in users; merged from MOODLE_16_STABLE 2006-07-19 12:10:07 +00:00
moodler
a5a9cd99b4 News items on home page should be sorted by date of first post 2006-04-05 01:54:41 +00:00
patrickslee
8e227aa767 Added a parameter to print_courses() to hide site course
This parameter is used in index.php because if the moodle site have more than one category the site course will be displayed in the course list in the front page.

This problem appeared after the "front page format" feature is introduced. As the old front page will show a category tree with courses if there are more than one category in the system when "list of courses" is chosen as the front page.
2006-02-07 01:13:27 +00:00
patrickslee
e0140f2425 Revised front page logic so list of courses and list of categories show correct things regardless of any special situation
And a small HTML fix for print_category_info()
2006-01-30 22:54:12 +00:00
moodler
e9c996745b Missing sesskey parameter. Merged from Stable. (SE) 2005-12-22 00:17:00 +00:00
patrickslee
e1638d616c Site frontpage now supports displaying of all avaliable options with ordering 2005-12-14 21:42:44 +00:00
moodler
5e07342d79 Added $CFG->disablemycourses bug 3220 2005-05-13 06:17:13 +00:00
moodler
9f9e3576e1 This should fix the problems some poeple were having with the login block 2005-04-17 05:47:40 +00:00
moodler
73e95f222c Don't clean the text in the site topic summary 2005-04-02 09:38:42 +00:00
moodler
5eafd94811 One extra option for the format of the site home page so that we can just have a
single topic section (allowing plain HTML in the middle and/or a list of activities)
2005-04-02 09:29:59 +00:00
moodler
0b489c066a Removed a spacer 2005-03-29 16:49:39 +00:00
moodler
74ded78359 Removed spacers and fixed some styles here 2005-03-28 06:48:16 +00:00
stronk7
07b11e4fcb course/lib must be included ALWAYS because block_site_main_menu uses it. 2005-03-08 23:35:35 +00:00
moodler
af328e4b14 Speed and beauty improvements when displaying discussion listings 2005-03-08 17:32:08 +00:00
moodler
a2b8226353 Don't show the front page topic section when it's empty anyway. bug 2691 2005-03-07 17:24:32 +00:00
moodler
c44d5d4215 Some cleaning up of user_login_string and SITE 2005-03-03 04:41:46 +00:00
defacer
dffd4bb948 You know you are beyond hope of redemption when you make "API uniformity" changes. ;-) 2005-03-02 05:56:24 +00:00
defacer
664923229c Since $PAGE knows where the adminblock should be printed, let it do the printing. 2005-03-02 05:47:39 +00:00
defacer
3615b2b259 Simplifying to death using the new blocks_setup() 2005-03-02 05:19:47 +00:00
moodler
0e18f8278b FIxed the logininfo classes in some situations (bug 2657) 2005-03-01 02:49:10 +00:00
moodler
fd5b9188bd removed explicit style-adding for user login string 2005-02-25 06:23:46 +00:00
moodler
78ba4d0697 Save a db call by using SITE 2005-02-12 15:07:25 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
defacer
60fe9736f4 Updating index page with all the latest from blocklib and pagelib. 2005-02-02 04:32:13 +00:00
defacer
c1d8705fd2 Change the semantics of blocks_print_adminblock() to make life easier to
developers who use pages. Conversely simplified the code a bit in courses.
2005-02-02 02:41:56 +00:00
defacer
7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
moodler
c5e266d233 Removed some styles 2005-01-29 11:41:43 +00:00
defacer
5921e0a06a Fixed incorrect use of optional_param.
Fixed the double-header bug when configuring a block in the front page,
as reported in bug #2440. Credits to Dan Marsden for the report and the fix.
2005-01-27 23:48:16 +00:00
moodler
b5768b9e15 Removed $THEME from site topic 2005-01-25 13:40:26 +00:00
urs_hunkler
8c336db182 _ added the div framework
_ added the ids for the layout table with the 3 cells
2005-01-18 11:05:46 +00:00
moodler
34dd5900e4 FIxed my last hasty checkin 2004-12-28 15:12:46 +00:00
moodler
3c6b56daa4 Viewing site front page is now logged. 2004-12-28 15:11:16 +00:00
defacer
9b12850043 Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.
2004-11-29 04:19:05 +00:00
defacer
99110470ba Somehow I forgot to commit these and the whole page setup wasn't working
after renaming MoodlePage => page_base.
2004-11-25 17:23:57 +00:00
gustav_delius
b61536bc9b insert line break before language selection menu to make front page look similar to Moodle 1.4 2004-11-24 09:40:20 +00:00
defacer
c8e0b57900 Pages/blocks code updates:
NEW: The code now supports dynamically plugging your own Pages and block position
identifiers into Moodle without messing with the main libraries at all.

UPDATE: Many functions in blocklib now use pass-by-reference for speed.

UPDATE: Class MoodlePage has been made more presentable and robust.
2004-11-12 18:39:25 +00:00
defacer
f032aa7a5f MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.
2004-11-08 19:36:07 +00:00
paca70
63fa3f8014 If selected news count is zero, dont print forum headers. 2004-11-07 09:12:45 +00:00
dhawes
4bab5275b2 some string quote and spacing cleanup 2004-10-22 02:33:18 +00:00