31 Commits

Author SHA1 Message Date
Paul Holden
fba49ba1cc
MDL-79283 core: add title to embedded iframe, for accessibility. 2023-09-14 09:26:14 +01:00
Rajesh Taneja
7deb61e7c0 MDL-47995 lib: encode title properly, before additing it to image title 2015-06-04 11:13:00 +08:00
Petr Skoda
b5fc5675a2 MDL-30769 - URL module: always use iframe instead of problematic object tag 2013-01-18 11:11:49 +08:00
Adrian Greeve
b0c6dc1cac MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8) 2012-07-27 10:10:46 +08:00
sam marshall
8b7d95b625 MDL-29624 Media embedding system, part 3: resource module (and URL, lesson)
This change makes the resource module use the new API when it embeds media
files (audio/video/Flash), and removes the resourcelib library functions
which were previously used for this.

The old API is still used for embedding non-media files such as PDFs and
HTML.

The URL and Lesson module both used copy/paste duplicates of a section of
resource module code which called the removed functions. I have changed
these too. As a bonus this significantly reduces the duplication involved.
2012-05-09 18:29:31 +01:00
Petr Skoda
afd1c47c10 MDL32423 import latest flowplayer 2012-04-15 15:59:07 +02:00
Petr Skoda
7f86bee330 MDL-30303 fix media playback from URLs with ? query parts
Credit for the rawurlencode() fix goes to Eloy.
2011-11-19 18:17:37 +01:00
Petr Skoda
48f69e418c MDL-30005 fix general URI support in URL module
The recent change completely removed support for general URIs and enforced strict URL validation which was breaking backwards compatibility and was not user friendly at all.

This patch finally adds full URI support with basic validation and fixes some older xhtml strict issues.

Please note we do not try to explain the difference between URL and URI to our users. Also keep in mind that mod/url has XSS risk and does not do any security validation of the data.
2011-10-30 23:53:17 +01:00
Petr Skoda
3df93d6d88 MDL-29444 use iframe embedding in IE
iframe is back in HTML 5, we can safely use it in IE for all text documents because object embedding has multiple problems
2011-10-23 21:14:04 +02:00
Sam Hemelryk
287d1c0c2c Merged branch 'MDL-25775_head' of git://github.com/grabs/moodle.git 2011-06-08 13:49:36 +08:00
Andreas Grabs
a9e9549911 MDL-25775 - Site policy page blank 2011-06-06 18:15:12 +02:00
Petr Skoda
7774aca0fb MDL-27253 add default swf size and allow #d=100x50 URL resizing in mod/url 2011-04-21 20:35:48 +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
Petr Skoda
aa0dd423f7 improved legacy file migration - now processing default directory indexes too 2010-10-18 11:44:14 +00:00
Petr Skoda
ac9889d434 MDL-24650 xhtml strict fix in resource embedding 2010-10-13 17:33:48 +00:00
Petr Skoda
059676389b MDL-23648 adding resizing to iframe, this should finally solve IE issues when embedding resources 2010-10-06 16:52:54 +00:00
Petr Skoda
147fee876e MDL-22338 fixed regression - the embedded resources are being resized again 2010-10-06 16:23:37 +00:00
Rossiani Wijaya
3a42ad126c MDL-23870: Replace flash and mp3 multimedia filter with flowplayer. 2010-09-09 11:30:06 +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
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Martin Dougiamas
b8037d7316 MDL-22338 PDFs now display in resources :/ 2010-06-29 05:41:04 +00:00
Martin Dougiamas
42439c0572 MDL-20065 Fixing a wierd typo RESOURCE_LEGACYYFILES_DONE ==> RESOURCELIB_LEGACYFILES_DONE 2010-06-01 03:53:15 +00:00
Petr Skoda
9b56a34f7d MDL-16089 some resource lib and lang pack cleanup
AMOS START
 MOV [displayauto,mod_resource],[resourcedisplayauto,core]
 MOV [displaydownload,mod_resource],[resourcedisplaydownload,core]
 MOV [displayembed,mod_resource],[resourcedisplayembed,core]
 MOV [displayframe,mod_resource],[resourcedisplayframe,core]
 MOV [displaynew,mod_resource],[resourcedisplaynew,core]
 MOV [displayopen,mod_resource],[resourcedisplayopen,core]
 MOV [displaypopup,mod_resource],[resourcedisplaypopup,core]

AMOS END
2010-05-22 13:54:41 +00:00
Petr Skoda
ed149942a6 fixed more silly typos in comments 2010-05-21 19:31:17 +00:00
Petr Skoda
dd9b1882c6 MDL-21400 fixed my own ugly mess in resizing of embedded stuff + converted to YUI3 2010-02-06 18:47:44 +00:00
Petr Skoda
10eaeca808 MDL-21403 hardcoded JS legacy code should not use new $PAGE->requires-> api, switching to html_writer instead + improved ufo embedding 2010-01-26 10:35:13 +00:00
Petr Skoda
9dec75dbcc MDL-21240 shortened urls now start with / everywhere 2010-01-18 20:57:32 +00:00
Petr Skoda
985d1d1d22 MDL-21187 brand new yui2 lib loading now using the official YAHOO oholoaders which properly resolves all dependencies; please note we are still suing the YUI2 CSS preloading 2009-12-25 15:27:47 +00:00
Petr Skoda
088ccb43cf MDL-21125 obsoleting global $THEME 2009-12-23 17:51:41 +00:00
Petr Skoda
f44b10ed93 MDL-21139 replace all yui functions/methods with yui2 to make room for yui3 2009-12-16 20:25:14 +00:00
skodak
aa54ed7b02 MDL-20065 new implementation of File module, modules sub-types are being migrated to separate modules; remaining issues to be listed as sub-tasks in tracker 2009-08-13 20:45:50 +00:00