field-groups-empty.php 1.2 KB

1234567891011121314151617181920212223242526
  1. <script>document.body.classList.add('acf-no-field-groups');</script>
  2. <div class="acf-no-field-groups-wrapper">
  3. <div class="acf-no-field-groups-inner">
  4. <img src="<?php echo acf_get_url( 'assets/images/empty-group.svg' ); ?>" />
  5. <h2><?php _e( 'Add Your First Field Group', 'acf' ); ?></h2>
  6. <p>
  7. <?php
  8. printf(
  9. /* translators: %s url to creating a field group page */
  10. __( 'ACF uses <a href="%s" target="_blank">field groups</a> to group custom fields together, and then attach those fields to edit screens.', 'acf' ),
  11. acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/creating-a-field-group/', 'docs', 'no-field-groups' )
  12. );
  13. ?>
  14. </p>
  15. <a href="<?php echo admin_url( 'post-new.php?post_type=acf-field-group' ); ?>" class="acf-btn"><i class="acf-icon acf-icon-plus"></i> <?php _e( 'Add Field Group', 'acf' ); ?></a>
  16. <p class="acf-small">
  17. <?php
  18. printf(
  19. /* translators: %s url to getting started guide */
  20. __( 'New to ACF? Take a look at our <a href="%s" target="_blank">getting started guide</a>.', 'acf' ),
  21. acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/getting-started-with-acf/', 'docs', 'no-field-groups' )
  22. );
  23. ?>
  24. </p>
  25. </div>
  26. </div>