slug = 'Separator';
$this->title = esc_attr__( 'Separator', 'questions-locale' );
$this->description = esc_attr__( 'Adds a optical separator (
) between questions.', 'questions-locale' );
$this->icon_url = QUESTIONS_URLPATH . '/assets/images/icon-separator.png';
$this->is_question = FALSE;
parent::__construct( $id );
}
public function input_html() {
$html = '';
if ( ! empty( $this->settings[ 'header' ] ) ) {
$html .= '
' . $this->settings[ 'header' ] . '
';
}
$html .= '
';
return $html;
}
public function settings_fields() {
$this->settings_fields = array(
'header' => array(
'title' => esc_attr__( 'Headline', 'questions-locale' ),
'type' => 'textarea',
'description' => esc_attr__( 'Text which will be shown above the separator', 'questions-locale' ),
'default' => ''
)
);
}
}
qu_register_survey_element( 'Questions_FormElement_Separator' );