From d9888842b6938401d6753b63ec09569531660eef Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Sat, 19 Feb 2022 16:43:54 -0500 Subject: [PATCH] Update CogIcon for redesign --- cogicon.svg | 9 ++++++++- cognito-forms.php | 2 +- src/assets/cogicon.svg | 1 - src/components/preview-form.tsx | 2 +- src/edit.tsx | 2 +- src/index.tsx | 2 +- tinymce/cogicon.png | Bin 4046 -> 5710 bytes 7 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 src/assets/cogicon.svg 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 279ebd94d5812c3758417ef806ebdd049aed75b3..8f1c82a894c99c337575d55889ec62fd63d93422 100644 GIT binary patch literal 5710 zcmV-U7P0AxP)-4m>vOC=;!$aj(t}08a#~L>Rt1M3;=R@j3W#?k37JW_ z$t@s6$bFKTz1R6;f(4p{Wbd^nL*V@@&og`d*2-SrUVH7ezVBOtZcM=ExfID2Kz{_8 zND`5xBX9#LKx)gSwLm?RCIp8OgpgDLl>+&qXGQsIUG+cMjkBv8U@MZjz-29eM-i=F znE_;c^PBwF4-zp1=(Yx+b#(*mLe4`2E>s{jM*46l(1}aBtpSvOkvj@VS0L3hXn67! z=)@)6)&S5Lt4c};sZ1;0=)MLZ7^6x`N})_E-srXlAW_(9g6}EQiZi;U0aQ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