Skip to content

Commit

Permalink
1.4.1 updates; custom ACF page template; remove clearfix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaiz committed Apr 13, 2019
1 parent 16ffcc0 commit bd1f6fd
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 226 deletions.
Binary file modified CHANGELOG.html
Binary file not shown.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Author: Joshua Michaels for studio.bio with help from Jon Iler

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

### 1.4.l 2019-04-13
- Removed last few remaining cf/clearfix calls in templates
- Added custom page template with no loop (for ACF pages)
- Updated formatting in theme templates throughout
- Updated Readme
- Fixed a "not enough sunshine" issue

### 1.4.0 2019-02-23
- Lots of Gutenberg updates: front-end styles, enqueues, `theme_support`
- updated new Gutenberg block default styles
Expand Down
91 changes: 91 additions & 0 deletions page-custom-noloop.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?php
/*
Template Name: Custom Page With No Loop
*
* This is the base custom page template with no loop(!). Why no loop?
* If you're using ACF fields and replacing the main content box and
* using this template, you won't need a loop.
*
* To use for your theme, change the name of your template from
* "Custom Page Example" above. Example:
*
* Template Name: My Custom Page
*
* Then save this template as page-mycustompage.php and it will show up
* as a template in the Page Templates drop-down on page edit screens in the admin.
*
* Important: the "Template Name: " is required by WordPress so that your template
* will show up as a choice in the admin.
*
* Remember to keep the markup and content separate.
*
* For more info: http://codex.wordpress.org/Page_Templates
*
* Visual interactive WordPress template hierarchy: https://wphierarchy.com
*/
?>

<?php get_header(); ?>

<div id="content">

<div id="inner-content" class="wrap">

<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">

<header class="article-header">

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

<div class="byline-wrap">

<?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>' );

echo '<span class="posted-on">' . plate_time_link() . '</span><span class="byline"> ' . $byline . '</span>';

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

?>

</div>

</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; ?>

</main>

</div>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
113 changes: 1 addition & 112 deletions readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,118 +53,7 @@ <h2 id="whatsincludedinplate">What&#8217;s Included In Plate?</h2>

<p>Also included is a range of template parts that you can reuse anywhere in your project.</p>

<p>Here&#8217;s the file structure (edited for clarity):</p>

<pre><code>.
├── 404.php
├── Gruntfile.js
├── acf-json
├── archive-custom_type.php
├── archive.php
├── comments.php
├── favicon.ico
├── favicon.png
├── footer.php
├── functions.php
├── header-full.php
├── header.php
├── index.php
├── library
│   ├── _plugins
│   │   └── custom-post-type.php
│   ├── admin.php
│   ├── css
│   │   ├── admin.css
│   │   ├── customizer.css
│   │   ├── editor-style.css
│   │   ├── editor.css
│   │   ├── gutenberg.css
│   │   ├── ie.css
│   │   ├── login.css
│   │   ├── style.css
│   ├── customizer.php
│   ├── extras
│   ├── images
│   ├── js
│   │   ├── a11y.js
│   │   ├── extras
│   │   │   └── extra-scripts.js
│   │   ├── libs
│   │   │   ├── modernizr-custom-min.js
│   │   │   └── modernizr-custom.js
│   │   ├── min
│   │   │   ├── a11y-min.js
│   │   │   ├── scripts-min.js
│   │   │   ├── scripts-min.js.map
│   │   │   └── theme-customizer-min.js
│   │   ├── scripts.js
│   │   └── theme-customizer.js
│   ├── plate.php
│   ├── scss
│   │   ├── admin.scss
│   │   ├── breakpoints
│   │   │   ├── _1029down.scss
│   │   │   ├── _1030up.scss
│   │   │   ├── _1240up.scss
│   │   │   ├── _1600up.scss
│   │   │   ├── _481up.scss
│   │   │   ├── _767down.scss
│   │   │   ├── _768up.scss
│   │   │   ├── _899down.scss
│   │   │   ├── _900up.scss
│   │   │   └── _base.scss
│   │   ├── customizer.scss
│   │   ├── editor-style.scss
│   │   ├── ie.scss
│   │   ├── login.scss
│   │   ├── modules
│   │   │   ├── _alerts.scss
│   │   │   ├── _buttons.scss
│   │   │   └── _forms.scss
│   │   ├── partials
│   │   │   ├── _cssgrid.scss
│   │   │   ├── _editor.scss
│   │   │   ├── _functions.scss
│   │   │   ├── _grid.scss
│   │   │   ├── _gutenberg.scss
│   │   │   ├── _mixins.scss
│   │   │   ├── _normalize.scss
│   │   │   ├── _print.scss
│   │   │   ├── _typography.scss
│   │   │   └── _variables.scss
│   │   └── style.scss
│   └── translation
├── page-custom-loop.php
├── page-custom.php
├── page-full.php
├── page-home.php
├── page-html.php
├── page-sidebar.php
├── page.php
├── search.php
├── searchform.php
├── sidebar.php
├── single-custom_type.php
├── single-full.php
├── single.php
├── style.css
├── taxonomy-custom_cat.php
└── templates
├── 404.php
├── archive-loop.php
├── byline.php
├── category-tags.php
├── comment-count.php
├── content-excerpt.php
├── format.php
├── header-title.php
├── index-loop.php
├── loop.php
├── post-navigation.php
└── single-loop.php
</code></pre>

