@@ -489,7 +489,7 @@ private static function _renderPermissions( $args ) {
489
489
$ permissions ['edit-specific ' ] = 'administrator ' ;
490
490
}
491
491
492
- Visualizer_Render_Sidebar::_renderGroupStart ( esc_html__ ( 'Permissions ' , 'visualizer ' ) . '<span class="dashicons dashicons-lock"></span> ' , '' , apply_filters ( 'visualizer_pro_upsell_class ' , 'only-pro-feature ' , 'chart-permissions ' ), " vz-permissions " );
492
+ Visualizer_Render_Sidebar::_renderGroupStart ( esc_html__ ( 'Permissions ' , 'visualizer ' ) . '<span class="dashicons dashicons-lock"></span> ' , '' , apply_filters ( 'visualizer_pro_upsell_class ' , 'only-pro-feature ' , 'chart-permissions ' ), ' vz-permissions ' );
493
493
echo '<div style="position: relative"> ' ;
494
494
Visualizer_Render_Sidebar::_renderSectionStart ();
495
495
Visualizer_Render_Sidebar::_renderSectionDescription ( esc_html__ ( 'Configure permissions for the chart. ' , 'visualizer ' ) );
@@ -592,16 +592,24 @@ public static function _renderTabAdvanced( $args ) {
592
592
*
593
593
* @access public
594
594
*/
595
- public static function _renderTabDocs ( $ args ) {
595
+ public static function _renderTabHelp ( $ args ) {
596
+ $ chart_id = $ args [1 ];
597
+ $ type = get_post_meta ( $ chart_id , Visualizer_Plugin::CF_CHART_TYPE , true );
598
+ if ( $ type === 'dataTable ' ) {
599
+ $ type = 'table ' ;
600
+ }
596
601
?>
597
602
<ul class="viz-group-wrapper full-height">
598
- <li class="viz-group open" id="vz-chart-documents ">
603
+ <li class="viz-group open" id="vz-chart-help ">
599
604
<ul class="viz-group-wrapper">
600
605
<?php
601
- Visualizer_Render_Sidebar::_renderGroupStart ( esc_html__ ( 'General ' , 'visualizer ' ) );
606
+ Visualizer_Render_Sidebar::_renderGroupStart ( esc_html__ ( 'Documentation ' , 'visualizer ' ) );
607
+ Visualizer_Render_Sidebar::_renderSectionStart ( esc_html__ ( 'General ' , 'visualizer ' ), false );
602
608
?>
603
- <h2><a href="<?php echo VISUALIZER_MAIN_DOC ; ?> " target="_blank"><?php _e ( 'Index of all documents ' , 'visualizer ' ); ?> </a></h2>
609
+ <h4><span class="dashicons dashicons-editor-help"></span><a href="<?php echo VISUALIZER_MAIN_DOC ; ?> " target="_blank"><?php _e ( 'Main documentation page ' , 'visualizer ' ); ?> </a></h4>
610
+ <h4><span class="dashicons dashicons-search"></span><a href="<?php echo str_replace ( '# ' , $ type , VISUALIZER_DOC_COLLECTION ); ?> " target="_blank"><?php echo sprintf ( __ ( 'Articles containing "%s" ' , 'visualizer ' ), $ type ); ?> </a></h4>
604
611
<?php
612
+ Visualizer_Render_Sidebar::_renderSectionEnd ();
605
613
Visualizer_Render_Sidebar::_renderGroupEnd ();
606
614
?>
607
615
</ul>
0 commit comments