WPCF7_TagGeneratorGenerator::class_attr
Template method for class attribute option field.
Метод класса: WPCF7_TagGeneratorGenerator{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->class_attr( $options );
- $options
- .
По умолчанию:''
Код WPCF7_TagGeneratorGenerator::class_attr() WPCF7 TagGeneratorGenerator::class attr CF7 6.1.4
<?php
private function class_attr( $options = '' ) {
?>
<fieldset>
<legend id="<?php echo esc_attr( $this->ref( 'class-legend' ) ); ?>"><?php
echo esc_html( __( 'Class attribute', 'contact-form-7' ) );
?></legend>
<input type="text" data-tag-part="option" data-tag-option="class:" pattern="[A-Za-z0-9_\-\s]*" aria-labelledby="<?php echo esc_attr( $this->ref( 'class-legend' ) ); ?>" />
</fieldset>
<?php
}