Файловый менеджер - Редактировать - /home/bean7936/perfect-community.com/442aa3/wpforms-lite.tar
Назад
templates/education/admin/edit-post/notice.php 0000644 00000001014 15174671622 0015516 0 ustar 00 <?php /** * Gutenberg Editor notice for Edit Post Education template. * * @since 1.8.1 * * @var string $message Notice message. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-edit-post-education-notice-body"> <p> <strong><?php esc_html_e( 'Oh hey, it looks like you\'re working on a Contact page.', 'wpforms-lite' ); ?></strong> </p> <p> <?php echo wp_kses( $message, [ 'a' => [ 'href' => [], 'target' => [], 'rel' => [], ], ] ); ?> </p> </div> templates/education/admin/edit-post/classic-notice.php 0000644 00000001176 15174671622 0017146 0 ustar 00 <?php /** * Classic Editor notice for Edit Post Education template. * * @since 1.8.1 * * @var string $message Notice message. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-edit-post-education-notice wpforms-hidden"> <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_render( 'education/admin/edit-post/notice', [ 'message' => $message, ], true ) ?> <button type="button" class="wpforms-edit-post-education-notice-close notice-dismiss"> <span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice.', 'wpforms-lite' ); ?></span> </button> </div> templates/education/admin/payments/single-page.php 0000644 00000002674 15174671622 0016375 0 ustar 00 <?php /** * Payment single page education notice. * * @since 1.8.2 */ use WPForms\Integrations\Square\Helpers as SquareHelpers; if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-payment-single-education-notice postbox wpforms-dismiss-container"> <div class="wpforms-payment-single-education-notice-title"> <?php esc_html_e( 'Get More Out of Payments', 'wpforms-lite' ); ?> </div> <div class="wpforms-payment-single-education-notice-description"> <?php if ( SquareHelpers::is_application_fee_supported() ) { esc_html_e( 'Unlock conditional logic, coupons, lower Stripe and Square fees, and more.', 'wpforms-lite' ); } else { esc_html_e( 'Unlock conditional logic, coupons, lower Stripe fee, and more.', 'wpforms-lite' ); } echo ' '; printf( wp_kses( /* translators: %s - WPForms.com Upgrade page URL. */ __( '<a href="%s" target="_blank" rel="noopener noreferrer">Upgrade to Pro!</a>', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], ] ), esc_url( wpforms_admin_upgrade_link( 'Single Payment Page', 'Stripe Pro - Remove Fees' ) ) ); ?> </div> <div class="wpforms-payment-single-education-notice-dismiss-button wpforms-dismiss-button" data-section="single-payment" aria-label="<?php esc_html_e( 'Dismiss this notice', 'wpforms-lite' ); ?>"> <span class="dashicons dashicons-no-alt"></span> </div> </div> templates/education/admin/settings/smtp-notice.php 0000644 00000002170 15174671622 0016433 0 ustar 00 <?php /** * SMTP education notice. * * @since 1.8.1 */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-smtp-education-notice wpforms-dismiss-container"> <div class="wpforms-smtp-education-notice-title"><?php esc_html_e( 'Make Sure Important Emails Reach Your Customers', 'wpforms-lite' ); ?></div> <div class="wpforms-smtp-education-notice-description"> <?php echo wp_kses( sprintf( /* translators: %1$s - link to WPForms SMTP page. */ __( 'Solve common email deliverability issues for good. <a href="%1$s" target="%2$s" rel="noopener noreferrer">Get WP Mail SMTP!</a>', 'wpforms-lite' ), esc_url( add_query_arg( 'page', 'wpforms-smtp', admin_url( 'admin.php' ) ) ), wpforms_is_admin_page( 'builder' ) ? '_blank' : '_self' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], ] ); ?> </div> <div class="wpforms-smtp-education-notice-dismiss-button wpforms-dismiss-button" data-section="smtp-notice" aria-label="<?php esc_html_e( 'Dismiss this notice', 'wpforms-lite' ); ?>"> <span class="dashicons dashicons-no-alt"></span> </div> </div> templates/education/admin/page.php 0000644 00000006011 15174671622 0013243 0 ustar 00 <?php /** * General education template. * * @since 1.8.6 * * @var string $action Is plugin installed? * @var string $path Plugin file. * @var string $url URL download plugin download. * @var bool $plugin_allow Allow using plugin. * @var string $heading_title Heading title. * @var string $badge Badge. * @var string $heading_description Heading description. * @var string $features_description Features description. * @var array $features List of features. * @var array $images List of images. * @var string $license_level License level. * @var string $utm_medium UTM medium. * @var string $utm_content UTM content. * @var string $upgrade_link Upgrade link. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-education-page"> <div class="wpforms-education-page-heading"> <?php if ( isset( $heading_title ) ) : ?> <h4> <?php echo esc_html( $heading_title ); ?> <?php if ( isset( $badge ) ) : ?> <span class="wpforms-badge wpforms-badge-sm wpforms-badge-inline wpforms-badge-titanium wpforms-badge-rounded"><?php echo esc_html( $badge ); ?></span> <?php endif; ?> </h4> <?php endif; ?> <?php if ( isset( $heading_description ) ) { echo wp_kses_post( $heading_description ); } ?> </div> <div class="wpforms-education-page-media"> <div class="wpforms-education-page-images"> <?php if ( isset( $images ) ) : foreach ( $images as $image ) : ?> <figure> <div class="wpforms-education-page-images-image"> <img src="<?php echo esc_url( $image['url'] ); ?>" alt="<?php echo esc_attr( $image['title'] ); ?>" /> <a href="<?php echo esc_url( $image['url2x'] ); ?>" class="hover" data-lity data-lity-desc="<?php echo esc_attr( $image['title'] ); ?>"></a> </div> <figcaption><?php echo esc_html( $image['title'] ); ?></figcaption> </figure> <?php endforeach; endif; ?> </div> </div> <div class="wpforms-education-page-caps"> <?php if ( isset( $features_description ) ) : ?> <p><?php echo esc_html( $features_description ); ?></p> <?php endif; ?> <ul> <?php if ( isset( $features ) ) : foreach ( $features as $feature ) : ?> <li> <i class="fa fa-solid fa-check"></i> <?php echo esc_html( $feature ); ?> </li> <?php endforeach; endif; ?> </ul> </div> <div class="wpforms-education-page-button"> <?php if ( isset( $action ) ) { wpforms_edu_get_button( $action, $plugin_allow, $path, $url, [ 'medium' => $utm_medium, 'content' => $utm_content, ], $license_level ); } else { printf( '<a href="%s" target="_blank" rel="noopener noreferrer" class="wpforms-upgrade-modal wpforms-btn wpforms-btn-lg wpforms-btn-orange">%s</a>', esc_url( wpforms_admin_upgrade_link( $utm_medium, $utm_content ) ), esc_html__( 'Upgrade to WPForms Pro', 'wpforms-lite' ) ); } ?> </div> </div> templates/admin/components/chart.php 0000644 00000002410 15174671622 0013641 0 ustar 00 <?php /** * Overview chart template. * * @since 1.8.2 * * @var string $id Identifier to outline the context of where the chart will be used. i.e., "entries". * @var array $notice Container variable for holding placeholder heading and description text that is displayed when the chart has no stats to show. * @var string $total_items Total number of items (entries) as a placeholder text to be shown. */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. ?> <div class="wpforms-overview-chart"> <div class="spinner"></div> <div class="wpforms-overview-chart-notice wpforms-hide"> <div class="wpforms-overview-chart-notice-content"> <h2><?php echo esc_html( $notice['heading'] ); ?></h2> <p><?php echo esc_html( $notice['description'] ); ?></p> </div> </div> <?php if ( ! empty( $total_items ) ) : ?> <h3 class="wpforms-overview-chart-heading"> <?php echo esc_html( $total_items ); ?>: <span class="wpforms-overview-chart-total-items">0</span> </h3> <?php endif; ?> <div class="wpforms-overview-chart-canvas"> <canvas id="wpforms-<?php echo esc_attr( $id ); ?>-overview-canvas" width="400" height="300"></canvas> </div> </div> <?php /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ templates/admin/components/datepicker.php 0000644 00000006276 15174671622 0014671 0 ustar 00 <?php /** * Popover (range) datepicker template. * * @since 1.8.2 * @since 1.8.8 Added the `$hidden_fields` parameter. * * @var string $action The URL that processes the form submission. Ideally points out to the current admin page URL. * @var string $id Identifier to outline the context of where the datepicker will be used. e.g., "entries". * @var string $chosen_filter Currently selected filter or date range values. Last "X" days, or i.e. Feb 8, 2023 - Mar 9, 2023. * @var array $choices A list of date filter options for the datepicker module. * @var string $value Assigned timespan dates. * @var array $hidden_fields An array of hidden fields to be included in the form. */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. // An array of allowed HTML elements and attributes for the datepicker choices. $choices_allowed_html = [ 'li' => [], 'label' => [], 'input' => [ 'type' => [], 'name' => [], 'value' => [], 'checked' => [], 'aria-hidden' => [], ], ]; // Hidden fields to be included in the form submission. // `orderby` and `order` are always included by default. $default_hidden_fields = [ 'orderby', 'order' ]; $hidden_fields = array_merge( $default_hidden_fields, $hidden_fields ?? [] ); ?> <form class="wpforms-overview-top-bar-filter-form" method="get" action="<?php echo esc_url( $action ); ?>"> <input type="hidden" name="page" value="wpforms-<?php echo esc_attr( $id ); ?>" /> <?php // Output hidden fields for the current orderby and order values. // phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized foreach ( $hidden_fields as $field ) { if ( empty( $_REQUEST[ $field ] ) ) { continue; } echo '<input type="hidden" name="' . esc_attr( $field ) . '" value="' . esc_attr( wp_unslash( $_REQUEST[ $field ] ) ) . '" />'; } // phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized ?> <button id="wpforms-datepicker-popover-button" class="button" role="button" aria-haspopup="true"> <?php echo esc_html( $chosen_filter ); ?> </button> <div class="wpforms-datepicker-popover"> <div class="wpforms-datepicker-popover-content"> <ul class="wpforms-datepicker-choices" aria-label="<?php esc_attr_e( 'Datepicker options', 'wpforms-lite' ); ?>" aria-orientation="vertical"> <?php echo wp_kses( '<li>' . implode( '</li><li>', (array) $choices ) . '</li>', $choices_allowed_html ); ?> </ul> <div class="wpforms-datepicker-calendar"> <input type="text" name="date" tabindex="-1" aria-hidden="true" id="wpforms-<?php echo esc_attr( $id ); ?>-overview-datepicker" value="<?php echo esc_attr( $value ); ?>" > </div> <div class="wpforms-datepicker-action"> <button class="button-secondary" type="reset"><?php esc_html_e( 'Cancel', 'wpforms-lite' ); ?></button> <button class="button-primary wpforms-btn-blue" type="submit"><?php esc_html_e( 'Apply', 'wpforms-lite' ); ?></button> </div> </div> </div> </form> <?php /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ templates/admin/promotion.php 0000644 00000010633 15174671622 0012407 0 ustar 00 <?php /** * Footer promotion template. * * @since 1.8.0 * * @var string $title * @var array $links */ if ( ! defined( 'ABSPATH' ) ) { exit; } $links_count = count( $links ); ?> <div class="wpforms-footer-promotion"> <p><?php echo esc_html( $title ); ?></p> <ul class="wpforms-footer-promotion-links"> <?php foreach ( $links as $key => $item ) : ?> <li> <?php $attributes = [ 'href' => esc_url( $item['url'] ), 'target' => isset( $item['target'] ) ? $item['target'] : false, 'rel' => isset( $item['target'] ) ? 'noopener noreferrer' : false, ]; printf( '<a %1s>%2$s</a>%3$s', wpforms_html_attributes( '', [], [], $attributes, false ), esc_html( $item['text'] ), $links_count === $key + 1 ? '' : '<span>/</span>' ); ?> </li> <?php endforeach; ?> </ul> <ul class="wpforms-footer-promotion-social"> <li> <a href="https://www.facebook.com/wpforms" target="_blank" rel="noopener noreferrer"> <svg width="16" height="16" aria-hidden="true"> <path fill="#A7AAAD" d="M16 8.05A8.02 8.02 0 0 0 8 0C3.58 0 0 3.6 0 8.05A8 8 0 0 0 6.74 16v-5.61H4.71V8.05h2.03V6.3c0-2.02 1.2-3.15 3-3.15.9 0 1.8.16 1.8.16v1.98h-1c-1 0-1.31.62-1.31 1.27v1.49h2.22l-.35 2.34H9.23V16A8.02 8.02 0 0 0 16 8.05Z"/> </svg> <span class="screen-reader-text"><?php echo esc_html( 'Facebook' ); ?></span> </a> </li> <li> <a href="https://www.instagram.com/wpforms/" target="_blank" rel="noopener noreferrer"> <svg width="16" height="16" aria-hidden="true"> <path fill="#A7AAAD" d="M8.016 4.39c-2 0-3.594 1.626-3.594 3.594 0 2 1.594 3.594 3.594 3.594a3.594 3.594 0 0 0 3.593-3.594c0-1.968-1.625-3.593-3.593-3.593Zm0 5.938a2.34 2.34 0 0 1-2.344-2.344c0-1.28 1.031-2.312 2.344-2.312a2.307 2.307 0 0 1 2.312 2.312c0 1.313-1.031 2.344-2.312 2.344Zm4.562-6.062a.84.84 0 0 0-.844-.844.84.84 0 0 0-.843.844.84.84 0 0 0 .843.843.84.84 0 0 0 .844-.843Zm2.375.843c-.062-1.125-.312-2.125-1.125-2.937-.812-.813-1.812-1.063-2.937-1.125-1.157-.063-4.625-.063-5.782 0-1.125.062-2.093.312-2.937 1.125-.813.812-1.063 1.812-1.125 2.937-.063 1.157-.063 4.625 0 5.782.062 1.125.312 2.093 1.125 2.937.844.813 1.812 1.063 2.937 1.125 1.157.063 4.625.063 5.782 0 1.125-.062 2.125-.312 2.937-1.125.813-.844 1.063-1.812 1.125-2.937.063-1.157.063-4.625 0-5.782Zm-1.5 7c-.219.625-.719 1.094-1.312 1.344-.938.375-3.125.281-4.125.281-1.032 0-3.22.094-4.125-.28a2.37 2.37 0 0 1-1.344-1.345c-.375-.906-.281-3.093-.281-4.125 0-1-.094-3.187.28-4.125a2.41 2.41 0 0 1 1.345-1.312c.906-.375 3.093-.281 4.125-.281 1 0 3.187-.094 4.125.28.593.22 1.062.72 1.312 1.313.375.938.281 3.125.281 4.125 0 1.032.094 3.22-.28 4.125Z"/> </svg> <span class="screen-reader-text"><?php echo esc_html( 'Instagram' ); ?></span> </a> </li> <li> <a href="https://www.linkedin.com/company/wpforms/" target="_blank" rel="noopener noreferrer"> <svg width="16" height="16" aria-hidden="true"> <path fill="#A7AAAD" d="M14 1H1.97C1.44 1 1 1.47 1 2.03V14c0 .56.44 1 .97 1H14a1 1 0 0 0 1-1V2.03C15 1.47 14.53 1 14 1ZM5.22 13H3.16V6.34h2.06V13ZM4.19 5.4a1.2 1.2 0 0 1-1.22-1.18C2.97 3.56 3.5 3 4.19 3c.65 0 1.18.56 1.18 1.22 0 .66-.53 1.19-1.18 1.19ZM13 13h-2.1V9.75C10.9 9 10.9 8 9.85 8c-1.1 0-1.25.84-1.25 1.72V13H6.53V6.34H8.5v.91h.03a2.2 2.2 0 0 1 1.97-1.1c2.1 0 2.5 1.41 2.5 3.2V13Z"/> </svg> <span class="screen-reader-text"><?php echo esc_html( 'LinkedIn' ); ?></span> </a> </li> <li> <a href="https://x.com/easywpforms" target="_blank" rel="noopener noreferrer"> <svg width="16" height="16" aria-hidden="true" viewBox="0 0 512 512"> <path fill="#A7AAAD" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/> </svg> <span class="screen-reader-text"><?php echo esc_html( 'X' ); ?></span> </a> </li> <li> <a href="https://www.youtube.com/c/Wpformsplugin" target="_blank" rel="noopener noreferrer"> <svg width="17" height="16" aria-hidden="true"> <path fill="#A7AAAD" d="M16.63 3.9a2.12 2.12 0 0 0-1.5-1.52C13.8 2 8.53 2 8.53 2s-5.32 0-6.66.38c-.71.18-1.3.78-1.49 1.53C0 5.2 0 8.03 0 8.03s0 2.78.37 4.13c.19.75.78 1.3 1.5 1.5C3.2 14 8.51 14 8.51 14s5.28 0 6.62-.34c.71-.2 1.3-.75 1.49-1.5.37-1.35.37-4.13.37-4.13s0-2.81-.37-4.12Zm-9.85 6.66V5.5l4.4 2.53-4.4 2.53Z"/> </svg> <span class="screen-reader-text"><?php echo esc_html( 'YouTube' ); ?></span> </a> </li> </ul> </div> templates/admin/empty-states/payments/no-payments.php 0000644 00000003000 15174671622 0017120 0 ustar 00 <?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> templates/admin/empty-states/payments/get-started.php 0000644 00000003105 15174671622 0017077 0 ustar 00 <?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> templates/admin/empty-states/no-forms.php 0000644 00000002664 15174671622 0014565 0 ustar 00 <?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> templates/admin/empty-states/no-user-templates.php 0000644 00000002405 15174671622 0016402 0 ustar 00 <?php /** * User Templates Empty State Template. * * @since 1.8.8 */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-admin-empty-state-container wpforms-admin-no-user-templates"> <h2 class="waving-hand-emoji"> <?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?> </h2> <h4><?php esc_html_e( 'Did you know you can save your forms as reusable templates?', 'wpforms-lite' ); ?></h4> <p><?php esc_html_e( 'Save your custom forms to the templates library for quick and easy use.', 'wpforms-lite' ); ?></p> <img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/no-user-templates.png' ); ?>" alt=""> <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" rel="noopener noreferrer" target="_blank">documentation</a>.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], ] ), esc_url( wpforms_utm_link( 'https://wpforms.com/docs/how-to-create-a-custom-form-template/', wpforms_is_admin_page( 'builder' ) ? 'builder-templates' : 'Form Templates Subpage', 'User Templates Documentation' ) ) ); ?> </p> </div> templates/admin/notifications.php 0000644 00000003565 15174671622 0013240 0 ustar 00 <?php /** * Admin Notifications template. * * @since 1.7.5 * * @var array $notifications */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="wpforms-notifications"> <div class="wpforms-notifications-header"> <div class="wpforms-notifications-bell"> <svg width="15" height="17" aria-hidden="true"> <path d="M7.68 16.56c1.14 0 2.04-.95 2.04-2.17h-4.1c0 1.22.9 2.17 2.06 2.17Zm6.96-5.06c-.62-.71-1.81-1.76-1.81-5.26A5.32 5.32 0 0 0 8.69.97H6.65A5.32 5.32 0 0 0 2.5 6.24c0 3.5-1.2 4.55-1.81 5.26a.9.9 0 0 0-.26.72c0 .57.39 1.08 1.04 1.08h12.38c.65 0 1.04-.5 1.07-1.08 0-.24-.1-.51-.3-.72Z"/> </svg> <span class="wpforms-notifications-circle"></span> </div> <div class="wpforms-notifications-title"><?php esc_html_e( 'Notifications', 'wpforms-lite' ); ?></div> </div> <div class="wpforms-notifications-body"> <a class="dismiss" title="<?php esc_attr_e( 'Dismiss this message', 'wpforms-lite' ); ?>"> <svg viewBox="0 0 512 512" aria-hidden="true"> <path d="M256 8a248 248 0 1 0 0 496 248 248 0 0 0 0-496zm122 313c4 5 4 12 0 17l-40 40c-5 4-12 4-17 0l-65-66-65 66c-5 4-12 4-17 0l-40-40c-4-5-4-12 0-17l66-65-66-65c-4-5-4-12 0-17l40-40c5-4 12-4 17 0l65 66 65-66c5-4 12-4 17 0l40 40c4 5 4 12 0 17l-66 65 66 65z"/> </svg> </a> <?php if ( (int) $notifications['count'] > 1 ) : ?> <div class="navigation"> <a class="prev"> <span class="screen-reader-text"><?php esc_attr_e( 'Previous message', 'wpforms-lite' ); ?></span> <span aria-hidden="true">‹</span> </a> <a class="next"> <span class="screen-reader-text"><?php esc_attr_e( 'Next message', 'wpforms-lite' ); ?></span> <span aria-hidden="true">›</span> </a> </div> <?php endif; ?> <div class="wpforms-notifications-messages"> <?php echo $notifications['html']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> </div> </div> templates/admin/challenge/modal.php 0000644 00000006613 15174671622 0013402 0 ustar 00 <?php /** * Challenge main modal window template. * * @since 1.6.2 * * @var string $state * @var integer $step * @var integer $minutes */ if ( ! \defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-challenge <?php echo 'start' === $state ? 'wpforms-challenge-start' : ''; ?>" data-wpforms-challenge-saved-step="<?php echo absint( $step ); ?>"> <div class="wpforms-challenge-list-block"> <i class="list-block-button toggle-list" title="<?php esc_attr_e( 'Toggle list', 'wpforms-lite' ); ?>"></i> <i class="list-block-button challenge-skip" title="<?php esc_attr_e( 'Skip challenge', 'wpforms-lite' ); ?>" data-cancel-title="<?php esc_attr_e( 'Cancel challenge', 'wpforms-lite' ); ?>"></i> <p> <?php echo wp_kses( sprintf( /* translators: %1$d - number of minutes, %2$s - singular or plural form of 'minute'. */ __( 'Complete the <b>WPForms Challenge</b> and get up and running within %1$d %2$s.', 'wpforms-lite' ), absint( $minutes ), _n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' ) ), [ 'b' => [] ] ); ?> </p> <ul class="wpforms-challenge-list"> <li class="wpforms-challenge-step1-item"><span></span><?php esc_html_e( 'Name Your Form', 'wpforms-lite' ); ?></li> <li class="wpforms-challenge-step2-item"><span></span><?php esc_html_e( 'Select a Template', 'wpforms-lite' ); ?></li> <li class="wpforms-challenge-step3-item"><span></span><?php esc_html_e( 'Add Fields to Your Form', 'wpforms-lite' ); ?></li> <li class="wpforms-challenge-step4-item"><span></span><?php esc_html_e( 'Check Notifications', 'wpforms-lite' ); ?></li> <li class="wpforms-challenge-step5-item"><span></span><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></li> <li class="wpforms-challenge-completed"><span></span><?php esc_html_e( 'Challenge Complete', 'wpforms-lite' ); ?></li> </ul> </div> <div class="wpforms-challenge-bar" style="display:none"> <div></div> </div> <div class="wpforms-challenge-block-timer"> <img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/challenge/sullie-circle.png' ); ?>" alt="<?php esc_html_e( 'Sullie the WPForms mascot', 'wpforms-lite' ); ?>"> <div> <h3><?php esc_html_e( 'WPForms Challenge', 'wpforms-lite' ); ?></h3> <p> <?php printf( /* translators: %s - minutes in 2:00 format. */ esc_html__( '%s remaining', 'wpforms-lite' ), '<span id="wpforms-challenge-timer">' . absint( $minutes ) . ':00</span>' ); ?> </p> </div> </div> <div class="wpforms-challenge-block-under-timer"> <?php if ( 'start' === $state ) : ?> <a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder' ) ); ?>" class="wpforms-btn wpforms-btn-md wpforms-btn-orange wpforms-challenge-start"> <?php esc_html_e( 'Start Challenge', 'wpforms-lite' ); ?> </a> <?php elseif ( 'progress' === $state ) : ?> <button type="button" class="wpforms-btn wpforms-btn-md wpforms-btn-grey wpforms-challenge-pause"><?php esc_html_e( 'Pause', 'wpforms-lite' ); ?></button> <button type="button" class="wpforms-btn wpforms-btn-md wpforms-btn-orange wpforms-challenge-resume" style="display: none;"><?php esc_html_e( 'Continue', 'wpforms-lite' ); ?></button> <button type="button" class="wpforms-btn wpforms-btn-md wpforms-btn-orange wpforms-challenge-end" style="display: none;"><?php esc_html_e( 'End Challenge', 'wpforms-lite' ); ?></button> <?php endif; ?> </div> </div> templates/admin/challenge/builder.php 0000644 00000004070 15174671622 0013727 0 ustar 00 <?php /** * Challenge HTML template specific to Form Builder. * * @since 1.6.2 */ if ( ! \defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-challenge-tooltips"> <div id="tooltip-content1"> <h3><?php esc_html_e( 'Name Your Form', 'wpforms-lite' ); ?></h3> <p><?php esc_html_e( 'Give your form a name so you can easily identify it.', 'wpforms-lite' ); ?></p> <button type="button" class="wpforms-challenge-step1-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button> </div> <div id="tooltip-content2"> <h3><?php esc_html_e( 'Select a Template', 'wpforms-lite' ); ?></h3> <p><?php esc_html_e( 'Build your form from scratch or use one of our pre-made templates.', 'wpforms-lite' ); ?></p> </div> <div id="tooltip-content3"> <p><?php esc_html_e( 'You can add additional fields to your form, if you need them.', 'wpforms-lite' ); ?></p> <button type="button" class="wpforms-challenge-step3-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button> </div> <div id="tooltip-content4"> <h3><?php esc_html_e( 'Check Notification Settings', 'wpforms-lite' ); ?></h3> <p><?php esc_html_e( 'The default notification settings might be sufficient, but double‑check to be sure.', 'wpforms-lite' ); ?></p> <button type="button" class="wpforms-challenge-step4-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button> </div> </div> <div class="wpforms-challenge-popup-container"> <div id="wpforms-challenge-welcome-builder-popup" class="wpforms-challenge-popup wpforms-challenge-popup-plain"> <div class="wpforms-challenge-popup-content"> <h3><?php esc_html_e( 'Welcome to the Form Builder', 'wpforms-lite' ); ?></h3> <p><?php esc_html_e( 'Our form builder is a full-screen, distraction-free experience where you manage your forms. The following steps will walk you through essential areas.', 'wpforms-lite' ); ?></p> <button type="button" class="wpforms-challenge-popup-btn"><?php esc_html_e( 'Let’s Go!', 'wpforms-lite' ); ?></button> </div> </div> </div> templates/admin/challenge/embed.php 0000644 00000012053 15174671622 0013355 0 ustar 00 <?php /** * Challenge HTML template specific to form embed page. * * @since 1.6.2 * * @var int $minutes * @var string $congrats_popup_footer Congrats popup footer HTML. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-challenge-tooltips"> <div id="tooltip-content5"> <?php if ( wpforms_is_gutenberg_active() ) : // Gutenberg content. ?> <h3><?php esc_html_e( 'Add a Block', 'wpforms-lite' ); ?></h3> <p> <?php printf( wp_kses( /* translators: %s - link to the WPForms documentation page. */ __( 'Click the plus button, search for WPForms, click the block to<br>embed it. <a href="%s" target="_blank" rel="noopener noreferrer">Learn More</a>', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], 'br' => [], ] ), esc_url( wpforms_utm_link( 'https://wpforms.com/docs/creating-first-form/#display-form', 'WPForms Challenge Block', 'Add A Block' ) ) ); ?> </p> <i class="wpforms-challenge-tooltips-red-arrow"></i> <?php else : ?> <h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3> <p><?php esc_html_e( 'Click the “Add Form” button, select your form, then add the embed code.', 'wpforms-lite' ); ?></p> <?php endif; ?> <button type="button" class="wpforms-challenge-step5-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button> </div> </div> <div class="wpforms-challenge-popup-container"> <div id="wpforms-challenge-congrats-popup" class="wpforms-challenge-popup wpforms-challenge-popup-congrats"> <i class="wpforms-challenge-popup-close fa fa-times-circle fa-lg"></i> <div class="wpforms-challenge-popup-content"> <h3> <?php esc_html_e( 'Congrats, You Did It!', 'wpforms-lite' ); ?> <img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/challenge/party-popper.png' ); ?>" alt=""> </h3> <p> <?php echo wp_kses( sprintf( /* translators: %1$s - number of minutes in HTML container, %2$s - singular or plural form of 'minute', %3$s - number of seconds in HTML container, %4$s - singular or plural form of 'second', %5$s - 5 rating star symbols HTML. */ __( 'You completed the WPForms Challenge in <b>%1$s %2$s %3$s %4$s</b>. Share your success story with other WPForms users and help us spread the word <b>by giving WPForms a 5-star rating (%5$s) on WordPress.org</b>. Thanks for your support and we look forward to bringing you more awesome features.', 'wpforms-lite' ), '<span id="wpforms-challenge-congrats-minutes"></span>', _n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' ), '<span id="wpforms-challenge-congrats-seconds"></span>', _n( 'second', 'seconds', absint( $minutes ), 'wpforms-lite' ), '<span class="rating-stars"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></span>' ), [ 'span' => [ 'id' => [], 'class' => [], ], 'b' => [], 'i' => [ 'class' => [], ], ] ); ?> </p> <a href="<?php echo wpforms_wp_org_review_link(); ?>" class="wpforms-challenge-popup-btn wpforms-challenge-popup-rate-btn" target="_blank" rel="noopener"> <?php esc_html_e( 'Rate WPForms on WordPress.org', 'wpforms-lite' ); ?> <span class="dashicons dashicons-external"></span> </a> </div> <?php echo $congrats_popup_footer; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> <div id="wpforms-challenge-contact-popup" class="wpforms-challenge-popup"> <div class="wpforms-challenge-popup-header wpforms-challenge-popup-header-contact"> <i class="wpforms-challenge-popup-close fa fa-times-circle fa-lg"></i> </div> <div class="wpforms-challenge-popup-content"> <form id="wpforms-challenge-contact-form"> <h3><?php esc_html_e( 'Do you need more help?', 'wpforms-lite' ); ?></h3> <p> <?php echo wp_kses( sprintf( /* translators: %1$d - number of minutes, %2$s - singular or plural form of 'minute'. */ __( 'We\'re sorry that it took longer than %1$d %2$s to publish your form. Our goal is to create the most beginner-friendly WordPress form plugin.<br>How can we help you to be successful? Please send us your feedback. Our support team is standing by to help.', 'wpforms-lite' ), absint( $minutes ), _n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' ) ), [ 'br' => [] ] ); ?> </p> <textarea class="wpforms-challenge-contact-message"></textarea> <?php if ( ! wpforms()->is_pro() ) { ?> <label> <input type="checkbox" class="wpforms-challenge-contact-permission"><?php esc_html_e( 'Yes, I give WPForms permission to contact me for any follow up questions.', 'wpforms-lite' ); ?> </label> <?php } ?> <button type="submit" class="wpforms-challenge-popup-btn wpforms-challenge-popup-contact-btn"><?php esc_html_e( 'Submit Feedback', 'wpforms-lite' ); ?></button> </form> </div> </div> </div> templates/admin/challenge/welcome.php 0000644 00000001312 15174671622 0013730 0 ustar 00 <?php /** * Challenge CTA on WPForms welcome activation screen HTML template. * * @since 1.6.2 */ if ( ! \defined( 'ABSPATH' ) ) { exit; } ?> <div class="challenge"> <div class="block"> <h1><?php esc_html_e( 'Take the WPForms Challenge', 'wpforms-lite' ); ?></h1> <h6><?php esc_html_e( 'Create your first form with our guided setup wizard in less than 5 minutes to experience the WPForms difference.', 'wpforms-lite' ); ?></h6> <div class="button-wrap"> <a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder' ) ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange"> <?php esc_html_e( 'Start the WPForms Challenge', 'wpforms-lite' ); ?> </a> </div> </div> </div> templates/admin/form-embed-wizard/tooltip.php 0000644 00000002510 15174671622 0015361 0 ustar 00 <?php /** * Form Embed Wizard. * Embed page tooltip HTML template. * * @since 1.6.2 */ if ( ! \defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-admin-form-embed-wizard-tooltip"> <div id="wpforms-admin-form-embed-wizard-tooltip-content"> <?php if ( wpforms_is_gutenberg_active() ) : // Gutenberg content. ?> <h3><?php esc_html_e( 'Add a Block', 'wpforms-lite' ); ?></h3> <p> <?php printf( wp_kses( /* translators: %s - link to the WPForms documentation page. */ __( 'Click the plus button, search for WPForms, click the block to<br>embed it. <a href="%s" target="_blank" rel="noopener noreferrer">Learn More</a>', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'rel' => [], 'target' => [], ], 'br' => [], ] ), 'https://wpforms.com/docs/creating-first-form/#display-form' ); ?> </p> <i class="wpforms-admin-form-embed-wizard-tooltips-red-arrow"></i> <?php else : ?> <h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3> <p><?php esc_html_e( 'Click the “Add Form” button, select your form, then add the embed code.', 'wpforms-lite' ); ?></p> <?php endif; ?> <button type="button" class="wpforms-admin-form-embed-wizard-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button> </div> </div> templates/admin/form-embed-wizard/popup.php 0000644 00000010721 15174671622 0015035 0 ustar 00 <?php /** * Form Embed Wizard. * Embed popup HTML template. * * @since 1.6.2 */ if ( ! \defined( 'ABSPATH' ) ) { exit; } $pages_exists = ! empty( $args['dropdown_pages'] ) ? 1 : 0; ?> <div id="wpforms-admin-form-embed-wizard-container" class="wpforms-admin-popup-container"> <div id="wpforms-admin-form-embed-wizard" class="wpforms-admin-popup" data-pages-exists="<?php echo esc_attr( $pages_exists ); ?>"> <div class="wpforms-admin-popup-content"> <h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3> <div id="wpforms-admin-form-embed-wizard-content-initial"> <p class="no-gap"><b><?php esc_html_e( 'We can help embed your form with just a few clicks!', 'wpforms-lite' ); ?></b></p> <?php if ( ! empty( $args['user_can_edit_pages'] ) ) : ?> <p><?php esc_html_e( 'Would you like to embed your form in an existing page, or create a new one?', 'wpforms-lite' ); ?></p> <?php endif; ?> </div> <?php if ( ! empty( $args['user_can_edit_pages'] ) ) : ?> <div id="wpforms-admin-form-embed-wizard-content-select-page" style="display: none;"> <p><?php esc_html_e( 'Select the page you would like to embed your form in.', 'wpforms-lite' ); ?></p> </div> <div id="wpforms-admin-form-embed-wizard-content-create-page" style="display: none;"> <p><?php esc_html_e( 'What would you like to call the new page?', 'wpforms-lite' ); ?></p> </div> <div id="wpforms-admin-form-embed-wizard-section-btns" class="wpforms-admin-popup-bottom"> <button type="button" data-action="select-page" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Select Existing Page', 'wpforms-lite' ); ?></button> <button type="button" data-action="create-page" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Create New Page', 'wpforms-lite' ); ?></button> </div> <div id="wpforms-admin-form-embed-wizard-section-go" class="wpforms-admin-popup-bottom wpforms-admin-popup-flex" style="display: none;"> <?php echo $args['dropdown_pages']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> <input type="text" id="wpforms-admin-form-embed-wizard-new-page-title" value="" placeholder="<?php esc_attr_e( 'Name Your Page', 'wpforms-lite' ); ?>"> <button type="button" data-action="go" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Let’s Go!', 'wpforms-lite' ); ?></button> </div> <?php endif; ?> <div id="wpforms-admin-form-embed-wizard-section-toggles" class="wpforms-admin-popup-bottom"> <p class="secondary"> <?php $allowed_tags = [ 'a' => [ 'href' => [], 'class' => [], ], ]; if ( ! empty( $args['user_can_edit_pages'] ) ) { printf( wp_kses( /* translators: %1$s - video tutorial toggle CSS classes, %2$s - shortcode toggle CSS classes. */ __( 'You can also <a href="#" class="%1$s">embed your form manually</a> or <a href="#" class="%2$s">use a shortcode</a>', 'wpforms-lite' ), $allowed_tags ), 'tutorial-toggle wpforms-admin-popup-toggle', 'shortcode-toggle wpforms-admin-popup-toggle' ); } else { printf( wp_kses( /* translators: %1$s - video tutorial toggle CSS classes, %2$s - shortcode toggle CSS classes. */ __( 'You can embed your form using the <a href="#" class="%1$s">WPForms block</a> or <a href="#" class="%2$s">a shortcode</a>.', 'wpforms-lite' ), $allowed_tags ), 'tutorial-toggle wpforms-admin-popup-toggle', 'shortcode-toggle wpforms-admin-popup-toggle' ); } ?> </p> <iframe style="display: none;" src="about:blank" frameborder="0" id="wpforms-admin-form-embed-wizard-tutorial" allowfullscreen width="450" height="256"></iframe> <div id="wpforms-admin-form-embed-wizard-shortcode-wrap" style="display: none;"> <input type="text" id="wpforms-admin-form-embed-wizard-shortcode" class="wpforms-admin-popup-shortcode" disabled /> <span id="wpforms-admin-form-embed-wizard-shortcode-copy" title="<?php esc_attr_e( 'Copy embed code to clipboard', 'wpforms-lite' ); ?>"> <i class="fa fa-files-o" aria-hidden="true"></i> </span> </div> </div> <div id="wpforms-admin-form-embed-wizard-section-goback" class="wpforms-admin-popup-bottom" style="display: none;"> <p class="secondary"> <a href="#" class="wpforms-admin-popup-toggle initialstate-toggle">« <?php esc_html_e( 'Go back', 'wpforms-lite' ); ?></a> </p> </div> </div> <i class="fa fa-times wpforms-admin-popup-close"></i> </div> </div> templates/admin/splash/header.php 0000644 00000000700 15174671622 0013075 0 ustar 00 <?php /** * What's New modal header. * * @since 1.8.7 * * @var string $title Header title. * @var string $image Logo URL. * @var string $description Header content. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <header> <img src="<?php echo esc_url( $image ); ?>" alt=""> <div class="wpforms-splash-header-content"> <h2> <?php echo esc_html( $title ); ?> </h2> <p><?php echo esc_html( $description ); ?></p> </div> </header> templates/admin/splash/modal.php 0000644 00000002550 15174671622 0012746 0 ustar 00 <?php /** * WPForms What's New modal template. * * @since 1.8.7 * * @var array $header Header data. * @var array $footer Footer data. * @var array $blocks Blocks data. * @var array $license License type. * @var string $update_url Update URL. * @var bool $display_notice Whether to display the notice. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <script type="text/html" id="tmpl-wpforms-splash-modal-content"> <div id="wpforms-splash-modal"> <?php //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_render( 'admin/splash/header', $header, true ); ?> <?php if ( $display_notice ) : ?> <div class="wpforms-splash-notice"> <p> <?php printf( '<a href="%1$s">%2$s</a> — %3$s', esc_url( $update_url ), esc_html__( 'Update WPForms', 'wpforms-lite' ), esc_html__( 'Awesome new features are waiting for you!', 'wpforms-lite' ) ); ?> </p> </div> <?php endif; ?> <main> <?php foreach ( $blocks as $section ) { //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_render( 'admin/splash/section', $section, true ); } ?> </main> <?php if ( $license === 'lite' ) { //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_render( 'admin/splash/footer', $footer, true ); } ?> </div> </script> templates/admin/splash/section.php 0000644 00000003056 15174671622 0013320 0 ustar 00 <?php /** * What's New modal section. * * @since 1.8.7 * * @var string $title Section title. * @var string $content Section content. * @var array $img Section image. * @var string $new Is new feature. * @var array $buttons Section buttons. * @var string $layout Section layout. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $classes = [ 'wpforms-splash-section', 'wpforms-splash-section-' . $layout, ]; ?> <section class="<?php echo wpforms_sanitize_classes( $classes, true ); ?>"> <div class="wpforms-splash-section-content"> <?php if ( ! empty( $new ) ) { printf( '<span class="wpforms-splash-badge">%s</span>', esc_html__( 'New Feature', 'wpforms-lite' ) ); } ?> <h3><?php echo esc_html( $title ); ?></h3> <p><?php echo wp_kses_post( $content ); ?></p> <?php if ( ! empty( $buttons ) ) : ?> <div class="wpforms-splash-section-buttons"> <?php foreach ( $buttons as $button_type => $button ) { $button_class = $button_type === 'main' ? 'wpforms-btn-orange' : 'wpforms-btn-bordered'; printf( '<a href="%1$s" class="wpforms-btn %3$s" target="_blank" rel="noopener noreferrer">%2$s</a>', esc_url( $button['url'] ), esc_html( $button['text'] ), esc_attr( $button_class ) ); } ?> </div> <?php endif; ?> </div> <?php if ( ! empty( $img ) ) : ?> <div class="wpforms-splash-section-image wpforms-image-shadow-<?php echo wpforms_sanitize_classes( $img['shadow'] ?? 'none' ); ?>"> <img src="<?php echo esc_url( $img['url'] ); ?>" alt=""> </div> <?php endif; ?> </section> templates/admin/splash/footer.php 0000644 00000001077 15174671622 0013153 0 ustar 00 <?php /** * What's New modal footer. * * @since 1.8.7 * * @var string $title Footer title. * @var string $description Footer content. * @var array $upgrade Upgrade link. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <footer> <div class="wpforms-splash-footer-content"> <h2><?php echo esc_html( $title ); ?></h2> <p><?php echo esc_html( $description ); ?></p> </div> <a href="<?php echo esc_url( $upgrade['url'] ); ?>" class="wpforms-btn wpforms-btn-green" target="_blank" rel="noopener noreferrer"><?php echo esc_html( $upgrade['text'] ); ?></a> </footer> templates/admin/payments/reset-filter-notice.php 0000644 00000002773 15174671622 0016113 0 ustar 00 <?php /** * Display reset filter notice above the payment table. * * @since 1.8.4 * * @var string $total Total number of payments. * @var array $applied_filters Applied filters. */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. // Leave early if no filters are applied. if ( empty( $applied_filters ) ) { return; } ?> <div id="wpforms-reset-filter" class="wpforms-reset-filter"> <?php printf( wp_kses( /* translators: %d - number of payments found. */ _n( 'Found <strong>%d payment</strong>', 'Found <strong>%d payments</strong>', $total, 'wpforms-lite' ), [ 'strong' => [], ] ), (int) $total ); $is_more_than_one_filter = count( $applied_filters ) > 1; $last_applied_filter = end( $applied_filters ); // Display applied filters in a safe way. foreach ( $applied_filters as $filter ) : // Skip empty filters with no results. if ( empty( $filter['results'] ) ) { continue; } echo wp_kses( $filter['results'], [ 'em' => [] ] ); ?> <a class="reset fa fa-times-circle" href="<?php echo esc_url( $filter['reset_url'] ); ?>" title="<?php esc_attr_e( 'Reset search', 'wpforms-lite' ); ?>" ></a> <?php // Add "and" after the first filter if there are more than one and not the last one. if ( $is_more_than_one_filter && $filter !== $last_applied_filter ) { esc_html_e( 'and', 'wpforms-lite' ); } endforeach; ?> </div> <?php /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ templates/admin/payments/tablenav-filter-multiselect.php 0000644 00000001744 15174671622 0017633 0 ustar 00 <?php /** * Display a multiselect field for filtering the payments overview table. * * @since 1.8.4 * * @var string $name Name of the select field. * @var array $options Select field options. * @var array $selected Array of selected options. * @var array $data_settings Data settings for the multiselect JS instance. */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. // Leave early if no filters are provided. if ( empty( $options ) ) { return ''; } ?> <select multiple class="wpforms-multiselect wpforms-hide" name="<?php echo esc_attr( $name ); ?>" placeholder="<?php echo esc_attr( $data_settings['i18n']['all'] ); ?>" data-settings="<?php echo esc_attr( wp_json_encode( $data_settings ) ); ?>" > <?php foreach ( $options as $key => $label ) : ?> <option value="<?php echo esc_attr( $key ); ?>" <?php selected( true, in_array( $key, $selected, true ) ); ?>> <?php echo esc_html( $label ); ?> </option> <?php endforeach; ?> </select> templates/admin/payments/reports.php 0000644 00000004277 15174671622 0013726 0 ustar 00 <?php /** * Payments overview reports (summary metrics). * i.e. Total Payments, Total Sales, etc. * * @since 1.8.2 * * @var string $current The active stat card upon page load. * @var array $statcards Payments report stat cards (clickable list-items). */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. // Bail early, if stat cards are empty or not assigned. if ( empty( $statcards ) ) { return; } ?> <div role="menu" class="wpforms-payments-overview-reports" aria-orientation="horizontal" aria-label="<?php esc_attr_e( 'Payments report indicators', 'wpforms-lite' ); ?>" aria-describedby="wpforms-payments-overview-reports-helptext"> <p id="wpforms-payments-overview-reports-helptext" class="screen-reader-text"> <?php esc_html_e( 'List of data points available for filtering. Click a data point for a detailed report.', 'wpforms-lite' ); ?> </p> <ul class="wpforms-payments-overview-reports-legend"> <?php foreach ( $statcards as $chart => $attributes ) : // Skip stat card, if it's not supposed to be displayed. if ( isset( $attributes['condition'] ) && ! $attributes['condition'] ) { continue; } $button_classes = ! empty( $attributes['button_classes'] ) ? (array) $attributes['button_classes'] : []; // To highlight the stats being displayed in the chart at the moment, identify the selected stat card. if ( $chart === $current ) { $button_classes[] = 'is-selected'; } ?> <li class="wpforms-payments-overview-reports-statcard"> <button class="<?php echo wpforms_sanitize_classes( $button_classes, true ); ?>" data-stats="<?php echo esc_attr( $chart ); ?>"> <span class="statcard-label"><?php echo esc_html( $attributes['label'] ); ?></span> <span class="statcard-value"><?php echo ! empty( $attributes['value'] ) ? esc_html( $attributes['value'] ) : '0'; ?></span> <span class="statcard-delta" role="presentation" title="<?php esc_attr_e( 'Comparison to previous period', 'wpforms-lite' ); ?>"><?php echo ! empty( $attributes['delta'] ) ? (int) $attributes['delta'] : ''; ?></span> </button> </li> <?php endforeach; ?> </ul> </div> <?php /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ templates/admin/payments/tablenav-filters.php 0000644 00000001545 15174671622 0015465 0 ustar 00 <?php /** * Display extra filters for the payment table. * * @since 1.8.4 * * @var string $filters Tablenav filters. */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. // Leave early if no filters are provided. if ( empty( $filters ) ) { return; } // Allowed HTML tags, and attributes for the filters. $allowed_filters_attributes = [ 'select' => [ 'name' => [], 'class' => [], 'multiple' => [], 'placeholder' => [], 'data-settings' => [], ], 'option' => [ 'value' => [], 'selected' => [], ], ]; ?> <div class="wpforms-tablenav-filters"> <?php echo wp_kses( $filters, $allowed_filters_attributes ); ?> <input type="submit" class="button" value="<?php esc_attr_e( 'Filter', 'wpforms-lite' ); ?>"> </div> <?php /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ templates/admin/payments/mode-toggle.php 0000644 00000001312 15174671622 0014416 0 ustar 00 <?php /** * Payments Overview Mode Toggle template. * * @since 1.8.2 * * @var string $mode Current mode (live or test). */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. ?> <span id="wpforms-payments-overview-mode-toggle" class="wpforms-toggle-control"> <input type="checkbox" id="wpforms-payments-mode-toggle" name="wpforms-payments-mode-toggle" value="1" <?php checked( $mode, 'test' ); ?>> <label class="wpforms-toggle-control-icon" for="wpforms-payments-mode-toggle"></label> <label for="wpforms-payments-mode-toggle" aria-label="<?php esc_attr_e( 'Toggle between live and test data', 'wpforms-lite' ); ?>" > <?php esc_html_e( 'Test Data', 'wpforms-lite' ); ?> </label> </span> templates/admin/payments/single/advanced-details.php 0000644 00000002061 15174671622 0016666 0 ustar 00 <?php /** * Single Payment page - Advanced details template. * * @since 1.8.2 * * @var array $details_list Details list. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="wpforms-payment-advanced-info" class="postbox"> <div class="postbox-header"> <h2 class="hndle"> <span><?php echo esc_html__( 'Advanced Details', 'wpforms-lite' ); ?></span> </h2> </div> <div class="inside"> <?php foreach ( $details_list as $item ) : ?> <div class="wpforms-payment-advanced-item" > <p class="wpforms-payment-advanced-item-label"> <?php echo esc_html( $item['label'] ); ?> </p> <div class="wpforms-payment-advanced-item-value"> <?php if ( isset( $item['link'] ) ) : ?> <a href="<?php echo esc_url( $item['link'] ); ?>" target="_blank" rel="noopener noreferrer" class="wpforms-link"> <?php endif; ?> <?php echo wp_kses_post( nl2br( make_clickable( $item['value'] ) ) ); ?> <?php if ( isset( $item['link'] ) ) : ?> </a> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> </div> templates/admin/payments/single/field.php 0000644 00000001045 15174671622 0014562 0 ustar 00 <?php /** * Single Payment page - Payment entry field template. * * @since 1.8.9 * * @var array $field Field data. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wpforms-payment-entry-field <?php echo wpforms_sanitize_classes( $field['field_class'] ); ?>" > <p class="wpforms-payment-entry-field-name"> <?php echo esc_html( wp_strip_all_tags( $field['field_name'] ) ); ?> </p> <div class="wpforms-payment-entry-field-value"> <?php echo wp_kses_post( nl2br( make_clickable( $field['field_value'] ) ) ); ?> </div> </div>