Skip to content

Commit 2b27f2e

Browse files
committed
initial commit
Take over commit from past dev work to date
0 parents  commit 2b27f2e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+10724
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

404.php

+60
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 Arizona
8+
*/
9+
10+
get_header();
11+
?>
12+
13+
<main id="primary" class="site-main">
14+
15+
<section class="error-404 not-found">
16+
<header class="page-header">
17+
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'arizona' ); ?></h1>
18+
</header><!-- .page-header -->
19+
20+
<div class="page-content">
21+
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'arizona' ); ?></p>
22+
23+
<?php
24+
get_search_form();
25+
26+
the_widget( 'WP_Widget_Recent_Posts' );
27+
?>
28+
29+
<div class="widget widget_categories">
30+
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'arizona' ); ?></h2>
31+
<ul>
32+
<?php
33+
wp_list_categories(
34+
array(
35+
'orderby' => 'count',
36+
'order' => 'DESC',
37+
'show_count' => 1,
38+
'title_li' => '',
39+
'number' => 10,
40+
)
41+
);
42+
?>
43+
</ul>
44+
</div><!-- .widget -->
45+
46+
<?php
47+
/* translators: %1$s: smiley */
48+
$arizona_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'arizona' ), convert_smilies( ':)' ) ) . '</p>';
49+
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$arizona_archive_content" );
50+
51+
the_widget( 'WP_Widget_Tag_Cloud' );
52+
?>
53+
54+
</div><!-- .page-content -->
55+
</section><!-- .error-404 -->
56+
57+
</main><!-- #main -->
58+
59+
<?php
60+
get_footer();

LICENSE

+339
Large diffs are not rendered by default.

