Custom Section

Custom Section
Install Download

Version 1.01
Author Greybyte
License: MIT and LGPL
GIT https://github.com/greybyte/IP-CustomSection
Downloads: 2725

Provides editable custom sections (=section based on predefined markup), which can be dragged on to page like regular widgets.

Description

This plugin allows to define editable custom sections, which can be dragged to a page like regular widgets (click image to see animated demo):

Features

  • define custom sections with editable elements
  • handles text, rich text and images
  • define repeatable blocks inside custom sections

Usage

Create a folder sections in your theme's directory. Add custom sections by adding a .PHP file for each section.

Define editable areas in custom section like this:

<section class="well-4">
  <
div class="container">
    
// editable text (inline-level elements only)
     <?php echo $s->text('h3', 'head', 'Latest News')
?>
    
// editable image
     <?php echo $s->img('myimage', 'images/default.jpg', 99, 99, 'img-circle') ?>
    
// editable rich text (allows block-level elements)
     <?php echo $s->richtext('div', 'head', '<p>Lorem ipsum<br>dolor sit amet</p>')?>
 
</div>
</section>

Note: Full documentation is available at https://github.com/greybyte/IP-CustomSection/blob/master/README.md