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