PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
mendrisio
/
wp-content
/
themes
/
cittadimendrisio
<?php the_content(); $documents = []; $tax = 'tipologia'; $tax_terms = get_terms( $tax, 'orderby=name&order=ASC' ); $get_current_cat = get_term_by( 'name', single_cat_title( '', false ), 'tipologia' ); $current_cat = $get_current_cat->term_id; $docs = new WP_Query( [ 'connected_type' => 'avviso_to_documento', 'connected_items' => get_queried_object(), 'nopaging' => true, 'post_status' => 'publish', 'posts_per_page' => -1, 'category__in' => $current_cat ] ); if ( $tax_terms ) { if ( $docs->have_posts() ) : echo '<h2 class="title">' . __( 'Correlati', 'cdm' ) . '</h2>'; else : echo '<h4>' . __( 'Non sono disponibili documenti correlati', 'cdm' ) . '</h4>'; endif; foreach ( $tax_terms as $tax_term ) { $docs = new WP_Query( [ 'connected_type' => 'avviso_to_documento', 'connected_items' => get_queried_object(), 'nopaging' => true, 'post_status' => 'publish', 'tax_query' => [ [ 'taxonomy' => $tax, 'field' => 'slug', 'terms' => $tax_term->slug, 'include_children' => false, ] ], 'posts_per_page' => -1, 'category__in' => $current_cat, ] ); if ( $docs->have_posts() ) : if ( $tax_term ) : endif; echo '<section class="add-info area-download clearfix wpb_row">'; echo '<h1 class="section-title">' . $tax_term->name . '</h1>'; echo '<ul class="add-info-content list-download">'; $checkConnectionToOnlineForm = p2p_type('online_form_to_documento'); foreach ( $docs->posts as $post ) : $document = get_post_meta( $post->ID, '_doc_extra_field_file' ); $date = get_post_meta( $post->ID, '_dates_start' ); ?> <li class="item"> <?php if ( ! empty( $document[0] ) ) { ?> <a class="link-download" target="_blank" title="Scarica il file: titolo file" role="link" href="<?php echo $document[0]; ?>"> <?php } else { ?> <div> <?php } ?> <span class="list-title"><?php the_title(); ?></span> <span class="list-info"><?php echo CDM_Mixins::file_size( $document[0] ) ?></span> <?php if ( ! empty( $document[0] ) ) { ?> </a> <?php } else { ?> </div> <?php } ?> <?php echo CDM_Mixins::dos_get_related_doc($checkConnectionToOnlineForm, $post) ?> </li> <?php endforeach; echo '</ul>'; echo '</section>'; wp_reset_postdata(); endif; } }
[-] tmpl-homepage.php
[open]
[-] loop-innermenuadvanced.php
[open]
[-] tmpl-archivio.php
[open]
[-] sidebar-base.php
[open]
[-] header-global.php
[open]
[-] author.php
[open]
[-] tmpl-archivio-news.php
[open]
[-] loop-tipodiavviso.php
[open]
[-] functions.php
[open]
[-] 404.php
[open]
[+]
assets
[+]
language
[+]
_framework
[-] single-event.php
[open]
[-] loop-innermenu.php
[open]
[-] loop-doctaxonomy.php
[open]
[+]
..
[-] single.php
[open]
[-] taxonomy.php
[open]
[-] tmpl-events.php
[open]
[+]
partials
[-] taxonomy-event-categories.php
[open]
[+]
plugins
[-] page.php
[open]
[-] footer.php
[open]
[-] loop-innermenuadvancedusers.php
[open]
[-] search.php
[open]
[-] archive.php
[open]
[-] header.php
[open]
[-] loop-avviso.php
[open]
[-] screenshot.png
[open]
[-] sidebar-page.php
[open]
[-] index.php
[open]
[+]
feeds
[-] style.css
[open]