Переглянути джерело

Merge branch 'dev' of craft-in-america/vue-wp into master

tags/1.0.3
Alej 2 роки тому
джерело
коміт
d6dba8c62b

+ 4
- 4
vue-theme/src/components/navigation/navigation.vue Переглянути файл

113
         input(id="toggle-mobile-menu" type="checkbox").hide
113
         input(id="toggle-mobile-menu" type="checkbox").hide
114
 
114
 
115
         ul.drop-down.w-max.t-up
115
         ul.drop-down.w-max.t-up
116
+            li.f-col.center
117
+                h5
118
+                    input(v-model="searchTerms" @keyup.enter="sendSearch" tabindex="10")
119
+                    button(@click="sendSearch" tabindex="11")  🔍 search 
116
             li(v-for="item in menuItems").f-row.center
120
             li(v-for="item in menuItems").f-row.center
117
                 router-link(@click="uncheck" v-if="item == 'about' || item == 'donate'" :to="`/page/${item}`")
121
                 router-link(@click="uncheck" v-if="item == 'about' || item == 'donate'" :to="`/page/${item}`")
118
                     h5 {{ item }}
122
                     h5 {{ item }}
119
                 router-link(@click="uncheck" v-else= "" :to="`/${item}`")
123
                 router-link(@click="uncheck" v-else= "" :to="`/${item}`")
120
                     h5 {{ item }}
124
                     h5 {{ item }}
121
-            li.f-col.center
122
-                h5
123
-                    input(v-model="searchTerms" @keyup.enter="sendSearch" tabindex="10")
124
-                    button(@click="sendSearch" tabindex="11") 🔍 search
125
 
125
 
126
 </template>
126
 </template>
127
 
127
 

+ 7
- 13
vue-theme/src/components/sidebars/sidebar.vue Переглянути файл

25
                     //- event?type=talks //
25
                     //- event?type=talks //
26
                     router-link(v-if="type === 'event' " :to="`/${type}?type=talks`")
26
                     router-link(v-if="type === 'event' " :to="`/${type}?type=talks`")
27
                         p talks 
27
                         p talks 
28
-                //- li 
29
-                //-     //- event?type=recorded-talks-and-interviews //
30
-                //-     router-link(v-if="type === 'event' " :to="`/${type}?type=recorded-talks-and-interviews`")
31
-                //-         p Recorded Talks + Interviews 
32
-                //- li 
33
-                //-     router-link(v-if="type === 'event' " :to="`/page/recorded-talks-and-interviews`")
34
-                //-         p Recorded Talks + Interviews 
35
                 li 
28
                 li 
36
                     //- event?type=workshops //
29
                     //- event?type=workshops //
37
                     router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
30
                     router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
40
                     //- by type //
33
                     //- by type //
41
                 li(v-for="option in sortOptions")
34
                 li(v-for="option in sortOptions")
42
                     router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
35
                     router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
43
-                        p {{ option }}
36
+                        p {{ option }} 
44
                 li
37
                 li
45
                     router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
38
                     router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
46
-                        p by current and upcoming
47
-                //- li
48
-                //-     router-link(v-if="type === ('event' || 'exhibition') " :to="`/${type}/`")
49
-                //-         p by all 
39
+                        p current and upcoming
40
+                li
41
+                    //- router-link(v-if="type === ('post') " :to="`/${type}/`")
42
+                    router-link(v-if="type === ('post') " :to="`/blog`")
43
+                        p by all 
50
 
44
 
51
         //- if artist has sorted by-alpha show alpha sets           
45
         //- if artist has sorted by-alpha show alpha sets           
52
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
46
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
75
                         router-link(:to="`/${type}/sorted/by-episode#${episodeSet}`")
69
                         router-link(:to="`/${type}/sorted/by-episode#${episodeSet}`")
76
                             p {{ episodeSet }} &nbsp;&nbsp;
70
                             p {{ episodeSet }} &nbsp;&nbsp;
77
 
71
 
78
-        //- if {{type}} has sorted by-type show subtype sets           
72
+        //- if {{type}} has sorted by-type show subtype sets 
79
         .shadow(v-if="shouldShowTypeSort.includes(type) && layout !== 'single'")
73
         .shadow(v-if="shouldShowTypeSort.includes(type) && layout !== 'single'")
80
             h3.t-up {{ type }}s type  
74
             h3.t-up {{ type }}s type  
81
             ul.t-up
75
             ul.t-up

+ 2
- 1
vue-theme/src/pages/list.vue Переглянути файл

7
                 h3(v-else-if="hasSubtype") {{ type }}s: {{ $route.query.type }}&nbsp;
7
                 h3(v-else-if="hasSubtype") {{ type }}s: {{ $route.query.type }}&nbsp;
8
                 h3(v-else) Search results for: {{$route.query.s }}&nbsp;
8
                 h3(v-else) Search results for: {{$route.query.s }}&nbsp;
9
                 span(v-if="sortBy")
9
                 span(v-if="sortBy")
10
-                    h3 {{ sortBy.replace(/\-/g, ' ')}} 
10
+                    h3 {{ sortBy.replace(/[-]/g, ' ')}}
11
+                    //- h3 :{{ sortBy.replace(/[b][y]|[-]/g, ' ')}}
11
 
12
 
12
             h3(v-if="!loaded") loading...
13
             h3(v-if="!loaded") loading...
13
             .content(
14
             .content(

Завантаження…
Відмінити
Зберегти