From 4c077900c68358ae3b56ace1978de90e238ef434 Mon Sep 17 00:00:00 2001 From: Benjamin Kott Date: Wed, 21 Aug 2019 00:09:01 +0200 Subject: [PATCH] [TASK] Update all icons --- Configuration/TCA/Overrides/pages.php | 8 +++--- .../TCA/tx_blog_domain_model_author.php | 4 ++- .../TCA/tx_blog_domain_model_comment.php | 4 ++- .../TCA/tx_blog_domain_model_tag.php | 4 ++- .../Icons/apps-pagetree-blog-author.svg | 1 - .../Icons/apps-pagetree-blog-category.svg | 1 - .../apps-pagetree-blog-comment-approved.svg | 1 - .../apps-pagetree-blog-comment-blocked.svg | 1 - .../Icons/apps-pagetree-blog-comment-todo.svg | 1 - .../Icons/apps-pagetree-blog-comment.svg | 1 - .../Public/Icons/apps-pagetree-blog-post.svg | 1 - .../Public/Icons/apps-pagetree-blog-tag.svg | 1 - Resources/Public/Icons/apps-pagetree-blog.svg | 1 - .../apps-pagetree-folder-contains-blog.svg | 1 - Resources/Public/Icons/blog-link-wizard.svg | 1 - .../Public/Icons/module-blog-comments.svg | 8 +++--- Resources/Public/Icons/module-blog-posts.svg | 14 +++++----- Resources/Public/Icons/module-blog-setup.svg | 6 ++++- .../Public/Icons/plugin-blog-archive.svg | 11 +++++++- .../Public/Icons/plugin-blog-authorposts.svg | 11 +++++++- .../Public/Icons/plugin-blog-authors.svg | 11 +++++++- .../Public/Icons/plugin-blog-category.svg | 11 +++++++- .../Public/Icons/plugin-blog-commentform.svg | 11 +++++++- .../Public/Icons/plugin-blog-comments.svg | 11 +++++++- Resources/Public/Icons/plugin-blog-footer.svg | 11 +++++++- Resources/Public/Icons/plugin-blog-header.svg | 11 +++++++- .../Public/Icons/plugin-blog-metadata.svg | 11 +++++++- Resources/Public/Icons/plugin-blog-posts.svg | 11 +++++++- .../Public/Icons/plugin-blog-relatedposts.svg | 11 +++++++- .../Public/Icons/plugin-blog-sidebar.svg | 11 +++++++- Resources/Public/Icons/plugin-blog-tag.svg | 11 +++++++- Resources/Public/Icons/record-blog-author.svg | 17 ++++++++++++ .../Public/Icons/record-blog-comment.svg | 7 +++++ Resources/Public/Icons/record-blog-post.svg | 14 ++++++++++ Resources/Public/Icons/record-blog-tag.svg | 7 +++++ .../Icons/record-folder-contains-blog.svg | 7 +++++ ext_icon.svg | 16 ++++++++++- ext_tables.php | 27 ++++++++----------- 38 files changed, 237 insertions(+), 60 deletions(-) delete mode 100644 Resources/Public/Icons/apps-pagetree-blog-author.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-blog-category.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-blog-comment-approved.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-blog-comment-blocked.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-blog-comment-todo.svg delete mode 100755 Resources/Public/Icons/apps-pagetree-blog-comment.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-blog-post.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-blog-tag.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-blog.svg delete mode 100644 Resources/Public/Icons/apps-pagetree-folder-contains-blog.svg delete mode 100644 Resources/Public/Icons/blog-link-wizard.svg create mode 100644 Resources/Public/Icons/record-blog-author.svg create mode 100644 Resources/Public/Icons/record-blog-comment.svg create mode 100644 Resources/Public/Icons/record-blog-post.svg create mode 100644 Resources/Public/Icons/record-blog-tag.svg create mode 100644 Resources/Public/Icons/record-folder-contains-blog.svg diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index 8a74e03d..03b6629a 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -14,10 +14,10 @@ $GLOBALS['TCA']['pages']['columns']['module']['config']['items'][] = [ 0 => 'LLL:EXT:blog/Resources/Private/Language/locallang_db.xlf:blog-folder', 1 => 'blog', - 2 => 'apps-pagetree-folder-contains-blog', + 2 => 'record-folder-contains-blog', ]; -$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-blog'] = 'apps-pagetree-folder-contains-blog'; +$GLOBALS['TCA']['pages']['ctrl']['typeicon_classes']['contains-blog'] = 'record-folder-contains-blog'; call_user_func(function () { $blogDocType = \T3G\AgencyPack\Blog\Constants::DOKTYPE_BLOG_POST; @@ -29,7 +29,7 @@ [ 'LLL:EXT:blog/Resources/Private/Language/locallang_tca.xlf:pages.doktype.blog-post', $blogDocType, - 'apps-pagetree-blog-post', + 'record-blog-post', ], '1', 'after' @@ -41,7 +41,7 @@ [ 'ctrl' => [ 'typeicon_classes' => [ - $blogDocType => 'apps-pagetree-blog-post', + $blogDocType => 'record-blog-post', ], ], 'types' => [ diff --git a/Configuration/TCA/tx_blog_domain_model_author.php b/Configuration/TCA/tx_blog_domain_model_author.php index fbad11a2..e85dc4e1 100644 --- a/Configuration/TCA/tx_blog_domain_model_author.php +++ b/Configuration/TCA/tx_blog_domain_model_author.php @@ -27,7 +27,9 @@ 'enablecolumns' => [ 'disabled' => 'hidden', ], - 'iconfile' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-author.svg', + 'typeicon_classes' => [ + 'default' => 'record-blog-author' + ], 'searchFields' => 'uid,name,title' ], 'interface' => [ diff --git a/Configuration/TCA/tx_blog_domain_model_comment.php b/Configuration/TCA/tx_blog_domain_model_comment.php index 2f409a27..0c1116fc 100644 --- a/Configuration/TCA/tx_blog_domain_model_comment.php +++ b/Configuration/TCA/tx_blog_domain_model_comment.php @@ -28,7 +28,9 @@ 'enablecolumns' => [ 'disabled' => 'hidden', ], - 'iconfile' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-comment.svg', + 'typeicon_classes' => [ + 'default' => 'record-blog-comment' + ], 'searchFields' => 'uid,comment,name,email', ], 'interface' => [ diff --git a/Configuration/TCA/tx_blog_domain_model_tag.php b/Configuration/TCA/tx_blog_domain_model_tag.php index deeb9bf0..5bc20fb4 100644 --- a/Configuration/TCA/tx_blog_domain_model_tag.php +++ b/Configuration/TCA/tx_blog_domain_model_tag.php @@ -32,7 +32,9 @@ 'enablecolumns' => [ 'disabled' => 'hidden', ], - 'iconfile' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-tag.svg', + 'typeicon_classes' => [ + 'default' => 'record-blog-tag' + ], 'searchFields' => 'uid,title', ], 'interface' => [ diff --git a/Resources/Public/Icons/apps-pagetree-blog-author.svg b/Resources/Public/Icons/apps-pagetree-blog-author.svg deleted file mode 100644 index 1e469fef..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-author.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog-category.svg b/Resources/Public/Icons/apps-pagetree-blog-category.svg deleted file mode 100644 index 11d0956b..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-category.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog-comment-approved.svg b/Resources/Public/Icons/apps-pagetree-blog-comment-approved.svg deleted file mode 100644 index 3ee4c2a9..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-comment-approved.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog-comment-blocked.svg b/Resources/Public/Icons/apps-pagetree-blog-comment-blocked.svg deleted file mode 100644 index 58b9880a..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-comment-blocked.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog-comment-todo.svg b/Resources/Public/Icons/apps-pagetree-blog-comment-todo.svg deleted file mode 100644 index b84c5eb8..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-comment-todo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog-comment.svg b/Resources/Public/Icons/apps-pagetree-blog-comment.svg deleted file mode 100755 index 3d6ee888..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-comment.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog-post.svg b/Resources/Public/Icons/apps-pagetree-blog-post.svg deleted file mode 100644 index d88a19c4..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-post.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog-tag.svg b/Resources/Public/Icons/apps-pagetree-blog-tag.svg deleted file mode 100644 index a0528e8a..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog-tag.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-blog.svg b/Resources/Public/Icons/apps-pagetree-blog.svg deleted file mode 100644 index b7ac9299..00000000 --- a/Resources/Public/Icons/apps-pagetree-blog.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/apps-pagetree-folder-contains-blog.svg b/Resources/Public/Icons/apps-pagetree-folder-contains-blog.svg deleted file mode 100644 index 4fab7ced..00000000 --- a/Resources/Public/Icons/apps-pagetree-folder-contains-blog.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Resources/Public/Icons/blog-link-wizard.svg b/Resources/Public/Icons/blog-link-wizard.svg deleted file mode 100644 index 1b258142..00000000 --- a/Resources/Public/Icons/blog-link-wizard.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/Resources/Public/Icons/module-blog-comments.svg b/Resources/Public/Icons/module-blog-comments.svg index e6b78d9a..1abc97dd 100644 --- a/Resources/Public/Icons/module-blog-comments.svg +++ b/Resources/Public/Icons/module-blog-comments.svg @@ -4,8 +4,8 @@ viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> - - - - + + + + diff --git a/Resources/Public/Icons/module-blog-posts.svg b/Resources/Public/Icons/module-blog-posts.svg index 5032c8b5..7d12c0e4 100644 --- a/Resources/Public/Icons/module-blog-posts.svg +++ b/Resources/Public/Icons/module-blog-posts.svg @@ -4,12 +4,12 @@ viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> - - - - - - + + + + + + - + diff --git a/Resources/Public/Icons/module-blog-setup.svg b/Resources/Public/Icons/module-blog-setup.svg index e45a13f4..b9a54ede 100644 --- a/Resources/Public/Icons/module-blog-setup.svg +++ b/Resources/Public/Icons/module-blog-setup.svg @@ -10,5 +10,9 @@ c0.2,0.2,0.5,0.2,0.8,0.1l5-2.8c0.4,0.2,0.8,0.4,1.3,0.5l1.6,5.5c0.1,0.3,0.3,0.5,0.6,0.5H34c0.3,0,0.5-0.2,0.6-0.5l1.6-5.5 c0.4-0.2,0.9-0.3,1.3-0.5l5,2.8c0.3,0.1,0.6,0.1,0.8-0.1l3-3c0.2-0.2,0.2-0.5,0.1-0.8l-2.8-5c0.2-0.4,0.4-0.8,0.5-1.3l5.5-1.6 c0.3-0.1,0.5-0.3,0.5-0.6v-4.2C50,29.6,49.8,29.4,49.5,29.3z"/> - + + + + diff --git a/Resources/Public/Icons/plugin-blog-archive.svg b/Resources/Public/Icons/plugin-blog-archive.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-archive.svg +++ b/Resources/Public/Icons/plugin-blog-archive.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-authorposts.svg b/Resources/Public/Icons/plugin-blog-authorposts.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-authorposts.svg +++ b/Resources/Public/Icons/plugin-blog-authorposts.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-authors.svg b/Resources/Public/Icons/plugin-blog-authors.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-authors.svg +++ b/Resources/Public/Icons/plugin-blog-authors.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-category.svg b/Resources/Public/Icons/plugin-blog-category.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-category.svg +++ b/Resources/Public/Icons/plugin-blog-category.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-commentform.svg b/Resources/Public/Icons/plugin-blog-commentform.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-commentform.svg +++ b/Resources/Public/Icons/plugin-blog-commentform.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-comments.svg b/Resources/Public/Icons/plugin-blog-comments.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-comments.svg +++ b/Resources/Public/Icons/plugin-blog-comments.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-footer.svg b/Resources/Public/Icons/plugin-blog-footer.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-footer.svg +++ b/Resources/Public/Icons/plugin-blog-footer.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-header.svg b/Resources/Public/Icons/plugin-blog-header.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-header.svg +++ b/Resources/Public/Icons/plugin-blog-header.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-metadata.svg b/Resources/Public/Icons/plugin-blog-metadata.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-metadata.svg +++ b/Resources/Public/Icons/plugin-blog-metadata.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-posts.svg b/Resources/Public/Icons/plugin-blog-posts.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-posts.svg +++ b/Resources/Public/Icons/plugin-blog-posts.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-relatedposts.svg b/Resources/Public/Icons/plugin-blog-relatedposts.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-relatedposts.svg +++ b/Resources/Public/Icons/plugin-blog-relatedposts.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-sidebar.svg b/Resources/Public/Icons/plugin-blog-sidebar.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-sidebar.svg +++ b/Resources/Public/Icons/plugin-blog-sidebar.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/plugin-blog-tag.svg b/Resources/Public/Icons/plugin-blog-tag.svg index c2c60606..6f2250eb 100644 --- a/Resources/Public/Icons/plugin-blog-tag.svg +++ b/Resources/Public/Icons/plugin-blog-tag.svg @@ -1 +1,10 @@ - + + + + + + + + diff --git a/Resources/Public/Icons/record-blog-author.svg b/Resources/Public/Icons/record-blog-author.svg new file mode 100644 index 00000000..b8532cda --- /dev/null +++ b/Resources/Public/Icons/record-blog-author.svg @@ -0,0 +1,17 @@ + + + + + + + + diff --git a/Resources/Public/Icons/record-blog-comment.svg b/Resources/Public/Icons/record-blog-comment.svg new file mode 100644 index 00000000..dc1550b7 --- /dev/null +++ b/Resources/Public/Icons/record-blog-comment.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/Resources/Public/Icons/record-blog-post.svg b/Resources/Public/Icons/record-blog-post.svg new file mode 100644 index 00000000..ec1667e3 --- /dev/null +++ b/Resources/Public/Icons/record-blog-post.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + diff --git a/Resources/Public/Icons/record-blog-tag.svg b/Resources/Public/Icons/record-blog-tag.svg new file mode 100644 index 00000000..56cf6e0b --- /dev/null +++ b/Resources/Public/Icons/record-blog-tag.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/Resources/Public/Icons/record-folder-contains-blog.svg b/Resources/Public/Icons/record-folder-contains-blog.svg new file mode 100644 index 00000000..d802ecbf --- /dev/null +++ b/Resources/Public/Icons/record-folder-contains-blog.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/ext_icon.svg b/ext_icon.svg index edcf4814..4a4c6a98 100644 --- a/ext_icon.svg +++ b/ext_icon.svg @@ -1 +1,15 @@ - + + + + + + + + + + + + + + diff --git a/ext_tables.php b/ext_tables.php index 511447a5..31b986b4 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -24,16 +24,6 @@ $icons = [ 'actions-approve' => 'EXT:blog/Resources/Public/Icons/actions-approve.svg', 'actions-decline' => 'EXT:blog/Resources/Public/Icons/actions-decline.svg', - 'blog-link-wizard' => 'EXT:blog/Resources/Public/Icons/blog-link-wizard.svg', - 'apps-pagetree-folder-contains-blog' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-folder-contains-blog.svg', - 'apps-pagetree-blog' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog.svg', - 'apps-pagetree-blog-author' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-author.svg', - 'apps-pagetree-blog-category' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-category.svg', - 'apps-pagetree-blog-comment' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-comment.svg', - 'apps-pagetree-blog-comment-approved' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-comment-approved.svg', - 'apps-pagetree-blog-comment-blocked' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-comment-blocked.svg', - 'apps-pagetree-blog-comment-todo' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-comment-todo.svg', - 'apps-pagetree-blog-post' => 'EXT:blog/Resources/Public/Icons/apps-pagetree-blog-post.svg', 'module-blog' => 'EXT:blog/Resources/Public/Icons/module-blog.svg', 'plugin-blog-archive' => 'EXT:blog/Resources/Public/Icons/plugin-blog-archive.svg', 'plugin-blog-authorposts' => 'EXT:blog/Resources/Public/Icons/plugin-blog-authorposts.svg', @@ -48,6 +38,11 @@ 'plugin-blog-relatedposts' => 'EXT:blog/Resources/Public/Icons/plugin-blog-relatedposts.svg', 'plugin-blog-sidebar' => 'EXT:blog/Resources/Public/Icons/plugin-blog-sidebar.svg', 'plugin-blog-tag' => 'EXT:blog/Resources/Public/Icons/plugin-blog-tag.svg', + 'record-blog-author' => 'EXT:blog/Resources/Public/Icons/record-blog-author.svg', + 'record-blog-comment' => 'EXT:blog/Resources/Public/Icons/record-blog-comment.svg', + 'record-blog-post' => 'EXT:blog/Resources/Public/Icons/record-blog-post.svg', + 'record-blog-tag' => 'EXT:blog/Resources/Public/Icons/record-blog-tag.svg', + 'record-folder-contains-blog' => 'EXT:blog/Resources/Public/Icons/record-folder-contains-blog.svg', ]; $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class); @@ -166,9 +161,9 @@ 'Backend' => 'posts', ], [ - 'access' => 'user,group', - 'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-posts.svg', 'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_posts.xlf', + 'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-posts.svg', + 'access' => 'user,group', ] ); @@ -182,9 +177,9 @@ 'Backend' => 'comments, updateCommentStatus', ], [ - 'access' => 'user,group', - 'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-comments.svg', 'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_comments.xlf', + 'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-comments.svg', + 'access' => 'user,group', ] ); @@ -198,9 +193,9 @@ 'Backend' => 'setupWizard, createBlog', ], [ - 'access' => 'admin', - 'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-setup.svg', 'labels' => 'LLL:EXT:blog/Resources/Private/Language/locallang_mod_blog_setup.xlf', + 'icon' => 'EXT:blog/Resources/Public/Icons/module-blog-setup.svg', + 'access' => 'admin', ] ); }