sy4mil/Options-Framework — pull request #230 by dovy (2013-05-30 18:19:46+00:00)
Title: Various fixes, conversion to get_theme_mod(), fixed import, etc.

@Smartik89

Added some to CSS to stop color picker from "jumping"

Updated various files to use the of_get_options instead of using the direct commands (previously get_option) so there's more consistency throughout.

~/admin/functions/functions.options.php, again, updated the direct reference of get_option() to of_get_options()

Renamed all comments that stated: @uses get_option() to get_theme_mod()

Removed the OPTION constant, since get_theme_mod does the prefix for the theme automatically.

Updated the BACKUP constant, since get_theme_mod does the prefix for the theme automatically.

Added check for key to get all get_theme_mods, or just a single for both get and set.

Added an option to ~/admin/functions/functions.interface.php that if the get_theme_mod is empty, fill it with the defaults. This will alleviate the errors that you see when you add SMOF to a theme not initialized with SMOF in place. IE, makes my life better and hopefully other devs. Previously you would have to reset options or the whole interface looked odd.

~/admin/functions/functions.interface.php, changed get_option references to use of_get_options for consistency. Also changed line 248 from $smof_data to $_POST['data'] to fix importing.

~/admin/functions/functions.options.php, again, updated the direct reference of get_option() to of_get_options()

~/admin/index.php - Removed the OPTIONS constant, get_theme_mod does this automatically.