Skip to content

Commit d25eb79

Browse files
committed
Add theme files
- Copy and paste - removed all build tools - use this branch for better theme development: https://github.com/cresencio/wp-head-start/tree/asp-theme
1 parent db83375 commit d25eb79

40 files changed

Lines changed: 10451 additions & 0 deletions

404.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
/**
3+
* The template for displaying 404 pages (not found)
4+
*
5+
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
6+
*
7+
* @package ASP_Theme
8+
*/
9+
10+
get_header();
11+
?>
12+
13+
<div id="primary" class="content-area">
14+
<main id="main" class="site-main">
15+
16+
<section class="error-404 not-found">
17+
<header class="page-header">
18+
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'asp-theme' ); ?></h1>
19+
</header><!-- .page-header -->
20+
21+
<div class="page-content">
22+
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'asp-theme' ); ?></p>
23+
24+
<?php
25+
get_search_form();
26+
27+
the_widget( 'WP_Widget_Recent_Posts' );
28+
?>
29+
30+
<div class="widget widget_categories">
31+
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'asp-theme' ); ?></h2>
32+
<ul>
33+
<?php
34+
wp_list_categories( array(
35+
'orderby' => 'count',
36+
'order' => 'DESC',
37+
'show_count' => 1,
38+
'title_li' => '',
39+
'number' => 10,
40+
) );
41+
?>
42+
</ul>
43+
</div><!-- .widget -->
44+
45+
<?php
46+
/* translators: %1$s: smiley */
47+
$asp_theme_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'asp-theme' ), convert_smilies( ':)' ) ) . '</p>';
48+
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$asp_theme_archive_content" );
49+
50+
the_widget( 'WP_Widget_Tag_Cloud' );
51+
?>
52+
53+
</div><!-- .page-content -->
54+
</section><!-- .error-404 -->
55+
56+
</main><!-- #main -->
57+
</div><!-- #primary -->
58+
59+
<?php
60+
get_footer();

README.txt

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
Skip to content
2+
3+
Search or jump to…
4+
5+
Pull requests
6+
Issues
7+
Marketplace
8+
Explore
9+
10+
@cresencio
11+
0
12+
0 0 cresencio/asp-theme
13+
Code Issues 0 Pull requests 0 Projects 0 Wiki Insights Settings
14+
asp-theme/readme.txt
15+
Cresencio Cantu initial commit
16+
e31d2a6 on Mar 19
17+
39 lines (24 sloc) 1.09 KB
18+
19+
=== ASP Theme ===
20+
21+
Contributors: automattic
22+
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
23+
24+
Requires at least: 4.5
25+
Tested up to: 4.8
26+
Stable tag: 1.0.0
27+
License: GNU General Public License v2 or later
28+
License URI: LICENSE
29+
30+
A starter theme called ASP Theme.
31+
32+
== Description ==
33+
34+
A starter theme for WordPress.
35+
36+
== Installation ==
37+
38+
1. In your admin panel, go to Appearance > Themes and click the Add New button.
39+
2. Click Upload Theme and Choose File, then select the theme's .zip file. Click Install Now.
40+
3. Click Activate to use your new theme right away.
41+
42+
== Frequently Asked Questions ==
43+
44+
= Does this theme support any plugins? =
45+
46+
ASP Theme includes support for Infinite Scroll in Jetpack.
47+
48+
== Changelog ==
49+
50+
= 1.0 - May 12 2015 =
51+
* Initial release
52+
53+
== Credits ==
54+
55+
* Based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
56+
* normalize.css https://necolas.github.io/normalize.css/, (C) 2012-2016 Nicolas Gallagher and Jonathan Neal, [MIT](https://opensource.org/licenses/MIT)
57+
© 2019 GitHub, Inc.
58+
Terms
59+
Privacy
60+
Security
61+
Status
62+
Help
63+
Contact GitHub
64+
Pricing
65+
API
66+
Training
67+
Blog
68+
About

