Add support for metatags
This commit is contained in:
parent
ae440be40c
commit
4564aa9534
25 changed files with 230 additions and 22 deletions
|
|
@ -24,7 +24,7 @@ final class PhotosController extends AbstractController
|
|||
'title' => $photo->getTitle(),
|
||||
'date' => $photo->getDate(),
|
||||
'category' => $photo->getCategory()->getTitle(),
|
||||
'thumbnail' => 'photos/' . strtolower(str_replace(' ', '_', $photo->getTitle())) . '/' . $photo->getThumbnail(),
|
||||
'thumbnail' => 'files/uploads/photos/' . strtolower(str_replace(' ', '_', $photo->getTitle())) . '/' . $photo->getThumbnail(),
|
||||
'url' => $photo->getUrl(),
|
||||
];
|
||||
}
|
||||
|
|
@ -44,12 +44,15 @@ final class PhotosController extends AbstractController
|
|||
'title' => $photos->getTitle(),
|
||||
'category' => $photos->getCategory()->getTitle(),
|
||||
'urlSafeCategory' => $photos->getCategory()->getUrlSafeTitle(),
|
||||
'tags' => $photos->getTags(),
|
||||
'text' => $photos->getText(),
|
||||
'date' => $photos->getDate()
|
||||
'description' => $photos->getDescription(),
|
||||
'date' => $photos->getDate(),
|
||||
'thumbnail' => '/files/uploads/photos/' . strtolower(str_replace(' ', '_', $photos->getTitle())) . '/' . $photos->getThumbnail(),
|
||||
];
|
||||
|
||||
foreach ($uploads as $index => $upload) {
|
||||
$filePath = 'photos/' . strtolower(str_replace(' ', '_', $album['title'])) . '/' . $upload->getFile();
|
||||
$filePath = 'files/uploads/photos/' . strtolower(str_replace(' ', '_', $album['title'])) . '/' . $upload->getFile();
|
||||
|
||||
$album['uploads'][] = [
|
||||
'file' => $filePath,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue