Ver código fonte

registered p2p for publication

tags/1.0.0^2
Alej 3 anos atrás
pai
commit
e83dd38f6e

+ 8
- 8
plugins/cia-post-types/includes/p2p-mappings.php Ver arquivo

20
 }
20
 }
21
 
21
 
22
 function register_all_one_offs() {
22
 function register_all_one_offs() {
23
-    register_connections_for('object', ['object', 'exhibition', 'guide', 'technique', 'post']);
24
-    register_connections_for('artist', ['artist', 'object', 'technique']);
25
-    register_connections_for('short', ['technique', 'short', 'object', 'guide', 'technique']);
26
-    register_connections_for('technique', ['technique', 'post']);
27
-    register_connections_for('guide', ['technique', 'exhibition', 'post']);
28
-    register_connections_for('exhibition', ['technique']);
29
-    register_connections_for('event', ['event', 'object', 'guide', 'technique']);
30
-    register_connections_for('episode', ['object', 'episode', 'guide', 'technique']);
23
+    register_connections_for('object', ['object', 'exhibition', 'guide', 'technique', 'post', 'publication']);
24
+    register_connections_for('artist', ['artist', 'object', 'technique', 'publication']);
25
+    register_connections_for('short', ['short', 'exhibition', 'event', 'object', 'guide', 'post', 'technique', 'publication']);
26
+    register_connections_for('technique', ['technique', 'post', 'publication']);
27
+    register_connections_for('guide', ['technique', 'exhibition', 'post', 'publication']);
28
+    register_connections_for('exhibition', ['technique', 'publication']);
29
+    register_connections_for('event', ['event', 'object', 'guide', 'technique', 'publication']);
30
+    register_connections_for('episode', ['object', 'episode', 'guide', 'technique', 'publication']);
31
 }
31
 }
32
 
32
 
33
 function all_connection_types() {
33
 function all_connection_types() {

+ 9
- 3
vue-theme/src/components/sidebars/sidebar.vue Ver arquivo

15
                     router-link(v-if="shouldShowDateSort.includes(type) && layout !== 'single'" :to="`/${type}/sorted/by-current-and-upcoming`")
15
                     router-link(v-if="shouldShowDateSort.includes(type) && layout !== 'single'" :to="`/${type}/sorted/by-current-and-upcoming`")
16
                         p by current and upcoming
16
                         p by current and upcoming
17
         
17
         
18
-        //- if {{type}} sorted by-material show material options
18
+        //- if {{type}} has sorted by-material show material options
19
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
19
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
20
             h3.t-up {{ type }} by material
20
             h3.t-up {{ type }} by material
21
             ul.t-up
21
             ul.t-up
24
                         router-link(:to="`/${type}/sorted/by-material#${material}`")
24
                         router-link(:to="`/${type}/sorted/by-material#${material}`")
25
                             p {{ material }}
25
                             p {{ material }}
26
 
26
 
27
-        //- if artist sorted by-alpha show alpha options           
27
+        //- if artist has sorted by-alpha show alpha options           
28
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
28
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
29
             h3.t-up {{ type }} alpha 
29
             h3.t-up {{ type }} alpha 
30
             ul.t-up
30
             ul.t-up
176
 @import '../../sss/theme.sss'
176
 @import '../../sss/theme.sss'
177
 aside.sidebar
177
 aside.sidebar
178
     /* need to solve for mobile as the sticky creates scroll issues */
178
     /* need to solve for mobile as the sticky creates scroll issues */
179
-    /* position: sticky */
179
+    position: sticky
180
     top: 40px
180
     top: 40px
181
     width: 100%
181
     width: 100%
182
     p, h3
182
     p, h3
187
         > *
187
         > *
188
             padding: $ms-0
188
             padding: $ms-0
189
             margin: 0 0 $ms-0 0
189
             margin: 0 0 $ms-0 0
190
+            display: table-cell
190
         > .post
191
         > .post
191
             /* background-color: blue */
192
             /* background-color: blue */
192
     ul
193
     ul
201
     .shadow
202
     .shadow
202
         background-color: white
203
         background-color: white
203
 
204
 
205
+
204
 /* width larger than $medium  */
206
 /* width larger than $medium  */
205
 @media (min-width: $medium)
207
 @media (min-width: $medium)
206
     aside.sidebar
208
     aside.sidebar
209
+        /* position: sticky */
207
         min-width: 25%
210
         min-width: 25%
208
         width: 25%
211
         width: 25%
212
+        > section 
213
+            > * 
214
+                display: inherit 
209
         ul
215
         ul
210
             flex-direction: column
216
             flex-direction: column
211
 </style>
217
 </style>

Carregando…
Cancelar
Salvar