Skip to content

Commit 9c43865

Browse files
authored
Merge pull request #232 from bacoords/rename-theme
Renames all references of tangent to BlockTheme
2 parents 104a6fd + b01584d commit 9c43865

28 files changed

+104
-121
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
uses: thedoctor0/zip-release@0.7.1
2424
with:
2525
type: 'zip'
26-
filename: 'tangent.zip'
26+
filename: 'block-theme.zip'
2727
exclusions: '*.git* /*node_modules/*'
2828

2929
- name: Upload release artifact
3030
uses: actions/upload-artifact@v3
3131
with:
3232
name: release
33-
path: tangent.zip
33+
path: block-theme.zip
3434

3535
- name: Upload Release
3636
uses: ncipollo/release-action@v1.12.0
3737
with:
38-
artifacts: "tangent.zip"
38+
artifacts: "block-theme.zip"
3939
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/wpcs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- name: WPCS check
1212
uses: 10up/wpcs-action@stable
13+
with:
14+
standard: 'WordPress'
15+
use_local_config: 'true'

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"name": "withtangent/tangent",
3-
"description": "A future-oriented starter theme for WordPress",
2+
"name": "bacoords/block-theme",
3+
"description": "A starter theme for modern WordPress developers.",
44
"type": "wordpress-theme",
55
"license": "GPL-3.0",
66
"minimum-stability": "stable",
77
"keywords": [
88
"wordpress",
99
"theme"
1010
],
11-
"homepage": "https://github.com/withtangent/tangent",
11+
"homepage": "https://github.com/bacoords/block-theme",
1212
"authors": [
1313
{
1414
"name": "Contributors",
15-
"homepage": "https://github.com/withtangent/tangent/contributors.md"
15+
"homepage": "https://github.com/bacoords/block-theme/contributors.md"
1616
}
1717
],
1818
"require-dev": {
@@ -38,7 +38,7 @@
3838
"post-update-cmd": "@phpcs-config-set"
3939
},
4040
"support": {
41-
"issues": "https://github.com/withtangent/tangent/issues",
42-
"source": "https://github.com/withtangent/tangent"
41+
"issues": "https://github.com/bacoords/block-theme/issues",
42+
"source": "https://github.com/bacoords/block-theme"
4343
}
4444
}

functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22
/**
3-
* Tangent functions and definitions
3+
* BlockTheme functions and definitions
44
*
55
* @link https://developer.wordpress.org/themes/basics/theme-functions/
66
*
7-
* @package Tangent
7+
* @package BlockTheme
88
*/
99

10-
namespace Tangent;
10+
namespace BlockTheme;
1111

1212
/**
1313
* Load theme setup.

inc/enqueue-blocks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/**
33
* Enqueue scripts, styles, and functionality for blocks.
44
*
5-
* @package Tangent
5+
* @package BlockTheme
66
*/
77

8-
namespace Tangent\Enqueue\Blocks;
8+
namespace BlockTheme\Enqueue\Blocks;
99

1010
/**
1111
* Load all block stylesheets separately

inc/enqueue.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/**
33
* Enqueue scripts and styles.
44
*
5-
* @package Tangent
5+
* @package BlockTheme
66
*/
77

8-
namespace Tangent\Enqueue;
8+
namespace BlockTheme\Enqueue;
99

