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_once( trailingslashit( get_template_directory() ) . 'inc/ansar/customize-pro/class-customize.php' ); $newsup_theme_start = wp_get_theme(); if (( 'Newsup' == $newsup_theme_start->name) || ( 'Newsberg' == $newsup_theme_start->name) || ( 'Newsbulk' == $newsup_theme_start->name) || ( 'Newslay' == $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' ); 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