Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
immortalist
/
wp-content
/
plugins
/
agile-store-locator
/
includes
/
form
:
section.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace AgileStoreLocator\Form; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * The Section Class, used in the Form builder * * * @package AgileStoreLocator * @subpackage AgileStoreLocator/Form * @author AgileLogix <support@agilelogix.com> */ class Section { protected $title; protected $fields = []; public function __construct($title) { $this->title = $title; } public function addField(Field $field) { $this->fields[] = $field; } public function render() { $sectionHTML = '<div class="pol-md-12"> <h3 class="sl-sub-title">' . $this->title . '</h3> </div>'; foreach ($this->fields as $field) { $sectionHTML .= $field->render(); } return $sectionHTML; } }