Hustle – Pop-Ups, Slide-ins and Email Opt-ins - Version 4.4.5.4

Version Description

  • Performance improvements
  • Fixed issue with dynamic JavaScript loading
  • Added PO_PLUGIN_DIR in config for changing plugin directory name
Download this release

Release Info

Developer WPMUDEV
Plugin Icon 128x128 Hustle – Pop-Ups, Slide-ins and Email Opt-ins
Version 4.4.5.4
Comparing to
See all releases

Code changes from version 4.4.5.1 to 4.4.5.4

popover-load-js.php DELETED
@@ -1,167 +0,0 @@
1
- <?php
2
- /*
3
- * Popover selective loading file - had to move from JS to PHP because we needed some extra processing that couldn't be handled in a JS file :(
4
- */
5
- // Header settings code based on code from load-scripts.php
6
- error_reporting(0);
7
-
8
- $compress = ( isset($_GET['c']) && $_GET['c'] );
9
- $force_gzip = ( $compress && 'gzip' == $_GET['c'] );
10
- $expires_offset = 31536000;
11
- $out = '';
12
-
13
- header('Content-Type: application/x-javascript; charset=UTF-8');
14
- header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
15
- header("Cache-Control: public, max-age=$expires_offset");
16
-
17
- if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) {
18
- header('Vary: Accept-Encoding'); // Handle proxies
19
- if ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {
20
- header('Content-Encoding: deflate');
21
- $out = gzdeflate( $out, 3 );
22
- } elseif ( false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) {
23
- header('Content-Encoding: gzip');
24
- $out = gzencode( $out, 3 );
25
- }
26
- }
27
-
28
- define( 'POPOVERJSLOCATION', dirname($_SERVER["SCRIPT_FILENAME"]) );
29
- define( 'ABSPATH', dirname(dirname(dirname(POPOVERJSLOCATION))) . '/' );
30
- define( 'WPINC', 'wp-includes' );
31
-
32
- // Load WordPress so that we can get some bits and pieces.
33
- require_once( ABSPATH . 'wp-load.php');
34
-
35
- ?>
36
- //
37
- // Javascript file to selectively load the WPMUDEV Pop Up
38
- //
39
- // Written by Barry (Incsub)
40
- //
41
- //
42
- //
43
-
44
- // Where the admin-ajax.php file is relative to the domain - have to hardcode for now due to this being a JS file
45
- var po_adminajax = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
46
-
47
- // Enable us to get some cookie information - from http://stackoverflow.com/questions/5639346/shortest-function-for-reading-a-cookie-in-javascript
48
- function po_get_cookie(name) {
49
-
50
- var nameEQ = name + "=";
51
- var ca = document.cookie.split(';');
52
- for(var i=0;i < ca.length;i++) {
53
- var c = ca[i];
54
- while (c.charAt(0)==' ') c = c.substring(1,c.length);
55
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
56
- }
57
- return null;
58
- }
59
-
60
- function po_createCookie(name,value,days) {
61
- if (days) {
62
- var date = new Date();
63
- date.setTime(date.getTime()+(days*24*60*60*1000));
64
- var expires = "; expires="+date.toGMTString();
65
- }
66
- else var expires = "";
67
- document.cookie = name+"="+value+expires+"; path=/";
68
- }
69
-
70
- function po_removeMessageBoxForever() {
71
- jQuery('#darkbackground').remove();
72
- jQuery(this).parents(popovername).remove();
73
- po_createCookie('popover_never_view', 'hidealways', 365);
74
- return false;
75
- }
76
-
77
- function po_removeMessageBox() {
78
- jQuery('#darkbackground').remove();
79
- jQuery(this).parents(popovername).remove();
80
- return false;
81
- }
82
-
83
- function po_loadMessageBox( ) {
84
-
85
- // move the data back to the data variable, from mydata so we can use it without changing a chunk of code :)
86
- data = mydata;
87
-
88
- if( data['html'] != '' ) {
89
- // Set the name for other functions to use
90
- popovername = '#' + data['name'];
91
-
92
- jQuery( '<style type="text/css">' + data['style'] + '</style>' ).appendTo('head');
93
- jQuery( data['html'] ).appendTo('body');
94
-
95
- if( data['usejs'] == 'yes' ) {
96
-
97
- jQuery('#' + data['name']).width(jQuery('#message').width());
98
- jQuery('#' + data['name']).height(jQuery('#message').height());
99
-
100
- jQuery('#' + data['name']).css('top', (jQuery(window).height() / 2) - (jQuery('#message').height() / 2) );
101
- jQuery('#' + data['name']).css('left', (jQuery(window).width() / 2) - (jQuery('#message').width() / 2) );
102
- }
103
-
104
- jQuery('#' + data['name']).css('visibility', 'visible');
105
- jQuery('#darkbackground').css('visibility', 'visible');
106
-
107
- jQuery('#clearforever').click(po_removeMessageBoxForever);
108
- jQuery('#closebox').click(po_removeMessageBox);
109
-
110
- jQuery('#message').hover( function() {jQuery('.claimbutton').removeClass('hide');}, function() {jQuery('.claimbutton').addClass('hide');});
111
- }
112
-
113
- }
114
-
115
- function po_onsuccess( data ) {
116
- // set the data to be a global variable so we can grab it after the timeout
117
- mydata = data;
118
-
119
- if(data['name'] != 'nopoover') {
120
- window.setTimeout( po_loadMessageBox, data['delay'] );
121
- }
122
-
123
- }
124
-
125
- function po_load_popover() {
126
-
127
- var theajax = po_adminajax;
128
- var thefrom = window.location;
129
- var thereferrer = document.referrer;
130
-
131
- // Check if we are forcing a popover - if not then set it to a default value of 0
132
- if (typeof force_popover === 'undefined') {
133
- force_popover = 0;
134
- }
135
-
136
- jQuery.ajax( {
137
- url : theajax,
138
- dataType : 'jsonp',
139
- jsonpCallback : 'po_onsuccess',
140
- data : { action : 'popover_selective_ajax',
141
- thefrom : thefrom.toString(),
142
- thereferrer : thereferrer.toString(),
143
- active_popover : force_popover.toString()
144
- },
145
- success : function(data) {
146
-
147
- }
148
- }
149
- );
150
-
151
- return false;
152
- }
153
-
154
-
155
- // The main function
156
- function po_selectiveLoad() {
157
-
158
- po_load_popover();
159
-
160
- }
161
-
162
- // Call when the page is fully loaded
163
- jQuery(window).load(po_selectiveLoad);
164
-
165
- <?php
166
- exit;
167
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
popover.php CHANGED
@@ -1,53 +1,49 @@
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.1
8
  Author URI: http://premium.wpmudev.org
9
  WDP ID: 123
10
 
