PluginProbe
ANAC XML Bandi di Gara / 0.1
ANAC XML Bandi di Gara v0.1
7.8 trunk 0.1 1.0.0.1 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.1.1 1.1.2 2.0 2.0.1 2.0.2 2.0.3 2.1 2.2 2.3 2.3.1 3 3.0.1 3.1 3.1.1 3.1.2 3.1.3 All 57 releases
avcp / avcp.php

avcp.php in ANAC XML Bandi di Gara 0.1, at avcp.php

96 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: AVCP
4 Plugin URI: http://www.marcomilesi.ml
5 Description: Generatore XML per l’AVCP (Autorità per la Vigilanza sui Contratti Pubblici di Lavori, Servizi e Forniture) // Art. 1 comma 32 Legge 190/2012.
6 Author: Marco Milesi
7 Version: alpha
8 Author URI: http://www.marcomilesi.ml
9 */
10
11 add_action( 'init', 'register_cpt_at__gara' );
12
13 function register_cpt_at__gara() {
14
15 $labels = array(
16 'name' => _x( 'Gare', 'at__gara' ),
17 'singular_name' => _x( 'Gara', 'at__gara' ),
18 'add_new' => _x( 'Nuova Gara', 'at__gara' ),
19 'add_new_item' => _x( 'Nuova Gara', 'at__gara' ),
20 'edit_item' => _x( 'Modifica Gara', 'at__gara' ),
21 'new_item' => _x( 'Nuova Gara', 'at__gara' ),
22 'view_item' => _x( 'Vedi Gara', 'at__gara' ),
23 'search_items' => _x( 'Cerca Gara', 'at__gara' ),
24 'not_found' => _x( 'Nessuna voce trovata', 'at__gara' ),
25 'not_found_in_trash' => _x( 'Nessuna voce trovata', 'at__gara' ),
26 'parent_item_colon' => _x( 'Parent Gara:', 'at__gara' ),
27 'menu_name' => _x( 'Gare', 'at__gara' ),
28 );
29
30 $args = array(
31 'labels' => $labels,
32 'hierarchical' => false,
33 'description' => 'Gare AVCP',
34 'supports' => array( 'title', 'custom-fields', 'revisions' ),
35 'taxonomies' => array( 'ditte' ),
36 'public' => true,
37 'show_ui' => true,
38 'show_in_menu' => true,
39 'menu_position' => 20,
40 'menu_icon' => 'http://www.comunepantelleria.it/files/ext/ico_zip.gif',
41 'show_in_nav_menus' => false,
42 'publicly_queryable' => true,
43 'exclude_from_search' => false,
44 'has_archive' => true,
45 'query_var' => true,
46 'can_export' => true,
47 'rewrite' => true,
48 'capability_type' => 'post'
49 );
50
51 register_post_type( 'at_gara', $args );
52 }
53
54 add_action( 'init', 'register_taxonomy_at_ditta' );
55
56 function register_taxonomy_at_ditta() {
57
58 $labels = array(
59 'name' => _x( 'Ditta', 'at_ditta' ),
60 'singular_name' => _x( 'Ditte', 'at_ditta' ),
61 'search_items' => _x( 'Cerca Ditta', 'at_ditta' ),
62 'popular_items' => _x( 'Ditte più usate', 'at_ditta' ),
63 'all_items' => _x( 'Tutte le ditte', 'at_ditta' ),
64 'parent_item' => _x( 'Parent Ditte', 'at_ditta' ),
65 'parent_item_colon' => _x( 'Parent Ditte:', 'at_ditta' ),
66 'edit_item' => _x( 'Edit Ditte', 'at_ditta' ),
67 'update_item' => _x( 'Update Ditte', 'at_ditta' ),
68 'add_new_item' => _x( 'Add New Ditte', 'at_ditta' ),
69 'new_item_name' => _x( 'New Ditte', 'at_ditta' ),
70 'separate_items_with_commas' => _x( 'Separate ditta with commas', 'at_ditta' ),
71 'add_or_remove_items' => _x( 'Add or remove ditta', 'at_ditta' ),
72 'choose_from_most_used' => _x( 'Choose from the most used ditta', 'at_ditta' ),
73 'menu_name' => _x( 'Ditte', 'at_ditta' ),
74 );
75
76 $args = array(
77 'labels' => $labels,
78 'public' => true,
79 'show_in_nav_menus' => false,
80 'show_ui' => true,
81 'show_tagcloud' => true,
82 'show_admin_column' => true,
83 'hierarchical' => true,
84
85 'rewrite' => true,
86 'query_var' => true
87 );
88
89 register_taxonomy( 'at_ditta', array('at_gara'), $args );
90 }
91
92 include(plugin_dir_path(__FILE__) . 'avcp_create_taxonomy.php');
93 //include(plugin_dir_path(__FILE__) . 'avcp_metabox_generator.php');
94 include(plugin_dir_path(__FILE__) . 'settings.php');
95 ?>
96