Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.62 KB

readme.md

File metadata and controls

34 lines (24 loc) · 1.62 KB

Drop It

THIS IS AN ABANDONED PLUGIN, IT WAS NEVER FINISHED. Don't bother liking/forking it. Use Gutenberg instead.

Description

TL;DR: Drag and drop layout management framework for WordPress. Comes with a set of widgets aka "drops".

Extended Description

The goal was to build a powerful and extensible, yet easy to use layout management plugin.

Essentially, the plugin gives users an ability to create a grid of certain size (Drop Zone) and populate it with widgets (Drops) that represent content (static html, single post, custom query, whatever data you want to present). You can shuffle drops around the grid as you want.

Implementation Details

Each drop is represented by Drop_It_Drop child class. Think of it as an MVC wannabe. Backend UI utilizes Backbone.js (min 1.0). Underscore.js for templating, frontend utilizes Twig for templating. I know, I know, PHP is a templating engine itself. The idea behind using templating engine is that users will be able to create multiple templates for each registered drop right from the admin, and without breaking anything (yet to be implemented).

Each drop instance has a set of basic values:

  • type (one of registered drop types)
  • colspan
  • column (in the grid)
  • row (in the grid)

Disclaimer

Current implementation is half-assed under heavy development, expect bugs.

Feedback

Pull requests, bug reports, and feature requests are welcome.

Submodules Init and Update

  1. Pull as usual
  2. Do git submodule -q foreach git pull -q origin master to update submodules
  3. ...
  4. Profit