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

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

tags/0.9.0
j 5 роки тому
джерело
коміт
df67af01b9

+ 8
- 0
plugins/cia-endpoints/workspace.code-workspace Переглянути файл

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

+ 19
- 1
plugins/cia-post-types/cia-post-types.php Переглянути файл

77
 
77
 
78
 add_action('init', 'create_materials_taxonomy'); 
78
 add_action('init', 'create_materials_taxonomy'); 
79
 function create_materials_taxonomy() {
79
 function create_materials_taxonomy() {
80
-    $post_types_that_show_materials = [ 'artist' ];
80
+    $post_types_that_show_materials = [ 'artist', 'exhibition', 'event' ];
81
     register_taxonomy('material', $post_types_that_show_materials, [ "label" => "Materials"]);
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
 /* Plugin Logic -- END * /
101
 /* Plugin Logic -- END * /
84
 
102
 
85
 /**
103
 /**

+ 5
- 8
plugins/cia-post-types/includes/custom-types.php Переглянути файл

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

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

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

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

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>

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