Bläddra i källkod

:sparkles: added categories for EVENT, EXHIBITION, ARTIST | some random style changes

tags/0.9.0
j 5 år sedan
förälder
incheckning
df67af01b9

+ 8
- 0
plugins/cia-endpoints/workspace.code-workspace Visa fil

@@ -0,0 +1,8 @@
1
+{
2
+	"folders": [
3
+		{
4
+			"path": "../.."
5
+		}
6
+	],
7
+	"settings": {}
8
+}

+ 19
- 1
plugins/cia-post-types/cia-post-types.php Visa fil

@@ -77,9 +77,27 @@ endforeach;
77 77
 
78 78
 add_action('init', 'create_materials_taxonomy'); 
79 79
 function create_materials_taxonomy() {
80
-    $post_types_that_show_materials = [ 'artist' ];
80
+    $post_types_that_show_materials = [ 'artist', 'exhibition', 'event' ];
81 81
     register_taxonomy('material', $post_types_that_show_materials, [ "label" => "Materials"]);
82 82
 }
83
+
84
+add_action('init', 'create_artist_types_taxonomy'); 
85
+function create_artist_types_taxonomy() {
86
+    $post_types_that_show_artist_types = [ 'artist' ];
87
+    register_taxonomy('artist type', $post_types_that_show_artist_types, [ "label" => "Artist Type"]);
88
+}
89
+
90
+add_action('init', 'create_event_types_taxonomy'); 
91
+function create_event_types_taxonomy() {
92
+    $post_types_that_show_event_types = [ 'event' ];
93
+    register_taxonomy('event type', $post_types_that_show_event_types, [ "label" => "Event Type"]);
94
+}
95
+
96
+add_action('init', 'create_exhibit_types_taxonomy'); 
97
+function create_exhibit_types_taxonomy() {
98
+    $post_types_that_show_exhibit_types = [ 'exhibition' ];
99
+    register_taxonomy('Exhibition type', $post_types_that_show_exhibit_types, [ "label" => "Exhibition Type"]);
100
+}
83 101
 /* Plugin Logic -- END * /
84 102
 
85 103
 /**

+ 5
- 8
plugins/cia-post-types/includes/custom-types.php Visa fil

@@ -4,22 +4,19 @@
4 4
             'artist',
5 5
             'episode',
6 6
             'event',
7
-                // 'talk',
7
+            'exhibition',
8
+            
9
+            // 'guide',
8 10
             
9 11
             // 'short',
12
+                // 'talk',
10 13
                 // 'technique',
11 14
             
12 15
                 // 'object',
13
-
14
-            // 'guide',
15
-
16
-            // 'exhibition',
17 16
             
18 17
             // 'publication',
19 18
                 // 'profile',
20
-            
21
-            // 'release',
22
-            // 'article',
19
+    
23 20
             // 'product'
24 21
         ];
25 22
     }

+ 2
- 4
vue-theme/src/app.vue Visa fil

@@ -42,7 +42,7 @@ html > body
42 42
             /* Block Shadow Thing */
43 43
             .shadow
44 44
                 box-shadow: rgb(34, 36, 37) 0px 0px 4px 0px
45
-                
45
+    
46 46
             /* Content Pieces */
47 47
             .post
48 48
                 background-color: teal
@@ -68,9 +68,7 @@ html > body
68 68
                     padding: $ms
69 69
                 > section, > header
70 70
                     margin: 0 0 $ms
71
-                > section .block-wrapper
72
-                    img
73
-                        width: 100%
71
+                .block-wrapper
74 72
                     .wp-block-gallery
75 73
                         .blocks-gallery
76 74
                             &-grid

+ 11
- 1
vue-theme/src/pages/single.vue Visa fil

@@ -158,4 +158,14 @@ export default {
158 158
         }
159 159
     }
160 160
 }
161
-</script>
161
+</script>
162
+
163
+<style lang="postcss">
164
+.page--single
165
+    article
166
+        ul
167
+            list-style: none
168
+            li
169
+                img
170
+                    width: 100%
171
+</style>

Laddar…
Avbryt
Spara