code/blocks/slider/models/VideoSliderItem.php 1 location
|
@@ 314-316 (lines=3) @@
|
311 |
|
public function getBetterButtonsActions() { |
312 |
|
$fields = parent::getBetterButtonsActions(); |
313 |
|
|
314 |
|
if ($this->Type != 'File' && ! $this->Cover()->exists() && ! empty($this->URL)) { |
315 |
|
$fields->push(BetterButtonCustomAction::create('fetchVideosPicture', _t('VideoSliderItem.FETCH_VIDEOS_PICTURE', 'Fetch videos picture'))); |
316 |
|
} |
317 |
|
|
318 |
|
return $fields; |
319 |
|
} |
code/blocks/video/models/VideoBlock.php 1 location
|
@@ 266-268 (lines=3) @@
|
263 |
|
public function getBetterButtonsActions() { |
264 |
|
$fields = parent::getBetterButtonsActions(); |
265 |
|
|
266 |
|
if ($this->Type != 'File' && ! $this->Cover()->exists() && ! empty($this->URL)) { |
267 |
|
$fields->push(BetterButtonCustomAction::create('fetchVideosPicture', _t('VideoSliderItem.FETCH_VIDEOS_PICTURE', 'Fetch videos picture'))); |
268 |
|
} |
269 |
|
|
270 |
|
if ($this->Type == 'File' && $this->Mp4()->exists() && ! empty(BlocksUtility::whichFFMPEG())) { |
271 |
|
if (! $this->WebM()->exists() || ! $this->Ogg()->exists()) { |