Skip to content

Commit

Permalink
04-30-2023
Browse files Browse the repository at this point in the history
  • Loading branch information
midkiffaries committed Apr 30, 2023
1 parent e65837b commit d84cf41
Show file tree
Hide file tree
Showing 16 changed files with 78 additions and 67 deletions.
4 changes: 2 additions & 2 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

<article class="page-404 page type-page not-found status-publish" id="page-404" itemscope itemtype="https://schema.org/NewsArticle">
<div class="page-404-container">
<div class="page-404-image">
<div class="page-404-image" itemprop="image">
<?=PAGE_404_IMAGE; // Error Image ?>
</div>
<h1 class="page-title" itemprop="name">Page Not Found</h1>
<div class="content-404" itemprop="description">
<div class="content-404" itemprop="text">
<?=PAGE_404_CONTENT; // Error Message ?>

<?=get_search_form('error'); // Search Form ?>
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changes to m20T1

### 1.3.4 Live (April 30, 2023)

* Adjustments to the social sharing in the header metadata.
* Adjustment and additions to the microcode in the HTML.

### 1.3.3 Live (April 29, 2023)

* Minor bug fixes and inclusion of vCard and iCalendar media library upload support.

### 1.3.2 Live (April 16, 2023)

* Adjustments to the additional post type content (Portfolio) and added a unique page to display those post types.
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ The intention is for this theme is to be minimally reliant on 3rd party plugins

- Compatible with WordPress 6.2
- Theme supports PHP 8.0+
- Built with SEO performance and social media sharing in mind
- Support for <b>theme.json</b>
- Built with SEO performance and social media sharing in mind, including schema.org <b>microdata</b>
- Built in basic image viewer, via nested <code>figure</code> <code>a</code> <code>img</code>
- Custom modals for alerts, confirmation and custom HTML
- Built in blog post read time in minutes
- Alternate page templates with full width and sidebar support
- Widget support on on all pages with customizations
- Widget support in the site header and footer
- Unique <i>front-page</i>, <i>404</i> and <i>attachment (image)</i> pages
- Featured image support for use as the hero/header image on posts and pages, with fallbacks
- Support for custom WordPress editor styling
- Featured image support for use as the hero/header image on posts and pages with a fallback image
- Support for custom WordPress editor styling via <b>theme.json</b> or <b>editor-style.css</b>
- Support for <b>dark mode</b> via a built in switch
- Built in support for an additional <i>post type</i>, default set as 'Portfolio'
- Enabled SVG files upload to media library
Expand Down
6 changes: 3 additions & 3 deletions archive-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<section class="portfolio-header" id="portfolio-page">
<div class="portfolio-header-container">
<h1 class="page-title" itemprop="name"><?=esc_html($postType->labels->singular_name); ?></h1>
<div class="subtitle"><?=esc_html($postType->description); ?></div>
<div class="subtitle" itemprop="about"><?=esc_html($postType->description); ?></div>
</div>
</section>

Expand Down Expand Up @@ -52,9 +52,9 @@

<article class="portfolio-page" itemscope itemtype="https://www.schema.org/CreativeWork">
<div <?php post_class(); ?>>
<h1 class="page-title"><?=esc_html($postType->labels->singular_name); ?> is Empty</h1>
<h1 class="page-title" itemprop="name"><?=esc_html($postType->labels->singular_name); ?> is Empty</h1>
<div class="subtitle">There seems to be nothing here.</div>
<p>Would you like to try a search to find what you are looking for?</p>
<p itemprop="text">Would you like to try a search to find what you are looking for?</p>
<?php get_search_form('archive'); // Search Form ?>
</div>
</article>
Expand Down
28 changes: 14 additions & 14 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<section class="archive-header" id="archive-page">
<div class="archive-header-container">
<h1 class="page-title" itemprop="name">
<h1 class="page-title" itemprop="name author">
<?php $post = $posts[0]; ?>
<?php /* Category */ if (is_category()) single_cat_title(); ?>
<?php /* Tags */ if (is_tag()) printf("<b>#</b>") . single_tag_title(); ?>
Expand All @@ -19,7 +19,7 @@
<?php /* Author */ if (is_author()) printf($curauth->display_name); ?>
<?php /* Paged */ if (isset($_GET['paged']) && !empty($_GET['paged'])) printf("Blog Archives"); ?>
</h1>
<div class="subtitle">
<div class="subtitle" itemprop="about">
<?php /* Category */ if (is_category()) printf(strip_tags(category_description())) || printf("All the posts under this category"); ?>
<?php /* Tags */ if (is_tag()) printf(strip_tags(tag_description())) || printf("All the posts that have this tag"); ?>
<?php /* Daily */ if (is_day()) printf("Posts from this date"); ?>
Expand All @@ -31,21 +31,21 @@
</section>

<?php if (is_author()) : // Display Author Page for when showing by author ?>
<section class="archive-author-bio <?=get_option( 'show_avatars' ) ? 'show-avatars' : ''; ?>">
<section class="archive-author-bio <?=get_option( 'show_avatars' ) ? 'show-avatars' : ''; ?>" itemscope itemtype="https://schema.org/Person">
<div class="author-container">
<div class="author-avatar">
<figure class="alignleft">
<figure class="alignleft" itemprop="image">
<?=get_avatar(get_the_author_meta('ID'), 128); ?>
</figure>
</div>
<p class="author-bio-meta"><b><?=user_level(get_the_author_meta( 'user_level' )); ?><?=number_format_i18n(get_the_author_posts()); ?> Posts</b></p>
<p class="author-bio-about"><?=nl2br($curauth->description); ?></p>
<p class="author-bio-about" itemprop="description"><?=nl2br($curauth->description); ?></p>
<p class="author-bio-contact">
<?php if ($curauth->linkedin) : ?><a href="<?=esc_url($curauth->linkedin); ?>" rel="author">LinkedIn</a> | <?php endif; ?>
<?php if ($curauth->twitter) : ?><a href="<?=esc_url($curauth->twitter); ?>" rel="author">Twitter</a> | <?php endif; ?>
<?php if ($curauth->facebook) : ?><a href="<?=esc_url($curauth->facebook); ?>" rel="author">Facebook</a> | <?php endif; ?>
<?php if ($curauth->instagram) : ?><a href="<?=esc_url($curauth->instagram); ?>" rel="author">Instagram</a> | <?php endif; ?>
<?php if ($curauth->user_url) : ?><a href="<?=esc_url($curauth->user_url); ?>" rel="author">Website</a><?php endif; ?>
<?php if ($curauth->linkedin) : ?><a href="<?=esc_url($curauth->linkedin); ?>" rel="author" itemprop="url">LinkedIn</a> | <?php endif; ?>
<?php if ($curauth->twitter) : ?><a href="<?=esc_url($curauth->twitter); ?>" rel="author" itemprop="url">Twitter</a> | <?php endif; ?>
<?php if ($curauth->facebook) : ?><a href="<?=esc_url($curauth->facebook); ?>" rel="author" itemprop="url">Facebook</a> | <?php endif; ?>
<?php if ($curauth->instagram) : ?><a href="<?=esc_url($curauth->instagram); ?>" rel="author" itemprop="url">Instagram</a> | <?php endif; ?>
<?php if ($curauth->user_url) : ?><a href="<?=esc_url($curauth->user_url); ?>" rel="author" itemprop="url">Website</a><?php endif; ?>
</p>
</div>
</section>
Expand All @@ -64,8 +64,8 @@
<h2 class="entry-title" id="<?=$post->post_name; ?>" itemprop="name"><a href="<?=esc_url(the_permalink()); ?>" rel="bookmark"><?=the_title(); ?></a></h2>
<div class="entry-metadata">
<span class="entry-author">Written By <a href="<?=get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>" itemprop="author" rel="author"><?php the_author(); ?></a></span>
<span class="entry-read-time"><?=post_separator(); ?> <?=reading_time(); ?></span>
<span class="entry-comments"><?=post_separator(); ?> <a href="<?=esc_url(the_permalink()); ?>#Comments" rel="bookmark"><?=comments_number('No Comments', 'One Comment', '% Comments');?></a></span>
<span class="entry-read-time" itemprop="duration"><?=post_separator(); ?> <?=reading_time(); ?></span>
<span class="entry-comments" itemprop="commentcount"><?=post_separator(); ?> <a href="<?=esc_url(the_permalink()); ?>#Comments" rel="bookmark"><?=comments_number('No Comments', 'One Comment', '% Comments');?></a></span>
</div>
</header>
<div class="the-content content-excerpt" itemprop="description">
Expand All @@ -91,7 +91,7 @@

<article class="archive-page" itemscope itemtype="https://schema.org/NewsArticle">
<div <?php post_class(); ?>>
<h1 class="page-title">
<h1 class="page-title" itemprop="name">
<?php
if ( is_category() ) { // By category
printf("There are no posts under the <b>%s</b> category.", single_cat_title('', false));
Expand All @@ -104,7 +104,7 @@
}
?>
</h1>
<p>Would you like to try a search to find what you are looking for?</p>
<p itemprop="text">Would you like to try a search to find what you are looking for?</p>
<?php get_search_form('archive'); // Search Form ?>
</div>
</article>
Expand Down
6 changes: 3 additions & 3 deletions attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<div class="post-container">
<h1 class="page-title" itemprop="name"><?=the_title(); ?></h1>
<div class="wp-block-image" role="figure">
<div class="image-attachment"><a href="<?=wp_get_attachment_url(get_the_ID()); ?>" title="View this image or document" aria-title="View this image or document">
<div class="image-attachment"><a href="<?=wp_get_attachment_url(get_the_ID()); ?>" title="View this image or document" aria-title="View this image or document" itemprop="image">
<?=attachment_page_image(get_the_ID()); ?>
</a></div>
<div class="image-caption" role="caption"><?=wp_kses_post( wp_get_attachment_caption() ); ?></div>
</div>
<div class="image-description" itemprop="description">
<div class="image-description" itemprop="text">
<?=the_content("<p>Continue Reading &raquo;</p>"); ?>
</div>
<p class="image-info" role="note">
Expand All @@ -24,7 +24,7 @@
<br>
<span class="image-category">Category: <b><?php the_category(' '); ?></b></span>
<br>
<span class="image-filesize"><?=image_metadata(wp_get_attachment_url(get_the_ID())); ?></span>
<span class="image-filesize" itemprop="size"><?=image_metadata(wp_get_attachment_url(get_the_ID())); ?></span>
</p>
<div class="image-share"><?=blog_post_share(); ?></div>
<div class="image-links"><i>Related Post</i><br> <a href="<?=get_permalink( get_post_parent(get_the_ID()) ); ?>"><?php if (has_post_parent(get_the_ID())) echo get_the_title( get_post_parent(get_the_ID()) ); else echo "Not attached to any posts"; ?></a></div>
Expand Down
10 changes: 5 additions & 5 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
<?php if ( post_password_required() ) : // If comments are password protected ?>
<section class="comments-closed" role="comments" id="Comments">
<div>
<p>🛑 <i>These comments are password protected.</i></p>
<p itemprop="text">🛑 <i>These comments are password protected.</i></p>
</div>
</section>
<?php return; endif; ?>

<?php if (have_comments()) : // If post has comments ?>

<section class="comment-list" role="comments" id="Comments">
<section class="comment-list" role="comments" id="Comments" itemscope itemtype="https://schema.org/Comments">
<div class="comment-container">
<h2 class="comments-title"><?php comments_number('No Comments', 'Comment', 'Comments'); ?> <small><?php comments_number('0', '1', '%'); ?></small></h2>
<ol role="list" class="list-comments">
<?php wp_list_comments('type=comment&avatar_size=64&login_text=&callback=custom_comment_style'); // List all the comments ?>
</ol>
<?php if (!comments_open()) : // If comments are closed ?>
<div class="comments-closed">
<p>🚫 <i>The comments are closed for this article.</i></p>
<p itemprop="text">🚫 <i>The comments are closed for this article.</i></p>
</div>
<?php endif; ?>
</div>
Expand All @@ -39,15 +39,15 @@

<section class="comments-closed" role="comments" id="Comments">
<div>
<p>😃 <i>Be the first to comment on this article.</i></p>
<p itemprop="text">😃 <i>Be the first to comment on this article.</i></p>
</div>
</section>

<?php else : // Comments are closed ?>

<section class="comments-closed" role="comments" id="Comments">
<div>
<p>🚫 <i>The comments are closed for this article.</i></p>
<p itemprop="text">🚫 <i>The comments are closed for this article.</i></p>
</div>
</section>

Expand Down
6 changes: 3 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

<div class="footer-notice">
<hr class="footer-rule">
<div class="footer-copyright">Copyright &copy; <time datetime="<?=date('Y'); ?>"><?=date('Y'); ?></time> <?=bloginfo('name'); ?>. All rights reserved.</div>
<div class="footer-copyright" itemprop="license">Copyright &copy; <time datetime="<?=date('Y'); ?>" itemprop="copyrightYear"><?=date('Y'); ?></time> <?=bloginfo('name'); ?>. All rights reserved.</div>
<div class="footer-footnote">
<a href="https://github.com/midkiffaries/m20T1" class="wp-theme-title"><?=wp_get_theme()->get('Name'); ?> Theme</a> |
<a href="<?=esc_url(home_url()); ?>/privacy-policy/" rel="license">Privacy Policy</a>
<a href="https://github.com/midkiffaries/m20T1" class="wp-theme-title" itemprop="url"><?=wp_get_theme()->get('Name'); ?> Theme</a> |
<a href="<?=esc_url(home_url()); ?>/privacy-policy/" rel="license" itemprop="license">Privacy Policy</a>
</div>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<article <?php post_class(); ?> id="<?=$post->post_name; ?>" itemscope itemtype="https://schema.org/NewsArticle">
<div>
<h1 class="page-title hidden" itemprop="name" aria-hidden="true"><?php the_title(); ?></h1>
<div class="the-content" itemprop="description">
<div class="the-content" itemprop="text">
<?php the_content("<p>Read the rest of this page &raquo;</p>"); ?>

</div>
Expand Down
17 changes: 10 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,10 @@ function Header_Hero($id) {
}

?>
<div class="header-hero-image header-<?=$className; ?>" style="<?=$featuredImage; ?>">
<div class="header-hero-image header-<?=$className; ?>" style="<?=$featuredImage; ?>" itemprop="image">
<div class="header-hero-gradient"></div>
<div class="header-hero-overlay"></div>
<div class="header-hero-caption" role="caption"><?=$attachmentTitle; ?></div>
<div class="header-hero-caption" role="caption" itemprop="name"><?=$attachmentTitle; ?></div>
</div>
<?php
}
Expand Down Expand Up @@ -810,22 +810,25 @@ function attachment_page_image($id) {
function custom_comment_style($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
<li <?=comment_class(); ?> id="comment-<?=comment_ID() ?>">
<li <?=comment_class(); ?> id="comment-<?=comment_ID() ?>" itemprop="comment">
<div class="comment-content" role="comment">
<header class="comment-header">
<span class="comment-avatar hidden">
<figure class="alignleft" aria-label="Authors Avatar">
<figure class="alignleft" aria-label="Authors Avatar" itemprop="image">
<?=get_avatar( get_the_author_meta( 'ID' ), 48 ); ?>
</figure>
</span>
<span class="comment-author" rel="author"><?php printf(__('%s'), get_comment_author()); ?></span>
<span class="comment-metadata"><a href="<?=esc_url(get_comment_link($comment->comment_ID)) ?>" rel="bookmark" aria-label="Get the link to this comment">#</a> <time class="comment-date" itemprop="datePublished"><?php printf(__('%1$s'), get_comment_date('F j, Y ~ h:ma')); ?></time></span>
<span class="comment-author" rel="author" itemprop="author"><?php printf(__('%s'), get_comment_author()); ?></span>
<span class="comment-metadata">
<a href="<?=esc_url(get_comment_link($comment->comment_ID)) ?>" rel="bookmark" itemprop="url" aria-label="Get the link to this comment">#</a>
<time class="comment-date" itemprop="datePublished"><?php printf(__('%1$s'), get_comment_date('F j, Y ~ h:ma')); ?></time>
</span>
<span class="comment-reply"><?=get_comment_reply_link( __( 'Reply', 'textdomain' ), '', '' ); ?></span>
</header>
<?php if ($comment->comment_approved == '0') : ?>
<div class="comment-moderation"><?php _e('⚠️ Your comment is awaiting moderation.'); ?></div>
<?php endif; ?>
<div class="comment-text"><?=comment_text(); ?></div>
<div class="comment-text" itemprop="text"><?=comment_text(); ?></div>
<div class="comment-edit"><?=edit_comment_link( __( 'Edit Comment', 'textdomain' ), '', '' ); ?></div>
</div>
</li>
Expand Down
6 changes: 3 additions & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<a href="#main-content" class="nav-skip">Skip to main content</a>
<div class="header-menubar">
<div class="header-title">
<p class="header-logo">
<a href="<?=home_url(); ?>" rel="home" itemprop="url"><?=get_custom_logo(); ?></a>
<p class="header-logo" itemprop="title">
<a href="<?=home_url(); ?>" rel="home" itemprop="image"><?=get_custom_logo(); ?></a>
</p>
<div class="header-breadcrumbs"><?php if ( !is_front_page() ) breadcrumb_trail(); // Show breadcrumb trail ?></div>
<div class="header-breadcrumbs" itemprop="breadcrumb"><?php if ( !is_front_page() ) breadcrumb_trail(); // Show breadcrumb trail ?></div>
</div>
<button class="menu-button" id="btnMenu" aria-label="Open Menu" data-menu-id="MainMenu"></button>
<div class="header-content">
Expand Down
Loading

0 comments on commit d84cf41

Please sign in to comment.