| 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 |
} |
| 14 |
?> |
| 15 |
<div class="pro-feature"> |
| 16 |
<div class="pro-feature-inner"> |
| 17 |
<div class="pro-feature-features"> |
| 18 |
<h2>Welcome to Visualizer!</h2> |
| 19 |
<p>Visualizer lets you easily create and customize responsive tables and charts so you can share your data effectively to your users.</p> |
| 20 |
<p>With this version, you can already:</p> |
| 21 |
|
| 22 |
<ul style="list-style: disc; list-style-position: inside;"> |
| 23 |
<li>Create an unlimited number of tables and charts</li> |
| 24 |
<li>Manually edit the data used by any graphs and tables</li> |
| 25 |
<li>Import data from a URL or file</li> |
| 26 |
<li>Fully customize the design and behavior of your tables and charts</li> |
| 27 |
<?php if ( $is_pro ) { ?> |
| 28 |
<li>Schedule regular updates to your charts</li> |
| 29 |
<li>Import from the database or other charts</li> |
| 30 |
<?php } ?> |
| 31 |
</ul> |
| 32 |
|
| 33 |
<?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> |
| 35 |
<?php } ?> |
| 36 |
|
| 37 |
<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 |
</div> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
<div class="clear"></div> |
| 42 |
|
| 43 |
<div class="pro-feature"> |
| 44 |
<div class="pro-feature-inner"> |
| 45 |
<div class="pro-feature-features"> |
| 46 |
<h2>Documentation</h2> |
| 47 |
<p>To get started with Visualizer, we recommend you first bookmark our main documentation page <a href="<?php echo VISUALIZER_MAIN_DOC; ?>" target="_blank">here</a>.</p> |
| 48 |
|
| 49 |
<p> |
| 50 |
Notably, you could take a look at this first introductory tutorial: <a href="https://docs.themeisle.com/article/597-create-chart" target="_blank">How to create my first chart</a>. |
| 51 |
</p> |
| 52 |
|
| 53 |
<p>If you prefer learning through video, this could prove useful. It is a little dated however.</p> |
| 54 |
</div> |
| 55 |
<div class="pro-feature-image"> |
| 56 |
<iframe width="500" height="235" src="https://www.youtube.com/embed/hQO_evnb_tQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |
| 57 |
</div> |
| 58 |
<div class="clear"></div> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
<div class="clear"></div> |
| 62 |
|
| 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 |
|
| 80 |
<div class="pro-feature"> |
| 81 |
<div class="pro-feature-inner"> |
| 82 |
<div class="pro-feature-features"> |
| 83 |
<h2>Need help?</h2> |
| 84 |
<?php if ( ! $is_pro ) { ?> |
| 85 |
<p>Our support channel for users of the free version can be found <a href="https://wordpress.org/support/plugin/visualizer/" target="_blank">here</a>.</p> |
| 86 |
<?php } else { ?> |
| 87 |
<p>Contact our premium support by logging in to your account <a href="https://store.themeisle.com/login/" target="_blank">here</a>.</p> |
| 88 |
<?php } ?> |
| 89 |
</div> |
| 90 |
<div class="clear"></div> |
| 91 |
</div> |
| 92 |
</div> |
| 93 |
<div class="clear"></div> |
| 94 |
|