Subscribe2 - Version 10.16

Version Description

Download this release

Release Info

Developer tanaylakhani
Plugin Icon 128x128 Subscribe2
Version 10.16
Comparing to
See all releases

Code changes from version 10.15 to 10.16

ChangeLog.txt CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  = 10.15 =
2
 
3
  * Bug Fix - disable popup
1
+ = 10.16 =
2
+
3
+ * XSS security fix
4
+ * ReadyGraph Premium Features
5
+ * UI Tweaks
6
+
7
  = 10.15 =
8
 
9
  * Bug Fix - disable popup
ReadMe.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_butt
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 3.9.1
7
- Stable tag: 10.15
8
  License: GPL3
9
 
10
  Sends a list of subscribers an email notification when new posts are published to your blog. Automate user growth through ReadyGraph integration.
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 3.9.1
7
+ Stable tag: 10.16
8
  License: GPL3
9
 
10
  Sends a list of subscribers an email notification when new posts are published to your blog. Automate user growth through ReadyGraph integration.
classes/class-s2-admin.php CHANGED
@@ -32,7 +32,12 @@ class s2_admin extends s2class {
32
 
33
  $s2mail = add_submenu_page('s2', __('Send Email', 'subscribe2'), __('Send Email', 'subscribe2'), apply_filters('s2_capability', "publish_posts", 'send'), 's2_posts', array(&$this, 'write_menu'));
34
  add_action('load-' . $s2mail, array(&$this, 'mail_help'));
35
-
 
 
 
 
 
36
  $s2nonce = wp_hash('subscribe2');
37
  } // end admin_menu()
38
 
@@ -207,8 +212,8 @@ class s2_admin extends s2class {
207
  case 'signup-popup':
208
  include(S2PATH . 'extension/readygraph/signup-popup.php');
209
  break;
210
- case 'invite-screen':
211
- include(S2PATH . 'extension/readygraph/invite-screen.php');
212
  break;
213
  case 'social-feed':
214
  include(S2PATH . 'extension/readygraph/social-feed.php');
@@ -239,7 +244,12 @@ class s2_admin extends s2class {
239
  break;
240
  }
241
  } // end readygraph_menu()
242
-
 
 
 
 
 
243
  /**
244
  Our settings page
245
  */
32
 
33
  $s2mail = add_submenu_page('s2', __('Send Email', 'subscribe2'), __('Send Email', 'subscribe2'), apply_filters('s2_capability', "publish_posts", 'send'), 's2_posts', array(&$this, 'write_menu'));
34
  add_action('load-' . $s2mail, array(&$this, 'mail_help'));
35
+ if( file_exists(dirname(plugin_dir_path( __FILE__ ) ).'/readygraph-extension.php')) {
36
+ global $menu_slug;
37
+ $s2readygraph = add_submenu_page('s2', __('Go Premium', 'subscribe2'), __('Go Premium', 'subscribe2'), apply_filters('s2_capability', "manage_options", 'readygraph'), 'readygraph-go-premium', array(&$this, 'readygraph_premium'));
38
+ }
39
+ else {
40
+ }
41
  $s2nonce = wp_hash('subscribe2');
42
  } // end admin_menu()
43
 
212
  case 'signup-popup':
213
  include(S2PATH . 'extension/readygraph/signup-popup.php');
214
  break;
215
+ case 'go-premium':
216
+ include(S2PATH . 'extension/readygraph/go-premium.php');
217
  break;
218
  case 'social-feed':
219
  include(S2PATH . 'extension/readygraph/social-feed.php');
244
  break;
245
  }
246
  } // end readygraph_menu()
247
+ /**
248
+ Our Readygraph Premium Page
249
+ */
250
+ function readygraph_premium() {
251
+ include(S2PATH . 'extension/readygraph/go-premium.php');
252
+ } // end settings_menu()
253
  /**
254
  Our settings page
255
  */
classes/class-s2-list-table.php CHANGED
@@ -38,7 +38,7 @@ class Subscribe2_List_Table extends WP_List_Table {
38
  } else {
39
  global $mysubscribe2;
40
  if ( '0' === $mysubscribe2->is_public($item['email']) ) {
41
- return sprintf('<span style="color:#FF0000"><abbr title="' . $mysubscribe2->signup_ip($item['email']) . '">%1$s</abbr></span>', $item['email']);
42
  } else {
43
  return sprintf('<abbr title="' . $mysubscribe2->signup_ip($item['email']) . '">%1$s</abbr>', $item['email']);
44
  }
38
  } else {
39
  global $mysubscribe2;
40
  if ( '0' === $mysubscribe2->is_public($item['email']) ) {
41
+ return sprintf('<span style="color:#FF0000"><abbr title="' . htmlentities($mysubscribe2->signup_ip($item['email'])) . '">%1$s</abbr></span>', $item['email']);
42
  } else {
43
  return sprintf('<abbr title="' . $mysubscribe2->signup_ip($item['email']) . '">%1$s</abbr>', $item['email']);
44
  }
extension/readygraph/admin.php CHANGED
@@ -29,6 +29,7 @@ s2_rrmdir($dir);
29
  if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
30
  if(isset($_GET["tutorial"]) && $_GET["tutorial"] == "true"){update_option('readygraph_tutorial',"true");}
31
  else{update_option('readygraph_tutorial',"false");}
 
32
  if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "bottom-right"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'false');}
33
  if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "center"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'true');}
34
  if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "disabled"){update_option('readygraph_enable_notification', 'false');update_option('readygraph_enable_popup', 'false');}
@@ -49,6 +50,7 @@ s2_rrmdir($dir);
49
  if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', 'true');
50
  if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', 'false');
51
  if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', 'default-template');
 
52
  update_option('readygraph_tutorial',"true");
53
  }
54
  else {
@@ -115,7 +117,7 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
115
  </div>
116
  <style>a.help-tooltip {outline:none; }a.help-tooltip strong {line-height:30px;}a.help-tooltip:hover {text-decoration:none;} a.help-tooltip span { z-index:10;display:none; padding:14px 20px; margin-top:40px; margin-left:-150px; width:300px; line-height:16px;}a.help-tooltip:hover span{ display:inline; position:absolute; border:2px solid #FFF; background:#fff; text-align: justify; z-index:1000000000;}.callout {z-index:1000000000;position:absolute;border:0;top:-14px;left:120px;} /*CSS3 extras*/a.help-tooltip span{ border-radius:2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; -moz-box-shadow: 0px 0px 8px 4px #666; -webkit-box-shadow: 0px 0px 8px 4px #666; box-shadow: 0px 0px 8px 4px #666;}</style>
117
  <div class="authenticated" style="display: none;">
118
- <div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
119
  <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
120
  <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
121
  <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
@@ -138,41 +140,46 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
138
  <div style="clear: both;"></div>
139
  </div>
140
  <!-- write menu code-->
141
- <div class="readygraph-menu">
142
- <div class="menu-tabs"><h4>Grow Users</h4>
143
- <ul>
144
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
145
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
146
- <li><a href="#"></a></li>
147
- </ul>
148
- </div>
149
- <div class="menu-tabs"><h4>Email Users</h4>
150
- <ul>
151
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
152
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
153
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
154
- </ul>
155
- </div>
156
- <div class="menu-tabs"><h4>Engage Users</h4>
157
- <ul>
158
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
159
- <li><a href="#">Social Followers</a></li>
160
- <li><a href="#">Feedback Survey</a></li>
161
- </ul>
162
- </div>
163
- <div class="menu-tabs"><h4>Basic Settings</h4>
164
- <ul>
165
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
166
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
167
-
168
- </ul>
169
- </div>
170
- <div class="menu-tabs" style="float:right"><h4>&nbsp;</h4>
 
 
171
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
 
 
172
  <p>
173
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
174
-
175
- </ul>
 
176
  </div>
177
  </div>
178
  <?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?>
@@ -188,9 +195,14 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
188
  </div></div>
189
  </div>
190
  <?php } else { ?>
191
- <div class="tutorial-false" style="margin: 2% auto; width: 80%">
 
 
 
 
192
  <h3 style="font-weight: normal; text-align: center;">Settings - Make adjustments to grow and engage your userbase</h3>
193
- <div style="width: 100%; display: block;min-height: 200px;">
 
194
  <div style="width: 45%; margin: 0 auto; float: left;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/11.png" class="rg-big-icon"/>Email</h4>
195
  <button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('http://readygraph.com/application/customize/settings/advance/');return false;" style="margin: 15px" formtarget="_blank">Automated Email Settings</button>
196
  <button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('http://readygraph.com/application/insights/');return false;" style="margin: 15px"formtarget="_blank">Mass Email Users</button>
@@ -205,7 +217,7 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
205
 
206
  </div>
207
  </div>
208
- <div style="width: 100%; display: block;min-height: 200px;">
209
  <div style="width: 45%; margin: 0 auto; float: left;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/7.png" class="rg-big-icon"/>Signup Overlay</h4>
210
  <p>Signup Popup Activated?
211
  <select class="signup-popup" name="signup-popup" class="form-control" onchange="return popup_position(this)">
@@ -242,6 +254,25 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
242
 
243
  </div>
244
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  </div>
246
  <?php } ?>
247
  </div>
29
  if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
30
  if(isset($_GET["tutorial"]) && $_GET["tutorial"] == "true"){update_option('readygraph_tutorial',"true");}
31
  else{update_option('readygraph_tutorial',"false");}
32
+ if(isset($_GET["readygraph_upgrade_notice"]) && $_GET["readygraph_upgrade_notice"] == "dismiss") {update_option('readygraph_upgrade_notice', 'false');}
33
  if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "bottom-right"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'false');}
