Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* No forms HTML template.
|
||||
*
|
||||
* @since 1.6.2.3
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-admin-empty-state-container wpforms-admin-no-forms">
|
||||
|
||||
<h2 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h2>
|
||||
|
||||
<p><?php esc_html_e( 'It looks like you haven’t created any forms yet.', 'wpforms-lite' ); ?></p>
|
||||
<p><?php esc_html_e( 'You can use WPForms to build contact forms, surveys, payment forms, and more with just a few clicks.', 'wpforms-lite' ); ?></p>
|
||||
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/no-forms.svg' ); ?>" alt=""/>
|
||||
|
||||
<br>
|
||||
|
||||
<?php if ( wpforms_current_user_can( 'create_forms' ) ) : ?>
|
||||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder' ) ); ?>" class="wpforms-btn add-new-h2 wpforms-btn-orange"><?php esc_html_e( 'Create Your Form', 'wpforms-lite' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="wpforms-admin-no-forms-footer">
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - URL to the documentation article. */
|
||||
__( 'Need some help? Check out our <a href="%s" target="_blank" rel="noopener noreferrer">comprehensive guide</a>.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'target' => [],
|
||||
'rel' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/creating-first-form/', 'forms-overview', 'Create Your First Form Documentation' ) )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
</div>
|
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* Get Started HTML template.
|
||||
*
|
||||
* @since 1.8.2
|
||||
*
|
||||
* @var string $message An abort message to display.
|
||||
* @var string $version Determine whether is pro or lite version.
|
||||
* @var string $cta_url URL for the "Get Started" CTA button.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$allowed_html = [
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'rel' => [],
|
||||
'target' => [],
|
||||
],
|
||||
'strong' => [],
|
||||
];
|
||||
|
||||
?>
|
||||
<div class="wpforms-admin-empty-state-container wpforms-admin-no-payments">
|
||||
<h2 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h2>
|
||||
<h4><?php esc_html_e( 'Ready to start collecting payments from your customers?', 'wpforms-lite' ); ?></h4>
|
||||
<p><?php echo wp_kses( $message, $allowed_html ); ?></p>
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . "assets/images/empty-states/payments/get-started-$version.svg" ); ?>" alt="">
|
||||
|
||||
<?php if ( wpforms_current_user_can( 'create_forms' ) ) : ?>
|
||||
<a href="<?php echo esc_url( $cta_url ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange">
|
||||
<?php esc_html_e( 'Get Started', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="wpforms-admin-no-forms-footer">
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - URL to the comprehensive guide. */
|
||||
__( 'Need some help? Check out our <a href="%s" rel="noopener noreferrer" target="_blank">comprehensive guide.</a>', 'wpforms-lite' ),
|
||||
$allowed_html
|
||||
),
|
||||
esc_url(
|
||||
wpforms_utm_link(
|
||||
'https://wpforms.com/docs/using-stripe-with-wpforms-lite/',
|
||||
'Payments Dashboard',
|
||||
'Splash - Manage Payments Documentation'
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* No Payments HTML template.
|
||||
*
|
||||
* @since 1.8.2
|
||||
*
|
||||
* @var string $cta_url URL for the "Go To All Forms" CTA button.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-admin-empty-state-container wpforms-admin-no-payments">
|
||||
<h2 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h2>
|
||||
<h4><?php esc_html_e( "It looks like you haven't received any payments yet.", 'wpforms-lite' ); ?></h4>
|
||||
<p><?php esc_html_e( "Your payment gateway has been configured and you're ready to go.", 'wpforms-lite' ); ?></p>
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/payments/no-payments.svg' ); ?>" alt="" style="max-width: 314px;">
|
||||
|
||||
<?php if ( wpforms_current_user_can( 'view_forms' ) ) : ?>
|
||||
<a href="<?php echo esc_url( $cta_url ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange">
|
||||
<?php esc_html_e( 'Go To All Forms', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="wpforms-admin-no-forms-footer">
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - URL to the comprehensive guide. */
|
||||
__( 'Need some help? Check out our <a href="%s" rel="noopener noreferrer" target="_blank">comprehensive guide.</a>', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'rel' => [],
|
||||
'target' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
esc_url(
|
||||
wpforms_utm_link(
|
||||
'https://wpforms.com/docs/using-stripe-with-wpforms-lite/',
|
||||
'Payments Dashboard',
|
||||
'Activated - Manage Payments Documentation'
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
Reference in New Issue
Block a user