Skip to content

Commit

Permalink
Merge pull request #398 from t3solution/5.3.12
Browse files Browse the repository at this point in the history
Bugfix release v5.3.12
  • Loading branch information
t3solution committed Jun 2, 2024
2 parents 047aff4 + a90725e commit fe11435
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 20 deletions.
1 change: 1 addition & 0 deletions Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ abstract class AbstractController extends ActionController
protected $rootConfig;
protected $rootTemplates;
protected $persistenceManager;
protected $countRootTemplates;


/**
Expand Down
6 changes: 6 additions & 0 deletions Classes/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\RootlineUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Service\CacheService;

/*
* This file is part of the TYPO3 extension t3sbootstrap.
Expand Down Expand Up @@ -232,6 +233,11 @@ public function updateAction(Config $config): ResponseInterface
$config->setHomepageUid($this->rootPageId);
$this->configRepository->update($config);
parent::writeConstants();
if (!empty($this->settings['clearPageCache'])) {
$cacheService = GeneralUtility::makeInstance(CacheService::class);
$cacheService->clearPageCache();
}

return $this->redirect('edit', null, null, array('config' => $config, 'updated' => true));
}

Expand Down
22 changes: 8 additions & 14 deletions Classes/DataProcessing/ConfigProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,9 @@ public function process(ContentObjectRenderer $cObj, array $contentObjectConfigu
? $processedRecordVariables['navbarImage'] : $contentObjectConfiguration['settings.']['navbar.']['image.']['defaultPath'];

// container
if (!$processedRecordVariables['navbarContainer']) {
$processedData['config']['navbar']['container'] = '';
} else {
$processedData['config']['navbar']['containerposition'] = $processedRecordVariables['navbarContainer'];
$processedData['config']['navbar']['container'] = 'container';
}
$processedData['config']['navbar']['container'] = !empty($processedRecordVariables['navbarContainer'])
? $processedRecordVariables['navbarContainer'] : '';
// inner container is required
$processedData['config']['navbar']['innercontainer'] = $processedRecordVariables['navbarInnercontainer'] ?: 'container';

// brand
Expand Down Expand Up @@ -311,19 +308,16 @@ public function process(ContentObjectRenderer $cObj, array $contentObjectConfigu
$navBarAttr .= ' data-colorschemes="'.$navbarColor.'"';
$navBarAttr .= ' data-color="navbar-'.$processedRecordVariables['navbarEnable'].'"';
}

// sticky-top
if ($processedRecordVariables['navbarPlacement'] === 'sticky-top') {
$navBarAttr .= ' data-bs-toggle="sticky-onscroll"';
}
$processedData['config']['navbar']['dataAttr'] = $navBarAttr;

// placement
if ($processedRecordVariables['navbarPlacement']) {
$processedData['config']['navbar']['placement'] = $processedRecordVariables['navbarPlacement'];
if (!empty($processedData['config']['navbar']['containerposition']) && $processedData['config']['navbar']['containerposition'] == 'outside') {
$processedData['config']['navbar']['container'] =
trim($processedData['config']['navbar']['container'].' '.$processedRecordVariables['navbarPlacement']);

// sticky-top & navbar container
if ($processedRecordVariables['navbarPlacement'] === 'sticky-top'
&& !empty($processedData['config']['navbar']['container'])) {
$processedData['config']['navbar']['container'] = $processedData['config']['navbar']['container'].' sticky-top';
} else {
$navbarClass .= ' '.$processedRecordVariables['navbarPlacement'];
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Helper/GalleryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getGalleryClasses(array $processedData, string $breakpoint): arr
$galleryClass = 'gallery imageorient-'.$processedData['data']['imageorient'];
$galleryRowClass = '';
$imageorient = $processedData['data']['imageorient'];
$rowwidth = empty($processedData['rowwidth']) ? 0 : $processedData['rowwidth'];
$rowwidth = empty($processedData['rowwidth']) ? '' : $processedData['rowwidth'];
// Above or below (0,1,2,8,9,10)
if ( $imageorient < 11 ) {
if ( $imageorient == 0 || $imageorient == 8 ) {
Expand Down
3 changes: 3 additions & 0 deletions Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ bootstrap.backToTopForAllPages = 0
# font-weights for Google fonts (regular == 400)
bootstrap.gooleFontsWeights = 300, regular, 700

# clears the cache when the config is saved
bootstrap.extconf.clearPageCache = 1


# disable jQuery by default
bootstrap.disable.jquery = 1
Expand Down
1 change: 1 addition & 0 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.tx_t3sbootstrap {
breakpoint.xxl = {$bootstrap.navbar.breakpoint.xxl}
disableJquery = {$bootstrap.disable.jquery}
gooleFontsWeights = {$bootstrap.gooleFontsWeights}
clearPageCache = {$bootstrap.extconf.clearPageCache}
cdn {
// Versions
enable = {$bootstrap.cdn.enable}
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Partials/Content/Swiper/Default.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
arguments="{ratio: '{ratio}', file: '{swiperSlides.{card.uid}.0}', width: '{width}', swiper: 'true', origImage: '{origImage}'}" />
</ce:link.clickEnlarge>
</f:then>
<f:else>
<f:link.typolink parameter="{card.file.properties.link}" class="card-imglink">
<f:else>
<f:link.typolink parameter="{swiperSlides.{card.uid}.0.properties.link}" class="card-imglink">
<f:render section="Image"
arguments="{ratio: '{ratio}', file: '{swiperSlides.{card.uid}.0}', width: '{width}', swiper: 'true', origImage: '{origImage}'}" />
</f:link.typolink>
Expand Down
6 changes: 3 additions & 3 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'title' => 'Bootstrap Components',
'description' => 'Startup extension to use bootstrap 5 classes, components and more out of the box. Example and info: www.t3sbootstrap.de',
'category' => 'templates',
'version' => '5.3.11',
'version' => '5.3.12',
'state' => 'stable',
'author' => 'Helmut Hackbarth',
'author_email' => 'typo3@t3solution.de',
Expand All @@ -25,8 +25,8 @@
[
'php' => '8.1.0-8.2.99',
'typo3' => '12.4.12-12.4.99',
'container' => '2.3.5-2.99.99',
'content_defender' => '3.4.1-3.99.99'
'container' => '2.3.6-2.99.99',
'content_defender' => '3.4.2-3.99.99'
],
'conflicts' =>
[
Expand Down

0 comments on commit fe11435

Please sign in to comment.