"Topbar Background", "type" => "heading", ), array( "name" => "Top Topbar Background", "id" => $shortname."_topbackground_topbar", "type" => "color", "std" => STD_TOPBG_TOPBAR, ), array( "name" => "Bottom Topbar Background", "id" => $shortname."_bottombackground_topbar", "type" => "color", "std" => STD_BOTTOMBG_TOPBAR, ), array( "name" => "", "type" => "close", ), array( "name" => "Topbar Text", "type" => "heading", ), array( "name" => "Date Font Family", "id" => $shortname."_topbar_date_font_family", "type" => "select", "std" => STD_TOPBAR_DATE_FONT_FAMILY, "options" => $freedesign_font_family), array( "name" => "Other text Font Family", "id" => $shortname."_topbar_font_family", "type" => "select", "std" => STD_TOPBAR_FONT_FAMILY, "options" => $freedesign_font_family), array( "name" => "Topbar Text Color", "id" => $shortname."_topbar_color", "type" => "color", "std" => STD_TOPBAR_COLOR, ), array( "name" => "Topbar Link Color", "id" => $shortname."_topbar_link_color", "type" => "color", "std" => STD_TOPBAR_LINK_COLOR, ), array( "name" => "Topbar Text Size", "id" => $shortname."_topbar_size", "type" => "input", "std" => STD_TOPBAR_SIZE, ), array( "name" => "Display Site Logo ? ", "id" => $shortname."_topbar_sitelogo_show", "type" => "select", "std" => "No", "options" => array("No", "Yes")), array( "name" => "Display Last Posting ? ", "id" => $shortname."_topbar_lasposting_show", "type" => "select", "std" => "No", "options" => array("No", "Yes")), array( "name" => "Text before Last Posting Title", "id" => $shortname."_topbar_lastposting_text", "type" => "input", "std" => "Last Posting :", ), array( "name" => "Display Social Icons ? ", "id" => $shortname."_topbar_socialicon_show", "type" => "select", "std" => "No", "options" => array("No", "Yes")), array( "name" => "Twitter Url", "id" => $shortname."_twitter_url", "type" => "url_link", "std" => STD_TWITTER_URL, ), array( "name" => "Facebook Url", "id" => $shortname."_facebook_url", "type" => "url_link", "std" => STD_FACEBOOK_URL, ), array( "name" => "RSS Url", "id" => $shortname."_rss_url", "type" => "url_link", "std" => STD_RSS_URL, ), array( "name" => "", "type" => "close", ), ); function freedesign_topbar_add_admin() { global $themename, $shortname, $options_topbar; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options_topbar as $value_topbar) { update_option( $value_topbar['id'], $_REQUEST[ $value_topbar['id'] ] ); } foreach ($options_topbar as $value_topbar) { if( isset( $_REQUEST[ $value_topbar['id'] ] ) ) { update_option( $value_topbar['id'], $_REQUEST[ $value_topbar['id'] ] ); } else { delete_option( $value_topbar['id'] ); } } header("Location: themes.php?page=functions-topbar.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options_topbar as $value_topbar) { delete_option( $value_topbar['id'] ); } header("Location: themes.php?page=functions-topbar.php&reset=true"); die; } } add_theme_page("Topbar", "Topbar", 'edit_themes', basename(__FILE__), 'freedesign_topbar_admin'); } function freedesign_topbar_admin() { global $themename, $shortname, $options_topbar; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

'; if ( $_REQUEST['reset'] ) echo '

'.$themename.' settings reset.

'; ?> ";?>

Footer Setting

'.$value_topbar['name'].'
'; } if ($value_topbar['type'] == 'input') { $name = $value_topbar['id']; $value = get_option($name); if ($value == "") {$value = $value_topbar['std'];} echo ''; } if ($value_topbar['type'] == 'url_link') { $name = $value_topbar['id']; $value = get_option($name); if ($value == "") {$value = $value_topbar['std'];} echo ''; } if ($value_topbar['type'] == 'color') { $name = $value_topbar['id']; $value = get_option($name); if ($value == "") {$value = $value_topbar['std'];} echo ''; } if ($value_topbar['type'] == 'select') { $name = $value_topbar['id']; $value = get_option($name); if ($value == "") {$value = $value_topbar['std'];} echo ''; } if ($value_topbar['type'] == 'close') { echo '
'.$value_topbar['name'].' default : '.$value_topbar['std'].'
'.$value_topbar['name'].'
'.$value_topbar['name'].''; ?>
default : '.$value_topbar['std'].'
'.$value_topbar['name'].' default : '.$value_topbar['std'].'
'.$value_topbar['name']; } } ?>