PluginProbe
ANAC XML Bandi di Gara / 2.2
ANAC XML Bandi di Gara v2.2
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 / singlehack.php

singlehack.php in ANAC XML Bandi di Gara 2.2, at singlehack.php

46 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 add_action('template_redirect', 'avcp_job_cpt_template');
3 function avcp_job_cpt_template()
4 {
5 global $wp, $wp_query;
6 if (isset($wp->query_vars['post_type']) && $wp->query_vars['post_type'] == 'avcp') {
7 if (have_posts()) {
8 add_filter('the_content', 'avcp_job_cpt_template_filter');
9 } else {
10 $wp_query->is_404 = true;
11 }
12 }
13 }
14 function avcp_job_cpt_template_filter($content)
15 {
16 global $wp_query;
17 $jobID = $wp_query->post->ID;
18 //echo get_post_meta(get_the_ID(), 'ammap_wysiwyg', true) . '<br/>';
19 echo 'Anno di Riferimento: ';
20 $get_avcp_dis_archivioanni = get_option('avcp_dis_archivioanni');
21 if ($get_avcp_dis_archivioanni == '1') {
22 echo strip_tags (
23 get_the_term_list( $post->ID, 'annirif', '', ' - ', '' )
24 );
25 } else {
26 echo get_the_term_list( $post->ID, 'annirif', '', ' - ', '' );
27 }
28 echo '<br/>';
29 echo 'CIG: <b>' . get_post_meta(get_the_ID(), 'avcp_cig', true) . '</b><br/>';
30 echo 'Contraente: <b>' . get_post_meta(get_the_ID(), 'avcp_contraente', true) . '</b><br/>';
31 echo 'Importo Aggiudicazione: <b>' . get_post_meta(get_the_ID(), 'avcp_aggiudicazione', true) . '</b><br/>';
32 echo 'Somme liquidate: <b>' . get_post_meta(get_the_ID(), 'avcp_somme_liquidate', true) . '</b><br/>';
33 echo 'Data di inizio: <b>' . date("d F Y", strtotime(get_post_meta(get_the_ID(), 'avcp_data_inizio', true))) . '</b><br/>';
34 echo 'Data di ultimazione: <b>' . date("d F Y", strtotime(get_post_meta(get_the_ID(), 'avcp_data_fine', true))) . '</b><br/>';
35 echo 'Ditte partecipanti: ';
36
37 $get_avcp_dis_archivioditte = get_option('avcp_dis_archivioditte');
38 if ($get_avcp_dis_archivioditte == '1') {
39 echo strip_tags (
40 get_the_term_list( $post->ID, 'ditte', '', ' - ', '' )
41 );
42 } else {
43 echo get_the_term_list( $post->ID, 'ditte', '', ' - ', '' );
44 }
45 }
46 ?>