Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrazione con Amministrazione Trasparente
- Loading branch information
Showing
9 changed files
with
273 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive of Amministrazione Trasparente | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#archive | ||
* | ||
* @package Design_Scuole_Italia | ||
*/ | ||
|
||
get_header(); | ||
?> | ||
<main id="main-container" class="main-container petrol"> | ||
<?php get_template_part("template-parts/common/breadcrumb"); ?> | ||
<section class="section bg-white py-2 py-lg-3 py-xl-5"> | ||
<div class="container"> | ||
<div class="row variable-gutters"> | ||
<div class="col-lg-12 "> | ||
<div class="section-title"> | ||
<?php the_archive_title( '<h2 class="mb-0">', '</h2>' ); ?> | ||
<?php the_archive_description("<p>","</p>"); ?> | ||
</div><!-- /title-section --> | ||
</div><!-- /col-lg-5 col-md-8 offset-lg-2 --> | ||
|
||
</div><!-- /row --> | ||
</div><!-- /container --> | ||
</section><!-- /section --> | ||
|
||
|
||
|
||
<section class="section bg-white border-top border-bottom d-block d-lg-none"> | ||
<div class="container d-flex justify-content-between align-items-center py-3"> | ||
<h3 class="h6 text-uppercase mb-0 label-filter"><strong><?php _e("Filtri", "design_scuole_italia"); ?></strong></h3> | ||
<a class="toggle-search-results-mobile toggle-menu menu-search push-body mb-0" href="#"> | ||
<svg class="svg-filters"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#svg-filters"></use></svg> | ||
</a> | ||
</div> | ||
</section> | ||
<section class="section bg-gray-light"> | ||
<div class="container"> | ||
<div class="row variable-gutters sticky-sidebar-container"> | ||
<div class="col-lg-3 bg-white bg-white-left"> | ||
<?php get_template_part("template-parts/search/filters", "amministrazione"); ?> | ||
</div> | ||
<div class="col-lg-7 offset-lg-1 pt84"> | ||
<?php if ( have_posts() ) : ?> | ||
<?php | ||
/* Start the Loop */ | ||
while ( have_posts() ) : | ||
the_post(); | ||
get_template_part( 'template-parts/list/article', get_post_type() ); | ||
|
||
endwhile; | ||
?> | ||
<nav class="pagination-wrapper justify-content-center col-12" aria-label="Navigazione centrata"> | ||
<?php echo dsi_bootstrap_pagination(); ?> | ||
</nav> | ||
<?php | ||
else : | ||
|
||
get_template_part( 'template-parts/content', 'none' ); | ||
|
||
endif; | ||
?> | ||
</div><!-- /col-lg-8 --> | ||
</div><!-- /row --> | ||
</div><!-- /container --> | ||
</section> | ||
</main> | ||
|
||
<?php | ||
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
$post_type = get_query_var("post_type"); | ||
; | ||
?> | ||
<aside class="aside-list sticky-sidebar search-results-filters"> | ||
<form role="search" method="get" class="search-form" action="<?php echo home_url(""); ?>"> | ||
<?php if(isset($post_type) && !is_array($post_type) && $post_type != ""){ ?> | ||
<input type="hidden" name="post_type" value="<?php echo $post_type; ?>"> | ||
<?php } ?> | ||
<h3 class="h6 text-uppercase"><strong><?php _e("Sezioni", "design_scuole_italia"); ?></strong></h3> | ||
<ul> | ||
<?php | ||
$terms = get_terms( array( | ||
'taxonomy' => 'tipologie', | ||
'hide_empty' => true, | ||
) ); | ||
foreach ( $terms as $term ) { | ||
?> | ||
<li> | ||
<div class="custom-control custom-checkbox custom-checkbox-outline"> | ||
<input type="radio" class="custom-control-input" name="tipologie" value="<?php echo $term->slug; ?>" id="check-<?php echo $term->slug; ?>" <?php if($term->term_id == get_query_var("tipologie")) echo " checked "; ?> onChange="this.form.submit()"> | ||
<label class="custom-control-label" for="check-<?php echo $term->slug; ?>"><?php echo $term->name; ?></label> | ||
</div> | ||
</li> | ||
|
||
<?php | ||
} | ||
?> | ||
</ul> | ||
|
||
</form> | ||
</aside> |