Browse Source

registered p2p for publication

tags/1.0.0^2
Alej 3 years ago
parent
commit
e83dd38f6e

+ 8
- 8
plugins/cia-post-types/includes/p2p-mappings.php View File

@@ -20,14 +20,14 @@ function register_connections_for($type, $from_types) {
20 20
 }
21 21
 
22 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 33
 function all_connection_types() {

+ 9
- 3
vue-theme/src/components/sidebars/sidebar.vue View File

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

Loading…
Cancel
Save