forked from ThemeFuse/Unyson-Breadcrumbs-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings-options.php
38 lines (36 loc) · 1.27 KB
/
settings-options.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
<?php if ( ! defined( 'FW' ) ) {
die( 'Forbidden' );
}
$default_values = apply_filters('fw_ext_breadcrumbs_settings_options_default_values', array(
'homepage-title' => __( 'Homepage', 'fw' ),
'blogpage-title' => __( 'Blog', 'fw' ),
'404-title' => __('404 Not Found', 'fw'),
));
$options = array(
apply_filters('fw:ext:breadcrumbs:settings-options:before', array()),
'box' => array(
'title' => false,
'type' => 'box',
'options' => array(
'homepage-title' => array(
'label' => __( 'Text for Homepage', 'fw' ),
'desc' => __( 'The homepage anchor will have this text', 'fw' ),
'type' => 'text',
'value' => $default_values['homepage-title']
),
'blogpage-title' => array(
'label' => __( 'Text for Blog Page', 'fw' ),
'desc' => __( 'The blog page anchor will have this text. In case homepage will be set as blog page, will be taken the homepage text', 'fw' ),
'type' => 'text',
'value' => $default_values['blogpage-title']
),
'404-title' => array(
'label' => __( 'Text for 404 Page', 'fw' ),
'desc' => __( 'The 404 anchor will have this text', 'fw' ),
'type' => 'text',
'value' => $default_values['404-title']
),
)
),
apply_filters('fw:ext:breadcrumbs:settings-options:after', array()),
);