File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
classes/Visualizer/Render/Page Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,12 @@ protected function _toHTML() {
54
54
protected function _renderContent () {
55
55
echo '<div id="type-picker"> ' ;
56
56
foreach ( $ this ->types as $ type => $ array ) {
57
- echo '<div class="type-box type-box- ' , $ type , '"> ' ;
57
+ // add classes to each box that identifies the libraries this chart type supports.
58
+ $ lib_classes = '' ;
59
+ foreach ( $ array ['supports ' ] as $ lib ) {
60
+ $ lib_classes .= ' type-lib- ' . str_replace ( ' ' , '' , $ lib );
61
+ }
62
+ echo '<div class="type-box type-box- ' , $ type , $ lib_classes , '"> ' ;
58
63
if ( ! $ array ['enabled ' ] ) {
59
64
echo "<a class='pro-upsell' href=' " . Visualizer_Plugin::PRO_TEASER_URL . "' target='_blank'> " ;
60
65
echo "<span class='visualizder-pro-label'> " . __ ( 'PREMIUM ' , 'visualizer ' ) . '</span> ' ;
You can’t perform that action at this time.
0 commit comments