Pārlūkot izejas kodu

:sparkles: adding techniques to frontend and backend

tags/0.9.0
J 4 gadus atpakaļ
vecāks
revīzija
bb052b061e

+ 2
- 1
plugins/cia-endpoints/includes/all-types.php Parādīt failu

11
             'guide',
11
             'guide',
12
             'short',
12
             'short',
13
             'object',
13
             'object',
14
-            'publication'
14
+            'publication',
15
+            'technique'
15
         ];
16
         ];
16
     }
17
     }
17
 ?>
18
 ?>

+ 1
- 0
plugins/cia-post-types/includes/custom-types.php Parādīt failu

9
             'event',
9
             'event',
10
             'object',
10
             'object',
11
             'publication',
11
             'publication',
12
+            'technique',
12
         ];
13
         ];
13
     }
14
     }
14
 
15
 

+ 7
- 0
plugins/cia-post-types/includes/p2p-mappings.php Parādīt failu

42
         'reciprocal' => true,
42
         'reciprocal' => true,
43
         'admin_box' => $admin_box
43
         'admin_box' => $admin_box
44
     ]);
44
     ]);
45
+    p2p_register_connection_type([
46
+        'name' => 'artists_to_techniques',
47
+        'to' => 'artist',
48
+        'from' => 'technique',
49
+        'reciprocal' => true,
50
+        'admin_box' => $admin_box
51
+    ]);
45
 
52
 
46
     p2p_register_connection_type([
53
     p2p_register_connection_type([
47
         'name' => 'episodes_to_exhibitions',
54
         'name' => 'episodes_to_exhibitions',

+ 1
- 0
vue-theme/src/utils/helpers.js Parādīt failu

33
     'guide',
33
     'guide',
34
     'object',
34
     'object',
35
     'publication',
35
     'publication',
36
+    'technique',
36
 ]
37
 ]
37
 
38
 
38
 const ytThumbnail = (url, desiredSize) => {
39
 const ytThumbnail = (url, desiredSize) => {

Notiek ielāde…
Atcelt
Saglabāt