Page Title
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support('title-tag');
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support('post-thumbnails');
add_image_size('business-shuffle-400x400', 400, 400, true);
add_image_size('business-shuffle-150x100', 150, 100, true);
// This theme uses wp_nav_menu() in one location.
register_nav_menus(array(
'business-shuffle-menu' => esc_html__('Primary', 'business-shuffle'),
));
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support('html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
));
// Set up the WordPress core custom background feature.
add_theme_support('custom-background', apply_filters('business_shuffle_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
)));
// Add theme support for selective refresh for widgets.
add_theme_support('customize-selective-refresh-widgets');
/**
* Add support for core custom logo.
*
* @link https://codex.wordpress.org/Theme_Logo
*/
add_theme_support('custom-logo', array(
'height' => 50,
'width' => 200,
'flex-width' => true,
'flex-height' => true,
));
add_post_type_support('page', 'excerpt');
}
endif;
add_action('after_setup_theme', 'business_shuffle_setup');
/**
* Set the content width in pixels, based on the theme's design and stylesheet.
*
* Priority 0 to make it available to lower priority callbacks.
*
* @global int $content_width
*/
function business_shuffle_content_width() {
// This variable is intended to be overruled from themes.
// Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}.
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
$GLOBALS['content_width'] = apply_filters('business_shuffle_content_width', 640);
}
add_action('after_setup_theme', 'business_shuffle_content_width', 0);
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function business_shuffle_widgets_init() {
register_sidebar(array(
'name' => esc_html__('Right Sidebar', 'business-shuffle'),
'id' => 'business-shuffle-right-sidebar',
'description' => esc_html__('Add widgets here.', 'business-shuffle'),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
));
register_sidebar(array(
'name' => esc_html__('Footer One', 'business-shuffle'),
'id' => 'business-shuffle-footer1',
'description' => esc_html__('Add widgets here.', 'business-shuffle'),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
));
register_sidebar(array(
'name' => esc_html__('Footer Two', 'business-shuffle'),
'id' => 'business-shuffle-footer2',
'description' => esc_html__('Add widgets here.', 'business-shuffle'),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
));
register_sidebar(array(
'name' => esc_html__('Footer Three', 'business-shuffle'),
'id' => 'business-shuffle-footer3',
'description' => esc_html__('Add widgets here.', 'business-shuffle'),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
));
register_sidebar(array(
'name' => esc_html__('Footer Four', 'business-shuffle'),
'id' => 'business-shuffle-footer4',
'description' => esc_html__('Add widgets here.', 'business-shuffle'),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h4 class="widget-title">',
'after_title' => '</h4>',
));
}
add_action('widgets_init', 'business_shuffle_widgets_init');
if (!function_exists('business_shuffle_fonts_url')) :
/**
* Register Google fonts for Business Shuffle.
*
* @since Business Shuffle 1.0
*
* @return string Google fonts URL for the theme.
*/
function business_shuffle_fonts_url() {
$fonts_url = '';
$fonts = array();
$subsets = 'latin,latin-ext';
/*
* Translators: If there are characters in your language that are not supported
* by Open Sans, translate this to 'off'. Do not translate into your own language.
*/
if ('off' !== _x('on', 'Poppins font: on or off', 'business-shuffle')) {
$fonts[] = 'Poppins:300,300i,400,400i,600,600i,700,700i';
}
/*
* Translators: If there are characters in your language that are not supported
* by Inconsolata, translate this to 'off'. Do not translate into your own language.
*/
if ('off' !== _x('on', 'Teko font: on or off', 'business-shuffle')) {
$fonts[] = 'Teko:400,500,600,700';
}
/*
* Translators: To add an additional character subset specific to your language,
* translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language.
*/
$subset = _x('no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'business-shuffle');
if ('cyrillic' == $subset) {
$subsets .= ',cyrillic,cyrillic-ext';
} elseif ('greek' == $subset) {
$subsets .= ',greek,greek-ext';
} elseif ('devanagari' == $subset) {
$subsets .= ',devanagari';
} elseif ('vietnamese' == $subset) {
$subsets .= ',vietnamese';
}
if ($fonts) {
$fonts_url = add_query_arg(array(
'family' => urlencode(implode('|', $fonts)),
'subset' => urlencode($subsets),
), '//fonts.googleapis.com/css');
}
return esc_url_raw($fonts_url);
}
endif;
/**
* Enqueue scripts and styles.
*/
function business_shuffle_scripts() {
wp_enqueue_style('business-shuffle-fonts', business_shuffle_fonts_url(), array(), null);
wp_enqueue_style('fontawesome', get_template_directory_uri() . '/css/fontawesome.css', array(), '5.2.0');
wp_enqueue_style('owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css', array(), '2.3.4');
wp_enqueue_style('business-shuffle-style', get_stylesheet_uri());
wp_add_inline_style('business-shuffle-style', business_shuffle_dynamic_style());
wp_enqueue_script('waypoint', get_template_directory_uri() . '/js/waypoint.js', array(), '1.0.0', true);
wp_enqueue_script('owl-carousel', get_template_directory_uri() . '/js/owl.carousel.js', array('jquery'), '2.3.4', true);
wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery'), '1.0', true);
wp_enqueue_script('business-shuffle-custom-scripts', get_template_directory_uri() . '/js/custom-scripts.js', array('jquery'), '1.0.0', true);
if (is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
}
add_action('wp_enqueue_scripts', 'business_shuffle_scripts');
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Functions which enhance the theme by hooking into WordPress.
*/
require get_template_directory() . '/inc/template-functions.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer/customizer.php';
/**
* Dynamic Styles.
*/
require get_template_directory() . '/inc/style.php';
/**
* Load WooCommerce compatibility file.
*/
if (class_exists('WooCommerce')) {
require get_template_directory() . '/inc/woocommerce.php';
}
/**
* Widgets additions.
*/
require get_template_directory() . '/inc/widgets/widget-fields.php';
require get_template_directory() . '/inc/widgets/widget-contact-info.php';
require get_template_directory() . '/inc/widgets/widget-personal-info.php';
require get_template_directory() . '/inc/widgets/widget-latest-post.php';
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<meta name='robots' content='noindex,nofollow' />
<link rel='dns-prefetch' href='//s.w.org' />
<script type="text/javascript">
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/www.joshscomputerservice.net\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.6.14"}};
!function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r<o.length;r++)t.supports[o[r]]=function(e){if(!p||!p.fillText)return!1;switch(p.textBaseline="top",p.font="600 32px Arial",e){case"flag":return s([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])?!1:!s([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!s([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]);case"emoji":return!s([55357,56424,8205,55356,57212],[55357,56424,8203,55356,57212])}return!1}(o[r]),t.supports.everything=t.supports.everything&&t.supports[o[r]],"flag"!==o[r]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[o[r]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(n=t.source||{}).concatemoji?c(n.concatemoji):n.wpemoji&&n.twemoji&&(c(n.twemoji),c(n.wpemoji)))}(window,document,window._wpemojiSettings);
</script>
<style type="text/css">
img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<link rel='stylesheet' id='wp-block-library-css' href='http://www.joshscomputerservice.net/wp-includes/css/dist/block-library/style.min.css?ver=5.6.14' type='text/css' media='all' />
<link rel="https://api.w.org/" href="http://www.joshscomputerservice.net/wp-json/" /><link rel="alternate" type="application/json" href="http://www.joshscomputerservice.net/wp-json/wp/v2/pages/12" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.joshscomputerservice.net/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.joshscomputerservice.net/wp-includes/wlwmanifest.xml" />
<meta name="generator" content="WordPress 5.6.14" />
<link rel="canonical" href="http://www.joshscomputerservice.net/" />
<link rel='shortlink' href='http://www.joshscomputerservice.net/' />
<link rel="alternate" type="application/json+oembed" href="http://www.joshscomputerservice.net/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.joshscomputerservice.net%2F" />
<link rel="alternate" type="text/xml+oembed" href="http://www.joshscomputerservice.net/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.joshscomputerservice.net%2F & format=xml" />
</head>
<body class="home page-template page-template-template-home page-template-template-home-php page page-id-12">
<a href="#content" class="skip-content-link" tabindex="1">Skip to content</a>
<div id="page" class="site">
<header id="masthead" class="site-header bs-site-header">
<div class="bs-container">
<div class="site-branding">
<p class="site-title"><a href="http://www.joshscomputerservice.net/" rel="home">Josh ’ s Computer Service</a></p>
<p class="site-description">Small Business IT Consulting & Support</p>
</div><!-- .site-branding -->
<nav id="site-navigation" class="bs-navigation main-navigation">
<div class="toggle-menu"><span></span></div>
<div class="bs-menu"><ul id="menu-topnav" class="clearfix"><li id="menu-item-37" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home current-menu-item page_item page-item-12 current_page_item menu-item-37"><a href="http://www.joshscomputerservice.net/" aria-current="page">Home</a></li>
<li id="menu-item-39" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-39"><a href="http://www.joshscomputerservice.net/about/">About Us</a></li>
<li id="menu-item-40" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-40"><a href="http://www.joshscomputerservice.net/services/">Services</a></li>
<li id="menu-item-38" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-38"><a href="http://www.joshscomputerservice.net/blog/">Blog</a></li>
<li id="menu-item-41" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-41"><a href="http://www.joshscomputerservice.net/contact-us/">Contact Us</a></li>
</ul></div> </nav><!-- #site-navigation -->
</div>
</header><!-- #masthead -->
<div id="content" class="site-content" tabindex="-1">