• Stars
    star
    757
  • Rank 59,989 (Top 2 %)
  • Language
    PHP
  • License
    GNU General Publi...
  • Created almost 14 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Options Panel Framework to help speed theme development.

Options Framework Theme

Contributors: Devin Price Tags: options, theme options Donate link: http://bit.ly/options-donate-2 Requires at least: 3.6 Tested up to: 4.0 Stable tag: 1.9.1 License: GPLv2

Description

This is the adapted theme version of the Options Framework plugin.

The Options Framework makes it easy to include an options panel in any WordPress theme. It was built so developers can concentrate on making the actual theme rather than spending time creating an options panel from scratch.

Frequently Asked Questions

How do I build options for my own theme?

Just drag the "inc" folder of this theme, options.php and functions.php into the theme of your choice.

options.php is a blueprint for how to work with options. It includes an example of every option available in the panel and sample output in the theme.

You can also watch the video screencast I have at http://wptheming.com/options-framework-theme.

What options are available to use?

  • text
  • textarea
  • checkbox
  • select
  • radio
  • upload (an image uploader)
  • images (use images instead of radio buttons)
  • background (a set of options to define a background)
  • multicheck
  • color (a jquery color picker)
  • typography (a set of options to define typography)
  • editor

Changelog

Development

  • Update: Change sanitization of editor to use $allowedposttags
  • Update: Include link button in tinyMCE (props @rosswintle)
  • Update: Style headers to look nice in WordPress 4.4

1.9.1

  • Update: Use "theme-textdomain" consistently
  • Update: Load options.php so child themes can easily override
  • Enhancement: New filter "options_framework_option_name"

1.9.0

  • Breaking Change: Change how option name is defined

1.8.1

  • Remove sanitization of info option and description field

1.8.0

  • Fix for colorpicker spacing
  • Better sanitization of upload option
  • Use filtered values for optionsframework_admin_bar
  • More filters for menu location
  • Placeholders can be used with text and textarea options (@Furex)

1.7.2

  • Increase text input width
  • Rename add_options_page function to resolve automatic theme check conflicts
  • Check isset for $value['desc'] in info option
  • Only load styles on options page (props @AndorChen)

1.7.1

  • Fix to use option name if set in options.php

1.7.0

  • Update to class based plugin (large code refactor)
  • Drop color picker support for older versions of WordPress
  • Allow option pages without tabs

1.6.1

  • Fix for update notice location
  • Use checked() function more consistently (props @vinodvdalvi)
  • Reuse media modal for uploads
  • Avoid error if $options array not set (props @albyrock87)

1.6

  • JS/CSS should only load on options page
  • Make options filterable like plugin version
  • Allow media buttons in the editor option
  • Menu settings filter
  • Fix js bindings for upload modal (props @themeblvd)

1.5.2

  • Removed updater script, it was causing issues with attachments

1.5

  • Updated width of text input
  • New media uploader
  • Dropped custom post types for file attachments
  • Updater script to remove the unused 'optionsframework' post types
  • Updated IDs for .tabs and .groups

1.4

  • Add missing sanitization to typography color (@weplantmedia)
  • New colorpicker (props @mattweibe for getting this in WordPress core)
  • Farsi translations (@vahidd.com)
  • Added password option type (props @neojp)
  • Allow ids to passed to tabs (props @themeblvd)
  • Added optionsframework_after_validate hook (h/t @vanpop and @pryley)

1.3

  • Allow options to save when set by theme customizer
  • Save checkbox options to boolean false rather than "0"
  • Added optionsframework_after hook
  • Normalized text domains to options_framework_theme

1.2

  • ID can now be passed on info option for styling purposes

1.1

  • Move js example from functions.php to options.php
  • Simplify functions.php, no check for child theme now
  • Display admin menu link only if user has permissions (props @mindctrl)
  • Added support for wp_editor
  • Updated textarea settings to allow rows parameter
  • Updated cursor:default for h3 metabox, props @yurifedorov
  • Filtering of typography options (@mattwiebe)
  • Updated methods for typography options
  • Make uploader post type non-public (@samargulies)
  • Change name of admin folder to inc

1.0

  • Option header (h4) will not display in panel if name !isset (props @alepee)
  • Fix for user roles when saving options
  • Updated theme to no longer be a child of Twenty Eleven
  • Updated textarea settings to allow rows parameter
  • Updated cursor:default for h3 metabox, props @yurifedorov

0.9

  • Load thickbox using site_url() to allow for https (props @samargulies)
  • Change santization to use $allowedposttags for textarea and info
  • Single checkboxes now use labels
  • CSS updates for formatting long labels
  • Allows dashes in the options id (props @mantone)
  • Uses add_theme_page over add_submenu_page (props @enile8)

0.8

  • Saves tab states using local storage
  • Minor style updates for WordPress 3.2 release

0.7

  • Added filtering for recognized arrays (like Font Face)
  • Using isset rather than !empty to return of_get_option
  • Significant updates for setting and restoring defaults
  • Background option outputs no-repeat rather than none

