cat_ID] = $category->cat_name;
}
// Pull all tags into an array
$options_tags = array();
$options_tags_obj = get_tags();
foreach ( $options_tags_obj as $tag ) {
$options_tags[$tag->term_id] = $tag->name;
}
// Pull all the pages into an array
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
$options = array();
$options[] = array(
'name' => __('Basic Options', 'businesscard'),
'type' => 'heading');
$options[] = array(
'name' => __('Premium Features', 'businesscard'),
'desc' => __('
- Upload Logo
- Slider (enable/disable title & description)
- Testimonials
- Google Fonts
- Color Picker
- Opening Hours
- Jet Pack
- Gallery
- 1-4 Columns Widgetized Footer Sidebar
Update to Premium
'),
'type' => 'info');
$options[] = array(
'name' => __('Favicon Upload', 'options_check'),
'desc' => __('Upload Your Favicon icon here. Please upload a 16x16 icon.', 'businesscard'),
'id' => 'favicon_upload',
'type' => 'upload');
$options[] = array(
'name' => __('Under Header Sidebar Background', 'businesscard'),
'desc' => __('By default is #ffffff(white).', 'businesscard'),
'id' => 'under_header_sidebar_color',
'std' => '#ffffff',
'type' => 'color' );
$options[] = array(
'name' => __('Under Header Sidebar Color', 'businesscard'),
'desc' => __('By default is #000000(black).', 'businesscard'),
'id' => 'under_header_sidebar_font_color',
'std' => '#000000',
'type' => 'color' );
$options[] = array(
'name' => __('Disable all featured images', 'businesscard'),
'desc' => __('Disable all featured images from pages and posts at once.', 'businesscard'),
'id' => 'disabled_featured_image',
'std' => 'no',
'type' => 'radio',
'options' => array('no'=>__('No','businesscard'),
'yes'=>__('Yes','businesscard')
));
$options[] = array(
'name' => __('Footer Sidebars', 'businesscard'),
'desc' => __('Select Footer Sidebars Number.', 'businesscard'),
'id' => 'footer_sidebars_number',
'std' => '1',
'type' => 'radio',
'options' => array('1'=>__('1','businesscard'),
'2'=>__('2','businesscard')
));
return $options;
}