11
- Copyright Incsub (http://incsub.com)
12
 
13
- This program is free software; you can redistribute it and/or modify
14
- it under the terms of the GNU General Public License as published by
15
- the Free Software Foundation; either version 2 of the License, or
16
- (at your option) any later version.
17
 
18
- This program is distributed in the hope that it will be useful,
19
- but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- GNU General Public License for more details.
22
 
23
- You should have received a copy of the GNU General Public License
24
- along with this program; if not, write to the Free Software
25
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
26
 
27
- */
 
28
 
29
- require_once('popoverincludes/includes/config.php');
30
- require_once('popoverincludes/includes/functions.php');
31
  // Set up my location
32
  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');
40
- require_once('popoverincludes/classes/popoveradmin.php');
41
- require_once('popoverincludes/classes/popoverajax.php');
42
 
43
  $popover = new popoveradmin();
44
  $popoverajax = new popoverajax();
45
  } else {
46
  // Adding ajax so we don't have to duplicate checking functionality in the public class
47
  // NOTE: it's not being used for ajax here
48
- require_once('popoverincludes/classes/popoverajax.php');
49
-
50
- require_once('popoverincludes/classes/popoverpublic.php');
51
 
52
  $popover = new popoverpublic();
53
  $popoverajax = new popoverajax();
1
  <?php
2
  /*
3
  Plugin Name: WordPress Pop Up Plugin
4
+ Plugin URI: http://premium.wpmudev.org/project/the-pop-over-plugin/
5
+ Description: Allows you to display a fancy popup (powered as a popover!) 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), Marko Miljus (Incsub)
7
+ Version: 4.4.5.4
8
  Author URI: http://premium.wpmudev.org
9
  WDP ID: 123
10
 
11
+ Copyright 2007-2013 Incsub (http://incsub.com)
12
 
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License (Version 2 - GPLv2) as published by
15
+ the Free Software Foundation.
 
16
 
17
+ This program is distributed in the hope that it will be useful,
18
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ GNU General Public License for more details.
21
 
22
+ You should have received a copy of the GNU General Public License
23
+ along with this program; if not, write to the Free Software
24
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
+ */
26
 
27
+ require_once( dirname(__FILE__) . '/popoverincludes/includes/config.php');
28
+ require_once( dirname(__FILE__) . '/popoverincludes/includes/functions.php');
29
 
 
 
30
  // Set up my location
31
  set_popover_url(__FILE__);
32
  set_popover_dir(__FILE__);
33
 
34
  if(is_admin()) {
35
+ require_once( dirname(__FILE__) . '/popoverincludes/includes/class_wd_help_tooltips.php');
36
+ require_once( dirname(__FILE__) . '/popoverincludes/classes/popover.help.php');
37
+ require_once( dirname(__FILE__) . '/popoverincludes/classes/popoveradmin.php');
38
+ require_once( dirname(__FILE__) . '/popoverincludes/classes/popoverajax.php');
 
 
39
 
40
  $popover = new popoveradmin();
41
  $popoverajax = new popoverajax();
42
  } else {
43
  // Adding ajax so we don't have to duplicate checking functionality in the public class
44
  // NOTE: it's not being used for ajax here
45
+ require_once( dirname(__FILE__) . '/popoverincludes/classes/popoverajax.php');
46
+ require_once( dirname(__FILE__) . '/popoverincludes/classes/popoverpublic.php');
 
47
 
48
  $popover = new popoverpublic();
49
  $popoverajax = new popoverajax();
popoverincludes/classes/popoveradmin.php CHANGED
@@ -1,58 +1,64 @@
1
  <?php
 
2
 
3
- if(!class_exists('popoveradmin')) {
4
 
5
- class popoveradmin {
 
 
 
 
6
 
7
- var $build = 5;
8
 
9
- var $db;
10
 
11
- var $tables = array( 'popover', 'popover_ip_cache' );
12
- var $popover;
13
- var $popover_ip_cache;
14
 
15
- function __construct() {
 
 
16
 
17
- global $wpdb;
 
18
 
19
- $this->db =& $wpdb;
20
 
21
- foreach($this->tables as $table) {
22
- $this->$table = popover_db_prefix($this->db, $table);
23
- }
 
24
 
25
- add_action( 'admin_menu', array(&$this, 'add_menu_pages' ) );
26
- add_action( 'network_admin_menu', array(&$this, 'add_menu_pages' ) );
27
 
28
- add_action( 'plugins_loaded', array(&$this, 'load_textdomain'));
29
 
30
- // Add header files
31
- add_action('load-toplevel_page_popover', array(&$this, 'add_admin_header_popover_menu'));
32
- add_action('load-pop-overs_page_popoveraddons', array(&$this, 'add_admin_header_popover_addons'));
33
- add_action('load-pop-overs_page_popoversettings', array(&$this, 'add_admin_header_popover_settings'));
34
 
35
- // Ajax calls
36
- add_action( 'wp_ajax_popover_update_order', array(&$this, 'ajax_update_popover_order') );
 
37
 
38
- $installed = get_option('popover_installed', false);
 
 
39
 
40
- if($installed === false || $installed != $this->build) {
41
- $this->install();
42
 
43
- update_option('popover_installed', $this->build);
44
- }
45
 
46
- }
 
 
47
 
48
- function popoveradmin() {
49
- $this->__construct();
50
- }
51
 
52
- function install() {
53
-
54
- if($this->db->get_var( "SHOW TABLES LIKE '" . $this->popover . "' ") != $this->popover) {
55
- $sql = "CREATE TABLE `" . $this->popover . "` (
56
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
57
  `popover_title` varchar(250) DEFAULT NULL,
58
  `popover_content` text,
@@ -60,1705 +66,2024 @@ if(!class_exists('popoveradmin')) {
60
  `popover_order` bigint(20) DEFAULT '0',
61
  `popover_active` int(11) DEFAULT '0',
62
  PRIMARY KEY (`id`)
63
- )";
64
-
65
- $this->db->query($sql);
66
 
67
- }
 
68
 
69
- // Add in IP cache table
70
- if($this->db->get_var( "SHOW TABLES LIKE '" . $this->popover_ip_cache . "' ") != $this->popover_ip_cache) {
71
- $sql = "CREATE TABLE `" . $this->popover_ip_cache . "` (
72
  `IP` varchar(12) NOT NULL DEFAULT '',
73
  `country` varchar(2) DEFAULT NULL,
74
  `cached` bigint(20) DEFAULT NULL,
75
  PRIMARY KEY (`IP`),
76
  KEY `cached` (`cached`)
77
- )";
78
-
79
- $this->db->query($sql);
80
-
81
- }
82
-
83
- }
84
-
85
- function load_textdomain() {
86
-
87
- $locale = apply_filters( 'popover_locale', get_locale() );
88
- $mofile = popover_dir( "popoverincludes/languages/popover-$locale.mo" );
89
-
90
- if ( file_exists( $mofile ) )
91
- load_textdomain( 'popover', $mofile );
92
-
93
- }
94
-
95
- function add_menu_pages() {
96
-
97
- global $submenu;
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&amp;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'));
113
-
114
- }
115
-
116
- function sanitise_array($arrayin) {
117
-
118
- foreach( (array) $arrayin as $key => $value) {
119
- $arrayin[$key] = htmlentities(stripslashes($value) ,ENT_QUOTES, 'UTF-8');
120
- }
121
-
122
- return $arrayin;
123
- }
124
-
125
- function ajax_update_popover_order() {
126
-
127
- if(check_ajax_referer( 'popover_order', '_ajax_nonce', false )) {
128
- $newnonce = wp_create_nonce('popover_order');
129
-
130
- $data = $_POST['data'];
131
- parse_str($data);
132
- foreach($dragbody as $key => $value) {
133
- $this->reorder_popovers( $value, $key );
134
- }
135
- die($newnonce);
136
- } else {
137
- die('fail');
138
- }
139
-
140
- }
141
-
142
- function update_admin_header_popover() {
143
-
144
- global $action, $page, $allowedposttags;
145
-
146
- wp_reset_vars( array('action', 'page') );
147
-
148
- if($action == 'updated') {
149
- check_admin_referer('update-popover');
150
-
151
- $usemsg = 1;
152
-
153
- if(function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
154
- $updateoption = 'update_site_option';
155
- $getoption = 'get_site_option';
156
- } else {
157
- $updateoption = 'update_option';
158
- $getoption = 'get_option';
159
- }
160
-
161
- if(isset($_POST['popovercontent'])) {
162
- if ( !current_user_can('unfiltered_html') ) {
163
- if(wp_kses($_POST['popovercontent'], $allowedposttags) != $_POST['popovercontent']) {
164
- $usemsg = 2;
165
- }
166
- $updateoption('popover_content', wp_kses($_POST['popovercontent'], $allowedposttags));
167
- } else {
168
- $updateoption('popover_content', $_POST['popovercontent']);
169
- }
170
-
171
- }
172
-
173
- if(isset($_POST['popoverwidth']) || isset($_POST['popoverheight'])) {
174
-
175
- $width = $_POST['popoverwidth'];
176
- $height = $_POST['popoverheight'];
177
-
178
- if($width == '') $width = '500px';
179
- if($height == '') $height = '200px';
180
-
181
- $updateoption('popover_size', array("width" => $width, "height" => $height));
182
- }
183
-
184
- if(isset($_POST['popoverleft']) || isset($_POST['popovertop'])) {
185
-
186
- $left = $_POST['popoverleft'];
187
- $top = $_POST['popovertop'];
188
 
189
- if($left == '') $left = '100px';
190
- if($top == '') $top = '100px';
 
191
 
192
- $updateoption('popover_location', array("left" => $left, "top" => $top));
193
- }
194
 
195
- if(isset($_POST['popovermargintop']) || isset($_POST['popovermarginleft']) || isset($_POST['popovermarginright']) || isset($_POST['popovermarginbottom'])) {
 
196
 
197
- $mleft = $_POST['popovermarginleft'];
198
- $mtop = $_POST['popovermargintop'];
199
- $mright = $_POST['popovermarginright'];
200
- $mbottom = $_POST['popovermarginbottom'];
201
 
202
- if($mleft == '') $mleft = '0px';
203
- if($mtop == '') $mtop = '0px';
204
- if($mright == '') $mright = '0px';
205
- if($mbottom == '') $mbottom = '0px';
206
 
207
- $updateoption('popover_margin', array('left' => $mleft, 'top' => $mtop, 'right' => $mright, 'bottom' => $mbottom));
208
 
209
- }
 
 
 
 
 
 
 
 
210
 
211
- if(isset($_POST['popoverbackground']) || isset($_POST['popoverforeground'])) {
 
212
 
213
- $back = $_POST['popoverbackground'];
214
- $fore = $_POST['popoverforeground'];
215
 
216
- if($back == '') $back = 'FFFFFF';
217
- if($fore == '') $fore = '000000';
218
 
219
- $updateoption('popover_colour', array("back" => $back, "fore" => $fore));
220
- }
 
221
 
222
- if(isset($_POST['popovercheck'])) {
 
223
 
224
- $updateoption('popover_check', $_POST['popovercheck']);
225
 
226
- if(isset($_POST['popoverereg'])) {
227
- $updateoption('popover_ereg', $_POST['popoverereg']);
228
- }
229
 
230
- if(isset($_POST['popovercount'])) {
231
- $updateoption('popover_count', intval($_POST['popovercount']) );
232
- }
 
 
 
 
 
 
 
233
 
234
- }
235
 
236
- if(isset($_POST['popoverusejs'])) {
237
- $updateoption('popover_usejs', 'yes' );
238
- } else {
239
- $updateoption('popover_usejs', 'no' );
240
- }
241
 
242
- wp_safe_redirect( add_query_arg( array('msg' => $usemsg), wp_get_referer() ) );
243
 
244
- }
 
245
 
246
- }
247
 
248
- function add_admin_header_popover_menu() {
 
 
 
 
 
 
249
 
250
- $this->add_admin_header_core();
 
 
 
 
 
 
 
 
 
251
 
252
- if(isset($_GET['action']) && in_array($_GET['action'], array('edit', 'add'))) {
253
- $this->add_admin_header_popover();
254
- } else {
255
- wp_enqueue_script('popoverdragadminjs', popover_url('popoverincludes/js/jquery.tablednd_0_5.js'), array('jquery'), $this->build);
256
- wp_enqueue_script('popoveradminjs', popover_url('popoverincludes/js/popovermenu.js'), array('jquery', 'popoverdragadminjs' ), $this->build);
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);
 
 
 
265
 
266
- // Check for transfer
267
- if(isset($_GET['transfer'])) {
268
- $this->handle_popover_transfer();
269
- }
270
 
271
- // Check for existing popovers
272
- if($this->has_existing_popover()) {
273
- add_action('all_admin_notices', array(&$this, 'show_popover_transfer_offer'));
274
- }
275
 
276
- $this->update_popover_admin();
277
- }
278
 
279
- }
 
 
 
280
 
281
- function add_admin_header_popover_settings() {
 
282
 
283
- global $action, $page;
284
 
285
- wp_reset_vars( array('action', 'page') );
 
 
 
286
 
287
- $this->update_settings_page();
 
 
 
 
 
 
 
288
 
289
- }
 
290
 
291
- function has_existing_popover() {
292
 
293
- if(function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
294
- $getoption = 'get_site_option';
295
- } else {
296
- $getoption = 'get_option';
297
- }
298
 
299
- $popsexist = $this->db->get_var( "SELECT COUNT(*) FROM {$this->popover}");
 
 
 
300
 
301
- if($popsexist == 0 && $getoption('popover_content','no') != 'no' && $getoption('popover_notranfers', 'no') == 'no') {
302
- // No pops - and one set in the options
303
- return true;
304
- } else {
305
- return false;
306
- }
307
- }
308
 
309
- function show_popover_transfer_offer() {
310
 
311
- echo '<div class="updated fade below-h2"><p>' . sprintf(__("Welcome to Popover, would you like to transfer your existing Popover to the new format? <a href='%s'>Yes please transfer it</a> / <a href='%s'>No thanks, I'll create a new one myself.</a>", 'popover'), wp_nonce_url('admin.php?page=popover&amp;transfer=yes', 'transferpopover'), wp_nonce_url('admin.php?page=popover&amp;transfer=no','notransferpopover') ) . '</p></div>';
312
 
313
- }
 
 
314
 
315
- function handle_popover_transfer() {
 
 
 
316
 
317
- if(function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
318
- $updateoption = 'update_site_option';
319
- $getoption = 'get_site_option';
320
- } else {
321
- $updateoption = 'update_option';
322
- $getoption = 'get_option';
323
- }
324
 
325
- switch($_GET['transfer']) {
 
 
326
 
327
- case 'yes': check_admin_referer('transferpopover');
328
- $popover = array();
329
 
330
- $popover['popover_title'] = __('Transferred Popover', 'popover');
331
- $popover['popover_content'] = $getoption('popover_content');
332
 
333
- $popover['popover_settings'] = array();
334
- $popover['popover_settings']['popover_size'] = $getoption('popover_size');
335
- $popover['popover_settings']['popover_location'] = $getoption('popover_location');;
336
- $popover['popover_settings']['popover_colour'] = $getoption('popover_colour');
337
- $popover['popover_settings']['popover_margin'] = $getoption('popover_margin');
338
- $popover['popover_settings']['popover_check'] = $getoption('popover_check');
339
 
340
- $popover['popover_settings']['popover_count'] = $getoption('popover_count');
341
- $popover['popover_settings']['popover_usejs'] = $getoption('popover_usejs');
 
 
 
342
 
343
- $popover['popover_settings']['popover_style'] = 'Default';
344
 
345
- $popover['popover_settings'] = serialize($popover['popover_settings']);
 
 
 
346
 
347
- $popover['popover_active'] = 1;
 
 
 
348
 
349
- $this->db->insert( $this->popover, $popover );
350
- wp_safe_redirect( remove_query_arg( 'transfer', remove_query_arg( '_wpnonce' ) ) );
351
- break;
352
 
353
- case 'no': check_admin_referer('notransferpopover');
354
- $updateoption('popover_notranfers', 'yes');
355
- wp_safe_redirect( remove_query_arg( 'transfer', remove_query_arg( '_wpnonce' ) ) );
356
- break;
357
- }
358
 
359
- }
360
 
361
- function add_admin_header_core() {
362
- // Add in help pages
363
- $screen = get_current_screen();
364
- $help = new Popover_Help( $screen );
365
- $help->attach();
366
 
367
- }
 
368
 
369
- function add_admin_header_popover() {
370
 
371
- global $wp_version;
 
 
 
 
372
 
373
- wp_enqueue_script('popoveradminjs', popover_url('popoverincludes/js/popoveradmin.js'), array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), $this->build);
374
 
375
- if(version_compare( preg_replace('/-.*$/', '', $wp_version), "3.3", '<')) {
376
- wp_enqueue_style('popoveradmincss', popover_url('popoverincludes/css/popoveradmin.css'), array('widgets'), $this->build);
377
- } else {
378
- wp_enqueue_style('popoveradmincss', popover_url('popoverincludes/css/popoveradmin.css'), array(), $this->build);
379
- }
 
 
380
 
381
- $this->update_admin_header_popover();
382
- }
383
 
384
- function add_admin_header_popover_addons() {
 
385
 
386
- $this->add_admin_header_core();
387
 
388
- $this->handle_addons_panel_updates();
389
- }
 
 
 
 
 
390
 
391
- function reorder_popovers( $popover_id, $order ) {
392
 
393
- $this->db->update( $this->popover, array( 'popover_order' => $order ), array( 'id' => $popover_id) );
 
394
 
395
- }
 
396
 
397
- function get_popovers() {
 
 
 
 
 
 
398
 
399
- $sql = "SELECT * FROM {$this->popover} ORDER BY popover_order ASC";
 
400
 
401
- return $this->db->get_results( $sql );
402
 
403
- }
404
 
405
- function get_popover( $id ) {
406
- return $this->db->get_row( $this->db->prepare("SELECT * FROM {$this->popover} WHERE id = %d", $id) );
407
- }
408
 
409
- function activate_popover( $id ) {
410
- return $this->db->update( $this->popover, array( 'popover_active' => 1 ), array( 'id' => $id) );
411
- }
412
 
413
- function deactivate_popover( $id ) {
414
- return $this->db->update( $this->popover, array( 'popover_active' => 0 ), array( 'id' => $id) );
415
- }
 
 
 
416
 
417
- function toggle_popover( $id ) {
 
 
 
 
 
418
 
419
- $sql = $this->db->prepare( "UPDATE {$this->popover} SET popover_active = NOT popover_active WHERE id = %d", $id );
420
 
421
- return $this->db->query( $sql );
422
 
423
- }
424
 
425
- function delete_popover( $id ) {
 
 
 
 
426
 
427
- return $this->db->query( $this->db->prepare( "DELETE FROM {$this->popover} WHERE id = %d", $id ) );
 
428
 
429
- }
430
 
431
- function add_popover( $data ) {
432
 
433
- global $action, $page, $allowedposttags;
 
434
 
435
- $popover = array();
436
 
437
- $popover['popover_title'] = $_POST['popover_title'];
 
438
 
439
- if ( !current_user_can('unfiltered_html') ) {
440
- $popover['popover_content'] = wp_kses($_POST['popover_content'], $allowedposttags);
441
- } else {
442
- $popover['popover_content'] = $_POST['popover_content'];
443
- }
444
 
445
- $popover['popover_settings'] = array();
446
- $popover['popover_settings']['popover_size'] = array( 'width' => $_POST['popoverwidth'], 'height' => $_POST['popoverheight'] );
447
- $popover['popover_settings']['popover_location'] = array( 'left' => $_POST['popoverleft'], 'top' => $_POST['popovertop'] );
448
- $popover['popover_settings']['popover_colour'] = array( 'back' => $_POST['popoverbackground'], 'fore' => $_POST['popoverforeground'] );
449
- $popover['popover_settings']['popover_margin'] = array( 'left' => $_POST['popovermarginleft'], 'top' => $_POST['popovermargintop'], 'right' => $_POST['popovermarginright'], 'bottom' => $_POST['popovermarginbottom'] );
450
- $popover['popover_settings']['popover_check'] = $_POST['popovercheck'];
451
 
452
- if(isset($_POST['popoverereg'])) {
453
- $popover['popover_settings']['popover_ereg'] = $_POST['popoverereg'];
454
- } else {
455
- $popover['popover_settings']['popover_ereg'] = '';
456
- }
457
 
458
- if(isset($_POST['popovercount'])) {
459
- $popover['popover_settings']['popover_count'] = $_POST['popovercount'];
460
- } else {
461
- $popover['popover_settings']['popover_count'] = 3;
462
- }
463
 
464
- if($_POST['popoverusejs'] == 'yes') {
465
- $popover['popover_settings']['popover_usejs'] = 'yes';
466
- } else {
467
- $popover['popover_settings']['popover_usejs'] = 'no';
468
- }
469
 
470
- $popover['popover_settings']['popover_style'] = $_POST['popoverstyle'];
 
 
471
 
472
- if(isset($_POST['popoverhideforeverlink']) && $_POST['popoverhideforeverlink'] == 'yes') {
473
- $popover['popover_settings']['popoverhideforeverlink'] = 'yes';
474
- } else {
475
- $popover['popover_settings']['popoverhideforeverlink'] = 'no';
476
- }
477
 
478
- if(isset($_POST['popoverdelay'])) {
479
- $popover['popover_settings']['popoverdelay'] = $_POST['popoverdelay'];
480
- }
481
 
482
- if(isset($_POST['popoveronurl'])) {
483
- $popover['popover_settings']['onurl'] = explode("\n", $_POST['popoveronurl']);
484
- }
485
 
486
- if(isset($_POST['popovernotonurl'])) {
487
- $popover['popover_settings']['notonurl'] = explode("\n", $_POST['popovernotonurl']);
488
- }
489
 
490
- if(isset($_POST['popoverincountry'])) {
491
- $popover['popover_settings']['incountry'] = $_POST['popoverincountry'];
492
- }
493
 
494
- if(isset($_POST['popovernotincountry'])) {
495
- $popover['popover_settings']['notincountry'] = $_POST['popovernotincountry'];
496
- }
497
 
498
- $popover['popover_settings'] = serialize($popover['popover_settings']);
499
 
500
- if(isset($_POST['addandactivate'])) {
501
- $popover['popover_active'] = 1;
502
- }
503
 
504
- return $this->db->insert( $this->popover, $popover );
505
 
506
- }
 
 
 
 
507
 
508
- function update_popover( $id, $data ) {
 
 
 
 
 
509
 
510
- global $action, $page, $allowedposttags;
 
 
 
 
511
 
512
- $popover = array();
 
 
 
 
513
 
514
- $popover['popover_title'] = $_POST['popover_title'];
 
 
 
 
515
 
516
- if ( !current_user_can('unfiltered_html') ) {
517
- $popover['popover_content'] = wp_kses($_POST['popover_content'], $allowedposttags);
518
- } else {
519
- $popover['popover_content'] = $_POST['popover_content'];
520
- }
521
 
522
- $popover['popover_settings'] = array();
523
- $popover['popover_settings']['popover_size'] = array( 'width' => $_POST['popoverwidth'], 'height' => $_POST['popoverheight'] );
524
- $popover['popover_settings']['popover_location'] = array( 'left' => $_POST['popoverleft'], 'top' => $_POST['popovertop'] );
525
- $popover['popover_settings']['popover_colour'] = array( 'back' => $_POST['popoverbackground'], 'fore' => $_POST['popoverforeground'] );
526
- $popover['popover_settings']['popover_margin'] = array( 'left' => $_POST['popovermarginleft'], 'top' => $_POST['popovermargintop'], 'right' => $_POST['popovermarginright'], 'bottom' => $_POST['popovermarginbottom'] );
527
- $popover['popover_settings']['popover_check'] = $_POST['popovercheck'];
528
 
529
- if(isset($_POST['popoverereg'])) {
530
- $popover['popover_settings']['popover_ereg'] = $_POST['popoverereg'];
531
- } else {
532
- $popover['popover_settings']['popover_ereg'] = '';
533
- }
534
 
535
- if(isset($_POST['popovercount'])) {
536
- $popover['popover_settings']['popover_count'] = $_POST['popovercount'];
537
- } else {
538
- $popover['popover_settings']['popover_count'] = 3;
539
- }
540
 
541
- if($_POST['popoverusejs'] == 'yes') {
542
- $popover['popover_settings']['popover_usejs'] = 'yes';
543
- } else {
544
- $popover['popover_settings']['popover_usejs'] = 'no';
545
- }
546
 
547
- $popover['popover_settings']['popover_style'] = $_POST['popoverstyle'];
 
 
548
 
549
- if(isset($_POST['popoverhideforeverlink']) && $_POST['popoverhideforeverlink'] == 'yes') {
550
- $popover['popover_settings']['popoverhideforeverlink'] = 'yes';
551
- } else {
552
- $popover['popover_settings']['popoverhideforeverlink'] = 'no';
553
- }
554
 
555
- if(isset($_POST['popoverdelay'])) {
556
- $popover['popover_settings']['popoverdelay'] = $_POST['popoverdelay'];
557
- }
558
 
559
- if(isset($_POST['popoveronurl'])) {
560
- $popover['popover_settings']['onurl'] = explode("\n", $_POST['popoveronurl']);
561
- }
562
 
563
- if(isset($_POST['popovernotonurl'])) {
564
- $popover['popover_settings']['notonurl'] = explode("\n", $_POST['popovernotonurl']);
565
- }
566
 
567
- if(isset($_POST['popoverincountry'])) {
568
- $popover['popover_settings']['incountry'] = $_POST['popoverincountry'];
569
- }
570
 
571
- if(isset($_POST['popovernotincountry'])) {
572
- $popover['popover_settings']['notincountry'] = $_POST['popovernotincountry'];
573
- }
574
 
575
- $popover['popover_settings'] = serialize($popover['popover_settings']);
576
 
577
- return $this->db->update( $this->popover, $popover, array( 'id' => $id ) );
578
 
579
- }
 
 
 
 
580
 
581
- function update_popover_admin() {
582
- global $action, $page;
 
 
 
 
583
 
584
- wp_reset_vars( array('action', 'page') );
 
 
 
 
585
 
586
- if(isset($_REQUEST['action']) || isset($_REQUEST['action2'])) {
587
-
588
- if(!empty($_REQUEST['action2'])) {
589
- $_REQUEST['action'] = $_REQUEST['action2'];
590
- }
591
-
592
- switch($_REQUEST['action']) {
593
-
594
-
595
- case 'activate': $id = (int) $_GET['popover'];
596
- if(!empty($id)) {
597
- check_admin_referer('toggle-popover-' . $id);
598
-
599
- if( $this->activate_popover( $id ) ) {
600
- wp_safe_redirect( add_query_arg( 'msg', 3, wp_get_referer() ) );
601
- } else {
602
- wp_safe_redirect( add_query_arg( 'msg', 4, wp_get_referer() ) );
603
- }
604
-
605
- }
606
- break;
607
-
608
-
609
- case 'deactivate': $id = (int) $_GET['popover'];
610
- if(!empty($id)) {
611
- check_admin_referer('toggle-popover-' . $id);
612
-
613
- if( $this->deactivate_popover( $id ) ) {
614
- wp_safe_redirect( add_query_arg( 'msg', 5, wp_get_referer() ) );
615
- } else {
616
- wp_safe_redirect( add_query_arg( 'msg', 6, wp_get_referer() ) );
617
- }
618
-
619
- }
620
- break;
621
-
622
- case 'toggle': $ids = $_REQUEST['popovercheck'];
623
-
624
- if(!empty($ids)) {
625
- check_admin_referer('bulk-popovers');
626
- foreach( (array) $ids as $id ) {
627
- $this->toggle_popover( $id );
628
- }
629
- wp_safe_redirect( add_query_arg( 'msg', 7, wp_get_referer() ) );
630
- }
631
- break;
632
-
633
- case 'delete': $id = (int) $_GET['popover'];
634
-
635
- if(!empty($id)) {
636
- check_admin_referer('delete-popover-' . $id);
637
-
638
- if( $this->delete_popover( $id ) ) {
639
- wp_safe_redirect( add_query_arg( 'msg', 8, wp_get_referer() ) );
640
- } else {
641
- wp_safe_redirect( add_query_arg( 'msg', 9, wp_get_referer() ) );
642
- }
643
- }
644
- break;
645
-
646
- case 'added': $id = (int) $_POST['id'];
647
- if(empty($id)) {
648
- check_admin_referer('update-popover');
649
- if($this->add_popover( $_POST )) {
650
- wp_safe_redirect( add_query_arg( 'msg', 10, 'admin.php?page=popover' ) );
651
- } else {
652
- wp_safe_redirect( add_query_arg( 'msg', 11, 'admin.php?page=popover' ) );
653
- }
654
- }
655
- break;
656
-
657
- case 'updated': $id = (int) $_POST['id'];
658
- if(!empty($id)) {
659
- check_admin_referer('update-popover');
660
- if($this->update_popover( $id, $_POST )) {
661
- wp_safe_redirect( add_query_arg( 'msg', 1, 'admin.php?page=popover' ) );
662
- } else {
663
- wp_safe_redirect( add_query_arg( 'msg', 2, 'admin.php?page=popover' ) );
664
- }
665
- }
666
- break;
667
-
668
- }
669
-
670
-
671
- }
672
-
673
- }
674
-
675
- function handle_popover_admin() {
676
- global $action, $page;
677
-
678
- if($action == 'edit') {
679
- if(isset($_GET['popover'])) {
680
- $id = (int) $_GET['popover'];
681
- $this->handle_popover_edit_panel( $id );
682
- return; // So we don't see the rest of this page
683
- }
684
- }
685
-
686
- if($action == 'add') {
687
- $this->handle_popover_edit_panel( false );
688
- return; // So we don't see the rest of this page
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']) ) {
715
- echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
716
- $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
717
- }
718
-
719
- ?>
720
-
721
- <form method="get" action="?page=<?php echo esc_attr($page); ?>" id="posts-filter">
722
-
723
- <input type='hidden' name='page' value='<?php echo esc_attr($page); ?>' />
724
-
725
- <div class="tablenav">
726
-
727
- <div class="alignleft actions">
728
- <select name="action">
729
- <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
730
- <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
731
- </select>
732
- <input type="submit" class="button-secondary action" id="doaction" name="doaction" value="<?php _e('Apply', 'popover'); ?>">
733
-
734
- </div>
735
-
736
- <div class="alignright actions"></div>
737
-
738
- <br class="clear">
739
- </div>
740
-
741
- <div class="clear"></div>
742
-
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
- );
750
-
751
- $columns = apply_filters('popover_columns', $columns);
752
-
753
- $popovers = $this->get_popovers();
754
-
755
- ?>
756
-
757
- <table cellspacing="0" class="widefat fixed" id="dragtable">
758
- <thead>
759
- <tr>
760
-
761
- <th style="width: 20px;" class="manage-column column-drag" id="cb" scope="col"></th>
762
- <th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox"></th>
763
-
764
- <?php
765
- foreach($columns as $key => $col) {
766
- ?>
767
- <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
768
- <?php
769
- }
770
- ?>
771
- </tr>
772
- </thead>
773
-
774
- <tfoot>
775
- <tr>
776
-
777
- <th style="" class="manage-column column-drag" scope="col"></th>
778
- <th style="" class="manage-column column-cb check-column" scope="col"><input type="checkbox"></th>
779
-
780
- <?php
781
- reset($columns);
782
- foreach($columns as $key => $col) {
783
- ?>
784
- <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
785
- <?php
786
- }
787
- ?>
788
- </tr>
789
- </tfoot>
790
-
791
- <tbody id='dragbody'>
792
- <?php
793
- if($popovers) {
794
- $popovercount = 0;
795
- foreach($popovers as $key => $popover) {
796
- ?>
797
- <tr valign="middle" class="alternate draghandle" id="<?php echo $popover->id; ?>">
798
-
799
- <td class="check-drag" scope="row">
800
- &nbsp;
801
- </td>
802
- <td class="check-column" scope="row"><input type="checkbox" value="<?php echo $popover->id; ?>" name="popovercheck[]"></td>
803
-
804
- <td class="column-name">
805
- <strong><a href='<?php echo "?page=" . $page . "&amp;action=edit&amp;popover=" . $popover->id . ""; ?>'><?php echo esc_html($popover->popover_title); ?></a></strong>
806
- <?php
807
- $actions = array();
808
-
809
- $actions['edit'] = "<span class='edit'><a href='?page=" . $page . "&amp;action=edit&amp;popover=" . $popover->id . "'>" . __('Edit', 'popover') . "</a></span>";
810
-
811
- if($popover->popover_active) {
812
- $actions['toggle'] = "<span class='edit activate'><a href='" . wp_nonce_url("?page=" . $page. "&amp;action=deactivate&amp;popover=" . $popover->id . "", 'toggle-popover-' . $popover->id) . "'>" . __('Deactivate', 'popover') . "</a></span>";
813
- } else {
814
- $actions['toggle'] = "<span class='edit deactivate'><a href='" . wp_nonce_url("?page=" . $page. "&amp;action=activate&amp;popover=" . $popover->id . "", 'toggle-popover-' . $popover->id) . "'>" . __('Activate', 'popover') . "</a></span>";
815
- }
816
-
817
- $actions['delete'] = "<span class='delete'><a href='" . wp_nonce_url("?page=" . $page. "&amp;action=delete&amp;popover=" . $popover->id . "", 'delete-popover-' . $popover->id) . "'>" . __('Delete', 'popover') . "</a></span>";
818
- ?>
819
- <br><div class="row-actions"><?php echo implode(" | ", $actions); ?></div>
820
- </td>
821
-
822
- <td class="column-name">
823
- <?php
824
- $p = maybe_unserialize($popover->popover_settings);
825
- $rules = $p['popover_check'];
826
- foreach( (array) $rules as $key => $value ) {
827
- if($key == 'order') {
828
- continue;
829
- }
830
- switch($key) {
831
-
832
- case 'supporter': _e('Site is not a Pro-site', 'popover');
833
- break;
834
-
835
- case 'isloggedin': _e('Visitor is logged in', 'popover');
836
- break;
837
-
838
- case 'loggedin': _e('Visitor is not logged in', 'popover');
839
- break;
840
-
841
- case 'commented': _e('Visitor has never commented', 'popover');
842
- break;
843
-
844
- case 'searchengine': _e('Visit via a search engine', 'popover');
845
- break;
846
-
847
- case 'internal': _e('Visit not via an Internal link', 'popover');
848
- break;
849
-
850
- case 'referrer': _e('Visit via specific referer', 'popover');
851
- break;
852
-
853
- case 'count': _e('Popover shown less than x times', 'popover');
854
- break;
855
-
856
- case 'onurl': _e('On specific URL', 'popover');
857
- break;
858
-
859
- case 'notonurl': _e('Not on specific URL', 'popover');
860
- break;
861
-
862
- case 'incountry': _e('In a specific country', 'popover');
863
- break;
864
-
865
- case 'notincountry': _e('Not in a specific country', 'popover');
866
- break;
867
-
868
- default: echo apply_filters('popover_nice_rule_name', $key);
869
- break;
870
- }
871
- echo "<br/>";
872
- }
873
- ?>
874
- </td>
875
- <td class="column-active">
876
- <?php
877
- if($popover->popover_active) {
878
- echo "<strong>" . __('Active', 'popover') . "</strong>";
879
- } else {
880
- echo __('Inactive', 'popover');
881
- }
882
- ?>
883
- </td>
884
- </tr>
885
- <?php
886
- }
887
- } else {
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
- }
895
- ?>
896
-
897
- </tbody>
898
- </table>
899
-
900
-
901
- <div class="tablenav">
902
-
903
- <div class="alignleft actions">
904
- <select name="action2">
905
- <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
906
- <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
907
- </select>
908
- <input type="submit" class="button-secondary action" id="doaction2" name="doaction2" value="<?php _e('Apply', 'popover'); ?>">
909
- </div>
910
- <div class="alignright actions"></div>
911
- <br class="clear">
912
- </div>
913
-
914
- </form>
915
-
916
- </div> <!-- wrap -->
917
- <?php
918
- }
919
-
920
-
921
- function handle_popover_edit_panel( $id = false ) {
922
-
923
- global $page;
924
-
925
- if(function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
926
- $updateoption = 'update_site_option';
927
- $getoption = 'get_site_option';
928
- } else {
929
- $updateoption = 'update_option';
930
- $getoption = 'get_option';
931
- }
932
-
933
-
934
- if($id !== false) {
935
- $popover = $this->get_popover( $id );
936
-
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
-
944
- $popover_title = stripslashes($popover->popover_title);
945
-
946
- $popover_content = stripslashes($popover->popover_content);
947
-
948
- if(empty($popover->popover_settings)) {
949
- $popover->popover_settings = array( 'popover_size' => array('width' => '500px', 'height' => '200px'),
950
- 'popover_location' => array('left' => '100px', 'top' => '100px'),
951
- 'popover_colour' => array('back' => 'FFFFFF', 'fore' => '000000'),
952
- 'popover_margin' => array('left' => '0px', 'top' => '0px', 'right' => '0px', 'bottom' => '0px'),
953
- 'popover_check' => array(),
954
- 'popover_ereg' => '',
955
- 'popover_count' => 3,
956
- 'popover_usejs' => 'no'
957
- );
958
- }
959
-
960
- $popover_size = $popover->popover_settings['popover_size'];
961
- $popover_location = $popover->popover_settings['popover_location'];
962
- $popover_colour = $popover->popover_settings['popover_colour'];
963
- $popover_margin = $popover->popover_settings['popover_margin'];
964
-
965
- $popover_size = $this->sanitise_array($popover_size);
966
- $popover_location = $this->sanitise_array($popover_location);
967
- $popover_colour = $this->sanitise_array($popover_colour);
968
- $popover_margin = $this->sanitise_array($popover_margin);
969
-
970
- $popover_check = $popover->popover_settings['popover_check'];
971
- $popover_ereg = $popover->popover_settings['popover_ereg'];
972
- $popover_count = $popover->popover_settings['popover_count'];
973
-
974
- $popover_usejs = $popover->popover_settings['popover_usejs'];
975
-
976
- $popoverstyle = (isset($popover->popover_settings['popover_style'])) ? $popover->popover_settings['popover_style'] : '';
977
-
978
- $popover_hideforever = (isset($popover->popover_settings['popoverhideforeverlink'])) ? $popover->popover_settings['popoverhideforeverlink'] : '';
979
-
980
- $popover_delay = (isset($popover->popover_settings['popoverdelay'])) ? $popover->popover_settings['popoverdelay'] : '';
981
-
982
- $popover_onurl = (isset($popover->popover_settings['onurl'])) ? $popover->popover_settings['onurl'] : '';
983
- $popover_notonurl = (isset($popover->popover_settings['notonurl'])) ? $popover->popover_settings['notonurl'] : '';
984
-
985
- $popover_incountry = (isset($popover->popover_settings['incountry'])) ? $popover->popover_settings['incountry'] : '';
986
- $popover_notincountry = (isset($popover->popover_settings['notincountry'])) ? $popover->popover_settings['notincountry'] : '';
987
-
988
- $popover_onurl = $this->sanitise_array($popover_onurl);
989
- $popover_notonurl = $this->sanitise_array($popover_notonurl);
990
-
991
- ?>
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
-
1001
- <div id='popover-left'>
1002
- <form action='?page=<?php echo $page; ?>' name='popoveredit' method='post'>
1003
-
1004
- <input type='hidden' name='id' id='id' value='<?php echo $id; ?>' />
1005
- <input type='hidden' name='beingdragged' id='beingdragged' value='' />
1006
- <input type='hidden' name='popovercheck[order]' id='in-positive-rules' value='<?php echo esc_attr($popover_check['order']); ?>' />
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
-
1014
- <div class='popover-details'>
1015
-
1016
- <label for='popover_title'><?php _e('Popover title','popover'); ?></label><br/>
1017
- <input name='popover_title' id='popover_title' style='width: 97%; border: 1px solid; border-color: #DFDFDF;' value='<?php echo stripslashes($popover_title); ?>' /><br/><br/>
1018
-
1019
- <label for='popovercontent'><?php _e('Popover content','popover'); ?></label><br/>
1020
- <?php
1021
- $args = array("textarea_name" => "popover_content", "textarea_rows" => 5);
1022
- wp_editor( stripslashes($popover_content), "popover_content", $args );
1023
- /*
1024
- ?>
1025
- <textarea name='popover_content' id='popover_content' style='width: 98%' rows='5' cols='10'><?php echo stripslashes($popover_content); ?></textarea>
1026
- <?php
1027
- */
1028
- ?>
1029
- </div>
1030
-
1031
- <h3><?php _e('Active conditions','popover'); ?></h3>
1032
- <p class='description'><?php _e('These are the rules that will determine if a popover should show when a visitor arrives at your website ALL rules must be true for the popover to show.','popover'); ?></p>
1033
- <div id='positive-rules-holder'>
1034
- <?php
1035
-
1036
- if(!empty($popover_check['order'])) {
1037
- $order = explode(',', $popover_check['order']);
1038
- } else {
1039
- $order = array();
1040
- }
1041
-
1042
- foreach($order as $key) {
1043
-
1044
- switch($key) {
1045
-
1046
- case 'isloggedin': $this->admin_main('isloggedin','Visitor is logged in', 'Shows the popover if the user is logged in to your site.', true);
1047
- break;
1048
- case 'loggedin': $this->admin_main('loggedin','Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', true);
1049
- break;
1050
- case 'commented': $this->admin_main('commented','Visitor has never commented', 'Shows the popover if the user has never left a comment.', true);
1051
- break;
1052
- case 'searchengine': $this->admin_main('searchengine','Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', true);
1053
- break;
1054
- case 'internal': $this->admin_main('internal','Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', true);
1055
- break;
1056
- case 'referrer': $this->admin_referer('referrer','Visit via specific referer', 'Shows the popover if the user arrived via the following referrer:', $popover_ereg);
1057
- break;
1058
- case 'count': $this->admin_viewcount('count','Popover shown less than', 'Shows the popover if the user has only seen it less than the following number of times:', $popover_count);
1059
- break;
1060
- case 'onurl': $this->admin_urllist('onurl','On specific URL', 'Shows the popover if the user is on a certain URL (enter one URL per line)', $popover_onurl);
1061
- break;
1062
- case 'notonurl': $this->admin_urllist('notonurl','Not on specific URL', 'Shows the popover if the user is not on a certain URL (enter one URL per line)', $popover_notonurl);
1063
- break;
1064
-
1065
- default: do_action('popover_active_rule_' . $key);
1066
- do_action('popover_active_rule', $key);
1067
- break;
1068
-
1069
- }
1070
-
1071
- }
1072
-
1073
-
1074
- ?>
1075
- </div>
1076
- <div id='positive-rules' class='droppable-rules popovers-sortable'>
1077
- <?php _e('Drop here','membership'); ?>
1078
- </div>
1079
-
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'); ?>&nbsp;
1086
- <input type='text' name='popoverwidth' id='popoverwidth' style='width: 5em;' value='<?php echo $popover_size['width']; ?>' />&nbsp;
1087
- <?php _e('Height:','popover'); ?>&nbsp;
1088
- <input type='text' name='popoverheight' id='popoverheight' style='width: 5em;' value='<?php echo $popover_size['height']; ?>' />
1089
- </td>
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'); ?>&nbsp;
1096
- <input type='text' name='popoverleft' id='popoverleft' style='width: 5em;' value='<?php echo $popover_location['left']; ?>' />&nbsp;
1097
- <?php _e('Top:','popover'); ?>&nbsp;
1098
- <input type='text' name='popovertop' id='popovertop' style='width: 5em;' value='<?php echo $popover_location['top']; ?>' />
1099
- </td>
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'); ?>&nbsp;
1106
- <input type='text' name='popovermarginleft' style='width: 5em;' value='<?php echo $popover_margin['left']; ?>' />&nbsp;
1107
- <?php _e('Right:','popover'); ?>&nbsp;
1108
- <input type='text' name='popovermarginright' style='width: 5em;' value='<?php echo $popover_margin['right']; ?>' /><br/>
1109
- <?php _e('Top:','popover'); ?>&nbsp;
1110
- <input type='text' name='popovermargintop' style='width: 5em;' value='<?php echo $popover_margin['top']; ?>' />&nbsp;
1111
- <?php _e('Bottom:','popover'); ?>&nbsp;
1112
- <input type='text' name='popovermarginbottom' style='width: 5em;' value='<?php echo $popover_margin['bottom']; ?>' />
1113
- </td>
1114
- </tr>
1115
-
1116
- <tr>
1117
- <th valign='top' scope='row' style='width: 25%;'>&nbsp;</th>
1118
- <td valign='top'>
1119
- <?php _e('or use Javascript to resize and center the popover','popover'); ?>&nbsp;<input type='checkbox' name='popoverusejs' id='popoverusejs' value='yes' <?php if($popover_usejs == 'yes') echo "checked='checked'"; ?> />
1120
- </td>
1121
- </tr>
1122
-
1123
- </table>
1124
- <table class='form-table'>
1125
-
1126
- <tr>
1127
- <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Background Color','popover'); ?></strong></th>
1128
- <td valign='top'>
1129
- <?php _e('Hex:','popover'); ?>&nbsp;#
1130
- <input type='text' name='popoverbackground' id='popoverbackground' style='width: 10em;' value='<?php echo $popover_colour['back']; ?>' />
1131
- </td>
1132
- </tr>
1133
-
1134
- <tr>
1135
- <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Font Color','popover'); ?></strong></th>
1136
- <td valign='top'>
1137
- <?php _e('Hex:','popover'); ?>&nbsp;#
1138
- <input type='text' name='popoverforeground' id='popoverforeground' style='width: 10em;' value='<?php echo $popover_colour['fore']; ?>' />
1139
- </td>
1140
- </tr>
1141
-
1142
- </table>
1143
-
1144
- <?php
1145
- $availablestyles = apply_filters( 'popover_available_styles_directory', array() );
1146
-
1147
- if(count($availablestyles) > 1) {
1148
- ?>
1149
- <h3><?php _e('Pop Up Style','popover'); ?></h3>
1150
- <table class='form-table'>
1151
-
1152
- <tr>
1153
- <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Use Style','popover'); ?></strong></th>
1154
- <td valign='top'>
1155
- <select name='popoverstyle'>
1156
- <?php
1157
- foreach( (array) $availablestyles as $key => $location ) {
1158
- ?>
1159
- <option value='<?php echo $key; ?>' <?php selected($key, $popoverstyle); ?>><?php echo $key; ?></option>
1160
- <?php
1161
- }
1162
- ?>
1163
- </select>
1164
-
1165
- </td>
1166
- </tr>
1167
-
1168
- </table>
1169
- <?php
1170
- } else {
1171
- foreach( (array) $availablestyles as $key => $location ) {
1172
- // There's only one - but it's easy to get the key this way :)
1173
- ?>
1174
- <input type='hidden' name='popoverstyle' value='<?php echo $key; ?>' />
1175
- <?php
1176
- }
1177
- }
1178
- ?>
1179
-
1180
- <h3><?php _e('Remove Hide Forever Link','popover'); ?></h3>
1181
- <table class='form-table' style=''>
1182
- <tr>
1183
- <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Remove the "Never see this message again" link','popover'); ?></strong></th>
1184
- <td valign='top'>
1185
- <input type='checkbox' name='popoverhideforeverlink' id='popoverhideforeverlink' value='yes' <?php if($popover_hideforever == 'yes') { echo "checked='checked'"; } ?> />
1186
- </td>
1187
- </tr>
1188
- </table>
1189
-
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>
1197
- <?php
1198
- for($n=1; $n <= 120; $n++) {
1199
- ?>
1200
- <option value='<?php echo $n; ?>' <?php selected($n, $popover_delay); ?>><?php echo __('after','popover') . ' ' . $n . ' ' . __('seconds', 'popover') ; ?></option>
1201
- <?php
1202
- }
1203
- ?>
1204
- </select>
1205
- </td>
1206
- </tr>
1207
- </table>
1208
-
1209
- <div class='buttons'>
1210
- <?php
1211
- wp_original_referer_field(true, 'previous'); wp_nonce_field('update-popover');
1212
- ?>
1213
- <?php if($id !== false) { ?>
1214
- <input type='submit' value='<?php _e('Update', 'popover'); ?>' class='button-primary' />
1215
- <input type='hidden' name='action' value='updated' />
1216
- <?php } else { ?>
1217
- <input type='submit' value='<?php _e('Add', 'popover'); ?>' class='button' name='add' />&nbsp;<input type='submit' value='<?php _e('Add and Activate', 'popover'); ?>' class='button-primary' name='addandactivate' />
1218
- <input type='hidden' name='action' value='added' />
1219
- <?php } ?>
1220
-
1221
- </div>
1222
-
1223
- </div>
1224
- </div>
1225
- </form>
1226
- </div>
1227
-
1228
-
1229
- <div id='hiden-actions'>
1230
- <?php
1231
- if(!isset($popover_check['isloggedin'])) {
1232
- $this->admin_main('isloggedin','Visitor is logged in', 'Shows the popover if the user is logged in to your site.', true);
1233
- }
1234
-
1235
- if(!isset($popover_check['loggedin'])) {
1236
- $this->admin_main('loggedin','Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', true);
1237
- }
1238
-
1239
- if(!isset($popover_check['commented'])) {
1240
- $this->admin_main('commented','Visitor has never commented', 'Shows the popover if the user has never left a comment.', true);
1241
- }
1242
-
1243
- if(!isset($popover_check['searchengine'])) {
1244
- $this->admin_main('searchengine','Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', true);
1245
- }
1246
-
1247
- if(!isset($popover_check['internal'])) {
1248
- $this->admin_main('internal','Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', true);
1249
- }
1250
-
1251
- if(!isset($popover_check['referrer'])) {
1252
- $this->admin_referer('referrer','Visit via specific referer', 'Shows the popover if the user arrived via the following referrer:', $popover_ereg);
1253
- }
1254
-
1255
- if(!isset($popover_check['onurl'])) {
1256
- $this->admin_urllist('onurl','On specific URL', 'Shows the popover if the user is on a certain URL (enter one URL per line)', $popover_onurl);
1257
- }
1258
-
1259
- if(!isset($popover_check['notonurl'])) {
1260
- $this->admin_urllist('notonurl','Not on specific URL', 'Shows the popover if the user is not on a certain URL (enter one URL per line)', $popover_notonurl);
1261
- }
1262
-
1263
- //$popover_count
1264
- if(!isset($popover_check['count'])) {
1265
- $this->admin_viewcount('count','Popover shown less than', 'Shows the popover if the user has only seen it less than the following number of times:', $popover_count);
1266
- }
1267
-
1268
- do_action('popover_additional_rules_main');
1269
-
1270
- ?>
1271
- </div> <!-- hidden-actions -->
1272
-
1273
- </div> <!-- popover-liquid-left -->
1274
-
1275
- <div class='popover-liquid-right'>
1276
- <div class="popover-holder-wrap">
1277
-
1278
- <div class="sidebar-name no-movecursor">
1279
- <h3><?php _e('Conditions', 'popover'); ?></h3>
1280
- </div>
1281
- <div class="section-holder" id="sidebar-rules" style="min-height: 98px;">
1282
- <ul class='popovers popovers-draggable'>
1283
- <?php
1284
-
1285
- if(isset($popover_check['isloggedin'])) {
1286
- $this->admin_sidebar('isloggedin','Visitor is logged in', 'Shows the popover if the user is logged in to your site.', true);
1287
- } else {
1288
- $this->admin_sidebar('isloggedin','Visitor is logged in', 'Shows the popover if the user is logged in to your site.', false);
1289
- }
1290
-
1291
- if(isset($popover_check['loggedin'])) {
1292
- $this->admin_sidebar('loggedin','Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', true);
1293
- } else {
1294
- $this->admin_sidebar('loggedin','Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', false);
1295
- }
1296
-
1297
- if(isset($popover_check['commented'])) {
1298
- $this->admin_sidebar('commented','Visitor has never commented', 'Shows the popover if the user has never left a comment.', true);
1299
- } else {
1300
- $this->admin_sidebar('commented','Visitor has never commented', 'Shows the popover if the user has never left a comment.', false);
1301
- }
1302
-
1303
- if(isset($popover_check['searchengine'])) {
1304
- $this->admin_sidebar('searchengine','Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', true);
1305
- } else {
1306
- $this->admin_sidebar('searchengine','Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', false);
1307
- }
1308
-
1309
- if(isset($popover_check['internal'])) {
1310
- $this->admin_sidebar('internal','Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', true);
1311
- } else {
1312
- $this->admin_sidebar('internal','Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', false);
1313
- }
1314
-
1315
- if(isset($popover_check['referrer'])) {
1316
- $this->admin_sidebar('referrer','Visit via specific referer', 'Shows the popover if the user arrived via a specific referrer.', true);
1317
- } else {
1318
- $this->admin_sidebar('referrer','Visit via specific referer', 'Shows the popover if the user arrived via a specific referrer.', false);
1319
- }
1320
-
1321
- if(isset($popover_check['count'])) {
1322
- $this->admin_sidebar('count','Popover shown less than', 'Shows the popover if the user has only seen it less than a specific number of times.', true);
1323
- } else {
1324
- $this->admin_sidebar('count','Popover shown less than', 'Shows the popover if the user has only seen it less than a specific number of times.', false);
1325
- }
1326
-
1327
- if(isset($popover_check['onurl'])) {
1328
- $this->admin_sidebar('onurl','On specific URL', 'Shows the popover if the user is on a certain URL.', true);
1329
- } else {
1330
- $this->admin_sidebar('onurl','On specific URL', 'Shows the popover if the user is on a certain URL.', false);
1331
- }
1332
-
1333
- if(isset($popover_check['notonurl'])) {
1334
- $this->admin_sidebar('notonurl','Not on specific URL', 'Shows the popover if the user is not on a certain URL.', true);
1335
- } else {
1336
- $this->admin_sidebar('notonurl','Not on specific URL', 'Shows the popover if the user is not on a certain URL.', false);
1337
- }
1338
-
1339
- do_action('popover_additional_rules_sidebar');
1340
- ?>
1341
- </ul>
1342
- </div>
1343
-
1344
- </div> <!-- popover-holder-wrap -->
1345
-
1346
- </div> <!-- popover-liquid-left -->
1347
-
1348
- </div> <!-- wrap -->
1349
-
1350
- <?php
1351
- }
1352
-
1353
- function admin_sidebar($id, $title, $message, $data = false) {
1354
- ?>
1355
- <li class='popover-draggable' id='<?php echo $id; ?>' <?php if($data === true) echo "style='display:none;'"; ?>>
1356
-
1357
- <div class='action action-draggable'>
1358
- <div class='action-top closed'>
1359
- <a href="#available-actions" class="action-button hide-if-no-js"></a>
1360
- <?php _e($title,'popover'); ?>
1361
- </div>
1362
- <div class='action-body closed'>
1363
- <?php if(!empty($message)) { ?>
1364
- <p>
1365
- <?php _e($message, 'popover'); ?>
1366
- </p>
1367
- <?php } ?>
1368
- <p>
1369
- <a href='#addtopopover' class='action-to-popover' title='<?php _e('Add this rule to the popover.','popover'); ?>'><?php _e('Add this rule to the popover.','popover'); ?></a>
1370
- </p>
1371
- </div>
1372
- </div>
1373
-
1374
- </li>
1375
- <?php
1376
- }
1377
-
1378
- function admin_main($id, $title, $message, $data = false) {
1379
- if(!$data) $data = array();
1380
- ?>
1381
- <div class='popover-operation' id='main-<?php echo $id; ?>'>
1382
- <h2 class='sidebar-name'><?php _e($title, 'popover');?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.",'popover'); ?>'><?php _e('Remove','popover'); ?></a></span></h2>
1383
- <div class='inner-operation'>
1384
- <p><?php _e($message, 'popover'); ?></p>
1385
- <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1386
- </div>
1387
- </div>
1388
- <?php
1389
- }
1390
-
1391
- function admin_referer($id, $title, $message, $data = false) {
1392
- if(!$data) $data = ''
1393
- ?>
1394
- <div class='popover-operation' id='main-<?php echo $id; ?>'>
1395
- <h2 class='sidebar-name'><?php _e($title, 'popover');?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.",'popover'); ?>'><?php _e('Remove','popover'); ?></a></span></h2>
1396
- <div class='inner-operation'>
1397
- <p><?php _e($message, 'popover'); ?></p>
1398
- <input type='text' name='popoverereg' id='popoverereg' style='width: 10em;' value='<?php echo esc_html($data); ?>' />
1399
- <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1400
- </div>
1401
- </div>
1402
- <?php
1403
- }
1404
-
1405
- function admin_viewcount($id, $title, $message, $data = false) {
1406
- if(!$data) $data = '';
1407
- ?>
1408
- <div class='popover-operation' id='main-<?php echo $id; ?>'>
1409
- <h2 class='sidebar-name'><?php _e($title, 'popover');?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.",'popover'); ?>'><?php _e('Remove','popover'); ?></a></span></h2>
1410
- <div class='inner-operation'>
1411
- <p><?php _e($message, 'popover'); ?></p>
1412
- <input type='text' name='popovercount' id='popovercount' style='width: 5em;' value='<?php echo esc_html($data); ?>' />&nbsp;
1413
- <?php _e('times','popover'); ?>
1414
- <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1415
- </div>
1416
- </div>
1417
- <?php
1418
- }
1419
-
1420
- function admin_urllist($id, $title, $message, $data = false) {
1421
- if(!$data) $data = array();
1422
-
1423
- $data = implode("\n", $data);
1424
-
1425
- ?>
1426
- <div class='popover-operation' id='main-<?php echo $id; ?>'>
1427
- <h2 class='sidebar-name'><?php _e($title, 'popover');?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.",'popover'); ?>'><?php _e('Remove','popover'); ?></a></span></h2>
1428
- <div class='inner-operation'>
1429
- <p><?php _e($message, 'popover'); ?></p>
1430
- <textarea name='popover<?php echo $id; ?>' id='popover<?php echo $id; ?>' style=''><?php echo esc_html($data); ?></textarea>
1431
- <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1432
- </div>
1433
- </div>
1434
- <?php
1435
- }
1436
-
1437
- function handle_addons_panel_updates() {
1438
- global $action, $page;
1439
-
1440
- wp_reset_vars( array('action', 'page') );
1441
-
1442
- if(isset($_GET['doaction']) || isset($_GET['doaction2'])) {
1443
- if(addslashes($_GET['action']) == 'toggle' || addslashes($_GET['action2']) == 'toggle') {
1444
- $action = 'bulk-toggle';
1445
- }
1446
- }
1447
-
1448
- $active = get_option('popover_activated_addons', array());
1449
-
1450
- switch(addslashes($action)) {
1451
-
1452
- case 'deactivate': $key = addslashes($_GET['addon']);
1453
- if(!empty($key)) {
1454
- check_admin_referer('toggle-addon-' . $key);
1455
-
1456
- $found = array_search($key, $active);
1457
- if($found !== false) {
1458
- unset($active[$found]);
1459
- update_option('popover_activated_addons', array_unique($active));
1460
- wp_safe_redirect( add_query_arg( 'msg', 5, wp_get_referer() ) );
1461
- } else {
1462
- wp_safe_redirect( add_query_arg( 'msg', 6, wp_get_referer() ) );
1463
- }
1464
- }
1465
- break;
1466
-
1467
- case 'activate': $key = addslashes($_GET['addon']);
1468
- if(!empty($key)) {
1469
- check_admin_referer('toggle-addon-' . $key);
1470
-
1471
- if(!in_array($key, $active)) {
1472
- $active[] = $key;
1473
- update_option('popover_activated_addons', array_unique($active));
1474
- wp_safe_redirect( add_query_arg( 'msg', 3, wp_get_referer() ) );
1475
- } else {
1476
- wp_safe_redirect( add_query_arg( 'msg', 4, wp_get_referer() ) );
1477
- }
1478
- }
1479
- break;
1480
-
1481
- case 'bulk-toggle':
1482
- check_admin_referer('bulk-addons');
1483
- foreach($_GET['addoncheck'] AS $key) {
1484
- $found = array_search($key, $active);
1485
- if($found !== false) {
1486
- unset($active[$found]);
1487
- } else {
1488
- $active[] = $key;
1489
- }
1490
- }
1491
- update_option('popover_activated_addons', array_unique($active));
1492
- wp_safe_redirect( add_query_arg( 'msg', 7, wp_get_referer() ) );
1493
- break;
1494
-
1495
- }
1496
- }
1497
-
1498
- function handle_addons_panel() {
1499
- global $action, $page;
1500
-
1501
- wp_reset_vars( array('action', 'page') );
1502
-
1503
- $messages = array();
1504
- $messages[1] = __('Add-on updated.','popover');
1505
- $messages[2] = __('Add-on not updated.','popover');
1506
-
1507
- $messages[3] = __('Add-on activated.','popover');
1508
- $messages[4] = __('Add-on not activated.','popover');
1509
-
1510
- $messages[5] = __('Add-on deactivated.','popover');
1511
- $messages[6] = __('Add-on not deactivated.','popover');
1512
-
1513
- $messages[7] = __('Add-on activation toggled.','popover');
1514
-
1515
- ?>
1516
- <div class='wrap'>
1517
- <div class="icon32" id="icon-plugins"><br></div>
1518
- <h2><?php _e('Edit Add-ons','popover'); ?></h2>
1519
-
1520
- <?php
1521
- if ( isset($_GET['msg']) ) {
1522
- echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
1523
- $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
1524
- }
1525
-
1526
- ?>
1527
-
1528
- <form method="get" action="?page=<?php echo esc_attr($page); ?>" id="posts-filter">
1529
-
1530
- <input type='hidden' name='page' value='<?php echo esc_attr($page); ?>' />
1531
-
1532
- <div class="tablenav">
1533
-
1534
- <div class="alignleft actions">
1535
- <select name="action">
1536
- <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
1537
- <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
1538
- </select>
1539
- <input type="submit" class="button-secondary action" id="doaction" name="doaction" value="<?php _e('Apply', 'popover'); ?>">
1540
-
1541
- </div>
1542
-
1543
- <div class="alignright actions"></div>
1544
-
1545
- <br class="clear">
1546
- </div>
1547
-
1548
- <div class="clear"></div>
1549
-
1550
- <?php
1551
- wp_original_referer_field(true, 'previous'); wp_nonce_field('bulk-addons');
1552
-
1553
- $columns = array( "name" => __('Add-on Name', 'popover'),
1554
- "file" => __('Add-on File','popover'),
1555
- "active" => __('Active','popover')
1556
- );
1557
-
1558
- $columns = apply_filters('popover_addoncolumns', $columns);
1559
-
1560
- $addons = get_popover_addons();
1561
-
1562
- $active = get_option('popover_activated_addons', array());
1563
-
1564
- ?>
1565
-
1566
- <table cellspacing="0" class="widefat fixed">
1567
- <thead>
1568
- <tr>
1569
- <th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox"></th>
1570
- <?php
1571
- foreach($columns as $key => $col) {
1572
- ?>
1573
- <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
1574
- <?php
1575
- }
1576
- ?>
1577
- </tr>
1578
- </thead>
1579
-
1580
- <tfoot>
1581
- <tr>
1582
- <th style="" class="manage-column column-cb check-column" scope="col"><input type="checkbox"></th>
1583
- <?php
1584
- reset($columns);
1585
- foreach($columns as $key => $col) {
1586
- ?>
1587
- <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
1588
- <?php
1589
- }
1590
- ?>
1591
- </tr>
1592
- </tfoot>
1593
-
1594
- <tbody>
1595
- <?php
1596
- if($addons) {
1597
- foreach($addons as $key => $addon) {
1598
- $default_headers = array(
1599
- 'Name' => 'Addon Name',
1600
- 'Author' => 'Author',
1601
- 'Description' => 'Description',
1602
- 'AuthorURI' => 'Author URI'
1603
- );
1604
-
1605
- $addon_data = get_file_data( popover_dir('popoverincludes/addons/' . $addon), $default_headers, 'plugin' );
1606
-
1607
- if(empty($addon_data['Name'])) {
1608
- continue;
1609
- }
1610
-
1611
- ?>
1612
- <tr valign="middle" class="alternate" id="addon-<?php echo $addon; ?>">
1613
- <th class="check-column" scope="row"><input type="checkbox" value="<?php echo esc_attr($addon); ?>" name="addoncheck[]"></th>
1614
- <td class="column-name">
1615
- <strong><?php echo esc_html($addon_data['Name']) . "</strong>" . __(' by ', 'popover') . "<a href='" . esc_attr($addon_data['AuthorURI']) . "'>" . esc_html($addon_data['Author']) . "</a>"; ?>
1616
- <?php if(!empty($addon_data['Description'])) {
1617
- ?><br/><?php echo esc_html($addon_data['Description']);
1618
- }
1619
-
1620
- $actions = array();
1621
-
1622
- if(in_array($addon, $active)) {
1623
- $actions['toggle'] = "<span class='edit activate'><a href='" . wp_nonce_url("?page=" . $page. "&amp;action=deactivate&amp;addon=" . $addon . "", 'toggle-addon-' . $addon) . "'>" . __('Deactivate', 'popover') . "</a></span>";
1624
- } else {
1625
- $actions['toggle'] = "<span class='edit deactivate'><a href='" . wp_nonce_url("?page=" . $page. "&amp;action=activate&amp;addon=" . $addon . "", 'toggle-addon-' . $addon) . "'>" . __('Activate', 'popover') . "</a></span>";
1626
- }
1627
- ?>
1628
- <br><div class="row-actions"><?php echo implode(" | ", $actions); ?></div>
1629
- </td>
1630
-
1631
- <td class="column-name">
1632
- <?php echo esc_html($addon); ?>
1633
- </td>
1634
- <td class="column-active">
1635
- <?php
1636
- if(in_array($addon, $active)) {
1637
- echo "<strong>" . __('Active', 'popover') . "</strong>";
1638
- } else {
1639
- echo __('Inactive', 'popover');
1640
- }
1641
- ?>
1642
- </td>
1643
- </tr>
1644
- <?php
1645
- }
1646
- } else {
1647
- $columncount = count($columns) + 1;
1648
- ?>
1649
- <tr valign="middle" class="alternate" >
1650
- <td colspan="<?php echo $columncount; ?>" scope="row"><?php _e('No Add-ons where found for this install.','popover'); ?></td>
1651
- </tr>
1652
- <?php
1653
- }
1654
- ?>
1655
-
1656
- </tbody>
1657
- </table>
1658
-
1659
-
1660
- <div class="tablenav">
1661
-
1662
- <div class="alignleft actions">
1663
- <select name="action2">
1664
- <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
1665
- <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
1666
- </select>
1667
- <input type="submit" class="button-secondary action" id="doaction2" name="doaction2" value="<?php _e('Apply', 'popover'); ?>">
1668
- </div>
1669
- <div class="alignright actions"></div>
1670
- <br class="clear">
1671
- </div>
1672
-
1673
- </form>
1674
-
1675
- </div> <!-- wrap -->
1676
- <?php
1677
- }
1678
-
1679
-
1680
- function handle_settings_page() {
1681
-
1682
- global $action, $page;
1683
-
1684
- $messages = array();
1685
- $messages[1] = __('Your settings have been updated.','popover');
1686
-
1687
- ?>
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']) ) {
1695
- echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
1696
- $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
1697
- }
1698
- ?>
1699
- <div id="poststuff" class="metabox-holder m-settings">
1700
- <form action='?page=<?php echo $page; ?>' method='post'>
1701
-
1702
- <input type='hidden' name='page' value='<?php echo $page; ?>' />
1703
- <input type='hidden' name='action' value='updatesettings' />
1704
-
1705
- <?php
1706
- wp_nonce_field('update-popover-settings');
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'));
1725
- ?>
1726
- <select name='loadingmethod' id='loadingmethod'>
1727
- <option value="footer" <?php if($settings['loadingmethod'] == 'footer') echo "selected='selected'"; ?>><?php _e('Page Footer','popover'); ?></option>
1728
- <option value="external" <?php if($settings['loadingmethod'] == 'external') echo "selected='selected'"; ?>><?php _e('External Load','popover'); ?></option>
1729
- </select>
1730
- </td>
1731
- </tr>
1732
- </tbody>
1733
- </table>
1734
- </div>
1735
- </div>
1736
-
1737
- <p class="submit">
1738
- <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes', 'popover') ?>" />
1739
- </p>
1740
-
1741
- </form>
1742
- </div>
1743
- </div> <!-- wrap -->
1744
- <?php
1745
- }
1746
-
1747
- function update_settings_page() {
1748
-
1749
- if(isset($_POST['action']) && $_POST['action'] == 'updatesettings') {
1750
-
1751
- check_admin_referer('update-popover-settings');
1752
-
1753
- update_popover_option( 'popover-settings', $_POST );
1754
-
1755
- wp_safe_redirect( add_query_arg('msg', 1, wp_get_referer()) );
1756
- }
1757
-
1758
- }
1759
-
1760
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1761
 
