Skip to content

Commit

Permalink
Theming v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rogertm committed May 25, 2022
1 parent 8c0a15d commit e220d95
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 62 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Theming_ WordPress Theme
# Theming. WordPress Starter Theme

**Theming_** es un _starter_ theme para WordPress, sencillo y ligero, basado en **Bootstrap v5**.
**Theming** es un _starter_ theme para WordPress, sencillo y ligero, basado en **Bootstrap v5**.

## Instalación

### Manual

**Theming_** se instala como cualquier otro theme de WordPress, solo debes descargar el [archivo comprimido desde GitHub](https://github.com/themingisprose/theming_/archive/refs/heads/main.zip), descompactar el archivo `.zip` y copiar su contenido en el directorio `wp-content/themes/` de tu instalación, o subirlo usando el instalador de themes de WordPress.
**Theming** se instala como cualquier otro theme de WordPress, solo debes descargar el [archivo comprimido desde GitHub](https://github.com/themingisprose/theming/archive/refs/heads/main.zip), descompactar el archivo `.zip` y copiar su contenido en el directorio `wp-content/themes/` de tu instalación, o subirlo usando el instalador de themes de WordPress.

### Instalar vía Git

Puedes clonar el repositorio directamente desde GitHub:

```bash
$ cd /path/to/wordpress/wp-content/themes/
$ git clone git@github.com:themingisprose/theming_.git
$ git clone git@github.com:themingisprose/theming.git
```

### Dependencias

**Theming_** requiere de algunas dependencias, para ello debes instalarlas vía `npm`. Debes tener [Node.js](https://nodejs.org/es/) instalado previamente en tu ordenador o servidor. Ejecuta los siguientes comandos desde tu CLI:
**Theming** requiere de algunas dependencias, para ello debes instalarlas vía `npm`. Debes tener [Node.js](https://nodejs.org/es/) instalado previamente en tu ordenador o servidor. Ejecuta los siguientes comandos desde tu CLI:

```bash
$ cd /path/to/wordpress/wp-content/themes/theming_/
$ cd /path/to/wordpress/wp-content/themes/theming/
$ npm install
$ npm run build
```
Expand Down
11 changes: 5 additions & 6 deletions classes/class.theming-enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Enqueue scripts and styles
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
class Theming_Enqueue
{
Expand All @@ -15,19 +15,18 @@ class Theming_Enqueue
/**
* Enqueue
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
public function init()
{
add_action( 'wp_enqueue_scripts', array( $this, 'styles' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'scripts' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'admin_styles' ) );
}

/**
* Handle styles
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
public function styles()
{
Expand All @@ -38,7 +37,7 @@ public function styles()
/**
* Handle scripts
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
public function scripts()
{
Expand All @@ -57,7 +56,7 @@ public function scripts()
/**
* Get Instance
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
public static function get_instance() : self
{
Expand Down
18 changes: 9 additions & 9 deletions classes/class.theming-svg-icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This class is a clone of Twenty_Twenty_One_SVG_Icons of Twenty Twenty-One theme
* @link https://themes.trac.wordpress.org/browser/twentytwentyone/1.2/classes/class-twenty-twenty-one-svg-icons.php
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
class Theming_SVG_Icons
{
Expand All @@ -14,7 +14,7 @@ class Theming_SVG_Icons
*
* @access protected
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*
* @var array
*/
Expand Down Expand Up @@ -59,7 +59,7 @@ class Theming_SVG_Icons
*
* @access protected
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*
* @var array
*/
Expand Down Expand Up @@ -117,7 +117,7 @@ class Theming_SVG_Icons
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
* specify all the domains it covers (including the .com TLD too, if applicable).
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*
* @var array
*/
Expand Down Expand Up @@ -186,7 +186,7 @@ class Theming_SVG_Icons
* @param int $size The icon-size in pixels.
* @return string
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
public static function get_svg( $group, $icon, $size ) {

Expand All @@ -204,7 +204,7 @@ public static function get_svg( $group, $icon, $size ) {
* The dynamic portion of the hook name, `$group`, refers to
* the name of the group of icons, either "ui" or "social".
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*
* @param array $arr Array of icons.
*/
Expand All @@ -229,7 +229,7 @@ public static function get_svg( $group, $icon, $size ) {
* @param int $size The icon-size in pixels.
* @return string|null
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
public static function get_social_link_svg( $uri, $size )
{
Expand All @@ -244,7 +244,7 @@ public static function get_social_link_svg( $uri, $size )
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
* specify all the domains it covers (including the .com TLD too, if applicable).
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*
* @param array $social_icons_map Array of default social icons.
*/
Expand All @@ -253,7 +253,7 @@ public static function get_social_link_svg( $uri, $size )
/**
* Filters Theming_'s array of social icons.
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*
* @param array $social_icons Array of default social icons.
*/
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
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
?>

Expand Down
4 changes: 2 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Header file for Theming_ WordPress theme
* Header file for Theming WordPress theme
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
?><!DOCTYPE html>

Expand Down
6 changes: 3 additions & 3 deletions inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Posts navigation
* @param object $the_query Default to $wp_query object.
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_posts_navigation( $the_query = null ){
if ( ! $the_query )
Expand Down Expand Up @@ -59,7 +59,7 @@ function theming_posts_navigation( $the_query = null ){
/**
* Make comments form fields Bootstrap like
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_comment_form_fields(){
$commenter = wp_get_current_commenter();
Expand Down Expand Up @@ -105,7 +105,7 @@ function theming_comment_form_textarea() {
* @param int $size The icon size in pixels.
* @return string
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_get_icon_svg( $group, $icon, $size = 24 ) {
return Theming_SVG_Icons::get_svg( $group, $icon, $size );
Expand Down
6 changes: 3 additions & 3 deletions inc/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Add custom classes to nav menu
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_menu_css_class( $classes, $item, $args ){
if( isset( $args->item_class ) ) :
Expand All @@ -20,7 +20,7 @@ function theming_menu_css_class( $classes, $item, $args ){
* @param int $size The icon size in pixels.
* @return string
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_get_social_link_svg( $uri, $size = 24 ) {
return Theming_SVG_Icons::get_social_link_svg( $uri, $size );
Expand All @@ -35,7 +35,7 @@ function theming_get_social_link_svg( $uri, $size = 24 ) {
* @param stdClass $args An object of wp_nav_menu() arguments.
* @return string The menu item output with social icon.
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
// Change SVG icon inside social links menu if there is supported URL.
Expand Down
12 changes: 6 additions & 6 deletions inc/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Add theme support
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_setup(){

Expand Down Expand Up @@ -42,7 +42,7 @@ function theming_setup(){
* Filters the custom background arguments
* @param array $cb_defaults Array of arguments
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
add_theme_support( 'custom-background', apply_filters( 'theming_custom_brackground_args', $cb_defaults ) );

Expand All @@ -66,7 +66,7 @@ function theming_setup(){
* Filters the custom headers arguments
* @param array $ch_defaults Array of arguments
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
add_theme_support( 'custom-header', apply_filters( 'theming_custom_header_args', $ch_defaults ) );

Expand All @@ -83,7 +83,7 @@ function theming_setup(){
* Filters the custom logo arguments
* @param array $cl_defaults Array of arguments
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
add_theme_support( 'custom-logo', apply_filters( 'theming_custom_logo_args', $cl_defaults ) );

Expand Down Expand Up @@ -122,7 +122,7 @@ function theming_setup(){
* Filters menu locations
* @param array $locations Array of locations
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
register_nav_menus( apply_filters( 'theming_menu_locations', $locations ) );
}
Expand All @@ -131,7 +131,7 @@ function theming_setup(){
/**
* Register Sidebars
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/
function theming_register_sidebars(){

Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* The main template file
*
* @since Theming_ 0.0.1
* @since Theming 1.0.0
*/

get_header();
Expand All @@ -15,7 +15,7 @@

while ( have_posts() ) : the_post();

get_template_part( 'template-parts/content', get_post_type() );
get_template_part( 'parts/content', get_post_type() );

endwhile;

Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theming_",
"version": "0.0.1",
"name": "theming",
"version": "1.0.0",
"description": "WordPress Framework",
"scripts": {
"build": "npm run css && webpack --config webpack.prod.js",
Expand All @@ -11,7 +11,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/themingisprose/theming_.git"
"url": "git+https://github.com/themingisprose/theming.git"
},
"keywords": [
"wordpress",
Expand All @@ -22,9 +22,9 @@
"author": "Theming is Prose",
"license": "GPL-2.0-or-later",
"bugs": {
"url": "https://github.com/themingisprose/theming_/issues"
"url": "https://github.com/themingisprose/theming/issues"
},
"homepage": "https://github.com/themingisprose/theming_#readme",
"homepage": "https://github.com/themingisprose/theming#readme",
"devDependencies": {
"@popperjs/core": "^2.11.5",
"autoprefixer": "^10.4.7",
Expand Down
Loading

0 comments on commit e220d95

Please sign in to comment.