diff --git a/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig b/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig new file mode 100644 index 0000000000000000000000000000000000000000..ccdc32ca4c03681aa322bf99e398cdf255b8992c --- /dev/null +++ b/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig @@ -0,0 +1,17 @@ +mod { + wizards.newContentElement.wizardItems.plugins { + elements { + youtube { + iconIdentifier = extension-sg_youtube + title = LLL:EXT:sg_youtube/Resources/Private/Language/locallang.xlf:youtubePluginTitle + description = LLL:EXT:sg_youtube/Resources/Private/Language/locallang.xlf:youtubePluginDescription + tt_content_defValues { + CType = list + list_type = sgyoutube_youtube + } + } + } + + show = * + } +} diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf index 63dcd6320d9869b38021b913d5135ec8b4a30a71..f96688dab17b5d391527651c20ade20b3cc91203 100644 --- a/Resources/Private/Language/de.locallang.xlf +++ b/Resources/Private/Language/de.locallang.xlf @@ -81,6 +81,14 @@ <source><![CDATA[Settings]]></source> <target><![CDATA[Einstellungen]]></target> </trans-unit> + <trans-unit id="youtubePluginDescription" approved="yes"> + <source><![CDATA[Display one or multiple YouTube videos.]]></source> + <target><![CDATA[Zeige ein oder mehrere YouTube-Videos an.]]></target> + </trans-unit> + <trans-unit id="youtubePluginTitle" approved="yes"> + <source><![CDATA[YouTube]]></source> + <target><![CDATA[YouTube]]></target> + </trans-unit> </body> </file> </xliff> diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 33557219d1161b12563d1d1af5c174ee7222a29a..6a3d8fcbd8f59b18f2452e9e0768f605c771814d 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -62,6 +62,12 @@ <trans-unit id="settings"> <source><![CDATA[Settings]]></source> </trans-unit> + <trans-unit id="youtubePluginDescription"> + <source><![CDATA[Display one or multiple YouTube videos.]]></source> + </trans-unit> + <trans-unit id="youtubePluginTitle"> + <source><![CDATA[YouTube]]></source> + </trans-unit> </body> </file> </xliff> diff --git a/Resources/Public/Icons/youtube.svg b/Resources/Public/Icons/youtube.svg new file mode 100644 index 0000000000000000000000000000000000000000..4dac28e00d6d2d9c3c13600ae8424e646c7201e2 --- /dev/null +++ b/Resources/Public/Icons/youtube.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" fill="#c4302b"/></svg> diff --git a/ext_localconf.php b/ext_localconf.php index 85fbea420f1a637fb840644ac5eeaf18c85e5348..71c8207270ad838aef688283229dc4721620aaaf 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -40,6 +40,20 @@ if (!defined('TYPO3_MODE')) { ] ); + +//include Plugin sg_twitter +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( + '@import "EXT:sg_youtube/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig"' +); + +//Register Icons +$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class); +$iconRegistry->registerIcon( + 'extension-sg_youtube', + \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, + ['source' => 'EXT:sg_youtube/Resources/Public/Icons/youtube.svg'] +); + //Hooks $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['sg_youtube'] = \SGalinski\SgYoutube\Hooks\PageLayoutView\PluginRenderer::class;