1762
  }
1763
-
1764
  ?>
1
  <?php
2
+ if (!class_exists('popoveradmin')) {
3
 
4
+ class popoveradmin {
5
 
6
+ var $build = 5;
7
+ var $db;
8
+ var $tables = array('popover', 'popover_ip_cache');
9
+ var $popover;
10
+ var $popover_ip_cache;
11
 
12
+ function __construct() {
13
 
14
+ global $wpdb;
15
 
16
+ $this->db = & $wpdb;
 
 
17
 
18
+ foreach ($this->tables as $table) {
19
+ $this->$table = popover_db_prefix($this->db, $table);
20
+ }
21
 
22
+ add_action('admin_menu', array(&$this, 'add_menu_pages'));
23
+ add_action('network_admin_menu', array(&$this, 'add_menu_pages'));
24
 
25
+ add_action('plugins_loaded', array(&$this, 'load_textdomain'));
26
 
27
+ // Add header files
28
+ add_action('load-toplevel_page_popover', array(&$this, 'add_admin_header_popover_menu'));
29
+ add_action('load-pop-overs_page_popoveraddons', array(&$this, 'add_admin_header_popover_addons'));
30
+ add_action('load-pop-overs_page_popoversettings', array(&$this, 'add_admin_header_popover_settings'));
31
 
32
+ // Ajax calls
33
+ add_action('wp_ajax_popover_update_order', array(&$this, 'ajax_update_popover_order'));
34
 
35
+ $installed = get_option('popover_installed', false);
36
 
37
+ if ($installed === false || $installed != $this->build) {
38
+ $this->install();
 
 
39
 
40
+ update_option('popover_installed', $this->build);
41
+ }
42
+ }
43
 
44
+ function popoveradmin() {
45
+ $this->__construct();
46
+ }
47
 
48
+ function install() {
 
49
 
50
+ $charset_collate = '';
 
51
 
52
+ if (!empty($this->db->charset)) {
53
+ $charset_collate = "DEFAULT CHARACTER SET " . $this->db->charset;
54
+ }
55
 
56
+ if (!empty($this->db->collate)) {
57
+ $charset_collate .= " COLLATE " . $this->db->collate;
58
+ }
59
 
60
+ if ($this->db->get_var("SHOW TABLES LIKE '" . $this->popover . "' ") != $this->popover) {
61
+ $sql = "CREATE TABLE `" . $this->popover . "` (
 
 
62
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
63
  `popover_title` varchar(250) DEFAULT NULL,
64
  `popover_content` text,
66
  `popover_order` bigint(20) DEFAULT '0',
67
  `popover_active` int(11) DEFAULT '0',
68
  PRIMARY KEY (`id`)
69
+ ) $charset_collate;";
 
 
70
 
71
+ $this->db->query($sql);
72
+ }
73
 
74
+ // Add in IP cache table
75
+ if ($this->db->get_var("SHOW TABLES LIKE '" . $this->popover_ip_cache . "' ") != $this->popover_ip_cache) {
76
+ $sql = "CREATE TABLE `" . $this->popover_ip_cache . "` (
77
  `IP` varchar(12) NOT NULL DEFAULT '',
78
  `country` varchar(2) DEFAULT NULL,
79
  `cached` bigint(20) DEFAULT NULL,
80
  PRIMARY KEY (`IP`),
81
  KEY `cached` (`cached`)
82
+ ) $charset_collate;";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
+ $this->db->query($sql);
85
+ }
86
+ }
87
 
88
+ function load_textdomain() {
 
89
 
90
+ $locale = apply_filters('popover_locale', get_locale());
91
+ $mofile = popover_dir("popoverincludes/languages/popover-$locale.mo");
92
 
93
+ if (file_exists($mofile))
94
+ load_textdomain('popover', $mofile);
95
+ }
 
96
 
97
+ function add_menu_pages() {
 
 
 
98
 
99
+ global $submenu;
100
 
101
+ if (is_multisite() && (defined('PO_GLOBAL') && PO_GLOBAL == true)) {
102
+ if (function_exists('is_network_admin') && is_network_admin()) {
103
+ add_menu_page(__('Pop Overs', 'popover'), __('Pop Overs', 'popover'), 'manage_options', 'popover', array(&$this, 'handle_popover_admin'), popover_url('popoverincludes/images/window.png'));
104
+ }
105
+ } else {
106
+ if (!function_exists('is_network_admin') || !is_network_admin()) {
107
+ add_menu_page(__('Pop Overs', 'popover'), __('Pop Overs', 'popover'), 'manage_options', 'popover', array(&$this, 'handle_popover_admin'), popover_url('popoverincludes/images/window.png'));
108
+ }
109
+ }
110
 
111
+ $addnew = add_submenu_page('popover', __('Create New Pop Over', 'popover'), __('Create New', 'popover'), 'manage_options', "popover&amp;action=add", array(&$this, 'handle_addnewpopover_panel'));
112
+ add_submenu_page('popover', __('Manage Add-ons Plugins', 'popover'), __('Add-ons', 'popover'), 'manage_options', "popoveraddons", array(&$this, 'handle_addons_panel'));
113
 
114
+ add_submenu_page('popover', __('Settings', 'popover'), __('Settings', 'popover'), 'manage_options', "popoversettings", array(&$this, 'handle_settings_page'));
115
+ }
116
 
117
+ function sanitise_array($arrayin) {
 
118
 
119
+ foreach ((array) $arrayin as $key => $value) {
120
+ $arrayin[$key] = htmlentities(stripslashes($value), ENT_QUOTES, 'UTF-8');
121
+ }
122
 
123
+ return $arrayin;
124
+ }
125
 
126
+ function ajax_update_popover_order() {
127
 
128
+ if (check_ajax_referer('popover_order', '_ajax_nonce', false)) {
129
+ $newnonce = wp_create_nonce('popover_order');
 
130
 
131
+ $data = $_POST['data'];
132
+ parse_str($data);
133
+ foreach ($dragbody as $key => $value) {
134
+ $this->reorder_popovers($value, $key);
135
+ }
136
+ die($newnonce);
137
+ } else {
138
+ die('fail');
139
+ }
140
+ }
141
 
142
+ function update_admin_header_popover() {
143
 
144
+ global $action, $page, $allowedposttags;
 
 
 
 
145
 
146
+ wp_reset_vars(array('action', 'page'));
147
 
148
+ if ($action == 'updated') {
149
+ check_admin_referer('update-popover');
150
 
151
+ $usemsg = 1;
152
 
153
+ if (function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
154
+ $updateoption = 'update_site_option';
155
+ $getoption = 'get_site_option';
156
+ } else {
157
+ $updateoption = 'update_option';
158
+ $getoption = 'get_option';
159
+ }
160
 
161
+ if (isset($_POST['popovercontent'])) {
162
+ if (!current_user_can('unfiltered_html')) {
163
+ if (wp_kses($_POST['popovercontent'], $allowedposttags) != $_POST['popovercontent']) {
164
+ $usemsg = 2;
165
+ }
166
+ $updateoption('popover_content', wp_kses($_POST['popovercontent'], $allowedposttags));
167
+ } else {
168
+ $updateoption('popover_content', $_POST['popovercontent']);
169
+ }
170
+ }
171
 
172
+ if (isset($_POST['popoverwidth']) || isset($_POST['popoverheight'])) {
 
 
 
 
173
 
174
+ $width = $_POST['popoverwidth'];
175
+ $height = $_POST['popoverheight'];
 
 
 
176
 
177
+ if ($width == '')
178
+ $width = '500px';
179
+ if ($height == '')
180
+ $height = '200px';
181
 
182
+ $updateoption('popover_size', array("width" => $width, "height" => $height));
183
+ }
 
 
184
 
185
+ if (isset($_POST['popoverleft']) || isset($_POST['popovertop'])) {
 
 
 
186
 
187
+ $left = $_POST['popoverleft'];
188
+ $top = $_POST['popovertop'];
189
 
190
+ if ($left == '')
191
+ $left = '100px';
192
+ if ($top == '')
193
+ $top = '100px';
194
 
195
+ $updateoption('popover_location', array("left" => $left, "top" => $top));
196
+ }
197
 
198
+ if (isset($_POST['popovermargintop']) || isset($_POST['popovermarginleft']) || isset($_POST['popovermarginright']) || isset($_POST['popovermarginbottom'])) {
199
 
200
+ $mleft = $_POST['popovermarginleft'];
201
+ $mtop = $_POST['popovermargintop'];
202
+ $mright = $_POST['popovermarginright'];
203
+ $mbottom = $_POST['popovermarginbottom'];
204
 
205
+ if ($mleft == '')
206
+ $mleft = '0px';
207
+ if ($mtop == '')
208
+ $mtop = '0px';
209
+ if ($mright == '')
210
+ $mright = '0px';
211
+ if ($mbottom == '')
212
+ $mbottom = '0px';
213
 
214
+ $updateoption('popover_margin', array('left' => $mleft, 'top' => $mtop, 'right' => $mright, 'bottom' => $mbottom));
215
+ }
216
 
217
+ if (isset($_POST['popoverbackground']) || isset($_POST['popoverforeground'])) {
218
 
219
+ $back = $_POST['popoverbackground'];
220
+ $fore = $_POST['popoverforeground'];
 
 
 
221
 
222
+ if ($back == '')
223
+ $back = 'FFFFFF';
224
+ if ($fore == '')
225
+ $fore = '000000';
226
 
227
+ $updateoption('popover_colour', array("back" => $back, "fore" => $fore));
228
+ }
 
 
 
 
 
229
 
230
+ if (isset($_POST['popovercheck'])) {
231
 
232
+ $updateoption('popover_check', $_POST['popovercheck']);
233
 
234
+ if (isset($_POST['popoverereg'])) {
235
+ $updateoption('popover_ereg', $_POST['popoverereg']);
236
+ }
237
 
238
+ if (isset($_POST['popovercount'])) {
239
+ $updateoption('popover_count', intval($_POST['popovercount']));
240
+ }
241
+ }
242
 
243
+ if (isset($_POST['popoverusejs'])) {
244
+ $updateoption('popover_usejs', 'yes');
245
+ } else {
246
+ $updateoption('popover_usejs', 'no');
247
+ }
 
 
248
 
249
+ wp_safe_redirect(add_query_arg(array('msg' => $usemsg), wp_get_referer()));
250
+ }
251
+ }
252
 
253
+ function add_admin_header_popover_menu() {
 
254
 
255
+ $this->add_admin_header_core();
 
256
 
257
+ if (isset($_GET['action']) && in_array($_GET['action'], array('edit', 'add'))) {
258
+ $this->add_admin_header_popover();
259
+ } else {
260
+ wp_enqueue_script('popoverdragadminjs', popover_url('popoverincludes/js/jquery.tablednd_0_5.js'), array('jquery'), $this->build);
261
+ wp_enqueue_script('popoveradminjs', popover_url('popoverincludes/js/popovermenu.js'), array('jquery', 'popoverdragadminjs'), $this->build);
 
262
 
263
+ wp_localize_script('popoveradminjs', 'popover', array('ajaxurl' => admin_url('admin-ajax.php'),
264
+ 'ordernonce' => wp_create_nonce('popover_order'),
265
+ 'dragerror' => __('An error occured updating the Pop Over order.', 'popover'),
266
+ 'deletepopover' => __('Are you sure you want to delete this Pop Over?', 'popover')
267
+ ));
268
 
269
+ wp_enqueue_style('popoveradmincss', popover_url('popoverincludes/css/popovermenu.css'), array(), $this->build);
270
 
271
+ // Check for transfer
272
+ if (isset($_GET['transfer'])) {
273
+ $this->handle_popover_transfer();
274
+ }
275
 
276
+ // Check for existing popovers
277
+ if ($this->has_existing_popover()) {
278
+ add_action('all_admin_notices', array(&$this, 'show_popover_transfer_offer'));
279
+ }
280
 
281
+ $this->update_popover_admin();
282
+ }
283
+ }
284
 
285
+ function add_admin_header_popover_settings() {
 
 
 
 
286
 
287
+ global $action, $page;
288
 
289
+ wp_reset_vars(array('action', 'page'));
 
 
 
 
290
 
291
+ $this->update_settings_page();
292
+ }
293
 
294
+ function has_existing_popover() {
295
 
296
+ if (function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
297
+ $getoption = 'get_site_option';
298
+ } else {
299
+ $getoption = 'get_option';
300
+ }
301
 
302
+ $popsexist = $this->db->get_var("SELECT COUNT(*) FROM {$this->popover}");
303
 
304
+ if ($popsexist == 0 && $getoption('popover_content', 'no') != 'no' && $getoption('popover_notranfers', 'no') == 'no') {
305
+ // No pops - and one set in the options
306
+ return true;
307
+ } else {
308
+ return false;
309
+ }
310
+ }
311
 
312
+ function show_popover_transfer_offer() {
 
313
 
314
+ echo '<div class="updated fade below-h2"><p>' . sprintf(__("Welcome to Popover, would you like to transfer your existing Popover to the new format? <a href='%s'>Yes please transfer it</a> / <a href='%s'>No thanks, I'll create a new one myself.</a>", 'popover'), wp_nonce_url('admin.php?page=popover&amp;transfer=yes', 'transferpopover'), wp_nonce_url('admin.php?page=popover&amp;transfer=no', 'notransferpopover')) . '</p></div>';
315
+ }
316
 
317
+ function handle_popover_transfer() {
318
 
319
+ if (function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
320
+ $updateoption = 'update_site_option';
321
+ $getoption = 'get_site_option';
322
+ } else {
323
+ $updateoption = 'update_option';
324
+ $getoption = 'get_option';
325
+ }
326
 
327
+ switch ($_GET['transfer']) {
328
 
329
+ case 'yes': check_admin_referer('transferpopover');
330
+ $popover = array();
331
 
332
+ $popover['popover_title'] = __('Transferred Popover', 'popover');
333
+ $popover['popover_content'] = $getoption('popover_content');
334
 
335
+ $popover['popover_settings'] = array();
336
+ $popover['popover_settings']['popover_size'] = $getoption('popover_size');
337
+ $popover['popover_settings']['popover_location'] = $getoption('popover_location');
338
+ ;
339
+ $popover['popover_settings']['popover_colour'] = $getoption('popover_colour');
340
+ $popover['popover_settings']['popover_margin'] = $getoption('popover_margin');
341
+ $popover['popover_settings']['popover_check'] = $getoption('popover_check');
342
 
343
+ $popover['popover_settings']['popover_count'] = $getoption('popover_count');
344
+ $popover['popover_settings']['popover_usejs'] = $getoption('popover_usejs');
345
 
346
+ $popover['popover_settings']['popover_style'] = 'Default';
347
 
348
+ $popover['popover_settings'] = serialize($popover['popover_settings']);
349
 
350
+ $popover['popover_active'] = 1;
 
 
351
 
352
+ $this->db->insert($this->popover, $popover);
353
+ wp_safe_redirect(remove_query_arg('transfer', remove_query_arg('_wpnonce')));
354
+ break;
355
 
356
+ case 'no': check_admin_referer('notransferpopover');
357
+ $updateoption('popover_notranfers', 'yes');
358
+ wp_safe_redirect(remove_query_arg('transfer', remove_query_arg('_wpnonce')));
359
+ break;
360
+ }
361
+ }
362
 
363
+ function add_admin_header_core() {
364
+ // Add in help pages
365
+ $screen = get_current_screen();
366
+ $help = new Popover_Help($screen);
367
+ $help->attach();
368
+ }
369
 
370
+ function add_admin_header_popover() {
371
 
372
+ global $wp_version;
373
 
374
+ wp_enqueue_script('popoveradminjs', popover_url('popoverincludes/js/popoveradmin.js'), array('jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable'), $this->build);
375
 
376
+ if (version_compare(preg_replace('/-.*$/', '', $wp_version), "3.3", '<')) {
377
+ wp_enqueue_style('popoveradmincss', popover_url('popoverincludes/css/popoveradmin.css'), array('widgets'), $this->build);
378
+ } else {
379
+ wp_enqueue_style('popoveradmincss', popover_url('popoverincludes/css/popoveradmin.css'), array(), $this->build);
380
+ }
381
 
382
+ $this->update_admin_header_popover();
383
+ }
384
 
385
+ function add_admin_header_popover_addons() {
386
 
387
+ $this->add_admin_header_core();
388
 
389
+ $this->handle_addons_panel_updates();
390
+ }
391
 
392
+ function reorder_popovers($popover_id, $order) {
393
 
394
+ $this->db->update($this->popover, array('popover_order' => $order), array('id' => $popover_id));
395
+ }
396
 
397
+ function get_popovers() {
 
 
 
 
398
 
399
+ $sql = "SELECT * FROM {$this->popover} ORDER BY popover_order ASC";
 
 
 
 
 
400
 
401
+ return $this->db->get_results($sql);
402
+ }
 
 
 
403
 
404
+ function get_popover($id) {
405
+ return $this->db->get_row($this->db->prepare("SELECT * FROM {$this->popover} WHERE id = %d", $id));
406
+ }
 
 
407
 
408
+ function activate_popover($id) {
409
+ return $this->db->update($this->popover, array('popover_active' => 1), array('id' => $id));
410
+ }
 
 
411
 
412
+ function deactivate_popover($id) {
413
+ return $this->db->update($this->popover, array('popover_active' => 0), array('id' => $id));
414
+ }
415
 
416
+ function toggle_popover($id) {
 
 
 
 
417
 
418
+ $sql = $this->db->prepare("UPDATE {$this->popover} SET popover_active = NOT popover_active WHERE id = %d", $id);
 
 
419
 
420
+ return $this->db->query($sql);
421
+ }
 
422
 
423
+ function delete_popover($id) {
 
 
424
 
425
+ return $this->db->query($this->db->prepare("DELETE FROM {$this->popover} WHERE id = %d", $id));
426
+ }
 
427
 
428
+ function add_popover($data) {
 
 
429
 
430
+ global $action, $page, $allowedposttags;
431
 
432
+ $popover = array();
 
 
433
 
434
+ $popover['popover_title'] = $_POST['popover_title'];
435
 
436
+ if (!current_user_can('unfiltered_html')) {
437
+ $popover['popover_content'] = wp_kses($_POST['popover_content'], $allowedposttags);
438
+ } else {
439
+ $popover['popover_content'] = $_POST['popover_content'];
440
+ }
441
 
442
+ $popover['popover_settings'] = array();
443
+ $popover['popover_settings']['popover_size'] = array('width' => $_POST['popoverwidth'], 'height' => $_POST['popoverheight']);
444
+ $popover['popover_settings']['popover_location'] = array('left' => $_POST['popoverleft'], 'top' => $_POST['popovertop']);
445
+ $popover['popover_settings']['popover_colour'] = array('back' => $_POST['popoverbackground'], 'fore' => $_POST['popoverforeground']);
446
+ $popover['popover_settings']['popover_margin'] = array('left' => $_POST['popovermarginleft'], 'top' => $_POST['popovermargintop'], 'right' => $_POST['popovermarginright'], 'bottom' => $_POST['popovermarginbottom']);
447
+ $popover['popover_settings']['popover_check'] = $_POST['popovercheck'];
448
 
449
+ if (isset($_POST['popoverereg'])) {
450
+ $popover['popover_settings']['popover_ereg'] = $_POST['popoverereg'];
451
+ } else {
452
+ $popover['popover_settings']['popover_ereg'] = '';
453
+ }
454
 
455
+ if (isset($_POST['popovercount'])) {
456
+ $popover['popover_settings']['popover_count'] = $_POST['popovercount'];
457
+ } else {
458
+ $popover['popover_settings']['popover_count'] = 3;
459
+ }
460
 
461
+ if (isset($_POST['popoverusejs']) && $_POST['popoverusejs'] == 'yes') {
462
+ $popover['popover_settings']['popover_usejs'] = 'yes';
463
+ } else {
464
+ $popover['popover_settings']['popover_usejs'] = 'no';
465
+ }
466
 
467
+ $popover['popover_settings']['popover_style'] = $_POST['popoverstyle'];
 
 
 
 
468
 
469
+ if (isset($_POST['popoverhideforeverlink']) && $_POST['popoverhideforeverlink'] == 'yes') {
470
+ $popover['popover_settings']['popoverhideforeverlink'] = 'yes';
471
+ } else {
472
+ $popover['popover_settings']['popoverhideforeverlink'] = 'no';
473
+ }
 
474
 
475
+ if (isset($_POST['popoverdelay'])) {
476
+ $popover['popover_settings']['popoverdelay'] = $_POST['popoverdelay'];
477
+ }
 
 
478
 
479
+ if (isset($_POST['popoveronurl'])) {
480
+ $popover['popover_settings']['onurl'] = explode("\n", $_POST['popoveronurl']);
481
+ }
 
 
482
 
483
+ if (isset($_POST['popovernotonurl'])) {
484
+ $popover['popover_settings']['notonurl'] = explode("\n", $_POST['popovernotonurl']);
485
+ }
 
 
486
 
487
+ if (isset($_POST['popoverincountry'])) {
488
+ $popover['popover_settings']['incountry'] = $_POST['popoverincountry'];
489
+ }
490
 
491
+ if (isset($_POST['popovernotincountry'])) {
492
+ $popover['popover_settings']['notincountry'] = $_POST['popovernotincountry'];
493
+ }
 
 
494
 
495
+ $popover['popover_settings'] = serialize($popover['popover_settings']);
 
 
496
 
497
+ if (isset($_POST['addandactivate'])) {
498
+ $popover['popover_active'] = 1;
499
+ }
500
 
501
+ return $this->db->insert($this->popover, $popover);
502
+ }
 
503
 
