| @@ -1,17 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * Docs page template | |
| 4 | - */ | |
| 5 | -$is_pro = Visualizer_Module::is_pro(); | |
| 6 | - | |
| 7 | -if ( | |
| 8 | - $_SERVER['REQUEST_METHOD'] === 'POST' && | |
| 9 | - isset( $_POST['_wpnonce']) && | |
| 10 | - wp_verify_nonce( $_POST['_wpnonce'], 'visualizer-feature-usage') | |
| 11 | -) { | |
| 12 | - update_option( 'visualizer_logger_flag', isset( $_POST['visualizer_logger_flag']) ? 'yes' : 'no'); | |
| 13 | -} | |
| 2 | + $is_pro = Visualizer_Module::is_pro(); | |
| 14 | 3 | ?> |
| 15 | 4 | <div class="pro-feature"> |
| 16 | 5 | <div class="pro-feature-inner"> |
| 17 | 6 | <div class="pro-feature-features"> |
| @@ -30,9 +19,9 @@ | ||
| 30 | 19 | <?php } ?> |
| 31 | 20 | </ul> |
| 32 | 21 | |
| 33 | 22 | <?php if ( ! $is_pro ) { ?> |
| 34 | - <p>We have many more features and charts, and offer email & chat support if you purchase our <a href="<?php echo tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'docscard' ); ?>" target="_blank">Pro Version</a>.</p> | |
| 23 | + <p>We have many more features and charts, and offer email & chat support if you purchase our <a href="<?php echo Visualizer_Plugin::PRO_TEASER_URL; ?>" target="_blank">Pro Version</a>.</p> | |
| 35 | 24 | <?php } ?> |
| 36 | 25 | |
| 37 | 26 | <p>Ready to begin? Let's <a href="<?php echo admin_url( 'admin.php?page=' . Visualizer_Plugin::NAME . '&vaction=addnew' ); ?>">create a chart</a> or <a href="<?php echo VISUALIZER_DEMO_URL; ?>" target="_blank">view a demo</a>! |
| 38 | 27 | </div> |
| @@ -59,24 +48,8 @@ | ||
| 59 | 48 | </div> |
| 60 | 49 | </div> |
| 61 | 50 | <div class="clear"></div> |
| 62 | 51 | |
| 63 | - <div class="pro-feature"> | |
| 64 | - <div class="pro-feature-inner"> | |
| 65 | - <div class="pro-feature-features"> | |
| 66 | - <h2>Feature Usage</h2> | |
| 67 | - <form method="post"> | |
| 68 | - <?php wp_nonce_field( 'visualizer-feature-usage' ); ?> | |
| 69 | - <p> | |
| 70 | - <input type="checkbox" id="visualizer_feature_usage" name="visualizer_logger_flag" value="1" <?php checked( get_option( 'visualizer_logger_flag' ), 'yes' ); ?> /> | |
| 71 | - <label for="visualizer_feature_usage">Help us improve Visualizer by sending us anonymous usage data. This will help us understand how you use the plugin and what features are most important to you.</label> | |
| 72 | - </p> | |
| 73 | - <p><input type="submit" class="button button-primary" value="Save" /></p> | |
| 74 | - </form> | |
| 75 | - </div> | |
| 76 | - </div> | |
| 77 | - </div> | |
| 78 | - <div class="clear"></div> | |
| 79 | 52 | |
| 80 | 53 | <div class="pro-feature"> |
| 81 | 54 | <div class="pro-feature-inner"> |
| 82 | 55 | <div class="pro-feature-features"> |