Version Description
- Update: Minor improvements
=
Download this release
Release Info
Developer | storeapps |
Plugin | Temporary Login Without Password |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8.0 to 1.8.1
- admin/class-wp-temporary-login-without-password-admin.php +7 -7
- includes/sa-includes/{class-sa-in-app-offer.php → class-sa-tlwp-in-app-offer.php} +4 -4
- includes/sa-includes/images/halloween-2022.png +0 -0
- includes/sa-includes/images/ig_bfcm2022.png +0 -0
- readme.txt +5 -4
- temporary-login-without-password.php +1 -1
admin/class-wp-temporary-login-without-password-admin.php
CHANGED
@@ -687,21 +687,21 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
687 |
* @since 1.8.0
|
688 |
*/
|
689 |
public function wtlwp_may_be_show_sa_in_app_offer() {
|
690 |
-
if ( ! class_exists( '
|
691 |
-
include_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/class-sa-in-app-offer.php';
|
692 |
|
693 |
$get_page = ( ! empty( $_GET['page'] ) ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore
|
694 |
|
695 |
$args = array(
|
696 |
'file' => plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/',
|
697 |
'prefix' => 'wtlwp', // prefix/slug of your plugin.
|
698 |
-
'option_name' => '
|
699 |
-
'campaign' => '
|
700 |
-
'start' => '2022-
|
701 |
-
'end' => '2022-11-
|
702 |
'is_plugin_page' => ( ! empty( $get_page ) && 'wp-temporary-login-without-password' === $get_page ) ? true : false, // page where you want to show offer, do not send this if no plugin page is there and want to show offer on Products page.
|
703 |
);
|
704 |
-
$sa_offer =
|
705 |
}
|
706 |
}
|
707 |
|
687 |
* @since 1.8.0
|
688 |
*/
|
689 |
public function wtlwp_may_be_show_sa_in_app_offer() {
|
690 |
+
if ( ! class_exists( 'SA_TLWP_In_App_Offer' ) && file_exists( plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/class-sa-tlwp-in-app-offer.php' ) ) {
|
691 |
+
include_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/class-sa-tlwp-in-app-offer.php';
|
692 |
|
693 |
$get_page = ( ! empty( $_GET['page'] ) ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore
|
694 |
|
695 |
$args = array(
|
696 |
'file' => plugin_dir_path( dirname( __FILE__ ) ) . 'includes/sa-includes/',
|
697 |
'prefix' => 'wtlwp', // prefix/slug of your plugin.
|
698 |
+
'option_name' => 'ig_wtlwp_offer_bfcm_2022',
|
699 |
+
'campaign' => 'ig_offer_bfcm_2022',
|
700 |
+
'start' => '2022-11-23 12:30:00',
|
701 |
+
'end' => '2022-11-30 12:30:00',
|
702 |
'is_plugin_page' => ( ! empty( $get_page ) && 'wp-temporary-login-without-password' === $get_page ) ? true : false, // page where you want to show offer, do not send this if no plugin page is there and want to show offer on Products page.
|
703 |
);
|
704 |
+
$sa_offer = SA_TLWP_In_App_Offer::get_instance( $args );
|
705 |
}
|
706 |
}
|
707 |
|
includes/sa-includes/{class-sa-in-app-offer.php → class-sa-tlwp-in-app-offer.php}
RENAMED
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
/**
|
16 |
* Class for handling in app offer for StoreApps
|
17 |
*/
|
18 |
-
class
|
19 |
|
20 |
/**
|
21 |
* Variable to hold instance of this class
|
@@ -209,7 +209,7 @@ class SA_In_App_Offer {
|
|
209 |
padding: 1em;
|
210 |
}
|
211 |
.sa_offer_content img {
|
212 |
-
width:
|
213 |
margin: 0 auto;
|
214 |
}
|
215 |
.sa_dismiss {
|
@@ -222,8 +222,8 @@ class SA_In_App_Offer {
|
|
222 |
</style>
|
223 |
<div class="sa_offer">
|
224 |
<div class="sa_offer_content">
|
225 |
-
<a href="https://www.
|
226 |
-
<img src="<?php echo esc_url( plugins_url( 'sa-includes/images/
|
227 |
</a>
|
228 |
<div class="sa_dismiss"> <!-- Do not change this class -->
|
229 |
<a href="javascript:void(0)" style="color: black; text-decoration: none;" title="<?php echo esc_attr__( 'Dismiss', 'temporary-login-without-password' ); ?>"><?php echo esc_html__( 'Hide this', 'temporary-login-without-password' ); ?></a>
|
15 |
/**
|
16 |
* Class for handling in app offer for StoreApps
|
17 |
*/
|
18 |
+
class SA_TLWP_In_App_Offer {
|
19 |
|
20 |
/**
|
21 |
* Variable to hold instance of this class
|
209 |
padding: 1em;
|
210 |
}
|
211 |
.sa_offer_content img {
|
212 |
+
width: 65%;
|
213 |
margin: 0 auto;
|
214 |
}
|
215 |
.sa_dismiss {
|
222 |
</style>
|
223 |
<div class="sa_offer">
|
224 |
<div class="sa_offer_content">
|
225 |
+
<a href="https://www.icegram.com/?utm_source=in_app&utm_medium=<?php echo esc_attr( $this->prefix ); ?>_banner&utm_campaign=<?php echo esc_attr( $this->campaign ); ?>" target="_blank">
|
226 |
+
<img src="<?php echo esc_url( plugins_url( 'sa-includes/images/ig_bfcm2022.png', $this->plugin_file ) ); ?>" />
|
227 |
</a>
|
228 |
<div class="sa_dismiss"> <!-- Do not change this class -->
|
229 |
<a href="javascript:void(0)" style="color: black; text-decoration: none;" title="<?php echo esc_attr__( 'Dismiss', 'temporary-login-without-password' ); ?>"><?php echo esc_html__( 'Hide this', 'temporary-login-without-password' ); ?></a>
|
includes/sa-includes/images/halloween-2022.png
DELETED
Binary file
|
includes/sa-includes/images/ig_bfcm2022.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -171,15 +171,16 @@ Yes. There is no limit to create temporary logins. You can create as many tempor
|
|
171 |
|
172 |
== Upgrade Notice ==
|
173 |
|
174 |
-
= 1.8.
|
175 |
|
176 |
-
* Update: WordPress 6.0.3 compatibility check
|
177 |
* Update: Minor improvements
|
178 |
-
* Update: POT file
|
179 |
-
* Fix: PHP Fatal error: Uncaught Error: Call to undefined function get_current_screen() in some cases
|
180 |
|
181 |
== Changelog ==
|
182 |
|
|
|
|
|
|
|
|
|
183 |
**1.8.0 [2022-10-21]**
|
184 |
|
185 |
* Update: WordPress 6.0.3 compatibility check
|
171 |
|
172 |
== Upgrade Notice ==
|
173 |
|
174 |
+
= 1.8.1 =
|
175 |
|
|
|
176 |
* Update: Minor improvements
|
|
|
|
|
177 |
|
178 |
== Changelog ==
|
179 |
|
180 |
+
**1.8.1 [2022-11-18]**
|
181 |
+
|
182 |
+
* Update: Minor improvements
|
183 |
+
|
184 |
**1.8.0 [2022-10-21]**
|
185 |
|
186 |
* Update: WordPress 6.0.3 compatibility check
|
temporary-login-without-password.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Temporary Login Without Password
|
4 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
5 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
6 |
-
* Version: 1.8.
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org/
|
9 |
* Requires at least: 3.0.1
|
3 |
* Plugin Name: Temporary Login Without Password
|
4 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
5 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
6 |
+
* Version: 1.8.1
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org/
|
9 |
* Requires at least: 3.0.1
|