소스 검색

post gallery layout

display gallery images in configured format from WP editor
tags/0.9.0
Alej 5 년 전
부모
커밋
504c48bca0
1개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 8
    7
      vue-theme/src/pages/single.vue

+ 8
- 7
vue-theme/src/pages/single.vue 파일 보기

14
             //- ?: are objects are always gallery blocks
14
             //- ?: are objects are always gallery blocks
15
             .gallery.block(v-if="typeof block === 'object'" :class="`gallery-${i}`")
15
             .gallery.block(v-if="typeof block === 'object'" :class="`gallery-${i}`")
16
                 p gallery number: {{ i }}
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
                         br
25
                         br
25
                 //- Fullscreen gallery component for every gallery block
26
                 //- Fullscreen gallery component for every gallery block
26
                 gallery(
27
                 gallery(

Loading…
취소
저장