Skip to content

Commit

Permalink
Create template for the Programs' page (#78), fix height of yours thu…
Browse files Browse the repository at this point in the history
…mbnails, fix gap between main and footer and same for social media footer.
  • Loading branch information
rodineicosta committed Feb 6, 2019
1 parent f4d3a74 commit 042788a
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
11 changes: 9 additions & 2 deletions assets/styles/geral.css
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,13 @@ aside .titulo {
padding-bottom: 20px;
border-bottom: 1px solid #e97200;
}
.lista .lista-post:last-child {
border-bottom: none;
}
.lista .lista-img {
max-height: 250px;
overflow-y: hidden;
}
.lista .lista-conteudo {
color: #003e2d;
font-weight: bold;
Expand Down Expand Up @@ -1210,7 +1217,7 @@ form .pesquisar {
color: #a7b739;
width: 100%;
/* Set the fixed height of the footer here */
height: 370px;
height: 380px;
background: url(../images/back_footer.jpg);
z-index: 3;
}
Expand Down Expand Up @@ -1251,7 +1258,7 @@ form .pesquisar {
width: 100%;
}
.footer-redes-sociais {
margin-top: 100px;
margin-top: 90px;
height: 80px;
background-color: #003e2d;
}
Expand Down
50 changes: 50 additions & 0 deletions templates/programs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/**
* Template Name: Programas
*
* @package WordPress
* @subpackage AS-PTA
* @since AS-PTA 0.2
*/
/**
* Falta resolver o filtro da Taxonomia Programas para exibir apenas os três programas.
*/

$args = array(
'post_status' => 'publish',
'post_type' => 'page',
'posts_per_page'=> -1,
'post_parent' => $post->ID
);
?>
<div class="lista">
<div class="titulo-pagina"><h1><?php the_title(); ?></h1></div>
<?php // The Query
$the_query = new WP_Query( $args ); // The Loop
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post() ?>
<div id="post-<?php the_ID(); ?>" class="row lista-post">

<?php if ( has_post_thumbnail() ) { ?>

<div class="col-md-4 lista-img">
<a id="featured-thumbnail" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="nofollow"><div class="image_search_post img-responsive"><?php the_post_thumbnail(); ?></div></a>
</div>
<div class="col-md-8 lista-conteudo">
<?php } else { ?>
<div class="col-md-12 lista-conteudo">
<?php } ?>
<div class="lista-titulo">
<h4><a href="<?php the_permalink(); ?>" rel="nofollow"><?php the_title(); ?></a></h4>
</div>
<div class="lista-resumo">
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php endwhile;
wp_reset_postdata();
else: // no posts found
_e("Sem publicações...", "aspta");
endif;?>
</div> <!-- /#programas -->

0 comments on commit 042788a

Please sign in to comment.