This commit is contained in:
2026-03-11 15:57:27 +01:00
parent 481271c972
commit b4b460fd21
10775 changed files with 2071579 additions and 26409 deletions

View File

@@ -0,0 +1,24 @@
<?php
/**
* HTML for the columns multiselect menu.
*
* @since 1.8.9
*/
?>
<div class="wpforms-entries-settings-menu" aria-expanded="true">
<div class="wpforms-entries-settings-menu-wrap wpforms-entries-settings-menu-items wpforms-input-disabled" aria-disabled="true">
<span class="wpforms-settings-title first">Form Fields</span>
<label role="option"><input type="checkbox" value="1" aria-disabled="false" checked><span>Name</span></label>
<label role="option"><input type="checkbox" value="1" aria-disabled="false" checked><span>Email</span></label>
<span class="wpforms-settings-title">Entry Meta</span>
<label role="option"><input type="checkbox" value="1" aria-disabled="false" checked><span>Date</span></label>
<label role="option"><input type="checkbox" value="1" aria-disabled="false"><span>Entry ID</span></label>
<label role="option"><input type="checkbox" value="1" aria-disabled="false"><span>Entry Type</span></label>
<label role="option"><input type="checkbox" value="1" aria-disabled="false"><span>User IP</span></label>
<label role="option"><input type="checkbox" value="1" aria-disabled="false"><span>User Agent</span></label>
<label role="option"><input type="checkbox" value="1" aria-disabled="false"><span>Unique User ID</span></label>
</div>
<button type="button" class="button button-secondary" id="wpforms-list-table-ext-edit-columns-select-submit" data-value="save-table-columns">Save Changes</button>
</div>

View File

@@ -0,0 +1,38 @@
<?php
/**
* Bulk action for the Entries List page.
*
* @since 1.8.9
*
* @var bool $show_filter Whether to show the filter block.
*/
?>
<div class="alignleft actions bulkactions wpforms-input-disabled" aria-disabled="true">
<label for="bulk-action-selector-top" class="screen-reader-text">Select bulk action</label>
<select name="action" id="bulk-action-selector-top">
<option value="-1">Bulk actions</option>
</select>
<input type="submit" id="doaction" class="button action" value="Apply">
</div>
<?php if ( ! empty( $show_filter ) ) { ?>
<div class="alignleft actions wpforms-filter-date wpforms-input-disabled" aria-disabled="true">
<input class="regular-text wpforms-filter-date-selector form-control input active" placeholder="Select a date range" tabindex="0" type="text" readonly="readonly">
<button type="submit" name="action" value="filter_date" class="button">Filter</button>
</div>
<?php } ?>
<div class="tablenav-pages one-page wpforms-input-disabled" aria-disabled="true">
<span class="displaying-num">12 items</span>
<span class="pagination-links">
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">«</span>
<span class="tablenav-pages-navspan button disabled" aria-hidden="true"></span>
<span class="paging-input">
<label for="current-page-selector" class="screen-reader-text">Current Page</label>
<input class="current-page" id="current-page-selector" type="text" name="paged" value="1" size="1" aria-describedby="table-paging">
<span class="tablenav-paging-text"> of <span class="total-pages">1</span></span>
</span>
<span class="tablenav-pages-navspan button disabled" aria-hidden="true"></span>
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">»</span>
</span>
</div>
<br class="clear">

View File

