Server : nginx/1.24.0 System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE Directory : /var/www/html/wp-content/plugins.off/sierotki/includes/iworks/rate/templates/ |
Upload File : |
<?php defined( 'ABSPATH' ) || exit; // Exit if accessed directly /** * Notice displayed in admin panel. */ ?> <div class="notice notice-success is-dismissible notice-iworks-rate" data-slug="<?php echo esc_attr( $args['slug'] ); ?>" data-id="<?php echo esc_attr( $args['plugin_id'] ); ?>" data-ajax-url="<?php echo esc_url( $args['ajax_url'] ); ?>" data-nonce="<?php echo esc_attr( wp_create_nonce( 'iworks-rate' ) ); ?>" > <div class="<?php echo esc_attr( implode( ' ', $args['classes'] ) ); ?>"> <h4> <?php if ( ! empty( $args['logo'] ) ) { printf( '<span class="iworks-rate-logo" style="background-image:url(%s)"></span>', esc_url( $args['logo'] ) ); } ?> <span> <?php printf( /* translators: %s is a plugin name wrapped by strong html tag */ esc_html( __( 'Thank you for using our plugin %s!', 'sierotki' ) ), /* translators: %s is a plugin name */ sprintf( '<strong>%s</strong>', esc_html( $args['title'] ) ) ); ?> </span></h4> <?php /* translators: %1$s: open anchor tag, %2$s: close anchor tag */ $content = __( 'Please let us know what you think about our plugin. It is important that we can develop this tool. Thank you for all the ratings, reviews and donates. If you have a technical problem, please before you add a review %1$scheck our FAQ%2$s or contact us if you did not find help there. We will try to help you!', 'sierotki' ); echo wp_kses_post( wpautop( sprintf( $content, sprintf( '<a href="%s#faq" target="_blank">', esc_url( $args['url'] ) ), '</a>' ) ) ); ?> <div class="iworks-rate-buttons"> <a data-action="get-help" href="<?php echo esc_url( $args['support_url'] ); ?>/#new-post" target="_blank" class="iworks-rate-button iworks-rate-button--green" ><?php echo esc_html( __( 'Get help', 'sierotki' ) ); ?></a> <?php if ( intval( $args['rated'] ) === 0 ) { ?> <a data-action="add-review" href="<?php echo esc_url( $args['support_url'] ); ?>/reviews/?rate=5#new-post" target="_blank" class="iworks-rate-button iworks-rate-button--green" ><?php echo esc_html( __( 'Add review', 'sierotki' ) ); ?></a> <?php } ?> <a data-action="donate" href="https://ko-fi.com/iworks/?utm_source=<?php echo esc_url( $args['slug'] ); ?>&utm_medium=notice-thanks" target="_blank" class="iworks-rate-button iworks-rate-button--green dashicons-heart" ><?php echo esc_html( __( 'Provide us a coffee', 'sierotki' ) ); ?></a> <?php if ( intval( $args['rated'] ) === 0 ) { ?> <button type="button" data-action="hide" class="iworks-rate-button iworks-rate-button--blue" ><?php echo esc_html( __( 'I added review, do not show again', 'sierotki' ) ); ?></button> <?php } ?> </div> </div> </div>