// Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Define Theme Constants. */ defined('ESHF_COMPATIBILITY_TMPL') or define('ESHF_COMPATIBILITY_TMPL', 'newsium'); /** * Newsium functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package Newsium */ if (!function_exists('newsium_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 newsium_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on Newsium, use a find and replace * to change 'newsium' to the name of your theme in all the template files. */ load_theme_textdomain('newsium', 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'); // Add featured image sizes add_image_size('newsium-slider-full', 1280, 845, true); // width, height, crop add_image_size('newsium-featured', 1024, 0, false ); // width, height, crop add_image_size('newsium-medium', 720, 475, true); // width, height, crop /* * 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')); // This theme uses wp_nav_menu() in one location. register_nav_menus(array( 'aft-primary-nav' => esc_html__('Primary Menu', 'newsium'), 'aft-social-nav' => esc_html__('Social Menu', 'newsium'), 'aft-footer-nav' => esc_html__('Footer Menu', 'newsium'), 'aft-secondary-nav' => esc_html__('Secondary Menu', 'newsium'), )); /* * 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', )); // Set up the WordPress core custom background feature. add_theme_support('custom-background', apply_filters('newsium_custom_background_args', array( 'default-color' => 'f3f3f3', 'default-image' => '', ))); // Add theme support for selective refresh for widgets. add_theme_support('customize-selective-refresh-widgets'); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support('custom-logo', array( 'flex-width' => true, 'flex-height' => true, )); /** * 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( 'appearance-tools' ); add_theme_support( 'custom-spacing' ); add_theme_support( 'custom-units' ); add_theme_support( 'custom-line-height' ); add_theme_support( 'border' ); add_theme_support( 'link-color' ); } endif; add_action('after_setup_theme', 'newsium_setup'); /** * function for google fonts */ if (!function_exists('newsium_fonts_url')): /** * Return fonts URL. * * @since 1.0.0 * @return string Fonts URL. */ function newsium_fonts_url() { /** * Return fonts URL. * * @since 1.0.0 * @return string Fonts URL. */ $fonts_url = ''; $fonts = array(); $subsets = 'latin,latin-ext'; /* translators: If there are characters in your language that are not supported by Oswald, translate this to 'off'. Do not translate into your own language. */ if ('off' !== _x('on', 'Roboto font: on or off', 'newsium')) { $fonts[] = 'Roboto:100,300,400,500,700'; } /* translators: If there are characters in your language that are not supported by Lato, translate this to 'off'. Do not translate into your own language. */ if ('off' !== _x('on', 'Lato font: on or off', 'newsium')) { $fonts[] = 'Lato:400,300,400italic,900,700'; } if ($fonts) { $fonts_url = add_query_arg(array( 'family' => urldecode(implode('|', $fonts)), 'subset' => urldecode($subsets), ), 'https://fonts.googleapis.com/css'); } return $fonts_url; } endif; /** * 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 newsium_content_width() { $GLOBALS['content_width'] = apply_filters('newsium_content_width', 640); } add_action('after_setup_theme', 'newsium_content_width', 0); /** * Enqueue scripts and styles. */ function newsium_scripts() { $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; // wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/font-awesome/css/font-awesome' . $min . '.css'); wp_enqueue_style('aft-icons', get_template_directory_uri() . '/assets/icons/style.css', array()); wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/bootstrap/css/bootstrap' . $min . '.css'); wp_enqueue_style('slick-css', get_template_directory_uri() . '/assets/slick/css/slick' . $min . '.css'); wp_enqueue_style('sidr', get_template_directory_uri() . '/assets/sidr/css/jquery.sidr.dark.css'); wp_enqueue_style('magnific-popup', get_template_directory_uri() . '/assets/magnific-popup/magnific-popup.css'); $fonts_url = newsium_fonts_url(); if (!empty($fonts_url)) { wp_enqueue_style('newsium-google-fonts', $fonts_url, array(), null); } /** * Load WooCommerce compatibility file. */ if (class_exists('WooCommerce')) { wp_enqueue_style('newsium-woocommerce-style', get_template_directory_uri() . '/woocommerce.css'); $font_path = WC()->plugin_url() . '/assets/fonts/'; $inline_font = '@font-face { font-family: "star"; src: url("' . $font_path . 'star.eot"); src: url("' . $font_path . 'star.eot?#iefix") format("embedded-opentype"), url("' . $font_path . 'star.woff") format("woff"), url("' . $font_path . 'star.ttf") format("truetype"), url("' . $font_path . 'star.svg#star") format("svg"); font-weight: normal; font-style: normal; }'; wp_add_inline_style('newsium-woocommerce-style', $inline_font); } wp_enqueue_style('newsium-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' )); wp_enqueue_script('jquery'); wp_enqueue_script('newsium-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true); wp_enqueue_script('newsium-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true); wp_enqueue_script('slick-js', get_template_directory_uri() . '/assets/slick/js/slick' . $min . '.js', array('jquery'), '', true); wp_enqueue_script('bootstrap', get_template_directory_uri() . '/assets/bootstrap/js/bootstrap' . $min . '.js', array('jquery'), '', true); wp_enqueue_script('sidr', get_template_directory_uri() . '/assets/sidr/js/jquery.sidr' . $min . '.js', array('jquery'), '', true); wp_enqueue_script('magnific-popup', get_template_directory_uri() . '/assets/magnific-popup/jquery.magnific-popup' . $min . '.js', array('jquery'), '', true); wp_enqueue_script('matchheight', get_template_directory_uri() . '/assets/jquery-match-height/jquery.matchHeight' . $min . '.js', array('jquery'), '', true); wp_enqueue_script('marquee', get_template_directory_uri() . '/assets/marquee/jquery.marquee.js', array('jquery'), '', true); wp_enqueue_script('sticky-sidebar', get_template_directory_uri() . '/assets/theiaStickySidebar/theia-sticky-sidebar.min.js', array('jquery'), '', true); wp_enqueue_script('newsium-script', get_template_directory_uri() . '/assets/script.js', array('jquery'), '', 1); $enable_sticky_header_option = newsium_get_option('enable_sticky_header_option'); if ($enable_sticky_header_option == true) { wp_enqueue_script('newsium-fixed-header-script', get_template_directory_uri() . '/assets/fixed-header-script.js', array('jquery'), '', 1); } if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_action('wp_enqueue_scripts', 'newsium_scripts'); /** * Enqueue admin scripts and styles. * * @since Newsium 1.0.0 */ function newsium__admin_scripts($hook) { if ('widgets.php' === $hook) { wp_enqueue_media(); wp_enqueue_script('newsium-widgets', get_template_directory_uri() . '/assets/widgets.js', array('jquery'), '1.0.0', true); } wp_enqueue_style('newsium-notice', get_template_directory_uri() . '/assets/css/notice.css'); } add_action('admin_enqueue_scripts', 'newsium__admin_scripts'); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom Multi Author tags for this theme. */ require get_template_directory() . '/inc/multi-author.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-images.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer/customizer.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/init.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/ocdi.php'; /** * Load Jetpack compatibility file. */ if (defined('JETPACK__VERSION')) { require get_template_directory() . '/inc/jetpack.php'; } /** * Load WooCommerce compatibility file. */ if (class_exists('WooCommerce')) { require get_template_directory() . '/inc/woocommerce.php'; } /** * Descriptions on Header Menu * @author AF themes * @param string $item_output , HTML outputp for the menu item * @param object $item , menu item object * @param int $depth , depth in menu structure * @param object $args , arguments passed to wp_nav_menu() * @return string $item_output */ function newsium_header_menu_desc($item_output, $item, $depth, $args) { if ('aft-primary-nav' == $args->theme_location && $item->description) $item_output = str_replace('</a>', '<span class="menu-description">' . $item->description . '</span></a>', $item_output); return $item_output; } add_filter('walker_nav_menu_start_el', 'newsium_header_menu_desc', 10, 4); function newsium_menu_notitle($menu) { return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu); } add_filter('wp_nav_menu', 'newsium_menu_notitle'); add_filter('wp_page_menu', 'newsium_menu_notitle'); add_filter('wp_list_categories', 'newsium_menu_notitle'); function newsium_print_pre($args){ echo "<pre>"; print_r($args); echo "</pre>"; } add_action( 'after_setup_theme', 'newsium_transltion_init'); function newsium_transltion_init() { load_theme_textdomain( 'newsium', false, get_template_directory() . '/languages' ); } <!doctype html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <meta name='robots' content='max-image-preview:large' /> <!-- Jetpack Site Verification Tags --> <meta name="google-site-verification" content="googleb6de40ac54e41684" /> <link rel='dns-prefetch' href='//stats.wp.com' /> <link rel='preconnect' href='//i0.wp.com' /> <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> <link rel="https://api.w.org/" href="https://akstrending.com/wp-json/" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://akstrending.com/xmlrpc.php?rsd" /> <style>img#wpstats{display:none}</style> <meta name="description" content="Akwa Ibom Trending is an Akwa Ibom-based e-zine that brings news, lifestyle and trending issues in Akwa Ibom and Nigeria to the world." /> <link rel="icon" href="https://i0.wp.com/akstrending.com/wp-content/uploads/2025/11/cropped-13401431_1215396691813026_520443136_n-1.jpg?fit=32%2C32&ssl=1" sizes="32x32" /> <link rel="icon" href="https://i0.wp.com/akstrending.com/wp-content/uploads/2025/11/cropped-13401431_1215396691813026_520443136_n-1.jpg?fit=192%2C192&ssl=1" sizes="192x192" /> <link rel="apple-touch-icon" href="https://i0.wp.com/akstrending.com/wp-content/uploads/2025/11/cropped-13401431_1215396691813026_520443136_n-1.jpg?fit=180%2C180&ssl=1" /> <meta name="msapplication-TileImage" content="https://i0.wp.com/akstrending.com/wp-content/uploads/2025/11/cropped-13401431_1215396691813026_520443136_n-1.jpg?fit=270%2C270&ssl=1" /> </head> <body class="error404 wp-theme-newsium">