2017 © Pedro Peláez
 

library wp-customizer

A set of wrappers and custom controls for WordPress theme customizer.

image

lucatume/wp-customizer

A set of wrappers and custom controls for WordPress theme customizer.

  • Thursday, July 31, 2014
  • by theAverageDev
  • Repository
  • 2 Watchers
  • 8 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

WordPress customizer add-ons and wrappers

A set of custom controls by paulund, a multi-image control and a theme customizer section wrapper., (*1)

Theme customize section

Wraps methods and hooking needed to add sections and fields to the theme customize section to allow code like, (*2)

// add the section
$section = new tad_ThemeCustomizeSection('Announcement', 'acme_announcement', 'The home page announcement.', 'acme');

// add a checkbox to toggle showing the announcement on the home page
$section->addSetting('announcement_show', 'Show the announcement on the homeapage.', true, 'checkbox');

// add a text field for the title
$section->addSetting('announcement_title', 'Title', 'Hello', 'textarea');

// add a date picker for the date
$section->addSetting('announcement_date', 'Date', '', 'date-picker');

// add a file upload field for the flyer
$section->addSetting('announcement_flyer', 'Flyer', '', 'upload');

values will be saved in the acme_announcement option in the database in an array format option., (*3)

Customizer controls

I've added paulund's custom controls to the package and mine(s). As seen above those controls can be added to a section using their hyphen-separated slug. See the code for controls., (*4)

// add the Multi Image control
$section->addSetting('some_images', 'Some images for fun', '', 'multi-image');

The Versions

31/07 2014

dev-master

9999999-dev http://github.com/lucatume/wp-customizer

A set of wrappers and custom controls for WordPress theme customizer.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

31/07 2014

2.0.0

2.0.0.0 http://github.com/lucatume/wp-customizer

A set of wrappers and custom controls for WordPress theme customizer.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

26/05 2014

1.1.0

1.1.0.0 http://github.com/lucatume/wp-customizer

A set of wrappers and custom controls for WordPress theme customizer.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress