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 / settings.php

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

49 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /* =========== Settings Menu ============ */
4
5
6 if ( is_admin() ){ // admin actions
7 add_action('admin_menu', 'atg_setting_menu');
8 add_action('admin_init', 'atg_reg_settings');
9 } else {
10 // non-admin enqueues, actions, and filters
11 }
12
13 function atg_reg_settings() {
14 //register_setting( 'at_options_group', 'at_option_sblocca_tipologie', 'intval');
15 }
16
17 function atg_setting_menu()
18 {
19 add_submenu_page('edit.php?post_type=at_gara', 'Impostazioni', 'Impostazioni', 'manage_options', 'atg_settings', 'atg_settings_menu');
20 }
21
22 function atg_settings_menu()
23 {
24 if(isset($_POST['XMLgenBUTTON'])) {
25 include(plugin_dir_path(__FILE__) . 'avcp_xml_generator.php');
26 echo '<div class="updated"><p>';
27 printf(__('AVCP | Il file .xml è stato generato correttamente!'));
28 echo "</p></div>";
29 }
30
31 echo '<div class="wrap">';
32 screen_icon();
33 echo '<h2>AVCP XML WORDPRESS</h2>
34 Questo plugin è stato realizzato per generare un file XML per l’AVCP (Autorità per la Vigilanza sui Contratti Pubblici di Lavori, Servizi e Forniture) conforme alle specifiche tecniche ai sensi dell’art. 1 comma 32 Legge n. 190/2012.';
35
36 echo '<form method="post" name="options" target="_self">';
37 settings_fields( 'at_option_group' );
38 echo '<p class="submit"><input type="submit" class="button-primary" name="XMLgenBUTTON" value="Genera XML" />Clicca qui per generare manualmente il file .xml</p>';
39 echo '</form>';
40
41 echo '<h3>Impostazioni</h3>';
42
43 echo '<h3>Informazioni</h3>
44 Plugin Wordpress sviluppato da Marco Milesi in collaborazione con CentroSistema.<br/>
45 Per richiedere supporto contattare milesimarco@outlook.com';
46 echo '</div>';
47
48 }
49 ?>