refactor: Update pricing section labels and remove track differentiation for cleaner presentation
This commit is contained in:
@@ -1973,44 +1973,6 @@ p:last-child { margin-bottom: 0; }
|
||||
}
|
||||
.pricing-card.featured {
|
||||
}
|
||||
|
||||
/* Track Differentiation */
|
||||
.pricing-card[data-track="diy"] {
|
||||
border-top: 4px solid var(--color-accent);
|
||||
}
|
||||
.pricing-card[data-track="diy"]:hover {
|
||||
border-top-color: var(--color-accent-dk);
|
||||
}
|
||||
|
||||
.pricing-card[data-track="design"] {
|
||||
border-top: 4px solid var(--color-primary);
|
||||
}
|
||||
.pricing-card[data-track="design"]:hover {
|
||||
border-top-color: var(--color-primary-dk);
|
||||
}
|
||||
|
||||
/* Track Badge */
|
||||
.pricing-track-badge {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
background: transparent;
|
||||
color: var(--color-text-muted);
|
||||
font-size: .7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: .15em;
|
||||
text-transform: uppercase;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.pricing-card[data-track="diy"] .pricing-track-badge {
|
||||
color: var(--color-accent-dk);
|
||||
}
|
||||
.pricing-card[data-track="design"] .pricing-track-badge {
|
||||
color: var(--color-primary-dk);
|
||||
}
|
||||
|
||||
.pricing-badge {
|
||||
position: absolute;
|
||||
top: -14px;
|
||||
|
||||
@@ -537,7 +537,6 @@ add_action('init', function () {
|
||||
'btnUrl' => ['type' => 'string', 'default' => '/contact'],
|
||||
'featured' => ['type' => 'boolean', 'default' => false],
|
||||
'badge' => ['type' => 'string', 'default' => ''],
|
||||
'track' => ['type' => 'string', 'default' => ''],
|
||||
'imgId' => ['type' => 'number', 'default' => 0],
|
||||
'imgUrl' => ['type' => 'string', 'default' => ''],
|
||||
'imgAlt' => ['type' => 'string', 'default' => ''],
|
||||
@@ -1425,7 +1424,6 @@ function oribi_render_pricing_section($a, $content, $block)
|
||||
function oribi_render_pricing_card($a)
|
||||
{
|
||||
$featured = !empty($a['featured']);
|
||||
$track = !empty($a['track']) ? $a['track'] : '';
|
||||
$img_id = !empty($a['imgId']) ? intval($a['imgId']) : 0;
|
||||
$img_url = !empty($a['imgUrl']) ? $a['imgUrl'] : '';
|
||||
$img_alt = !empty($a['imgAlt']) ? $a['imgAlt'] : '';
|
||||
@@ -1446,23 +1444,12 @@ function oribi_render_pricing_card($a)
|
||||
}
|
||||
}
|
||||
|
||||
// Track labels
|
||||
$track_labels = [
|
||||
'diy' => 'DIY',
|
||||
'design' => 'Full Service',
|
||||
];
|
||||
$track_label = isset($track_labels[$track]) ? $track_labels[$track] : '';
|
||||
|
||||
ob_start(); ?>
|
||||
<div class="pricing-card<?php echo $featured ? ' featured' : ''; ?>"<?php echo $track ? ' data-track="' . esc_attr($track) . '"' : ''; ?>>
|
||||
<div class="pricing-card<?php echo $featured ? ' featured' : ''; ?>">
|
||||
<?php if ($featured && !empty($a['badge'])): ?>
|
||||
<span class="pricing-badge"><?php echo esc_html($a['badge']); ?></span>
|
||||
<?php
|
||||
endif; ?>
|
||||
<?php if ($track_label): ?>
|
||||
<span class="pricing-track-badge"><?php echo esc_html($track_label); ?></span>
|
||||
<?php
|
||||
endif; ?>
|
||||
<?php if ($img_html): ?>
|
||||
<div class="card-image-wrap" style="text-align:center;margin-bottom:1.25rem;"><?php echo $img_html; ?></div>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user