图库-图片左上角标签加控制按钮

This commit is contained in:
1152958806@qq.com 2023-08-13 21:57:38 +08:00
parent d1080007f7
commit 6e16f21be7
3 changed files with 13 additions and 3 deletions

View File

@ -1534,6 +1534,16 @@ spec:
name: detail name: detail
label: 描述 label: 描述
value: 每一张照片都是一次美好的记忆。 value: 每一张照片都是一次美好的记忆。
- $formkit: radio
name: tagEnable
label: 图片标签
value: false
help: 图片左上角标签
options:
- label: 显示
value: true
- label: 隐藏
value: false
- group: todo - group: todo
label: 待办清单 label: 待办清单

View File

@ -31,7 +31,7 @@
<div class="recent-post-item" <div class="recent-post-item"
th:each="cuscomPost : ${theme.config.top.BannerRight.recommendPostCustom}" th:each="cuscomPost : ${theme.config.top.BannerRight.recommendPostCustom}"
th:if="${#strings.equals(theme.config.top.BannerRight.recommendPost, 'custom')}"> th:if="${#strings.equals(theme.config.top.BannerRight.recommendPost, 'custom')}">
<th:block th:with="post = ${postFinder.getByName(cuscomPost.post)}"> <th:block th:if="${not #strings.isEmpty(cuscomPost.post)}" th:with="post = ${postFinder.getByName(cuscomPost.post)}">
<div class="post_cover"> <div class="post_cover">
<a th:href="@{${post.status.permalink}}" th:title="${post.spec.title}"> <a th:href="@{${post.status.permalink}}" th:title="${post.spec.title}">
<span class="recent-post-top-text" <span class="recent-post-top-text"

View File

@ -29,7 +29,7 @@
<div class="gallery"> <div class="gallery">
<div class="fj-gallery-item" <div class="fj-gallery-item"
th:each="photo : ${photoFinder.listBy(param.photo_group_name)}"> th:each="photo : ${photoFinder.listBy(param.photo_group_name)}">
<div class="tag-address">[[${photo.spec.displayName}]]</div> <div th:if="${theme.config.photos.tagEnable}" class="tag-address">[[${photo.spec.displayName}]]</div>
<img th:src="${photo.spec.url}" th:alt="${photo.spec.description}" <img th:src="${photo.spec.url}" th:alt="${photo.spec.description}"
th:title="${photo.spec.description}"> th:title="${photo.spec.description}">
@ -52,7 +52,7 @@
<div class="gallery"> <div class="gallery">
<div class="fj-gallery-item" <div class="fj-gallery-item"
th:each="photo : ${photoFinder.listBy(param.photo_group_name)}"> th:each="photo : ${photoFinder.listBy(param.photo_group_name)}">
<div class="tag-address">[[${photo.spec.displayName}]]</div> <div th:if="${theme.config.photos.tagEnable}" class="tag-address">[[${photo.spec.displayName}]]</div>
<img th:src="${photo.spec.url}" th:alt="${photo.spec.description}" <img th:src="${photo.spec.url}" th:alt="${photo.spec.description}"
th:title="${photo.spec.description}"> th:title="${photo.spec.description}">