type . '-control', $assets_uri . 'styles.css' ); wp_enqueue_style( $this->type . '-control-tippy', $assets_uri . 'tippy.min.css' ); wp_enqueue_script( $this->type . '-control', $assets_uri . 'scripts.js' ); wp_enqueue_script( $this->type . '-control-tippy', $assets_uri . 'tippy.min.js' ); $gf_query_args = array( 'family' => 'Hind:300,400,500', 'subset' => 'latin', ); wp_enqueue_style( 'google_fonts', add_query_arg( $gf_query_args, "//fonts.googleapis.com/css" ), array(), null ); } /** * Render the control's content. */ public function render_content() { echo '

' . esc_html( $this->label ) . '

'; $scfs = new Sc_Fs(); foreach ( $this->buttons as $key => $value ) { $icon_path = BSTONE_SC_URI . '/assets/icons/' . esc_attr( $key ) . '.svg'; $icon = ''; if ( file_exists( $icon_path ) ) { $icon = $scfs->get_contents( $icon_path ); if ( $scfs->get_error_codes() || ! $icon ) { $icon = ''; } } // @codingStandardsIgnoreLine echo ''; if ( ! $this->button_only ) { echo '
'; } } } }