Files
ViciDialWebsite/src/components/FeaturedBox.astro
T
jamespandClaude Opus 5 9b6e5a91bf Use the site's real theme-option content, not theme demo defaults
The small-business theme stores every of_get_option() value in a single
serialized wp_options row named after the theme id ("smallbusiness"),
not as individual featured-title1/etc rows. My earlier check queried for
the individual rows, found nothing, and wrongly concluded the options had
never been customized -- so the homepage shipped the theme's built-in
demo copy ("Small Business Theme", "Small Business Pro will give your
Extra Freedom...") instead of the real marketing content.

Pulls the actual values: the page heading, all three featured boxes
(Capterra rating, awards/FinancesOnline seal, VICIhost dedicated
hosting), and the bottom quotation block, which was missing entirely.
Internal ?p=/?page_id= links in those options are rewritten to their
new-site paths (/blog/most-popular-open-source-contact-center, /hosting).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 19:17:44 -04:00

36 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
// Ported from wp-content/themes/small-business/featured-box.php.
// Values come from the theme's Options Framework row (wp_options.smallbusiness),
// which stores every option in one serialized blob rather than separate rows.
// Internal WP links (?p= / ?page_id=) are rewritten to their new-site paths.
const boxes = [
{
title: 'Excellent Customer Satisfaction!',
link: 'http://www.capterra.com/call-center-software/reviews/135842/VICIdial/VicidialGroup?utm_source=vendor&utm_medium=badge&utm_campaign=capterra_reviews_badge',
description: `<a href='http://www.capterra.com/call-center-software/reviews/135842/VICIdial/Vicidial%20Group?utm_source=vendor&amp;utm_medium=badge&amp;utm_campaign=capterra_reviews_badge'> <img border='0' align='left' hspace='8' src='https://assets.capterra.com/badge/37bd65879419f3281e2850f245fab7cf.png?v=2095683&amp;p=135842' /></a> See what our customers have to say about VICIdial!`,
},
{
title: 'Award Winning',
link: '/blog/most-popular-open-source-contact-center',
description: `With awards from CIO Review, Sourceforge, ITexpo and others, VICIdial is acknowledged as a best-in-class solution for contact centers.
<a title="VICIdial review on financesonline.com" href="https://reviews.financesonline.com/p/vicidial/"><img style="padding: 10px;width: 200px" align="right" src="https://financesonline.com/seal/seal.png"></a>`,
},
{
title: 'VICIdial Hosting with Dedicated Hardware',
link: '/hosting',
description: `If you dont want to have to manage your own VICIdial equipment, then let the experts do it for you! The Vicidial Groups VICIhost service can get you up and running today on your own dedicated server in our custom built server cloud.`,
},
];
---
<div id="featured-boxs">
{boxes.map((box, i) => (
<span class={i === 0 ? 'featured-box-first' : 'featured-box'}>
<a href={box.link}><h2>{box.title}</h2></a>
<p><Fragment set:html={box.description} /><a href={box.link}> ... Read More ...</a></p>
</span>
))}
</div>
<div class="content-ver-sep"> </div>