public function displaySettingsPanel(XMLElement &$wrapper, $errors = null)
    {
        // Create header
        $location = ($this->get('location') ? $this->get('location') : 'main');
        $header = new XMLElement('header', null, array(
            'class' => 'frame-header ' . $location,
            'data-name' => $this->name(),
            'title' => $this->get('id'),
        ));
        $label = (($this->get('label')) ? $this->get('label') : __('New Field'));
        $header->appendChild(new XMLElement('h4', '<strong>' . $label . '</strong> <span class="type">' . $this->name() . '</span>'));
        $wrapper->appendChild($header);

        // Create content
        $wrapper->appendChild(Widget::Input('fields['.$this->get('sortorder').'][type]', $this->handle(), 'hidden'));

        if ($this->get('id')) {
            $wrapper->appendChild(Widget::Input('fields['.$this->get('sortorder').'][id]', $this->get('id'), 'hidden'));
        }

        $wrapper->appendChild($this->buildSummaryBlock($errors));
    }
public function displaySettingsPanel(XMLElement &$wrapper, $errors = null)
    {
        // Create header
        $location = ($this->get('location') ? $this->get('location') : 'main');
        $header = new XMLElement('header', null, array(
            'class' => 'frame-header ' . $location,
            'data-name' => $this->name(),
            'title' => $this->get('id'),
        ));
        $label = (($this->get('label')) ? $this->get('label') : __('New Field'));
        $header->appendChild(new XMLElement('h4', '<strong>' . $label . '</strong> <span class="type">' . $this->name() . '</span>'));
        $wrapper->appendChild($header);

        // Create content
        $wrapper->appendChild(Widget::Input('fields['.$this->get('sortorder').'][type]', $this->handle(), 'hidden'));

        if ($this->get('id')) {
            $wrapper->appendChild(Widget::Input('fields['.$this->get('sortorder').'][id]', $this->get('id'), 'hidden'));
        }

        $wrapper->appendChild($this->buildSummaryBlock($errors));
    }
public function displaySettingsPanel ( XMLElement & $ wrapper , $ errors = null ) { // Create header $ location = ( $ this -> get ( 'location' ) ? $ this -> get ( 'location' ) : 'main' ) ; $ header = new XMLElement ( 'header' , null , array ( 'class' => 'frame-header ' . $ location , 'data-name' => $ this -> name ( ) , 'title' => $ this -> get ( 'id' ) , ) ) ; $ label = ( ( $ this -> get ( 'label' ) ) ? $ this -> get ( 'label' ) : __ ( 'New Field' ) ) ; $ header -> appendChild ( new XMLElement ( 'h4' , '<strong>' . $ label . '</strong> <span class="type">' . $ this -> name ( ) . '</span>' ) ) ; $ wrapper -> appendChild ( $ header ) ; // Create content $ wrapper -> appendChild ( Widget :: Input ( 'fields[' . $ this -> get ( 'sortorder' ) . '][type]' , $ this -> handle ( ) , 'hidden' ) ) ; if ( $ this -> get ( 'id' ) ) { $ wrapper -> appendChild ( Widget :: Input ( 'fields[' . $ this -> get ( 'sortorder' ) . '][id]' , $ this -> get ( 'id' ) , 'hidden' ) ) ; } $ wrapper -> appendChild ( $ this -> buildSummaryBlock ( $ errors ) ) ; }
Display the default settings panel, calls the `buildSummaryBlock`
function after basic field settings are added to the wrapper.

@see buildSummaryBlock()
@param XMLElement $wrapper
the input XMLElement to which the display of this will be appended.
@param mixed $errors
the input error collection. this defaults to null.
@throws InvalidArgumentException
Display the default settings panel calls the buildSummaryBlock function after basic field settings are added to the wrapper .