177 Commits

Author SHA1 Message Date
Sam Hemelryk
383b89a1e2 MDL-36888 theme: allow the use of SVG in CSS background images. 2012-12-03 09:20:06 +13:00
Frederic Massart
fbbf043ce4 MDL-36417 usability: Disable SVG support for Opera 2012-11-15 21:38:42 +08:00
Petr Škoda
3c1405a1ee MDL-36481 improve IE version sniffing 2012-11-09 15:23:22 +01:00
Frederic Massart
0f817d0d90 MDL-36290 usability: CSS post processing does not cancel SVG use 2012-11-07 17:29:20 +08:00
Sam Hemelryk
f7d6a556cf MDL-22955 output: Added block to ensure that SVG is not used within CSS 2012-10-08 09:16:14 +13:00
Sam Hemelryk
436dbeecda MDL-22955 theme: Added ability to use SVG format for icons 2012-10-08 09:16:14 +13:00
Petr Škoda
13725b3797 MDL-34299 remove xmlstrictheaders setting and switch to html5 doctype by default
This fixes WCAG 2.0 compliance because we were already using HTML5 markup.

The strict XML headers setting never worked for production servers, developers
used browser validators for compliance testing. XHTML 5 option is relatively
similar to this obsolete option, but still it can not be used on production servers.

XHTML Strict 1.x was a standardised dead end, HTML5 is the new de-facto-standard
supported by all major browsers including latest versions of IE.

Please note nothing changes in our coding style because HTML5 is a superset of
several previous standards, it is recommended to use only features that are
already implemented in all our supported browsers.
2012-07-21 19:23:44 +02:00
Petr Škoda
bcf7f9f36f MDL-34057 improve styles_debug concurrency
Please note style debugging is not intended for busy production sites!
2012-07-06 08:00:18 +02:00
Sam Hemelryk
b305d623a5 MDL-33596 css_optimiser: Added an option for themes to disable the CSS optimiser 2012-06-12 14:23:15 +12:00
Petr Skoda
f11db1a602 MDL-33293 use time() instead of counter for theme and JS revisions
This should help on sites that reset database, reinstall or switch databases.
2012-05-23 11:11:13 +02:00
Petr Skoda
ecbad2ad1c MDL-32683 use slashargument urls for theme javascript files 2012-05-05 15:31:27 +02:00
Petr Skoda
7070b7f261 MDL-32683 use slashargument urls for theme style sheets 2012-05-05 15:26:24 +02:00
Petr Skoda
9d473266a7 MDL-32683 use slashargument urls for theme images 2012-05-05 15:23:59 +02:00
Eric Merrill
f930cf6b41 MDL-32143 output lib: Add ability have override core icons in dataroot
Searches dataroot/pix/ and dataroot/pix_plugins/type/plugin for icons
to override base install
2012-04-05 08:50:16 -04:00
Sam Hemelryk
11c0eccee4 MDL-31984 Fixed whitespace during integration 2012-03-19 19:12:40 +13:00
Brian Jorgensen
6fc267a07d MDL-31984: add debugging message if theme renderer file is missnamed 2012-03-19 19:12:39 +13:00
Sam Hemelryk
f8129210d2 MDL-30979 output: Further changes are validation 2012-02-17 14:53:11 +13:00
Sam Hemelryk
3d3fae7259 MDL-30979 output: Changes after peer-review 2012-02-17 14:53:10 +13:00
Sam Hemelryk
76be40ccf9 MDL-30979 output: Adjustments to match recent changes in coding style doc 2012-02-17 14:53:10 +13:00
Sam Hemelryk
473dd81118 MDL-30979 output: Fixed up phpdocs for output code 2012-02-17 14:53:10 +13:00
Tom Lanyon
365bec4c06 MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir 2011-09-10 10:35:46 +02:00
Sam Hemelryk
d609d96261 MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects 2011-09-06 15:39:00 +12:00
David Mudrak
3dd1d7e701 MDL-27116 theme_config::find_theme_location() respects $CFG->themedir
Credit goes to Jai Gupta for the idea of the patch.
2011-04-27 14:09:08 +02:00
Petr Skoda
fcd2cbaf1f MDL-26697 multiple media filtering fixes and improvements
Bug fixes:
    * fixed broken flash resizing via URL
    * upgraded Flowplayer
    * fixed invalid context in format_text()
    * all media related CSS moved from themes to filter and resources
    * fixed automatic pdf resizing in resources

Changes:
    * reworked filter_mediaplugin system settings - grouped by player type instead of individual extensions, added more information
    * improved regex url matching
    * removed old unused players, Eolas fix and UFO embedding
    * image embedding moved to filter_urltolink
    * new Flowplayer embedding API
    * accessibility and compatibility tweaks in Flowplayer
    * SWF embedding now works only in trusted texts, it is now enabled by default (works everywhere if "Allow EMBED and OBJECT tags" enabled)
    * new default video width and height

