'', 'show_print_icon' => true ]; } public function render( $attributes, $content ) { $this->views( 'widgets/content' ); } public function view_params() { $toc_setting = get_transient( 'betterdocs_toc_setting' ); $htags = ( $toc_setting ) ? implode( ',', $toc_setting['htags'] ) : ''; $enable_toc = ( $htags ) ? 1 : ''; return [ 'wrapper_attr' => [ 'class' => [ 'betterdocs-entry-content' ] ], 'enable' => $this->attributes['show_print_icon'], 'enable_toc' => $enable_toc, 'htags' => $htags ]; } }