@@ -0,0 +1,86 @@
<?php
/**
* Entries List page with sample data.
*
* @since 1.8.9
*
* @var bool $is_lite_connect_enabled Whether Lite Connect is enabled.
* @var bool $is_lite_connect_allowed Whether Lite Connect is allowed.
* @var int $entries_count Entries count.
* @var string $enabled_since Enabled since.
* @var array $sample_entries Sample entries.
* @var array $utm UTM data.
*/
$sample_entry_enabled = ! empty( $_COOKIE['wpforms_sample_entries'] );
?>
<div id="wpforms-entries-list" class="wrap wpforms-admin-wrap wpforms-entries-list-upgrade <?php echo $sample_entry_enabled ? esc_attr( 'wpforms-entires-sample-view' ) : ''; ?>">
<h1 class="page-title">Entries</h1>
<div id="wpforms-sample-entry-main-notice" class="wpforms-sample-entry-notice <?php echo $sample_entry_enabled ? esc_attr( 'wpf-no-animate' ) : ''; ?>">
<?php
echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'admin/entries/notice',
[
'btn_utm' => $utm['entries_list_button'],
'link_utm' => $utm['entries_list_link'],
],
true
);
?>
</div>
<div class="wpforms-admin-content-wrap">
<?php
echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'admin/entries/overview/modal',
[
'is_lite_connect_enabled' => $is_lite_connect_enabled,
'is_lite_connect_allowed' => $is_lite_connect_allowed,
'entries_count' => $entries_count,
'enabled_since' => $enabled_since,
'is_enabled' => $sample_entry_enabled,
],
true
);
?>
<div id="wpforms-sample-entries-main" class="wpforms-admin-content">
<div class="form-details">
<span class="form-details-sub">Select Form</span>
<h3 class="form-details-title">
General Inquiry Form
<div class="form-selector wpforms-input-disabled" aria-disabled="true">
<a href="#" class="toggle dashicons dashicons-arrow-down-alt2"></a>
</div>
</h3>
<div class="form-details-actions wpforms-input-disabled" aria-disabled="true">
<a href="#" class="form-details-actions-entries"><span class="dashicons dashicons-list-view"></span> All Entries </a>
<a href="#" class="form-details-actions-edit"><span class="dashicons dashicons-edit"></span> Edit This Form</a>
<a href="#" class="form-details-actions-preview"><span class="dashicons dashicons-visibility"></span> Preview Form</a>
<a href="#" class="form-details-actions-export"><span class="dashicons dashicons-migrate"></span> Export All</a>
<a href="#" class="form-details-actions-read"><span class="dashicons dashicons-marker"></span> Mark All Read</a>
<a href="#" class="form-details-actions-removeall"><span class="dashicons dashicons-trash"></span>Trash All</a>
</div>
</div>
<form id="wpforms-entries-table">
<?php
echo wpforms_render( 'admin/entries/overview/header' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'admin/entries/overview/table',
[ 'entries' => $sample_entries ],
true
);
?>
</form>
<div class="tablenav bottom">
<?php
echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'admin/entries/overview/bulk-actions'
);
?>
</div>
</div>
</div>
</div>
<div class="clear"></div>

View File

@@ -0,0 +1,39 @@
<?php
/**
* Header row for the Entries List page.
*
* @since 1.8.9
*/
?>
<ul class="subsubsub wpforms-input-disabled" aria-disabled="true">
<li class="all"><a href="#" class="current">All&nbsp;<span class="count">(<span class="total-num">12</span>)</span></a> |</li>
<li class="unread"><a href="#">Unread&nbsp;<span class="count">(<span class="unread-num">9</span>)</span></a> |</li>
<li class="starred"><a href="#">Starred&nbsp;<span class="count">(<span class="starred-num">4</span>)</span></a> |</li>
<li class="spam"><a href="#">Spam <span class="count">(0)</span></a></li>
</ul>
<p class="search-box wpforms-form-search-box wpforms-input-disabled" aria-disabled="true">
<select name="search[field]" class="wpforms-form-search-box-field">
<optgroup label="Form fields">
<option value="any" selected="selected">Any form field</option>
</optgroup>
</select>
<select name="search[comparison]" class="wpforms-form-search-box-comparison">
<option value="contains" selected="selected">contains</option>
</select>
<label class="screen-reader-text" for="wpforms-entries-search-input">
Search:
</label>
<input type="search" name="search[term]" class="wpforms-form-search-box-term" value="" id="wpforms-entries-search-input">
<button type="submit" class="button">Search</button>
</p>
<div class="tablenav top">
<?php
echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'admin/entries/overview/bulk-actions',
[
'show_filter' => true,
],
true
);
?>
</div>

