dvadf
File manager - Edit - /home/centroca/public_html/templates.tar
Back
admin/promotion.php 0000644 00000010633 15252502526 0010402 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> admin/pages/constant-contact.php 0000644 00000015017 15252502526 0012736 0 ustar 00 <?php /** * Constant Contact page template. * * @var string $sign_up_link Sign up link. * @var string $wpbeginners_guide_link Link to a WPBeginners blog post. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="wrap wpforms-admin-wrap wpforms-constant-contact-wrap"> <h1 class="page-title"><?php esc_html_e( 'Constant Contact', 'wpforms-lite' ); ?></h1> <div class="wpforms-admin-content"> <h2><?php esc_html_e( 'Grow Your Website with WPForms + Email Marketing', 'wpforms-lite' ); ?></h2> <p><?php esc_html_e( 'Wondering if email marketing is really worth your time?', 'wpforms-lite' ); ?></p> <p> <?php echo wp_kses( __( 'Email is hands-down the most effective way to nurture leads and turn them into customers, with a return on investment (ROI) of <strong>$44 back for every $1 spent</strong> according to DMA.', 'wpforms-lite' ), [ 'strong' => [] ] ); ?> </p> <p><?php esc_html_e( 'Here are 3 big reasons why every smart business in the world has an email list:', 'wpforms-lite' ); ?></p> <a href="<?php echo esc_url( $sign_up_link ); ?>" target="_blank" rel="noopener noreferrer" class="logo-link"> <?php printf( '<img src="%s" srcset="%s 2x" alt="" class="logo">', esc_url( WPFORMS_PLUGIN_URL . 'assets/images/constant-contact/cc-about-logo.png' ), esc_url( WPFORMS_PLUGIN_URL . 'assets/images/constant-contact/cc-about-logo@2x.png' ) ); ?> </a> <ol class="reasons"> <li> <?php echo wp_kses( __( '<strong>Email is still #1</strong> - At least 91% of consumers check their email on a daily basis. You get direct access to your subscribers, without having to play by social media\'s rules and algorithms.', 'wpforms-lite' ), [ 'strong' => [] ] ); ?> </li> <li> <?php echo wp_kses( __( '<strong>You own your email list</strong> - Unlike with social media, your list is your property and no one can revoke your access to it.', 'wpforms-lite' ), [ 'strong' => [] ] ); ?> </li> <li> <?php echo wp_kses( __( '<strong>Email converts</strong> - People who buy products marketed through email spend 138% more than those who don\'t receive email offers.', 'wpforms-lite' ), [ 'strong' => [] ] ); ?> </li> </ol> <p><?php esc_html_e( 'That\'s why it\'s crucial to start collecting email addresses and building your list as soon as possible.', 'wpforms-lite' ); ?></p> <p> <?php echo sprintf( wp_kses( /* translators: %s - WPBeginners.com Guide to Email Lists URL. */ __( 'For more details, see this guide on <a href="%s" target="_blank" rel="noopener noreferrer">why building your email list is so important</a>.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'target' => [], 'rel' => [], ], ] ), esc_url( $wpbeginners_guide_link ) ); ?> </p> <hr/> <h2><?php esc_html_e( 'You\'ve Already Started - Here\'s the Next Step (It\'s Easy)', 'wpforms-lite' ); ?></h2> <p><?php esc_html_e( 'Here are the 3 things you need to build an email list:', 'wpforms-lite' ); ?></p> <ol> <li><?php esc_html_e( 'A Website or Blog', 'wpforms-lite' ); ?> <span class="dashicons dashicons-yes"></span></li> <li><?php esc_html_e( 'High-Converting Form Builder', 'wpforms-lite' ); ?> <span class="dashicons dashicons-yes"></span></li> <li class="bold-marker"><strong><?php esc_html_e( 'The Best Email Marketing Service', 'wpforms-lite' ); ?></strong></li> </ol> <p><?php esc_html_e( 'With a powerful email marketing service like Constant Contact, you can instantly send out mass notifications and beautifully designed newsletters to engage your subscribers.', 'wpforms-lite' ); ?></p> <p> <a href="<?php echo esc_url( $sign_up_link ); ?>" class="button" target="_blank" rel="noopener noreferrer"> <?php esc_html_e( 'Get Started with Constant Contact for Free', 'wpforms-lite' ); ?> </a> </p> <p><?php esc_html_e( 'WPForms plugin makes it fast and easy to capture all kinds of visitor information right from your WordPress site - even if you don\'t have a Constant Contact account.', 'wpforms-lite' ); ?></p> <p><?php esc_html_e( 'But when you combine WPForms with Constant Contact, you can nurture your contacts and engage with them even after they leave your website. When you use Constant Contact + WPForms together, you can:', 'wpforms-lite' ); ?></p> <ul> <li><?php esc_html_e( 'Seamlessly add new contacts to your email list', 'wpforms-lite' ); ?></li> <li><?php esc_html_e( 'Create and send professional email newsletters', 'wpforms-lite' ); ?></li> <li><?php esc_html_e( 'Get expert marketing and support', 'wpforms-lite' ); ?></li> </ul> <p> <a href="<?php echo esc_url( $sign_up_link ); ?>" target="_blank" rel="noopener noreferrer"> <strong><?php esc_html_e( 'Try Constant Contact Today', 'wpforms-lite' ); ?></strong> </a> </p> <hr/> <h2><?php esc_html_e( 'WPForms Makes List Building Easy', 'wpforms-lite' ); ?></h2> <p><?php esc_html_e( 'When creating WPForms, our goal was to make a WordPress forms plugin that\'s both EASY and POWERFUL.', 'wpforms-lite' ); ?></p> <p><?php esc_html_e( 'We made the form creation process extremely intuitive, so you can create a form to start capturing emails within 5 minutes or less.', 'wpforms-lite' ); ?></p> <p><?php esc_html_e( 'Here\'s how it works.', 'wpforms-lite' ); ?></p> <div class="steps"> <?php foreach ( [ esc_html__( 'Select from our pre-built templates, or create a form from scratch.', 'wpforms-lite' ), esc_html__( 'Drag and drop any field you want onto your signup form.', 'wpforms-lite' ), esc_html__( 'Connect your Constant Contact email list.', 'wpforms-lite' ), esc_html__( 'Add your new form to any post, page, or sidebar.', 'wpforms-lite' ), ] as $index => $item ) { ++ $index; ?> <figure class="step"> <?php printf( '<div class="step-image-wrapper"><img src="%1$s" alt=""><a href="%1$s" class="hover" data-lity></a></div><figcaption>%2$d. %3$s</figcaption>', esc_url( WPFORMS_PLUGIN_URL . 'assets/images/constant-contact/cc-about-step' . $index . '.png' ), absint( $index ), esc_html( $item ) ); ?> </figure> <?php } ?> </div> <p><?php esc_html_e( 'It doesn\'t matter what kind of business you run, what kind of website you have, or what industry you are in - you need to start building your email list today.', 'wpforms-lite' ); ?></p> <p><strong><?php esc_html_e( 'With Constant Contact + WPForms, growing your list is easy.', 'wpforms-lite' ); ?></strong></p> </div> </div> admin/form-embed-wizard/tooltip.php 0000644 00000002510 15252502526 0013354 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> admin/form-embed-wizard/partials/action-card.php 0000644 00000002446 15252502526 0015675 0 ustar 00 <?php /** * Form Embed Wizard. * Action card partial template. * * @since 1.10.1 * * @var array $args { * Template arguments. * * @type string $action Data action attribute value. * @type string $icon Font Awesome icon class. * @type string $title Card title. * @type string $description Card description. * } */ if ( ! defined( 'ABSPATH' ) ) { exit; } $card_action = $args['action'] ?? ''; $card_icon = $args['icon'] ?? ''; $card_title = $args['title'] ?? ''; $card_description = $args['description'] ?? ''; ?> <button type="button" class="wpforms-admin-form-embed-wizard-card wpforms-admin-form-embed-wizard-card-action" data-action="<?php echo esc_attr( $card_action ); ?>"> <span class="wpforms-admin-form-embed-wizard-card-icon"> <i class="fa <?php echo esc_attr( $card_icon ); ?>" aria-hidden="true"></i> </span> <span class="wpforms-admin-form-embed-wizard-card-text"> <span class="wpforms-admin-form-embed-wizard-card-title"><?php echo esc_html( $card_title ); ?></span> <span class="wpforms-admin-form-embed-wizard-card-desc"><?php echo esc_html( $card_description ); ?></span> </span> <span class="wpforms-admin-form-embed-wizard-card-chevron" aria-hidden="true"> <i class="fa fa-chevron-right"></i> </span> </button> admin/form-embed-wizard/partials/education-card.php 0000644 00000004534 15252502526 0016373 0 ustar 00 <?php /** * Form Embed Wizard. * Education card partial template. * * @since 1.10.1 * * @var array $args { * Template arguments. * * @type array $item Education item data (slug, label, description, icon, button_attrs, upgrade_url, demo_url). * @type bool $is_lite Whether the current install is Lite. * } */ if ( ! defined( 'ABSPATH' ) ) { exit; } $item = $args['item'] ?? []; $is_lite = ! empty( $args['is_lite'] ); if ( empty( $item ) ) { return; } $button_attrs = $item['button_attrs'] ?? []; $class = $button_attrs['class'] ?? ''; $data = $button_attrs['data'] ?? []; $icon = $item['icon'] ?? ''; $label = $item['label'] ?? ''; $description = $item['description'] ?? ''; ?> <button type="button" class="wpforms-admin-form-embed-wizard-card wpforms-admin-form-embed-wizard-card-education <?php echo esc_attr( $class ); ?>" <?php foreach ( $data as $attr_name => $attr_value ) : ?> data-<?php echo esc_attr( $attr_name ); ?>="<?php echo esc_attr( $attr_value ); ?>" <?php endforeach; ?>> <span class="wpforms-admin-form-embed-wizard-card-icon"> <i class="fa <?php echo esc_attr( $icon ); ?>" aria-hidden="true"></i> </span> <span class="wpforms-admin-form-embed-wizard-card-text"> <span class="wpforms-admin-form-embed-wizard-card-title"><?php echo esc_html( $label ); ?></span> <span class="wpforms-admin-form-embed-wizard-card-desc"><?php echo esc_html( $description ); ?></span> <?php if ( $is_lite && ! empty( $item['upgrade_url'] ) ) : ?> <span class="wpforms-admin-form-embed-wizard-card-upgrade"> <a href="<?php echo esc_url( $item['upgrade_url'] ); ?>" target="_blank" rel="noopener noreferrer"> <?php esc_html_e( 'Upgrade to Pro', 'wpforms-lite' ); ?> </a> </span> <?php endif; ?> </span> <?php if ( $is_lite && ! empty( $item['demo_url'] ) ) : ?> <span class="wpforms-admin-form-embed-wizard-card-demo"> <a href="<?php echo esc_url( $item['demo_url'] ); ?>" target="_blank" rel="noopener noreferrer"> <span class="wpforms-admin-form-embed-wizard-card-demo-text"><?php esc_html_e( 'Demo', 'wpforms-lite' ); ?></span> <i class="fa fa-external-link" aria-hidden="true"></i> </a> </span> <?php else : ?> <span class="wpforms-admin-form-embed-wizard-card-chevron" aria-hidden="true"> <i class="fa fa-chevron-right"></i> </span> <?php endif; ?> </button> admin/form-embed-wizard/popup.php 0000644 00000016074 15252502526 0013037 0 ustar 00 <?php /** * Form Embed Wizard. * Embed popup HTML template. * * @since 1.6.2 * @since 1.10.1 Redesigned to a six-card grid that combines existing embed * actions with product education items for Pro features. * * @var array $args Template arguments. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $user_can_edit_pages = ! empty( $args['user_can_edit_pages'] ); $education_items = ! empty( $args['education_items'] ) ? (array) $args['education_items'] : []; $is_lite = ! empty( $args['is_lite'] ); // Index education items by slug for easy access when interleaving with action cards. $education_by_slug = []; foreach ( $education_items as $item ) { $education_by_slug[ $item['slug'] ] = $item; } /** * Render an action card partial. * * @since 1.10.1 * * @param array $card_args Partial arguments. */ $render_action_card = static function ( array $card_args ): void { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_render( 'admin/form-embed-wizard/partials/action-card', $card_args ); }; /** * Render an education card partial. * * @since 1.10.1 * * @param array $item Education item data. * @param bool $is_lite Whether the current install is Lite. */ $render_education_card = static function ( array $item, bool $is_lite ): void { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_render( 'admin/form-embed-wizard/partials/education-card', [ 'item' => $item, 'is_lite' => $is_lite, ] ); }; ?> <div id="wpforms-admin-form-embed-wizard-container" class="wpforms-admin-popup-container"> <div id="wpforms-admin-form-embed-wizard" class="wpforms-admin-popup wpforms-admin-popup-wide"> <div class="wpforms-admin-popup-content"> <div id="wpforms-admin-form-embed-wizard-content-initial"> <h3><?php esc_html_e( 'How Would You Like to Publish Your Form?', 'wpforms-lite' ); ?></h3> <div class="wpforms-admin-form-embed-wizard-grid"> <?php // Row 1: Existing Page + Conversational Form. ?> <?php if ( $user_can_edit_pages ) : ?> <?php $render_action_card( [ 'action' => 'select-page', 'icon' => 'fa-file-code-o', 'title' => __( 'Existing Page', 'wpforms-lite' ), 'description' => __( 'Add to a page you\'ve already created.', 'wpforms-lite' ), ] ); ?> <?php endif; ?> <?php if ( isset( $education_by_slug['conversational-forms'] ) ) { $render_education_card( $education_by_slug['conversational-forms'], $is_lite ); } ?> <?php // Row 2: New Page + Form Landing Page. ?> <?php if ( $user_can_edit_pages ) : ?> <?php $render_action_card( [ 'action' => 'create-page', 'icon' => 'fa-plus-square-o', 'title' => __( 'New Page', 'wpforms-lite' ), 'description' => __( 'Create a new page for your form.', 'wpforms-lite' ), ] ); ?> <?php endif; ?> <?php if ( isset( $education_by_slug['form-pages'] ) ) { $render_education_card( $education_by_slug['form-pages'], $is_lite ); } ?> <?php // Row 3: Shortcode + Lead Form. ?> <?php $render_action_card( [ 'action' => 'shortcode', 'icon' => 'fa-files-o', 'title' => __( 'Shortcode', 'wpforms-lite' ), 'description' => __( 'Copy a shortcode to use anywhere.', 'wpforms-lite' ), ] ); ?> <?php if ( isset( $education_by_slug['lead-forms'] ) ) { $render_education_card( $education_by_slug['lead-forms'], $is_lite ); } ?> </div> </div> <?php if ( $user_can_edit_pages ) : ?> <div id="wpforms-admin-form-embed-wizard-content-select-page" style="display: none;"> <h3><?php esc_html_e( 'Embed in an Existing Page', 'wpforms-lite' ); ?></h3> <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;"> <h3><?php esc_html_e( 'Add to a New Page', 'wpforms-lite' ); ?></h3> <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-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( 'Add to Page', 'wpforms-lite' ); ?></button> </div> <?php endif; ?> <div id="wpforms-admin-form-embed-wizard-content-shortcode" style="display: none;"> <h3><?php esc_html_e( 'Copy the Form\'s Shortcode', 'wpforms-lite' ); ?></h3> <p><?php esc_html_e( 'Copy the shortcode and use it in any page builder or template.', 'wpforms-lite' ); ?></p> <div id="wpforms-admin-form-embed-wizard-shortcode-wrap"> <input type="text" id="wpforms-admin-form-embed-wizard-shortcode" class="wpforms-admin-popup-shortcode" disabled /> <button type="button" id="wpforms-admin-form-embed-wizard-shortcode-copy" class="wpforms-admin-popup-btn"> <i class="fa fa-files-o" aria-hidden="true"></i> </button> <div id="wpforms-admin-form-embed-wizard-shortcode-tooltip"> <div class="wpforms-shortcode-tooltip-content"> <span class="wpforms-shortcode-tooltip-default"><?php esc_html_e( 'Copy shortcode to clipboard', 'wpforms-lite' ); ?></span> <span class="wpforms-shortcode-tooltip-copied"><?php esc_html_e( 'Shortcode copied to clipboard', 'wpforms-lite' ); ?></span> </div> <div class="wpforms-shortcode-tooltip-arrow"></div> </div> </div> </div> <div id="wpforms-admin-form-embed-wizard-section-toggles" class="wpforms-admin-popup-bottom"> <p class="secondary"> <?php $allowed_tags = [ 'a' => [ 'href' => [], 'target' => [], 'rel' => [], ], ]; printf( wp_kses( /* translators: %s - link to the manual embed documentation. */ __( 'You can also <a href="%s" target="_blank" rel="noopener noreferrer">embed your form manually</a> in any page or post.', 'wpforms-lite' ), $allowed_tags ), esc_url( wpforms_utm_link( 'https://wpforms.com/docs/displaying-forms-on-your-site/', 'Builder Embed Modal', 'Embed Manually Documentation' ) ) ); ?> </p> </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-arrow-left wpforms-admin-popup-back initialstate-toggle" style="display: none;" aria-hidden="true"></i> <i class="fa fa-times wpforms-admin-popup-close"></i> </div> </div> admin/notifications.php 0000644 00000003565 15252502526 0011233 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> admin/dashboard/widget/welcome.php 0000644 00000000310 15252502526 0013210 0 ustar 00 <?php /** * Dashboard widget welcome message block template. * * @since 1.8.8 * @deprecated 1.9.7 * * @var string $welcome_message Welcome message. */ if ( ! defined( 'ABSPATH' ) ) { exit; } admin/dashboard/widget/settings.php 0000644 00000005575 15252502526 0013437 0 ustar 00 <?php /** * Dashboard widget settings gear icon template. * * @since 1.7.4 * * @var int $graph_style Graph style, value 1 for Bar style, 2 for Line style. * @var int $color_scheme Color scheme, value 1 for WPForms color scheme, 2 for for WordPress color scheme. * @var bool $enabled If form fields should be enabled. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $disabled = ! $enabled; ?> <div class="wpforms-dash-widget-settings-container"> <button id="wpforms-dash-widget-settings-button" class="wpforms-dash-widget-settings-button button" type="button"> <span class="dashicons dashicons-admin-generic"></span> </button> <div class="wpforms-dash-widget-settings-menu <?php echo $disabled ? 'disabled' : ''; ?>"> <?php if ( isset( $graph_style ) ) : ?> <div class="wpforms-dash-widget-settings-menu-wrap"> <h4><?php esc_html_e( 'Graph Style', 'wpforms-lite' ); ?></h4> <div> <div class="wpforms-dash-widget-settings-menu-item"> <input type="radio" id="wpforms-dash-widget-settings-style-bar" name="wpforms-style" value="1" <?php checked( '1', $graph_style ); ?> <?php disabled( $disabled ); ?>> <label for="wpforms-dash-widget-settings-style-bar" <?php disabled( $disabled ); ?>><?php esc_html_e( 'Bar', 'wpforms-lite' ); ?></label> </div> <div class="wpforms-dash-widget-settings-menu-item"> <input type="radio" id="wpforms-dash-widget-settings-style-line" name="wpforms-style" value="2" <?php checked( '2', $graph_style ); ?> <?php disabled( $disabled ); ?>> <label for="wpforms-dash-widget-settings-style-line" <?php disabled( $disabled ); ?>><?php esc_html_e( 'Line', 'wpforms-lite' ); ?></label> </div> </div> </div> <?php endif; ?> <?php if ( isset( $color_scheme ) ) : ?> <div class="wpforms-dash-widget-settings-menu-wrap color-scheme"> <h4><?php esc_html_e( 'Color Scheme', 'wpforms-lite' ); ?></h4> <div> <div class="wpforms-dash-widget-settings-menu-item"> <input type="radio" id="wpforms-dash-widget-settings-color-wpforms" name="wpforms-color" value="1" <?php checked( '1', $color_scheme ); ?> <?php disabled( $disabled ); ?>> <label for="wpforms-dash-widget-settings-color-wpforms" <?php disabled( $disabled ); ?>><?php esc_html_e( 'WPForms', 'wpforms-lite' ); ?></label> </div> <div class="wpforms-dash-widget-settings-menu-item"> <input type="radio" id="wpforms-dash-widget-settings-color-wp" name="wpforms-color" value="2" <?php checked( '2', $color_scheme ); ?> <?php disabled( $disabled ); ?>> <label for="wpforms-dash-widget-settings-color-wp" <?php disabled( $disabled ); ?>><?php esc_html_e( 'WordPress', 'wpforms-lite' ); ?></label> </div> </div> </div> <?php endif; ?> <button type="button" class="button wpforms-dash-widget-settings-menu-save" <?php disabled( $disabled ); ?>><?php esc_html_e( 'Save Changes', 'wpforms-lite' ); ?></button> </div> </div> admin/payments/mode-toggle.php 0000644 00000001312 15252502526 0012411 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> admin/payments/hidden-field.php 0000644 00000001101 15252502526 0012516 0 ustar 00 <?php /** * Display a hidden field for the purpose of form submission. * * @since 1.8.4 * * @var string $name Name of the hidden field. * @var array $value Value of the hidden field. */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. // Leave early if no field name or value is provided. if ( empty( $name ) || empty( $value ) ) { return; } ?> <input type="hidden" name="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $value ); ?>" /> <?php /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ admin/payments/reset-filter-notice.php 0000644 00000002773 15252502526 0014106 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. */ admin/payments/reports.php 0000644 00000004277 15252502526 0011721 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. */ admin/payments/single/details.php 0000644 00000004633 15252502526 0013125 0 ustar 00 <?php /** * Single Payment page - Details metabox. * * @since 1.8.2 * * @var object $payment Payment object. * @var string $submitted Submitted date. * @var string $gateway_name Gateway name. * @var string $gateway_link Link to gateway payment details. * @var string $form_edit_link Link to the builder. * @var string $delete_link Link for a payment delete action. * @var bool $test_mode Is payment in test mode. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="wpforms-payment-details" class="postbox"> <div class="postbox-header"> <h2 class="hndle"> <span><?php esc_html_e( 'Details', 'wpforms-lite' ); ?></span> </h2> </div> <div class="inside"> <div class="wpforms-payment-details-meta"> <p class="wpforms-payment-date"> <span class="dashicons dashicons-calendar"></span> <?php esc_html_e( 'Submitted:', 'wpforms-lite' ); ?> <strong class="date-time"> <?php echo esc_html( $submitted ); ?> </strong> </p> <p class="wpforms-payment-gateway"> <span class="dashicons dashicons-store"></span> <?php esc_html_e( 'Gateway:', 'wpforms-lite' ); ?> <a href="<?php echo esc_url( $gateway_link ); ?>" class="wpforms-link" target="_blank" rel="noopener noreferrer"><?php echo esc_html( $gateway_name ); ?></a> </p> <p class="wpforms-payment-form"> <span class="dashicons dashicons-wpforms"></span> <?php esc_html_e( 'Form:', 'wpforms-lite' ); // Output the form edit link, if available. // The output could be a link or a span, depending on the availability of the form. echo wp_kses( $form_edit_link, [ 'a' => [ 'href' => [], 'class' => [], ], 'span' => [ 'class' => [] ], ] ); ?> </p> <?php if ( $test_mode ) : ?> <p class="wpforms-payment-test-mode"> <span class="dashicons dashicons-marker"></span> <?php esc_html_e( 'Payment Mode:', 'wpforms-lite' ); ?> <strong><?php esc_html_e( 'Test', 'wpforms-lite' ); ?></strong> </p> <?php endif; ?> </div> <div class="wpforms-payment-actions"> <div class="status"></div> <div class="actions"> <a class="button button-large button-delete" href="<?php echo esc_url( $delete_link ); ?>"> <?php esc_html_e( 'Delete', 'wpforms-lite' ); ?> </a> </div> <div class="clear"></div> </div> </div> </div> admin/payments/single/entry-details.php 0000644 00000004266 15252502526 0014266 0 ustar 00 <?php /** * Single Payment page - Payment details template for single and subscription data. * * @since 1.8.2 * * @var array $entry_fields Entry object. * @var array $form_data Form data. * @var int $entry_id Entry ID. * @var string $entry_id_title Entry title id. * @var string $entry_url Entry page URL. * @var string $entry_status Entry status. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="wpforms-payment-entry-fields" class="postbox"> <div class="postbox-header"> <h2 class="hndle"> <span><?php echo esc_html__( 'Entry Summary', 'wpforms-lite' ); ?></span> <?php if ( ! empty( $entry_id_title ) ) : ?> <span class="wpforms-payment-entry-id"><?php echo esc_html( $entry_id_title ); ?></span> <?php endif; ?> </h2> </div> <div class="inside"> <?php foreach ( $entry_fields as $key => $field ) { $field_type = $field['type']; if ( in_array( $field_type, [ 'repeater', 'layout' ], true ) && wpforms()->is_pro() ) { if ( $field_type === 'repeater' ) { echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 'admin/payments/single/repeater', [ 'field' => $field, 'form_data' => $form_data, 'entry_fields' => $entry_fields, ], true ); } if ( $field_type === 'layout' ) { echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 'admin/payments/single/layout', [ 'field' => $field, 'form_data' => $form_data, 'entry_fields' => $entry_fields, ], true ); } } else { echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 'admin/payments/single/field', [ 'field' => $field, ], true ); } } ?> </div> <?php if ( $entry_id_title && $entry_status !== 'trash' ) : ?> <div class="wpforms-payment-actions"> <div class="status"></div> <div class="actions"> <a class="button" href="<?php echo esc_url( $entry_url ); ?>"> <?php echo esc_html__( 'View Entry', 'wpforms-lite' ); ?> </a> <div class="clear"></div> </div> </div> <?php endif; ?> </div> admin/payments/single/no-payment.php 0000644 00000001356 15252502526 0013566 0 ustar 00 <?php /** * No template payment HTML template. * * @since 1.8.2 * * @var string $message An abort message to display. */ 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> <p><?php echo esc_html( $message ); ?></p> <img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/payments/no-payments.svg' ); ?>" alt="" style="max-width: 314px;"> <a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-payments' ) ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange"> <?php esc_html_e( 'Back to All Payments', 'wpforms-lite' ); ?> </a> </div> admin/payments/single/payment-details.php 0000644 00000007123 15252502526 0014575 0 ustar 00 <?php /** * Single Payment page - Payment details template for single and subscription data. * * @since 1.8.2 * @since 1.8.6 Added $class variable. * * @var string $id Block id. * @var string $class Extra Class based on type of payment. * @var string $title Block title. * @var string $payment_id Payment id. * @var string $gateway_link Link to gateway payment details. * @var string $gateway_text Gateway link text. * @var string $gateway_name Gateway name. * @var string $gateway_action_text Gateway action link text. * @var string $gateway_action_link Gateway action link. * @var string $gateway_action_slug Gateway action slug. * @var int $payment_id_raw Payment id raw. * @var string $status Payment or Subscription status. * @var string $status_label Payment or Subscription status label. * @var bool $disabled Is gateway action disabled. * @var array $stat_cards Stat cards to display. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="<?php echo esc_attr( $id ); ?>" class="postbox <?php echo esc_attr( $class ); ?>"> <div class="postbox-header"> <h2 class="hndle"> <span><?php echo esc_html( $title ); ?></span> <?php if ( isset( $payment_id ) ) : ?> <span class="wpforms-payment-id"><?php echo esc_html( $payment_id ); ?></span> <?php endif; ?> </h2> </div> <div class="inside"> <ul class="wpforms-payments-details-list"> <?php foreach ( $stat_cards as $key => $stat_card ) : ?> <li class="wpforms-payments-details-stat-card"> <button class="<?php echo wpforms_sanitize_classes( $stat_card['button_classes'], true ); ?>" > <span class="stat-card-label"><?php echo esc_html( $stat_card['label'] ); ?></span> <span class="stat-card-value"> <?php echo ! empty( $stat_card['value'] ) ? esc_html( $stat_card['value'] ) : esc_html__( 'N/A', 'wpforms-lite' ); ?> <?php if ( ! empty( $stat_card['tooltip'] ) ) : ?> <i class="wpforms-single-payment-tooltip" data-tooltip-content="#wpforms-single-payment-tooltip-content-<?php echo esc_attr( $key ); ?>"></i> <span id="wpforms-single-payment-tooltip-content-<?php echo esc_attr( $key ); ?>" class="wpforms-single-payment-tooltip-content"><?php echo wp_kses_post( $stat_card['tooltip'] ); ?></span> <?php endif; ?> </span> </button> </li> <?php endforeach; ?> </ul> </div> <div class="wpforms-payment-actions"> <div class="status"> <span class="wpforms-payment-action-status-label"><?php esc_html_e( 'Status:', 'wpforms-lite' ); ?></span> <span class="wpforms-payment-action-status-value <?php echo esc_attr( $status ); ?>"><?php echo wp_kses( $status_label, [ 'span' => [] ] ); ?></span> </div> <?php if ( $gateway_link ) : ?> <div class="actions"> <a href="<?php echo esc_url( $gateway_link ); ?>" class="link" target="_blank" rel="noopener noreferrer"> <?php echo esc_html( $gateway_text ); ?> </a> <?php if ( ! $disabled ) : ?> <a href="<?php echo esc_url( $gateway_action_link ); ?>" class="button wpforms-payments-single-action" target="_blank" rel="noopener noreferrer" id="wpforms-payments-single-<?php echo esc_attr( $gateway_action_slug ); ?>" data-action-id="<?php echo esc_attr( $payment_id_raw ); ?>" data-gateway="<?php echo esc_attr( $gateway_name ); ?>" data-action-type="<?php echo esc_attr( $gateway_action_slug ); ?>"> <?php echo esc_html( $gateway_action_text ); ?> </a> <?php endif; ?> </div> <?php endif; ?> <div class="clear"></div> </div> </div> admin/payments/single/advanced-details.php 0000644 00000002061 15252502526 0014661 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> admin/payments/single/payment-history.php 0000644 00000005337 15252502526 0014656 0 ustar 00 <?php /** * Single Payment page - Display a table outlining the subscription payment history. * * @since 1.8.4 * * @var string $title Table heading. * @var array $renewals Renewal payments data. * @var array $types Payment types. * @var array $statuses Payment statuses. * @var string $placeholder_na_text Placeholder text. Display "N\A" if empty. * @var string $single_url Single payment URL. Note that payment ID will be appended to this URL. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div class="postbox"> <div class="postbox-header"> <h2 class="hndle"> <span><?php echo esc_html( $title ); ?></span> </h2> </div> <table class="wpforms-subscription-payment-history" role="table" aria-label="<?php esc_attr_e( 'Subscription Renewal History Table', 'wpforms-lite' ); ?>"> <thead> <tr> <th scope="col"><?php esc_html_e( 'Payment ID', 'wpforms-lite' ); ?></th> <th scope="col"><?php esc_html_e( 'Date', 'wpforms-lite' ); ?></th> <th scope="col"><?php esc_html_e( 'Type', 'wpforms-lite' ); ?></th> <th scope="col"><?php esc_html_e( 'Total', 'wpforms-lite' ); ?></th> <th scope="col"><?php esc_html_e( 'Status', 'wpforms-lite' ); ?></th> </thead> <tbody> <?php foreach ( $renewals as $renewal ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized $is_current = isset( $_GET['payment_id'] ) && $renewal->id === wp_unslash( $_GET['payment_id'] ); ?> <tr class="<?php echo $is_current ? sanitize_html_class( 'current' ) : ''; ?>"> <td data-title="<?php esc_attr_e( 'Payment ID', 'wpforms-lite' ); ?>"> <a href="<?php echo esc_url( add_query_arg( [ 'payment_id' => $renewal->id ], $single_url ) ); ?>"> <?php echo esc_html( $renewal->id ); ?> </a> </td> <td data-title="<?php esc_attr_e( 'Date', 'wpforms-lite' ); ?>"> <?php echo wpforms_datetime_format( $renewal->date_created_gmt, 'M j, Y', true ); ?> </td> <td data-title="<?php esc_attr_e( 'Type', 'wpforms-lite' ); ?>"> <?php echo esc_html( isset( $types[ $renewal->type ] ) ? $renewal->type : $placeholder_na_text ); ?> </td> <td data-title="<?php esc_attr_e( 'Total', 'wpforms-lite' ); ?>"> <?php echo wpforms_format_amount( wpforms_sanitize_amount( $renewal->total_amount, $renewal->currency ), true, $renewal->currency ); ?> </td> <td data-title="<?php esc_attr_e( 'Status', 'wpforms-lite' ); ?>"> <?php echo esc_html( $statuses[ $renewal->status ] ); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ admin/payments/single/field.php 0000644 00000001045 15252502526 0012555 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>