Giter Site home page Giter Site logo

davisshaver / fieldmanager-beta-customize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dlh01/fieldmanager-beta-customize

0.0 1.0 0.0 361 KB

Add Fieldmanager fields to the Customizer

JavaScript 36.78% Shell 3.96% CSS 1.48% PHP 55.24% HTML 2.53%

fieldmanager-beta-customize's Introduction

Fieldmanager Beta: Customize

Contributors: dlh, jamesburke, alleyinteractive
Requires at least: 4.5
Tested up to: 4.7
Stable tag: 0.4.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A Fieldmanager Beta plugin for the Customize Context.

Description

This is a proposed Customize context for Fieldmanager. You can install the plugin alongside a stable Fieldmanager release to help test and refine the context.

The official Pull Request for this context is on GitHub.

Installation

  1. Install and activate Fieldmanager.

  2. Install and activate this plugin.

  3. Use the fm_beta_customize context action to instantiate your fields. For example:

     add_action( 'fm_beta_customize', function () {
     	$fm = new Fieldmanager_TextField( 'My Field', [ 'name' => 'foo' ] );
     	fm_beta_customize_add_to_customizer( 'My Section', $fm );
     } );
    

For more code examples, browse php/demos/class-fieldmanager-beta-customize-demo.php. To see the demos in action in the Customizer, place add_action( 'fm_beta_customize', 'fm_beta_customize_demo' ) in your plugin or theme.

Screenshots

1. Fieldmanager mingling with other sections in the Customizer.

Fieldmanager mingling with other sections in the Customizer.

2. Fieldmanager fields in the Customizer.

Fieldmanager fields in the Customizer.

3. Detail from the demos bundled with this plugin.

Detail from the demos bundled with this plugin.

Changelog

0.4.0

  • Added: PHP and JavaScript tests.
  • Added: Demo a field with selective-refresh support.
  • Changed: Use better TinyMCE events for tracking Fieldmanager_RichTextArea changes.
  • Changed: Require at least WordPress 4.5.
  • Fixed: Fix a case where invisible Customizer sections could be created.

0.3.1

  • Fixed: Track the changes to instances of repeatable RichTextAreas and Colorpickers added after loading the Customizer.

0.3.0

  • Changed: Fieldmanager_RichTextArea is now supported natively; using Fieldmanager_Beta_Customize_RichTextArea is no longer required.
  • Changed: Move remaining scripts that overrode Fieldmanager core assets into separate files.
  • Fixed: Fix invisible TinyMCE popups.
  • Deprecated: Fieldmanager_Beta_Customize_RichTextArea, per above.

0.2.1

  • Fix JavaScript errors.

0.2.0

  • Move CSS, and autocomplete and datepicker scripts, into separate files, rather than overriding those assets in Fieldmanager core.

0.1.1

  • Rename the Customize context action to 'fm_beta_customize' for improved future compatibility with Fieldmanager.

0.1.0

  • Initial release.

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.