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:
parent
116dc6b904
commit
50cd91ef51
|
@ -3,9 +3,19 @@
|
|||
<!-- Get the banner to display -->
|
||||
<?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="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="dropdown dropdown-sorting">
|
||||
|
@ -44,7 +54,7 @@
|
|||
<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' ); ?>" />
|
||||
<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>
|
||||
</button>
|
||||
</span>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
border: 0;
|
||||
display: flex;
|
||||
height: 400px;
|
||||
margin-top: 1rem;
|
||||
margin-top: 0rem;
|
||||
margin-bottom: 50px;
|
||||
position: relative;
|
||||
background-color: #f2f2f2;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
}
|
||||
}
|
||||
img{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
|
|
|
@ -756,7 +756,7 @@ nav{
|
|||
word-break: break-word;
|
||||
margin: 0;
|
||||
@media only screen and (max-width: 576px){
|
||||
width: 85%;
|
||||
min-width: 85%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,32 +2,7 @@
|
|||
<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'; }?>">
|
||||
<h1 class="mb-0 text-truncate">
|
||||
<?php
|
||||
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;
|
||||
}
|
||||
} ?>
|
||||
<?php bloginfo( 'title' ) ?>
|
||||
</h1>
|
||||
<?php do_action( 'tainacan-interface-banner-header-description' ); ?>
|
||||
</div>
|
||||
|
|
|
@ -10,11 +10,29 @@
|
|||
else :
|
||||
_e( 'Blog Posts', 'tainacan-interface' );
|
||||
endif;
|
||||
} elseif ( is_singular() ) {
|
||||
bloginfo( 'title' );
|
||||
} elseif ( is_search() ) {
|
||||
_e( 'Search Results for', 'tainacan-interface' );
|
||||
echo ' "' , get_search_query(), '"';
|
||||
} elseif ( is_tag() || is_category() || is_tax() ) {
|
||||
single_term_title();
|
||||
} 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>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue