Skip to content

Commit

Permalink
Updated to w31 theme (from site edits).
Browse files Browse the repository at this point in the history
  • Loading branch information
robotpony committed Feb 28, 2021
1 parent 52c4e76 commit 85a0ea7
Show file tree
Hide file tree
Showing 37 changed files with 2,142 additions and 309 deletions.
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<article id="post-404">

<h1><?php _e( 'Page not found', 'nw' ); ?></h1>
<h1><?php _e( 'Page not found', 'html5blank' ); ?></h1>
<p>I have probably removed the page you have requested. I've recently pared down the site a bit, removing old, useless content. It's good to curate things, and filter out the crap. And the page you were looking for was crap.</p>

<p>I'm not returning a `404` or `30x`, as the content has been removed on purpose. It's not an error, and I want you to know what's up.</p>
Expand Down
5 changes: 5 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# w31 license

Copyright &copy; 2018 Bruce Alderson

Built by Bruce Alderson
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# w30
Warped theme 30 (a simple base WordPress theme)
# Warped 31

A simple blog theme.
8 changes: 5 additions & 3 deletions archive.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?php get_header(); ?>

<main role="main">
<main role="main"><div>
<!-- section -->
<section>

<h1><?php _e( 'Archives', 'nw' ); ?></h1>
<h1><?php _e( 'Archives', 'html5blank' ); ?></h1>

<?php get_template_part('loop'); ?>

<?php get_template_part('pagination'); ?>

</section>
</main>
<!-- /section -->
</div></main>

<?php get_sidebar(); ?>

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

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

<h1><?php _e( 'Author Archives for ', 'nw' ); echo get_the_author(); ?></h1>
<h1><?php _e( 'Author Archives for ', 'html5blank' ); echo get_the_author(); ?></h1>

<?php if ( get_the_author_meta('description')) : ?>

<?php echo get_avatar(get_the_author_meta('user_email')); ?>

<h2><?php _e( 'About ', 'nw' ); echo get_the_author() ; ?></h2>
<h2><?php _e( 'About ', 'html5blank' ); echo get_the_author() ; ?></h2>

<?php echo wpautop( get_the_author_meta('description') ); ?>

Expand All @@ -39,8 +39,8 @@

<!-- post details -->
<span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span>
<span class="author"><?php _e( 'Published by', 'nw' ); ?> <?php the_author_posts_link(); ?></span>
<span class="comments"><?php comments_popup_link( __( 'Leave your thoughts', 'nw' ), __( '1 Comment', 'nw' ), __( '% Comments', 'nw' )); ?></span>
<span class="author"><?php _e( 'Published by', 'html5blank' ); ?> <?php the_author_posts_link(); ?></span>
<span class="comments"><?php comments_popup_link( __( 'Leave your thoughts', 'html5blank' ), __( '1 Comment', 'html5blank' ), __( '% Comments', 'html5blank' )); ?></span>
<!-- /post details -->

<?php html5wp_excerpt('html5wp_index'); // Build your custom callback length in functions.php ?>
Expand All @@ -59,7 +59,7 @@
<!-- article -->
<article>

<h2><?php _e( 'Sorry, nothing to display.', 'nw' ); ?></h2>
<h2><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>

</article>
<!-- /article -->
Expand Down
67 changes: 67 additions & 0 deletions blogcast.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?php
/*
Template Name: Blogcast RSS Feed
*/
$numposts = -1;
$posts = query_posts('showposts='.$numposts.'&cat=-1'); // replace the number 1 with the ID of your tumblelog category
$more = 1;

header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true);
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
<?php do_action('rss2_ns'); ?>
>
<channel>
<title><?php bloginfo_rss('name'); wp_title_rss(); ?> - Podcast Feed</title>
<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
<link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss("description") ?></description>
<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
<?php the_generator( 'rss2' ); ?>
<language><?php echo get_option('rss_language'); ?></language>
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
<?php do_action('rss2_head'); ?>

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

<item>
<title><?php the_title_rss(); ?></title>
<link><?php the_permalink_rss(); ?></link>
<comments><?php comments_link(); ?></comments>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
<dc:creator><?php the_author(); ?></dc:creator>
<?php the_category_rss(); ?>
<guid isPermaLink="false"><?php the_guid(); ?></guid>
<?php if (get_option('rss_use_excerpt')) : ?>

<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php else : ?>

<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php if ( strlen( $post->post_content ) > 0 ) : ?>

<content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded>
<?php else : ?>

<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
<?php endif; ?>
<?php endif; ?>

<wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss>
<slash:comments><?php echo get_comments_number(); ?></slash:comments>
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>

</item>
<?php endwhile; ?>

</channel>
</rss>
20 changes: 7 additions & 13 deletions category.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
<?php get_header(); ?>

<main role="main">
<!-- section -->
<section>
<main><div>
<h4><?php _e( 'Found in: ', 'html5blank' ); the_category(' + '); ?></h4>
<section>
<?php get_template_part('loop'); ?>
</section>

<h1><?php _e( 'Categories for ', 'html5blank' ); single_cat_title(); ?></h1>
<?php get_template_part('pagination', 'part'); ?>

<?php get_template_part('loop'); ?>

<?php get_template_part('pagination'); ?>

</section>
<!-- /section -->
</main>

<?php get_sidebar(); ?>
</div></main>

<?php get_footer(); ?>
Loading

0 comments on commit 85a0ea7

Please sign in to comment.