Update CogIcon for redesign
This commit is contained in:
parent
9a72704d02
commit
d9888842b6
|
@ -1 +1,8 @@
|
|||
<svg id="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><defs><style>.cls-1{fill:#d85427;}.cls-2{fill:#fff;}</style></defs><g id="cogicon"><path id="cogicon__cog" class="cls-1" d="M5,14.19l1.54-1.06a4.89,4.89,0,0,0,1.31.56l.33,1.81H9.81l.33-1.86a5.38,5.38,0,0,0,1.34-.54L13,14.15,14.16,13,13.1,11.47a5.46,5.46,0,0,0,.57-1.34L15.5,9.8V8.17l-1.83-.32a5.21,5.21,0,0,0-.56-1.33L14.16,5,13,3.83,11.48,4.91a8.28,8.28,0,0,0-1.32-.54L9.82,2.5H8.19L7.85,4.37a4.87,4.87,0,0,0-1.3.53L5,3.84,3.87,4.92l1,1.64a4.53,4.53,0,0,0-.54,1.31L2.5,8.2V9.84l1.86.34a5,5,0,0,0,.55,1.3L3.87,13Z"/><path id="cogicon__c" class="cls-2" d="M8,10.1a1.33,1.33,0,0,0,1,.42,1.37,1.37,0,0,0,1-.37,1.51,1.51,0,0,0,.33-.56l1.54.29.5.11s-.15.41-.15.41a3.84,3.84,0,0,1-.83,1.21A3.23,3.23,0,0,1,9,12.48,3.4,3.4,0,0,1,5.56,9.16V9a3.34,3.34,0,0,1,1-2.49,3.38,3.38,0,0,1,2.51-1,3.2,3.2,0,0,1,2.43,1,3.15,3.15,0,0,1,.67,1,2.54,2.54,0,0,1,.19.59l-2,.36A1.33,1.33,0,0,0,9,7.49a1.34,1.34,0,0,0-1,.43A1.6,1.6,0,0,0,7.57,9,1.53,1.53,0,0,0,8,10.1Z"/></g></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg fill="none" version="1.1" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
||||
<title>cogicon</title>
|
||||
<g id="cogicon">
|
||||
<path id="cogicon__cog" d="m20.002 0c-1.3231 0-2.6464 0.15454-2.6496 0.15491l-1.1226 4.8043a15.412 15.412 0 0 0-4.1968 1.7383l-4.1907-2.6034s-1.0463 0.82704-1.9837 1.7644c-0.93634 0.93737-1.7644 1.9817-1.7644 1.9817l2.6034 4.1927a15.412 15.412 0 0 0-1.7383 4.1947l-4.8043 1.1226s-0.15491 1.327-0.15491 2.6516 0.15491 2.6476 0.15491 2.6476l4.8043 1.1226a15.412 15.412 0 0 0 1.7383 4.1968l-2.6034 4.1907s0.82704 1.0463 1.7644 1.9837c0.93737 0.93634 1.9817 1.7644 1.9817 1.7644l4.1927-2.6054a15.413 15.413 0 0 0 4.1947 1.7403l1.1226 4.8043s1.327 0.1529 2.6516 0.1529 2.6476-0.1529 2.6476-0.1529l1.1226-4.8043a15.411 15.411 0 0 0 4.1968-1.7403l4.1907 2.6054s1.0463-0.82704 1.9837-1.7644c0.93634-0.93737 1.7644-1.9817 1.7644-1.9817l-2.6054-4.1927a15.411 15.411 0 0 0 1.7403-4.1968l4.8043-1.1226s0.1529-1.3229 0.1529-2.6476-0.1529-2.6496-0.1529-2.6496l-4.8043-1.1226a15.411 15.411 0 0 0-1.7403-4.1968l2.6054-4.1907a26.133 26.133 0 0 0-1.7644-1.9837c-0.93737-0.93634-1.9817-1.7644-1.9817-1.7644l-4.1927 2.6034c-1.2886-0.77359-2.7001-1.3643-4.1968-1.7383l-1.1226-4.8043s-1.3229-0.15491-2.6476-0.15491zm-0.09053 8.6832a10.861 10.861 0 0 1 6.1422 1.8851 11.066 11.066 0 0 1 3.9714 4.8245c0.08344 0.2225 0.16805 0.41728 0.25148 0.63978l-5.6976 1.4687c-0.11125-0.24928-0.24923-0.4716-0.38829-0.6941a5.1009 5.1009 0 0 0-2.2493-1.857c-0.61186-0.25031-1.2808-0.38829-2.0018-0.38829a5.3646 5.3646 0 0 0-2.8629 0.88723 5.0958 5.0958 0 0 0-1.861 2.2473c-0.25031 0.60981-0.38829 1.2747-0.38829 1.9958a5.3399 5.3399 0 0 0 0.88925 2.8569 5.4306 5.4306 0 0 0 2.2774 1.8851 5.2472 5.2472 0 0 0 1.9998 0.38829 5.3636 5.3636 0 0 0 2.8629-0.88724 5.1885 5.1885 0 0 0 1.8067-2.1346l5.6956 1.525c-0.33272 0.91574-0.75014 1.7462-1.2775 2.5229a11.078 11.078 0 0 1-4.8365 3.9654c-1.3329 0.55521-2.7764 0.85907-4.2772 0.85907-2.2775 0-4.3891-0.69229-6.1402-1.8851a11.066 11.066 0 0 1-3.9734-4.8245c-0.55521-1.3309-0.86108-2.7735-0.86108-4.2712a10.812 10.812 0 0 1 1.8891-6.1282 11.077 11.077 0 0 1 4.8345-3.9674c1.3051-0.55418 2.7496-0.85776 4.1948-0.91339z" fill="#000" />
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.2 KiB |
|
@ -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( '<?xml version="1.0" encoding="UTF-8"?><svg id="icon" version="1.1" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="m8.0125 1.0813-0.41402 2.2771a5.9329 5.9329 0 0 0-1.5823 0.6472l-1.8893-1.292-1.3777 1.3158 1.2183 1.9987a5.5187 5.5187 0 0 0-0.65672 1.5942l-2.2295 0.40212v1.9987l2.2652 0.41402a6.0913 6.0913 0 0 0 0.671 1.5847l-1.2682 1.8512 1.3777 1.4491 1.875-1.2896a5.9573 5.9573 0 0 0 1.5966 0.68052l0.40212 2.2057h1.9868l0.40212-2.2652a6.5543 6.5543 0 0 0 1.6323-0.6591l1.8512 1.2801 1.4134-1.4015-1.292-1.8631a6.6517 6.6517 0 0 0 0.69479-1.6323l2.2295-0.40212v-1.9868l-2.2295-0.39023a6.3472 6.3472 0 0 0-0.68289-1.6204l1.2801-1.8512-1.4134-1.4253-1.8512 1.3158a10.087 10.087 0 0 0-1.6085-0.6591l-0.41402-2.2771zm1.0731 3.6667a3.8984 3.8984 0 0 1 2.96 1.2183 3.8375 3.8375 0 0 1 0.81614 1.2183 3.0944 3.0944 0 0 1 0.2308 0.71859l-2.4365 0.44019a1.6203 1.6203 0 0 0-1.6561-1.1826 1.6325 1.6325 0 0 0-1.2183 0.52347 1.9492 1.9492 0 0 0-0.52347 1.3158 1.8639 1.8639 0 0 0 0.52347 1.3396 1.6203 1.6203 0 0 0 1.2183 0.51158 1.669 1.669 0 0 0 1.2183-0.44971 1.8396 1.8396 0 0 0 0.40212-0.6829l1.875 0.35453 0.60913 0.13325-0.18084 0.49968a4.6781 4.6781 0 0 1-1.0113 1.4729 3.935 3.935 0 0 1-2.9124 1.0612 4.1421 4.1421 0 0 1-4.1902-4.045v-0.19511a4.069 4.069 0 0 1 1.2183-3.0338 4.1177 4.1177 0 0 1 3.0576-1.2183z" stroke-width="1.2183"/></svg>' ) );
|
||||
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' ) );
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<svg version="1.1" viewBox="-4.6 230 110.9 111" xmlns="http://www.w3.org/2000/svg"><path id="path4" class="st0" d="M 48.599609 0 L 45.699219 16 C 41.699219 17.1 37.999609 18.4 34.599609 20.5 L 21.5 11.5 L 11.699219 20.699219 L 20.599609 34.699219 C 18.399609 38.199219 16.9 41.900391 16 45.900391 L 0 48.699219 L 0 62.699219 L 15.900391 65.599609 C 17.000391 69.699609 18.499219 73.4 20.699219 77 C 20.699219 77 21.199609 77.9 20.599609 77 L 20.5 76.900391 L 11.5 90 L 21.300781 99.800781 L 34.5 90.800781 C 38 93.000781 41.699219 94.499609 45.699219 95.599609 L 48.5 111 L 62.400391 111 L 65.199219 95.099609 C 69.199219 94.099609 73.099609 92.5 76.599609 90.5 L 89.699219 99.5 L 99.5 89.699219 L 90.5 76.599609 C 92.6 73.099609 94.200781 69.299219 95.300781 65.199219 L 110.90039 62.400391 L 110.90039 48.5 L 95.300781 45.699219 C 94.200781 41.699219 92.7 37.900781 90.5 34.300781 L 99.5 21.199219 L 89.699219 11.400391 L 76.599609 20.599609 C 72.699609 18.299609 65.400391 16 65.400391 16 L 62.5 0 L 48.599609 0 z M 55.800781 26.599609 C 63.900781 26.599609 70.7 29.300391 76 34.900391 C 78.2 37.200391 80.1 39.799609 81.5 43.099609 C 80.6 44.899609 79.9 46.699219 79.5 48.699219 L 66.599609 50.900391 C 64.599609 45.300391 60.699219 42.900391 55.199219 42.900391 C 51.599219 42.900391 48.7 44.1 46.5 46.5 C 44.2 48.9 43.099609 51.899219 43.099609 55.699219 C 43.099609 59.299219 44.200391 62.199609 46.400391 64.599609 C 48.700391 66.999609 51.500391 68.099609 54.900391 68.099609 C 58.400391 68.099609 61.099219 67.1 63.199219 65 C 64.499219 63.8 65.3 62.300391 66 60.400391 L 79.400391 62.900391 L 79.400391 62.800781 C 79.800391 64.500781 80.399609 66.199219 81.099609 67.699219 C 79.699609 71.099219 77.700781 74.2 74.800781 77 C 69.800781 81.8 63.300781 84.199219 55.300781 84.199219 C 47.200781 84.199219 40.300781 81.5 34.800781 76 C 29.300781 70.5 26.5 63.699609 26.5 55.599609 C 26.5 47.399609 29.3 40.500391 35 34.900391 C 40.6 29.400391 47.600781 26.599609 55.800781 26.599609 z " transform="translate(-4.6,230)" /></svg>
|
Before Width: | Height: | Size: 2.0 KiB |
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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<IBlockAttributes>( 'cognito-forms/cognito-embed', {
|
||||
title: 'Cognito Forms',
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 5.6 KiB |
Loading…
Reference in New Issue