Kaynağa Gözat

lightbox title line break

tags/1.0.3
Alej 3 yıl önce
ebeveyn
işleme
eab1a053f3

+ 1
- 1
plugins/cia-endpoints/includes/reformat-blocks.php Dosyayı Görüntüle

40
                 $id = end($class_pieces);
40
                 $id = end($class_pieces);
41
             }
41
             }
42
             // Format for lightbox wants an object
42
             // Format for lightbox wants an object
43
-            $title = wp_get_attachment_caption($id) . '\n' . get_post($id)->post_content;
43
+            $title = get_the_title($id) . "\n \n" . get_post($id)->post_content;
44
             $parse_images[$id] = [
44
             $parse_images[$id] = [
45
                 'src' => $image->getAttribute('src'),
45
                 'src' => $image->getAttribute('src'),
46
                 'alt' => $image->getAttribute('alt'),
46
                 'alt' => $image->getAttribute('alt'),

+ 3
- 2
vue-theme/src/sss/_lightbox.sss Dosyayı Görüntüle

1
 @import './variables.sss'
1
 @import './variables.sss'
2
 @import './theme.sss'
2
 @import './theme.sss'
3
 
3
 
4
-.vel-fade
4
+/* .vel-fade
5
     &-enter-active, &-active
5
     &-enter-active, &-active
6
         transition: all 0.3s ease
6
         transition: all 0.3s ease
7
     &-enter-from, &-leave-to
7
     &-enter-from, &-leave-to
8
-        opacity: 1
8
+        opacity: 1 */
9
 
9
 
10
 .vel-img
10
 .vel-img
11
     &-swiper
11
     &-swiper
111
     font-size: $ms-0
111
     font-size: $ms-0
112
     max-width: 90%
112
     max-width: 90%
113
     position: absolute
113
     position: absolute
114
+    white-space: pre-line
114
 
115
 
115
 .vel-icon
116
 .vel-icon
116
     fill: currentColor
117
     fill: currentColor

Loading…
İptal
Kaydet