: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// Prevent direct file access
if (!defined('ABSPATH')) {
if (!current_user_can('manage_options')) {
wp_die(__('You do not have sufficient permissions to access this page.'));
$poptinidcheck = get_option('poptin_id', (isset($myOption_def) ? $myOption_def : false));
$poptin_marketplace_token_check = get_option('poptin_marketplace_token', (isset($myOption_def) ? $myOption_def : false));
$poptin_marketplace_email_id_check = get_option('poptin_marketplace_email_id', (isset($myOption_def) ? $myOption_def : false));
$go_to_dashboard_url = "https://app.popt.in/";
* We need to pre-fill the email ID of the WP Admin site.
* The same would be stored in an option as well, for confirmation purposes.
* Everything looks settled here now.
$admin_email = get_bloginfo('admin_email');
if ($poptin_marketplace_token_check && $poptin_marketplace_email_id_check) {
$go_to_dashboard_url = "admin.php?page=Poptin&poptin_logmein=true";
<script type="text/javascript">
<?php if ($poptin_marketplace_token_check && $poptin_marketplace_email_id_check) { ?>
var do_auto_login = false;
var do_auto_login = false;
<div class="poptin-overlay"></div>
<div class="poptinWrap d-flex">
<div class="poptinContentBox">
<img src="<?php echo POPTIN_URL . '/assets/images/poptinlogo.png' ?>" width="147px" />
<div class="poptinLogged" style="<?php echo ($poptinidcheck ? 'display:block' : 'display:none') ?>">
<div class="title"><?php _e("Youโre All Set ๐", 'ppbase'); ?></div>
<?php _e(" Poptin is installed on your website ", 'ppbase'); ?>
<!-- <form id="" class="ppFormRegister ppForm" action="" target="" method="POST"> -->
<a class="cbutton dashboard-link goto_dashboard_button_pp_updatable" href="<?php echo esc_url($go_to_dashboard_url) ?>" target="_blank">
Go to your Dashboard <img src="<?php echo POPTIN_URL . '/assets/images/polygon.svg' ?>" alt="">
<div class="other-links d-flex justify-center">
<span><?php _e("Click on the button to create and manage your poptins", "ppbase"); ?> </span>
<div class="important-note d-flex justify-start">
<img src="<?php echo POPTIN_URL . '/assets/images/important-note.png' ?>" width="24px" height="24px" />
<b>Note: </b> If you have a cache plugin, please delete cache so the code will be updated.
If you use WP-Rocket, <a href="https://help.poptin.com/article/show/87331-how-to-exclude-poptin-s-snippet-from-wp-rocket" target="_blank"> follow this guide</a>.
<div class="ppaccountmanager" style="<?php echo ($poptinidcheck ? 'display:none' : 'display:block') ?>">
<div class="poptinView popotinRegister">
<div class="title"><?php _e("Sign Up for Free", 'ppbase'); ?></div>
<h4 class="description"><?php _e("๐ Create beautiful pop ups and forms", 'ppbase'); ?></h4>
<form id="registration_form" class="ppFormRegister ppForm" action="" target="" method="POST">
<div class="tooltip-enable">
<div class="tooltip d-flex align-center" id="oopsiewrongemailid" style="display: none;">
<img src="<?php echo POPTIN_URL . '/assets/images/squircle.png' ?>" width="24px" />
Oopsie... Please enter a valid email address
<div class="input-controls">
<input class="poptin_input" type="text" name="email" id="poptinRegisterEmail" autofocus name="email" value="">
<label>Enter your email</label>
<!-- <input class="poptin_input" type="text" id="poptinRegisterEmail" name="email" placeholder="Enter your email" autofocus value="<?php ?>" placeholder="example@poptin.com" /> -->
<input type="hidden" name="action" class="poptin_input" value="poptin_register" />
<input type="hidden" name="register" class="poptin_input" value="true" />
<input type="hidden" name="security" class="poptin_input" value="<?php echo wp_create_nonce("poptin-fe-register"); ?>" />
<button class="ppSubmit pp_signup_btn poptin_signup_button">
<span class="text-content">
Sign Up <img src="<?php echo POPTIN_URL . '/assets/images/polygon.svg' ?>" alt="">
<span class="loader" style="display: none;">
<div class="lds-ellipsis">
<div class="other-links">
<a href="#" class="ppLogin"><?php _e("Already have an account?", "ppbase"); ?> </a>
<div class="poptinView popotinLogin" style="display: none;">
<div class="title"><?php _e("You Look Familiar", 'ppbase'); ?></div>
<form id="map_poptin_id_form" class="ppFormLogin ppForm">
<div class="user-id d-flex justify-end">
<a href="#" data-toggle="modal" data-target="#whereIsMyId" data-keyboard="true" class="wheremyid"><?php _e("Where is my user ID?", 'ppbase'); ?></a>
<div class="tooltip-enable">
<div class="tooltip d-flex align-center" id="oopsiewrongid" style="display: none;">
<img src="<?php echo POPTIN_URL . '/assets/images/squircicle-error.svg' ?>" width="24px" />
Oopsie... Wrong user ID. <a href="#" data-toggle="modal" data-target="#whereIsMyId" class="wheremyid"><?php _e("Where is my user ID?", 'ppbase'); ?></a>
<div class="input-controls">
<input type="text" class="poptin_input" autofocus id="poptinUserId">
<label>Enter your User ID</label>
<button class="ppSubmit poptin_submit_button">
<span class="text-content">
Connect <img src="<?php echo POPTIN_URL . '/assets/images/polygon.svg' ?>" alt="">
<span class="loader" style="display: none;">
<div class="lds-ellipsis">
<input type="hidden" id="ppFormIdRegister" value="<?php echo wp_create_nonce("ppFormIdRegister") ?>">
<div class="other-links">
<a href="#" class="ppRegister"><?php _e("Or, create a new Poptin account", "ppbase"); ?> </a>
<div class="poptinContentFoot d-flex justify-space-between align-center poptinWalkthroughVideoTrigger">
<div class="play-button d-flex align-center justify-center">
<!-- sg oidsioguoi dsg -->
<img src="<?php echo POPTIN_URL . '/assets/images/play-icon.svg' ?>" width="150px" />
<?php _e("Weโve made a short video to explain you everything", "ppbase") ?>
<div class="poptinFeaturesBox">
<div class="poptinFeatures">
<div class="poptinFeaturesTitle">
<?php _e("Hereโs What Poptin Can Do For You", "ppbase") ?>
<div class="poptinFeaturesList d-flex justify-space-between">
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Drag & Drop Editor", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("50+ Integrations", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("A/B Testing", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Autoresponders", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Behavioral triggers", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Beautiful Pop Up Templates", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Built-in Analytics", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Manage Accounts", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Exit-intent Technology", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/list-icon.svg' ?>" />
<?php _e("Targeting rules", "ppbase") ?>
<div class="poptinTestimonials d-flex align-center flex-column">
<div class="d-flex align-center justify-center">
<img src="<?php echo POPTIN_URL . '/assets/images/Yuval-Haimov.png' ?>" alt="" width="52px">
<div class="poptinNameCompany">
<div class="name"><?php _e("Yuval Haimov", "ppbase") ?></div>
<div class="position"><?php _e("CEO, ClickCease", "ppbase") ?></div>
<?php _e("From the moment I signed up everything was easy to use. We started converting more leads instantly. They update poptin all the time and add more and more features.", "ppbase") ?>
<img src="<?php echo POPTIN_URL . '/assets/images/poptinWrapBg.png' ?>" alt="" srcset="">
<div class="poptinWrap" id="customersWrap" style="<?php echo ($poptinidcheck ? 'display:none' : 'display:block') ?>">
<div class="title d-flex align-center justify-center">
<?php _e("Our customers", "ppbase") ?> <img src="<?php echo POPTIN_URL . '/assets/images/heart.svg' ?>" alt="" width="26px" height="21px" style="margin: 0px 6px"> <?php _e("Poptin", "ppbase") ?> </div>
<div class="customersReview">
<div class="poptinCustomer">
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/Deepak-Shukla.png' ?>" alt="" width="52px">
<div class="poptinNameCompany">
<div class="name">Deepak Shukla</div>
<div class="position">CEO, Pearl Lemon</div>
Been v.impressed with Poptin and the team behind it so far.
Great responses times from support.
The road map looks great. I highly recommend.
<div class="poptinCustomer">
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/Liraz-P.png' ?>" alt="" width="52px">
<div class="poptinNameCompany">
<div class="name"> Liraz Postan </div>
CEO, LP Marketing Services</div>
The software is easy to use, super friendly UI, the support team was always there to solve any issue and product is always supporting RTM opportunities: Black Friday deals etc.
<div class="poptinCustomer">
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/Michael-Kamleitner.png' ?>" alt="" width="52px">
<div class="poptinNameCompany">
<div class="name">Michael Kamleitner </div>
<div class="position">CEO, Walls.io</div>
Getting started with poptin was a breeze โ we've implemented the widget and connected it to our newsletter within minutes. Our site's conversion rate skyrocketed!
<div class="poptinCustomer">
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/Ramesh-Gurung.png' ?>" alt="" width="52px">
<div class="poptinNameCompany">
<div class="name">Ramesh Gurung </div>
<div class="position">CEO, nepalpyramids</div>
Have tried many other popup plugins but unfortunately, nothing actually worked for me. The only plugin that really worked with the easiest interface is Poptin. Thank you so much.
<div class="poptinCustomer">
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/Roy-Povarchik.png' ?>" alt="" width="52px">
<div class="poptinNameCompany">
<div class="name">Roy Povarchik</div>
<div class="position">CEO, stardom.io</div>
Poptin was a crucial tool in growing our mailing list and following for our podcast โStrike Goldโ. Its A/B testing features helped us improve our messaging and offer to our listeners.
<div class="poptinCustomer">
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/Myriam-Plamondon.png' ?>" alt="" width="52px">
<div class="poptinNameCompany">
<div class="name">Myriam Plamondon</div>
<div class="position">Founder, Talent Fou</div>
Integrates flawlessly with WordPress. This plugin integrates very easily, you donโt have anything to do except activating it.
<div class="marketplace d-flex justify-center">
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/capterra-inc.svg' ?>" alt="">
<div class="d-flex align-center">(4.8/5) <img src="<?php echo POPTIN_URL . '/assets/images/star.svg' ?>" /></div>
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/wordpress.svg' ?>" class="wordpress">
<div class="d-flex align-center">(4.9/5) <img src="<?php echo POPTIN_URL . '/assets/images/star.svg' ?>" /></div>
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/g2Crowdlogo.svg' ?>" alt="">
<div class="d-flex align-center">(4.8/5) <img src="<?php echo POPTIN_URL . '/assets/images/star.svg' ?>" /></div>
<div class="d-flex align-center">
<img src="<?php echo POPTIN_URL . '/assets/images/facebook.svg' ?>" alt="">
<div class="d-flex align-center">(5/5) <img src="<?php echo POPTIN_URL . '/assets/images/star.svg' ?>" /></div>
<div class="poptinLearnMore d-flex justify-center">
<img class="parrot" src="<?php echo POPTIN_URL . '/assets/images/Parrot.svg' ?>" alt="">
<a href="<?php echo POPTIN_FRONT_SITE ?>?utm_source=wordpress" target="_blank">
Learn more about us at poptin.com <img src="<?php echo POPTIN_URL . '/assets/images/arrow-head.svg' ?>" alt=""></a>
<div id="whereIsMyId" class="modal fade" role="dialog" data-keyboard="true">
<div class="content d-flex align-center justify-center">
<div class="card d-flex flex-column align-center justify-center">
<div class="close-button" data-dismiss="modal">
<img src="<?php echo POPTIN_URL . '/assets/images/close-icon.svg' ?>" alt="">
<div class="card-content">
<img src="<?php echo POPTIN_URL . '/assets/images/user-id-1.png' ?>" alt="">
<div class="step d-flex justify-center align-center">
<p class="step-description">
Go to your dashboard, in the top bar click on โInstallation Codeโ
<img src="<?php echo POPTIN_URL . '/assets/images/user-id-2.png' ?>" alt="">
<div class="step d-flex justify-center align-center">
<p class="step-description">
<img src="<?php echo POPTIN_URL . '/assets/images/user-id-3.png' ?>" alt="">
<div class="step d-flex justify-center align-center">
<p class="step-description">
<div class="foot d-flex align-center">
<button data-dismiss="modal">Close</button>
<div id="byebyeModal" class="modal fade" role="dialog">
<div class="content d-flex align-center justify-center">
<div class="card d-flex align-center flex-column">
<div class="close-button" data-dismiss="modal">
<img src="<?php echo POPTIN_URL . '/assets/images/close-icon.svg' ?>" alt="">
<h4>Poptin snippet has been removed. <br /> See you around โ๏ธ</h4>
<button data-dismiss="modal">Close</button>
<!-- Just Making Sure Modal -->
<div id="makingsure" class="modal fade" role="dialog">
<div class="content d-flex align-center justify-center">
<div class="card d-flex align-center flex-column">
<div class="close-button" data-dismiss="modal">
<img src="<?php echo POPTIN_URL . '/assets/images/close-icon.svg' ?>" alt="">
<h3>Just Making Sure</h3>
<h4>Are you sure you want to remove Poptin?</h4>
<img src="<?php echo POPTIN_URL . '/assets/images/exit-parrot.svg' ?>" alt="">
<button class="deactivate-poptin-confirm-yes">
<span class="text-content">
</span><span class="loader" style="display: none;">
<div class="lds-ellipsis">
<input type="hidden" id="ppFormIdDeactivate" value="<?php echo wp_create_nonce("ppFormIdDeactivate") ?>">
<div class="cancel-text" data-dismiss="modal">Cancel</div>
<!-- Look familiar Modal -->
<div id="lookfamiliar" class="modal fade" role="dialog">
<div class="content d-flex align-center justify-center">
<div class="card d-flex align-center flex-column">
<div class="close-button" data-dismiss="modal">
<img src="<?php echo POPTIN_URL . '/assets/images/close-icon.svg' ?>" alt="">
<h3>You Look Familiar</h3>
<h4>You already have a Poptin account with this email address.</h4>
<button class="ppLogin" data-dismiss="modal">Enter your user ID</button>
<div class="cancel-text" data-dismiss="modal">Cancel</div>
<!-- Explanatory Video Modal -->
<div id="poptinExplanatoryVideo" class="modal fade" role="dialog">
<div class="content d-flex align-center justify-center">
<div class="card d-flex align-center flex-column">
<div class="close-button" data-dismiss="modal">
<img src="<?php echo POPTIN_URL . '/assets/images/close-icon.svg' ?>" alt="">
<h3>Video Walkthrough</h3>
<div class="youtubeVideoContainer" style="background:url(<?php echo POPTIN_URL . '/assets/images/youtubeBackground.png' ?>) no-repeat">
<div class="youtubeVideo">
<iframe width=755" height="409" src="https://www.youtube.com/embed/uvTw_mmA32Q?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
<!-- <form action="https://app.popt.in/login" method="GET" class="dummy_form" id="dummy_form" target="_blank">