/** * Newsup functions and definitions * * @package Newsup */ // Global variables define define( 'NEWSUP_THEME_DIR', get_template_directory() . '/' ); define( 'NEWSUP_THEME_URI', get_template_directory_uri() . '/' ); define( 'NEWS_THEME_SETTINGS', 'newsup-settings' ); $newsup_theme_path = get_template_directory() . '/inc/ansar/'; require( $newsup_theme_path . '/newsup-custom-navwalker.php' ); require( $newsup_theme_path . '/default_menu_walker.php' ); require( $newsup_theme_path . '/font/font.php'); require( $newsup_theme_path . '/template-tags.php'); require( $newsup_theme_path . '/template-functions.php'); require( $newsup_theme_path . '/widgets/widgets-common-functions.php'); require ( $newsup_theme_path . '/custom-control/custom-control.php'); require ( $newsup_theme_path . '/customizer-admin/newsup-admin-plugin-install.php'); require_once( trailingslashit( get_template_directory() ) . 'inc/ansar/customize-pro/class-customize.php' ); $newsup_theme_start = wp_get_theme(); if (( 'Newsup' == $newsup_theme_start->name) || ( 'Newsup Child' == $newsup_theme_start->name) || ( 'Newsberg' == $newsup_theme_start->name) || ( 'Newsbulk' == $newsup_theme_start->name) || ( 'Newslay' == $newsup_theme_start->name) || ( 'Foodup' == $newsup_theme_start->name) || ( 'News Live' == $newsup_theme_start->name) || ( 'Mag Dark' == $newsup_theme_start->name) || ( 'News Talk' == $newsup_theme_start->name) || ( 'News Way' == $newsup_theme_start->name) || ( 'News Bit' == $newsup_theme_start->name) || ( 'News Maz' == $newsup_theme_start->name) || ( 'News Jack' == $newsup_theme_start->name) || ( 'News Hunt' == $newsup_theme_start->name) || ( 'Max News' == $newsup_theme_start->name) || ( 'Newspaperex' == $newsup_theme_start->name) || ( 'Newswiz' == $newsup_theme_start->name) || ( 'Newsgine' == $newsup_theme_start->name) || ( 'Newsmark' == $newsup_theme_start->name) || ( 'Paper News' == $newsup_theme_start->name) ) { if ( is_admin() ) { // require ($newsup_theme_path . '/admin/getting-started.php'); } } // Theme version. $newsup_theme = wp_get_theme(); define( 'NEWSUP_THEME_VERSION', $newsup_theme->get( 'Version' ) ); define ( 'NEWSUP_THEME_NAME', $newsup_theme->get( 'Name' ) ); /*-----------------------------------------------------------------------------------*/ /* Enqueue scripts and styles. /*-----------------------------------------------------------------------------------*/ require( $newsup_theme_path .'/enqueue.php'); /* ----------------------------------------------------------------------------------- */ /* Customizer */ /* ----------------------------------------------------------------------------------- */ require( $newsup_theme_path . '/customize/customizer.php'); /* ----------------------------------------------------------------------------------- */ /* Customizer */ /* ----------------------------------------------------------------------------------- */ require( $newsup_theme_path . '/widgets/widgets-init.php'); /* ----------------------------------------------------------------------------------- */ /* Widget */ /* ----------------------------------------------------------------------------------- */ require( $newsup_theme_path . '/hooks/hooks-init.php'); require_once( trailingslashit( get_template_directory() ) . 'inc/ansar/customize-pro/class-customize.php' ); /** * Load Jetpack compatibility file. */ if (defined('JETPACK__VERSION')) { require get_template_directory() . '/inc/ansar/jetpack.php'; } if ( ! function_exists( 'newsup_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 newsup_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on newsup, use a find and replace * to change 'newsup' to the name of your theme in all the template files. */ load_theme_textdomain( 'newsup', 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' ); /* Add theme support for gutenberg block */ add_theme_support( 'align-wide' ); add_theme_support( 'responsive-embeds' ); add_theme_support('wp-block-styles'); add_theme_support('custom-spacing'); add_theme_support('appearance-tools'); add_theme_support('custom-units'); add_theme_support('custom-line-height'); add_theme_support('border'); add_theme_support( 'link-color' ); /* * 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 menu', 'newsup' ), 'footer' => esc_html__( 'Footer menu', 'newsup' ), ) ); /* * 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', 'style', 'script', ) ); /* * Enable support for Post Formats on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/post-formats/ */ add_theme_support( 'post-formats', array( 'image', 'video', 'gallery' ) ); $args = array( 'default-color' => '#eee', 'default-image' => '', ); add_theme_support( 'custom-background', $args ); // Set up the woocommerce feature. add_theme_support( 'woocommerce'); // Woocommerce Gallery Support add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // Added theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); //Custom logo add_theme_support( 'custom-logo', array( 'unlink-homepage-logo' => true, // Add Here! ) ); // custom header Support $args = array( 'default-image' => get_template_directory_uri() .'/images/head-back.jpg', 'width' => '1600', 'height' => '600', 'flex-height' => false, 'flex-width' => false, 'header-text' => true, 'default-text-color' => 'fff', 'wp-head-callback' => 'newsup_header_color', ); add_theme_support( 'custom-header', $args ); // Enable default block styles for Gutenberg blocks add_theme_support( 'wp-block-styles' ); // Add custom styles to the editor add_editor_style( array( 'css/editor-style.css') ); } endif; add_action( 'after_setup_theme', 'newsup_setup' ); function newsup_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } add_filter('get_custom_logo','newsup_logo_class'); function newsup_logo_class($html) { $html = str_replace('custom-logo-link', 'navbar-brand', $html); return $html; } /** * 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 newsup_content_width() { $GLOBALS['content_width'] = apply_filters( 'newsup_content_width', 640 ); } add_action( 'after_setup_theme', 'newsup_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function newsup_widgets_init() { $newsup_footer_column_layout = esc_attr(get_theme_mod('newsup_footer_column_layout',3)); $newsup_footer_column_layout = 12 / $newsup_footer_column_layout; register_sidebar( array( 'name' => esc_html__( 'Sidebar Widget Area', 'newsup' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '<div id="%1$s" class="mg-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="mg-wid-title"><h6 class="wtitle">', 'after_title' => '</h6></div>', ) ); register_sidebar( array( 'name' => esc_html__( 'Front-page Content Section', 'newsup'), 'id' => 'front-page-content', 'description' => '', 'before_widget' => '<div id="%1$s" class="newsup-front-page-content-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="mg-sec-title"><h4>', 'after_title' => '</h4></div>', ) ); register_sidebar( array( 'name' => esc_html__( 'Front-page Sidebar Section', 'newsup'), 'id' => 'front-page-sidebar', 'description' => '', 'before_widget' => '<div id="%1$s" class="mg-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="mg-wid-title"><h6 class="wtitle">', 'after_title' => '</h6></div>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget Area', 'newsup' ), 'id' => 'footer_widget_area', 'description' => '', 'before_widget' => '<div id="%1$s" class="col-md-'.$newsup_footer_column_layout.' rotateInDownLeft animated mg-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h6>', 'after_title' => '</h6>', ) ); } add_action( 'widgets_init', 'newsup_widgets_init' ); add_filter('wp_nav_menu_items', 'newsup_add_home_link', 1, 2); function newsup_add_home_link($items, $args){ if( $args->theme_location == 'primary' ){ $item = '<li class="active home"><a class="homebtn" href="'. esc_url( home_url() ) .'">' . "<span class='fa-solid fa-house-chimney'></span>" . '</a></li>'; $items = $item . $items; } return $items; } if ( ! function_exists( 'wp_body_open' ) ) { /** * Shim for wp_body_open, ensuring backward compatibility with versions of WordPress older than 5.2. */ function wp_body_open() { do_action( 'wp_body_open' ); } }<!DOCTYPE html> <html lang="en-US" prefix="og: https://ogp.me/ns#"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <!-- Prime SEO 1.0.3 --> <meta name="robots" content="index, follow"> <!-- Open Graph Tags --> <meta property="og:locale" content="en_US"> <meta property="og:site_name" content="Reflection Business"> <meta property="og:type" content="website"> <meta property="og:title" content="Country Code"> <meta property="og:url" content="https://reflectionbusiness.com/tag/country-code/"> <meta property="og:image" content="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-Screenshot_7-1.png"> <meta property="og:image:secure_url" content="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-Screenshot_7-1.png"> <meta property="og:image:width" content="236"> <meta property="og:image:height" content="102"> <meta property="og:image:type" content="image/png"> <meta property="og:image:alt" content="Reflection Business"> <!-- Twitter Card Tags --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Country Code"> <meta name="twitter:image" content="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-Screenshot_7-1.png"> <!-- Structured Data --> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Country Code" } ] } </script> <!-- / Prime SEO --> <!-- Search Engine Optimization by Rank Math - https://rankmath.com/ --> <meta name="robots" content="follow, noindex"/> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="article" /> <meta property="og:title" content="Country Code - Reflection Business" /> <meta property="og:url" content="https://reflectionbusiness.com/tag/country-code/" /> <meta property="og:site_name" content="Reflection Business" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="Country Code - Reflection Business" /> <meta name="twitter:label1" content="Posts" /> <meta name="twitter:data1" content="1" /> <script type="application/ld+json" class="rank-math-schema">{"@context":"https://schema.org","@graph":[{"@type":"Person","@id":"https://reflectionbusiness.com/#person","name":"Reflection Business","image":{"@type":"ImageObject","@id":"https://reflectionbusiness.com/#logo","url":"https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-Screenshot_7-1-150x102.png","contentUrl":"https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-Screenshot_7-1-150x102.png","caption":"Reflection Business","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://reflectionbusiness.com/#website","url":"https://reflectionbusiness.com","name":"Reflection Business","publisher":{"@id":"https://reflectionbusiness.com/#person"},"inLanguage":"en-US"},{"@type":"CollectionPage","@id":"https://reflectionbusiness.com/tag/country-code/#webpage","url":"https://reflectionbusiness.com/tag/country-code/","name":"Country Code - Reflection Business","isPartOf":{"@id":"https://reflectionbusiness.com/#website"},"inLanguage":"en-US"}]}</script> <!-- /Rank Math WordPress SEO plugin --> <link rel="alternate" type="application/rss+xml" title="Reflection Business » Country Code Tag Feed" href="https://reflectionbusiness.com/tag/country-code/feed/" /> <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> <style id='wp-block-library-inline-css' type='text/css'> :root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} /*# sourceURL=wp-block-library-inline-css */ </style> <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> <style id='generateblocks-inline-css' type='text/css'> :root{--gb-container-width:1100px;}.gb-container .wp-block-image img{vertical-align:middle;}.gb-grid-wrapper .wp-block-image{margin-bottom:0;}.gb-highlight{background:none;}.gb-shape{line-height:0;} /*# sourceURL=generateblocks-inline-css */ </style> <link rel='stylesheet' id='newsup-style-parent-css' href='https://reflectionbusiness.com/wp-content/themes/newsup/style.css?ver=6.9' type='text/css' media='all' /> <link rel='stylesheet' id='newsgine-style-css' href='https://reflectionbusiness.com/wp-content/themes/newsgine/style.css?ver=1.0' type='text/css' media='all' /> <link rel='stylesheet' id='bootstrap-css' href='https://reflectionbusiness.com/wp-content/themes/newsup/css/bootstrap.css?ver=6.9' type='text/css' media='all' /> <link rel='stylesheet' id='newsgine-default-css-css' href='https://reflectionbusiness.com/wp-content/themes/newsgine/css/colors/default.css?ver=6.9' type='text/css' media='all' /> <link rel="https://api.w.org/" href="https://reflectionbusiness.com/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://reflectionbusiness.com/wp-json/wp/v2/tags/488" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://reflectionbusiness.com/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.9" /> <link rel="icon" href="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-cropped-Screenshot_7-e1659367840417-removebg-preview-32x32.png" sizes="32x32" /> <link rel="icon" href="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-cropped-Screenshot_7-e1659367840417-removebg-preview-192x192.png" sizes="192x192" /> <link rel="apple-touch-icon" href="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-cropped-Screenshot_7-e1659367840417-removebg-preview-180x180.png" /> <meta name="msapplication-TileImage" content="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-cropped-Screenshot_7-e1659367840417-removebg-preview-270x270.png" /> </head> <body class="archive tag tag-country-code tag-488 wp-custom-logo wp-theme-newsup wp-child-theme-newsgine" > <div id="page" class="site"> <a class="skip-link screen-reader-text" href="#content"> Skip to content</a> <div class="wrapper"> <header class="mg-headwidget center light"> <!--==================== TOP BAR ====================--> <div class="clearfix"></div> <div class="mg-nav-widget-area-back" style='background-image: url("" );'> <div class="overlay"> <div class="inner" > <div class="container-fluid"> <div class="mg-nav-widget-area"> <div class="row align-items-center"> <div class="col-md-4 col-sm-4 text-center-xs"> <div class="heacent">Sun. Jan 25th, 2026 <span id="time" class="time"></span> </div> </div> <div class="col-md-4 col-sm-4 text-center-xs"> <div class="navbar-header"> <a href="https://reflectionbusiness.com/" class="custom-logo-link" rel="home"><img width="236" height="102" src="https://reflectionbusiness.com/wp-content/uploads/2022/08/cropped-Screenshot_7-1.png" class="custom-logo" alt="reflectionbusiness logo" decoding="async" /></a> </div> </div> <div class="col-md-4 col-sm-4 text-center-xs"> <ul class="mg-social-header-section mg-social info-right"> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mg-menu-full"> <nav class="navbar navbar-expand-lg navbar-wp"> <div class="container-fluid flex-row"> <!-- Right nav --> <div class="m-header d-flex d-lg-none .d-md-block pl-3 ml-auto my-2 my-lg-0 position-relative align-items-center"> <a class="mobilehomebtn" href="https://reflectionbusiness.com"><span class="fas fa-home"></span></a> <!-- navbar-toggle --> <!-- /navbar-toggle --> <div class="dropdown ml-auto show mg-search-box pr-2"> <a class="dropdown-toggle msearch ml-auto" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fas fa-search"></i> </a> <div class="dropdown-menu searchinner" aria-labelledby="dropdownMenuLink"> <form role="search" method="get" id="searchform" action="https://reflectionbusiness.com/"> <div class="input-group"> <input type="search" class="form-control" placeholder="Search" value="" name="s" /> <span class="input-group-btn btn-default"> <button type="submit" class="btn"> <i class="fas fa-search"></i> </button> </span> </div> </form> </div> </div> <button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target="#navbar-wp" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <i class="fas fa-bars"></i> </button> </div> <!-- /Right nav --> <div class="collapse navbar-collapse" id="navbar-wp">