-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
71 lines (65 loc) · 2.16 KB
/
Copy pathfunctions.php
File metadata and controls
71 lines (65 loc) · 2.16 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* Merkelijkheid_basis functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Merkelijkheid_basis
*/
if ( ! defined( '_S_VERSION' ) ) {
// Replace the version number of the theme on each release.
define( '_S_VERSION', '1.0.0' );
}
if ( ! function_exists( 'merkelijkheid_setup' ) ) :
function merkelijkheid_setup() {
load_theme_textdomain( 'merkelijkheid', get_template_directory() . '/languages' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
register_nav_menus(
array(
'menu-1' => esc_html__( 'Primary', 'merkelijkheid' ),
)
);
add_theme_support(
'html5',
array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'style',
'script',
)
);
}
endif;
add_action( 'after_setup_theme', 'merkelijkheid_setup' );
/**
* Enqueue scripts and styles.
*/
function merkelijkheid_scripts() {
wp_enqueue_style( 'merkelijkheid-bootstrap', get_template_directory_uri() . '/css/bootstrap/bootstrap.min.css');
wp_enqueue_style( 'merkelijkheid-style', get_stylesheet_uri(), array(), _S_VERSION );
// wp_enqueue_script( 'merkelijkheid-popper', get_template_directory_uri() . '/js/popper/popper.min.js', array('jquery'), null, true);
wp_enqueue_script( 'merkelijkheid-bootstrap', get_template_directory_uri() . '/js/bootstrap/bootstrap.min.js', array('jquery'), null, true);
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'merkelijkheid_scripts' );
function register_navwalker(){
require_once get_template_directory() . '/inc/class-wp-bootstrap-navwalker.php';
}
add_action( 'after_setup_theme', 'register_navwalker' );
/**
* Functions which enhance the theme by hooking into WordPress.
*/
require get_template_directory() . '/inc/template-functions.php';
require get_template_directory() . '/inc/template-tags.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';