View File

@@ -0,0 +1,88 @@
<?php
/**
* Modal for the Entries List page.
*
* @since 1.8.9
*
* @var bool $is_lite_connect_enabled Whether Lite Connect is enabled.
* @var bool $is_lite_connect_allowed Whether Lite Connect is allowed.
* @var int $entries_count Entries count.
* @var string $enabled_since Enabled since.
* @var bool $is_enabled Whether sample entries are enabled.
*/
?>
<div id="wpforms-sample-entry-modal" class="wpforms-sample-entries-modal entries-modal" style="<?php echo $is_enabled ? esc_attr( 'display: none' ) : ''; ?>">
<?php if ( ! $is_lite_connect_enabled ) : ?>
<div class="entries-modal-content-top-notice">
<i class="wpforms-icon"></i><?php esc_html_e( 'Form entries are not stored in WPForms Lite.', 'wpforms-lite' ); ?>
</div>
<?php endif; ?>
<div class="entries-modal-content">
<h2>
<?php esc_html_e( 'View and Manage Your Form Entries inside WordPress', 'wpforms-lite' ); ?>
</h2>
<p>
<?php esc_html_e( 'Once you upgrade to WPForms Pro, all future form entries will be stored in your WordPress database and displayed on this Entries screen.', 'wpforms-lite' ); ?>
</p>
<div class="wpforms-clear">
<ul class="left">
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'View Entries in Dashboard', 'wpforms-lite' ); ?></li>
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'Export Entries in a CSV File', 'wpforms-lite' ); ?></li>
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'Add Notes / Comments', 'wpforms-lite' ); ?></li>
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'Save Favorite Entries', 'wpforms-lite' ); ?></li>
</ul>
<ul class="right">
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'Mark Read / Unread', 'wpforms-lite' ); ?></li>
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'Print Entries', 'wpforms-lite' ); ?></li>
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'Resend Notifications', 'wpforms-lite' ); ?></li>
<li><i class="fa fa-check" aria-hidden="true"></i> <?php esc_html_e( 'See Geolocation Data', 'wpforms-lite' ); ?></li>
</ul>
</div>
</div>
<div class="entries-modal-button">
<?php if ( $is_lite_connect_enabled && $is_lite_connect_allowed ) : ?>
<p class="entries-modal-button-before">
<?php
printf(
'<strong>' . esc_html( /* translators: %d - backed up entries count. */
_n(
'%d entry has been backed up',
'%d entries have been backed up',
$entries_count,
'wpforms-lite'
)
) . '</strong>',
absint( $entries_count )
);
if ( ! empty( $enabled_since ) ) {
echo ' ';
printf(
/* translators: %s - time when Lite Connect was enabled. */
esc_html__( 'since you enabled Lite Connect on %s', 'wpforms-lite' ),
esc_html( wpforms_date_format( $enabled_since, '', true ) )
);
}
// phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentAfterEnd
?>.</p>
<a href="<?php echo esc_url( wpforms_admin_upgrade_link( 'entries', 'Upgrade to WPForms Pro & Restore Form Entries Button' ) ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange wpforms-upgrade-modal" target="_blank" rel="noopener noreferrer">
<?php esc_html_e( 'Upgrade to WPForms Pro & Restore Form Entries', 'wpforms-lite' ); ?>
</a>
<?php else : ?>
<a href="<?php echo esc_url( wpforms_admin_upgrade_link( 'entries', 'Upgrade to WPForms Pro Now Button' ) ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange wpforms-upgrade-modal" target="_blank" rel="noopener noreferrer">
<?php esc_html_e( 'Upgrade to WPForms Pro Now', 'wpforms-lite' ); ?>
</a>
<?php endif; ?>
<p class="wpforms-entries-sample">
<a id="wpforms-entries-explore" href="#">
<?php esc_html_e( 'Explore Entries & Learn More', 'wpforms-lite' ); ?>
</a>
</p>
</div>
</div>

View File

@@ -0,0 +1,70 @@
<?php
/**
* Table for the Entries List page.
*
* @since 1.8.9
*
* @var array $entries Entry sample data.
*/
$time = time();
?>
<table class="wp-list-table widefat striped table-view-list has-many-columns wpforms-table-container">
<thead>
<tr class="ui-sortable">
<td id="cb" class="manage-column column-cb check-column wpforms-input-disabled">
<label class="screen-reader-text" for="cb-select-all-1">Select All</label>
<input id="cb-select-all-1" type="checkbox">
</td>
<th scope="col" id="indicators" class="manage-column column-indicators"></th>
<th scope="col" id="wpforms_field_1" class="manage-column column-wpforms_field_1 column-primary">Name</th>
<th scope="col" id="wpforms_field_2" class="manage-column column-wpforms_field_2">Email</th>
<th scope="col" id="date" class="manage-column column-date">Date</th>
<th scope="col" id="actions" class="manage-column column-actions wpforms-input-disabled" aria-disabled="true" style="position: relative";>
Actions
<a href="#" title="Change columns to display" id="wpforms-list-table-ext-edit-columns-cog"><i class="fa fa-cog" aria-hidden="true"></i></a>
<?php echo wpforms_render( 'admin/entries/overview/actions' ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</th>
</tr>
</thead>
<tbody id="the-list" data-wp-lists="list:entry">
<?php foreach ( $entries as $entry ) { ?>
<tr>
<th scope="row" class="check-column wpforms-input-disabled"><input type="checkbox" name="entry_id[]" value=""></th>
<td class="indicators column-indicators has-row-actions wpforms-input-disabled" aria-disabled="true" data-colname="">
<span class="indicator-star <?php echo ! empty( $entry['star'] ) ? 'unstar' : 'star'; ?>" aria-label="Star entry"><span class="dashicons dashicons-star-filled"></span></span>
<span class="indicator-read <?php echo ! empty( $entry['read'] ) ? 'read' : 'unread'; ?>" aria-label="Mark entry read"></span>
</td>
<td class="wpforms_field_1 column-wpforms_field_1 column-primary" data-colname="Name">
<?php echo esc_html( $entry['name'] ); ?>
<button type="button" class="toggle-row"><span class="screen-reader-text">Show more details</span></button>
</td>
<td class="wpforms_field_2 column-wpforms_field_2" data-colname="Email"><?php echo esc_html( strtolower( str_replace( ' ', '.', $entry['name'] ) ) . '@example.com' ); ?> </td>
<td class="date column-date" data-colname="Date"><?php echo esc_html( gmdate( 'm/d/Y h:i A', wp_rand( 1704067200, $time ) ) ); ?></td>
<td class="actions column-actions" data-colname="Actions">
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-entries&view=sample' ) ); ?>" title="View Form Entry" class="view">View</a>
<span class="sep">|</span>
<span class="wpforms-input-disabled" aria-disabled="true"><a href="#" title="Edit Form Entry" class="edit">Edit</a></span>
<span class="sep">|</span>
<span class="wpforms-input-disabled" aria-disabled="true"><a href="#" title="Spam Form Entry" class="spam">Spam</a></span>
<span class="sep">|</span>
<span class="wpforms-input-disabled" aria-disabled="true"><a href="#" title="Delete Form Entry" class="trash">Trash</a></span>
</td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr>
<td class="manage-column column-cb check-column wpforms-input-disabled">
<label class="screen-reader-text" for="cb-select-all-2">Select All</label>
<input id="cb-select-all-2" type="checkbox">
</td>
<th scope="col" class="manage-column column-indicators"></th>
<th scope="col" class="manage-column column-wpforms_field_0 column-primary">Name</th>
<th scope="col" class="manage-column column-wpforms_field_1">Email</th>
<th scope="col" class="manage-column column-date">Date</th>
<th scope="col" class="manage-column column-actions">Actions
</th>
</tr>
</tfoot>
</table>