Revision a8cee257
Added by Assos Assos almost 5 years ago
drupal7/sites/all/modules/file_entity/file_entity.theme.inc | ||
---|---|---|
187 | 187 |
* - muted: Boolean indicating whether or not the sound should be muted. |
188 | 188 |
* - width: Width, in pixels, of the video player. |
189 | 189 |
* - height: Height, in pixels, of the video player. |
190 |
* - playsinline: Boolean indicating if video should automatically play on |
|
191 |
* mobile (iOS). |
|
190 | 192 |
* |
191 | 193 |
* @ingroup themeable |
192 | 194 |
*/ |
... | ... | |
236 | 238 |
if (!empty($variables['preload'])) { |
237 | 239 |
$video_attributes['preload'] = $variables['preload']; |
238 | 240 |
} |
241 |
if ($variables['playsinline']) { |
|
242 |
$video_attributes['playsinline'] = 'playsinline'; |
|
243 |
} |
|
239 | 244 |
|
240 | 245 |
$output .= '<video' . drupal_attributes($video_attributes) . '>'; |
241 | 246 |
foreach ($files as $delta => $file) { |
Also available in: Unified diff
Weekly update of contrib modules