# contact-forms/2.1.2/classes/Element/FieldsetBegin.php

Contact Forms by Cimatti, version 2.1.2. 22 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/2.1.2/code/classes/Element/FieldsetBegin.php
- Raw: https://pluginprobe.com/plugins/contact-forms/2.1.2/raw/classes/Element/FieldsetBegin.php
- Modified: 2026-04-08T09:49:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/2.1.2/code/classes/Element/FieldsetBegin.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- PFBC framework extension, HTML output is controlled
class AccuaForm_Element_FieldsetBegin extends Element {
  public function __construct($legend, $name = "", $properties = array()) {
    $properties += array("legend" => $legend);
    parent::__construct("", $name, $properties);
  }
  
  public function render() {
    $wrapperClass = $this->getWrapperCssClass();
    if (!empty($wrapperClass)) {
      $existing = isset($this->attributes['class']) ? $this->attributes['class'] . ' ' : '';
      $this->attributes['class'] = $existing . $wrapperClass;
    }
    $wrapperID = $this->getWrapperCssId();
    if (!empty($wrapperID)) {
      $this->attributes['id'] = $wrapperID;
    }
    echo '<fieldset ', $this->getAttributes(array('legend')), '><legend>', $this->attributes["legend"], '</legend>';
  }
  
}
```
