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; } //axiohost import demo content function axiohost_import_demo_content() { return array( array( 'import_file_name' => esc_html__('Axiohost Demo', 'axiohost'), 'import_file_url' => get_template_directory_uri().'/inc/demo-content/demo-content.xml', 'import_widget_file_url' => get_template_directory_uri().'/inc/demo-content/demo-widget.wie', 'import_customizer_file_url' => get_template_directory_uri().'/inc/demo-content/demo-customization.dat', 'import_redux' => array( array( 'file_url' => get_template_directory_uri().'/inc/demo-content/demo-redux.json', 'option_name' => 'axiohost', ), ), 'import_notice' => esc_html__( 'Please waiting for a few minutes, do not close the window or refresh the page until the data is imported.', 'axiohost' ), 'preview_url' => 'axiohost-wp.themeix.com', ), ); } add_filter( 'pt-ocdi/import_files', 'axiohost_import_demo_content' ); function axiohost_import_after_menu (){ $themex_main_menu = get_term_by( 'name', 'primary menu', 'primary_menu' ); set_theme_mod( 'nav_menu_locations', array( 'primary_menu' => $themex_main_menu->term_id, ) ); } add_action( 'pt-ocdi/after_import', 'axiohost_import_after_menu' ); //Override redux message function axiohost_override_redux_message() { update_option( 'ReduxFrameworkPlugin_ACTIVATED_NOTICES', []); } add_action('admin_init', 'axiohost_override_redux_message', 30); //axiohost extra CSS function axiohost_extra_css(){ if(class_exists('ReduxFrameworkPlugin')){ global $axiohost; ?> (', ' ', $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' ); //Include breadcrumb include_once('inc/breadcrumb.php'); //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 get_axiohost_search_form(){?>