-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b6aac7
commit 64c0dff
Showing
3 changed files
with
64 additions
and
2 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
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">×</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' ); | ||
?> |
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