PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
mendrisio
/
wp-content
/
themes
/
cittadimendrisio
<?php global $post; ?> <!-- ASIDE --> <aside class="aside" id="aside" role="complementary"> <div class="page-tools" role="toolbar"> <button class="btn-print icon-print" type="button" value="Stampa questa pagina" role="button" onclick="window.print()"></button> <?php CDM_Mixins::speakit(); ?> <div id="speakit_player"></div> </div> <? // Stampo i contatti relativi a questo post $current_post_id = get_queried_object_id(); $conts = CDM_Mixins::post_contacts( $current_post_id ); $count = count( $conts ); $i = 0; // Se al post sono assegnati contatti li stampo if ( ! empty( $conts ) ) : CDM_Mixins::contact_box( $conts, $current_post_id ); else : // Se al post NON sono assegnati contatti contrllo se al post sono correlati degli uffici $query_args = [ 'from' => get_post_type( $current_post_id ), 'to' => 'ufficio', 'queried' => get_queried_object() ]; $related_offices = CDM_Mixins::check_post_connection( $query_args ); // Se al post NON sono correlati uffici stampo il box di contatto di default (centralino) presente nella sidebar dedicata. if ( ! $related_offices ) : dynamic_sidebar( 'sidebar_contact_default' ); else : $office = reset( $related_offices->posts ); $contacts = CDM_Mixins::post_contacts( $office->ID ); CDM_Mixins::contact_box( $contacts, $office->ID ); endif; endif; /** * Stampo la lista degli utenti correlati a questo posto */ $users = $relations->get_related_users( $type, $post ); if ( ! empty( $users ) ) : ?> <section class="box"> <h1 class="box-title"><?php _e( 'Personale di riferimento', 'cdm' ); ?></h1> <div class="box-content"> <?php $relations->get_users( $users, null ); ?> </div> </section> <?php endif; /** * Stampo gli orari correlati a questo post */ if ( isset( $meta['_orari'] ) && ! empty( $meta['_orari'] ) ) : $orari = new CDM_Orari( $queried_obj->ID, $type ); $orari->open = '_sportello_aperto_al_pubblico'; $orari->free_text = '_sportello_free_text'; $orari->orari = '_orari'; $orari->output(); endif; if ( isset( $meta['_orari_alt'] ) && ! empty( $meta['_orari_alt'] ) ) : $orari_alt = new CDM_Orari( $queried_obj->ID, $type ); $orari_alt->open = '_sportello_alt_aperto_al_pubblico'; $orari_alt->free_text = '_sportello_alt_free_text'; $orari_alt->orari = '_orari_alt'; $orari_alt->output(); endif; //Array delle relazioni tra post type che voglio mostrare nella sidebarx $conn_to_show = [ 'ufficio', ]; // Prendo tutti i post type relazionati al type del post che sto visualizzando $connection_type = array_unique( custom_p2p_get_all_related_post_types( $type ) ); //Loop degli array-sidebar e controllo che sia presente come relazione foreach ( $conn_to_show as $connection ) { if ( in_array( $connection, $connection_type ) ) { //Se esiste una relazione la mostro $query_args = [ 'box_title' => ucfirst( 'Ufficio' ), 'from' => $type, 'to' => $connection, 'queried' => $queried_obj ]; $relations->get_side_box( $query_args, false, false ); } } //Visualizzo i Links correlati a questo post CDM_Link::show( $meta ); ?> <section class="box box-share"> <h1 class="box-title">Condividi la pagina</h1> <div class="box-content"> <!-- Go to www.addthis.com/dashboard to customize your tools --> <script defer type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-542aa37010b0def8"></script> <!-- Go to www.addthis.com/dashboard to customize your tools --> <div class="addthis_sharing_toolbox"></div> </div> </section> </aside> <!-- / aside-->
[-] 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]