Subscribe2 - Version 10.21

Version Description

Download this release

Release Info

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

Code changes from version 10.20.9 to 10.21

Files changed (73) hide show
  1. 2422.diff +421 -0
  2. ChangeLog.txt +4 -0
  3. ReadMe.txt +3 -162
  4. admin/send_email.php +0 -5
  5. admin/settings.php +0 -6
  6. admin/subscribers.php +0 -10
  7. admin/your_subscriptions.php +0 -5
  8. classes/class-s2-admin.php +1 -111
  9. classes/class-s2-core.php +0 -3
  10. classes/class-s2-frontend.php +2 -30
  11. extension/readygraph/admin.php +0 -259
  12. extension/readygraph/assets/10.png +0 -0
  13. extension/readygraph/assets/11.png +0 -0
  14. extension/readygraph/assets/12.png +0 -0
  15. extension/readygraph/assets/13.png +0 -0
  16. extension/readygraph/assets/14.png +0 -0
  17. extension/readygraph/assets/15.png +0 -0
  18. extension/readygraph/assets/2.png +0 -0
  19. extension/readygraph/assets/3.png +0 -0
  20. extension/readygraph/assets/4.png +0 -0
  21. extension/readygraph/assets/5.png +0 -0
  22. extension/readygraph/assets/6.png +0 -0
  23. extension/readygraph/assets/7.png +0 -0
  24. extension/readygraph/assets/8.png +0 -0
  25. extension/readygraph/assets/9.png +0 -0
  26. extension/readygraph/assets/Help-icon.png +0 -0
  27. extension/readygraph/assets/Sign-Alert-icon.png +0 -0
  28. extension/readygraph/assets/callout_black.gif +0 -0
  29. extension/readygraph/assets/check.png +0 -0
  30. extension/readygraph/assets/close-icon.png +0 -0
  31. extension/readygraph/assets/css/admin.css +0 -168
  32. extension/readygraph/assets/css/black-popup.css +0 -16
  33. extension/readygraph/assets/css/blue-popup.css +0 -16
  34. extension/readygraph/assets/css/custom-popup.css +0 -16
  35. extension/readygraph/assets/css/default-popup.css +0 -0
  36. extension/readygraph/assets/css/gray-popup.css +0 -16
  37. extension/readygraph/assets/css/green-popup.css +0 -16
  38. extension/readygraph/assets/css/index.php +0 -1
  39. extension/readygraph/assets/css/red-popup.css +0 -16
  40. extension/readygraph/assets/css/upgrade.css +0 -69
  41. extension/readygraph/assets/css/yellow-popup.css +0 -16
  42. extension/readygraph/assets/dialog_close.png +0 -0
  43. extension/readygraph/assets/go-premium.png +0 -0
  44. extension/readygraph/assets/icon_chart.png +0 -0
  45. extension/readygraph/assets/icon_currency.png +0 -0
  46. extension/readygraph/assets/icon_fb.png +0 -0
  47. extension/readygraph/assets/icon_heart.png +0 -0
  48. extension/readygraph/assets/icon_mail.png +0 -0
  49. extension/readygraph/assets/js/admin.js +0 -6
  50. extension/readygraph/assets/js/cp-demo-script.min.js +0 -30
  51. extension/readygraph/assets/js/index.php +0 -1
  52. extension/readygraph/assets/js/jquery.dependent-selects.js +0 -278
  53. extension/readygraph/assets/js/my-script.js +0 -3
  54. extension/readygraph/assets/ready_sidebar.png +0 -0
  55. extension/readygraph/assets/round-check.png +0 -0
  56. extension/readygraph/assets/ub-icon.png +0 -0
  57. extension/readygraph/assets/white-logo.png +0 -0
  58. extension/readygraph/customize-emails.php +0 -54
  59. extension/readygraph/deactivate-readygraph.php +0 -68
  60. extension/readygraph/extension.php +0 -85
  61. extension/readygraph/faq.php +0 -132
  62. extension/readygraph/footer.php +0 -434
  63. extension/readygraph/functions.php +0 -59
  64. extension/readygraph/go-premium.php +0 -77
  65. extension/readygraph/header.php +0 -133
  66. extension/readygraph/index.php +0 -2
  67. extension/readygraph/invitation-email-not-used.php +0 -563
  68. extension/readygraph/monetization.php +0 -70
  69. extension/readygraph/signup-popup.php +0 -173
  70. extension/readygraph/site-profile.php +0 -357
  71. extension/readygraph/social-feed.php +0 -87
  72. readygraph-extension.php +0 -247
  73. subscribe2.php +2 -65
