esc_html__('Sidebar', 'business-x'),
'id' => 'sidebar-1',
'description' => esc_html__('Add widgets here.', 'business-x'),
'before_widget' => '',
'before_title' => '
',
));
register_sidebar(array(
'name' => esc_html__('Home Page Slider Section', 'business-x'),
'id' => 'home-top-slider-post',
'description' => esc_html__('Add VN : Slider Widgets here.', 'business-x'),
'before_widget' => '',
'before_title' => '',
'after_title' => ' ',
));
register_sidebar(array(
'name' => esc_html__('Home Page Top Middle Section', 'business-x'),
'id' => 'home-top-middle-slider-post',
'description' => esc_html__('Add VN : Top Middle Slider Widgets here.', 'business-x'),
'before_widget' => '',
'before_title' => '',
'after_title' => '',
));
register_sidebar(array(
'name' => esc_html__('Home Page Third Section', 'business-x'),
'id' => 'home-post-list',
'description' => esc_html__('Add VN : Post Listing Widgets here.', 'business-x'),
'before_widget' => '',
'before_title' => '',
));
register_sidebar(array(
'name' => esc_html__('Footer Section 1', 'business-x'),
'id' => 'footer-section-1',
'description' => esc_html__('Set Footer Section 1 Business X.', 'business-x'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
));
register_sidebar(array(
'name' => esc_html__('Footer Section 2', 'business-x'),
'id' => 'footer-section-2',
'description' => esc_html__('Set Footer Section 2 Business X.', 'business-x'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
));
register_sidebar(array(
'name' => esc_html__('Footer Section 3', 'business-x'),
'id' => 'footer-section-3',
'description' => esc_html__('Set Footer Section 3 Business X.', 'business-x'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
));
register_sidebar(array(
'name' => esc_html__('Footer Section 4', 'business-x'),
'id' => 'footer-section-4',
'description' => esc_html__('Set Footer Section 4 Business X.', 'business-x'),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
));
}
add_action('widgets_init', 'business_x_widgets_init');
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return array
*/
function business_x_body_classes($classes) {
// Adds a class of hfeed to non-singular pages.
if (!is_singular()) {
$classes[] = 'hfeed';
}
return $classes;
}
add_filter('body_class', 'business_x_body_classes');
// Menu default
function business_x_default_menu() {
$html = '';
$html .= '';
$html .= ' ';
echo $html;
}
/**
* Add a pingback url auto-discovery header for singularly identifiable articles.
*/
function business_x_pingback_header() {
if (is_singular() && pings_open()) {
echo ' ';
}
}
add_action('wp_head', 'business_x_pingback_header');
if (!function_exists('business_x_post_thumbnail')) :
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function business_x_post_thumbnail() {
if (post_password_required() || is_attachment() || !has_post_thumbnail()) {
return;
}
if (is_singular()) :
?>
the_title_attribute(array('echo' => false)), 'class' => 'img-responsive',)); ?>
the_title_attribute(array('echo' => false,)), 'class' => 'img-responsive',)); ?>
= $limit) {
array_pop($excerpt);
$excerpt = implode(" ", $excerpt) . '...';
} else {
$excerpt = implode(" ", $excerpt);
}
$excerpt = preg_replace('`\[[^\]]*\]`', '', $excerpt);
return esc_html($excerpt);
}
/**
* Set up post entry meta.
* Meta information for current post: categories, tags, permalink, author, and date.
* */
function business_x_entry_meta() {
$tags_list = get_the_tag_list('', esc_html_x(', ', 'list item separator', 'business-x'));
?>
%2$s', esc_attr(get_the_date('c')), esc_html(get_the_date(get_option('date_format')))); ?>
__('Page Builder by SiteOrigin', 'business-x'),
'slug' => 'siteorigin-panels',
'required' => false,
),
array(
'name' => __('SiteOrigin Widgets Bundle', 'business-x'),
'slug' => 'so-widgets-bundle',
'required' => false,
),
array(
'name' => __('Contact Form 7', 'business-x'),
'slug' => 'contact-form-7',
'required' => false,
),
);
$config = array(
'default_path' => '',
'menu' => 'business-x-install-plugins',
'has_notices' => true,
'dismissable' => true,
'dismiss_msg' => '',
'is_automatic' => false,
'message' => '',
'strings' => array(
'page_title' => __('Install Recommended Plugins', 'business-x'),
'menu_title' => __('Install Plugins', 'business-x'),
'nag_type' => 'updated'
)
);
tgmpa($plugins, $config);
}
}