-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
26 lines (22 loc) · 928 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* Newspack Block Theme functions and definitions
* Version: 1.14.0
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Newspack Block Theme
*/
defined( 'ABSPATH' ) || exit;
// Define NEWSPACK_BLOCK_THEME_FILE.
if ( ! defined( 'NEWSPACK_BLOCK_THEME_FILE' ) ) {
define( 'NEWSPACK_BLOCK_THEME_FILE', __FILE__ );
define( 'NEWSPACK_BLOCK_THEME_FILE_PATH', plugin_dir_path( NEWSPACK_BLOCK_THEME_FILE ) );
define( 'NEWSPACK_BLOCK_THEME_URL', plugin_dir_url( NEWSPACK_BLOCK_THEME_FILE ) );
define( 'NEWSPACK_BLOCK_THEME_VERSION', '1.14.0' );
}
// Include theme resources.
require_once NEWSPACK_BLOCK_THEME_FILE_PATH . '/includes/class-core.php';
require_once NEWSPACK_BLOCK_THEME_FILE_PATH . '/includes/blocks/index.php';
require_once NEWSPACK_BLOCK_THEME_FILE_PATH . '/includes/class-patterns.php';
require_once NEWSPACK_BLOCK_THEME_FILE_PATH . '/includes/class-jetpack.php';