esc_html__('Primary Menu', 'axiohost'),
'footer_menu' => esc_html__('Footer Menu', 'axiohost'),
));
}
add_action('init', 'axiohost_nav_menus');
//axiohost Sidebar
function axiohost_sidebar()
{
register_sidebar(array(
'name' => esc_html__('Axiohost Sidebar', 'axiohost'),
'id' => 'axiohost-sidebar',
'description' => esc_html__('Axiohost sidebar', 'axiohost'),
'before_title' => '
',
'before_widget' => ''
));
register_sidebar(array(
'name' => esc_html__('Footer One', 'axiohost'),
'id' => 'footer1',
'description' => esc_html__('Footer one sidebar', 'axiohost'),
'before_title' => '',
'before_widget' => ''
));
register_sidebar(array(
'name' => esc_html__('Footer Two', 'axiohost'),
'id' => 'footer2',
'description' => esc_html__('Footer two sidebar', 'axiohost'),
'before_title' => '',
'before_widget' => ''
));
register_sidebar(array(
'name' => esc_html__('Footer Three', 'axiohost'),
'id' => 'footer3',
'description' => esc_html__('Footer three sidebar', 'axiohost'),
'before_title' => '',
'before_widget' => ''
));
register_sidebar(array(
'name' => esc_html__('Footer Four', 'axiohost'),
'id' => 'footer4',
'description' => esc_html__('Footer four sidebar', 'axiohost'),
'before_title' => '',
'before_widget' => ''
));
register_sidebar(array(
'name' => esc_html__('Footer Links', 'axiohost'),
'id' => 'footer-menu',
'description' => esc_html__('Footer links widget', 'axiohost'),
'before_widget' => ''
));
}
add_action('widgets_init', 'axiohost_sidebar');
//axiohost excerpt
function axiohost_excerpt($limits = 25)
{
$limits = $limits + 1;
$content = strip_tags(get_the_content());
$make_index = explode(' ', $content, $limits);
if (count($make_index) <= $limits) {
array_pop($make_index);
}
$excerpt = implode(' ', $make_index);
return $excerpt;
}
add_filter('wp_list_categories', 'axiohost_add_span');
function axiohost_add_span($links)
{
$links = str_replace(' (', ' ', $links);
$links = str_replace(')', '', $links);
return $links;
}
add_filter('get_archives_link', 'axiohost_add_span_in_archive');
function axiohost_add_span_in_archive($links)
{
$links = str_replace(' (', ' ', $links);
$links = str_replace(')', '', $links);
return $links;
}
function axiohost_search_form($form)
{
$form = '';
return $form;
}
add_filter('get_search_form', 'axiohost_search_form');
//Add custom post class
function axiohost_custom_post_class($classes)
{
if (is_single()) {
$classes[] = 'single-post';
} else {
$classes[] = 'blog-post blog-spacing blog-list wow fadeIn';
}
return $classes;
}
add_filter('post_class', 'axiohost_custom_post_class');
//Axiohost Search Form
function axiohost_get_search_form()
{ ?>
';
} else {
echo '';
}
}
}
add_action('axiohost_full_column', 'axiohost_dynamic_class_full_width', 10);
if (!function_exists('axiohost_dynamic_class_full_width_post')) {
function axiohost_dynamic_class_full_width_post()
{
if (!is_active_sidebar('axiohost-sidebar')) {
echo '
';
} else {
echo '
';
}
}
}
add_action('axiohost_full_post_column', 'axiohost_dynamic_class_full_width_post', 10);
?>