forked, cloned, performed find/replace per 'how to get started' in fork parent

This commit is contained in:
Adam Piontek 2021-07-02 10:24:48 -04:00
parent a230d6031d
commit 41f4ab0850
15 changed files with 43 additions and 40 deletions

View file

@ -6,11 +6,11 @@ A minimalistic WordPress starter theme, based on Tailwind and PurgeCSS.
- [Composer](https://getcomposer.org) - [Composer](https://getcomposer.org)
## How to get started ## How to get started
1. Clone or [download](https://github.com/freeshifter/wp-tailwind/archive/master.zip "Download the WP Tailwind Zip") the project onto your `themes` directory `(./wp-content/themes)` 1. Clone or [download](https://github.com/freeshifter/wp-73k/archive/master.zip "Download the WP Tailwind Zip") the project onto your `themes` directory `(./wp-content/themes)`
2. Run a find/replace for the following strings: 2. Run a find/replace for the following strings:
- `wp-tailwind` - `wp-73k`
- `WP_Tailwind` - `WP_73k`
- `wp_tailwind_` - `wp_73k_`
3. Run `composer install` 3. Run `composer install`
4. Run `npm install` 4. Run `npm install`
5. Update the BrowserSyncPlugin configuration in `webpack.config.js` to the domain of your local installation. 5. Update the BrowserSyncPlugin configuration in `webpack.config.js` to the domain of your local installation.

View file

@ -6,7 +6,7 @@
* @since 1.0.0 * @since 1.0.0
*/ */
namespace WP_Tailwind; namespace WP_73k;
get_header(); ?> get_header(); ?>
<div class="container mx-auto relative z-10 mb-16 lg:mb-32 flex items-start"> <div class="container mx-auto relative z-10 mb-16 lg:mb-32 flex items-start">

View file

@ -27,7 +27,7 @@ if ( post_password_required() ) {
<h2 class="comments-title"> <h2 class="comments-title">
<?php <?php
printf( printf(
esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'wp-tailwind' ) ), esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'wp-73k' ) ),
number_format_i18n( get_comments_number() ), number_format_i18n( get_comments_number() ),
'<span>' . get_the_title() . '</span>' '<span>' . get_the_title() . '</span>'
); );
@ -37,7 +37,7 @@ if ( post_password_required() ) {
<?php <?php
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav id="comment-nav-above" class="navigation comment-navigation"> <nav id="comment-nav-above" class="navigation comment-navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wp-tailwind' ); ?></h2> <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wp-73k' ); ?></h2>
<div class="nav-links"> <div class="nav-links">
<div class="nav-previous"><?php previous_comments_link( esc_html( 'Older Comments' ) ); ?></div> <div class="nav-previous"><?php previous_comments_link( esc_html( 'Older Comments' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html( 'Newer Comments' ) ); ?></div> <div class="nav-next"><?php next_comments_link( esc_html( 'Newer Comments' ) ); ?></div>
@ -57,7 +57,7 @@ if ( post_password_required() ) {
<?php <?php
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav id="comment-nav-below" class="navigation comment-navigation"> <nav id="comment-nav-below" class="navigation comment-navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wp-tailwind' ); ?></h2> <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wp-73k' ); ?></h2>
<div class="nav-links"> <div class="nav-links">
<div class="nav-previous"><?php previous_comments_link( esc_html( 'Older Comments' ) ); ?></div> <div class="nav-previous"><?php previous_comments_link( esc_html( 'Older Comments' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html( 'Newer Comments' ) ); ?></div> <div class="nav-next"><?php next_comments_link( esc_html( 'Newer Comments' ) ); ?></div>

View file

@ -6,7 +6,7 @@
* @since 1.0.0 * @since 1.0.0
*/ */
namespace WP_Tailwind; namespace WP_73k;
?> ?>
<article <?php post_class( 'bg-white border-2 border-gray-400 p-8' ); ?> itemscope itemtype="https://schema.org/CreativeWork"> <article <?php post_class( 'bg-white border-2 border-gray-400 p-8' ); ?> itemscope itemtype="https://schema.org/CreativeWork">

View file

@ -9,7 +9,7 @@
* @package Freeshifter * @package Freeshifter
*/ */
namespace WP_Tailwind; namespace WP_73k;
?> ?>
</main> </main>
@ -19,7 +19,7 @@ namespace WP_Tailwind;
<div class="lg:flex lg:justify-between"> <div class="lg:flex lg:justify-between">
<div class="lg:w-1/4 text-center lg:text-left"> <div class="lg:w-1/4 text-center lg:text-left">
<div class="text-xl"> <div class="text-xl">
<p class="text-sm">WP Tailwind is a utility-first starter theme for WordPress by <a href="https://www.freeshifter.com">Freeshifter LLC</a> and is totally free! <a href="https://www.github.com/freeshifter/wp-tailwind">Contribute on GitHub</a></a></p> <p class="text-sm">WP Tailwind is a utility-first starter theme for WordPress by <a href="https://www.freeshifter.com">Freeshifter LLC</a> and is totally free! <a href="https://www.github.com/freeshifter/wp-73k">Contribute on GitHub</a></a></p>
</div> </div>
</div> </div>
</div> </div>

View file

@ -3,12 +3,12 @@
* Kickoff theme setup and build * Kickoff theme setup and build
*/ */
namespace WP_Tailwind; namespace WP_73k;
define( 'WP_Tailwind_VERSION', wp_get_theme()->version ); define( 'WP_73k_VERSION', wp_get_theme()->version );
define( 'WP_Tailwind_DIR', __DIR__ ); define( 'WP_73k_DIR', __DIR__ );
define( 'WP_Tailwind_URL', get_template_directory_uri() ); define( 'WP_73k_URL', get_template_directory_uri() );
require_once( WP_Tailwind_DIR . '/vendor/autoload.php' ); require_once( WP_73k_DIR . '/vendor/autoload.php' );
\A7\autoload( __DIR__ . '/src' ); \A7\autoload( __DIR__ . '/src' );

View file

@ -9,7 +9,7 @@
* @package Freeshifter * @package Freeshifter
*/ */
namespace WP_Tailwind; namespace WP_73k;
?><!DOCTYPE html> ?><!DOCTYPE html>
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>

View file

@ -6,7 +6,7 @@
* @since 1.0.0 * @since 1.0.0
*/ */
namespace WP_Tailwind; namespace WP_73k;
get_header(); ?> get_header(); ?>
<div class="container mx-auto relative z-10 mb-16 lg:mb-32 flex flex-wrap items-start"> <div class="container mx-auto relative z-10 mb-16 lg:mb-32 flex flex-wrap items-start">

2
package-lock.json generated
View file

@ -1,5 +1,5 @@
{ {
"name": "wp-tailwind-theme", "name": "wp-73k-theme",
"version": "1.0.1", "version": "1.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

View file

@ -1,5 +1,5 @@
{ {
"name": "wp-tailwind-theme", "name": "wp-73k-theme",
"version": "1.0.1", "version": "1.0.1",
"description": "WP Tailwind", "description": "WP Tailwind",
"main": "./assets/js/main.js", "main": "./assets/js/main.js",

View file

@ -6,7 +6,7 @@
* @since 1.0.0 * @since 1.0.0
*/ */
namespace WP_Tailwind; namespace WP_73k;
add_filter( 'body_class', function( $classes ) { add_filter( 'body_class', function( $classes ) {

View file

@ -1,6 +1,6 @@
<?php <?php
namespace WP_Tailwind; namespace WP_73k;
/** /**
* Enqueue scripts and styles * Enqueue scripts and styles
@ -11,19 +11,19 @@ add_action( 'wp_enqueue_scripts', function() {
// JS // JS
wp_enqueue_script( wp_enqueue_script(
'wp_tailwind_js', 'wp_73k_js',
WP_Tailwind_URL . "/dist/main{$min_ext}.js", WP_73k_URL . "/dist/main{$min_ext}.js",
[], [],
WP_Tailwind_VERSION, WP_73k_VERSION,
true true
); );
// CSS // CSS
wp_enqueue_style( wp_enqueue_style(
'wp_tailwind_css', 'wp_73k_css',
WP_Tailwind_URL . "/dist/main{$min_ext}.css", WP_73k_URL . "/dist/main{$min_ext}.css",
[], [],
WP_Tailwind_VERSION, WP_73k_VERSION,
'' ''
); );

View file

@ -1,6 +1,6 @@
<?php <?php
namespace WP_Tailwind; namespace WP_73k;
/** /**
* Set up theme defaults and registers support for various WordPress features. * Set up theme defaults and registers support for various WordPress features.
@ -21,8 +21,8 @@ add_action( 'after_setup_theme', function () {
// This theme uses wp_nav_menu() in one location. // This theme uses wp_nav_menu() in one location.
register_nav_menus( [ register_nav_menus( [
'primary' => __( 'Primary Menu', 'wp-tailwind' ), 'primary' => __( 'Primary Menu', 'wp-73k' ),
'footer' => __( 'Footer Menu', 'wp-tailwind' ), 'footer' => __( 'Footer Menu', 'wp-73k' ),
] ); ] );
// Switch default core markup for search form, comment form, and comments to output valid HTML5. // Switch default core markup for search form, comment form, and comments to output valid HTML5.

View file

@ -1,6 +1,6 @@
<?php <?php
namespace WP_Tailwind; namespace WP_73k;
/** /**
* Register widget area. * Register widget area.

View file

@ -1,10 +1,13 @@
/** /**
* Theme Name: WP Tailwind * Theme Name: WP 73k
* Theme URI: https://github.com/freeshifter/wp-tailwind * Theme URI: https://73k.us/git....
* Author: Freeshifter LLC * Author: Adam Piontek
* Author URI: https://www.freeshifter.com * Author URI: https://73k.us
* Version: 1.0.0 * Version: 0.0.1
* License: GNU General Public License v2 or later * License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html * License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: wp-tailwind * Text Domain: wp-73k
*
* Based On Theme: WP Tailwind
* Based On Theme URI: https://github.com/cjkoepke/wp-tailwind
*/ */