Skip to content

Commit

Permalink
fix: "tipologia documento" page
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriot30 authored Jul 16, 2024
1 parent feda6d7 commit 40f326e
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/admin/tassonomie/tassonomia_tipi_doc_albo_pretorio.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function dci_register_taxonomy_tipi_doc_albo_pretorio() {
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'has_archive' => false, //archive page
'has_archive' => true, //archive page
//'rewrite' => array( 'slug' => 'tipo-doc-albo-pretorio' ),
'capabilities' => array(
'manage_terms' => 'manage_tipi_doc_albo_pretorio',
Expand Down
4 changes: 2 additions & 2 deletions inc/admin/tassonomie/tassonomia_tipi_documento.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ function dci_register_taxonomy_tipi_documento() {
$args = array(
'hierarchical' => true,
'labels' => $labels,
'public' => false, //enable to get term archive page
'public' => true, //enable to get term archive page
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'has_archive' => false, //archive page
'has_archive' => true, //archive page
//'rewrite' => array( 'slug' => 'tipo-documento' ),
'capabilities' => array(
'manage_terms' => 'manage_tipi_documento',
Expand Down
68 changes: 68 additions & 0 deletions taxonomy-tipi_documento.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
/**
* Archivio tassonomia Tipi Documento
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-taxonomies
* @link https://italia.github.io/design-comuni-pagine-statiche/sito/lista-risorse.html
*
* @package Design_Comuni_Italia
*/

get_header();
?>

<main>
<div class="container" id="main-container">
<div class="row justify-content-center">
<div class="col-12 col-lg-10">
<?php get_template_part("template-parts/common/breadcrumb"); ?>
</div>
</div>
</div>

<div class="container">
<div class="row justify-content-center row-shadow">
<div class="col-12 col-lg-10">
<div class="cmp-hero">
<section class="it-hero-wrapper bg-white align-items-start">
<div class="it-hero-text-wrapper pt-0 ps-0 pb-4 pb-lg-60">
<h1 class="text-black" data-element="page-name"><?php echo single_term_title( '', false ); ?></h1>
<?php the_archive_description('<div class="hero-text"> <p>','</p> </div>'); ?>
</div>
</section>
</div>
</div>
</div>
</div>

<div class="bg-grey-card py-5">
<div class="container">

<?php if ( have_posts() ) : ?>
<div class="row g-4">
<?php while ( have_posts() ) : the_post(); ?>

<?php get_template_part( 'template-parts/' . 'documento/cards-list' ); ?>

<?php endwhile; ?>
</div>

<div class="row my-4">
<nav class="pagination-wrapper justify-content-center col-12" aria-label="Navigazione pagine">
<?php echo dci_bootstrap_pagination(); ?>
</nav>
</div>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>

</div>
</div>

<?php get_template_part("template-parts/common/valuta-servizio"); ?>
<?php get_template_part("template-parts/common/assistenza-contatti"); ?>

</main>

<?php
get_footer();

0 comments on commit 40f326e

Please sign in to comment.