Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #158

Closed
wants to merge 29 commits into from
Closed

test #158

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0cefc62
chore(deps): update dependency sass-loader to v14.1.1
renovate[bot] Feb 19, 2024
c046d65
Update README.md
lastofpudge Feb 20, 2024
400c15f
Merge pull request #147 from lastofpudge/lastofpudge-patch-4
lastofpudge Feb 20, 2024
d6dbd47
Update README.md
lastofpudge Feb 20, 2024
0dff009
Merge pull request #148 from lastofpudge/lastofpudge-patch-5
lastofpudge Feb 20, 2024
54bb518
chore(deps): update dependency sass to v1.71.1
renovate[bot] Feb 21, 2024
48f0828
fix: header links
lastofpudge Feb 21, 2024
3de89b4
Merge branch 'master' of github.com:lastofpudge/wp-theme
lastofpudge Feb 21, 2024
d343294
fix: deprecated
lastofpudge Feb 21, 2024
3a7bc66
Merge pull request #149 from lastofpudge/renovate/sass-1.x-lockfile
lastofpudge Feb 21, 2024
4cc1f2b
Merge pull request #146 from lastofpudge/renovate/sass-loader-14.x-lo…
lastofpudge Feb 21, 2024
be0d1bf
fix: category read more
lastofpudge Feb 21, 2024
b749301
Merge branch 'master' of github.com:lastofpudge/wp-theme
lastofpudge Feb 21, 2024
22485ae
fix: tiny fix read more
lastofpudge Feb 22, 2024
29593ff
chore(deps): update dependency git-commit-msg-linter to v5.0.7
renovate[bot] Mar 5, 2024
01a5450
fix(deps): update dependency sweetalert2 to v11.10.6
renovate[bot] Mar 5, 2024
62c6577
Update composer.json
lastofpudge Mar 8, 2024
8cd8035
Merge pull request #154 from lastofpudge/lastofpudge-patch-6
lastofpudge Mar 8, 2024
0e29c7a
chore(deps): update dependency sass to v1.72.0
renovate[bot] Mar 13, 2024
9290a9d
fix(deps): update dependency axios to v1.6.8
renovate[bot] Mar 15, 2024
59346e2
Merge pull request #156 from lastofpudge/renovate/axios-1.x-lockfile
lastofpudge Mar 16, 2024
d3e5816
build(deps): bump follow-redirects from 1.15.5 to 1.15.6
dependabot[bot] Mar 16, 2024
c39caf2
Merge pull request #153 from lastofpudge/renovate/sweetalert2-11.x-lo…
lastofpudge Mar 16, 2024
6eedc33
Merge pull request #157 from lastofpudge/dependabot/npm_and_yarn/foll…
lastofpudge Mar 16, 2024
2cdc3d4
Merge pull request #152 from lastofpudge/renovate/git-commit-msg-lint…
lastofpudge Mar 16, 2024
af9846e
Merge pull request #155 from lastofpudge/renovate/sass-1.x-lockfile
lastofpudge Mar 16, 2024
6742f0a
Merge branch 'feature/woocommerce-integration' into master
lastofpudge Mar 16, 2024
6f53b44
fix: remove wrong
lastofpudge Mar 16, 2024
9c50f8f
fix: cf folder name
lastofpudge Mar 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
- Easy deployment on hosting platforms with [All-in-One WP Migration](https://wordpress.org/plugins/all-in-one-wp-migration/) plugin. 🚀

## Want to know more?
[Please check](https://github.com/timber/timber)
[Timber](https://github.com/timber/timber)

For woocommerce please [check](https://github.com/lastofpudge/wp-theme/tree/feature/woocommerce-integration)

## How to Use

Expand Down
3 changes: 0 additions & 3 deletions app/Admin/AdminOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@ public function index(): void
'script',
'style'
]);

remove_theme_support('block-templates');
remove_theme_support('core-block-patterns');

add_theme_support('title-tag');
add_theme_support('post-thumbnails');
add_theme_support('custom-logo');
add_theme_support('responsive-embeds');

add_theme_support('woocommerce');
}

public function manageAdminAccess(): void
Expand Down
2 changes: 1 addition & 1 deletion app/Controllers/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct()
public function index(): array
{
$this->data['term'] = Timber::get_term();
// $this->data['posts'] = Timber::get_posts();
$this->data['posts'] = Timber::get_posts();

return $this->data;
}
Expand Down
8 changes: 0 additions & 8 deletions app/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,5 @@ class Controller
{
public function __construct()
{
add_filter('timber/context', function ($context) {
$context['cart'] = WC()->cart;
$context['checkout_link'] = wc_get_checkout_url();
$context['cart_link'] = wc_get_cart_url();
$context['currency_symbol'] = get_woocommerce_currency_symbol();

return $context;
});
}
}
62 changes: 0 additions & 62 deletions app/Controllers/ProductController.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/CustomFields/Blocks/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

wp_register_style(
'crb-my-shiny-gutenberg-block-stylesheet',
get_stylesheet_directory_uri() . '../app/CustomFields/Blocks/example.css'
get_stylesheet_directory_uri() . '../app/CarbonFields/Blocks/example.css'
);


Expand Down
11 changes: 0 additions & 11 deletions app/CustomFields/Fields/product.php

This file was deleted.

5 changes: 0 additions & 5 deletions app/CustomFields/Fields/product_variants.php

This file was deleted.

3 changes: 0 additions & 3 deletions app/CustomFields/PostFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
add_action('carbon_fields_register_fields', function () {
include __DIR__ . '/Fields/home.php';
include __DIR__ . '/Fields/about.php';
include __DIR__ . '/Fields/product.php';
// Container::make( 'comment_meta', 'Comment fields' )
// ->add_fields( array(
// Field::make( 'text', 'comment_rating', 'Rating' ),
// ) );
});

include __DIR__ . '/Fields/product_variants.php';
51 changes: 0 additions & 51 deletions app/Handlers/AjaxHandlers/addToCart.php

This file was deleted.

5 changes: 0 additions & 5 deletions app/Handlers/AjaxHandlers/applyCoupon.php

This file was deleted.

25 changes: 0 additions & 25 deletions app/Handlers/AjaxHandlers/removeFromCart.php

This file was deleted.

4 changes: 0 additions & 4 deletions app/Handlers/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@

add_ajax_action('login');
add_ajax_action('contact');

add_ajax_action('removeFromCart');
add_ajax_action('addToCart');
add_ajax_action('applyCoupon');
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "theme/blank",
"type": "wp-theme",
"version": "2.0.17",
"version": "2.0.21",
"description": "Wordpress starter theme with Timber/Twig",
"license": "GPL-3.0-or-later",
"authors": [
Expand All @@ -25,11 +25,11 @@
"timber"
],
"require": {
"php": "7.4|8.*",
"php": "8.*",
"htmlburger/carbon-fields": "^3.6",
"timber/timber": "^2.0.0",
"twig/twig": "^v3.8.0",
"wp-theme/core": "^1.1.4",
"wp-theme/core": "^1.0.4",
"wpackagist-plugin/all-in-one-wp-migration": "*",
"wpackagist-plugin/wordpress-seo": "*"
},
Expand Down
8 changes: 0 additions & 8 deletions jsconfig.json

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
"devDependencies": {
"git-commit-msg-linter": "^5.0.0",
"laravel-mix": "^6.0.6",
"path": "^0.12.7",
"prettier": "^3.2.5",
"prettier-plugin-twig-melody": "^0.4.6",
"sass": "^1.70.0",
"sass-loader": "^14.0.0"
},
"dependencies": {
"axios": "^1.6.7",
"nouislider": "^15.7.1",
"sweetalert2": "^11.6.15"
}
}
Loading