34
  if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "center"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'true');}
35
  if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "disabled"){update_option('readygraph_enable_notification', 'false');update_option('readygraph_enable_popup', 'false');}
50
  if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', 'true');
51
  if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', 'false');
52
  if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', 'default-template');
53
+ update_option('readygraph_upgrade_notice', 'true');
54
  update_option('readygraph_tutorial',"true");
55
  }
56
  else {
117
  </div>
118
  <style>a.help-tooltip {outline:none; }a.help-tooltip strong {line-height:30px;}a.help-tooltip:hover {text-decoration:none;} a.help-tooltip span { z-index:10;display:none; padding:14px 20px; margin-top:40px; margin-left:-150px; width:300px; line-height:16px;}a.help-tooltip:hover span{ display:inline; position:absolute; border:2px solid #FFF; background:#fff; text-align: justify; z-index:1000000000;}.callout {z-index:1000000000;position:absolute;border:0;top:-14px;left:120px;} /*CSS3 extras*/a.help-tooltip span{ border-radius:2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; -moz-box-shadow: 0px 0px 8px 4px #666; -webkit-box-shadow: 0px 0px 8px 4px #666; box-shadow: 0px 0px 8px 4px #666;}</style>
119
  <div class="authenticated" style="display: none;">
120
+ <div style="background-color: #2691CB; min-width: 90%; height: 50px;margin-right: 1%;">
121
  <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
122
  <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
123
  <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
140
  <div style="clear: both;"></div>
141
  </div>
142
  <!-- write menu code-->
143
+
144
+ <div class="readygraph-nav-menu">
145
+ <ul><li>Grow Users
146
+ <ul>
147
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
148
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
149
+ <li><a href="#"></a></li>
150
+ </ul>
151
+ </li>
152
+ <li>Email Users
153
+ <ul>
154
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
155
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
156
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
157
+ </ul>
158
+ </li>
159
+ <li>
160
+ Engage Users
161
+ <ul>
162
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
163
+ <li><a href="#">Social Followers</a></li>
164
+ <li><a href="#">Feedback Survey</a></li>
165
+ </ul>
166
+ </li>
167
+ <li>Basic Settings
168
+ <ul>
169
+ <li><a href="#">Site Profile</a></li>
170
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
171
+ </ul>
172
+ </li>
173
+ </ul>
174
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
175
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
176
+ </div>
177
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
178
  <p>
179
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
180
+ </div>
181
+ <div class="btn-group" style="">
182
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
183
  </div>
184
  </div>
185
  <?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?>
195
  </div></div>
196
  </div>
197
  <?php } else { ?>
198
+ <?php if(get_option('readygraph_upgrade_notice') && get_option('readygraph_upgrade_notice') == "true") { ?><div class="upgrade-notice"><div class="aa_close"><a href="<?php echo $_SERVER['REQUEST_URI']; ?>&readygraph_upgrade_notice=dismiss"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/dialog_close.png"></a></div>
199
+ <div class="upgrade-notice-text">Want to grow your users even faster? Try <a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', ''); ?>" target="_blank">ReadyGraph Premium</a> for free.</div>
200
+ </div>
201
+ <? } ?>
202
+ <div class="tutorial-false" style="margin: 2% auto; width: 90%">
203
  <h3 style="font-weight: normal; text-align: center;">Settings - Make adjustments to grow and engage your userbase</h3>
204
+ <div style="float: left;width: 75%;">
205
+ <div style="display: block;min-height: 250px;">
206
  <div style="width: 45%; margin: 0 auto; float: left;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/11.png" class="rg-big-icon"/>Email</h4>
207
  <button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('http://readygraph.com/application/customize/settings/advance/');return false;" style="margin: 15px" formtarget="_blank">Automated Email Settings</button>
208
  <button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('http://readygraph.com/application/insights/');return false;" style="margin: 15px"formtarget="_blank">Mass Email Users</button>
217
 
218
  </div>
219
  </div>
220
+ <div style="display: block;min-height: 250px;">
221
  <div style="width: 45%; margin: 0 auto; float: left;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/7.png" class="rg-big-icon"/>Signup Overlay</h4>
222
  <p>Signup Popup Activated?
223
  <select class="signup-popup" name="signup-popup" class="form-control" onchange="return popup_position(this)">
254
 
255
  </div>
256
  </div>
257
+ </div>
258
+ <div style="width: 23%; display: block; min-height: 200px; float: right;">
259
+ <div class="readygraph_upgrade_right_sidebar">
260
+ <div style="background: #0B3E7F; padding: 5px; color: #fff; "><h4>ReadyGraph Premium</h4></div>
261
+ <p class="centered-image">All the tools you need to grow your audience.<br><br><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
262
+ </div>
263
+ <div class="readygraph_upgrade_right_sidebar" style="margin-top: 10px;">
264
+ <p class="centered-image">
265
+ <em><strong>Top 3 benefits you can get!</strong></em><br>
266
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/7.png" width="50px" style="margin:5px" /><br>
267
+ 1. Promotion to 10,000+ new users/month<br>
268
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/11.png" width="50px" style="margin:5px" /><br>
269
+ 2. Unlimited post update emails<br>
270
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_fb.png" width="50px" style="margin:5px" /><br>
271
+ 3. Unlimited Facebook invite referrals<br>
272
+
273
+ </p>
274
+ </div>
275
+ </div>
276
  </div>
277
  <?php } ?>
278
  </div>
extension/readygraph/assets/12.png ADDED
Binary file
extension/readygraph/assets/13.png ADDED
Binary file
extension/readygraph/assets/14.png ADDED
Binary file
extension/readygraph/assets/15.png ADDED
Binary file
extension/readygraph/assets/Thumbs.db DELETED
Binary file
extension/readygraph/assets/css/admin.css CHANGED
@@ -33,39 +33,120 @@
33
  padding: 16px 30px;
34
  text-shadow: none;
35
  }
36
- .readygraph-menu {
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  background-color: #093e7d;
39
- color: #34495E;
40
  margin-right: 1%;
41
- height:150px;
42
  margin-bottom: 1%;
43
- padding-top: 1%;
44
-
45
  }
46
- .menu-tabs h4{
47
  color: #b1c1ca;
48
  }
49
- .menu-tabs a:link,a:visited{
50
- color: #5fb1d8;
51
- text-decoration: none;
 
 
 
 
 
 
 
 
52
  }
53
- .menu-tabs a:hover, a:active {
54
- color: #ffffff;
55
- text-decoration: none;
 
 
 
 
 
 
 
 
 
 
56
  }
