Pārlūkot izejas kodu

post gallery layout

display gallery images in configured format from WP editor
tags/0.9.0
Alej 5 gadus atpakaļ
vecāks
revīzija
504c48bca0
1 mainītis faili ar 8 papildinājumiem un 7 dzēšanām
  1. 8
    7
      vue-theme/src/pages/single.vue

+ 8
- 7
vue-theme/src/pages/single.vue Parādīt failu

@@ -14,13 +14,14 @@
14 14
             //- ?: are objects are always gallery blocks
15 15
             .gallery.block(v-if="typeof block === 'object'" :class="`gallery-${i}`")
16 16
                 p gallery number: {{ i }}
17
-                p ids: {{ post.galleries[block.gallery].innerHTML }}
18
-                ul.t-cntr(v-if="post.galleries[block.gallery]")
19
-                    li(v-for="(imageID, j) in getImageIdsForGallery(block.gallery)" :class="`gallery-${i}--image-${j+1}`" :key="`block-${i}-${j}`")
20
-                        img(@click="openGallery(i - 1, imageID)" :src="post.attached[imageID]['thumbnail']")
21
-                        //- TO DO Caption stuff and full screen Title/Description
22
-                        p Caption goes here<br>
23
-                            button(@click="openGallery(i - 1, imageID)") gallery: {{ i }} image: {{ imageID }}
17
+                //- p ids: {{ post.galleries[block.gallery].innerHTML }}
18
+                .test(v-html="post.galleries[block.gallery].innerHTML")
19
+                //- ul.t-cntr(v-if="post.galleries[block.gallery]")
20
+                //-     li(v-for="(imageID, j) in getImageIdsForGallery(block.gallery)" :class="`gallery-${i}--image-${j+1}`" :key="`block-${i}-${j}`")
21
+                //-         img(@click="openGallery(i - 1, imageID)" :src="post.attached[imageID]['thumbnail']")
22
+                //-         //- TO DO Caption stuff and full screen Title/Description
23
+                //-         p Caption goes here<br>
24
+                //-             button(@click="openGallery(i - 1, imageID)") gallery: {{ i }} image: {{ imageID }}
24 25
                         br
25 26
                 //- Fullscreen gallery component for every gallery block
26 27
                 gallery(

Notiek ielāde…
Atcelt
Saglabāt