Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkejN committed Mar 4, 2024
1 parent 2b1ccf9 commit ce2a18b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
declare(strict_types=1);

/*
* This file is part of postyou/contao-abr-streaming-bundle
* This file is part of postyou/contao-abr-streaming-bundle.
*
* (c) Postyou Werbeagentur
* (c) POSTYOU Werbeagentur
*
* @license MIT
*/
Expand Down
11 changes: 9 additions & 2 deletions contao/dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

declare(strict_types=1);

/*
* This file is part of postyou/contao-abr-streaming-bundle.
*
* (c) POSTYOU Werbeagentur
*
* @license MIT
*/

use Contao\CoreBundle\DataContainer\PaletteManipulator;

/*
Expand All @@ -15,7 +23,6 @@
$GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'useVideoJs';
$GLOBALS['TL_DCA']['tl_content']['subpalettes']['useVideoJs'] = 'videoJsSetup';


$GLOBALS['TL_DCA']['tl_content']['fields']['useVideoJs'] = [
'inputType' => 'checkbox',
'eval' => ['submitOnChange' => true],
Expand All @@ -37,7 +44,7 @@
'explanation' => 'insertTags',
'sql' => 'text NULL',
];

PaletteManipulator::create()
->addLegend('videojs_legend', 'player_legend', PaletteManipulator::POSITION_BEFORE)
->addField('useVideoJs', 'videojs_legend', PaletteManipulator::POSITION_APPEND)
Expand Down
3 changes: 3 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
MethodChainingIndentationFixer::class => [
'config/*.php',
],
HeaderCommentFixer::class => [
'contao/elements/ContentVideoJsPlayer.php',
],
])
->withPaths([
__DIR__.'/config',
Expand Down

0 comments on commit ce2a18b

Please sign in to comment.