'bvp',
);
return apply_filters( 'bvpblog_default_theme_options', $default_theme_options );
}
/**
* Returns the options array for blog template .
*
* @since blog template 1.0
*/
function bvpblog_get_theme_options() {
return get_option( 'bvpblog_theme_options', bvpblog_get_default_theme_options() );
}
/**
* Returns the options array for blog template .
*
* @since blog template 1.2
*/
function bvpblog_theme_options_render_page() {
?>
";
global $logo_path;
if( $logo_path != ''){
echo "";
}
echo "";
}
function ud_options_validate($input) {
$newinput = array();
if ($_FILES['ud_filename'])
{
$overrides = array('test_form' => false);
$file = wp_handle_upload($_FILES['ud_filename'], $overrides);
$newinput['file'] = $file;
}
return $newinput;
// add the admin page and such
}
add_action('admin_init', 'fd_admin_init');
function fd_admin_init() {
register_setting( 'fd_options', 'fd_options', 'fd_options_validate' );
add_settings_section('fd_main', 'Custom Theme Section', 'fd_section_text', 'fd');
add_settings_field('fd_filename', 'Footer Logo File:', 'fd_setting_filename', 'fd', 'fd_main');
}
function fd_section_text() {
$options = get_option('fd_options',true);
if($options) {
global $foot_logo_path;
$foot_logo_path = $options['file']['url'];
}else{
$foot_logo_path ='';
}
?>
";
global $foot_logo_path;
if( $foot_logo_path != ''){
echo "";
}
echo "";
}
function fd_options_validate($input) {
$newinput = array();
if ($_FILES['fd_filename'])
{
$overrides = array('test_form' => false);
$file = wp_handle_upload($_FILES['fd_filename'], $overrides);
$newinput['file'] = $file;
}
return $newinput;
}