瀏覽代碼

:sparkles: turned on events

tags/0.9.0
J 5 年之前
父節點
當前提交
4c9448f661

+ 1
- 0
plugins/cia-post-types/cia-post-types.php 查看文件

56
         ];
56
         ];
57
         
57
         
58
         if( $this->post_type == 'artist' ) { $args['taxonomies'] = ['category']; }
58
         if( $this->post_type == 'artist' ) { $args['taxonomies'] = ['category']; }
59
+        if( $this->post_type == 'event' ) { $args['taxonomies'] = ['type']; }
59
 
60
 
60
         register_post_type( $this->post_type, $args );
61
         register_post_type( $this->post_type, $args );
61
     }
62
     }

+ 12
- 9
plugins/cia-post-types/includes/custom-types.php 查看文件

1
 <?php
1
 <?php
2
     function get_all_custom_types() {
2
     function get_all_custom_types() {
3
         return [
3
         return [
4
-            // 'customtype',
5
             'artist',
4
             'artist',
6
             'episode',
5
             'episode',
6
+            'event',
7
+                // 'talk',
8
+            
7
             // 'short',
9
             // 'short',
8
-            // 'talk',
9
-            // 'object',
10
+                // 'technique',
11
+            
12
+                // 'object',
13
+
10
             // 'guide',
14
             // 'guide',
11
-            // 'event',
15
+
12
             // 'exhibition',
16
             // 'exhibition',
13
-            // 'technique',
14
-            // 'profile',
17
+            
15
             // 'publication',
18
             // 'publication',
19
+                // 'profile',
20
+            
16
             // 'release',
21
             // 'release',
17
             // 'article',
22
             // 'article',
18
             // 'product'
23
             // 'product'
30
             case 'short':
35
             case 'short':
31
                 return 'dashicons-video-alt3';
36
                 return 'dashicons-video-alt3';
32
                 break;
37
                 break;
33
-            case 'talk':
34
-                return 'dashicons-format-chat';
35
-                break;
38
+
36
             case 'object';
39
             case 'object';
37
                 return 'dashicons-visibility';
40
                 return 'dashicons-visibility';
38
                 break;
41
                 break;

+ 1
- 1
vue-theme/src/router/index.js 查看文件

4
 import { convertTitleCase } from '@/utils/helpers'
4
 import { convertTitleCase } from '@/utils/helpers'
5
 
5
 
6
 const router = createRouter({
6
 const router = createRouter({
7
-    history: createWebHistory('/'),
7
+    history: createWebHistory(),
8
     routes
8
     routes
9
 })
9
 })
10
 
10
 

Loading…
取消
儲存