dadish / Widgets

Modular front-end markup.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Widgets

This repository is under development and is not ready for prime time.

Widgets is a ProcessWire module. It is designed to be as flexible as possible for websites that change their look on demand with support of responsive grids inspired by Susy.

Installation

  1. Copy all the files in this directory into /site/modules/Widgets/.

  2. The Widgets modules extend their own custom classes that extend either WireData or WireArray. Each widget is PW module too. Therefore required classes should be loaded before site modules begin to initialize. Append this line of code into /site/config.php

require_once($config->paths->site . 'modules/Widgets/require.php');
  1. In your admin, go to Modules > Refresh.

  2. Click install next to the modules in this order:

  • Widget Breakpoints
  • Widgets
  • Widget Container
  • Widget Reference
  • Process Widgets
  • Process Widgets Labels (optional)

Usage

Now you have to know that the above modules are only the foundation for Widgets. You also need at least one widget that renders out some markup. You can use Widget Text for your initial testing purposes. From there you should be good for basic widgets outputs.

...

Widget

A Widget is a ProcessWire module that extends the Widget class. Look at the Widget.php for more information.

...

About

Modular front-end markup.


Languages

Language:PHP 61.9%Language:JavaScript 34.7%Language:CSS 2.2%Language:HTML 1.3%