acf.php
47 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals ?> |
| 2 | <div class="wpallimport-collapsed closed pmai_options"> |
| 3 | <div class="wpallimport-content-section"> |
| 4 | <div class="wpallimport-collapsed-header"> |
| 5 | <h3><?php esc_html_e('Advanced Custom Fields Add-On','wp-all-import');?></h3> |
| 6 | </div> |
| 7 | <div class="wpallimport-collapsed-content" style="padding: 0;"> |
| 8 | <div class="wpallimport-collapsed-content-inner"> |
| 9 | <div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:0; margin-bottom: 40px;"> |
| 10 | <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839965&edd_options%5Bprice_id%5D=1&discount=welcome-upgrade-169&utm_source=import-plugin-free&utm_medium=upgrade-notice&utm_campaign=import-acf" target="_blank" class="upgrade_link"><?php esc_html_e('ACF Import Add-On required to Import Advanced Custom Fields', 'wp-all-import');?></a> |
| 11 | </div> |
| 12 | <table class="form-table" style="max-width:none;"> |
| 13 | <tr> |
| 14 | <td colspan="3"> |
| 15 | <?php if (!empty($groups)): ?> |
| 16 | <p><strong><?php esc_html_e("Please choose your Field Groups.",'wp-all-import');?></strong></p> |
| 17 | <ul> |
| 18 | <?php |
| 19 | foreach ($groups as $key => $group) { |
| 20 | $is_show_acf_group = apply_filters('wp_all_import_acf_is_show_group', true, $group); |
| 21 | ?> |
| 22 | <li> |
| 23 | <input type="hidden" name="acf[<?php echo esc_attr($group['ID']);?>]" value="<?php echo $is_show_acf_group ? '0' : '1'?>"/> |
| 24 | <?php if ($is_show_acf_group): ?> |
| 25 | <input id="acf_<?php echo esc_attr($post_type . '_' . $group['ID']);?>" type="checkbox" name="acf[<?php echo esc_attr($group['ID']);?>]" disabled="disabled" value="1" rel="<?php echo esc_attr($group['ID']);?>" class="pmai_acf_group"/> |
| 26 | <label for="acf_<?php echo esc_attr($post_type . '_' . $group['ID']); ?>"><?php echo esc_html($group['title']); ?></label> |
| 27 | <?php endif; ?> |
| 28 | </li> |
| 29 | <?php |
| 30 | } |
| 31 | ?> |
| 32 | </ul> |
| 33 | <div class="acf_groups"></div> |
| 34 | <?php |
| 35 | else: |
| 36 | ?> |
| 37 | <p><strong><?php esc_html_e("Please create Field Groups.",'wp-all-import');?></strong></p> |
| 38 | <?php |
| 39 | endif; |
| 40 | ?> |
| 41 | </td> |
| 42 | </tr> |
| 43 | </table> |
| 44 | </div> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |