Now we need to populate the panels.
The panel admin section will be easy to explain the look of, but is kind of complex underneath it.
The page will be a two-column layout, with a wide column on the left-hand side holding a list of all available widgets, and a narrow column on the right-hand side listing the available panels.
We will start by building that visual.
Create the /ww.plugins/panels/admin
directory, and in there, place an index.php
file:
<?php echo '<table style="width:95%"><tr>'; echo '<td><h3>Widgets</h3><p>Drag a widget into a panel on ' .'the right.</p><div id="widgets"></div>' .'<br style="clear:both" /></td>'; echo '<td style="width:220px"><h3>Panels</h3><p>Click a ' .'header to open it.</p><div id="panels"></div>' .'<br style="clear:both" /></td></tr>'; echo '</table>';
When viewed, we get a general idea of how this will...