/*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