From 201259d6748848d550162469707780647d987af2 Mon Sep 17 00:00:00 2001 From: Dirk Koritnik Date: Thu, 11 Feb 2021 12:05:02 +0100 Subject: [PATCH] Add new icons --- Configuration/FlexForms/DateList.xml | 12 +++++++++--- Configuration/TCA/Overrides/tt_content.php | 10 +++++----- .../Overrides/tx_events_domain_model_event.php | 2 +- Configuration/TCA/tx_events_domain_model_date.php | 2 +- .../TCA/tx_events_domain_model_event.php | 2 +- .../TCA/tx_events_domain_model_organizer.php | 4 ++-- .../TCA/tx_events_domain_model_partner.php | 2 +- .../TCA/tx_events_domain_model_region.php | 4 ++-- Resources/Public/Icons/Extension.svg | 2 +- Resources/Public/Icons/relation.gif | Bin 233 -> 0 bytes .../Public/Icons/tx_events_domain_model_date.gif | Bin 230 -> 0 bytes .../Public/Icons/tx_events_domain_model_date.svg | 1 + .../Public/Icons/tx_events_domain_model_event.gif | Bin 230 -> 0 bytes .../Public/Icons/tx_events_domain_model_event.svg | 1 + .../Icons/tx_events_domain_model_events.gif | Bin 230 -> 0 bytes .../Icons/tx_events_domain_model_organizer.gif | Bin 230 -> 0 bytes .../Icons/tx_events_domain_model_organizer.svg | 1 + .../Icons/tx_events_domain_model_partner.gif | Bin 230 -> 0 bytes .../Icons/tx_events_domain_model_partner.svg | 1 + .../Icons/tx_events_domain_model_region.gif | Bin 230 -> 0 bytes .../Icons/tx_events_domain_model_region.svg | 1 + Resources/Public/Icons/user_plugin_events.svg | 1 - ext_localconf.php | 2 +- ext_tables.php | 9 --------- 24 files changed, 29 insertions(+), 28 deletions(-) delete mode 100644 Resources/Public/Icons/relation.gif delete mode 100644 Resources/Public/Icons/tx_events_domain_model_date.gif create mode 100644 Resources/Public/Icons/tx_events_domain_model_date.svg delete mode 100644 Resources/Public/Icons/tx_events_domain_model_event.gif create mode 100644 Resources/Public/Icons/tx_events_domain_model_event.svg delete mode 100644 Resources/Public/Icons/tx_events_domain_model_events.gif delete mode 100644 Resources/Public/Icons/tx_events_domain_model_organizer.gif create mode 100644 Resources/Public/Icons/tx_events_domain_model_organizer.svg delete mode 100644 Resources/Public/Icons/tx_events_domain_model_partner.gif create mode 100644 Resources/Public/Icons/tx_events_domain_model_partner.svg delete mode 100644 Resources/Public/Icons/tx_events_domain_model_region.gif create mode 100644 Resources/Public/Icons/tx_events_domain_model_region.svg delete mode 100644 Resources/Public/Icons/user_plugin_events.svg diff --git a/Configuration/FlexForms/DateList.xml b/Configuration/FlexForms/DateList.xml index e971c51..8c9f409 100644 --- a/Configuration/FlexForms/DateList.xml +++ b/Configuration/FlexForms/DateList.xml @@ -13,6 +13,7 @@ select + selectSingle Start @@ -33,6 +34,7 @@ select + selectSingle @@ -128,6 +130,7 @@ select + selectSingle Default @@ -164,11 +167,12 @@ select + selectSingle tx_events_domain_model_region AND tx_events_domain_model_region.deleted = 0 AND tx_events_domain_model_region.hidden = 0 - 3 + 1 0 - 2 + 1 @@ -179,6 +183,7 @@ select + selectSingle And @@ -202,6 +207,7 @@ select + selectTree 20 sys_category AND sys_category.sys_language_uid IN (-1, 0) ORDER BY sys_category.title ASC @@ -233,4 +239,4 @@ - \ No newline at end of file + diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index b0fb92b..e52eb3a 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -8,7 +8,7 @@ call_user_func(function () { 'Events', 'Pi1', 'Events Plugin', - 'EXT:events/Resources/Public/Icons/user_plugin_events.svg' + 'EXT:events/Resources/Public/Icons/Extension.svg' ); $pluginSignature = 'events_pi1'; @@ -26,7 +26,7 @@ call_user_func(function () { 'Events', 'DateSearch', 'Events: Date Search', - 'EXT:events/Resources/Public/Icons/user_plugin_events.svg' + 'EXT:events/Resources/Public/Icons/Extension.svg' ); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['events_datesearch'] = 'pi_flexform'; @@ -42,7 +42,7 @@ call_user_func(function () { 'Events', 'DateList', 'Events: Date List', - 'EXT:events/Resources/Public/Icons/user_plugin_events.svg' + 'EXT:events/Resources/Public/Icons/Extension.svg' ); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['events_datelist'] = 'pi_flexform'; @@ -58,7 +58,7 @@ call_user_func(function () { 'Events', 'DateShow', 'Events: Date Show', - 'EXT:events/Resources/Public/Icons/user_plugin_events.svg' + 'EXT:events/Resources/Public/Icons/Extension.svg' ); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['events_dateshow'] = 'pi_flexform'; @@ -75,7 +75,7 @@ call_user_func(function () { 'Events', 'Selected', 'Events: Show selected', - 'EXT:events/Resources/Public/Icons/user_plugin_events.svg' + 'EXT:events/Resources/Public/Icons/Extension.svg' ); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['events_selected'] = 'pi_flexform'; diff --git a/Configuration/TCA/Overrides/tx_events_domain_model_event.php b/Configuration/TCA/Overrides/tx_events_domain_model_event.php index cd6e18b..9e75ded 100644 --- a/Configuration/TCA/Overrides/tx_events_domain_model_event.php +++ b/Configuration/TCA/Overrides/tx_events_domain_model_event.php @@ -3,7 +3,7 @@ defined('TYPO3') or die(); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable( - 'dd_events', + 'events', 'tx_events_domain_model_event', 'categories', [ diff --git a/Configuration/TCA/tx_events_domain_model_date.php b/Configuration/TCA/tx_events_domain_model_date.php index 1aa1f5c..3f8636d 100644 --- a/Configuration/TCA/tx_events_domain_model_date.php +++ b/Configuration/TCA/tx_events_domain_model_date.php @@ -20,7 +20,7 @@ return [ 'endtime' => 'endtime', ], 'searchFields' => '', - 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_date.gif' + 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_date.svg' ], 'types' => [ '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, start, end, canceled, event, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'], diff --git a/Configuration/TCA/tx_events_domain_model_event.php b/Configuration/TCA/tx_events_domain_model_event.php index ed72bbf..3900e2e 100644 --- a/Configuration/TCA/tx_events_domain_model_event.php +++ b/Configuration/TCA/tx_events_domain_model_event.php @@ -19,7 +19,7 @@ return [ 'endtime' => 'endtime', ], 'searchFields' => 'title,global_id,slug,teaser,details,price_info,street,district,city,zip,country,web,booking,ticket,facebook,youtube,latitude,longitude', - 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_event.gif' + 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_event.svg' ], 'types' => [ '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, global_id, slug, highlight, teaser, details, price_info, name, street, district, city, zip, country, phone, web, ticket, facebook, youtube, instagram, latitude, longitude, images, pages, categories, dates, organizer, region, partner, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'], diff --git a/Configuration/TCA/tx_events_domain_model_organizer.php b/Configuration/TCA/tx_events_domain_model_organizer.php index 3893357..b3b80c0 100644 --- a/Configuration/TCA/tx_events_domain_model_organizer.php +++ b/Configuration/TCA/tx_events_domain_model_organizer.php @@ -17,7 +17,7 @@ return [ 'endtime' => 'endtime', ], 'searchFields' => 'name,street,district,city,zip,phone,web,email', - 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_organizer.gif' + 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_organizer.svg' ], 'types' => [ '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, street, district, city, zip, phone, web, email, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'], @@ -184,6 +184,6 @@ return [ 'eval' => 'trim' ], ], - + ], ]; diff --git a/Configuration/TCA/tx_events_domain_model_partner.php b/Configuration/TCA/tx_events_domain_model_partner.php index 88320c3..e4e142c 100644 --- a/Configuration/TCA/tx_events_domain_model_partner.php +++ b/Configuration/TCA/tx_events_domain_model_partner.php @@ -17,7 +17,7 @@ return [ 'disabled' => 'hidden', ], 'searchFields' => 'title', - 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_partner.gif' + 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_partner.svg' ], 'types' => [ '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, link, images, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access'], diff --git a/Configuration/TCA/tx_events_domain_model_region.php b/Configuration/TCA/tx_events_domain_model_region.php index 027904e..822b513 100644 --- a/Configuration/TCA/tx_events_domain_model_region.php +++ b/Configuration/TCA/tx_events_domain_model_region.php @@ -17,7 +17,7 @@ return [ 'endtime' => 'endtime', ], 'searchFields' => 'title', - 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_region.gif' + 'iconfile' => 'EXT:events/Resources/Public/Icons/tx_events_domain_model_region.svg' ], 'types' => [ '1' => ['showitem' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, title, --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'], @@ -121,6 +121,6 @@ return [ 'eval' => 'trim' ], ], - + ], ]; diff --git a/Resources/Public/Icons/Extension.svg b/Resources/Public/Icons/Extension.svg index ec1bdec..f0baaf6 100644 --- a/Resources/Public/Icons/Extension.svg +++ b/Resources/Public/Icons/Extension.svg @@ -1 +1 @@ -Extension \ No newline at end of file + \ No newline at end of file diff --git a/Resources/Public/Icons/relation.gif b/Resources/Public/Icons/relation.gif deleted file mode 100644 index db61d7e18817e2969b740ccc62838a1447cd3c3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 233 zcmZ?wbh9u|6krfwIKsfd$jB%yEgcvb*xK4Ud-m+*V6c9}`t4wF3=FP=!D}%14h9TB zki(G3kjIe9P{N?kkO3r981fmC8H$0t6rgAskS<}UWKjIc!pOiN#GnJx0zsgJEBshvI<>Lne0l)en}fzWvHFt6ysaM@@~DQbVIgvycNT2L~5d538f;ccvU1 zeHPQ2GIn^1cr6p&73IaoD$=91iK~a{(6rVH&ROOxH+%Y4hNqsq`BO~MkEuZ}q3Mby Zn_ZKDm69U|7Z(ptCx?^igb9ia)&LfwP0|1W diff --git a/Resources/Public/Icons/tx_events_domain_model_date.svg b/Resources/Public/Icons/tx_events_domain_model_date.svg new file mode 100644 index 0000000..d859b72 --- /dev/null +++ b/Resources/Public/Icons/tx_events_domain_model_date.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_event.gif b/Resources/Public/Icons/tx_events_domain_model_event.gif deleted file mode 100644 index 37ba37b9b3a220018e3a291bf2ee413d0da30ce0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 230 zcmZ?wbh9u|6krfwIKlt|GBPr{y1EAX`lY3%Jv}|Mz+f2|Yy*R1U~nA_UV_1QFaYW; z2AhC~Q2fcl$iN`NpaW6^vXg-|S;5tE3G-Y5<#kHRdp8`B$dNv*cXpRhl~&t>ccvU1 zeHPQ2GIn^1cr6p&73IaoD$=91iK~a{(6rVH&ROOxH+%Y4hNqsq`BO~MkEuZ}q3Mby Zn_ZKDm69U|7Z(ptCx?^igb9ia)&LfwP0|1W diff --git a/Resources/Public/Icons/tx_events_domain_model_event.svg b/Resources/Public/Icons/tx_events_domain_model_event.svg new file mode 100644 index 0000000..51822b4 --- /dev/null +++ b/Resources/Public/Icons/tx_events_domain_model_event.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_events.gif b/Resources/Public/Icons/tx_events_domain_model_events.gif deleted file mode 100644 index 37ba37b9b3a220018e3a291bf2ee413d0da30ce0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 230 zcmZ?wbh9u|6krfwIKlt|GBPr{y1EAX`lY3%Jv}|Mz+f2|Yy*R1U~nA_UV_1QFaYW; z2AhC~Q2fcl$iN`NpaW6^vXg-|S;5tE3G-Y5<#kHRdp8`B$dNv*cXpRhl~&t>ccvU1 zeHPQ2GIn^1cr6p&73IaoD$=91iK~a{(6rVH&ROOxH+%Y4hNqsq`BO~MkEuZ}q3Mby Zn_ZKDm69U|7Z(ptCx?^igb9ia)&LfwP0|1W diff --git a/Resources/Public/Icons/tx_events_domain_model_organizer.gif b/Resources/Public/Icons/tx_events_domain_model_organizer.gif deleted file mode 100644 index 37ba37b9b3a220018e3a291bf2ee413d0da30ce0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 230 zcmZ?wbh9u|6krfwIKlt|GBPr{y1EAX`lY3%Jv}|Mz+f2|Yy*R1U~nA_UV_1QFaYW; z2AhC~Q2fcl$iN`NpaW6^vXg-|S;5tE3G-Y5<#kHRdp8`B$dNv*cXpRhl~&t>ccvU1 zeHPQ2GIn^1cr6p&73IaoD$=91iK~a{(6rVH&ROOxH+%Y4hNqsq`BO~MkEuZ}q3Mby Zn_ZKDm69U|7Z(ptCx?^igb9ia)&LfwP0|1W diff --git a/Resources/Public/Icons/tx_events_domain_model_organizer.svg b/Resources/Public/Icons/tx_events_domain_model_organizer.svg new file mode 100644 index 0000000..fdbd451 --- /dev/null +++ b/Resources/Public/Icons/tx_events_domain_model_organizer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_partner.gif b/Resources/Public/Icons/tx_events_domain_model_partner.gif deleted file mode 100644 index 37ba37b9b3a220018e3a291bf2ee413d0da30ce0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 230 zcmZ?wbh9u|6krfwIKlt|GBPr{y1EAX`lY3%Jv}|Mz+f2|Yy*R1U~nA_UV_1QFaYW; z2AhC~Q2fcl$iN`NpaW6^vXg-|S;5tE3G-Y5<#kHRdp8`B$dNv*cXpRhl~&t>ccvU1 zeHPQ2GIn^1cr6p&73IaoD$=91iK~a{(6rVH&ROOxH+%Y4hNqsq`BO~MkEuZ}q3Mby Zn_ZKDm69U|7Z(ptCx?^igb9ia)&LfwP0|1W diff --git a/Resources/Public/Icons/tx_events_domain_model_partner.svg b/Resources/Public/Icons/tx_events_domain_model_partner.svg new file mode 100644 index 0000000..e48ac0f --- /dev/null +++ b/Resources/Public/Icons/tx_events_domain_model_partner.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Resources/Public/Icons/tx_events_domain_model_region.gif b/Resources/Public/Icons/tx_events_domain_model_region.gif deleted file mode 100644 index 37ba37b9b3a220018e3a291bf2ee413d0da30ce0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 230 zcmZ?wbh9u|6krfwIKlt|GBPr{y1EAX`lY3%Jv}|Mz+f2|Yy*R1U~nA_UV_1QFaYW; z2AhC~Q2fcl$iN`NpaW6^vXg-|S;5tE3G-Y5<#kHRdp8`B$dNv*cXpRhl~&t>ccvU1 zeHPQ2GIn^1cr6p&73IaoD$=91iK~a{(6rVH&ROOxH+%Y4hNqsq`BO~MkEuZ}q3Mby Zn_ZKDm69U|7Z(ptCx?^igb9ia)&LfwP0|1W diff --git a/Resources/Public/Icons/tx_events_domain_model_region.svg b/Resources/Public/Icons/tx_events_domain_model_region.svg new file mode 100644 index 0000000..f604194 --- /dev/null +++ b/Resources/Public/Icons/tx_events_domain_model_region.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Resources/Public/Icons/user_plugin_events.svg b/Resources/Public/Icons/user_plugin_events.svg deleted file mode 100644 index 17e1eb1..0000000 --- a/Resources/Public/Icons/user_plugin_events.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ext_localconf.php b/ext_localconf.php index caa33be..fec78e1 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -36,7 +36,7 @@ call_user_func( $iconRegistry->registerIcon( 'events-plugin', \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, - ['source' => 'EXT:events/Resources/Public/Icons/user_plugin_events.svg'] + ['source' => 'EXT:events/Resources/Public/Icons/Extension.svg'] ); /* diff --git a/ext_tables.php b/ext_tables.php index e4fd548..181bc7f 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -5,15 +5,6 @@ defined('TYPO3') || die('Access denied.'); call_user_func( function () { - /* - \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( - 'Wrm.Events', - 'Pi1', - 'Events', - 'EXT:events/Resources/Public/Icons/user_plugin_events.svg' - ); - */ - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('events', 'Configuration/TypoScript', 'Events'); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_events_domain_model_event', 'EXT:events/Resources/Private/Language/locallang_csh_tx_events_domain_model_event.xlf');