Removed Redux Panel Tracking

This commit is contained in:
ultimatemember
2015-01-03 16:57:19 +02:00
parent a06b54ab28
commit 6d4baf7618
3 changed files with 5 additions and 82 deletions
@@ -76,14 +76,6 @@
update_option( 'redux-framework-tracking', $this->options );
}
if ( isset( $_GET['page'] ) && $_GET['page'] == $this->parent->args['page_slug'] ) {
if ( ! isset( $this->options['allow_tracking'] ) ) {
add_action( 'admin_enqueue_scripts', array( $this, '_enqueue_tracking' ) );
} else if ( ! isset( $this->options['tour'] ) && ( $this->parent->args['dev_mode'] == "true" || $this->parent->args['page_slug'] == "redux_demo" ) ) {
add_action( 'admin_enqueue_scripts', array( $this, '_enqueue_newsletter' ) );
}
}
$hash = md5( trailingslashit( network_site_url() ) . '-redux' );
add_action( 'wp_ajax_nopriv_' . $hash, array( $this, 'tracking_arg' ) );
add_action( 'wp_ajax_' . $hash, array( $this, 'tracking_arg' ) );
@@ -92,78 +84,6 @@
add_action( 'wp_ajax_nopriv_' . $hash, array( $this, 'support_args' ) );
add_action( 'wp_ajax_' . $hash, array( $this, 'support_args' ) );
if ( isset( $this->options['allow_tracking'] ) && $this->options['allow_tracking'] == true ) {
// The tracking checks daily, but only sends new data every 7 days.
if ( ! wp_next_scheduled( 'redux_tracking' ) ) {
wp_schedule_event( time(), 'daily', 'redux_tracking' );
}
add_action( 'redux_tracking', array( $this, 'tracking' ) );
}
}
function _enqueue_tracking() {
wp_enqueue_style( 'wp-pointer' );
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'jquery-ui' );
wp_enqueue_script( 'wp-pointer' );
wp_enqueue_script( 'utils' );
add_action( 'admin_print_footer_scripts', array( $this, 'tracking_request' ) );
}
function _enqueue_newsletter() {
wp_enqueue_style( 'wp-pointer' );
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'jquery-ui' );
wp_enqueue_script( 'wp-pointer' );
wp_enqueue_script( 'utils' );
add_action( 'admin_print_footer_scripts', array( $this, 'newsletter_request' ) );
}
/**
* Shows a popup that asks for permission to allow tracking.
*/
function tracking_request() {
$id = '#wpadminbar';
$nonce = wp_create_nonce( 'redux_activate_tracking' );
$content = '<h3>' . __( 'Help improve Our Panel', 'redux-framework' ) . '</h3>';
$content .= '<p>' . __( 'Please helps us improve our panel by allowing us to gather anonymous usage stats so we know which configurations, plugins and themes to test to ensure compatibility.', 'redux-framework' ) . '</p>';
$opt_arr = array(
'content' => $content,
'position' => array( 'edge' => 'top', 'align' => 'center' )
);
$button2 = __( 'Allow tracking', 'redux-framework' );
$function2 = 'redux_store_answer("yes","' . $nonce . '")';
$function1 = 'redux_store_answer("no","' . $nonce . '")';
$this->print_scripts( $id, $opt_arr, __( 'Do not allow tracking', 'redux-framework' ), $button2, $function2, $function1 );
}
/**
* Shows a popup that asks for permission to allow tracking.
*/
function newsletter_request() {
$id = '#wpadminbar';
$nonce = wp_create_nonce( 'redux_activate_tracking' );
$content = '<h3>' . __( 'Welcome to the Redux Demo Panel', 'redux-framework' ) . '</h3>';
$content .= '<p><strong>' . __( 'Getting Started', 'redux-framework' ) . '</strong><br>' . sprintf( __( 'This panel demonstrates the many features of Redux. Before digging in, we suggest you get up to speed by reviewing %1$s.', 'redux-framework' ), '<a href="' . 'http://' . 'docs.reduxframework.com/redux-framework/getting-started/" target="_blank">' . __( 'our documentation', 'redux-framework' ) . '</a>' );
$content .= '<p><strong>' . __( 'Redux Generator', 'redux-framework' ) . '</strong><br>' . sprintf( __( 'Want to get a head start? Use the %1$s. It will create a customized boilerplate theme or a standalone admin folder complete with all things Redux (with the help of Underscores and TGM). Save yourself a headache and try it today.', 'redux-framework' ), '<a href="' . 'http://' . 'generate.reduxframework.com/" target="_blank">' . __( 'Redux Generator', 'redux-framework' ) . '</a>' );
$content .= '<p><strong>' . __( 'Redux Extensions', 'redux-framework' ) . '</strong><br>' . sprintf( __( 'Did you know we have extensions, which greatly enhance the features of Redux? Visit our %1$s to learn more!', 'redux-framework' ), '<a href="' . 'http://' . 'reduxframework.com/extensions/" target="_blank">' . __( 'extensions directory', 'redux-framework' ) . '</a>' );
$content .= '<p><strong>' . __( 'Like Redux?', 'redux-framework' ) . '</strong><br>' . sprintf( __( 'If so, please %1$s and consider making a %2$s to keep development of Redux moving forward.', 'redux-framework' ), '<a target="_blank" href="' . 'http://' . 'wordpress.org/support/view/plugin-reviews/redux-framework">' . __( 'leave us a favorable review on WordPress.org', 'redux-framework' ) . '</a>', '<a href="' . 'https://' . 'www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=N5AD7TSH8YA5U" target="_blank">' . __( 'donation', 'redux-framework' ) . '</a>' );
$content .= '<p><strong>' . __( 'Newsletter', 'redux-framework' ) . '</strong><br>' . __( 'If you\'d like to keep up to with all things Redux, please subscribe to our newsletter', 'redux-framework' ) . ':</p>';
$content .= '<form action="' . 'http://' . 'reduxframework.us7.list-manage2.com/subscribe/post?u=564f5178f6cc288064f332efd&amp;id=ace5bbc1f9&SOURCE=panel" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate><p style="text-align: center;"><label for="mce-EMAIL">' . __( 'Email address', 'redux-framework' ) . ' </label><input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"><input type="hidden" value="panel" name="SOURCE">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="' . __( 'Subscribe', 'redux-framework' ) . '" name="subscribe" id="mc-embedded-subscribe" class="button button-primary"></p></form>';
$opt_arr = array(
'content' => $content,
'position' => array( 'edge' => 'top', 'align' => 'center' ),
'pointerWidth' => 450
);
$function1 = 'redux_store_answer("tour","' . $nonce . '")';
$this->print_scripts( $id, $opt_arr, __( 'Close', 'redux-framework' ), false, '', $function1 );
}
/**
+4 -1
View File
@@ -269,7 +269,10 @@
top: 1px;
}
.um-member-connect a:hover {opacity: 1}
.um-member-connect a:hover {
opacity: 1;
color: #fff;
}
/*
- Members pagination
+1 -1
View File
@@ -30,7 +30,7 @@
position: fixed;
right: 0;
top: 0;
font-size: 24px;
font-size: 22px;
text-decoration: none !important;
color: #fff !important;
padding: 5px 10px;