-
Notifications
You must be signed in to change notification settings - Fork 1
Added image layout #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mix
Are you sure you want to change the base?
Conversation
toonvandenbos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il ne manque pas le layout Hiker CMS ?
| /** | ||
| * The LayoutImage's title. | ||
| */ | ||
| public string $image; | ||
|
|
||
| /** | ||
| * The LayoutImage's image. | ||
| */ | ||
| public string $alt; | ||
|
|
||
| /** | ||
| * The LayoutImage's image alt. | ||
| */ | ||
| public string $caption; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Les doc blocks sont fucked up
oui.. |
| Text::make('Alternative text', 'alt') | ||
| ->rules('required') | ||
| ->help('<strong>Hidden</strong>. An alternative text is used to give a description of the content of an image so that the visually impaired and search engines can understand the image.'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il faut placer le alt juste en-dessous de l'image, puis la caption.
components/image/Layout.php
Outdated
| DataList::make() | ||
| ->row('Image', ImageComponent::make(Storage::url($this->image))->aspectRatio('16/9')) | ||
| ->row('Caption', TextComponent::make($this->caption)) | ||
| ->row('Alternative text', TextComponent::make($this->alt)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem ici.
No description provided.