Commit Graph

1537 Commits

Author SHA1 Message Date
gustav_delius 009f39beab fixed bug caused by user_login_string() being called with course id instead of course object 2005-03-02 19:49:04 +00:00
moodler 0e18f8278b FIxed the logininfo classes in some situations (bug 2657) 2005-03-01 02:49:10 +00:00
stronk7 68796e6b60 Avoid one notice at installation time (when wwwroot isn't set) and
the new qualified_me() needs it.
2005-03-01 00:11:35 +00:00
stronk7 b6e2260398 Experimental way to get the server name from wwwroot instead of
using such SERVER_NAME and HTTP_HOST variables.

It should help in servers having wrong Apache configurations, being
the cause of bad logins, referer problems....

Seems to work both under PHP 4.3 (linux) and PHP 5 (MacOS X).

Please, TEST it, specially in installation, upgrade and cron!
2005-02-28 09:04:37 +00:00
moodler f685bf2eef Fixed missing tag 2005-02-27 07:20:03 +00:00
skodak 48283ff638 slashargument test fix 2005-02-26 20:43:30 +00:00
moodler bc01a2b8ea Some little cleanups ... all auto-links to external URLs now use _blank 2005-02-25 13:11:18 +00:00
moodler d3593a675d user login string now always this style added 2005-02-25 06:20:53 +00:00
skodak 39ba6d586a Slasharguments test for health center, please test 2005-02-24 21:14:32 +00:00
defacer 36b51cb5d1 Move the dimensions of the collapse/uncollapse graphic image to CSS. 2005-02-17 14:33:30 +00:00
moodler ed3136ff1e Adding styles to the user information 2005-02-16 10:34:02 +00:00
moodler ee331e511f Style for paging 2005-02-16 07:40:22 +00:00
moodler 3538a79693 New admin config variable 'allowuserblockhiding' will enable/disable the
collapsible blocks feature.  It's on by default.

Also, removed thead/tbody from blocks (using th instead for the header).
2005-02-14 16:42:52 +00:00
moodler 56766f8592 More fixes to make custom themes work as expected.
I think it's pretty much perfect now.
2005-02-13 09:02:43 +00:00
moodler 9c4e6e2177 Really big cleanup of how "forced" themes were implemented.
Course themes now work better.

theme/xxxx/styles.php is now really short because all the logic
is in weblib.php.
2005-02-13 08:34:10 +00:00
gustav_delius 48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
defacer 9ecf051d4c Styles and markup improvements. 2005-02-11 05:27:19 +00:00
moodler 32e2b30209 This more or less completes the PHP side of the 1.5 themes
Added $user->theme and $course->theme choices, controlled by admin
variables on the main config variables page.

By default this is all turned off, since multiple themes can be
a little disorienting.

A hidden feature is session themes ... you can change the theme
on any page by passing theme=xxxx as a parameter.  By default this
requires sesskey (so that people don't change theme on each other),
but this security can be switched off using a hidden variable
$CFG->allowthemechangeonurl = true;   Good for quick tests.
2005-02-10 10:28:27 +00:00
moodler 1695b68032 New feature: maintenance mode.
Admin can put a site on hold during an upgrade or theme changing etc

Controlled by a file in dataroot, so it can also be controlled via command line:

    touch moodledata/1/maintenance.html

    rm moodledata/1/maintenance.html
2005-02-10 05:11:34 +00:00
defacer 002ef48a50 Removing inline styles, adding a class. 2005-02-09 20:13:56 +00:00
moodler 4eac76f75a Prevent some notices from bad calls to print_side_block_end 2005-02-09 16:17:03 +00:00
moodler 26ecdc5b93 Removed some variables from a copy/paste 2005-02-09 14:38:42 +00:00
moodler bfca00947a Improved styling of headings 2005-02-09 08:29:58 +00:00
defacer d4f7a8152d Redoing the hide/show thingy for blocks purely through CSS.
Instance id's next time, Urs! ;-)
2005-02-09 01:23:06 +00:00
moodler a8f6842661 Fixing some of the standard notice functions, adding styles and buttons 2005-02-08 17:09:41 +00:00
moodler 05049d161b Keep $THEME global in print_header for backward compatibility 2005-02-08 14:51:38 +00:00
defacer 86a956a42a Fixing this to not show notices if a block doesn't have an id attribute. 2005-02-08 00:53:55 +00:00
defacer 3524435159 The W3C valid way to write script tags is <script type="text/javascript">. 2005-02-07 23:56:54 +00:00
moodler da17a899d7 Added class and id to print_table, and id to print_simple_box 2005-02-07 11:08:37 +00:00
urs_hunkler c24a1ccd08 I added all code to handle the cookies and the sideblock content, the icon and the patches for hiding/showing the content of the sideblocks.
How it works:
_ within the "sideblockheading" a DIV with class="hide-show" holds a link calling the JS containerDisplaySwitching(). To the user it's represented by the icon "switch.gif" (a plus in a square) at the right end side of the header.
_ all content of the sideblock is surounded by a new <div class="blockcontent" id="'.$attributes['id']."_cont\">"
_ a call of the JS containerDisplaySwitching() changes the state of the appropriate DIV with the content to "display:none/inline" and writes this state into a cookie.
_ at the end of every block I added a call to the JS "containerDisplaySet()". This reads the block's state and hides the content or leaves it visible with every page load.
_ in the stylesheet I added the positioning of the icon:
.sideblockheading .hide-show {
    float:right;
}
.sideblockheading a img.hide-show-image {
    padding-top:0.25em;
}
2005-02-05 21:37:53 +00:00
defacer 68d5f00ae8 Isolating this in a function because it's quite useful
to access from elsewhere, too.
2005-02-02 02:25:50 +00:00
julmis 713126cd43 Remove last space from attribute list in cleanAttributes2 function. 2005-01-31 20:09:17 +00:00
stronk7 6bdd02e40b Avoid some probles when returning to the original user after using the loginas feature.
(sesskey not set)
2005-01-31 18:10:50 +00:00
moodler cdf3925518 Messaging can now be completely disabled using $CFG->messaging 2005-01-31 07:11:42 +00:00
moodler d74d4f2053 Some changes in the way theme setup is achieved, there is now a function
for it called theme_setup
2005-01-31 05:59:13 +00:00
moodler c3f5569273 Added support for parent themes
Added support for user, course, session themes
2005-01-30 18:23:06 +00:00
moodler 19505667d4 Add c0,c1,c2,c3,c4 classes for columns in tables
Add r0,r1,r0,r1,r0 classes for rows in tables
2005-01-30 05:21:25 +00:00
skodak 7789ffbf5e fixed clean_text() SC#76, merged from MOODLE_14_STABLE 2005-01-29 13:02:28 +00:00
moodler c09e00ba62 Fixed some recent buggy logic! Thanks, Eagle Eye! 2005-01-29 12:11:45 +00:00
moodler 7d89172f66 Fix styles when editing front page 2005-01-29 11:51:40 +00:00
moodler d6c66e125d Added class for courseid 2005-01-29 10:49:48 +00:00
urs_hunkler 772e78be99 I've deleted the hard coded distance (<br />) and added CSS properties in the CSS files to define the distance between the sideblocks. 2005-01-26 15:57:00 +00:00
defacer 6385200609 Weren't these two mistakenly switched? Compare the results from
/index.php and /course/view.php to see what I mean.
2005-01-25 19:23:05 +00:00
moodler e89fb61ec5 Always include the standard style sheet in print_header!
Great idea, Shane!
2005-01-25 15:53:13 +00:00
moodler c147b8ab08 Removed $THEME from everywhere :-) 2005-01-25 13:36:57 +00:00
moodler 7bb6d80f33 IMPORTANT NEW FEATURE FOR CSS
print_header now produces a unique CSS class and id for each page,
allowing targeting of styles for any module or page.
2005-01-25 11:05:23 +00:00
moodler f6ad05ef44 Can now pass the image tag text to the helpbutton function. Tidied up the
emoticonhelpbutton function to use new helpbutton function.
2005-01-21 05:04:24 +00:00
ikawhero d3dcbc2922 Added a class around helpbutton links so that enclosing <font> tags can
be removed from HTML code
2005-01-21 02:37:02 +00:00
ikawhero c7444a36a5 General removal of <nolink> tags for XHTML compatibility.
Moved from the glossary filter as the filter may not be enabled.
2005-01-18 06:57:59 +00:00
gustav_delius ee563adc91 added the utf8 languages to the list of exceptions in the function break_up_long_words(). 2005-01-14 11:53:10 +00:00