Modified the banner and the menu to template parts

This commit is contained in:
Fabiano Alencar 2018-05-18 16:09:14 -03:00
parent 8bf925197e
commit 87ebc92ed9
14 changed files with 128 additions and 129 deletions

View File

@ -1,8 +1,6 @@
<?php
//Header with menu
get_header('menu');?>
<?php get_header();?>
<div class="page-header page-404 header-filter clear-filter" style="background-image: url('<?php echo get_template_directory_uri() ?>/assets/images/404.png')">
<div class="page-header page-404 header-filter clear-filter" style="background-image: url('<?php echo get_template_directory_uri() ?>/assets/images/404.png')">
<div class="container">
<div class="row">
<div class="col-md-12 mx-auto">
@ -18,7 +16,6 @@ get_header('menu');?>
</div>
</div>
</div>
<?php
//Footer
get_footer();

View File

@ -1,4 +1,9 @@
<?php get_header(); ?>
<!-- Get the menu if is create in panel admin -->
<?php get_template_part( 'template-parts/menuBellowBanner' ); ?>
<div class="container-fluid mt-5 max-large">
<div class="row">
<div class="col-sm">
<div id="content" role="main">
@ -9,4 +14,5 @@
get_sidebar();
} ?>
</div><!-- /.row -->
</div>
<?php get_footer(); ?>

View File

@ -1,4 +1,9 @@
<?php get_header(); ?>
<!-- Get the menu if is create in panel admin -->
<?php get_template_part( 'template-parts/menuBellowBanner' ); ?>
<div class="container-fluid mt-5 max-large">
<div class="row">
<div class="col-sm">
<div id="content" role="main">
@ -9,4 +14,5 @@
get_sidebar();
} ?>
</div><!-- /.row -->
</div>
<?php get_footer(); ?>

View File

@ -1,4 +1,3 @@
</div>
<?php if(!is_404()) : ?>
<footer class="container-fluid p-4 p-sm-5 mt-5 bg-haiti">
<?php if ( is_active_sidebar( 'footer-1' ) ) { ?>

View File

@ -1,21 +0,0 @@
<?php
//Header with menu
get_header('menu');?>
<form class="tainacan-form-search d-sm-none">
<div class="d-flex justify-content-between">
<div class="w-100 pt-1 mt-2 pl-1">
<input class="form-control h-75 tainacan-input-search py-0 border-0" type="search" placeholder="Pesquisar">
</div>
<div class="pt-1 mt-2 ml-1">
<button type="reset" class="btn h-75 pt-0 pr-0 border-0 bg-white tainacan-button-search" onclick=""><i class="material-icons">close</i></button>
</div>
<div class="pt-1 mt-2 mx-1">
<button type="submit" class="btn h-75 pt-0 border-0 text-heavy-metal bg-white tainacan-button-search" onclick=""><i class="material-icons">search</i></button>
</div>
</div>
</form>
<div <?php if ( get_header_image() ) : ?>class="page-header header-filter clear-filter page-height" style="background-image: url('<?php header_image(); ?>')"<?php else: ?>class="page-header header-filter clear-filter" style="background-image: url('<?php echo get_template_directory_uri() ?>/assets/images/capa.png')"<?php endif; ?>>
<!-- <img src="<?php echo get_template_directory_uri() ?>/assets/images/capa.png" class="img-fluid header-img">
<i class="material-icons float-right p-1 m-2 mt-3 text-white rounded-circle position-absolute header-icon">settings</i> -->
</div>

View File

@ -1,35 +0,0 @@
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i" rel="stylesheet">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<nav class="navbar navbar-expand-md navbar-light bg-white menu-shadow px-1">
<div class="container-fluid pr-lg-5 max-large">
<?php echo tainacan_get_logo(); ?>
<div class="btn-group ml-auto p-4"> <!-- Quando retirar o commentario para exibir o menu retirar o p-4 -->
<!-- <button type="button" class="btn btn-link text-heavy-metal px-0"><i class="material-icons">person_outline</i></button>
<button type="button" class="btn btn-link text-heavy-metal dropdown-toggle dropdown-toggle-split px-1 pt-lg-0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="d-none d-md-inline-block">User</div><span class="sr-only text-jelly-bean">Toggle Dropdown</span>
</button>
<div class="dropdown-menu tainacan-dropdown-menu">
<a class="dropdown-item" href="#">Perfil</a>
<a class="dropdown-item" href="#">Coleção</a>
<a class="dropdown-item" href="#">Sair</a>
</div>
<button type="button" class="btn btn-link text-heavy-metal px-1"><i class="material-icons">notifications_none</i></button>
<button type="button" class="btn btn-link text-heavy-metal pl-1 pr-lg-0"><i class="material-icons">help_outline</i></button> -->
</div>
</div>
</nav>

View File

@ -1,38 +1,38 @@
<?php
//Header with banner and menu
get_header('banner'); ?>
<?php
$bread = "<ol class='breadcrumb pb-0 mb-1' style='background: transparent'>";
$bread .= "<li class='breadcrumb-item'><a href='#'>Home</a></li>";
$bread .= "<li class='breadcrumb-item'><a href='#'>Site</a></li>";
$bread .= "<li class='breadcrumb-item active' aria-current='page'>Blog</li>";
$bread .= "</ol>";
?>
<?php if(has_nav_menu('navMenubelowHeader')) : ?>
<nav class="navbar navbar-expand-md navbar-light bg-white px-1 border-bottom" role="navigation">
<div class="container-fluid max-large">
<?php /* if(wp_is_mobile()) echo $bread; */ ?>
<a class="navbar-brand" href="#"></a>
<!-- Brand and toggle get grouped for better mobile display -->
<button class="navbar-toggler text-heavy-metal border-0 px-2 pt-2" type="button" data-toggle="collapse" data-target="#menubelowHeader" aria-controls="menubelowHeader" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i" rel="stylesheet">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<nav class="navbar navbar-expand-md navbar-light bg-white menu-shadow px-1">
<div class="container-fluid pr-lg-5 max-large">
<?php echo tainacan_get_logo(); ?>
<div class="btn-group ml-auto p-4"> <!-- Quando retirar o commentario para exibir o menu retirar o p-4 -->
<!-- <button type="button" class="btn btn-link text-heavy-metal px-0"><i class="material-icons">person_outline</i></button>
<button type="button" class="btn btn-link text-heavy-metal dropdown-toggle dropdown-toggle-split px-1 pt-lg-0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="d-none d-md-inline-block">User</div><span class="sr-only text-jelly-bean">Toggle Dropdown</span>
</button>
<?php
wp_nav_menu( array(
'theme_location' => 'navMenubelowHeader',
'depth' => 2, // 1 = with dropdowns, 0 = no dropdowns.
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'menubelowHeader',
'menu_class' => 'navbar-nav mr-auto ml-md-1',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker()
) );
?>
<div class="dropdown-menu tainacan-dropdown-menu">
<a class="dropdown-item" href="#">Perfil</a>
<a class="dropdown-item" href="#">Coleção</a>
<a class="dropdown-item" href="#">Sair</a>
</div>
<button type="button" class="btn btn-link text-heavy-metal px-1"><i class="material-icons">notifications_none</i></button>
<button type="button" class="btn btn-link text-heavy-metal pl-1 pr-lg-0"><i class="material-icons">help_outline</i></button> -->
</div>
</nav>
<?php endif; ?>
<!-- <nav aria-label="breadcrumb" class="d-none d-md-flex">
<?php //echo $bread; ?>
</nav> -->
<div class="container-fluid mt-5 max-large">
</div>
</nav>
<!-- Get the banner to display -->
<?php if(!is_404()) { get_template_part( 'template-parts/bannerHeader' ); } ?>

View File

@ -1,4 +1,9 @@
<?php get_header(); ?>
<!-- Get the menu if is create in panel admin -->
<?php get_template_part( 'template-parts/menuBellowBanner' ); ?>
<div class="container-fluid mt-5 max-large">
<div class="row">
<div class="col-sm">
<div id="content" role="main">
@ -9,4 +14,5 @@
get_sidebar();
} ?>
</div>
</div>
<?php get_footer();

View File

@ -1,4 +1,9 @@
<?php get_header(); ?>
<!-- Get the menu if is create in panel admin -->
<?php get_template_part( 'template-parts/menuBellowBanner' ); ?>
<div class="container-fluid mt-5 max-large">
<div class="row">
<div class="col-sm">
@ -7,4 +12,5 @@
</div><!-- /#content -->
</div>
</div><!-- /.row -->
</div>
<?php get_footer(); ?>

View File

@ -1,4 +1,9 @@
<?php get_header(); ?>
<!-- Get the menu if is create in panel admin -->
<?php get_template_part( 'template-parts/menuBellowBanner' ); ?>
<div class="container-fluid mt-5 max-large">
<div class="row">
<div class="col-sm">
<div id="content" role="main">
@ -9,4 +14,5 @@
get_sidebar();
} ?>
</div><!-- /.row -->
</div>
<?php get_footer(); ?>

View File

@ -1,4 +1,9 @@
<?php get_header(); ?>
<!-- Get the menu if is create in panel admin -->
<?php get_template_part( 'template-parts/menuBellowBanner' ); ?>
<div class="container-fluid mt-5 max-large">
<div class="row">
<div class="col col-sm mx-sm-auto">
<div id="content" role="main">
@ -6,4 +11,5 @@
</div><!-- /#content -->
</div>
</div><!-- /.row -->
</div>
<?php get_footer(); ?>

View File

@ -25,34 +25,5 @@
</div>
</div>
<?php
$bread = "<ol class='breadcrumb pb-0 mb-1' style='background: transparent'>";
$bread .= "<li class='breadcrumb-item'><a href='#'>Home</a></li>";
$bread .= "<li class='breadcrumb-item'><a href='#'>Site</a></li>";
$bread .= "<li class='breadcrumb-item active' aria-current='page'>Blog</li>";
$bread .= "</ol>";
?>
<?php if(has_nav_menu('navMenubelowHeader')) : ?>
<nav class="navbar navbar-expand-md navbar-light bg-white px-1 border-bottom" role="navigation">
<div class="container-fluid max-large">
<?php /* if(wp_is_mobile()) echo $bread; */ ?>
<a class="navbar-brand" href="#"></a>
<!-- Brand and toggle get grouped for better mobile display -->
<button class="navbar-toggler text-heavy-metal border-0 px-2 pt-2" type="button" data-toggle="collapse" data-target="#menubelowHeader" aria-controls="menubelowHeader" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<?php
wp_nav_menu( array(
'theme_location' => 'navMenubelowHeader',
'depth' => 2, // 1 = with dropdowns, 0 = no dropdowns.
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'menubelowHeader',
'menu_class' => 'navbar-nav mr-auto ml-md-1',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker()
) );
?>
</div>
</nav>
<?php endif; ?>
<!-- Get the menu if is create in panel admin -->
<?php get_template_part( 'template-parts/menuBellowBanner' ); ?>

View File

@ -0,0 +1,18 @@
<form class="tainacan-form-search d-sm-none">
<div class="d-flex justify-content-between">
<div class="w-100 pt-1 mt-2 pl-1">
<input class="form-control h-75 tainacan-input-search py-0 border-0" type="search" placeholder="Pesquisar">
</div>
<div class="pt-1 mt-2 ml-1">
<button type="reset" class="btn h-75 pt-0 pr-0 border-0 bg-white tainacan-button-search" onclick=""><i class="material-icons">close</i></button>
</div>
<div class="pt-1 mt-2 mx-1">
<button type="submit" class="btn h-75 pt-0 border-0 text-heavy-metal bg-white tainacan-button-search" onclick=""><i class="material-icons">search</i></button>
</div>
</div>
</form>
<div <?php if ( get_header_image() ) : ?>class="page-header header-filter clear-filter page-height" style="background-image: url('<?php header_image(); ?>')"<?php else: ?>class="page-header header-filter clear-filter" style="background-image: url('<?php echo get_template_directory_uri() ?>/assets/images/capa.png')"<?php endif; ?>>
<!-- <img src="<?php echo get_template_directory_uri() ?>/assets/images/capa.png" class="img-fluid header-img">
<i class="material-icons float-right p-1 m-2 mt-3 text-white rounded-circle position-absolute header-icon">settings</i> -->
</div>

View File

@ -0,0 +1,34 @@
<?php
$bread = "<ol class='breadcrumb pb-0 mb-1' style='background: transparent'>";
$bread .= "<li class='breadcrumb-item'><a href='#'>Home</a></li>";
$bread .= "<li class='breadcrumb-item'><a href='#'>Site</a></li>";
$bread .= "<li class='breadcrumb-item active' aria-current='page'>Blog</li>";
$bread .= "</ol>";
?>
<?php if(has_nav_menu('navMenubelowHeader')) : ?>
<nav class="navbar navbar-expand-md navbar-light bg-white px-1 border-bottom" role="navigation">
<div class="container-fluid max-large">
<?php /* if(wp_is_mobile()) echo $bread; */ ?>
<a class="navbar-brand" href="#"></a>
<!-- Brand and toggle get grouped for better mobile display -->
<button class="navbar-toggler text-heavy-metal border-0 px-2 pt-2" type="button" data-toggle="collapse" data-target="#menubelowHeader" aria-controls="menubelowHeader" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<?php
wp_nav_menu( array(
'theme_location' => 'navMenubelowHeader',
'depth' => 2, // 1 = with dropdowns, 0 = no dropdowns.
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'menubelowHeader',
'menu_class' => 'navbar-nav mr-auto ml-md-1',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker()
) );
?>
</div>
</nav>
<?php endif; ?>
<!-- <nav aria-label="breadcrumb" class="d-none d-md-flex">
<?php //echo $bread; ?>
</nav> -->