-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·87 lines (77 loc) · 2.37 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
74
75
76
77
78
79
80
81
82
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
define("FILEPATH", __DIR__.'/inc/');
define('ASSETS_URL', get_stylesheet_directory_uri() . '/../gainlovegainlove-child/assets/');
include FILEPATH . 'enqueue.php';
include FILEPATH . 'query.php';
include FILEPATH . 'others.php';
include FILEPATH . 'api.php';
function give_kindness_settings() {
$settings = array(
/**
* File field setting
*/
array(
'name' => esc_html__( 'Give Kindness Settings', 'givelove' ),
'type' => 'title',
),
array(
'name' => esc_html__( 'Verified short', 'givelove' ),
'desc' => '',
'default' => '',
'id' => 'give_kindness_verify_link_content',
'type' => 'wysiwyg',
),
array(
'name' => esc_html__( 'Trust and safety', 'givelove' ),
'desc' => '',
'default' => '',
'id' => 'give_kindness_trust_safety',
'type' => 'wysiwyg',
),
array(
'name' => esc_html__( 'Giving guarantee', 'givelove' ),
'desc' => '',
'default' => '',
'id' => 'give_kindness_guarantee',
'type' => 'wysiwyg',
),
array(
'name' => esc_html__( 'Verified details', 'givelove' ),
'desc' => '',
'default' => '',
'id' => 'give_kindness_verify_details',
'type' => 'wysiwyg',
),
array(
'name' => esc_html__( 'Boosting', 'givelove' ),
'desc' => '',
'default' => '',
'id' => 'give_kindness_boosting',
'type' => 'wysiwyg',
),
array(
'name' => esc_html__( 'Boosting popup content', 'givelove' ),
'desc' => '',
'default' => '',
'id' => 'give_kindness_boosting_popup',
'type' => 'wysiwyg',
),
array(
'id' => 'file_field_setting',
'type' => 'sectionend',
),
);
return $settings;
}
/**
*
*
*/
add_filter( 'give-settings_get_settings_pages', 'give_kindness_register_settings', 20, 1 );
function give_kindness_register_settings( $settings ) {
require_once __DIR__ .'/class-give-kindness-settings.php';
$settings[] = new Give_Kindness_Settings();
return $settings;
}