Skip to content

Commit

Permalink
Merge pull request #200 from t3solution/5.1.11
Browse files Browse the repository at this point in the history
New release v5.1.11
  • Loading branch information
t3solution authored Apr 27, 2022
2 parents 0a5cca1 + 268b47a commit db71f16
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Classes/Command/CustomScss.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
GeneralUtility::writeFile($customFile, $customContent);

# Custom
# $customDir = 'fileadmin/T3SB/Resources/Public/SCSS/';
$customDir = $settings['customScssPath'] ? $settings['customScssPath'] : 'fileadmin/T3SB/Resources/Public/SCSS/';
$customDir = !empty($settings['customScssPath']) ? $settings['customScssPath'] : 'fileadmin/T3SB/Resources/Public/SCSS/';
$customPath = GeneralUtility::getFileAbsFileName($customDir);

$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages');
Expand Down
1 change: 1 addition & 0 deletions Classes/Components/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function getProcessedData(array $processedData, array $flexconf): array
}
// class
$cardClass = 'card';
$cardClass = $processedData['class'];
$cardClass .= !empty($parentflexconf['equalHeight']) ? ' h-100' : '';

if ( $processedData['data']['tx_t3sbootstrap_textcolor'] ) {
Expand Down
3 changes: 1 addition & 2 deletions Classes/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ protected function overrideConfig(): array
public function getCustomScss( string $file ): array
{
$assignedOptions = [];
$customScssDir = 'fileadmin/T3SB/Resources/Public/SCSS/';
$customScssDir = !empty($this->settings['customScssPath']) ? $this->settings['customScssPath'] : 'fileadmin/T3SB/Resources/Public/SCSS/';
$customScssFilePath = GeneralUtility::getFileAbsFileName($customScssDir);
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages');
$result = $queryBuilder
Expand Down Expand Up @@ -503,7 +503,6 @@ public function getCustomScss( string $file ): array
} else {
$scss = !empty($arguments[$file]) ? $arguments[$file] : '';
}

if ($scss) {
$assignedOptions[$file] = $scss;
$handle = fopen($customScssFile, 'w') or die('Cannot open file: '.$customScssFile);
Expand Down
2 changes: 1 addition & 1 deletion Classes/DataProcessing/BootstrapProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function process(ContentObjectRenderer $cObj, array $contentObjectConfigu
(int)$processorConfiguration['defaultHeaderType'], $processorConfiguration['contentMarginTop'], $extConf['animateCss'], $parentCType);

// trim header
$processedData['data']['header'] = trim($processedData['data']['header']);
$processedData['data']['header'] = !empty($processedData['data']['header']) ? trim($processedData['data']['header']) : '';

$processedData['style'] .= ' '.$processedData['data']['tx_t3sbootstrap_extra_style'];
$processedData['style'] = trim($processedData['style']);
Expand Down
3 changes: 3 additions & 0 deletions Classes/Helper/ClassHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class ClassHelper implements SingletonInterface
*/
public function getDefaultClass(array $data, array $flexconf, string $cTypeClass): string
{



// class
if ( $cTypeClass ) {
$class = 'fsc-default ce-'. $data['CType'];
Expand Down
3 changes: 3 additions & 0 deletions Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ bootstrap.config.darkMode = 0
# include print template
bootstrap.print.enable = 0

# Custom path to your custom.scss files: e.g.: fileadmin/T3SB/Resources/Public/SCSS/ (clear cache and run the Scheduler).
bootstrap.customScssPath =

# disable default CSS - t3sbootstrap.css
bootstrap.config.disableDefaultCss = 0

Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Backend/Templates/Config/List.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h2><em class="fa fas fa-cogs" aria-hidden="true"></em> Configuration</h2>
</f:then>
<f:else>
<p class="text-center text-secondary">
You can override default Bootstrap variables in <strong>fileadmin/T3SB/Resources/Public/SCSS/custom-variables.scss</strong>
You can override default Bootstrap variables in <strong>{settings.customScssPath}</strong>
without modifying source files.<br />
<small>Clean up temporary files in typo3temp/assets/t3sbootstrap/css/ after edit this file!</small>
</p>
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'state' => 'stable',
'clearCacheOnLoad' => true,
'author_company' => 't3solution',
'version' => '5.1.10',
'version' => '5.1.11',
'constraints' => [
'depends' => [
'typo3' => '10.4.18-11.9.99',
Expand Down

0 comments on commit db71f16

Please sign in to comment.