-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
46 lines (40 loc) · 779 Bytes
/
functions.php
File metadata and controls
46 lines (40 loc) · 779 Bytes
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
<?php
namespace Mamaduka\Suliko;
const VERSION = '01052020';
/**
* Setup theme defaults.
*
* @return void
*/
function theme_setup() {
add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', __NAMESPACE__ . '\\theme_setup' );
/**
* Enqueue theme assets.
*
* @return void
*/
function enqueue_assets() {
wp_enqueue_style(
'normalize',
get_template_directory_uri() . '/public/css/normalize.css',
[],
VERSION
);
wp_enqueue_style(
'styles',
get_template_directory_uri() . '/public/css/style.css',
[],
VERSION
);
}
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\enqueue_assets' );
/**
* Get the logo/avatar URL.
*
* @return string
*/
function get_the_logo() {
return get_parent_theme_file_uri( '/public/images/george.png' );
}