Skip to content

Commit

Permalink
fix: remove wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
lastofpudge committed Mar 16, 2024
1 parent 6742f0a commit 6f53b44
Show file tree
Hide file tree
Showing 162 changed files with 45 additions and 23,278 deletions.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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';
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.

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.

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');
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"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 All @@ -42,9 +42,9 @@
"bootstrap/app.php",
"app/helpers.php",
"app/Handlers/ajax.php",
"app/CustomFields/OptionFields.php",
"app/CustomFields/PostFields.php",
"app/CustomFields/Blocks.php",
"app/CarbonFields/OptionFields.php",
"app/CarbonFields/PostFields.php",
"app/CarbonFields/Blocks.php",
"routes/api.php"
]
},
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

0 comments on commit 6f53b44

Please sign in to comment.