From 366df38c892ff74840ab6d394da2e8e01fc6e3e7 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Tue, 1 Sep 2020 13:25:05 -0500 Subject: [PATCH] Code cleanup --- blocks/duotone-filter/duotone.php | 24 +++++++++ blocks/duotone-filter/filter.svg | 18 ------- blocks/duotone-filter/index.php | 31 ++--------- blocks/duotone-filter/src/duotone.js | 80 ++++++++++++++++++++++++++++ blocks/duotone-filter/src/index.js | 78 ++++----------------------- 5 files changed, 119 insertions(+), 112 deletions(-) create mode 100644 blocks/duotone-filter/duotone.php delete mode 100644 blocks/duotone-filter/filter.svg create mode 100644 blocks/duotone-filter/src/duotone.js diff --git a/blocks/duotone-filter/duotone.php b/blocks/duotone-filter/duotone.php new file mode 100644 index 00000000..47f5e785 --- /dev/null +++ b/blocks/duotone-filter/duotone.php @@ -0,0 +1,24 @@ + diff --git a/blocks/duotone-filter/filter.svg b/blocks/duotone-filter/filter.svg deleted file mode 100644 index 85fa10f8..00000000 --- a/blocks/duotone-filter/filter.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - diff --git a/blocks/duotone-filter/index.php b/blocks/duotone-filter/index.php index 47a3e9d4..de4f9dd2 100644 --- a/blocks/duotone-filter/index.php +++ b/blocks/duotone-filter/index.php @@ -40,32 +40,11 @@ function hex2rgb( $color ) { $duotone_id = $block['attrs']['duotoneId']; $duotone_dark = hex2rgb( $block['attrs']['duotoneDark'] ); $duotone_light = hex2rgb( $block['attrs']['duotoneLight'] ); - $duotone = <<