Version Description
Download this release
Release Info
Developer | tanaylakhani |
Plugin | Subscribe2 |
Version | 10.15 |
Comparing to | |
See all releases |
Code changes from version 10.13 to 10.15
- ChangeLog.txt +10 -0
- ReadMe.txt +2 -2
- classes/class-s2-admin.php +38 -2
- extension/readygraph/admin.php +151 -186
- extension/readygraph/assets/10.png +0 -0
- extension/readygraph/assets/11.png +0 -0
- extension/readygraph/assets/2.png +0 -0
- extension/readygraph/assets/3.png +0 -0
- extension/readygraph/assets/4.png +0 -0
- extension/readygraph/assets/5.png +0 -0
- extension/readygraph/assets/6.png +0 -0
- extension/readygraph/assets/7.png +0 -0
- extension/readygraph/assets/8.png +0 -0
- extension/readygraph/assets/9.png +0 -0
- extension/readygraph/assets/Thumbs.db +0 -0
- extension/readygraph/assets/check.png +0 -0
- extension/readygraph/assets/css/admin.css +31 -4
- extension/readygraph/assets/ready_sidebar.png +0 -0
- extension/readygraph/customize-emails.php +552 -0
- extension/readygraph/deactivate-readygraph.php +591 -0
- extension/readygraph/extension.php +1 -1
- extension/readygraph/faq.php +629 -0
- extension/readygraph/invitation-email-not-used.php +550 -0
- extension/readygraph/signup-popup.php +603 -0
- extension/readygraph/site-profile.php +514 -0
- extension/readygraph/social-feed.php +527 -0
- readygraph-extension.php +1 -0
- subscribe2.php +19 -4
ChangeLog.txt
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 10.13 =
|
2 |
|
3 |
* Uninstall Readygraph Option
|
1 |
+
= 10.15 =
|
2 |
+
|
3 |
+
* Bug Fix - disable popup
|
4 |
+
|
5 |
+
= 10.14 =
|
6 |
+
|
7 |
+
* GUI change
|
8 |
+
* Tutorial
|
9 |
+
* FAQ included
|
10 |
+
|
11 |
= 10.13 =
|
12 |
|
13 |
* Uninstall Readygraph Option
|
ReadMe.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Subscribe2 ===
|
2 |
-
Contributors: Dabelon, wenzhixue, tanaylakhani
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904
|
4 |
Tags: posts, subscription, email, subscribe, notify, notification
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 10.
|
8 |
License: GPL3
|
9 |
|
10 |
Sends a list of subscribers an email notification when new posts are published to your blog. Automate user growth through ReadyGraph integration.
|
1 |
=== Subscribe2 ===
|
2 |
+
Contributors: Dabelon, wenzhixue, tanaylakhani
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904
|
4 |
Tags: posts, subscription, email, subscribe, notify, notification
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 10.15
|
8 |
License: GPL3
|
9 |
|
10 |
Sends a list of subscribers an email notification when new posts are published to your blog. Automate user growth through ReadyGraph integration.
|
classes/class-s2-admin.php
CHANGED
@@ -200,8 +200,44 @@ class s2_admin extends s2class {
|
|
200 |
Our ReadyGraph API page
|
201 |
*/
|
202 |
function readygraph_menu() {
|
203 |
-
|
204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
} // end readygraph_menu()
|
206 |
|
207 |
/**
|
200 |
Our ReadyGraph API page
|
201 |
*/
|
202 |
function readygraph_menu() {
|
203 |
+
global $wpdb;
|
204 |
+
$current_page = isset($_GET['ac']) ? $_GET['ac'] : '';
|
205 |
+
switch($current_page)
|
206 |
+
{
|
207 |
+
case 'signup-popup':
|
208 |
+
include(S2PATH . 'extension/readygraph/signup-popup.php');
|
209 |
+
break;
|
210 |
+
case 'invite-screen':
|
211 |
+
include(S2PATH . 'extension/readygraph/invite-screen.php');
|
212 |
+
break;
|
213 |
+
case 'social-feed':
|
214 |
+
include(S2PATH . 'extension/readygraph/social-feed.php');
|
215 |
+
break;
|
216 |
+
case 'site-profile':
|
217 |
+
include(S2PATH . 'extension/readygraph/site-profile.php');
|
218 |
+
break;
|
219 |
+
case 'customize-emails':
|
220 |
+
include(S2PATH . 'extension/readygraph/customize-emails.php');
|
221 |
+
break;
|
222 |
+
case 'deactivate-readygraph':
|
223 |
+
include(S2PATH . 'extension/readygraph/deactivate-readygraph.php');
|
224 |
+
break;
|
225 |
+
case 'welcome-email':
|
226 |
+
include(S2PATH . 'extension/readygraph/welcome-email.php');
|
227 |
+
break;
|
228 |
+
case 'retention-email':
|
229 |
+
include(S2PATH . 'extension/readygraph/retention-email.php');
|
230 |
+
break;
|
231 |
+
case 'invitation-email':
|
232 |
+
include(S2PATH . 'extension/readygraph/invitation-email.php');
|
233 |
+
break;
|
234 |
+
case 'faq':
|
235 |
+
include(S2PATH . 'extension/readygraph/faq.php');
|
236 |
+
break;
|
237 |
+
default:
|
238 |
+
include(S2PATH . 'extension/readygraph/admin.php');
|
239 |
+
break;
|
240 |
+
}
|
241 |
} // end readygraph_menu()
|
242 |
|
243 |
/**
|
extension/readygraph/admin.php
CHANGED
@@ -12,53 +12,27 @@
|
|
12 |
* @copyright 2014 Your Name or Company Name
|
13 |
*/
|
14 |
|
15 |
-
function
|
16 |
$app_id = get_option('readygraph_application_id');
|
17 |
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
-
|
19 |
-
delete_option('readygraph_application_id');
|
20 |
-
delete_option('readygraph_refresh_token');
|
21 |
-
delete_option('readygraph_email');
|
22 |
-
delete_option('readygraph_settings');
|
23 |
-
delete_option('readygraph_delay');
|
24 |
-
delete_option('readygraph_enable_sidebar');
|
25 |
-
delete_option('readygraph_auto_select_all');
|
26 |
-
delete_option('readygraph_enable_notification');
|
27 |
-
delete_option('readygraph_enable_branding');
|
28 |
-
delete_option('readygraph_send_blog_updates');
|
29 |
-
delete_option('readygraph_send_real_time_post_updates');
|
30 |
-
delete_option('readygraph_popup_template');
|
31 |
-
/*delete_option('readygraph_popup_template_background');
|
32 |
-
delete_option('readygraph_popup_template_text');
|
33 |
-
delete_option('readygraph_popup_template_button');*/
|
34 |
-
//wp_clear_scheduled_hook( 'rg_gCF_cron_hook' );
|
35 |
}
|
36 |
-
function
|
37 |
$app_id = get_option('readygraph_application_id');
|
38 |
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
39 |
-
|
40 |
-
delete_option('readygraph_application_id');
|
41 |
-
delete_option('readygraph_refresh_token');
|
42 |
-
delete_option('readygraph_email');
|
43 |
-
delete_option('readygraph_settings');
|
44 |
-
delete_option('readygraph_delay');
|
45 |
-
delete_option('readygraph_enable_sidebar');
|
46 |
-
delete_option('readygraph_auto_select_all');
|
47 |
-
delete_option('readygraph_enable_notification');
|
48 |
-
delete_option('readygraph_enable_branding');
|
49 |
-
delete_option('readygraph_send_blog_updates');
|
50 |
-
delete_option('readygraph_send_real_time_post_updates');
|
51 |
-
delete_option('readygraph_popup_template');
|
52 |
-
/*delete_option('readygraph_popup_template_background');
|
53 |
-
delete_option('readygraph_popup_template_text');
|
54 |
-
delete_option('readygraph_popup_template_button');*/
|
55 |
-
//wp_clear_scheduled_hook( 'rg_gCF_cron_hook' );
|
56 |
$dir = plugin_dir_path( __FILE__ );
|
57 |
s2_rrmdir($dir);
|
58 |
}
|
59 |
|
60 |
-
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")
|
61 |
-
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
global $main_plugin_title;
|
63 |
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
64 |
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
@@ -66,50 +40,20 @@ s2_rrmdir($dir);
|
|
66 |
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
67 |
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
68 |
if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
|
69 |
-
if (isset($_POST["readygraph_delay"])) update_option('readygraph_delay',
|
70 |
if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', 'true');
|
|
|
71 |
if (isset($_POST["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', 'false');
|
72 |
-
if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all',
|
73 |
if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', 'false');
|
74 |
if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', 'true');
|
75 |
if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', 'false');
|
76 |
if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', 'default-template');
|
77 |
-
|
78 |
-
if (isset($_POST["readygraph_popup_template_text"])) update_option('readygraph_popup_template_text', '#000000');
|
79 |
-
if (isset($_POST["readygraph_popup_template_button"])) update_option('readygraph_popup_template_button', '#5bb75b');*/
|
80 |
}
|
81 |
else {
|
82 |
-
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
83 |
-
if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
|
84 |
-
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
85 |
-
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
86 |
-
if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
|
87 |
-
if (isset($_POST["readygraph_delay"])) {
|
88 |
-
update_option('readygraph_delay', $_POST["delay"]);
|
89 |
-
$app_id = get_option('readygraph_application_id');
|
90 |
-
if ($_POST["delay"] >= 20000) wp_remote_get( "http://readygraph.com/api/v1/tracking?event=popup_delay&app_id=$app_id" );
|
91 |
-
}
|
92 |
-
if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', $_POST["notification"]);
|
93 |
-
if (isset($_POST["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', $_POST["sidebar"]);
|
94 |
-
if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', $_POST["selectAll"]);
|
95 |
-
if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', $_POST["branding"]);
|
96 |
-
if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', $_POST["blog_updates"]);
|
97 |
-
if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', $_POST["real_time_post_update"]);
|
98 |
-
if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', $_POST["popup_template"]);
|
99 |
-
/*if (isset($_POST["readygraph_popup_template_background"])) update_option('readygraph_popup_template_background', $_POST["readygraph_popup_template_background"]);
|
100 |
-
if (isset($_POST["readygraph_popup_template_text"])) update_option('readygraph_popup_template_text', $_POST["readygraph_popup_template_text"]);
|
101 |
-
if (isset($_POST["readygraph_popup_template_button"])) update_option('readygraph_popup_template_button', $_POST["readygraph_popup_template_button"]);*/
|
102 |
-
|
103 |
}
|
104 |
-
|
105 |
-
?>
|
106 |
-
<style>
|
107 |
-
/* FOR INLINE WIDGET */
|
108 |
-
.rgw-text {
|
109 |
-
display: none !important;
|
110 |
-
}
|
111 |
-
</style>
|
112 |
-
<?php } ?>
|
113 |
|
114 |
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
115 |
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
@@ -118,18 +62,9 @@ s2_rrmdir($dir);
|
|
118 |
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
119 |
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
120 |
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
121 |
-
<input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
|
122 |
<input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
|
123 |
-
<input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
|
124 |
<input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
|
125 |
-
<input type="hidden" name="
|
126 |
-
<input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
|
127 |
-
<input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
|
128 |
-
<input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
|
129 |
-
<input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
|
130 |
-
<!--<input type="hidden" name="readygraph_popup_template_background" value="<?php //echo get_option('readygraph_popup_template_background', '') ?>">
|
131 |
-
<input type="hidden" name="readygraph_popup_template_text" value="<?php //echo get_option('readygraph_popup_template_text', '') ?>">
|
132 |
-
<input type="hidden" name="readygraph_popup_template_button" value="<?php //echo get_option('readygraph_popup_template_button', '') ?>">-->
|
133 |
|
134 |
<div class="authenticate" style="display: none;">
|
135 |
<div class="wrap1" style="min-height: 600px;">
|
@@ -160,13 +95,13 @@ s2_rrmdir($dir);
|
|
160 |
<p><h3>ReadyGraph grows your site</h3></p>
|
161 |
<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>
|
162 |
<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 />
|
163 |
-
If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a
|
164 |
</div>
|
165 |
</div>
|
166 |
</div>
|
167 |
</div>
|
168 |
<div class="authenticating" style="display: none;">
|
169 |
-
<div style="color: #ffffff; width: 350px; margin: 100px auto 0px; padding: 15px; border: solid 1px #2a388f; text-align: center; background-color: #
|
170 |
<h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
|
171 |
<h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
|
172 |
<p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
|
@@ -180,7 +115,7 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
|
|
180 |
</div>
|
181 |
<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>
|
182 |
<div class="authenticated" style="display: none;">
|
183 |
-
<div style="background-color: #
|
184 |
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
185 |
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
186 |
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
@@ -202,110 +137,137 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
|
|
202 |
</div>
|
203 |
<div style="clear: both;"></div>
|
204 |
</div>
|
205 |
-
|
206 |
-
<div>
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
|
235 |
-
|
236 |
-
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
<option value="5000">5 seconds</option>
|
239 |
<option value="10000">10 seconds</option>
|
240 |
<option value="15000">15 seconds</option>
|
241 |
<option value="20000">20 seconds</option>
|
242 |
<option value="30000">30 seconds</option>
|
243 |
<option value="60000">1 minute</option>
|
244 |
-
<option value="120000">2
|
245 |
-
<option value="180000">3
|
246 |
-
<option value="240000">4
|
247 |
-
<option value="300000">5
|
248 |
-
<option value="600000">10
|
249 |
-
<option value="900000">15
|
250 |
-
<option value="1200000">20
|
251 |
-
</select
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
<option value="true">YES</option>
|
265 |
-
<option value="false">NO</option>
|
266 |
-
</select></p><br />
|
267 |
-
<p>Show Powered by Readygraph on popup:
|
268 |
-
<select class="branding" name="branding" class="form-control">
|
269 |
-
<option value="true">YES</option>
|
270 |
-
<option value="false">NO</option>
|
271 |
-
</select></p><br />
|
272 |
-
<p>Include blog updates in daily/weekly email digest of Readygraph:
|
273 |
-
<select class="blog_updates" name="blog_updates" class="form-control">
|
274 |
-
<option value="true">YES</option>
|
275 |
-
<option value="false">NO</option>
|
276 |
-
</select></p><br />
|
277 |
-
<p>Send Real Time Post Updates to your subscribers:
|
278 |
-
<select class="real_time_post_update" name="real_time_post_update" class="form-control">
|
279 |
-
<option value="true">YES</option>
|
280 |
-
<option value="false">NO</option>
|
281 |
-
</select></p><br />
|
282 |
-
<p>Popup Templates:
|
283 |
-
<select class="popup_template" name="popup_template" class="form-control">
|
284 |
-
<option value="default-template">Default Template</option>
|
285 |
-
<option value="red-template">Red Template</option>
|
286 |
-
<option value="blue-template">Blue Template</option>
|
287 |
-
<option value="black-template">Black Template</option>
|
288 |
-
<option value="gray-template">Gray Template</option>
|
289 |
-
<option value="green-template">Green Template</option>
|
290 |
-
<option value="yellow-template">Yellow Template</option>
|
291 |
-
<option value="custom-template">Custom Template</option>
|
292 |
-
</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 />
|
293 |
-
<!--<div class="custom-template">
|
294 |
-
<p>Popup Template Background Color: <input type="text" name="readygraph_popup_template_background" value="<?php //echo get_option('readygraph_popup_template_background', '') ?>" class="my-color-field" data-default-color="#effeff" /></p>
|
295 |
-
<p>Popup Template Text Color: <input type="text" name="readygraph_popup_template_text" value="<?php //echo get_option('readygraph_popup_template_text', '') ?>" class="my-color-field" data-default-color="#effeff" /></p>
|
296 |
-
<p>Popup Template Submit-button Color: <input type="text" name="readygraph_popup_template_button" value="<?php // echo get_option('readygraph_popup_template_button', '') ?>" class="my-color-field" data-default-color="#effeff" /></p>
|
297 |
-
</div>-->
|
298 |
-
<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 />
|
299 |
-
</div>
|
300 |
-
<button type="button" class="btn btn-large btn-warning save" style="float: right;">Save Changes</button>
|
301 |
-
</td>
|
302 |
-
</tr>
|
303 |
-
</table>
|
304 |
</div>
|
|
|
305 |
</div>
|
306 |
</form>
|
307 |
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
308 |
<script type="text/javascript" charset="utf-8">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
var $ = jQuery;
|
310 |
$(function () {
|
311 |
var settings =
|
@@ -336,6 +298,7 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
|
|
336 |
$(document.body).bind('click', parent_disable);
|
337 |
});
|
338 |
$(".change-account").click(function() {
|
|
|
339 |
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
340 |
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
341 |
openPopup(logout);
|
@@ -386,14 +349,16 @@ If you have questions or concerns contact us anytime at <a href="mailto:info@rea
|
|
386 |
$('.email-address').text($('[name="readygraph_email"]').val());
|
387 |
|
388 |
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
389 |
-
$('.delay').val($('[name="readygraph_delay"]').val());
|
390 |
-
|
391 |
-
$('.
|
392 |
-
|
393 |
-
|
394 |
-
$('.
|
395 |
-
|
396 |
-
|
|
|
|
|
397 |
|
398 |
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
399 |
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
12 |
* @copyright 2014 Your Name or Company Name
|
13 |
*/
|
14 |
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
$app_id = get_option('readygraph_application_id');
|
17 |
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
$app_id = get_option('readygraph_application_id');
|
22 |
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
$dir = plugin_dir_path( __FILE__ );
|
25 |
s2_rrmdir($dir);
|
26 |
}
|
27 |
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
if(isset($_GET["tutorial"]) && $_GET["tutorial"] == "true"){update_option('readygraph_tutorial',"true");}
|
31 |
+
else{update_option('readygraph_tutorial',"false");}
|
32 |
+
if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "bottom-right"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'false');}
|
33 |
+
if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "center"){update_option('readygraph_enable_notification', 'true');update_option('readygraph_enable_popup', 'true');}
|
34 |
+
if(isset($_GET["popup_position"]) && $_GET["popup_position"] == "disabled"){update_option('readygraph_enable_notification', 'false');update_option('readygraph_enable_popup', 'false');}
|
35 |
+
if(isset($_GET["popup_delay"])){update_option('readygraph_delay', intval($_GET["popup_delay"]));}
|
36 |
global $main_plugin_title;
|
37 |
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
38 |
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_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["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
|
43 |
+
if (isset($_POST["readygraph_delay"])) update_option('readygraph_delay', 10000);
|
44 |
if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', 'true');
|
45 |
+
if (isset($_POST["readygraph_enable_popup"])) update_option('readygraph_enable_popup', 'true');
|
46 |
if (isset($_POST["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', 'false');
|
47 |
+
if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', 'true');
|
48 |
if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', 'false');
|
49 |
if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', 'true');
|
50 |
if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', 'false');
|
51 |
if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', 'default-template');
|
52 |
+
update_option('readygraph_tutorial',"true");
|
|
|
|
|
53 |
}
|
54 |
else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
59 |
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
62 |
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
63 |
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
64 |
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
|
|
65 |
<input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
|
|
|
66 |
<input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
|
67 |
+
<input type="hidden" name="readygraph_enable_popup" value="<?php echo get_option('readygraph_enable_popup', 'true') ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
<div class="authenticate" style="display: none;">
|
70 |
<div class="wrap1" style="min-height: 600px;">
|
95 |
<p><h3>ReadyGraph grows your site</h3></p>
|
96 |
<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>
|
97 |
<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 />
|
98 |
+
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!</p>
|
99 |
</div>
|
100 |
</div>
|
101 |
</div>
|
102 |
</div>
|
103 |
<div class="authenticating" style="display: none;">
|
104 |
+
<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;">
|
105 |
<h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
|
106 |
<h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
|
107 |
<p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
|
115 |
</div>
|
116 |
<style>a.help-tooltip {outline:none; }a.help-tooltip strong {line-height:30px;}a.help-tooltip:hover {text-decoration:none;} a.help-tooltip span { z-index:10;display:none; padding:14px 20px; margin-top:40px; margin-left:-150px; width:300px; line-height:16px;}a.help-tooltip:hover span{ display:inline; position:absolute; border:2px solid #FFF; background:#fff; text-align: justify; z-index:1000000000;}.callout {z-index:1000000000;position:absolute;border:0;top:-14px;left:120px;} /*CSS3 extras*/a.help-tooltip span{ border-radius:2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; -moz-box-shadow: 0px 0px 8px 4px #666; -webkit-box-shadow: 0px 0px 8px 4px #666; box-shadow: 0px 0px 8px 4px #666;}</style>
|
117 |
<div class="authenticated" style="display: none;">
|
118 |
+
<div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
|
119 |
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
120 |
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
121 |
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
137 |
</div>
|
138 |
<div style="clear: both;"></div>
|
139 |
</div>
|
140 |
+
<!-- write menu code-->
|
141 |
+
<div class="readygraph-menu">
|
142 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
143 |
+
<ul>
|
144 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
145 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
146 |
+
<li><a href="#"></a></li>
|
147 |
+
</ul>
|
148 |
+
</div>
|
149 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
150 |
+
<ul>
|
151 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
152 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
153 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
154 |
+
</ul>
|
155 |
+
</div>
|
156 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
157 |
+
<ul>
|
158 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
159 |
+
<li><a href="#">Social Followers</a></li>
|
160 |
+
<li><a href="#">Feedback Survey</a></li>
|
161 |
+
</ul>
|
162 |
+
</div>
|
163 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
164 |
+
<ul>
|
165 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
166 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
167 |
+
|
168 |
+
</ul>
|
169 |
+
</div>
|
170 |
+
<div class="menu-tabs" style="float:right"><h4> </h4>
|
171 |
+
<p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
|
172 |
+
<p>
|
173 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
|
174 |
+
|
175 |
+
</ul>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
<?php if(get_option('readygraph_tutorial') && get_option('readygraph_tutorial') == "true"){ ?>
|
179 |
+
<div class="tutorial-true" style="margin: 5% auto;">
|
180 |
+
<h3 style="font-weight: normal; text-align: center;"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/check.png"/>Congratulations! <?php echo $main_plugin_title; ?>'s ReadyGraph growth engine is now active.</h3>
|
181 |
+
<h4 style="font-weight: normal; text-align: center;">Next take our tutorial to customize settings for:</h4>
|
182 |
+
<div style="width: 225px; margin: 0 auto;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/2.png" class="rg-small-icon"/>Optimized Signup Form</h4>
|
183 |
+
<h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/3.png" class="rg-small-icon"/>Viral Friend Invites</h4>
|
184 |
+
<h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/4.png" class="rg-small-icon"/>Automated Emails</h4>
|
185 |
+
|
186 |
+
<div class="save-changes" style="font-weight: normal; text-align: center;"><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&source=basic-settings" style="margin: 15px">Customize</button><br>
|
187 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=basic-settings" style="margin: 15px">Skip</a>
|
188 |
+
</div></div>
|
189 |
+
</div>
|
190 |
+
<?php } else { ?>
|
191 |
+
<div class="tutorial-false" style="margin: 2% auto; width: 80%">
|
192 |
+
<h3 style="font-weight: normal; text-align: center;">Settings - Make adjustments to grow and engage your userbase</h3>
|
193 |
+
<div style="width: 100%; display: block;min-height: 200px;">
|
194 |
+
<div style="width: 45%; margin: 0 auto; float: left;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/11.png" class="rg-big-icon"/>Email</h4>
|
195 |
+
<button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('http://readygraph.com/application/customize/settings/advance/');return false;" style="margin: 15px" formtarget="_blank">Automated Email Settings</button>
|
196 |
+
<button type="button" class="btn btn-large btn-warning save-next" onclick="window.open('http://readygraph.com/application/insights/');return false;" style="margin: 15px"formtarget="_blank">Mass Email Users</button>
|
197 |
+
<br>
|
198 |
+
<a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank" style="margin: 15px;color:#093e7d;">Welcome</a>
|
199 |
+
<a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank" style="margin: 15px;color:#093e7d;">Invite</a>
|
200 |
+
<a href="https://readygraph.com/application/customize/settings/email/follow/" target="_blank" style="margin: 15px;color:#093e7d;">Follow</a>
|
201 |
+
<a href="https://readygraph.com/application/customize/settings/email/base/" target="_blank" style="margin: 15px;color:#093e7d;">Content Update Digest</a>
|
202 |
+
</div>
|
203 |
+
<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>
|
204 |
+
<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>
|
205 |
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
<div style="width: 100%; display: block;min-height: 200px;">
|
209 |
+
<div style="width: 45%; margin: 0 auto; float: left;"><h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/7.png" class="rg-big-icon"/>Signup Overlay</h4>
|
210 |
+
<p>Signup Popup Activated?
|
211 |
+
<select class="signup-popup" name="signup-popup" class="form-control" onchange="return popup_position(this)">
|
212 |
+
<option value="yes-center">Yes, in Center</option>
|
213 |
+
<option value="yes-bottom-right">Yes, in Bottom Right</option>
|
214 |
+
<option value="no">No</option>
|
215 |
+
</select></p>
|
216 |
+
<p>Signup Popup Delay?
|
217 |
+
<select class="popup-delay" name="popup-delay" class="form-control" onchange="return popup_delay(this)">
|
218 |
+
<option value="0">0 seconds</option>
|
219 |
<option value="5000">5 seconds</option>
|
220 |
<option value="10000">10 seconds</option>
|
221 |
<option value="15000">15 seconds</option>
|
222 |
<option value="20000">20 seconds</option>
|
223 |
<option value="30000">30 seconds</option>
|
224 |
<option value="60000">1 minute</option>
|
225 |
+
<option value="120000">2 minutes</option>
|
226 |
+
<option value="180000">3 minutes</option>
|
227 |
+
<option value="240000">4 minutes</option>
|
228 |
+
<option value="300000">5 minutes</option>
|
229 |
+
<option value="600000">10 minutes</option>
|
230 |
+
<option value="900000">15 minutes</option>
|
231 |
+
<option value="1200000">20 minutes</option>
|
232 |
+
</select>
|
233 |
+
</div>
|
234 |
+
<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>
|
235 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="margin: 15px;color:#093e7d;">FAQ</a>
|
236 |
+
<br>
|
237 |
+
<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>
|
238 |
+
<br>
|
239 |
+
<a href="mailto:info@readygraph.com" style="margin: 15px;color:#093e7d;">Contact Us</a>
|
240 |
+
<br>
|
241 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=deactivate-readygraph" style="margin: 15px;color:#093e7d;">Deactivate ReadyGraph</a>
|
242 |
+
|
243 |
+
</div>
|
244 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
</div>
|
246 |
+
<?php } ?>
|
247 |
</div>
|
248 |
</form>
|
249 |
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
250 |
<script type="text/javascript" charset="utf-8">
|
251 |
+
function popup_position(n){
|
252 |
+
<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); ?>
|
253 |
+
if(n.selectedIndex === 0){
|
254 |
+
// show a div (id) // alert(n.value);
|
255 |
+
|
256 |
+
window.location.replace("<?php echo $current_url[0].'&popup_position=center';?>");
|
257 |
+
}else if(n.selectedIndex === 1){
|
258 |
+
window.location.replace("<?php echo $current_url[0].'&popup_position=bottom-right';?>");
|
259 |
+
}
|
260 |
+
// this last one is not what you ask but for completeness
|
261 |
+
// hide the box div if the first option is selected again
|
262 |
+
else if (n.selectedIndex == 2){ // alert(n[1].value);
|
263 |
+
window.location.replace("<?php echo $current_url[0].'&popup_position=disabled';?>");
|
264 |
+
}
|
265 |
+
}
|
266 |
+
function popup_delay(n){
|
267 |
+
<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); ?>
|
268 |
+
window.location.replace("<?php echo $current_url[0].'&popup_delay=';?>"+n.value);
|
269 |
+
}
|
270 |
+
|
271 |
var $ = jQuery;
|
272 |
$(function () {
|
273 |
var settings =
|
298 |
$(document.body).bind('click', parent_disable);
|
299 |
});
|
300 |
$(".change-account").click(function() {
|
301 |
+
document.cookie="readygraph_tutorial=true"
|
302 |
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
303 |
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
304 |
openPopup(logout);
|
349 |
$('.email-address').text($('[name="readygraph_email"]').val());
|
350 |
|
351 |
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
352 |
+
$('.popup-delay').val($('[name="readygraph_delay"]').val());
|
353 |
+
if ($('[name="readygraph_enable_popup"]').val() == "true"){
|
354 |
+
$('.signup-popup').val('yes-center');
|
355 |
+
}
|
356 |
+
else if ($('[name="readygraph_enable_notification"]').val() == "true"){
|
357 |
+
$('.signup-popup').val('yes-bottom-right');
|
358 |
+
}
|
359 |
+
else{
|
360 |
+
$('.signup-popup').val('no');
|
361 |
+
}
|
362 |
|
363 |
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
364 |
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
extension/readygraph/assets/10.png
ADDED
Binary file
|
extension/readygraph/assets/11.png
ADDED
Binary file
|
extension/readygraph/assets/2.png
ADDED
Binary file
|
extension/readygraph/assets/3.png
ADDED
Binary file
|
extension/readygraph/assets/4.png
ADDED
Binary file
|
extension/readygraph/assets/5.png
ADDED
Binary file
|
extension/readygraph/assets/6.png
ADDED
Binary file
|
extension/readygraph/assets/7.png
ADDED
Binary file
|
extension/readygraph/assets/8.png
ADDED
Binary file
|
extension/readygraph/assets/9.png
ADDED
Binary file
|
extension/readygraph/assets/Thumbs.db
ADDED
Binary file
|
extension/readygraph/assets/check.png
ADDED
Binary file
|
extension/readygraph/assets/css/admin.css
CHANGED
@@ -4,7 +4,7 @@
|
|
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);border-radius:4px;-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{border-radius:4px;-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 |
/*!
|
@@ -13,8 +13,7 @@
|
|
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;border-radius:4px;-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;border-radius:4px;-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;border-radius:4px;-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);border-radius:4px;-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;border-radius:4px;-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;border-radius:4px;-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;border-radius:4px;-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;border-radius:4px;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;border-radius:4px;-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 |
-
|
18 |
.register-left{float: left; width:40%;padding-right: 1%;padding-left: 1%;margin:0 3%;}
|
19 |
|
20 |
.register-mid{float: left;width:40%;padding-right: 1%; margin: 0 3%;}
|
@@ -34,11 +33,39 @@
|
|
34 |
padding: 16px 30px;
|
35 |
text-shadow: none;
|
36 |
}
|
|
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
.alert p {font-style: normal;}
|
39 |
|
40 |
.alert label {font-size: 14px;font-weight: bold;}
|
41 |
|
42 |
.wrap1 {width: 100%; display: block; position: relative;}
|
43 |
-
|
44 |
.rg-signup-icon {float:left; margin:0 1.5em 1em 0}
|
|
|
|
|
|
|
|
|
|
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 |
/*!
|
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%;}
|
33 |
padding: 16px 30px;
|
34 |
text-shadow: none;
|
35 |
}
|
36 |
+
.readygraph-menu {
|
37 |
|
38 |
+
background-color: #093e7d;
|
39 |
+
color: #34495E;
|
40 |
+
margin-right: 1%;
|
41 |
+
height:150px;
|
42 |
+
margin-bottom: 1%;
|
43 |
+
padding-top: 1%;
|
44 |
+
|
45 |
+
}
|
46 |
+
.menu-tabs h4{
|
47 |
+
color: #b1c1ca;
|
48 |
+
}
|
49 |
+
.menu-tabs a:link,a:visited{
|
50 |
+
color: #5fb1d8;
|
51 |
+
text-decoration: none;
|
52 |
+
}
|
53 |
+
.menu-tabs a:hover, a:active {
|
54 |
+
color: #ffffff;
|
55 |
+
text-decoration: none;
|
56 |
+
}
|
57 |
+
.menu-tabs {
|
58 |
+
color: #5fb1d8;
|
59 |
+
}
|
60 |
.alert p {font-style: normal;}
|
61 |
|
62 |
.alert label {font-size: 14px;font-weight: bold;}
|
63 |
|
64 |
.wrap1 {width: 100%; display: block; position: relative;}
|
65 |
+
.save-changes{margin: 15px;}
|
66 |
.rg-signup-icon {float:left; margin:0 1.5em 1em 0}
|
67 |
+
.menu-tabs {width: 18%; margin: 0 1%; float: left;text-align: center;}
|
68 |
+
.rg-small-icon { height: 25px; width: 25px; margin: 5px;vertical-align: middle;}
|
69 |
+
.rg-big-icon { height: 50px; width: 50px; margin: 15px;vertical-align: middle;}
|
70 |
+
.rg-h4 { font-weight: normal; margin: 0 auto; }
|
71 |
+
.save-next a, a:hover, a:active, a:visited {text-decoration: none; }
|
extension/readygraph/assets/ready_sidebar.png
ADDED
Binary file
|
extension/readygraph/customize-emails.php
ADDED
@@ -0,0 +1,552 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration dashboard.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package ReadyGraph
|
9 |
+
* @author dan@readygraph.com
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://www.readygraph.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
+
$app_id = get_option('readygraph_application_id');
|
17 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
19 |
+
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
+
$app_id = get_option('readygraph_application_id');
|
22 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
24 |
+
$dir = plugin_dir_path( __FILE__ );
|
25 |
+
s2_rrmdir($dir);
|
26 |
+
}
|
27 |
+
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
global $main_plugin_title;
|
31 |
+
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
32 |
+
//redirect to main page
|
33 |
+
$current_url = explode("&", $_SERVER['REQUEST_URI']);
|
34 |
+
echo '<script>window.location.replace("'.$current_url[0].'");</script>';
|
35 |
+
}
|
36 |
+
else {
|
37 |
+
if(isset($_GET["source"]) && $_GET["source"] == "social-feed"){
|
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["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', $_POST["sidebar"]);
|
43 |
+
}
|
44 |
+
|
45 |
+
}
|
46 |
+
?>
|
47 |
+
|
48 |
+
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
49 |
+
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
50 |
+
<form method="post" id="myForm">
|
51 |
+
<input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
|
52 |
+
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
53 |
+
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
54 |
+
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
55 |
+
|
56 |
+
<div class="authenticate" style="display: none;">
|
57 |
+
<div class="wrap1" style="min-height: 600px;">
|
58 |
+
|
59 |
+
<div id="icon-plugins" class="icon32"></div>
|
60 |
+
<h2>We've enhanced <?php echo $main_plugin_title ?> with ReadyGraph's User Growth Engine</h2>
|
61 |
+
|
62 |
+
<p style="display:none;color:red;" id="error"></p>
|
63 |
+
<div class="register-left">
|
64 |
+
<div class="alert" style="margin: 0px auto; padding: 15px; text-align: center;">
|
65 |
+
<h3>Activate ReadyGraph to get more traffic to your site</h3>
|
66 |
+
<!-- <h3 style="margin-top: 0px; font-weight: 300;"><?php //echo $main_plugin_title ?>, Now with ReadyGraph</h3> -->
|
67 |
+
<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>
|
68 |
+
<!--<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>-->
|
69 |
+
<p>Readygraph adds more ways to connect to your users. </p>
|
70 |
+
<p style="text-align: left; padding: 0 20px;">
|
71 |
+
- Get more traffic<br>
|
72 |
+
- Send automatic email digests of all your site posts<br>
|
73 |
+
- Get better deliverablility<br>
|
74 |
+
- Track performace and user activity
|
75 |
+
</p>
|
76 |
+
</div>
|
77 |
+
|
78 |
+
</div>
|
79 |
+
|
80 |
+
<div class="register-right">
|
81 |
+
<div class="form-wrap alert" style="font-size:12px;">
|
82 |
+
<p><h3>ReadyGraph grows your site</h3></p>
|
83 |
+
<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>
|
84 |
+
<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 />
|
85 |
+
If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a></p>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="authenticating" style="display: none;">
|
91 |
+
<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;">
|
92 |
+
<h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
|
93 |
+
<h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
|
94 |
+
<p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
|
95 |
+
<p style="text-align: left; padding: 0 20px;">
|
96 |
+
- Grow your subscribers faster<br>
|
97 |
+
- Engage users with automated email updates<br>
|
98 |
+
- Enhanced email deliverablility<br>
|
99 |
+
- Track performace with user-activity analytics
|
100 |
+
</p>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
<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>
|
104 |
+
<div class="authenticated" style="display: none;">
|
105 |
+
<div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
|
106 |
+
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
107 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
108 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
109 |
+
<span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
|
110 |
+
</button>
|
111 |
+
<ul class="dropdown-menu">
|
112 |
+
<li><a class="change-account" href="#">Change Account</a></li>
|
113 |
+
<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>
|
114 |
+
<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>
|
115 |
+
</ul>
|
116 |
+
</div>
|
117 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
118 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
119 |
+
<span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
|
120 |
+
</button>
|
121 |
+
<ul class="dropdown-menu">
|
122 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
|
123 |
+
</ul>
|
124 |
+
</div>
|
125 |
+
<div style="clear: both;"></div>
|
126 |
+
</div>
|
127 |
+
<!-- write menu code-->
|
128 |
+
<div class="readygraph-menu">
|
129 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
130 |
+
<ul>
|
131 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
132 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
133 |
+
<li><a href="#"></a></li>
|
134 |
+
</ul>
|
135 |
+
</div>
|
136 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
137 |
+
<ul>
|
138 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
139 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
140 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
141 |
+
</ul>
|
142 |
+
</div>
|
143 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
144 |
+
<ul>
|
145 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
146 |
+
<li><a href="#">Social Followers</a></li>
|
147 |
+
<li><a href="#">Feedback Survey</a></li>
|
148 |
+
</ul>
|
149 |
+
</div>
|
150 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
151 |
+
<ul>
|
152 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
153 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
154 |
+
|
155 |
+
</ul>
|
156 |
+
</div>
|
157 |
+
<div class="menu-tabs" style="float:right"><h4> </h4>
|
158 |
+
<p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
|
159 |
+
<p>
|
160 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
|
161 |
+
|
162 |
+
</ul>
|
163 |
+
</div>
|
164 |
+
</div>
|
165 |
+
<div class="tutorial-true" style="margin: 5% auto;">
|
166 |
+
<h3 style="font-weight: normal; text-align: center;">Next Step: Customize automated emails to engage your userbase</h3>
|
167 |
+
<h4 style="font-weight: normal; text-align: center;">Head over to ReadyGraph.com to customize emails such as:</h4>
|
168 |
+
|
169 |
+
<div style="width: 275px; margin: 0 auto;"><ol><li>Welcome Email</li>
|
170 |
+
<li>Friend Invite Email</li>
|
171 |
+
<li>Updates of new content you post</li>
|
172 |
+
<li>Several More</li></ol>
|
173 |
+
|
174 |
+
<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>
|
175 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=basic-settings" style="margin: 15px">Skip, End Tutorial</a>
|
176 |
+
</div></div>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
</div>
|
180 |
+
</form>
|
181 |
+
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
182 |
+
<script type="text/javascript" charset="utf-8">
|
183 |
+
var $ = jQuery;
|
184 |
+
$(function () {
|
185 |
+
var settings =
|
186 |
+
{
|
187 |
+
'host': "www.readygraph.com"
|
188 |
+
, 'clientId': "9838eb84c6da2fc44ab9"
|
189 |
+
};
|
190 |
+
|
191 |
+
var authHost = "https://" + settings.host;
|
192 |
+
var resourceHost = "https://" + settings.host;
|
193 |
+
|
194 |
+
// OAuth 2.0 Popup
|
195 |
+
//
|
196 |
+
var popupWindow=null;
|
197 |
+
function openPopup(url)
|
198 |
+
{
|
199 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
200 |
+
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);
|
201 |
+
}
|
202 |
+
function parent_disable() {
|
203 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
204 |
+
}
|
205 |
+
|
206 |
+
$("a.connect").click(function() {
|
207 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
208 |
+
openPopup(url);
|
209 |
+
$(document.body).bind('focus', parent_disable);
|
210 |
+
$(document.body).bind('click', parent_disable);
|
211 |
+
});
|
212 |
+
$(".change-account").click(function() {
|
213 |
+
document.cookie="readygraph_tutorial=true"
|
214 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
215 |
+
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
216 |
+
openPopup(logout);
|
217 |
+
$(document.body).bind('focus', parent_disable);
|
218 |
+
$(document.body).bind('click', parent_disable);
|
219 |
+
});
|
220 |
+
|
221 |
+
// User Interface
|
222 |
+
//
|
223 |
+
$('.template').click(function() {
|
224 |
+
$('#preview').attr('src', $(this).find('img').attr('src'));
|
225 |
+
});
|
226 |
+
|
227 |
+
// Manage OAuth 2.0 Redirect
|
228 |
+
//
|
229 |
+
var extractCode = function(hash) {
|
230 |
+
var match = hash.match(/code=(\w+)/);
|
231 |
+
return !!match && match[1];
|
232 |
+
};
|
233 |
+
var extractToken = function(hash) {
|
234 |
+
var match = hash.match(/access_token=(\w+)/);
|
235 |
+
return !!match && match[1];
|
236 |
+
};
|
237 |
+
var extractError = function(hash) {
|
238 |
+
var match = hash.match(/error=(\w+)/);
|
239 |
+
return !!match && match[1];
|
240 |
+
};
|
241 |
+
|
242 |
+
var code = extractCode(window.location.href);
|
243 |
+
if (extractError(window.location.href) == 'access_denied') {
|
244 |
+
window.close();
|
245 |
+
}
|
246 |
+
else if(code) {
|
247 |
+
try { window.opener.setCode(code); }
|
248 |
+
catch(ex) { }
|
249 |
+
window.close();
|
250 |
+
}
|
251 |
+
else {
|
252 |
+
$('.rgw-fb-login-button-iframe').hide();
|
253 |
+
$('div.authenticate').show();
|
254 |
+
|
255 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
256 |
+
$('.rgw-fb-login-button-iframe').show();
|
257 |
+
$('div.authenticate').hide();
|
258 |
+
$('div.authenticating').hide();
|
259 |
+
$('div.authenticated').show();
|
260 |
+
|
261 |
+
$('.email-address').text($('[name="readygraph_email"]').val());
|
262 |
+
|
263 |
+
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
264 |
+
$('.delay').val($('[name="readygraph_delay"]').val());
|
265 |
+
$('.sidebar').val($('[name="readygraph_enable_sidebar"]').val());
|
266 |
+
$('.notification').val($('[name="readygraph_enable_notification"]').val());
|
267 |
+
$('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
|
268 |
+
$('.branding').val($('[name="readygraph_enable_branding"]').val());
|
269 |
+
$('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
|
270 |
+
$('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
|
271 |
+
$('.popup_template').val($('[name="readygraph_popup_template"]').val());
|
272 |
+
|
273 |
+
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
274 |
+
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
275 |
+
|
276 |
+
//$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
|
277 |
+
//$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
|
278 |
+
|
279 |
+
$('.result').text('...');
|
280 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
281 |
+
$.ajax({
|
282 |
+
url: resourceHost + '/api/v1/insight_info'
|
283 |
+
, beforeSend: function (xhr) {
|
284 |
+
xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
|
285 |
+
xhr.setRequestHeader('Accept', "application/json");
|
286 |
+
}
|
287 |
+
, method: 'POST'
|
288 |
+
, success: function (response) {
|
289 |
+
if (response.data) {
|
290 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
291 |
+
} else {
|
292 |
+
$('.result').text('Insight');
|
293 |
+
}
|
294 |
+
}
|
295 |
+
, error: function (response) {
|
296 |
+
refresh_access_token();
|
297 |
+
}
|
298 |
+
});
|
299 |
+
}
|
300 |
+
}
|
301 |
+
}
|
302 |
+
|
303 |
+
// Manage OAuth 2.0 Results
|
304 |
+
//
|
305 |
+
function refresh_access_token() {
|
306 |
+
var refresh_token = $('[name="readygraph_refresh_token"]').val();
|
307 |
+
if (refresh_token) {
|
308 |
+
$('div.authenticate').hide();
|
309 |
+
$('div.authenticating').show();
|
310 |
+
$('div.authenticated').hide();
|
311 |
+
|
312 |
+
$.ajax({
|
313 |
+
url: resourceHost + '/oauth/access_token'
|
314 |
+
, data: {
|
315 |
+
grant_type: 'refresh_token',
|
316 |
+
refresh_token: $('[name="readygraph_refresh_token"]').val(),
|
317 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
318 |
+
client_id: settings.clientId
|
319 |
+
}
|
320 |
+
, method: 'POST'
|
321 |
+
, success: function (response) {
|
322 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
323 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
324 |
+
window.setAccessToken(response.access_token);
|
325 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
326 |
+
}
|
327 |
+
, error: function (response) {
|
328 |
+
alert('We couldn\'t authenticate your account. Please check your internet connection.');
|
329 |
+
$('div.authenticate').show();
|
330 |
+
$('div.authenticating').hide();
|
331 |
+
$('div.authenticated').hide();
|
332 |
+
}
|
333 |
+
});
|
334 |
+
}
|
335 |
+
}
|
336 |
+
window.setCode = function(code) {
|
337 |
+
$('.rgw-fb-login-button-iframe').hide();
|
338 |
+
$('div.authenticate').hide();
|
339 |
+
$('div.authenticating').show();
|
340 |
+
$('div.authenticated').hide();
|
341 |
+
|
342 |
+
$.ajax({
|
343 |
+
url: resourceHost + '/oauth/access_token'
|
344 |
+
, data: {
|
345 |
+
grant_type: 'authorization_code',
|
346 |
+
code: code,
|
347 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
348 |
+
client_id: settings.clientId
|
349 |
+
}
|
350 |
+
, method: 'POST'
|
351 |
+
, success: function (response) {
|
352 |
+
if (response) {
|
353 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
354 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
355 |
+
window.setAccessToken(response.access_token);
|
356 |
+
} else {
|
357 |
+
$('div.authenticating').hide();
|
358 |
+
$('div.authenticate').show();
|
359 |
+
}
|
360 |
+
}
|
361 |
+
});
|
362 |
+
}
|
363 |
+
window.setAccessToken = function(token) {
|
364 |
+
$('.rgw-fb-login-button-iframe').hide();
|
365 |
+
$('div.authenticate').hide();
|
366 |
+
$('div.authenticating').show();
|
367 |
+
$('div.authenticated').hide();
|
368 |
+
|
369 |
+
$.ajax({
|
370 |
+
url: resourceHost + '/api/v1/account_info'
|
371 |
+
, beforeSend: function (xhr) {
|
372 |
+
xhr.setRequestHeader('Authorization', "Bearer " + token);
|
373 |
+
xhr.setRequestHeader('Accept', "application/json");
|
374 |
+
}
|
375 |
+
, method: 'POST'
|
376 |
+
, success: function (response) {
|
377 |
+
if (response.data) {
|
378 |
+
$('[name="readygraph_access_token"]').val(token);
|
379 |
+
$('[name="readygraph_email"]').val(response.data.email);
|
380 |
+
$('[name="readygraph_application_id"]').val(response.data.application_id);
|
381 |
+
$('#myForm')[0].submit();
|
382 |
+
} else {
|
383 |
+
$('div.authenticating').hide();
|
384 |
+
$('div.authenticate').show();
|
385 |
+
$('.rgw-fb-login-button-iframe').hide();
|
386 |
+
}
|
387 |
+
}
|
388 |
+
});
|
389 |
+
}
|
390 |
+
});
|
391 |
+
</script>
|
392 |
+
<script>
|
393 |
+
window.setup = false;
|
394 |
+
window.refresh_readygraph = function() {};
|
395 |
+
window.setup_readygraph = function(app_id) {
|
396 |
+
if (window.setup) {
|
397 |
+
window.refresh_readygraph();
|
398 |
+
return;
|
399 |
+
}
|
400 |
+
window.setup = true;
|
401 |
+
readygraph.setup({
|
402 |
+
applicationId: app_id,
|
403 |
+
isPreview: true,
|
404 |
+
enableLoginWall: false,
|
405 |
+
enableDistraction: false,
|
406 |
+
enableAutoLogin: false,
|
407 |
+
enableSidebar: false,
|
408 |
+
enableNotification: false,
|
409 |
+
enableInvite: false,
|
410 |
+
enableOpenGraph: false,
|
411 |
+
enableRgSeo: false
|
412 |
+
});
|
413 |
+
readygraph.ready(function() {
|
414 |
+
readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
|
415 |
+
var $ = readygraph.framework.jQuery;
|
416 |
+
$.cookie('RGAuth', null);
|
417 |
+
readygraph.framework.facebook.logout(function() {
|
418 |
+
readygraph.framework.require(['invite'], function() {
|
419 |
+
var VIEW_TYPE = {
|
420 |
+
LOADING: 0,
|
421 |
+
LOGIN_REQUIRE: 1,
|
422 |
+
PERMISSION_REQUIRE: 2,
|
423 |
+
DEFAULT: 3,
|
424 |
+
LOGIN_WITH_EMAIL: 4,
|
425 |
+
SIGNUP_WITH_EMAIL: 5,
|
426 |
+
IMPORT_WITH_EMAIL: 6,
|
427 |
+
FINISH: 10
|
428 |
+
};
|
429 |
+
|
430 |
+
var auth = new readygraph.framework.ui.AuthModel({
|
431 |
+
dialog: true,
|
432 |
+
'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
|
433 |
+
});
|
434 |
+
$('.rg-preview-widget').html('');
|
435 |
+
$('.rg-preview-widget').append(auth.lightbox.view.$el);
|
436 |
+
$('.rgw-content').attr('style', 'position: relative !important;');
|
437 |
+
|
438 |
+
var view = VIEW_TYPE.LOGIN_REQUIRE;
|
439 |
+
auth.on('switch', function() {
|
440 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
441 |
+
else auth.view.render();
|
442 |
+
if (view == VIEW_TYPE.DEFAULT) {
|
443 |
+
auth.view.$el.find('.rgw-invite-view').showAndAnimate();
|
444 |
+
auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
|
445 |
+
auth.view.$el.commitTransition();
|
446 |
+
}
|
447 |
+
});
|
448 |
+
auth.view.switchView(view);
|
449 |
+
|
450 |
+
$(window).scroll(function() {
|
451 |
+
$(window).trigger('rgw-invalidate');
|
452 |
+
});
|
453 |
+
$('.rg-preview-widget, .content-warp').scroll(function() {
|
454 |
+
$(window).trigger('rgw-invalidate');
|
455 |
+
});
|
456 |
+
$(window).trigger('rgw-invalidate');
|
457 |
+
|
458 |
+
$('.rg-vertical-tab').click(function() {
|
459 |
+
saveContent(auth, $('.rg-preview-widget-container'), true);
|
460 |
+
|
461 |
+
$('.rg-vertical-tab').removeClass('active');
|
462 |
+
$(this).addClass('active');
|
463 |
+
view = VIEW_TYPE[$(this).attr('tab')];
|
464 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
465 |
+
|
466 |
+
$('.rg-preview-widget, .content-warp').scrollTop(10000);
|
467 |
+
});
|
468 |
+
|
469 |
+
enableContentEditable(auth, $('.rg-preview-widget-container'));
|
470 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
471 |
+
|
472 |
+
$('.save').click(function() {
|
473 |
+
$('.save').css('opacity', 0.4);
|
474 |
+
saveContent(auth, $('.rg-preview-widget-container'), false);
|
475 |
+
});
|
476 |
+
|
477 |
+
window.refresh_readygraph = function() {
|
478 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
479 |
+
}
|
480 |
+
});
|
481 |
+
});
|
482 |
+
});
|
483 |
+
});
|
484 |
+
}
|
485 |
+
function enableContentEditable(model, container) {
|
486 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
487 |
+
var element = $(this);
|
488 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
489 |
+
|
490 |
+
if (element.attr('editing') != null) return;
|
491 |
+
container.find('.special-button-container button').attr('disabled', 'disabled');
|
492 |
+
element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
|
493 |
+
element.attr('editing', '1');
|
494 |
+
element.css({
|
495 |
+
'border': '2px dashed orange',
|
496 |
+
'position': 'relative',
|
497 |
+
'top': '-2px',
|
498 |
+
'margin-bottom': '-4px',
|
499 |
+
'background-color': '#FAFAC5'
|
500 |
+
});
|
501 |
+
element.attr('contenteditable', true);
|
502 |
+
element.bind('paste', function(e) {
|
503 |
+
e.preventDefault();
|
504 |
+
});
|
505 |
+
element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
|
506 |
+
});
|
507 |
+
}
|
508 |
+
function saveContent(model, container, fake) {
|
509 |
+
var settings = {};
|
510 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
511 |
+
var element = $(this);
|
512 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
513 |
+
settings[element.attr('rgw-data-key')] = element.text();
|
514 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
515 |
+
});
|
516 |
+
if (!fake) {
|
517 |
+
$('input[name="readygraph_settings"]').val(JSON.stringify(settings));
|
518 |
+
$('#myForm')[0].submit();
|
519 |
+
}
|
520 |
+
}
|
521 |
+
function restoreContent(model, container) {
|
522 |
+
eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
|
523 |
+
var settings = window._TEMP;
|
524 |
+
if (settings) {
|
525 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
526 |
+
var element = $(this);
|
527 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
528 |
+
element.text(settings[element.attr('rgw-data-key')]);
|
529 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
530 |
+
});
|
531 |
+
}
|
532 |
+
}
|
533 |
+
</script>
|
534 |
+
<style>
|
535 |
+
/* FOR INLINE WIDGET */
|
536 |
+
.rgw-overlay {
|
537 |
+
display: none !important;
|
538 |
+
}
|
539 |
+
.rgw-content-frame {
|
540 |
+
left: 0 !important;
|
541 |
+
top: 0 !important;
|
542 |
+
position: relative !important;
|
543 |
+
margin: 0 auto !important;
|
544 |
+
border: solid 1px #cccccc;
|
545 |
+
}
|
546 |
+
.rgw-preview-warning {
|
547 |
+
display: none !important;
|
548 |
+
}
|
549 |
+
.rgw-content {
|
550 |
+
position: relative !important;
|
551 |
+
}
|
552 |
+
</style>
|
extension/readygraph/deactivate-readygraph.php
ADDED
@@ -0,0 +1,591 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration dashboard.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package ReadyGraph
|
9 |
+
* @author dan@readygraph.com
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://www.readygraph.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
+
$app_id = get_option('readygraph_application_id');
|
17 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
19 |
+
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
+
$app_id = get_option('readygraph_application_id');
|
22 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
24 |
+
$dir = plugin_dir_path( __FILE__ );
|
25 |
+
s2_rrmdir($dir);
|
26 |
+
}
|
27 |
+
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
global $main_plugin_title;
|
31 |
+
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
32 |
+
//redirect to main page
|
33 |
+
$current_url = explode("&", $_SERVER['REQUEST_URI']);
|
34 |
+
echo '<script>window.location.replace("'.$current_url[0].'");</script>';
|
35 |
+
}
|
36 |
+
else {
|
37 |
+
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
38 |
+
if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
|
39 |
+
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
40 |
+
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
41 |
+
if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
|
42 |
+
if (isset($_POST["retentionemaileditor"])) update_option('readygraph_invite_email', $_POST["retentionemaileditor"]);
|
43 |
+
/*if (isset($_POST["readygraph_delay"])) {
|
44 |
+
update_option('readygraph_delay', $_POST["delay"]);
|
45 |
+
$app_id = get_option('readygraph_application_id');
|
46 |
+
if ($_POST["delay"] >= 20000) wp_remote_get( "http://readygraph.com/api/v1/tracking?event=popup_delay&app_id=$app_id" );
|
47 |
+
}
|
48 |
+
if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', $_POST["notification"]);
|
49 |
+
if (isset($_POST["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', $_POST["sidebar"]);
|
50 |
+
if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', $_POST["selectAll"]);
|
51 |
+
if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', $_POST["branding"]);
|
52 |
+
if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', $_POST["blog_updates"]);
|
53 |
+
if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', $_POST["real_time_post_update"]);
|
54 |
+
if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', $_POST["popup_template"]);
|
55 |
+
/*if (isset($_POST["readygraph_popup_template_background"])) update_option('readygraph_popup_template_background', $_POST["readygraph_popup_template_background"]);
|
56 |
+
if (isset($_POST["readygraph_popup_template_text"])) update_option('readygraph_popup_template_text', $_POST["readygraph_popup_template_text"]);
|
57 |
+
if (isset($_POST["readygraph_popup_template_button"])) update_option('readygraph_popup_template_button', $_POST["readygraph_popup_template_button"]);*/
|
58 |
+
|
59 |
+
}
|
60 |
+
if (get_option('readygraph_enable_branding', '') == 'false') {
|
61 |
+
?>
|
62 |
+
<style>
|
63 |
+
/* FOR INLINE WIDGET */
|
64 |
+
.rgw-text {
|
65 |
+
display: none !important;
|
66 |
+
}
|
67 |
+
</style>
|
68 |
+
<?php } ?>
|
69 |
+
|
70 |
+
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
71 |
+
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
72 |
+
<form method="post" id="myForm">
|
73 |
+
<input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
|
74 |
+
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
75 |
+
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
76 |
+
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
77 |
+
<input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
|
78 |
+
<input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
|
79 |
+
<input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
|
80 |
+
<input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
|
81 |
+
<input type="hidden" name="readygraph_auto_select_all" value="<?php echo get_option('readygraph_auto_select_all', 'true') ?>">
|
82 |
+
<input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
|
83 |
+
<input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
|
84 |
+
<input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
|
85 |
+
<input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
|
86 |
+
<!--<input type="hidden" name="readygraph_popup_template_background" value="<?php //echo get_option('readygraph_popup_template_background', '') ?>">
|
87 |
+
<input type="hidden" name="readygraph_popup_template_text" value="<?php //echo get_option('readygraph_popup_template_text', '') ?>">
|
88 |
+
<input type="hidden" name="readygraph_popup_template_button" value="<?php //echo get_option('readygraph_popup_template_button', '') ?>">-->
|
89 |
+
|
90 |
+
<div class="authenticate" style="display: none;">
|
91 |
+
<div class="wrap1" style="min-height: 600px;">
|
92 |
+
|
93 |
+
<div id="icon-plugins" class="icon32"></div>
|
94 |
+
<h2>We've enhanced <?php echo $main_plugin_title ?> with ReadyGraph's User Growth Engine</h2>
|
95 |
+
|
96 |
+
<p style="display:none;color:red;" id="error"></p>
|
97 |
+
<div class="register-left">
|
98 |
+
<div class="alert" style="margin: 0px auto; padding: 15px; text-align: center;">
|
99 |
+
<h3>Activate ReadyGraph to get more traffic to your site</h3>
|
100 |
+
<!-- <h3 style="margin-top: 0px; font-weight: 300;"><?php //echo $main_plugin_title ?>, Now with ReadyGraph</h3> -->
|
101 |
+
<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>
|
102 |
+
<!--<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>-->
|
103 |
+
<p>Readygraph adds more ways to connect to your users. </p>
|
104 |
+
<p style="text-align: left; padding: 0 20px;">
|
105 |
+
- Get more traffic<br>
|
106 |
+
- Send automatic email digests of all your site posts<br>
|
107 |
+
- Get better deliverablility<br>
|
108 |
+
- Track performace and user activity
|
109 |
+
</p>
|
110 |
+
</div>
|
111 |
+
|
112 |
+
</div>
|
113 |
+
|
114 |
+
<div class="register-right">
|
115 |
+
<div class="form-wrap alert" style="font-size:12px;">
|
116 |
+
<p><h3>ReadyGraph grows your site</h3></p>
|
117 |
+
<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>
|
118 |
+
<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 />
|
119 |
+
If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a></p>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
<div class="authenticating" style="display: none;">
|
125 |
+
<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;">
|
126 |
+
<h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
|
127 |
+
<h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
|
128 |
+
<p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
|
129 |
+
<p style="text-align: left; padding: 0 20px;">
|
130 |
+
- Grow your subscribers faster<br>
|
131 |
+
- Engage users with automated email updates<br>
|
132 |
+
- Enhanced email deliverablility<br>
|
133 |
+
- Track performace with user-activity analytics
|
134 |
+
</p>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
<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>
|
138 |
+
<div class="authenticated" style="display: none;">
|
139 |
+
<div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
|
140 |
+
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
141 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
142 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
143 |
+
<span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
|
144 |
+
</button>
|
145 |
+
<ul class="dropdown-menu">
|
146 |
+
<li><a class="change-account" href="#">Change Account</a></li>
|
147 |
+
<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>
|
148 |
+
<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>
|
149 |
+
</ul>
|
150 |
+
</div>
|
151 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
152 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
153 |
+
<span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
|
154 |
+
</button>
|
155 |
+
<ul class="dropdown-menu">
|
156 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
|
157 |
+
</ul>
|
158 |
+
</div>
|
159 |
+
<div style="clear: both;"></div>
|
160 |
+
</div>
|
161 |
+
<!-- write menu code-->
|
162 |
+
<div class="readygraph-menu">
|
163 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
164 |
+
<ul>
|
165 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
166 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
167 |
+
<li><a href="#"></a></li>
|
168 |
+
</ul>
|
169 |
+
</div>
|
170 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
171 |
+
<ul>
|
172 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
173 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
174 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
175 |
+
</ul>
|
176 |
+
</div>
|
177 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
178 |
+
<ul>
|
179 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
180 |
+
<li><a href="#">Social Followers</a></li>
|
181 |
+
<li><a href="#">Feedback Survey</a></li>
|
182 |
+
</ul>
|
183 |
+
</div>
|
184 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
185 |
+
<ul>
|
186 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
187 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
188 |
+
|
189 |
+
</ul>
|
190 |
+
</div>
|
191 |
+
<div class="menu-tabs" style="float:right"><h4> </h4>
|
192 |
+
<p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
|
193 |
+
<p>
|
194 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
|
195 |
+
|
196 |
+
</ul>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
<div style="margin: 0 5%">
|
200 |
+
<h2>Deactivate ReadyGraph</h2>
|
201 |
+
<h3> Uh oh! Are you sure you wish to deactivate ReadyGraph?</h3>
|
202 |
+
<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>
|
203 |
+
<p><ol><li> Delay the popup longer to target more engaged users</li>
|
204 |
+
<li>Use the smaller overlay in the bottom right instead of the center of your website</li>
|
205 |
+
<li>Customize the look and feel of the popup</li>
|
206 |
+
<li>Learn more in our FAQ or Tutorial</li>
|
207 |
+
<li>Contact us with questions, clarifications or requests</li>
|
208 |
+
</ol></p>
|
209 |
+
|
210 |
+
<h3>I'm sure. What do I do now?</h3>
|
211 |
+
<p>If you are sure you want to deactivate Readygraph, you have two options: </p>
|
212 |
+
<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="#">Deactivate ReadyGraph</a></p>
|
213 |
+
<p>Delete. This will permanently removes all code and files associated with ReadyGraph from your website.<br><a href="#">Permanently Delete ReadyGraph</a></p>
|
214 |
+
<p> </p>
|
215 |
+
<p>Thanks a lot and good luck with your site!</p>
|
216 |
+
<p> </p>
|
217 |
+
<p><a href="#">Nevermind, I want to keep growing my audience with ReadyGraph</a></p>
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
</form>
|
221 |
+
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
222 |
+
<script type="text/javascript" charset="utf-8">
|
223 |
+
var $ = jQuery;
|
224 |
+
$(function () {
|
225 |
+
var settings =
|
226 |
+
{
|
227 |
+
'host': "www.readygraph.com"
|
228 |
+
, 'clientId': "9838eb84c6da2fc44ab9"
|
229 |
+
};
|
230 |
+
|
231 |
+
var authHost = "https://" + settings.host;
|
232 |
+
var resourceHost = "https://" + settings.host;
|
233 |
+
|
234 |
+
// OAuth 2.0 Popup
|
235 |
+
//
|
236 |
+
var popupWindow=null;
|
237 |
+
function openPopup(url)
|
238 |
+
{
|
239 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
240 |
+
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);
|
241 |
+
}
|
242 |
+
function parent_disable() {
|
243 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
244 |
+
}
|
245 |
+
|
246 |
+
$("a.connect").click(function() {
|
247 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
248 |
+
openPopup(url);
|
249 |
+
$(document.body).bind('focus', parent_disable);
|
250 |
+
$(document.body).bind('click', parent_disable);
|
251 |
+
});
|
252 |
+
$(".change-account").click(function() {
|
253 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
254 |
+
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
255 |
+
openPopup(logout);
|
256 |
+
$(document.body).bind('focus', parent_disable);
|
257 |
+
$(document.body).bind('click', parent_disable);
|
258 |
+
});
|
259 |
+
|
260 |
+
// User Interface
|
261 |
+
//
|
262 |
+
$('.template').click(function() {
|
263 |
+
$('#preview').attr('src', $(this).find('img').attr('src'));
|
264 |
+
});
|
265 |
+
|
266 |
+
// Manage OAuth 2.0 Redirect
|
267 |
+
//
|
268 |
+
var extractCode = function(hash) {
|
269 |
+
var match = hash.match(/code=(\w+)/);
|
270 |
+
return !!match && match[1];
|
271 |
+
};
|
272 |
+
var extractToken = function(hash) {
|
273 |
+
var match = hash.match(/access_token=(\w+)/);
|
274 |
+
return !!match && match[1];
|
275 |
+
};
|
276 |
+
var extractError = function(hash) {
|
277 |
+
var match = hash.match(/error=(\w+)/);
|
278 |
+
return !!match && match[1];
|
279 |
+
};
|
280 |
+
|
281 |
+
var code = extractCode(window.location.href);
|
282 |
+
if (extractError(window.location.href) == 'access_denied') {
|
283 |
+
window.close();
|
284 |
+
}
|
285 |
+
else if(code) {
|
286 |
+
try { window.opener.setCode(code); }
|
287 |
+
catch(ex) { }
|
288 |
+
window.close();
|
289 |
+
}
|
290 |
+
else {
|
291 |
+
$('.rgw-fb-login-button-iframe').hide();
|
292 |
+
$('div.authenticate').show();
|
293 |
+
|
294 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
295 |
+
$('.rgw-fb-login-button-iframe').show();
|
296 |
+
$('div.authenticate').hide();
|
297 |
+
$('div.authenticating').hide();
|
298 |
+
$('div.authenticated').show();
|
299 |
+
|
300 |
+
$('.email-address').text($('[name="readygraph_email"]').val());
|
301 |
+
|
302 |
+
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
303 |
+
$('.delay').val($('[name="readygraph_delay"]').val());
|
304 |
+
$('.sidebar').val($('[name="readygraph_enable_sidebar"]').val());
|
305 |
+
$('.notification').val($('[name="readygraph_enable_notification"]').val());
|
306 |
+
$('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
|
307 |
+
$('.branding').val($('[name="readygraph_enable_branding"]').val());
|
308 |
+
$('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
|
309 |
+
$('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
|
310 |
+
$('.popup_template').val($('[name="readygraph_popup_template"]').val());
|
311 |
+
|
312 |
+
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
313 |
+
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
314 |
+
|
315 |
+
//$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
|
316 |
+
//$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
|
317 |
+
|
318 |
+
$('.result').text('...');
|
319 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
320 |
+
$.ajax({
|
321 |
+
url: resourceHost + '/api/v1/insight_info'
|
322 |
+
, beforeSend: function (xhr) {
|
323 |
+
xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
|
324 |
+
xhr.setRequestHeader('Accept', "application/json");
|
325 |
+
}
|
326 |
+
, method: 'POST'
|
327 |
+
, success: function (response) {
|
328 |
+
if (response.data) {
|
329 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
330 |
+
} else {
|
331 |
+
$('.result').text('Insight');
|
332 |
+
}
|
333 |
+
}
|
334 |
+
, error: function (response) {
|
335 |
+
refresh_access_token();
|
336 |
+
}
|
337 |
+
});
|
338 |
+
}
|
339 |
+
}
|
340 |
+
}
|
341 |
+
|
342 |
+
// Manage OAuth 2.0 Results
|
343 |
+
//
|
344 |
+
function refresh_access_token() {
|
345 |
+
var refresh_token = $('[name="readygraph_refresh_token"]').val();
|
346 |
+
if (refresh_token) {
|
347 |
+
$('div.authenticate').hide();
|
348 |
+
$('div.authenticating').show();
|
349 |
+
$('div.authenticated').hide();
|
350 |
+
|
351 |
+
$.ajax({
|
352 |
+
url: resourceHost + '/oauth/access_token'
|
353 |
+
, data: {
|
354 |
+
grant_type: 'refresh_token',
|
355 |
+
refresh_token: $('[name="readygraph_refresh_token"]').val(),
|
356 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
357 |
+
client_id: settings.clientId
|
358 |
+
}
|
359 |
+
, method: 'POST'
|
360 |
+
, success: function (response) {
|
361 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
362 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
363 |
+
window.setAccessToken(response.access_token);
|
364 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
365 |
+
}
|
366 |
+
, error: function (response) {
|
367 |
+
alert('We couldn\'t authenticate your account. Please check your internet connection.');
|
368 |
+
$('div.authenticate').show();
|
369 |
+
$('div.authenticating').hide();
|
370 |
+
$('div.authenticated').hide();
|
371 |
+
}
|
372 |
+
});
|
373 |
+
}
|
374 |
+
}
|
375 |
+
window.setCode = function(code) {
|
376 |
+
$('.rgw-fb-login-button-iframe').hide();
|
377 |
+
$('div.authenticate').hide();
|
378 |
+
$('div.authenticating').show();
|
379 |
+
$('div.authenticated').hide();
|
380 |
+
|
381 |
+
$.ajax({
|
382 |
+
url: resourceHost + '/oauth/access_token'
|
383 |
+
, data: {
|
384 |
+
grant_type: 'authorization_code',
|
385 |
+
code: code,
|
386 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
387 |
+
client_id: settings.clientId
|
388 |
+
}
|
389 |
+
, method: 'POST'
|
390 |
+
, success: function (response) {
|
391 |
+
if (response) {
|
392 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
393 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
394 |
+
window.setAccessToken(response.access_token);
|
395 |
+
} else {
|
396 |
+
$('div.authenticating').hide();
|
397 |
+
$('div.authenticate').show();
|
398 |
+
}
|
399 |
+
}
|
400 |
+
});
|
401 |
+
}
|
402 |
+
window.setAccessToken = function(token) {
|
403 |
+
$('.rgw-fb-login-button-iframe').hide();
|
404 |
+
$('div.authenticate').hide();
|
405 |
+
$('div.authenticating').show();
|
406 |
+
$('div.authenticated').hide();
|
407 |
+
|
408 |
+
$.ajax({
|
409 |
+
url: resourceHost + '/api/v1/account_info'
|
410 |
+
, beforeSend: function (xhr) {
|
411 |
+
xhr.setRequestHeader('Authorization', "Bearer " + token);
|
412 |
+
xhr.setRequestHeader('Accept', "application/json");
|
413 |
+
}
|
414 |
+
, method: 'POST'
|
415 |
+
, success: function (response) {
|
416 |
+
if (response.data) {
|
417 |
+
$('[name="readygraph_access_token"]').val(token);
|
418 |
+
$('[name="readygraph_email"]').val(response.data.email);
|
419 |
+
$('[name="readygraph_application_id"]').val(response.data.application_id);
|
420 |
+
$('#myForm')[0].submit();
|
421 |
+
} else {
|
422 |
+
$('div.authenticating').hide();
|
423 |
+
$('div.authenticate').show();
|
424 |
+
$('.rgw-fb-login-button-iframe').hide();
|
425 |
+
}
|
426 |
+
}
|
427 |
+
});
|
428 |
+
}
|
429 |
+
});
|
430 |
+
</script>
|
431 |
+
<script>
|
432 |
+
window.setup = false;
|
433 |
+
window.refresh_readygraph = function() {};
|
434 |
+
window.setup_readygraph = function(app_id) {
|
435 |
+
if (window.setup) {
|
436 |
+
window.refresh_readygraph();
|
437 |
+
return;
|
438 |
+
}
|
439 |
+
window.setup = true;
|
440 |
+
readygraph.setup({
|
441 |
+
applicationId: app_id,
|
442 |
+
isPreview: true,
|
443 |
+
enableLoginWall: false,
|
444 |
+
enableDistraction: false,
|
445 |
+
enableAutoLogin: false,
|
446 |
+
enableSidebar: false,
|
447 |
+
enableNotification: false,
|
448 |
+
enableInvite: false,
|
449 |
+
enableOpenGraph: false,
|
450 |
+
enableRgSeo: false
|
451 |
+
});
|
452 |
+
readygraph.ready(function() {
|
453 |
+
readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
|
454 |
+
var $ = readygraph.framework.jQuery;
|
455 |
+
$.cookie('RGAuth', null);
|
456 |
+
readygraph.framework.facebook.logout(function() {
|
457 |
+
readygraph.framework.require(['invite'], function() {
|
458 |
+
var VIEW_TYPE = {
|
459 |
+
LOADING: 0,
|
460 |
+
LOGIN_REQUIRE: 1,
|
461 |
+
PERMISSION_REQUIRE: 2,
|
462 |
+
DEFAULT: 3,
|
463 |
+
LOGIN_WITH_EMAIL: 4,
|
464 |
+
SIGNUP_WITH_EMAIL: 5,
|
465 |
+
IMPORT_WITH_EMAIL: 6,
|
466 |
+
FINISH: 10
|
467 |
+
};
|
468 |
+
|
469 |
+
var auth = new readygraph.framework.ui.AuthModel({
|
470 |
+
dialog: true,
|
471 |
+
'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
|
472 |
+
});
|
473 |
+
$('.rg-preview-widget').html('');
|
474 |
+
$('.rg-preview-widget').append(auth.lightbox.view.$el);
|
475 |
+
$('.rgw-content').attr('style', 'position: relative !important;');
|
476 |
+
|
477 |
+
var view = VIEW_TYPE.LOGIN_REQUIRE;
|
478 |
+
auth.on('switch', function() {
|
479 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
480 |
+
else auth.view.render();
|
481 |
+
if (view == VIEW_TYPE.DEFAULT) {
|
482 |
+
auth.view.$el.find('.rgw-invite-view').showAndAnimate();
|
483 |
+
auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
|
484 |
+
auth.view.$el.commitTransition();
|
485 |
+
}
|
486 |
+
});
|
487 |
+
auth.view.switchView(view);
|
488 |
+
|
489 |
+
$(window).scroll(function() {
|
490 |
+
$(window).trigger('rgw-invalidate');
|
491 |
+
});
|
492 |
+
$('.rg-preview-widget, .content-warp').scroll(function() {
|
493 |
+
$(window).trigger('rgw-invalidate');
|
494 |
+
});
|
495 |
+
$(window).trigger('rgw-invalidate');
|
496 |
+
|
497 |
+
$('.rg-vertical-tab').click(function() {
|
498 |
+
saveContent(auth, $('.rg-preview-widget-container'), true);
|
499 |
+
|
500 |
+
$('.rg-vertical-tab').removeClass('active');
|
501 |
+
$(this).addClass('active');
|
502 |
+
view = VIEW_TYPE[$(this).attr('tab')];
|
503 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
504 |
+
|
505 |
+
$('.rg-preview-widget, .content-warp').scrollTop(10000);
|
506 |
+
});
|
507 |
+
|
508 |
+
enableContentEditable(auth, $('.rg-preview-widget-container'));
|
509 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
510 |
+
|
511 |
+
$('.save').click(function() {
|
512 |
+
$('.save').css('opacity', 0.4);
|
513 |
+
saveContent(auth, $('.rg-preview-widget-container'), false);
|
514 |
+
});
|
515 |
+
|
516 |
+
window.refresh_readygraph = function() {
|
517 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
518 |
+
}
|
519 |
+
});
|
520 |
+
});
|
521 |
+
});
|
522 |
+
});
|
523 |
+
}
|
524 |
+
function enableContentEditable(model, container) {
|
525 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
526 |
+
var element = $(this);
|
527 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
528 |
+
|
529 |
+
if (element.attr('editing') != null) return;
|
530 |
+
container.find('.special-button-container button').attr('disabled', 'disabled');
|
531 |
+
element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
|
532 |
+
element.attr('editing', '1');
|
533 |
+
element.css({
|
534 |
+
'border': '2px dashed orange',
|
535 |
+
'position': 'relative',
|
536 |
+
'top': '-2px',
|
537 |
+
'margin-bottom': '-4px',
|
538 |
+
'background-color': '#FAFAC5'
|
539 |
+
});
|
540 |
+
element.attr('contenteditable', true);
|
541 |
+
element.bind('paste', function(e) {
|
542 |
+
e.preventDefault();
|
543 |
+
});
|
544 |
+
element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
|
545 |
+
});
|
546 |
+
}
|
547 |
+
function saveContent(model, container, fake) {
|
548 |
+
var settings = {};
|
549 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
550 |
+
var element = $(this);
|
551 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
552 |
+
settings[element.attr('rgw-data-key')] = element.text();
|
553 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
554 |
+
});
|
555 |
+
if (!fake) {
|
556 |
+
$('input[name="readygraph_settings"]').val(JSON.stringify(settings));
|
557 |
+
$('#myForm')[0].submit();
|
558 |
+
}
|
559 |
+
}
|
560 |
+
function restoreContent(model, container) {
|
561 |
+
eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
|
562 |
+
var settings = window._TEMP;
|
563 |
+
if (settings) {
|
564 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
565 |
+
var element = $(this);
|
566 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
567 |
+
element.text(settings[element.attr('rgw-data-key')]);
|
568 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
569 |
+
});
|
570 |
+
}
|
571 |
+
}
|
572 |
+
</script>
|
573 |
+
<style>
|
574 |
+
/* FOR INLINE WIDGET */
|
575 |
+
.rgw-overlay {
|
576 |
+
display: none !important;
|
577 |
+
}
|
578 |
+
.rgw-content-frame {
|
579 |
+
left: 0 !important;
|
580 |
+
top: 0 !important;
|
581 |
+
position: relative !important;
|
582 |
+
margin: 0 auto !important;
|
583 |
+
border: solid 1px #cccccc;
|
584 |
+
}
|
585 |
+
.rgw-preview-warning {
|
586 |
+
display: none !important;
|
587 |
+
}
|
588 |
+
.rgw-content {
|
589 |
+
position: relative !important;
|
590 |
+
}
|
591 |
+
</style>
|
extension/readygraph/extension.php
CHANGED
@@ -130,7 +130,7 @@ script.onload = function(e) {
|
|
130 |
settings['applicationId'] = '<?php echo get_option('readygraph_application_id', '') ?>';
|
131 |
settings['overrideFacebookSDK'] = true;
|
132 |
settings['platform'] = 'others';
|
133 |
-
settings['enableLoginWall'] = true
|
134 |
settings['enableSidebar'] = <?php echo get_option('readygraph_enable_sidebar', 'false') ?>;
|
135 |
settings['inviteFlowDelay'] = <?php echo get_option('readygraph_delay', '5000') ?>;
|
136 |
settings['enableNotification'] = <?php echo get_option('readygraph_enable_notification', 'true') ?>;
|
130 |
settings['applicationId'] = '<?php echo get_option('readygraph_application_id', '') ?>';
|
131 |
settings['overrideFacebookSDK'] = true;
|
132 |
settings['platform'] = 'others';
|
133 |
+
settings['enableLoginWall'] = <?php echo get_option('readygraph_enable_popup', 'true') ?>;
|
134 |
settings['enableSidebar'] = <?php echo get_option('readygraph_enable_sidebar', 'false') ?>;
|
135 |
settings['inviteFlowDelay'] = <?php echo get_option('readygraph_delay', '5000') ?>;
|
136 |
settings['enableNotification'] = <?php echo get_option('readygraph_enable_notification', 'true') ?>;
|
extension/readygraph/faq.php
ADDED
@@ -0,0 +1,629 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration dashboard.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package ReadyGraph
|
9 |
+
* @author dan@readygraph.com
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://www.readygraph.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
+
$app_id = get_option('readygraph_application_id');
|
17 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
19 |
+
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
+
$app_id = get_option('readygraph_application_id');
|
22 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
24 |
+
$dir = plugin_dir_path( __FILE__ );
|
25 |
+
s2_rrmdir($dir);
|
26 |
+
}
|
27 |
+
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
global $main_plugin_title;
|
31 |
+
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
32 |
+
//redirect to main page
|
33 |
+
$current_url = explode("&", $_SERVER['REQUEST_URI']);
|
34 |
+
echo '<script>window.location.replace("'.$current_url[0].'");</script>';
|
35 |
+
}
|
36 |
+
else {
|
37 |
+
|
38 |
+
}
|
39 |
+
?>
|
40 |
+
|
41 |
+
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
42 |
+
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
43 |
+
<form method="post" id="myForm">
|
44 |
+
<input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
|
45 |
+
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
46 |
+
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
47 |
+
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
48 |
+
|
49 |
+
<div class="authenticate" style="display: none;">
|
50 |
+
<div class="wrap1" style="min-height: 600px;">
|
51 |
+
|
52 |
+
<div id="icon-plugins" class="icon32"></div>
|
53 |
+
<h2>We've enhanced <?php echo $main_plugin_title ?> with ReadyGraph's User Growth Engine</h2>
|
54 |
+
|
55 |
+
<p style="display:none;color:red;" id="error"></p>
|
56 |
+
<div class="register-left">
|
57 |
+
<div class="alert" style="margin: 0px auto; padding: 15px; text-align: center;">
|
58 |
+
<h3>Activate ReadyGraph to get more traffic to your site</h3>
|
59 |
+
<!-- <h3 style="margin-top: 0px; font-weight: 300;"><?php //echo $main_plugin_title ?>, Now with ReadyGraph</h3> -->
|
60 |
+
<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>
|
61 |
+
<!--<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>-->
|
62 |
+
<p>Readygraph adds more ways to connect to your users. </p>
|
63 |
+
<p style="text-align: left; padding: 0 20px;">
|
64 |
+
- Get more traffic<br>
|
65 |
+
- Send automatic email digests of all your site posts<br>
|
66 |
+
- Get better deliverablility<br>
|
67 |
+
- Track performace and user activity
|
68 |
+
</p>
|
69 |
+
</div>
|
70 |
+
|
71 |
+
</div>
|
72 |
+
|
73 |
+
<div class="register-right">
|
74 |
+
<div class="form-wrap alert" style="font-size:12px;">
|
75 |
+
<p><h3>ReadyGraph grows your site</h3></p>
|
76 |
+
<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>
|
77 |
+
<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 />
|
78 |
+
If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a></p>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
<div class="authenticating" style="display: none;">
|
84 |
+
<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;">
|
85 |
+
<h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
|
86 |
+
<h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
|
87 |
+
<p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
|
88 |
+
<p style="text-align: left; padding: 0 20px;">
|
89 |
+
- Grow your subscribers faster<br>
|
90 |
+
- Engage users with automated email updates<br>
|
91 |
+
- Enhanced email deliverablility<br>
|
92 |
+
- Track performace with user-activity analytics
|
93 |
+
</p>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
<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>
|
97 |
+
<div class="authenticated" style="display: none;">
|
98 |
+
<div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
|
99 |
+
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
100 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
101 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
102 |
+
<span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
|
103 |
+
</button>
|
104 |
+
<ul class="dropdown-menu">
|
105 |
+
<li><a class="change-account" href="#">Change Account</a></li>
|
106 |
+
<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>
|
107 |
+
<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>
|
108 |
+
</ul>
|
109 |
+
</div>
|
110 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
111 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
112 |
+
<span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
|
113 |
+
</button>
|
114 |
+
<ul class="dropdown-menu">
|
115 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
|
116 |
+
</ul>
|
117 |
+
</div>
|
118 |
+
<div style="clear: both;"></div>
|
119 |
+
</div>
|
120 |
+
<!-- write menu code-->
|
121 |
+
<div class="readygraph-menu">
|
122 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
123 |
+
<ul>
|
124 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
125 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
126 |
+
<li><a href="#"></a></li>
|
127 |
+
</ul>
|
128 |
+
</div>
|
129 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
130 |
+
<ul>
|
131 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
132 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
133 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
134 |
+
</ul>
|
135 |
+
</div>
|
136 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
137 |
+
<ul>
|
138 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
139 |
+
<li><a href="#">Social Followers</a></li>
|
140 |
+
<li><a href="#">Feedback Survey</a></li>
|
141 |
+
</ul>
|
142 |
+
</div>
|
143 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
144 |
+
<ul>
|
145 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
146 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
147 |
+
|
148 |
+
</ul>
|
149 |
+
</div>
|
150 |
+
<div class="menu-tabs" style="float:right"><h4> </h4>
|
151 |
+
<p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
|
152 |
+
<p>
|
153 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
|
154 |
+
|
155 |
+
</ul>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
<div class="tutorial-true" style="margin: 5% auto;">
|
159 |
+
<h3 style="font-weight: normal; text-align: center;">Frequenty Asked Questions</h3>
|
160 |
+
|
161 |
+
<h4> GENERAL QUESTIONS: </h4>
|
162 |
+
|
163 |
+
<b>What is ReadyGraph?</b>
|
164 |
+
|
165 |
+
<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>
|
166 |
+
|
167 |
+
<b>How do I install ReadyGraph?</b>
|
168 |
+
|
169 |
+
<p>After installing this plug-in, you can activate the ReadyGraph features by connecting/signing-up for your ReadyGraph account.</p>
|
170 |
+
|
171 |
+
<b>How do I uninstall ReadyGraph?</b>
|
172 |
+
|
173 |
+
<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>
|
174 |
+
|
175 |
+
<b>Can I delay the sign-up pop-up?</b>
|
176 |
+
|
177 |
+
<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>
|
178 |
+
|
179 |
+
<b>How do I check my website’s stats?</b>
|
180 |
+
|
181 |
+
<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>
|
182 |
+
|
183 |
+
<b>Can I use both the pop-up and the form widget?</b>
|
184 |
+
|
185 |
+
<p>Yes, you can; they will not conflict with each other.</p>
|
186 |
+
|
187 |
+
<b>How do I contact someone for support, or to suggest a feature?</b>
|
188 |
+
|
189 |
+
<p>You can contact us at info@readygraph.com. We appreciate all feedback.</p>
|
190 |
+
|
191 |
+
<b>I’m having problems with the latest version of the plug-in; can I switch back to an older version?</b>
|
192 |
+
|
193 |
+
<p>Yes, just navigate to the “Developers” tab on the wordpress.org plug-in page, and select the version that works for you.</p>
|
194 |
+
|
195 |
+
<h4> ACCOUNT QUESTIONS: </h4>
|
196 |
+
|
197 |
+
<b>How do I change my account email address?</b>
|
198 |
+
|
199 |
+
<p>Contact us as info@readygraph.com.</p>
|
200 |
+
|
201 |
+
<b>How do I turn off email notifications from ReadyGraph?</b>
|
202 |
+
|
203 |
+
<p>You can turn them off via the account settings page on ReadyGraph.com.</p>
|
204 |
+
|
205 |
+
<b>How do I disconnect ReadyGraph from my site?</b>
|
206 |
+
|
207 |
+
<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>
|
208 |
+
|
209 |
+
<h4> CUSTOMIZATION QUESTIONS: </h4>
|
210 |
+
|
211 |
+
<b>Can I customize the pop-up?</b>
|
212 |
+
|
213 |
+
<p>Yes, you can choose a template that matches your site design, from the various templates available.</p>
|
214 |
+
|
215 |
+
<b>Can I customize the friend-invite form?</b>
|
216 |
+
|
217 |
+
<p>You can customize the text on the friend invite form to something that suits your website.</p>
|
218 |
+
|
219 |
+
<b>Can I customize my emails?</b>
|
220 |
+
|
221 |
+
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>
|
222 |
+
|
223 |
+
<h4> QUESTIONS ABOUT YOUR SUBSCRIBERS: </h4>
|
224 |
+
|
225 |
+
<b>How do I view my subscribers?</b>
|
226 |
+
|
227 |
+
<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>
|
228 |
+
|
229 |
+
<b>How do I mail my subscribers?</b>
|
230 |
+
|
231 |
+
<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>
|
232 |
+
|
233 |
+
<b>Can I import a list of existing subscribers?</b>
|
234 |
+
|
235 |
+
<p>This is a feature currently under development and is scheduled to be released in our next update.</p>
|
236 |
+
|
237 |
+
<b>Can I export a list of my subscribers?</b>
|
238 |
+
|
239 |
+
<p>This is a feature currently under development and is scheduled to be released in our next update.</p>
|
240 |
+
|
241 |
+
<b>If I decide to stop using ReadyGraph, do I keep my subscribers?</b>
|
242 |
+
|
243 |
+
<p>Yes, contact us at info@readygraph.com for assistance.</p>
|
244 |
+
|
245 |
+
<b>Can I send automated emails/newsletters to my subscribers?</b>
|
246 |
+
|
247 |
+
<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>
|
248 |
+
|
249 |
+
<b>Is ReadyGraph necessary in order to use this plug-in?</b>
|
250 |
+
|
251 |
+
<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>
|
252 |
+
|
253 |
+
If you have questions or concerns, contact us anytime at [info@readygraph.com](mailto:info@readygraph.com)
|
254 |
+
</div>
|
255 |
+
|
256 |
+
</div>
|
257 |
+
</form>
|
258 |
+
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
259 |
+
<script type="text/javascript" charset="utf-8">
|
260 |
+
var $ = jQuery;
|
261 |
+
$(function () {
|
262 |
+
var settings =
|
263 |
+
{
|
264 |
+
'host': "www.readygraph.com"
|
265 |
+
, 'clientId': "9838eb84c6da2fc44ab9"
|
266 |
+
};
|
267 |
+
|
268 |
+
var authHost = "https://" + settings.host;
|
269 |
+
var resourceHost = "https://" + settings.host;
|
270 |
+
|
271 |
+
// OAuth 2.0 Popup
|
272 |
+
//
|
273 |
+
var popupWindow=null;
|
274 |
+
function openPopup(url)
|
275 |
+
{
|
276 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
277 |
+
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);
|
278 |
+
}
|
279 |
+
function parent_disable() {
|
280 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
281 |
+
}
|
282 |
+
|
283 |
+
$("a.connect").click(function() {
|
284 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
285 |
+
openPopup(url);
|
286 |
+
$(document.body).bind('focus', parent_disable);
|
287 |
+
$(document.body).bind('click', parent_disable);
|
288 |
+
});
|
289 |
+
$(".change-account").click(function() {
|
290 |
+
document.cookie="readygraph_tutorial=true"
|
291 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
292 |
+
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
293 |
+
openPopup(logout);
|
294 |
+
$(document.body).bind('focus', parent_disable);
|
295 |
+
$(document.body).bind('click', parent_disable);
|
296 |
+
});
|
297 |
+
|
298 |
+
// User Interface
|
299 |
+
//
|
300 |
+
$('.template').click(function() {
|
301 |
+
$('#preview').attr('src', $(this).find('img').attr('src'));
|
302 |
+
});
|
303 |
+
|
304 |
+
// Manage OAuth 2.0 Redirect
|
305 |
+
//
|
306 |
+
var extractCode = function(hash) {
|
307 |
+
var match = hash.match(/code=(\w+)/);
|
308 |
+
return !!match && match[1];
|
309 |
+
};
|
310 |
+
var extractToken = function(hash) {
|
311 |
+
var match = hash.match(/access_token=(\w+)/);
|
312 |
+
return !!match && match[1];
|
313 |
+
};
|
314 |
+
var extractError = function(hash) {
|
315 |
+
var match = hash.match(/error=(\w+)/);
|
316 |
+
return !!match && match[1];
|
317 |
+
};
|
318 |
+
|
319 |
+
var code = extractCode(window.location.href);
|
320 |
+
if (extractError(window.location.href) == 'access_denied') {
|
321 |
+
window.close();
|
322 |
+
}
|
323 |
+
else if(code) {
|
324 |
+
try { window.opener.setCode(code); }
|
325 |
+
catch(ex) { }
|
326 |
+
window.close();
|
327 |
+
}
|
328 |
+
else {
|
329 |
+
$('.rgw-fb-login-button-iframe').hide();
|
330 |
+
$('div.authenticate').show();
|
331 |
+
|
332 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
333 |
+
$('.rgw-fb-login-button-iframe').show();
|
334 |
+
$('div.authenticate').hide();
|
335 |
+
$('div.authenticating').hide();
|
336 |
+
$('div.authenticated').show();
|
337 |
+
|
338 |
+
$('.email-address').text($('[name="readygraph_email"]').val());
|
339 |
+
|
340 |
+
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
341 |
+
$('.delay').val($('[name="readygraph_delay"]').val());
|
342 |
+
$('.sidebar').val($('[name="readygraph_enable_sidebar"]').val());
|
343 |
+
$('.notification').val($('[name="readygraph_enable_notification"]').val());
|
344 |
+
$('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
|
345 |
+
$('.branding').val($('[name="readygraph_enable_branding"]').val());
|
346 |
+
$('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
|
347 |
+
$('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
|
348 |
+
$('.popup_template').val($('[name="readygraph_popup_template"]').val());
|
349 |
+
|
350 |
+
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
351 |
+
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
352 |
+
|
353 |
+
//$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
|
354 |
+
//$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
|
355 |
+
|
356 |
+
$('.result').text('...');
|
357 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
358 |
+
$.ajax({
|
359 |
+
url: resourceHost + '/api/v1/insight_info'
|
360 |
+
, beforeSend: function (xhr) {
|
361 |
+
xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
|
362 |
+
xhr.setRequestHeader('Accept', "application/json");
|
363 |
+
}
|
364 |
+
, method: 'POST'
|
365 |
+
, success: function (response) {
|
366 |
+
if (response.data) {
|
367 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
368 |
+
} else {
|
369 |
+
$('.result').text('Insight');
|
370 |
+
}
|
371 |
+
}
|
372 |
+
, error: function (response) {
|
373 |
+
refresh_access_token();
|
374 |
+
}
|
375 |
+
});
|
376 |
+
}
|
377 |
+
}
|
378 |
+
}
|
379 |
+
|
380 |
+
// Manage OAuth 2.0 Results
|
381 |
+
//
|
382 |
+
function refresh_access_token() {
|
383 |
+
var refresh_token = $('[name="readygraph_refresh_token"]').val();
|
384 |
+
if (refresh_token) {
|
385 |
+
$('div.authenticate').hide();
|
386 |
+
$('div.authenticating').show();
|
387 |
+
$('div.authenticated').hide();
|
388 |
+
|
389 |
+
$.ajax({
|
390 |
+
url: resourceHost + '/oauth/access_token'
|
391 |
+
, data: {
|
392 |
+
grant_type: 'refresh_token',
|
393 |
+
refresh_token: $('[name="readygraph_refresh_token"]').val(),
|
394 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
395 |
+
client_id: settings.clientId
|
396 |
+
}
|
397 |
+
, method: 'POST'
|
398 |
+
, success: function (response) {
|
399 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
400 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
401 |
+
window.setAccessToken(response.access_token);
|
402 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
403 |
+
}
|
404 |
+
, error: function (response) {
|
405 |
+
alert('We couldn\'t authenticate your account. Please check your internet connection.');
|
406 |
+
$('div.authenticate').show();
|
407 |
+
$('div.authenticating').hide();
|
408 |
+
$('div.authenticated').hide();
|
409 |
+
}
|
410 |
+
});
|
411 |
+
}
|
412 |
+
}
|
413 |
+
window.setCode = function(code) {
|
414 |
+
$('.rgw-fb-login-button-iframe').hide();
|
415 |
+
$('div.authenticate').hide();
|
416 |
+
$('div.authenticating').show();
|
417 |
+
$('div.authenticated').hide();
|
418 |
+
|
419 |
+
$.ajax({
|
420 |
+
url: resourceHost + '/oauth/access_token'
|
421 |
+
, data: {
|
422 |
+
grant_type: 'authorization_code',
|
423 |
+
code: code,
|
424 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
425 |
+
client_id: settings.clientId
|
426 |
+
}
|
427 |
+
, method: 'POST'
|
428 |
+
, success: function (response) {
|
429 |
+
if (response) {
|
430 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
431 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
432 |
+
window.setAccessToken(response.access_token);
|
433 |
+
} else {
|
434 |
+
$('div.authenticating').hide();
|
435 |
+
$('div.authenticate').show();
|
436 |
+
}
|
437 |
+
}
|
438 |
+
});
|
439 |
+
}
|
440 |
+
window.setAccessToken = function(token) {
|
441 |
+
$('.rgw-fb-login-button-iframe').hide();
|
442 |
+
$('div.authenticate').hide();
|
443 |
+
$('div.authenticating').show();
|
444 |
+
$('div.authenticated').hide();
|
445 |
+
|
446 |
+
$.ajax({
|
447 |
+
url: resourceHost + '/api/v1/account_info'
|
448 |
+
, beforeSend: function (xhr) {
|
449 |
+
xhr.setRequestHeader('Authorization', "Bearer " + token);
|
450 |
+
xhr.setRequestHeader('Accept', "application/json");
|
451 |
+
}
|
452 |
+
, method: 'POST'
|
453 |
+
, success: function (response) {
|
454 |
+
if (response.data) {
|
455 |
+
$('[name="readygraph_access_token"]').val(token);
|
456 |
+
$('[name="readygraph_email"]').val(response.data.email);
|
457 |
+
$('[name="readygraph_application_id"]').val(response.data.application_id);
|
458 |
+
$('#myForm')[0].submit();
|
459 |
+
} else {
|
460 |
+
$('div.authenticating').hide();
|
461 |
+
$('div.authenticate').show();
|
462 |
+
$('.rgw-fb-login-button-iframe').hide();
|
463 |
+
}
|
464 |
+
}
|
465 |
+
});
|
466 |
+
}
|
467 |
+
});
|
468 |
+
</script>
|
469 |
+
<script>
|
470 |
+
window.setup = false;
|
471 |
+
window.refresh_readygraph = function() {};
|
472 |
+
window.setup_readygraph = function(app_id) {
|
473 |
+
if (window.setup) {
|
474 |
+
window.refresh_readygraph();
|
475 |
+
return;
|
476 |
+
}
|
477 |
+
window.setup = true;
|
478 |
+
readygraph.setup({
|
479 |
+
applicationId: app_id,
|
480 |
+
isPreview: true,
|
481 |
+
enableLoginWall: false,
|
482 |
+
enableDistraction: false,
|
483 |
+
enableAutoLogin: false,
|
484 |
+
enableSidebar: false,
|
485 |
+
enableNotification: false,
|
486 |
+
enableInvite: false,
|
487 |
+
enableOpenGraph: false,
|
488 |
+
enableRgSeo: false
|
489 |
+
});
|
490 |
+
readygraph.ready(function() {
|
491 |
+
readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
|
492 |
+
var $ = readygraph.framework.jQuery;
|
493 |
+
$.cookie('RGAuth', null);
|
494 |
+
readygraph.framework.facebook.logout(function() {
|
495 |
+
readygraph.framework.require(['invite'], function() {
|
496 |
+
var VIEW_TYPE = {
|
497 |
+
LOADING: 0,
|
498 |
+
LOGIN_REQUIRE: 1,
|
499 |
+
PERMISSION_REQUIRE: 2,
|
500 |
+
DEFAULT: 3,
|
501 |
+
LOGIN_WITH_EMAIL: 4,
|
502 |
+
SIGNUP_WITH_EMAIL: 5,
|
503 |
+
IMPORT_WITH_EMAIL: 6,
|
504 |
+
FINISH: 10
|
505 |
+
};
|
506 |
+
|
507 |
+
var auth = new readygraph.framework.ui.AuthModel({
|
508 |
+
dialog: true,
|
509 |
+
'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
|
510 |
+
});
|
511 |
+
$('.rg-preview-widget').html('');
|
512 |
+
$('.rg-preview-widget').append(auth.lightbox.view.$el);
|
513 |
+
$('.rgw-content').attr('style', 'position: relative !important;');
|
514 |
+
|
515 |
+
var view = VIEW_TYPE.LOGIN_REQUIRE;
|
516 |
+
auth.on('switch', function() {
|
517 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
518 |
+
else auth.view.render();
|
519 |
+
if (view == VIEW_TYPE.DEFAULT) {
|
520 |
+
auth.view.$el.find('.rgw-invite-view').showAndAnimate();
|
521 |
+
auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
|
522 |
+
auth.view.$el.commitTransition();
|
523 |
+
}
|
524 |
+
});
|
525 |
+
auth.view.switchView(view);
|
526 |
+
|
527 |
+
$(window).scroll(function() {
|
528 |
+
$(window).trigger('rgw-invalidate');
|
529 |
+
});
|
530 |
+
$('.rg-preview-widget, .content-warp').scroll(function() {
|
531 |
+
$(window).trigger('rgw-invalidate');
|
532 |
+
});
|
533 |
+
$(window).trigger('rgw-invalidate');
|
534 |
+
|
535 |
+
$('.rg-vertical-tab').click(function() {
|
536 |
+
saveContent(auth, $('.rg-preview-widget-container'), true);
|
537 |
+
|
538 |
+
$('.rg-vertical-tab').removeClass('active');
|
539 |
+
$(this).addClass('active');
|
540 |
+
view = VIEW_TYPE[$(this).attr('tab')];
|
541 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
542 |
+
|
543 |
+
$('.rg-preview-widget, .content-warp').scrollTop(10000);
|
544 |
+
});
|
545 |
+
|
546 |
+
enableContentEditable(auth, $('.rg-preview-widget-container'));
|
547 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
548 |
+
|
549 |
+
$('.save').click(function() {
|
550 |
+
$('.save').css('opacity', 0.4);
|
551 |
+
saveContent(auth, $('.rg-preview-widget-container'), false);
|
552 |
+
});
|
553 |
+
|
554 |
+
window.refresh_readygraph = function() {
|
555 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
556 |
+
}
|
557 |
+
});
|
558 |
+
});
|
559 |
+
});
|
560 |
+
});
|
561 |
+
}
|
562 |
+
function enableContentEditable(model, container) {
|
563 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
564 |
+
var element = $(this);
|
565 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
566 |
+
|
567 |
+
if (element.attr('editing') != null) return;
|
568 |
+
container.find('.special-button-container button').attr('disabled', 'disabled');
|
569 |
+
element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
|
570 |
+
element.attr('editing', '1');
|
571 |
+
element.css({
|
572 |
+
'border': '2px dashed orange',
|
573 |
+
'position': 'relative',
|
574 |
+
'top': '-2px',
|
575 |
+
'margin-bottom': '-4px',
|
576 |
+
'background-color': '#FAFAC5'
|
577 |
+
});
|
578 |
+
element.attr('contenteditable', true);
|
579 |
+
element.bind('paste', function(e) {
|
580 |
+
e.preventDefault();
|
581 |
+
});
|
582 |
+
element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
|
583 |
+
});
|
584 |
+
}
|
585 |
+
function saveContent(model, container, fake) {
|
586 |
+
var settings = {};
|
587 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
588 |
+
var element = $(this);
|
589 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
590 |
+
settings[element.attr('rgw-data-key')] = element.text();
|
591 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
592 |
+
});
|
593 |
+
if (!fake) {
|
594 |
+
$('input[name="readygraph_settings"]').val(JSON.stringify(settings));
|
595 |
+
$('#myForm')[0].submit();
|
596 |
+
}
|
597 |
+
}
|
598 |
+
function restoreContent(model, container) {
|
599 |
+
eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
|
600 |
+
var settings = window._TEMP;
|
601 |
+
if (settings) {
|
602 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
603 |
+
var element = $(this);
|
604 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
605 |
+
element.text(settings[element.attr('rgw-data-key')]);
|
606 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
607 |
+
});
|
608 |
+
}
|
609 |
+
}
|
610 |
+
</script>
|
611 |
+
<style>
|
612 |
+
/* FOR INLINE WIDGET */
|
613 |
+
.rgw-overlay {
|
614 |
+
display: none !important;
|
615 |
+
}
|
616 |
+
.rgw-content-frame {
|
617 |
+
left: 0 !important;
|
618 |
+
top: 0 !important;
|
619 |
+
position: relative !important;
|
620 |
+
margin: 0 auto !important;
|
621 |
+
border: solid 1px #cccccc;
|
622 |
+
}
|
623 |
+
.rgw-preview-warning {
|
624 |
+
display: none !important;
|
625 |
+
}
|
626 |
+
.rgw-content {
|
627 |
+
position: relative !important;
|
628 |
+
}
|
629 |
+
</style>
|
extension/readygraph/invitation-email-not-used.php
ADDED
@@ -0,0 +1,550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration dashboard.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package ReadyGraph
|
9 |
+
* @author dan@readygraph.com
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://www.readygraph.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
+
$app_id = get_option('readygraph_application_id');
|
17 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
19 |
+
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
+
$app_id = get_option('readygraph_application_id');
|
22 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
24 |
+
$dir = plugin_dir_path( __FILE__ );
|
25 |
+
s2_rrmdir($dir);
|
26 |
+
}
|
27 |
+
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
global $main_plugin_title;
|
31 |
+
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
32 |
+
//redirect to main page
|
33 |
+
$current_url = explode("&", $_SERVER['REQUEST_URI']);
|
34 |
+
echo '<script>window.location.replace("'.$current_url[0].'");</script>';
|
35 |
+
}
|
36 |
+
else {
|
37 |
+
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
38 |
+
if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
|
39 |
+
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
40 |
+
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
41 |
+
if (isset($_POST["inviteemaileditor"])) update_option('readygraph_invite_email', mysql_real_escape_string( $_POST["inviteemaileditor"] ));
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
|
45 |
+
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
46 |
+
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
47 |
+
<form method="post" id="myForm">
|
48 |
+
<input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
|
49 |
+
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
50 |
+
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
51 |
+
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
52 |
+
|
53 |
+
<div class="authenticate" style="display: none;">
|
54 |
+
<div class="wrap1" style="min-height: 600px;">
|
55 |
+
|
56 |
+
<div id="icon-plugins" class="icon32"></div>
|
57 |
+
<h2>We've enhanced <?php echo $main_plugin_title ?> with ReadyGraph's User Growth Engine</h2>
|
58 |
+
|
59 |
+
<p style="display:none;color:red;" id="error"></p>
|
60 |
+
<div class="register-left">
|
61 |
+
<div class="alert" style="margin: 0px auto; padding: 15px; text-align: center;">
|
62 |
+
<h3>Activate ReadyGraph to get more traffic to your site</h3>
|
63 |
+
<!-- <h3 style="margin-top: 0px; font-weight: 300;"><?php //echo $main_plugin_title ?>, Now with ReadyGraph</h3> -->
|
64 |
+
<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>
|
65 |
+
<!--<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>-->
|
66 |
+
<p>Readygraph adds more ways to connect to your users. </p>
|
67 |
+
<p style="text-align: left; padding: 0 20px;">
|
68 |
+
- Get more traffic<br>
|
69 |
+
- Send automatic email digests of all your site posts<br>
|
70 |
+
- Get better deliverablility<br>
|
71 |
+
- Track performace and user activity
|
72 |
+
</p>
|
73 |
+
</div>
|
74 |
+
|
75 |
+
</div>
|
76 |
+
|
77 |
+
<div class="register-right">
|
78 |
+
<div class="form-wrap alert" style="font-size:12px;">
|
79 |
+
<p><h3>ReadyGraph grows your site</h3></p>
|
80 |
+
<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>
|
81 |
+
<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 />
|
82 |
+
If you have questions or concerns contact us anytime at <a href="mailto:info@readygraph.com" target="_blank">info@readygraph.com</a></p>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
<div class="authenticating" style="display: none;">
|
88 |
+
<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;">
|
89 |
+
<h3 style="margin-top: 0px; font-weight: 300;"><?php echo $main_plugin_title ?>, Now with ReadyGraph</h3>
|
90 |
+
<h4 style="padding: 50px 0; line-height: 42px;">Retrieving Your Account..</h4>
|
91 |
+
<p>Activate Readygraph features to optimize <?php echo $main_plugin_title ?> functionality. Signup For These Benefits:</p>
|
92 |
+
<p style="text-align: left; padding: 0 20px;">
|
93 |
+
- Grow your subscribers faster<br>
|
94 |
+
- Engage users with automated email updates<br>
|
95 |
+
- Enhanced email deliverablility<br>
|
96 |
+
- Track performace with user-activity analytics
|
97 |
+
</p>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
<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>
|
101 |
+
<div class="authenticated" style="display: none;">
|
102 |
+
<div style="background-color: #1b75bb; min-width: 90%; height: 50px;">
|
103 |
+
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
104 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
105 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
106 |
+
<span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
|
107 |
+
</button>
|
108 |
+
<ul class="dropdown-menu">
|
109 |
+
<li><a class="change-account" href="#">Change Account</a></li>
|
110 |
+
<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>
|
111 |
+
<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>
|
112 |
+
</ul>
|
113 |
+
</div>
|
114 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
115 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
116 |
+
<span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
|
117 |
+
</button>
|
118 |
+
<ul class="dropdown-menu">
|
119 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
|
120 |
+
</ul>
|
121 |
+
</div>
|
122 |
+
<div style="clear: both;"></div>
|
123 |
+
</div>
|
124 |
+
<!-- write menu code-->
|
125 |
+
<div class="readygraph-menu" style="margin-right: 1%;height:165px;">
|
126 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
127 |
+
<ul>
|
128 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
129 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
130 |
+
<li><a href="#"></a></li>
|
131 |
+
</ul>
|
132 |
+
</div>
|
133 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
134 |
+
<ul>
|
135 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
136 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
137 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
138 |
+
</ul>
|
139 |
+
</div>
|
140 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
141 |
+
<ul>
|
142 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
143 |
+
<li><a href="#">Social Followers</a></li>
|
144 |
+
<li><a href="#">Feedback Survey</a></li>
|
145 |
+
</ul>
|
146 |
+
</div>
|
147 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
148 |
+
<ul>
|
149 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
150 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
151 |
+
|
152 |
+
</ul>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
+
<div><div><a href="#">Email</a> > Invitation Email</div>
|
156 |
+
<h3 style="font-weight: normal; text-align: center;">This email gets sent when users invite each other to your site</h3>
|
157 |
+
<div style="margin: 0 5%;"><?php /**
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Basic syntax
|
161 |
+
*/
|
162 |
+
$content = get_option('readygraph_invite_email');
|
163 |
+
$editor_id = 'inviteemaileditor';
|
164 |
+
$settings = array(
|
165 |
+
'textarea_rows' => 15,
|
166 |
+
'media_buttons' => false,
|
167 |
+
'teeny' => true,
|
168 |
+
'quicktags' => false
|
169 |
+
);
|
170 |
+
wp_editor( $content, $editor_id, $settings );
|
171 |
+
?>
|
172 |
+
</div>
|
173 |
+
<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>
|
174 |
+
<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>
|
175 |
+
<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>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
</form>
|
180 |
+
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
181 |
+
<script type="text/javascript" charset="utf-8">
|
182 |
+
var $ = jQuery;
|
183 |
+
$(function () {
|
184 |
+
var settings =
|
185 |
+
{
|
186 |
+
'host': "www.readygraph.com"
|
187 |
+
, 'clientId': "9838eb84c6da2fc44ab9"
|
188 |
+
};
|
189 |
+
|
190 |
+
var authHost = "https://" + settings.host;
|
191 |
+
var resourceHost = "https://" + settings.host;
|
192 |
+
|
193 |
+
// OAuth 2.0 Popup
|
194 |
+
//
|
195 |
+
var popupWindow=null;
|
196 |
+
function openPopup(url)
|
197 |
+
{
|
198 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
199 |
+
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);
|
200 |
+
}
|
201 |
+
function parent_disable() {
|
202 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
203 |
+
}
|
204 |
+
|
205 |
+
$("a.connect").click(function() {
|
206 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
207 |
+
openPopup(url);
|
208 |
+
$(document.body).bind('focus', parent_disable);
|
209 |
+
$(document.body).bind('click', parent_disable);
|
210 |
+
});
|
211 |
+
$(".change-account").click(function() {
|
212 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
213 |
+
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
214 |
+
openPopup(logout);
|
215 |
+
$(document.body).bind('focus', parent_disable);
|
216 |
+
$(document.body).bind('click', parent_disable);
|
217 |
+
});
|
218 |
+
|
219 |
+
// User Interface
|
220 |
+
//
|
221 |
+
$('.template').click(function() {
|
222 |
+
$('#preview').attr('src', $(this).find('img').attr('src'));
|
223 |
+
});
|
224 |
+
|
225 |
+
// Manage OAuth 2.0 Redirect
|
226 |
+
//
|
227 |
+
var extractCode = function(hash) {
|
228 |
+
var match = hash.match(/code=(\w+)/);
|
229 |
+
return !!match && match[1];
|
230 |
+
};
|
231 |
+
var extractToken = function(hash) {
|
232 |
+
var match = hash.match(/access_token=(\w+)/);
|
233 |
+
return !!match && match[1];
|
234 |
+
};
|
235 |
+
var extractError = function(hash) {
|
236 |
+
var match = hash.match(/error=(\w+)/);
|
237 |
+
return !!match && match[1];
|
238 |
+
};
|
239 |
+
|
240 |
+
var code = extractCode(window.location.href);
|
241 |
+
if (extractError(window.location.href) == 'access_denied') {
|
242 |
+
window.close();
|
243 |
+
}
|
244 |
+
else if(code) {
|
245 |
+
try { window.opener.setCode(code); }
|
246 |
+
catch(ex) { }
|
247 |
+
window.close();
|
248 |
+
}
|
249 |
+
else {
|
250 |
+
$('.rgw-fb-login-button-iframe').hide();
|
251 |
+
$('div.authenticate').show();
|
252 |
+
|
253 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
254 |
+
$('.rgw-fb-login-button-iframe').show();
|
255 |
+
$('div.authenticate').hide();
|
256 |
+
$('div.authenticating').hide();
|
257 |
+
$('div.authenticated').show();
|
258 |
+
|
259 |
+
$('.email-address').text($('[name="readygraph_email"]').val());
|
260 |
+
|
261 |
+
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
262 |
+
$('.delay').val($('[name="readygraph_delay"]').val());
|
263 |
+
$('.sidebar').val($('[name="readygraph_enable_sidebar"]').val());
|
264 |
+
$('.notification').val($('[name="readygraph_enable_notification"]').val());
|
265 |
+
$('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
|
266 |
+
$('.branding').val($('[name="readygraph_enable_branding"]').val());
|
267 |
+
$('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
|
268 |
+
$('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
|
269 |
+
$('.popup_template').val($('[name="readygraph_popup_template"]').val());
|
270 |
+
|
271 |
+
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
272 |
+
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
273 |
+
|
274 |
+
//$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
|
275 |
+
//$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
|
276 |
+
|
277 |
+
$('.result').text('...');
|
278 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
279 |
+
$.ajax({
|
280 |
+
url: resourceHost + '/api/v1/insight_info'
|
281 |
+
, beforeSend: function (xhr) {
|
282 |
+
xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
|
283 |
+
xhr.setRequestHeader('Accept', "application/json");
|
284 |
+
}
|
285 |
+
, method: 'POST'
|
286 |
+
, success: function (response) {
|
287 |
+
if (response.data) {
|
288 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
289 |
+
} else {
|
290 |
+
$('.result').text('Insight');
|
291 |
+
}
|
292 |
+
}
|
293 |
+
, error: function (response) {
|
294 |
+
refresh_access_token();
|
295 |
+
}
|
296 |
+
});
|
297 |
+
}
|
298 |
+
}
|
299 |
+
}
|
300 |
+
|
301 |
+
// Manage OAuth 2.0 Results
|
302 |
+
//
|
303 |
+
function refresh_access_token() {
|
304 |
+
var refresh_token = $('[name="readygraph_refresh_token"]').val();
|
305 |
+
if (refresh_token) {
|
306 |
+
$('div.authenticate').hide();
|
307 |
+
$('div.authenticating').show();
|
308 |
+
$('div.authenticated').hide();
|
309 |
+
|
310 |
+
$.ajax({
|
311 |
+
url: resourceHost + '/oauth/access_token'
|
312 |
+
, data: {
|
313 |
+
grant_type: 'refresh_token',
|
314 |
+
refresh_token: $('[name="readygraph_refresh_token"]').val(),
|
315 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
316 |
+
client_id: settings.clientId
|
317 |
+
}
|
318 |
+
, method: 'POST'
|
319 |
+
, success: function (response) {
|
320 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
321 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
322 |
+
window.setAccessToken(response.access_token);
|
323 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
324 |
+
}
|
325 |
+
, error: function (response) {
|
326 |
+
alert('We couldn\'t authenticate your account. Please check your internet connection.');
|
327 |
+
$('div.authenticate').show();
|
328 |
+
$('div.authenticating').hide();
|
329 |
+
$('div.authenticated').hide();
|
330 |
+
}
|
331 |
+
});
|
332 |
+
}
|
333 |
+
}
|
334 |
+
window.setCode = function(code) {
|
335 |
+
$('.rgw-fb-login-button-iframe').hide();
|
336 |
+
$('div.authenticate').hide();
|
337 |
+
$('div.authenticating').show();
|
338 |
+
$('div.authenticated').hide();
|
339 |
+
|
340 |
+
$.ajax({
|
341 |
+
url: resourceHost + '/oauth/access_token'
|
342 |
+
, data: {
|
343 |
+
grant_type: 'authorization_code',
|
344 |
+
code: code,
|
345 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
346 |
+
client_id: settings.clientId
|
347 |
+
}
|
348 |
+
, method: 'POST'
|
349 |
+
, success: function (response) {
|
350 |
+
if (response) {
|
351 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
352 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
353 |
+
window.setAccessToken(response.access_token);
|
354 |
+
} else {
|
355 |
+
$('div.authenticating').hide();
|
356 |
+
$('div.authenticate').show();
|
357 |
+
}
|
358 |
+
}
|
359 |
+
});
|
360 |
+
}
|
361 |
+
window.setAccessToken = function(token) {
|
362 |
+
$('.rgw-fb-login-button-iframe').hide();
|
363 |
+
$('div.authenticate').hide();
|
364 |
+
$('div.authenticating').show();
|
365 |
+
$('div.authenticated').hide();
|
366 |
+
|
367 |
+
$.ajax({
|
368 |
+
url: resourceHost + '/api/v1/account_info'
|
369 |
+
, beforeSend: function (xhr) {
|
370 |
+
xhr.setRequestHeader('Authorization', "Bearer " + token);
|
371 |
+
xhr.setRequestHeader('Accept', "application/json");
|
372 |
+
}
|
373 |
+
, method: 'POST'
|
374 |
+
, success: function (response) {
|
375 |
+
if (response.data) {
|
376 |
+
$('[name="readygraph_access_token"]').val(token);
|
377 |
+
$('[name="readygraph_email"]').val(response.data.email);
|
378 |
+
$('[name="readygraph_application_id"]').val(response.data.application_id);
|
379 |
+
$('#myForm')[0].submit();
|
380 |
+
} else {
|
381 |
+
$('div.authenticating').hide();
|
382 |
+
$('div.authenticate').show();
|
383 |
+
$('.rgw-fb-login-button-iframe').hide();
|
384 |
+
}
|
385 |
+
}
|
386 |
+
});
|
387 |
+
}
|
388 |
+
});
|
389 |
+
</script>
|
390 |
+
<script>
|
391 |
+
window.setup = false;
|
392 |
+
window.refresh_readygraph = function() {};
|
393 |
+
window.setup_readygraph = function(app_id) {
|
394 |
+
if (window.setup) {
|
395 |
+
window.refresh_readygraph();
|
396 |
+
return;
|
397 |
+
}
|
398 |
+
window.setup = true;
|
399 |
+
readygraph.setup({
|
400 |
+
applicationId: app_id,
|
401 |
+
isPreview: true,
|
402 |
+
enableLoginWall: false,
|
403 |
+
enableDistraction: false,
|
404 |
+
enableAutoLogin: false,
|
405 |
+
enableSidebar: false,
|
406 |
+
enableNotification: false,
|
407 |
+
enableInvite: false,
|
408 |
+
enableOpenGraph: false,
|
409 |
+
enableRgSeo: false
|
410 |
+
});
|
411 |
+
readygraph.ready(function() {
|
412 |
+
readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
|
413 |
+
var $ = readygraph.framework.jQuery;
|
414 |
+
$.cookie('RGAuth', null);
|
415 |
+
readygraph.framework.facebook.logout(function() {
|
416 |
+
readygraph.framework.require(['invite'], function() {
|
417 |
+
var VIEW_TYPE = {
|
418 |
+
LOADING: 0,
|
419 |
+
LOGIN_REQUIRE: 1,
|
420 |
+
PERMISSION_REQUIRE: 2,
|
421 |
+
DEFAULT: 3,
|
422 |
+
LOGIN_WITH_EMAIL: 4,
|
423 |
+
SIGNUP_WITH_EMAIL: 5,
|
424 |
+
IMPORT_WITH_EMAIL: 6,
|
425 |
+
FINISH: 10
|
426 |
+
};
|
427 |
+
|
428 |
+
var auth = new readygraph.framework.ui.AuthModel({
|
429 |
+
dialog: true,
|
430 |
+
'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
|
431 |
+
});
|
432 |
+
$('.rg-preview-widget').html('');
|
433 |
+
$('.rg-preview-widget').append(auth.lightbox.view.$el);
|
434 |
+
$('.rgw-content').attr('style', 'position: relative !important;');
|
435 |
+
|
436 |
+
var view = VIEW_TYPE.LOGIN_REQUIRE;
|
437 |
+
auth.on('switch', function() {
|
438 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
439 |
+
else auth.view.render();
|
440 |
+
if (view == VIEW_TYPE.DEFAULT) {
|
441 |
+
auth.view.$el.find('.rgw-invite-view').showAndAnimate();
|
442 |
+
auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
|
443 |
+
auth.view.$el.commitTransition();
|
444 |
+
}
|
445 |
+
});
|
446 |
+
auth.view.switchView(view);
|
447 |
+
|
448 |
+
$(window).scroll(function() {
|
449 |
+
$(window).trigger('rgw-invalidate');
|
450 |
+
});
|
451 |
+
$('.rg-preview-widget, .content-warp').scroll(function() {
|
452 |
+
$(window).trigger('rgw-invalidate');
|
453 |
+
});
|
454 |
+
$(window).trigger('rgw-invalidate');
|
455 |
+
|
456 |
+
$('.rg-vertical-tab').click(function() {
|
457 |
+
saveContent(auth, $('.rg-preview-widget-container'), true);
|
458 |
+
|
459 |
+
$('.rg-vertical-tab').removeClass('active');
|
460 |
+
$(this).addClass('active');
|
461 |
+
view = VIEW_TYPE[$(this).attr('tab')];
|
462 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
463 |
+
|
464 |
+
$('.rg-preview-widget, .content-warp').scrollTop(10000);
|
465 |
+
});
|
466 |
+
|
467 |
+
enableContentEditable(auth, $('.rg-preview-widget-container'));
|
468 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
469 |
+
|
470 |
+
$('.save').click(function() {
|
471 |
+
$('.save').css('opacity', 0.4);
|
472 |
+
saveContent(auth, $('.rg-preview-widget-container'), false);
|
473 |
+
});
|
474 |
+
|
475 |
+
window.refresh_readygraph = function() {
|
476 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
477 |
+
}
|
478 |
+
});
|
479 |
+
});
|
480 |
+
});
|
481 |
+
});
|
482 |
+
}
|
483 |
+
function enableContentEditable(model, container) {
|
484 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
485 |
+
var element = $(this);
|
486 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
487 |
+
|
488 |
+
if (element.attr('editing') != null) return;
|
489 |
+
container.find('.special-button-container button').attr('disabled', 'disabled');
|
490 |
+
element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
|
491 |
+
element.attr('editing', '1');
|
492 |
+
element.css({
|
493 |
+
'border': '2px dashed orange',
|
494 |
+
'position': 'relative',
|
495 |
+
'top': '-2px',
|
496 |
+
'margin-bottom': '-4px',
|
497 |
+
'background-color': '#FAFAC5'
|
498 |
+
});
|
499 |
+
element.attr('contenteditable', true);
|
500 |
+
element.bind('paste', function(e) {
|
501 |
+
e.preventDefault();
|
502 |
+
});
|
503 |
+
element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
|
504 |
+
});
|
505 |
+
}
|
506 |
+
function saveContent(model, container, fake) {
|
507 |
+
var settings = {};
|
508 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
509 |
+
var element = $(this);
|
510 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
511 |
+
settings[element.attr('rgw-data-key')] = element.text();
|
512 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
513 |
+
});
|
514 |
+
if (!fake) {
|
515 |
+
$('input[name="readygraph_settings"]').val(JSON.stringify(settings));
|
516 |
+
$('#myForm')[0].submit();
|
517 |
+
}
|
518 |
+
}
|
519 |
+
function restoreContent(model, container) {
|
520 |
+
eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
|
521 |
+
var settings = window._TEMP;
|
522 |
+
if (settings) {
|
523 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
524 |
+
var element = $(this);
|
525 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
526 |
+
element.text(settings[element.attr('rgw-data-key')]);
|
527 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
528 |
+
});
|
529 |
+
}
|
530 |
+
}
|
531 |
+
</script>
|
532 |
+
<style>
|
533 |
+
/* FOR INLINE WIDGET */
|
534 |
+
.rgw-overlay {
|
535 |
+
display: none !important;
|
536 |
+
}
|
537 |
+
.rgw-content-frame {
|
538 |
+
left: 0 !important;
|
539 |
+
top: 0 !important;
|
540 |
+
position: relative !important;
|
541 |
+
margin: 0 auto !important;
|
542 |
+
border: solid 1px #cccccc;
|
543 |
+
}
|
544 |
+
.rgw-preview-warning {
|
545 |
+
display: none !important;
|
546 |
+
}
|
547 |
+
.rgw-content {
|
548 |
+
position: relative !important;
|
549 |
+
}
|
550 |
+
</style>
|
extension/readygraph/signup-popup.php
ADDED
@@ -0,0 +1,603 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration dashboard.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package ReadyGraph
|
9 |
+
* @author dan@readygraph.com
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://www.readygraph.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
+
$app_id = get_option('readygraph_application_id');
|
17 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
19 |
+
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
+
$app_id = get_option('readygraph_application_id');
|
22 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
24 |
+
$dir = plugin_dir_path( __FILE__ );
|
25 |
+
s2_rrmdir($dir);
|
26 |
+
}
|
27 |
+
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
global $main_plugin_title;
|
31 |
+
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
32 |
+
//redirect to main page
|
33 |
+
$current_url = explode("&", $_SERVER['REQUEST_URI']);
|
34 |
+
echo '<script>window.location.replace("'.$current_url[0].'");</script>';
|
35 |
+
}
|
36 |
+
else {
|
37 |
+
if(isset($_GET["source"]) && $_GET["source"] == "basic-settings"){
|
38 |
+
|
39 |
+
}
|
40 |
+
else{
|
41 |
+
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
42 |
+
if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
|
43 |
+
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
44 |
+
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
45 |
+
if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
|
46 |
+
if (isset($_POST["readygraph_delay"])) {
|
47 |
+
update_option('readygraph_delay', $_POST["delay"]);
|
48 |
+
$app_id = get_option('readygraph_application_id');
|
49 |
+
if ($_POST["delay"] >= 20000) wp_remote_get( "http://readygraph.com/api/v1/tracking?event=popup_delay&app_id=$app_id" );
|
50 |
+
}
|
51 |
+
if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', $_POST["notification"]);
|
52 |
+
if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', $_POST["selectAll"]);
|
53 |
+
if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', $_POST["branding"]);
|
54 |
+
if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', $_POST["blog_updates"]);
|
55 |
+
if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', $_POST["real_time_post_update"]);
|
56 |
+
if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', $_POST["popup_template"]);
|
57 |
+
}
|
58 |
+
|
59 |
+
}
|
60 |
+
if (get_option('readygraph_enable_branding', '') == 'false') {
|
61 |
+
?>
|
62 |
+
<style>
|
63 |
+
/* FOR INLINE WIDGET */
|
64 |
+
.rgw-text {
|
65 |
+
display: none !important;
|
66 |
+
}
|
67 |
+
</style>
|
68 |
+
<?php } ?>
|
69 |
+
|
70 |
+
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
71 |
+
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
72 |
+
<form method="post" id="myForm">
|
73 |
+
<input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
|
74 |
+
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
75 |
+
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
76 |
+
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
77 |
+
<input type="hidden" name="readygraph_settings" value="<?php echo htmlentities(str_replace("\\\"", "\"", get_option('readygraph_settings', '{}'))) ?>">
|
78 |
+
<input type="hidden" name="readygraph_delay" value="<?php echo get_option('readygraph_delay', '5000') ?>">
|
79 |
+
<input type="hidden" name="readygraph_enable_notification" value="<?php echo get_option('readygraph_enable_notification', 'true') ?>">
|
80 |
+
<input type="hidden" name="readygraph_auto_select_all" value="<?php echo get_option('readygraph_auto_select_all', 'true') ?>">
|
81 |
+
<input type="hidden" name="readygraph_enable_branding" value="<?php echo get_option('readygraph_enable_branding', 'false') ?>">
|
82 |
+
<input type="hidden" name="readygraph_send_blog_updates" value="<?php echo get_option('readygraph_send_blog_updates', 'true') ?>">
|
83 |
+
<input type="hidden" name="readygraph_send_real_time_post_updates" value="<?php echo get_option('readygraph_send_real_time_post_updates', 'false') ?>">
|
84 |
+
<input type="hidden" name="readygraph_popup_template" value="<?php echo get_option('readygraph_popup_template', 'default-template') ?>">
|
85 |
+
|
86 |
+
|
87 |
+
<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>
|
88 |
+
<div class="authenticated" style="display: none;">
|
89 |
+
<div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
|
90 |
+
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
91 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
92 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
93 |
+
<span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
|
94 |
+
</button>
|
95 |
+
<ul class="dropdown-menu">
|
96 |
+
<li><a class="change-account" href="#">Change Account</a></li>
|
97 |
+
<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>
|
98 |
+
<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>
|
99 |
+
</ul>
|
100 |
+
</div>
|
101 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
102 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
103 |
+
<span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
|
104 |
+
</button>
|
105 |
+
<ul class="dropdown-menu">
|
106 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
|
107 |
+
</ul>
|
108 |
+
</div>
|
109 |
+
<div style="clear: both;"></div>
|
110 |
+
</div>
|
111 |
+
<!-- write menu code-->
|
112 |
+
<div class="readygraph-menu">
|
113 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
114 |
+
<ul>
|
115 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
116 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
117 |
+
<li><a href="#"></a></li>
|
118 |
+
</ul>
|
119 |
+
</div>
|
120 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
121 |
+
<ul>
|
122 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
123 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
124 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
125 |
+
</ul>
|
126 |
+
</div>
|
127 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
128 |
+
<ul>
|
129 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
130 |
+
<li><a href="#">Social Followers</a></li>
|
131 |
+
<li><a href="#">Feedback Survey</a></li>
|
132 |
+
</ul>
|
133 |
+
</div>
|
134 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
135 |
+
<ul>
|
136 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
137 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
138 |
+
|
139 |
+
</ul>
|
140 |
+
</div>
|
141 |
+
<div class="menu-tabs" style="float:right"><h4> </h4>
|
142 |
+
<p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
|
143 |
+
<p>
|
144 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
|
145 |
+
|
146 |
+
</ul>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
<div><div><a href="#">Grow Users</a> > Signup Popup</div>
|
150 |
+
<h3 style="font-weight: normal; text-align: center;">Increase signups with the Intelligent Signup Popup</h3>
|
151 |
+
<h4 style="font-weight: normal; text-align: center;">Users instantly added to your list - One Click Signup - Automatically targets engaged users</h4>
|
152 |
+
<div style="width: 90%; margin: 0 auto;">
|
153 |
+
<div class="rg-vertical-tab-body-container" style="width: 50%; text-align: center;float: left">
|
154 |
+
<div class="btn-group" data-toggle="buttons" style="padding: 20px 0;">
|
155 |
+
<label class="btn btn-primary active rg-vertical-tab" tab="LOGIN_REQUIRE">
|
156 |
+
<input type="radio" name="options" id="option1"> Facebook Connect
|
157 |
+
</label>
|
158 |
+
<label class="btn btn-primary rg-vertical-tab" tab="LOGIN_WITH_EMAIL">
|
159 |
+
<input type="radio" name="options" id="option2"> Email Sign In
|
160 |
+
</label>
|
161 |
+
<label class="btn btn-primary rg-vertical-tab" tab="IMPORT_WITH_EMAIL">
|
162 |
+
<input type="radio" name="options" id="option3"> Contact Importer
|
163 |
+
</label>
|
164 |
+
<label class="btn btn-primary rg-vertical-tab" tab="DEFAULT">
|
165 |
+
<input type="radio" name="options" id="option4"> Invitation Page
|
166 |
+
</label>
|
167 |
+
<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>
|
168 |
+
</div>
|
169 |
+
<div class="rg-preview-widget" style=""></div>
|
170 |
+
</div>
|
171 |
+
<div style="width:50%; border-left: solid 1px #cccccc; text-align: left;padding-left: 25px;float:right">
|
172 |
+
<div style="padding: 20px 0;">
|
173 |
+
<p>Popup Templates:
|
174 |
+
<select class="popup_template" name="popup_template" class="form-control">
|
175 |
+
<option value="default-template">Default Template</option>
|
176 |
+
<option value="red-template">Red Template</option>
|
177 |
+
<option value="blue-template">Blue Template</option>
|
178 |
+
<option value="black-template">Black Template</option>
|
179 |
+
<option value="gray-template">Gray Template</option>
|
180 |
+
<option value="green-template">Green Template</option>
|
181 |
+
<option value="yellow-template">Yellow Template</option>
|
182 |
+
<option value="custom-template">Custom Template</option>
|
183 |
+
</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 />
|
184 |
+
<p>Signup Popup Delay:
|
185 |
+
<select class="delay" name="delay" class="form-control">
|
186 |
+
<option value="0">0 seconds</option>
|
187 |
+
<option value="5000">5 seconds</option>
|
188 |
+
<option value="10000">10 seconds</option>
|
189 |
+
<option value="15000">15 seconds</option>
|
190 |
+
<option value="20000">20 seconds</option>
|
191 |
+
<option value="30000">30 seconds</option>
|
192 |
+
<option value="60000">1 minute</option>
|
193 |
+
<option value="120000">2 minutes</option>
|
194 |
+
<option value="180000">3 minutes</option>
|
195 |
+
<option value="240000">4 minutes</option>
|
196 |
+
<option value="300000">5 minutes</option>
|
197 |
+
<option value="600000">10 minutes</option>
|
198 |
+
<option value="900000">15 minutes</option>
|
199 |
+
<option value="1200000">20 minutes</option>
|
200 |
+
</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 />
|
201 |
+
|
202 |
+
<p>Enable Lower Right Notification:
|
203 |
+
<select class="notification" name="notification" class="form-control">
|
204 |
+
<option value="true">YES</option>
|
205 |
+
<option value="false">NO</option>
|
206 |
+
</select></p><br />
|
207 |
+
<p>Pre-checked Invite Contact:
|
208 |
+
<select class="selectAll" name="selectAll" class="form-control">
|
209 |
+
<option value="true">YES</option>
|
210 |
+
<option value="false">NO</option>
|
211 |
+
</select></p><br />
|
212 |
+
<p>Show Powered by Readygraph on popup:
|
213 |
+
<select class="branding" name="branding" class="form-control">
|
214 |
+
<option value="true">YES</option>
|
215 |
+
<option value="false">NO</option>
|
216 |
+
</select></p><br />
|
217 |
+
<p>Include blog updates in daily/weekly email digest of Readygraph:
|
218 |
+
<select class="blog_updates" name="blog_updates" class="form-control">
|
219 |
+
<option value="true">YES</option>
|
220 |
+
<option value="false">NO</option>
|
221 |
+
</select></p><br />
|
222 |
+
<p>Send Real Time Post Updates to your subscribers:
|
223 |
+
<select class="real_time_post_update" name="real_time_post_update" class="form-control">
|
224 |
+
<option value="true">YES</option>
|
225 |
+
<option value="false">NO</option>
|
226 |
+
</select></p><br />
|
227 |
+
|
228 |
+
|
229 |
+
<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 />
|
230 |
+
</div>
|
231 |
+
<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 } ?>
|
232 |
+
<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>
|
233 |
+
<?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 } ?>
|
234 |
+
</div>
|
235 |
+
</div>
|
236 |
+
</div>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
</form>
|
240 |
+
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
241 |
+
<script type="text/javascript" charset="utf-8">
|
242 |
+
var $ = jQuery;
|
243 |
+
$(function () {
|
244 |
+
var settings =
|
245 |
+
{
|
246 |
+
'host': "www.readygraph.com"
|
247 |
+
, 'clientId': "9838eb84c6da2fc44ab9"
|
248 |
+
};
|
249 |
+
|
250 |
+
var authHost = "https://" + settings.host;
|
251 |
+
var resourceHost = "https://" + settings.host;
|
252 |
+
|
253 |
+
// OAuth 2.0 Popup
|
254 |
+
//
|
255 |
+
var popupWindow=null;
|
256 |
+
function openPopup(url)
|
257 |
+
{
|
258 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
259 |
+
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);
|
260 |
+
}
|
261 |
+
function parent_disable() {
|
262 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
263 |
+
}
|
264 |
+
|
265 |
+
$("a.connect").click(function() {
|
266 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
267 |
+
openPopup(url);
|
268 |
+
$(document.body).bind('focus', parent_disable);
|
269 |
+
$(document.body).bind('click', parent_disable);
|
270 |
+
});
|
271 |
+
$(".change-account").click(function() {
|
272 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
273 |
+
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
274 |
+
openPopup(logout);
|
275 |
+
$(document.body).bind('focus', parent_disable);
|
276 |
+
$(document.body).bind('click', parent_disable);
|
277 |
+
});
|
278 |
+
|
279 |
+
// User Interface
|
280 |
+
//
|
281 |
+
$('.template').click(function() {
|
282 |
+
$('#preview').attr('src', $(this).find('img').attr('src'));
|
283 |
+
});
|
284 |
+
|
285 |
+
// Manage OAuth 2.0 Redirect
|
286 |
+
//
|
287 |
+
var extractCode = function(hash) {
|
288 |
+
var match = hash.match(/code=(\w+)/);
|
289 |
+
return !!match && match[1];
|
290 |
+
};
|
291 |
+
var extractToken = function(hash) {
|
292 |
+
var match = hash.match(/access_token=(\w+)/);
|
293 |
+
return !!match && match[1];
|
294 |
+
};
|
295 |
+
var extractError = function(hash) {
|
296 |
+
var match = hash.match(/error=(\w+)/);
|
297 |
+
return !!match && match[1];
|
298 |
+
};
|
299 |
+
|
300 |
+
var code = extractCode(window.location.href);
|
301 |
+
if (extractError(window.location.href) == 'access_denied') {
|
302 |
+
window.close();
|
303 |
+
}
|
304 |
+
else if(code) {
|
305 |
+
try { window.opener.setCode(code); }
|
306 |
+
catch(ex) { }
|
307 |
+
window.close();
|
308 |
+
}
|
309 |
+
else {
|
310 |
+
$('.rgw-fb-login-button-iframe').hide();
|
311 |
+
$('div.authenticate').show();
|
312 |
+
|
313 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
314 |
+
$('.rgw-fb-login-button-iframe').show();
|
315 |
+
$('div.authenticate').hide();
|
316 |
+
$('div.authenticating').hide();
|
317 |
+
$('div.authenticated').show();
|
318 |
+
|
319 |
+
$('.email-address').text($('[name="readygraph_email"]').val());
|
320 |
+
|
321 |
+
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
322 |
+
$('.delay').val($('[name="readygraph_delay"]').val());
|
323 |
+
$('.notification').val($('[name="readygraph_enable_notification"]').val());
|
324 |
+
$('.selectAll').val($('[name="readygraph_auto_select_all"]').val());
|
325 |
+
$('.branding').val($('[name="readygraph_enable_branding"]').val());
|
326 |
+
$('.blog_updates').val($('[name="readygraph_send_blog_updates"]').val());
|
327 |
+
$('.real_time_post_update').val($('[name="readygraph_send_real_time_post_updates"]').val());
|
328 |
+
$('.popup_template').val($('[name="readygraph_popup_template"]').val());
|
329 |
+
|
330 |
+
$('.result').text('...');
|
331 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
332 |
+
$.ajax({
|
333 |
+
url: resourceHost + '/api/v1/insight_info'
|
334 |
+
, beforeSend: function (xhr) {
|
335 |
+
xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
|
336 |
+
xhr.setRequestHeader('Accept', "application/json");
|
337 |
+
}
|
338 |
+
, method: 'POST'
|
339 |
+
, success: function (response) {
|
340 |
+
if (response.data) {
|
341 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
342 |
+
} else {
|
343 |
+
$('.result').text('Insight');
|
344 |
+
}
|
345 |
+
}
|
346 |
+
, error: function (response) {
|
347 |
+
refresh_access_token();
|
348 |
+
}
|
349 |
+
});
|
350 |
+
}
|
351 |
+
}
|
352 |
+
}
|
353 |
+
|
354 |
+
// Manage OAuth 2.0 Results
|
355 |
+
|
356 |
+
function refresh_access_token() {
|
357 |
+
var refresh_token = $('[name="readygraph_refresh_token"]').val();
|
358 |
+
if (refresh_token) {
|
359 |
+
$('div.authenticate').hide();
|
360 |
+
$('div.authenticating').show();
|
361 |
+
$('div.authenticated').hide();
|
362 |
+
|
363 |
+
$.ajax({
|
364 |
+
url: resourceHost + '/oauth/access_token'
|
365 |
+
, data: {
|
366 |
+
grant_type: 'refresh_token',
|
367 |
+
refresh_token: $('[name="readygraph_refresh_token"]').val(),
|
368 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
369 |
+
client_id: settings.clientId
|
370 |
+
}
|
371 |
+
, method: 'POST'
|
372 |
+
, success: function (response) {
|
373 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
374 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
375 |
+
window.setAccessToken(response.access_token);
|
376 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
377 |
+
}
|
378 |
+
, error: function (response) {
|
379 |
+
alert('We couldn\'t authenticate your account. Please check your internet connection.');
|
380 |
+
$('div.authenticate').show();
|
381 |
+
$('div.authenticating').hide();
|
382 |
+
$('div.authenticated').hide();
|
383 |
+
}
|
384 |
+
});
|
385 |
+
}
|
386 |
+
}
|
387 |
+
window.setCode = function(code) {
|
388 |
+
$('.rgw-fb-login-button-iframe').hide();
|
389 |
+
$('div.authenticate').hide();
|
390 |
+
$('div.authenticating').show();
|
391 |
+
$('div.authenticated').hide();
|
392 |
+
|
393 |
+
$.ajax({
|
394 |
+
url: resourceHost + '/oauth/access_token'
|
395 |
+
, data: {
|
396 |
+
grant_type: 'authorization_code',
|
397 |
+
code: code,
|
398 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
399 |
+
client_id: settings.clientId
|
400 |
+
}
|
401 |
+
, method: 'POST'
|
402 |
+
, success: function (response) {
|
403 |
+
if (response) {
|
404 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
405 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
406 |
+
window.setAccessToken(response.access_token);
|
407 |
+
} else {
|
408 |
+
$('div.authenticating').hide();
|
409 |
+
$('div.authenticate').show();
|
410 |
+
}
|
411 |
+
}
|
412 |
+
});
|
413 |
+
}
|
414 |
+
window.setAccessToken = function(token) {
|
415 |
+
$('.rgw-fb-login-button-iframe').hide();
|
416 |
+
$('div.authenticate').hide();
|
417 |
+
$('div.authenticating').show();
|
418 |
+
$('div.authenticated').hide();
|
419 |
+
|
420 |
+
$.ajax({
|
421 |
+
url: resourceHost + '/api/v1/account_info'
|
422 |
+
, beforeSend: function (xhr) {
|
423 |
+
xhr.setRequestHeader('Authorization', "Bearer " + token);
|
424 |
+
xhr.setRequestHeader('Accept', "application/json");
|
425 |
+
}
|
426 |
+
, method: 'POST'
|
427 |
+
, success: function (response) {
|
428 |
+
if (response.data) {
|
429 |
+
$('[name="readygraph_access_token"]').val(token);
|
430 |
+
$('[name="readygraph_email"]').val(response.data.email);
|
431 |
+
$('[name="readygraph_application_id"]').val(response.data.application_id);
|
432 |
+
$('#myForm')[0].submit();
|
433 |
+
} else {
|
434 |
+
$('div.authenticating').hide();
|
435 |
+
$('div.authenticate').show();
|
436 |
+
$('.rgw-fb-login-button-iframe').hide();
|
437 |
+
}
|
438 |
+
}
|
439 |
+
});
|
440 |
+
}
|
441 |
+
});
|
442 |
+
</script>
|
443 |
+
<script>
|
444 |
+
window.setup = false;
|
445 |
+
window.refresh_readygraph = function() {};
|
446 |
+
window.setup_readygraph = function(app_id) {
|
447 |
+
if (window.setup) {
|
448 |
+
window.refresh_readygraph();
|
449 |
+
return;
|
450 |
+
}
|
451 |
+
window.setup = true;
|
452 |
+
readygraph.setup({
|
453 |
+
applicationId: app_id,
|
454 |
+
isPreview: true,
|
455 |
+
enableLoginWall: false,
|
456 |
+
enableDistraction: false,
|
457 |
+
enableAutoLogin: false,
|
458 |
+
enableSidebar: false,
|
459 |
+
enableNotification: false,
|
460 |
+
enableInvite: false,
|
461 |
+
enableOpenGraph: false,
|
462 |
+
enableRgSeo: false
|
463 |
+
});
|
464 |
+
readygraph.ready(function() {
|
465 |
+
readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
|
466 |
+
var $ = readygraph.framework.jQuery;
|
467 |
+
$.cookie('RGAuth', null);
|
468 |
+
readygraph.framework.facebook.logout(function() {
|
469 |
+
readygraph.framework.require(['invite'], function() {
|
470 |
+
var VIEW_TYPE = {
|
471 |
+
LOADING: 0,
|
472 |
+
LOGIN_REQUIRE: 1,
|
473 |
+
PERMISSION_REQUIRE: 2,
|
474 |
+
DEFAULT: 3,
|
475 |
+
LOGIN_WITH_EMAIL: 4,
|
476 |
+
SIGNUP_WITH_EMAIL: 5,
|
477 |
+
IMPORT_WITH_EMAIL: 6,
|
478 |
+
FINISH: 10
|
479 |
+
};
|
480 |
+
|
481 |
+
var auth = new readygraph.framework.ui.AuthModel({
|
482 |
+
dialog: true,
|
483 |
+
'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
|
484 |
+
});
|
485 |
+
$('.rg-preview-widget').html('');
|
486 |
+
$('.rg-preview-widget').append(auth.lightbox.view.$el);
|
487 |
+
$('.rgw-content').attr('style', 'position: relative !important;');
|
488 |
+
|
489 |
+
var view = VIEW_TYPE.LOGIN_REQUIRE;
|
490 |
+
auth.on('switch', function() {
|
491 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
492 |
+
else auth.view.render();
|
493 |
+
if (view == VIEW_TYPE.DEFAULT) {
|
494 |
+
auth.view.$el.find('.rgw-invite-view').showAndAnimate();
|
495 |
+
auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
|
496 |
+
auth.view.$el.commitTransition();
|
497 |
+
}
|
498 |
+
});
|
499 |
+
auth.view.switchView(view);
|
500 |
+
|
501 |
+
$(window).scroll(function() {
|
502 |
+
$(window).trigger('rgw-invalidate');
|
503 |
+
});
|
504 |
+
$('.rg-preview-widget, .content-warp').scroll(function() {
|
505 |
+
$(window).trigger('rgw-invalidate');
|
506 |
+
});
|
507 |
+
$(window).trigger('rgw-invalidate');
|
508 |
+
|
509 |
+
$('.rg-vertical-tab').click(function() {
|
510 |
+
saveContent(auth, $('.rg-preview-widget-container'), true);
|
511 |
+
|
512 |
+
$('.rg-vertical-tab').removeClass('active');
|
513 |
+
$(this).addClass('active');
|
514 |
+
view = VIEW_TYPE[$(this).attr('tab')];
|
515 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
516 |
+
|
517 |
+
$('.rg-preview-widget, .content-warp').scrollTop(10000);
|
518 |
+
});
|
519 |
+
|
520 |
+
enableContentEditable(auth, $('.rg-preview-widget-container'));
|
521 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
522 |
+
|
523 |
+
$('.save').click(function() {
|
524 |
+
$('.save').css('opacity', 0.4);
|
525 |
+
saveContent(auth, $('.rg-preview-widget-container'), false);
|
526 |
+
});
|
527 |
+
|
528 |
+
window.refresh_readygraph = function() {
|
529 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
530 |
+
}
|
531 |
+
});
|
532 |
+
});
|
533 |
+
});
|
534 |
+
});
|
535 |
+
}
|
536 |
+
function enableContentEditable(model, container) {
|
537 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
538 |
+
var element = $(this);
|
539 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
540 |
+
|
541 |
+
if (element.attr('editing') != null) return;
|
542 |
+
container.find('.special-button-container button').attr('disabled', 'disabled');
|
543 |
+
element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
|
544 |
+
element.attr('editing', '1');
|
545 |
+
element.css({
|
546 |
+
'border': '2px dashed orange',
|
547 |
+
'position': 'relative',
|
548 |
+
'top': '-2px',
|
549 |
+
'margin-bottom': '-4px',
|
550 |
+
'background-color': '#FAFAC5'
|
551 |
+
});
|
552 |
+
element.attr('contenteditable', true);
|
553 |
+
element.bind('paste', function(e) {
|
554 |
+
e.preventDefault();
|
555 |
+
});
|
556 |
+
element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
|
557 |
+
});
|
558 |
+
}
|
559 |
+
function saveContent(model, container, fake) {
|
560 |
+
var settings = {};
|
561 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
562 |
+
var element = $(this);
|
563 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
564 |
+
settings[element.attr('rgw-data-key')] = element.text();
|
565 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
566 |
+
});
|
567 |
+
if (!fake) {
|
568 |
+
$('input[name="readygraph_settings"]').val(JSON.stringify(settings));
|
569 |
+
$('#myForm')[0].submit();
|
570 |
+
}
|
571 |
+
}
|
572 |
+
function restoreContent(model, container) {
|
573 |
+
eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
|
574 |
+
var settings = window._TEMP;
|
575 |
+
if (settings) {
|
576 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
577 |
+
var element = $(this);
|
578 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
579 |
+
element.text(settings[element.attr('rgw-data-key')]);
|
580 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
581 |
+
});
|
582 |
+
}
|
583 |
+
}
|
584 |
+
</script>
|
585 |
+
<style>
|
586 |
+
/* FOR INLINE WIDGET */
|
587 |
+
.rgw-overlay {
|
588 |
+
display: none !important;
|
589 |
+
}
|
590 |
+
.rgw-content-frame {
|
591 |
+
left: 0 !important;
|
592 |
+
top: 0 !important;
|
593 |
+
position: relative !important;
|
594 |
+
margin: 0 auto !important;
|
595 |
+
border: solid 1px #cccccc;
|
596 |
+
}
|
597 |
+
.rgw-preview-warning {
|
598 |
+
display: none !important;
|
599 |
+
}
|
600 |
+
.rgw-content {
|
601 |
+
position: relative !important;
|
602 |
+
}
|
603 |
+
</style>
|
extension/readygraph/site-profile.php
ADDED
@@ -0,0 +1,514 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration dashboard.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package ReadyGraph
|
9 |
+
* @author dan@readygraph.com
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://www.readygraph.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
+
$app_id = get_option('readygraph_application_id');
|
17 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
19 |
+
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
+
$app_id = get_option('readygraph_application_id');
|
22 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
24 |
+
$dir = plugin_dir_path( __FILE__ );
|
25 |
+
s2_rrmdir($dir);
|
26 |
+
}
|
27 |
+
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
global $main_plugin_title;
|
31 |
+
if (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0) {
|
32 |
+
//redirect to main page
|
33 |
+
$current_url = explode("&", $_SERVER['REQUEST_URI']);
|
34 |
+
echo '<script>window.location.replace("'.$current_url[0].'");</script>';
|
35 |
+
}
|
36 |
+
else {
|
37 |
+
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
38 |
+
if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
|
39 |
+
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
40 |
+
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
41 |
+
if (isset($_POST["sitedesceditor"])) update_option('readygraph_site_description', $_POST["sitedesceditor"]);
|
42 |
+
if (isset($_POST["site_name"])) update_option('readygraph_site_name', $_POST["site_name"]);
|
43 |
+
if (isset($_POST["site_url"])) update_option('readygraph_site_url', $_POST["site_url"]);
|
44 |
+
|
45 |
+
|
46 |
+
}
|
47 |
+
?>
|
48 |
+
|
49 |
+
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
50 |
+
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
51 |
+
<form method="post" id="myForm">
|
52 |
+
<input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
|
53 |
+
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
54 |
+
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
55 |
+
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
56 |
+
|
57 |
+
|
58 |
+
<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>
|
59 |
+
<div class="authenticated" style="display: none;">
|
60 |
+
<div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
|
61 |
+
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
62 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
63 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
64 |
+
<span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
|
65 |
+
</button>
|
66 |
+
<ul class="dropdown-menu">
|
67 |
+
<li><a class="change-account" href="#">Change Account</a></li>
|
68 |
+
<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>
|
69 |
+
<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>
|
70 |
+
</ul>
|
71 |
+
</div>
|
72 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
73 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
74 |
+
<span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
|
75 |
+
</button>
|
76 |
+
<ul class="dropdown-menu">
|
77 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
|
78 |
+
</ul>
|
79 |
+
</div>
|
80 |
+
<div style="clear: both;"></div>
|
81 |
+
</div>
|
82 |
+
<!-- write menu code-->
|
83 |
+
<div class="readygraph-menu">
|
84 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
85 |
+
<ul>
|
86 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
87 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
88 |
+
<li><a href="#"></a></li>
|
89 |
+
</ul>
|
90 |
+
</div>
|
91 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
92 |
+
<ul>
|
93 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
94 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
95 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
96 |
+
</ul>
|
97 |
+
</div>
|
98 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
99 |
+
<ul>
|
100 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
101 |
+
<li><a href="#">Social Followers</a></li>
|
102 |
+
<li><a href="#">Feedback Survey</a></li>
|
103 |
+
</ul>
|
104 |
+
</div>
|
105 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
106 |
+
<ul>
|
107 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
108 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
109 |
+
|
110 |
+
</ul>
|
111 |
+
</div>
|
112 |
+
<div class="menu-tabs" style="float:right"><h4> </h4>
|
113 |
+
<p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
|
114 |
+
<p>
|
115 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
|
116 |
+
|
117 |
+
</ul>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
<div><div><a href="#">Basic Settings</a> > Site Profile</div>
|
121 |
+
<h3 style="font-weight: normal; text-align: center;">Be sure your site profile is accurate!</h3>
|
122 |
+
<h4 style="font-weight: normal; text-align: center;">This content is used in your site's features and emails</h4>
|
123 |
+
<div style="margin: 0 5%;">
|
124 |
+
<div style="display: block"><label for="site_profile_image_upload">Site Icon: </label> <input type="file" name="site_profile_image_upload" id="site_profile_image_upload" multiple="false" style="display: inline" /></div>
|
125 |
+
<div style="display: block"><label for="site_profile_name">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" /></div>
|
126 |
+
<div style="display: block"><label for="site_profile_url">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" /></div>
|
127 |
+
<div style="display: block; width:50%">
|
128 |
+
<label for="sitedesceditor">Site Description:</label><?php /**
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Basic syntax
|
132 |
+
*/
|
133 |
+
$content = get_option('readygraph_site_description');
|
134 |
+
$editor_id = 'sitedesceditor';
|
135 |
+
$settings = array(
|
136 |
+
'textarea_rows' => 5,
|
137 |
+
'media_buttons' => false,
|
138 |
+
'teeny' => true,
|
139 |
+
'quicktags' => false
|
140 |
+
);
|
141 |
+
wp_editor( $content, $editor_id, $settings );
|
142 |
+
?>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
<div class="save-changes"><button type="submit" class="btn btn-large btn-warning save-next" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=customize-email" style="float: right;margin: 15px">Save Changes & Next</button>
|
146 |
+
<button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile" style="float: right;margin: 15px">Save Changes</button>
|
147 |
+
<button type="submit" class="btn btn-large btn-warning save-previous" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed" style="float: right;margin: 15px">Previous</button>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
</form>
|
152 |
+
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
153 |
+
<script type="text/javascript" charset="utf-8">
|
154 |
+
var $ = jQuery;
|
155 |
+
$(function () {
|
156 |
+
var settings =
|
157 |
+
{
|
158 |
+
'host': "www.readygraph.com"
|
159 |
+
, 'clientId': "9838eb84c6da2fc44ab9"
|
160 |
+
};
|
161 |
+
|
162 |
+
var authHost = "https://" + settings.host;
|
163 |
+
var resourceHost = "https://" + settings.host;
|
164 |
+
|
165 |
+
// OAuth 2.0 Popup
|
166 |
+
//
|
167 |
+
var popupWindow=null;
|
168 |
+
function openPopup(url)
|
169 |
+
{
|
170 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
171 |
+
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);
|
172 |
+
}
|
173 |
+
function parent_disable() {
|
174 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
175 |
+
}
|
176 |
+
|
177 |
+
$("a.connect").click(function() {
|
178 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
179 |
+
openPopup(url);
|
180 |
+
$(document.body).bind('focus', parent_disable);
|
181 |
+
$(document.body).bind('click', parent_disable);
|
182 |
+
});
|
183 |
+
$(".change-account").click(function() {
|
184 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
185 |
+
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
186 |
+
openPopup(logout);
|
187 |
+
$(document.body).bind('focus', parent_disable);
|
188 |
+
$(document.body).bind('click', parent_disable);
|
189 |
+
});
|
190 |
+
|
191 |
+
// User Interface
|
192 |
+
//
|
193 |
+
$('.template').click(function() {
|
194 |
+
$('#preview').attr('src', $(this).find('img').attr('src'));
|
195 |
+
});
|
196 |
+
|
197 |
+
// Manage OAuth 2.0 Redirect
|
198 |
+
//
|
199 |
+
var extractCode = function(hash) {
|
200 |
+
var match = hash.match(/code=(\w+)/);
|
201 |
+
return !!match && match[1];
|
202 |
+
};
|
203 |
+
var extractToken = function(hash) {
|
204 |
+
var match = hash.match(/access_token=(\w+)/);
|
205 |
+
return !!match && match[1];
|
206 |
+
};
|
207 |
+
var extractError = function(hash) {
|
208 |
+
var match = hash.match(/error=(\w+)/);
|
209 |
+
return !!match && match[1];
|
210 |
+
};
|
211 |
+
|
212 |
+
var code = extractCode(window.location.href);
|
213 |
+
if (extractError(window.location.href) == 'access_denied') {
|
214 |
+
window.close();
|
215 |
+
}
|
216 |
+
else if(code) {
|
217 |
+
try { window.opener.setCode(code); }
|
218 |
+
catch(ex) { }
|
219 |
+
window.close();
|
220 |
+
}
|
221 |
+
else {
|
222 |
+
$('.rgw-fb-login-button-iframe').hide();
|
223 |
+
$('div.authenticate').show();
|
224 |
+
|
225 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
226 |
+
$('.rgw-fb-login-button-iframe').show();
|
227 |
+
$('div.authenticate').hide();
|
228 |
+
$('div.authenticating').hide();
|
229 |
+
$('div.authenticated').show();
|
230 |
+
|
231 |
+
$('.email-address').text($('[name="readygraph_email"]').val());
|
232 |
+
|
233 |
+
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
234 |
+
|
235 |
+
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
236 |
+
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
237 |
+
|
238 |
+
//$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
|
239 |
+
//$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
|
240 |
+
|
241 |
+
$('.result').text('...');
|
242 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
243 |
+
$.ajax({
|
244 |
+
url: resourceHost + '/api/v1/insight_info'
|
245 |
+
, beforeSend: function (xhr) {
|
246 |
+
xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
|
247 |
+
xhr.setRequestHeader('Accept', "application/json");
|
248 |
+
}
|
249 |
+
, method: 'POST'
|
250 |
+
, success: function (response) {
|
251 |
+
if (response.data) {
|
252 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
253 |
+
} else {
|
254 |
+
$('.result').text('Insight');
|
255 |
+
}
|
256 |
+
}
|
257 |
+
, error: function (response) {
|
258 |
+
refresh_access_token();
|
259 |
+
}
|
260 |
+
});
|
261 |
+
}
|
262 |
+
}
|
263 |
+
}
|
264 |
+
|
265 |
+
// Manage OAuth 2.0 Results
|
266 |
+
//
|
267 |
+
function refresh_access_token() {
|
268 |
+
var refresh_token = $('[name="readygraph_refresh_token"]').val();
|
269 |
+
if (refresh_token) {
|
270 |
+
$('div.authenticate').hide();
|
271 |
+
$('div.authenticating').show();
|
272 |
+
$('div.authenticated').hide();
|
273 |
+
|
274 |
+
$.ajax({
|
275 |
+
url: resourceHost + '/oauth/access_token'
|
276 |
+
, data: {
|
277 |
+
grant_type: 'refresh_token',
|
278 |
+
refresh_token: $('[name="readygraph_refresh_token"]').val(),
|
279 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
280 |
+
client_id: settings.clientId
|
281 |
+
}
|
282 |
+
, method: 'POST'
|
283 |
+
, success: function (response) {
|
284 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
285 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
286 |
+
window.setAccessToken(response.access_token);
|
287 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
288 |
+
}
|
289 |
+
, error: function (response) {
|
290 |
+
alert('We couldn\'t authenticate your account. Please check your internet connection.');
|
291 |
+
$('div.authenticate').show();
|
292 |
+
$('div.authenticating').hide();
|
293 |
+
$('div.authenticated').hide();
|
294 |
+
}
|
295 |
+
});
|
296 |
+
}
|
297 |
+
}
|
298 |
+
window.setCode = function(code) {
|
299 |
+
$('.rgw-fb-login-button-iframe').hide();
|
300 |
+
$('div.authenticate').hide();
|
301 |
+
$('div.authenticating').show();
|
302 |
+
$('div.authenticated').hide();
|
303 |
+
|
304 |
+
$.ajax({
|
305 |
+
url: resourceHost + '/oauth/access_token'
|
306 |
+
, data: {
|
307 |
+
grant_type: 'authorization_code',
|
308 |
+
code: code,
|
309 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
310 |
+
client_id: settings.clientId
|
311 |
+
}
|
312 |
+
, method: 'POST'
|
313 |
+
, success: function (response) {
|
314 |
+
if (response) {
|
315 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
316 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
317 |
+
window.setAccessToken(response.access_token);
|
318 |
+
} else {
|
319 |
+
$('div.authenticating').hide();
|
320 |
+
$('div.authenticate').show();
|
321 |
+
}
|
322 |
+
}
|
323 |
+
});
|
324 |
+
}
|
325 |
+
window.setAccessToken = function(token) {
|
326 |
+
$('.rgw-fb-login-button-iframe').hide();
|
327 |
+
$('div.authenticate').hide();
|
328 |
+
$('div.authenticating').show();
|
329 |
+
$('div.authenticated').hide();
|
330 |
+
|
331 |
+
$.ajax({
|
332 |
+
url: resourceHost + '/api/v1/account_info'
|
333 |
+
, beforeSend: function (xhr) {
|
334 |
+
xhr.setRequestHeader('Authorization', "Bearer " + token);
|
335 |
+
xhr.setRequestHeader('Accept', "application/json");
|
336 |
+
}
|
337 |
+
, method: 'POST'
|
338 |
+
, success: function (response) {
|
339 |
+
if (response.data) {
|
340 |
+
$('[name="readygraph_access_token"]').val(token);
|
341 |
+
$('[name="readygraph_email"]').val(response.data.email);
|
342 |
+
$('[name="readygraph_application_id"]').val(response.data.application_id);
|
343 |
+
$('#myForm')[0].submit();
|
344 |
+
} else {
|
345 |
+
$('div.authenticating').hide();
|
346 |
+
$('div.authenticate').show();
|
347 |
+
$('.rgw-fb-login-button-iframe').hide();
|
348 |
+
}
|
349 |
+
}
|
350 |
+
});
|
351 |
+
}
|
352 |
+
});
|
353 |
+
</script>
|
354 |
+
<script>
|
355 |
+
window.setup = false;
|
356 |
+
window.refresh_readygraph = function() {};
|
357 |
+
window.setup_readygraph = function(app_id) {
|
358 |
+
if (window.setup) {
|
359 |
+
window.refresh_readygraph();
|
360 |
+
return;
|
361 |
+
}
|
362 |
+
window.setup = true;
|
363 |
+
readygraph.setup({
|
364 |
+
applicationId: app_id,
|
365 |
+
isPreview: true,
|
366 |
+
enableLoginWall: false,
|
367 |
+
enableDistraction: false,
|
368 |
+
enableAutoLogin: false,
|
369 |
+
enableSidebar: false,
|
370 |
+
enableNotification: false,
|
371 |
+
enableInvite: false,
|
372 |
+
enableOpenGraph: false,
|
373 |
+
enableRgSeo: false
|
374 |
+
});
|
375 |
+
readygraph.ready(function() {
|
376 |
+
readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
|
377 |
+
var $ = readygraph.framework.jQuery;
|
378 |
+
$.cookie('RGAuth', null);
|
379 |
+
readygraph.framework.facebook.logout(function() {
|
380 |
+
readygraph.framework.require(['invite'], function() {
|
381 |
+
var VIEW_TYPE = {
|
382 |
+
LOADING: 0,
|
383 |
+
LOGIN_REQUIRE: 1,
|
384 |
+
PERMISSION_REQUIRE: 2,
|
385 |
+
DEFAULT: 3,
|
386 |
+
LOGIN_WITH_EMAIL: 4,
|
387 |
+
SIGNUP_WITH_EMAIL: 5,
|
388 |
+
IMPORT_WITH_EMAIL: 6,
|
389 |
+
FINISH: 10
|
390 |
+
};
|
391 |
+
|
392 |
+
var auth = new readygraph.framework.ui.AuthModel({
|
393 |
+
dialog: true,
|
394 |
+
'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
|
395 |
+
});
|
396 |
+
$('.rg-preview-widget').html('');
|
397 |
+
$('.rg-preview-widget').append(auth.lightbox.view.$el);
|
398 |
+
$('.rgw-content').attr('style', 'position: relative !important;');
|
399 |
+
|
400 |
+
var view = VIEW_TYPE.LOGIN_REQUIRE;
|
401 |
+
auth.on('switch', function() {
|
402 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
403 |
+
else auth.view.render();
|
404 |
+
if (view == VIEW_TYPE.DEFAULT) {
|
405 |
+
auth.view.$el.find('.rgw-invite-view').showAndAnimate();
|
406 |
+
auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
|
407 |
+
auth.view.$el.commitTransition();
|
408 |
+
}
|
409 |
+
});
|
410 |
+
auth.view.switchView(view);
|
411 |
+
|
412 |
+
$(window).scroll(function() {
|
413 |
+
$(window).trigger('rgw-invalidate');
|
414 |
+
});
|
415 |
+
$('.rg-preview-widget, .content-warp').scroll(function() {
|
416 |
+
$(window).trigger('rgw-invalidate');
|
417 |
+
});
|
418 |
+
$(window).trigger('rgw-invalidate');
|
419 |
+
|
420 |
+
$('.rg-vertical-tab').click(function() {
|
421 |
+
saveContent(auth, $('.rg-preview-widget-container'), true);
|
422 |
+
|
423 |
+
$('.rg-vertical-tab').removeClass('active');
|
424 |
+
$(this).addClass('active');
|
425 |
+
view = VIEW_TYPE[$(this).attr('tab')];
|
426 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
427 |
+
|
428 |
+
$('.rg-preview-widget, .content-warp').scrollTop(10000);
|
429 |
+
});
|
430 |
+
|
431 |
+
enableContentEditable(auth, $('.rg-preview-widget-container'));
|
432 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
433 |
+
|
434 |
+
$('.save').click(function() {
|
435 |
+
$('.save').css('opacity', 0.4);
|
436 |
+
saveContent(auth, $('.rg-preview-widget-container'), false);
|
437 |
+
});
|
438 |
+
|
439 |
+
window.refresh_readygraph = function() {
|
440 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
441 |
+
}
|
442 |
+
});
|
443 |
+
});
|
444 |
+
});
|
445 |
+
});
|
446 |
+
}
|
447 |
+
function enableContentEditable(model, container) {
|
448 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
449 |
+
var element = $(this);
|
450 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
451 |
+
|
452 |
+
if (element.attr('editing') != null) return;
|
453 |
+
container.find('.special-button-container button').attr('disabled', 'disabled');
|
454 |
+
element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
|
455 |
+
element.attr('editing', '1');
|
456 |
+
element.css({
|
457 |
+
'border': '2px dashed orange',
|
458 |
+
'position': 'relative',
|
459 |
+
'top': '-2px',
|
460 |
+
'margin-bottom': '-4px',
|
461 |
+
'background-color': '#FAFAC5'
|
462 |
+
});
|
463 |
+
element.attr('contenteditable', true);
|
464 |
+
element.bind('paste', function(e) {
|
465 |
+
e.preventDefault();
|
466 |
+
});
|
467 |
+
element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
|
468 |
+
});
|
469 |
+
}
|
470 |
+
function saveContent(model, container, fake) {
|
471 |
+
var settings = {};
|
472 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
473 |
+
var element = $(this);
|
474 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
475 |
+
settings[element.attr('rgw-data-key')] = element.text();
|
476 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
477 |
+
});
|
478 |
+
if (!fake) {
|
479 |
+
$('input[name="readygraph_settings"]').val(JSON.stringify(settings));
|
480 |
+
$('#myForm')[0].submit();
|
481 |
+
}
|
482 |
+
}
|
483 |
+
function restoreContent(model, container) {
|
484 |
+
eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
|
485 |
+
var settings = window._TEMP;
|
486 |
+
if (settings) {
|
487 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
488 |
+
var element = $(this);
|
489 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
490 |
+
element.text(settings[element.attr('rgw-data-key')]);
|
491 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
492 |
+
});
|
493 |
+
}
|
494 |
+
}
|
495 |
+
</script>
|
496 |
+
<style>
|
497 |
+
/* FOR INLINE WIDGET */
|
498 |
+
.rgw-overlay {
|
499 |
+
display: none !important;
|
500 |
+
}
|
501 |
+
.rgw-content-frame {
|
502 |
+
left: 0 !important;
|
503 |
+
top: 0 !important;
|
504 |
+
position: relative !important;
|
505 |
+
margin: 0 auto !important;
|
506 |
+
border: solid 1px #cccccc;
|
507 |
+
}
|
508 |
+
.rgw-preview-warning {
|
509 |
+
display: none !important;
|
510 |
+
}
|
511 |
+
.rgw-content {
|
512 |
+
position: relative !important;
|
513 |
+
}
|
514 |
+
</style>
|
extension/readygraph/social-feed.php
ADDED
@@ -0,0 +1,527 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Represents the view for the administration dashboard.
|
4 |
+
*
|
5 |
+
* This includes the header, options, and other information that should provide
|
6 |
+
* The User Interface to the end user.
|
7 |
+
*
|
8 |
+
* @package ReadyGraph
|
9 |
+
* @author dan@readygraph.com
|
10 |
+
* @license GPL-2.0+
|
11 |
+
* @link http://www.readygraph.com
|
12 |
+
* @copyright 2014 Your Name or Company Name
|
13 |
+
*/
|
14 |
+
|
15 |
+
function s2_disconnectReadyGraph(){
|
16 |
+
$app_id = get_option('readygraph_application_id');
|
17 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=disconnect_readygraph&app_id=$app_id" );
|
18 |
+
s2_delete_rg_options();
|
19 |
+
}
|
20 |
+
function s2_deleteReadyGraph(){
|
21 |
+
$app_id = get_option('readygraph_application_id');
|
22 |
+
wp_remote_get( "http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id=$app_id" );
|
23 |
+
s2_delete_rg_options();
|
24 |
+
$dir = plugin_dir_path( __FILE__ );
|
25 |
+
s2_rrmdir($dir);
|
26 |
+
}
|
27 |
+
|
28 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "changeaccount")s2_disconnectReadyGraph();
|
29 |
+
if(isset($_GET["action"]) && base64_decode($_GET["action"]) == "deleteaccount")s2_deleteReadyGraph();
|
30 |
+
|
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($_GET["source"]) && $_GET["source"] == "signup-popup"){
|
39 |
+
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
40 |
+
if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
|
41 |
+
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
42 |
+
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
43 |
+
if (isset($_POST["readygraph_settings"])) update_option('readygraph_settings', $_POST["readygraph_settings"]);
|
44 |
+
if (isset($_POST["readygraph_delay"])) {
|
45 |
+
update_option('readygraph_delay', $_POST["delay"]);
|
46 |
+
$app_id = get_option('readygraph_application_id');
|
47 |
+
if ($_POST["delay"] >= 20000) wp_remote_get( "http://readygraph.com/api/v1/tracking?event=popup_delay&app_id=$app_id" );
|
48 |
+
}
|
49 |
+
if (isset($_POST["readygraph_enable_notification"])) update_option('readygraph_enable_notification', $_POST["notification"]);
|
50 |
+
if (isset($_POST["readygraph_auto_select_all"])) update_option('readygraph_auto_select_all', $_POST["selectAll"]);
|
51 |
+
if (isset($_POST["readygraph_enable_branding"])) update_option('readygraph_enable_branding', $_POST["branding"]);
|
52 |
+
if (isset($_POST["readygraph_send_blog_updates"])) update_option('readygraph_send_blog_updates', $_POST["blog_updates"]);
|
53 |
+
if (isset($_POST["readygraph_send_real_time_post_updates"])) update_option('readygraph_send_real_time_post_updates', $_POST["real_time_post_update"]);
|
54 |
+
if (isset($_POST["readygraph_popup_template"])) update_option('readygraph_popup_template', $_POST["popup_template"]);
|
55 |
+
|
56 |
+
}
|
57 |
+
else{
|
58 |
+
if (isset($_POST["readygraph_access_token"])) update_option('readygraph_access_token', $_POST["readygraph_access_token"]);
|
59 |
+
if (isset($_POST["readygraph_refresh_token"])) update_option('readygraph_refresh_token', $_POST["readygraph_refresh_token"]);
|
60 |
+
if (isset($_POST["readygraph_email"])) update_option('readygraph_email', $_POST["readygraph_email"]);
|
61 |
+
if (isset($_POST["readygraph_application_id"])) update_option('readygraph_application_id', $_POST["readygraph_application_id"]);
|
62 |
+
if (isset($_POST["readygraph_enable_sidebar"])) update_option('readygraph_enable_sidebar', $_POST["sidebar"]);
|
63 |
+
}
|
64 |
+
}
|
65 |
+
?>
|
66 |
+
|
67 |
+
<link rel="stylesheet" type="text/css" href="<?php echo plugins_url( 'assets/css/admin.css', __FILE__ ) ?>">
|
68 |
+
<script type="text/javascript" src="<?php echo plugins_url( 'assets/js/admin.js', __FILE__ ) ?>"></script>
|
69 |
+
<form method="post" id="myForm">
|
70 |
+
<input type="hidden" name="readygraph_access_token" value="<?php echo get_option('readygraph_access_token', '') ?>">
|
71 |
+
<input type="hidden" name="readygraph_refresh_token" value="<?php echo get_option('readygraph_refresh_token', '') ?>">
|
72 |
+
<input type="hidden" name="readygraph_email" value="<?php echo get_option('readygraph_email', '') ?>">
|
73 |
+
<input type="hidden" name="readygraph_application_id" value="<?php echo get_option('readygraph_application_id', '') ?>">
|
74 |
+
<input type="hidden" name="readygraph_enable_sidebar" value="<?php echo get_option('readygraph_enable_sidebar', 'false') ?>">
|
75 |
+
|
76 |
+
<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>
|
77 |
+
<div class="authenticated" style="display: none;">
|
78 |
+
<div style="background-color: #2961cb; min-width: 90%; height: 50px;margin-right: 1%;">
|
79 |
+
<img src="<?php echo plugin_dir_url( __FILE__ );?>assets/white-logo.png" style="width: 138px; height: 30px; margin: 10px 0 0 15px; float: left;">
|
80 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
81 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
82 |
+
<span class="email-address" style="text-shadow: none;"></span> <span class="caret"></span>
|
83 |
+
</button>
|
84 |
+
<ul class="dropdown-menu">
|
85 |
+
<li><a class="change-account" href="#">Change Account</a></li>
|
86 |
+
<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>
|
87 |
+
<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>
|
88 |
+
</ul>
|
89 |
+
</div>
|
90 |
+
<div class="btn-group pull-right" style="margin: 8px 10px 0 0;">
|
91 |
+
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: transparent; border-color: #ffffff; color: #ffffff; ">
|
92 |
+
<span class="result" style="text-shadow: none;">...</span> <span class="caret"></span>
|
93 |
+
</button>
|
94 |
+
<ul class="dropdown-menu">
|
95 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Insights</a></li>
|
96 |
+
</ul>
|
97 |
+
</div>
|
98 |
+
<div style="clear: both;"></div>
|
99 |
+
</div>
|
100 |
+
<!-- write menu code-->
|
101 |
+
<div class="readygraph-menu">
|
102 |
+
<div class="menu-tabs"><h4>Grow Users</h4>
|
103 |
+
<ul>
|
104 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup">Signup Popup</a></li>
|
105 |
+
<li><a href="https://readygraph.com/application/insights/" target="_blank">User Statistics</a></li>
|
106 |
+
<li><a href="#"></a></li>
|
107 |
+
</ul>
|
108 |
+
</div>
|
109 |
+
<div class="menu-tabs"><h4>Email Users</h4>
|
110 |
+
<ul>
|
111 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/welcome/" target="_blank">Retention Email</a></li>
|
112 |
+
<li><a href="https://readygraph.com/application/customize/settings/email/invitation/" target="_blank">Invitation Email</a></li>
|
113 |
+
<li><a href="http://readygraph.com/application/insights/" target="_blank">Custom Email</a></li>
|
114 |
+
</ul>
|
115 |
+
</div>
|
116 |
+
<div class="menu-tabs"><h4>Engage Users</h4>
|
117 |
+
<ul>
|
118 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed">Social Feed</a></li>
|
119 |
+
<li><a href="#">Social Followers</a></li>
|
120 |
+
<li><a href="#">Feedback Survey</a></li>
|
121 |
+
</ul>
|
122 |
+
</div>
|
123 |
+
<div class="menu-tabs"><h4>Basic Settings</h4>
|
124 |
+
<ul>
|
125 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=site-profile">Site Profile</a></li>
|
126 |
+
<li><a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=feature-settings">Feature Settings</a></li>
|
127 |
+
|
128 |
+
</ul>
|
129 |
+
</div>
|
130 |
+
<div class="menu-tabs" style="float:right"><h4> </h4>
|
131 |
+
<p><a href="mailto:info@readygraph.com" style="color: #b1c1ca" >Help <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/9.png"/></a></p>
|
132 |
+
<p>
|
133 |
+
<a href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=faq" style="color: #b1c1ca" >FAQ <img src="<?php echo plugin_dir_url( __FILE__ );?>assets/10.png" /></a></p>
|
134 |
+
|
135 |
+
</ul>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
<div><a href="#">Engage Users</a> > Social Feed</div>
|
139 |
+
<div class="social-feed" style="margin: 2% auto; width: 80%">
|
140 |
+
|
141 |
+
<h3 style="font-weight: normal; text-align: center;">Enable your social feed sidebar to build a community (Optional)</h3>
|
142 |
+
<h4 style="font-weight: normal; text-align: center;">Allow users to discuss your content and message each other through the social sidebar</h4>
|
143 |
+
<div style="width: 100%; display: block;min-height: 200px;">
|
144 |
+
<div style="width: 65%; margin: 1% auto; float: left;"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/ready_sidebar.png" style="height: 500px;"/>
|
145 |
+
</div>
|
146 |
+
<div style="width: 30%; margin: 1% auto; float: right;">
|
147 |
+
<h4 class="rg-h4"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/7.png" class="rg-big-icon"/>Social Feed</h4>
|
148 |
+
<p>Enable Sidebar:
|
149 |
+
<select class="sidebar" name="sidebar" class="form-control">
|
150 |
+
<option value="true">YES</option>
|
151 |
+
<option value="false">NO</option>
|
152 |
+
</select><a href="#" class="help-tooltip"><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/Help-icon.png" width="15px" style="margin-left:10px;"/><span><img class="callout" src="<?php echo plugin_dir_url( __FILE__ );?>assets/callout_black.gif" /><strong>ReadyGraph Social Feed Settings</strong><br />You can add an optional social sidebar to your site that allows users the ability to share and discuss the best content on your site. For an example, click here.<br /></span></a>
|
153 |
+
</p><br />
|
154 |
+
<div class="save-changes"><button type="submit" class="btn btn-large btn-warning save-next" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=customize-emails&source=social-feed" style="float: right;margin: 15px">Save Changes & Next</button>
|
155 |
+
<button type="submit" class="btn btn-large btn-warning save" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=social-feed" style="float: right;margin: 15px">Save Changes</button>
|
156 |
+
<button type="submit" class="btn btn-large btn-warning save-previous" formaction="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&ac=signup-popup" style="float: right;margin: 15px">Previous</button>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
</form>
|
164 |
+
<script type="text/javascript" src="https://readygraph.com/scripts/readygraph.js"></script>
|
165 |
+
<script type="text/javascript" charset="utf-8">
|
166 |
+
var $ = jQuery;
|
167 |
+
$(function () {
|
168 |
+
var settings =
|
169 |
+
{
|
170 |
+
'host': "www.readygraph.com"
|
171 |
+
, 'clientId': "9838eb84c6da2fc44ab9"
|
172 |
+
};
|
173 |
+
|
174 |
+
var authHost = "https://" + settings.host;
|
175 |
+
var resourceHost = "https://" + settings.host;
|
176 |
+
|
177 |
+
// OAuth 2.0 Popup
|
178 |
+
//
|
179 |
+
var popupWindow=null;
|
180 |
+
function openPopup(url)
|
181 |
+
{
|
182 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
183 |
+
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);
|
184 |
+
}
|
185 |
+
function parent_disable() {
|
186 |
+
if(popupWindow && !popupWindow.closed) popupWindow.focus();
|
187 |
+
}
|
188 |
+
|
189 |
+
$("a.connect").click(function() {
|
190 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
191 |
+
openPopup(url);
|
192 |
+
$(document.body).bind('focus', parent_disable);
|
193 |
+
$(document.body).bind('click', parent_disable);
|
194 |
+
});
|
195 |
+
$(".change-account").click(function() {
|
196 |
+
var url = authHost + '/oauth/authenticate?client_id=' + settings.clientId + '&redirect_uri=' + encodeURIComponent(location.href.replace('#' + location.hash,"")) + '&response_type=token';
|
197 |
+
var logout = authHost + '/oauth/logout?redirect=' + encodeURIComponent(url);
|
198 |
+
openPopup(logout);
|
199 |
+
$(document.body).bind('focus', parent_disable);
|
200 |
+
$(document.body).bind('click', parent_disable);
|
201 |
+
});
|
202 |
+
|
203 |
+
// User Interface
|
204 |
+
//
|
205 |
+
$('.template').click(function() {
|
206 |
+
$('#preview').attr('src', $(this).find('img').attr('src'));
|
207 |
+
});
|
208 |
+
|
209 |
+
// Manage OAuth 2.0 Redirect
|
210 |
+
//
|
211 |
+
var extractCode = function(hash) {
|
212 |
+
var match = hash.match(/code=(\w+)/);
|
213 |
+
return !!match && match[1];
|
214 |
+
};
|
215 |
+
var extractToken = function(hash) {
|
216 |
+
var match = hash.match(/access_token=(\w+)/);
|
217 |
+
return !!match && match[1];
|
218 |
+
};
|
219 |
+
var extractError = function(hash) {
|
220 |
+
var match = hash.match(/error=(\w+)/);
|
221 |
+
return !!match && match[1];
|
222 |
+
};
|
223 |
+
|
224 |
+
var code = extractCode(window.location.href);
|
225 |
+
if (extractError(window.location.href) == 'access_denied') {
|
226 |
+
window.close();
|
227 |
+
}
|
228 |
+
else if(code) {
|
229 |
+
try { window.opener.setCode(code); }
|
230 |
+
catch(ex) { }
|
231 |
+
window.close();
|
232 |
+
}
|
233 |
+
else {
|
234 |
+
$('.rgw-fb-login-button-iframe').hide();
|
235 |
+
$('div.authenticate').show();
|
236 |
+
|
237 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
238 |
+
$('.rgw-fb-login-button-iframe').show();
|
239 |
+
$('div.authenticate').hide();
|
240 |
+
$('div.authenticating').hide();
|
241 |
+
$('div.authenticated').show();
|
242 |
+
|
243 |
+
$('.email-address').text($('[name="readygraph_email"]').val());
|
244 |
+
|
245 |
+
window.setup_readygraph($('[name="readygraph_application_id"]').val());
|
246 |
+
$('.sidebar').val($('[name="readygraph_enable_sidebar"]').val());
|
247 |
+
|
248 |
+
//$('[name="readygraph_ad_format"][value="' + $('[name="_readygraph_ad_format"]').val() + '"]').parent().click();
|
249 |
+
//$('[name="readygraph_ad_timing"][value="' + $('[name="_readygraph_ad_timing"]').val() + '"]').parent().click();
|
250 |
+
|
251 |
+
//$('[name="readygraph_ad_delay"]').val($('[name="_readygraph_ad_delay"]').val());
|
252 |
+
//$('[name="readygraph_ad_scroll"]').val($('[name="_readygraph_ad_scroll"]').val());
|
253 |
+
|
254 |
+
$('.result').text('...');
|
255 |
+
if ($('[name="readygraph_access_token"]').val()) {
|
256 |
+
$.ajax({
|
257 |
+
url: resourceHost + '/api/v1/insight_info'
|
258 |
+
, beforeSend: function (xhr) {
|
259 |
+
xhr.setRequestHeader('Authorization', "Bearer " + $('[name="readygraph_access_token"]').val());
|
260 |
+
xhr.setRequestHeader('Accept', "application/json");
|
261 |
+
}
|
262 |
+
, method: 'POST'
|
263 |
+
, success: function (response) {
|
264 |
+
if (response.data) {
|
265 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
266 |
+
} else {
|
267 |
+
$('.result').text('Insight');
|
268 |
+
}
|
269 |
+
}
|
270 |
+
, error: function (response) {
|
271 |
+
refresh_access_token();
|
272 |
+
}
|
273 |
+
});
|
274 |
+
}
|
275 |
+
}
|
276 |
+
}
|
277 |
+
|
278 |
+
// Manage OAuth 2.0 Results
|
279 |
+
//
|
280 |
+
function refresh_access_token() {
|
281 |
+
var refresh_token = $('[name="readygraph_refresh_token"]').val();
|
282 |
+
if (refresh_token) {
|
283 |
+
$('div.authenticate').hide();
|
284 |
+
$('div.authenticating').show();
|
285 |
+
$('div.authenticated').hide();
|
286 |
+
|
287 |
+
$.ajax({
|
288 |
+
url: resourceHost + '/oauth/access_token'
|
289 |
+
, data: {
|
290 |
+
grant_type: 'refresh_token',
|
291 |
+
refresh_token: $('[name="readygraph_refresh_token"]').val(),
|
292 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
293 |
+
client_id: settings.clientId
|
294 |
+
}
|
295 |
+
, method: 'POST'
|
296 |
+
, success: function (response) {
|
297 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
298 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
299 |
+
window.setAccessToken(response.access_token);
|
300 |
+
$('.result').text(response.data.subscribers + ((response.data.subscribers == 0) ? ' Subscriber' : ' Subscribers'));
|
301 |
+
}
|
302 |
+
, error: function (response) {
|
303 |
+
alert('We couldn\'t authenticate your account. Please check your internet connection.');
|
304 |
+
$('div.authenticate').show();
|
305 |
+
$('div.authenticating').hide();
|
306 |
+
$('div.authenticated').hide();
|
307 |
+
}
|
308 |
+
});
|
309 |
+
}
|
310 |
+
}
|
311 |
+
window.setCode = function(code) {
|
312 |
+
$('.rgw-fb-login-button-iframe').hide();
|
313 |
+
$('div.authenticate').hide();
|
314 |
+
$('div.authenticating').show();
|
315 |
+
$('div.authenticated').hide();
|
316 |
+
|
317 |
+
$.ajax({
|
318 |
+
url: resourceHost + '/oauth/access_token'
|
319 |
+
, data: {
|
320 |
+
grant_type: 'authorization_code',
|
321 |
+
code: code,
|
322 |
+
redirect_uri: encodeURIComponent(location.href.replace('#' + location.hash,"")),
|
323 |
+
client_id: settings.clientId
|
324 |
+
}
|
325 |
+
, method: 'POST'
|
326 |
+
, success: function (response) {
|
327 |
+
if (response) {
|
328 |
+
$('[name="readygraph_access_token"]').val(response.access_token);
|
329 |
+
$('[name="readygraph_refresh_token"]').val(response.refresh_token);
|
330 |
+
window.setAccessToken(response.access_token);
|
331 |
+
} else {
|
332 |
+
$('div.authenticating').hide();
|
333 |
+
$('div.authenticate').show();
|
334 |
+
}
|
335 |
+
}
|
336 |
+
});
|
337 |
+
}
|
338 |
+
window.setAccessToken = function(token) {
|
339 |
+
$('.rgw-fb-login-button-iframe').hide();
|
340 |
+
$('div.authenticate').hide();
|
341 |
+
$('div.authenticating').show();
|
342 |
+
$('div.authenticated').hide();
|
343 |
+
|
344 |
+
$.ajax({
|
345 |
+
url: resourceHost + '/api/v1/account_info'
|
346 |
+
, beforeSend: function (xhr) {
|
347 |
+
xhr.setRequestHeader('Authorization', "Bearer " + token);
|
348 |
+
xhr.setRequestHeader('Accept', "application/json");
|
349 |
+
}
|
350 |
+
, method: 'POST'
|
351 |
+
, success: function (response) {
|
352 |
+
if (response.data) {
|
353 |
+
$('[name="readygraph_access_token"]').val(token);
|
354 |
+
$('[name="readygraph_email"]').val(response.data.email);
|
355 |
+
$('[name="readygraph_application_id"]').val(response.data.application_id);
|
356 |
+
$('#myForm')[0].submit();
|
357 |
+
} else {
|
358 |
+
$('div.authenticating').hide();
|
359 |
+
$('div.authenticate').show();
|
360 |
+
$('.rgw-fb-login-button-iframe').hide();
|
361 |
+
}
|
362 |
+
}
|
363 |
+
});
|
364 |
+
}
|
365 |
+
});
|
366 |
+
</script>
|
367 |
+
<script>
|
368 |
+
window.setup = false;
|
369 |
+
window.refresh_readygraph = function() {};
|
370 |
+
window.setup_readygraph = function(app_id) {
|
371 |
+
if (window.setup) {
|
372 |
+
window.refresh_readygraph();
|
373 |
+
return;
|
374 |
+
}
|
375 |
+
window.setup = true;
|
376 |
+
readygraph.setup({
|
377 |
+
applicationId: app_id,
|
378 |
+
isPreview: true,
|
379 |
+
enableLoginWall: false,
|
380 |
+
enableDistraction: false,
|
381 |
+
enableAutoLogin: false,
|
382 |
+
enableSidebar: false,
|
383 |
+
enableNotification: false,
|
384 |
+
enableInvite: false,
|
385 |
+
enableOpenGraph: false,
|
386 |
+
enableRgSeo: false
|
387 |
+
});
|
388 |
+
readygraph.ready(function() {
|
389 |
+
readygraph.framework.require(['compact.sdk', 'facebook.sdk'], function() {
|
390 |
+
var $ = readygraph.framework.jQuery;
|
391 |
+
$.cookie('RGAuth', null);
|
392 |
+
readygraph.framework.facebook.logout(function() {
|
393 |
+
readygraph.framework.require(['invite'], function() {
|
394 |
+
var VIEW_TYPE = {
|
395 |
+
LOADING: 0,
|
396 |
+
LOGIN_REQUIRE: 1,
|
397 |
+
PERMISSION_REQUIRE: 2,
|
398 |
+
DEFAULT: 3,
|
399 |
+
LOGIN_WITH_EMAIL: 4,
|
400 |
+
SIGNUP_WITH_EMAIL: 5,
|
401 |
+
IMPORT_WITH_EMAIL: 6,
|
402 |
+
FINISH: 10
|
403 |
+
};
|
404 |
+
|
405 |
+
var auth = new readygraph.framework.ui.AuthModel({
|
406 |
+
dialog: true,
|
407 |
+
'inviter_profile_picture': 'https://graph.facebook.com/4/picture?type=normal&width=400&height=400'
|
408 |
+
});
|
409 |
+
$('.rg-preview-widget').html('');
|
410 |
+
$('.rg-preview-widget').append(auth.lightbox.view.$el);
|
411 |
+
$('.rgw-content').attr('style', 'position: relative !important;');
|
412 |
+
|
413 |
+
var view = VIEW_TYPE.LOGIN_REQUIRE;
|
414 |
+
auth.on('switch', function() {
|
415 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
416 |
+
else auth.view.render();
|
417 |
+
if (view == VIEW_TYPE.DEFAULT) {
|
418 |
+
auth.view.$el.find('.rgw-invite-view').showAndAnimate();
|
419 |
+
auth.view.$el.find('.rgw-follow-view').hideAndAnimate();
|
420 |
+
auth.view.$el.commitTransition();
|
421 |
+
}
|
422 |
+
});
|
423 |
+
auth.view.switchView(view);
|
424 |
+
|
425 |
+
$(window).scroll(function() {
|
426 |
+
$(window).trigger('rgw-invalidate');
|
427 |
+
});
|
428 |
+
$('.rg-preview-widget, .content-warp').scroll(function() {
|
429 |
+
$(window).trigger('rgw-invalidate');
|
430 |
+
});
|
431 |
+
$(window).trigger('rgw-invalidate');
|
432 |
+
|
433 |
+
$('.rg-vertical-tab').click(function() {
|
434 |
+
saveContent(auth, $('.rg-preview-widget-container'), true);
|
435 |
+
|
436 |
+
$('.rg-vertical-tab').removeClass('active');
|
437 |
+
$(this).addClass('active');
|
438 |
+
view = VIEW_TYPE[$(this).attr('tab')];
|
439 |
+
if (auth.view.currentView != view) { auth.view.switchView(view); }
|
440 |
+
|
441 |
+
$('.rg-preview-widget, .content-warp').scrollTop(10000);
|
442 |
+
});
|
443 |
+
|
444 |
+
enableContentEditable(auth, $('.rg-preview-widget-container'));
|
445 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
446 |
+
|
447 |
+
$('.save').click(function() {
|
448 |
+
$('.save').css('opacity', 0.4);
|
449 |
+
saveContent(auth, $('.rg-preview-widget-container'), false);
|
450 |
+
});
|
451 |
+
|
452 |
+
window.refresh_readygraph = function() {
|
453 |
+
restoreContent(auth, $('.rg-preview-widget-container'));
|
454 |
+
}
|
455 |
+
});
|
456 |
+
});
|
457 |
+
});
|
458 |
+
});
|
459 |
+
}
|
460 |
+
function enableContentEditable(model, container) {
|
461 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
462 |
+
var element = $(this);
|
463 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
464 |
+
|
465 |
+
if (element.attr('editing') != null) return;
|
466 |
+
container.find('.special-button-container button').attr('disabled', 'disabled');
|
467 |
+
element.text(readygraph.getSettings().get(element.attr('rgw-data-key')));
|
468 |
+
element.attr('editing', '1');
|
469 |
+
element.css({
|
470 |
+
'border': '2px dashed orange',
|
471 |
+
'position': 'relative',
|
472 |
+
'top': '-2px',
|
473 |
+
'margin-bottom': '-4px',
|
474 |
+
'background-color': '#FAFAC5'
|
475 |
+
});
|
476 |
+
element.attr('contenteditable', true);
|
477 |
+
element.bind('paste', function(e) {
|
478 |
+
e.preventDefault();
|
479 |
+
});
|
480 |
+
element.bind('keydown', function() { $('.save').css('opacity', '1.0'); });
|
481 |
+
});
|
482 |
+
}
|
483 |
+
function saveContent(model, container, fake) {
|
484 |
+
var settings = {};
|
485 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
486 |
+
var element = $(this);
|
487 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
488 |
+
settings[element.attr('rgw-data-key')] = element.text();
|
489 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
490 |
+
});
|
491 |
+
if (!fake) {
|
492 |
+
$('input[name="readygraph_settings"]').val(JSON.stringify(settings));
|
493 |
+
$('#myForm')[0].submit();
|
494 |
+
}
|
495 |
+
}
|
496 |
+
function restoreContent(model, container) {
|
497 |
+
eval('window._TEMP='+$('input[name="readygraph_settings"]').val());
|
498 |
+
var settings = window._TEMP;
|
499 |
+
if (settings) {
|
500 |
+
model.view.$el.find('[rgw-data-key]').each(function() {
|
501 |
+
var element = $(this);
|
502 |
+
if (element.attr('rgw-data-editable') == 'false') return;
|
503 |
+
element.text(settings[element.attr('rgw-data-key')]);
|
504 |
+
readygraph.getSettings().set(element.attr('rgw-data-key'), element.text());
|
505 |
+
});
|
506 |
+
}
|
507 |
+
}
|
508 |
+
</script>
|
509 |
+
<style>
|
510 |
+
/* FOR INLINE WIDGET */
|
511 |
+
.rgw-overlay {
|
512 |
+
display: none !important;
|
513 |
+
}
|
514 |
+
.rgw-content-frame {
|
515 |
+
left: 0 !important;
|
516 |
+
top: 0 !important;
|
517 |
+
position: relative !important;
|
518 |
+
margin: 0 auto !important;
|
519 |
+
border: solid 1px #cccccc;
|
520 |
+
}
|
521 |
+
.rgw-preview-warning {
|
522 |
+
display: none !important;
|
523 |
+
}
|
524 |
+
.rgw-content {
|
525 |
+
position: relative !important;
|
526 |
+
}
|
527 |
+
</style>
|
readygraph-extension.php
CHANGED
@@ -21,6 +21,7 @@ function s2_myajax_submit() {
|
|
21 |
wp_die();
|
22 |
|
23 |
}
|
|
|
24 |
// ReadyGraph Engine Hooker
|
25 |
//
|
26 |
include_once('extension/readygraph/extension.php');
|
21 |
wp_die();
|
22 |
|
23 |
}
|
24 |
+
|
25 |
// ReadyGraph Engine Hooker
|
26 |
//
|
27 |
include_once('extension/readygraph/extension.php');
|
subscribe2.php
CHANGED
@@ -3,8 +3,8 @@
|
|
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.
|
7 |
-
Author: Matthew Robinson,
|
8 |
Author URI: http://subscribe2.wordpress.com
|
9 |
Licence: GPL3
|
10 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904
|
@@ -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.
|
59 |
define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
|
60 |
define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
|
61 |
define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
|
@@ -80,6 +80,7 @@ if ( is_admin() ) {
|
|
80 |
}
|
81 |
|
82 |
function s2_install() {
|
|
|
83 |
add_option('rg_s2_plugin_do_activation_redirect', true);
|
84 |
}
|
85 |
if( file_exists(plugin_dir_path( __FILE__ ).'/readygraph-extension.php' )) {
|
@@ -108,5 +109,19 @@ function s2_rrmdir($dir) {
|
|
108 |
$setting_url="admin.php?page=s2";
|
109 |
echo'<script> window.location="'.admin_url($setting_url).'"; </script> ';
|
110 |
}
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
?>
|
3 |
Plugin Name: Subscribe2
|
4 |
Plugin URI: http://subscribe2.wordpress.com
|
5 |
Description: Notifies an email list when new entries are posted.
|
6 |
+
Version: 10.15
|
7 |
+
Author: Matthew Robinson, Tanay Lakhani
|
8 |
Author URI: http://subscribe2.wordpress.com
|
9 |
Licence: GPL3
|
10 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904
|
55 |
|
56 |
// our version number. Don't touch this or any line below
|
57 |
// unless you know exactly what you are doing
|
58 |
+
define( 'S2VERSION', '10.15' );
|
59 |
define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
|
60 |
define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
|
61 |
define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
|
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' )) {
|
109 |
$setting_url="admin.php?page=s2";
|
110 |
echo'<script> window.location="'.admin_url($setting_url).'"; </script> ';
|
111 |
}
|
112 |
+
function s2_delete_rg_options() {
|
113 |
+
delete_option('readygraph_access_token');
|
114 |
+
delete_option('readygraph_application_id');
|
115 |
+
delete_option('readygraph_refresh_token');
|
116 |
+
delete_option('readygraph_email');
|
117 |
+
delete_option('readygraph_settings');
|
118 |
+
delete_option('readygraph_delay');
|
119 |
+
delete_option('readygraph_enable_sidebar');
|
120 |
+
delete_option('readygraph_auto_select_all');
|
121 |
+
delete_option('readygraph_enable_notification');
|
122 |
+
delete_option('readygraph_enable_branding');
|
123 |
+
delete_option('readygraph_send_blog_updates');
|
124 |
+
delete_option('readygraph_send_real_time_post_updates');
|
125 |
+
delete_option('readygraph_popup_template');
|
126 |
+
}
|
127 |
?>
|