diff --git a/cogicon.svg b/cogicon.svg index cec5304..0879d26 100644 --- a/cogicon.svg +++ b/cogicon.svg @@ -1 +1,8 @@ - + + + cogicon + + + + + diff --git a/cognito-forms.php b/cognito-forms.php index d1dceea..056d639 100644 --- a/cognito-forms.php +++ b/cognito-forms.php @@ -192,7 +192,7 @@ if ( !class_exists( 'CognitoFormsPlugin' ) ) { // Initialize administration menu (left sidebar) public function admin_menu() { - add_menu_page( 'Cognito Forms', 'Cognito Forms', 'manage_options', 'Cognito', array( $this, 'main_page' ), "data:image/svg+xml;base64," . base64_encode( '' ) ); + add_menu_page( 'Cognito Forms', 'Cognito Forms', 'manage_options', 'Cognito', array( $this, 'main_page' ), "data:image/svg+xml;base64," . base64_encode( file_get_contents( plugin_dir_path( __FILE__ ) . 'cogicon.svg' ) ) ); add_submenu_page( 'Cognito', 'Cognito Forms', 'View Forms', 'manage_options', 'Cognito', array( $this, 'main_page' ) ); add_submenu_page( 'Cognito', 'Create Form', 'New Form', 'manage_options', 'CognitoCreateForm', array( $this, 'main_page' ) ); add_submenu_page( 'Cognito', 'Templates', 'Templates', 'manage_options', 'CognitoTemplates', array( $this, 'main_page' ) ); diff --git a/src/assets/cogicon.svg b/src/assets/cogicon.svg deleted file mode 100644 index 7fa4932..0000000 --- a/src/assets/cogicon.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/preview-form.tsx b/src/components/preview-form.tsx index 8c07129..c1afb82 100644 --- a/src/components/preview-form.tsx +++ b/src/components/preview-form.tsx @@ -7,7 +7,7 @@ import * as _ from 'lodash'; import { Spinner } from '@wordpress/components'; import { baseUrl } from '@/globals'; -import { ReactComponent as CogIcon } from '@/assets/cogicon.svg'; +import { ReactComponent as CogIcon } from '@/../cogicon.svg'; interface IPreviewProps { embedCode: string; diff --git a/src/edit.tsx b/src/edit.tsx index 086802e..b6e0968 100644 --- a/src/edit.tsx +++ b/src/edit.tsx @@ -17,7 +17,7 @@ import { BlockControls, InspectorControls } from '@wordpress/block-editor'; import { IBlockAttributes, EmbedMode, IForm } from '@/types'; import { baseUrl } from './globals'; -import { ReactComponent as CogIcon } from '@/assets/cogicon.svg'; +import { ReactComponent as CogIcon } from '@/../cogicon.svg'; import SelectDialog from '@/components/select-dialog'; import PreviewForm from '@/components/preview-form'; diff --git a/src/index.tsx b/src/index.tsx index 4ffbc21..4de720c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -17,7 +17,7 @@ import Save from './save'; import './styles/editor.scss'; import './styles/style.scss'; -import { ReactComponent as CogIcon } from './assets/cogicon.svg'; +import { ReactComponent as CogIcon } from '@/../cogicon.svg'; registerBlockType( 'cognito-forms/cognito-embed', { title: 'Cognito Forms', diff --git a/tinymce/cogicon.png b/tinymce/cogicon.png index 279ebd9..8f1c82a 100644 Binary files a/tinymce/cogicon.png and b/tinymce/cogicon.png differ