Revision 2b3c8cc1
Added by Assos Assos about 9 years ago
drupal7/sites/all/modules/file_entity/file_entity.theme.inc | ||
---|---|---|
96 | 96 |
if ($variables['loop']) { |
97 | 97 |
$audio_attributes['loop'] = 'loop'; |
98 | 98 |
} |
99 |
if (!empty($variables['preload'])) { |
|
100 |
$audio_attributes['preload'] = $variables['preload']; |
|
101 |
} |
|
99 | 102 |
|
100 | 103 |
$output .= '<audio' . drupal_attributes($audio_attributes) . '>'; |
101 | 104 |
foreach ($files as $delta => $file) { |
... | ... | |
148 | 151 |
if ($variables['height']) { |
149 | 152 |
$video_attributes['height'] = $variables['height']; |
150 | 153 |
} |
154 |
if (!empty($variables['preload'])) { |
|
155 |
$video_attributes['preload'] = $variables['preload']; |
|
156 |
} |
|
151 | 157 |
|
152 | 158 |
$output .= '<video' . drupal_attributes($video_attributes) . '>'; |
153 | 159 |
foreach ($files as $delta => $file) { |
Also available in: Unified diff
Weekly update of contrib modules