Sin descripción

summary-body-plain.php 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Email Summary body template (plain text).
  4. *
  5. * This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body-plain.php.
  6. *
  7. * @since 1.5.4
  8. *
  9. * @version 1.5.4
  10. *
  11. * @var array $entries
  12. * @var array $info_block
  13. */
  14. if ( ! \defined( 'ABSPATH' ) ) {
  15. exit;
  16. }
  17. echo \esc_html__( 'Hi there!', 'wpforms-lite' ) . "\n\n";
  18. if ( \wpforms()->pro ) {
  19. echo \esc_html__( 'Let’s see how your forms performed in the past week.', 'wpforms-lite' ) . "\n\n";
  20. } else {
  21. echo \esc_html__( 'Let’s see how your forms performed.', 'wpforms-lite' ) . "\n\n";
  22. echo \esc_html__( 'Below is the total number of submissions for each form, however actual entries are not stored in WPForms Lite. To generate detailed reports and view future entries inside your WordPress dashboard, consider upgrading to Pro.', 'wpforms-lite' ) . "\n\n\n";
  23. }
  24. echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
  25. echo \esc_html__( 'Form', 'wpforms-lite' ) . ' | ' . esc_html__( 'Entries', 'wpforms-lite' ) . "\n\n";
  26. echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
  27. foreach ( $entries as $row ) {
  28. echo ( isset( $row['title'] ) ? \esc_html( $row['title'] ) : '' ) . ' | ' . ( isset( $row['count'] ) ? \absint( $row['count'] ) : '' ) . "\n\n";
  29. }
  30. if ( empty( $entries ) ) {
  31. echo \esc_html__( 'It appears you do not have any form entries yet.', 'wpforms-lite' ) . "\n\n";
  32. }
  33. echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n\n";
  34. if ( ! empty( $info_block['title'] ) ) {
  35. echo \esc_html( $info_block['title'] ) . "\n\n";
  36. }
  37. if ( ! empty( $info_block['content'] ) ) {
  38. echo \wp_kses_post( $info_block['content'] ) . "\n\n";
  39. }
  40. if ( ! empty( $info_block['button'] ) && ! empty( $info_block['url'] ) ) {
  41. echo \esc_html( $info_block['button'] ) . ': ' . \esc_url( $info_block['url'] ) . "\n\n";
  42. }