504
+ function update_popover($id, $data) {
 
 
505
 
506
+ global $action, $page, $allowedposttags;
 
 
507
 
508
+ $popover = array();
509
 
510
+ $popover['popover_title'] = $_POST['popover_title'];
511
 
512
+ if (!current_user_can('unfiltered_html')) {
513
+ $popover['popover_content'] = wp_kses($_POST['popover_content'], $allowedposttags);
514
+ } else {
515
+ $popover['popover_content'] = $_POST['popover_content'];
516
+ }
517
 
518
+ $popover['popover_settings'] = array();
519
+ $popover['popover_settings']['popover_size'] = array('width' => $_POST['popoverwidth'], 'height' => $_POST['popoverheight']);
520
+ $popover['popover_settings']['popover_location'] = array('left' => $_POST['popoverleft'], 'top' => $_POST['popovertop']);
521
+ $popover['popover_settings']['popover_colour'] = array('back' => $_POST['popoverbackground'], 'fore' => $_POST['popoverforeground']);
522
+ $popover['popover_settings']['popover_margin'] = array('left' => $_POST['popovermarginleft'], 'top' => $_POST['popovermargintop'], 'right' => $_POST['popovermarginright'], 'bottom' => $_POST['popovermarginbottom']);
523
+ $popover['popover_settings']['popover_check'] = $_POST['popovercheck'];
524
 
525
+ if (isset($_POST['popoverereg'])) {
526
+ $popover['popover_settings']['popover_ereg'] = $_POST['popoverereg'];
527
+ } else {
528
+ $popover['popover_settings']['popover_ereg'] = '';
529
+ }
530
 
531
+ if (isset($_POST['popovercount'])) {
532
+ $popover['popover_settings']['popover_count'] = $_POST['popovercount'];
533
+ } else {
534
+ $popover['popover_settings']['popover_count'] = 3;
535
+ }
536
+
537
+ if ($_POST['popoverusejs'] == 'yes') {
538
+ $popover['popover_settings']['popover_usejs'] = 'yes';
539
+ } else {
540
+ $popover['popover_settings']['popover_usejs'] = 'no';
541
+ }
542
+
543
+ $popover['popover_settings']['popover_style'] = $_POST['popoverstyle'];
544
+
545
+ if (isset($_POST['popoverhideforeverlink']) && $_POST['popoverhideforeverlink'] == 'yes') {
546
+ $popover['popover_settings']['popoverhideforeverlink'] = 'yes';
547
+ } else {
548
+ $popover['popover_settings']['popoverhideforeverlink'] = 'no';
549
+ }
550
+
551
+ if (isset($_POST['popoverdelay'])) {
552
+ $popover['popover_settings']['popoverdelay'] = $_POST['popoverdelay'];
553
+ }
554
+
555
+ if (isset($_POST['popoveronurl'])) {
556
+ $popover['popover_settings']['onurl'] = explode("\n", $_POST['popoveronurl']);
557
+ }
558
+
559
+ if (isset($_POST['popovernotonurl'])) {
560
+ $popover['popover_settings']['notonurl'] = explode("\n", $_POST['popovernotonurl']);
561
+ }
562
+
563
+ if (isset($_POST['popoverincountry'])) {
564
+ $popover['popover_settings']['incountry'] = $_POST['popoverincountry'];
565
+ }
566
+
567
+ if (isset($_POST['popovernotincountry'])) {
568
+ $popover['popover_settings']['notincountry'] = $_POST['popovernotincountry'];
569
+ }
570
+
571
+ $popover['popover_settings'] = serialize($popover['popover_settings']);
572
+
573
+ return $this->db->update($this->popover, $popover, array('id' => $id));
574
+ }
575
+
576
+ function update_popover_admin() {
577
+ global $action, $page;
578
+
579
+ wp_reset_vars(array('action', 'page'));
580
+
581
+ if (isset($_REQUEST['action']) || isset($_REQUEST['action2'])) {
582
+
583
+ if (!empty($_REQUEST['action2'])) {
584
+ $_REQUEST['action'] = $_REQUEST['action2'];
585
+ }
586
+
587
+ switch ($_REQUEST['action']) {
588
+
589
+
590
+ case 'activate': $id = (int) $_GET['popover'];
591
+ if (!empty($id)) {
592
+ check_admin_referer('toggle-popover-' . $id);
593
+
594
+ if ($this->activate_popover($id)) {
595
+ wp_safe_redirect(add_query_arg('msg', 3, wp_get_referer()));
596
+ } else {
597
+ wp_safe_redirect(add_query_arg('msg', 4, wp_get_referer()));
598
+ }
599
+ }
600
+ break;
601
+
602
+
603
+ case 'deactivate': $id = (int) $_GET['popover'];
604
+ if (!empty($id)) {
605
+ check_admin_referer('toggle-popover-' . $id);
606
+
607
+ if ($this->deactivate_popover($id)) {
608
+ wp_safe_redirect(add_query_arg('msg', 5, wp_get_referer()));
609
+ } else {
610
+ wp_safe_redirect(add_query_arg('msg', 6, wp_get_referer()));
611
+ }
612
+ }
613
+ break;
614
+
615
+ case 'toggle': $ids = $_REQUEST['popovercheck'];
616
+
617
+ if (!empty($ids)) {
618
+ check_admin_referer('bulk-popovers');
619
+ foreach ((array) $ids as $id) {
620
+ $this->toggle_popover($id);
621
+ }
622
+ wp_safe_redirect(add_query_arg('msg', 7, wp_get_referer()));
623
+ }
624
+ break;
625
+
626
+ case 'delete': $id = (int) $_GET['popover'];
627
+
628
+ if (!empty($id)) {
629
+ check_admin_referer('delete-popover-' . $id);
630
+
631
+ if ($this->delete_popover($id)) {
632
+ wp_safe_redirect(add_query_arg('msg', 8, wp_get_referer()));
633
+ } else {
634
+ wp_safe_redirect(add_query_arg('msg', 9, wp_get_referer()));
635
+ }
636
+ }
637
+ break;
638
+
639
+ case 'added': $id = (int) $_POST['id'];
640
+ if (empty($id)) {
641
+ check_admin_referer('update-popover');
642
+ if ($this->add_popover($_POST)) {
643
+ wp_safe_redirect(add_query_arg('msg', 10, 'admin.php?page=popover'));
644
+ } else {
645
+ wp_safe_redirect(add_query_arg('msg', 11, 'admin.php?page=popover'));
646
+ }
647
+ }
648
+ break;
649
+
650
+ case 'updated': $id = (int) $_POST['id'];
651
+ if (!empty($id)) {
652
+ check_admin_referer('update-popover');
653
+ if ($this->update_popover($id, $_POST)) {
654
+ wp_safe_redirect(add_query_arg('msg', 1, 'admin.php?page=popover'));
655
+ } else {
656
+ wp_safe_redirect(add_query_arg('msg', 2, 'admin.php?page=popover'));
657
+ }
658
+ }
659
+ break;
660
+ }
661
+ }
662
+ }
663
+
664
+ function handle_popover_admin() {
665
+ global $action, $page;
666
+
667
+ if ($action == 'edit') {
668
+ if (isset($_GET['popover'])) {
669
+ $id = (int) $_GET['popover'];
670
+ $this->handle_popover_edit_panel($id);
671
+ return; // So we don't see the rest of this page
672
+ }
673
+ }
674
+
675
+ if ($action == 'add') {
676
+ $this->handle_popover_edit_panel(false);
677
+ return; // So we don't see the rest of this page
678
+ }
679
+
680
+ $messages = array();
681
+ $messages[1] = __('Pop Over updated.', 'popover');
682
+ $messages[2] = __('Pop Over not updated.', 'popover');
683
+
684
+ $messages[3] = __('Pop Over activated.', 'popover');
685
+ $messages[4] = __('Pop Over not activated.', 'popover');
686
+
687
+ $messages[5] = __('Pop Over deactivated.', 'popover');
688
+ $messages[6] = __('Pop Over not deactivated.', 'popover');
689
+
690
+ $messages[7] = __('Pop Over activation toggled.', 'popover');
691
+
692
+ $messages[8] = __('Pop Over deleted.', 'popover');
693
+ $messages[9] = __('Pop Over not deleted.', 'popover');
694
+
695
+ $messages[10] = __('Pop Over added.', 'popover');
696
+ $messages[11] = __('Pop Over not added.', 'popover');
697
+ ?>
698
+ <div class='wrap'>
699
+ <div class="icon32" id="icon-themes"><br></div>
700
+ <h2><?php _e('Edit Pop Overs', 'popover'); ?><a class="add-new-h2" href="admin.php?page=<?php echo $page; ?>&action=add"><?php _e('Add New', 'membership'); ?></a></h2>
701
+
702
+ <?php
703
+ if (isset($_GET['msg'])) {
704
+ echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
705
+ $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
706
+ }
707
+ ?>
708
+
709
+ <form method="get" action="?page=<?php echo esc_attr($page); ?>" id="posts-filter">
710
+
711
+ <input type='hidden' name='page' value='<?php echo esc_attr($page); ?>' />
712
+
713
+ <div class="tablenav">
714
+
715
+ <div class="alignleft actions">
716
+ <select name="action">
717
+ <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
718
+ <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
719
+ </select>
720
+ <input type="submit" class="button-secondary action" id="doaction" name="doaction" value="<?php _e('Apply', 'popover'); ?>">
721
+
722
+ </div>
723
+
724
+ <div class="alignright actions"></div>
725
+
726
+ <br class="clear">
727
+ </div>
728
+
729
+ <div class="clear"></div>
730
+
731
+ <?php
732
+ wp_original_referer_field(true, 'previous');
733
+ wp_nonce_field('bulk-popovers');
734
+
735
+ $columns = array("name" => __('Pop Over Name', 'popover'),
736
+ "rules" => __('Conditions', 'popover'),
737
+ "active" => __('Active', 'popover')
738
+ );
739
+
740
+ $columns = apply_filters('popover_columns', $columns);
741
+
742
+ $popovers = $this->get_popovers();
743
+ ?>
744
+
745
+ <table cellspacing="0" class="widefat fixed" id="dragtable">
746
+ <thead>
747
+ <tr>
748
+
749
+ <th style="width: 20px;" class="manage-column column-drag" id="cb" scope="col"></th>
750
+ <th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox"></th>
751
+
752
+ <?php
753
+ foreach ($columns as $key => $col) {
754
+ ?>
755
+ <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
756
+ <?php
757
+ }
758
+ ?>
759
+ </tr>
760
+ </thead>
761
+
762
+ <tfoot>
763
+ <tr>
764
+
765
+ <th style="" class="manage-column column-drag" scope="col"></th>
766
+ <th style="" class="manage-column column-cb check-column" scope="col"><input type="checkbox"></th>
767
+
768
+ <?php
769
+ reset($columns);
770
+ foreach ($columns as $key => $col) {
771
+ ?>
772
+ <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
773
+ <?php
774
+ }
775
+ ?>
776
+ </tr>
777
+ </tfoot>
778
+
779
+ <tbody id='dragbody'>
780
+ <?php
781
+ if ($popovers) {
782
+ $popovercount = 0;
783
+ foreach ($popovers as $key => $popover) {
784
+ ?>
785
+ <tr valign="middle" class="alternate draghandle" id="<?php echo $popover->id; ?>">
786
+
787
+ <td class="check-drag" scope="row">
788
+ &nbsp;
789
+ </td>
790
+ <td class="check-column" scope="row"><input type="checkbox" value="<?php echo $popover->id; ?>" name="popovercheck[]"></td>
791
+
792
+ <td class="column-name">
793
+ <strong><a href='<?php echo "?page=" . $page . "&amp;action=edit&amp;popover=" . $popover->id . ""; ?>'><?php echo esc_html($popover->popover_title); ?></a></strong>
794
+ <?php
795
+ $actions = array();
796
+
797
+ $actions['edit'] = "<span class='edit'><a href='?page=" . $page . "&amp;action=edit&amp;popover=" . $popover->id . "'>" . __('Edit', 'popover') . "</a></span>";
798
+
799
+ if ($popover->popover_active) {
800
+ $actions['toggle'] = "<span class='edit activate'><a href='" . wp_nonce_url("?page=" . $page . "&amp;action=deactivate&amp;popover=" . $popover->id . "", 'toggle-popover-' . $popover->id) . "'>" . __('Deactivate', 'popover') . "</a></span>";
801
+ } else {
802
+ $actions['toggle'] = "<span class='edit deactivate'><a href='" . wp_nonce_url("?page=" . $page . "&amp;action=activate&amp;popover=" . $popover->id . "", 'toggle-popover-' . $popover->id) . "'>" . __('Activate', 'popover') . "</a></span>";
803
+ }
804
+
805
+ $actions['delete'] = "<span class='delete'><a href='" . wp_nonce_url("?page=" . $page . "&amp;action=delete&amp;popover=" . $popover->id . "", 'delete-popover-' . $popover->id) . "'>" . __('Delete', 'popover') . "</a></span>";
806
+ ?>
807
+ <br><div class="row-actions"><?php echo implode(" | ", $actions); ?></div>
808
+ </td>
809
+
810
+ <td class="column-name">
811
+ <?php
812
+ $p = maybe_unserialize($popover->popover_settings);
813
+ $rules = $p['popover_check'];
814
+ foreach ((array) $rules as $key => $value) {
815
+ if ($key == 'order') {
816
+ continue;
817
+ }
818
+ switch ($key) {
819
+
820
+ case 'supporter': _e('Site is not a Pro-site', 'popover');
821
+ break;
822
+
823
+ case 'isloggedin': _e('Visitor is logged in', 'popover');
824
+ break;
825
+
826
+ case 'loggedin': _e('Visitor is not logged in', 'popover');
827
+ break;
828
+
829
+ case 'commented': _e('Visitor has never commented', 'popover');
830
+ break;
831
+
832
+ case 'searchengine': _e('Visit via a search engine', 'popover');
833
+ break;
834
+
835
+ case 'internal': _e('Visit not via an Internal link', 'popover');
836
+ break;
837
+
838
+ case 'referrer': _e('Visit via specific referer', 'popover');
839
+ break;
840
+
841
+ case 'count': _e('Popover shown less than x times', 'popover');
842
+ break;
843
+
844
+ case 'onurl': _e('On specific URL', 'popover');
845
+ break;
846
+
847
+ case 'notonurl': _e('Not on specific URL', 'popover');
848
+ break;
849
+
850
+ case 'incountry': _e('In a specific country', 'popover');
851
+ break;
852
+
853
+ case 'notincountry': _e('Not in a specific country', 'popover');
854
+ break;
855
+
856
+ default: echo apply_filters('popover_nice_rule_name', $key);
857
+ break;
858
+ }
859
+ echo "<br/>";
860
+ }
861
+ ?>
862
+ </td>
863
+ <td class="column-active">
864
+ <?php
865
+ if ($popover->popover_active) {
866
+ echo "<strong>" . __('Active', 'popover') . "</strong>";
867
+ } else {
868
+ echo __('Inactive', 'popover');
869
+ }
870
+ ?>
871
+ </td>
872
+ </tr>
873
+ <?php
874
+ }
875
+ } else {
876
+ $columncount = count($columns) + 2;
877
+ ?>
878
+ <tr valign="middle" class="alternate" >
879
+ <td colspan="<?php echo $columncount; ?>" scope="row"><?php _e('No Pop Overs were found.', 'popover'); ?></td>
880
+ </tr>
881
+ <?php
882
+ }
883
+ ?>
884
+
885
+ </tbody>
886
+ </table>
887
+
888
+
889
+ <div class="tablenav">
890
+
891
+ <div class="alignleft actions">
892
+ <select name="action2">
893
+ <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
894
+ <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
895
+ </select>
896
+ <input type="submit" class="button-secondary action" id="doaction2" name="doaction2" value="<?php _e('Apply', 'popover'); ?>">
897
+ </div>
898
+ <div class="alignright actions"></div>
899
+ <br class="clear">
900
+ </div>
901
+
902
+ </form>
903
+
904
+ </div> <!-- wrap -->
905
+ <?php
906
+ }
907
+
908
+ function handle_popover_edit_panel($id = false) {
909
+
910
+ global $page;
911
+
912
+ if (function_exists('get_site_option') && defined('PO_GLOBAL') && PO_GLOBAL == true) {
913
+ $updateoption = 'update_site_option';
914
+ $getoption = 'get_site_option';
915
+ } else {
916
+ $updateoption = 'update_option';
917
+ $getoption = 'get_option';
918
+ }
919
+
920
+
921
+ if ($id !== false) {
922
+ $popover = $this->get_popover($id);
923
+
924
+ $popover->popover_settings = unserialize($popover->popover_settings);
925
+ } else {
926
+ $popover = new stdClass;
927
+ $popover->popover_title = __('New Pop Over', 'popover');
928
+ $popover->popover_content = "";
929
+ }
930
+
931
+ $popover_title = stripslashes($popover->popover_title);
932
+
933
+ $popover_content = stripslashes($popover->popover_content);
934
+
935
+ if (empty($popover->popover_settings)) {
936
+ $popover->popover_settings = array('popover_size' => array('width' => '500px', 'height' => '200px'),
937
+ 'popover_location' => array('left' => '100px', 'top' => '100px'),
938
+ 'popover_colour' => array('back' => 'FFFFFF', 'fore' => '000000'),
939
+ 'popover_margin' => array('left' => '0px', 'top' => '0px', 'right' => '0px', 'bottom' => '0px'),
940
+ 'popover_check' => array(),
941
+ 'popover_ereg' => '',
942
+ 'popover_count' => 3,
943
+ 'popover_usejs' => 'no'
944
+ );
945
+ }
946
+
947
+ $popover_size = $popover->popover_settings['popover_size'];
948
+ $popover_location = $popover->popover_settings['popover_location'];
949
+ $popover_colour = $popover->popover_settings['popover_colour'];
950
+ $popover_margin = $popover->popover_settings['popover_margin'];
951
+
952
+ $popover_size = $this->sanitise_array($popover_size);
953
+ $popover_location = $this->sanitise_array($popover_location);
954
+ $popover_colour = $this->sanitise_array($popover_colour);
955
+ $popover_margin = $this->sanitise_array($popover_margin);
956
+
957
+ $popover_check = $popover->popover_settings['popover_check'];
958
+ $popover_ereg = $popover->popover_settings['popover_ereg'];
959
+ $popover_count = $popover->popover_settings['popover_count'];
960
+
961
+ $popover_usejs = $popover->popover_settings['popover_usejs'];
962
+
963
+ $popoverstyle = (isset($popover->popover_settings['popover_style'])) ? $popover->popover_settings['popover_style'] : '';
964
+
965
+ $popover_hideforever = (isset($popover->popover_settings['popoverhideforeverlink'])) ? $popover->popover_settings['popoverhideforeverlink'] : '';
966
+
967
+ $popover_delay = (isset($popover->popover_settings['popoverdelay'])) ? $popover->popover_settings['popoverdelay'] : '';
968
+
969
+ $popover_onurl = (isset($popover->popover_settings['onurl'])) ? $popover->popover_settings['onurl'] : '';
970
+ $popover_notonurl = (isset($popover->popover_settings['notonurl'])) ? $popover->popover_settings['notonurl'] : '';
971
+
972
+ $popover_incountry = (isset($popover->popover_settings['incountry'])) ? $popover->popover_settings['incountry'] : '';
973
+ $popover_notincountry = (isset($popover->popover_settings['notincountry'])) ? $popover->popover_settings['notincountry'] : '';
974
+
975
+ $popover_onurl = $this->sanitise_array($popover_onurl);
976
+ $popover_notonurl = $this->sanitise_array($popover_notonurl);
977
+ ?>
978
+ <div class='wrap nosubsub'>
979
+ <div class="icon32" id="icon-themes"><br></div>
980
+ <?php if ($id !== false) { ?>
981
+ <h2><?php echo __('Edit Pop Over', 'popover'); ?></h2>
982
+ <?php } else { ?>
983
+ <h2><?php echo __('Add Pop Over', 'popover'); ?></h2>
984
+ <?php } ?>
985
+ <div class='popover-liquid-left'>
986
+
987
+ <div id='popover-left'>
988
+ <form action='?page=<?php echo $page; ?>' name='popoveredit' method='post'>
989
+
990
+ <input type='hidden' name='id' id='id' value='<?php echo $id; ?>' />
991
+ <input type='hidden' name='beingdragged' id='beingdragged' value='' />
992
+ <input type='hidden' name='popovercheck[order]' id='in-positive-rules' value='<?php echo esc_attr($popover_check['order']); ?>' />
993
+
994
+ <div id='edit-popover' class='popover-holder-wrap'>
995
+ <div class='sidebar-name no-movecursor'>
996
+ <h3><?php echo __('Pop Over Settings', 'popover'); ?></h3>
997
+ </div>
998
+ <div class='popover-holder'>
999
+
1000
+ <div class='popover-details'>
1001
+
1002
+ <label for='popover_title'><?php _e('Popover title', 'popover'); ?></label><br/>
1003
+ <input name='popover_title' id='popover_title' style='width: 97%; border: 1px solid; border-color: #DFDFDF;' value='<?php echo stripslashes($popover_title); ?>' /><br/><br/>
1004
+
1005
+ <label for='popovercontent'><?php _e('Popover content', 'popover'); ?></label><br/>
1006
+ <?php
1007
+ $args = array("textarea_name" => "popover_content", "textarea_rows" => 5);
1008
+ wp_editor(stripslashes($popover_content), "popover_content", $args);
1009
+ /*
1010
+ ?>
1011
+ <textarea name='popover_content' id='popover_content' style='width: 98%' rows='5' cols='10'><?php echo stripslashes($popover_content); ?></textarea>
1012
+ <?php
1013
+ */
1014
+ ?>
1015
+ </div>
1016
+
1017
+ <h3><?php _e('Active conditions', 'popover'); ?></h3>
1018
+ <p class='description'><?php _e('These are the rules that will determine if a popover should show when a visitor arrives at your website ALL rules must be true for the popover to show.', 'popover'); ?></p>
1019
+ <div id='positive-rules-holder'>
1020
+ <?php
1021
+ if (!empty($popover_check['order'])) {
1022
+ $order = explode(',', $popover_check['order']);
1023
+ } else {
1024
+ $order = array();
1025
+ }
1026
+
1027
+ foreach ($order as $key) {
1028
+
1029
+ switch ($key) {
1030
+
1031
+ case 'supporter': if (function_exists('is_pro_site'))
1032
+ $this->admin_main('supporter', 'Site is not a Pro-site', 'Shows the popover if the site is not a Pro-site.', true);
1033
+ break;
1034
+
1035
+ case 'isloggedin': $this->admin_main('isloggedin', 'Visitor is logged in', 'Shows the popover if the user is logged in to your site.', true);
1036
+ break;
1037
+ case 'loggedin': $this->admin_main('loggedin', 'Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', true);
1038
+ break;
1039
+ case 'commented': $this->admin_main('commented', 'Visitor has never commented', 'Shows the popover if the user has never left a comment.', true);
1040
+ break;
1041
+ case 'searchengine': $this->admin_main('searchengine', 'Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', true);
1042
+ break;
1043
+ case 'internal': $this->admin_main('internal', 'Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', true);
1044
+ break;
1045
+ case 'referrer': $this->admin_referer('referrer', 'Visit via specific referer', 'Shows the popover if the user arrived via the following referrer:', $popover_ereg);
1046
+ break;
1047
+ case 'count': $this->admin_viewcount('count', 'Popover shown less than', 'Shows the popover if the user has only seen it less than the following number of times:', $popover_count);
1048
+ break;
1049
+ case 'onurl': $this->admin_urllist('onurl', 'On specific URL', 'Shows the popover if the user is on a certain URL (enter one URL per line)', $popover_onurl);
1050
+ break;
1051
+ case 'notonurl': $this->admin_urllist('notonurl', 'Not on specific URL', 'Shows the popover if the user is not on a certain URL (enter one URL per line)', $popover_notonurl);
1052
+ break;
1053
+ case 'incountry': $this->admin_countrylist('incountry', 'In a specific Country', 'Shows the popover if the user is in a certain country.', $popover_incountry);
1054
+ break;
1055
+ case 'notincountry': $this->admin_countrylist('notincountry', 'Not in a specific Country', 'Shows the popover if the user is not in a certain country.', $popover_notincountry);
1056
+ break;
1057
+
1058
+ default: do_action('popover_active_rule_' . $key);
1059
+ do_action('popover_active_rule', $key);
1060
+ break;
1061
+ }
1062
+ }
1063
+ ?>
1064
+ </div>
1065
+ <div id='positive-rules' class='droppable-rules popovers-sortable'>
1066
+ <?php _e('Drop here', 'membership'); ?>
1067
+ </div>
1068
+
1069
+ <h3><?php _e('Appearance settings', 'popover'); ?></h3>
1070
+ <table class='form-table' style=''>
1071
+ <tr>
1072
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop Over Size', 'popover'); ?></strong></th>
1073
+ <td valign='top'>
1074
+ <?php _e('Width:', 'popover'); ?>&nbsp;
1075
+ <input type='text' name='popoverwidth' id='popoverwidth' style='width: 5em;' value='<?php echo $popover_size['width']; ?>' />&nbsp;
1076
+ <?php _e('Height:', 'popover'); ?>&nbsp;
1077
+ <input type='text' name='popoverheight' id='popoverheight' style='width: 5em;' value='<?php echo $popover_size['height']; ?>' />
1078
+ </td>
1079
+ </tr>
1080
+
1081
+ <tr>
1082
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop Over Position', 'popover'); ?></strong></th>
1083
+ <td valign='top'>
1084
+ <?php _e('Left:', 'popover'); ?>&nbsp;
1085
+ <input type='text' name='popoverleft' id='popoverleft' style='width: 5em;' value='<?php echo $popover_location['left']; ?>' />&nbsp;
1086
+ <?php _e('Top:', 'popover'); ?>&nbsp;
1087
+ <input type='text' name='popovertop' id='popovertop' style='width: 5em;' value='<?php echo $popover_location['top']; ?>' />
1088
+ </td>
1089
+ </tr>
1090
+
1091
+ <tr>
1092
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Pop Over Margins', 'popover'); ?></strong></th>
1093
+ <td valign='top'>
1094
+ <?php _e('Left:', 'popover'); ?>&nbsp;
1095
+ <input type='text' name='popovermarginleft' style='width: 5em;' value='<?php echo $popover_margin['left']; ?>' />&nbsp;
1096
+ <?php _e('Right:', 'popover'); ?>&nbsp;
1097
+ <input type='text' name='popovermarginright' style='width: 5em;' value='<?php echo $popover_margin['right']; ?>' /><br/>
1098
+ <?php _e('Top:', 'popover'); ?>&nbsp;
1099
+ <input type='text' name='popovermargintop' style='width: 5em;' value='<?php echo $popover_margin['top']; ?>' />&nbsp;
1100
+ <?php _e('Bottom:', 'popover'); ?>&nbsp;
1101
+ <input type='text' name='popovermarginbottom' style='width: 5em;' value='<?php echo $popover_margin['bottom']; ?>' />
1102
+ </td>
1103
+ </tr>
1104
+
1105
+ <tr>
1106
+ <th valign='top' scope='row' style='width: 25%;'>&nbsp;</th>
1107
+ <td valign='top'>
1108
+ <?php _e('or use Javascript to resize and center the popover', 'popover'); ?>&nbsp;<input type='checkbox' name='popoverusejs' id='popoverusejs' value='yes' <?php if ($popover_usejs == 'yes') echo "checked='checked'"; ?> />
1109
+ </td>
1110
+ </tr>
1111
+
1112
+ </table>
1113
+ <table class='form-table'>
1114
+
1115
+ <tr>
1116
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Background Color', 'popover'); ?></strong></th>
1117
+ <td valign='top'>
1118
+ <?php _e('Hex:', 'popover'); ?>&nbsp;#
1119
+ <input type='text' name='popoverbackground' id='popoverbackground' style='width: 10em;' value='<?php echo $popover_colour['back']; ?>' />
1120
+ </td>
1121
+ </tr>
1122
+
1123
+ <tr>
1124
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Font Color', 'popover'); ?></strong></th>
1125
+ <td valign='top'>
1126
+ <?php _e('Hex:', 'popover'); ?>&nbsp;#
1127
+ <input type='text' name='popoverforeground' id='popoverforeground' style='width: 10em;' value='<?php echo $popover_colour['fore']; ?>' />
1128
+ </td>
1129
+ </tr>
1130
+
1131
+ </table>
1132
+
1133
+ <?php
1134
+ $availablestyles = apply_filters('popover_available_styles_directory', array());
1135
+
1136
+ if (count($availablestyles) > 1) {
1137
+ ?>
1138
+ <h3><?php _e('Pop Over Style', 'popover'); ?></h3>
1139
+ <table class='form-table'>
1140
+
1141
+ <tr>
1142
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Use Style', 'popover'); ?></strong></th>
1143
+ <td valign='top'>
1144
+ <select name='popoverstyle'>
1145
+ <?php
1146
+ foreach ((array) $availablestyles as $key => $location) {
1147
+ ?>
1148
+ <option value='<?php echo $key; ?>' <?php selected($key, $popoverstyle); ?>><?php echo $key; ?></option>
1149
+ <?php
1150
+ }
1151
+ ?>
1152
+ </select>
1153
+
1154
+ </td>
1155
+ </tr>
1156
+
1157
+ </table>
1158
+ <?php
1159
+ } else {
1160
+ foreach ((array) $availablestyles as $key => $location) {
1161
+ // There's only one - but it's easy to get the key this way :)
1162
+ ?>
1163
+ <input type='hidden' name='popoverstyle' value='<?php echo $key; ?>' />
1164
+ <?php
1165
+ }
1166
+ }
1167
+ ?>
1168
+
1169
+ <h3><?php _e('Remove Hide Forever Link', 'popover'); ?></h3>
1170
+ <table class='form-table' style=''>
1171
+ <tr>
1172
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Remove the "Never see this message again" link', 'popover'); ?></strong></th>
1173
+ <td valign='top'>
1174
+ <input type='checkbox' name='popoverhideforeverlink' id='popoverhideforeverlink' value='yes' <?php if ($popover_hideforever == 'yes') {
1175
+ echo "checked='checked'";
1176
+ } ?> />
1177
+ </td>
1178
+ </tr>
1179
+ </table>
1180
+
1181
+ <h3><?php _e('Pop over appearance delays', 'popover'); ?></h3>
1182
+ <table class='form-table' style=''>
1183
+ <tr>
1184
+ <th valign='top' scope='row' style='width: 25%;'><strong><?php _e('Show Pop Over', 'popover'); ?></strong></th>
1185
+ <td valign='top'>
1186
+ <select name='popoverdelay'>
1187
+ <option value='immediate' <?php selected('immediate', $popover_delay); ?>><?php _e('immediately', 'popover'); ?></option>
1188
+ <?php
1189
+ for ($n = 1; $n <= 120; $n++) {
1190
+ ?>
1191
+ <option value='<?php echo $n; ?>' <?php selected($n, $popover_delay); ?>><?php echo __('after', 'popover') . ' ' . $n . ' ' . __('seconds', 'popover'); ?></option>
1192
+ <?php
1193
+ }
1194
+ ?>
1195
+ </select>
1196
+ </td>
1197
+ </tr>
1198
+ </table>
1199
+
1200
+ <div class='buttons'>
1201
+ <?php
1202
+ wp_original_referer_field(true, 'previous');
1203
+ wp_nonce_field('update-popover');
1204
+ ?>
1205
+ <?php if ($id !== false) { ?>
1206
+ <input type='submit' value='<?php _e('Update', 'popover'); ?>' class='button-primary' />
1207
+ <input type='hidden' name='action' value='updated' />
1208
+ <?php } else { ?>
1209
+ <input type='submit' value='<?php _e('Add', 'popover'); ?>' class='button' name='add' />&nbsp;<input type='submit' value='<?php _e('Add and Activate', 'popover'); ?>' class='button-primary' name='addandactivate' />
1210
+ <input type='hidden' name='action' value='added' />
1211
+ <?php } ?>
1212
+
1213
+ </div>
1214
+
1215
+ </div>
1216
+ </div>
1217
+ </form>
1218
+ </div>
1219
+
1220
+
1221
+ <div id='hiden-actions'>
1222
+ <?php
1223
+ if (!isset($popover_check['supporter']) && function_exists('is_pro_site')) {
1224
+ $this->admin_main('supporter', 'Site is not a Pro-site', 'Shows the popover if the site is not a Pro-site.', true);
1225
+ }
1226
+
1227
+ if (!isset($popover_check['isloggedin'])) {
1228
+ $this->admin_main('isloggedin', 'Visitor is logged in', 'Shows the popover if the user is logged in to your site.', true);
1229
+ }
1230
+
1231
+ if (!isset($popover_check['loggedin'])) {
1232
+ $this->admin_main('loggedin', 'Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', true);
1233
+ }
1234
+
1235
+ if (!isset($popover_check['commented'])) {
1236
+ $this->admin_main('commented', 'Visitor has never commented', 'Shows the popover if the user has never left a comment.', true);
1237
+ }
1238
+
1239
+ if (!isset($popover_check['searchengine'])) {
1240
+ $this->admin_main('searchengine', 'Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', true);
1241
+ }
1242
+
1243
+ if (!isset($popover_check['internal'])) {
1244
+ $this->admin_main('internal', 'Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', true);
1245
+ }
1246
+
1247
+ if (!isset($popover_check['referrer'])) {
1248
+ $this->admin_referer('referrer', 'Visit via specific referer', 'Shows the popover if the user arrived via the following referrer:', $popover_ereg);
1249
+ }
1250
+
1251
+ if (!isset($popover_check['onurl'])) {
1252
+ $this->admin_urllist('onurl', 'On specific URL', 'Shows the popover if the user is on a certain URL (enter one URL per line)', $popover_onurl);
1253
+ }
1254
+
1255
+ if (!isset($popover_check['notonurl'])) {
1256
+ $this->admin_urllist('notonurl', 'Not on specific URL', 'Shows the popover if the user is not on a certain URL (enter one URL per line)', $popover_notonurl);
1257
+ }
1258
+
1259
+ if (!isset($popover_check['incountry'])) {
1260
+ $this->admin_countrylist('incountry', 'In a specific Country', 'Shows the popover if the user is in a certain country.', $popover_incountry);
1261
+ }
1262
+
1263
+ if (!isset($popover_check['notincountry'])) {
1264
+ $this->admin_countrylist('notincountry', 'Not in a specific Country', 'Shows the popover if the user is not in a certain country.', $popover_notincountry);
1265
+ }
1266
+
1267
+ //$popover_count
1268
+ if (!isset($popover_check['count'])) {
1269
+ $this->admin_viewcount('count', 'Popover shown less than', 'Shows the popover if the user has only seen it less than the following number of times:', $popover_count);
1270
+ }
1271
+
1272
+ do_action('popover_additional_rules_main');
1273
+ ?>
1274
+ </div> <!-- hidden-actions -->
1275
+
1276
+ </div> <!-- popover-liquid-left -->
1277
+
1278
+ <div class='popover-liquid-right'>
1279
+ <div class="popover-holder-wrap">
1280
+
1281
+ <div class="sidebar-name no-movecursor">
1282
+ <h3><?php _e('Conditions', 'popover'); ?></h3>
1283
+ </div>
1284
+ <div class="section-holder" id="sidebar-rules" style="min-height: 98px;">
1285
+ <ul class='popovers popovers-draggable'>
1286
+ <?php
1287
+ if (isset($popover_check['supporter']) && function_exists('is_pro_site')) {
1288
+ $this->admin_sidebar('supporter', 'Site is not a Pro-site', 'Shows the popover if the site is not a Pro-site.', true);
1289
+ } elseif (function_exists('is_pro_site')) {
1290
+ $this->admin_sidebar('supporter', 'Site is not a Pro-site', 'Shows the popover if the site is not a Pro-site.', false);
1291
+ }
1292
+
1293
+ if (isset($popover_check['isloggedin'])) {
1294
+ $this->admin_sidebar('isloggedin', 'Visitor is logged in', 'Shows the popover if the user is logged in to your site.', true);
1295
+ } else {
1296
+ $this->admin_sidebar('isloggedin', 'Visitor is logged in', 'Shows the popover if the user is logged in to your site.', false);
1297
+ }
1298
+
1299
+ if (isset($popover_check['loggedin'])) {
1300
+ $this->admin_sidebar('loggedin', 'Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', true);
1301
+ } else {
1302
+ $this->admin_sidebar('loggedin', 'Visitor is not logged in', 'Shows the popover if the user is <strong>not</strong> logged in to your site.', false);
1303
+ }
1304
+
1305
+ if (isset($popover_check['commented'])) {
1306
+ $this->admin_sidebar('commented', 'Visitor has never commented', 'Shows the popover if the user has never left a comment.', true);
1307
+ } else {
1308
+ $this->admin_sidebar('commented', 'Visitor has never commented', 'Shows the popover if the user has never left a comment.', false);
1309
+ }
1310
+
1311
+ if (isset($popover_check['searchengine'])) {
1312
+ $this->admin_sidebar('searchengine', 'Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', true);
1313
+ } else {
1314
+ $this->admin_sidebar('searchengine', 'Visit via a search engine', 'Shows the popover if the user arrived via a search engine.', false);
1315
+ }
1316
+
1317
+ if (isset($popover_check['internal'])) {
1318
+ $this->admin_sidebar('internal', 'Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', true);
1319
+ } else {
1320
+ $this->admin_sidebar('internal', 'Visit not via an Internal link', 'Shows the popover if the user did not arrive on this page via another page on your site.', false);
1321
+ }
1322
+
1323
+ if (isset($popover_check['referrer'])) {
1324
+ $this->admin_sidebar('referrer', 'Visit via specific referer', 'Shows the popover if the user arrived via a specific referrer.', true);
1325
+ } else {
1326
+ $this->admin_sidebar('referrer', 'Visit via specific referer', 'Shows the popover if the user arrived via a specific referrer.', false);
1327
+ }
1328
+
1329
+ if (isset($popover_check['count'])) {
1330
+ $this->admin_sidebar('count', 'Popover shown less than', 'Shows the popover if the user has only seen it less than a specific number of times.', true);
1331
+ } else {
1332
+ $this->admin_sidebar('count', 'Popover shown less than', 'Shows the popover if the user has only seen it less than a specific number of times.', false);
1333
+ }
1334
+
1335
+ if (isset($popover_check['onurl'])) {
1336
+ $this->admin_sidebar('onurl', 'On specific URL', 'Shows the popover if the user is on a certain URL.', true);
1337
+ } else {
1338
+ $this->admin_sidebar('onurl', 'On specific URL', 'Shows the popover if the user is on a certain URL.', false);
1339
+ }
1340
+
1341
+ if (isset($popover_check['notonurl'])) {
1342
+ $this->admin_sidebar('notonurl', 'Not on specific URL', 'Shows the popover if the user is not on a certain URL.', true);
1343
+ } else {
1344
+ $this->admin_sidebar('notonurl', 'Not on specific URL', 'Shows the popover if the user is not on a certain URL.', false);
1345
+ }
1346
+
1347
+ do_action('popover_additional_rules_sidebar');
1348
+ ?>
1349
+ </ul>
1350
+ </div>
1351
+
1352
+ </div> <!-- popover-holder-wrap -->
1353
+
1354
+ </div> <!-- popover-liquid-left -->
1355
+
1356
+ </div> <!-- wrap -->
1357
+
1358
+ <?php
1359
+ }
1360
+
1361
+ function admin_sidebar($id, $title, $message, $data = false) {
1362
+ ?>
1363
+ <li class='popover-draggable' id='<?php echo $id; ?>' <?php if ($data === true) echo "style='display:none;'"; ?>>
1364
+
1365
+ <div class='action action-draggable'>
1366
+ <div class='action-top closed'>
1367
+ <a href="#available-actions" class="action-button hide-if-no-js"></a>
1368
+ <?php _e($title, 'popover'); ?>
1369
+ </div>
1370
+ <div class='action-body closed'>
1371
+ <?php if (!empty($message)) { ?>
1372
+ <p>
1373
+ <?php _e($message, 'popover'); ?>
1374
+ </p>
1375
+ <?php } ?>
1376
+ <p>
1377
+ <a href='#addtopopover' class='action-to-popover' title='<?php _e('Add this rule to the popover.', 'popover'); ?>'><?php _e('Add this rule to the popover.', 'popover'); ?></a>
1378
+ </p>
1379
+ </div>
1380
+ </div>
1381
+
1382
+ </li>
1383
+ <?php
1384
+ }
1385
+
1386
+ function admin_main($id, $title, $message, $data = false) {
1387
+ if (!$data)
1388
+ $data = array();
1389
+ ?>
1390
+ <div class='popover-operation' id='main-<?php echo $id; ?>'>
1391
+ <h2 class='sidebar-name'><?php _e($title, 'popover'); ?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.", 'popover'); ?>'><?php _e('Remove', 'popover'); ?></a></span></h2>
1392
+ <div class='inner-operation'>
1393
+ <p><?php _e($message, 'popover'); ?></p>
1394
+ <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1395
+ </div>
1396
+ </div>
1397
+ <?php
1398
+ }
1399
+
1400
+ function admin_referer($id, $title, $message, $data = false) {
1401
+ if (!$data)
1402
+ $data = ''
1403
+ ?>
1404
+ <div class='popover-operation' id='main-<?php echo $id; ?>'>
1405
+ <h2 class='sidebar-name'><?php _e($title, 'popover'); ?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.", 'popover'); ?>'><?php _e('Remove', 'popover'); ?></a></span></h2>
1406
+ <div class='inner-operation'>
1407
+ <p><?php _e($message, 'popover'); ?></p>
1408
+ <input type='text' name='popoverereg' id='popoverereg' style='width: 10em;' value='<?php echo esc_html($data); ?>' />
1409
+ <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1410
+ </div>
1411
+ </div>
1412
+ <?php
1413
+ }
1414
+
1415
+ function admin_viewcount($id, $title, $message, $data = false) {
1416
+ if (!$data)
1417
+ $data = '';
1418
+ ?>
1419
+ <div class='popover-operation' id='main-<?php echo $id; ?>'>
1420
+ <h2 class='sidebar-name'><?php _e($title, 'popover'); ?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.", 'popover'); ?>'><?php _e('Remove', 'popover'); ?></a></span></h2>
1421
+ <div class='inner-operation'>
1422
+ <p><?php _e($message, 'popover'); ?></p>
1423
+ <input type='text' name='popovercount' id='popovercount' style='width: 5em;' value='<?php echo esc_html($data); ?>' />&nbsp;
1424
+ <?php _e('times', 'popover'); ?>
1425
+ <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1426
+ </div>
1427
+ </div>
1428
+ <?php
1429
+ }
1430
+
1431
+ function admin_urllist($id, $title, $message, $data = false) {
1432
+ if (!$data)
1433
+ $data = array();
1434
+
1435
+ $data = implode("\n", $data);
1436
+ ?>
1437
+ <div class='popover-operation' id='main-<?php echo $id; ?>'>
1438
+ <h2 class='sidebar-name'><?php _e($title, 'popover'); ?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.", 'popover'); ?>'><?php _e('Remove', 'popover'); ?></a></span></h2>
1439
+ <div class='inner-operation'>
1440
+ <p><?php _e($message, 'popover'); ?></p>
1441
+ <textarea name='popover<?php echo $id; ?>' id='popover<?php echo $id; ?>' style=''><?php echo esc_html($data); ?></textarea>
1442
+ <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1443
+ </div>
1444
+ </div>
1445
+ <?php
1446
+ }
1447
+
1448
+ function admin_countrylist($id, $title, $message, $data = false) {
1449
+ if (!$data)
1450
+ $data = '';
1451
+ ?>
1452
+ <div class='popover-operation' id='main-<?php echo $id; ?>'>
1453
+ <h2 class='sidebar-name'><?php _e($title, 'popover'); ?><span><a href='#remove' class='removelink' id='remove-<?php echo $id; ?>' title='<?php _e("Remove $title tag from this rules area.", 'popover'); ?>'><?php _e('Remove', 'popover'); ?></a></span></h2>
1454
+ <div class='inner-operation'>
1455
+ <p><?php _e($message, 'popover'); ?></p>
1456
+ <?php $countries = P_CountryList(); ?>
1457
+ <select name='popover<?php echo $id; ?>' id='popover<?php echo $id; ?>' style=''>
1458
+ <option value='' <?php selected('', $data); ?>><?php _e('Select a country from the list below', 'popover') ?></option>
1459
+ <?php
1460
+ foreach ((array) $countries as $code => $country) {
1461
+ ?>
1462
+ <option value='<?php echo $code; ?>' <?php selected($code, $data); ?>><?php echo $country; ?></option>
1463
+ <?php
1464
+ }
1465
+ ?>
1466
+ </select>
1467
+ <input type='hidden' name='popovercheck[<?php echo $id; ?>]' value='yes' />
1468
+ </div>
1469
+ </div>
1470
+ <?php
1471
+ }
1472
+
1473
+ function handle_admin_panelold() {
1474
+
1475
+ global $allowedposttags;
1476
+
1477
+ if (is_multisite() && defined('PO_GLOBAL')) {
1478
+ $updateoption = 'update_site_option';
1479
+ $getoption = 'get_site_option';
1480
+ } else {
1481
+ $updateoption = 'update_option';
1482
+ $getoption = 'get_option';
1483
+ }
1484
+
1485
+ if (isset($_POST['action']) && addslashes($_POST['action']) == 'updatepopover') {
1486
+
1487
+ //print_r($_POST);
1488
+
1489
+ if (isset($_POST['popovercontent'])) {
1490
+ if (defined('PO_USEKSES')) {
1491
+ $updateoption('popover_content', wp_kses($_POST['popovercontent'], $allowedposttags));
1492
+ } else {
1493
+ $updateoption('popover_content', $_POST['popovercontent']);
1494
+ }
1495
+ }
1496
+
1497
+ if (isset($_POST['popoverwidth']) || isset($_POST['popoverheight'])) {
1498
+
1499
+ $width = $_POST['popoverwidth'];
1500
+ $height = $_POST['popoverheight'];
1501
+
1502
+ if ($width == '')
1503
+ $width = '500px';
1504
+ if ($height == '')
1505
+ $height = '200px';
1506
+
1507
+ $updateoption('popover_size', array("width" => $width, "height" => $height));
1508
+ }
1509
+
1510
+ if (isset($_POST['popoverleft']) || isset($_POST['popovertop'])) {
1511
+
1512
+ $left = $_POST['popoverleft'];
1513
+ $top = $_POST['popovertop'];
1514
+
1515
+ if ($left == '')
1516
+ $left = '100px';
1517
+ if ($top == '')
1518
+ $top = '100px';
1519
+
1520
+ $updateoption('popover_location', array("left" => $left, "top" => $top));
1521
+ }
1522
+
1523
+ if (isset($_POST['popovermargintop']) || isset($_POST['popovermarginleft']) || isset($_POST['popovermarginright']) || isset($_POST['popovermarginbottom'])) {
1524
+
1525
+ $mleft = $_POST['popovermarginleft'];
1526
+ $mtop = $_POST['popovermargintop'];
1527
+ $mright = $_POST['popovermarginright'];
1528
+ $mbottom = $_POST['popovermarginbottom'];
1529
+
1530
+ if ($mleft == '')
1531
+ $mleft = '0px';
1532
+ if ($mtop == '')
1533
+ $mtop = '0px';
1534
+ if ($mright == '')
1535
+ $mright = '0px';
1536
+ if ($mbottom == '')
1537
+ $mbottom = '0px';
1538
+
1539
+ $updateoption('popover_margin', array('left' => $mleft, 'top' => $mtop, 'right' => $mright, 'bottom' => $mbottom));
1540
+ }
1541
+
1542
+ if (isset($_POST['popoverbackground']) || isset($_POST['popoverforeground'])) {
1543
+
1544
+ $back = $_POST['popoverbackground'];
1545
+ $fore = $_POST['popoverforeground'];
1546
+
1547
+ if ($back == '')
1548
+ $back = 'FFFFFF';
1549
+ if ($fore == '')
1550
+ $fore = '000000';
1551
+
1552
+ $updateoption('popover_colour', array("back" => $back, "fore" => $fore));
1553
+ }
1554
+
1555
+ if (isset($_POST['popovercheck'])) {
1556
+
1557
+ $updateoption('popover_check', $_POST['popovercheck']);
1558
+
1559
+ if (isset($_POST['popoverereg'])) {
1560
+ $updateoption('popover_ereg', $_POST['popoverereg']);
1561
+ }
1562
+
1563
+ if (isset($_POST['popovercount'])) {
1564
+ $updateoption('popover_count', intval($_POST['popovercount']));
1565
+ }
1566
+ }
1567
+
1568
+ if (isset($_POST['popoverusejs'])) {
1569
+ $updateoption('popover_usejs', 'yes');
1570
+ } else {
1571
+ $updateoption('popover_usejs', 'no');
1572
+ }
1573
+
1574
+ echo '<div id="message" class="updated fade"><p>' . __('Your settings have been saved.', 'popover') . '</p></div>';
1575
+ }
1576
+
1577
+ $popover_content = stripslashes($getoption('popover_content', ''));
1578
+ $popover_size = $getoption('popover_size', array('width' => '500px', 'height' => '200px'));
1579
+ $popover_location = $getoption('popover_location', array('left' => '100px', 'top' => '100px'));
1580
+ $popover_colour = $getoption('popover_colour', array('back' => 'FFFFFF', 'fore' => '000000'));
1581
+ $popover_margin = $getoption('popover_margin', array('left' => '0px', 'top' => '0px', 'right' => '0px', 'bottom' => '0px'));
1582
+
1583
+ $popover_size = $this->sanitise_array($popover_size);
1584
+ $popover_location = $this->sanitise_array($popover_location);
1585
+ $popover_colour = $this->sanitise_array($popover_colour);
1586
+ $popover_margin = $this->sanitise_array($popover_margin);
1587
+
1588
+ $popover_check = $getoption('popover_check', array());
1589
+ $popover_ereg = $getoption('popover_ereg', '');
1590
+ $popover_count = $getoption('popover_count', '3');
1591
+
1592
+ $popover_usejs = $getoption('popover_usejs', 'no');
1593
+ ?>
1594
+
1595
+ <div class='wrap'>
1596
+
1597
+ <form action='' method='post'>
1598
+ <input type='hidden' name='action' value='updatepopover' />
1599
+ <?php wp_nonce_field('updatepopover'); ?>
1600
+
1601
+ <h2><?php _e('Pop Over content settings', 'popover'); ?></h2>
1602
+ <p><?php _e('Use the settings below to modify the content of your pop over and the rules that will determine when, or if, it will be displayed.', 'popover'); ?></p>
1603
+
1604
+ <h3><?php _e('Pop Over content', 'popover'); ?></h3>
1605
+ <p><?php _e('Enter the content for your pop over in the text area below. HTML is allowed.', 'popover'); ?></p>
1606
+ <textarea name='popovercontent' id='popovercontent' style='width: 90%' rows='10' cols='10'><?php echo stripslashes($popover_content); ?></textarea>
1607
+
1608
+ <p class="submit">
1609
+ <input class="button" type="submit" name="go" value="<?php _e('Update content', 'popover'); ?>" />
1610
+ </p>
1611
+
1612
+ <h3><?php _e('Pop Over display settings', 'popover'); ?></h3>
1613
+ <p><?php _e('Use the options below to determine the look, and display settings for the Pop Over.', 'popover'); ?></p>
1614
+
1615
+ <table class='form-table'>
1616
+
1617
+ <tr>
1618
+ <td valign='top' width='49%'>
1619
+ <h3><?php _e('Appearance Settings', 'popover'); ?></h3>
1620
+
1621
+ <table class='form-table' style='border: 1px solid #ccc; padding-top: 10px; padding-bottom: 10px; margin-bottom: 10px;'>
1622
+ <tr>
1623
+ <th valign='top' scope='row' style='width: 25%;'><?php _e('Pop Over Size', 'popover'); ?></th>
1624
+ <td valign='top'>
1625
+ <?php _e('Width:', 'popover'); ?>&nbsp;
1626
+ <input type='text' name='popoverwidth' id='popoverwidth' style='width: 5em;' value='<?php echo $popover_size['width']; ?>' />&nbsp;
1627
+ <?php _e('Height:', 'popover'); ?>&nbsp;
1628
+ <input type='text' name='popoverheight' id='popoverheight' style='width: 5em;' value='<?php echo $popover_size['height']; ?>' />
1629
+ </td>
1630
+ </tr>
1631
+
1632
+ <tr>
1633
+ <th valign='top' scope='row' style='width: 25%;'><?php _e('Pop Over Position', 'popover'); ?></th>
1634
+ <td valign='top'>
1635
+ <?php _e('Left:', 'popover'); ?>&nbsp;
1636
+ <input type='text' name='popoverleft' id='popoverleft' style='width: 5em;' value='<?php echo $popover_location['left']; ?>' />&nbsp;
1637
+ <?php _e('Top:', 'popover'); ?>&nbsp;
1638
+ <input type='text' name='popovertop' id='popovertop' style='width: 5em;' value='<?php echo $popover_location['top']; ?>' />
1639
+ </td>
1640
+ </tr>
1641
+
1642
+ <tr>
1643
+ <th valign='top' scope='row' style='width: 25%;'><?php _e('Pop Over Margins', 'popover'); ?></th>
1644
+ <td valign='top'>
1645
+ <?php _e('Left:', 'popover'); ?>&nbsp;
1646
+ <input type='text' name='popovermarginleft' style='width: 5em;' value='<?php echo $popover_margin['left']; ?>' />&nbsp;
1647
+ <?php _e('Right:', 'popover'); ?>&nbsp;
1648
+ <input type='text' name='popovermarginright' style='width: 5em;' value='<?php echo $popover_margin['right']; ?>' /><br/>
1649
+ <?php _e('Top:', 'popover'); ?>&nbsp;
1650
+ <input type='text' name='popovermargintop' style='width: 5em;' value='<?php echo $popover_margin['top']; ?>' />&nbsp;
1651
+ <?php _e('Bottom:', 'popover'); ?>&nbsp;
1652
+ <input type='text' name='popovermarginbottom' style='width: 5em;' value='<?php echo $popover_margin['bottom']; ?>' />
1653
+ </td>
1654
+ </tr>
1655
+
1656
+ <tr>
1657
+ <th valign='top' scope='row' style='width: 25%;'>&nbsp;</th>
1658
+ <td valign='top'>
1659
+ <?php _e('or just override the above with JS', 'popover'); ?>&nbsp;<input type='checkbox' name='popoverusejs' id='popoverusejs' value='yes' <?php if ($popover_usejs == 'yes') echo "checked='checked'"; ?> />
1660
+ </td>
1661
+ </tr>
1662
+
1663
+ </table>
1664
+ <table class='form-table'>
1665
+
1666
+
1667
+
1668
+ <tr>
1669
+ <th valign='top' scope='row' style='width: 25%;'><?php _e('Background Colour', 'popover'); ?></th>
1670
+ <td valign='top'>
1671
+ <?php _e('Hex:', 'popover'); ?>&nbsp;#
1672
+ <input type='text' name='popoverbackground' id='popoverbackground' style='width: 10em;' value='<?php echo $popover_colour['back']; ?>' />
1673
+ </td>
1674
+ </tr>
1675
+
1676
+ <tr>
1677
+ <th valign='top' scope='row' style='width: 25%;'><?php _e('Font Colour', 'popover'); ?></th>
1678
+ <td valign='top'>
1679
+ <?php _e('Hex:', 'popover'); ?>&nbsp;#
1680
+ <input type='text' name='popoverforeground' id='popoverforeground' style='width: 10em;' value='<?php echo $popover_colour['fore']; ?>' />
1681
+ </td>
1682
+ </tr>
1683
+
1684
+ </table>
1685
+
1686
+ </td>
1687
+
1688
+ <td valign='top' width='49%'>
1689
+ <h3><?php _e('Display Rules', 'popover'); ?></h3>
1690
+
1691
+ <p><?php _e('Show the Pop Over if <strong>one</strong> of the following checked rules is true.', 'popover'); ?></p>
1692
+ <input type='hidden' name='popovercheck[none]' value='none' />
1693
+ <table class='form-table'>
1694
+ <?php
1695
+ if (function_exists('is_supporter')) {
1696
+ ?>
1697
+ <tr>
1698
+ <td valign='middle' style='width: 5%;'>
1699
+ <input type='checkbox' name='popovercheck[notsupporter]' <?php if (isset($popover_check['notsupporter'])) echo "checked='checked'"; ?> />
1700
+ </td>
1701
+ <th valign='bottom' scope='row'><?php _e('Visitor is not a supporter.', 'popover'); ?></th>
1702
+ </tr>
1703
+ <?php
1704
+ }
1705
+ ?>
1706
+ <tr>
1707
+ <td valign='middle' style='width: 5%;'>
1708
+ <input type='checkbox' name='popovercheck[isloggedin]' <?php if (isset($popover_check['isloggedin'])) echo "checked='checked'"; ?> />
1709
+ </td>
1710
+ <th valign='bottom' scope='row'><?php _e('Visitor is logged in.', 'popover'); ?></th>
1711
+ </tr>
1712
+ <tr>
1713
+ <td valign='middle' style='width: 5%;'>
1714
+ <input type='checkbox' name='popovercheck[loggedin]' <?php if (isset($popover_check['loggedin'])) echo "checked='checked'"; ?> />
1715
+ </td>
1716
+ <th valign='bottom' scope='row'><?php _e('Visitor is not logged in.', 'popover'); ?></th>
1717
+ </tr>
1718
+ <tr>
1719
+ <td valign='middle' style='width: 5%;'>
1720
+ <input type='checkbox' name='popovercheck[commented]' <?php if (isset($popover_check['commented'])) echo "checked='checked'"; ?> />
1721
+ </td>
1722
+ <th valign='bottom' scope='row'><?php _e('Visitor has never commented here before.', 'popover'); ?></th>
1723
+ </tr>
1724
+ <tr>
1725
+ <td valign='middle' style='width: 5%;'>
1726
+ <input type='checkbox' name='popovercheck[searchengine]' <?php if (isset($popover_check['searchengine'])) echo "checked='checked'"; ?> />
1727
+ </td>
1728
+ <th valign='bottom' scope='row'><?php _e('Visitor came from a search engine.', 'popover'); ?></th>
1729
+ </tr>
1730
+ <tr>
1731
+ <td valign='middle' style='width: 5%;'>
1732
+ <input type='checkbox' name='popovercheck[internal]' <?php if (isset($popover_check['internal'])) echo "checked='checked'"; ?> />
1733
+ </td>
1734
+ <th valign='bottom' scope='row'><?php _e('Visitor did not come from an internal page.', 'popover'); ?></th>
1735
+ </tr>
1736
+ <tr>
1737
+ <td valign='middle' style='width: 5%;'>
1738
+ <input type='checkbox' name='popovercheck[referrer]' <?php if (isset($popover_check['referrer'])) echo "checked='checked'"; ?> />
1739
+ </td>
1740
+ <th valign='bottom' scope='row'><?php _e('Visitor referrer matches', 'popover'); ?>&nbsp;
1741
+ <input type='text' name='popoverereg' id='popoverereg' style='width: 10em;' value='<?php echo htmlentities($popover_ereg, ENT_QUOTES, 'UTF-8'); ?>' />
1742
+ </th>
1743
+ </tr>
1744
+
1745
+ </table>
1746
+
1747
+ <p><?php _e('And the visitor has seen the pop over less than', 'popover'); ?>&nbsp;
1748
+ <input type='text' name='popovercount' id='popovercount' style='width: 2em;' value='<?php echo htmlentities($popover_count, ENT_QUOTES, 'UTF-8'); ?>' />&nbsp;
1749
+ <?php _e('times', 'popover'); ?></p>
1750
+
1751
+ </td>
1752
+ </tr>
1753
+
1754
+ </table>
1755
+
1756
+ <p class="submit">
1757
+ <input class="button" type="submit" name="goagain" value="<?php _e('Update settings', 'popover'); ?>" />
1758
+ </p>
1759
+
1760
+ </form>
1761
+
1762
+ </div>
1763
+
1764
+ <?php
1765
+ }
1766
+
1767
+ function handle_addons_panel_updates() {
1768
+ global $action, $page;
1769
+
1770
+ wp_reset_vars(array('action', 'page'));
1771
+
1772
+ if (isset($_GET['doaction']) || isset($_GET['doaction2'])) {
1773
+ if (addslashes($_GET['action']) == 'toggle' || addslashes($_GET['action2']) == 'toggle') {
1774
+ $action = 'bulk-toggle';
1775
+ }
1776
+ }
1777
+
1778
+ $active = get_option('popover_activated_addons', array());
1779
+
1780
+ switch (addslashes($action)) {
1781
+
1782
+ case 'deactivate': $key = addslashes($_GET['addon']);
1783
+ if (!empty($key)) {
1784
+ check_admin_referer('toggle-addon-' . $key);
1785
+
1786
+ $found = array_search($key, $active);
1787
+ if ($found !== false) {
1788
+ unset($active[$found]);
1789
+ update_option('popover_activated_addons', array_unique($active));
1790
+ wp_safe_redirect(add_query_arg('msg', 5, wp_get_referer()));
1791
+ } else {
1792
+ wp_safe_redirect(add_query_arg('msg', 6, wp_get_referer()));
1793
+ }
1794
+ }
1795
+ break;
1796
+
1797
+ case 'activate': $key = addslashes($_GET['addon']);
1798
+ if (!empty($key)) {
1799
+ check_admin_referer('toggle-addon-' . $key);
1800
+
1801
+ if (!in_array($key, $active)) {
1802
+ $active[] = $key;
1803
+ update_option('popover_activated_addons', array_unique($active));
1804
+ wp_safe_redirect(add_query_arg('msg', 3, wp_get_referer()));
1805
+ } else {
1806
+ wp_safe_redirect(add_query_arg('msg', 4, wp_get_referer()));
1807
+ }
1808
+ }
1809
+ break;
1810
+
1811
+ case 'bulk-toggle':
1812
+ check_admin_referer('bulk-addons');
1813
+ foreach ($_GET['addoncheck'] AS $key) {
1814
+ $found = array_search($key, $active);
1815
+ if ($found !== false) {
1816
+ unset($active[$found]);
1817
+ } else {
1818
+ $active[] = $key;
1819
+ }
1820
+ }
1821
+ update_option('popover_activated_addons', array_unique($active));
1822
+ wp_safe_redirect(add_query_arg('msg', 7, wp_get_referer()));
1823
+ break;
1824
+ }
1825
+ }
1826
+
1827
+ function handle_addons_panel() {
1828
+ global $action, $page;
1829
+
1830
+ wp_reset_vars(array('action', 'page'));
1831
+
1832
+ $messages = array();
1833
+ $messages[1] = __('Add-on updated.', 'popover');
1834
+ $messages[2] = __('Add-on not updated.', 'popover');
1835
+
1836
+ $messages[3] = __('Add-on activated.', 'popover');
1837
+ $messages[4] = __('Add-on not activated.', 'popover');
1838
+
1839
+ $messages[5] = __('Add-on deactivated.', 'popover');
1840
+ $messages[6] = __('Add-on not deactivated.', 'popover');
1841
+
1842
+ $messages[7] = __('Add-on activation toggled.', 'popover');
1843
+ ?>
1844
+ <div class='wrap'>
1845
+ <div class="icon32" id="icon-plugins"><br></div>
1846
+ <h2><?php _e('Edit Add-ons', 'popover'); ?></h2>
1847
+
1848
+ <?php
1849
+ if (isset($_GET['msg'])) {
1850
+ echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
1851
+ $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
1852
+ }
1853
+ ?>
1854
+
1855
+ <form method="get" action="?page=<?php echo esc_attr($page); ?>" id="posts-filter">
1856
+
1857
+ <input type='hidden' name='page' value='<?php echo esc_attr($page); ?>' />
1858
+
1859
+ <div class="tablenav">
1860
+
1861
+ <div class="alignleft actions">
1862
+ <select name="action">
1863
+ <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
1864
+ <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
1865
+ </select>
1866
+ <input type="submit" class="button-secondary action" id="doaction" name="doaction" value="<?php _e('Apply', 'popover'); ?>">
1867
+
1868
+ </div>
1869
+
1870
+ <div class="alignright actions"></div>
1871
+
1872
+ <br class="clear">
1873
+ </div>
1874
+
1875
+ <div class="clear"></div>
1876
+
1877
+ <?php
1878
+ wp_original_referer_field(true, 'previous');
1879
+ wp_nonce_field('bulk-addons');
1880
+
1881
+ $columns = array("name" => __('Add-on Name', 'popover'),
1882
+ "file" => __('Add-on File', 'popover'),
1883
+ "active" => __('Active', 'popover')
1884
+ );
1885
+
1886
+ $columns = apply_filters('popover_addoncolumns', $columns);
1887
+
1888
+ $addons = get_popover_addons();
1889
+
1890
+ $active = get_option('popover_activated_addons', array());
1891
+ ?>
1892
+
1893
+ <table cellspacing="0" class="widefat fixed">
1894
+ <thead>
1895
+ <tr>
1896
+ <th style="" class="manage-column column-cb check-column" id="cb" scope="col"><input type="checkbox"></th>
1897
+ <?php
1898
+ foreach ($columns as $key => $col) {
1899
+ ?>
1900
+ <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
1901
+ <?php
1902
+ }
1903
+ ?>
1904
+ </tr>
1905
+ </thead>
1906
+
1907
+ <tfoot>
1908
+ <tr>
1909
+ <th style="" class="manage-column column-cb check-column" scope="col"><input type="checkbox"></th>
1910
+ <?php
1911
+ reset($columns);
1912
+ foreach ($columns as $key => $col) {
1913
+ ?>
1914
+ <th style="" class="manage-column column-<?php echo $key; ?>" id="<?php echo $key; ?>" scope="col"><?php echo $col; ?></th>
1915
+ <?php
1916
+ }
1917
+ ?>
1918
+ </tr>
1919
+ </tfoot>
1920
+
1921
+ <tbody>
1922
+ <?php
1923
+ if ($addons) {
1924
+ foreach ($addons as $key => $addon) {
1925
+ $default_headers = array(
1926
+ 'Name' => 'Addon Name',
1927
+ 'Author' => 'Author',
1928
+ 'Description' => 'Description',
1929
+ 'AuthorURI' => 'Author URI'
1930
+ );
1931
+
1932
+ $addon_data = get_file_data(popover_dir('popoverincludes/addons/' . $addon), $default_headers, 'plugin');
1933
+
1934
+ if (empty($addon_data['Name'])) {
1935
+ continue;
1936
+ }
1937
+ ?>
1938
+ <tr valign="middle" class="alternate" id="addon-<?php echo $addon; ?>">
1939
+ <th class="check-column" scope="row"><input type="checkbox" value="<?php echo esc_attr($addon); ?>" name="addoncheck[]"></th>
1940
+ <td class="column-name">
1941
+ <strong><?php echo esc_html($addon_data['Name']) . "</strong>" . __(' by ', 'popover') . "<a href='" . esc_attr($addon_data['AuthorURI']) . "'>" . esc_html($addon_data['Author']) . "</a>"; ?>
1942
+ <?php if (!empty($addon_data['Description'])) {
1943
+ ?><br/><?php
1944
+ echo esc_html($addon_data['Description']);
1945
+ }
1946
+
1947
+ $actions = array();
1948
+
1949
+ if (in_array($addon, $active)) {
1950
+ $actions['toggle'] = "<span class='edit activate'><a href='" . wp_nonce_url("?page=" . $page . "&amp;action=deactivate&amp;addon=" . $addon . "", 'toggle-addon-' . $addon) . "'>" . __('Deactivate', 'popover') . "</a></span>";
1951
+ } else {
1952
+ $actions['toggle'] = "<span class='edit deactivate'><a href='" . wp_nonce_url("?page=" . $page . "&amp;action=activate&amp;addon=" . $addon . "", 'toggle-addon-' . $addon) . "'>" . __('Activate', 'popover') . "</a></span>";
1953
+ }
1954
+ ?>
1955
+ <br><div class="row-actions"><?php echo implode(" | ", $actions); ?></div>
1956
+ </td>
1957
+
1958
+ <td class="column-name">
1959
+ <?php echo esc_html($addon); ?>
1960
+ </td>
1961
+ <td class="column-active">
1962
+ <?php
1963
+ if (in_array($addon, $active)) {
1964
+ echo "<strong>" . __('Active', 'popover') . "</strong>";
1965
+ } else {
1966
+ echo __('Inactive', 'popover');
1967
+ }
1968
+ ?>
1969
+ </td>
1970
+ </tr>
1971
+ <?php
1972
+ }
1973
+ } else {
1974
+ $columncount = count($columns) + 1;
1975
+ ?>
1976
+ <tr valign="middle" class="alternate" >
1977
+ <td colspan="<?php echo $columncount; ?>" scope="row"><?php _e('No Add-ons where found for this install.', 'popover'); ?></td>
1978
+ </tr>
1979
+ <?php
1980
+ }
1981
+ ?>
1982
+
1983
+ </tbody>
1984
+ </table>
1985
+
1986
+
1987
+ <div class="tablenav">
1988
+
1989
+ <div class="alignleft actions">
1990
+ <select name="action2">
1991
+ <option selected="selected" value=""><?php _e('Bulk Actions', 'popover'); ?></option>
1992
+ <option value="toggle"><?php _e('Toggle activation', 'popover'); ?></option>
1993
+ </select>
1994
+ <input type="submit" class="button-secondary action" id="doaction2" name="doaction2" value="<?php _e('Apply', 'popover'); ?>">
1995
+ </div>
1996
+ <div class="alignright actions"></div>
1997
+ <br class="clear">
1998
+ </div>
1999
+
2000
+ </form>
2001
+
2002
+ </div> <!-- wrap -->
2003
+ <?php
2004
+ }
2005
+
2006
+ function handle_settings_page() {
2007
+
2008
+ global $action, $page;
2009
+
2010
+ $messages = array();
2011
+ $messages[1] = __('Your settings have been updated.', 'popover');
2012
+ ?>
2013
+ <div class='wrap nosubsub'>
2014
+
2015
+ <div class="icon32" id="icon-options-general"><br></div>
2016
+ <h2><?php _e('Pop Over Settings', 'popover'); ?></h2>
2017
+
2018
+ <?php
2019
+ if (isset($_GET['msg'])) {
2020
+ echo '<div id="message" class="updated fade"><p>' . $messages[(int) $_GET['msg']] . '</p></div>';
2021
+ $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
2022
+ }
2023
+ ?>
2024
+ <div id="poststuff" class="metabox-holder m-settings">
2025
+ <form action='?page=<?php echo $page; ?>' method='post'>
2026
+
2027
+ <input type='hidden' name='page' value='<?php echo $page; ?>' />
2028
+ <input type='hidden' name='action' value='updatesettings' />
2029
+
2030
+ <?php
2031
+ wp_nonce_field('update-popover-settings');
2032
+ ?>
2033
+
2034
+ <div class="postbox">
2035
+ <h3 class="hndle" style='cursor:auto;'><span><?php _e('Pop Over loading method', 'popover'); ?></span></h3>
2036
+ <div class="inside">
2037
+ <p><?php _e('Select the loading method you want to use for your Pop Overs.', 'popover'); ?></p>
2038
+ <ul>
2039
+ <li><em><?php _e('- Page Footer : The pop over is included as part of the page html.', 'popover'); ?></em></li>
2040
+ <li><em><?php _e('- External Load : The pop over is loaded separately from the page, this is the best option if you are running a caching system.', 'popover'); ?></em></li>
2041
+ <li><em><?php _e('- Custom Load : The pop over is loaded separately from the page via a custom front end ajax call.', 'popover'); ?></em></li>
2042
+ </ul>
2043
+
2044
+ <table class="form-table">
2045
+ <tbody>
2046
+ <tr valign="top">
2047
+ <th scope="row"><?php _e('Pop Over loaded using', 'popover'); ?></th>
2048
+ <td>
2049
+ <?php
2050
+ $settings = get_popover_option('popover-settings', array('loadingmethod' => 'frontloading'));
2051
+ ?>
2052
+ <select name='loadingmethod' id='loadingmethod'>
2053
+ <option value="footer" <?php if ($settings['loadingmethod'] == 'footer') echo "selected='selected'"; ?>><?php _e('Page Footer', 'popover'); ?></option>
2054
+ <option value="external" <?php if ($settings['loadingmethod'] == 'external') echo "selected='selected'"; ?>><?php _e('External Load', 'popover'); ?></option>
2055
+ <option value="frontloading" <?php if ($settings['loadingmethod'] == 'frontloading') echo "selected='selected'"; ?>><?php _e('Custom Load', 'popover'); ?></option>
2056
+ </select>
2057
+ </td>
2058
+ </tr>
2059
+ </tbody>
2060
+ </table>
2061
+ </div>
2062
+ </div>
2063
+
2064
+ <p class="submit">
2065
+ <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes', 'popover') ?>" />
2066
+ </p>
2067
+
2068
+ </form>
2069
+ </div>
2070
+ </div> <!-- wrap -->
2071
+ <?php
2072
+ }
2073
+
2074
+ function update_settings_page() {
2075
+
2076
+ if (isset($_POST['action']) && $_POST['action'] == 'updatesettings') {
2077
+
2078
+ check_admin_referer('update-popover-settings');
2079
+
2080
+ update_popover_option('popover-settings', $_POST);
2081
+
2082
+ wp_safe_redirect(add_query_arg('msg', 1, wp_get_referer()));
2083
+ }
2084
+ }
2085
+
2086
+ }
2087
 
2088
  }
 
2089
  ?>
popoverincludes/classes/popoverajax.php CHANGED
@@ -51,6 +51,10 @@ if(!class_exists('popoverajax')) {
51
  add_action( 'wp_ajax_nopriv_popover_selective_ajax', array(&$this,'ajax_selective_message_display') );
52
  break;
53
 
 
 
 
 
54
  }
55
 
56
  }
@@ -198,6 +202,19 @@ if(!class_exists('popoverajax')) {
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;
@@ -449,6 +466,69 @@ if(!class_exists('popoverajax')) {
449
 
450
  }
451
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  function insertonduplicate($table, $data) {
453
 
454
  global $wpdb;
51
  add_action( 'wp_ajax_nopriv_popover_selective_ajax', array(&$this,'ajax_selective_message_display') );
52
  break;
53
 
54
+ case 'frontloading': if( isset( $_GET['popoverajaxaction']) && $_GET['popoverajaxaction'] == 'popover_selective_ajax' ) {
55
+ $this->ajax_selective_message_display();
56
+ }
57
+ break;
58
  }
59
 
60
  }
202
  }
203
  break;
204
 
205
+ case 'incountry': $incountry = $this->incountry( $popover_incountry );
206
+ if(!$incountry || $incountry === 'XX') {
207
+ $show = false;
208
+ }
209
+ break;
210
+
211
+ case 'notincountry':
212
+ $incountry = $this->incountry( $popover_notincountry );
213
+ if($incountry || $incountry === 'XX') {
214
+ $show = false;
215
+ }
216
+ break;
217
+
218
  default: if(has_filter('popover_process_rule_' . $key)) {
219
  if(!apply_filters( 'popover_process_rule_' . $key, false )) {
220
  $show = false;
466
 
467
  }
468
 
469
+ function incountry( $countrycode ) {
470
+ // Grab the users IP address
471
+ $ip = $_SERVER["REMOTE_ADDR"];
472
+
473
+ if( has_filter('popover_pre_incountry') ) {
474
+ // We have an override for the ipcountry in place so ignore the rest
475
+ return apply_filters('popover_pre_incountry', false, $ip, $countrycode );
476
+ }
477
+
478
+ $country = $this->get_country_from_cache( $ip );
479
+
480
+ if(empty($country)) {
481
+ // No country to get from API
482
+ $country = $this->get_country_from_api( $ip );
483
+
484
+ if($country !== false) {
485
+ $this->put_country_in_cache( $ip, $country );
486
+ } else {
487
+ $country = 'XX';
488
+ }
489
+ }
490
+
491
+ if($country == $countrycode) {
492
+ return true;
493
+ } else {
494
+ return false;
495
+ }
496
+
497
+ }
498
+
499
+ function get_country_from_cache( $ip ) {
500
+
501
+ $country = $this->db->get_var( $this->db->prepare( "SELECT country FROM {$this->popover_ip_cache} WHERE IP = %s", $ip ) );
502
+
503
+ return $country;
504
+
505
+ }
506
+
507
+ function put_country_in_cache( $ip, $country ) {
508
+
509
+ return $this->insertonduplicate( $this->popover_ip_cache, array( 'IP' => $ip, 'country' => $country, 'cached' => time() ) );
510
+
511
+ }
512
+
513
+ function get_country_from_api( $ip ) {
514
+
515
+ $url = str_replace('%ip%', $ip, PO_REMOTE_IP_URL);
516
+
517
+ $response = wp_remote_get( $url );
518
+
519
+ if(!is_wp_error($response) && $response['response']['code'] == '200' && $response['body'] != 'XX') {
520
+ // cache the response for future use
521
+ $country = trim($response['body']);
522
+ } else {
523
+ if(PO_DEFAULT_COUNTRY !== false) {
524
+ return PO_DEFAULT_COUNTRY;
525
+ } else {
526
+ return false;
527
+ }
528
+ }
529
+
530
+ }
531
+
532
  function insertonduplicate($table, $data) {
533
 
534
  global $wpdb;
popoverincludes/classes/popoverpublic.php CHANGED
@@ -1,57 +1,62 @@
1
  <?php
 
2
 
3
- if(!class_exists('popoverpublic')) {
4
 
5
- class popoverpublic {
 
 
 
 
 
 
 
6
 
7
- var $mylocation = '';
8
- var $build = 5;
9
- var $db;
10
 
11
- var $tables = array( 'popover', 'popover_ip_cache' );
12
- var $popover;
13
- var $popover_ip_cache;
14
 
15
- var $activepopover = false;
16
 
17
- var $thepopover;
 
 
18
 
19
- function __construct() {
 
20
 
21
- global $wpdb;
22
 
23
- $this->db =& $wpdb;
 
24
 
25
- foreach($this->tables as $table) {
26
- $this->$table = popover_db_prefix($this->db, $table);
27
- }
28
 
29
- // Adds the JS to the themes header - this replaces all previous methods of loading
30
- add_action( 'init', array( &$this, 'initialise_plugin') );
31
 
32
- add_action( 'plugins_loaded', array(&$this, 'load_textdomain'));
 
 
33
 
34
- $directories = explode(DIRECTORY_SEPARATOR,dirname(__FILE__));
35
- $this->mylocation = $directories[count($directories)-1];
 
36
 
37
- $installed = get_option('popover_installed', false);
38
 
39
- if($installed === false || $installed != $this->build) {
40
- $this->install();
41
 
42
- update_option('popover_installed', $this->build);
43
- }
 
44
 
45
- }
 
 
46
 
47
- function popoverpublic() {
48
- $this->__construct();
49
- }
50
-
51
- function install() {
52
-
53
- if($this->db->get_var( "SHOW TABLES LIKE '" . $this->popover . "' ") != $this->popover) {
54
- $sql = "CREATE TABLE `" . $this->popover . "` (
55
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
56
  `popover_title` varchar(250) DEFAULT NULL,
57
  `popover_content` text,
@@ -59,148 +64,146 @@ if(!class_exists('popoverpublic')) {
59
  `popover_order` bigint(20) DEFAULT '0',
60
  `popover_active` int(11) DEFAULT '0',
61
  PRIMARY KEY (`id`)
62
- )";
63
 
64
- $this->db->query($sql);
 
65
 
66
- }
67
-
68
- // Add in IP cache table
69
- if($this->db->get_var( "SHOW TABLES LIKE '" . $this->popover_ip_cache . "' ") != $this->popover_ip_cache) {
70
- $sql = "CREATE TABLE `" . $this->popover_ip_cache . "` (
71
  `IP` varchar(12) NOT NULL DEFAULT '',
72
  `country` varchar(2) DEFAULT NULL,
73
  `cached` bigint(20) DEFAULT NULL,
74
  PRIMARY KEY (`IP`),
75
  KEY `cached` (`cached`)
76
- )";
77
-
78
- $this->db->query($sql);
79
-
80
- }
81
-
82
- }
83
-
84
- function load_textdomain() {
85
 
86
- $locale = apply_filters( 'popover_locale', get_locale() );
87
- $mofile = popover_dir( "popoverincludes/languages/popover-$locale.mo" );
 
88
 
89
- if ( file_exists( $mofile ) )
90
- load_textdomain( 'popover', $mofile );
91
 
92
- }
 
93
 
94
- function initialise_plugin() {
 
 
95
 
96
- $settings = get_popover_option('popover-settings', array( 'loadingmethod' => 'external'));
97
 
98
- switch( $settings['loadingmethod'] ) {
99
 
100
- case 'external': $this->add_selective_javascript();
101
- break;
102
 
103
- case 'footer': $this->add_popover_files();
104
- break;
105
 
106
- }
 
107
 
108
- }
 
 
 
109
 
110
- function add_selective_javascript() {
111
- global $pagenow;
112
 
113
- if(!in_array($pagenow, array('wp-login.php', 'wp-register.php'))) {
114
- // We need javascript so make sure we load it here
115
- wp_enqueue_script('jquery');
116
 
117
- // Now to register our new js file
118
- wp_register_script( 'popoverselective', popover_url('popover-load-js.php') );
119
- wp_enqueue_script( 'popoverselective' );
120
- }
 
 
 
 
 
121
 
122
- }
 
123
 
124
- function add_frontend_selective_javascript() {
125
- global $pagenow;
 
126
 
127
- if(!in_array($pagenow, array('wp-login.php', 'wp-register.php'))) {
128
- // We need javascript so make sure we load it here
129
- wp_enqueue_script('jquery');
130
 
131
- // Now to register our new js file
132
- wp_register_script( 'popoverselective', popover_url('popover-load-custom-js.php') );
133
- wp_enqueue_script( 'popoverselective' );
134
- }
 
135
 
136
- }
137
 
138
- function myURL() {
 
 
 
 
139
 
140
- if ( isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) == "on") {
141
- $url .= "https://";
142
- } else {
143
- $url = 'http://';
144
- }
145
 
146
- if ($_SERVER["SERVER_PORT"] != "80") {
147
- $url .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
148
- } else {
149
- $url .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
150
- }
151
 
152
- return trailingslashit($url);
153
- }
154
 
155
- function add_popover_files() {
156
 
157
- global $popoverajax;
158
 
159
- if( method_exists( $popoverajax, 'selective_message_display') ) {
 
 
160
 
161
- // Set up the rquest information from here - this is passed in using the standard JS interface so we need to fake it
162
- $_REQUEST['thereferrer'] = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';
163
- $_REQUEST['thefrom'] = $this->myURL();
164
 
165
- $this->thepopover = $popoverajax->selective_message_display();
 
166
 
167
- if( isset($this->thepopover['name']) && $this->thepopover['name'] != 'nopopover' ) {
168
- wp_enqueue_script('jquery');
 
 
 
169
 
170
- wp_enqueue_script('popoverlegacyjs', popover_url('popoverincludes/js/popoverlegacy.js'), array('jquery'), $this->build);
171
- wp_localize_script('popoverlegacyjs', 'popover', array( 'divname' => $this->thepopover['name'],
172
- 'usejs' => $this->thepopover['usejs'],
173
- 'delay' => $this->thepopover['delay']
174
- ));
175
 
176
- add_action('wp_head', array(&$this, 'output_header_content'));
177
- add_action('wp_footer', array(&$this, 'output_footer_content'));
 
 
 
 
 
 
 
 
178
 
179
- }
180
 
181
- }
 
182
 
183
- }
184
-
185
- function output_header_content() {
186
- // Output the styles
187
- ?>
188
- <style type="text/css">
189
- <?php
190
- echo $this->thepopover['style'];
191
- ?>
192
- </style>
193
- <?php
194
- }
195
-
196
- function output_footer_content() {
197
-
198
- echo $this->thepopover['html'];
199
-
200
- }
201
-
202
- }
203
 
204
  }
205
-
206
  ?>
1
  <?php
2
+ if (!class_exists('popoverpublic')) {
3
 
4
+ class popoverpublic {
5
 
6
+ var $mylocation = '';
7
+ var $build = 5;
8
+ var $db;
9
+ var $tables = array('popover', 'popover_ip_cache');
10
+ var $popover;
11
+ var $popover_ip_cache;
12
+ var $activepopover = false;
13
+ var $thepopover;
14
 
15
+ function __construct() {
 
 
16
 
17
+ global $wpdb;
 
 
18
 
19
+ $this->db = & $wpdb;
20
 
21
+ foreach ($this->tables as $table) {
22
+ $this->$table = popover_db_prefix($this->db, $table);
23
+ }
24
 
25
+ // Adds the JS to the themes header - this replaces all previous methods of loading
26
+ add_action('init', array(&$this, 'initialise_plugin'));
27
 
28
+ add_action('plugins_loaded', array(&$this, 'load_textdomain'));
29
 
30
+ $directories = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
31
+ $this->mylocation = $directories[count($directories) - 1];
32
 
33
+ $installed = get_option('popover_installed', false);
 
 
34
 
35
+ if ($installed === false || $installed != $this->build) {
36
+ $this->install();
37
 
38
+ update_option('popover_installed', $this->build);
39
+ }
40
+ }
41
 
42
+ function popoverpublic() {
43
+ $this->__construct();
44
+ }
45
 
46
+ function install() {
47
 
48
+ $charset_collate = '';
 
49
 
50
+ if (!empty($this->db->charset)) {
51
+ $charset_collate = "DEFAULT CHARACTER SET " . $this->db->charset;
52
+ }
53
 
54
+ if (!empty($this->db->collate)) {
55
+ $charset_collate .= " COLLATE " . $this->db->collate;
56
+ }
57
 
58
+ if ($this->db->get_var("SHOW TABLES LIKE '" . $this->popover . "' ") != $this->popover) {
59
+ $sql = "CREATE TABLE `" . $this->popover . "` (
 
 
 
 
 
 
60
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
61
  `popover_title` varchar(250) DEFAULT NULL,
62
  `popover_content` text,
64
  `popover_order` bigint(20) DEFAULT '0',
65
  `popover_active` int(11) DEFAULT '0',
66
  PRIMARY KEY (`id`)
67
+ ) $charset_collate;";
68
 
69
+ $this->db->query($sql);
70
+ }
71
 
72
+ // Add in IP cache table
73
+ if ($this->db->get_var("SHOW TABLES LIKE '" . $this->popover_ip_cache . "' ") != $this->popover_ip_cache) {
74
+ $sql = "CREATE TABLE `" . $this->popover_ip_cache . "` (
 
 
75
  `IP` varchar(12) NOT NULL DEFAULT '',
76
  `country` varchar(2) DEFAULT NULL,
77
  `cached` bigint(20) DEFAULT NULL,
78
  PRIMARY KEY (`IP`),
79
  KEY `cached` (`cached`)
80
+ ) $charset_collate;";
 
 
 
 
 
 
 
 
81
 
82
+ $this->db->query($sql);
83
+ }
84
+ }
85
 
86
+ function load_textdomain() {
 
87
 
88
+ $locale = apply_filters('popover_locale', get_locale());
89
+ $mofile = popover_dir("popoverincludes/languages/popover-$locale.mo");
90
 
91
+ if (file_exists($mofile))
92
+ load_textdomain('popover', $mofile);
93
+ }
94
 
95
+ function initialise_plugin() {
96
 
97
+ $settings = get_popover_option('popover-settings', array('loadingmethod' => 'frontloading'));
98
 
99
+ switch ($settings['loadingmethod']) {
 
100
 
101
+ case 'external': $this->add_selective_javascript();
102
+ break;
103
 
104
+ case 'footer': $this->add_popover_files();
105
+ break;
106
 
107
+ case 'frontloading': $this->add_frontend_selective_javascript();
108
+ break;
109
+ }
110
+ }
111
 
112
+ function add_selective_javascript() {
113
+ global $pagenow;
114
 
115
+ if (!in_array($pagenow, array('wp-login.php', 'wp-register.php'))) {
116
+ // We need javascript so make sure we load it here
117
+ wp_enqueue_script('jquery');
118
 
119
+ // Now to register our new js file
120
+ wp_register_script('popover_selective_load', popover_url('popoverincludes/js/popover-load.js'));
121
+ wp_enqueue_script('popover_selective_load');
122
+
123
+ wp_localize_script('popover_selective_load', 'popover_load_custom', array(
124
+ 'admin_ajax_url' => admin_url( 'admin-ajax.php' ),
125
+ ));
126
+ }
127
+ }
128
 
129
+ function add_frontend_selective_javascript() {
130
+ global $pagenow;
131
 
132
+ if (!in_array($pagenow, array('wp-login.php', 'wp-register.php'))) {
133
+ // We need javascript so make sure we load it here
134
+ wp_enqueue_script('jquery');
135
 
136
+ // Now to register our new js file
137
+ wp_register_script('popover_load_custom', popover_url('popoverincludes/js/popover-load-custom.js'));
138
+ wp_enqueue_script('popover_load_custom');
139
 
140
+ wp_localize_script('popover_load_custom', 'popover_selective_custom', array(
141
+ 'admin_ajax_url' => admin_url( 'admin-ajax.php' ),
142
+ ));
143
+ }
144
+ }
145
 
146
+ function myURL() {
147
 
148
+ if (isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) == "on") {
149
+ $url .= "https://";
150
+ } else {
151
+ $url = 'http://';
152
+ }
153
 
154
+ if ($_SERVER["SERVER_PORT"] != "80") {
155
+ $url .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
156
+ } else {
157
+ $url .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
158
+ }
159
 
160
+ return trailingslashit($url);
161
+ }
 
 
 
162
 
163
+ function add_popover_files() {
 
164
 
165
+ global $popoverajax;
166
 
167
+ if (method_exists($popoverajax, 'selective_message_display')) {
168
 
169
+ // Set up the rquest information from here - this is passed in using the standard JS interface so we need to fake it
170
+ $_REQUEST['thereferrer'] = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';
171
+ $_REQUEST['thefrom'] = $this->myURL();
172
 
173
+ $this->thepopover = $popoverajax->selective_message_display();
 
 
174
 
175
+ if (isset($this->thepopover['name']) && $this->thepopover['name'] != 'nopopover') {
176
+ wp_enqueue_script('jquery');
177
 
178
+ wp_enqueue_script('popoverlegacyjs', popover_url('popoverincludes/js/popoverlegacy.js'), array('jquery'), $this->build);
179
+ wp_localize_script('popoverlegacyjs', 'popover', array('divname' => $this->thepopover['name'],
180
+ 'usejs' => $this->thepopover['usejs'],
181
+ 'delay' => $this->thepopover['delay']
182
+ ));
183
 
184
+ add_action('wp_head', array(&$this, 'output_header_content'));
185
+ add_action('wp_footer', array(&$this, 'output_footer_content'));
186
+ }
187
+ }
188
+ }
189
 
190
+ function output_header_content() {
191
+ // Output the styles
192
+ ?>
193
+ <style type="text/css">
194
+ <?php
195
+ echo $this->thepopover['style'];
196
+ ?>
197
+ </style>
198
+ <?php
199
+ }
200
 
201
+ function output_footer_content() {
202
 
203
+ echo $this->thepopover['html'];
204
+ }
205
 
206
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
 
208
  }
 
209
  ?>
popoverincludes/css/default/popover.php CHANGED
@@ -1,7 +1,8 @@
1
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='<?php echo $style; ?>'>
2
- <a href='' id='closebox' title='Close this box'></a>
3
  <div id='message' style='<?php echo $box; ?>'>
4
  <?php echo do_shortcode($popover_content); ?>
 
5
  <div class='clear'></div>
