Version Description
Download this release
Release Info
| Developer | WPMUDEV |
| Plugin | |
| Version | 4.4.5 |
| Comparing to | |
| See all releases | |
Code changes from version 4.4.4 to 4.4.5
- popover.php +4 -4
- popoverincludes/classes/popoveradmin.php +34 -34
- popoverincludes/classes/popoverajax.php +4 -17
- readme.txt +1 -1
popover.php
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
-
Plugin Name: WordPress
|
| 4 |
Plugin URI: http://premium.wpmudev.org
|
| 5 |
-
Description: Allows you to display a fancy
|
| 6 |
Author: Barry (Incsub)
|
| 7 |
-
Version: 4.4.
|
| 8 |
Author URI: http://premium.wpmudev.org
|
| 9 |
WDP ID: 123
|
| 10 |
|
|
@@ -33,7 +33,7 @@ set_popover_url(__FILE__);
|
|
| 33 |
set_popover_dir(__FILE__);
|
| 34 |
|
| 35 |
if(is_admin()) {
|
| 36 |
-
include_once('popoverincludes/external/wpmudev-dash-notification.php');
|
| 37 |
|
| 38 |
require_once('popoverincludes/includes/class_wd_help_tooltips.php');
|
| 39 |
require_once('popoverincludes/classes/popover.help.php');
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
+
Plugin Name: WordPress Pop Up Plugin
|
| 4 |
Plugin URI: http://premium.wpmudev.org
|
| 5 |
+
Description: Allows you to display a fancy pop up to visitors sitewide or per blog, a *very* effective way of advertising a mailing list, special offer or running a plain old ad.
|
| 6 |
Author: Barry (Incsub)
|
| 7 |
+
Version: 4.4.5
|
| 8 |
Author URI: http://premium.wpmudev.org
|
| 9 |
WDP ID: 123
|
| 10 |
|
| 33 |
set_popover_dir(__FILE__);
|
| 34 |
|
| 35 |
if(is_admin()) {
|
| 36 |
+
//include_once('popoverincludes/external/wpmudev-dash-notification.php');
|
| 37 |
|
| 38 |
require_once('popoverincludes/includes/class_wd_help_tooltips.php');
|
| 39 |
require_once('popoverincludes/classes/popover.help.php');
|
popoverincludes/classes/popoveradmin.php
CHANGED
|
@@ -98,15 +98,15 @@ if(!class_exists('popoveradmin')) {
|
|
| 98 |
|
| 99 |
if(is_multisite() && (defined('PO_GLOBAL') && PO_GLOBAL == true)) {
|
| 100 |
if(function_exists('is_network_admin') && is_network_admin()) {
|
| 101 |
-
add_menu_page(__('Pop
|
| 102 |
}
|
| 103 |
} else {
|
| 104 |
if(!function_exists('is_network_admin') || !is_network_admin()) {
|
| 105 |
-
add_menu_page(__('Pop
|
| 106 |
}
|
| 107 |
}
|
| 108 |
|
| 109 |
-
$addnew = add_submenu_page('popover', __('Create New Pop
|
| 110 |
add_submenu_page('popover', __('Manage Add-ons Plugins','popover'), __('Add-ons','popover'), 'manage_options', "popoveraddons", array(&$this,'handle_addons_panel'));
|
| 111 |
|
| 112 |
add_submenu_page('popover', __('Settings','popover'), __('Settings','popover'), 'manage_options', "popoversettings", array(&$this,'handle_settings_page'));
|
|
@@ -257,8 +257,8 @@ if(!class_exists('popoveradmin')) {
|
|
| 257 |
|
| 258 |
wp_localize_script('popoveradminjs', 'popover', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
| 259 |
'ordernonce' => wp_create_nonce('popover_order'),
|
| 260 |
-
'dragerror' => __('An error occured updating the Pop
|
| 261 |
-
'deletepopover' => __('Are you sure you want to delete this Pop
|
| 262 |
));
|
| 263 |
|
| 264 |
wp_enqueue_style('popoveradmincss', popover_url('popoverincludes/css/popovermenu.css'), array(), $this->build);
|
|
@@ -689,26 +689,26 @@ if(!class_exists('popoveradmin')) {
|
|
| 689 |
}
|
| 690 |
|
| 691 |
$messages = array();
|
| 692 |
-
$messages[1] = __('Pop
|
| 693 |
-
$messages[2] = __('Pop
|
| 694 |
|
| 695 |
-
$messages[3] = __('Pop
|
| 696 |
-
$messages[4] = __('Pop
|
| 697 |
|
| 698 |
-
$messages[5] = __('Pop
|
| 699 |
-
$messages[6] = __('Pop
|
| 700 |
|
| 701 |
-
$messages[7] = __('Pop
|
| 702 |
|
| 703 |
-
$messages[8] = __('Pop
|
| 704 |
-
$messages[9] = __('Pop
|
| 705 |
|
| 706 |
-
$messages[10] = __('Pop
|
| 707 |
-
$messages[11] = __('Pop
|
| 708 |
?>
|
| 709 |
<div class='wrap'>
|
| 710 |
<div class="icon32" id="icon-themes"><br></div>
|
| 711 |
-
<h2><?php _e('Edit Pop
|
| 712 |
|
| 713 |
<?php
|
| 714 |
if ( isset($_GET['msg']) ) {
|
|
@@ -743,7 +743,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 743 |
<?php
|
| 744 |
wp_original_referer_field(true, 'previous'); wp_nonce_field('bulk-popovers');
|
| 745 |
|
| 746 |
-
$columns = array( "name" => __('Pop
|
| 747 |
"rules" => __('Conditions','popover'),
|
| 748 |
"active" => __('Active','popover')
|
| 749 |
);
|
|
@@ -888,7 +888,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 888 |
$columncount = count($columns) + 2;
|
| 889 |
?>
|
| 890 |
<tr valign="middle" class="alternate" >
|
| 891 |
-
<td colspan="<?php echo $columncount; ?>" scope="row"><?php _e('No Pop
|
| 892 |
</tr>
|
| 893 |
<?php
|
| 894 |
}
|
|
@@ -937,7 +937,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 937 |
$popover->popover_settings = unserialize($popover->popover_settings);
|
| 938 |
} else {
|
| 939 |
$popover = new stdClass;
|
| 940 |
-
$popover->popover_title = __('New Pop
|
| 941 |
$popover->popover_content = "";
|
| 942 |
}
|
| 943 |
|
|
@@ -992,9 +992,9 @@ if(!class_exists('popoveradmin')) {
|
|
| 992 |
<div class='wrap nosubsub'>
|
| 993 |
<div class="icon32" id="icon-themes"><br></div>
|
| 994 |
<?php if($id !== false) { ?>
|
| 995 |
-
<h2><?php echo __('Edit Pop
|
| 996 |
<?php } else { ?>
|
| 997 |
-
<h2><?php echo __('Add Pop
|
| 998 |
<?php } ?>
|
| 999 |
<div class='popover-liquid-left'>
|
| 1000 |
|
|
@@ -1007,7 +1007,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 1007 |
|
| 1008 |
<div id='edit-popover' class='popover-holder-wrap'>
|
| 1009 |
<div class='sidebar-name no-movecursor'>
|
| 1010 |
-
<h3><?php echo __('Pop
|
| 1011 |
</div>
|
| 1012 |
<div class='popover-holder'>
|
| 1013 |
|
|
@@ -1080,7 +1080,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 1080 |
<h3><?php _e('Appearance settings','popover'); ?></h3>
|
| 1081 |
<table class='form-table' style=''>
|
| 1082 |
<tr>
|
| 1083 |
-
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop
|
| 1084 |
<td valign='top'>
|
| 1085 |
<?php _e('Width:','popover'); ?>
|
| 1086 |
<input type='text' name='popoverwidth' id='popoverwidth' style='width: 5em;' value='<?php echo $popover_size['width']; ?>' />
|
|
@@ -1090,7 +1090,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 1090 |
</tr>
|
| 1091 |
|
| 1092 |
<tr>
|
| 1093 |
-
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop
|
| 1094 |
<td valign='top'>
|
| 1095 |
<?php _e('Left:','popover'); ?>
|
| 1096 |
<input type='text' name='popoverleft' id='popoverleft' style='width: 5em;' value='<?php echo $popover_location['left']; ?>' />
|
|
@@ -1100,7 +1100,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 1100 |
</tr>
|
| 1101 |
|
| 1102 |
<tr>
|
| 1103 |
-
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop
|
| 1104 |
<td valign='top'>
|
| 1105 |
<?php _e('Left:','popover'); ?>
|
| 1106 |
<input type='text' name='popovermarginleft' style='width: 5em;' value='<?php echo $popover_margin['left']; ?>' />
|
|
@@ -1146,7 +1146,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 1146 |
|
| 1147 |
if(count($availablestyles) > 1) {
|
| 1148 |
?>
|
| 1149 |
-
<h3><?php _e('Pop
|
| 1150 |
<table class='form-table'>
|
| 1151 |
|
| 1152 |
<tr>
|
|
@@ -1190,7 +1190,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 1190 |
<h3><?php _e('Pop over appearance delays','popover'); ?></h3>
|
| 1191 |
<table class='form-table' style=''>
|
| 1192 |
<tr>
|
| 1193 |
-
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Show Pop
|
| 1194 |
<td valign='top'>
|
| 1195 |
<select name='popoverdelay'>
|
| 1196 |
<option value='immediate' <?php selected('immediate', $popover_delay); ?>><?php _e('immediately','popover'); ?></option>
|
|
@@ -1688,7 +1688,7 @@ if(!class_exists('popoveradmin')) {
|
|
| 1688 |
<div class='wrap nosubsub'>
|
| 1689 |
|
| 1690 |
<div class="icon32" id="icon-options-general"><br></div>
|
| 1691 |
-
<h2><?php _e('Pop
|
| 1692 |
|
| 1693 |
<?php
|
| 1694 |
if ( isset($_GET['msg']) ) {
|
|
@@ -1707,18 +1707,18 @@ if(!class_exists('popoveradmin')) {
|
|
| 1707 |
?>
|
| 1708 |
|
| 1709 |
<div class="postbox">
|
| 1710 |
-
<h3 class="hndle" style='cursor:auto;'><span><?php _e('Pop
|
| 1711 |
<div class="inside">
|
| 1712 |
-
<p><?php _e('Select the loading method you want to use for your Pop
|
| 1713 |
<ul>
|
| 1714 |
-
<li><em><?php _e('- Page Footer : The pop
|
| 1715 |
-
<li><em><?php _e('- External Load : The pop
|
| 1716 |
</ul>
|
| 1717 |
|
| 1718 |
<table class="form-table">
|
| 1719 |
<tbody>
|
| 1720 |
<tr valign="top">
|
| 1721 |
-
<th scope="row"><?php _e('Pop
|
| 1722 |
<td>
|
| 1723 |
<?php
|
| 1724 |
$settings = get_popover_option('popover-settings', array( 'loadingmethod' => 'external'));
|
| 98 |
|
| 99 |
if(is_multisite() && (defined('PO_GLOBAL') && PO_GLOBAL == true)) {
|
| 100 |
if(function_exists('is_network_admin') && is_network_admin()) {
|
| 101 |
+
add_menu_page(__('Pop Ups','popover'), __('Pop Ups','popover'), 'manage_options', 'popover', array(&$this,'handle_popover_admin'), popover_url('popoverincludes/images/window.png'));
|
| 102 |
}
|
| 103 |
} else {
|
| 104 |
if(!function_exists('is_network_admin') || !is_network_admin()) {
|
| 105 |
+
add_menu_page(__('Pop Ups','popover'), __('Pop Ups','popover'), 'manage_options', 'popover', array(&$this,'handle_popover_admin'), popover_url('popoverincludes/images/window.png'));
|
| 106 |
}
|
| 107 |
}
|
| 108 |
|
| 109 |
+
$addnew = add_submenu_page('popover', __('Create New Pop Up','popover'), __('Create New','popover'), 'manage_options', "popover&action=add", array(&$this,'handle_addnewpopover_panel'));
|
| 110 |
add_submenu_page('popover', __('Manage Add-ons Plugins','popover'), __('Add-ons','popover'), 'manage_options', "popoveraddons", array(&$this,'handle_addons_panel'));
|
| 111 |
|
| 112 |
add_submenu_page('popover', __('Settings','popover'), __('Settings','popover'), 'manage_options', "popoversettings", array(&$this,'handle_settings_page'));
|
| 257 |
|
| 258 |
wp_localize_script('popoveradminjs', 'popover', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
| 259 |
'ordernonce' => wp_create_nonce('popover_order'),
|
| 260 |
+
'dragerror' => __('An error occured updating the Pop Up order.','popover'),
|
| 261 |
+
'deletepopover' => __('Are you sure you want to delete this Pop Up?','popover')
|
| 262 |
));
|
| 263 |
|
| 264 |
wp_enqueue_style('popoveradmincss', popover_url('popoverincludes/css/popovermenu.css'), array(), $this->build);
|
| 689 |
}
|
| 690 |
|
| 691 |
$messages = array();
|
| 692 |
+
$messages[1] = __('Pop Up updated.','popover');
|
| 693 |
+
$messages[2] = __('Pop Up not updated.','popover');
|
| 694 |
|
| 695 |
+
$messages[3] = __('Pop Up activated.','popover');
|
| 696 |
+
$messages[4] = __('Pop Up not activated.','popover');
|
| 697 |
|
| 698 |
+
$messages[5] = __('Pop Up deactivated.','popover');
|
| 699 |
+
$messages[6] = __('Pop Up not deactivated.','popover');
|
| 700 |
|
| 701 |
+
$messages[7] = __('Pop Up activation toggled.','popover');
|
| 702 |
|
| 703 |
+
$messages[8] = __('Pop Up deleted.','popover');
|
| 704 |
+
$messages[9] = __('Pop Up not deleted.','popover');
|
| 705 |
|
| 706 |
+
$messages[10] = __('Pop Up added.','popover');
|
| 707 |
+
$messages[11] = __('Pop Up not added.','popover');
|
| 708 |
?>
|
| 709 |
<div class='wrap'>
|
| 710 |
<div class="icon32" id="icon-themes"><br></div>
|
| 711 |
+
<h2><?php _e('Edit Pop Ups','popover'); ?><a class="add-new-h2" href="admin.php?page=<?php echo $page; ?>&action=add"><?php _e('Add New','membership'); ?></a></h2>
|
| 712 |
|
| 713 |
<?php
|
| 714 |
if ( isset($_GET['msg']) ) {
|
| 743 |
<?php
|
| 744 |
wp_original_referer_field(true, 'previous'); wp_nonce_field('bulk-popovers');
|
| 745 |
|
| 746 |
+
$columns = array( "name" => __('Pop Up Name', 'popover'),
|
| 747 |
"rules" => __('Conditions','popover'),
|
| 748 |
"active" => __('Active','popover')
|
| 749 |
);
|
| 888 |
$columncount = count($columns) + 2;
|
| 889 |
?>
|
| 890 |
<tr valign="middle" class="alternate" >
|
| 891 |
+
<td colspan="<?php echo $columncount; ?>" scope="row"><?php _e('No Pop Ups were found.','popover'); ?></td>
|
| 892 |
</tr>
|
| 893 |
<?php
|
| 894 |
}
|
| 937 |
$popover->popover_settings = unserialize($popover->popover_settings);
|
| 938 |
} else {
|
| 939 |
$popover = new stdClass;
|
| 940 |
+
$popover->popover_title = __('New Pop Up','popover');
|
| 941 |
$popover->popover_content = "";
|
| 942 |
}
|
| 943 |
|
| 992 |
<div class='wrap nosubsub'>
|
| 993 |
<div class="icon32" id="icon-themes"><br></div>
|
| 994 |
<?php if($id !== false) { ?>
|
| 995 |
+
<h2><?php echo __('Edit Pop Up','popover'); ?></h2>
|
| 996 |
<?php } else { ?>
|
| 997 |
+
<h2><?php echo __('Add Pop Up','popover'); ?></h2>
|
| 998 |
<?php } ?>
|
| 999 |
<div class='popover-liquid-left'>
|
| 1000 |
|
| 1007 |
|
| 1008 |
<div id='edit-popover' class='popover-holder-wrap'>
|
| 1009 |
<div class='sidebar-name no-movecursor'>
|
| 1010 |
+
<h3><?php echo __('Pop Up Settings','popover'); ?></h3>
|
| 1011 |
</div>
|
| 1012 |
<div class='popover-holder'>
|
| 1013 |
|
| 1080 |
<h3><?php _e('Appearance settings','popover'); ?></h3>
|
| 1081 |
<table class='form-table' style=''>
|
| 1082 |
<tr>
|
| 1083 |
+
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop Up Size','popover'); ?></strong></th>
|
| 1084 |
<td valign='top'>
|
| 1085 |
<?php _e('Width:','popover'); ?>
|
| 1086 |
<input type='text' name='popoverwidth' id='popoverwidth' style='width: 5em;' value='<?php echo $popover_size['width']; ?>' />
|
| 1090 |
</tr>
|
| 1091 |
|
| 1092 |
<tr>
|
| 1093 |
+
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop Up Position','popover'); ?></strong></th>
|
| 1094 |
<td valign='top'>
|
| 1095 |
<?php _e('Left:','popover'); ?>
|
| 1096 |
<input type='text' name='popoverleft' id='popoverleft' style='width: 5em;' value='<?php echo $popover_location['left']; ?>' />
|
| 1100 |
</tr>
|
| 1101 |
|
| 1102 |
<tr>
|
| 1103 |
+
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop Up Margins','popover'); ?></strong></th>
|
| 1104 |
<td valign='top'>
|
| 1105 |
<?php _e('Left:','popover'); ?>
|
| 1106 |
<input type='text' name='popovermarginleft' style='width: 5em;' value='<?php echo $popover_margin['left']; ?>' />
|
| 1146 |
|
| 1147 |
if(count($availablestyles) > 1) {
|
| 1148 |
?>
|
| 1149 |
+
<h3><?php _e('Pop Up Style','popover'); ?></h3>
|
| 1150 |
<table class='form-table'>
|
| 1151 |
|
| 1152 |
<tr>
|
| 1190 |
<h3><?php _e('Pop over appearance delays','popover'); ?></h3>
|
| 1191 |
<table class='form-table' style=''>
|
| 1192 |
<tr>
|
| 1193 |
+
<th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Show Pop Up','popover'); ?></strong></th>
|
| 1194 |
<td valign='top'>
|
| 1195 |
<select name='popoverdelay'>
|
| 1196 |
<option value='immediate' <?php selected('immediate', $popover_delay); ?>><?php _e('immediately','popover'); ?></option>
|
| 1688 |
<div class='wrap nosubsub'>
|
| 1689 |
|
| 1690 |
<div class="icon32" id="icon-options-general"><br></div>
|
| 1691 |
+
<h2><?php _e('Pop Up Settings','popover'); ?></h2>
|
| 1692 |
|
| 1693 |
<?php
|
| 1694 |
if ( isset($_GET['msg']) ) {
|
| 1707 |
?>
|
| 1708 |
|
| 1709 |
<div class="postbox">
|
| 1710 |
+
<h3 class="hndle" style='cursor:auto;'><span><?php _e('Pop Up loading method','popover'); ?></span></h3>
|
| 1711 |
<div class="inside">
|
| 1712 |
+
<p><?php _e('Select the loading method you want to use for your Pop Ups.','popover'); ?></p>
|
| 1713 |
<ul>
|
| 1714 |
+
<li><em><?php _e('- Page Footer : The pop up is included as part of the page html.','popover'); ?></em></li>
|
| 1715 |
+
<li><em><?php _e('- External Load : The pop up is loaded separately from the page, this is the best option if you are running a caching system.','popover'); ?></em></li>
|
| 1716 |
</ul>
|
| 1717 |
|
| 1718 |
<table class="form-table">
|
| 1719 |
<tbody>
|
| 1720 |
<tr valign="top">
|
| 1721 |
+
<th scope="row"><?php _e('Pop Up loaded using','popover'); ?></th>
|
| 1722 |
<td>
|
| 1723 |
<?php
|
| 1724 |
$settings = get_popover_option('popover-settings', array( 'loadingmethod' => 'external'));
|
popoverincludes/classes/popoverajax.php
CHANGED
|
@@ -172,13 +172,13 @@ if(!class_exists('popoverajax')) {
|
|
| 172 |
break;
|
| 173 |
|
| 174 |
case "internal": $internal = str_replace('^http://','',get_option('home'));
|
| 175 |
-
if($this->referrer_matches(
|
| 176 |
$show = false;
|
| 177 |
}
|
| 178 |
break;
|
| 179 |
|
| 180 |
case "referrer": $match = $popover_ereg;
|
| 181 |
-
if(!$this->referrer_matches(
|
| 182 |
$show = false;
|
| 183 |
}
|
| 184 |
break;
|
|
@@ -198,19 +198,6 @@ if(!class_exists('popoverajax')) {
|
|
| 198 |
}
|
| 199 |
break;
|
| 200 |
|
| 201 |
-
case 'incountry': $incountry = $this->incountry( $popover_incountry );
|
| 202 |
-
if(!$incountry || $incountry === 'XX') {
|
| 203 |
-
$show = false;
|
| 204 |
-
}
|
| 205 |
-
break;
|
| 206 |
-
|
| 207 |
-
case 'notincountry':
|
| 208 |
-
$incountry = $this->incountry( $popover_notincountry );
|
| 209 |
-
if($incountry || $incountry === 'XX') {
|
| 210 |
-
$show = false;
|
| 211 |
-
}
|
| 212 |
-
break;
|
| 213 |
-
|
| 214 |
default: if(has_filter('popover_process_rule_' . $key)) {
|
| 215 |
if(!apply_filters( 'popover_process_rule_' . $key, false )) {
|
| 216 |
$show = false;
|
|
@@ -411,7 +398,7 @@ if(!class_exists('popoverajax')) {
|
|
| 411 |
|
| 412 |
function referrer_matches($check, $referer = '') {
|
| 413 |
|
| 414 |
-
if(preg_match( '
|
| 415 |
return true;
|
| 416 |
} else {
|
| 417 |
return false;
|
|
@@ -450,7 +437,7 @@ if(!class_exists('popoverajax')) {
|
|
| 450 |
|
| 451 |
if(!empty($urllist)) {
|
| 452 |
foreach( $urllist as $ul ) {
|
| 453 |
-
if(preg_match( '
|
| 454 |
return true;
|
| 455 |
}
|
| 456 |
}
|
| 172 |
break;
|
| 173 |
|
| 174 |
case "internal": $internal = str_replace('^http://','',get_option('home'));
|
| 175 |
+
if($this->referrer_matches( $internal, $_REQUEST['thereferrer'] )) {
|
| 176 |
$show = false;
|
| 177 |
}
|
| 178 |
break;
|
| 179 |
|
| 180 |
case "referrer": $match = $popover_ereg;
|
| 181 |
+
if(!$this->referrer_matches( $match, $_REQUEST['thereferrer'])) {
|
| 182 |
$show = false;
|
| 183 |
}
|
| 184 |
break;
|
| 198 |
}
|
| 199 |
break;
|
| 200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
default: if(has_filter('popover_process_rule_' . $key)) {
|
| 202 |
if(!apply_filters( 'popover_process_rule_' . $key, false )) {
|
| 203 |
$show = false;
|
| 398 |
|
| 399 |
function referrer_matches($check, $referer = '') {
|
| 400 |
|
| 401 |
+
if(preg_match( '#' . $check . '#i', $referer )) {
|
| 402 |
return true;
|
| 403 |
} else {
|
| 404 |
return false;
|
| 437 |
|
| 438 |
if(!empty($urllist)) {
|
| 439 |
foreach( $urllist as $ul ) {
|
| 440 |
+
if(preg_match( '#^' . $ul . '$#i', $url )) {
|
| 441 |
return true;
|
| 442 |
}
|
| 443 |
}
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: WPMUDEV
|
|
| 3 |
Tags: buddypress, wpmu, wpmu plugin, buddypress plugin, making money, seo, Advertising, multisite, Advertising
|
| 4 |
Requires at least: 3.1
|
| 5 |
Tested up to: 3.5.1
|
| 6 |
-
Stable tag: 4.4.
|
| 7 |
|
| 8 |
Allows you to display a fancy popup to visitors, a *very* effective way of advertising a mailing list, special offer or running a plain old ad.
|
| 9 |
|
| 3 |
Tags: buddypress, wpmu, wpmu plugin, buddypress plugin, making money, seo, Advertising, multisite, Advertising
|
| 4 |
Requires at least: 3.1
|
| 5 |
Tested up to: 3.5.1
|
| 6 |
+
Stable tag: 4.4.5
|
| 7 |
|
| 8 |
Allows you to display a fancy popup to visitors, a *very* effective way of advertising a mailing list, special offer or running a plain old ad.
|
| 9 |
|
