ACF_Admin_Tool_Export::html_archive()publicACF 5.6.3

html_archive

description

Метод класса: ACF_Admin_Tool_Export{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ACF_Admin_Tool_Export = new ACF_Admin_Tool_Export();
$ACF_Admin_Tool_Export->html_archive();

Список изменений

С версии 5.6.3 Введена.

Код ACF_Admin_Tool_Export::html_archive() ACF 6.0.4

<?php
function html_archive() {

	?>
<div class="acf-postbox-header">
	<h2 class="acf-postbox-title">Export Field Groups</h2>
	<div class="acf-tip"><i tabindex="0" class="acf-icon acf-icon-help acf-js-tooltip" title="<?php esc_attr_e( 'Select the field groups you would like to export and then select your export method. Export As JSON to export to a .json file which you can then import to another ACF installation. Generate PHP to export to PHP code which you can place in your theme.', 'acf' ); ?>">?</i></div>
</div>
<div class="acf-postbox-inner">
	<div class="acf-fields">
		<?php $this->html_field_selection(); ?>
	</div>
	<p class="acf-submit acf-actions-strip">
		<button type="submit" name="action" class="acf-btn acf-button-primary" value="download"><?php _e( 'Export As JSON', 'acf' ); ?></button>
		<button type="submit" name="action" class="acf-btn acf-btn-secondary" value="generate"><?php _e( 'Generate PHP', 'acf' ); ?></button>
	</p>
</div>
	<?php

}