Skip to content

Commit

Permalink
criação da archive de afluentes
Browse files Browse the repository at this point in the history
  • Loading branch information
dioliviers committed Mar 21, 2024
1 parent 63b8724 commit f0ff420
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions themes/midia-ninja-theme/archive-afluente.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*/
get_header();
?>

<div class="container">
<main class="content col-md-9">
<div class="posts">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content/post' ); ?>
<?php endwhile; ?>
</div>
<?php get_template_part( 'template-parts/content/pagination' ); ?>
</main>
</div>

<?php get_footer(); ?>
6 changes: 6 additions & 0 deletions themes/midia-ninja-theme/library/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ protected function get_css_files(): array
return is_post_type_archive('opiniao');
},
],
'archive-afluente' => [
'file' => '_p-archive-afluente.css',
'preload_callback' => function () {
return is_post_type_archive('afluente');
},
],

'search' => [
'file' => '_p-search.css',
Expand Down

0 comments on commit f0ff420

Please sign in to comment.