Skip to content

Commit

Permalink
pagina de cursos finalizada
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgimenez committed Jun 28, 2019
1 parent 0b6aac7 commit 64c0dff
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
54 changes: 54 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package coletivo
*/

?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<?php do_action( 'coletivo_before_site_star' ); ?>
<!-- Large modal -->
<?php
$contato_page = get_page_by_path( 'contato' );
if ( $contato_page ) : ?>
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"><?php echo apply_filters( 'the_title', $contato_page->post_title );?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<?php echo apply_filters( 'the_content', $contato_page->post_content );?>
</div>
</div>
</div>
</div>
<?php endif;?>
<!-- Small modal -->
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'coletivo' ); ?></a>
<?php
/**
* Hooked: coletivo_site_header
*
* @see coletivo_site_header
*/
do_action( 'coletivo_site_start' );
?>
8 changes: 8 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -828,3 +828,11 @@ body.page-template-template-cursos section.section-type-curso {
font-size: 1.2em !important;
}
}
.modal h5 {
width: auto;
clear: none !important;
display: inline;
}
.modal .wpcf7-form-control {
width:100%;
}
4 changes: 2 additions & 2 deletions template-cursos.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
<div class="content-itself">
<?php the_content();?>
</div><!-- .content-itself -->
<a id="curso-slug" class="btn btn-theme-primary btn-lg" href="#curso-slug">
Fale com um professor e saiba mais</a>
<button id="curso-modal" class="btn btn-theme-primary btn-lg" data-toggle="modal" data-target="#modal">
Fale com um professor e saiba mais</button>
</div>
</div><!-- .col-md-6 pull-right content -->
</div>
Expand Down

0 comments on commit 64c0dff

Please sign in to comment.