WPCF7_TagGeneratorGenerator::insert_box_content
Template method for insert-box content including the result form-tag.
Метод класса: WPCF7_TagGeneratorGenerator{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->insert_box_content( $options );
- $options
- .
По умолчанию:''
Код WPCF7_TagGeneratorGenerator::insert_box_content() WPCF7 TagGeneratorGenerator::insert box content CF7 6.1.5
private function insert_box_content( $options = '' ) {
$formatter = new WPCF7_HTMLFormatter();
$formatter->append_start_tag( 'div', array(
'class' => 'flex-container',
) );
$formatter->append_start_tag( 'input', array(
'type' => 'text',
'class' => 'code selectable',
'readonly' => true,
'data-tag-part' => 'tag',
'aria-label' => __( 'The form-tag to be inserted into the form template', 'contact-form-7' ),
) );
$formatter->append_whitespace();
$formatter->append_start_tag( 'button', array(
'type' => 'button',
'class' => 'button button-primary',
'data-taggen' => 'insert-tag',
) );
$formatter->append_preformatted(
esc_html( __( 'Insert Tag', 'contact-form-7' ) )
);
$formatter->end_tag( 'button' );
$formatter->print();
}