Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Use the more generic TenUpScaffold text usable for plugins or themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Ross committed Mar 16, 2018
1 parent 64144a5 commit ef4e8d1
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 39 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 10up Theme Scaffold
# 10up Scaffold

## Local Dependencies

Expand All @@ -16,10 +16,10 @@
- Rename folder 10up-theme-scaffold -> your project's name
- Do case-sensitive search/replace for the following:

- TenUpThemeScaffold
- TENUP_THEME_SCAFFOLD
- tenup-theme-scaffold
- tenup_theme_scaffold
- TenUpScaffold
- TENUP_SCAFFOLD
- tenup-scaffold
- tenup_scaffold

- `cd` into the theme folder
- run `npm install`
Expand Down
2 changes: 1 addition & 1 deletion assets/css/admin/admin-style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* TenUpThemeScaffold - Editor Styles
* TenUpScaffold - Editor Styles
* https://project-website.tld
*
* Copyright (c) 2017 10up
Expand Down
2 changes: 1 addition & 1 deletion assets/css/frontend/editor-style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* TenUpThemeScaffold - Editor Styles
* TenUpScaffold - Editor Styles
* https://project-website.tld
*
* Copyright (c) 2017 10up
Expand Down
2 changes: 1 addition & 1 deletion assets/css/frontend/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* TenUpThemeScaffold
* TenUpScaffold
* https://project-website.tld
*
* Copyright (c) 2017 10up
Expand Down
2 changes: 1 addition & 1 deletion assets/css/shared/shared-style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* TenUpThemeScaffold: Shared Styles
* TenUpScaffold: Shared Styles
* https://project-website.tld
*
* Copyright (c) 2017 10up
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "10up/tenup-theme-scaffold",
"name": "10up/tenup-scaffold",
"authors": [
{
"name": "Author",
Expand All @@ -11,7 +11,7 @@
},
"autoload": {
"psr-4": {
"TenUpThemeScaffold\\": "includes/classes/"
"TenUpScaffold\\": "includes/classes/"
}
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* The template for displaying the footer.
*
* @package TenUpThemeScaffold
* @package TenUpScaffold
* @since 0.1.0
*/
?>
Expand Down
24 changes: 12 additions & 12 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
/**
* WP Theme constants and setup functions
*
* @package TenUpThemeScaffold
* @package TenUpScaffold
* @since 0.1.0
*/

// Useful global constants.
define( 'TENUP_THEME_SCAFFOLD_VERSION', '0.1.0' );
define( 'TENUP_THEME_SCAFFOLD_URL', get_stylesheet_directory_uri() );
define( 'TENUP_THEME_SCAFFOLD_TEMPLATE_URL', get_template_directory_uri() );
define( 'TENUP_THEME_SCAFFOLD_PATH', get_template_directory() . '/' );
define( 'TENUP_THEME_SCAFFOLD_INC', TENUP_THEME_SCAFFOLD_PATH . 'includes/' );
define( 'TENUP_SCAFFOLD_VERSION', '0.1.0' );
define( 'TENUP_SCAFFOLD_URL', get_stylesheet_directory_uri() );
define( 'TENUP_SCAFFOLD_TEMPLATE_URL', get_template_directory_uri() );
define( 'TENUP_SCAFFOLD_PATH', get_template_directory() . '/' );
define( 'TENUP_SCAFFOLD_INC', TENUP_SCAFFOLD_PATH . 'includes/' );

require_once TENUP_THEME_SCAFFOLD_INC . 'core.php';
require_once TENUP_THEME_SCAFFOLD_INC . 'template-tags.php';
require_once TENUP_SCAFFOLD_INC . 'core.php';
require_once TENUP_SCAFFOLD_INC . 'template-tags.php';

// Run the setup functions.
TenUpThemeScaffold\Core\setup();
TenUpScaffold\Core\setup();

// What does this do?
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
Expand All @@ -26,8 +26,8 @@


// How to use this theme
// 1. Rename folder TenUpThemeScaffold -> your project's name
// 1. Rename folder TenUpScaffold -> your project's name
// 2. Do 3 case-sensitive search/replace:
// A. TenUpThemeScaffold
// B. TENUP_THEME_SCAFFOLD
// A. TenUpScaffold
// B. TENUP_SCAFFOLD
// C. tenup
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* The template for displaying the header.
*
* @package TenUpThemeScaffold
* @package TenUpScaffold
* @since 0.1.0
*/
?>
Expand Down
12 changes: 6 additions & 6 deletions includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Core setup, site hooks and filters.
*/
namespace TenUpThemeScaffold\Core;
namespace TenUpScaffold\Core;

/**
* Set up theme defaults and register supported WordPress features.
Expand All @@ -28,8 +28,8 @@ function setup() {
* Makes Theme available for translation.
*
* Translations can be added to the /languages directory.
* If you're building a theme based on "tenup-theme-scaffold", change the
* filename of '/languages/TenUpThemeScaffold.pot' to the name of your project.
* If you're building a theme based on "tenup-scaffold", change the
* filename of '/languages/TenUpScaffold.pot' to the name of your project.
*
* @uses load_theme_textdomain() For translation/localization support.
*
Expand All @@ -38,7 +38,7 @@ function setup() {
* @return void
*/
function i18n() {
load_theme_textdomain( 'tenup-theme-scaffold', TENUP_THEME_SCAFFOLD_PATH . '/languages' );
load_theme_textdomain( 'tenup-scaffold', TENUP_SCAFFOLD_PATH . '/languages' );
}

/**
Expand Down Expand Up @@ -76,7 +76,7 @@ function scripts() {

wp_enqueue_script(
'frontend',
TENUP_THEME_SCAFFOLD_TEMPLATE_URL . "/dist/js/frontend.min.js",
TENUP_SCAFFOLD_TEMPLATE_URL . "/dist/js/frontend.min.js",
[],
false,
true
Expand All @@ -97,7 +97,7 @@ function styles() {

wp_enqueue_style(
'styles',
TENUP_THEME_SCAFFOLD_TEMPLATE_URL . "/dist/css/style.min.css",
TENUP_SCAFFOLD_TEMPLATE_URL . "/dist/css/style.min.css",
false
);
}
Expand Down
4 changes: 2 additions & 2 deletions includes/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* This file is for custom template tags only and it should not contain
* functions that will be used for filtering or adding an action.
*
* All functions should be prefixed with TenUpThemeScaffold in order to prevent
* All functions should be prefixed with TenUpScaffold in order to prevent
* pollution of the global namespace and potential conflicts with functions
* from plugins.
* Example: `tenup_function()`
*
* @package TenUpThemeScaffold
* @package TenUpScaffold
* @since 0.1.0
*/
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* The main template file
*
* @package TenUpThemeScaffold
* @package TenUpScaffold
* @since 0.1.0
*/

Expand Down
2 changes: 1 addition & 1 deletion languages/TenUpThemeScaffold.pot → languages/TenUpScaffold.pot
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
"Project-Id-Version: TenUpThemeScaffold\n"
"Project-Id-Version: TenUpScaffold\n"
"POT-Creation-Date: 2015-03-03T12:53:58.231Z\n"
"PO-Revision-Date: 2015-03-03T12:53:58.231Z\n"
"Last-Translator: 10up <info@10up.com>\n"
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tenup-theme-scaffold",
"name": "tenup-scaffold",
"version": "1.0.0",
"description": "Project Description",
"homepage": "https://project-domain.tld",
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Theme Name: 10up Theme Scaffold
* Theme Name: 10up Scaffold
* Theme URI: https://10up.com
* Description: Project description.
* Author: 10up
* Author URI: https://10up.com
* Version: 0.1.0
* Tags:
* Text Domain: tenup-theme-scaffold
* Text Domain: tenup-scaffold
*/

0 comments on commit ef4e8d1

Please sign in to comment.