Commits

Doug Stewart committed ff54ef8

Pretty well confused as to why these didn't "stick" last time.

Comments (0)

Files changed (4)

includes/functions/admin.php

 
 function lblg_admin_init(){
 	global $lblg_shortname;
-	register_setting( $lblg_shortname . '_lblg_options', $lblg_shortname . '_lblg_options', 'lblg_sanitize_options' );
+	register_setting( $lblg_shortname . '_theme_options', $lblg_shortname . '_theme_options', 'lblg_sanitize_options' );
 }
 
 // Display the theme options page
 <form method="post" action="options.php">
 <?php screen_icon( 'themes' ); ?>
 <h2 class="updatehook"><?php echo $themename; ?> settings 
-	<input name="<?php echo $lblg_shortname; ?>_lblg_options[save]" type="submit" class="button-primary" value="Save changes" />
-	<input name="<?php echo $lblg_shortname; ?>_lblg_options[reset]" type="submit" class="button-secondary" value="Reset to defaults" />
+	<input name="<?php echo $lblg_shortname; ?>_theme_options[save]" type="submit" class="button-primary" value="Save changes" />
+	<input name="<?php echo $lblg_shortname; ?>_theme_options[reset]" type="submit" class="button-secondary" value="Reset to defaults" />
 </h2>
 
 <?php 
 	if ( isset( $_REQUEST['settings-updated'] ) ) echo '<div id="message" class="updated under-h2"><p><strong>'.$themename.' settings updated.</strong></p></div>';
 
-	settings_fields( $lblg_shortname . '_lblg_options' ); 
+	settings_fields( $lblg_shortname . '_theme_options' ); 
 ?>
 <table class="form-table">
 <tbody>
 </table>
 
 <p class="submit">
-<input name="<?php echo $lblg_shortname; ?>_lblg_options[save]" type="submit" class="button-primary" value="Save changes" />
-<input name="<?php echo $lblg_shortname; ?>_lblg_options[reset]" type="submit" class="button-secondary" value="Reset to defaults" />
+<input name="<?php echo $lblg_shortname; ?>_theme_options[save]" type="submit" class="button-primary" value="Save changes" />
+<input name="<?php echo $lblg_shortname; ?>_theme_options[reset]" type="submit" class="button-secondary" value="Reset to defaults" />
 </p>
 </form>
 
 	//$lblg_num_values = array_count_values($lblg_default_options);
 	
 	$section = '';
-	$lblg_options_group = $lblg_shortname . '_lblg_options';
+	$lblg_options_group = $lblg_shortname . '_theme_options';
 	$options = $lblg_options;
 	$default_options = $lblg_default_options;
 

includes/functions/hooks.php

 */
 
 $lblg_meta_info = get_option('lblg_meta_info');
-$lblg_options = get_option($lblg_meta_info['shortname'] . "_lblg_options" );
+$lblg_options = get_option($lblg_meta_info['shortname'] . "_theme_options" );
 
 /*
 *  Action hooks

includes/functions/options.php

 		$lblg_shortname = $temp_opts['shortname'];
 		$lblg_themename = $temp_opts['themename'];
 		$lblg_version = $temp_opts['version'];
-		$tmp_options = get_option( $lblg_shortname . '_lblg_options' );
+		$tmp_options = get_option( $lblg_shortname . '_theme_options' );
 		$lblg_options = $tmp_options + $lblg_default_options;
 	} else {
 		// Nothing to see here. Move along. Move along.
 		$lblg_shortname = $bootstrap_tmp['shortname'];
 		$lblg_themename = $bootstrap_tmp['themename'];
 		$lblg_version = $bootstrap_tmp['version'];
-		$lblg_options = get_option( $lblg_shortname . '_lblg_options' );
+		$lblg_options = get_option( $lblg_shortname . '_theme_options' );
 		/*
 		*  This shouldn't happen, but it just might, so let's check
 		*  and then set up the options correctly.
 						   'version'   => $lblg_version);
 					
 	update_option( 'lblg_meta_info', $meta_options);
-	update_option( $lblg_shortname . '_lblg_options', $lblg_options );
+	update_option( $lblg_shortname . '_theme_options', $lblg_options );
 }
 
 function lblg_get_options_from_defaults(){

styles/layoutgala.css

-
-div#header h1{margin:0;padding-left:10px;background: #EEE;color: #79B30B}
+div#header{background:#bbb;}
+div#header h1 a{margin:0;padding-left:10px;background: #ddd;color: #79B30B;}
 div#header a{color: #79B30B}
 div#primarysb{background:#B9CAFF}
 div#secondarysb{background:#FF8539}