archive.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
/**
3+
* The template for displaying archive pages
4+
*
5+
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
6+
*
7+
* @package ASP_Theme
8+
*/
9+
10+
get_header();
11+
?>
12+
13+
<div id="primary" class="content-area">
14+
<main id="main" class="site-main">
15+
16+
<?php if ( have_posts() ) : ?>
17+
18+
<header class="page-header">
19+
<?php
20+
the_archive_title( '<h1 class="page-title">', '</h1>' );
21+
the_archive_description( '<div class="archive-description">', '</div>' );
22+
?>
23+
</header><!-- .page-header -->
24+
25+
<?php
26+
/* Start the Loop */
27+
while ( have_posts() ) :
28+
the_post();
29+
30+
/*
31+
* Include the Post-Type-specific template for the content.
32+
* If you want to override this in a child theme, then include a file
33+
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
34+
*/
35+
get_template_part( 'template-parts/content', get_post_type() );
36+
37+
endwhile;
38+
39+
the_posts_navigation();
40+
41+
else :
42+
43+
get_template_part( 'template-parts/content', 'none' );
44+
45+
endif;
46+
?>
47+
48+
</main><!-- #main -->
49+
</div><!-- #primary -->
50+
51+
<?php
52+
get_sidebar();
53+
get_footer();

comments.php

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
/**
3+
* The template for displaying comments
4+
*
5+
* This is the template that displays the area of the page that contains both the current comments
6+
* and the comment form.
7+
*
8+
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
9+
*
10+
* @package ASP_Theme
11+
*/
12+
13+
/*
14+
* If the current post is protected by a password and
15+
* the visitor has not yet entered the password we will
16+
* return early without loading the comments.
17+
*/
18+
if ( post_password_required() ) {
19+
return;
20+
}
21+
?>
22+
23+
<div id="comments" class="comments-area">
24+
25+
<?php
26+
// You can start editing here -- including this comment!
27+
if ( have_comments() ) :
28+
?>
29+
<h2 class="comments-title">
30+
<?php
31+
$asp_theme_comment_count = get_comments_number();
32+
if ( '1' === $asp_theme_comment_count ) {
33+
printf(
34+
/* translators: 1: title. */
35+
esc_html__( 'One thought on &ldquo;%1$s&rdquo;', 'asp-theme' ),
36+
'<span>' . get_the_title() . '</span>'
37+
);
38+
} else {
39+
printf( // WPCS: XSS OK.
40+
/* translators: 1: comment count number, 2: title. */
41+
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $asp_theme_comment_count, 'comments title', 'asp-theme' ) ),
42+
number_format_i18n( $asp_theme_comment_count ),
43+
'<span>' . get_the_title() . '</span>'
44+
);
45+
}
46+
?>
47+
</h2><!-- .comments-title -->
48+
49+
<?php the_comments_navigation(); ?>
50+
51+
<ol class="comment-list">
52+
<?php
53+
wp_list_comments( array(
54+
'style' => 'ol',
55+
'short_ping' => true,
56+
) );
57+
?>
58+
</ol><!-- .comment-list -->
59+
60+
<?php
61+
the_comments_navigation();
62+
63+
// If comments are closed and there are comments, let's leave a little note, shall we?
64+
if ( ! comments_open() ) :
65+
?>
66+
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'asp-theme' ); ?></p>
67+
<?php
68+
endif;
69+
70+
endif; // Check for have_comments().
71+
72+
comment_form();
73+
?>
74+
75+
</div><!-- #comments -->

footer.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/**
3+
* The template for displaying the footer
4+
*
5+
* Contains the closing of the #content div and all content after.
6+
*
7+
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8+
*
9+
* @package ASP_Theme
10+
*/
11+
12+
?>
13+
</div> <!-- .row -->
14+
</div> <!-- .container-fluid -->
15+
</div><!-- #content -->
16+
17+
<footer id="colophon" class="site-footer">
18+
19+
<?php get_sidebar('footer'); ?>
20+
21+
<div class="container-fluid">
22+
<div class="row">
23+
<div class="site-info">
24+
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'asp-theme' ) ); ?>">
25+
<?php
26+
/* translators: %s: CMS name, i.e. WordPress. */
27+
printf( esc_html__( 'Proudly powered by %s', 'asp-theme' ), 'WordPress' );
28+
?>
29+
</a>
30+
<span class="sep"> | </span>
31+
<?php
32+
/* translators: 1: Theme name, 2: Theme author. */
33+
printf( esc_html__( 'Theme: %1$s available on %2$s.', 'asp-theme' ), 'asp-theme', '<a href="https://github.com/cresencio/asp-theme">GitHub</a>' );
34+
?>
35+
</div><!-- .site-info -->
36+
</div>
37+
</div>
38+
</footer><!-- #colophon -->
39+
</div><!-- #page -->
40+
41+
<?php wp_footer(); ?>
42+
43+
</body>
44+
</html>

0 commit comments

Comments
 (0)