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>
This commit is contained in:
2026-09-15 19:17:44 -04:00
co-authored by Claude Opus 5
parent 4906364a65
commit 9b6e5a91bf
2 changed files with 35 additions and 30 deletions
+29 -29
View File
@@ -1,35 +1,35 @@
---
// Ported from wp-content/themes/small-business/featured-box.php. The site never set
// custom featured-box options in wp_options, so these are the theme's own default
// fallback values (of_get_option(..., '<default>')) -- i.e. the real, unedited content.
// 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">
<span class="featured-box-first">
<a href="#"><h2>Small Business Theme</h2></a>
<p>
The Customizable Background and other options of Small Business will give the WordPress
Driven Site an attractive look. Small Business Pro will give your Extra Freedom and
Functionality which you must love.<a href="#"> ... Read More ...</a>
</p>
</span>
<span class="featured-box">
<a href="#"><h2>Small Business Theme</h2></a>
<p>
The Customizable Background and other options of Small Business will give the WordPress
Driven Site an attractive look. Small Business Pro will give your Extra Freedom and
Functionality which you must love.<a href="#"> ... Read More ...</a>
</p>
</span>
<span class="featured-box">
<a href="#"><h2>Small Business Theme</h2></a>
<p>
The Customizable Background and other options of Small Business will give the WordPress
Driven Site an attractive look. Small Business Pro will give your Extra Freedom and
Functionality which you must love.<a href="#"> ... Read More ...</a>
</p>
</span>
{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>