evertiro / historical-redux2

A simple, easily extendable options framework for WordPress based on NHP Theme Options Framework.
http://reduxframework.com
Other
105 stars 43 forks source link

NOTE

Redux Framework is no longer hosted here! Since I am no longer the sole developer, we have moved to an organizational repo here, or visit our website! This page is kept for historical purposes only.

Redux Options Framework v2.0.0 Build Status

Wordpress options framework which uses the WordPress Settings API, Custom Error/Validation Handling, Custom Field/Validation Types, and import/export functionality.

Donate to the Framework

I develop Redux (and my other projects) because I enjoy them, and almost exclusively release them to the community as open source projects. If you can, please donate to help support the ongoing development of Redux Framework!

Donate to the framework

Features

Stay In The Loop!

Follow us on Twitter

Getting Redux

Redux can be downloaded in several ways which are outlined below. Please use whichever way you are most comfortable with.

Download as a .zip archive

Once you have downloaded the framework, upload the .zip file to the root of your project and unzip it as follows:

$ cd my-project
$ unzip Redux-Framework-master.zip -d admin

Cloning the repository using git

Stable release

$ cd my-project
$ git clone git://github.com/ghost1227/Redux-Framework/ -b stable admin

Dev release

$ cd my-project
$ git clone git://github.com/ghost1227/Redux-Framework/ admin

Cloning the repository as a git submodule

Stable release

$ cd my-project
$ git submodule add git://github.com/ghost1227/Redux-Framework/ -b stable admin

Dev release

$ cd my-project
$ git submodule add git://github.com/ghost1227/Redux-Framework/ admin

Setting up Redux

Before you begin, you might want to replace all instances of Redux and redux with your own namespace. Note that the two are not interchangable! This can be done on UNIX-based systems by running the following commands from the root directory of your plugin or theme:

$ find . -type f -execdir sed -i'' -e 's/Redux/YourNamespace/g' {} \;
$ find . -type f -execdir sed -i'' -e 's/redux/yournamespace/g' {} \;

Include Redux in your theme functions.php or plugin as follows:

require_once('admin/options.php');

Edit admin/options.php as needed. You may want to create a backup of your admin/options.php file as it will be overwritten during future updates.

FAQs

  1. Why should we use require_once instead of get_template_part?
    • First, because get_template_part is for... you guessed it, themes! Redux is designed to work with both themes and plugins.
    • Second, read this.
  2. Why shouldn't we edit defaults.php?
    • Because defaults.php is for defaults. Anything that is defined in defaults.php can be overridden in options.php.

Who's using Redux?

Are you using Redux?

Send me an email at ghost1227@reduxframework.com so I can add you to our user spotlight!

Changelog

Development Branch

Version 2.0.0 (January 31, 2013)

Version 1.0.0 (December 5, 2012)