2422.diff ADDED
@@ -0,0 +1,421 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Index: include/counterwidget.php
2
+ ===================================================================
3
+ --- include/counterwidget.php (revision 1228025)
4
+ +++ include/counterwidget.php (working copy)
5
+ @@ -3,34 +3,34 @@
6
+ /**
7
+ Declares the S2_Counter_widget class.
8
+ */
9
+ - function S2_Counter_widget() {
10
+ - $widget_options = array('classname' => 's2_counter', 'description' => __('Subscriber Counter widget for Subscribe2', 'subscribe2') );
11
+ - $control_options = array('width' => 250, 'height' => 500);
12
+ - $this->WP_Widget('s2_counter', __('Subscribe2 Counter', 'subscribe2'), $widget_options, $control_options);
13
+ + function __construct() {
14
+ + $widget_options = array( 'classname' => 's2_counter', 'description' => esc_html__( 'Subscriber Counter widget for Subscribe2', 'subscribe2' ) );
15
+ + $control_options = array( 'width' => 250, 'height' => 500 );
16
+ + parent::__construct( 's2_counter', esc_html__( 'Subscribe2 Counter', 'subscribe2' ), $widget_options, $control_options );
17
+ }
18
+
19
+ /**
20
+ Displays the Widget
21
+ */
22
+ - function widget($args, $instance) {
23
+ - $title = empty($instance['title']) ? 'Subscriber Count' : $instance['title'];
24
+ - $s2w_bg = empty($instance['s2w_bg']) ? '#e3dacf' : $instance['s2w_bg'];
25
+ - $s2w_fg = empty($instance['s2w_fg']) ? '#345797' : $instance['s2w_fg'];
26
+ - $s2w_width = empty($instance['s2w_width']) ? '82' : $instance['s2w_width'];
27
+ - $s2w_height = empty($instance['s2w_height']) ? '16' : $instance['s2w_height'];
28
+ - $s2w_font = empty($instance['s2w_font']) ? '11' : $instance['s2w_font'];
29
+ + function widget( $args, $instance ) {
30
+ + $title = empty( $instance['title'] ) ? 'Subscriber Count' : $instance['title'];
31
+ + $s2w_bg = empty( $instance['s2w_bg'] ) ? '#e3dacf' : $instance['s2w_bg'];
32
+ + $s2w_fg = empty( $instance['s2w_fg'] ) ? '#345797' : $instance['s2w_fg'];
33
+ + $s2w_width = empty( $instance['s2w_width'] ) ? '82' : $instance['s2w_width'];
34
+ + $s2w_height = empty( $instance['s2w_height'] ) ? '16' : $instance['s2w_height'];
35
+ + $s2w_font = empty( $instance['s2w_font'] ) ? '11' : $instance['s2w_font'];
36
+
37
+ echo $args['before_widget'];
38
+ - if ( !empty($title) ) {
39
+ + if ( ! empty( $title ) ) {
40
+ echo $args['before_title'] . $title . $args['after_title'];
41
+ }
42
+ global $mysubscribe2;
43
+ $registered = $mysubscribe2->get_registered();
44
+ $confirmed = $mysubscribe2->get_public();
45
+ - $count = (count($registered) + count($confirmed));
46
+ - echo "<ul><div style=\"text-align:center; background-color:" . $s2w_bg . "; color:" . $s2w_fg . "; width:" . $s2w_width . "px; height:" . $s2w_height . "px; font:" . $s2w_font . "pt Verdana, Arial, Helvetica, sans-serif; vertical-align:middle; padding:3px; border:1px solid #444;\">";
47
+ + $count = (count( $registered ) + count( $confirmed ));
48
+ + echo '<ul><div style="text-align:center; background-color:' . $s2w_bg . '; color:' . $s2w_fg . '; width:' . $s2w_width . 'px; height:' . $s2w_height . 'px; font:' . $s2w_font . 'pt Verdana, Arial, Helvetica, sans-serif; vertical-align:middle; padding:3px; border:1px solid #444;">';
49
+ echo $count;
50
+ - echo "</div></ul>";
51
+ + echo '</div></ul>';
52
+ echo $args['after_widget'];
53
+ }
54
+
55
+ @@ -37,14 +37,14 @@
56
+ /**
57
+ Saves the widgets settings.
58
+ */
59
+ - function update($new_instance, $old_instance) {
60
+ + function update( $new_instance, $old_instance ) {
61
+ $instance = $old_instance;
62
+ - $instance['title'] = strip_tags(stripslashes($new_instance['title']));
63
+ - $instance['s2w_bg'] = strip_tags(stripslashes($new_instance['s2w_bg']));
64
+ - $instance['s2w_fg'] = strip_tags(stripslashes($new_instance['s2w_fg']));
65
+ - $instance['s2w_width'] = strip_tags(stripslashes($new_instance['s2w_width']));
66
+ - $instance['s2w_height'] = strip_tags(stripslashes($new_instance['s2w_height']));
67
+ - $instance['s2w_font'] = strip_tags(stripslashes($new_instance['s2w_font']));
68
+ + $instance['title'] = strip_tags( stripslashes( $new_instance['title'] ) );
69
+ + $instance['s2w_bg'] = strip_tags( stripslashes( $new_instance['s2w_bg'] ) );
70
+ + $instance['s2w_fg'] = strip_tags( stripslashes( $new_instance['s2w_fg'] ) );
71
+ + $instance['s2w_width'] = strip_tags( stripslashes( $new_instance['s2w_width'] ) );
72
+ + $instance['s2w_height'] = strip_tags( stripslashes( $new_instance['s2w_height'] ) );
73
+ + $instance['s2w_font'] = strip_tags( stripslashes( $new_instance['s2w_font'] ) );
74
+
75
+ return $instance;
76
+ }
77
+ @@ -52,47 +52,47 @@
78
+ /**
79
+ Creates the edit form for the widget.
80
+ */
81
+ - function form($instance) {
82
+ + function form( $instance ) {
83
+ // set some defaults
84
+ - $options = get_option('widget_s2counter');
85
+ - if ( $options === false ) {
86
+ - $defaults = array('title'=>'Subscriber Count', 's2w_bg'=>'#e3dacf', 's2w_fg'=>'#345797', 's2w_width'=>'82', 's2w_height'=>'16', 's2w_font'=>'11');
87
+ + $options = get_option( 'widget_s2counter' );
88
+ + if ( false === $options ) {
89
+ + $defaults = array( 'title' => 'Subscriber Count', 's2w_bg' => '#e3dacf', 's2w_fg' => '#345797', 's2w_width' => '82', 's2w_height' => '16', 's2w_font' => '11' );
90
+ } else {
91
+ - $defaults = array('title'=>$options['title'], 's2w_bg'=>$options['s2w_bg'], 's2w_fg'=>$options['s2w_fg'], 's2w_width'=>$options['s2w_width'], 's2w_height'=>$options['s2w_height'], 's2w_font'=>$options['s2w_font']);
92
+ - delete_option('widget_s2counter');
93
+ + $defaults = array( 'title' => $options['title'], 's2w_bg' => $options['s2w_bg'], 's2w_fg' => $options['s2w_fg'], 's2w_width' => $options['s2w_width'], 's2w_height' => $options['s2w_height'], 's2w_font' => $options['s2w_font'] );
94
+ + delete_option( 'widget_s2counter' );
95
+ }
96
+ - $instance = wp_parse_args( (array) $instance, $defaults);
97
+ + $instance = wp_parse_args( (array) $instance, $defaults );
98
+ // Be sure you format your options to be valid HTML attributes.
99
+ - $s2w_title = htmlspecialchars($instance['title'], ENT_QUOTES);
100
+ - $s2w_bg = htmlspecialchars($instance['s2w_bg'], ENT_QUOTES);
101
+ - $s2w_fg = htmlspecialchars($instance['s2w_fg'], ENT_QUOTES);
102
+ - $s2w_width = htmlspecialchars($instance['s2w_width'], ENT_QUOTES);
103
+ - $s2w_height = htmlspecialchars($instance['s2w_height'], ENT_QUOTES);
104
+ - $s2w_font = htmlspecialchars($instance['s2w_font'], ENT_QUOTES);
105
+ - echo "<div>\r\n";
106
+ - echo "<fieldset><legend><label for=\"" . $this->get_field_id('title') . "\">" . __('Widget Title', 'subscribe2') . "</label></legend>\r\n";
107
+ - echo "<input type=\"text\" name=\"" . $this->get_field_name('title') . "\" id=\"" . $this->get_field_id('title') . "\" value=\"" . $s2w_title . "\" />\r\n";
108
+ - echo "</fieldset>\r\n";
109
+ + $s2w_title = htmlspecialchars( $instance['title'], ENT_QUOTES );
110
+ + $s2w_bg = htmlspecialchars( $instance['s2w_bg'], ENT_QUOTES );
111
+ + $s2w_fg = htmlspecialchars( $instance['s2w_fg'], ENT_QUOTES );
112
+ + $s2w_width = htmlspecialchars( $instance['s2w_width'], ENT_QUOTES );
113
+ + $s2w_height = htmlspecialchars( $instance['s2w_height'], ENT_QUOTES );
114
+ + $s2w_font = htmlspecialchars( $instance['s2w_font'], ENT_QUOTES );
115
+ + echo '<div>' . "\r\n";
116
+ + echo '<fieldset><legend><label for="' . esc_attr( $this->get_field_id( 'title' ) ) . '">' . esc_html__( 'Widget Title', 'subscribe2' ) . '</label></legend>' . "\r\n";
117
+ + echo '<input type="text" name="' . esc_attr( $this->get_field_name( 'title' ) ) . '" id="' . esc_attr( $this->get_field_id( 'title' ) ) . '" value="' . esc_html__( $s2w_title ) . '" />' . "\r\n";
118
+ + echo '</fieldset>' . "\r\n";
119
+
120
+ - echo "<fieldset>\r\n";
121
+ - echo "<legend>" . __('Color Scheme', 'subscribe2') . "</legend>\r\n";
122
+ - echo "<label>\r\n";
123
+ - echo "<input type=\"text\" name=\"" . $this->get_field_name('s2w_bg') . "\" id=\"" . $this->get_field_id('s2w_bg') . "\" maxlength=\"6\" value=\"" . $s2w_bg . "\" class=\"colorpickerField\" style=\"width:60px;\" /> " . __('Body', 'subscribe2') . "</label><br />\r\n";
124
+ - echo "<label>\r\n";
125
+ - echo "<input type=\"text\" name=\"" . $this->get_field_name('s2w_fg') . "\" id=\"" . $this->get_field_id('s2w_fg') . "\" maxlength=\"6\" value=\"" . $s2w_fg . "\" class=\"colorpickerField\" style=\"width:60px;\" /> " . __('Text', 'subscribe2') . "</label><br />\r\n";
126
+ - echo "<div class=\"s2_colorpicker\" id =\"" . $this->get_field_id('s2_colorpicker') . "\"></div>";
127
+ - echo "</fieldset>";
128
+ + echo '<fieldset>' . "\r\n";
129
+ + echo '<legend>' . esc_html__( 'Color Scheme', 'subscribe2' ) . '</legend>' . "\r\n";
130
+ + echo '<label>' . "\r\n";
131
+ + echo '<input type="text" name="' . esc_attr( $this->get_field_name( 's2w_bg' ) ) . '" id="' . esc_attr( $this->get_field_id( 's2w_bg' ) ) . '" maxlength="6" value="' . esc_attr( $s2w_bg ) . '" class="colorpickerField" style="width:60px;" /> ' . esc_html__( 'Body', 'subscribe2' ) . '</label><br />' . "\r\n";
132
+ + echo '<label>' . "\r\n";
133
+ + echo '<input type="text" name="' . esc_attr( $this->get_field_name( 's2w_fg' ) ) . '" id="' . esc_attr( $this->get_field_id( 's2w_fg' ) ) . '" maxlength="6" value="' . esc_attr( $s2w_fg ) . '" class="colorpickerField" style="width:60px;" /> ' . esc_html__( 'Text', 'subscribe2' ) . '</label><br />' . "\r\n";
134
+ + echo '<div class="s2_colorpicker" id ="' . esc_attr( $this->get_field_id( 's2_colorpicker' ) ) . '"></div>';
135
+ + echo '</fieldset>';
136
+
137
+ - echo "<fieldset>\r\n";
138
+ - echo "<legend>" . __('Width, Height and Font Size', 'subscribe2') . "</legend>\r\n";
139
+ - echo "<table style=\"border:0; padding:0; margin:0 0 12px 0; border-collapse:collapse;\" align=\"center\">\r\n";
140
+ - echo "<tr><td><label for=\"" . $this->get_field_id('s2w_width') . "\">" . __('Width', 'subscribe2') . "</label></td>\r\n";
141
+ - echo "<td><input type=\"text\" name=\"" . $this->get_field_name('s2w_width') . "\" id=\"" . $this->get_field_id('s2w_width') . "\" value=\"" . $s2w_width . "\" /></td></tr>\r\n";
142
+ - echo "<tr><td><label for=\"" . $this->get_field_id('s2w_height') . "\">" . __('Height', 'subscribe2') . "</label></td>\r\n";
143
+ - echo "<td><input type=\"text\" name=\"" . $this->get_field_name('s2w_height') . "\" id=\"" . $this->get_field_id('s2w_height') . "\" value=\"" . $s2w_height . "\" /></td></tr>\r\n";
144
+ - echo "<tr><td><label for=\"" . $this->get_field_id('s2w_font') . "\">" . __('Font', 'subscribe2') . "</label></td>\r\n";
145
+ - echo "<td><input type=\"text\" name=\"" . $this->get_field_name('s2w_font') . "\" id=\"" . $this->get_field_id('s2w_font') . "\" value=\"" . $s2w_font . "\" /></td></tr>\r\n";
146
+ - echo "</table></fieldset></div>\r\n";
147
+ + echo '<fieldset>' . "\r\n";
148
+ + echo '<legend>' . esc_html__( 'Width, Height and Font Size', 'subscribe2' ) . '</legend>' . "\r\n";
149
+ + echo '<table style="border:0; padding:0; margin:0 0 12px 0; border-collapse:collapse;" align="center">' . "\r\n";
150
+ + echo '<tr><td><label for="' . esc_attr( $this->get_field_id( 's2w_width' ) ) . '">' . esc_html__( 'Width', 'subscribe2' ) . '</label></td>' . "\r\n";
151
+ + echo '<td><input type="text" name="' . esc_attr( $this->get_field_name( 's2w_width' ) ) . '" id="' . esc_attr( $this->get_field_id( 's2w_width' ) ) . '" value="' . esc_attr( $s2w_width ) . '" /></td></tr>' . "\r\n";
152
+ + echo '<tr><td><label for="' . esc_attr( $this->get_field_id( 's2w_height' ) ) . '">' . esc_html__( 'Height', 'subscribe2' ) . '</label></td>' . "\r\n";
153
+ + echo '<td><input type="text" name="' . esc_attr( $this->get_field_name( 's2w_height' ) ) . '" id="' . esc_attr( $this->get_field_id( 's2w_height' ) ) . '" value="' . esc_attr( $s2w_height ) . '" /></td></tr>' . "\r\n";
154
+ + echo '<tr><td><label for="' . esc_attr( $this->get_field_id( 's2w_font' ) ) . '">' . esc_html__( 'Font', 'subscribe2' ) . '</label></td>' . "\r\n";
155
+ + echo '<td><input type="text" name="' . esc_attr( $this->get_field_name( 's2w_font' ) ) . '" id="' . esc_attr( $this->get_field_id( 's2w_font' ) ) . '" value="' . esc_attr( $s2w_font ) . '" /></td></tr>' . "\r\n";
156
+ + echo '</table></fieldset></div>' . "\r\n";
157
+ }
158
+ }// end S2_Counter_widget class
159
+ ?>
160
+
161
+ Index: include/widget.php
162
+ ===================================================================
163
+ --- include/widget.php (revision 1228025)
164
+ +++ include/widget.php (working copy)
165
+ @@ -3,62 +3,62 @@
166
+ /**
167
+ Declares the Subscribe2 widget class.
168
+ */
169
+ - function S2_Form_widget() {
170
+ - $widget_ops = array('classname' => 's2_form_widget', 'description' => __('Sidebar Widget for Subscribe2', 'subscribe2') );
171
+ - $control_ops = array('width' => 250, 'height' => 300);
172
+ - $this->WP_Widget('s2_form_widget', __('Subscribe2 Widget', 'subscribe2'), $widget_ops, $control_ops);
173
+ + function __construct() {
174
+ + $widget_ops = array( 'classname' => 's2_form_widget', 'description' => esc_html__( 'Sidebar Widget for Subscribe2', 'subscribe2' ) );
175
+ + $control_ops = array( 'width' => 250, 'height' => 300 );
176
+ + parent::__construct( 's2_form_widget', esc_html__( 'Subscribe2 Widget', 'subscribe2' ), $widget_ops, $control_ops );
177
+ }
178
+
179
+ /**
180
+ Displays the Widget
181
+ */
182
+ - function widget($args, $instance) {
183
+ - $title = empty($instance['title']) ? __('Subscribe2', 'subscribe2') : $instance['title'];
184
+ - $div = empty($instance['div']) ? 'search' : $instance['div'];
185
+ - $widgetprecontent = empty($instance['widgetprecontent']) ? '' : $instance['widgetprecontent'];
186
+ - $widgetpostcontent = empty($instance['widgetpostcontent']) ? '' : $instance['widgetpostcontent'];
187
+ - $textbox_size = empty($instance['size']) ? 20 : $instance['size'];
188
+ - $hidebutton = empty($instance['hidebutton']) ? 'none' : $instance['hidebutton'];
189
+ - $postto = empty($instance['postto']) ? '' : $instance['postto'];
190
+ - $js = empty($instance['js']) ? '' : $instance['js'];
191
+ - $noantispam = empty($instance['noantispam']) ? '' : $instance['noantispam'];
192
+ - $nowrap = empty($instance['nowrap']) ? '' : $instance['nowrap'];
193
+ + function widget( $args, $instance ) {
194
+ + $title = empty( $instance['title'] ) ? __( 'Subscribe2', 'subscribe2' ) : $instance['title'];
195
+ + $div = empty( $instance['div'] ) ? 'search' : $instance['div'];
196
+ + $widgetprecontent = empty( $instance['widgetprecontent'] ) ? '' : $instance['widgetprecontent'];
197
+ + $widgetpostcontent = empty( $instance['widgetpostcontent'] ) ? '' : $instance['widgetpostcontent'];
198
+ + $textbox_size = empty( $instance['size'] ) ? 20 : $instance['size'];
199
+ + $hidebutton = empty( $instance['hidebutton'] ) ? 'none' : $instance['hidebutton'];
200
+ + $postto = empty( $instance['postto'] ) ? '' : $instance['postto'];
201
+ + $js = empty( $instance['js'] ) ? '' : $instance['js'];
202
+ + $noantispam = empty( $instance['noantispam'] ) ? '' : $instance['noantispam'];
203
+ + $nowrap = empty( $instance['nowrap'] ) ? '' : $instance['nowrap'];
204
+ $hide = '';
205
+ - if ( $hidebutton == 'subscribe' || $hidebutton == 'unsubscribe' ) {
206
+ - $hide = " hide=\"" . $hidebutton . "\"";
207
+ - } elseif ( $hidebutton == 'link' ) {
208
+ - $hide = " link=\"" . __('(Un)Subscribe to Posts', 'subscribe2') . "\"";
209
+ + if ( 'subscribe' === $hidebutton || 'unsubscribe' === $hidebutton ) {
210
+ + $hide = ' hide="' . $hidebutton . '"';
211
+ + } elseif ( 'link' === $hidebutton ) {
212
+ + $hide = ' link="' . __( '(Un)Subscribe to Posts', 'subscribe2' ) . '"';
213
+ }
214
+ $postid = '';
215
+ - if ( !empty($postto) ) {
216
+ - $postid = " id=\"" . $postto . "\"";
217
+ + if ( ! empty( $postto ) ) {
218
+ + $postid = ' id="' . $postto . '"';
219
+ }
220
+ - $size = " size=\"" . $textbox_size . "\"";
221
+ + $size = ' size="' . $textbox_size . '"';
222
+ $nojs = '';
223
+ if ( $js ) {
224
+ - $nojs = " nojs=\"true\"";
225
+ + $nojs = ' nojs="true"';
226
+ }
227
+ if ( $noantispam ) {
228
+ - $noantispam = " noantispam=\"true\"";
229
+ + $noantispam = ' noantispam="true"';
230
+ }
231
+ if ( $nowrap ) {
232
+ - $nowrap = " wrap=\"false\"";
233
+ + $nowrap = ' wrap="false"';
234
+ }
235
+ - $shortcode = "[subscribe2" . $hide . $postid . $size . $nojs . $noantispam . $nowrap . "]";
236
+ + $shortcode = '[subscribe2' . $hide . $postid . $size . $nojs . $noantispam . $nowrap . ']';
237
+ echo $args['before_widget'];
238
+ - if ( !empty($title) ) {
239
+ - echo $args['before_title'] . $title . $args['after_title'];
240
+ + if ( ! empty( $title ) ) {
241
+ + echo $args['before_title'] . esc_attr( $title ) . $args['after_title'];
242
+ }
243
+ - echo "<div class=\"" . $div . "\">";
244
+ + echo '<div class="' . esc_attr( $div ) . '">';
245
+ $content = do_shortcode( $shortcode );
246
+ - if ( !empty($widgetprecontent) ) {
247
+ - echo $widgetprecontent;
248
+ + if ( ! empty( $widgetprecontent ) ) {
249
+ + echo wp_kses( $widgetprecontent, 'post' );
250
+ }
251
+ echo $content;
252
+ - if ( !empty($widgetpostcontent) ) {
253
+ - echo $widgetpostcontent;
254
+ + if ( ! empty( $widgetpostcontent ) ) {
255
+ + echo wp_kses( $widgetpostcontent, 'post' );
256
+ }
257
+ - echo "</div>";
258
+ + echo '</div>';
259
+ echo $args['after_widget'];
260
+ }
261
+
262
+ @@ -65,18 +65,18 @@
263
+ /**
264
+ Saves the widgets settings.
265
+ */
266
+ - function update($new_instance, $old_instance) {
267
+ + function update( $new_instance, $old_instance ) {
268
+ $instance = $old_instance;
269
+ - $instance['title'] = strip_tags(stripslashes($new_instance['title']));
270
+ - $instance['div'] = strip_tags(stripslashes($new_instance['div']));
271
+ - $instance['widgetprecontent'] = stripslashes($new_instance['widgetprecontent']);
272
+ - $instance['widgetpostcontent'] = stripslashes($new_instance['widgetpostcontent']);
273
+ - $instance['size'] = intval(stripslashes($new_instance['size']));
274
+ - $instance['hidebutton'] = strip_tags(stripslashes($new_instance['hidebutton']));
275
+ - $instance['postto'] = stripslashes($new_instance['postto']);
276
+ - $instance['js'] = stripslashes($new_instance['js']);
277
+ - $instance['noantispam'] = stripslashes($new_instance['noantispam']);
278
+ - $instance['nowrap'] = stripslashes($new_instance['nowrap']);
279
+ + $instance['title'] = strip_tags( stripslashes( $new_instance['title'] ) );
280
+ + $instance['div'] = strip_tags( stripslashes( $new_instance['div'] ) );
281
+ + $instance['widgetprecontent'] = stripslashes( $new_instance['widgetprecontent'] );
282
+ + $instance['widgetpostcontent'] = stripslashes( $new_instance['widgetpostcontent'] );
283
+ + $instance['size'] = intval( stripslashes( $new_instance['size'] ) );
284
+ + $instance['hidebutton'] = strip_tags( stripslashes( $new_instance['hidebutton'] ) );
285
+ + $instance['postto'] = stripslashes( $new_instance['postto'] );
286
+ + $instance['js'] = stripslashes( $new_instance['js'] );
287
+ + $instance['noantispam'] = stripslashes( $new_instance['noantispam'] );
288
+ + $instance['nowrap'] = stripslashes( $new_instance['nowrap'] );
289
+
290
+ return $instance;
291
+ }
292
+ @@ -84,72 +84,72 @@
293
+ /**
294
+ Creates the edit form for the widget.
295
+ */
296
+ - function form($instance) {
297
+ + function form( $instance ) {
298
+ // set some defaults, getting any old options first
299
+ - $options = get_option('widget_subscribe2widget');
300
+ - if ( $options === false ) {
301
+ - $defaults = array('title' => 'Subscribe2', 'div' => 'search', 'widgetprecontent' => '', 'widgetpostcontent' => '', 'size' => 20, 'hidebutton' => 'none', 'postto' => '', 'js' => '', 'noantispam' => '', 'nowrap' => '');
302
+ + $options = get_option( 'widget_subscribe2widget' );
303
+ + if ( false === $options ) {
304
+ + $defaults = array( 'title' => 'Subscribe2', 'div' => 'search', 'widgetprecontent' => '', 'widgetpostcontent' => '', 'size' => 20, 'hidebutton' => 'none', 'postto' => '', 'js' => '', 'noantispam' => '', 'nowrap' => '' );
305
+ } else {
306
+ - $defaults = array('title' => $options['title'], 'div' => $options['div'], 'widgetprecontent' => $options['widgetprecontent'], 'widgetpostcontent' => $options['widgetpostcontent'], 'size' => $options['size'], 'hidebutton' => $options['hidebutton'], 'postto' => $options['postto'], 'js' => $options['js'], 'noantispam' => $options['noantispam'], 'nowrap' => $options['nowrap']);
307
+ - delete_option('widget_subscribe2widget');
308
+ + $defaults = array( 'title' => $options['title'], 'div' => $options['div'], 'widgetprecontent' => $options['widgetprecontent'], 'widgetpostcontent' => $options['widgetpostcontent'], 'size' => $options['size'], 'hidebutton' => $options['hidebutton'], 'postto' => $options['postto'], 'js' => $options['js'], 'noantispam' => $options['noantispam'], 'nowrap' => $options['nowrap'] );
309
+ + delete_option( 'widget_subscribe2widget' );
310
+ }
311
+ // code to obtain old settings too
312
+ - $instance = wp_parse_args( (array) $instance, $defaults);
313
+ + $instance = wp_parse_args( (array) $instance, $defaults );
314
+
315
+ - $title = htmlspecialchars($instance['title'], ENT_QUOTES);
316
+ - $div = htmlspecialchars($instance['div'], ENT_QUOTES);
317
+ - $widgetprecontent = htmlspecialchars($instance['widgetprecontent'], ENT_QUOTES);
318
+ - $widgetpostcontent = htmlspecialchars($instance['widgetpostcontent'], ENT_QUOTES);
319
+ - $size = htmlspecialchars($instance['size'], ENT_QUOTES);
320
+ - $hidebutton = htmlspecialchars($instance['hidebutton'], ENT_QUOTES);
321
+ - $postto = htmlspecialchars($instance['postto'], ENT_QUOTES);
322
+ - $js = htmlspecialchars($instance['js'], ENT_QUOTES);
323
+ - $noantispam = htmlspecialchars($instance['noantispam'], ENT_QUOTES);
324
+ - $nowrap = htmlspecialchars($instance['nowrap'], ENT_QUOTES);
325
+ + $title = htmlspecialchars( $instance['title'], ENT_QUOTES );
326
+ + $div = htmlspecialchars( $instance['div'], ENT_QUOTES );
327
+ + $widgetprecontent = htmlspecialchars( $instance['widgetprecontent'], ENT_QUOTES );
328
+ + $widgetpostcontent = htmlspecialchars( $instance['widgetpostcontent'], ENT_QUOTES );
329
+ + $size = htmlspecialchars( $instance['size'], ENT_QUOTES );
330
+ + $hidebutton = htmlspecialchars( $instance['hidebutton'], ENT_QUOTES );
331
+ + $postto = htmlspecialchars( $instance['postto'], ENT_QUOTES );
332
+ + $js = htmlspecialchars( $instance['js'], ENT_QUOTES );
333
+ + $noantispam = htmlspecialchars( $instance['noantispam'], ENT_QUOTES );
334
+ + $nowrap = htmlspecialchars( $instance['nowrap'], ENT_QUOTES );
335
+
336
+ global $wpdb, $mysubscribe2;
337
+ $sql = "SELECT ID, post_title FROM $wpdb->posts WHERE post_type='page' AND post_status='publish'";
338
+
339
+ - echo "<div>\r\n";
340
+ - echo "<p><label for=\"" . $this->get_field_id('title') . "\">" . __('Title', 'subscribe2') . ":\r\n";
341
+ - echo "<input class=\"widefat\" id=\"" . $this->get_field_id('title') . "\" name=\"" . $this->get_field_name('title') . "\" type=\"text\" value=\"" . $title . "\" /></label></p>\r\n";
342
+ - echo "<p><label for=\"" . $this->get_field_id('div') . "\">" . __('Div class name', 'subscribe2') . ":\r\n";
343
+ - echo "<input class=\"widefat\" id=\"" . $this->get_field_id('div') . "\" name=\"" . $this->get_field_name('div') . "\" type=\"text\" value=\"" . $div . "\" /></label></p>\r\n";
344
+ - echo "<p><label for=\"" . $this->get_field_id('widgetprecontent') . "\">" . __('Pre-Content', 'subscribe2') . ":\r\n";
345
+ - echo "<textarea class=\"widefat\" id=\"" . $this->get_field_id('widgetprecontent') . "\" name=\"" . $this->get_field_name('widgetprecontent') . "\" rows=\"2\" cols=\"25\">" . $widgetprecontent . "</textarea></label></p>\r\n";
346
+ - echo "<p><label for=\"" . $this->get_field_id('widgetpostcontent') . "\">" . __('Post-Content', 'subscribe2') . ":\r\n";
347
+ - echo "<textarea class=\"widefat\" id=\"" . $this->get_field_id('widgetpostcontent') . "\" name=\"" . $this->get_field_name('widgetpostcontent') . "\" rows=\"2\" cols=\"25\">" . $widgetpostcontent . "</textarea></label></p>\r\n";
348
+ - echo "<p><label for=\"" . $this->get_field_id('size') . "\">" . __('Text Box Size', 'subscribe2') . ":\r\n";
349
+ - echo "<input class=\"widefat\" id=\"" . $this->get_field_id('size') . "\" name=\"" . $this->get_field_name('size') . "\" type=\"text\" value=\"" . $size . "\" /></label></p>\r\n";
350
+ - echo "<p>" . __('Display options', 'subscribe2') . ":<br />\r\n";
351
+ - echo "<label for=\"" . $this->get_field_id('hidebutton') . "complete\"><input id=\"" . $this->get_field_id('hidebutton') . "complete\" name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"none\"". checked('none', $hidebutton, false) . "/> " . __('Show complete form', 'subscribe2') . "</label>\r\n";
352
+ - echo "<br /><label for=\"" . $this->get_field_id('hidebutton') . "subscribe\"><input id=\"" . $this->get_field_id('hidebutton') . "subscribe\" name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"subscribe\"". checked('subscribe', $hidebutton, false) . "/> " . __('Hide Subscribe button', 'subscribe2') . "</label>\r\n";
353
+ - echo "<br /><label for=\"" . $this->get_field_id('hidebutton') . "unsubscribe\"><input id=\"" . $this->get_field_id('hidebutton') . "unsubscribe\" name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"unsubscribe\"". checked('unsubscribe', $hidebutton, false) . "/> " . __('Hide Unsubscribe button', 'subscribe2') . "</label>\r\n";
354
+ - if ( '1' == $mysubscribe2->subscribe2_options['ajax'] ) {
355
+ - echo "<br /><label for=\"" . $this->get_field_id('hidebutton') . "ajax\"><input id=\"" . $this->get_field_id('hidebutton') . "ajax\" name=\"" . $this->get_field_name('hidebutton') . "\" type=\"radio\" value=\"link\"". checked('link', $hidebutton, false) . "/> " . __('Show as link', 'subscribe2') . "</label>\r\n";
356
+ + echo '<div>' . "\r\n";
357
+ + echo '<p><label for="'. esc_attr( $this->get_field_id( 'title' ) ) . '">' . __( 'Title', 'subscribe2' ) . ':' . "\r\n";
358
+ + echo '<input class="widefat" id="' . esc_attr( $this->get_field_id( 'title' ) ) . '" name="' . esc_attr( $this->get_field_name( 'title' ) ) . '" type="text" value="' . esc_html__( $title ) . '" /></label></p>' . "\r\n";
359
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'div' ) ) . '">' . __( 'Div class name', 'subscribe2' ) . ':' . "\r\n";
360
+ + echo '<input class="widefat" id="' . esc_attr( $this->get_field_id( 'div' ) ) . '" name="' . esc_attr( $this->get_field_name( 'div' ) ) . '" type="text" value="' . esc_html__( $div ) . '" /></label></p>' . "\r\n";
361
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'widgetprecontent' ) ) . '">' . esc_html__( 'Pre-Content', 'subscribe2' ) . ':' . "\r\n";
362
+ + echo '<textarea class="widefat" id="' . esc_attr( $this->get_field_id( 'widgetprecontent' ) ) . '" name="' . esc_attr( $this->get_field_name( 'widgetprecontent' ) ) . '" rows="2" cols="25">' . esc_html__( $widgetprecontent ) . '</textarea></label></p>' . "\r\n";
363
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'widgetpostcontent' ) ) . '">' . __( 'Post-Content', 'subscribe2' ) . ':' . "\r\n";
364
+ + echo '<textarea class="widefat" id="' . esc_attr( $this->get_field_id( 'widgetpostcontent' ) ) . '" name="' . esc_attr( $this->get_field_name( 'widgetpostcontent' ) ) . '" rows="2" cols="25">' . esc_html__( $widgetpostcontent ) . '</textarea></label></p>' . "\r\n";
365
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'size' ) ) . '">' . esc_html__( 'Text Box Size', 'subscribe2' ) . ':' . "\r\n";
366
+ + echo '<input class="widefat" id="' . esc_attr( $this->get_field_id( 'size' ) ) . '" name="' . esc_attr( $this->get_field_name( 'size' ) ) . '" type="text" value="' . esc_html__( $size ) . '" /></label></p>' . "\r\n";
367
+ + echo '<p>' . __( 'Display options', 'subscribe2' ) . ':<br />' . "\r\n";
368
+ + echo '<label for="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'complete"><input id="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'complete" name="' . esc_attr( $this->get_field_name( 'hidebutton' ) ) . '" type="radio" value="none"'. checked( 'none', $hidebutton, false ) . '/> ' . esc_html__( 'Show complete form', 'subscribe2' ) . '</label>' . "\r\n";
369
+ + echo '<br /><label for="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'subscribe"><input id="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'subscribe" name="' . esc_attr( $this->get_field_name( 'hidebutton' ) ) . '" type="radio" value="subscribe"' . checked( 'subscribe', $hidebutton, false ) . '/> ' . esc_html__( 'Hide Subscribe button', 'subscribe2' ) . '</label>' . "\r\n";
370
+ + echo '<br /><label for="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'unsubscribe"><input id="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'unsubscribe" name="' . esc_attr( $this->get_field_name( 'hidebutton' ) ) . '" type="radio" value="unsubscribe"'. checked( 'unsubscribe', $hidebutton, false ) . '/> ' . esc_html__( 'Hide Unsubscribe button', 'subscribe2' ) . '</label>' . "\r\n";
371
+ + if ( '1' === $mysubscribe2->subscribe2_options['ajax'] ) {
372
+ + echo '<br /><label for="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'ajax"><input id="' . esc_attr( $this->get_field_id( 'hidebutton' ) ) . 'ajax" name="' . esc_attr( $this->get_field_name( 'hidebutton' ) ) . '" type="radio" value="link"'. checked( 'link', $hidebutton, false ) . '/> ' . esc_html__( 'Show as link', 'subscribe2' ) . '</label>' . "\r\n";
373
+ }
374
+ - echo "</p>\r\n";
375
+ - echo "<p><label for=\"" . $this->get_field_id('postto') . "\">" . __('Post form content to page', 'subscribe2') . ":\r\n";
376
+ - echo "<select class=\"widefat\" id=\"" . $this->get_field_id('postto') . "\" name=\"" . $this->get_field_name('postto') . "\">\r\n";
377
+ - echo "<option value=\"" . $mysubscribe2->subscribe2_options['s2page'] . "\">" . __('Use Subscribe2 Default', 'subscribe2') . "</option>\r\n";
378
+ - echo "<option value=\"home\"";
379
+ - if ( $postto === 'home' ) { echo " selected=\"selected\""; }
380
+ - echo ">" . __('Use Home Page', 'subscribe2') . "</option>\r\n";
381
+ - echo "<option value=\"self\"";
382
+ - if ( $postto === 'self' ) { echo " selected=\"selected\""; }
383
+ - echo ">" . __('Use Referring Page', 'subscribe2') . "</option>\r\n";
384
+ - $mysubscribe2->pages_dropdown($postto);
385
+ - echo "</select></label></p>\r\n";
386
+ - echo "<p><label for=\"" . $this->get_field_id('js') . "\">" . __('Disable JavaScript', 'subscribe2') . ":\r\n";
387
+ - echo "<input id=\"" . $this->get_field_id('js') . "\" name =\"" . $this->get_field_name('js') . "\" value=\"true\" type=\"checkbox\"" . checked('true', $js, false) . "/>";
388
+ - echo "</label></p>\r\n";
389
+ - echo "<p><label for=\"" . $this->get_field_id('noantispam') . "\">" . __('Disable Anti-spam measures', 'subscribe2') . ":\r\n";
390
+ - echo "<input id=\"" . $this->get_field_id('noantispam') . "\" name =\"" . $this->get_field_name('noantispam') . "\" value=\"true\" type=\"checkbox\"" . checked('true', $noantispam, false) . "/>";
391
+ - echo "</label></p>\r\n";
392
+ - echo "<p><label for=\"" . $this->get_field_id('nowrap') . "\">" . __('Disable wrapping of form buttons', 'subscribe2') . ":\r\n";
393
+ - echo "<input id=\"" . $this->get_field_id('nowrap') . "\" name =\"" . $this->get_field_name('nowrap') . "\" value=\"true\" type=\"checkbox\"" . checked('true', $nowrap, false) . "/>";
394
+ - echo "</label></p>\r\n";
395
+ - echo "</div>\r\n";
396
+ + echo '</p>' . "\r\n";
397
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'postto' ) ) . '">' . esc_html__( 'Post form content to page', 'subscribe2' ) . ':' . "\r\n";
398
+ + echo '<select class="widefat" id="' . esc_attr( $this->get_field_id( 'postto' ) ) . '" name="' . esc_attr( $this->get_field_name( 'postto' ) ) . '">' . "\r\n";
399
+ + echo '<option value="' . esc_attr( $mysubscribe2->subscribe2_options['s2page'] ) . '">' . esc_html__( 'Use Subscribe2 Default', 'subscribe2' ) . '</option>' . "\r\n";
400
+ + echo '<option value="home"';
401
+ + if ( 'home' === $postto ) { echo ' selected="selected"'; }
402
+ + echo '>' . esc_html__( 'Use Home Page', 'subscribe2' ) . '</option>' . "\r\n";
403
+ + echo '<option value="self"';
404
+ + if ( 'self' === $postto ) { echo ' selected="selected"'; }
405
+ + echo '>' . esc_html__( 'Use Referring Page', 'subscribe2' ) . '</option>' . "\r\n";
406
+ + $mysubscribe2->pages_dropdown( $postto );
407
+ + echo '</select></label></p>' . "\r\n";
408
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'js' ) ) . '">' . esc_html__( 'Disable JavaScript', 'subscribe2' ) . ':' . "\r\n";
409
+ + echo '<input id="' . esc_attr( $this->get_field_id( 'js' ) ) . '" name ="' . esc_attr( $this->get_field_name( 'js' ) ) . '" value="true" type="checkbox"' . checked( 'true', $js, false ) . '/>';
410
+ + echo '</label></p>' . "\r\n";
411
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'noantispam' ) ) . '">' . esc_html__( 'Disable Anti-spam measures', 'subscribe2' ) . ':' . "\r\n";
412
+ + echo '<input id="' . esc_attr( $this->get_field_id( 'noantispam' ) ) . '" name ="' . esc_attr( $this->get_field_name( 'noantispam' ) ) . '" value="true" type="checkbox"' . checked( 'true', $noantispam, false ) . '/>';
413
+ + echo '</label></p>' . "\r\n";
414
+ + echo '<p><label for="' . esc_attr( $this->get_field_id( 'nowrap' ) ) . '">' . esc_html__( 'Disable wrapping of form buttons', 'subscribe2' ) . ':' . "\r\n";
415
+ + echo '<input id="' . esc_attr( $this->get_field_id( 'nowrap' ) ) . '" name ="' . esc_attr( $this->get_field_name( 'nowrap' ) ) . '" value="true" type="checkbox"' . checked( 'true', $nowrap, false ) . '/>';
416
+ + echo '</label></p>' . "\r\n";
417
+ + echo '</div>' . "\r\n";
418
+ }
419
+ } // End S2_Form_widget class
420
+ ?>
421
+
ChangeLog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 10.20.9 =
2
 
3
  * disable monetization by default
1
+ = 10.21 =
2
+
3
+ * Remove ReadyGraph from subscribe2
4
+
5
  = 10.20.9 =
6
 
7
  * disable monetization by default
ReadMe.txt CHANGED
@@ -4,10 +4,10 @@ Donate link: http://plugins.readygraph.com/donate/
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 4.3
7
- Stable tag: 10.20.9
8
  License: GPL3
9
 
10
- Sends a list of subscribers emails when you publish new posts. Automate user growth and revenue with ReadyGraph integration.
11
 
12
  == Description ==
13
 
@@ -23,13 +23,7 @@ Check official website for live demo http://plugins.readygraph.com/subscribe2/
23
  = Summary =
24
  Subscribe2 provides a comprehensive subscription management and email notification system for WordPress blogs that sends email notifications to a list of subscribers when you publish new content to your blog.
25
 
26
- This plugin has integrated [ReadyGraph](http://readygraph.com/), an optional set of features to automate the growth of your userbase. It helps you achieve the three goals of any web marketer: maximize conversion of site visitors to register for your email list, maximize viral referrals for your site, and maximize return visits to your site. To accomplish this, we have integrated a key set of growth features with this plugin:
27
- - Intelligent signup popup with email or one-click Facebook login
28
- - Full viral referral flow
29
- - Automated end user re-engagement emails including welcome emails, weekly digest, friend joined alert and more (all email campaigns are optional and configurable)
30
- - Enhanced email deliverabilty
31
- - Cloud-based analytics and data storage
32
- - Settings that allow you to turn on and off all ReadyGraph features.
33
 
34
  A full description of features is below.
35
 
@@ -48,52 +42,6 @@ The format of the email can also be customised for per-post notifications, Subsc
48
 
49
  If you want to send full content HTML emails to Public Subscribers too then upgrade to [Subscribe2 HTML](http://semperplugins.com/plugins/subscribe2-html/).
50
 
51
- = ReadyGraph App =
52
-
53
- ReadyGraph is a system that automates the growth of your site’s userbase. It is optimized to deliver audience growth and motivate users to consistently revisit your site.
54
-
55
- = Optimized Signup Form =
56
-
57
- ReadyGraph’s signup form with intelligent pop-up functionality and one-click login is designed to maximize signups to your email list. You can configure when the popup appears so as to maximize the likelihood that the user is engaged enough to register for your list.
58
-
59
- = Viral Friend Invites =
60
-
61
- ReadyGraph adds a friend invite process to your site’s signup flow. We then power the entire viral loop by sending email and Facebook invitations that encourage your visitors’ friends to signup for your site.
62
-
63
- = Automated Re-engagement Emails =
64
-
65
- ReadyGraph’s automated email system encourages visitors to return to your site. Users receive optimized emails such as a welcome email, re-engagement email, regular digest with new content from your blog, and social emails. All emails are configurable including the ability to turn on and off individual campaigns. We handle all sending to maximize deliverability.
66
-
67
- = Analytics =
68
-
69
- Track daily-new subscribers, daily invites, total traffic, and other key metrics that quantify growth and user engagement. ReadyGraph safely stores user data in the cloud so you can access data from anywhere.
70
-
71
- = Newsfeed =
72
-
73
- ReadyGraph’s newsfeed is an optional overlay on your site where your users can engage with others in your community and recommend your content or products to each other. It is like having a social network that engages users embedded on your site. Users can leave comments, ‘like’ comments left by other subscribers and ‘follow’ other subscribers. Subscribers will receive automated email updates based on these actions.
74
-
75
- = Content Voting and Ranking =
76
-
77
- ReadyGraph allows your subscribers to vote on your latest content. The top content from our network of sites is then ranked on UserBase.com by the number of votes that it has received in the past 7 days.
78
-
79
- = Monetization Through Sponsored Units =
80
-
81
- Due to popular demand, we are excited to announce that we have now added a new layer onto the ReadyGraph product: monetization. For quality sites with enough users and traffic to qualify, we will enable you to earn revenue through a set of elegant, unobtrusive sponsorship units.The ad units will be shown occasionally (much of the time they won't be noticeable) and are highly targeted based on user interests. Most importantly, they can be turned off or on at any time. In addition to helping qualifying sites support themselves, this initiative will allow us to continue to put resources towards enhancing the free features we offer each and every site owner. Sites qualify on the basis of quality and a minimum traffic threshold. You can view, adjust, or opt out through your site monetization settings page.
82
-
83
- = Want To Grow Even Faster? =
84
-
85
- Try [ReadyGraph premium](https://readygraph.com/accounts/payment/) for free to get these advanced features:
86
-
87
- 1. Monthly Promotion to 10,000 New Users
88
- 2. Unlimited New Blog Post Emails
89
- 3. Unlimited Viral Email Invites
90
- 4. Unlimited Facebook Invites
91
- 5. Many more premium features added all the time
92
-
93
- [Get it here!](https://readygraph.com/accounts/payment/)
94
-
95
-
96
- If you have questions or concerns contact us anytime at [info@readygraph.com](mailto:info@readygraph.com)
97
 
98
  == Installation ==
99
 
@@ -127,113 +75,6 @@ This token will automatically be replaced by dynamic subscription information an
127
 
128
  For detailed FAQ and other support visit [http://plugins.readygraph.com/subscribe2/faq/](http://plugins.readygraph.com/subscribe2/faq/)
129
 
130
- = ReadyGraph FAQ =
131
-
132
- = GENERAL QUESTIONS: =
133
-
134
- **What is ReadyGraph?**
135
-
136
- ReadyGraph is a tool that makes it easy for websites to grow and manage their user-base, by allowing/utilizing: **user sign-up**, through an optional notification tab and an intelligent pop-up, with one-click sign-up and social login options; **user friend invitations**, through the sign-up pop-up, or a sidebar button; **automated emails** (optional) that keep visitors coming back, such as welcome messages to greet new users, recent site updates/posts to keep them informed, gentle reminders for inactive users, and a weekly digest of new content; **mass emailing**, for fast communication to all your subscribers; **user-interaction**, through an optional comment-feed sidebar; **analytic tools**, to track new subscribers, daily visits, and other key metrics that quantify your website’s growth and user engagement.
137
-
138
- **How do I install ReadyGraph?**
139
-
140
- After installing this plug-in, you can activate the ReadyGraph features by connecting/signing-up for your ReadyGraph account.
141
-
142
- **How do I uninstall ReadyGraph?**
143
-
144
- You can deactivate the ReadyGraph features by navigating to the upper-right corner of the “ReadyGraph App” page, clicking the drop-down menu with your email address, and disconnecting your ReadyGraph account.
145
-
146
- **How do I reinstall ReadyGraph after I had deleted?**
147
-
148
- 1. Get the latest plugin update/reinstall the plugin.
149
- 2. Disable the plugin
150
- 3. Enable the plugin
151
-
152
- **Can I delay the sign-up pop-up?**
153
-
154
- Yes, you can delay the pop-up for up to 20 minutes; however, the most effective delay is only a few seconds. That ensures that users are engaged, before showing the pop-up to them.
155
-
156
- **How do I check my website’s stats?**
157
-
158
- You can check your website’s stats by clicking the “Insights” button at the upper-right corner of the “ReadyGraph App” page. There, you will find various metrics about your site growth.
159
-
160
- **Can I use both the pop-up and the form widget?**
161
-
162
- Yes, you can; they will not conflict with each other.
163
-
164
- **How do I contact someone for support, or to suggest a feature?**
165
-
166
- You can contact us at info@readygraph.com. We appreciate all feedback.
167
-
168
- **I’m having problems with the latest version of the plug-in; can I switch back to an older version?**
169
-
170
- Yes, just navigate to the “Developers” tab on the wordpress.org plug-in page, and select the version that works for you.
171
-
172
- **Does this plugin help me earn revenue?**
173
-
174
- Due to popular demand, we are excited to announce that we have now added a new layer onto the ReadyGraph product: monetization. For quality sites with enough users and traffic to qualify, we will enable you to earn revenue through a set of elegant, unobtrusive sponsorship units.The ad units will be shown occasionally (much of the time they won't be noticeable) and are highly targeted based on user interests. Most importantly, they can be turned off or on at any time. In addition to helping qualifying sites support themselves, this initiative will allow us to continue to put resources towards enhancing the free features we offer each and every site owner. Sites qualify on the basis of quality and a minimum traffic threshold. You can view, adjust, or opt out through your site monetization settings page.
175
-
176
- = ACCOUNT QUESTIONS: =
177
-
178
- **How do I change my account email address?**
179
-
180
- Contact us as info@readygraph.com.
181
-
182
- **How do I turn off email notifications from ReadyGraph?**
183
-
184
- You can turn them off via the account settings page on ReadyGraph.com.
185
-
186
- **How do I disconnect ReadyGraph from my site?**
187
-
188
- You can disconnect ReadyGraph from your site by navigating to the upper-right corner of the “ReadyGraph App” page in this plug-in, and clicking the drop-down menu with your email address on it; there will be an option there to disconnect ReadyGraph from your site.
189
-
190
- = CUSTOMIZATION QUESTIONS: =
191
-
192
- **Can I customize the pop-up?**
193
-
194
- Yes, you can choose a template that matches your site design, from the various templates available.
195
-
196
- **Can I customize the friend-invite form?**
197
-
198
- You can customize the text on the friend invite form to something that suits your website.
199
-
200
- **Can I customize my emails?**
201
-
202
- Yes, on the right side of the “ReadyGraph App” page, you will find a link to a page where you can Configure/Enable/Disable the various automated emails that you can send via ReadyGraph.
203
-
204
- = QUESTIONS ABOUT YOUR SUBSCRIBERS: =
205
-
206
- **How do I view my subscribers?**
207
-
208
- Clicking the “Insights” button at the top of the “ReadyGraph App” page of this plug-in will take you to a page where you can view a list of your subscribers.
209
-
210
- **How do I mail my subscribers?**
211
-
212
- On the right side of the “ReadyGraph App” page, you will find a link to a page where you can send mass emails to your subscribers.
213
-
214
- **Can I import a list of existing subscribers?**
215
-
216
- This is a feature currently under development and is scheduled to be released in our next update.
217
-
218
- **Can I export a list of my subscribers?**
219
-
220
- This is a feature currently under development and is scheduled to be released in our next update.
221
-
222
- **If I decide to stop using ReadyGraph, do I keep my subscribers?**
223
-
224
- Yes, contact us at info@readygraph.com for assistance.
225
-
226
- **Can I send automated emails/newsletters to my subscribers?**
227
-
228
- On the right side of the “ReadyGraph App” page, you will find a link to a page where you can Enable/Disable/Configure the various automated emails that you can send via ReadyGraph.
229
-
230
- **Is ReadyGraph necessary in order to use this plug-in?**
231
-
232
- No, it isn’t; you can use this plug-in without ReadyGraph features enabled, but you would be missing out on added growth opportunities.
233
-
234
- If you have questions or concerns, contact us anytime at [info@readygraph.com](mailto:info@readygraph.com)
235
-
236
-
237
  == Screenshots ==
238
  1. The Subscribe2->Mail Subscribers admin page generated by the plugin. http://plugins.readygraph.com/subscribe2/screenshots/
239
  2. The Subscribe2->Subscribers admin page generated by the plugin. http://plugins.readygraph.com/subscribe2/screenshots/
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 4.3
7
+ Stable tag: 10.21
8
  License: GPL3
9
 
10
+ Sends a list of subscribers emails when you publish new posts.
11
 
12
  == Description ==
13
 
23
  = Summary =
24
  Subscribe2 provides a comprehensive subscription management and email notification system for WordPress blogs that sends email notifications to a list of subscribers when you publish new content to your blog.
25
 
26
+ **ReadyGraph is removed from the plugin**
 
 
 
 
 
 
27
 
28
  A full description of features is below.
29
 
42
 
43
  If you want to send full content HTML emails to Public Subscribers too then upgrade to [Subscribe2 HTML](http://semperplugins.com/plugins/subscribe2-html/).
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  == Installation ==
47
 
75
 
76
  For detailed FAQ and other support visit [http://plugins.readygraph.com/subscribe2/faq/](http://plugins.readygraph.com/subscribe2/faq/)
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  == Screenshots ==
79
  1. The Subscribe2->Mail Subscribers admin page generated by the plugin. http://plugins.readygraph.com/subscribe2/screenshots/
80
  2. The Subscribe2->Subscribers admin page generated by the plugin. http://plugins.readygraph.com/subscribe2/screenshots/
admin/send_email.php CHANGED
@@ -96,11 +96,6 @@ echo "<div class=\"wrap\">";
96
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
97
  echo "<div id=\"icon-edit\" class=\"icon32\"></div>";
98
  }
99
- if( file_exists( plugin_dir_path( dirname(__FILE__) ).'readygraph-extension.php' )) {
100
- wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
101
- if (isset($_GET['readygraph_premium_notice']) && $_GET['readygraph_premium_notice'] == 'dismiss') update_option('readygraph_premium_notice',"false");
102
- if (get_option('readygraph_premium_notice','true') != "false"){
103
- echo '<div class="rg_info rg_message"><img src="'.S2URL.'extension/readygraph/assets/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Email Newsletter\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p><div class="aa_close" style="position: absolute;right: 15px;top: 12px;"><a href="//' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '&readygraph_premium_notice=dismiss"><img src="'.S2URL.'extension/readygraph/assets/dialog_close.png" style="width:12px;"></a></div></div>';}}
104
 
105
  echo "<h2>" . __('Send an email to subscribers', 'subscribe2') . "</h2>\r\n";
106
  echo "<form method=\"post\" enctype=\"multipart/form-data\">\r\n";
96
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
97
  echo "<div id=\"icon-edit\" class=\"icon32\"></div>";
98
  }
 
 
 
 
 
99
 
100
  echo "<h2>" . __('Send an email to subscribers', 'subscribe2') . "</h2>\r\n";
101
  echo "<form method=\"post\" enctype=\"multipart/form-data\">\r\n";
admin/settings.php CHANGED
@@ -158,12 +158,6 @@ if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
158
  echo "<div id=\"icon-options-general\" class=\"icon32\"></div>";
159
  }
160
 
161
- if( file_exists( plugin_dir_path( dirname(__FILE__) ).'readygraph-extension.php' )) {
162
- wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
163
- if (isset($_GET['readygraph_premium_notice']) && $_GET['readygraph_premium_notice'] == 'dismiss') update_option('readygraph_premium_notice',"false");
164
- if (get_option('readygraph_premium_notice','true') != "false"){
165
- echo '<div class="rg_info rg_message"><img src="'.S2URL.'extension/readygraph/assets/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Email Newsletter\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p><div class="aa_close" style="position: absolute;right: 15px;top: 12px;"><a href="//' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '&readygraph_premium_notice=dismiss"><img src="'.S2URL.'extension/readygraph/assets/dialog_close.png" style="width:12px;"></a></div></div>';}}
166
-
167
  $tabs = array('email' => __('Email Settings', 'subscribe2'),
168
  'templates' => __('Templates', 'subscribe2'),
169
  'registered' => __('Registered Users', 'subscribe2'),
158
  echo "<div id=\"icon-options-general\" class=\"icon32\"></div>";
159
  }
160
 
 
 
 
 
 
 
161
  $tabs = array('email' => __('Email Settings', 'subscribe2'),
162
  'templates' => __('Templates', 'subscribe2'),
163
  'registered' => __('Registered Users', 'subscribe2'),
admin/subscribers.php CHANGED
@@ -184,16 +184,6 @@ if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
184
  echo "<div id=\"icon-tools\" class=\"icon32\"></div>";
185
  }
186
 
187
- if( file_exists( plugin_dir_path( dirname(__FILE__) ).'readygraph-extension.php' )) {
188
- wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
189
- if (isset($_GET['readygraph_premium_notice']) && $_GET['readygraph_premium_notice'] == 'dismiss') update_option('readygraph_premium_notice',"false");
190
- if (get_option('readygraph_premium_notice','true') != "false"){
191
- echo '<div class="rg_info rg_message"><img src="'.S2URL.'extension/readygraph/assets/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Email Newsletter\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p><div class="aa_close" style="position: absolute;right: 15px;top: 12px;"><a href="//' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '&readygraph_premium_notice=dismiss"><img src="'.S2URL.'extension/readygraph/assets/dialog_close.png" style="width:12px;"></a></div></div>';}}
192
- /*
193
- if( file_exists(plugin_dir_path( __FILE__ ).'/readygraph-extension.php' )) {
194
- wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
195
-
196
- echo '<div class="rg_info rg_message"><img src="'.S2URL . 'include/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Subscribe2\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p></div>';}*/
197
  $tabs = array('public' => __('Public Subscribers', 'subscribe2'), 'registered' => __('Registered Subscribers', 'subscribe2'));
198
  echo "<h2 class=\"nav-tab-wrapper\">";
199
  foreach ( $tabs as $tab_key => $tab_caption ) {
184
  echo "<div id=\"icon-tools\" class=\"icon32\"></div>";
185
  }
186
 
 
 
 
 
 
 
 
 
 
 
187
  $tabs = array('public' => __('Public Subscribers', 'subscribe2'), 'registered' => __('Registered Subscribers', 'subscribe2'));
188
  echo "<h2 class=\"nav-tab-wrapper\">";
189
  foreach ( $tabs as $tab_key => $tab_caption ) {
admin/your_subscriptions.php CHANGED
@@ -95,11 +95,6 @@ echo "<div class=\"wrap\">";
95
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
96
  echo "<div id=\"icon-users\" class=\"icon32\"></div>";
97
  }
98
- if( file_exists( plugin_dir_path( dirname(__FILE__) ).'readygraph-extension.php' )) {
99
- wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
100
- if (isset($_GET['readygraph_premium_notice']) && $_GET['readygraph_premium_notice'] == 'dismiss') update_option('readygraph_premium_notice',"false");
101
- if (get_option('readygraph_premium_notice','true') != "false"){
102
- echo '<div class="rg_info rg_message"><img src="'.S2URL.'extension/readygraph/assets/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Email Newsletter\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p><div class="aa_close" style="position: absolute;right: 15px;top: 12px;"><a href="//' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . '&readygraph_premium_notice=dismiss"><img src="'.S2URL.'extension/readygraph/assets/dialog_close.png" style="width:12px;"></a></div></div>';}}
103
 
104
  echo "<h2>" . __('Notification Settings', 'subscribe2') . "</h2>\r\n";
105
  if ( isset($_GET['email']) ) {
95
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
96
  echo "<div id=\"icon-users\" class=\"icon32\"></div>";
97
  }
 
 
 
 
 
98
 
99
  echo "<h2>" . __('Notification Settings', 'subscribe2') . "</h2>\r\n";
100
  if ( isset($_GET['email']) ) {
classes/class-s2-admin.php CHANGED
@@ -5,35 +5,6 @@ class s2_admin extends s2class {
5
  Hook the menu
6
  */
7
  function admin_menu() {
8
- if( file_exists(dirname(plugin_dir_path( __FILE__ ) ).'/readygraph-extension.php') && (get_option('readygraph_deleted') != "true")) {
9
- global $s2_menu_slug;
10
- add_menu_page(__('Subscribe2', 'subscribe2'), __('Subscribe2', 'subscribe2'), apply_filters('s2_capability', "read", 'user'),$s2_menu_slug, NULL, S2URL . 'include/email_edit.png');
11
-
12
- $s2readygraph = add_submenu_page($s2_menu_slug, __('Readygraph App', 'subscribe2'), __('Readygraph App', 'subscribe2'), apply_filters('s2_capability', "manage_options", 'readygraph'), $s2_menu_slug, array(&$this, 'readygraph_menu'), S2URL . 'include/email_edit.png');
13
-
14
- $s2user = add_submenu_page($s2_menu_slug, __('Your Subscriptions', 'subscribe2'), __('Your Subscriptions', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', array(&$this, 'user_menu'));
15
- add_action("admin_print_scripts-$s2user", array(&$this, 'checkbox_form_js'));
16
- add_action("admin_print_styles-$s2user", array(&$this, 'user_admin_css'));
17
- add_action('load-' . $s2user, array(&$this, 'user_help'));
18
-
19
-
20
- //add_action("admin_print_scripts-$s2readygraph", array(&$this, 'readygraph_js'));
21
-
22
- $s2subscribers = add_submenu_page($s2_menu_slug, __('Subscribers', 'subscribe2'), __('Subscribers', 'subscribe2'), apply_filters('s2_capability', "manage_options", 'manage'), 's2_tools', array(&$this, 'subscribers_menu'));
23
- add_action("admin_print_scripts-$s2subscribers", array(&$this, 'checkbox_form_js'));
24
- add_action('load-' . $s2subscribers, array(&$this, 'subscribers_help'));
25
-
26
- $s2settings = add_submenu_page($s2_menu_slug, __('Settings', 'subscribe2'), __('Settings', 'subscribe2'), apply_filters('s2_capability', "manage_options", 'settings'), 's2_settings', array(&$this, 'settings_menu'));
27
- add_action("admin_print_scripts-$s2settings", array(&$this, 'checkbox_form_js'));
28
- add_action("admin_print_scripts-$s2settings", array(&$this, 'option_form_js'));
29
- add_filter('plugin_row_meta', array(&$this, 'plugin_links'), 10, 2);
30
- add_action('load-' . $s2settings, array(&$this, 'settings_help'));
31
-
32
- $s2mail = add_submenu_page($s2_menu_slug, __('Send Email', 'subscribe2'), __('Send Email', 'subscribe2'), apply_filters('s2_capability', "publish_posts", 'send'), 's2_posts', array(&$this, 'write_menu'));
33
- add_action('load-' . $s2mail, array(&$this, 'mail_help'));
34
- $s2readygraph = add_submenu_page($s2_menu_slug, __('Go Premium', 'subscribe2'), __('Go Premium', 'subscribe2'), apply_filters('s2_capability', "manage_options", 'readygraph'), 'readygraph-go-premium', array(&$this, 'readygraph_premium'));
35
- }
36
- else {
37
  add_menu_page(__('Subscribe2', 'subscribe2'), __('Subscribe2', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', NULL, S2URL . 'include/email_edit.png');
38
 
39
  $s2user = add_submenu_page('s2', __('Your Subscriptions', 'subscribe2'), __('Your Subscriptions', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', array(&$this, 'user_menu'), S2URL . 'include/email_edit.png');
@@ -41,8 +12,6 @@ class s2_admin extends s2class {
41
  add_action("admin_print_styles-$s2user", array(&$this, 'user_admin_css'));
42
  add_action('load-' . $s2user, array(&$this, 'user_help'));
43
 
44
- //add_action("admin_print_scripts-$s2readygraph", array(&$this, 'readygraph_js'));
45
-
46
  $s2subscribers = add_submenu_page('s2', __('Subscribers', 'subscribe2'), __('Subscribers', 'subscribe2'), apply_filters('s2_capability', "manage_options", 'manage'), 's2_tools', array(&$this, 'subscribers_menu'));
47
  add_action("admin_print_scripts-$s2subscribers", array(&$this, 'checkbox_form_js'));
48
  add_action('load-' . $s2subscribers, array(&$this, 'subscribers_help'));
@@ -55,7 +24,6 @@ class s2_admin extends s2class {
55
 
56
  $s2mail = add_submenu_page('s2', __('Send Email', 'subscribe2'), __('Send Email', 'subscribe2'), apply_filters('s2_capability', "publish_posts", 'send'), 's2_posts', array(&$this, 'write_menu'));
57
  add_action('load-' . $s2mail, array(&$this, 'mail_help'));
58
- }
59
  $s2nonce = wp_hash('subscribe2');
60
  } // end admin_menu()
61
 
@@ -184,21 +152,6 @@ class s2_admin extends s2class {
184
  wp_enqueue_script('s2_date_time');
185
  } // end option_form_js()
186
 
187
- /**
188
- Enqueue jQuery for ReadyGraph
189
- */
190
- /* function readygraph_js() {
191
- wp_enqueue_script('jquery');
192
- wp_register_script('s2_readygraph', S2URL . 'include/s2_readygraph' . $this->script_debug . '.js', array('jquery'), '1.0');
193
- wp_enqueue_script('s2_readygraph');
194
- wp_localize_script('s2_readygraph', 'objectL10n', array(
195
- 'emailempty' => __('Email is empty!', 'subscribe2'),
196
- 'passwordempty' => __('Password is empty!', 'subscribe2'),
197
- 'urlempty' => __('Site URL is empty!', 'subscribe2'),
198
- 'passwordmatch' => __('Password is not matching!', 'subscribe2')
199
- ) );
200
- } // end readygraph_js()
201
- */
202
  /**
203
  Adds a links directly to the settings page from the plugin page
204
  */
@@ -219,59 +172,7 @@ class s2_admin extends s2class {
219
  require_once(S2PATH . 'admin/subscribers.php');
220
  } // end subscribers_menu()
221
 
222
- /**
223
- Our ReadyGraph API page
224
- */
225
- function readygraph_menu() {
226
- global $wpdb;
227
- $current_page = isset($_GET['ac']) ? $_GET['ac'] : '';
228
- switch($current_page)
229
- {
230
- case 'signup-popup':
231
- include(S2PATH . 'extension/readygraph/signup-popup.php');
232
- break;
233
- case 'go-premium':
234
- include(S2PATH . 'extension/readygraph/go-premium.php');
235
- break;
236
- case 'social-feed':
237
- include(S2PATH . 'extension/readygraph/social-feed.php');
238
- break;
239
- case 'site-profile':
240
- include(S2PATH . 'extension/readygraph/site-profile.php');
241
- break;
242
- case 'customize-emails':
243
- include(S2PATH . 'extension/readygraph/customize-emails.php');
244
- break;
245
- case 'deactivate-readygraph':
246
- include(S2PATH . 'extension/readygraph/deactivate-readygraph.php');
247
- break;
248
- case 'welcome-email':
249
- include(S2PATH . 'extension/readygraph/welcome-email.php');
250
- break;
251
- case 'retention-email':
252
- include(S2PATH . 'extension/readygraph/retention-email.php');
253
- break;
254
- case 'invitation-email':
255
- include(S2PATH . 'extension/readygraph/invitation-email.php');
256
- break;
257
- case 'faq':
258
- include(S2PATH . 'extension/readygraph/faq.php');
259
- break;
260
- case 'monetization-settings':
261
- include(S2PATH . 'extension/readygraph/monetization.php');
262
- break;
263
- default:
264
- include(S2PATH . 'extension/readygraph/admin.php');
265
- break;
266
- }
267
- } // end readygraph_menu()
268
- /**
269
- Our Readygraph Premium Page
270
- */
271
- function readygraph_premium() {
272
- include(S2PATH . 'extension/readygraph/go-premium.php');
273
- } // end settings_menu()
274
- /**
275
  Our settings page
276
  */
277
  function settings_menu() {
@@ -341,18 +242,7 @@ class s2_admin extends s2class {
341
  }
342
  } // end widget_s2_counter_css_and_js()
343
 
344
- /**
345
- Function to to handle activate redirect
346
- */
347
- /*function on_plugin_activated_redirect(){
348
- $setting_url="admin.php?page=s2_readygraph";
349
 
350
- if ( get_option('s2_do_activation_redirect', false) ) {
351
- delete_option('s2_do_activation_redirect');
352
- wp_redirect($setting_url);
353
- }
354
- } // end on_plugin_activated_redirect()
355
- */
356
  /* ===== meta box functions to allow per-post override ===== */
357
  /**
358
  Create meta box on write pages
5
  Hook the menu
6
  */
7
  function admin_menu() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  add_menu_page(__('Subscribe2', 'subscribe2'), __('Subscribe2', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', NULL, S2URL . 'include/email_edit.png');
9
 
10
  $s2user = add_submenu_page('s2', __('Your Subscriptions', 'subscribe2'), __('Your Subscriptions', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', array(&$this, 'user_menu'), S2URL . 'include/email_edit.png');
12
  add_action("admin_print_styles-$s2user", array(&$this, 'user_admin_css'));
13
  add_action('load-' . $s2user, array(&$this, 'user_help'));
14
 
 
 
15
  $s2subscribers = add_submenu_page('s2', __('Subscribers', 'subscribe2'), __('Subscribers', 'subscribe2'), apply_filters('s2_capability', "manage_options", 'manage'), 's2_tools', array(&$this, 'subscribers_menu'));
16
  add_action("admin_print_scripts-$s2subscribers", array(&$this, 'checkbox_form_js'));
17
  add_action('load-' . $s2subscribers, array(&$this, 'subscribers_help'));
24
 
25
  $s2mail = add_submenu_page('s2', __('Send Email', 'subscribe2'), __('Send Email', 'subscribe2'), apply_filters('s2_capability', "publish_posts", 'send'), 's2_posts', array(&$this, 'write_menu'));
26
  add_action('load-' . $s2mail, array(&$this, 'mail_help'));
 
27
  $s2nonce = wp_hash('subscribe2');
28
  } // end admin_menu()
29
 
152
  wp_enqueue_script('s2_date_time');
153
  } // end option_form_js()
154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  /**
156
  Adds a links directly to the settings page from the plugin page
157
  */
172
  require_once(S2PATH . 'admin/subscribers.php');
173
  } // end subscribers_menu()
174
 
175
+ /**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  Our settings page
177
  */
178
  function settings_menu() {
242
  }
243
  } // end widget_s2_counter_css_and_js()
244
 
 
 
 
 
 
245
 
 
 
 
 
 
 
246
  /* ===== meta box functions to allow per-post override ===== */
247
  /**
248
  Create meta box on write pages
classes/class-s2-core.php CHANGED
@@ -51,9 +51,6 @@ class s2class {
51
  }
52
  }
53
 
54
- // option to store ReadyGraph API Key
55
- add_option('readygraph_api', "include your api_key");
56
-
57
  // safety check if options exist and if not create them
58
  if ( !is_array($this->subscribe2_options) ) {
59
  $this->reset();
51
  }
52
  }
53
 
 
 
 
54
  // safety check if options exist and if not create them
55
  if ( !is_array($this->subscribe2_options) ) {
56
  $this->reset();
classes/class-s2-frontend.php CHANGED
@@ -112,19 +112,11 @@ class s2_frontend extends s2class {
112
  $antispam_text .= "</span>";
113
  }
114
 
115
- // ReadyGraph end user message
116
- $readygraph_message = '';
117
- $readygraph_api = get_option('readygraph_application_id');
118
- $readygraph_access_token = get_option('readygraph_access_token');
119
- if($readygraph_api && strlen($readygraph_api) > 0 && $readygraph_access_token && strlen($readygraph_access_token) > 0) {
120
- $readygraph_message = "<p style='max-width:180px;font-size: 10px;'>" . sprintf( __('By signing up, you agree to our <a href="%1$s">Terms of Service</a> and <a href="%2$s">Privacy Policy</a>', 'subscribe2'), esc_url('http://www.readygraph.com/tos'), esc_url('http://readygraph.com/privacy/') ) . ".</p>";
121
- }
122
-
123
  // build default form
124
  if ( 'true' == strtolower($args['nojs']) ) {
125
- $this->form = "<form method=\"post\"" . $action . "><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" />" . $antispam_text . "<p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . $value . "\" size=\"" . $args['size'] . "\" />" . $wrap_text . $this->input_form_action . "</p>" . $readygraph_message . "</form>";
126
  } else {
127
- $this->form = "<form method=\"post\"" . $action . "><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" />" . $antispam_text . "<p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . $value . "\" size=\"" . $args['size'] . "\" onfocus=\"if (this.value == '" . $value . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . $value . "';}\" />" . $wrap_text . $this->input_form_action . "</p>" . $readygraph_message . "</form>\r\n";
128
  }
129
  $this->s2form = apply_filters('s2_form', $this->form);
130
 
@@ -147,26 +139,6 @@ class s2_frontend extends s2class {
147
  } elseif ( $this->is_barred($this->email) ) {
148
  $this->s2form = $this->form . $this->barred_domain;
149
  } else {
150
- $readygraph_api = get_option('readygraph_application_id');
151
- if($readygraph_api && strlen($readygraph_api) > 0) {
152
- $rg_url = 'https://readygraph.com/api/v1/wordpress-enduser/';
153
- $postdata = http_build_query(
154
- array(
155
- 'email' => $this->email,
156
- 'app_id' => $readygraph_api
157
- )
158
- );
159
-
160
- $opts = array('http' =>
161
- array(
162
- 'method' => 'POST',
163
- 'header' => 'Content-type: application/x-www-form-urlencoded',
164
- 'content' => $postdata
165
- )
166
- );
167
- $context = stream_context_create($opts);
168
- $result = file_get_contents($rg_url,false, $context);
169
- }
170
  $this->ip = $_POST['ip'];
171
  if ( is_int($this->lockout) && $this->lockout > 0 ) {
172
  $date = date('H:i:s.u', $this->lockout);
112
  $antispam_text .= "</span>";
113
  }
114
 
 
 
 
 
 
 
 
 
115
  // build default form
116
  if ( 'true' == strtolower($args['nojs']) ) {
117
+ $this->form = "<form method=\"post\"" . $action . "><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" />" . $antispam_text . "<p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . $value . "\" size=\"" . $args['size'] . "\" />" . $wrap_text . $this->input_form_action . "</p></form>";
118
  } else {
119
+ $this->form = "<form method=\"post\"" . $action . "><input type=\"hidden\" name=\"ip\" value=\"" . $_SERVER['REMOTE_ADDR'] . "\" />" . $antispam_text . "<p><label for=\"s2email\">" . __('Your email:', 'subscribe2') . "</label><br /><input type=\"text\" name=\"email\" id=\"s2email\" value=\"" . $value . "\" size=\"" . $args['size'] . "\" onfocus=\"if (this.value == '" . $value . "') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = '" . $value . "';}\" />" . $wrap_text . $this->input_form_action . "</p></form>\r\n";
120
  }
121
  $this->s2form = apply_filters('s2_form', $this->form);
122
 
139
  } elseif ( $this->is_barred($this->email) ) {
140
  $this->s2form = $this->form . $this->barred_domain;
141
  } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  $this->ip = $_POST['ip'];
143
  if ( is_int($this->lockout) && $this->lockout > 0 ) {
144
  $date = date('H:i:s.u', $this->lockout);
extension/readygraph/admin.php DELETED
@@ -1,259 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
-
16
- include("header.php");
17
- /*if (!get_option('readygraph_application_id') || strlen(get_option('readygraph_application_id')) <= 0)s2_rg_connect();*/
18
- if(isset($_GET["tutorial"]) && $_GET["tutorial"] == "true"){update_option('readygraph_tutorial',"true");}
19
- else{update_option('readygraph_tutorial',"false");}
20
- if(isset($_GET["readygraph_upgrade_notice"]) && $_GET["readygraph_upgrade_notice"] == "dismiss") {update_option('readygraph_upgrade_notice', 'false');}
21
- if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "bottom-right"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'false');}
22
- if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "center"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'true');}
23
- if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "disabled"){update_option('readygraph_enable_notification', 'false');update_option('readygraph_enable_popup', 'false');}
24
- if(isset($_GET["popup_delay"])){update_option('readygraph_delay', intval($_GET["popup_delay"]));}
25
- if (!get_option('readygraph_plan') || strlen(get_option('readygraph_plan')) <= 0)update_option('readygraph_tutorial',"true");
26
- ?>
27
-
28
- <form method="post" id="myForm">
29
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
30
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
31
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
32
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
33
- <input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
34
- <input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
35
- <input type="hidden" name="readygraph_enable_popup" value="<?php echo get_option('readygraph_enable_popup', 'true') ?>">
36
-
37
- <div>
38
- <div class="authenticate" style="display: none;">
39
- <div class="wrap1" style="min-height: 600px;">
40
- <div id="icon-plugins" class="icon32"></div>
41
- <h2>We have enhanced <?php echo $s2_main_plugin_title ?> with ReadyGraph's Growth/Revenue Engine</h2>
42
- <p style="display:none;color:red;" id="error"></p>
43
- <div class="register-left">
44
- <div class="alert" style="margin: 0px auto; padding: 20px 15px; text-align: center;">
45
- <h3>Activate ReadyGraph to get more traffic and revenue</h3>
46
- <!-- <h3 style="margin-top: 0px; font-weight: 300;"><?php //echo $main_plugin_title ?>, Now with ReadyGraph</h3> -->
47
- <p style="padding: 50px 0px 10px 0px;"><a class="btn btn-primary connect" href="javascript:void(0);" style="font-size: 18px; padding: 20px 25px;">Connect ReadyGraph >></a></p>
48
- <span><input type="checkbox" id="readygraph_monetize" name="readygraph_monetize" value="1" style="margin: 0 10px;" >Enable Monetization</span>
49
-
50
- <!--<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>-->
51
- <p style="margin-top:50px">Readygraph maximizes your Growth and Revenue</p>
52
- <p style="text-align: left; padding: 0 20px;">
53
- - Collect site reviews<br>
54
- - Monetize mobile and web traffic with optimized, non-intrusive ad units<br>
55
- - Get more traffic<br>
56
- - Send automatic email digests of all your site posts<br>
57
- - Get better deliverablility<br>
58
- - Track performance and user activity<br>
59
- - Automatically synchs with your current subscriber list<br>
60
- - Your best content featured to the full UserBase community<br>
61
- </p>
62
- </div>
63
-
64
- </div>
65
- <div class="register-right">
66
- <div class="form-wrap alert" style="font-size:12px;">
67
- <p><h3>ReadyGraph grows your site</h3></p>
68
- <p>ReadyGraph delivers audience growth and motivates users to come back.</p><br /><p><span style="min-height: 50px;"><span class="rg-signup-icon rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_currency.png"></span><span style="width: 90%;"><b>Maximize Revenue –</b> Compensate yourself for your hardwork with standardized, non-intrusive ad units. Optimized for mobile and web to maximize revenue. Powered by our high quality partner AdsOptimal.</span></span><br /><br />
69
- <span style="min-height: 50px;"><span class="rg-signup-icon rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_fb.png"></span><span style="width: 90%;"><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.</span></span><br /><br />
70
- <span style="min-height: 50px;"><span class="rg-signup-icon rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_heart.png"></span><span style="width: 90%;"><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.</span></span><br /><br />
71
- <span style="min-height: 50px;"><span class="rg-signup-icon rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_mail.png"></span><span style="width: 90%;"><b>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.</span></span><br /><br />
72
- <span style="min-height: 50px;"><span class="rg-signup-icon rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_chart.png"></span><span style="width: 90%;"><b>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.</span></span><br /><br />
73
- <span style="min-height: 50px;"><span class="rg-signup-icon rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/ub-icon.png" style="padding: 0 10px;"></span><span style="width: 90%;"><b>Your Site Promoted in UserBase Rankings -</b> Users vote on your latest content and top ranked posts are promoted on UserBase.com to thousands of people.</span></span><br /><br />
74
- If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a> Feel free to check out our <a href="http://readygraph.com/faq/" target="_blank">FAQ</a> for a more comprehensive overview. You can also completely <a class="delete" href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("deleteaccount");?>">Delete ReadyGraph</a> if you don't want access to our amazing growth tools. Either way, good luck building a massive userbase!<br/><br/>By connecting to ReadyGraph, you agree to our <a href="http://readygraph.com/tos/" target="_blank">Terms of Service</a> and <a href="http://readygraph.com/privacy/" target="_blank">Privacy Policy</a>.
75
- </p>
76
- </div>
77
- </div>
78
- </div>
79
- </div>
80
- <div class="authenticating" style="display: none;">
81
- <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;">
82
- <h3 style="margin-top: 0px; font-weight: 300;"><?php echo $s2_main_plugin_title ?>, Now with ReadyGraph</h3>
83
- <h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
84
- <p>Activate Readygraph features to optimize <?php echo $s2_main_plugin_title ?> functionality. Signup For These Benefits:</p>
85
- <p style="text-align: left; padding: 0 20px;">
86
- - For qualifying sites, monetize traffic with optimized, non-intrusive ad units<br>
87
- - Grow your subscribers faster<br>
88
- - Engage users with automated email updates<br>
89
- - Enhanced email deliverablility<br>
90
- - Track performace with user-activity analytics<br>
91
- - Automatically synchs with your current subscriber list<br>
92
- - Your best content featured to the full UserBase community<br>
93
- </p>
94
- </div>
95
- </div>
96
-
97
- <div class="authenticated" style="display: none;">
98
-
99
- <?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?>
100
- <div class="tutorial-true" style="margin: 5% auto;">
101
- <h3 style="font-weight: normal; text-align: center;"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/check.png"/>Congratulations! <?php echo $s2_main_plugin_title; ?>'s ReadyGraph growth engine is now active.</h3>
102
-
103
- <div style="width: 45%; margin: 1% 1% 0 10%; float: left">
104
- <h3 style="font-weight: normal;color: grey;">Step 1: Choose a plan for exposure to more new users!</h3>
105
- <div class="rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/></div>
106
- <h4 class="rg-h4">Cross promotion to thousands of users</h4><p class="rg-icon-content">Get promoted through our community emails and your own site SEO page on UserBase.com</p>
107
- <div class="rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/></div>
108
- <h4 class="rg-h4">Let users vote up your content</h4><p class="rg-icon-content">Add vote buttons in your site post emails. Top voted posts featured on UserBase.com</p>
109
- <div class="rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/></div>
110
- <h4 class="rg-h4">Content recommendations</h4><p class="rg-icon-content">As a member of our cross promotion network, your users discover valuable content from related sites</p>
111
- <div class="rg-icon-thumb"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" class="rg-small-icon"/></div>
112
- <h4 class="rg-h4">Full set of growth tools</h4><p class="rg-icon-content">Optimized signup form, viral invites, site update emails, and more!</p>
113
- </div>
114
- <div style="width: 25%; margin: 1% 5% 0 0; float: left; background: #F0F0F0; border-radius: 15px;padding: 1% 2% 1% 1%"><h4 class="rg-h4">Select your plan</h4>
115
- <div style="margin: 10px;"><div class="rg-icon-thumb"><input type="radio" name="select-plan" value="promote_free" style="font-weight: bold; margin: 12px 0"></div><p class="rg-icon-content"><strong>Free - Stick with the Basic Plan</strong> </input><br><span style="margin-top: -12px">Basic tools, Promotion if content ranks highly</span></p></div>
116
- <div style="margin: 10px;"><div class="rg-icon-thumb"><input type="radio" name="select-plan" value="promote_39" style="font-weight: bold; margin: 12px 0" checked></div><p class="rg-icon-content"><strong>Get promoted to 2000 users monthly</strong></input><br><span style="margin-top: -12px">$39/month</span></p></div>
117
- <div style="margin: 10px;"><div class="rg-icon-thumb"><input type="radio" name="select-plan" value="promote_59" style="font-weight: bold; margin: 12px 0"></div><p class="rg-icon-content"><strong>Get promoted to 10,000 users monthly</strong></input><br><span style="margin-top: -12px">$59/month</span></p></div>
118
- <div style="margin: 10px;"><div class="rg-icon-thumb"><input type="radio" name="select-plan" value="promote_99" style="font-weight: bold; margin: 12px 0"></div><p class="rg-icon-content"><strong>Get promoted to 100,000 users monthly</strong></input><br><span style="margin-top: -12px">$99/month</span></p></div>
119
- <div style="margin: 10px;"><div class="rg-icon-thumb"><input type="radio" name="select-plan" value="promote_no" style="font-weight: bold; margin: 12px 0"></div><p class="rg-icon-content"><strong>Don't promote my site</strong></input><br><span style="margin-top: -12px">Opt out of cross promotion network</span></p></div>
120
- <div class="rg-icon-thumb" style="margin: 10px;width:100%"><input type="checkbox" id="plan-type" name="plan-type" value="annual" style="font-weight: bold">&nbsp;&nbsp; Save 20% with an annual plan</input></div>
121
- <div class="save-changes" style="font-weight: normal; text-align: center;"><a class="btn btn-large btn-warning save-next" href="#" style="margin: 15px" onclick="subscribe_readygraph()">Continue</a><br>
122
- </div></div>
123
- </div>
124
- <?php } else { ?>
125
-
126
- <div class="tutorial-false" style="margin: 2% auto; width: 90%">
127
- <h3 style="font-weight: normal; text-align: center;">Settings - Make adjustments to grow and engage your userbase</h3>
128
- <div style="float: left;width: 75%;">
129
- <div style="display: block;min-height: 250px;">
130
- <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>
131
- <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>
132
- <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>
133
- <br>
134
- <a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank" style="margin: 15px;color:#093e7d;">Welcome</a>
135
- <a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank" style="margin: 15px;color:#093e7d;">Invite</a>
136
- <a href="https://readygraph.com/application/customize/settings/email/follow/" target="_blank" style="margin: 15px;color:#093e7d;">Follow</a>
137
- <a href="https://readygraph.com/application/customize/settings/email/base/" target="_blank" style="margin: 15px;color:#093e7d;">Content Update Digest</a>
138
- </div>
139
- <div style="width: 45%; margin: 0 auto; float: right;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/6.png" class="rg-big-icon"/>Analytics</h4>
140
- <button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('https://readygraph.com/application/insights/');return false;" style="margin: 15px">User Statistics</button>
141
-
142
- </div>
143
- </div>
144
- <div style="display: block;min-height: 250px;">
145
- <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>
146
- <p>Signup Popup Activated?
147
- <select class="signup-popup" name="signup-popup" class="form-control" onchange="return popup_position(this)">
148
- <option value="yes-center">Yes, in Center</option>
149
- <option value="yes-bottom-right">Yes, in Bottom Right</option>
150
- <option value="no">No</option>
151
- </select></p>
152
- <p>Signup Popup Delay?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
153
- <select class="popup-delay" name="popup-delay" class="form-control" onchange="return popup_delay(this)">
154
- <option value="0">0 seconds</option>
155
- <option value="5000">5 seconds</option>
156
- <option value="10000">10 seconds</option>
157
- <option value="15000">15 seconds</option>
158
- <option value="20000">20 seconds</option>
159
- <option value="30000">30 seconds</option>
160
- <option value="60000">1 minute</option>
161
- <option value="120000">2 minutes</option>
162
- <option value="180000">3 minutes</option>
163
- <option value="240000">4 minutes</option>
164
- <option value="300000">5 minutes</option>
165
- <option value="600000">10 minutes</option>
166
- <option value="900000">15 minutes</option>
167
- <option value="1200000">20 minutes</option>
168
- </select>
169
- </div>
170
- <div style="width: 45%; margin: 0 auto; float: right;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/8.png" class="rg-big-icon"/>Help</h4>
171
- <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="margin: 15px;color:#093e7d;">FAQ</a>
172
- <br>
173
- <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=basic-settings&tutorial=true" style="margin: 15px;color:#093e7d;">Tutorial</a>
174
- <br>
175
- <a href="mailto:info@readygraph.com" style="margin: 15px;color:#093e7d;">Contact Us</a>
176
- <br>
177
- <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=deactivate-readygraph" style="margin: 15px;color:#093e7d;">Deactivate ReadyGraph</a>
178
-
179
- </div>
180
- </div>
181
- </div>
182
- <div style="width: 23%; display: block; min-height: 200px; float: right;">
183
- <div class="readygraph_upgrade_right_sidebar">
184
- <div style="background: #0B3E7F; padding: 5px; color: #fff; "><h4>ReadyGraph Premium</h4></div>
185
- <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>
186
- </div>
187
- <div class="readygraph_upgrade_right_sidebar" style="margin-top: 10px;">
188
- <p class="centered-image">
189
- <em><strong>Top 3 benefits you can get!</strong></em><br>
190
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/7.png" width="50px" style="margin:5px" /><br>
191
- 1. Promotion to 10,000+ new users/month<br>
192
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/11.png" width="50px" style="margin:5px" /><br>
193
- 2. Unlimited post update emails<br>
194
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/icon_fb.png" width="50px" style="margin:5px" /><br>
195
- 3. Unlimited Facebook invite referrals<br>
196
-
197
- </p>
198
- </div>
199
- </div>
200
- </div>
201
- <?php } ?>
202
- </div>
203
- </div>
204
- </form>
205
-
206
- <script type="text/javascript" charset="utf-8">
207
- var enable_monetize;
208
-
209
-
210
- function subscribe_readygraph() {
211
- var radios = document.getElementsByName("select-plan");
212
- if (document.getElementById('plan-type').checked) {
213
- annual="true";
214
- } else {
215
- annual="false";
216
- }
217
-
218
- for (var i = 0; i < radios.length; i++) {
219
- if (radios[i].checked) {
220
- plan = radios[i].value;
221
- break;
222
- }
223
- }
224
- var current_url = document.URL;
225
- var url_array = document.URL.split( '&' );
226
- url = 'https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>&payment_plan='+plan+'&is_annual='+annual+'&redirect_uri='+encodeURIComponent(url_array[0]+'&ac=site-profile');
227
- current_url = url_array[0]+'&ac=site-profile&readygraph_plan='+plan;
228
- if (plan === "promote_free"){
229
- window.location.href = current_url;
230
- }
231
- else{
232
- var win=window.open(url, '_blank');
233
- window.open(current_url, '_self');
234
- window.location.href = current_url;
235
- win.focus();
236
- }
237
- }
238
- function popup_position(n){
239
- <?php $current_url = explode("&", $_SERVER['REQUEST_URI']); ?>
240
- if(n.selectedIndex === 0){
241
- // show a div (id) // alert(n.value);
242
-
243
- window.location.replace("<?php echo $current_url[0].'&popup_position=center';?>");
244
- }else if(n.selectedIndex === 1){
245
- window.location.replace("<?php echo $current_url[0].'&popup_position=bottom-right';?>");
246
- }
247
- // this last one is not what you ask but for completeness
248
- // hide the box div if the first option is selected again
249
- else if (n.selectedIndex == 2){ // alert(n[1].value);
250
- window.location.replace("<?php echo $current_url[0].'&popup_position=disabled';?>");
251
- }
252
- }
253
- function popup_delay(n){
254
- <?php $current_url = explode("&", $_SERVER['REQUEST_URI']); ?>
255
- window.location.replace("<?php echo $current_url[0].'&popup_delay=';?>"+n.value);
256
- }
257
- </script>
258
-
259
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/10.png DELETED
Binary file
extension/readygraph/assets/11.png DELETED
Binary file
extension/readygraph/assets/12.png DELETED
Binary file
extension/readygraph/assets/13.png DELETED
Binary file
extension/readygraph/assets/14.png DELETED
Binary file
extension/readygraph/assets/15.png DELETED
Binary file
extension/readygraph/assets/2.png DELETED
Binary file
extension/readygraph/assets/3.png DELETED
Binary file
extension/readygraph/assets/4.png DELETED
Binary file
extension/readygraph/assets/5.png DELETED
Binary file
extension/readygraph/assets/6.png DELETED
Binary file
extension/readygraph/assets/7.png DELETED
Binary file
extension/readygraph/assets/8.png DELETED
Binary file
extension/readygraph/assets/9.png DELETED
Binary file
extension/readygraph/assets/Help-icon.png DELETED
Binary file
extension/readygraph/assets/Sign-Alert-icon.png DELETED
Binary file
extension/readygraph/assets/callout_black.gif DELETED
Binary file
extension/readygraph/assets/check.png DELETED
Binary file
extension/readygraph/assets/close-icon.png DELETED
Binary file
extension/readygraph/assets/css/admin.css DELETED
@@ -1,168 +0,0 @@
1
- /*!
2
- * Bootstrap v3.1.1 (http://getbootstrap.com)
3
- * Copyright 2011-2014 Twitter, Inc.
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- */
6
-
7
- .btn-default,.btn-primary,.btn-success,.btn-info,.btn-warning,.btn-danger{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-default:active,.btn-primary:active,.btn-success:active,.btn-info:active,.btn-warning:active,.btn-danger:active,.btn-default.active,.btn-primary.active,.btn-success.active,.btn-info.active,.btn-warning.active,.btn-danger.active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn:active,.btn.active{background-image:none}.btn-default{background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;text-shadow:0 1px 0 #fff;border-color:#ccc}.btn-default:hover,.btn-default:focus{background-color:#e0e0e0;background-position:0 -15px}.btn-default:active,.btn-default.active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-primary{background-image:-webkit-linear-gradient(top,#428bca 0,#2d6ca2 100%);background-image:linear-gradient(to bottom,#428bca 0,#2d6ca2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#2b669a}.btn-primary:hover,.btn-primary:focus{background-color:#2d6ca2;background-position:0 -15px}.btn-primary:active,.btn-primary.active{background-color:#2d6ca2;border-color:#2b669a}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:hover,.btn-success:focus{background-color:#419641;background-position:0 -15px}.btn-success:active,.btn-success.active{background-color:#419641;border-color:#3e8f3e}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:hover,.btn-info:focus{background-color:#2aabd2;background-position:0 -15px}.btn-info:active,.btn-info.active{background-color:#2aabd2;border-color:#28a4c9}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:hover,.btn-warning:focus{background-color:#eb9316;background-position:0 -15px}.btn-warning:active,.btn-warning.active{background-color:#eb9316;border-color:#e38d13}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:hover,.btn-danger:focus{background-color:#c12e2a;background-position:0 -15px}.btn-danger:active,.btn-danger.active{background-color:#c12e2a;border-color:#b92c28}.thumbnail,.img-thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-color:#e8e8e8}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{background-image:-webkit-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);background-color:#357ebd}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f3f3f3 100%);background-image:linear-gradient(to bottom,#ebebeb 0,#f3f3f3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff3f3f3', GradientType=0);-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.navbar-inverse .navbar-nav>.active>a{background-image:-webkit-linear-gradient(top,#222 0,#282828 100%);background-image:linear-gradient(to bottom,#222 0,#282828 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff282828', GradientType=0);-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-static-top,.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0)}.progress-bar{background-image:-webkit-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0)}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0)}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0)}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0)}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0)}.list-group{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{text-shadow:0 -1px 0 #3071a9;background-image:-webkit-linear-gradient(top,#428bca 0,#3278b3 100%);background-image:linear-gradient(to bottom,#428bca 0,#3278b3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0);border-color:#3278b3}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0)}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0)}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0)}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0)}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0)}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0)}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)}
8
-
9
-
10
- /*!
11
- * Bootstrap v3.1.1 (http://getbootstrap.com)
12
- * Copyright 2011-2014 Twitter, Inc.
13
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
14
- */
15
-
16
- /*! normalize.css v3.0.0 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}@media print{*{text-shadow:none!important;color:#000!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:400;line-height:1;color:#999}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}cite{font-style:normal}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-muted{color:#999}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#999}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}blockquote:before,blockquote:after{content:""}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;white-space:nowrap;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:0}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:0}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:0}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:0}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:0}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:0}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:0}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:0}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}@media (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date]{line-height:34px}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px}.radio label,.checkbox label{display:inline;font-weight:400;cursor:pointer}.radio input[type=radio],.radio-inline input[type=radio],.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],.radio[disabled],.radio-inline[disabled],.checkbox[disabled],.checkbox-inline[disabled],fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox],fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm,select[multiple].input-sm{height:auto}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:46px;line-height:46px}textarea.input-lg,select[multiple].input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.has-feedback .form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.has-error .form-control-feedback{color:#a94442}.form-control-static{margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.form-inline .radio input[type=radio],.form-inline .checkbox input[type=checkbox]{float:none;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.form-horizontal .form-control-static{padding-top:7px}@media (min-width:768px){.form-horizontal .control-label{text-align:right}}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn:focus,.btn:active:focus,.btn.active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#333;text-decoration:none}.btn:active,.btn.active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#999}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}[data-toggle=buttons]>.btn>input[type=radio],[data-toggle=buttons]>.btn>input[type=checkbox]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=radio],.input-group-addon input[type=checkbox]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#999;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-left:0;padding-right:0}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15px;font-size:18px;line-height:20px;height:50px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:8px;margin-bottom:8px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.navbar-form .radio input[type=radio],.navbar-form .checkbox input[type=checkbox]{float:none;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{background-color:#e7e7e7;color:#555}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a{color:#999}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{background-color:#080808;color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;color:#428bca;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{color:#2a6496;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca;cursor:default}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.pager{padding-left:0;margin:20px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;background-color:#fff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#999}.label-default[href]:hover,.label-default[href]:focus{background-color:gray}.label-primary{background-color:#428bca}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;color:#fff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#999;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.container .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-left:60px;padding-right:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-left:auto;margin-right:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:20px;margin-bottom:20px;background-color:#f5f5f5;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active,a.list-group-item.active:hover,a.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}a.list-group-item.active .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text,a.list-group-item.active:hover .list-group-item-text,a.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,a.list-group-item-success:focus{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,a.list-group-item-info:focus{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,a.list-group-item-warning:focus{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,a.list-group-item-danger:focus{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.panel>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;overflow:hidden}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:auto;overflow-y:scroll;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:20px}.modal-footer{margin-top:15px;padding:19px 20px 20px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1030;display:block;visibility:visible;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;right:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:.5;filter:alpha(opacity=50);font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.5) 0),color-stop(rgba(0,0,0,.0001) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.0001) 0),color-stop(rgba(0,0,0,.5) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:hover,.carousel-control:focus{outline:0;color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{content:" ";display:table}.clearfix:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-footer:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}}@media print{.hidden-print{display:none!important}}
17
- .register-left{float: left; width:40%;padding-right: 1%;padding-left: 1%;margin:0 3%;}
18
-
19
- .register-mid{float: left;width:40%;padding-right: 1%; margin: 0 3%;}
20
-
21
- .register-right{float:left;width:50%;text-align: justify;font-size: 12px;}
22
-
23
- .emailn-left{clear: left; float: left; margin-right: -325px; width: 100%;}
24
-
25
- .alert{
26
-
27
- background-color: #F9F8F3;
28
- border: 2px solid #EBECE8;
29
- border-radius: 6px;
30
- color: #34495E;
31
- font-size: 16px;
32
- line-height: 1.53875em;
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
- }
153
- .rg-signup-icon{
154
- margin: 0 15px 0 5px;
155
- clear:both;
156
- }
157
- .rg-icon-thumb {
158
- float: left;
159
- }
160
- .rg-icon-thumb img {
161
- display: block;
162
- }
163
- .rg-icon-content {
164
- margin-left: 25px;
165
- }
166
- .site_category select{
167
- margin: 5px;
168
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/black-popup.css DELETED
@@ -1,16 +0,0 @@
1
- .rgw-lightbox .rgw-content-frame .rgw-content {
2
- background: #000000 !important;
3
- }
4
- .rgw-style{
5
- color: #d1d1d1 !important;
6
- }
7
- .rgw-style .rgw-dialog-header .rgw-dialog-headline, .rgw-style .rgw-dialog-header .rgw-dialog-headline * {
8
- color: #d1d1d1 !important;
9
- }
10
-
11
- .rgw-notify .rgw-float-box {
12
- background: #000000!important;
13
- }
14
- .rgw-notify .rgw-social-status:hover{
15
- background: #000000 !important;
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/blue-popup.css DELETED
@@ -1,16 +0,0 @@
1
- .rgw-lightbox .rgw-content-frame .rgw-content {
2
- background: #bcdbdb !important;
3
- }
4
- .rgw-style{
5
- color: #3c3c3c !important;
6
- }
7
- .rgw-style .rgw-dialog-header .rgw-dialog-headline, .rgw-style .rgw-dialog-header .rgw-dialog-headline * {
8
- color: #3c3c3c !important;
9
- }
10
-
11
- .rgw-notify .rgw-float-box {
12
- background: #bcdbdb !important;
13
- }
14
- .rgw-notify .rgw-social-status:hover{
15
- background: #bcdbdb !important;
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/custom-popup.css DELETED
@@ -1,16 +0,0 @@
1
- .rgw-lightbox .rgw-content-frame .rgw-content {
2
- background: #ffffff !important; /*popup background*/
3
- }
4
- .rgw-style{
5
- color: #000000 !important; /*text color*/
6
- }
7
- .rgw-style .rgw-dialog-header .rgw-dialog-headline, .rgw-style .rgw-dialog-header .rgw-dialog-headline * {
8
- color: #000000 !important; /*heading color*/
9
- }
10
-
11
- .rgw-notify .rgw-float-box {
12
- background: #ffffff !important; /*lower right notification*/
13
- }
14
- .rgw-notify .rgw-social-status:hover{
15
- background: #ffffff !important; /*lower right notification on hover*/
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/default-popup.css DELETED
File without changes
extension/readygraph/assets/css/gray-popup.css DELETED
@@ -1,16 +0,0 @@
1
- .rgw-lightbox .rgw-content-frame .rgw-content {
2
- background: #d6d6d6 !important;
3
- }
4
- .rgw-style{
5
- color: #262147 !important;
6
- }
7
- .rgw-style .rgw-dialog-header .rgw-dialog-headline, .rgw-style .rgw-dialog-header .rgw-dialog-headline * {
8
- color: #262147 !important;
9
- }
10
-
11
- .rgw-notify .rgw-float-box {
12
- background: #d6d6d6 !important;
13
- }
14
- .rgw-notify .rgw-social-status:hover{
15
- background: #d6d6d6 !important;
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/green-popup.css DELETED
@@ -1,16 +0,0 @@
1
- .rgw-lightbox .rgw-content-frame .rgw-content {
2
- background: #9de592 !important;
3
- }
4
- .rgw-style{
5
- color: #050f03 !important;
6
- }
7
- .rgw-style .rgw-dialog-header .rgw-dialog-headline, .rgw-style .rgw-dialog-header .rgw-dialog-headline * {
8
- color: #050f03 !important;
9
- }
10
-
11
- .rgw-notify .rgw-float-box {
12
- background: #9de592 !important;
13
- }
14
- .rgw-notify .rgw-social-status:hover{
15
- background: #9de592 !important;
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/index.php DELETED
@@ -1 +0,0 @@
1
- <?php // Silence is golden
 
extension/readygraph/assets/css/red-popup.css DELETED
@@ -1,16 +0,0 @@
1
- .rgw-lightbox .rgw-content-frame .rgw-content {
2
- background: #6B0303 !important;
3
- }
4
- .rgw-style{
5
- color: #dfdfdf !important;
6
- }
7
- .rgw-style .rgw-dialog-header .rgw-dialog-headline, .rgw-style .rgw-dialog-header .rgw-dialog-headline * {
8
- color: #dfdfdf !important;
9
- }
10
-
11
- .rgw-notify .rgw-float-box {
12
- background: #6B0303 !important;
13
- }
14
- .rgw-notify .rgw-social-status:hover{
15
- background: #6B0303 !important;
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/upgrade.css DELETED
@@ -1,69 +0,0 @@
1
- /*!
2
- * Bootstrap v3.1.1 (http://getbootstrap.com)
3
- * Copyright 2011-2014 Twitter, Inc.
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- */
6
-
7
- .rg_message{
8
- background-size: 40px 40px;
9
- background-image: linear-gradient(135deg, rgba(255, 255, 255, .05) 25%, transparent 25%,
10
- transparent 50%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, .05) 75%,
11
- transparent 75%, transparent);
12
- box-shadow: inset 0 -1px 0 rgba(255,255,255,.4);
13
- width: 98%;
14
- border: 1px solid;
15
- color: #fff;
16
- padding: 15px;
17
- text-shadow: 0 1px 0 rgba(0,0,0,.5);
18
- animation: animate-bg 5s linear infinite;
19
- border-radius: 5px;
20
- }
21
-
22
- .rg_info{
23
- background-color: #4ea5cd;
24
- border-color: #3b8eb5;
25
- }
26
-
27
- .rg_error{
28
- background-color: #de4343;
29
- border-color: #c43d3d;
30
- }
31
-
32
- .rg_warning{
33
- background-color: #eaaf51;
34
- border-color: #d99a36;
35
- }
36
-
37
- .rg_success{
38
- background-color: #61b832;
39
- border-color: #55a12c;
40
- }
41
-
42
- .rg_message h3{
43
- margin: 0 0 5px 0;
44
- }
45
-
46
- .rg_message p{
47
- margin: 0;
48
- }
49
-
50
- @keyframes animate-bg {
51
- from {
52
- background-position: 0 0;
53
- }
54
- to {
55
- background-position: -80px 0;
56
- }
57
- }
58
- .aa_close {
59
- position: absolute;
60
- right: 18px;
61
- top: 18px;
62
- }
63
- .pure-button{display:inline-block;*display:inline;zoom:1;line-height:normal;white-space:nowrap;vertical-align:baseline;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button{font-family:inherit;font-size:100%;*font-size:90%;*overflow:visible;padding:1em 1em;color:#444;color:rgba(0,0,0,.8);*color:#444;border:1px solid #999;border:0 rgba(0,0,0,0);background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:hover,.pure-button:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000', GradientType=0);background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:-moz-linear-gradient(top,rgba(0,0,0,.05) 0,rgba(0,0,0,.1));background-image:-o-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset}.pure-button[disabled],.pure-button-disabled,.pure-button-disabled:hover,.pure-button-disabled:focus,.pure-button-disabled:active{border:0;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);filter:alpha(opacity=40);-khtml-opacity:.4;-moz-opacity:.4;opacity:.4;cursor:not-allowed;box-shadow:none}.pure-button-hidden{display:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}
64
- .button-warning {
65
- color: white;
66
- border-radius: 4px;
67
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
68
- background: rgb(223, 117, 20);
69
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/css/yellow-popup.css DELETED
@@ -1,16 +0,0 @@
1
- .rgw-lightbox .rgw-content-frame .rgw-content {
2
- background: #ffff5b !important;
3
- }
4
- .rgw-style{
5
- color: #003d97 !important;
6
- }
7
- .rgw-style .rgw-dialog-header .rgw-dialog-headline, .rgw-style .rgw-dialog-header .rgw-dialog-headline * {
8
- color: #003d97 !important;
9
- }
10
-
11
- .rgw-notify .rgw-float-box {
12
- background: #ffff5b !important;
13
- }
14
- .rgw-notify .rgw-social-status:hover{
15
- background: #ffff5b !important;
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/dialog_close.png DELETED
Binary file
extension/readygraph/assets/go-premium.png DELETED
Binary file
extension/readygraph/assets/icon_chart.png DELETED
Binary file
extension/readygraph/assets/icon_currency.png DELETED
Binary file
extension/readygraph/assets/icon_fb.png DELETED
Binary file
extension/readygraph/assets/icon_heart.png DELETED
Binary file
extension/readygraph/assets/icon_mail.png DELETED
Binary file
extension/readygraph/assets/js/admin.js DELETED
@@ -1,6 +0,0 @@
1
- /*!
2
- * Bootstrap v3.1.1 (http://getbootstrap.com)
3
- * Copyright 2011-2014 Twitter, Inc.
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- */
6
- if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown",h),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=" li:not(.divider):visible a",i=f.find("[role=menu]"+h+", [role=listbox]"+h);if(i.length){var j=i.index(i.filter(":focus"));38==b.keyCode&&j>0&&j--,40==b.keyCode&&j<i.length-1&&j++,~j||(j=0),i.eq(j).focus()}}}};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new f(this)),"string"==typeof b&&d[b].call(c)})},a.fn.dropdown.Constructor=f,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",e,f.prototype.toggle).on("keydown.bs.dropdown.data-api",e+", [role=menu], [role=listbox]",f.prototype.keydown)}(jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show().scrollTop(0),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('<div class="modal-backdrop '+c+'" />').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);f||e.data("bs.modal",f=new b(this,g)),"string"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());c.is("a")&&b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this,d=this.tip();this.setContent(),this.options.animation&&d.addClass("fade");var e="function"==typeof this.options.placement?this.options.placement.call(this,d[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,g=f.test(e);g&&(e=e.replace(f,"")||"top"),d.detach().css({top:0,left:0,display:"block"}).addClass(e),this.options.container?d.appendTo(this.options.container):d.insertAfter(this.$element);var h=this.getPosition(),i=d[0].offsetWidth,j=d[0].offsetHeight;if(g){var k=this.$element.parent(),l=e,m=document.documentElement.scrollTop||document.body.scrollTop,n="body"==this.options.container?window.innerWidth:k.outerWidth(),o="body"==this.options.container?window.innerHeight:k.outerHeight(),p="body"==this.options.container?0:k.offset().left;e="bottom"==e&&h.top+h.height+j-m>o?"top":"top"==e&&h.top-m-j<0?"bottom":"right"==e&&h.right+i>n?"left":"left"==e&&h.left-i<p?"right":e,d.removeClass(l).addClass(e)}var q=this.getCalculatedOffset(e,h,i,j);this.applyPlacement(q,e),this.hoverState=null;var r=function(){c.$element.trigger("shown.bs."+c.type)};a.support.transition&&this.$tip.hasClass("fade")?d.one(a.support.transition.end,r).emulateTransitionEnd(150):r()}},b.prototype.applyPlacement=function(b,c){var d,e=this.tip(),f=e[0].offsetWidth,g=e[0].offsetHeight,h=parseInt(e.css("margin-top"),10),i=parseInt(e.css("margin-left"),10);isNaN(h)&&(h=0),isNaN(i)&&(i=0),b.top=b.top+h,b.left=b.left+i,a.offset.setOffset(e[0],a.extend({using:function(a){e.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),e.addClass("in");var j=e[0].offsetWidth,k=e[0].offsetHeight;if("top"==c&&k!=g&&(d=!0,b.top=b.top+g-k),/bottom|top/.test(c)){var l=0;b.left<0&&(l=-2*b.left,b.left=0,e.offset(b),j=e[0].offsetWidth,k=e[0].offsetHeight),this.replaceArrow(l-f+j,j,"left")}else this.replaceArrow(k-g,k,"top");d&&e.offset(b)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(){function b(){"in"!=c.hoverState&&d.detach(),c.$element.trigger("hidden.bs."+c.type)}var c=this,d=this.tip(),e=a.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(d.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d.one(a.support.transition.end,b).emulateTransitionEnd(150):b(),this.hoverState=null,this)},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},"function"==typeof b.getBoundingClientRect?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;c.tip().hasClass("in")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.tooltip",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(jQuery),+function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(a(c).is("body")?window:c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);{var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})}},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(b.RESET).addClass("affix");var a=this.$window.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-a},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"top"==this.affixed&&(e.top+=d),"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.Event(j+".bs.affix");this.$element.trigger(k),k.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(b.RESET).addClass(j).trigger(a.Event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:c-h-this.$element.height()}))}}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery);
 
 
 
 
 
 
extension/readygraph/assets/js/cp-demo-script.min.js DELETED
@@ -1,30 +0,0 @@
1
- /*!
2
- * Iris Color Picker Demo Script
3
- * @author: Rachel Baker ( rachel@rachelbaker.me )
4
- */(function($) {
5
- "use strict";
6
- function pickColor(color) {
7
- $("#link-color").val(color);
8
- }
9
- function toggle_text() {
10
- link_color = $("#link-color");
11
- if ("" === link_color.val().replace("#", "")) {
12
- link_color.val(default_color);
13
- pickColor(default_color);
14
- } else pickColor(link_color.val());
15
- }
16
- var default_color = "fbfbfb";
17
- $(document).ready(function() {
18
- var link_color = $("#link-color");
19
- link_color.wpColorPicker({
20
- change: function(event, ui) {
21
- pickColor(link_color.wpColorPicker("color"));
22
- },
23
- clear: function() {
24
- pickColor("");
25
- }
26
- });
27
- $("#link-color").click(toggle_text);
28
- toggle_text();
29
- });
30
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/js/index.php DELETED
@@ -1 +0,0 @@
1
- <?php // Silence is golden
 
extension/readygraph/assets/js/jquery.dependent-selects.js DELETED
@@ -1,278 +0,0 @@
1
- // Generated by CoffeeScript 1.6.3
2
- /*
3
- # jQuery Dependent Selects v1.2.2
4
- # Copyright 2012 Mark J Smith, Simpleweb
5
- # Details on http://github.com/simpleweb/jquery-dependent-selects
6
- */
7
-
8
- (function($) {
9
- return $.fn.dependentSelects = function(options) {
10
- var clearAllSelectsByParent, createNewSelect, createSelectId, findSelectParent, hideSelect, insertLabel, insertPlaceholderSelect, labelAtDepth, placeholderOptionAtDepth, placeholderSelectAtDepth, prepareSelect, selectChange, selectPreSelected, selectedOption, showSelect, splitOptionName;
11
- if (options == null) {
12
- options = {};
13
- }
14
- options = $.extend({
15
- 'separator': ' > ',
16
- 'placeholderOption': '',
17
- 'placeholderSelect': false,
18
- 'class': false,
19
- 'labels': false
20
- }, options);
21
- createSelectId = function() {
22
- var int;
23
- int = parseInt(Math.random() * 1000);
24
- if ($("[data-dependent-id='" + int + "']").length > 0) {
25
- return createSelectId();
26
- } else {
27
- return int;
28
- }
29
- };
30
- splitOptionName = function($option) {
31
- var array, i, item, _i, _len;
32
- array = $.map($option.text().split(options.separator), function(valuePart) {
33
- return $.trim(valuePart);
34
- });
35
- i = 0;
36
- for (_i = 0, _len = array.length; _i < _len; _i++) {
37
- item = array[_i];
38
- if (item === '') {
39
- array.splice(i, 1);
40
- i--;
41
- }
42
- i++;
43
- }
44
- return array;
45
- };
46
- placeholderSelectAtDepth = function(depth, $select) {
47
- var placeholder, text;
48
- depth--;
49
- placeholder = options.placeholderSelect;
50
- if (placeholder) {
51
- if (placeholder === true) {
52
- placeholder = $select.data('dependent-select-placeholders');
53
- }
54
- if (typeof placeholder === 'object') {
55
- if (placeholder[depth]) {
56
- text = placeholder[depth];
57
- } else {
58
- text = placeholder[placeholder.length - 1];
59
- }
60
- } else {
61
- text = placeholder;
62
- }
63
- return $("<select disabled><option>" + text + "</option></select>").attr({
64
- 'data-dependent-depth': depth + 1,
65
- 'data-dependent-placeholder': true,
66
- 'data-dependent-id': $select.attr('data-dependent-id')
67
- });
68
- }
69
- };
70
- placeholderOptionAtDepth = function(depth) {
71
- var placeholder, text;
72
- depth--;
73
- placeholder = options.placeholderOption;
74
- if (typeof placeholder === 'object') {
75
- if (placeholder[depth]) {
76
- text = placeholder[depth];
77
- } else {
78
- text = placeholder[placeholder.length - 1];
79
- }
80
- } else {
81
- text = placeholder;
82
- }
83
- return $("<option>" + text + "</option>");
84
- };
85
- labelAtDepth = function(depth, $select) {
86
- var labels;
87
- depth--;
88
- labels = options.labels;
89
- if (labels) {
90
- if (labels === true) {
91
- labels = $select.data('dependent-labels');
92
- }
93
- if (labels[depth]) {
94
- return labels[depth];
95
- } else {
96
- return labels[labels.length - 1];
97
- }
98
- } else {
99
- return false;
100
- }
101
- };
102
- hideSelect = function($select) {
103
- var label, placeholder_select, select_depth, select_id;
104
- select_id = $select.attr('data-dependent-id');
105
- select_depth = $select.attr('data-dependent-depth');
106
- placeholder_select = $("select[data-dependent-placeholder][data-dependent-id='" + select_id + "'][data-dependent-depth='" + select_depth + "']");
107
- label = $("label[data-dependent-id='" + select_id + "'][data-dependent-depth='" + select_depth + "']").hide();
108
- if (placeholder_select.length > 0) {
109
- placeholder_select.show();
110
- label.show();
111
- }
112
- return $select.hide();
113
- };
114
- showSelect = function($select) {
115
- var label, placeholder_select, select_depth, select_id;
116
- select_id = $select.attr('data-dependent-id');
117
- select_depth = $select.attr('data-dependent-depth');
118
- placeholder_select = $("select[data-dependent-placeholder][data-dependent-id='" + select_id + "'][data-dependent-depth='" + select_depth + "']");
119
- label = $("label[data-dependent-id='" + select_id + "'][data-dependent-depth='" + select_depth + "']").show();
120
- if (placeholder_select.length > 0) {
121
- placeholder_select.hide();
122
- }
123
- return $select.show();
124
- };
125
- insertLabel = function($select, $parent) {
126
- var $label, label, select_depth, select_id;
127
- if (label = labelAtDepth($select.attr('data-dependent-depth'), $select)) {
128
- select_id = $select.attr('data-dependent-id');
129
- select_depth = $select.attr('data-dependent-depth');
130
- $label = $("<label>" + label + "</label>").attr({
131
- 'data-dependent-id': select_id,
132
- 'data-dependent-depth': select_depth
133
- });
134
- if (!($("label[data-dependent-id='" + select_id + "'][data-dependent-depth='" + select_depth + "']").length > 0)) {
135
- if ($parent) {
136
- return $parent.after($label);
137
- } else {
138
- return $select.before($label);
139
- }
140
- }
141
- }
142
- };
143
- insertPlaceholderSelect = function($select, $parent) {
144
- var $placeholderSelect, depth, select_id;
145
- if ($placeholderSelect = placeholderSelectAtDepth($select.attr('data-dependent-depth'), $select)) {
146
- select_id = $select.attr('data-dependent-id');
147
- depth = $select.attr('data-dependent-depth');
148
- if (!($("select[data-dependent-placeholder][data-dependent-id='" + select_id + "'][data-dependent-depth='" + depth + "']").length > 0)) {
149
- return $select.before($placeholderSelect);
150
- }
151
- }
152
- };
153
- clearAllSelectsByParent = function($parent) {
154
- return $(".dependent-sub[data-dependent-id='" + ($parent.attr('data-dependent-id')) + "']").each(function() {
155
- if (parseInt($(this).attr('data-dependent-depth')) > parseInt($parent.attr('data-dependent-depth'))) {
156
- $(this).find('option:first').attr('selected', 'selected');
157
- return hideSelect($(this));
158
- }
159
- });
160
- };
161
- createNewSelect = function(name, $select, depth) {
162
- var $currentSelect, $labels, $newSelect, select_id;
163
- select_id = $select.attr('data-dependent-id');
164
- if (($currentSelect = $("select[data-dependent-parent='" + name + "'][data-dependent-id='" + select_id + "']")).length > 0) {
165
- return $currentSelect;
166
- }
167
- $newSelect = $('<select class="dependent-sub"/>').attr('data-dependent-parent', name).attr('data-dependent-depth', depth).attr('data-dependent-input-name', $select.attr('data-dependent-input-name')).attr('data-dependent-id', select_id).addClass(options["class"]).append(placeholderOptionAtDepth(depth));
168
- if (options.labels === true) {
169
- $newSelect.attr('data-dependent-labels', $select.attr('data-dependent-labels'));
170
- }
171
- if (options.placeholderSelect === true) {
172
- $newSelect.attr('data-dependent-select-placeholders', $select.attr('data-dependent-select-placeholders'));
173
- }
174
- if (($labels = $("label[data-dependent-id='" + select_id + "'][data-dependent-depth='" + depth + "']")).length > 0) {
175
- $newSelect.insertAfter($labels);
176
- } else {
177
- $newSelect.insertAfter($select);
178
- }
179
- insertLabel($newSelect, $select);
180
- insertPlaceholderSelect($newSelect, $select);
181
- return hideSelect($newSelect);
182
- };
183
- selectChange = function($select) {
184
- var $sub, select_id, val, valName;
185
- $("select[data-dependent-id='" + ($select.attr('data-dependent-id')) + "'][name]").removeAttr('name');
186
- valName = $select.find(':selected').html();
187
- val = $select.val();
188
- select_id = $select.attr('data-dependent-id');
189
- clearAllSelectsByParent($select);
190
- if (($sub = $(".dependent-sub[data-dependent-parent='" + valName + "'][data-dependent-id='" + select_id + "']")).length > 0) {
191
- showSelect($sub);
192
- return $sub.attr('name', $select.attr('data-dependent-input-name'));
193
- } else {
194
- return $select.attr('name', $select.attr('data-dependent-input-name'));
195
- }
196
- };
197
- selectedOption = function($select) {
198
- var $selectedOption, val;
199
- $selectedOption = $select.find('option:selected');
200
- val = $selectedOption.val();
201
- if (!(val === '' || val === placeholderOptionAtDepth($select.attr('data-dependent-depth')).val())) {
202
- return $select.attr('data-dependent-selected-id', val);
203
- }
204
- };
205
- findSelectParent = function($select) {
206
- var $all_options, $selects;
207
- $selects = $("select[data-dependent-id='" + ($select.attr('data-dependent-id')) + "']");
208
- $all_options = $selects.find('option');
209
- return $selects.filter(function() {
210
- var vals;
211
- vals = [];
212
- $(this).find('option').each(function() {
213
- return vals.push($(this).html() === $select.attr('data-dependent-parent'));
214
- });
215
- return $.inArray(true, vals) > -1;
216
- });
217
- };
218
- selectPreSelected = function($select) {
219
- var $all_options, $current_select, $selected_option, $selected_select, $selects, current_option_text, i, selected_id, _i, _ref;
220
- if ((selected_id = $select.attr('data-dependent-selected-id'))) {
221
- $selects = $("select[data-dependent-id='" + ($select.attr('data-dependent-id')) + "']");
222
- $all_options = $selects.find('option');
223
- $selected_option = $all_options.filter("[value='" + selected_id + "']");
224
- $selected_select = $selected_option.closest('select');
225
- $current_select = $selected_select;
226
- current_option_text = $selected_option.html();
227
- for (i = _i = _ref = parseInt($selected_select.attr('data-dependent-depth')); _ref <= 0 ? _i <= 0 : _i >= 0; i = _ref <= 0 ? ++_i : --_i) {
228
- $current_select.find('option').each(function() {
229
- if ($(this).html() === current_option_text) {
230
- return $(this).attr('selected', 'selected');
231
- } else {
232
- return $(this).removeAttr('selected');
233
- }
234
- });
235
- showSelect($current_select);
236
- current_option_text = $current_select.attr('data-dependent-parent');
237
- $current_select = findSelectParent($current_select);
238
- }
239
- return $selected_select.trigger('change');
240
- }
241
- };
242
- prepareSelect = function($select, depth, select_id) {
243
- var $options, name;
244
- $select.attr('data-dependent-depth', depth).attr('data-dependent-id', select_id);
245
- $options = $select.children('option');
246
- $options.each(function() {
247
- var $newOption, $option, $subSelect, name, val;
248
- $option = $(this);
249
- name = splitOptionName($option);
250
- val = $option.val();
251
- if (name.length > 1) {
252
- $subSelect = createNewSelect(name[0], $select, depth + 1);
253
- $newOption = $option.clone();
254
- $newOption.html($.trim(splitOptionName($newOption).slice(1).join(options.separator)));
255
- $subSelect.append($newOption);
256
- $option.val('').html(name[0]).attr('data-dependent-name', name[0]);
257
- if ($options.parent().find("[data-dependent-name='" + name[0] + "']").length > 1) {
258
- $option.remove();
259
- }
260
- return prepareSelect($subSelect, depth + 1, select_id);
261
- }
262
- });
263
- name = $select.attr('name');
264
- selectChange($select);
265
- return $select.off('change').on('change', function() {
266
- return selectChange($select);
267
- });
268
- };
269
- return this.each(function() {
270
- var $select;
271
- $select = $(this);
272
- $select.attr('data-dependent-input-name', $select.attr('name'));
273
- selectedOption($select);
274
- prepareSelect($select, 0, createSelectId());
275
- return selectPreSelected($select);
276
- });
277
- };
278
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/assets/js/my-script.js DELETED
@@ -1,3 +0,0 @@
1
- jQuery(document).ready(function($){
2
- $('.my-color-field').wpColorPicker();
3
- });
 
 
 
extension/readygraph/assets/ready_sidebar.png DELETED
Binary file
extension/readygraph/assets/round-check.png DELETED
Binary file
extension/readygraph/assets/ub-icon.png DELETED
Binary file
extension/readygraph/assets/white-logo.png DELETED
Binary file
extension/readygraph/customize-emails.php DELETED
@@ -1,54 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
- include("header.php");
16
-
17
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
18
- //redirect to main page
19
- $current_url = explode("&", $_SERVER['REQUEST_URI']);
20
- echo '<script>window.location.replace("'.$current_url[0].'");</script>';
21
- }
22
- else {
23
- if(isset($_GET["source"]) && $_GET["source"] == "social-feed"){
24
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
25
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
26
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
27
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
28
- if (isset($_POST["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', $_POST["sidebar"]);
29
- }
30
-
31
- }
32
- ?>
33
-
34
- <form method="post" id="myForm">
35
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
36
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
37
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
38
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
39
- <div class="tutorial-true" style="margin: 5% auto;">
40
- <h3 style="font-weight: normal; text-align: center;">Next Step: Customize automated emails to engage your userbase</h3>
41
- <h4 style="font-weight: normal; text-align: center;">Head over to ReadyGraph.com to customize emails such as:</h4>
42
-
43
- <div style="width: 275px; margin: 0 auto;"><ol><li>Welcome Email</li>
44
- <li>Friend Invite Email</li>
45
- <li>Updates of new content you post</li>
46
- <li>Several More</li></ol>
47
-
48
- <div class="save-changes" style="font-weight: normal; text-align: center;"><button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('https://readygraph.com/application/customize/settings/advance/');return false;" style="margin: 15px">Customize Email</button><br>
49
- <a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=basic-settings" style="margin: 15px">Skip, End Tutorial</a>
50
- </div></div>
51
- </div>
52
-
53
- </form>
54
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/deactivate-readygraph.php DELETED
@@ -1,68 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
- include("header.php");
16
-
17
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
18
- //redirect to main page
19
- $current_url = explode("&", $_SERVER['REQUEST_URI']);
20
- echo '<script>window.location.replace("'.$current_url[0].'");</script>';
21
- }
22
- else {
23
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
24
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
25
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
26
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
27
- if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
28
- if (isset($_POST["retentionemaileditor"])) update_option('readygraph_invite_email', $_POST["retentionemaileditor"]);
29
- }
30
- ?>
31
-
32
- <form method="post" id="myForm">
33
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
34
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
35
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
36
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
37
- <input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
38
- <input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
39
- <input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
40
- <input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
41
- <input type="hidden" name="readygraph_auto_select_all" value="<?php echo get_option('readygraph_auto_select_all', 'true') ?>">
42
- <input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
43
- <input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
44
- <input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
45
- <input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
46
-
47
- <div style="margin: 0 5%">
48
- <h2>Deactivate ReadyGraph</h2>
49
- <h3> Uh oh! Are you sure you wish to deactivate ReadyGraph?</h3>
50
- <p> ReadyGraph is an extremely effective way to unlock the growth and engagement of your userbase. Here are a few alternatives you may want to consider:</p>
51
- <p><ol><li> Delay the popup longer to target more engaged users</li>
52
- <li>Use the smaller overlay in the bottom right instead of the center of your website</li>
53
- <li>Customize the look and feel of the popup</li>
54
- <li>Learn more in our FAQ or Tutorial</li>
55
- <li>Contact us with questions, clarifications or requests</li>
56
- </ol></p>
57
-
58
- <h3>I'm sure. What do I do now?</h3>
59
- <p>If you are sure you want to deactivate Readygraph, you have two options: </p>
60
- <p>Deactivate. This turns ReadyGraph off, but you still have the abiity to reactivate Readygraph in the future should change your mind. <br><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("changeaccount");?>">Deactivate ReadyGraph</a></p>
61
- <p>Delete. This will permanently removes all code and files associated with ReadyGraph from your website.<br><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("deleteaccount");?>">Permanently Delete ReadyGraph</a></p>
62
- <p>&nbsp;</p>
63
- <p>Thanks a lot and good luck with your site!</p>
64
- <p>&nbsp;</p>
65
- <p><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>">Nevermind, I want to keep growing my audience with ReadyGraph</a></p>
66
- </div>
67
- </form>
68
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/extension.php DELETED
@@ -1,85 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- // ReadyGraph Extension
4
- //
5
-
6
- function s2_readygraph_client_script_head() {
7
- if(!get_option('readygraph_application_id') && strlen(get_option('readygraph_application_id')) < 0) return;
8
- if (get_option('readygraph_enable_branding', '') == 'false') {
9
- echo '<style>/* FOR INLINE WIDGET */.rgw-text {display: none !important;}</style>';
10
- }
11
- include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
12
- ?>
13
- <script type='text/javascript'>
14
- var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
15
- var d = top.document;
16
- var h = d.getElementsByTagName('head')[0], script = d.createElement('script');
17
- script.type = 'text/javascript';
18
- script.src = '//cdn.readygraph.com/scripts/readygraph.js';
19
- script.onload = function(e) {
20
- var settings = <?php echo str_replace("\\\"", "\"", get_option('readygraph_settings', '{}')) ?>;
21
- settings['applicationId'] = '<?php echo get_option('readygraph_application_id', '') ?>';
22
- settings['overrideFacebookSDK'] = true;
23
- settings['platform'] = 'others';
24
- settings['enableLoginWall'] = <?php echo get_option('readygraph_enable_popup', 'false') ?>;
25
- settings['enableSidebar'] = <?php echo get_option('readygraph_enable_sidebar', 'false') ?>;
26
- settings['inviteFlowDelay'] = <?php echo get_option('readygraph_delay', '5000') ?>;
27
- settings['enableNotification'] = <?php echo get_option('readygraph_enable_notification', 'false') ?>;
28
- settings['inviteAutoSelectAll'] = <?php echo get_option('readygraph_auto_select_all', 'true') ?>;
29
- top.readygraph.setup(settings);
30
- readygraph.ready(function() {
31
- readygraph.framework.require(['auth', 'invite', 'compact.sdk'], function() {
32
- function process(userInfo) {
33
- var rg_email = userInfo.get('email');
34
- var first_name = userInfo.get('first_name');
35
- var last_name = userInfo.get('last_name');
36
- <?php if ( is_plugin_active( 'subscribe2/subscribe2.php' ) ) { ?>
37
- jQuery.post(ajaxurl,
38
- {
39
- action : 's2-myajax-submit',
40
- email : rg_email
41
- },function(){});
42
- <?php } ?>
43
- <?php if ( is_plugin_active( 'email-newsletter/email-newsletter.php' ) ) { ?>
44
- jQuery.post(ajaxurl,
45
- {
46
- action : 'ee-myajax-submit',
47
- email : rg_email
48
- },function(){});
49
- <?php } ?>
50
- <?php if ( is_plugin_active( 'simple-subscribe/SimpleSubsribe.php' ) ) { ?>
51
- jQuery.post(ajaxurl,
52
- {
53
- action : 'ss-myajax-submit',
54
- email : rg_email,
55
- fname : first_name,
56
- lname : last_name
57
- },function(){});
58
- <?php } ?>
59
- <?php if ( is_plugin_active( 'simple-contact-form/simple-contact-form.php' ) ) { ?>
60
- jQuery.post(ajaxurl,
61
- {
62
- action : 'gCF-myajax-submit',
63
- email : rg_email,
64
- name : first_name
65
- },function(){});
66
- <?php } ?>
67
- }
68
- readygraph.framework.authentication.getUserInfo(function(userInfo) {
69
- if (userInfo.get('uid') != null) {
70
- process(userInfo);
71
- }
72
- else {
73
- userInfo.on('change:fb_access_token change:rg_access_token', function() {
74
- readygraph.framework.authentication.getUserInfo(function(userInfo) {
75
- process(userInfo);
76
- });
77
- });
78
- }
79
- }, true);
80
- });
81
- });
82
- }
83
- h.appendChild(script);
84
- </script>
85
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/faq.php DELETED
@@ -1,132 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
- include("header.php");
16
-
17
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
18
- //redirect to main page
19
- $current_url = explode("&", $_SERVER['REQUEST_URI']);
20
- //echo '<script>window.location.replace("'.$current_url[0].'");</script>';
21
- }
22
- else {
23
-
24
- }
25
- ?>
26
-
27
- <form method="post" id="myForm">
28
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
29
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
30
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
31
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
32
-
33
- <div class="tutorial-true" style="margin: 5% auto;">
34
- <h3 style="font-weight: normal; text-align: center;">Frequenty Asked Questions</h3>
35
-
36
- <h4> GENERAL QUESTIONS: </h4>
37
-
38
- <b>What is ReadyGraph?</b>
39
-
40
- <p>ReadyGraph is a tool that makes it easy for websites to grow and manage their user-base, by allowing/utilizing: <b>user sign-up</b>, through an optional notification tab and an intelligent pop-up, with one-click sign-up and social login options; <b>user friend invitations</b>, through the sign-up pop-up, or a sidebar button; <b>automated emails</b>(optional) that keep visitors coming back, such as welcome messages to greet new users, recent site updates/posts to keep them informed, gentle reminders for inactive users, and a weekly digest of new content; <b>mass emailing</b>, for fast communication to all your subscribers; <b>user-interaction</b>, through an optional comment-feed sidebar; <b>analytic tools</b>, to track new subscribers, daily visits, and other key metrics that quantify your website’s growth and user engagement.</p>
41
-
42
- <b>How do I install ReadyGraph?</b>
43
-
44
- <p>After installing this plug-in, you can activate the ReadyGraph features by connecting/signing-up for your ReadyGraph account.</p>
45
-
46
- <b>How do I uninstall ReadyGraph?</b>
47
-
48
- <p>You can deactivate the ReadyGraph features by navigating to the upper-right corner of the “ReadyGraph App” page, clicking the drop-down menu with your email address, and disconnecting your ReadyGraph account.</p>
49
-
50
- <b>Can I delay the sign-up pop-up?</b>
51
-
52
- <p>Yes, you can delay the pop-up for up to 20 minutes; however, the most effective delay is only a few seconds. That ensures that users are engaged, before showing the pop-up to them. </p>
53
-
54
- <b>How do I check my website’s stats?</b>
55
-
56
- <p>You can check your website’s stats by clicking the “Insights” button at the upper-right corner of the “ReadyGraph App” page. There, you will find various metrics about your site growth.</p>
57
-
58
- <b>Can I use both the pop-up and the form widget?</b>
59
-
60
- <p>Yes, you can; they will not conflict with each other.</p>
61
-
62
- <b>How do I contact someone for support, or to suggest a feature?</b>
63
-
64
- <p>You can contact us at info@readygraph.com. We appreciate all feedback.</p>
65
-
66
- <b>I’m having problems with the latest version of the plug-in; can I switch back to an older version?</b>
67
-
68
- <p>Yes, just navigate to the “Developers” tab on the wordpress.org plug-in page, and select the version that works for you.</p>
69
-
70
- <h4> ACCOUNT QUESTIONS: </h4>
71
-
72
- <b>How do I change my account email address?</b>
73
-
74
- <p>Contact us as info@readygraph.com.</p>
75
-
76
- <b>How do I turn off email notifications from ReadyGraph?</b>
77
-
78
- <p>You can turn them off via the account settings page on ReadyGraph.com.</p>
79
-
80
- <b>How do I disconnect ReadyGraph from my site?</b>
81
-
82
- <p>You can disconnect ReadyGraph from your site by navigating to the upper-right corner of the “ReadyGraph App” page in this plug-in, and clicking the drop-down menu with your email address on it; there will be an option there to disconnect ReadyGraph from your site.</p>
83
-
84
- <h4> CUSTOMIZATION QUESTIONS: </h4>
85
-
86
- <b>Can I customize the pop-up?</b>
87
-
88
- <p>Yes, you can choose a template that matches your site design, from the various templates available.</p>
89
-
90
- <b>Can I customize the friend-invite form?</b>
91
-
92
- <p>You can customize the text on the friend invite form to something that suits your website.</p>
93
-
94
- <b>Can I customize my emails?</b>
95
-
96
- Yes, on the right side of the “ReadyGraph App” page, you will find a link to a page where you can Configure/Enable/Disable the various automated emails that you can send via ReadyGraph.</p>
97
-
98
- <h4> QUESTIONS ABOUT YOUR SUBSCRIBERS: </h4>
99
-
100
- <b>How do I view my subscribers?</b>
101
-
102
- <p>Clicking the “Insights” button at the top of the “ReadyGraph App” page of this plug-in will take you to a page where you can view a list of your subscribers.</p>
103
-
104
- <b>How do I mail my subscribers?</b>
105
-
106
- <p>On the right side of the “ReadyGraph App” page, you will find a link to a page where you can send mass emails to your subscribers.</p>
107
-
108
- <b>Can I import a list of existing subscribers?</b>
109
-
110
- <p>This is a feature currently under development and is scheduled to be released in our next update.</p>
111
-
112
- <b>Can I export a list of my subscribers?</b>
113
-
114
- <p>This is a feature currently under development and is scheduled to be released in our next update.</p>
115
-
116
- <b>If I decide to stop using ReadyGraph, do I keep my subscribers?</b>
117
-
118
- <p>Yes, contact us at info@readygraph.com for assistance.</p>
119
-
120
- <b>Can I send automated emails/newsletters to my subscribers?</b>
121
-
122
- <p>On the right side of the “ReadyGraph App” page, you will find a link to a page where you can Enable/Disable/Configure the various automated emails that you can send via ReadyGraph.</p>
123
-
124
- <b>Is ReadyGraph necessary in order to use this plug-in?</b>
125
-
126
- <p>No, it isn’t; you can use this plug-in without ReadyGraph features enabled, but you would be missing out on added growth opportunities.</p>
127
-
128
- If you have questions or concerns, contact us anytime at [info@readygraph.com](mailto:info@readygraph.com)
129
- </div>
130
-
131
- </form>
132
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/footer.php DELETED
@@ -1,434 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
-
16
- ?>
17
-
18
- <script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
19
- <script>
20
- var $ = jQuery;
21
- var jsData;
22
- $(function () {
23
- var settings =
24
- {
25
- 'host': "www.readygraph.com"
26
- , 'clientId': "9838eb84c6da2fc44ab9"
27
- };
28
-
29
- var authHost = "https://" + settings.host;
30
- var resourceHost = "https://" + settings.host;
31
- var app_id = "<?php echo get_option('readygraph_application_id');?>";
32
- var app_secret = "<?php echo get_option('readygraph_connect_anonymous_app_secret');?>";
33
- // OAuth 2.0 Popup
34
- //
35
- var popupWindow=null;
36
- function openPopup(url)
37
- {
38
- if(popupWindow && !popupWindow.closed) popupWindow.focus();
39
- 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);
40
- }
41
- function parent_disable() {
42
- if(popupWindow && !popupWindow.closed) popupWindow.focus();
43
- }
44
- $("a.monetize").click(function() {
45
- if(app_id.length > 0) {
46
- $.ajax({
47
- url: resourceHost + '/api/v1/wp-monetize/'
48
- , method: 'POST'
49
- , data: {
50
- app_id: $('[name="readygraph_application_id"]').val(),
51
- monetize: "true",
52
- client_id: settings.clientId
53
- }
54
- , success: function (response) {
55
- var monetize_adsoptimal_id = response.data.adsoptimal_id;
56
- var monetize_adsoptimal_secret = response.data.adsoptimal_secret;
57
- jQuery.post(ajaxurl,{action : 's2-myajax-submit',readygraph_monetize : "true",adsoptimal_id : monetize_adsoptimal_id, adsoptimal_secret : monetize_adsoptimal_secret},function() {});
58
- /* future processing for sites opted in for monetization */
59
- }
60
- , error: function (response) {
61
- console.log(response);
62
- /* future process */
63
- }
64
- });}
65
- var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token&app_id='+app_id+'&app_secret='+app_secret;
66
- openPopup(url);
67
- $(document.body).bind('focus', parent_disable);
68
- $(document.body).bind('click', parent_disable);
69
- });
70
-
71
- $("a.connect").click(function() {
72
- if(document.getElementById('readygraph_monetize').checked) {
73
- enable_monetize = true;
74
- } else {
75
- enable_monetize = false;
76
- }
77
- if (enable_monetize){
78
- $.post(ajaxurl,{action : 's2-myajax-submit',readygraph_monetize : "true"},function() {});
79
- var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token&monetization=true';
80
- }
81
- else{
82
- $.post(ajaxurl,{action : 's2-myajax-submit',readygraph_monetize : "false"},function() {});
83
- var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
84
- }
85
- openPopup(url);
86
- $(document.body).bind('focus', parent_disable);
87
- $(document.body).bind('click', parent_disable);
88
- });
89
- $(".change-account").click(function() {
90
- document.cookie="readygraph_tutorial=true"
91
- var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
92
- var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
93
- openPopup(logout);
94
- $(document.body).bind('focus', parent_disable);
95
- $(document.body).bind('click', parent_disable);
96
- });
97
-
98
- // User Interface
99
- //
100
- $('.template').click(function() {
101
- $('#preview').attr('src', $(this).find('img').attr('src'));
102
- });
103
-
104
- // Manage OAuth 2.0 Redirect
105
- //
106
- var extractCode = function(hash) {
107
- var match = hash.match(/code=(\w+)/);
108
- return !!match && match[1];
109
- };
110
- var extractToken = function(hash) {
111
- var match = hash.match(/access_token=(\w+)/);
112
- return !!match && match[1];
113
- };
114
- var extractError = function(hash) {
115
- var match = hash.match(/error=(\w+)/);
116
- return !!match && match[1];
117
- };
118
-
119
- var code = extractCode(window.location.href);
120
- if (extractError(window.location.href) == 'access_denied') {
121
- window.close();
122
- }
123
- else if(code) {
124
- try { window.opener.setCode(code); }
125
- catch(ex) { }
126
- window.close();
127
- }
128
- else {
129
- $('.rgw-fb-login-button-iframe').hide();
130
- $('div.authenticate').show();
131
-
132
- if ($('[name="readygraph_access_token"]').val()) {
133
- $('.rgw-fb-login-button-iframe').show();
134
- $('div.authenticate').hide();
135
- $('div.authenticating').hide();
136
- $('div.authenticated').show();
137
-
138
- $('.email-address').text($('[name="readygraph_email"]').val());
139
-
140
- window.setup_readygraph($('[name="readygraph_application_id"]').val());
141
- $('.popup-delay').val($('[name="readygraph_delay"]').val());
142
- if ($('[name="readygraph_enable_popup"]').val() == "true"){
143
- $('.signup-popup').val('yes-center');
144
- }
145
- else if ($('[name="readygraph_enable_notification"]').val() == "true"){
146
- $('.signup-popup').val('yes-bottom-right');
147
- }
148
- else{
149
- $('.signup-popup').val('no');
150
- }
151
- $('.delay').val($('[name="readygraph_delay"]').val());
152
- $('.notification').val($('[name="readygraph_enable_notification"]').val());
153
- $('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
154
- $('.branding').val($('[name="readygraph_enable_branding"]').val());
155
- $('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
156
- $('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
157
- $('.popup_template').val($('[name="readygraph_popup_template"]').val());
158
- $('.result').text('...');
159
- if ($('[name="readygraph_access_token"]').val()) {
160
- $.ajax({
161
- url: resourceHost + '/api/v1/insight_info'
162
- , beforeSend: function (xhr) {
163
- xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
164
- xhr.setRequestHeader('Accept', "application/json");
165
- }
166
- , method: 'POST'
167
- , success: function (response) {
168
- if (response.data) {
169
- $('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
170
- $('.user_tier').text(((response.data.user_tier > 0) ? ' Premium User ' : ' Free User '));
171
-
172
- } else {
173
- $('.result').text('Insight');
174
- $('.result').text(' Free User ');
175
- }
176
- }
177
- , error: function (response) {
178
- refresh_access_token();
179
- }
180
- });
181
- }
182
- }
183
- }
184
-
185
- // Manage OAuth 2.0 Results
186
- //
187
- function refresh_access_token() {
188
- var refresh_token = $('[name="readygraph_refresh_token"]').val();
189
- if (refresh_token) {
190
- $('div.authenticate').hide();
191
- $('div.authenticating').show();
192
- $('div.authenticated').hide();
193
-
194
- $.ajax({
195
- url: resourceHost + '/oauth/access_token'
196
- , data: {
197
- grant_type: 'refresh_token',
198
- refresh_token: $('[name="readygraph_refresh_token"]').val(),
199
- redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
200
- client_id: settings.clientId
201
- }
202
- , method: 'POST'
203
- , success: function (response) {
204
- $('[name="readygraph_access_token"]').val(response.access_token);
205
- $('[name="readygraph_refresh_token"]').val(response.refresh_token);
206
- window.setAccessToken(response.access_token);
207
- $('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
208
- }
209
- , error: function (response) {
210
- alert('We couldn\'t authenticate your account. Please re-connect to ReadyGraph using different browser');
211
- $('div.authenticate').show();
212
- $('div.authenticating').hide();
213
- $('div.authenticated').hide();
214
- }
215
- });
216
- }
217
- }
218
- window.setCode = function(code) {
219
- $('.rgw-fb-login-button-iframe').hide();
220
- $('div.authenticate').hide();
221
- $('div.authenticating').show();
222
- $('div.authenticated').hide();
223
-
224
- $.ajax({
225
- url: resourceHost + '/oauth/access_token'
226
- , data: {
227
- grant_type: 'authorization_code',
228
- code: code,
229
- redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
230
- client_id: settings.clientId
231
- }
232
- , method: 'POST'
233
- , success: function (response) {
234
- if (response) {
235
- $('[name="readygraph_access_token"]').val(response.access_token);
236
- $('[name="readygraph_refresh_token"]').val(response.refresh_token);
237
- window.setAccessToken(response.access_token);
238
- } else {
239
- $('div.authenticating').hide();
240
- $('div.authenticate').show();
241
- }
242
- }
243
- });
244
- }
245
- window.setAccessToken = function(token) {
246
- $('.rgw-fb-login-button-iframe').hide();
247
- $('div.authenticate').hide();
248
- $('div.authenticating').show();
249
- $('div.authenticated').hide();
250
-
251
- $.ajax({
252
- url: resourceHost + '/api/v1/account_info'
253
- , beforeSend: function (xhr) {
254
- xhr.setRequestHeader('Authorization', "Bearer " + token);
255
- xhr.setRequestHeader('Accept', "application/json");
256
- }
257
- , method: 'POST'
258
- , success: function (response) {
259
- if (response.data) {
260
- $('[name="readygraph_access_token"]').val(token);
261
- $('[name="readygraph_email"]').val(response.data.email);
262
- $('[name="readygraph_application_id"]').val(response.data.application_id);
263
- $('#myForm')[0].submit();
264
- } else {
265
- $('div.authenticating').hide();
266
- $('div.authenticate').show();
267
- $('.rgw-fb-login-button-iframe').hide();
268
- }
269
- }
270
- });
271
- }
272
- });
273
- </script>
274
- <script>
275
- window.setup = false;
276
- window.refresh_readygraph = function() {};
277
- window.setup_readygraph = function(app_id) {
278
- if (window.setup) {
279
- window.refresh_readygraph();
280
- return;
281
- }
282
- window.setup = true;
283
- readygraph.setup({
284
- applicationId: app_id,
285
- isPreview: true,
286
- enableLoginWall: false,
287
- enableDistraction: false,
288
- enableAutoLogin: false,
289
- enableSidebar: false,
290
- enableNotification: false,
291
- enableInvite: false,
292
- enableOpenGraph: false,
293
- enableRgSeo: false
294
- });
295
- readygraph.ready(function() {
296
- readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
297
- var $ = readygraph.framework.jQuery;
298
- $.cookie('RGAuth', null);
299
- readygraph.framework.facebook.logout(function() {
300
- readygraph.framework.require(['invite'], function() {
301
- var VIEW_TYPE = {
302
- LOADING: 0,
303
- LOGIN_REQUIRE: 1,
304
- PERMISSION_REQUIRE: 2,
305
- DEFAULT: 3,
306
- LOGIN_WITH_EMAIL: 4,
307
- SIGNUP_WITH_EMAIL: 5,
308
- IMPORT_WITH_EMAIL: 6,
309
- FINISH: 10
310
- };
311
-
312
- var auth = new readygraph.framework.ui.AuthModel({
313
- dialog: true,
314
- 'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
315
- });
316
- $('.rg-preview-widget').html('');
317
- $('.rg-preview-widget').append(auth.lightbox.view.$el);
318
- $('.rgw-content').attr('style', 'position: relative !important;');
319
-
320
- var view = VIEW_TYPE.LOGIN_REQUIRE;
321
- auth.on('switch', function() {
322
- if (auth.view.currentView != view) { auth.view.switchView(view); }
323
- else auth.view.render();
324
- if (view == VIEW_TYPE.DEFAULT) {
325
- auth.view.$el.find('.rgw-invite-view').showAndAnimate();
326
- auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
327
- auth.view.$el.commitTransition();
328
- }
329
- });
330
- auth.view.switchView(view);
331
-
332
- $(window).scroll(function() {
333
- $(window).trigger('rgw-invalidate');
334
- });
335
- $('.rg-preview-widget, .content-warp').scroll(function() {
336
- $(window).trigger('rgw-invalidate');
337
- });
338
- $(window).trigger('rgw-invalidate');
339
-
340
- $('.rg-vertical-tab').click(function() {
341
- saveContent(auth, $('.rg-preview-widget-container'), true);
342
-
343
- $('.rg-vertical-tab').removeClass('active');
344
- $(this).addClass('active');
345
- view = VIEW_TYPE[$(this).attr('tab')];
346
- if (auth.view.currentView != view) { auth.view.switchView(view); }
347
-
348
- $('.rg-preview-widget, .content-warp').scrollTop(10000);
349
- });
350
-
351
- enableContentEditable(auth, $('.rg-preview-widget-container'));
352
- restoreContent(auth, $('.rg-preview-widget-container'));
353
-
354
- $('.save').click(function() {
355
- $('.save').css('opacity', 0.4);
356
- saveContent(auth, $('.rg-preview-widget-container'), false);
357
- });
358
-
359
- window.refresh_readygraph = function() {
360
- restoreContent(auth, $('.rg-preview-widget-container'));
361
- }
362
- });
363
- });
364
- });
365
- });
366
- }
367
- function enableContentEditable(model, container) {
368
- model.view.$el.find('[rgw-data-key]').each(function() {
369
- var element = $(this);
370
- if (element.attr('rgw-data-editable') == 'false') return;
371
-
372
- if (element.attr('editing') != null) return;
373
- container.find('.special-button-container button').attr('disabled', 'disabled');
374
- element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
375
- element.attr('editing', '1');
376
- element.css({
377
- 'border': '2px dashed orange',
378
- 'position': 'relative',
379
- 'top': '-2px',
380
- 'margin-bottom': '-4px',
381
- 'background-color': '#FAFAC5'
382
- });
383
- element.attr('contenteditable', true);
384
- element.bind('paste', function(e) {
385
- e.preventDefault();
386
- });
387
- element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
388
- });
389
- }
390
- function saveContent(model, container, fake) {
391
- var settings = {};
392
- model.view.$el.find('[rgw-data-key]').each(function() {
393
- var element = $(this);
394
- if (element.attr('rgw-data-editable') == 'false') return;
395
- settings[element.attr('rgw-data-key')] = element.text();
396
- readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
397
- });
398
- if (!fake) {
399
- $('input[name="readygraph_settings"]').val(JSON.stringify(settings));
400
- $('#myForm')[0].submit();
401
- }
402
- }
403
- function restoreContent(model, container) {
404
- eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
405
- var settings = window._TEMP;
406
- if (settings) {
407
- model.view.$el.find('[rgw-data-key]').each(function() {
408
- var element = $(this);
409
- if (element.attr('rgw-data-editable') == 'false') return;
410
- element.text(settings[element.attr('rgw-data-key')]);
411
- readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
412
- });
413
- }
414
- }
415
- </script>
416
- <style>
417
- /* FOR INLINE WIDGET */
418
- .rgw-overlay {
419
- display: none !important;
420
- }
421
- .rgw-content-frame {
422
- left: 0 !important;
423
- top: 0 !important;
424
- position: relative !important;
425
- margin: 0 auto !important;
426
- border: solid 1px #cccccc;
427
- }
428
- .rgw-preview-warning {
429
- display: none !important;
430
- }
431
- .rgw-content {
432
- position: relative !important;
433
- }
434
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/functions.php DELETED
@@ -1,59 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
-
4
- /**
5
- * Represents the view for the administration dashboard.
6
- *
7
- * This includes the header, options, and other information that should provide
8
- * The User Interface to the end user.
9
- *
10
- * @package ReadyGraph
11
- * @author dan@readygraph.com
12
- * @license GPL-2.0+
13
- * @link http://www.readygraph.com
14
- * @copyright 2014 Your Name or Company Name
15
- */
16
-
17
- function s2_disconnectReadyGraph(){
18
- $app_id = get_option('readygraph_application_id');
19
- wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
20
- s2_delete_rg_options();
21
- echo '<div class="updated"><p>We are sorry to see you go. ReadyGraph is now disconnected.</p></div>';
22
- }
23
- function s2_deleteReadyGraph(){
24
- $app_id = get_option('readygraph_application_id');
25
- update_option('readygraph_deleted', 'true');
26
- wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
27
- s2_delete_rg_options();
28
- $dir = plugin_dir_path( __FILE__ );
29
- s2_rrmdir($dir);
30
- }
31
- function s2_readygraph_monetize_update(){
32
- $app_id = get_option('readygraph_application_id');
33
- $email = get_option('readygraph_monetize_email');
34
- $monetize = get_option('readygraph_enable_monetize');
35
- $url = 'https://readygraph.com/api/v1/wp-monetize/';
36
- $response = wp_remote_post($url, array( 'body' => array('app_id' => $app_id, 'monetize_email' => $email, 'monetize' => $monetize)));
37
- if ( is_wp_error( $response ) ) {
38
- } else {
39
- $json_decoded = json_decode($response['body'],true);
40
- if (array_key_exists('adsoptimal_id', $json_decoded['data'])) {
41
- update_option('readygraph_adsoptimal_id', $json_decoded['data']['adsoptimal_id']);
42
- } if (array_key_exists('adsoptimal_secret', $json_decoded['data'])) {
43
- update_option('readygraph_adsoptimal_secret', $json_decoded['data']['adsoptimal_secret']);
44
- }
45
- }
46
- }
47
- function s2_siteprofile_sync(){
48
- $app_id = get_option('readygraph_application_id');
49
- $email = get_option('readygraph_email');
50
- $site_name = get_option('readygraph_site_name');
51
- $site_url = get_option('readygraph_site_url');
52
- $site_description = get_option('readygraph_site_description');
53
- $site_category = get_option('readygraph_site_category');
54
- $site_language = get_option('readygraph_site_language');
55
- $url = 'https://readygraph.com/api/v1/wordpress-sync-siteprofile/';
56
- $response = wp_remote_post($url, array( 'body' => array('app_id' => $app_id, 'email' => $email, 'site_profile_name' => $site_name, 'site_profile_url' => $site_url, 'site_description' => $site_description, 'site_category' => $site_category, 'site_language' => $site_language)));
57
- }
58
-
59
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/go-premium.php DELETED
@@ -1,77 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
- include("header.php");
16
-
17
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
18
- }
19
- else {
20
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
21
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
22
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
23
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
24
- if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
25
- if (isset($_POST["retentionemaileditor"])) update_option('readygraph_invite_email', $_POST["retentionemaileditor"]);
26
- }
27
- ?>
28
-
29
-
30
- <form method="post" id="myForm">
31
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
32
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
33
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
34
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
35
- <input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
36
- <input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
37
- <input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
38
- <input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
39
- <input type="hidden" name="readygraph_auto_select_all" value="<?php echo get_option('readygraph_auto_select_all', 'true') ?>">
40
- <input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
41
- <input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
42
- <input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
43
- <input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
44
-
45
- <div style="margin: 3% 5%">
46
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/15.png" style="float: right;margin-left: 10%;" width="310px" height="350px">
47
- <h3><strong>Effortlessly Increase Your Site's Userbase</strong></h3>
48
-
49
- <h4> Scale your audience faster with our Premium Growth Features:</h4>
50
- <div style="width: 60%;">
51
- <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>
52
- <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>
53
- <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>
54
- <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>
55
- <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>
56
- <br>
57
- <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>
58
- </div>
59
- <div style="margin: 65px 0; width: 100%; display: block;">
60
- <div class="rg-three-column" style="float: left">
61
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/12.png" height="40px" style="margin:15px"/>Explosive Website Growth
62
- </div>
63
- <div class="rg-three-column" style="float: left">
64
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/13.png" height="40px" style="margin:15px"/>Develop a Community of Users
65
- </div>
66
- <div class="rg-three-column" style="float: left">
67
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/14.png" height="40px" style="margin:15px"/>Track Growth with Powerful Analytics
68
- </div>
69
- </div>
70
- <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>
71
- <p><h4 class="rg-h4">Don't keep keep your website a secret! Set your growth to "full-blast" with ReadyGraph.</h4> </p>
72
- <p><h4 class="rg-h4"><a target="_blank" href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>">Start A Free Trial Today!</a> </h4></p>
73
-
74
- </div>
75
-
76
- </form>
77
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/header.php DELETED
@@ -1,133 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
- include("functions.php");
16
- if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
17
- if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
18
- if(isset($_GET["readygraph_upgrade_notice"]) && $_GET["readygraph_upgrade_notice"] == "dismiss") {update_option('readygraph_upgrade_notice', 'false');}
19
- global $s2_main_plugin_title;
20
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
21
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
22
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
23
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
24
- if (isset($_POST["readygraph_application_id"])){ update_option('readygraph_application_id', $_POST["readygraph_application_id"]);}
25
- if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
26
- if (isset($_POST["readygraph_delay"])) update_option('readygraph_delay', 10000);
27
- if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', 'true');
28
- if (isset($_POST["readygraph_enable_popup"])) update_option('readygraph_enable_popup', 'true');
29
- update_option('readygraph_enable_sidebar', 'false');
30
- update_option('readygraph_auto_select_all', 'true');
31
- update_option('readygraph_enable_branding', 'false');
32
- update_option('readygraph_send_blog_updates', 'true');
33
- update_option('readygraph_send_real_time_post_updates', 'false');
34
- update_option('readygraph_popup_template', 'default-template');
35
- update_option('readygraph_upgrade_notice', 'true');
36
- update_option('readygraph_tutorial',"true");
37
- $site_url = site_url();
38
- update_option('readygraph_site_url', $site_url);
39
- } else {
40
- }
41
- ?>
42
- <link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
43
- <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>
44
- <script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
45
-
46
- <?php if (get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) > 0){ ?>
47
- <div style="background-color: #2691CB; min-width: 90%; height: 50px;margin-right: 1%;">
48
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
49
- <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
50
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
51
- <span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
52
- </button>
53
- <ul class="dropdown-menu">
54
- <li><a class="change-account" href="#">Change Account</a></li>
55
- <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>
56
- <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>
57
- </ul>
58
- </div>
59
- <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
60
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
61
- <span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
62
- </button>
63
- <ul class="dropdown-menu">
64
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
65
- </ul>
66
- </div>
67
- <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
68
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
69
- <span class="user_tier" style="text-shadow: none;">...</span>
70
- </button>
71
- </div>
72
- <div style="clear: both;"></div>
73
- </div>
74
- <!-- write menu code-->
75
-
76
- <div class="readygraph-nav-menu">
77
-
78
- <ul><li>Grow Users
79
- <ul>
80
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
81
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
82
- <li><a href="#"></a></li>
83
- </ul>
84
- </li>
85
- <li>Email Users
86
- <ul>
87
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
88
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
89
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
90
- </ul>
91
- </li>
92
- <li>
93
- Engage Users
94
- <ul>
95
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
96
- <li><a href="#">Social Followers</a></li>
97
- <li><a href="#">Feedback Survey</a></li>
98
- </ul>
99
- </li>
100
- <li>Basic Settings
101
- <ul>
102
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
103
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
104
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=monetization-settings">Monetization Settings</a></li>
105
- </ul>
106
- </li>
107
- </ul>
108
-
109
- <div class="btn-group" style="margin: 8px 10px 0 10px;">
110
- <p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
111
- </div>
112
- <div class="btn-group" style="margin: 8px 10px 0 10px;">
113
- <p>
114
- <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>
115
- </div>
116
- <div class="btn-group" style="">
117
- <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>
118
- </div>
119
- </div>
120
- <?php } else { ?>
121
- <div style="clear;both;float:right;display:block;width: 10%; height: 50px;margin-right: 3.5%;z-index:999999">
122
- <div class="btn-group pull-right" style="margin: 15px 10px 0 0;z-index:999999">
123
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: rgb(66, 139, 202); border-color: #ffffff; color: #ffffff;z-index:999999 ">
124
- <span class="email-address" style="text-shadow: none;">Settings</span> <span class="caret"></span>
125
- </button>
126
- <ul class="dropdown-menu">
127
- <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>
128
- </ul>
129
- </div>
130
-
131
- </div>
132
-
133
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/index.php DELETED
@@ -1,2 +0,0 @@
1
- <?php // Silence is golden
2
- if ( ! defined( 'ABSPATH' ) ) exit;
 
 
extension/readygraph/invitation-email-not-used.php DELETED
@@ -1,563 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
-
16
- function s2_disconnectReadyGraph(){
17
- $app_id = get_option('readygraph_application_id');
18
- wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
19
- s2_delete_rg_options();
20
- }
21
- function s2_deleteReadyGraph(){
22
- $app_id = get_option('readygraph_application_id');
23
- wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
24
- s2_delete_rg_options();
25
- $dir = plugin_dir_path( __FILE__ );
26
- s2_rrmdir($dir);
27
- }
28
-
29
- if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
30
- if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
31
- global $main_plugin_title;
32
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
33
- //redirect to main page
34
- $current_url = explode("&", $_SERVER['REQUEST_URI']);
35
- echo '<script>window.location.replace("'.$current_url[0].'");</script>';
36
- }
37
- else {
38
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
39
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
40
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
41
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
42
- if (isset($_POST["inviteemaileditor"])) update_option('readygraph_invite_email', mysql_real_escape_string( $_POST["inviteemaileditor"] ));
43
- }
44
- ?>
45
-
46
- <link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
47
- <script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
48
- <form method="post" id="myForm">
49
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
50
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
51
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
52
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
53
-
54
- <div class="authenticate" style="display: none;">
55
- <div class="wrap1" style="min-height: 600px;">
56
-
57
- <div id="icon-plugins" class="icon32"></div>
58
- <h2>We've enhanced <?php echo $main_plugin_title ?> with ReadyGraph's User Growth Engine</h2>
59
-
60
- <p style="display:none;color:red;" id="error"></p>
61
- <div class="register-left">
62
- <div class="alert" style="margin: 0px auto; padding: 15px; text-align: center;">
63
- <h3>Activate ReadyGraph to get more traffic to your site</h3>
64
- <!-- <h3 style="margin-top: 0px; font-weight: 300;"><?php //echo $main_plugin_title ?>, Now with ReadyGraph</h3> -->
65
- <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>
66
- <!--<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>-->
67
- <p>Readygraph adds more ways to connect to your users. </p>
68
- <p style="text-align: left; padding: 0 20px;">
69
- - Get more traffic<br>
70
- - Send automatic email digests of all your site posts<br>
71
- - Get better deliverablility<br>
72
- - Track performace and user activity
73
- </p>
74
- </div>
75
-
76
- </div>
77
-
78
- <div class="register-right">
79
- <div class="form-wrap alert" style="font-size:12px;">
80
- <p><h3>ReadyGraph grows your site</h3></p>
81
- <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>
82
- <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 />
83
- If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a></p>
84
- </div>
85
- </div>
86
- </div>
87
- </div>
88
- <div class="authenticating" style="display: none;">
89
- <div style="color: #ffffff; width: 350px; margin: 100px auto 0px; padding: 15px; border: solid 1px #2a388f; text-align: center; background-color: #1b75bb; -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px;">
90
- <h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
91
- <h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
92
- <p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
93
- <p style="text-align: left; padding: 0 20px;">
94
- - Grow your subscribers faster<br>
95
- - Engage users with automated email updates<br>
96
- - Enhanced email deliverablility<br>
97
- - Track performace with user-activity analytics
98
- </p>
99
- </div>
100
- </div>
101
- <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>
102
- <div class="authenticated" style="display: none;">
103
- <div style="background-color: #1b75bb; min-width: 90%; height: 50px;">
104
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
105
- <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
106
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
107
- <span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
108
- </button>
109
- <ul class="dropdown-menu">
110
- <li><a class="change-account" href="#">Change Account</a></li>
111
- <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>
112
- <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>
113
- </ul>
114
- </div>
115
- <div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
116
- <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
117
- <span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
118
- </button>
119
- <ul class="dropdown-menu">
120
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
121
- </ul>
122
- </div>
123
- <div style="clear: both;"></div>
124
- </div>
125
- <!-- write menu code-->
126
-
127
- <div class="readygraph-nav-menu">
128
- <ul><li>Grow Users
129
- <ul>
130
- <li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
131
- <li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
132
- <li><a href="#"></a></li>
133
- </ul>
134
- </li>
135
- <li>Email Users
136
- <ul>
137
- <li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
138
- <li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
139
- <li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
140
- </ul>
141
- </li>
142
- <li>
143
- Engage Users
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
- </li>
150
- <li>Basic Settings
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><li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=monetization-settings">Monetization Settings</a></li>
154
- </ul>
155
- </li>
156
- </ul>
157
- <div class="btn-group" style="margin: 8px 10px 0 10px;">
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
- </div>
160
- <div class="btn-group" style="margin: 8px 10px 0 10px;">
161
- <p>
162
- <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>
163
- </div>
164
- <div class="btn-group" style="">
165
- <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>
166
- </div>
167
- </div>
168
- <div><div><a href="#">Email</a> > Invitation Email</div>
169
- <h3 style="font-weight: normal; text-align: center;">This email gets sent when users invite each other to your site</h3>
170
- <div style="margin: 0 5%;"><?php /**
171
-
172
- /**
173
- * Basic syntax
174
- */
175
- $content = get_option('readygraph_invite_email');
176
- $editor_id = 'inviteemaileditor';
177
- $settings = array(
178
- 'textarea_rows' => 15,
179
- 'media_buttons' => false,
180
- 'teeny' => true,
181
- 'quicktags' => false
182
- );
183
- wp_editor( $content, $editor_id, $settings );
184
- ?>
185
- </div>
186
- <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=custom-email" style="float: right;margin: 15px">Save Changes & Next</button>
187
- <button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=invitation-email" style="float: right;margin: 15px">Save Changes</button>
188
- <button type="submit" class="btn btn-large btn-warning save-previous" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=custom-email" style="float: right;margin: 15px">Previous</button>
189
- </div>
190
- </div>
191
- </div>
192
- </form>
193
- <script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
194
- <script type="text/javascript" charset="utf-8">
195
- var $ = jQuery;
196
- $(function () {
197
- var settings =
198
- {
199
- 'host': "www.readygraph.com"
200
- , 'clientId': "9838eb84c6da2fc44ab9"
201
- };
202
-
203
- var authHost = "https://" + settings.host;
204
- var resourceHost = "https://" + settings.host;
205
-
206
- // OAuth 2.0 Popup
207
- //
208
- var popupWindow=null;
209
- function openPopup(url)
210
- {
211
- if(popupWindow && !popupWindow.closed) popupWindow.focus();
212
- 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);
213
- }
214
- function parent_disable() {
215
- if(popupWindow && !popupWindow.closed) popupWindow.focus();
216
- }
217
-
218
- $("a.connect").click(function() {
219
- var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
220
- openPopup(url);
221
- $(document.body).bind('focus', parent_disable);
222
- $(document.body).bind('click', parent_disable);
223
- });
224
- $(".change-account").click(function() {
225
- var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
226
- var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
227
- openPopup(logout);
228
- $(document.body).bind('focus', parent_disable);
229
- $(document.body).bind('click', parent_disable);
230
- });
231
-
232
- // User Interface
233
- //
234
- $('.template').click(function() {
235
- $('#preview').attr('src', $(this).find('img').attr('src'));
236
- });
237
-
238
- // Manage OAuth 2.0 Redirect
239
- //
240
- var extractCode = function(hash) {
241
- var match = hash.match(/code=(\w+)/);
242
- return !!match && match[1];
243
- };
244
- var extractToken = function(hash) {
245
- var match = hash.match(/access_token=(\w+)/);
246
- return !!match && match[1];
247
- };
248
- var extractError = function(hash) {
249
- var match = hash.match(/error=(\w+)/);
250
- return !!match && match[1];
251
- };
252
-
253
- var code = extractCode(window.location.href);
254
- if (extractError(window.location.href) == 'access_denied') {
255
- window.close();
256
- }
257
- else if(code) {
258
- try { window.opener.setCode(code); }
259
- catch(ex) { }
260
- window.close();
261
- }
262
- else {
263
- $('.rgw-fb-login-button-iframe').hide();
264
- $('div.authenticate').show();
265
-
266
- if ($('[name="readygraph_access_token"]').val()) {
267
- $('.rgw-fb-login-button-iframe').show();
268
- $('div.authenticate').hide();
269
- $('div.authenticating').hide();
270
- $('div.authenticated').show();
271
-
272
- $('.email-address').text($('[name="readygraph_email"]').val());
273
-
274
- window.setup_readygraph($('[name="readygraph_application_id"]').val());
275
- $('.delay').val($('[name="readygraph_delay"]').val());
276
- $('.sidebar').val($('[name="readygraph_enable_sidebar"]').val());
277
- $('.notification').val($('[name="readygraph_enable_notification"]').val());
278
- $('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
279
- $('.branding').val($('[name="readygraph_enable_branding"]').val());
280
- $('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
281
- $('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
282
- $('.popup_template').val($('[name="readygraph_popup_template"]').val());
283
-
284
- //$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
285
- //$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
286
-
287
- //$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
288
- //$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
289
-
290
- $('.result').text('...');
291
- if ($('[name="readygraph_access_token"]').val()) {
292
- $.ajax({
293
- url: resourceHost + '/api/v1/insight_info'
294
- , beforeSend: function (xhr) {
295
- xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
296
- xhr.setRequestHeader('Accept', "application/json");
297
- }
298
- , method: 'POST'
299
- , success: function (response) {
300
- if (response.data) {
301
- $('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
302
- } else {
303
- $('.result').text('Insight');
304
- }
305
- }
306
- , error: function (response) {
307
- refresh_access_token();
308
- }
309
- });
310
- }
311
- }
312
- }
313
-
314
- // Manage OAuth 2.0 Results
315
- //
316
- function refresh_access_token() {
317
- var refresh_token = $('[name="readygraph_refresh_token"]').val();
318
- if (refresh_token) {
319
- $('div.authenticate').hide();
320
- $('div.authenticating').show();
321
- $('div.authenticated').hide();
322
-
323
- $.ajax({
324
- url: resourceHost + '/oauth/access_token'
325
- , data: {
326
- grant_type: 'refresh_token',
327
- refresh_token: $('[name="readygraph_refresh_token"]').val(),
328
- redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
329
- client_id: settings.clientId
330
- }
331
- , method: 'POST'
332
- , success: function (response) {
333
- $('[name="readygraph_access_token"]').val(response.access_token);
334
- $('[name="readygraph_refresh_token"]').val(response.refresh_token);
335
- window.setAccessToken(response.access_token);
336
- $('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
337
- }
338
- , error: function (response) {
339
- alert('We couldn\'t authenticate your account. Please check your internet connection.');
340
- $('div.authenticate').show();
341
- $('div.authenticating').hide();
342
- $('div.authenticated').hide();
343
- }
344
- });
345
- }
346
- }
347
- window.setCode = function(code) {
348
- $('.rgw-fb-login-button-iframe').hide();
349
- $('div.authenticate').hide();
350
- $('div.authenticating').show();
351
- $('div.authenticated').hide();
352
-
353
- $.ajax({
354
- url: resourceHost + '/oauth/access_token'
355
- , data: {
356
- grant_type: 'authorization_code',
357
- code: code,
358
- redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
359
- client_id: settings.clientId
360
- }
361
- , method: 'POST'
362
- , success: function (response) {
363
- if (response) {
364
- $('[name="readygraph_access_token"]').val(response.access_token);
365
- $('[name="readygraph_refresh_token"]').val(response.refresh_token);
366
- window.setAccessToken(response.access_token);
367
- } else {
368
- $('div.authenticating').hide();
369
- $('div.authenticate').show();
370
- }
371
- }
372
- });
373
- }
374
- window.setAccessToken = function(token) {
375
- $('.rgw-fb-login-button-iframe').hide();
376
- $('div.authenticate').hide();
377
- $('div.authenticating').show();
378
- $('div.authenticated').hide();
379
-
380
- $.ajax({
381
- url: resourceHost + '/api/v1/account_info'
382
- , beforeSend: function (xhr) {
383
- xhr.setRequestHeader('Authorization', "Bearer " + token);
384
- xhr.setRequestHeader('Accept', "application/json");
385
- }
386
- , method: 'POST'
387
- , success: function (response) {
388
- if (response.data) {
389
- $('[name="readygraph_access_token"]').val(token);
390
- $('[name="readygraph_email"]').val(response.data.email);
391
- $('[name="readygraph_application_id"]').val(response.data.application_id);
392
- $('#myForm')[0].submit();
393
- } else {
394
- $('div.authenticating').hide();
395
- $('div.authenticate').show();
396
- $('.rgw-fb-login-button-iframe').hide();
397
- }
398
- }
399
- });
400
- }
401
- });
402
- </script>
403
- <script>
404
- window.setup = false;
405
- window.refresh_readygraph = function() {};
406
- window.setup_readygraph = function(app_id) {
407
- if (window.setup) {
408
- window.refresh_readygraph();
409
- return;
410
- }
411
- window.setup = true;
412
- readygraph.setup({
413
- applicationId: app_id,
414
- isPreview: true,
415
- enableLoginWall: false,
416
- enableDistraction: false,
417
- enableAutoLogin: false,
418
- enableSidebar: false,
419
- enableNotification: false,
420
- enableInvite: false,
421
- enableOpenGraph: false,
422
- enableRgSeo: false
423
- });
424
- readygraph.ready(function() {
425
- readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
426
- var $ = readygraph.framework.jQuery;
427
- $.cookie('RGAuth', null);
428
- readygraph.framework.facebook.logout(function() {
429
- readygraph.framework.require(['invite'], function() {
430
- var VIEW_TYPE = {
431
- LOADING: 0,
432
- LOGIN_REQUIRE: 1,
433
- PERMISSION_REQUIRE: 2,
434
- DEFAULT: 3,
435
- LOGIN_WITH_EMAIL: 4,
436
- SIGNUP_WITH_EMAIL: 5,
437
- IMPORT_WITH_EMAIL: 6,
438
- FINISH: 10
439
- };
440
-
441
- var auth = new readygraph.framework.ui.AuthModel({
442
- dialog: true,
443
- 'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
444
- });
445
- $('.rg-preview-widget').html('');
446
- $('.rg-preview-widget').append(auth.lightbox.view.$el);
447
- $('.rgw-content').attr('style', 'position: relative !important;');
448
-
449
- var view = VIEW_TYPE.LOGIN_REQUIRE;
450
- auth.on('switch', function() {
451
- if (auth.view.currentView != view) { auth.view.switchView(view); }
452
- else auth.view.render();
453
- if (view == VIEW_TYPE.DEFAULT) {
454
- auth.view.$el.find('.rgw-invite-view').showAndAnimate();
455
- auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
456
- auth.view.$el.commitTransition();
457
- }
458
- });
459
- auth.view.switchView(view);
460
-
461
- $(window).scroll(function() {
462
- $(window).trigger('rgw-invalidate');
463
- });
464
- $('.rg-preview-widget, .content-warp').scroll(function() {
465
- $(window).trigger('rgw-invalidate');
466
- });
467
- $(window).trigger('rgw-invalidate');
468
-
469
- $('.rg-vertical-tab').click(function() {
470
- saveContent(auth, $('.rg-preview-widget-container'), true);
471
-
472
- $('.rg-vertical-tab').removeClass('active');
473
- $(this).addClass('active');
474
- view = VIEW_TYPE[$(this).attr('tab')];
475
- if (auth.view.currentView != view) { auth.view.switchView(view); }
476
-
477
- $('.rg-preview-widget, .content-warp').scrollTop(10000);
478
- });
479
-
480
- enableContentEditable(auth, $('.rg-preview-widget-container'));
481
- restoreContent(auth, $('.rg-preview-widget-container'));
482
-
483
- $('.save').click(function() {
484
- $('.save').css('opacity', 0.4);
485
- saveContent(auth, $('.rg-preview-widget-container'), false);
486
- });
487
-
488
- window.refresh_readygraph = function() {
489
- restoreContent(auth, $('.rg-preview-widget-container'));
490
- }
491
- });
492
- });
493
- });
494
- });
495
- }
496
- function enableContentEditable(model, container) {
497
- model.view.$el.find('[rgw-data-key]').each(function() {
498
- var element = $(this);
499
- if (element.attr('rgw-data-editable') == 'false') return;
500
-
501
- if (element.attr('editing') != null) return;
502
- container.find('.special-button-container button').attr('disabled', 'disabled');
503
- element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
504
- element.attr('editing', '1');
505
- element.css({
506
- 'border': '2px dashed orange',
507
- 'position': 'relative',
508
- 'top': '-2px',
509
- 'margin-bottom': '-4px',
510
- 'background-color': '#FAFAC5'
511
- });
512
- element.attr('contenteditable', true);
513
- element.bind('paste', function(e) {
514
- e.preventDefault();
515
- });
516
- element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
517
- });
518
- }
519
- function saveContent(model, container, fake) {
520
- var settings = {};
521
- model.view.$el.find('[rgw-data-key]').each(function() {
522
- var element = $(this);
523
- if (element.attr('rgw-data-editable') == 'false') return;
524
- settings[element.attr('rgw-data-key')] = element.text();
525
- readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
526
- });
527
- if (!fake) {
528
- $('input[name="readygraph_settings"]').val(JSON.stringify(settings));
529
- $('#myForm')[0].submit();
530
- }
531
- }
532
- function restoreContent(model, container) {
533
- eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
534
- var settings = window._TEMP;
535
- if (settings) {
536
- model.view.$el.find('[rgw-data-key]').each(function() {
537
- var element = $(this);
538
- if (element.attr('rgw-data-editable') == 'false') return;
539
- element.text(settings[element.attr('rgw-data-key')]);
540
- readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
541
- });
542
- }
543
- }
544
- </script>
545
- <style>
546
- /* FOR INLINE WIDGET */
547
- .rgw-overlay {
548
- display: none !important;
549
- }
550
- .rgw-content-frame {
551
- left: 0 !important;
552
- top: 0 !important;
553
- position: relative !important;
554
- margin: 0 auto !important;
555
- border: solid 1px #cccccc;
556
- }
557
- .rgw-preview-warning {
558
- display: none !important;
559
- }
560
- .rgw-content {
561
- position: relative !important;
562
- }
563
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/monetization.php DELETED
@@ -1,70 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
- include("header.php");
16
-
17
-
18
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
19
- }
20
- else {
21
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
22
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
23
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
24
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
25
- }
26
- if ($_SERVER['REQUEST_METHOD'] === 'POST') {
27
- if (isset($_POST["readygraph_monetize"]) && $_POST["readygraph_monetize"] == "1") update_option('readygraph_enable_monetize', "true");
28
- else update_option('readygraph_enable_monetize', "false");
29
- if (isset($_POST["readygraph_monetize_email"])) update_option('readygraph_monetize_email', $_POST["readygraph_monetize_email"]);
30
- s2_readygraph_monetize_update();
31
- }
32
- ?>
33
-
34
- <form method="post" id="myForm">
35
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
36
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
37
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
38
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
39
- <input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
40
- <input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
41
- <input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
42
- <input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
43
- <input type="hidden" name="readygraph_auto_select_all" value="<?php echo get_option('readygraph_auto_select_all', 'true') ?>">
44
- <input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
45
- <input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
46
- <input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
47
- <input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
48
-
49
- <div style="margin: 3% 5%">
50
- <?php if(get_option('readygraph_enable_monetize') && get_option('readygraph_enable_monetize') == "true") { ?><h3 style="font-weight: normal; text-align: center;"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/check.png"/>Congratulations! <?php echo $s2_main_plugin_title; ?>'s ReadyGraph monetization engine is now active.</h3><?php } ?>
51
- <h3><strong>Adjust Revenue Settings</strong></h3>
52
-
53
- <div style="width: 60%;">
54
- <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/round-check.png" style="float: left; height: 20px; vertical-align: middle;"/><h5 class="rg-h4" style="margin-left: 30px;text-align:justify; line-height: 20px;">Note: To view your revenue stats, adjust ad placements, and request payment, please click the button below. This will take you to your dashboard page powered by our monetization partner AdsOptimal. Please contact us <a href="mailto:info@readygraph.com">info@readygraph.com</a> anytime if you have questions. If you no longer wish to monetize via our non-intrusive highly optimized ad units, you can turn off monetization below. Remember to save your changes!</h5>
55
-
56
- <br>
57
- <div style="display: block; margin: 10px;"><label for="readygraph_monetize_email">Email:</label><input type="text" name="readygraph_monetize_email" id="readygraph_monetize_email" value="<?php echo get_option('readygraph_monetize_email');?>" style="display: inline; margin: 0 0 0 20px" /></div>
58
- <p><input type="checkbox" name="readygraph_monetize" value="1" style="margin: 0 10px;" <?php if(get_option('readygraph_enable_monetize') && get_option('readygraph_enable_monetize') == "true") echo "checked"; ?> >Enable Monetization</span>
59
- <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 Monetization Settings</strong><br />You can check/uncheck this box to enable/disable the monetization settings for ReadyGraph<br /></span></a>
60
- </p>
61
- <div class="save-changes">
62
- <a type="button" class="btn btn-large btn-warning" href="https://www.adsoptimal.com/api/v4/redirect/dashboard?adoid=<?php echo get_option('readygraph_adsoptimal_id', ''); ?>&secret=<?php echo get_option('readygraph_adsoptimal_secret', ''); ?>;" target="_blank" style="margin: 15px">View Revenue Dashboard</a><button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=monetization-settings" style="margin: 15px">Save Changes</button>
63
- </div>
64
-
65
- </div>
66
-
67
- </div>
68
-
69
- </form>
70
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/signup-popup.php DELETED
@@ -1,173 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
-
16
-
17
- include("header.php");
18
-
19
- if(isset($_GET["readygraph_upgrade_notice"]) && $_GET["readygraph_upgrade_notice"] == "dismiss") {update_option('readygraph_upgrade_notice', 'false');}
20
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
21
- $current_url = explode("&", $_SERVER['REQUEST_URI']);
22
- echo '<script>window.location.replace("'.$current_url[0].'");</script>';
23
- }
24
- else {
25
- if(isset($_GET["source"]) && $_GET["source"] == "basic-settings"){
26
-
27
- }
28
- else{
29
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
30
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
31
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
32
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
33
-
34
- if (isset($_POST["sitedesceditor"])) update_option('readygraph_site_description', $_POST["sitedesceditor"]);
35
- if (isset($_POST["site_profile_name"])) update_option('readygraph_site_name', $_POST["site_profile_name"]);
36
- if (isset($_POST["site_profile_url"])) update_option('readygraph_site_url', $_POST["site_profile_url"]);
37
- if (isset($_POST["site_category"])) update_option('readygraph_site_category', $_POST["site_category"]);
38
- if (isset($_POST["site_language"])) {update_option('readygraph_site_language', $_POST["site_language"]);s2_siteprofile_sync();}
39
-
40
- if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
41
- if (isset($_POST["readygraph_delay"])) {
42
- update_option('readygraph_delay', $_POST["delay"]);
43
- $app_id = get_option('readygraph_application_id');
44
- if ($_POST["delay"] >= 20000) wp_remote_get( "http://readygraph.com/api/v1/tracking?event=popup_delay&app_id=$app_id" );
45
- }
46
- if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', $_POST["notification"]);
47
- if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', $_POST["selectAll"]);
48
- if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', $_POST["branding"]);
49
- if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', $_POST["blog_updates"]);
50
- if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', $_POST["real_time_post_update"]);
51
- if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', $_POST["popup_template"]);
52
- }
53
-
54
- }
55
- if (get_option('readygraph_enable_branding', '') == 'false') {
56
- ?>
57
- <style>
58
- /* FOR INLINE WIDGET */
59
- .rgw-text {
60
- display: none !important;
61
- }
62
- </style>
63
- <?php } ?>
64
-
65
- <form method="post" id="myForm">
66
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
67
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
68
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
69
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
70
- <input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
71
- <input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
72
- <input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
73
- <input type="hidden" name="readygraph_auto_select_all" value="<?php echo get_option('readygraph_auto_select_all', 'true') ?>">
74
- <input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
75
- <input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
76
- <input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
77
- <input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
78
- <div><div><a href="#">Grow Users</a> > Signup Popup</div>
79
- <?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>
80
- <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>
81
- </div>
82
- <?php } ?>
83
- <h3 style="font-weight: normal; text-align: center;">Increase signups with the Intelligent Signup Popup</h3>
84
- <h4 style="font-weight: normal; text-align: center;">Users instantly added to your list - One Click Signup - Automatically targets engaged users</h4>
85
- <div style="width: 90%; margin: 0 auto;">
86
- <div class="rg-vertical-tab-body-container" style="width: 50%; text-align: center;float: left">
87
- <div class="btn-group" data-toggle="buttons" style="padding: 20px 0;">
88
- <label class="btn btn-primary active rg-vertical-tab" tab="LOGIN_REQUIRE">
89
- <input type="radio" name="options" id="option1"> Facebook Connect
90
- </label>
91
- <label class="btn btn-primary rg-vertical-tab" tab="LOGIN_WITH_EMAIL">
92
- <input type="radio" name="options" id="option2"> Email Sign In
93
- </label>
94
- <label class="btn btn-primary rg-vertical-tab" tab="IMPORT_WITH_EMAIL">
95
- <input type="radio" name="options" id="option3"> Contact Importer
96
- </label>
97
- <label class="btn btn-primary rg-vertical-tab" tab="DEFAULT">
98
- <input type="radio" name="options" id="option4"> Invitation Page
99
- </label>
100
- <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 Plugin Settings</strong><br />You can directly edit the text in the orange box below.<br /></span></a>
101
- </div>
102
- <div class="rg-preview-widget" style=""></div>
103
- </div>
104
- <div style="width:50%; border-left: solid 1px #cccccc; text-align: left;padding-left: 25px;float:right">
105
- <div style="padding: 20px 0;">
106
- <p>Popup Templates:
107
- <select class="popup_template" name="popup_template" class="form-control">
108
- <option value="default-template">Default Template</option>
109
- <option value="red-template">Red Template</option>
110
- <option value="blue-template">Blue Template</option>
111
- <option value="black-template">Black Template</option>
112
- <option value="gray-template">Gray Template</option>
113
- <option value="green-template">Green Template</option>
114
- <option value="yellow-template">Yellow Template</option>
115
- <option value="custom-template">Custom Template</option>
116
- </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>Templates</strong><br />For custom colors, select custom-template and change your colors in [plugin_name]/extension/readygraph/assets/css/custom-popup.css.<br />You can do a lot more with CSS.</span></a></p><br />
117
- <p>Signup Popup Delay:
118
- <select class="delay" name="delay" class="form-control">
119
- <option value="0">0 seconds</option>
120
- <option value="5000">5 seconds</option>
121
- <option value="10000">10 seconds</option>
122
- <option value="15000">15 seconds</option>
123
- <option value="20000">20 seconds</option>
124
- <option value="30000">30 seconds</option>
125
- <option value="60000">1 minute</option>
126
- <option value="120000">2 minutes</option>
127
- <option value="180000">3 minutes</option>
128
- <option value="240000">4 minutes</option>
129
- <option value="300000">5 minutes</option>
130
- <option value="600000">10 minutes</option>
131
- <option value="900000">15 minutes</option>
132
- <option value="1200000">20 minutes</option>
133
- </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 Popup Settings</strong><br />ReadyGraph's intelligent registration popup maximizes signups to your list. You can adjust it so that it displays to users after a preset time. Shorter times will yield more signups. <br /></span></a></p><br />
134
-
135
- <p>Enable Lower Right Notification:
136
- <select class="notification" name="notification" class="form-control">
137
- <option value="true">YES</option>
138
- <option value="false">NO</option>
139
- </select></p><br />
140
- <p>Pre-checked Invite Contact:
141
- <select class="selectAll" name="selectAll" class="form-control">
142
- <option value="true">YES</option>
143
- <option value="false">NO</option>
144
- </select></p><br />
145
- <p>Show Powered by Readygraph on popup:
146
- <select class="branding" name="branding" class="form-control">
147
- <option value="true">YES</option>
148
- <option value="false">NO</option>
149
- </select></p><br />
150
- <p>Include blog updates in daily/weekly email digest of Readygraph:
151
- <select class="blog_updates" name="blog_updates" class="form-control">
152
- <option value="true">YES</option>
153
- <option value="false">NO</option>
154
- </select></p><br />
155
- <p>Send Real Time Post Updates to your subscribers:
156
- <select class="real_time_post_update" name="real_time_post_update" class="form-control">
157
- <option value="true">YES</option>
158
- <option value="false">NO</option>
159
- </select></p><br />
160
-
161
-
162
- <p>If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a></p><br />
163
- </div>
164
- <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=social-feed&source=signup-popup" style="float: right;margin: 15px">Save Changes & Next</button> <?php } ?>
165
- <button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup" style="float: right;margin: 15px">Save Changes</button>
166
- <?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=site-profile" style="float: right;margin: 15px">Previous</button> <?php } ?>
167
- </div>
168
- </div>
169
- </div>
170
- </div>
171
-
172
- </form>
173
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/site-profile.php DELETED
@@ -1,357 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
-
16
- include("header.php");
17
-
18
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
19
- //redirect to main page
20
- $current_url = explode("&", $_SERVER['REQUEST_URI']);
21
- echo '<script>window.location.replace("'.$current_url[0].'");</script>';
22
- }
23
- else {
24
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
25
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
26
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
27
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
28
- if (isset($_POST["sitedesceditor"])) update_option('readygraph_site_description', $_POST["sitedesceditor"]);
29
- if (isset($_POST["site_profile_name"])) update_option('readygraph_site_name', $_POST["site_profile_name"]);
30
- if (isset($_POST["site_profile_url"])) update_option('readygraph_site_url', $_POST["site_profile_url"]);
31
- if (isset($_POST["site_category"])) update_option('readygraph_site_category', $_POST["site_category"]);
32
- if (isset($_POST["site_language"])) update_option('readygraph_site_language', $_POST["site_language"]);
33
- if ($_SERVER['REQUEST_METHOD'] === 'POST') {
34
- s2_siteprofile_sync();
35
- }
36
- }
37
- if(isset($_GET["readygraph_plan"]) && $_GET["readygraph_plan"] != ""){update_option('readygraph_plan',$_GET["readygraph_plan"]);}
38
-
39
- ?>
40
-
41
-
42
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
43
- <script type="text/javascript" src="<?php echo plugins_url( 'assets/js/jquery.dependent-selects.js', __FILE__ ) ?>"></script>
44
- <script type="text/javascript" charset="utf-8">
45
- $(function(){
46
- jQuery('.dependent-demo2').dependentSelects({
47
- separator: '||',
48
- placeholderOption: '-- Please Select --'
49
- });
50
- })
51
- </script>
52
- <form method="post" id="myForm">
53
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
54
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
55
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
56
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
57
- <input type="hidden" name="readygraph_site_category" value="<?php echo get_option('readygraph_site_category', '') ?>">
58
- <input type="hidden" name="readygraph_site_language" value="<?php echo get_option('readygraph_site_language', '') ?>">
59
- <div><div><a href="#">Basic Settings</a> > Site Profile</div>
60
- <?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>
61
- <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>
62
- </div>
63
- <?php } ?>
64
- <h3 style="font-weight: normal; text-align: center;">Be sure your site profile is accurate!</h3>
65
- <h4 style="font-weight: normal; text-align: center;">This content is used in your site's features and emails</h4>
66
- <div style="margin: 0 5%;">
67
- <!--<div style="display: block; margin: 10px;"><label for="site_profile_image_upload" style="width: 120px">Site Icon: </label> <input type="file" name="site_profile_image_upload" id="site_profile_image_upload" multiple="false" style="display: inline; margin: 0 0 0 120px" /></div>-->
68
- <div style="display: block; margin: 10px;"><label for="site_profile_name" style="width: 120px">Site Name:</label><input type="text" name="site_profile_name" id="site_profile_name" value="<?php echo get_option('readygraph_site_name');?>" style="display: inline; margin: 0 0 0 120px" /></div>
69
- <div style="display: block; margin: 10px;"><label for="site_profile_url" style="width: 120px">Site URL:</label><input type="text" name="site_profile_url" id="site_profile_url" value="<?php echo get_option('readygraph_site_url');?>" style="display: inline; margin: 0 0 0 120px" /></div>
70
- <div class="site_category" style="display: block; margin: 10px;"><label for="site_category" style="width: 120px">Site Category:</label>
71
- <select name="site_category" class="dependent-demo2" style="display: inline; margin: 0 0 0 116px" >
72
- <option></option>
73
- <option value="animation-comics">Arts and Entertainment||animation and comics</option>
74
- <option value="architecture">Arts and Entertainment||architecture</option>
75
- <option value="awards">Arts and Entertainment||awards</option>
76
- <option value="celebritities-entertainment">Arts and Entertainment||celebritities and entertainment</option>
77
- <option value="fashion-modeling">Arts and Entertainment||fashion and modeling</option>
78
- <option value="humor">Arts and Entertainment||humor</option>
79
- <option value="movies">Arts and Entertainment||movies</option>
80
- <option value="music-audio">Arts and Entertainment||music and audio</option>
81
- <option value="performing-arts">Arts and Entertainment||performing arts</option>
82
- <option value="photography">Arts and Entertainment||photography</option>
83
- <option value="TV-video">Arts and Entertainment||TV and video</option>
84
- <option value="web-design">Arts and Entertainment||web design</option>
85
-
86
- <option value="automotive-industry">Autos and Vehicles||automotive industry</option>
87
- <option value="automotive-news">Autos and Vehicles||automotive news</option>
88
- <option value="aviation">Autos and Vehicles||aviation</option>
89
- <option value="boating">Autos and Vehicles||boating</option>
90
- <option value="car-buying">Autos and Vehicles||car buying</option>
91
- <option value="car-rentals">Autos and Vehicles||car rentals</option>
92
- <option value="makes-model">Autos and Vehicles||makes and models</option>
93
- <option value="motorcycles">Autos and Vehicles||motorcycles</option>
94
- <option value="motorsports">Autos and Vehicles||motorsports</option>
95
- <option value="trains-railroads">Autos and Vehicles||trains and railroads</option>
96
-
97
- <option value="beauty">Beauty and Fitness||Beauty</option>
98
- <option value="bodyart">Beauty and Fitness||bodyart</option>
99
- <option value="cosmetics">Beauty and Fitness||cosmetics</option>
100
- <option value="fitness">Beauty and Fitness||fitness</option>
101
- <option value="hair">Beauty and Fitness||hair</option>
102
- <option value="skin-care">Beauty and Fitness||skin care</option>
103
- <option value="weight-loss">Beauty and Fitness||weight loss</option>
104
-
105
- <option value="book-retailers">Books and Literature||book retailers</option>
106
- <option value="E-books">Books and Literature||E books</option>
107
- <option value="folklore">Books and Literature||folklore</option>
108
- <option value="guides-reviews">Books and Literature||guides and reviews</option>
109
-
110
- <option value="accounting">Business and Industry||accounting</option>
111
- <option value="aerospace-defense">Business and Industry||aerospace and defense</option>
112
- <option value="agriculture-forestry">Business and Industry||agriculture and forestry</option>
113
- <option value="associations">Business and Industry||associations</option>
114
- <option value="biotechnology-pharmaceutical">Business and Industry||biotechnology and pharmaceutical</option>
115
- <option value="business-services">Business and Industry||business services</option>
116
- <option value="chemicals">Business and Industry||chemicals</option>
117
- <option value="e-commerce">Business and Industry||E commerce</option>
118
- <option value="energy">Business and Industry||energy</option>
119
- <option value="industrial-goods-services">Business and Industry||industrial goods and services</option>
120
- <option value="marketing-advertising">Business and Industry||marketing and advertising</option>
121
- <option value="metals-mining">Business and Industry||metals and mining</option>
122
- <option value="publishing-printing">Business and Industry||publishing and printing</option>
123
- <option value="real-estate">Business and Industry||real estate</option>
124
- <option value="textiles-nonwovens">Business and Industry||textiles and nonwovens</option>
125
- <option value="transportation-logistics">Business and Industry||transportation and logistics</option>
126
- <option value="wholesale-trade">Business and Industry||wholesale trade</option>
127
-
128
- <option value="business-training">Career and Education||business training</option>
129
- <option value="education">Career and Education||education</option>
130
- <option value="human-resources">Career and Education||human resources</option>
131
- <option value="jobs-employment">Career and Education||jobs and employment</option>
132
- <option value="universities-colleges">Career and Education||universities and colleges</option>
133
-
134
- <option value="computer hardware">Computer and Electronics||computer hardware</option>
135
- <option value="computer security">Computer and Electronics||computer security</option>
136
- <option value="consumer electronics">Computer and Electronics||consumer electronics</option>
137
- <option value="graphics and multimedia tools">Computer and Electronics||graphics and multimedia tools</option>
138
- <option value="mobile computing">Computer and Electronics||mobile computing</option>
139
- <option value="networking">Computer and Electronics||networking</option>
140
- <option value="programming">Computer and Electronics||programming</option>
141
- <option value="software">Computer and Electronics||software</option>
142
-
143
- <option value="banking">Finance||banking</option>
144
- <option value="credit-loans-mortgages">Finance||credit, loans and mortgages</option>
145
- <option value="financial-management">Finance||financial management</option>
146
- <option value="grants-scholarships">Finance||grants and scholarships</option>
147
- <option value="insurance">Finance||insurance</option>
148
- <option value="investing">Finance||investing</option>
149
-
150
- <option value="beverages">Food and Beverage||beverages</option>
151
- <option value="catering">Food and Beverage||catering</option>
152
- <option value="cooking-recipes">Food and Beverage||cooking and recipes</option>
153
- <option value="food-grocery-retailers">Food and Beverage||food and grocery retailers</option>
154
- <option value="vegitarian-vegan">Food and Beverage||vegetarian and vegan</option>
155
-
156
- <option value="bingo">Gambling||bingo</option>
157
- <option value="casinos">Gambling||casinos</option>
158
- <option value="lottery">Gambling||lottery</option>
159
- <option value="poker">Gambling||poker</option>
160
- <option value="regulation-organizations">Gambling||regulation and organizations</option>
161
- <option value="sports">Gambling||sports</option>
162
-
163
- <option value="board-card-games">Games||board and card games</option>
164
- <option value="miniatures">Games||miniatures</option>
165
- <option value="online">Games||online</option>
166
- <option value="puzzles-brainteasers">Games||puzzles and brainteasers</option>
167
- <option value="roleplaying">Games||roleplaying</option>
168
- <option value="video-games">Games||video games</option>
169
-
170
- <option value="addictions">Health||addictions</option>
171
- <option value="alternative-natural-medicine">Health||alternative natural medicine</option>
172
- <option value="child-health">Health||child health</option>
173
- <option value="conditions-diseases">Health||conditions and diseases</option>
174
- <option value="education-resources">Health||education and resources</option>
175
- <option value="healthcare-industry">Health||healthcare industry</option>
176
- <option value="medicine">Health||medicine</option>
177
- <option value="men-health">Health||men's health</option>
178
- <option value="mental-health">Health||mental health</option>
179
- <option value="nutrition">Health||nutrition</option>
180
- <option value="pharmacy">Health||pharmacy</option>
181
- <option value="products-shopping">Health||products and shopping</option>
182
- <option value="public-health-safety">Health||public health and safety</option>
183
- <option value="reproductive-health">Health||reproductive health</option>
184
-
185
- <option value="gardening">Home and Garden||gardening</option>
186
- <option value="home-improvement">Home and Garden||home improvement</option>
187
- <option value="interior-decor">Home and Garden||interior décor</option>
188
- <option value="moving-relocating">Home and Garden||moving and relocating</option>
189
- <option value="nursery-playroom">Home and Garden||nursery and playroom</option>
190
-
191
- <option value="ad-network">Internet and Telecom||ad network</option>
192
- <option value="chat-forums">Internet and Telecom||chat and forums</option>
193
- <option value="domain-names-register">Internet and Telecom||domain names and register</option>
194
- <option value="email">Internet and Telecom||email</option>
195
- <option value="file-sharing">Internet and Telecom||file sharing</option>
196
- <option value="search-engine">Internet and Telecom||search engine</option>
197
- <option value="social-network">Internet and Telecom||social network</option>
198
- <option value="telecommunications">Internet and Telecom||telecommunications</option>
199
- <option value="web-hosting">Internet and Telecom||web hosting</option>
200
- <option value="content">Internet and Telecom||content</option>
201
-
202
- <option value="government">Law and Government||government</option>
203
- <option value="immigration-visas">Law and Government||immigration and visas</option>
204
- <option value="law">Law and Government||law</option>
205
- <option value="military-defense">Law and Government||military and defense</option>
206
-
207
- <option value="news">News and Media||news</option>
208
- <option value="business-news">News and Media||business news</option>
209
- <option value="college-university-press">News and Media||college and university press</option>
210
- <option value="magazines-ezines">News and Media||magazines and E-zines</option>
211
- <option value="newspapers">News and Media||newspapers</option>
212
- <option value="sports-news">News and Media||sports news</option>
213
- <option value="technology-news">News and Media||technology news</option>
214
- <option value="weather">News and Media||weather</option>
215
-
216
- <option value="crime-prosecution">People and Society||crime and prosecution</option>
217
- <option value="death">People and Society||death</option>
218
- <option value="disabled and special needs">People and Society||disabled and special needs</option>
219
- <option value="gay-lesbian-bisexual">People and Society||gay, lesbian, and bisexual</option>
220
- <option value="genealogy">People and Society||genealogy</option>
221
- <option value="history">People and Society||history</option>
222
- <option value="holidays">People and Society||holidays</option>
223
- <option value="philanthropy">People and Society||philanthropy</option>
224
- <option value="philosophy">People and Society||philosophy</option>
225
- <option value="relationships-dating">People and Society||relationships and dating</option>
226
- <option value="religion-spirituality">People and Society||religion and spirituality</option>
227
- <option value="women-interests">People and Society||women's interests</option>
228
- <option value="personal-blog">People and Society||personal blog</option>
229
-
230
- <option value="animal-products-services">Pets and Animals||animal products and services</option>
231
- <option value="birds">Pets and Animals||birds</option>
232
- <option value="fish-aquaria">Pets and Animals||fish and aquaria</option>
233
- <option value="horses">Pets and Animals||horses</option>
234
- <option value="pets">Pets and Animals||pets</option>
235
-
236
- <option value="antiques">Recreation and Hobbies||antiques</option>
237
- <option value="camps">Recreation and Hobbies||camps</option>
238
- <option value="climbing">Recreation and Hobbies||climbing</option>
239
- <option value="collecting">Recreation and Hobbies||collecting</option>
240
- <option value="crafts">Recreation and Hobbies||crafts</option>
241
- <option value="models">Recreation and Hobbies||models</option>
242
- <option value="nudism">Recreation and Hobbies||nudism</option>
243
- <option value="outdoors">Recreation and Hobbies||outdoors</option>
244
- <option value="scouting">Recreation and Hobbies||scouting</option>
245
- <option value="theme-parks">Recreation and Hobbies||theme parks</option>
246
- <option value="tobacco">Recreation and Hobbies||tobacco</option>
247
-
248
- <option value="archives">Reference||archives</option>
249
- <option value="ask-expert">Reference||ask an expert</option>
250
- <option value="dictionary-encyclopaedia">Reference||dictionary and encyclopaedia</option>
251
- <option value="directories">Reference||directories</option>
252
- <option value="libraries-museums">Reference||libraries and museums</option>
253
- <option value="maps">Reference||maps</option>
254
-
255
- <option value="agriculture">Science||agriculture</option>
256
- <option value="astronomy">Science||astronomy</option>
257
- <option value="biology">Science||biology</option>
258
- <option value="chemistry">Science||chemistry</option>
259
- <option value="earth-sciences">Science||earth sciences</option>
260
- <option value="educational-resources">Science||educational resources</option>
261
- <option value="engineering-technology">Science||engineering and technology</option>
262
- <option value="environment">Science||environment</option>
263
- <option value="instruments-supplies">Science||instruments and supplies</option>
264
- <option value="math">Science||math</option>
265
- <option value="physics">Science||physics</option>
266
- <option value="social-sciences">Science||social sciences</option>
267
-
268
- <option value="antiques-collectibles">Shopping||antiques and collectibles</option>
269
- <option value="auctions">Shopping||auctions</option>
270
- <option value="children">Shopping||children</option>
271
- <option value="classifieds">Shopping||classifieds</option>
272
- <option value="clothing">Shopping||clothing</option>
273
- <option value="consumer-electronics">Shopping||consumer electronics</option>
274
- <option value="coupons">Shopping||coupons</option>
275
- <option value="ethnic-regional">Shopping||ethnic and regional</option>
276
- <option value="flowers">Shopping||flowers</option>
277
- <option value="furniture">Shopping||furniture</option>
278
- <option value="general-merchandise">Shopping||general merchandise</option>
279
- <option value="gifts">Shopping||gifts</option>
280
- <option value="home-garden">Shopping||home and garden</option>
281
- <option value="jewellery">Shopping||jewellery</option>
282
- <option value="music">Shopping||music</option>
283
- <option value="office-products">Shopping||office products</option>
284
- <option value="publications">Shopping||publications</option>
285
- <option value="sports">Shopping||sports</option>
286
- <option value="weddings">Shopping||weddings</option>
287
-
288
- <option value="baseball">Sports||baseball</option>
289
- <option value="basketball">Sports||basketball</option>
290
- <option value="coxing">Sports||coxing</option>
291
- <option value="cycling-biking">Sports||cycling and biking</option>
292
- <option value="equestrian">Sports||equestrian</option>
293
- <option value="extreme-sports">Sports||extreme sports</option>
294
- <option value="fantasy-sports">Sports||fantasy sports</option>
295
- <option value="fishing">Sports||fishing</option>
296
- <option value="football">Sports||football</option>
297
- <option value="golf">Sports||golf</option>
298
- <option value="martial-arts">Sports||martial arts</option>
299
- <option value="rugby">Sports||rugby</option>
300
- <option value="running">Sports||running</option>
301
- <option value="soccer">Sports||soccer</option>
302
- <option value="tennis">Sports||tennis</option>
303
- <option value="volleyball">Sports||volleyball</option>
304
- <option value="water-sports">Sports||water sports</option>
305
- <option value="winter-sports">Sports||winter sports</option>
306
-
307
- <option value="accommodation-hotels">Travel||accommodation and hotels</option>
308
- <option value="airlines-airports">Travel||airlines and airports</option>
309
- <option value="roads-highways">Travel||roads and highways</option>
310
- <option value="tourism">Travel||tourism</option>
311
-
312
- <option value="adult">Adult</option>
313
-
314
-
315
-
316
- </select></div>
317
- <div class="site_language" style="display: block; margin: 10px;"><label for="site_language" style="width: 120px">Choose your Site language:</label>
318
- <select name="site_language" id="site_language" style="display: inline; margin: 0 0 0 116px" ><option value="af">Afrikaans</option> <option value="am">Amharic - ‪አማርኛ‬</option> <option value="ar">Arabic - ‫العربية‬</option> <option value="eu">Basque - ‪euskara‬</option> <option value="bn">Bengali - ‪বাংলা‬</option> <option value="bg">Bulgarian - ‪български‬</option> <option value="ca">Catalan - ‪català‬</option> <option value="zh-HK">Chinese (Hong Kong) - ‪中文(香港)‬</option> <option value="zh-CN">Chinese (Simplified) - ‪简体中文‬</option> <option value="zh-TW">Chinese (Traditional) - ‪繁體中文‬</option> <option value="hr">Croatian - ‪Hrvatski‬</option> <option value="cs">Czech - ‪Čeština‬</option> <option value="da">Danish - ‪Dansk‬</option> <option value="nl">Dutch - ‪Nederlands‬</option> <option value="en-GB">English (United Kingdom)</option> <option value="en">English (United States)</option> <option value="et">Estonian - ‪eesti‬</option> <option value="fil">Filipino</option> <option value="fi">Finnish - ‪Suomi‬</option> <option value="fr-CA">French (Canada) - ‪Français (Canada)‬</option> <option value="fr">French (France) - ‪Français (France)‬</option> <option value="gl">Galician - ‪galego‬</option> <option value="de">German - ‪Deutsch‬</option> <option value="el">Greek - ‪Ελληνικά‬</option> <option value="gu">Gujarati - ‪ગુજરાતી‬</option> <option value="iw">Hebrew - ‫עברית‬</option> <option value="hi">Hindi - ‪हिन्दी‬</option> <option value="hu">Hungarian - ‪magyar‬</option> <option value="is">Icelandic - ‪íslenska‬</option> <option value="id">Indonesian - ‪Bahasa Indonesia‬</option> <option value="it">Italian - ‪Italiano‬</option> <option value="ja">Japanese - ‪日本語‬</option> <option value="kn">Kannada - ‪ಕನ್ನಡ‬</option> <option value="ko">Korean - ‪한국어‬</option> <option value="lv">Latvian - ‪latviešu‬</option> <option value="lt">Lithuanian - ‪lietuvių‬</option> <option value="ms">Malay - ‪Bahasa Melayu‬</option> <option value="ml">Malayalam - ‪മലയാളം‬</option> <option value="mr">Marathi - ‪मराठी‬</option> <option value="no">Norwegian - ‪norsk‬</option> <option value="or">Oriya - ‪ଓଡ଼ିଆ‬</option> <option value="fa">Persian - ‫فارسی‬</option> <option value="pl">Polish - ‪polski‬</option> <option value="pt-BR">Portuguese (Brazil) - ‪Português (Brasil)‬</option> <option value="pt-PT">Portuguese (Portugal) - ‪português (Portugal)‬</option> <option value="ro">Romanian - ‪română‬</option> <option value="ru">Russian - ‪Русский‬</option> <option value="sr">Serbian - ‪српски‬</option> <option value="sk">Slovak - ‪Slovenčina‬</option> <option value="sl">Slovenian - ‪slovenščina‬</option> <option value="es-419">Spanish (Latin America) - ‪Español (Latinoamérica)‬</option> <option value="es">Spanish (Spain) - ‪Español (España)‬</option> <option value="sw">Swahili - ‪Kiswahili‬</option> <option value="sv">Swedish - ‪Svenska‬</option> <option value="ta">Tamil - ‪தமிழ்‬</option> <option value="te">Telugu - ‪తెలుగు‬</option> <option value="th">Thai - ‪ไทย‬</option> <option value="tr">Turkish - ‪Türkçe‬</option> <option value="uk">Ukrainian - ‪Українська‬</option> <option value="ur">Urdu - ‫اردو‬</option> <option value="vi">Vietnamese - ‪Tiếng Việt‬</option> <option value="zu">Zulu - ‪isiZulu‬</option></select></p>
319
- <div style="display: block; width:50%">
320
- <label for="sitedesceditor" style="display: block; width: 120px">Site Description:</label><div style="margin-left: 240px;margin-top: -20px"><?php /**
321
-
322
- /**
323
- * Basic syntax
324
- */
325
- $content = get_option('readygraph_site_description');
326
- $editor_id = 'sitedesceditor';
327
- $settings = array(
328
- 'textarea_rows' => 5,
329
- 'media_buttons' => false,
330
- 'teeny' => true,
331
- 'quicktags' => false
332
- );
333
- wp_editor( $content, $editor_id, $settings );
334
- ?>
335
- </div>
336
- </div>
337
- </div>
338
- <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=signup-popup" style="float: right;margin: 15px">Save Changes & Next</button><?php } ?>
339
- <button type="submit" class="btn btn-large btn-warning save" formaction="#" style="float: right;margin: 15px">Save Changes</button>
340
- <?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=basic-settings&tutorial=true" style="float: right;margin: 15px">Previous</button> <?php } ?>
341
- </div>
342
- </div>
343
- </div>
344
- </form>
345
-
346
- <script type="text/javascript" charset="utf-8">
347
- var $ = jQuery;
348
- var category = $('[name="readygraph_site_category"]').val();
349
- if (category != ""){
350
- $('#site_category').val(category);
351
- }
352
- var language = $('[name="readygraph_site_language"]').val();
353
- if (language != ""){
354
- $('#site_language').val(language);
355
- }
356
- </script>
357
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extension/readygraph/social-feed.php DELETED
@@ -1,87 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- /**
4
- * Represents the view for the administration dashboard.
5
- *
6
- * This includes the header, options, and other information that should provide
7
- * The User Interface to the end user.
8
- *
9
- * @package ReadyGraph
10
- * @author dan@readygraph.com
11
- * @license GPL-2.0+
12
- * @link http://www.readygraph.com
13
- * @copyright 2014 Your Name or Company Name
14
- */
15
- include("header.php");
16
-
17
- if(isset($_GET["readygraph_upgrade_notice"]) && $_GET["readygraph_upgrade_notice"] == "dismiss") {update_option('readygraph_upgrade_notice', 'false');}
18
- if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
19
- //redirect to main page
20
- $current_url = explode("&", $_SERVER['REQUEST_URI']);
21
- echo '<script>window.location.replace("'.$current_url[0].'");</script>';
22
- }
23
- else {
24
- if(isset($_GET["source"]) && $_GET["source"] == "signup-popup"){
25
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
26
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
27
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
28
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
29
- if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
30
- if (isset($_POST["readygraph_delay"])) {
31
- update_option('readygraph_delay', $_POST["delay"]);
32
- $app_id = get_option('readygraph_application_id');
33
- if ($_POST["delay"] >= 20000) wp_remote_get( "http://readygraph.com/api/v1/tracking?event=popup_delay&app_id=$app_id" );
34
- }
35
- if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', $_POST["notification"]);
36
- if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', $_POST["selectAll"]);
37
- if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', $_POST["branding"]);
38
- if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', $_POST["blog_updates"]);
39
- if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', $_POST["real_time_post_update"]);
40
- if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', $_POST["popup_template"]);
41
-
42
- }
43
- else{
44
- if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
45
- if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
46
- if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
47
- if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
48
- if (isset($_POST["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', $_POST["sidebar"]);
49
- }
50
- }
51
- ?>
52
- <form method="post" id="myForm">
53
- <input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
54
- <input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
55
- <input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
56
- <input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
57
- <input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
58
- <div><a href="#">Engage Users</a> > Social Feed</div>
59
- <?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>
60
- <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>
61
- </div>
62
- <?php } ?>
63
- <div class="social-feed" style="margin: 2% auto; width: 80%">
64
-
65
- <h3 style="font-weight: normal; text-align: center;">Enable your social feed sidebar to build a community (Optional)</h3>
66
- <h4 style="font-weight: normal; text-align: center;">Allow users to discuss your content and message each other through the social sidebar</h4>
67
- <div style="width: 100%; display: block;min-height: 200px;">
68
- <div style="width: 65%; margin: 1% auto; float: left;"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/ready_sidebar.png" style="height: 500px;"/>
69
- </div>
70
- <div style="width: 30%; margin: 1% auto; float: right;">
71
- <h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/7.png" class="rg-big-icon"/>Social Feed</h4>
72
- <p>Enable Sidebar:
73
- <select class="sidebar" name="sidebar" class="form-control">
74
- <option value="true">YES</option>
75
- <option value="false">NO</option>
76
- </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>
77
- </p><br />
78
- <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 } ?>
79
- <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>
80
- <?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 } ?>
81
- </div>
82
- </div>
83
-
84
- </div>
85
- </div>
86
- </form>
87
- <?php include("footer.php"); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readygraph-extension.php DELETED
@@ -1,247 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
- // Extension Configuration
4
- $s2_plugin_slug = basename(dirname(__FILE__));
5
- $s2_menu_slug = 'readygraph-app';
6
- $s2_main_plugin_title = 'Subscribe2';
7
-
8
- add_action( 'wp_ajax_nopriv_s2-myajax-submit', 's2_myajax_submit' );
9
- add_action( 'wp_ajax_s2-myajax-submit', 's2_myajax_submit' );
10
-
11
- function s2_myajax_submit() {
12
- if ($_POST['adsoptimal_id']) update_option('readygraph_adsoptimal_id',$_POST['adsoptimal_id']);
13
- if ($_POST['adsoptimal_secret']) update_option('readygraph_adsoptimal_secret',$_POST['adsoptimal_secret']);
14
- if (isset($_POST['readygraph_monetize'])) update_option('readygraph_enable_monetize',$_POST['readygraph_monetize']);
15
- $email = $_POST['email'];
16
- if ($email){
17
- global $wpdb;
18
- if (class_exists('s2class')){
19
- $s2class_instance = new s2class();
20
- $s2class_instance->ip = $_SERVER['REMOTE_ADDR'];
21
- $s2class_instance->public = $wpdb->prefix . "subscribe2";
22
- $s2class_instance->add( $email );
23
- }
24
- wp_die();
25
- }
26
- }
27
-
28
- // ReadyGraph Engine Hooker
29
-
30
- include_once('extension/readygraph/extension.php');
31
-
32
- function on_plugin_activated_readygraph_s2_redirect(){
33
- global $s2_menu_slug;
34
- $setting_url="admin.php?page=$s2_menu_slug";
35
- if (get_option('rg_s2_plugin_do_activation_redirect', false)) {
36
- delete_option('rg_s2_plugin_do_activation_redirect');
37
- wp_redirect(admin_url($setting_url));
38
- }
39
- }
40
-
41
- function add_s2_readygraph_plugin_warning() {
42
- if (get_option('readygraph_access_token', '') != '') return;
43
- global $hook_suffix, $current_user, $s2_menu_slug;
44
- if(isset($_GET["readygraph_notice"]) && $_GET["readygraph_notice"] == "dismiss") update_option('readygraph_connect_notice','false');
45
- if ( $hook_suffix == 'plugins.php' && get_option('readygraph_connect_notice') == 'true' ) {
46
- echo '<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
47
- <style type="text/css">
48
- .readygraph_activate {
49
- min-width:825px;
50
- padding:7px;
51
- margin:15px 0;
52
- background:#1b75bb;
53
- -moz-border-radius:3px;
54
- border-radius:3px;
55
- -webkit-border-radius:3px;
56
- position:relative;
57
- overflow:hidden;
58
- }
59
- .readygraph_activate .aa_button {
60
- cursor: pointer;
61
- -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
62
- -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
63
- box-shadow:inset 0px 1px 0px 0px #ffffff;
64
- background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
65
- background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
66
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#f9f9f9", endColorstr="#e9e9e9");
67
- background-color:#f9f9f9;
68
- -webkit-border-top-left-radius:3px;
69
- -moz-border-radius-topleft:3px;
70
- border-top-left-radius:3px;
71
- -webkit-border-top-right-radius:3px;
72
- -moz-border-radius-topright:3px;
73
- border-top-right-radius:3px;
74
- -webkit-border-bottom-right-radius:3px;
75
- -moz-border-radius-bottomright:3px;
76
- border-bottom-right-radius:3px;
77
- -webkit-border-bottom-left-radius:3px;
78
- -moz-border-radius-bottomleft:3px;
79
- border-bottom-left-radius:3px;
80
- text-indent:0;
81
- border:1px solid #dcdcdc;
82
- display:inline-block;
83
- color:#333333;
84
- font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
85
- font-size:15px;
86
- font-weight:normal;
87
- font-style:normal;
88
- height:40px;
89
- line-height:40px;
90
- width:275px;
91
- text-decoration:none;
92
- text-align:center;
93
- text-shadow:1px 1px 0px #ffffff;
94
- }
95
- .readygraph_activate .aa_button:hover {
96
- background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) );
97
- background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% );
98
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#e9e9e9", endColorstr="#f9f9f9");
99
- background-color:#e9e9e9;
100
- }
101
- .readygraph_activate .aa_button:active {
102
- position:relative;
103
- top:1px;
104
- }
105
- /* This button was generated using CSSButtonGenerator.com */
106
- .readygraph_activate .aa_description {
107
- position:absolute;
108
- top:19px;
109
- left:285px;
110
- margin-left:25px;
111
- color:#ffffff;
112
- font-size:15px;
113
- z-index:1000
114
- }
115
- .readygraph_activate .aa_description strong {
116
- color:#FFF;
117
- font-weight:normal
118
- }
119
- .aa_close {
120
- position: absolute;
121
- right: 18px;
122
- top: 18px;
123
- }
124
- </style>
125
- <form name="readygraph_activate" action="'.admin_url( 'admin.php?page=' . $s2_menu_slug).'" method="POST">
126
- <input type="hidden" name="return" value="1"/>
127
- <div class="readygraph_activate">
128
- <div class="aa_button" onclick="document.readygraph_activate.submit();">
129
- '.__('Connect Your ReadyGraph Account').'
130
- </div>
131
- <div class="aa_description">'.__('<strong>Almost done</strong> - connect your account to start getting users.').'</div>
132
- <div class="aa_close"><a href="' . $_SERVER["PHP_SELF"] . '?readygraph_notice=dismiss"><img src="'.plugin_dir_url( __FILE__ ).'assets/dialog_close.png"></a></div>
133
- </div>
134
- </form>
135
- </div>';
136
- }
137
- }
138
-
139
- add_action('admin_notices', 'add_s2_readygraph_plugin_warning');
140
- if(get_option('readygraph_application_id') && strlen(get_option('readygraph_application_id')) > 0){
141
- if ((get_option('readygraph_access_token') && strlen(get_option('readygraph_access_token')) > 0)){
142
- add_action('wp_footer', 's2_readygraph_client_script_head', 5);
143
- }
144
- }
145
- add_action('admin_init', 'on_plugin_activated_readygraph_s2_redirect');
146
- add_option('readygraph_connect_notice','true');
147
-
148
- function rg_s2_popup_options_enqueue_scripts() {
149
- if ( get_option('readygraph_popup_template') == 'default-template' ) {
150
- wp_enqueue_style( 'default-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/default-popup.css' );
151
- }
152
- if ( get_option('readygraph_popup_template') == 'red-template' ) {
153
- wp_enqueue_style( 'red-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/red-popup.css' );
154
- }
155
- if ( get_option('readygraph_popup_template') == 'blue-template' ) {
156
- wp_enqueue_style( 'blue-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/blue-popup.css' );
157
- }
158
- if ( get_option('readygraph_popup_template') == 'black-template' ) {
159
- wp_enqueue_style( 'black-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/black-popup.css' );
160
- }
161
- if ( get_option('readygraph_popup_template') == 'gray-template' ) {
162
- wp_enqueue_style( 'gray-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/gray-popup.css' );
163
- }
164
- if ( get_option('readygraph_popup_template') == 'green-template' ) {
165
- wp_enqueue_style( 'green-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/green-popup.css' );
166
- }
167
- if ( get_option('readygraph_popup_template') == 'yellow-template' ) {
168
- wp_enqueue_style( 'yellow-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/yellow-popup.css' );
169
- }
170
- if ( get_option('readygraph_popup_template') == 'custom-template' ) {
171
- wp_enqueue_style( 'custom-template', plugin_dir_url( __FILE__ ) .'extension/readygraph/assets/css/custom-popup.css' );
172
- }
173
- }
174
- add_action( 'admin_enqueue_scripts', 'rg_s2_popup_options_enqueue_scripts' );
175
- add_action( 'wp_enqueue_scripts', 'rg_s2_popup_options_enqueue_scripts' );
176
-
177
- function s2_post_updated_send_email( $post_id ) {
178
- // If this is just a revision, don't send the email.
179
- $post_type = get_post_type( $post_id );
180
- if ('page' != $post_type && 'post' != $post_type) return;
181
- if ( wp_is_post_revision( $post_id ) ) return;
182
- if(get_option('readygraph_application_id') && strlen(get_option('readygraph_application_id')) > 0 && get_option('readygraph_send_blog_updates') == "true"){
183
- $post_title = get_the_title( $post_id );
184
- $post_url = get_permalink( $post_id );
185
- $post_content = get_post($post_id);
186
- $post_excerpt = (isset($post_content->post_excerpt) && (!empty($post_content->post_excerpt))) ? $post_content->post_excerpt : wp_trim_words(strip_tags(strip_shortcodes($post_content->post_content)),500);
187
- $attachments = get_children(array('post_parent' => $post_id,
188
- 'post_status' => 'inherit',
189
- 'post_type' => 'attachment',
190
- 'post_mime_type' => 'image',
191
- 'order' => 'ASC',
192
- 'orderby' => 'menu_order ID'));
193
- $images_list = array();
194
- foreach($attachments as $att_id => $attachment) {
195
- $full_img_url = wp_get_attachment_url($attachment->ID);
196
- $images_list[] = $full_img_url;
197
- // Your Code here
198
- }
199
- $post_image = "";
200
- if ($images_list) $post_image = reset($images_list);
201
- $url = 'http://readygraph.com/api/v1/post.json/';
202
- $response = wp_remote_post($url, array( 'body' => array('is_wordpress'=>1, 'message' => $post_title, 'message_link' => $post_url, 'message_image_link' => $post_image, 'message_excerpt' => $post_excerpt,'client_key' => get_option('readygraph_application_id'), 'email' => get_option('readygraph_email'))));
203
- if ( is_wp_error( $response ) ) {
204
- $error_message = $response->get_error_message();
205
- } else {
206
- }
207
- $app_id = get_option('readygraph_application_id');
208
- wp_remote_get( "http://readygraph.com/api/v1/tracking?event=post_created&app_id=$app_id" );
209
- } else {
210
- }
211
- }
212
- add_action('future_to_publish','s2_post_updated_send_email');
213
- add_action('new_to_publish','s2_post_updated_send_email');
214
- add_action('draft_to_publish','s2_post_updated_send_email');
215
-
216
-
217
- if(get_option('s2_wordpress_sync_users')) return;
218
- else {
219
- add_action('plugins_loaded', 's2_wordpress_sync_users');
220
- }
221
- function s2_wordpress_sync_users() {
222
- if(get_option('s2_wordpress_sync_users') && get_option('s2_wordpress_sync_users') == "true") return;
223
- else {
224
- if(get_option('readygraph_application_id') && strlen(get_option('readygraph_application_id')) > 0){
225
- global $wpdb;
226
- $app_id = get_option('readygraph_application_id');
227
- $query = "SELECT email as email, date as user_date FROM {$wpdb->prefix}subscribe2 ";
228
- $subscribe2_users = $wpdb->get_results($query);
229
- $emails = "";
230
- $dates = "";
231
- $count = 0;
232
- $count = mysql_num_rows($subscribe2_users);
233
- wp_remote_get( "http://readygraph.com/api/v1/tracking?event=wp_user_synced&app_id=$app_id&count=$count" );
234
- foreach($subscribe2_users as $user) {
235
- $emails .= $user->email . ",";
236
- $dates .= $user->user_date . ",";
237
- }
238
- $url = 'https://readygraph.com/api/v1/wordpress-sync-enduser/';
239
- $response = wp_remote_post($url, array( 'body' => array('app_id' => $app_id, 'email' => rtrim($emails, ", "), 'user_registered' => rtrim($dates, ", "))));
240
- update_option('s2_wordpress_sync_users',"true");
241
- remove_action('plugins_loaded', 's2_wordpress_sync_users');
242
- }
243
- }
244
- }
245
-
246
-
247
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.20.9
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.20.9' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
@@ -80,72 +80,9 @@ if ( is_admin() ) {
80
  }
81
 
82
  function s2_install() {
83
- add_option('readygraph_tutorial', 'true');
84
- add_option('rg_s2_plugin_do_activation_redirect', true);
85
  }
86
- if( file_exists(plugin_dir_path( __FILE__ ).'/readygraph-extension.php' )) {
87
- if (get_option('readygraph_deleted') && get_option('readygraph_deleted') == 'true'){}
88
- else{
89
- include "readygraph-extension.php";
90
- }
91
- if(get_option('readygraph_application_id') && strlen(get_option('readygraph_application_id')) > 0){
92
- register_deactivation_hook( __FILE__, 's2_readygraph_plugin_deactivate' );
93
- }
94
- function s2_readygraph_plugin_deactivate(){
95
- $app_id = get_option('readygraph_application_id');
96
- update_option('readygraph_deleted', 'false');
97
- wp_remote_get( "http://readygraph.com/api/v1/tracking?event=subscribe2_plugin_uninstall&app_id=$app_id" );
98
- s2_delete_rg_options();
99
- }
100
- }
101
- else {
102
 
103
- }
104
  register_activation_hook(__FILE__, 's2_install');
105
 
106
- function s2_rrmdir($dir) {
107
- if (is_dir($dir)) {
108
- $objects = scandir($dir);
109
- foreach ($objects as $object) {
110
- if ($object != "." && $object != "..") {
111
- if (filetype($dir."/".$object) == "dir")
112
- s2_rrmdir($dir."/".$object);
113
- else unlink ($dir."/".$object);
114
- }
115
- }
116
- reset($objects);
117
- rmdir($dir);
118
- }
119
- $del_url = plugin_dir_path( __FILE__ );
120
- unlink($del_url.'/readygraph-extension.php');
121
- $setting_url="admin.php?page=s2";
122
- echo'<script> window.location="'.admin_url($setting_url).'"; </script> ';
123
- }
124
- function s2_delete_rg_options() {
125
- delete_option('readygraph_access_token');
126
- delete_option('readygraph_application_id');
127
- delete_option('readygraph_refresh_token');
128
- delete_option('readygraph_email');
129
- delete_option('readygraph_settings');
130
- delete_option('readygraph_delay');
131
- delete_option('readygraph_enable_sidebar');
132
- delete_option('readygraph_auto_select_all');
133
- delete_option('readygraph_enable_notification');
134
- delete_option('readygraph_enable_popup');
135
- delete_option('readygraph_enable_branding');
136
- delete_option('readygraph_send_blog_updates');
137
- delete_option('readygraph_send_real_time_post_updates');
138
- delete_option('readygraph_popup_template');
139
- delete_option('readygraph_upgrade_notice');
140
- delete_option('readygraph_adsoptimal_secret');
141
- delete_option('readygraph_adsoptimal_id');
142
- delete_option('readygraph_connect_anonymous');
143
- delete_option('readygraph_connect_anonymous_app_secret');
144
- delete_option('readygraph_tutorial');
145
- delete_option('readygraph_site_url');
146
- delete_option('readygraph_enable_monetize');
147
- delete_option('readygraph_monetize_email');
148
- delete_option('readygraph_plan');
149
- }
150
 
151
  ?>
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.21
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.21' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
80
  }
81
 
82
  function s2_install() {
 
 
83
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
 
85
  register_activation_hook(__FILE__, 's2_install');
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  ?>