code/blocks/slider/models/VideoSliderItem.php 1 location
|
@@ 311-319 (lines=9) @@
|
| 308 |
|
* |
| 309 |
|
* @return FieldList |
| 310 |
|
*/ |
| 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 |
|
} |
| 320 |
|
|
| 321 |
|
/** |
| 322 |
|
* Fetching/downloading picture from the providers url address and |
code/blocks/video/models/VideoBlock.php 1 location
|
@@ 262-270 (lines=9) @@
|
| 259 |
|
* |
| 260 |
|
* @return FieldList |
| 261 |
|
*/ |
| 262 |
|
public function getBetterButtonsActions() { |
| 263 |
|
$fields = parent::getBetterButtonsActions(); |
| 264 |
|
|
| 265 |
|
if ($this->Type != 'File' && ! $this->Cover()->exists() && ! empty($this->URL)) { |
| 266 |
|
$fields->push(BetterButtonCustomAction::create('fetchVideosPicture', _t('VideoSliderItem.FETCH_VIDEOS_PICTURE', 'Fetch videos picture'))); |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
return $fields; |
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
/** |
| 273 |
|
* @return bool|string |