README.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[![Build Status](https://travis-ci.org/Automattic/_s.svg?branch=master)](https://travis-ci.org/Automattic/_s)
2+
3+
_s
4+
===
5+
6+
Hi. I'm a starter theme called `_s`, or `underscores`, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
7+
8+
My ultra-minimal CSS might make me look like theme tartare but that means less stuff to get in your way when you're designing your awesome theme. Here are some of the other more interesting things you'll find here:
9+
10+
* A modern workflow with a pre-made command-line interface to turn your project into a more pleasant experience.
11+
* A just right amount of lean, well-commented, modern, HTML5 templates.
12+
* A custom header implementation in `inc/custom-header.php`. Just add the code snippet found in the comments of `inc/custom-header.php` to your `header.php` template.
13+
* Custom template tags in `inc/template-tags.php` that keep your templates clean and neat and prevent code duplication.
14+
* Some small tweaks in `inc/template-functions.php` that can improve your theming experience.
15+
* A script at `js/navigation.js` that makes your menu a toggled dropdown on small screens (like your phone), ready for CSS artistry. It's enqueued in `functions.php`.
16+
* 2 sample layouts in `sass/layouts/` made using CSS Grid for a sidebar on either side of your content. Just uncomment the layout of your choice in `sass/style.scss`.
17+
Note: `.no-sidebar` styles are automatically loaded.
18+
* Smartly organized starter CSS in `style.css` that will help you to quickly get your design off the ground.
19+
* Full support for `WooCommerce plugin` integration with hooks in `inc/woocommerce.php`, styling override woocommerce.css with product gallery features (zoom, swipe, lightbox) enabled.
20+
* Licensed under GPLv2 or later. :) Use it to make something cool.
21+
22+
Installation
23+
---------------
24+
25+
### Requirements
26+
27+
`_s` requires the following dependencies:
28+
29+
- [Node.js](https://nodejs.org/)
30+
- [Composer](https://getcomposer.org/)
31+
32+
### Quick Start
33+
34+
Clone or download this repository, change its name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a six-step find and replace on the name in all the templates.
35+
36+
1. Search for `'_s'` (inside single quotations) to capture the text domain and replace with: `'megatherium-is-awesome'`.
37+
2. Search for `_s_` to capture all the functions names and replace with: `megatherium_is_awesome_`.
38+
3. Search for `Text Domain: _s` in `style.css` and replace with: `Text Domain: megatherium-is-awesome`.
39+
4. Search for <code>&nbsp;_s</code> (with a space before it) to capture DocBlocks and replace with: <code>&nbsp;Megatherium_is_Awesome</code>.
40+
5. Search for `_s-` to capture prefixed handles and replace with: `megatherium-is-awesome-`.
41+
6. Search for `_S_` (in uppercase) to capture constants and replace with: `MEGATHERIUM_IS_AWESOME_`.
42+
43+
Then, update the stylesheet header in `style.css`, the links in `footer.php` with your own information and rename `_s.pot` from `languages` folder to use the theme's slug. Next, update or delete this readme.
44+
45+
### Setup
46+
47+
To start using all the tools that come with `_s` you need to install the necessary Node.js and Composer dependencies :
48+
49+
```sh
50+
$ composer install
51+
$ npm install
52+
```
53+
54+
### Available CLI commands
55+
56+
`_s` comes packed with CLI commands tailored for WordPress theme development :
57+
58+
- `composer lint:wpcs` : checks all PHP files against [PHP Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/).
59+
- `composer lint:php` : checks all PHP files for syntax errors.
60+
- `composer make-pot` : generates a .pot file in the `languages/` directory.
61+
- `npm run compile:css` : compiles SASS files to css.
62+
- `npm run compile:rtl` : generates an RTL stylesheet.
63+
- `npm run watch` : watches all SASS files and recompiles them to css when they change.
64+
- `npm run lint:scss` : checks all SASS files against [CSS Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/).
65+
- `npm run lint:js` : checks all JavaScript files against [JavaScript Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/javascript/).
66+
- `npm run bundle` : generates a .zip archive for distribution, excluding development and system files.
67+
68+
Now you're ready to go! The next step is easy to say, but harder to do: make an awesome WordPress theme. :)
69+
70+
Good luck!

aosanimation.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

archive.php

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

arizona.pot

+198
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
# Copyright (C) 2020 Automattic
2+
# This file is distributed under the GNU General Public License v2 or later.
3+
msgid ""
4+
msgstr ""
5+
"Project-Id-Version: _s 1.0.0\n"
6+
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/_s\n"
7+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8+
"Language-Team: LANGUAGE <[email protected]>\n"
9+
"MIME-Version: 1.0\n"
10+
"Content-Type: text/plain; charset=UTF-8\n"
11+
"Content-Transfer-Encoding: 8bit\n"
12+
"POT-Creation-Date: 2020-04-17T21:03:15+00:00\n"
13+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14+
"X-Generator: WP-CLI 2.4.0\n"
15+
"X-Domain: _s\n"
16+
17+
#. Theme Name of the theme
18+
msgid "_s"
19+
msgstr ""
20+
21+
#. Theme URI of the theme
22+
msgid "https://underscores.me/"
23+
msgstr ""
24+
25+
#. Description of the theme
26+
msgid "Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for."
27+
msgstr ""
28+
29+
#. Author of the theme
30+
msgid "Automattic"
31+
msgstr ""
32+
33+
#. Author URI of the theme
34+
msgid "https://automattic.com/"
35+
msgstr ""
36+
37+
#: 404.php:18
38+
msgid "Oops! That page can&rsquo;t be found."
39+
msgstr ""
40+
41+
#: 404.php:22
42+
msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?"
43+
msgstr ""
44+
45+
#: 404.php:31
46+
msgid "Most Used Categories"
47+
msgstr ""
48+
49+
#. translators: %1$s: smiley
50+
#: 404.php:49
51+
msgid "Try looking in the monthly archives. %1$s"
52+
msgstr ""
53+
54+
#. translators: 1: title.
55+
#: comments.php:35
56+
msgid "One thought on &ldquo;%1$s&rdquo;"
57+
msgstr ""
58+
59+
#. translators: 1: comment count number, 2: title.
60+
#: comments.php:41
61+
msgctxt "comments title"
62+
msgid "%1$s thought on &ldquo;%2$s&rdquo;"
63+
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
64+
msgstr[0] ""
65+
msgstr[1] ""
66+
67+
#: comments.php:68
68+
msgid "Comments are closed."
69+
msgstr ""
70+
71+
#: footer.php:18
72+
msgid "https://wordpress.org/"
73+
msgstr ""
74+
75+
#. translators: %s: CMS name, i.e. WordPress.
76+
#: footer.php:21
77+
msgid "Proudly powered by %s"
78+
msgstr ""
79+
80+
#. translators: 1: Theme name, 2: Theme author.
81+
#: footer.php:27
82+
msgid "Theme: %1$s by %2$s."
83+
msgstr ""
84+
85+
#: functions.php:53
86+
msgid "Primary"
87+
msgstr ""
88+
89+
#: functions.php:130
90+
msgid "Sidebar"
91+
msgstr ""
92+
93+
#: functions.php:132
94+
msgid "Add widgets here."
95+
msgstr ""
96+
97+
#: header.php:26
98+
msgid "Skip to content"
99+
msgstr ""
100+
101+
#: header.php:49
102+
msgid "Primary Menu"
103+
msgstr ""
104+
105+
#. translators: %s: post date.
106+
#: inc/template-tags.php:30
107+
msgctxt "post date"
108+
msgid "Posted on %s"
109+
msgstr ""
110+
111+
#. translators: %s: post author.
112+
#: inc/template-tags.php:46
113+
msgctxt "post author"
114+
msgid "by %s"
115+
msgstr ""
116+
117+
#. translators: used between list items, there is a space after the comma
118+
#: inc/template-tags.php:63
119+
msgid ", "
120+
msgstr ""
121+
122+
#. translators: 1: list of categories.
123+
#: inc/template-tags.php:66
124+
msgid "Posted in %1$s"
125+
msgstr ""
126+
127+
#. translators: used between list items, there is a space after the comma
128+
#: inc/template-tags.php:70
129+
msgctxt "list item separator"
130+
msgid ", "
131+
msgstr ""
132+
133+
#. translators: 1: list of tags.
134+
#: inc/template-tags.php:73
135+
msgid "Tagged %1$s"
136+
msgstr ""
137+
138+
#. translators: %s: post title
139+
#: inc/template-tags.php:83
140+
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
141+
msgstr ""
142+
143+
#. translators: %s: Name of current post. Only visible to screen readers
144+
#: inc/template-tags.php:100
145+
#: template-parts/content-page.php:39
146+
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
147+
msgstr ""
148+
149+
#: inc/woocommerce.php:186
150+
msgid "View your shopping cart"
151+
msgstr ""
152+
153+
#. translators: number of items in the mini cart.
154+
#: inc/woocommerce.php:190
155+
msgid "%d item"
156+
msgid_plural "%d items"
157+
msgstr[0] ""
158+
msgstr[1] ""
159+
160+
#. translators: %s: search query.
161+
#: search.php:22
162+
msgid "Search Results for: %s"
163+
msgstr ""
164+
165+
#: single.php:23
166+
msgid "Previous:"
167+
msgstr ""
168+
169+
#: single.php:24
170+
msgid "Next:"
171+
msgstr ""
172+
173+
#: template-parts/content-none.php:14
174+
msgid "Nothing Found"
175+
msgstr ""
176+
177+
#. translators: 1: link to WP admin new post page.
178+
#: template-parts/content-none.php:24
179+
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
180+
msgstr ""
181+
182+
#: template-parts/content-none.php:37
183+
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
184+
msgstr ""
185+
186+
#: template-parts/content-none.php:44
187+
msgid "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help."
188+
msgstr ""
189+
190+
#: template-parts/content-page.php:25
191+
#: template-parts/content.php:53
192+
msgid "Pages:"
193+
msgstr ""
194+
195+
#. translators: %s: Name of current post. Only visible to screen readers
196+
#: template-parts/content.php:40
197+
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
198+
msgstr ""

0 commit comments

Comments
 (0)