WPCF7_TagGenerator::print_buttons
Renders form-tag generator calling buttons.
Метод класса: WPCF7_TagGenerator{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPCF7_TagGenerator = new WPCF7_TagGenerator(); $WPCF7_TagGenerator->print_buttons();
Код WPCF7_TagGenerator::print_buttons() WPCF7 TagGenerator::print buttons CF7 6.1.3
public function print_buttons() {
$formatter = new WPCF7_HTMLFormatter();
$formatter->append_start_tag( 'span', array(
'id' => 'tag-generator-list',
'class' => 'hide-if-no-js',
) );
foreach ( (array) $this->panels as $panel ) {
$formatter->append_start_tag( 'button', array(
'type' => 'button',
'data-taggen' => 'open-dialog',
'data-target' => $panel['content'],
'title' => sprintf(
/* translators: %s: title of form-tag */
__( 'Form-tag Generator: %s', 'contact-form-7' ),
$panel['title']
),
) );
$formatter->append_preformatted( esc_html( $panel['title'] ) );
}
$formatter->print();
}