Skip to content

Commit dc8dc62

Browse files
authored
Merge pull request #232 from contactashish13/issue-227
Data editing/adding, auto-open "add data manually"
2 parents 1f28bec + 5891c2f commit dc8dc62

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

classes/Visualizer/Render/Page/Data.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,13 @@ class="dashicons dashicons-lock"></span></h2>
216216
</div>
217217
</li>
218218

219-
<li class="viz-group <?php echo apply_filters( 'visualizer_pro_upsell_class', 'only-pro-feature' ); ?>">
219+
<?php
220+
// we will auto-open the manual data feature but only when pro is active.
221+
$pro_class = apply_filters( 'visualizer_pro_upsell_class', 'only-pro-feature' );
222+
?>
223+
<li class="viz-group <?php echo $pro_class; ?> <?php echo empty( $pro_class ) ? 'open' : ''; ?> ">
220224
<h2 class="viz-group-title viz-sub-group visualizer-editor-tab"
221-
data-current="chart"><?php _e( 'Add data manually', 'visualizer' ); ?><span
225+
data-current="chart"><?php _e( 'Manual Data', 'visualizer' ); ?><span
222226
class="dashicons dashicons-lock"></span></h2>
223227
<form id="editor-form" action="<?php echo $upload_link; ?>" method="post" target="thehole">
224228
<input type="hidden" id="chart-data" name="chart_data">

0 commit comments

Comments
 (0)