From 9b6e5a91bfe8c30648b55c68905a97903acdf75c Mon Sep 17 00:00:00 2001 From: jamesvici Date: Tue, 15 Sep 2026 19:17:44 -0400 Subject: [PATCH] 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 --- src/components/FeaturedBox.astro | 58 ++++++++++++++++---------------- src/pages/index.astro | 7 +++- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/src/components/FeaturedBox.astro b/src/components/FeaturedBox.astro index cf417f6..5bb7ae4 100644 --- a/src/components/FeaturedBox.astro +++ b/src/components/FeaturedBox.astro @@ -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(..., '')) -- 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: ` 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. +`, + }, + { + title: 'VICIdial Hosting with Dedicated Hardware', + link: '/hosting', + description: `If you don’t want to have to manage your own VICIdial equipment, then let the experts do it for you! The Vicidial Group’s VICIhost service can get you up and running today on your own dedicated server in our custom built server cloud.`, + }, +]; ---
diff --git a/src/pages/index.astro b/src/pages/index.astro index acf1f8c..b53b90f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -11,7 +11,7 @@ const posts = (await getCollection('posts')).sort((a, b) => b.data.date.getTime( -

Go with Small Business Pro for exciting Post Options, Theme Options and Extra Functionalities.

+

The Most Popular Open-Source Contact Center Solution in the World

@@ -26,6 +26,11 @@ const posts = (await getCollection('posts')).sort((a, b) => b.data.date.getTime( ))} + +
+
+
In use at over 14,000 companies in over 100 countries around the world
+