$settings Field configuration. * @var mixed $value Current saved value. * @var string $module_id Module ID. * * @package Merchant * @since 2.2.5 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $page_id = get_option( $settings['option_name'] ); echo '
'; if ( $page_id && post_exists( get_the_title( $page_id ) ) && 'publish' === get_post_status( $page_id ) ) { echo wp_kses_post( sprintf( /* translators: 1: link to edit page */ __( '

Your page is created!

Click here if you want to edit the page.

To display the page in your theme header area, assign the page to the primary menu by clicking here

', 'merchant' ), get_admin_url() . 'post.php?post=' . $page_id . '&action=edit', get_admin_url() . 'nav-menus.php' ) ); } else { echo '
'; echo wp_kses_post( '

'. sprintf( /* translators: 1: page name */ __( 'It looks like you haven\'t created a %1$s page yet. Click the below button to create the page.', 'merchant' ), $settings['page_title'] ). '

' ); echo '
'; echo ''; echo wp_kses_post( sprintf( /* translators: 1: page title, 2: page meta key, 3: page meta value, 4: option name, 5: nonce, 6: loading text, 7: success text */ __( '%1$s', 'merchant' ), __( 'Create Page', 'merchant' ), $settings['page_title'], $settings['page_meta_key'], $settings['page_meta_value'], $settings['option_name'], wp_create_nonce( 'customize-create-page-control-nonce' ), __( 'Creating...', 'merchant' ), __( 'Created!', 'merchant' ) ) ); } echo '
';