-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
73 lines (56 loc) · 1.3 KB
/
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
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
72
73
<?php
require_once "bootstrap/features.php";
// require_once "bootstrap/meta-boxes.php";
// require_once "gallery-metabox/gallery-metabox.php";
// Your code here...
// require_once "inc/meta-boxes.php";
bs_configure("assets", ["path" => "assets"]);
// Enqueue styles & scripts
// bs_enqueue_admin_assets(); // required if you use repeater metabox or image uploader
bs_configure("styles", [
"frontend" => [
bs_url("style.css"),
],
]);
bs_configure("scripts", [
"frontend" => [],
"admin" => [],
]);
// Configure main menu
/*
bs_configure("menus", [
"menus" => [
"primary" => [
"name" => "", // what will be shown in admin interface
],
],
]);
bs_configure("menu-classes", [
"first" => "",
"last" => "",
"active" => "",
]);
*/
// Create theme options page
/*
bs_configure("options-pages", [
"xx_theme_options" => [
"title" => "",
"section" => "xx",
"options" => [],
],
]);
function xx_theme_options()
{
?>
<table class="form-table">
</table>
<?php
}
*/
// Load ACF
/*
bs_configure("acf", [
"show_in_admin" => true, // set to false after exporting your fields
]);
*/