Removed dependency on options.php #78

merged 6 commits into from Jan 1, 2012
Commits on Nov 1, 2011
  1. @inxilpro

    Added more flexibility in setting options

    inxilpro committed Nov 1, 2011
    Now there are three ways to set options framework options:
      1. The old optionsframework_options() method
      2. Returning an array() in options.php
      3. Adding a filter on 'of_options'
    The advantage of #3 is that this provides more granular control
    over options.  For example, a child theme could add its own options
    in addition to the parent theme's options using this method.  It
    also means that options can be set anywhere in your project--the
    options.php file isn't necessarily required (well, it still needs
    to be there for optionsframework_option_name(), but I plan to
    change that, too, soon).
Commits on Nov 2, 2011
  1. @inxilpro

    Bug fixes

    inxilpro committed Nov 2, 2011
    There were a few bugs with the new _optionsframework_options() method
    that I've now fixed.  Everything should work well, now.
  2. @inxilpro

    Removed dependency on options.php

    inxilpro committed Nov 2, 2011
    You can now use the Options Framework without the options.php file.
    This flexibility is particularly useful in object oriented themes
    where global functions are frowned upon.  Both the options and the
    options name can be set via filters or actions.
  3. @inxilpro

    Added a default option name

    inxilpro committed Nov 2, 2011
    If no option name is set by the current theme, Options Framework chooses
    the name "optionsframework_{theme_slug}"
    Also fixed some minor code formatting inconsistencies (to better match
    the Wordpress coding standards)
  4. @inxilpro
Commits on Dec 13, 2011
  1. @inxilpro

    Fixed issue where "Theme Options" menu was showing in admin bar even …

    inxilpro committed Dec 13, 2011
    …if there were no options for that theme.