<p>Use what you like and delete what you don&#8217;t need. It&#8217;s your thing — do what you wanna do.</p>
<p>Use, edit and customize what you like and delete what you don&#8217;t need. It&#8217;s your thing — do what you wanna do.</p>

<h4 id="🎉asofjune212018plateis1yearold">🎉 As of June 21, 2018, Plate is 1 year old!</h4>

Expand Down
112 changes: 1 addition & 111 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,117 +44,7 @@ Plate includes all of the files any robust WordPress theme should have: default

Also included is a range of template parts that you can reuse anywhere in your project.

Here's the file structure (edited for clarity):
```
.
├── 404.php
├── Gruntfile.js
├── acf-json
├── archive-custom_type.php
├── archive.php
├── comments.php
├── favicon.ico
├── favicon.png
├── footer.php
├── functions.php
├── header-full.php
├── header.php
├── index.php
├── library
│   ├── _plugins
│   │   └── custom-post-type.php
│   ├── admin.php
│   ├── css
│   │   ├── admin.css
│   │   ├── customizer.css
│   │   ├── editor-style.css
│   │   ├── editor.css
│   │   ├── gutenberg.css
│   │   ├── ie.css
│   │   ├── login.css
│   │   ├── style.css
│   ├── customizer.php
│   ├── extras
│   ├── images
│   ├── js
│   │   ├── a11y.js
│   │   ├── extras
│   │   │   └── extra-scripts.js
│   │   ├── libs
│   │   │   ├── modernizr-custom-min.js
│   │   │   └── modernizr-custom.js
│   │   ├── min
│   │   │   ├── a11y-min.js
│   │   │   ├── scripts-min.js
│   │   │   ├── scripts-min.js.map
│   │   │   └── theme-customizer-min.js
│   │   ├── scripts.js
│   │   └── theme-customizer.js
│   ├── plate.php
│   ├── scss
│   │   ├── admin.scss
│   │   ├── breakpoints
│   │   │   ├── _1029down.scss
│   │   │   ├── _1030up.scss
│   │   │   ├── _1240up.scss
│   │   │   ├── _1600up.scss
│   │   │   ├── _481up.scss
│   │   │   ├── _767down.scss
│   │   │   ├── _768up.scss
│   │   │   ├── _899down.scss
│   │   │   ├── _900up.scss
│   │   │   └── _base.scss
│   │   ├── customizer.scss
│   │   ├── editor-style.scss
│   │   ├── ie.scss
│   │   ├── login.scss
│   │   ├── modules
│   │   │   ├── _alerts.scss
│   │   │   ├── _buttons.scss
│   │   │   └── _forms.scss
│   │   ├── partials
│   │   │   ├── _cssgrid.scss
│   │   │   ├── _editor.scss
│   │   │   ├── _functions.scss
│   │   │   ├── _grid.scss
│   │   │   ├── _gutenberg.scss
│   │   │   ├── _mixins.scss
│   │   │   ├── _normalize.scss
│   │   │   ├── _print.scss
│   │   │   ├── _typography.scss
│   │   │   └── _variables.scss
│   │   └── style.scss
│   └── translation
├── page-custom-loop.php
├── page-custom.php
├── page-full.php
├── page-home.php
├── page-html.php
├── page-sidebar.php
├── page.php
├── search.php
├── searchform.php
├── sidebar.php
├── single-custom_type.php
├── single-full.php
├── single.php
├── style.css
├── taxonomy-custom_cat.php
└── templates
├── 404.php
├── archive-loop.php
├── byline.php
├── category-tags.php
├── comment-count.php
├── content-excerpt.php
├── format.php
├── header-title.php
├── index-loop.php
├── loop.php
├── post-navigation.php
└── single-loop.php
```
Use what you like and delete what you don't need. It's your thing — do what you wanna do.
Use, edit and customize what you like and delete what you don't need. It's your thing — do what you wanna do.

#### 🎉 As of June 21, 2018, Plate is 1 year old!

Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article">
<article id="post-<?php the_ID(); ?>" <?php post_class('post-search-result'); ?> role="article">

<header class="entry-header article-header">

Expand Down
2 changes: 1 addition & 1 deletion taxonomy-custom_cat.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div id="content">

<div id="inner-content" class="wrap cf">
<div id="inner-content" class="wrap">

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

Expand Down
2 changes: 1 addition & 1 deletion templates/index-loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

</header>

<section class="entry-content cf">
<section class="entry-content">

<?php the_content(); ?>

Expand Down

0 comments on commit bd1f6fd

Please sign in to comment.