0.6

  • Introduces validation filters
  • Better data sanitization and escaping
  • Updates labels in options-interface.php
  • Changes how checkboxes saved in database ("0" or "1")
  • Stores typography, backgrounds and multichecks directly as arrays
  • For full description, see: http://wptheming.com/2011/05/options-framework-0-6/

0.5

  • Fixed errors when more than one multicheck options is used
  • Updated optionsframework_setdefaults so defaults actually save on first run
  • Require that all options have lowercase alphanumeric ids
  • Added link to options from the WordPress admin bar

0.4

  • Updated multicheck option to save keys rather than values
  • Unset default array options after each output in optionsframework_setdefaults

0.3

  • White listed options for increased security
  • Fixed errors with checkbox and select boxes
  • Improved the multicheck option and changed format

0.2

  • Uploaded to the WordPress repository

0.1

  • Initial release

More Repositories

1

options-framework-plugin

An Options Panel Framework to help speed theme development.
PHP
838
star
2

customizer-library

Customizer Library
PHP
258
star
3

flutter_todo

Example Flutter to-do app that uses a REST API.
Dart
191
star
4

portfolio-post-type

A WordPress plugin that creates a Portfolio post type.
PHP
154
star
5

laravel-react-bootstrap

Example to-do app (including auth) built with Laravel 8 and React.
PHP
145
star
6

team-post-type

Some boilerplate post type code.
PHP
122
star
7

portfolio-press

A WordPress theme for artists and designers to showcase their work.
CSS
62
star
8

better-blockquotes

A plugin for improving the blockquote button in the WordPress editor.
PHP
57
star
9

customizer-library-demo

Demo for the Customizer Library project.
PHP
54
star
10

thematic-options

A theme options framework for WordPress.
PHP
53
star
11

documentation-post-type

Created a WordPress custom post type for product documentation.
PHP
40
star
12

platform

A base theme designed for development workflow.
PHP
37
star
13

event-posts

A small plugin that creates and event post type and meta boxes
PHP
37
star
14

woocommerce-coupon-restrictions

Experiments with coupon restrictions.
PHP
29
star
15

edd-theme-updater

Sample theme updater for EDD.
PHP
25
star
16

angular-experiments

Collection of experiments as I work through learning Angular + the JSON API for WordPress.
PHP
23
star
17

foghorn

Foghorn is a minimalist WordPress theme built off the foundation of Twenty Eleven.
PHP
19
star
18

edd-account-helpers

Example code for building a dashboard are with Easy Digital Downloads.
PHP
16
star
19

visual

Visual is a dark minimalist WordPress theme for displaying photos and images.
CSS
14
star
20

options-framework-theme-demos

Demos for Options Framework.
PHP
13
star
21

customizer-background-control

Registers a new custom customizer control for backgrounds.
PHP
12
star
22

no-slug-portfolio-post-types

Tiny little plugin to remove the slug from portfolio post types.
PHP
11
star
23

history-future

Snappy WordPress Ajax Theme for Byron Reece
PHP
11
star
24

auto-set-featured-image

Auto set a featured image in WordPress.
PHP
11
star
25

light

A lightweight WordPress blog theme
PHP
9
star
26

post-author-optimization-for-woocommerce

Stores the customer_user for WooCommerce orders and subscriptions in the post_author column of posts table.
PHP
9
star
27

woocommerce-customer-source

Learn where your WooCommerce customers are coming from.
PHP
8
star
28

flutter_okta

Proof of concept Flutter + Okta integration.
Dart
8
star
29

edd-free-license-generator

Allows users to bypass checkout page when downloading a specific product. Should be used in conjuction with the EDD Software Licensing Plugin.
PHP
8
star
30

laravel-react-material

Example Material UI to do app that integrates with a Laravel REST API.
JavaScript
6
star
31

post-loaded-avatars

A simple WordPress plugin to post load avatar images.
PHP
6
star
32

gad7

A mobile app built on Flutter to help track anxiety.
Dart
5
star
33

instant-content

WordPress plugin for purchasing Demand Media content.
PHP
3
star
34

salaryinflation

Calculate an inflation adjusted salary.
JavaScript
3
star
35

portfolio-plus

Commercial version of Portfolio Press
PHP
2
star
36

date_picker_input

Example of a date picker input in Flutter.
Dart
2
star
37

twentyfifteen-srcset

Experiments with Twenty Fifteen and Responsive Images
PHP
2
star
38

postlistr-plugin

Trying to learn some backbone.
PHP
1
star
39

wpe-sync

Bash script for syncing in WP Engine environment.
Shell
1
star
40

flutterfort

Gatsby.js site for Flutter blog.
JavaScript
1
star
41

woocommerce-wholesale-role-restriction

This extension prevents customers with a "wholesale" role from using coupons on the site.
PHP
1
star
42

percentchange

Percent Change Calculator
HTML
1
star
43

woocommerce-friendbuy

Plugin allows easy integration between Friendbuy and WooCommerce.
PHP
1
star
44

edd-facebook-analytics

Adds Facebook tracking to your website for conversion metrics and ad re-marketing.
JavaScript
1
star
45

MeasureVW.js

Simple developer tool for measuring elements in vw units.
JavaScript
1
star
46

fallback-languages

Better translation loading in WordPress.
PHP
1
star