mods in archive resources views, search, tags and types of resources
This commit is contained in:
parent
9398258fb6
commit
f2179c0ef9
|
@ -52,7 +52,6 @@ endif;
|
||||||
</h2>
|
</h2>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
<main class="">
|
<main class="">
|
||||||
<?php if ( have_posts() ) : ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
@ -87,12 +86,14 @@ endif;
|
||||||
<?php //pagination here ?>
|
<?php //pagination here ?>
|
||||||
<aside>
|
<aside>
|
||||||
<nav>
|
<nav>
|
||||||
<!--a href="" class="button hollow">see more news</a-->
|
<div class="post-next"><?php next_posts_link( __( '← Older', 'foundationpress' ) ); ?></div>
|
||||||
|
<div class="post-previous"><?php previous_posts_link( __( 'Newer →', 'foundationpress' ) ); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
</aside>
|
</aside>
|
||||||
<?php else : //if no post in query ?>
|
<?php else : //if no post in query ?>
|
||||||
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
|
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -475,16 +475,16 @@ main {
|
||||||
color: $white;
|
color: $white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.archive-posts.resources{
|
||||||
|
header {
|
||||||
|
|
||||||
}
|
}
|
||||||
.hero-announcement {
|
.hero-announcement {
|
||||||
&.resources{
|
|
||||||
.slides {
|
.slides {
|
||||||
&.announcement.middle {
|
&.announcement.middle {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
// .widget_nav_menu,.widget_tag_cloud {
|
padding-top: $global-padding;
|
||||||
// width: auto;
|
|
||||||
// overflow: visible;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,6 +161,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.breadcrumbs {
|
||||||
|
color: scale-color($anchor-color, $saturation: -50%, $lightness: 60%);
|
||||||
|
font-size: $global-font-size *1.2;
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
@include breakpoint(small){
|
@include breakpoint(small){
|
||||||
}
|
}
|
||||||
@include breakpoint(medium){
|
@include breakpoint(medium){
|
||||||
|
|
|
@ -475,16 +475,16 @@ main {
|
||||||
color: $white;
|
color: $white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.archive-posts.resources{
|
||||||
|
header {
|
||||||
|
|
||||||
}
|
}
|
||||||
.hero-announcement {
|
.hero-announcement {
|
||||||
&.resources{
|
|
||||||
.slides {
|
.slides {
|
||||||
&.announcement.middle {
|
&.announcement.middle {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
// .widget_nav_menu,.widget_tag_cloud {
|
padding-top: $global-padding;
|
||||||
// width: auto;
|
|
||||||
// overflow: visible;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,6 +161,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.breadcrumbs {
|
||||||
|
color: scale-color($anchor-color, $saturation: -50%, $lightness: 60%);
|
||||||
|
font-size: $global-font-size *1.2;
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
@include breakpoint(small){
|
@include breakpoint(small){
|
||||||
}
|
}
|
||||||
@include breakpoint(medium){
|
@include breakpoint(medium){
|
||||||
|
|
|
@ -22,25 +22,24 @@
|
||||||
<section class="archive-posts resources">
|
<section class="archive-posts resources">
|
||||||
<header>
|
<header>
|
||||||
<h2>Resources <?php //post_type_archive_title(); ?></h2>
|
<h2>Resources <?php //post_type_archive_title(); ?></h2>
|
||||||
|
<h4 class="breadcrumbs">
|
||||||
<?php
|
<?php
|
||||||
if ( is_tax( 'archive_resource_category' ) ):
|
if ( is_tax( 'archive_resource_category' ) ):
|
||||||
echo '<h4 class="">';
|
|
||||||
single_cat_title( '<span class="h6">category:</span> ' );
|
single_cat_title( '<span class="h6">category:</span> ' );
|
||||||
echo '</h4>';
|
|
||||||
elseif ( is_tax( 'archive_resource_tag' ) ):
|
elseif ( is_tax( 'archive_resource_tag' ) ):
|
||||||
echo '<h4 class="">';
|
|
||||||
single_term_title( '<span class="h5">#</span>' );
|
single_term_title( '<span class="h5">#</span>' );
|
||||||
echo '</h4>';
|
else:
|
||||||
|
echo ' ';
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
</h4>
|
||||||
</header>
|
</header>
|
||||||
<aside class="hero hero-announcement resources">
|
<aside class="hero hero-announcement resources">
|
||||||
<?php dynamic_sidebar( 'announcement-resources-middle-widgets' ); ?>
|
<?php dynamic_sidebar( 'announcement-resources-middle-widgets' ); ?>
|
||||||
</aside>
|
</aside>
|
||||||
<main class="">
|
<main class="">
|
||||||
<?php $the_query = new WP_Query( array( 'post_type' => get_post_type( get_the_ID() ), 'posts_per_page' => '10' , 'paged' => $paged ) ); ?>
|
<?php if ( have_posts() ) : ?>
|
||||||
<?php if ( $the_query->have_posts() ) : ?>
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
|
|
||||||
<article class="">
|
<article class="">
|
||||||
<?php if ( has_post_thumbnail() ) :?>
|
<?php if ( has_post_thumbnail() ) :?>
|
||||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
|
||||||
|
@ -54,7 +53,7 @@
|
||||||
</a>
|
</a>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<h5 class="date">
|
<h5 class="date">
|
||||||
<?php the_date('Y');?>
|
<?php //the_date('d.m.Y');?>
|
||||||
</h5>
|
</h5>
|
||||||
<h3 class="entry-title">
|
<h3 class="entry-title">
|
||||||
<a href="<?php the_permalink(); ?>" rel="bookmark">
|
<a href="<?php the_permalink(); ?>" rel="bookmark">
|
||||||
|
@ -68,16 +67,15 @@
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
<?php endwhile;//end of the loop ?>
|
<?php endwhile;//end of the loop ?>
|
||||||
<?php //pagination here ?>
|
|
||||||
<?php wp_reset_postdata(); ?>
|
|
||||||
<?php else : //if no post in query ?>
|
|
||||||
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
|
|
||||||
<?php endif; ?>
|
|
||||||
</main>
|
</main>
|
||||||
|
<?php //pagination here ?>
|
||||||
<aside>
|
<aside>
|
||||||
<nav>
|
<nav>
|
||||||
<div class="post-next"><?php next_posts_link( __( '← Older', 'foundationpress' ) ); ?></div>
|
<div class="post-next"><?php next_posts_link( __( '← Older', 'foundationpress' ) ); ?></div>
|
||||||
<div class="post-previous"><?php previous_posts_link( __( 'Newer →', 'foundationpress' ) ); ?></div>
|
<div class="post-previous"><?php previous_posts_link( __( 'Newer →', 'foundationpress' ) ); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
</aside>
|
</aside>
|
||||||
|
<?php else : //if no post in query ?>
|
||||||
|
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
|
||||||
|
<?php endif; ?>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue