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

Contact Forms by Cimatti, version 2.2.4. 26 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/2.2.4/code/classes/Element/FieldsetBegin.php
- Raw: https://pluginprobe.com/plugins/contact-forms/2.2.4/raw/classes/Element/FieldsetBegin.php
- Modified: 2026-05-18T10:58:22+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.2.4/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;
    }
    $legend = $this->attributes["legend"];
    echo '<fieldset ', $this->getAttributes(array('legend')), '>';
    if ($legend !== '') {
      echo '<legend>', $legend, '</legend>';
    }
  }
  
}
```
