Compare commits
4 Commits
42e7f13b84
...
ce7fcfc1ea
Author | SHA1 | Date | |
---|---|---|---|
ce7fcfc1ea | |||
8e434a4fd2 | |||
3cdaaf405f | |||
d36bb36aed |
@ -35,7 +35,7 @@ USERNAME=autonomic
|
|||||||
PROJECT_NAME=mont58
|
PROJECT_NAME=mont58
|
||||||
|
|
||||||
# Site URL, also just needs to be set once per project
|
# Site URL, also just needs to be set once per project
|
||||||
SITE_URL=mont58-staging.smol-wp.autonomic.zone
|
SITE_URL=mont58.local
|
||||||
|
|
||||||
# Multi-site config
|
# Multi-site config
|
||||||
#WORDPRESS_CONFIG_EXTRA="define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'frms.localhost'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); define('SUNRISE', true);"
|
#WORDPRESS_CONFIG_EXTRA="define('MULTISITE', true); define('SUBDOMAIN_INSTALL', true); define('DOMAIN_CURRENT_SITE', 'frms.localhost'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); define('SUNRISE', true);"
|
||||||
|
@ -246,3 +246,13 @@ add_filter(
|
|||||||
10,
|
10,
|
||||||
3
|
3
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// import acumin variable font
|
||||||
|
function mont58coffee_enqueue_fonts()
|
||||||
|
{
|
||||||
|
wp_enqueue_style(
|
||||||
|
"mont58coffee-fonts",
|
||||||
|
get_theme_file_uri("/fonts/acumin-variable-concept.css")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
add_action("wp_enqueue_scripts", "mont58coffee_enqueue_fonts");
|
@ -13,6 +13,7 @@ if(!is_user_logged_in()){
|
|||||||
<title>Coffee Label</title>
|
<title>Coffee Label</title>
|
||||||
<link rel="preconnect" href="https://api/fonts.coollabs.io">
|
<link rel="preconnect" href="https://api/fonts.coollabs.io">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100..900&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@100..900&display=swap" rel="stylesheet">
|
||||||
|
<link href="<?php echo get_theme_file_uri('/fonts/acumin-variable-concept.css') ?>" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<style>
|
<style>
|
||||||
.container {
|
.container {
|
||||||
@ -38,7 +39,7 @@ if(!is_user_logged_in()){
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label .product-details {
|
.label .product-details {
|
||||||
font-family: 'Roboto Condensed';
|
font-family: 'Acumin Variable Concept', sans-serif;
|
||||||
font-size: calc(0.35 * 21px);
|
font-size: calc(0.35 * 21px);
|
||||||
letter-spacing: calc(0.35 * 2px);
|
letter-spacing: calc(0.35 * 2px);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@ -122,13 +123,13 @@ if(!is_user_logged_in()){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$is_coffee && !$is_subscription) {
|
if ($is_coffee || $is_subscription) {
|
||||||
continue;
|
$brew_method = $item->get_meta("pa_brew-method");
|
||||||
|
$weight = $item->get_meta("weight");
|
||||||
|
} else {
|
||||||
|
$product_name = $item->get_name();
|
||||||
}
|
}
|
||||||
|
|
||||||
$brew_method = $item->get_meta("pa_brew-method");
|
|
||||||
$weight = $item->get_meta("weight");
|
|
||||||
|
|
||||||
if ($is_coffee) {
|
if ($is_coffee) {
|
||||||
// Non-subscription order
|
// Non-subscription order
|
||||||
$product_name = $item->get_name();
|
$product_name = $item->get_name();
|
||||||
@ -159,11 +160,15 @@ if(!is_user_logged_in()){
|
|||||||
<div class="label">
|
<div class="label">
|
||||||
<div>
|
<div>
|
||||||
<div class="product-details">
|
<div class="product-details">
|
||||||
|
<?php if ($is_coffee || $is_subscription) { ?>
|
||||||
<p class="weight"><?php echo $weight; ?></p>
|
<p class="weight"><?php echo $weight; ?></p>
|
||||||
|
<?php } ?>
|
||||||
<p class="origin"><?php echo $product_name; ?></p>
|
<p class="origin"><?php echo $product_name; ?></p>
|
||||||
|
<?php if ($is_coffee || $is_subscription) { ?>
|
||||||
<p class="bean-type"><?php echo $brew_method; ?></p>
|
<p class="bean-type"><?php echo $brew_method; ?></p>
|
||||||
<p class="roast"><?php echo $roast; ?> Roast</p>
|
<p class="roast"><?php echo $roast; ?> Roast</p>
|
||||||
<p class="date">Roasted on: <span><?php echo $roast_date; ?></span></p>
|
<p class="date">Roasted on: <span><?php echo $roast_date; ?></span></p>
|
||||||
|
<?php } ?>
|
||||||
<p class="code"><?php
|
<p class="code"><?php
|
||||||
echo $is_new ? "N" : "";
|
echo $is_new ? "N" : "";
|
||||||
echo $gift_message ? "G" : "";
|
echo $gift_message ? "G" : "";
|
||||||
|
Loading…
Reference in New Issue
Block a user