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:
@@ -1,35 +1,35 @@
|
|||||||
---
|
---
|
||||||
// Ported from wp-content/themes/small-business/featured-box.php. The site never set
|
// Ported from wp-content/themes/small-business/featured-box.php.
|
||||||
// custom featured-box options in wp_options, so these are the theme's own default
|
// Values come from the theme's Options Framework row (wp_options.smallbusiness),
|
||||||
// fallback values (of_get_option(..., '<default>')) -- i.e. the real, unedited content.
|
// 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&utm_medium=badge&utm_campaign=capterra_reviews_badge'> <img border='0' align='left' hspace='8' src='https://assets.capterra.com/badge/37bd65879419f3281e2850f245fab7cf.png?v=2095683&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 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.`,
|
||||||
|
},
|
||||||
|
];
|
||||||
---
|
---
|
||||||
|
|
||||||
<div id="featured-boxs">
|
<div id="featured-boxs">
|
||||||
<span class="featured-box-first">
|
{boxes.map((box, i) => (
|
||||||
<a href="#"><h2>Small Business Theme</h2></a>
|
<span class={i === 0 ? 'featured-box-first' : 'featured-box'}>
|
||||||
<p>
|
<a href={box.link}><h2>{box.title}</h2></a>
|
||||||
The Customizable Background and other options of Small Business will give the WordPress
|
<p><Fragment set:html={box.description} /><a href={box.link}> ... Read More ...</a></p>
|
||||||
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>
|
</span>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div class="content-ver-sep"> </div>
|
<div class="content-ver-sep"> </div>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const posts = (await getCollection('posts')).sort((a, b) => b.data.date.getTime(
|
|||||||
<BaseLayout title="VICIdial.com | Open-Source Contact Center Solution">
|
<BaseLayout title="VICIdial.com | Open-Source Contact Center Solution">
|
||||||
<Slideshow />
|
<Slideshow />
|
||||||
|
|
||||||
<h1 id="heading">Go with Small Business Pro for exciting Post Options, Theme Options and Extra Functionalities.</h1>
|
<h1 id="heading">The Most Popular Open-Source Contact Center Solution in the World</h1>
|
||||||
|
|
||||||
<FeaturedBox />
|
<FeaturedBox />
|
||||||
|
|
||||||
@@ -26,6 +26,11 @@ const posts = (await getCollection('posts')).sort((a, b) => b.data.date.getTime(
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="content-ver-sep"> </div>
|
||||||
|
<div id="customers-comment">
|
||||||
|
<blockquote>In use at over 14,000 companies in over 100 countries around the world</blockquote>
|
||||||
|
</div>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user