Skip to content

Commit

Permalink
Gutenberg adds; html fixes' custom-no-loop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaiz committed Oct 21, 2019
1 parent 835457b commit 376d425
Show file tree
Hide file tree
Showing 5 changed files with 409 additions and 430 deletions.
Binary file modified CHANGELOG.html
Binary file not shown.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Author: Joshua Michaels for studio.bio with help from Jon Iler

*******************************************************************

### 1.4.4 2019-10-20
- added theme support for responsive embeds
- cleaned up `page-html.php`
- fixed `page-custom-no-loop.php` so that it actually has no loop now
- fixed 'Going back to Cali' issue.

### 1.4.3 2019-06-13
- added `body_open()` function supporting WP 5.2 features
- cleaned up some text encoding stuffs in some files
Expand Down
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,9 @@ function plate_theme_support() {
)
);

// Adds responsive embeds to Gutenberg blocks
add_theme_support( 'responsive-embeds' );

// Adds default Gutenberg styles to custom blocks
// Delete/comment out if you are adding your own block styles
add_theme_support( 'wp-block-styles' );
Expand Down
48 changes: 11 additions & 37 deletions page-custom-noloop.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,59 +33,33 @@

<main id="main" class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="https://schema.org/Blog">

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article" itemscope itemtype="https://schema.org/BlogPosting">

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article" itemscope itemtype="https://schema.org/BlogPosting">
<header class="article-header">

<header class="article-header">
<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>

<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
</header> <?php // end article header ?>

<div class="byline-wrap">
<section class="entry-content" itemprop="articleBody">

<?php // Get the author name; wrap it in a link.
if ( get_the_author_meta( 'ID' ) ) { $byline = sprintf( __( 'by %s', 'platetheme' ), '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . get_the_author() . '</a></span>' );
<?php // place your main content ACF calls here. ?>

echo '<span class="posted-on">' . plate_time_link() . '</span><span class="byline"> ' . $byline . '</span>';
</section> <?php // end article section ?>

} else { echo '<span class="posted-on">Posted on:' . plate_time_link() . '</span>'; }
<footer class="article-footer">

?>

</div>
</footer>

</header> <?php // end article header ?>

<section class="entry-content" itemprop="articleBody">

<?php the_content(); ?>

</section> <?php // end article section ?>

<footer class="article-footer">

</footer>

<?php comments_template(); ?>

</article>

<?php endwhile; ?>

<?php plate_page_navi( $wp_query ); ?>

<?php else : ?>

<?php get_template_part( 'templates/404'); ?>

<?php endif; ?>
</article>

</main>

</div>

</div>

<?php // remove the sidebar if you don't need it ?>
<?php get_sidebar(); ?>

<?php get_footer(); ?>
Loading

0 comments on commit 376d425

Please sign in to comment.