SDisplay only website name on bannerheader. Adds title page line to collections archive home. Adjusts top margin for Taxonomy archive page.

This commit is contained in:
mateuswetah 2019-11-18 10:32:17 -03:00
parent 116dc6b904
commit 50cd91ef51
7 changed files with 35 additions and 33 deletions

View File

@ -3,9 +3,19 @@
<!-- Get the banner to display --> <!-- Get the banner to display -->
<?php get_template_part( 'template-parts/bannerheader' ); ?> <?php get_template_part( 'template-parts/bannerheader' ); ?>
<main role="main" class="max-large margin-one-column"> <main role="main" class="mt-5 max-large margin-one-column">
<div class="row"> <div class="row">
<div class="col col-sm mx-sm-auto"> <div class="col col-sm mx-sm-auto">
<div class="tainacan-title">
<div class="border-bottom border-jelly-bean tainacan-title-page" style="border-width: 2px !important;">
<ul class="list-inline mb-1 d-flex">
<li class="list-inline-item font-weight-bold title-page">
<h1><?php echo get_the_archive_title(); ?></h1>
</li>
<li class="list-inline-item float-right title-back align-self-end ml-auto"><a href="javascript:history.go(-1)"><?php _e( 'Back', 'tainacan-interface' ); ?></a></li>
</ul>
</div>
</div>
<div class="form-inline mt-4 tainacan-collection-list--simple-search justify-content-between"> <div class="form-inline mt-4 tainacan-collection-list--simple-search justify-content-between">
<div class="dropdown dropdown-sorting"> <div class="dropdown dropdown-sorting">
@ -44,7 +54,7 @@
<div class="input-group"> <div class="input-group">
<input class="form-control rounded-0" type="search" name="s" value="<?php echo get_query_var( 's' ); ?>" placeholder="<?php esc_attr_e( 'Search collections', 'tainacan-interface' ); ?>" /> <input class="form-control rounded-0" type="search" name="s" value="<?php echo get_query_var( 's' ); ?>" placeholder="<?php esc_attr_e( 'Search collections', 'tainacan-interface' ); ?>" />
<span class="input-group-append"> <span class="input-group-append">
<button class="btn border border-left-0 rounded-0 bg-white text-midnight-blue" type="submit"> <button class="btn border border-left-0 rounded-0 bg-white " type="submit">
<i class="tainacan-icon tainacan-icon-20px tainacan-icon-search" style="line-height: inherit;"></i> <i class="tainacan-icon tainacan-icon-20px tainacan-icon-search" style="line-height: inherit;"></i>
</button> </button>
</span> </span>

View File

@ -2,7 +2,7 @@
border: 0; border: 0;
display: flex; display: flex;
height: 400px; height: 400px;
margin-top: 1rem; margin-top: 0rem;
margin-bottom: 50px; margin-bottom: 50px;
position: relative; position: relative;
background-color: #f2f2f2; background-color: #f2f2f2;

View File

@ -24,7 +24,6 @@
} }
} }
img{ img{
max-width: 100%;
height: auto; height: auto;
display: block; display: block;
margin: 0 auto; margin: 0 auto;

View File

@ -756,7 +756,7 @@ nav{
word-break: break-word; word-break: break-word;
margin: 0; margin: 0;
@media only screen and (max-width: 576px){ @media only screen and (max-width: 576px){
width: 85%; min-width: 85%;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;

File diff suppressed because one or more lines are too long

View File

@ -2,32 +2,7 @@
<div class="container-fluid p-0 ph-title-description"> <div class="container-fluid p-0 ph-title-description">
<div class="bg-white-title title-header <?php if ( is_singular() || is_archive() || is_search() || is_home() ) { echo 'singular-title'; }?>"> <div class="bg-white-title title-header <?php if ( is_singular() || is_archive() || is_search() || is_home() ) { echo 'singular-title'; }?>">
<h1 class="mb-0 text-truncate"> <h1 class="mb-0 text-truncate">
<?php <?php bloginfo( 'title' ) ?>
if ( is_home() ) {
bloginfo( 'title' );
} elseif ( is_singular() ) {
bloginfo( 'title' );
} elseif ( is_search() ) {
_e( 'Search Results', 'tainacan-interface' );
} elseif ( is_tag() || is_category() || is_tax() ) {
single_term_title();
} elseif ( is_archive() ) {
if ( have_posts() ) {
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'tainacan-interface' ), get_the_date() );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'tainacan-interface' ) ) );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'Y', 'yearly archives date format', 'tainacan-interface' ) ) );
elseif ( is_author() ) :
echo get_the_author();
elseif ( 'tainacan-collection' == get_post_type() ) :
echo get_the_archive_title();
else :
echo tainacan_the_collection_name();
endif;
}
} ?>
</h1> </h1>
<?php do_action( 'tainacan-interface-banner-header-description' ); ?> <?php do_action( 'tainacan-interface-banner-header-description' ); ?>
</div> </div>

View File

@ -10,11 +10,29 @@
else : else :
_e( 'Blog Posts', 'tainacan-interface' ); _e( 'Blog Posts', 'tainacan-interface' );
endif; endif;
} elseif ( is_singular() ) {
bloginfo( 'title' );
} elseif ( is_search() ) { } elseif ( is_search() ) {
_e( 'Search Results for', 'tainacan-interface' ); _e( 'Search Results for', 'tainacan-interface' );
echo ' "' , get_search_query(), '"'; echo ' "' , get_search_query(), '"';
} elseif ( is_tag() || is_category() || is_tax() ) {
single_term_title();
} elseif ( is_archive() ) { } elseif ( is_archive() ) {
echo ' ' . get_the_archive_title(); if ( have_posts() ) {
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'tainacan-interface' ), get_the_date() );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'tainacan-interface' ) ) );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'tainacan-interface' ), get_the_date( _x( 'Y', 'yearly archives date format', 'tainacan-interface' ) ) );
elseif ( is_author() ) :
echo get_the_author();
elseif ( 'tainacan-collection' == get_post_type() ) :
echo tainacan_the_collection_name();
else :
echo get_the_archive_title();
endif;
}
} ?> } ?>
</h1> </h1>
</li> </li>