acf-field-group
5 months ago
acf-post-type
5 months ago
acf-taxonomy
6 months ago
global
6 months ago
tools
6 months ago
upgrade
6 months ago
browse-fields-modal.php
6 months ago
email-opt-in-banner.php
1 month ago
escaped-html-notice.php
6 months ago
index.php
2 years ago
options-page-preview.php
6 months ago
options-page-preview.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package ACF |
| 4 | * @author WP Engine |
| 5 | * |
| 6 | * © 2026 Advanced Custom Fields (ACF®). All rights reserved. |
| 7 | * "ACF" is a trademark of WP Engine. |
| 8 | * Licensed under the GNU General Public License v2 or later. |
| 9 | * https://www.gnu.org/licenses/gpl-2.0.html |
| 10 | */ |
| 11 | |
| 12 | $acf_learn_more_link = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/pro/', 'ACF upgrade', 'no-options-pages' ); |
| 13 | $acf_upgrade_button = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/pro/', 'ACF upgrade', 'no-options-pages-pricing', 'pricing-table' ); |
| 14 | |
| 15 | $acf_options_pages_desc = sprintf( |
| 16 | /* translators: %s URL to ACF options pages documentation */ |
| 17 | __( 'ACF <a href="%s" target="_blank">options pages</a> are custom admin pages for managing global settings via fields. You can create multiple pages and sub-pages.', 'acf' ), |
| 18 | acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/options-page/', 'docs', 'no-options-pages' ) |
| 19 | ); |
| 20 | |
| 21 | $acf_getting_started = sprintf( |
| 22 | /* translators: %s url to getting started guide */ |
| 23 | __( 'New to ACF? Take a look at our <a href="%s" target="_blank">getting started guide</a>.', 'acf' ), |
| 24 | acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/getting-started-with-acf/', 'docs', 'no-options-pages' ) |
| 25 | ); |
| 26 | |
| 27 | ?> |
| 28 | <div class="wrap acf_options_preview_wrap"> |
| 29 | <table class="wp-list-table widefat fixed striped"> |
| 30 | <tbody id="the-list"> |
| 31 | <tr class="no-items"> |
| 32 | <td class="colspanchange" colspan="6"> |
| 33 | <div class="acf-no-field-groups-wrapper"> |
| 34 | <div class="acf-no-field-groups-inner acf-field-group-pro-features-content"> |
| 35 | <img src="<?php echo esc_url( acf_get_url( 'assets/images/empty-post-types.svg' ) ); ?>" /> |
| 36 | <h2><?php echo acf_esc_html( __( 'Upgrade to ACF PRO to create options pages in just a few clicks', 'acf' ) ); ?></h2> |
| 37 | <p><?php echo acf_esc_html( $acf_options_pages_desc ); ?></p> |
| 38 | <div class="acf-ui-options-page-pro-features-actions"> |
| 39 | <a target="_blank" href="<?php echo $acf_learn_more_link; ?>" class="acf-btn acf-btn-muted"><?php esc_html_e( 'Learn More', 'acf' ); ?> <i class="acf-icon acf-icon-arrow-up-right"></i></a><?php //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped on generation. ?> |
| 40 | <a target="_blank" href="<?php echo $acf_upgrade_button; ?>" class="acf-btn acf-options-pages-preview-upgrade-button"> <?php esc_html_e( 'Upgrade to ACF PRO', 'acf' ); ?> <i class="acf-icon acf-icon-arrow-up-right"></i></a><?php //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped on generation. ?> |
| 41 | </div> |
| 42 | <p class="acf-small"><?php echo acf_esc_html( $acf_getting_started ); ?></p> |
| 43 | </div> |
| 44 | </div> |
| 45 | </td> |
| 46 | </tr> |
| 47 | </tbody> |
| 48 | </table> |
| 49 | </div> |
| 50 |