1010
/**
1111
* Enqueue the `global.css` file.
@@ -18,7 +18,7 @@ function global_theme_styles() {
1818
$theme_version = wp_get_theme()->get( 'Version' );
1919
$css_version = $theme_version . '.' . filemtime( get_template_directory() . '/css/global.css' );
2020

21-
wp_enqueue_style( 'tangent-global-theme-style', get_template_directory_uri() . '/css/global.css', array(), $css_version );
21+
wp_enqueue_style( 'block-theme-global-theme-style', get_template_directory_uri() . '/css/global.css', array(), $css_version );
2222
}
2323
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\global_theme_styles' );
2424

@@ -34,7 +34,7 @@ function front_end_scripts() {
3434
$asset_file = include get_template_directory() . '/js/scripts.asset.php';
3535
$dependencies = $asset_file['dependencies'];
3636

37-
wp_enqueue_script( 'tangent-front-end-scripts', get_template_directory_uri() . '/js/scripts.js', $dependencies, $asset_file['version'], true );
37+
wp_enqueue_script( 'block-theme-front-end-scripts', get_template_directory_uri() . '/js/scripts.js', $dependencies, $asset_file['version'], true );
3838
}
3939
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\front_end_scripts' );
4040

@@ -67,7 +67,7 @@ function enqueue_editor_modifications() {
6767
break;
6868
}
6969

70-
wp_enqueue_script( 'tangent-editor-modifications', get_template_directory_uri() . '/js/editor.js', $dependencies, $asset_file['version'], true );
70+
wp_enqueue_script( 'block-theme-editor-modifications', get_template_directory_uri() . '/js/editor.js', $dependencies, $asset_file['version'], true );
7171
}
7272

7373
add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\enqueue_editor_modifications' );

inc/setup.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/**
33
* Setup theme
44
*
5-
* @package Tangent
5+
* @package BlockTheme
66
*/
77

8-
namespace Tangent\Setup;
8+
namespace BlockTheme\Setup;
99

1010
/**
1111
* Setup theme
@@ -15,9 +15,9 @@ function theme_setup() {
1515
* Make theme available for translation.
1616
* Translations can be filed in the /languages/ directory.
1717
* If you're building a theme based on _s, use a find and replace
18-
* to change 'tangent' to the name of your theme in all the template files.
18+
* to change 'block-theme' to the name of your theme in all the template files.
1919
*/
20-
load_theme_textdomain( 'tangent', get_template_directory() . '/languages' );
20+
load_theme_textdomain( 'block-theme', get_template_directory() . '/languages' );
2121

2222
// Add default posts and comments RSS feed links to head.
2323
add_theme_support( 'automatic-feed-links' );

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "tangent",
2+
"name": "block-theme",
33
"version": "0.0.0",
4-
"description": "A theme starter for the modern WordPress developer.",
5-
"author": "Tangent Contributors",
4+
"description": "A starter theme for modern WordPress developers.",
5+
"author": "BlockTheme Contributors",
66
"license": "GPL-2.0-or-later",
77
"keywords": [
88
"wordpress",
99
"starter",
1010
"theme"
1111
],
12-
"homepage": "https://github.com/withtangent/tangent#readme",
12+
"homepage": "https://github.com/bacoords/block-theme#readme",
1313
"repository": {
1414
"type": "git",
15-
"url": "git+https://github.com/withtangent/tangent.git"
15+
"url": "git+https://github.com/bacoords/block-theme.git"
1616
},
1717
"bugs": {
18-
"url": "https://github.com/withtangent/tangent/issues"
18+
"url": "https://github.com/bacoords/block-theme/issues"
1919
},
2020
"main": "index.js",
2121
"watch": {

parts/comments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!-- wp:pattern {"slug":"tangent/hidden-comments"} /-->
1+
<!-- wp:pattern {"slug":"block-theme/hidden-comments"} /-->

parts/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- wp:group {"className":"alignwide","layout":{"type":"constrained"},"anchor":""} -->
22
<div class="wp-block-group alignwide"><!-- wp:paragraph -->
3-
<p>Proudly powered by <a href="https://wordpress.org/" target="_blank" rel="noreferrer noopener">WordPress</a> | Theme: Tangent by&nbsp;<a href="https://withtangent.com/" target="_blank" rel="noreferrer noopener">Tangent</a>.</p>
3+
<p>Proudly powered by <a href="https://wordpress.org/" target="_blank" rel="noreferrer noopener">WordPress</a> | Theme: BlockTheme by&nbsp;<a href="https://bacoords.com/" target="_blank" rel="noreferrer noopener">BlockTheme</a>.</p>
44
<!-- /wp:paragraph --></div>
55
<!-- /wp:group -->

0 commit comments

Comments
 (0)