Commits

Doug Stewart committed 117ba36

More options work. Still not perfect.

Comments (0)

Files changed (2)

includes/functions/options.php

 	$parent_bootstrap = get_theme_data( trailingslashit( TEMPLATEPATH ) . 'style.css' );
 	$child_bootstrap = get_theme_data( trailingslashit( STYLESHEETPATH ) . 'style.css' );
 	
-	// If parent & child are the same theme, these should be equal
+	/*
+	*  If parent & child are the same theme, these should be equal
+	*
+ 	*  This is mainly future-proofing. At the moment, if only a parent
+	*  theme is active, STYLESHEETPATH and TEMPLATE PATH will be equal.
+	*  I have no guarantees that this will continue to function, hence the 
+	*  below code.
+	*/
 	if( $parent_bootstrap == $child_bootstrap ){
 		$lblg_shortname = $parent_bootstrap['Short Name'];
 		$lblg_themename = $parent_bootstrap['Theme Name'];
 		}	
 	}
 
+	$lblg_options['version'] = $lblg_version;
 	update_option( $lblg_shortname . '_theme_options', $lblg_options );
 }
 

includes/parent-options.php

 		
 		$parent_options_array['disable_bp_js'] = array( "name" => "Disable BuddyPress JavaScript/AJAX",
 												"desc" => "Elbee Elgee automatically integrates the BuddyPress default theme javascript and AJAX functionality. You may switch this off, though the experience will degrade somewhat.",
-												"std" => "true",
+												"std" => "false",
 												"type" => "checkbox" );
 		
 		$parent_options_array['disable_bp_css'] = array( "name" => "Disable BuddyPress CSS",
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.