-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolecciones.php
More file actions
96 lines (91 loc) · 3.06 KB
/
colecciones.php
File metadata and controls
96 lines (91 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
// Íconos en https://developer.wordpress.org/resource/dashicons/
function historia_coleccion_linea()
{
return array(
'labels' => array(
'name' => __('Línea de tiempo', 'enflujo'),
'singular_name' => __('Evento', 'enflujo'),
'add_new' => __(text: 'Añadir evento', domain: 'enflujo'),
'edit_item' => __(text: 'Editar evento', domain: 'enflujo')
),
'public' => true,
'has_archive' => false,
'menu_position' => 4,
'menu_icon' => 'dashicons-chart-line',
'supports' => array('title', 'editor', 'thumbnail'),
'rewrite' => array('slug' => 'eventos'),
'taxonomies' => array('category', 'post_tag'),
'show_in_graphql' => true,
'graphql_single_name' => 'evento',
'graphql_plural_name' => 'eventos',
'publicly_queryable' => true
);
}
function historia_coleccion_personajes()
{
return array(
'labels' => array(
'name' => __('Personajes', 'enflujo'),
'singular_name' => __('Personaje', 'enflujo'),
'add_new' => __(text: 'Añadir personaje', domain: 'enflujo'),
'edit_item' => __(text: 'Editar personaje', domain: 'enflujo')
),
'public' => true,
'has_archive' => false,
'menu_position' => 4,
'menu_icon' => 'dashicons-groups',
'supports' => array('title', 'editor', 'thumbnail'),
'rewrite' => array('slug' => 'personajes'),
'taxonomies' => array('category', 'post_tag'),
'show_in_graphql' => true,
'graphql_single_name' => 'personaje',
'graphql_plural_name' => 'personajes',
'publicly_queryable' => true
);
}
function historia_coleccion_glosario()
{
return array(
'labels' => array(
'name' => __('Glosario', 'enflujo'),
'singular_name' => __('Término', 'enflujo'),
'add_new' => __(text: 'Añadir término', domain: 'enflujo'),
'edit_item' => __(text: 'Editar término', domain: 'enflujo')
),
'public' => true,
'has_archive' => false,
'menu_position' => 4,
'menu_icon' => 'dashicons-book',
'supports' => array('title', 'editor', 'thumbnail'),
'rewrite' => array('slug' => 'glosario'),
'taxonomies' => array('category', 'post_tag'),
'show_in_graphql' => true,
'graphql_single_name' => 'termino',
'graphql_plural_name' => 'glosario',
'publicly_queryable' => true
);
}
function historia_coleccion_entrevistas()
{
return array(
'labels' => array(
'name' => __('Entrevistas', 'enflujo'),
'singular_name' => __('Entrevista', 'enflujo'),
'add_new' => __(text: 'Añadir entrevista', domain: 'enflujo'),
'edit_item' => __(text: 'Editar entrevista', domain: 'enflujo'),
'add_new_item' => __(text: 'Añadir entrevista', domain: 'enflujo'),
),
'public' => true,
'has_archive' => false,
'menu_position' => 4,
'menu_icon' => 'dashicons-media-text',
'supports' => array('title', 'thumbnail'),
'rewrite' => array('slug' => 'entrevistas'),
'taxonomies' => array('category', 'post_tag'),
'show_in_graphql' => true,
'graphql_single_name' => 'entrevista',
'graphql_plural_name' => 'entrevistas',
'publicly_queryable' => true
);
}