New features:
    * automatic Flash video resizing using information from video metadata
    * Flash HD video support (*.f4v)
    * Flash video embedding with HTML5 fallback - compatible with iOS and other mobile devices
    * Vimeo embedding
    * no-cookie YouTube site supported
    * HTML 5 audio and video with multiple source URLs and QuickTime fallback
    * more video and audio extensions in filelib.php
    * MP3 player colours customisable via CSS in themes
    * nomediaplugin class in a tag prevents media embedding
2011-03-12 17:42:52 +01:00
David Mudrak
03276af682 MDL-25072 reverted theme's disablecourseajax to enablecourseajax property 2010-11-09 11:55:37 +00:00
Petr Skoda
cdfb6ba850 MDL-25072 themes may disable ajax course edit 2010-11-09 01:28:43 +00:00
Sam Hemelryk
ca194849f0 themes-base MDL-16319 Base theme now has an editor sheet and sets a default font size 2010-10-06 07:38:34 +00:00
Sam Hemelryk
71be124d02 themes MDL-22247 Fixed up broken editor_sheets for themes 2010-10-01 01:43:06 +00:00
Petr Skoda
365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
Petr Skoda
0e688e1297 fixed notice 2010-09-17 07:59:42 +00:00
Petr Skoda
c426ef3aa5 MDL-23984 improvements of check_dir_exists() - replacing by make_upload_directory() in cases where we want to be sure that the dir is writable; removning now default create and recursive params to make code easier to read 2010-08-29 14:51:09 +00:00
Petr Skoda
78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Sam Hemelryk
a6338a134b themes MDL-22826 Some minor changes to improve the IE user experience 2010-07-07 09:10:10 +00:00
Petr Skoda
71c03ac138 comment typos 2010-05-22 20:16:12 +00:00
Sam Hemelryk
f856106b10 javascript-minify MDL-21435 Fixed typo 2010-05-19 02:22:17 +00:00
Sam Hemelryk
045f492c6b javascript-minify MDL-21435 Added Minify third party lib and integrated to with JavaScript and CSS serving 2010-05-19 02:15:16 +00:00
Sam Hemelryk
537740cba1 themes MDL-22353 Split CSS urls from one to three to resolve IE renderering issues 2010-05-10 07:47:52 +00:00
Sam Hemelryk
4d56ee95e0 themes MDL-22223 Added hidefromselector setting for theme. 2010-04-28 03:32:16 +00:00
Sam Hemelryk
a9535f7945 navigation MDL-21350 Implemented trim options for the navigation block, can now set trim mode (right/left/center) and trim length 2010-04-21 07:05:39 +00:00
Petr Skoda
4399b9d5de MDL-22091 fix for sloppy IE CSS limits hack 2010-04-15 14:43:25 +00:00
Sam Hemelryk
84db3ea2a3 themes MDL-21984 Removed the need to specify the theme name in layouts within its config.php file 2010-04-15 06:37:55 +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
f8bb9666c3 theme MDL-21648 Added support for styles_themename.css files for plugins 2010-02-18 08:47:47 +00:00
Petr Skoda
c09e1a2cb7 MDL-21557 potential fix for IE CSS issues in debug mode 2010-02-08 16:50:12 +00:00
Petr Skoda
baeb20bba3 MDL-21400 thems and JS now using the same script naming convention and parameter style 2010-02-07 13:08:46 +00:00
Petr Skoda
0bb38e8c04 MDL-21400 JS != ajax and page requirements are also CSS - making new special lib file for page requirements 2010-02-07 08:45:21 +00:00
Tim Hunt
cadc0d2805 theme/regions MDL-20204 un-spaghetti-fy martin's last commit. 2010-01-21 11:07:15 +00:00
Martin Dougiamas
a546e528ec theme/regions MDL-20204 Improved the finding of human names for regions, after looking in current theme it now looks in parent themes and base theme as well. 2010-01-21 06:13:02 +00:00
Petr Skoda
b9bc201962 MDL-21233 escaped parameter is far more importatnt than the overrideparams in out() method - especially all JS urls should be converted to out(false); also it is possible to create new url with overrided parameters in constructor which might be actually work around the double encoding problems in the url (we should never use the out() in moodle_url constructor itself!) 2010-01-17 09:50:55 +00:00
Sam Hemelryk
d2c394f3c3 javascript-dock MDL-21329 Added $CFG->allowblockstodock(true by default) and $THEME->enable_dock (false by default)
Also moved blocks/blocks.js to javascript-static,js so there is one less file to load
2010-01-14 06:56:12 +00:00