Skip to content
Snippets Groups Projects
Commit 77a8dffc authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Cleanup

parent b71a9443
No related branches found
Tags 6.0.6
No related merge requests found
......@@ -79,6 +79,4 @@ key from the "TypoScript integration" topic.
- Add import the scss and js module file in the corresponding main.scss and main.js
- Initialize the javascript modules in your main.js: ```
new SgVideoLightbox();
SgVideo.initDefault();```
### Known issues
SgVideo.initDefault();```
## Version 6
- removed dependencies to project_theme
- removed dependencies to project_theme_lightbox
- Requires a license key from now on
- Removed dependencies to project_theme
- Removed dependencies to project_theme_lightbox
- TYPO3 12 support
## Version 5
- `youtubeLightbox.js` (deprecated since 4.4.0) using magnific-popup and jQuery removed in favor of `sgVideoLightbox.js` (vanilla JS).
- `youtubeLightbox.js` (deprecated since 4.4.0) using magnific-popup and jQuery removed in favor
of `sgVideoLightbox.js` (vanilla JS).
- Extension `project_theme_lightbox` required starting with version 5.0.0.
- Dropped TYPO3 9 Support
- Dropped php 7.3 Support
## Version 4.4 ```project_theme_lightbox``` integration
- The magnific popup integration is deprecated and will be removed in later versions.
- Implement JavaScript according to the readme after integrating ```project_theme_lightbox```
......
{
"name": "sgalinski/sg-youtube",
"type": "typo3-cms-extension",
"description": "Embed YouTube Videos of a Playlist or Channel",
"homepage": "https://www.sgalinski.de",
"license": "GPL-2.0-or-later",
"version": "5.3.0",
"require": {
"typo3/cms-core": "^10.4.0 || ^11.5.0 || ^12.4.0"
},
"replace": {
"sgalinski/sg_youtube": "self.version"
},
"extra": {
"typo3/cms": {
"extension-key": "sg_youtube"
}
},
"autoload": {
"psr-4": {
"SGalinski\\SgYoutube\\": "Classes/"
}
}
"name": "sgalinski/sg-youtube",
"type": "typo3-cms-extension",
"description": "Embed YouTube Videos of a Playlist or Channel",
"homepage": "https://www.sgalinski.de",
"license": "GPL-2.0-or-later",
"version": "5.3.0",
"require": {
"typo3/cms-core": "^10.4.0 || ^11.5.0 || ^12.4.0"
},
"replace": {
"sgalinski/sg_youtube": "self.version"
},
"extra": {
"typo3/cms": {
"extension-key": "sg_youtube"
}
},
"autoload": {
"psr-4": {
"SGalinski\\SgYoutube\\": "Classes/"
}
}
}
......@@ -28,12 +28,11 @@ $EM_CONF['sg_youtube'] = [
'title' => 'YouTube Videos',
'description' => 'Embed YouTube Videos of a Channel or Playlist',
'category' => 'plugin',
'author' => 'Johannes Kreiner',
'author_email' => 'johannes@sgalinski.de',
'author' => 'Stefan Galinski',
'author_email' => 'stefan@sgalinski.de',
'author_company' => 'sgalinski Internet Services (https://www.sgalinski.de)',
'state' => 'stable',
'internal' => '',
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '5.3.0',
......
<?php
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
defined('TYPO3') or die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SgYoutube',
'Youtube',
[
\SGalinski\SgYoutube\Controller\YoutubeController::class => 'index',
]
);
......@@ -51,7 +24,6 @@ $iconRegistry->registerIcon(
// Caching
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sgyoutube_cache'] ??= [];
// Hooks
$currentTypo3Version = TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version();
if (version_compare($currentTypo3Version, '12.0.0', '<')) {
......@@ -59,7 +31,7 @@ if (version_compare($currentTypo3Version, '12.0.0', '<')) {
= \SGalinski\SgYoutube\Hooks\PageLayoutView\PluginRenderer::class;
}
// Licence check hook
// License check hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][] =
\SGalinski\SgYoutube\Hooks\LicenceCheckHook::class . '->performLicenseCheck';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment