2024-04-20 23:27:47 +02:00
< figure >
2024-04-23 23:55:48 +02:00
@ if ( ! empty ( $originalData [ 'prompt' ]) && empty ( $options [ 'nolink' ]))
< figcaption class = " markdown-body " >
{ !! ( new \App\Services\Markdown\Formatter ( $originalData [ 'prompt' ])) -> render () !! }
</ figcaption >
@ endif
@ if ( ! empty ( $options [ 'nolink' ]))
2024-05-09 16:48:54 +02:00
< img src = " { { $variantUrl }} " @ if ( ! empty ( $originalData [ 'class' ])) class = " { { $originalData['class'] }} " @ endif alt = " { { $originalData['alt'] ?? 'Texte alternatif non fourni' }} " />
2024-04-23 23:55:48 +02:00
@ else
2024-04-20 23:27:47 +02:00
< a href = " { { $originalUrl }} " title = " Voir l'image à taille réelle " >
2024-05-09 16:48:54 +02:00
< img src = " { { $variantUrl }} " @ if ( ! empty ( $originalData [ 'class' ])) class = " { { $originalData['class'] }} " @ endif alt = " { { $originalData['alt'] ?? 'Texte alternatif non fourni' }} " />
2024-04-20 23:27:47 +02:00
</ a >
2024-04-23 23:55:48 +02:00
@ endif
@ if ( empty ( $options [ 'nolink' ]) && ( ! empty ( $originalData [ 'title' ]) || ! empty ( $originalData [ 'attribution' ])))
< figcaption class = " markdown-body " >
2024-04-20 23:27:47 +02:00
@ if ( ! empty ( $originalData [ 'title' ]))
2024-04-23 23:55:48 +02:00
{ !! ( new \App\Services\Markdown\Formatter ( $originalData [ 'title' ])) -> render () !! }
2024-04-20 23:27:47 +02:00
@ endif
@ if ( ! empty ( $originalData [ 'attribution' ]))
2024-04-23 23:55:48 +02:00
{ !! ( new \App\Services\Markdown\Formatter ( $originalData [ 'attribution' ])) -> render () !! }
2024-04-20 23:27:47 +02:00
@ endif
</ figcaption >
@ endif
</ figure >