Línea 1614... |
Línea 1614... |
1614 |
'comment' => $record->comment,
|
1614 |
'comment' => $record->comment,
|
1615 |
'link_delete' => $record->user_id == $currentUser->id ? $this->url()->fromRoute('microlearning/capsules-comments/delete', ['capsule_id' => $capsule->uuid, 'comment_id' => $record->uuid], ['force_canonical' => true]) : ''
|
1615 |
'link_delete' => $record->user_id == $currentUser->id ? $this->url()->fromRoute('microlearning/capsules-comments/delete', ['capsule_id' => $capsule->uuid, 'comment_id' => $record->uuid], ['force_canonical' => true]) : ''
|
1616 |
]);
|
1616 |
]);
|
1617 |
}
|
1617 |
}
|
Línea 1618... |
Línea -... |
1618 |
|
- |
|
1619 |
$storage = Storage::getInstance($this->config, $this->adapter);
|
1618 |
|
Línea 1620... |
Línea 1619... |
1620 |
$path = $storage->getPathMicrolearningCapsule();
|
1619 |
$path = $storage->getPathMicrolearningCapsule();
|
- |
|
1620 |
|
Línea 1621... |
Línea 1621... |
1621 |
|
1621 |
$slides = $this->_getSlidesByCapsule($capsule, $storage);
|
1622 |
$slides = $this->_getSlidesByCapsule($capsule, $storage);
|
1622 |
$image = $storage->getGenericImage($path, $capsule->uuid, $capsule->image);
|
1623 |
|
1623 |
|
1624 |
$data = [
|
1624 |
$data = [
|
1625 |
'uuid' => $capsule->uuid,
|
1625 |
'uuid' => $capsule->uuid,
|
1626 |
'name' => $capsule->name ? $capsule->name : '',
|
1626 |
'name' => $capsule->name ?? '',
|
1627 |
'description' => $capsule->description ? $capsule->description : '',
|
1627 |
'description' => $capsule->description ?? '',
|
1628 |
'image' => $capsule->image ? $storage->getGenericImage($path, $capsule->uuid, $capsule->image) : '',
|
1628 |
'image' => $image,
|
1629 |
'link_comment_add' => $this->url()->fromRoute('microlearning/capsules-comments/add', ['capsule_id' => $capsule->uuid], ['force_canonical' => true]),
|
1629 |
'link_comment_add' => $this->url()->fromRoute('microlearning/capsules-comments/add', ['capsule_id' => $capsule->uuid], ['force_canonical' => true]),
|
1630 |
'total_comments' => strval($dataCountAndRatingAverage['total_comments']),
|
1630 |
'total_comments' => strval($dataCountAndRatingAverage['total_comments']),
|