-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e92450
commit c04310c
Showing
8 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ | |
'title' => 'YouTube Video', | ||
'description' => 'YouTube video content with custom cover images, gallery layout and backend previews.', | ||
'category' => 'fe', | ||
'version' => '2.1.1', | ||
'version' => '2.2.0', | ||
'state' => 'stable', | ||
'clearcacheonload' => true, | ||
'author' => 'Tanel Põld', | ||
'author_email' => '[email protected]', | ||
'author_company' => 'Brightside OÜ / t3brightside.com', | ||
'constraints' => [ | ||
'depends' => [ | ||
'typo3' => '10.4.0-11.5.99', | ||
'typo3' => '11.5.0-12.99.99', | ||
'fluid_styled_content' => '', | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
<?php | ||
defined('TYPO3_MODE') || die ('Access denied.'); | ||
defined('TYPO3_MODE') || defined('TYPO3') || die('Access denied.'); | ||
|
||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:youtubevideo/Configuration/PageTS/setup.typoscript">'); | ||
use TYPO3\CMS\Core\Information\Typo3Version; | ||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class); | ||
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class); | ||
// Only include page.tsconfig if TYPO3 version is below 12 so that it is not imported twice. | ||
if ($versionInformation->getMajorVersion() < 12) { | ||
ExtensionManagementUtility::addPageTSConfig(' | ||
@import "EXT:youtubevideo/Configuration/page.tsconfig" | ||
'); | ||
} | ||
|
||
$iconRegistry = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class); | ||
$iconRegistry->registerIcon( | ||
'youtubevideo_icon', | ||
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, | ||
['source' => 'EXT:youtubevideo/Resources/Public/Icons/ext_icon_content.svg'] | ||
); | ||
|
||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['youtubevideo_pi1'] | ||
= \Brightside\Youtubevideo\Hooks\PageLayoutView\YoutubevideoContentElementPreviewRenderer::class; | ||
|
||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['Brightside\\Youtubevideo\\Evaluation\\HoursMinutesSeconds'] = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
defined('TYPO3_MODE') || die('Access denied.'); | ||
defined('TYPO3_MODE') || defined('TYPO3') || die('Access denied.'); | ||
|
||
$GLOBALS['TBE_STYLES']['skins']['youtubevideo']['stylesheetDirectories'][] = | ||
'EXT:youtubevideo/Resources/Public/Styles/Backend/'; |