-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.php
60 lines (50 loc) · 1.92 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
function optionsframework_option_name() {
$themename = get_option( 'stylesheet' );
$themename = preg_replace("/\W/", "_", strtolower($themename) );
$optionsframework_settings = get_option( 'optionsframework' );
$optionsframework_settings['id'] = $themename;
update_option( 'optionsframework', $optionsframework_settings );
}
function optionsframework_options() {
// Test data
$test_array = array(
'one' => __('One', 'options_framework_theme'),
'two' => __('Two', 'options_framework_theme'),
'three' => __('Three', 'options_framework_theme'),
'four' => __('Four', 'options_framework_theme'),
'five' => __('Five', 'options_framework_theme')
);
$options = array();
$options[] = array(
'name' => __('Settings', 'options_framework_theme'),
'type' => 'heading');
$options[] = array(
'name' => __('Frontpage Comments Number', 'options_framework_theme'),
'desc' => __('Enter 0 to hide comments on frontpage', 'options_framework_theme'),
'id' => 'frontpage_comments_number',
'std' => '3',
'class' => 'mini',
'type' => 'text');
$options[] = array(
'name' => __('Facebook Icon URL', 'options_framework_theme'),
'desc' => __('Leave blank to hide facebook icon in header', 'options_framework_theme'),
'id' => 'facebook_icon_url',
'std' => 'http://facebook.com/#',
'class' => 'wide',
'type' => 'text');
$options[] = array(
'name' => __('Twitter Icon URL', 'options_framework_theme'),
'desc' => __('Leave blank to hide twitter icon in header', 'options_framework_theme'),
'id' => 'twitter_icon_url',
'std' => 'http://twitter.com/#',
'class' => 'wide',
'type' => 'text');
$options[] = array(
'name' => __('Header Logo', 'options_framework_theme'),
'desc' => __('Logo height should be 50px. Width is flexible. Leave blank to use site title text.', 'options_framework_theme'),
'id' => 'logo',
'type' => 'upload');
return $options;
}
?>