init: Initial commit
Signed-off-by: prettysunflower <me@prettysunflower.moe>
This commit is contained in:
14
$REPO_NAME.php
Normal file
14
$REPO_NAME.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace $REPO_NAME_PASCAL;
|
||||
|
||||
function load_css()
|
||||
{
|
||||
// This will also enqueue the parent CSS if this is a child theme
|
||||
wp_enqueue_style(
|
||||
__NAMESPACE__ . '-style',
|
||||
get_stylesheet_uri()
|
||||
);
|
||||
}
|
||||
|
||||
add_action('wp_enqueue_scripts', __NAMESPACE__ . '\load_css');
|
3
.gitea/template
Normal file
3
.gitea/template
Normal file
@@ -0,0 +1,3 @@
|
||||
$REPO_NAME.php
|
||||
README.md
|
||||
assets/scss/_wordpress-header.scss
|
51
.gitignore
vendored
51
.gitignore
vendored
@@ -1,49 +1,2 @@
|
||||
# ---> WordPress
|
||||
# Wordpress - ignore core, configuration, examples, uploads and logs.
|
||||
# https://github.com/github/gitignore/blob/main/WordPress.gitignore
|
||||
|
||||
# Core
|
||||
#
|
||||
# Note: if you want to stage/commit WP core files
|
||||
# you can delete this whole section/until Configuration.
|
||||
/wp-admin/
|
||||
/wp-content/index.php
|
||||
/wp-content/languages
|
||||
/wp-content/plugins/index.php
|
||||
/wp-content/themes/index.php
|
||||
/wp-includes/
|
||||
/index.php
|
||||
/license.txt
|
||||
/readme.html
|
||||
/wp-*.php
|
||||
/xmlrpc.php
|
||||
|
||||
# Configuration
|
||||
wp-config.php
|
||||
|
||||
# Example themes
|
||||
/wp-content/themes/twenty*/
|
||||
|
||||
# Example plugin
|
||||
/wp-content/plugins/hello.php
|
||||
|
||||
# Uploads
|
||||
/wp-content/uploads/
|
||||
|
||||
# Log files
|
||||
*.log
|
||||
|
||||
# htaccess
|
||||
/.htaccess
|
||||
|
||||
# All plugins
|
||||
#
|
||||
# Note: If you wish to whitelist plugins,
|
||||
# uncomment the next line
|
||||
#/wp-content/plugins
|
||||
|
||||
# All themes
|
||||
#
|
||||
# Note: If you wish to whitelist themes,
|
||||
# uncomment the next line
|
||||
#/wp-content/themes
|
||||
composer.phar
|
||||
/vendor/
|
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/wp-theme-base.iml" filepath="$PROJECT_DIR$/.idea/wp-theme-base.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
24
.idea/php.xml
generated
Normal file
24
.idea/php.xml
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="MessDetectorOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PHPCSFixerOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PHPCodeSnifferOptionsConfiguration">
|
||||
<option name="highlightLevel" value="WARNING" />
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PhpIncludePathManager">
|
||||
<include_path>
|
||||
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpStanOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
<component name="PsalmOptionsConfiguration">
|
||||
<option name="transferred" value="true" />
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
10
.idea/wp-theme-base.iml
generated
Normal file
10
.idea/wp-theme-base.iml
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
20
assets/scss/_wordpress-header.scss
Normal file
20
assets/scss/_wordpress-header.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* Theme Name: $REPO_NAME
|
||||
* Template:
|
||||
* Author: prettysunflower
|
||||
* Author URI: https://prettysunflower.moe/
|
||||
* License: Public Domain
|
||||
* Coding style: PER-CS 2.0.0
|
||||
* Version: 1
|
||||
*
|
||||
* -----------------------------------------------------
|
||||
*
|
||||
* WARNING: DO NOT EDIT THE ROOT style.css FILE DIRECTLY
|
||||
* This file is generated by the assets/scss/style.scss
|
||||
* file, edits in this file WILL be erased when we will
|
||||
* update the file from the SCSS. ^^
|
||||
* - Remilia
|
||||
*
|
||||
* -----------------------------------------------------
|
||||
*
|
||||
*/
|
4
assets/scss/fonts.scss
Normal file
4
assets/scss/fonts.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
/* This is a system font stack. Please edit it if you want to use other fonts~ */
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
}
|
1
assets/scss/style.scss
Normal file
1
assets/scss/style.scss
Normal file
@@ -0,0 +1 @@
|
||||
@use "wordpress-header";
|
8
composer.json
Normal file
8
composer.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"autoload": {
|
||||
"psr-4": {"${REPO_NAME_PASCAL}\\": "."}
|
||||
},
|
||||
"require": {
|
||||
"ext-curl": "*"
|
||||
}
|
||||
}
|
20
composer.lock
generated
Normal file
20
composer.lock
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "e9c96cc21846f5e5408230f7c1c55358",
|
||||
"packages": [],
|
||||
"packages-dev": [],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": {},
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
"ext-curl": "*"
|
||||
},
|
||||
"platform-dev": {},
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
Reference in New Issue
Block a user