diff --git a/.gitignore b/.gitignore index 8e42a23..8884fb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /.env /wp-content/** -!/wp-content/themes/mont58-coffee +!/wp-content/themes/mont58-coffee/** /data/** !/data/.gitkeep diff --git a/wp-content/themes/mont58-coffee/functions.php b/wp-content/themes/mont58-coffee/functions.php new file mode 100644 index 0000000..76372fb --- /dev/null +++ b/wp-content/themes/mont58-coffee/functions.php @@ -0,0 +1,45 @@ +get( 'Version' ) + ); +} +add_action( 'wp_enqueue_scripts', 'mont58coffee_enqueue_styles' ); + +add_filter( 'get_terms', 'ts_get_subcategory_terms', 10, 3 ); +function ts_get_subcategory_terms( $terms, $taxonomies, $args ) { +$new_terms = array(); +// if it is a product category and on the shop page +if ( in_array( 'product_cat', $taxonomies ) && ! is_admin() &&is_shop() ) { +foreach( $terms as $key => $term ) { +if ( !in_array( $term->slug, array( 'african-coffees' ) ) ) { //pass the slug name here +$new_terms[] = $term; +}} +$terms = $new_terms; +} +return $terms; +} + +/** + * Plugin Name: Extend WooCommerce Subscription Intervals + * Description: Add a "every 10 weeks" billing interval to WooCommerce Subscriptions + * Author: Brent Shepherd + * Author URI: http://brent.io + * Version: 1.0 + * License: GPL v2 + */ + +function eg_extend_subscription_period_intervals( $intervals ) { + + $intervals[10] = sprintf( __( 'every %s', 'my-text-domain' ), WC_Subscriptions::append_numeral_suffix( 10 ) ); + + return $intervals; +} +add_filter( 'woocommerce_subscription_period_interval_strings', 'eg_extend_subscription_period_intervals' ); diff --git a/wp-content/themes/mont58-coffee/screenshot.png b/wp-content/themes/mont58-coffee/screenshot.png new file mode 100644 index 0000000..b7a7ede Binary files /dev/null and b/wp-content/themes/mont58-coffee/screenshot.png differ diff --git a/wp-content/themes/mont58-coffee/style.css b/wp-content/themes/mont58-coffee/style.css new file mode 100644 index 0000000..531247e --- /dev/null +++ b/wp-content/themes/mont58-coffee/style.css @@ -0,0 +1,7 @@ +/* +Theme Name: Mont58 Coffee +Description: Theme for mont58coffee.com - child theme of Bridge +Template: bridge +Version: 1.0.0 +Text Domain: mont58coffee +*/ \ No newline at end of file diff --git a/wp-content/themes/mont58-coffee/template-order-label.php b/wp-content/themes/mont58-coffee/template-order-label.php new file mode 100644 index 0000000..af460e0 --- /dev/null +++ b/wp-content/themes/mont58-coffee/template-order-label.php @@ -0,0 +1,171 @@ + + + +
+ + +Roast
+Roasted on:
+ +