Skip to content

Commit

Permalink
Version 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hribeir0 committed Oct 4, 2023
1 parent 0a0c6dc commit 3cc6aff
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Version 1.2.2 - 2023-10-04
- [FIX]Slider bug when no opacity is set for all slider slots

## Version 1.2.1 - 2023-09-25
- [FIX]Show slider captions on mobile
- [ADD]Suport filters for the slider/hero
Expand Down
18 changes: 13 additions & 5 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,21 @@ function theme_stream_get_pre_scss($theme) {
'modiconcolorcommunication' => ['communication'],
'modiconcolorcontent' => ['content'],
'modiconcolorinterface' => ['interface'],
'homepageheroopacity0' => ['slider0-opacity'],
'homepageheroopacity1' => ['slider1-opacity'],
'homepageheroopacity2' => ['slider2-opacity'],
'homepageheroopacity3' => ['slider3-opacity'],
'homepageheroopacity4' => ['slider4-opacity'],
];

// Deal with slides opacity.
$slidesmaxtotal = 4;
$i = 0;
while ($i <= $slidesmaxtotal) {
// Pushes to the array.
$configurable ['homepageheroopacity'.$i] = ['slideropacity'.$i];
// If the setting is empty we set a default value to compile scss.
if ( get_config('theme_stream', 'homepageheroopacity'.$i) == null) {
set_config('homepageheroopacity'.$i, 0.5, 'theme_stream');
}
$i++;
}

// Prepend variables first.
foreach ($configurable as $configkey => $targets) {
$value = isset($theme->settings->{$configkey}) ? $theme->settings->{$configkey} : null;
Expand Down
10 changes: 5 additions & 5 deletions scss/_interface.scss
Original file line number Diff line number Diff line change
Expand Up @@ -273,19 +273,19 @@ header {
top: 0;
}
.slide0 {
background: rgba($gray-900, $slider0-opacity);
background: rgba($gray-900, $slideropacity0);
}
.slide1 {
background: rgba($gray-900, $slider1-opacity);
background: rgba($gray-900, $slideropacity1);
}
.slide2 {
background: rgba($gray-900, $slider2-opacity);
background: rgba($gray-900, $slideropacity2);
}
.slide3 {
background: rgba($gray-900, $slider3-opacity);
background: rgba($gray-900, $slideropacity3);
}
.slide4 {
background: rgba($gray-900, $slider4-opacity);
background: rgba($gray-900, $slideropacity4);
}
.carousel-caption {
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'theme_stream';
$plugin->release = '1.2.1';
$plugin->version = 2023092500;
$plugin->release = '1.2.2';
$plugin->version = 2023100400;
$plugin->requires = 2022041900;
$plugin->maturity = MATURITY_RC;
$plugin->dependencies = [
Expand Down

0 comments on commit 3cc6aff

Please sign in to comment.