6
  <?php if($popover_hideforever != 'yes') {
7
  ?>
1
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='<?php echo $style; ?>'>
2
+ <a href='' id='closebox' title='<?php _e('Close this box','popover'); ?>'></a>
3
  <div id='message' style='<?php echo $box; ?>'>
4
  <?php echo do_shortcode($popover_content); ?>
5
+
6
  <div class='clear'></div>
7
  <?php if($popover_hideforever != 'yes') {
8
  ?>
popoverincludes/css/fixed/popover.php CHANGED
@@ -1,5 +1,5 @@
1
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='position: fixed; <?php echo $style; ?>'>
2
- <a href='' id='closebox' title='Close this box'></a>
3
  <div id='message' style='<?php echo $box; ?>'>
4
  <?php echo do_shortcode($popover_content); ?>
5
  <div class='clear'></div>
1
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='position: fixed; <?php echo $style; ?>'>
2
+ <a href='' id='closebox' title='<?php _e('Close this box','popover'); ?>'></a>
3
  <div id='message' style='<?php echo $box; ?>'>
4
  <?php echo do_shortcode($popover_content); ?>
5
  <div class='clear'></div>
popoverincludes/css/fullbackground/popover.php CHANGED
@@ -1,6 +1,6 @@
1
  <div id='darkbackground' style='<?php echo $backgroundstyle; ?>'>
2
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='<?php echo $style; ?>'>
3
- <a href='' id='closebox' title='Close this box'></a>
4
  <div id='message' style='<?php echo $box; ?>'>
5
  <?php echo do_shortcode($popover_content); ?>
6
  <div class='clear'></div>
1
  <div id='darkbackground' style='<?php echo $backgroundstyle; ?>'>
2
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='<?php echo $style; ?>'>
3
+ <a href='' id='closebox' title='<?php _e('Close this box','popover'); ?>'></a>
4
  <div id='message' style='<?php echo $box; ?>'>
5
  <?php echo do_shortcode($popover_content); ?>
6
  <div class='clear'></div>
popoverincludes/css/fullbackgroundfixed/popover.php CHANGED
@@ -1,5 +1,5 @@
1
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='position: fixed; <?php echo $style; ?>'>
2
- <a href='' id='closebox' title='Close this box'></a>
3
  <div id='message' style='<?php echo $box; ?>'>
4
  <?php echo do_shortcode($popover_content); ?>
5
  <div class='clear'></div>
1
  <div id='<?php echo $popover_messagebox; ?>' class='visiblebox' style='position: fixed; <?php echo $style; ?>'>
2
+ <a href='' id='closebox' title='<?php _e('Close this box','popover'); ?>'></a>
3
  <div id='message' style='<?php echo $box; ?>'>
4
  <?php echo do_shortcode($popover_content); ?>
5
  <div class='clear'></div>
popoverincludes/external/wpmudev-dash-notification.php DELETED
@@ -1,67 +0,0 @@
1
- <?php
2
- ///////////////////////////////////////////////////////////////////////////
3
- /* -------------------- WPMU DEV Dashboard Notice -------------------- */
4
- if ( !class_exists('WPMUDEV_Dashboard_Notice') ) {
5
- class WPMUDEV_Dashboard_Notice {
6
-
7
- var $version = '2.0';
8
-
9
- function WPMUDEV_Dashboard_Notice() {
10
- add_action( 'plugins_loaded', array( &$this, 'init' ) );
11
- }
12
-
13
- function init() {
14
- if ( !class_exists( 'WPMUDEV_Update_Notifications' ) && current_user_can( 'install_plugins' ) && is_admin() ) {
15
- remove_action( 'admin_notices', 'wdp_un_check', 5 );
16
- remove_action( 'network_admin_notices', 'wdp_un_check', 5 );
17
- if ( file_exists(WP_PLUGIN_DIR . '/wpmudev-updates/update-notifications.php') ) {
18
- add_action( 'all_admin_notices', array( &$this, 'activate_notice' ), 5 );
19
- } else {
20
- add_action( 'all_admin_notices', array( &$this, 'install_notice' ), 5 );
21
- add_filter( 'plugins_api', array( &$this, 'filter_plugin_info' ), 10, 3 );
22
- }
23
- }
24
- }
25
-
26
- function filter_plugin_info($res, $action, $args) {
27
- global $wp_version;
28
- $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
29
-
30
- if ( $action == 'plugin_information' && strpos($args->slug, 'install_wpmudev_dash') !== false ) {
31
- $res = new stdClass;
32
- $res->name = 'WPMU DEV Dashboard';
33
- $res->slug = 'wpmu-dev-dashboard';
34
- $res->version = '';
35
- $res->rating = 100;
36
- $res->homepage = 'http://premium.wpmudev.org/project/wpmu-dev-dashboard/';
37
- $res->download_link = "http://premium.wpmudev.org/wdp-un.php?action=install_wpmudev_dash";
38
- $res->tested = $cur_wp_version;
39
-
40
- return $res;
41
- }
42
-
43
- return false;
44
- }
45
-
46
- function auto_install_url() {
47
- $function = is_multisite() ? 'network_admin_url' : 'admin_url';
48
- return wp_nonce_url($function("update.php?action=install-plugin&plugin=install_wpmudev_dash"), "install-plugin_install_wpmudev_dash");
49
- }
50
-
51
- function activate_url() {
52
- $function = is_multisite() ? 'network_admin_url' : 'admin_url';
53
- return wp_nonce_url($function('plugins.php?action=activate&plugin=wpmudev-updates%2Fupdate-notifications.php'), 'activate-plugin_wpmudev-updates/update-notifications.php');
54
- }
55
-
56
- function install_notice() {
57
- echo '<div class="error fade"><p>' . sprintf(__('Easily get updates, support, and one-click WPMU DEV plugin/theme installations right from in your dashboard - <strong><a href="%s" title="Install Now &raquo;">install the free WPMU DEV Dashboard plugin</a></strong>. &nbsp;&nbsp;&nbsp;<small><a href="http://premium.wpmudev.org/wpmu-dev/update-notifications-plugin-information/">(find out more)</a></small>', 'wpmudev'), $this->auto_install_url()) . '</p></div>';
58
- }
59
-
60
- function activate_notice() {
61
- echo '<div class="updated fade"><p>' . sprintf(__('Updates, Support, Premium Plugins, Community - <strong><a href="%s" title="Activate Now &raquo;">activate the WPMU DEV Dashboard plugin now</a></strong>.', 'wpmudev'), $this->activate_url()) . '</a></p></div>';
62
- }
63
-
64
- }
65
- new WPMUDEV_Dashboard_Notice();
66
- }
67
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
popoverincludes/includes/config.php CHANGED
@@ -2,4 +2,10 @@
2
  // a true setting for PO_GLOBAL means that this plugin operates on a global site-admin basis
3
  // setting this to false means that the plugin operates on a blog by blog basis
4
  if(!defined('PO_GLOBAL')) define('PO_GLOBAL', false);
 
 
 
 
 
 
5
  ?>
2
  // a true setting for PO_GLOBAL means that this plugin operates on a global site-admin basis
3
  // setting this to false means that the plugin operates on a blog by blog basis
4
  if(!defined('PO_GLOBAL')) define('PO_GLOBAL', false);
5
+ // The url that we are using to return the country - it should only return the country code for the passed IP address
6
+ if(!defined('PO_REMOTE_IP_URL')) define('PO_REMOTE_IP_URL', 'http://api.hostip.info/country.php?ip=%ip%');
7
+ // If there is a problem with the API, then you can set a default country to use for popover showing. Set this to false if you'd rather have the popover not show in such circumstances
8
+ if(!defined('PO_DEFAULT_COUNTRY')) define('PO_DEFAULT_COUNTRY', 'US');
9
+ // Set plugin directory
10
+ if(!defined('PO_PLUGIN_DIR')) define('PO_PLUGIN_DIR', 'wordpress-popup');
11
  ?>
popoverincludes/includes/functions.php CHANGED
@@ -6,10 +6,10 @@ function set_popover_url($base) {
6
 
7
  if(defined('WPMU_PLUGIN_URL') && defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/' . basename($base))) {
8
  $popover_url = trailingslashit(WPMU_PLUGIN_URL);
9
- } elseif(defined('WP_PLUGIN_URL') && defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/wordpress-popup/' . basename($base))) {
10
- $popover_url = trailingslashit(WP_PLUGIN_URL . '/wordpress-popup');
11
  } else {
12
- $popover_url = trailingslashit(WP_PLUGIN_URL . '/wordpress-popup');
13
  }
14
 
15
  }
@@ -20,10 +20,10 @@ function set_popover_dir($base) {
20
 
21
  if(defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/' . basename($base))) {
22
  $popover_dir = trailingslashit(WPMU_PLUGIN_URL);
23
- } elseif(defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/wordpress-popup/' . basename($base))) {
24
- $popover_dir = trailingslashit(WP_PLUGIN_DIR . '/wordpress-popup');
25
  } else {
26
- $popover_dir = trailingslashit(WP_PLUGIN_DIR . '/wordpress-popup');
27
  }
28
 
29
 
@@ -401,7 +401,7 @@ function P_CountryList() {
401
 
402
  function get_popover_option($key, $default = false) {
403
 
404
- if(is_multisite() && function_exists('is_plugin_active_for_network') && is_plugin_active_for_network('wordpress-popup/popover.php')) {
405
  return get_site_option($key, $default);
406
  } else {
407
  return get_option($key, $default);
@@ -411,7 +411,7 @@ function get_popover_option($key, $default = false) {
411
 
412
  function update_popover_option($key, $value) {
413
 
414
- if(is_multisite() && function_exists('is_plugin_active_for_network') && is_plugin_active_for_network('wordpress-popup/popover.php')) {
415
  return update_site_option($key, $value);
416
  } else {
417
  return update_option($key, $value);
@@ -421,7 +421,7 @@ function update_popover_option($key, $value) {
421
 
422
  function delete_popover_option($key) {
423
 
424
- if(is_multisite() && function_exists('is_plugin_active_for_network') && is_plugin_active_for_network('wordpress-popup/popover.php')) {
425
  return delete_site_option($key);
426
  } else {
427
  return delete_option($key);
6
 
7
  if(defined('WPMU_PLUGIN_URL') && defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/' . basename($base))) {
8
  $popover_url = trailingslashit(WPMU_PLUGIN_URL);
9
+ } elseif(defined('WP_PLUGIN_URL') && defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/'.PO_PLUGIN_DIR.'/' . basename($base))) {
10
+ $popover_url = trailingslashit(WP_PLUGIN_URL . '/'.PO_PLUGIN_DIR);
11
  } else {
12
+ $popover_url = trailingslashit(WP_PLUGIN_URL . '/'.PO_PLUGIN_DIR);
13
  }
14
 
15
  }
20
 
21
  if(defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/' . basename($base))) {
22
  $popover_dir = trailingslashit(WPMU_PLUGIN_URL);
23
+ } elseif(defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/'.PO_PLUGIN_DIR.'/' . basename($base))) {
24
+ $popover_dir = trailingslashit(WP_PLUGIN_DIR . '/'.PO_PLUGIN_DIR);
25
  } else {
26
+ $popover_dir = trailingslashit(WP_PLUGIN_DIR . '/'.PO_PLUGIN_DIR);
27
  }
28
 
29
 
401
 
402
  function get_popover_option($key, $default = false) {
403
 
404
+ if(is_multisite() && function_exists('is_plugin_active_for_network') && is_plugin_active_for_network('popover/popover.php')) {
405
  return get_site_option($key, $default);
406
  } else {
407
  return get_option($key, $default);
411
 
412
  function update_popover_option($key, $value) {
413
 
414
+ if(is_multisite() && function_exists('is_plugin_active_for_network') && is_plugin_active_for_network('popover/popover.php')) {
415
  return update_site_option($key, $value);
416
  } else {
417
  return update_option($key, $value);
421
 
422
  function delete_popover_option($key) {
423
 
424
+ if(is_multisite() && function_exists('is_plugin_active_for_network') && is_plugin_active_for_network('popover/popover.php')) {
425
  return delete_site_option($key);
426
  } else {
427
  return delete_option($key);
popoverincludes/js/popover-load-custom.js ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Javascript file to selectively load the WPMUDEV Pop Up
3
+ */
4
+
5
+ var po_adminajax = popover_selective_custom.admin_ajax_url;
6
+
7
+ // Enable us to get some cookie information - from http://stackoverflow.com/questions/5639346/shortest-function-for-reading-a-cookie-in-javascript
8
+ function po_get_cookie(name) {
9
+
10
+ var nameEQ = name + "=";
11
+ var ca = document.cookie.split(';');
12
+ for (var i = 0; i < ca.length; i++) {
13
+ var c = ca[i];
14
+ while (c.charAt(0) === ' ')
15
+ c = c.substring(1, c.length);
16
+ if (c.indexOf(nameEQ) === 0)
17
+ return c.substring(nameEQ.length, c.length);
18
+ }
19
+ return null;
20
+ }
21
+
22
+ function po_createCookie(name, value, days) {
23
+ if (days) {
24
+ var date = new Date();
25
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
26
+ var expires = "; expires=" + date.toGMTString();
27
+ }
28
+ else
29
+ var expires = "";
30
+ document.cookie = name + "=" + value + expires + "; path=/";
31
+ }
32
+
33
+ function po_removeMessageBoxForever() {
34
+ jQuery('#darkbackground').remove();
35
+ jQuery(this).parents(popovername).remove();
36
+ po_createCookie('popover_never_view', 'hidealways', 365);
37
+ return false;
38
+ }
39
+
40
+ function po_removeMessageBox() {
41
+ jQuery('#darkbackground').remove();
42
+ jQuery(this).parents(popovername).remove();
43
+ return false;
44
+ }
45
+
46
+ function po_loadMessageBox( ) {
47
+
48
+ // move the data back to the data variable, from mydata so we can use it without changing a chunk of code :)
49
+ data = mydata;
50
+
51
+ if (data['html'] !== '') {
52
+ // Set the name for other functions to use
53
+ popovername = '#' + data['name'];
54
+
55
+ jQuery('<style type="text/css">' + data['style'] + '</style>').appendTo('head');
56
+ jQuery(data['html']).appendTo('body');
57
+
58
+ if (data['usejs'] === 'yes') {
59
+
60
+ jQuery('#' + data['name']).width(jQuery('#message').width());
61
+ jQuery('#' + data['name']).height(jQuery('#message').height());
62
+
63
+ jQuery('#' + data['name']).css('top', (jQuery(window).height() / 2) - (jQuery('#message').height() / 2));
64
+ jQuery('#' + data['name']).css('left', (jQuery(window).width() / 2) - (jQuery('#message').width() / 2));
65
+ }
66
+
67
+ jQuery('#' + data['name']).css('visibility', 'visible');
68
+ jQuery('#darkbackground').css('visibility', 'visible');
69
+
70
+ jQuery('#clearforever').click(po_removeMessageBoxForever);
71
+ jQuery('#closebox').click(po_removeMessageBox);
72
+
73
+ jQuery('#message').hover(function() {
74
+ jQuery('.claimbutton').removeClass('hide');
75
+ }, function() {
76
+ jQuery('.claimbutton').addClass('hide');
77
+ });
78
+ }
79
+
80
+ }
81
+
82
+ function po_onsuccess(data) {
83
+ // set the data to be a global variable so we can grab it after the timeout
84
+ mydata = data;
85
+
86
+ if (data['name'] !== 'nopoover') {
87
+ window.setTimeout(po_loadMessageBox, data['delay']);
88
+ }
89
+
90
+ }
91
+
92
+ function po_load_popover() {
93
+
94
+ var theajax = po_adminajax;
95
+ var thefrom = window.location;
96
+ var thereferrer = document.referrer;
97
+ // Check if we are forcing a popover - if not then set it to a default value of 0
98
+ if (typeof force_popover === 'undefined') {
99
+ force_popover = 0;
100
+ }
101
+
102
+ jQuery.ajax({
103
+ url: thefrom,
104
+ dataType: 'jsonp',
105
+ jsonpCallback: 'po_onsuccess',
106
+ data: {popoverajaxaction: 'popover_selective_ajax',
107
+ thefrom: thefrom.toString(),
108
+ thereferrer: thereferrer.toString(),
109
+ active_popover: force_popover.toString()
110
+ },
111
+ success: function(data) {
112
+
113
+ }
114
+ }
115
+ );
116
+ return false;
117
+ }
118
+
119
+ // The main function
120
+ function po_selectiveLoad() {
121
+ po_load_popover();
122
+ }
123
+
124
+ // Call when the page is fully loaded
125
+ jQuery(window).load(po_selectiveLoad);
popoverincludes/js/popover-load.js ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Javascript file to selectively load the WPMUDEV Pop Up
3
+ */
4
+
5
+ var po_adminajax = popover_load_custom.admin_ajax_url;
6
+
7
+ // Enable us to get some cookie information - from http://stackoverflow.com/questions/5639346/shortest-function-for-reading-a-cookie-in-javascript
8
+ function po_get_cookie(name) {
9
+
10
+ var nameEQ = name + "=";
11
+ var ca = document.cookie.split(';');
12
+ for (var i = 0; i < ca.length; i++) {
13
+ var c = ca[i];
14
+ while (c.charAt(0) == ' ')
15
+ c = c.substring(1, c.length);
16
+ if (c.indexOf(nameEQ) == 0)
17
+ return c.substring(nameEQ.length, c.length);
18
+ }
19
+ return null;
20
+ }
21
+
22
+ function po_createCookie(name, value, days) {
23
+ if (days) {
24
+ var date = new Date();
25
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
26
+ var expires = "; expires=" + date.toGMTString();
27
+ }
28
+ else
29
+ var expires = "";
30
+ document.cookie = name + "=" + value + expires + "; path=/";
31
+ }
32
+
33
+ function po_removeMessageBoxForever() {
34
+ jQuery('#darkbackground').remove();
35
+ jQuery(this).parents(popovername).remove();
36
+ po_createCookie('popover_never_view', 'hidealways', 365);
37
+ return false;
38
+ }
39
+
40
+ function po_removeMessageBox() {
41
+ jQuery('#darkbackground').remove();
42
+ jQuery(this).parents(popovername).remove();
43
+ return false;
44
+ }
45
+
46
+ function po_loadMessageBox( ) {
47
+
48
+ // move the data back to the data variable, from mydata so we can use it without changing a chunk of code :)
49
+ data = mydata;
50
+
51
+ if (data['html'] != '') {
52
+ // Set the name for other functions to use
53
+ popovername = '#' + data['name'];
54
+
55
+ jQuery('<style type="text/css">' + data['style'] + '</style>').appendTo('head');
56
+ jQuery(data['html']).appendTo('body');
57
+
58
+ if (data['usejs'] == 'yes') {
59
+
60
+ jQuery('#' + data['name']).width(jQuery('#message').width());
61
+ jQuery('#' + data['name']).height(jQuery('#message').height());
62
+
63
+ jQuery('#' + data['name']).css('top', (jQuery(window).height() / 2) - (jQuery('#message').height() / 2));
64
+ jQuery('#' + data['name']).css('left', (jQuery(window).width() / 2) - (jQuery('#message').width() / 2));
65
+ }
66
+
67
+ jQuery('#' + data['name']).css('visibility', 'visible');
68
+ jQuery('#darkbackground').css('visibility', 'visible');
69
+
70
+ jQuery('#clearforever').click(po_removeMessageBoxForever);
71
+ jQuery('#closebox').click(po_removeMessageBox);
72
+
73
+ jQuery('#message').hover(function() {
74
+ jQuery('.claimbutton').removeClass('hide');
75
+ }, function() {
76
+ jQuery('.claimbutton').addClass('hide');
77
+ });
78
+ }
79
+
80
+ }
81
+
82
+ function po_onsuccess(data) {
83
+ // set the data to be a global variable so we can grab it after the timeout
84
+ mydata = data;
85
+
86
+ if (data['name'] != 'nopoover') {
87
+ window.setTimeout(po_loadMessageBox, data['delay']);
88
+ }
89
+
90
+ }
91
+
92
+ function po_load_popover() {
93
+
94
+ var theajax = po_adminajax;
95
+ var thefrom = window.location;
96
+ var thereferrer = document.referrer;
97
+
98
+ // Check if we are forcing a popover - if not then set it to a default value of 0
99
+ if (typeof force_popover === 'undefined') {
100
+ force_popover = 0;
101
+ }
102
+
103
+ jQuery.ajax({
104
+ url: theajax,
105
+ dataType: 'jsonp',
106
+ jsonpCallback: 'po_onsuccess',
107
+ data: {action: 'popover_selective_ajax',
108
+ thefrom: thefrom.toString(),
109
+ thereferrer: thereferrer.toString(),
110
+ active_popover: force_popover.toString()
111
+ },
112
+ success: function(data) {
113
+
114
+ }
115
+ }
116
+ );
117
+
118
+ return false;
119
+ }
120
+
121
+ // The main function
122
+ function po_selectiveLoad() {
123
+ po_load_popover();
124
+ }
125
+
126
+ // Call when the page is fully loaded
127
+ jQuery(window).load(po_selectiveLoad);
popoverincludes/languages/popover-en_US.mo CHANGED
Binary file
popoverincludes/languages/popover.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: PopOver\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-05-11 15:09+0100\n"
6
- "PO-Revision-Date: 2012-05-11 15:09+0100\n"
7
- "Last-Translator: Barry <barry@mapinated.com>\n"
8
  "Language-Team: Incsub <barry@incsub.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -22,525 +22,577 @@ msgid "Adding / Editing"
22
  msgstr ""
23
 
24
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popover.help.php:75
25
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:109
26
  msgid "Add-ons"
27
  msgstr ""
28
 
29
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:100
30
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:104
31
  msgid "Pop Overs"
32
  msgstr ""
33
 
34
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:108
35
  msgid "Create New Pop Over"
36
  msgstr ""
37
 
38
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:108
39
  msgid "Create New"
40
  msgstr ""
41
 
42
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:109
43
  msgid "Manage Add-ons Plugins"
44
  msgstr ""
45
 
46
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:257
 
 
 
 
47
  msgid "An error occured updating the Pop Over order."
48
  msgstr ""
49
 
50
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:258
51
  msgid "Are you sure you want to delete this Pop Over?"
52
  msgstr ""
53
 
54
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:298
55
  #, php-format
56
  msgid "Welcome to Popover, would you like to transfer your existing Popover to the new format? <a href='%s'>Yes please transfer it</a> / <a href='%s'>No thanks, I'll create a new one myself.</a>"
57
  msgstr ""
58
 
59
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:317
60
  msgid "Transferred Popover"
61
  msgstr ""
62
 
63
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:655
64
  msgid "Pop Over updated."
65
  msgstr ""
66
 
67
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:656
68
  msgid "Pop Over not updated."
69
  msgstr ""
70
 
71
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:658
72
  msgid "Pop Over activated."
73
  msgstr ""
74
 
75
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:659
76
  msgid "Pop Over not activated."
77
  msgstr ""
78
 
79
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:661
80
  msgid "Pop Over deactivated."
81
  msgstr ""
82
 
83
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:662
84
  msgid "Pop Over not deactivated."
85
  msgstr ""
86
 
87
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:664
88
  msgid "Pop Over activation toggled."
89
  msgstr ""
90
 
91
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:666
92
  msgid "Pop Over deleted."
93
  msgstr ""
94
 
95
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:667
96
  msgid "Pop Over not deleted."
97
  msgstr ""
98
 
99
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:669
100
  msgid "Pop Over added."
101
  msgstr ""
102
 
103
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:670
104
  msgid "Pop Over not added."
105
  msgstr ""
106
 
107
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:674
108
  msgid "Edit Pop Overs"
109
  msgstr ""
110
 
111
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:674
112
  msgid "Add New"
113
  msgstr ""
114
 
115
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:692
116
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:868
117
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1847
118
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1975
119
  msgid "Bulk Actions"
120
  msgstr ""
121
 
122
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:693
123
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:869
124
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1848
125
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1976
126
  msgid "Toggle activation"
127
  msgstr ""
128
 
129
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:695
130
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:871
131
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1850
132
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1978
133
  msgid "Apply"
134
  msgstr ""
135
 
136
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:709
137
  msgid "Pop Over Name"
138
  msgstr ""
139
 
140
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:710
141
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1257
142
  msgid "Conditions"
143
  msgstr ""
144
 
145
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:711
146
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:841
147
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1866
148
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1948
149
  msgid "Active"
150
  msgstr ""
151
 
152
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:772
153
  msgid "Edit"
154
  msgstr ""
155
 
156
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:775
157
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1934
158
  msgid "Deactivate"
159
  msgstr ""
160
 
161
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:777
162
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1936
163
  msgid "Activate"
164
  msgstr ""
165
 
166
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:780
167
  msgid "Delete"
168
  msgstr ""
169
 
170
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:795
171
  msgid "Site is not a Pro-site"
172
  msgstr ""
173
 
174
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:798
175
  msgid "Visitor is logged in"
176
  msgstr ""
177
 
178
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:801
179
  msgid "Visitor is not logged in"
180
  msgstr ""
181
 
182
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:804
183
  msgid "Visitor has never commented"
184
  msgstr ""
185
 
186
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:807
187
  msgid "Visit via a search engine"
188
  msgstr ""
189
 
190
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:810
191
  msgid "Visit not via an Internal link"
192
  msgstr ""
193
 
194
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:813
195
  msgid "Visit via specific referer"
196
  msgstr ""
197
 
198
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:816
199
  msgid "Popover shown less than x times"
200
  msgstr ""
201
 
202
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:819
203
  msgid "On specific URL"
204
  msgstr ""
205
 
206
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:822
207
  msgid "Not on specific URL"
208
  msgstr ""
209
 
210
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:825
211
  msgid "In a specific country"
212
  msgstr ""
213
 
214
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:828
215
  msgid "Not in a specific country"
216
  msgstr ""
217
 
218
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:843
219
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1950
220
  msgid "Inactive"
221
  msgstr ""
222
 
223
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:854
224
  msgid "No Pop Overs were found."
225
  msgstr ""
226
 
227
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:903
228
  msgid "New Pop Over"
229
  msgstr ""
230
 
231
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:958
232
  msgid "Edit Pop Over"
233
  msgstr ""
234
 
235
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:960
236
  msgid "Add Pop Over"
237
  msgstr ""
238
 
239
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:973
 
240
  msgid "Pop Over Settings"
241
  msgstr ""
242
 
243
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:979
244
  msgid "Popover title"
245
  msgstr ""
246
 
247
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:982
248
  msgid "Popover content"
249
  msgstr ""
250
 
251
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:994
252
  msgid "Active conditions"
253
  msgstr ""
254
 
255
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:995
256
  msgid "These are the rules that will determine if a popover should show when a visitor arrives at your website ALL rules must be true for the popover to show."
257
  msgstr ""
258
 
259
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1043
260
  msgid "Drop here"
261
  msgstr ""
262
 
263
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1046
264
  msgid "Appearance settings"
265
  msgstr ""
266
 
267
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1049
268
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1604
269
  msgid "Pop Over Size"
270
  msgstr ""
271
 
272
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1051
273
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1606
274
  msgid "Width:"
275
  msgstr ""
276
 
277
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1053
278
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1608
279
  msgid "Height:"
280
  msgstr ""
281
 
282
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1059
283
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1614
284
  msgid "Pop Over Position"
285
  msgstr ""
286
 
287
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1061
288
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1071
289
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1616
290
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1626
291
  msgid "Left:"
292
  msgstr ""
293
 
294
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1063
295
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1075
296
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1618
297
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1630
298
  msgid "Top:"
299
  msgstr ""
300
 
301
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1069
302
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1624
303
  msgid "Pop Over Margins"
304
  msgstr ""
305
 
306
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1073
307
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1628
308
  msgid "Right:"
309
  msgstr ""
310
 
311
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1077
312
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1632
313
  msgid "Bottom:"
314
  msgstr ""
315
 
316
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1085
317
  msgid "or use Javascript to resize and center the popover"
318
  msgstr ""
319
 
320
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1093
321
  msgid "Background Color"
322
  msgstr ""
323
 
324
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1095
325
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1103
326
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1652
327
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1660
328
  msgid "Hex:"
329
  msgstr ""
330
 
331
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1101
332
  msgid "Font Color"
333
  msgstr ""
334
 
335
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1115
336
  msgid "Pop Over Style"
337
  msgstr ""
338
 
339
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1119
340
  msgid "Use Style"
341
  msgstr ""
342
 
343
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1146
344
  msgid "Remove Hide Forever Link"
345
  msgstr ""
346
 
347
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1149
348
  msgid "Remove the \"Never see this message again\" link"
349
  msgstr ""
350
 
351
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1156
352
  msgid "Pop over appearance delays"
353
  msgstr ""
354
 
355
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1159
356
  msgid "Show Pop Over"
357
  msgstr ""
358
 
359
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1162
360
  msgid "immediately"
361
  msgstr ""
362
 
363
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1166
364
  msgid "after"
365
  msgstr ""
366
 
367
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1166
368
  msgid "seconds"
369
  msgstr ""
370
 
371
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1180
372
  msgid "Update"
373
  msgstr ""
374
 
375
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1183
376
  msgid "Add"
377
  msgstr ""
378
 
379
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1183
380
  msgid "Add and Activate"
381
  msgstr ""
382
 
383
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1365
384
  msgid "Add this rule to the popover."
385
  msgstr ""
386
 
387
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1378
388
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1391
389
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1405
390
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1423
391
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1439
392
  msgid "Remove"
393
  msgstr ""
394
 
395
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1409
396
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1730
397
  msgid "times"
398
  msgstr ""
399
 
400
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1444
401
  msgid "Select a country from the list below"
402
  msgstr ""
403
 
404
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1553
405
  msgid "Your settings have been saved."
406
  msgstr ""
407
 
408
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1582
409
  msgid "Pop Over content settings"
410
  msgstr ""
411
 
412
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1583
413
  msgid "Use the settings below to modify the content of your pop over and the rules that will determine when, or if, it will be displayed."
414
  msgstr ""
415
 
416
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1585
417
  msgid "Pop Over content"
418
  msgstr ""
419
 
420
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1586
421
  msgid "Enter the content for your pop over in the text area below. HTML is allowed."
422
  msgstr ""
423
 
424
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1590
425
  msgid "Update content"
426
  msgstr ""
427
 
428
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1593
429
  msgid "Pop Over display settings"
430
  msgstr ""
431
 
432
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1594
433
  msgid "Use the options below to determine the look, and display settings for the Pop Over."
434
  msgstr ""
435
 
436
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1600
437
  msgid "Appearance Settings"
438
  msgstr ""
439
 
440
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1640
441
  msgid "or just override the above with JS"
442
  msgstr ""
443
 
444
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1650
445
  msgid "Background Colour"
446
  msgstr ""
447
 
448
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1658
449
  msgid "Font Colour"
450
  msgstr ""
451
 
452
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1670
453
  msgid "Display Rules"
454
  msgstr ""
455
 
456
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1672
457
  msgid "Show the Pop Over if <strong>one</strong> of the following checked rules is true."
458
  msgstr ""
459
 
460
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1682
461
  msgid "Visitor is not a supporter."
462
  msgstr ""
463
 
464
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1691
465
  msgid "Visitor is logged in."
466
  msgstr ""
467
 
468
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1697
469
  msgid "Visitor is not logged in."
470
  msgstr ""
471
 
472
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1703
473
  msgid "Visitor has never commented here before."
474
  msgstr ""
475
 
476
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1709
477
  msgid "Visitor came from a search engine."
478
  msgstr ""
479
 
480
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1715
481
  msgid "Visitor did not come from an internal page."
482
  msgstr ""
483
 
484
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1721
485
  msgid "Visitor referrer matches"
486
  msgstr ""
487
 
488
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1728
489
  msgid "And the visitor has seen the pop over less than"
490
  msgstr ""
491
 
492
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1738
493
  msgid "Update settings"
494
  msgstr ""
495
 
496
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1815
497
  msgid "Add-on updated."
498
  msgstr ""
499
 
500
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1816
501
  msgid "Add-on not updated."
502
  msgstr ""
503
 
504
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1818
505
  msgid "Add-on activated."
506
  msgstr ""
507
 
508
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1819
509
  msgid "Add-on not activated."
510
  msgstr ""
511
 
512
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1821
513
  msgid "Add-on deactivated."
514
  msgstr ""
515
 
516
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1822
517
  msgid "Add-on not deactivated."
518
  msgstr ""
519
 
520
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1824
521
  msgid "Add-on activation toggled."
522
  msgstr ""
523
 
524
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1829
525
  msgid "Edit Add-ons"
526
  msgstr ""
527
 
528
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1864
529
  msgid "Add-on Name"
530
  msgstr ""
531
 
532
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1865
533
  msgid "Add-on File"
534
  msgstr ""
535
 
536
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1926
537
  msgid " by "
538
  msgstr ""
539
 
540
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1961
541
  msgid "No Add-ons where found for this install."
542
  msgstr ""
543
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
544
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/default/popover.php:8
545
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/fixed/popover.php:8
546
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/fullbackground/popover.php:9
@@ -548,6 +600,16 @@ msgstr ""
548
  msgid "Never see this message again."
549
  msgstr ""
550
 
 
 
 
 
 
 
 
 
 
 
551
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/help/popover.help.php:1
552
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/help/popoveraddons.help.php:1
553
  msgid "Introduction"
@@ -625,991 +687,987 @@ msgstr ""
625
  msgid "Help"
626
  msgstr ""
627
 
628
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:8
629
- msgid "Please install the latest version of <a href=\"http://premium.wpmudev.org/project/update-notifications/\" title=\"Download Now &raquo;\">our free Update Notifications plugin</a> which helps you stay up-to-date with the most stable, secure versions of WPMU DEV themes and plugins. <a href=\"http://premium.wpmudev.org/wpmu-dev/update-notifications-plugin-information/\">More information &raquo;</a>"
630
- msgstr ""
631
-
632
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:160
633
  msgid "Australia"
634
  msgstr ""
635
 
636
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:161
637
  msgid "Afghanistan"
638
  msgstr ""
639
 
640
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:162
641
  msgid "Albania"
642
  msgstr ""
643
 
644
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:163
645
  msgid "Algeria"
646
  msgstr ""
647
 
648
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:164
649
  msgid "American Samoa"
650
  msgstr ""
651
 
652
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:165
653
  msgid "Andorra"
654
  msgstr ""
655
 
656
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:166
657
  msgid "Angola"
658
  msgstr ""
659
 
660
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:167
661
  msgid "Anguilla"
662
  msgstr ""
663
 
664
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:168
665
  msgid "Antarctica"
666
  msgstr ""
667
 
668
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:169
669
  msgid "Antigua & Barbuda"
670
  msgstr ""
671
 
672
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:170
673
  msgid "Argentina"
674
  msgstr ""
675
 
676
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:171
677
  msgid "Armenia"
678
  msgstr ""
679
 
680
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:172
681
  msgid "Aruba"
682
  msgstr ""
683
 
684
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:173
685
  msgid "Austria"
686
  msgstr ""
687
 
688
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:174
689
  msgid "Azerbaijan"
690
  msgstr ""
691
 
692
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:175
693
  msgid "Bahamas"
694
  msgstr ""
695
 
696
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:176
697
  msgid "Bahrain"
698
  msgstr ""
699
 
700
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:177
701
  msgid "Bangladesh"
702
  msgstr ""
703
 
704
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:178
705
  msgid "Barbados"
706
  msgstr ""
707
 
708
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:179
709
  msgid "Belarus"
710
  msgstr ""
711
 
712
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:180
713
  msgid "Belgium"
714
  msgstr ""
715
 
716
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:181
717
  msgid "Belize"
718
  msgstr ""
719
 
720
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:182
721
  msgid "Benin"
722
  msgstr ""
723
 
724
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:183
725
  msgid "Bermuda"
726
  msgstr ""
727
 
728
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:184
729
  msgid "Bhutan"
730
  msgstr ""
731
 
732
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:185
733
  msgid "Bolivia"
734
  msgstr ""
735
 
736
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:186
737
  msgid "Bosnia/Hercegovina"
738
  msgstr ""
739
 
740
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:187
741
  msgid "Botswana"
742
  msgstr ""
743
 
744
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:188
745
  msgid "Bouvet Island"
746
  msgstr ""
747
 
748
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:189
749
  msgid "Brazil"
750
  msgstr ""
751
 
752
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:190
753
  msgid "British Indian Ocean Territory"
754
  msgstr ""
755
 
756
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:191
757
  msgid "Brunei Darussalam"
758
  msgstr ""
759
 
760
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:192
761
  msgid "Bulgaria"
762
  msgstr ""
763
 
764
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:193
765
  msgid "Burkina Faso"
766
  msgstr ""
767
 
768
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:194
769
  msgid "Burundi"
770
  msgstr ""
771
 
772
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:195
773
  msgid "Cambodia"
774
  msgstr ""
775
 
776
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:196
777
  msgid "Cameroon"
778
  msgstr ""
779
 
780
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:197
781
  msgid "Canada"
782
  msgstr ""
783
 
784
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:198
785
  msgid "Cape Verde"
786
  msgstr ""
787
 
788
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:199
789
  msgid "Cayman Is"
790
  msgstr ""
791
 
792
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:200
793
  msgid "Central African Republic"
794
  msgstr ""
795
 
796
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:201
797
  msgid "Chad"
798
  msgstr ""
799
 
800
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:202
801
  msgid "Chile"
802
  msgstr ""
803
 
804
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:203
805
  msgid "China, People's Republic of"
806
  msgstr ""
807
 
808
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:204
809
  msgid "Christmas Island"
810
  msgstr ""
811
 
812
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:205
813
  msgid "Cocos Islands"
814
  msgstr ""
815
 
816
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:206
817
  msgid "Colombia"
818
  msgstr ""
819
 
820
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:207
821
  msgid "Comoros"
822
  msgstr ""
823
 
824
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:208
825
  msgid "Congo"
826
  msgstr ""
827
 
828
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:209
829
  msgid "Congo, Democratic Republic"
830
  msgstr ""
831
 
832
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:210
833
  msgid "Cook Islands"
834
  msgstr ""
835
 
836
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:211
837
  msgid "Costa Rica"
838
  msgstr ""
839
 
840
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:212
841
  msgid "Cote d'Ivoire"
842
  msgstr ""
843
 
844
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:213
845
  msgid "Croatia"
846
  msgstr ""
847
 
848
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:214
849
  msgid "Cuba"
850
  msgstr ""
851
 
852
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:215
853
  msgid "Cyprus"
854
  msgstr ""
855
 
856
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:216
857
  msgid "Czech Republic"
858
  msgstr ""
859
 
860
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:217
861
  msgid "Denmark"
862
  msgstr ""
863
 
864
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:218
865
  msgid "Djibouti"
866
  msgstr ""
867
 
868
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:219
869
  msgid "Dominica"
870
  msgstr ""
871
 
872
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:220
873
  msgid "Dominican Republic"
874
  msgstr ""
875
 
876
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:221
877
  msgid "East Timor"
878
  msgstr ""
879
 
880
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:222
881
  msgid "Ecuador"
882
  msgstr ""
883
 
884
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:223
885
  msgid "Egypt"
886
  msgstr ""
887
 
888
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:224
889
  msgid "El Salvador"
890
  msgstr ""
891
 
892
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:225
893
  msgid "Equatorial Guinea"
894
  msgstr ""
895
 
896
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:226
897
  msgid "Eritrea"
898
  msgstr ""
899
 
900
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:227
901
  msgid "Estonia"
902
  msgstr ""
903
 
904
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:228
905
  msgid "Ethiopia"
906
  msgstr ""
907
 
908
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:229
909
  msgid "Falkland Islands"
910
  msgstr ""
911
 
912
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:230
913
  msgid "Faroe Islands"
914
  msgstr ""
915
 
916
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:231
917
  msgid "Fiji"
918
  msgstr ""
919
 
920
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:232
921
  msgid "Finland"
922
  msgstr ""
923
 
924
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:233
925
  msgid "France"
926
  msgstr ""
927
 
928
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:234
929
  msgid "France, Metropolitan"
930
  msgstr ""
931
 
932
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:235
933
  msgid "French Guiana"
934
  msgstr ""
935
 
936
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:236
937
  msgid "French Polynesia"
938
  msgstr ""
939
 
940
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:237
941
  msgid "French South Territories"
942
  msgstr ""
943
 
944
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:238
945
  msgid "Gabon"
946
  msgstr ""
947
 
948
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:239
949
  msgid "Gambia"
950
  msgstr ""
951
 
952
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:240
953
  msgid "Georgia"
954
  msgstr ""
955
 
956
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:241
957
  msgid "Germany"
958
  msgstr ""
959
 
960
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:242
961
  msgid "Ghana"
962
  msgstr ""
963
 
964
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:243
965
  msgid "Gibraltar"
966
  msgstr ""
967
 
968
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:244
969
  msgid "Greece"
970
  msgstr ""
971
 
972
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:245
973
  msgid "Greenland"
974
  msgstr ""
975
 
976
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:246
977
  msgid "Grenada"
978
  msgstr ""
979
 
980
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:247
981
  msgid "Guadeloupe"
982
  msgstr ""
983
 
984
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:248
985
  msgid "Guam"
986
  msgstr ""
987
 
988
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:249
989
  msgid "Guatemala"
990
  msgstr ""
991
 
992
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:250
993
  msgid "Guinea"
994
  msgstr ""
995
 
996
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:251
997
  msgid "Guinea-Bissau"
998
  msgstr ""
999
 
1000
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:252
1001
  msgid "Guyana"
1002
  msgstr ""
1003
 
1004
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:253
1005
  msgid "Haiti"
1006
  msgstr ""
1007
 
1008
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:254
1009
  msgid "Heard Island And Mcdonald Island"
1010
  msgstr ""
1011
 
1012
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:255
1013
  msgid "Honduras"
1014
  msgstr ""
1015
 
1016
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:256
1017
  msgid "Hong Kong"
1018
  msgstr ""
1019
 
1020
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:257
1021
  msgid "Hungary"
1022
  msgstr ""
1023
 
1024
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:258
1025
  msgid "Iceland"
1026
  msgstr ""
1027
 
1028
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:259
1029
  msgid "India"
1030
  msgstr ""
1031
 
1032
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:260
1033
  msgid "Indonesia"
1034
  msgstr ""
1035
 
1036
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:261
1037
  msgid "Iran"
1038
  msgstr ""
1039
 
1040
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:262
1041
  msgid "Iraq"
1042
  msgstr ""
1043
 
1044
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:263
1045
  msgid "Ireland"
1046
  msgstr ""
1047
 
1048
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:264
1049
  msgid "Israel"
1050
  msgstr ""
1051
 
1052
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:265
1053
  msgid "Italy"
1054
  msgstr ""
1055
 
1056
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:266
1057
  msgid "Jamaica"
1058
  msgstr ""
1059
 
1060
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:267
1061
  msgid "Japan"
1062
  msgstr ""
1063
 
1064
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:268
1065
  msgid "Johnston Island"
1066
  msgstr ""
1067
 
1068
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:269
1069
  msgid "Jordan"
1070
  msgstr ""
1071
 
1072
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:270
1073
  msgid "Kazakhstan"
1074
  msgstr ""
1075
 
1076
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:271
1077
  msgid "Kenya"
1078
  msgstr ""
1079
 
1080
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:272
1081
  msgid "Kiribati"
1082
  msgstr ""
1083
 
1084
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:273
1085
  msgid "Korea, Democratic Peoples Republic"
1086
  msgstr ""
1087
 
1088
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:274
1089
  msgid "Korea, Republic of"
1090
  msgstr ""
1091
 
1092
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:275
1093
  msgid "Kuwait"
1094
  msgstr ""
1095
 
1096
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:276
1097
  msgid "Kyrgyzstan"
1098
  msgstr ""
1099
 
1100
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:277
1101
  msgid "Lao People's Democratic Republic"
1102
  msgstr ""
1103
 
1104
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:278
1105
  msgid "Latvia"
1106
  msgstr ""
1107
 
1108
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:279
1109
  msgid "Lebanon"
1110
  msgstr ""
1111
 
1112
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:280
1113
  msgid "Lesotho"
1114
  msgstr ""
1115
 
1116
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:281
1117
  msgid "Liberia"
1118
  msgstr ""
1119
 
1120
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:282
1121
  msgid "Libyan Arab Jamahiriya"
1122
  msgstr ""
1123
 
1124
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:283
1125
  msgid "Liechtenstein"
1126
  msgstr ""
1127
 
1128
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:284
1129
  msgid "Lithuania"
1130
  msgstr ""
1131
 
1132
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:285
1133
  msgid "Luxembourg"
1134
  msgstr ""
1135
 
1136
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:286
1137
  msgid "Macau"
1138
  msgstr ""
1139
 
1140
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:287
1141
  msgid "Macedonia"
1142
  msgstr ""
1143
 
1144
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:288
1145
  msgid "Madagascar"
1146
  msgstr ""
1147
 
1148
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:289
1149
  msgid "Malawi"
1150
  msgstr ""
1151
 
1152
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:290
1153
  msgid "Malaysia"
1154
  msgstr ""
1155
 
1156
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:291
1157
  msgid "Maldives"
1158
  msgstr ""
1159
 
1160
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:292
1161
  msgid "Mali"
1162
  msgstr ""
1163
 
1164
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:293
1165
  msgid "Malta"
1166
  msgstr ""
1167
 
1168
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:294
1169
  msgid "Marshall Islands"
1170
  msgstr ""
1171
 
1172
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:295
1173
  msgid "Martinique"
1174
  msgstr ""
1175
 
1176
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:296
1177
  msgid "Mauritania"
1178
  msgstr ""
1179
 
1180
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:297
1181
  msgid "Mauritius"
1182
  msgstr ""
1183
 
1184
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:298
1185
  msgid "Mayotte"
1186
  msgstr ""
1187
 
1188
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:299
1189
  msgid "Mexico"
1190
  msgstr ""
1191
 
1192
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:300
1193
  msgid "Micronesia"
1194
  msgstr ""
1195
 
1196
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:301
1197
  msgid "Moldavia"
1198
  msgstr ""
1199
 
1200
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:302
1201
  msgid "Monaco"
1202
  msgstr ""
1203
 
1204
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:303
1205
  msgid "Mongolia"
1206
  msgstr ""
1207
 
1208
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:304
1209
  msgid "Montserrat"
1210
  msgstr ""
1211
 
1212
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:305
1213
  msgid "Morocco"
1214
  msgstr ""
1215
 
1216
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:306
1217
  msgid "Mozambique"
1218
  msgstr ""
1219
 
1220
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:307
1221
  msgid "Union Of Myanmar"
1222
  msgstr ""
1223
 
1224
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:308
1225
  msgid "Namibia"
1226
  msgstr ""
1227
 
1228
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:309
1229
  msgid "Nauru Island"
1230
  msgstr ""
1231
 
1232
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:310
1233
  msgid "Nepal"
1234
  msgstr ""
1235
 
1236
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:311
1237
  msgid "Netherlands"
1238
  msgstr ""
1239
 
1240
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:312
1241
  msgid "Netherlands Antilles"
1242
  msgstr ""
1243
 
1244
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:313
1245
  msgid "New Caledonia"
1246
  msgstr ""
1247
 
1248
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:314
1249
  msgid "New Zealand"
1250
  msgstr ""
1251
 
1252
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:315
1253
  msgid "Nicaragua"
1254
  msgstr ""
1255
 
1256
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:316
1257
  msgid "Niger"
1258
  msgstr ""
1259
 
1260
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:317
1261
  msgid "Nigeria"
1262
  msgstr ""
1263
 
1264
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:318
1265
  msgid "Niue"
1266
  msgstr ""
1267
 
1268
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:319
1269
  msgid "Norfolk Island"
1270
  msgstr ""
1271
 
1272
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:320
1273
  msgid "Mariana Islands, Northern"
1274
  msgstr ""
1275
 
1276
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:321
1277
  msgid "Norway"
1278
  msgstr ""
1279
 
1280
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:322
1281
  msgid "Oman"
1282
  msgstr ""
1283
 
1284
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:323
1285
  msgid "Pakistan"
1286
  msgstr ""
1287
 
1288
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:324
1289
  msgid "Palau Islands"
1290
  msgstr ""
1291
 
1292
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:325
1293
  msgid "Palestine"
1294
  msgstr ""
1295
 
1296
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:326
1297
  msgid "Panama"
1298
  msgstr ""
1299
 
1300
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:327
1301
  msgid "Papua New Guinea"
1302
  msgstr ""
1303
 
1304
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:328
1305
  msgid "Paraguay"
1306
  msgstr ""
1307
 
1308
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:329
1309
  msgid "Peru"
1310
  msgstr ""
1311
 
1312
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:330
1313
  msgid "Philippines"
1314
  msgstr ""
1315
 
1316
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:331
1317
  msgid "Pitcairn"
1318
  msgstr ""
1319
 
1320
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:332
1321
  msgid "Poland"
1322
  msgstr ""
1323
 
1324
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:333
1325
  msgid "Portugal"
1326
  msgstr ""
1327
 
1328
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:334
1329
  msgid "Puerto Rico"
1330
  msgstr ""
1331
 
1332
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:335
1333
  msgid "Qatar"
1334
  msgstr ""
1335
 
1336
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:336
1337
  msgid "Reunion Island"
1338
  msgstr ""
1339
 
1340
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:337
1341
  msgid "Romania"
1342
  msgstr ""
1343
 
1344
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:338
1345
  msgid "Russian Federation"
1346
  msgstr ""
1347
 
1348
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:339
1349
  msgid "Rwanda"
1350
  msgstr ""
1351
 
1352
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:340
1353
  msgid "Samoa"
1354
  msgstr ""
1355
 
1356
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:341
1357
  msgid "St Helena"
1358
  msgstr ""
1359
 
1360
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:342
1361
  msgid "St Kitts & Nevis"
1362
  msgstr ""
1363
 
1364
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:343
1365
  msgid "St Lucia"
1366
  msgstr ""
1367
 
1368
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:344
1369
  msgid "St Pierre & Miquelon"
1370
  msgstr ""
1371
 
1372
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:345
1373
  msgid "St Vincent"
1374
  msgstr ""
1375
 
1376
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:346
1377
  msgid "San Marino"
1378
  msgstr ""
1379
 
1380
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:347
1381
  msgid "Sao Tome & Principe"
1382
  msgstr ""
1383
 
1384
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:348
1385
  msgid "Saudi Arabia"
1386
  msgstr ""
1387
 
1388
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:349
1389
  msgid "Senegal"
1390
  msgstr ""
1391
 
1392
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:350
1393
  msgid "Seychelles"
1394
  msgstr ""
1395
 
1396
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:351
1397
  msgid "Sierra Leone"
1398
  msgstr ""
1399
 
1400
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:352
1401
  msgid "Singapore"
1402
  msgstr ""
1403
 
1404
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:353
1405
  msgid "Slovakia"
1406
  msgstr ""
1407
 
1408
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:354
1409
  msgid "Slovenia"
1410
  msgstr ""
1411
 
1412
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:355
1413
  msgid "Solomon Islands"
1414
  msgstr ""
1415
 
1416
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:356
1417
  msgid "Somalia"
1418
  msgstr ""
1419
 
1420
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:357
1421
  msgid "South Africa"
1422
  msgstr ""
1423
 
1424
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:358
1425
  msgid "South Georgia and South Sandwich"
1426
  msgstr ""
1427
 
1428
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:359
1429
  msgid "Spain"
1430
  msgstr ""
1431
 
1432
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:360
1433
  msgid "Sri Lanka"
1434
  msgstr ""
1435
 
1436
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:361
1437
  msgid "Stateless Persons"
1438
  msgstr ""
1439
 
1440
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:362
1441
  msgid "Sudan"
1442
  msgstr ""
1443
 
1444
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:363
1445
  msgid "Suriname"
1446
  msgstr ""
1447
 
1448
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:364
1449
  msgid "Svalbard and Jan Mayen"
1450
  msgstr ""
1451
 
1452
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:365
1453
  msgid "Swaziland"
1454
  msgstr ""
1455
 
1456
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:366
1457
  msgid "Sweden"
1458
  msgstr ""
1459
 
1460
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:367
1461
  msgid "Switzerland"
1462
  msgstr ""
1463
 
1464
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:368
1465
  msgid "Syrian Arab Republic"
1466
  msgstr ""
1467
 
1468
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:369
1469
  msgid "Taiwan, Republic of China"
1470
  msgstr ""
1471
 
1472
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:370
1473
  msgid "Tajikistan"
1474
  msgstr ""
1475
 
1476
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:371
1477
  msgid "Tanzania"
1478
  msgstr ""
1479
 
1480
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:372
1481
  msgid "Thailand"
1482
  msgstr ""
1483
 
1484
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:373
1485
  msgid "Timor Leste"
1486
  msgstr ""
1487
 
1488
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:374
1489
  msgid "Togo"
1490
  msgstr ""
1491
 
1492
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:375
1493
  msgid "Tokelau"
1494
  msgstr ""
1495
 
1496
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:376
1497
  msgid "Tonga"
1498
  msgstr ""
1499
 
1500
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:377
1501
  msgid "Trinidad & Tobago"
1502
  msgstr ""
1503
 
1504
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:378
1505
  msgid "Tunisia"
1506
  msgstr ""
1507
 
1508
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:379
1509
  msgid "Turkey"
1510
  msgstr ""
1511
 
1512
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:380
1513
  msgid "Turkmenistan"
1514
  msgstr ""
1515
 
1516
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:381
1517
  msgid "Turks And Caicos Islands"
1518
  msgstr ""
1519
 
1520
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:382
1521
  msgid "Tuvalu"
1522
  msgstr ""
1523
 
1524
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:383
1525
  msgid "Uganda"
1526
  msgstr ""
1527
 
1528
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:384
1529
  msgid "Ukraine"
1530
  msgstr ""
1531
 
1532
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:385
1533
  msgid "United Arab Emirates"
1534
  msgstr ""
1535
 
1536
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:386
1537
  msgid "United Kingdom"
1538
  msgstr ""
1539
 
1540
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:387
1541
  msgid "US Minor Outlying Islands"
1542
  msgstr ""
1543
 
1544
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:388
1545
  msgid "USA"
1546
  msgstr ""
1547
 
1548
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:389
1549
  msgid "Upper Volta"
1550
  msgstr ""
1551
 
1552
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:390
1553
  msgid "Uruguay"
1554
  msgstr ""
1555
 
1556
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:391
1557
  msgid "Uzbekistan"
1558
  msgstr ""
1559
 
1560
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:392
1561
  msgid "Vanuatu"
1562
  msgstr ""
1563
 
1564
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:393
1565
  msgid "Vatican City State"
1566
  msgstr ""
1567
 
1568
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:394
1569
  msgid "Venezuela"
1570
  msgstr ""
1571
 
1572
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:395
1573
  msgid "Vietnam"
1574
  msgstr ""
1575
 
1576
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:396
1577
  msgid "Virgin Islands (British)"
1578
  msgstr ""
1579
 
1580
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:397
1581
  msgid "Virgin Islands (US)"
1582
  msgstr ""
1583
 
1584
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:398
1585
  msgid "Wallis And Futuna Islands"
1586
  msgstr ""
1587
 
1588
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:399
1589
  msgid "Western Sahara"
1590
  msgstr ""
1591
 
1592
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:400
1593
  msgid "Yemen Arab Rep."
1594
  msgstr ""
1595
 
1596
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:401
1597
  msgid "Yemen Democratic"
1598
  msgstr ""
1599
 
1600
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:402
1601
  msgid "Yugoslavia"
1602
  msgstr ""
1603
 
1604
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:403
1605
  msgid "Zaire"
1606
  msgstr ""
1607
 
1608
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:404
1609
  msgid "Zambia"
1610
  msgstr ""
1611
 
1612
- #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:405
1613
  msgid "Zimbabwe"
1614
  msgstr ""
1615
 
2
  msgstr ""
3
  "Project-Id-Version: PopOver\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-08-25 11:29+0100\n"
6
+ "PO-Revision-Date: 2013-08-25 11:29+0100\n"
7
+ "Last-Translator: \n"
8
  "Language-Team: Incsub <barry@incsub.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
22
  msgstr ""
23
 
24
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popover.help.php:75
25
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:120
26
  msgid "Add-ons"
27
  msgstr ""
28
 
29
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:111
30
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:115
31
  msgid "Pop Overs"
32
  msgstr ""
33
 
34
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:119
35
  msgid "Create New Pop Over"
36
  msgstr ""
37
 
38
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:119
39
  msgid "Create New"
40
  msgstr ""
41
 
42
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:120
43
  msgid "Manage Add-ons Plugins"
44
  msgstr ""
45
 
46
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:122
47
+ msgid "Settings"
48
+ msgstr ""
49
+
50
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:270
51
  msgid "An error occured updating the Pop Over order."
52
  msgstr ""
53
 
54
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:271
55
  msgid "Are you sure you want to delete this Pop Over?"
56
  msgstr ""
57
 
58
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:321
59
  #, php-format
60
  msgid "Welcome to Popover, would you like to transfer your existing Popover to the new format? <a href='%s'>Yes please transfer it</a> / <a href='%s'>No thanks, I'll create a new one myself.</a>"
61
  msgstr ""
62
 
63
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:340
64
  msgid "Transferred Popover"
65
  msgstr ""
66
 
67
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:702
68
  msgid "Pop Over updated."
69
  msgstr ""
70
 
71
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:703
72
  msgid "Pop Over not updated."
73
  msgstr ""
74
 
75
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:705
76
  msgid "Pop Over activated."
77
  msgstr ""
78
 
79
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:706
80
  msgid "Pop Over not activated."
81
  msgstr ""
82
 
83
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:708
84
  msgid "Pop Over deactivated."
85
  msgstr ""
86
 
87
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:709
88
  msgid "Pop Over not deactivated."
89
  msgstr ""
90
 
91
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:711
92
  msgid "Pop Over activation toggled."
93
  msgstr ""
94
 
95
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:713
96
  msgid "Pop Over deleted."
97
  msgstr ""
98
 
99
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:714
100
  msgid "Pop Over not deleted."
101
  msgstr ""
102
 
103
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:716
104
  msgid "Pop Over added."
105
  msgstr ""
106
 
107
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:717
108
  msgid "Pop Over not added."
109
  msgstr ""
110
 
111
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:721
112
  msgid "Edit Pop Overs"
113
  msgstr ""
114
 
115
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:721
116
  msgid "Add New"
117
  msgstr ""
118
 
119
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:739
120
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:915
121
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1898
122
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2026
123
  msgid "Bulk Actions"
124
  msgstr ""
125
 
126
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:740
127
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:916
128
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1899
129
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2027
130
  msgid "Toggle activation"
131
  msgstr ""
132
 
133
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:742
134
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:918
135
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1901
136
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2029
137
  msgid "Apply"
138
  msgstr ""
139
 
140
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:756
141
  msgid "Pop Over Name"
142
  msgstr ""
143
 
144
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:757
145
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1308
146
  msgid "Conditions"
147
  msgstr ""
148
 
149
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:758
150
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:888
151
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1917
152
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1999
153
  msgid "Active"
154
  msgstr ""
155
 
156
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:819
157
  msgid "Edit"
158
  msgstr ""
159
 
160
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:822
161
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1985
162
  msgid "Deactivate"
163
  msgstr ""
164
 
165
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:824
166
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1987
167
  msgid "Activate"
168
  msgstr ""
169
 
170
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:827
171
  msgid "Delete"
172
  msgstr ""
173
 
174
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:842
175
  msgid "Site is not a Pro-site"
176
  msgstr ""
177
 
178
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:845
179
  msgid "Visitor is logged in"
180
  msgstr ""
181
 
182
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:848
183
  msgid "Visitor is not logged in"
184
  msgstr ""
185
 
186
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:851
187
  msgid "Visitor has never commented"
188
  msgstr ""
189
 
190
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:854
191
  msgid "Visit via a search engine"
192
  msgstr ""
193
 
194
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:857
195
  msgid "Visit not via an Internal link"
196
  msgstr ""
197
 
198
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:860
199
  msgid "Visit via specific referer"
200
  msgstr ""
201
 
202
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:863
203
  msgid "Popover shown less than x times"
204
  msgstr ""
205
 
206
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:866
207
  msgid "On specific URL"
208
  msgstr ""
209
 
210
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:869
211
  msgid "Not on specific URL"
212
  msgstr ""
213
 
214
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:872
215
  msgid "In a specific country"
216
  msgstr ""
217
 
218
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:875
219
  msgid "Not in a specific country"
220
  msgstr ""
221
 
222
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:890
223
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2001
224
  msgid "Inactive"
225
  msgstr ""
226
 
227
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:901
228
  msgid "No Pop Overs were found."
229
  msgstr ""
230
 
231
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:950
232
  msgid "New Pop Over"
233
  msgstr ""
234
 
235
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1005
236
  msgid "Edit Pop Over"
237
  msgstr ""
238
 
239
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1007
240
  msgid "Add Pop Over"
241
  msgstr ""
242
 
243
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1020
244
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2053
245
  msgid "Pop Over Settings"
246
  msgstr ""
247
 
248
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1026
249
  msgid "Popover title"
250
  msgstr ""
251
 
252
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1029
253
  msgid "Popover content"
254
  msgstr ""
255
 
256
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1041
257
  msgid "Active conditions"
258
  msgstr ""
259
 
260
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1042
261
  msgid "These are the rules that will determine if a popover should show when a visitor arrives at your website ALL rules must be true for the popover to show."
262
  msgstr ""
263
 
264
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1094
265
  msgid "Drop here"
266
  msgstr ""
267
 
268
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1097
269
  msgid "Appearance settings"
270
  msgstr ""
271
 
272
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1100
273
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1655
274
  msgid "Pop Over Size"
275
  msgstr ""
276
 
277
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1102
278
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1657
279
  msgid "Width:"
280
  msgstr ""
281
 
282
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1104
283
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1659
284
  msgid "Height:"
285
  msgstr ""
286
 
287
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1110
288
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1665
289
  msgid "Pop Over Position"
290
  msgstr ""
291
 
292
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1112
293
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1122
294
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1667
295
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1677
296
  msgid "Left:"
297
  msgstr ""
298
 
299
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1114
300
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1126
301
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1669
302
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1681
303
  msgid "Top:"
304
  msgstr ""
305
 
306
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1120
307
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1675
308
  msgid "Pop Over Margins"
309
  msgstr ""
310
 
311
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1124
312
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1679
313
  msgid "Right:"
314
  msgstr ""
315
 
316
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1128
317
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1683
318
  msgid "Bottom:"
319
  msgstr ""
320
 
321
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1136
322
  msgid "or use Javascript to resize and center the popover"
323
  msgstr ""
324
 
325
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1144
326
  msgid "Background Color"
327
  msgstr ""
328
 
329
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1146
330
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1154
331
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1703
332
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1711
333
  msgid "Hex:"
334
  msgstr ""
335
 
336
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1152
337
  msgid "Font Color"
338
  msgstr ""
339
 
340
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1166
341
  msgid "Pop Over Style"
342
  msgstr ""
343
 
344
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1170
345
  msgid "Use Style"
346
  msgstr ""
347
 
348
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1197
349
  msgid "Remove Hide Forever Link"
350
  msgstr ""
351
 
352
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1200
353
  msgid "Remove the \"Never see this message again\" link"
354
  msgstr ""
355
 
356
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1207
357
  msgid "Pop over appearance delays"
358
  msgstr ""
359
 
360
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1210
361
  msgid "Show Pop Over"
362
  msgstr ""
363
 
364
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1213
365
  msgid "immediately"
366
  msgstr ""
367
 
368
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1217
369
  msgid "after"
370
  msgstr ""
371
 
372
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1217
373
  msgid "seconds"
374
  msgstr ""
375
 
376
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1231
377
  msgid "Update"
378
  msgstr ""
379
 
380
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1234
381
  msgid "Add"
382
  msgstr ""
383
 
384
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1234
385
  msgid "Add and Activate"
386
  msgstr ""
387
 
388
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1416
389
  msgid "Add this rule to the popover."
390
  msgstr ""
391
 
392
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1429
393
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1442
394
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1456
395
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1474
396
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1490
397
  msgid "Remove"
398
  msgstr ""
399
 
400
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1460
401
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1781
402
  msgid "times"
403
  msgstr ""
404
 
405
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1495
406
  msgid "Select a country from the list below"
407
  msgstr ""
408
 
409
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1604
410
  msgid "Your settings have been saved."
411
  msgstr ""
412
 
413
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1633
414
  msgid "Pop Over content settings"
415
  msgstr ""
416
 
417
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1634
418
  msgid "Use the settings below to modify the content of your pop over and the rules that will determine when, or if, it will be displayed."
419
  msgstr ""
420
 
421
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1636
422
  msgid "Pop Over content"
423
  msgstr ""
424
 
425
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1637
426
  msgid "Enter the content for your pop over in the text area below. HTML is allowed."
427
  msgstr ""
428
 
429
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1641
430
  msgid "Update content"
431
  msgstr ""
432
 
433
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1644
434
  msgid "Pop Over display settings"
435
  msgstr ""
436
 
437
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1645
438
  msgid "Use the options below to determine the look, and display settings for the Pop Over."
439
  msgstr ""
440
 
441
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1651
442
  msgid "Appearance Settings"
443
  msgstr ""
444
 
445
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1691
446
  msgid "or just override the above with JS"
447
  msgstr ""
448
 
449
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1701
450
  msgid "Background Colour"
451
  msgstr ""
452
 
453
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1709
454
  msgid "Font Colour"
455
  msgstr ""
456
 
457
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1721
458
  msgid "Display Rules"
459
  msgstr ""
460
 
461
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1723
462
  msgid "Show the Pop Over if <strong>one</strong> of the following checked rules is true."
463
  msgstr ""
464
 
465
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1733
466
  msgid "Visitor is not a supporter."
467
  msgstr ""
468
 
469
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1742
470
  msgid "Visitor is logged in."
471
  msgstr ""
472
 
473
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1748
474
  msgid "Visitor is not logged in."
475
  msgstr ""
476
 
477
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1754
478
  msgid "Visitor has never commented here before."
479
  msgstr ""
480
 
481
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1760
482
  msgid "Visitor came from a search engine."
483
  msgstr ""
484
 
485
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1766
486
  msgid "Visitor did not come from an internal page."
487
  msgstr ""
488
 
489
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1772
490
  msgid "Visitor referrer matches"
491
  msgstr ""
492
 
493
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1779
494
  msgid "And the visitor has seen the pop over less than"
495
  msgstr ""
496
 
497
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1789
498
  msgid "Update settings"
499
  msgstr ""
500
 
501
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1866
502
  msgid "Add-on updated."
503
  msgstr ""
504
 
505
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1867
506
  msgid "Add-on not updated."
507
  msgstr ""
508
 
509
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1869
510
  msgid "Add-on activated."
511
  msgstr ""
512
 
513
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1870
514
  msgid "Add-on not activated."
515
  msgstr ""
516
 
517
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1872
518
  msgid "Add-on deactivated."
519
  msgstr ""
520
 
521
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1873
522
  msgid "Add-on not deactivated."
523
  msgstr ""
524
 
525
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1875
526
  msgid "Add-on activation toggled."
527
  msgstr ""
528
 
529
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1880
530
  msgid "Edit Add-ons"
531
  msgstr ""
532
 
533
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1915
534
  msgid "Add-on Name"
535
  msgstr ""
536
 
537
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1916
538
  msgid "Add-on File"
539
  msgstr ""
540
 
541
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:1977
542
  msgid " by "
543
  msgstr ""
544
 
545
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2012
546
  msgid "No Add-ons where found for this install."
547
  msgstr ""
548
 
549
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2047
550
+ msgid "Your settings have been updated."
551
+ msgstr ""
552
+
553
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2072
554
+ msgid "Pop Over loading method"
555
+ msgstr ""
556
+
557
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2074
558
+ msgid "Select the loading method you want to use for your Pop Overs."
559
+ msgstr ""
560
+
561
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2076
562
+ msgid "- Page Footer : The pop over is included as part of the page html."
563
+ msgstr ""
564
+
565
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2077
566
+ msgid "- External Load : The pop over is loaded separately from the page, this is the best option if you are running a caching system."
567
+ msgstr ""
568
+
569
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2078
570
+ msgid "- Custom Load : The pop over is loaded separately from the page via a custom front end ajax call."
571
+ msgstr ""
572
+
573
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2084
574
+ msgid "Pop Over loaded using"
575
+ msgstr ""
576
+
577
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2090
578
+ msgid "Page Footer"
579
+ msgstr ""
580
+
581
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2091
582
+ msgid "External Load"
583
+ msgstr ""
584
+
585
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/classes/popoveradmin.php:2092
586
+ msgid "Custom Load"
587
+ msgstr ""
588
+
589
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/default/popover.php:2
590
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/fixed/popover.php:2
591
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/fullbackground/popover.php:3
592
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/fullbackgroundfixed/popover.php:2
593
+ msgid "Close this box"
594
+ msgstr ""
595
+
596
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/default/popover.php:8
597
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/fixed/popover.php:8
598
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/css/fullbackground/popover.php:9
600
  msgid "Never see this message again."
601
  msgstr ""
602
 
603
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/external/wpmudev-dash-notification.php:57
604
+ #, php-format
605
+ msgid "Easily get updates, support, and one-click WPMU DEV plugin/theme installations right from in your dashboard - <strong><a href=\"%s\" title=\"Install Now &raquo;\">install the free WPMU DEV Dashboard plugin</a></strong>. &nbsp;&nbsp;&nbsp;<small><a href=\"http://premium.wpmudev.org/wpmu-dev/update-notifications-plugin-information/\">(find out more)</a></small>"
606
+ msgstr ""
607
+
608
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/external/wpmudev-dash-notification.php:61
609
+ #, php-format
610
+ msgid "Updates, Support, Premium Plugins, Community - <strong><a href=\"%s\" title=\"Activate Now &raquo;\">activate the WPMU DEV Dashboard plugin now</a></strong>."
611
+ msgstr ""
612
+
613
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/help/popover.help.php:1
614
  #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/help/popoveraddons.help.php:1
615
  msgid "Introduction"
687
  msgid "Help"
688
  msgstr ""
689
 
690
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:150
 
 
 
 
691
  msgid "Australia"
692
  msgstr ""
693
 
694
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:151
695
  msgid "Afghanistan"
696
  msgstr ""
697
 
698
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:152
699
  msgid "Albania"
700
  msgstr ""
701
 
702
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:153
703
  msgid "Algeria"
704
  msgstr ""
705
 
706
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:154
707
  msgid "American Samoa"
708
  msgstr ""
709
 
710
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:155
711
  msgid "Andorra"
712
  msgstr ""
713
 
714
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:156
715
  msgid "Angola"
716
  msgstr ""
717
 
718
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:157
719
  msgid "Anguilla"
720
  msgstr ""
721
 
722
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:158
723
  msgid "Antarctica"
724
  msgstr ""
725
 
726
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:159
727
  msgid "Antigua & Barbuda"
728
  msgstr ""
729
 
730
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:160
731
  msgid "Argentina"
732
  msgstr ""
733
 
734
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:161
735
  msgid "Armenia"
736
  msgstr ""
737
 
738
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:162
739
  msgid "Aruba"
740
  msgstr ""
741
 
742
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:163
743
  msgid "Austria"
744
  msgstr ""
745
 
746
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:164
747
  msgid "Azerbaijan"
748
  msgstr ""
749
 
750
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:165
751
  msgid "Bahamas"
752
  msgstr ""
753
 
754
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:166
755
  msgid "Bahrain"
756
  msgstr ""
757
 
758
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:167
759
  msgid "Bangladesh"
760
  msgstr ""
761
 
762
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:168
763
  msgid "Barbados"
764
  msgstr ""
765
 
766
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:169
767
  msgid "Belarus"
768
  msgstr ""
769
 
770
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:170
771
  msgid "Belgium"
772
  msgstr ""
773
 
774
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:171
775
  msgid "Belize"
776
  msgstr ""
777
 
778
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:172
779
  msgid "Benin"
780
  msgstr ""
781
 
782
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:173
783
  msgid "Bermuda"
784
  msgstr ""
785
 
786
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:174
787
  msgid "Bhutan"
788
  msgstr ""
789
 
790
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:175
791
  msgid "Bolivia"
792
  msgstr ""
793
 
794
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:176
795
  msgid "Bosnia/Hercegovina"
796
  msgstr ""
797
 
798
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:177
799
  msgid "Botswana"
800
  msgstr ""
801
 
802
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:178
803
  msgid "Bouvet Island"
804
  msgstr ""
805
 
806
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:179
807
  msgid "Brazil"
808
  msgstr ""
809
 
810
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:180
811
  msgid "British Indian Ocean Territory"
812
  msgstr ""
813
 
814
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:181
815
  msgid "Brunei Darussalam"
816
  msgstr ""
817
 
818
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:182
819
  msgid "Bulgaria"
820
  msgstr ""
821
 
822
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:183
823
  msgid "Burkina Faso"
824
  msgstr ""
825
 
826
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:184
827
  msgid "Burundi"
828
  msgstr ""
829
 
830
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:185
831
  msgid "Cambodia"
832
  msgstr ""
833
 
834
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:186
835
  msgid "Cameroon"
836
  msgstr ""
837
 
838
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:187
839
  msgid "Canada"
840
  msgstr ""
841
 
842
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:188
843
  msgid "Cape Verde"
844
  msgstr ""
845
 
846
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:189
847
  msgid "Cayman Is"
848
  msgstr ""
849
 
850
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:190
851
  msgid "Central African Republic"
852
  msgstr ""
853
 
854
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:191
855
  msgid "Chad"
856
  msgstr ""
857
 
858
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:192
859
  msgid "Chile"
860
  msgstr ""
861
 
862
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:193
863
  msgid "China, People's Republic of"
864
  msgstr ""
865
 
866
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:194
867
  msgid "Christmas Island"
868
  msgstr ""
869
 
870
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:195
871
  msgid "Cocos Islands"
872
  msgstr ""
873
 
874
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:196
875
  msgid "Colombia"
876
  msgstr ""
877
 
878
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:197
879
  msgid "Comoros"
880
  msgstr ""
881
 
882
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:198
883
  msgid "Congo"
884
  msgstr ""
885
 
886
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:199
887
  msgid "Congo, Democratic Republic"
888
  msgstr ""
889
 
890
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:200
891
  msgid "Cook Islands"
892
  msgstr ""
893
 
894
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:201
895
  msgid "Costa Rica"
896
  msgstr ""
897
 
898
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:202
899
  msgid "Cote d'Ivoire"
900
  msgstr ""
901
 
902
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:203
903
  msgid "Croatia"
904
  msgstr ""
905
 
906
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:204
907
  msgid "Cuba"
908
  msgstr ""
909
 
910
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:205
911
  msgid "Cyprus"
912
  msgstr ""
913
 
914
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:206
915
  msgid "Czech Republic"
916
  msgstr ""
917
 
918
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:207
919
  msgid "Denmark"
920
  msgstr ""
921
 
922
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:208
923
  msgid "Djibouti"
924
  msgstr ""
925
 
926
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:209
927
  msgid "Dominica"
928
  msgstr ""
929
 
930
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:210
931
  msgid "Dominican Republic"
932
  msgstr ""
933
 
934
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:211
935
  msgid "East Timor"
936
  msgstr ""
937
 
938
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:212
939
  msgid "Ecuador"
940
  msgstr ""
941
 
942
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:213
943
  msgid "Egypt"
944
  msgstr ""
945
 
946
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:214
947
  msgid "El Salvador"
948
  msgstr ""
949
 
950
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:215
951
  msgid "Equatorial Guinea"
952
  msgstr ""
953
 
954
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:216
955
  msgid "Eritrea"
956
  msgstr ""
957
 
958
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:217
959
  msgid "Estonia"
960
  msgstr ""
961
 
962
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:218
963
  msgid "Ethiopia"
964
  msgstr ""
965
 
966
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:219
967
  msgid "Falkland Islands"
968
  msgstr ""
969
 
970
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:220
971
  msgid "Faroe Islands"
972
  msgstr ""
973
 
974
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:221
975
  msgid "Fiji"
976
  msgstr ""
977
 
978
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:222
979
  msgid "Finland"
980
  msgstr ""
981
 
982
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:223
983
  msgid "France"
984
  msgstr ""
985
 
986
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:224
987
  msgid "France, Metropolitan"
988
  msgstr ""
989
 
990
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:225
991
  msgid "French Guiana"
992
  msgstr ""
993
 
994
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:226
995
  msgid "French Polynesia"
996
  msgstr ""
997
 
998
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:227
999
  msgid "French South Territories"
1000
  msgstr ""
1001
 
1002
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:228
1003
  msgid "Gabon"
1004
  msgstr ""
1005
 
1006
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:229
1007
  msgid "Gambia"
1008
  msgstr ""
1009
 
1010
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:230
1011
  msgid "Georgia"
1012
  msgstr ""
1013
 
1014
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:231
1015
  msgid "Germany"
1016
  msgstr ""
1017
 
1018
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:232
1019
  msgid "Ghana"
1020
  msgstr ""
1021
 
1022
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:233
1023
  msgid "Gibraltar"
1024
  msgstr ""
1025
 
1026
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:234
1027
  msgid "Greece"
1028
  msgstr ""
1029
 
1030
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:235
1031
  msgid "Greenland"
1032
  msgstr ""
1033
 
1034
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:236
1035
  msgid "Grenada"
1036
  msgstr ""
1037
 
1038
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:237
1039
  msgid "Guadeloupe"
1040
  msgstr ""
1041
 
1042
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:238
1043
  msgid "Guam"
1044
  msgstr ""
1045
 
1046
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:239
1047
  msgid "Guatemala"
1048
  msgstr ""
1049
 
1050
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:240
1051
  msgid "Guinea"
1052
  msgstr ""
1053
 
1054
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:241
1055
  msgid "Guinea-Bissau"
1056
  msgstr ""
1057
 
1058
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:242
1059
  msgid "Guyana"
1060
  msgstr ""
1061
 
1062
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:243
1063
  msgid "Haiti"
1064
  msgstr ""
1065
 
1066
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:244
1067
  msgid "Heard Island And Mcdonald Island"
1068
  msgstr ""
1069
 
1070
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:245
1071
  msgid "Honduras"
1072
  msgstr ""
1073
 
1074
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:246
1075
  msgid "Hong Kong"
1076
  msgstr ""
1077
 
1078
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:247
1079
  msgid "Hungary"
1080
  msgstr ""
1081
 
1082
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:248
1083
  msgid "Iceland"
1084
  msgstr ""
1085
 
1086
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:249
1087
  msgid "India"
1088
  msgstr ""
1089
 
1090
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:250
1091
  msgid "Indonesia"
1092
  msgstr ""
1093
 
1094
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:251
1095
  msgid "Iran"
1096
  msgstr ""
1097
 
1098
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:252
1099
  msgid "Iraq"
1100
  msgstr ""
1101
 
1102
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:253
1103
  msgid "Ireland"
1104
  msgstr ""
1105
 
1106
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:254
1107
  msgid "Israel"
1108
  msgstr ""
1109
 
1110
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:255
1111
  msgid "Italy"
1112
  msgstr ""
1113
 
1114
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:256
1115
  msgid "Jamaica"
1116
  msgstr ""
1117
 
1118
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:257
1119
  msgid "Japan"
1120
  msgstr ""
1121
 
1122
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:258
1123
  msgid "Johnston Island"
1124
  msgstr ""
1125
 
1126
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:259
1127
  msgid "Jordan"
1128
  msgstr ""
1129
 
1130
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:260
1131
  msgid "Kazakhstan"
1132
  msgstr ""
1133
 
1134
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:261
1135
  msgid "Kenya"
1136
  msgstr ""
1137
 
1138
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:262
1139
  msgid "Kiribati"
1140
  msgstr ""
1141
 
1142
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:263
1143
  msgid "Korea, Democratic Peoples Republic"
1144
  msgstr ""
1145
 
1146
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:264
1147
  msgid "Korea, Republic of"
1148
  msgstr ""
1149
 
1150
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:265
1151
  msgid "Kuwait"
1152
  msgstr ""
1153
 
1154
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:266
1155
  msgid "Kyrgyzstan"
1156
  msgstr ""
1157
 
1158
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:267
1159
  msgid "Lao People's Democratic Republic"
1160
  msgstr ""
1161
 
1162
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:268
1163
  msgid "Latvia"
1164
  msgstr ""
1165
 
1166
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:269
1167
  msgid "Lebanon"
1168
  msgstr ""
1169
 
1170
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:270
1171
  msgid "Lesotho"
1172
  msgstr ""
1173
 
1174
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:271
1175
  msgid "Liberia"
1176
  msgstr ""
1177
 
1178
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:272
1179
  msgid "Libyan Arab Jamahiriya"
1180
  msgstr ""
1181
 
1182
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:273
1183
  msgid "Liechtenstein"
1184
  msgstr ""
1185
 
1186
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:274
1187
  msgid "Lithuania"
1188
  msgstr ""
1189
 
1190
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:275
1191
  msgid "Luxembourg"
1192
  msgstr ""
1193
 
1194
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:276
1195
  msgid "Macau"
1196
  msgstr ""
1197
 
1198
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:277
1199
  msgid "Macedonia"
1200
  msgstr ""
1201
 
1202
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:278
1203
  msgid "Madagascar"
1204
  msgstr ""
1205
 
1206
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:279
1207
  msgid "Malawi"
1208
  msgstr ""
1209
 
1210
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:280
1211
  msgid "Malaysia"
1212
  msgstr ""
1213
 
1214
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:281
1215
  msgid "Maldives"
1216
  msgstr ""
1217
 
1218
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:282
1219
  msgid "Mali"
1220
  msgstr ""
1221
 
1222
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:283
1223
  msgid "Malta"
1224
  msgstr ""
1225
 
1226
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:284
1227
  msgid "Marshall Islands"
1228
  msgstr ""
1229
 
1230
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:285
1231
  msgid "Martinique"
1232
  msgstr ""
1233
 
1234
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:286
1235
  msgid "Mauritania"
1236
  msgstr ""
1237
 
1238
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:287
1239
  msgid "Mauritius"
1240
  msgstr ""
1241
 
1242
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:288
1243
  msgid "Mayotte"
1244
  msgstr ""
1245
 
1246
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:289
1247
  msgid "Mexico"
1248
  msgstr ""
1249
 
1250
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:290
1251
  msgid "Micronesia"
1252
  msgstr ""
1253
 
1254
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:291
1255
  msgid "Moldavia"
1256
  msgstr ""
1257
 
1258
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:292
1259
  msgid "Monaco"
1260
  msgstr ""
1261
 
1262
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:293
1263
  msgid "Mongolia"
1264
  msgstr ""
1265
 
1266
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:294
1267
  msgid "Montserrat"
1268
  msgstr ""
1269
 
1270
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:295
1271
  msgid "Morocco"
1272
  msgstr ""
1273
 
1274
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:296
1275
  msgid "Mozambique"
1276
  msgstr ""
1277
 
1278
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:297
1279
  msgid "Union Of Myanmar"
1280
  msgstr ""
1281
 
1282
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:298
1283
  msgid "Namibia"
1284
  msgstr ""
1285
 
1286
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:299
1287
  msgid "Nauru Island"
1288
  msgstr ""
1289
 
1290
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:300
1291
  msgid "Nepal"
1292
  msgstr ""
1293
 
1294
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:301
1295
  msgid "Netherlands"
1296
  msgstr ""
1297
 
1298
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:302
1299
  msgid "Netherlands Antilles"
1300
  msgstr ""
1301
 
1302
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:303
1303
  msgid "New Caledonia"
1304
  msgstr ""
1305
 
1306
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:304
1307
  msgid "New Zealand"
1308
  msgstr ""
1309
 
1310
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:305
1311
  msgid "Nicaragua"
1312
  msgstr ""
1313
 
1314
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:306
1315
  msgid "Niger"
1316
  msgstr ""
1317
 
1318
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:307
1319
  msgid "Nigeria"
1320
  msgstr ""
1321
 
1322
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:308
1323
  msgid "Niue"
1324
  msgstr ""
1325
 
1326
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:309
1327
  msgid "Norfolk Island"
1328
  msgstr ""
1329
 
1330
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:310
1331
  msgid "Mariana Islands, Northern"
1332
  msgstr ""
1333
 
1334
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:311
1335
  msgid "Norway"
1336
  msgstr ""
1337
 
1338
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:312
1339
  msgid "Oman"
1340
  msgstr ""
1341
 
1342
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:313
1343
  msgid "Pakistan"
1344
  msgstr ""
1345
 
1346
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:314
1347
  msgid "Palau Islands"
1348
  msgstr ""
1349
 
1350
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:315
1351
  msgid "Palestine"
1352
  msgstr ""
1353
 
1354
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:316
1355
  msgid "Panama"
1356
  msgstr ""
1357
 
1358
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:317
1359
  msgid "Papua New Guinea"
1360
  msgstr ""
1361
 
1362
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:318
1363
  msgid "Paraguay"
1364
  msgstr ""
1365
 
1366
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:319
1367
  msgid "Peru"
1368
  msgstr ""
1369
 
1370
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:320
1371
  msgid "Philippines"
1372
  msgstr ""
1373
 
1374
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:321
1375
  msgid "Pitcairn"
1376
  msgstr ""
1377
 
1378
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:322
1379
  msgid "Poland"
1380
  msgstr ""
1381
 
1382
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:323
1383
  msgid "Portugal"
1384
  msgstr ""
1385
 
1386
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:324
1387
  msgid "Puerto Rico"
1388
  msgstr ""
1389
 
1390
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:325
1391
  msgid "Qatar"
1392
  msgstr ""
1393
 
1394
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:326
1395
  msgid "Reunion Island"
1396
  msgstr ""
1397
 
1398
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:327
1399
  msgid "Romania"
1400
  msgstr ""
1401
 
1402
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:328
1403
  msgid "Russian Federation"
1404
  msgstr ""
1405
 
1406
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:329
1407
  msgid "Rwanda"
1408
  msgstr ""
1409
 
1410
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:330
1411
  msgid "Samoa"
1412
  msgstr ""
1413
 
1414
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:331
1415
  msgid "St Helena"
1416
  msgstr ""
1417
 
1418
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:332
1419
  msgid "St Kitts & Nevis"
1420
  msgstr ""
1421
 
1422
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:333
1423
  msgid "St Lucia"
1424
  msgstr ""
1425
 
1426
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:334
1427
  msgid "St Pierre & Miquelon"
1428
  msgstr ""
1429
 
1430
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:335
1431
  msgid "St Vincent"
1432
  msgstr ""
1433
 
1434
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:336
1435
  msgid "San Marino"
1436
  msgstr ""
1437
 
1438
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:337
1439
  msgid "Sao Tome & Principe"
1440
  msgstr ""
1441
 
1442
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:338
1443
  msgid "Saudi Arabia"
1444
  msgstr ""
1445
 
1446
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:339
1447
  msgid "Senegal"
1448
  msgstr ""
1449
 
1450
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:340
1451
  msgid "Seychelles"
1452
  msgstr ""
1453
 
1454
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:341
1455
  msgid "Sierra Leone"
1456
  msgstr ""
1457
 
1458
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:342
1459
  msgid "Singapore"
1460
  msgstr ""
1461
 
1462
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:343
1463
  msgid "Slovakia"
1464
  msgstr ""
1465
 
1466
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:344
1467
  msgid "Slovenia"
1468
  msgstr ""
1469
 
1470
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:345
1471
  msgid "Solomon Islands"
1472
  msgstr ""
1473
 
1474
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:346
1475
  msgid "Somalia"
1476
  msgstr ""
1477
 
1478
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:347
1479
  msgid "South Africa"
1480
  msgstr ""
1481
 
1482
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:348
1483
  msgid "South Georgia and South Sandwich"
1484
  msgstr ""
1485
 
1486
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:349
1487
  msgid "Spain"
1488
  msgstr ""
1489
 
1490
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:350
1491
  msgid "Sri Lanka"
1492
  msgstr ""
1493
 
1494
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:351
1495
  msgid "Stateless Persons"
1496
  msgstr ""
1497
 
1498
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:352
1499
  msgid "Sudan"
1500
  msgstr ""
1501
 
1502
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:353
1503
  msgid "Suriname"
1504
  msgstr ""
1505
 
1506
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:354
1507
  msgid "Svalbard and Jan Mayen"
1508
  msgstr ""
1509
 
1510
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:355
1511
  msgid "Swaziland"
1512
  msgstr ""
1513
 
1514
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:356
1515
  msgid "Sweden"
1516
  msgstr ""
1517
 
1518
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:357
1519
  msgid "Switzerland"
1520
  msgstr ""
1521
 
1522
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:358
1523
  msgid "Syrian Arab Republic"
1524
  msgstr ""
1525
 
1526
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:359
1527
  msgid "Taiwan, Republic of China"
1528
  msgstr ""
1529
 
1530
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:360
1531
  msgid "Tajikistan"
1532
  msgstr ""
1533
 
1534
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:361
1535
  msgid "Tanzania"
1536
  msgstr ""
1537
 
1538
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:362
1539
  msgid "Thailand"
1540
  msgstr ""
1541
 
1542
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:363
1543
  msgid "Timor Leste"
1544
  msgstr ""
1545
 
1546
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:364
1547
  msgid "Togo"
1548
  msgstr ""
1549
 
1550
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:365
1551
  msgid "Tokelau"
1552
  msgstr ""
1553
 
1554
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:366
1555
  msgid "Tonga"
1556
  msgstr ""
1557
 
1558
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:367
1559
  msgid "Trinidad & Tobago"
1560
  msgstr ""
1561
 
1562
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:368
1563
  msgid "Tunisia"
1564
  msgstr ""
1565
 
1566
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:369
1567
  msgid "Turkey"
1568
  msgstr ""
1569
 
1570
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:370
1571
  msgid "Turkmenistan"
1572
  msgstr ""
1573
 
1574
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:371
1575
  msgid "Turks And Caicos Islands"
1576
  msgstr ""
1577
 
1578
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:372
1579
  msgid "Tuvalu"
1580
  msgstr ""
1581
 
1582
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:373
1583
  msgid "Uganda"
1584
  msgstr ""
1585
 
1586
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:374
1587
  msgid "Ukraine"
1588
  msgstr ""
1589
 
1590
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:375
1591
  msgid "United Arab Emirates"
1592
  msgstr ""
1593
 
1594
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:376
1595
  msgid "United Kingdom"
1596
  msgstr ""
1597
 
1598
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:377
1599
  msgid "US Minor Outlying Islands"
1600
  msgstr ""
1601
 
1602
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:378
1603
  msgid "USA"
1604
  msgstr ""
1605
 
1606
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:379
1607
  msgid "Upper Volta"
1608
  msgstr ""
1609
 
1610
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:380
1611
  msgid "Uruguay"
1612
  msgstr ""
1613
 
1614
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:381
1615
  msgid "Uzbekistan"
1616
  msgstr ""
1617
 
1618
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:382
1619
  msgid "Vanuatu"
1620
  msgstr ""
1621
 
1622
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:383
1623
  msgid "Vatican City State"
1624
  msgstr ""
1625
 
1626
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:384
1627
  msgid "Venezuela"
1628
  msgstr ""
1629
 
1630
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:385
1631
  msgid "Vietnam"
1632
  msgstr ""
1633
 
1634
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:386
1635
  msgid "Virgin Islands (British)"
1636
  msgstr ""
1637
 
1638
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:387
1639
  msgid "Virgin Islands (US)"
1640
  msgstr ""
1641
 
1642
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:388
1643
  msgid "Wallis And Futuna Islands"
1644
  msgstr ""
1645
 
1646
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:389
1647
  msgid "Western Sahara"
1648
  msgstr ""
1649
 
1650
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:390
1651
  msgid "Yemen Arab Rep."
1652
  msgstr ""
1653
 
1654
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:391
1655
  msgid "Yemen Democratic"
1656
  msgstr ""
1657
 
1658
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:392
1659
  msgid "Yugoslavia"
1660
  msgstr ""
1661
 
1662
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:393
1663
  msgid "Zaire"
1664
  msgstr ""
1665
 
1666
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:394
1667
  msgid "Zambia"
1668
  msgstr ""
1669
 
1670
+ #: /Users/barrygetty/Work/wordpress/plugins/popover/popoverincludes/includes/functions.php:395
1671
  msgid "Zimbabwe"
1672
  msgstr ""
1673
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WordPress PopUp ===
2
  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.5.1
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
 
@@ -11,6 +11,8 @@ Allows you to display a fancy popup to visitors, a *very* effective way of adver
11
 
12
  One of the most effective ways to advertise your mailing list, special offer or simply to show ads is via javascript ‘pop over’ on your site. And that’s exactly what his easy-to-use and guaranteed-to-work plugin does.
13
 
 
 
14
  Here is just a taste of what it can do:
15
 
16
  - Display fancy pop up(s) (powered as a popover!) to visitors network wide, per site or on specific URLs
@@ -44,6 +46,8 @@ Then, set the display rules, namely: Show the Pop Over if one of the following c
44
 
45
  And you’re good to go!
46
 
 
 
47
  == Installation ==
48
 
49
  WordPress Installation Instructions:
@@ -65,6 +69,8 @@ For blog by blog, leave as is.
65
 
66
  For network wide control - add the line define('PO_GLOBAL', true); to your wp-config.php file.
67
 
 
 
68
  == Screenshots ==
69
 
70
  1. The PopUp in action
@@ -73,9 +79,60 @@ For network wide control - add the line define('PO_GLOBAL', true); to your wp-co
73
 
74
  == Changelog ==
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  = 4.3.2 =
77
  * Major rewrite
78
  * Multiple PopUps can be created
 
 
79
 
80
  = 3.1.4 =
81
  * WP3.3 style updating
1
  === WordPress PopUp ===
2
  Contributors: WPMUDEV
3
+ Tags: Buddypress,buddypress plugin,Geo Tag,Geo Target,GEOTag,Jquery,Light Box,Lightbox,making money,multisite,Pop Over,Pop Over Box,Pop Over Message,Pop Up Message,Pop-up,Pop-up advertising,Pop-up advertising Box,Popover,Popover Box,Popover Message,Popup,Popup Box,Popup Message,Post Type,Post Type Rules,SEO,Show On Click,Show On Exit,WordPress Pop Over,WordPress Pop Up,WordPress Popover,WordPress Popup,wpmu,wpmu plugin,xProfile Fields, Popover WP Roles, Popover Responsive Rules, Popover Specific Country, Popover Specific URL, Popup WP Roles, Popup Responsive Rules, Popup Specific Country, Popup Specific URL, Exit Intent, Exit Popup, Exit Popover, Popover Ads, Popup Ads, Pop Over Ads, Pop Up Ads, Pop-up Ads, xProfile
4
  Requires at least: 3.1
5
+ Tested up to: 3.9.1
6
+ Stable tag: 4.4.5.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
 
11
 
12
  One of the most effective ways to advertise your mailing list, special offer or simply to show ads is via javascript ‘pop over’ on your site. And that’s exactly what his easy-to-use and guaranteed-to-work plugin does.
13
 
14
+ [youtube https://www.youtube.com/watch?v=eqhZebtA-SU]
15
+
16
  Here is just a taste of what it can do:
17
 
18
  - Display fancy pop up(s) (powered as a popover!) to visitors network wide, per site or on specific URLs
46
 
47
  And you’re good to go!
48
 
49
+ * <a href='http://premium.wpmudev.org/project/the-pop-over-plugin/'>Download the pro version &raquo;</a>
50
+
51
  == Installation ==
52
 
53
  WordPress Installation Instructions:
69
 
70
  For network wide control - add the line define('PO_GLOBAL', true); to your wp-config.php file.
71
 
72
+ * You can find <a href='http://premium.wpmudev.org/manuals/installing-regular-plugins-on-wpmu/'>in-depth setup and usage instructions with screenshots here &raquo;</a>
73
+
74
  == Screenshots ==
75
 
76
  1. The PopUp in action
79
 
80
  == Changelog ==
81
 
82
+ = 4.4.5.4 =
83
+
84
+ * Performance improvements
85
+ * Fixed issue with dynamic JavaScript loading
86
+ * Added PO_PLUGIN_DIR in config for changing plugin directory name
87
+
88
+ = 4.4.5.2 =
89
+
90
+ * Added missing translatable strings
91
+ * Updated language file
92
+
93
+ = 4.4.5.1 =
94
+
95
+ * added collation to tables creation code
96
+ * updated require calls to include directory path
97
+ * moved custom loading out of experimental status
98
+ * set default loading method to custom loading
99
+
100
+ = 4.4.5 =
101
+
102
+ * Added different custom loading method that should be cache resistant and remove issues with other ajax loading method.
103
+ * Made On URL rule more specific so that it doesn't match child pages when the main page is specified
104
+
105
+ = 4.4.4 =
106
+
107
+ * Added option to switch from JS loading to standard loading of pop ups.
108
+ * Added ability to use regular expressions in the referrers and on url conditions.
109
+ * Prepared code to make it easy to upgrade interface for future releases.
110
+
111
+ = 4.4.3 =
112
+
113
+ * Updated for WP 3.5
114
+ * Added initial attempt to distinguish referrers from Google search and referrers from Google custom site search.
115
+
116
+ = 4.4.2 =
117
+
118
+ * Removed unneeded css and js files
119
+ * Updated language file
120
+
121
+ = 4.4.1 =
122
+
123
+ * Moved popover loading js to be created by a php file due to needing extra processing.
124
+ * Fixed issue with directory based sites loading popover script from main site.
125
+ * Fixed issue of popover loading on login and register pages.
126
+
127
+ = 4.4 =
128
+
129
+ * Updated Popover to load via ajax call rather than page creation for cache plugin compatibility
130
+
131
  = 4.3.2 =
132
  * Major rewrite
133
  * Multiple PopUps can be created
134
+ * Fixed issue of network activation not creating tables until admin area visited
135
+ * Updated code to remove all notifications, warnings and depreciated function calls ready for WP 3.4
136
 
137
  = 3.1.4 =
138
  * WP3.3 style updating