PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
mendrisio
/
wp-content
/
themes
/
cittadimendrisio
<?php global $wpdb, $wp_query; get_header(); get_header( 'global' ); $relations = new CDM_Get_Relations(); $queried_obj = get_queried_object(); $links = ''; $type = get_post_type( get_the_ID() ); if ( have_posts() ) : while ( have_posts() ) : the_post(); $meta = get_post_meta( get_the_ID() ); ?> <div class="clearfix" role="document"> <div class="col-left grid_2"> <nav class="nav-secondary" id="nav-secondary" role="navigation" aria-label="Navigazione nella sezione"> <h1 class="hide">Menu secondario</h1> <section class="box em-calendar-box" role="application"> <?php if ( class_exists( 'EM_Calendar' ) ) { echo EM_Calendar::output(); } ?> </section> <?php new CDM_Left_Side_Menu( $queried_obj ); ?> </nav> </div> <!--/ END col-left--> <?php get_template_part( 'partials/site', 'breadcrumb' ); ?> <!-- MAIN CONTENT--> <main class="main grid_10" role="main" id="maincontent"> <!-- inizio del contenuto vero e proprio--> <article class="agenda speakit" role="article"> <h1 class="main-title"><?= get_the_title( 166 ); ?></h1> <div class="content"> <?php the_content(); ?> </div> <!--/ END content--> </article> <!--/ END article--> <!-- 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> <span id="vox"> <a class="icon-volume-up" title="Avvia sistema di ascolto della pagina" role="button" href="#" onclick="#"> Avvia </a> </span> </div> <!-- /page-tools --> <?php /** * Utenti */ $users = $relations->get_related_users( $type, get_the_ID() ); if ( ! empty( $users ) ) : ?> <section class="box"> <h1 class="box-title"><?php _e( 'Organizzatore', 'cdm' ); ?></h1> <div class="box-content"> <?php $relations->get_users( $users, 'event-manager' ); ?> </div> </section> <?php endif; //Array delle relazioni tra post type che voglio mostrare nella sidebar $conn_to_show = [ 'ufficio', 'struttura', ]; // 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( $connection ), 'from' => $type, 'to' => $connection, 'queried' => $queried_obj ]; $relations->get_side_box( $query_args ); } } //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> <!-- /box-content --> </section> </aside> <!-- / aside--> </main> <!-- / main grid_10--> </div><!-- / clearfix--> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <!-- REALLY stop The Loop. --> <?php endif; get_footer();
[-] 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]