浏览代码

:sparkles: turned on events

tags/0.9.0
J 5 年前
父节点
当前提交
4c9448f661

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

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

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

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

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

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

正在加载...
取消
保存