Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
2f8b3825
Commit
2f8b3825
authored
Nov 13, 2007
by
Penny Leach
Browse files
Fixed some width & height stuff in the internal media block, put back mpg
parent
c6958313
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/blocktype/internalmedia/lib.php
View file @
2f8b3825
...
...
@@ -202,6 +202,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
'mov'
=>
'qt_player'
,
// tested
'wmv'
=>
'wmp_player'
,
// tested
'mpeg'
=>
'qt_player'
,
// tested
'mpg'
=>
'qt_player'
,
// tested
'avi'
=>
'wmp_player'
,
// tested
/* commenting out for now
'ram' => 'real_player',
...
...
@@ -217,6 +218,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
$extn
=
$artefact
->
get
(
'oldextension'
);
if
(
$extn
==
'mp3'
)
{
$height
=
0
;
// one line
$width
=
100
;
}
$id
=
'blocktype_internalmedia_flash_'
.
time
()
.
$count
;
$url
=
self
::
get_download_link
(
$artefact
,
$block
);
...
...
@@ -230,7 +232,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
<span class="blocktype_internalmedia_mp3" id="'
.
$id
.
'">('
.
get_string
(
'flash'
,
'blocktype.file/internalmedia'
)
.
')</span>
<script type="text/javascript">
var so = new SWFObject(" '
.
$playerurl
.
'","player","
400","400
","7");
var so = new SWFObject(" '
.
$playerurl
.
'","player","
'
.
$width
.
'","'
.
(
$height
+
20
)
.
'
","7");
so.addParam("allowfullscreen","false");
so.addVariable("file","'
.
urlencode
(
$url
)
.
'");
so.addVariable("displayheight"," '
.
$height
.
'");
...
...
htdocs/artefact/file/lang/en.utf8/artefact.file.php
View file @
2f8b3825
...
...
@@ -137,7 +137,7 @@ $string['zip'] = 'ZIP Archive';
$string
[
'swf'
]
=
'SWF Flash movie'
;
$string
[
'flv'
]
=
'FLV Flash movie'
;
$string
[
'mov'
]
=
'MOV Quicktime movie'
;
$string
[
'mpg'
]
=
'MP
E
G Movie'
;
$string
[
'mpg'
]
=
'MPG Movie'
;
$string
[
'ram'
]
=
'RAM Real Player Movie'
;
$string
[
'rpm'
]
=
'RPM Real Player Movie'
;
$string
[
'rm'
]
=
'RM Real Player Movie'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment