first
This commit is contained in:
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Notice displayed in admin panel.
|
||||
*
|
||||
* @var string $ajax_url URL of admin-ajax.
|
||||
* @var string $close_action Action using in WP Ajax.
|
||||
* @var string $service_name .
|
||||
* @var string[] $steps Instructions to follow.
|
||||
*
|
||||
* @package Converter for Media
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-success is-dismissible"
|
||||
data-notice="webp-converter-for-media"
|
||||
data-notice-action="<?php echo esc_attr( $close_action ); ?>"
|
||||
data-notice-url="<?php echo esc_url( $ajax_url ); ?>"
|
||||
>
|
||||
<div class="webpcContent webpcContent--notice">
|
||||
<p>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
/* translators: %1$s: service name */
|
||||
__( 'You are using %1$s, right? Please, follow the steps below for the plugin to function properly:', 'webp-converter-for-media' ),
|
||||
$service_name
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<ul>
|
||||
<?php foreach ( $steps as $step_index => $step_message ) : ?>
|
||||
<li>
|
||||
<?php echo wp_kses_post( ( $step_index + 1 ) . '. ' . $step_message ); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="webpcContent__buttons">
|
||||
<button type="button" data-permanently
|
||||
class="webpcContent__button webpcButton webpcButton--blue webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Done', 'webp-converter-for-media' ) ); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* Notice displayed in admin panel.
|
||||
*
|
||||
* @var string $ajax_url URL of admin-ajax.
|
||||
* @var string $close_action Action using in WP Ajax.
|
||||
* @var string $coupon_code .
|
||||
* @var string $discount_value .
|
||||
* @var string $button_url .
|
||||
* @var string $promotion_date .
|
||||
*
|
||||
* @package Converter for Media
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-success is-dismissible"
|
||||
data-notice="webp-converter-for-media"
|
||||
data-notice-action="<?php echo esc_attr( $close_action ); ?>"
|
||||
data-notice-url="<?php echo esc_url( $ajax_url ); ?>"
|
||||
>
|
||||
<div class="webpcContent webpcContent--notice">
|
||||
<h4>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
/* translators: %1$s: discount value, %2$s: plugin name */
|
||||
__( '%1$s discount on all PRO version plans of the %2$s plugin!', 'webp-converter-for-media' ),
|
||||
$discount_value,
|
||||
'Converter for Media'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</h4>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
sprintf(
|
||||
/* translators: %1$s: plugin name, %2$s: coupon code, %3$s: discount value, %4$s: date */
|
||||
__( 'We have prepared a special offer for users of our %1$s plugin. Use the coupon code: %2$s when placing your order and get %3$s discount! This offer is valid until %4$s.', 'webp-converter-for-media' ),
|
||||
'Converter for Media',
|
||||
'<code>' . $coupon_code . '</code>',
|
||||
$discount_value,
|
||||
wp_date( get_option( 'date_format' ), strtotime( $promotion_date ) ?: 0 )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<div class="webpcContent__buttons">
|
||||
<a href="<?php echo esc_attr( $button_url ); ?>"
|
||||
target="_blank"
|
||||
class="webpcContent__button webpcButton webpcButton--blue webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Get it now', 'webp-converter-for-media' ) ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* Notice displayed in admin panel.
|
||||
*
|
||||
* @var string $ajax_url URL of admin-ajax.
|
||||
* @var string $close_action Action using in WP Ajax.
|
||||
*
|
||||
* @package Converter for Media
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-success is-dismissible"
|
||||
data-notice="webp-converter-for-media"
|
||||
data-notice-action="<?php echo esc_attr( $close_action ); ?>"
|
||||
data-notice-url="<?php echo esc_url( $ajax_url ); ?>"
|
||||
>
|
||||
<div class="webpcContent webpcContent--notice">
|
||||
<h4>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
/* translators: %s: plugin name */
|
||||
__( 'Thank you for using our %s plugin!', 'webp-converter-for-media' ),
|
||||
'Converter for Media'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</h4>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
__( 'We are glad that you are using our plugin and we hope you are satisfied with it. If you want, you can support us in the development of the plugin by adding a plugin review. This is very important and gives us the opportunity to create even better tools for you. Thank you!', 'webp-converter-for-media' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<div class="webpcContent__buttons">
|
||||
<a href="https://url.mattplugins.com/converter-notice-thanks-button-review"
|
||||
target="_blank"
|
||||
class="webpcContent__button webpcButton webpcButton--blue webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Add a plugin review', 'webp-converter-for-media' ) ); ?>
|
||||
</a>
|
||||
<button type="button" data-permanently
|
||||
class="webpcContent__button webpcButton webpcButton--gray webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Hide and do not show again', 'webp-converter-for-media' ) ); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Notice displayed in admin panel.
|
||||
*
|
||||
* @var string $ajax_url URL of admin-ajax.
|
||||
* @var string $close_action Action using in WP Ajax.
|
||||
* @var string $settings_url URL of the plugin settings.
|
||||
*
|
||||
* @package Converter for Media
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-error is-dismissible"
|
||||
data-notice="webp-converter-for-media"
|
||||
data-notice-action="<?php echo esc_attr( $close_action ); ?>"
|
||||
data-notice-url="<?php echo esc_url( $ajax_url ); ?>"
|
||||
>
|
||||
<div class="webpcContent webpcContent--notice">
|
||||
<h4>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
/* translators: %s: plugin name */
|
||||
__( 'Check the status of the %s plugin!', 'webp-converter-for-media' ),
|
||||
'Converter for Media'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</h4>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
__( 'It appears that your subscription has expired or you have reached the maximum number of image conversions for your current billing period. To continue using the service, please, check your subscription status.', 'webp-converter-for-media' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<div class="webpcContent__buttons">
|
||||
<a href="<?php echo esc_url( $settings_url ); ?>"
|
||||
class="webpcContent__button webpcButton webpcButton--blue webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Go to the plugin settings', 'webp-converter-for-media' ) ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* Notice displayed in admin panel.
|
||||
*
|
||||
* @var string $ajax_url URL of admin-ajax.
|
||||
* @var string $close_action Action using in WP Ajax.
|
||||
*
|
||||
* @package Converter for Media
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-success is-dismissible"
|
||||
data-notice="webp-converter-for-media"
|
||||
data-notice-action="<?php echo esc_attr( $close_action ); ?>"
|
||||
data-notice-url="<?php echo esc_url( $ajax_url ); ?>"
|
||||
>
|
||||
<div class="webpcContent webpcContent--notice">
|
||||
<h4>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
/* translators: %s: plugin name */
|
||||
__( 'New opportunities in our %s plugin!', 'webp-converter-for-media' ),
|
||||
'Converter for Media'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</h4>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
__( 'Did you know that by using the PRO version of our plugin you can speed up your website even more? Find out now what you can gain.', 'webp-converter-for-media' )
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
sprintf(
|
||||
/* translators: %1$s: open strong tag, %2$s: discount value, %3$s: close strong tag, %4$s: coupon code */
|
||||
__( '%1$sOnly now you can get %2$s discount%3$s by using the coupon code: %4$s when placing your order.', 'webp-converter-for-media' ),
|
||||
'<strong>',
|
||||
'10%',
|
||||
'</strong>',
|
||||
'<code>10D4FD7814</code>'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<div class="webpcContent__buttons">
|
||||
<a href="https://url.mattplugins.com/converter-notice-upgrade-button-read"
|
||||
target="_blank"
|
||||
class="webpcContent__button webpcButton webpcButton--blue webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Explore the opportunities for yourself', 'webp-converter-for-media' ) ); ?>
|
||||
</a>
|
||||
<button type="button" data-permanently
|
||||
class="webpcContent__button webpcButton webpcButton--gray webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Hide and do not show again', 'webp-converter-for-media' ) ); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* Notice displayed in admin panel.
|
||||
*
|
||||
* @var string $ajax_url URL of admin-ajax.
|
||||
* @var string $close_action Action using in WP Ajax.
|
||||
* @var string $settings_url URL of plugin settings page (default view).
|
||||
*
|
||||
* @package Converter for Media
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="notice notice-success is-dismissible"
|
||||
data-notice="webp-converter-for-media"
|
||||
data-notice-action="<?php echo esc_attr( $close_action ); ?>"
|
||||
data-notice-url="<?php echo esc_url( $ajax_url ); ?>"
|
||||
>
|
||||
<div class="webpcContent webpcContent--notice">
|
||||
<h4>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
/* translators: %s: plugin name */
|
||||
__( 'Thank you for installing our %s plugin!', 'webp-converter-for-media' ),
|
||||
'Converter for Media'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</h4>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
sprintf(
|
||||
/* translators: %1$s: button label, %2$s: icon heart */
|
||||
__( 'Optimize all your images by clicking the "%1$s" button in the plugin settings. It\'s that easy! %2$s', 'webp-converter-for-media' ),
|
||||
__( 'Start Bulk Optimization', 'webp-converter-for-media' ),
|
||||
'<span class="dashicons dashicons-heart"></span>'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<div class="webpcContent__buttons">
|
||||
<a href="<?php echo esc_url( $settings_url ); ?>"
|
||||
class="webpcContent__button webpcButton webpcButton--blue webpcButton--bg"
|
||||
>
|
||||
<?php echo esc_html( __( 'Go to the plugin settings', 'webp-converter-for-media' ) ); ?>
|
||||
</a>
|
||||
<a href="https://url.mattplugins.com/converter-notice-welcome-button-video" target="_blank"
|
||||
class="webpcContent__button webpcButton webpcButton--blue"
|
||||
>
|
||||
<?php echo esc_html( __( 'Meet the plugin', 'webp-converter-for-media' ) ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<img src="https://mattplugins.com/images/matt-plugins-logo.png" alt="">
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user