first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<?php
/**
* Capabilities for geolocation settings page.
*
* @since 1.6.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$lists = [
[
esc_html__( 'City', 'wpforms-lite' ),
esc_html__( 'Country', 'wpforms-lite' ),
esc_html__( 'Postal/Zip Code', 'wpforms-lite' ),
],
[
esc_html__( 'Latitude/Longitude', 'wpforms-lite' ),
esc_html__( 'Address Autocomplete', 'wpforms-lite' ),
esc_html__( 'Embedded Map in Forms', 'wpforms-lite' ),
],
[
esc_html__( 'Google Places API', 'wpforms-lite' ),
esc_html__( 'Algolia Places API', 'wpforms-lite' ),
],
];
?>
<p><?php esc_html_e( 'Powerful location-based insights and features…', 'wpforms-lite' ); ?></p>
<?php foreach ( $lists as $list ) { ?>
<ul>
<?php foreach ( $list as $item ) { ?>
<li><?php echo esc_html( $item ); ?></li>
<?php } ?>
</ul>
<?php } ?>

View File

@@ -0,0 +1,24 @@
<?php
/**
* Heading for geolocation settings page.
*
* @since 1.6.6
*
* @var bool $plugin_allow Allow using plugin.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<h4>
<?php esc_html_e( 'Geolocation', 'wpforms-lite' ); ?>
<?php if ( ! $plugin_allow ) { ?>
<img
src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-settings-access/pro-plus.svg' ); ?>"
alt="<?php esc_attr_e( 'Pro+', 'wpforms-lite' ); ?>"
>
<?php } ?>
</h4>
<p><?php esc_html_e( 'Do you want to learn more about visitors who fill out your online forms? Our geolocation addon allows you to collect and store your website visitors geolocation data along with their form submission. This insight can help you be better informed and turn more leads into customers. Furthermore, add a smart address field that autocompletes using the Google Places API.', 'wpforms-lite' ); ?></p>

View File

@@ -0,0 +1,39 @@
<?php
/**
* Screenshots for geolocation settings page.
*
* @since 1.6.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$images_url = WPFORMS_PLUGIN_URL . 'assets/images/geolocation-education/';
$screenshots = [
[
'url' => $images_url . 'entry-location.jpg',
'url2x' => $images_url . 'entry-location@2x.jpg',
'title' => __( 'Location Info in Entries', 'wpforms-lite' ),
],
[
'url' => $images_url . 'address-autocomplete.jpg',
'url2x' => $images_url . 'address-autocomplete@2x.jpg',
'title' => __( 'Address Autocomplete Field', 'wpforms-lite' ),
],
[
'url' => $images_url . 'smart-address-field.jpg',
'url2x' => $images_url . 'smart-address-field@2x.jpg',
'title' => __( 'Smart Address Field', 'wpforms-lite' ),
],
];
foreach ( $screenshots as $screenshot ) {
?>
<div class="cont">
<img src="<?php echo esc_url( $screenshot['url'] ); ?>" alt="<?php echo esc_attr( $screenshot['title'] ); ?>" />
<a href="<?php echo esc_url( $screenshot['url2x'] ); ?>" class="hover" data-lity data-lity-desc="<?php echo esc_attr( $screenshot['title'] ); ?>"></a>
<span><?php echo esc_html( $screenshot['title'] ); ?></span>
</div>
<?php
}

View File

@@ -0,0 +1,43 @@
<?php
/**
* Button for geolocation settings page.
*
* @since 1.6.6
*
* @var bool $action Is plugin installed?
* @var string $path Plugin file.
* @var string $url URL for download plugin.
* @var bool $plugin_allow Allow using plugin.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( $plugin_allow && $action === 'activate' ) {
?>
<button
class="status-inactive wpforms-btn wpforms-btn-lg wpforms-btn-blue wpforms-education-toggle-plugin-btn"
data-type="addon"
data-action="<?php echo esc_attr( $action ); ?>"
data-plugin="<?php echo esc_attr( $path ); ?>">
<i></i><?php esc_html_e( 'Activate', 'wpforms-lite' ); ?>
</button>
<?php } elseif ( $plugin_allow && $action === 'install' ) { ?>
<button
class="status-download wpforms-btn wpforms-btn-lg wpforms-btn-blue wpforms-education-toggle-plugin-btn"
data-type="addon"
data-action="<?php echo esc_attr( $action ); ?>"
data-plugin="<?php echo esc_url( $url ); ?>">
<i></i><?php esc_html_e( 'Install & Activate', 'wpforms-lite' ); ?>
</button>
<?php } else { ?>
<a
href="https://wpforms.com/lite-upgrade/?discount=LITEUPGRADE&utm_source=WordPress&utm_medium=settings-license&utm_campaign=liteplugin"
target="_blank"
rel="noopener noreferrer"
class="wpforms-upgrade-modal wpforms-btn wpforms-btn-lg wpforms-btn-orange">
<?php esc_html_e( 'Upgrade to WPForms Pro', 'wpforms-lite' ); ?>
</a>
<?php
}