true, 'colors' => [ '#FFFFFF', '#FAFAFA', '#303F9F', '#3F51B5', '#C5CAE9', '#FFFFFF', '#448AFF', '#0049C4', '#363636', '#757575', '#E6E6E6', ], ] ); } /** * Enqueue scripts and styles to front end. * * @since 1.0.1 */ public function enqueue_front() { wp_enqueue_style( 'aamla_gutenberg_style', get_template_directory_uri() . '/add-on/gutenberg/assets/gutenberg.css', [], false, 'all' ); } /** * Enqueue scripts and styles to admin. * * @since 1.0.1 */ public function enqueue_admin() { // Add custom fonts, used in the main stylesheet. wp_enqueue_style( 'aamla-fonts', esc_url( aamla_font_url() ), [], false, 'all' ); // Add custom styles for gutenberg admin screen. wp_enqueue_style( 'aamla_gutenberg_admin_style', get_template_directory_uri() . '/add-on/gutenberg/admin/gutenberg.css', [], false, 'all' ); wp_add_inline_style( 'aamla_gutenberg_admin_style', $this->gutenberg_css() ); } /** * Add gutenberg inline styles to editor screen. * * @since 1.0.1 */ public function gutenberg_css() { /** * Filter inline styles to be injected to Gutenberg Editor screen. * * @since 1.0.1 * * @param string $css String of inline styles or empty string. */ $css = apply_filters( 'aamla_gutenberg_styles', '' ); if ( ! $css ) { return ''; } return aamla_prepare_css( $css ); } } GutenBerg::init();