<script type="text/javascript"> (function($) { var nodes = document.getElementsByClassName('section'); for (var i = 0; i < nodes.length; i++) { var section = new RaptorSection({ node: nodes[i], saveUrl: '../../actions/save-section.php', id: function(section) { return section.getNode().dataset['id']; }, layouts: [ { name: 'col-2', label: '2 Columns', layout: <?php echo $example->getLayoutJson('col-2'); ?> }, { name: 'col-3', label: '3 Columns', layout: <?php echo $example->getLayoutJson('col-3'); ?> }, { name: 'sidebar-right', label: 'Right Sidebar', layout: <?php echo $example->getLayoutJson('sidebar-right'); ?>