-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from clickstorm/TYPO3-10
Add support for TYPO3 10.4
- Loading branch information
Showing
14 changed files
with
105 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
<?php | ||
namespace Clickstorm\CsYoutubeData\ViewHelpers; | ||
|
||
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; | ||
|
||
/** | ||
* Created by PhpStorm. | ||
* User: akirilow | ||
* Date: 02.04.2015 | ||
* Time: 09:13 | ||
*/ | ||
class ConvertDurationViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper { | ||
class ConvertDurationViewHelper extends AbstractViewHelper { | ||
|
||
public function initializeArguments() | ||
{ | ||
$this->registerArgument('duration', 'int', 'The duration with which Youtube Video gets converted', true); | ||
} | ||
|
||
/** | ||
*Converts the duration of Youtube Video | ||
|
@@ -15,7 +23,8 @@ class ConvertDurationViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\Abstrac | |
* @return string string | ||
* @author Andreas Kirilow <[email protected]> | ||
*/ | ||
public function render($duration) { | ||
public function render() { | ||
$duration = $this->arguments['duration']; | ||
preg_match('#PT(.*?)H(.*?)M(.*?)S#si',$duration,$out); | ||
if(empty($out[1])){ | ||
preg_match('#PT(.*?)M(.*?)S#si',$duration,$out); | ||
|
@@ -40,4 +49,4 @@ public function render($duration) { | |
} | ||
} | ||
} | ||
?> | ||
?> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
Clickstorm\CsYoutubeData\: | ||
resource: '../Classes/*' |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
defined('TYPO3_MODE') or die(); | ||
|
||
/* Default TS */ | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( | ||
'cs_youtube_data', | ||
'Configuration/TypoScript', | ||
'Youtube Data' | ||
); | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
defined('TYPO3_MODE') or die(); | ||
|
||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( | ||
'Clickstorm.' . 'cs_youtube_data', | ||
'Pi1', | ||
'Youtube Data V3 Plugin' | ||
); | ||
|
||
//FlexForm add | ||
$pluginSignature = str_replace('_', '', 'cs_youtube_data') . '_pi1'; | ||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; | ||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature]='code,layout,select_key,pages,recursive'; | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( | ||
$pluginSignature, | ||
'FILE:EXT:cs_youtube_data/Configuration/FlexForms/flexform_pi1.xml' | ||
); | ||
|
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
File renamed without changes
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 |
---|---|---|
|
@@ -10,26 +10,19 @@ | |
* "version" and "dependencies" must not be touched! | ||
***************************************************************/ | ||
|
||
$EM_CONF[$_EXTKEY] = array( | ||
$EM_CONF[$_EXTKEY] = [ | ||
'title' => '[clickstorm] Youtube Data V3', | ||
'description' => 'Displays a youtube channel on your page', | ||
'category' => 'plugin', | ||
'author' => 'Andreas Kirilow - clickstorm GmbH', | ||
'author_email' => '[email protected]', | ||
'author_company' => 'clickstorm GmbH', | ||
'state' => 'stable', | ||
'internal' => '', | ||
'uploadfolder' => '0', | ||
'createDirs' => '', | ||
'clearCacheOnLoad' => 0, | ||
'version' => '2.0.1', | ||
'constraints' => array( | ||
'depends' => array( | ||
'typo3' => '8.7.0 - 8.7.99', | ||
), | ||
'conflicts' => array( | ||
), | ||
'suggests' => array( | ||
), | ||
), | ||
); | ||
'clearCacheOnLoad' => 1, | ||
'version' => '3.0.0', | ||
'constraints' => [ | ||
'depends' => [ | ||
'typo3' => '10.4.0-10.4.99', | ||
] | ||
], | ||
]; |
Oops, something went wrong.
e5941f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error code: 0 - Username does not exist or password is wrong.
NamelessCoder\GizzleGitPlugins\GizzlePlugins\ClonePlugin:000000005b916e390000000013348bbb: