Skip to content

Commit 561ae4e

Browse files
Hide chart libary select box Codeinwp/visualizer-pro#313
1 parent 7182392 commit 561ae4e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

classes/Visualizer/Render/Page/Types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function _renderToolbar() {
120120

121121
if ( ! empty( $libraries ) ) {
122122
?>
123-
<select name="chart-library" class="viz-select-library" data-type-vs-library="<?php echo esc_attr( json_encode( $type_vs_library ) ); ?>">
123+
<select name="chart-library" class="viz-select-library<?php echo ! Visualizer_Module_Admin::proFeaturesLocked() ? ' viz-hide-libary' : ''; ?>" data-type-vs-library="<?php echo esc_attr( json_encode( $type_vs_library ) ); ?>">
124124
<option value=""><?php esc_html_e( 'Use Library', 'visualizer' ); ?></option>
125125
<?php
126126
foreach ( $libraries as $library ) {

css/frame.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,9 @@ button#editor-chart-button {
806806
.viz-select-library {
807807
color: #0085ba;
808808
}
809+
.viz-select-library.viz-hide-libary {
810+
display: none;
811+
}
809812

810813
.viz-select-library option:first-child {
811814
font-weight: bold;

0 commit comments

Comments
 (0)