Coder Social home page Coder Social logo

easy-options-framework's Introduction

Easy Options Framework

Contributors: moyu
Author URI: https://moyu.io
Tags: settings, options, api, framework
Requires at least: 3.8
Tested up to: 4.1
Stable tag: 4.1
License: GPLv2 or later

A simple framework which use WordPress Settings API for building WordPress theme and plugin options.

Description

Easy options framework which uses the WordPress Settings API makes it easy to create an options panel in any WordPress theme and plugin. It is very extensible, and very easy to integrate with by other developers instead of creating an options panel from scratch. For the most important, it is free to use in both commercial and personal projects!

Include Fields

  • text input
  • email input
  • number input
  • password input
  • date input
  • textarea
  • rich editor
  • select
  • post select (create a select field where the choices are pages + posts + your custom post types)
  • image select (use images instead of radio buttons)
  • checkbox (also include multicheck)
  • radio
  • repeater (create a set of sub fields)
  • heading
  • color picker
  • html
  • media upload

(Besides the include fields above, you also can set section tab content as custom html content or set section tab as a url link)

Installation

Use this plugin as standalone

  1. Upload Easy-Options-Framework folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Include sample-config.php file in your theme functions.php or create your own option configures file.

Distributing Easy Options Framework in a plugin / theme

  1. Copy the plugin to your theme / plugin
  2. Customize the directory and path settings(with trailing slash)
define('EOF_DIR', get_template_directory() . '/eof/‘);
define('EOF_URL', get_template_directory_uri() . ‘/eof/’);

require EOF_DIR . 'eof.php';
require EOF_DIR . 'sample-config.php';

Change log

1.0.3

  • change file_get_contents() function to WordPress built-in HTTP API wp_remote_get()

1.0.2

  • fix data saving bug

1.0.1

  • Add data sanitization and validation

1.0.0

  • Initial release

easy-options-framework's People

Contributors

moyus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

easy-options-framework's Issues

Media Upload on Repeater

Hi!
First, congratulations for the great Idea and well coded framework! It's nice!

Just one thing, I tried to insert Media Upload inside the repeater field. The modal with image upload doesn't appear. With same field outsite Repeater, the modal appears properly.

Is there anything else I need to do to Media Field work inside the Repeater?

Tks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.