PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
mendrisio
/
wp-content
/
themes
/
cittadimendrisio
<?php /* Template Name: Archvio news */ global $dos_app_eventi; get_header(); get_header( 'global' ); ?> <div class="clearfix" role="document"> <div class="col-left grid_2"> <?php get_template_part( 'partials/nav', 'secondary' ) ?> </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 role="article" class="speakit"> <h1 class="main-title"><?php the_title(); ?></h1> <div class="content"> <?php $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1; $args = [ 'post_type' => 'post', 'posts_per_page' => 20, 'paged' => $paged ]; $news = new WP_Query( $args ); if ( $news->have_posts() ) : echo '<ul class="list-folder">'; echo '<section class="add-info area-folder clearfix">'; while ( $news->have_posts() ) : $news->the_post(); ?> <li class="list-item clearfix"> <a class="list-link" title="<?php the_title(); ?>" role="link" href="<?php the_permalink(); ?>"> <div class="grid_2"> <?php the_post_thumbnail( 'small_rectangle', [ 'class' => 'list-img' ] ) ?> </div> <div class="list-description clearfix"> <div class="grid_5"> <time class="date"><?php the_date(); ?></time> <h1><?php the_title(); ?></h1> </div> <!-- /.grid --> </div> <!-- /.list-description --> </a> <!-- /.list-link --> </li> <!-- /.list-item --> <?php endwhile; wp_reset_postdata(); echo '</ul>'; echo '</section>'; echo '<div class="pager">'; $big = 999999999; // need an unlikely integer echo paginate_links( [ 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $news->max_num_pages ] ); echo '</div>'; else: ?> <p><?php _e( 'Nessun contenuto disponibile', 'cdm' ); ?></p> <!-- REALLY stop The Loop. --> <?php endif; ?> </div> <!--/ END content--> </article> <!--/ END article--> <?php if ( ! $dos_app_eventi ) { get_sidebar( 'base' ); } ?> </main> <!-- / main grid_10--> </div><!-- / clearfix--> <?php 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]