57
- .menu-tabs {
58
- color: #5fb1d8;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
60
- .alert p {font-style: normal;}
61
-
62
- .alert label {font-size: 14px;font-weight: bold;}
63
 
64
- .wrap1 {width: 100%; display: block; position: relative;}
65
- .save-changes{margin: 15px;}
66
- .rg-signup-icon {float:left; margin:0 1.5em 1em 0}
67
- .menu-tabs {width: 18%; margin: 0 1%; float: left;text-align: center;}
68
- .rg-small-icon { height: 25px; width: 25px; margin: 5px;vertical-align: middle;}
69
- .rg-big-icon { height: 50px; width: 50px; margin: 15px;vertical-align: middle;}
70
- .rg-h4 { font-weight: normal; margin: 0 auto; }
71
- .save-next a, a:hover, a:active, a:visited {text-decoration: none; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  padding: 16px 30px;
34
  text-shadow: none;
35
  }
36
+
37
+ .alert p {font-style: normal;}
38
+
39
+ .alert label {font-size: 14px;font-weight: bold;}
40
+
41
+ .wrap1 {width: 100%; display: block; position: relative;}
42
+ .save-changes{margin: 15px;}
43
+ .rg-small-icon { height: 25px; width: 25px; margin: 5px;vertical-align: middle;}
44
+ .rg-big-icon { height: 50px; width: 50px; margin: 15px;vertical-align: middle;}
45
+ .rg-h4 { font-weight: normal; margin: 0 auto; }
46
+ .save-next a, a:hover, a:active, a:visited {text-decoration: none; }
47
+ .readygraph-nav-menu {
48
 
49
  background-color: #093e7d;
50
+ color: #b1c1ca;
51
  margin-right: 1%;
52
+ height:55px;
53
  margin-bottom: 1%;
54
+ padding-left: 1%;
 
55
  }
56
+ .readygraph-nav-menu h4{
57
  color: #b1c1ca;
58
  }
59
+
60
+ .readygraph-nav-menu ul {
61
+ text-align: left;
62
+ display: inline;
63
+ margin: 0;
64
+ padding: 15px 4px 17px 0;
65
+ list-style: none;
66
+ /* -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
67
+ -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
68
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);*/
69
+ margin-top: 2px;
70
  }
71
+ .readygraph-nav-menu ul li {
72
+ display: inline-block;
73
+ margin-right: -4px;
74
+ position: relative;
75
+ padding: 15px 30px;
76
+ cursor: pointer;
77
+ -webkit-transition: all 0.2s;
78
+ -moz-transition: all 0.2s;
79
+ -ms-transition: all 0.2s;
80
+ -o-transition: all 0.2s;
81
+ transition: all 0.2s;
82
+ margin-bottom: 0px;
83
+ width: 150px;
84
  }
85
+ .readygraph-nav-menu ul li:hover {
86
+ background: #2691CB;
87
+ color: #fff;
88
+ }
89
+ .readygraph-nav-menu ul li ul {
90
+ padding: 0;
91
+ position: absolute;
92
+ top: 48px;
93
+ left: 0;
94
+ -webkit-box-shadow: none;
95
+ -moz-box-shadow: none;
96
+ box-shadow: none;
97
+ display: none;
98
+ opacity: 0;
99
+ visibility: hidden;
100
+ -webkit-transiton: opacity 0.2s;
101
+ -moz-transition: opacity 0.2s;
102
+ -ms-transition: opacity 0.2s;
103
+ -o-transition: opacity 0.2s;
104
+ -transition: opacity 0.2s;
105
+ background: #2691CB;
106
+ }
107
+ .readygraph-nav-menu ul li ul li {
108
+ display: block;
109
+ margin: 5px;
110
+ width: 140px;
111
+ padding: 10px 0;
112
+ text-align: center;
113
+ }
114
+ .readygraph-nav-menu ul li ul a {
115
+ color: #fff;
116
  }
 
 
 
117
 
118
+ .readygraph-nav-menu ul li ul li:hover{
119
+ background: #fff;
120
+ }
121
+ .readygraph-nav-menu ul li ul li:hover a { color: #2691CB;}
122
+ .readygraph-nav-menu ul li:hover ul {
123
+ display: block;
124
+ opacity: 1;
125
+ visibility: visible;
126
+ }
127
+ .upgrade-notice{
128
+ text-align: center;
129
+ width: 60%;
130
+ margin: 1% auto;
131
+ background: #E1EFD4;
132
+ border: 1px solid #BFDBA7;
133
+ }
134
+ .upgrade-notice-text{
135
+ margin: 2% 5%;
136
+ }
137
+ .aa_close {
138
+ float: right;
139
+ }
140
+ .readygraph_upgrade_right_sidebar{
141
+ border: 1px solid #BAD6DA;
142
+ width: 100%;
143
+ text-align: center;
144
+ }
145
+ .centered-image {
146
+ padding:15px;
147
+ }
148
+ .rg-three-column {
149
+ width: 29%;
150
+ margin: 1% 2% 1%;
151
+ border: 2px solid #2691CB;
152
+ }
extension/readygraph/assets/go-premium.png ADDED
Binary file
extension/readygraph/assets/round-check.png ADDED
Binary file
extension/readygraph/customize-emails.php CHANGED
@@ -125,41 +125,46 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
125
  <div style="clear: both;"></div>
126
  </div>
127
  <!-- write menu code-->
128
- <div class="readygraph-menu">
129
- <div class="menu-tabs"><h4>Grow Users</h4>
130
- <ul>
131
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
132
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
133
- <li><a href="#"></a></li>
134
- </ul>
135
- </div>
136
- <div class="menu-tabs"><h4>Email Users</h4>
137
- <ul>
138
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
139
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
140
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
141
- </ul>
142
- </div>
143
- <div class="menu-tabs"><h4>Engage Users</h4>
144
- <ul>
145
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
146
- <li><a href="#">Social Followers</a></li>
147
- <li><a href="#">Feedback Survey</a></li>
148
- </ul>
149
- </div>
150
- <div class="menu-tabs"><h4>Basic Settings</h4>
151
- <ul>
152
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
153
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
154
-
155
- </ul>
156
- </div>
157
- <div class="menu-tabs" style="float:right"><h4>&nbsp;</h4>
 
 
158
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
 
 
159
  <p>
160
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
161
-
162
- </ul>
 
163
  </div>
164
  </div>
165
  <div class="tutorial-true" style="margin: 5% auto;">
125
  <div style="clear: both;"></div>
126
  </div>
127
  <!-- write menu code-->
128
+
129
+ <div class="readygraph-nav-menu">
130
+ <ul><li>Grow Users
131
+ <ul>
132
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
133
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
134
+ <li><a href="#"></a></li>
135
+ </ul>
136
+ </li>
137
+ <li>Email Users
138
+ <ul>
139
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
140
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
141
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
142
+ </ul>
143
+ </li>
144
+ <li>
145
+ Engage Users
146
+ <ul>
147
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
148
+ <li><a href="#">Social Followers</a></li>
149
+ <li><a href="#">Feedback Survey</a></li>
150
+ </ul>
151
+ </li>
152
+ <li>Basic Settings
153
+ <ul>
154
+ <li><a href="#">Site Profile</a></li>
155
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
156
+ </ul>
157
+ </li>
158
+ </ul>
159
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
160
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
161
+ </div>
162
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
163
  <p>
164
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
165
+ </div>
166
+ <div class="btn-group" style="">
167
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
168
  </div>
169
  </div>
170
  <div class="tutorial-true" style="margin: 5% auto;">
extension/readygraph/deactivate-readygraph.php CHANGED
@@ -158,42 +158,47 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
158
  </div>
159
  <div style="clear: both;"></div>
160
  </div>
161
- <!-- write menu code-->
162
- <div class="readygraph-menu">
163
- <div class="menu-tabs"><h4>Grow Users</h4>
164
- <ul>
165
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
166
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
167
- <li><a href="#"></a></li>
168
- </ul>
169
- </div>
170
- <div class="menu-tabs"><h4>Email Users</h4>
171
- <ul>
172
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
173
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
174
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
175
- </ul>
176
- </div>
177
- <div class="menu-tabs"><h4>Engage Users</h4>
178
- <ul>
179
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
180
- <li><a href="#">Social Followers</a></li>
181
- <li><a href="#">Feedback Survey</a></li>
182
- </ul>
183
- </div>
184
- <div class="menu-tabs"><h4>Basic Settings</h4>
185
- <ul>
186
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
187
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
188
-
189
- </ul>
190
- </div>
191
- <div class="menu-tabs" style="float:right"><h4>&nbsp;</h4>
 
 
192
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
 
 
193
  <p>
194
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
195
-
196
- </ul>
 
197
  </div>
198
  </div>
199
  <div style="margin: 0 5%">
158
  </div>
159
  <div style="clear: both;"></div>
160
  </div>
161
+ <!-- write menu code-->
162
+
163
+ <div class="readygraph-nav-menu">
164
+ <ul><li>Grow Users
165
+ <ul>
166
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
167
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
168
+ <li><a href="#"></a></li>
169
+ </ul>
170
+ </li>
171
+ <li>Email Users
172
+ <ul>
173
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
174
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
175
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
176
+ </ul>
177
+ </li>
178
+ <li>
179
+ Engage Users
180
+ <ul>
181
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
182
+ <li><a href="#">Social Followers</a></li>
183
+ <li><a href="#">Feedback Survey</a></li>
184
+ </ul>
185
+ </li>
186
+ <li>Basic Settings
187
+ <ul>
188
+ <li><a href="#">Site Profile</a></li>
189
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
190
+ </ul>
191
+ </li>
192
+ </ul>
193
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
194
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
195
+ </div>
196
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
197
  <p>
198
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
199
+ </div>
200
+ <div class="btn-group" style="">
201
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
202
  </div>
203
  </div>
204
  <div style="margin: 0 5%">
extension/readygraph/faq.php CHANGED
@@ -118,41 +118,46 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
118
  <div style="clear: both;"></div>
119
  </div>
120
  <!-- write menu code-->
121
- <div class="readygraph-menu">
122
- <div class="menu-tabs"><h4>Grow Users</h4>
123
- <ul>
124
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
125
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
126
- <li><a href="#"></a></li>
127
- </ul>
128
- </div>
129
- <div class="menu-tabs"><h4>Email Users</h4>
130
- <ul>
131
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
132
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
133
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
134
- </ul>
135
- </div>
136
- <div class="menu-tabs"><h4>Engage Users</h4>
137
- <ul>
138
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
139
- <li><a href="#">Social Followers</a></li>
140
- <li><a href="#">Feedback Survey</a></li>
141
- </ul>
142
- </div>
143
- <div class="menu-tabs"><h4>Basic Settings</h4>
144
- <ul>
145
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
146
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
147
-
148
- </ul>
149
- </div>
150
- <div class="menu-tabs" style="float:right"><h4>&nbsp;</h4>
 
 
151
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
 
 
152
  <p>
153
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
154
-
155
- </ul>
 
156
  </div>
157
  </div>
158
  <div class="tutorial-true" style="margin: 5% auto;">
118
  <div style="clear: both;"></div>
119
  </div>
120
  <!-- write menu code-->
121
+
122
+ <div class="readygraph-nav-menu">
123
+ <ul><li>Grow Users
124
+ <ul>
125
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
126
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
127
+ <li><a href="#"></a></li>
128
+ </ul>
129
+ </li>
130
+ <li>Email Users
131
+ <ul>
132
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
133
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
134
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
135
+ </ul>
136
+ </li>
137
+ <li>
138
+ Engage Users
139
+ <ul>
140
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
141
+ <li><a href="#">Social Followers</a></li>
142
+ <li><a href="#">Feedback Survey</a></li>
143
+ </ul>
144
+ </li>
145
+ <li>Basic Settings
146
+ <ul>
147
+ <li><a href="#">Site Profile</a></li>
148
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
149
+ </ul>
150
+ </li>
151
+ </ul>
152
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
153
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
154
+ </div>
155
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
156
  <p>
157
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
158
+ </div>
159
+ <div class="btn-group" style="">
160
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
161
  </div>
162
  </div>
163
  <div class="tutorial-true" style="margin: 5% auto;">
extension/readygraph/go-premium.php ADDED
@@ -0,0 +1,588 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Represents the view for the administration dashboard.
4
+ *
5
+ * This includes the header, options, and other information that should provide
6
+ * The User Interface to the end user.
7
+ *
8
+ * @package ReadyGraph
9
+ * @author dan@readygraph.com
10
+ * @license GPL-2.0+
11
+ * @link http://www.readygraph.com
12
+ * @copyright 2014 Your Name or Company Name
13
+ */
14
+
15
+ function s2_disconnectReadyGraph(){
16
+ $app_id = get_option('readygraph_application_id');
17
+ wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
18
+ s2_delete_rg_options();
19
+ }
20
+ function s2_deleteReadyGraph(){
21
+ $app_id = get_option('readygraph_application_id');
22
+ wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
23
+ s2_delete_rg_options();
24
+ $dir = plugin_dir_path( __FILE__ );
25
+ s2_rrmdir($dir);
26
+ }
27
+
28
+ if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
29
+ if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
30
+ global $main_plugin_title;
31
+ if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
32
+ //redirect to main page
33
+ $current_url = explode("&", $_SERVER['REQUEST_URI']);
34
+ echo '<script>window.location.replace("'.$current_url[0].'");</script>';
35
+ }
36
+ else {
37
+ if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
38
+ if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
39
+ if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
40
+ if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
41
+ if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
42
+ if (isset($_POST["retentionemaileditor"])) update_option('readygraph_invite_email', $_POST["retentionemaileditor"]);
43
+ }
44
+ if (get_option('readygraph_enable_branding', '') == 'false') {
45
+ ?>
46
+ <style>
47
+ /* FOR INLINE WIDGET */
48
+ .rgw-text {
49
+ display: none !important;
50
+ }
51
+ </style>
52
+ <?php } ?>
53
+
54
+ <link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
55
+ <script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
56
+ <form method="post" id="myForm">
57
+ <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
58
+ <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
59
+ <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
60
+ <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
61
+ <input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
62
+ <input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
63
+ <input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
64
+ <input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
65
+ <input type="hidden" name="readygraph_auto_select_all" value="<?php echo get_option('readygraph_auto_select_all', 'true') ?>">
66
+ <input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
67
+ <input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
68
+ <input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
69
+ <input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
70
+
71
+
72
+ <div class="authenticate" style="display: none;">
73
+ <div class="wrap1" style="min-height: 600px;">
74
+
75
+ <div id="icon-plugins" class="icon32"></div>
76
+ <h2>We've enhanced <?php echo $main_plugin_title ?> with ReadyGraph's User Growth Engine</h2>
77
+
78
+ <p style="display:none;color:red;" id="error"></p>
79
+ <div class="register-left">
80
+ <div class="alert" style="margin: 0px auto; padding: 15px; text-align: center;">
81
+ <h3>Activate ReadyGraph to get more traffic to your site</h3>
82
+ <!-- <h3 style="margin-top: 0px; font-weight: 300;"><?php //echo $main_plugin_title ?>, Now with ReadyGraph</h3> -->
83
+ <p style="padding: 50px 0px 30px 0px;"><a class="btn btn-primary connect" href="javascript:void(0);" style="font-size: 15px; line-height: 40px; padding: 0 30px;">Connect ReadyGraph</a></p>
84
+ <!--<p style="padding: 0px 0px;"><a class="btn btn-default skip" href="javascript:void(0);" style="font-size: 10px; line-height: 20px; padding: 0 30px;">Skip ReadyGraph</a></p>-->
85
+ <p>Readygraph adds more ways to connect to your users. </p>
86
+ <p style="text-align: left; padding: 0 20px;">
87
+ - Get more traffic<br>
88
+ - Send automatic email digests of all your site posts<br>
89
+ - Get better deliverablility<br>
90
+ - Track performace and user activity
91
+ </p>
92
+ </div>
93
+
94
+ </div>
95
+
96
+ <div class="register-right">
97
+ <div class="form-wrap alert" style="font-size:12px;">
98
+ <p><h3>ReadyGraph grows your site</h3></p>
99
+ <p>ReadyGraph delivers audience growth and motivates users to come back.</p><br /><p><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_fb.png"></span><b>Optimized Signup Form –</b> ReadyGraph’s signup form has one click signup and integration with Facebook so you can get quick and easy signups from your users.<br /><br /><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_heart.png"></span>
100
+ <b>Viral Friend Invites –</b>Loyal site visitors who love your site can easily invite all their friends. Readygraph encourages your visitors' friends to come and signup for your site too.<br /><br /><b><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_mail.png"></span>Automated Re-engagement Emails –</b> ReadyGraph’s automated emails keep visitors coming back. Send a daily or weekly digest of all your new posts and keep them informed about site activity, events, etc.<br /><br /><b><span class="rg-signup-icon"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_chart.png"></span>Analytics -</b> Track new subscribers, invites, traffic, and other key metrics that quantify growth and user engagement. ReadyGraph safely stores user data on the cloud so you can access from anywhere.<br /><br />
101
+ If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a></p>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ <div class="authenticating" style="display: none;">
107
+ <div style="color: #ffffff; width: 350px; margin: 100px auto 0px; padding: 15px; border: solid 1px #2a388f; text-align: center; background-color: #2961cb; -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px;">
108
+ <h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
109
+ <h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
110
+ <p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
111
+ <p style="text-align: left; padding: 0 20px;">
112
+ - Grow your subscribers faster<br>
113
+ - Engage users with automated email updates<br>
114
+ - Enhanced email deliverablility<br>
115
+ - Track performace with user-activity analytics
116
+ </p>
117
+ </div>
118
+ </div>
119
+ <style>a.help-tooltip {outline:none; }a.help-tooltip strong {line-height:30px;}a.help-tooltip:hover {text-decoration:none;} a.help-tooltip span { z-index:10;display:none; padding:14px 20px; margin-top:40px; margin-left:-150px; width:300px; line-height:16px;}a.help-tooltip:hover span{ display:inline; position:absolute; border:2px solid #FFF; background:#fff; text-align: justify; z-index:1000000000;}.callout {z-index:1000000000;position:absolute;border:0;top:-14px;left:120px;} /*CSS3 extras*/a.help-tooltip span{ border-radius:2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; -moz-box-shadow: 0px 0px 8px 4px #666; -webkit-box-shadow: 0px 0px 8px 4px #666; box-shadow: 0px 0px 8px 4px #666;}</style>
120
+ <div class="authenticated" style="display: none;">
121
+ <div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
122
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
123
+ <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
124
+ <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
125
+ <span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
126
+ </button>
127
+ <ul class="dropdown-menu">
128
+ <li><a class="change-account" href="#">Change Account</a></li>
129
+ <li><a class="disconnect" href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("changeaccount");?>">Disconnect</a></li>
130
+ <li><a class="delete" href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("deleteaccount");?>">Delete ReadyGraph</a></li>
131
+ </ul>
132
+ </div>
133
+ <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
134
+ <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
135
+ <span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
136
+ </button>
137
+ <ul class="dropdown-menu">
138
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
139
+ </ul>
140
+ </div>
141
+ <div style="clear: both;"></div>
142
+ </div>
143
+ <!-- write menu code-->
144
+
145
+ <div class="readygraph-nav-menu">
146
+ <ul><li>Grow Users
147
+ <ul>
148
+ <li><a href="<?php $current_url = explode("?", $_SERVER['REQUEST_URI']); echo $current_url[0];?>?page=readygraph-app&ac=signup-popup">Signup Popup</a></li>
149
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
150
+ <li><a href="#"></a></li>
151
+ </ul>
152
+ </li>
153
+ <li>Email Users
154
+ <ul>
155
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
156
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
157
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
158
+ </ul>
159
+ </li>
160
+ <li>
161
+ Engage Users
162
+ <ul>
163
+ <li><a href="<?php $current_url = explode("?", $_SERVER['REQUEST_URI']); echo $current_url[0];?>?page=readygraph-app&ac=social-feed">Social Feed</a></li>
164
+ <li><a href="#">Social Followers</a></li>
165
+ <li><a href="#">Feedback Survey</a></li>
166
+ </ul>
167
+ </li>
168
+ <li>Basic Settings
169
+ <ul>
170
+ <li><a href="#">Site Profile</a></li>
171
+ <li><a href="<?php $current_url = explode("?", $_SERVER['REQUEST_URI']); echo $current_url[0];?>?page=readygraph-app&ac=feature-settings">Feature Settings</a></li>
172
+ </ul>
173
+ </li>
174
+ </ul>
175
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
176
+ <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
177
+ </div>
178
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
179
+ <p>
180
+ <a href="<?php $current_url = explode("?", $_SERVER['REQUEST_URI']); echo $current_url[0];?>?page=readygraph-app&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
181
+ </div>
182
+ <div class="btn-group" style="">
183
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
184
+ </div>
185
+ </div>
186
+ <div style="margin: 3% 5%">
187
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/15.png" style="float: right;margin-left: 10%;" width="310px" height="350px">
188
+ <h3><strong>Effortlessly Increase Your Site's Userbase</strong></h3>
189
+
190
+ <h4> Scale your audience faster with our Premium Growth Features:</h4>
191
+ <div style="width: 60%;">
192
+ <h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/>Your site promoted to 10,000 New Users Every Month in our Community Email Update</h4>
193
+ <h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/>Unlimited Viral Email/Facebook Invites</h4>
194
+ <h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/>Unlimited Blog Post Notifications</h4>
195
+ <h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/>Premium Phone/Email Support</h4>
196
+ <h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/>More Premium Features Added All The Time!</h4>
197
+ <br>
198
+ <a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px"/></a>
199
+ </div>
200
+ <div style="margin: 65px 0; width: 100%; display: block;">
201
+ <div class="rg-three-column" style="float: left">
202
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/12.png" height="40px" style="margin:15px"/>Explosive Website Growth
203
+ </div>
204
+ <div class="rg-three-column" style="float: left">
205
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/13.png" height="40px" style="margin:15px"/>Develop a Community of Users
206
+ </div>
207
+ <div class="rg-three-column" style="float: left">
208
+ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/14.png" height="40px" style="margin:15px"/>Track Growth with Powerful Analytics
209
+ </div>
210
+ </div>
211
+ <p><h4 class="rg-h4">ReadyGraph Premium equips your Wordpress site with the industry's most powerful proven growth features. Websites have used our tools to increase their growth rate by upto 70X.</h4></p>
212
+ <p><h4 class="rg-h4">Don't keep keep your website a secret! Set your growth to "full-blast" with ReadyGraph.</h4> </p>
213
+ <p><h4 class="rg-h4"><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>">Start A Free Trial Today!</a> </h4></p>
214
+
215
+ </div>
216
+ </div>
217
+ </form>
218
+ <script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
219
+ <script type="text/javascript" charset="utf-8">
220
+ var $ = jQuery;
221
+ $(function () {
222
+ var settings =
223
+ {
224
+ 'host': "www.readygraph.com"
225
+ , 'clientId': "9838eb84c6da2fc44ab9"
226
+ };
227
+
228
+ var authHost = "https://" + settings.host;
229
+ var resourceHost = "https://" + settings.host;
230
+
231
+ // OAuth 2.0 Popup
232
+ //
233
+ var popupWindow=null;
234
+ function openPopup(url)
235
+ {
236
+ if(popupWindow && !popupWindow.closed) popupWindow.focus();
237
+ else popupWindow = window.open(url,"_blank","directories=no, status=no, menubar=no, scrollbars=yes, resizable=no,width=515, height=330,top=" + (screen.height - 330)/2 + ",left=" + (screen.width - 515)/2);
238
+ }
239
+ function parent_disable() {
240
+ if(popupWindow && !popupWindow.closed) popupWindow.focus();
241
+ }
242
+
243
+ $("a.connect").click(function() {
244
+ var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
245
+ openPopup(url);
246
+ $(document.body).bind('focus', parent_disable);
247
+ $(document.body).bind('click', parent_disable);
248
+ });
249
+ $(".change-account").click(function() {
250
+ var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
251
+ var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
252
+ openPopup(logout);
253
+ $(document.body).bind('focus', parent_disable);
254
+ $(document.body).bind('click', parent_disable);
255
+ });
256
+
257
+ // User Interface
258
+ //
259
+ $('.template').click(function() {
260
+ $('#preview').attr('src', $(this).find('img').attr('src'));
261
+ });
262
+
263
+ // Manage OAuth 2.0 Redirect
264
+ //
265
+ var extractCode = function(hash) {
266
+ var match = hash.match(/code=(\w+)/);
267
+ return !!match && match[1];
268
+ };
269
+ var extractToken = function(hash) {
270
+ var match = hash.match(/access_token=(\w+)/);
271
+ return !!match && match[1];
272
+ };
273
+ var extractError = function(hash) {
274
+ var match = hash.match(/error=(\w+)/);
275
+ return !!match && match[1];
276
+ };
277
+
278
+ var code = extractCode(window.location.href);
279
+ if (extractError(window.location.href) == 'access_denied') {
280
+ window.close();
281
+ }
282
+ else if(code) {
283
+ try { window.opener.setCode(code); }
284
+ catch(ex) { }
285
+ window.close();
286
+ }
287
+ else {
288
+ $('.rgw-fb-login-button-iframe').hide();
289
+ $('div.authenticate').show();
290
+
291
+ if ($('[name="readygraph_access_token"]').val()) {
292
+ $('.rgw-fb-login-button-iframe').show();
293
+ $('div.authenticate').hide();
294
+ $('div.authenticating').hide();
295
+ $('div.authenticated').show();
296
+
297
+ $('.email-address').text($('[name="readygraph_email"]').val());
298
+
299
+ window.setup_readygraph($('[name="readygraph_application_id"]').val());
300
+ $('.delay').val($('[name="readygraph_delay"]').val());
301
+ $('.sidebar').val($('[name="readygraph_enable_sidebar"]').val());
302
+ $('.notification').val($('[name="readygraph_enable_notification"]').val());
303
+ $('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
304
+ $('.branding').val($('[name="readygraph_enable_branding"]').val());
305
+ $('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
306
+ $('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
307
+ $('.popup_template').val($('[name="readygraph_popup_template"]').val());
308
+
309
+ //$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
310
+ //$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
311
+
312
+ //$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
313
+ //$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
314
+
315
+ $('.result').text('...');
316
+ if ($('[name="readygraph_access_token"]').val()) {
317
+ $.ajax({
318
+ url: resourceHost + '/api/v1/insight_info'
319
+ , beforeSend: function (xhr) {
320
+ xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
321
+ xhr.setRequestHeader('Accept', "application/json");
322
+ }
323
+ , method: 'POST'
324
+ , success: function (response) {
325
+ if (response.data) {
326
+ $('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
327
+ } else {
328
+ $('.result').text('Insight');
329
+ }
330
+ }
331
+ , error: function (response) {
332
+ refresh_access_token();
333
+ }
334
+ });
335
+ }
336
+ }
337
+ }
338
+
339
+ // Manage OAuth 2.0 Results
340
+ //
341
+ function refresh_access_token() {
342
+ var refresh_token = $('[name="readygraph_refresh_token"]').val();
343
+ if (refresh_token) {
344
+ $('div.authenticate').hide();
345
+ $('div.authenticating').show();
346
+ $('div.authenticated').hide();
347
+
348
+ $.ajax({
349
+ url: resourceHost + '/oauth/access_token'
350
+ , data: {
351
+ grant_type: 'refresh_token',
352
+ refresh_token: $('[name="readygraph_refresh_token"]').val(),
353
+ redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
354
+ client_id: settings.clientId
355
+ }
356
+ , method: 'POST'
357
+ , success: function (response) {
358
+ $('[name="readygraph_access_token"]').val(response.access_token);
359
+ $('[name="readygraph_refresh_token"]').val(response.refresh_token);
360
+ window.setAccessToken(response.access_token);
361
+ $('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
362
+ }
363
+ , error: function (response) {
364
+ alert('We couldn\'t authenticate your account. Please check your internet connection.');
365
+ $('div.authenticate').show();
366
+ $('div.authenticating').hide();
367
+ $('div.authenticated').hide();
368
+ }
369
+ });
370
+ }
371
+ }
372
+ window.setCode = function(code) {
373
+ $('.rgw-fb-login-button-iframe').hide();
374
+ $('div.authenticate').hide();
375
+ $('div.authenticating').show();
376
+ $('div.authenticated').hide();
377
+
378
+ $.ajax({
379
+ url: resourceHost + '/oauth/access_token'
380
+ , data: {
381
+ grant_type: 'authorization_code',
382
+ code: code,
383
+ redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
384
+ client_id: settings.clientId
385
+ }
386
+ , method: 'POST'
387
+ , success: function (response) {
388
+ if (response) {
389
+ $('[name="readygraph_access_token"]').val(response.access_token);
390
+ $('[name="readygraph_refresh_token"]').val(response.refresh_token);
391
+ window.setAccessToken(response.access_token);
392
+ } else {
393
+ $('div.authenticating').hide();
394
+ $('div.authenticate').show();
395
+ }
396
+ }
397
+ });
398
+ }
399
+ window.setAccessToken = function(token) {
400
+ $('.rgw-fb-login-button-iframe').hide();
401
+ $('div.authenticate').hide();
402
+ $('div.authenticating').show();
403
+ $('div.authenticated').hide();
404
+
405
+ $.ajax({
406
+ url: resourceHost + '/api/v1/account_info'
407
+ , beforeSend: function (xhr) {
408
+ xhr.setRequestHeader('Authorization', "Bearer " + token);
409
+ xhr.setRequestHeader('Accept', "application/json");
410
+ }
411
+ , method: 'POST'
412
+ , success: function (response) {
413
+ if (response.data) {
414
+ $('[name="readygraph_access_token"]').val(token);
415
+ $('[name="readygraph_email"]').val(response.data.email);
416
+ $('[name="readygraph_application_id"]').val(response.data.application_id);
417
+ $('#myForm')[0].submit();
418
+ } else {
419
+ $('div.authenticating').hide();
420
+ $('div.authenticate').show();
421
+ $('.rgw-fb-login-button-iframe').hide();
422
+ }
423
+ }
424
+ });
425
+ }
426
+ });
427
+ </script>
428
+ <script>
429
+ window.setup = false;
430
+ window.refresh_readygraph = function() {};
431
+ window.setup_readygraph = function(app_id) {
432
+ if (window.setup) {
433
+ window.refresh_readygraph();
434
+ return;
435
+ }
436
+ window.setup = true;
437
+ readygraph.setup({
438
+ applicationId: app_id,
439
+ isPreview: true,
440
+ enableLoginWall: false,
441
+ enableDistraction: false,
442
+ enableAutoLogin: false,
443
+ enableSidebar: false,
444
+ enableNotification: false,
445
+ enableInvite: false,
446
+ enableOpenGraph: false,
447
+ enableRgSeo: false
448
+ });
449
+ readygraph.ready(function() {
450
+ readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
451
+ var $ = readygraph.framework.jQuery;
452
+ $.cookie('RGAuth', null);
453
+ readygraph.framework.facebook.logout(function() {
454
+ readygraph.framework.require(['invite'], function() {
455
+ var VIEW_TYPE = {
456
+ LOADING: 0,
457
+ LOGIN_REQUIRE: 1,
458
+ PERMISSION_REQUIRE: 2,
459
+ DEFAULT: 3,
460
+ LOGIN_WITH_EMAIL: 4,
461
+ SIGNUP_WITH_EMAIL: 5,
462
+ IMPORT_WITH_EMAIL: 6,
463
+ FINISH: 10
464
+ };
465
+
466
+ var auth = new readygraph.framework.ui.AuthModel({
467
+ dialog: true,
468
+ 'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
469
+ });
470
+ $('.rg-preview-widget').html('');
471
+ $('.rg-preview-widget').append(auth.lightbox.view.$el);
472
+ $('.rgw-content').attr('style', 'position: relative !important;');
473
+
474
+ var view = VIEW_TYPE.LOGIN_REQUIRE;
475
+ auth.on('switch', function() {
476
+ if (auth.view.currentView != view) { auth.view.switchView(view); }
477
+ else auth.view.render();
478
+ if (view == VIEW_TYPE.DEFAULT) {
479
+ auth.view.$el.find('.rgw-invite-view').showAndAnimate();
480
+ auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
481
+ auth.view.$el.commitTransition();
482
+ }
483
+ });
484
+ auth.view.switchView(view);
485
+
486
+ $(window).scroll(function() {
487
+ $(window).trigger('rgw-invalidate');
488
+ });
489
+ $('.rg-preview-widget, .content-warp').scroll(function() {
490
+ $(window).trigger('rgw-invalidate');
491
+ });
492
+ $(window).trigger('rgw-invalidate');
493
+
494
+ $('.rg-vertical-tab').click(function() {
495
+ saveContent(auth, $('.rg-preview-widget-container'), true);
496
+
497
+ $('.rg-vertical-tab').removeClass('active');
498
+ $(this).addClass('active');
499
+ view = VIEW_TYPE[$(this).attr('tab')];
500
+ if (auth.view.currentView != view) { auth.view.switchView(view); }
501
+
502
+ $('.rg-preview-widget, .content-warp').scrollTop(10000);
503
+ });
504
+
505
+ enableContentEditable(auth, $('.rg-preview-widget-container'));
506
+ restoreContent(auth, $('.rg-preview-widget-container'));
507
+
508
+ $('.save').click(function() {
509
+ $('.save').css('opacity', 0.4);
510
+ saveContent(auth, $('.rg-preview-widget-container'), false);
511
+ });
512
+
513
+ window.refresh_readygraph = function() {
514
+ restoreContent(auth, $('.rg-preview-widget-container'));
515
+ }
516
+ });
517
+ });
518
+ });
519
+ });
520
+ }
521
+ function enableContentEditable(model, container) {
522
+ model.view.$el.find('[rgw-data-key]').each(function() {
523
+ var element = $(this);
524
+ if (element.attr('rgw-data-editable') == 'false') return;
525
+
526
+ if (element.attr('editing') != null) return;
527
+ container.find('.special-button-container button').attr('disabled', 'disabled');
528
+ element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
529
+ element.attr('editing', '1');
530
+ element.css({
531
+ 'border': '2px dashed orange',
532
+ 'position': 'relative',
533
+ 'top': '-2px',
534
+ 'margin-bottom': '-4px',
535
+ 'background-color': '#FAFAC5'
536
+ });
537
+ element.attr('contenteditable', true);
538
+ element.bind('paste', function(e) {
539
+ e.preventDefault();
540
+ });
541
+ element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
542
+ });
543
+ }
544
+ function saveContent(model, container, fake) {
545
+ var settings = {};
546
+ model.view.$el.find('[rgw-data-key]').each(function() {
547
+ var element = $(this);
548
+ if (element.attr('rgw-data-editable') == 'false') return;
549
+ settings[element.attr('rgw-data-key')] = element.text();
550
+ readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
551
+ });
552
+ if (!fake) {
553
+ $('input[name="readygraph_settings"]').val(JSON.stringify(settings));
554
+ $('#myForm')[0].submit();
555
+ }
556
+ }
557
+ function restoreContent(model, container) {
558
+ eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
559
+ var settings = window._TEMP;
560
+ if (settings) {
561
+ model.view.$el.find('[rgw-data-key]').each(function() {
562
+ var element = $(this);
563
+ if (element.attr('rgw-data-editable') == 'false') return;
564
+ element.text(settings[element.attr('rgw-data-key')]);
565
+ readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
566
+ });
567
+ }
568
+ }
569
+ </script>
570
+ <style>
571
+ /* FOR INLINE WIDGET */
572
+ .rgw-overlay {
573
+ display: none !important;
574
+ }
575
+ .rgw-content-frame {
576
+ left: 0 !important;
577
+ top: 0 !important;
578
+ position: relative !important;
579
+ margin: 0 auto !important;
580
+ border: solid 1px #cccccc;
581
+ }
582
+ .rgw-preview-warning {
583
+ display: none !important;
584
+ }
585
+ .rgw-content {
586
+ position: relative !important;
587
+ }
588
+ </style>
extension/readygraph/invitation-email-not-used.php CHANGED
@@ -121,35 +121,47 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
121
  </div>
122
  <div style="clear: both;"></div>
123
  </div>
124
- <!-- write menu code-->
125
- <div class="readygraph-menu" style="margin-right: 1%;height:165px;">
126
- <div class="menu-tabs"><h4>Grow Users</h4>
127
- <ul>
128
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
129
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
130
- <li><a href="#"></a></li>
131
- </ul>
132
- </div>
133
- <div class="menu-tabs"><h4>Email Users</h4>
134
- <ul>
135
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
136
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
137
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
138
- </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  </div>
140
- <div class="menu-tabs"><h4>Engage Users</h4>
141
- <ul>
142
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
143
- <li><a href="#">Social Followers</a></li>
144
- <li><a href="#">Feedback Survey</a></li>
145
- </ul>
146
  </div>
147
- <div class="menu-tabs"><h4>Basic Settings</h4>
148
- <ul>
149
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
150
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
151
-
152
- </ul>
153
  </div>
154
  </div>
155
  <div><div><a href="#">Email</a> > Invitation Email</div>
121
  </div>
122
  <div style="clear: both;"></div>
123
  </div>
124
+ <!-- write menu code-->
125
+
126
+ <div class="readygraph-nav-menu">
127
+ <ul><li>Grow Users
128
+ <ul>
129
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
130
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
131
+ <li><a href="#"></a></li>
132
+ </ul>
133
+ </li>
134
+ <li>Email Users
135
+ <ul>
136
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
137
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
138
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
139
+ </ul>
140
+ </li>
141
+ <li>
142
+ Engage Users
143
+ <ul>
144
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
145
+ <li><a href="#">Social Followers</a></li>
146
+ <li><a href="#">Feedback Survey</a></li>
147
+ </ul>
148
+ </li>
149
+ <li>Basic Settings
150
+ <ul>
151
+ <li><a href="#">Site Profile</a></li>
152
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
153
+ </ul>
154
+ </li>
155
+ </ul>
156
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
157
+ <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
158
  </div>
159
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
160
+ <p>
161
+ <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
 
 
 
162
  </div>
163
+ <div class="btn-group" style="">
164
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
 
 
 
 
165
  </div>
166
  </div>
167
  <div><div><a href="#">Email</a> > Invitation Email</div>
extension/readygraph/signup-popup.php CHANGED
@@ -108,42 +108,47 @@ s2_rrmdir($dir);
108
  </div>
109
  <div style="clear: both;"></div>
110
  </div>
111
- <!-- write menu code-->
112
- <div class="readygraph-menu">
113
- <div class="menu-tabs"><h4>Grow Users</h4>
114
- <ul>
115
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
116
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
117
- <li><a href="#"></a></li>
118
- </ul>
119
- </div>
120
- <div class="menu-tabs"><h4>Email Users</h4>
121
- <ul>
122
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
123
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
124
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
125
- </ul>
126
- </div>
127
- <div class="menu-tabs"><h4>Engage Users</h4>
128
- <ul>
129
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
130
- <li><a href="#">Social Followers</a></li>
131
- <li><a href="#">Feedback Survey</a></li>
132
- </ul>
133
- </div>
134
- <div class="menu-tabs"><h4>Basic Settings</h4>
135
- <ul>
136
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
137
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
138
-
139
- </ul>
140
- </div>
141
- <div class="menu-tabs" style="float:right"><h4>&nbsp;</h4>
 
 
142
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
 
 
143
  <p>
144
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
145
-
146
- </ul>
 
147
  </div>
148
  </div>
149
  <div><div><a href="#">Grow Users</a> > Signup Popup</div>
108
  </div>
109
  <div style="clear: both;"></div>
110
  </div>
111
+ <!-- write menu code-->
112
+
113
+ <div class="readygraph-nav-menu">
114
+ <ul><li>Grow Users
115
+ <ul>
116
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
117
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
118
+ <li><a href="#"></a></li>
119
+ </ul>
120
+ </li>
121
+ <li>Email Users
122
+ <ul>
123
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
124
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
125
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
126
+ </ul>
127
+ </li>
128
+ <li>
129
+ Engage Users
130
+ <ul>
131
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
132
+ <li><a href="#">Social Followers</a></li>
133
+ <li><a href="#">Feedback Survey</a></li>
134
+ </ul>
135
+ </li>
136
+ <li>Basic Settings
137
+ <ul>
138
+ <li><a href="#">Site Profile</a></li>
139
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
140
+ </ul>
141
+ </li>
142
+ </ul>
143
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
144
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
145
+ </div>
146
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
147
  <p>
148
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
149
+ </div>
150
+ <div class="btn-group" style="">
151
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
152
  </div>
153
  </div>
154
  <div><div><a href="#">Grow Users</a> > Signup Popup</div>
extension/readygraph/site-profile.php CHANGED
@@ -79,42 +79,47 @@ s2_rrmdir($dir);
79
  </div>
80
  <div style="clear: both;"></div>
81
  </div>
82
- <!-- write menu code-->
83
- <div class="readygraph-menu">
84
- <div class="menu-tabs"><h4>Grow Users</h4>
85
- <ul>
86
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
87
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
88
- <li><a href="#"></a></li>
89
- </ul>
90
- </div>
91
- <div class="menu-tabs"><h4>Email Users</h4>
92
- <ul>
93
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
94
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
95
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
96
- </ul>
97
- </div>
98
- <div class="menu-tabs"><h4>Engage Users</h4>
99
- <ul>
100
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
101
- <li><a href="#">Social Followers</a></li>
102
- <li><a href="#">Feedback Survey</a></li>
103
- </ul>
104
- </div>
105
- <div class="menu-tabs"><h4>Basic Settings</h4>
106
- <ul>
107
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
108
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
109
-
110
- </ul>
111
- </div>
112
- <div class="menu-tabs" style="float:right"><h4>&nbsp;</h4>
 
 
113
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
 
 
114
  <p>
115
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
116
-
117
- </ul>
 
118
  </div>
119
  </div>
120
  <div><div><a href="#">Basic Settings</a> > Site Profile</div>
@@ -142,9 +147,9 @@ wp_editor( $content, $editor_id, $settings );
142
  ?>
143
  </div>
144
  </div>
145
- <div class="save-changes"><button type="submit" class="btn btn-large btn-warning save-next" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=customize-email" style="float: right;margin: 15px">Save Changes & Next</button>
146
- <button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile" style="float: right;margin: 15px">Save Changes</button>
147
- <button type="submit" class="btn btn-large btn-warning save-previous" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed" style="float: right;margin: 15px">Previous</button>
148
  </div>
149
  </div>
150
  </div>
79
  </div>
80
  <div style="clear: both;"></div>
81
  </div>
82
+ <!-- write menu code-->
83
+
84
+ <div class="readygraph-nav-menu">
85
+ <ul><li>Grow Users
86
+ <ul>
87
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
88
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
89
+ <li><a href="#"></a></li>
90
+ </ul>
91
+ </li>
92
+ <li>Email Users
93
+ <ul>
94
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
95
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
96
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
97
+ </ul>
98
+ </li>
99
+ <li>
100
+ Engage Users
101
+ <ul>
102
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
103
+ <li><a href="#">Social Followers</a></li>
104
+ <li><a href="#">Feedback Survey</a></li>
105
+ </ul>
106
+ </li>
107
+ <li>Basic Settings
108
+ <ul>
109
+ <li><a href="#">Site Profile</a></li>
110
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
111
+ </ul>
112
+ </li>
113
+ </ul>
114
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
115
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
116
+ </div>
117
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
118
  <p>
119
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
120
+ </div>
121
+ <div class="btn-group" style="">
122
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
123
  </div>
124
  </div>
125
  <div><div><a href="#">Basic Settings</a> > Site Profile</div>
147
  ?>
148
  </div>
149
  </div>
150
+ <div class="save-changes"><?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?><button type="submit" class="btn btn-large btn-warning save-next" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=customize-email" style="float: right;margin: 15px">Save Changes & Next</button><?php } ?>
151
+ <button type="submit" class="btn btn-large btn-warning save" formaction="#" style="float: right;margin: 15px">Save Changes</button>
152
+ <?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?><button type="submit" class="btn btn-large btn-warning save-previous" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed" style="float: right;margin: 15px">Previous</button> <?php } ?>
153
  </div>
154
  </div>
155
  </div>
extension/readygraph/social-feed.php CHANGED
@@ -98,41 +98,46 @@ s2_rrmdir($dir);
98
  <div style="clear: both;"></div>
99
  </div>
100
  <!-- write menu code-->
101
- <div class="readygraph-menu">
102
- <div class="menu-tabs"><h4>Grow Users</h4>
103
- <ul>
104
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
105
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
106
- <li><a href="#"></a></li>
107
- </ul>
108
- </div>
109
- <div class="menu-tabs"><h4>Email Users</h4>
110
- <ul>
111
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
112
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
113
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
114
- </ul>
115
- </div>
116
- <div class="menu-tabs"><h4>Engage Users</h4>
117
- <ul>
118
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
119
- <li><a href="#">Social Followers</a></li>
120
- <li><a href="#">Feedback Survey</a></li>
121
- </ul>
122
- </div>
123
- <div class="menu-tabs"><h4>Basic Settings</h4>
124
- <ul>
125
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
126
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
127
-
128
- </ul>
129
- </div>
130
- <div class="menu-tabs" style="float:right"><h4>&nbsp;</h4>
 
 
131
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
 
 
132
  <p>
133
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
134
-
135
- </ul>
 
136
  </div>
137
  </div>
138
  <div><a href="#">Engage Users</a> > Social Feed</div>
@@ -151,9 +156,9 @@ s2_rrmdir($dir);
151
  <option value="false">NO</option>
152
  </select><a href="#" class="help-tooltip"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/Help-icon.png" width="15px" style="margin-left:10px;"/><span><img class="callout" src="<?php echo plugin_dir_url( __FILE__ );?>assets/callout_black.gif" /><strong>ReadyGraph Social Feed Settings</strong><br />You can add an optional social sidebar to your site that allows users the ability to share and discuss the best content on your site. For an example, click here.<br /></span></a>
153
  </p><br />
154
- <div class="save-changes"><button type="submit" class="btn btn-large btn-warning save-next" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=customize-emails&source=social-feed" style="float: right;margin: 15px">Save Changes & Next</button>
155
  <button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed" style="float: right;margin: 15px">Save Changes</button>
156
- <button type="submit" class="btn btn-large btn-warning save-previous" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup" style="float: right;margin: 15px">Previous</button>
157
  </div>
158
  </div>
159
 
98
  <div style="clear: both;"></div>
99
  </div>
100
  <!-- write menu code-->
101
+
102
+ <div class="readygraph-nav-menu">
103
+ <ul><li>Grow Users
104
+ <ul>
105
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
106
+ <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
107
+ <li><a href="#"></a></li>
108
+ </ul>
109
+ </li>
110
+ <li>Email Users
111
+ <ul>
112
+ <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
113
+ <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
114
+ <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
115
+ </ul>
116
+ </li>
117
+ <li>
118
+ Engage Users
119
+ <ul>
120
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
121
+ <li><a href="#">Social Followers</a></li>
122
+ <li><a href="#">Feedback Survey</a></li>
123
+ </ul>
124
+ </li>
125
+ <li>Basic Settings
126
+ <ul>
127
+ <li><a href="#">Site Profile</a></li>
128
+ <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
129
+ </ul>
130
+ </li>
131
+ </ul>
132
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
133
  <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
134
+ </div>
135
+ <div class="btn-group" style="margin: 8px 10px 0 10px;">
136
  <p>
137
  <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
138
+ </div>
139
+ <div class="btn-group" style="">
140
+ <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
141
  </div>
142
  </div>
143
  <div><a href="#">Engage Users</a> > Social Feed</div>
156
  <option value="false">NO</option>
157
  </select><a href="#" class="help-tooltip"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/Help-icon.png" width="15px" style="margin-left:10px;"/><span><img class="callout" src="<?php echo plugin_dir_url( __FILE__ );?>assets/callout_black.gif" /><strong>ReadyGraph Social Feed Settings</strong><br />You can add an optional social sidebar to your site that allows users the ability to share and discuss the best content on your site. For an example, click here.<br /></span></a>
158
  </p><br />
159
+ <div class="save-changes"><?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?><button type="submit" class="btn btn-large btn-warning save-next" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=customize-emails&source=social-feed" style="float: right;margin: 15px">Save Changes & Next</button><?php } ?>
160
  <button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed" style="float: right;margin: 15px">Save Changes</button>
161
+ <?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?><button type="submit" class="btn btn-large btn-warning save-previous" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup" style="float: right;margin: 15px">Previous</button><?php } ?>
162
  </div>
163
  </div>
164
 
subscribe2.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
- Version: 10.15
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
@@ -55,7 +55,7 @@ if ( is_plugin_active_for_network(plugin_basename(__FILE__)) ) {
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
- define( 'S2VERSION', '10.15' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
@@ -123,5 +123,6 @@ delete_option('readygraph_enable_branding');
123
  delete_option('readygraph_send_blog_updates');
124
  delete_option('readygraph_send_real_time_post_updates');
125
  delete_option('readygraph_popup_template');
 
126
  }
127
  ?>
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 10.16
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
+ define( 'S2VERSION', '10.16' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
123
  delete_option('readygraph_send_blog_updates');
124
  delete_option('readygraph_send_real_time_post_updates');
125
  delete_option('readygraph_popup_template');
126
+ delete_option('readygraph_upgrade_notice');
127
  }
128
  ?>