Skip to content

Commit

Permalink
Stream Theme Version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hribeir0 committed Sep 26, 2023
1 parent 4168793 commit 0a0c6dc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 1.2.1 - 2023-09-25
- [FIX]Show slider captions on mobile
- [ADD]Suport filters for the slider/hero

## Version 1.2 - 2023-08-14
- [ADD]Option to show course name, shortname or no heading in the course index
- [FIX]Remove the Back (to quiz hall) Button while taking a quiz
Expand Down
12 changes: 6 additions & 6 deletions layout/frontpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@
$sliderimage = "homepageheroimage{$i}";
$sliderbutton = "sliderbutton{$i}";
// Matching mustache data and info.
$data['slides'][$i]['herotitle'] = $theme->settings->$title;
$data['slides'][$i]['slidermotto'] = $theme->settings->$motto;
$data['slides'][$i]['herotitle'] = format_string($theme->settings->$title);
$data['slides'][$i]['slidermotto'] = format_string($theme->settings->$motto);
$data['slides'][$i]['sliderlink'] = $theme->settings->$link;
$data['slides'][$i]['sliderbutton'] = $theme->settings->$sliderbutton;
$data['slides'][$i]['sliderbutton'] = format_string($theme->settings->$sliderbutton);
$data['slides'][$i]['active'] = $i === 0; // Defining the starting point.
$data['slides'][$i]['index'] = $i; // To trace pace.
// If no image was uploaded use theme's default hero image.
Expand All @@ -156,9 +156,9 @@
}
$promodata = [
'promoboxwidget' => $theme->settings->homepagepromoboxwidget,
'promoboxtitle' => $theme->settings->homepagepromoboxtitle,
'promoboxtext' => $theme->settings->homepagepromoboxtext,
'promoboxbutton' => $theme->settings->homepagepromoboxbutton,
'promoboxtitle' => format_string($theme->settings->homepagepromoboxtitle),
'promoboxtext' => format_text($theme->settings->homepagepromoboxtext),
'promoboxbutton' => format_string($theme->settings->homepagepromoboxbutton),
'promoboxurl' => $theme->settings->homepagepromoboxurl,
'promoboximage' => $homepagepromoboximage,
];
Expand Down
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function theme_stream_show_catfrontpage() {
$counthiddencourses = $theme->settings->counthiddencourses;

// Widget heading subtitle.
$templatecontext['catwidgetheadingsubtitle'] = $theme->settings->featuredcategoriescopy;
$templatecontext['catwidgetheadingsubtitle'] = format_string($theme->settings->featuredcategoriescopy);
// Choosen cats to array from setting.
$categories = explode(',', $theme->settings->choosencats);
// If user has choosen categories to show.
Expand Down Expand Up @@ -282,7 +282,7 @@ function theme_stream_show_featured_courses() {
if (!$course->visible) {
$templatecontext['featuredcourses'][$n]['hidden'] = get_string('availablesoon', 'theme_stream');
}
$templatecontext['featuredcourses'][$n]['summary'] = $course->summary;
$templatecontext['featuredcourses'][$n]['summary'] = format_text($course->summary);
// Print course tags.
$tags = \core_tag_tag::get_item_tags('core', 'course', $course->id);
$templatecontext['featuredcourses'][$n]['tags'] = $OUTPUT->tag_list($tags, '');
Expand Down
2 changes: 1 addition & 1 deletion scss/_interface.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ footer {
width: 100%;
height: 30px; /* Set the fixed height of the footer here */
line-height: 30px; /* Vertically center the text there */
background-color: #00000075;
background-color: #000000;
color: $gray-300;
}
}
Expand Down
4 changes: 2 additions & 2 deletions templates/core/loginform.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@
<h2 class="login-heading">{{#str}}someallowguest{{/str}}</h2>
<form action="{{loginurl}}" method="post" id="guestlogin">
<input type="hidden" name="logintoken" value="{{logintoken}}">
<input type="hidden" name="username" value="guest" />
<input type="hidden" name="password" value="guest" />
<input type="hidden" name="username" value="guest" >
<input type="hidden" name="password" value="guest" >
<button class="btn btn-secondary" type="submit">{{#str}}loginguest{{/str}}</button>
</form>
{{/canloginasguest}}
Expand Down
4 changes: 2 additions & 2 deletions templates/partials/main_slider.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"index" : 0,
"active" : 1,
"single" : 1,
'sliderimage' : 'beautiful.jpg',
"sliderimage" : "beautiful.jpg",
"homepageheroimage" : "https://placehold.co/1920x600",
"herotitle": "Slider title",
"slidermotto": "This is my motto",
Expand All @@ -52,7 +52,7 @@
<img class="d-block w-100" src="{{{sliderimage}}}" alt="Slide {{index}} image">
<div class="overlay slide{{index}}">
<div class="container">
<div class="carousel-caption d-none d-md-block">
<div class="carousel-caption">
<h1 class="display-4">{{herotitle}}</h1>
<p class="h5">{{slidermotto}}</p>
{{#sliderlink}}
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';
$plugin->version = 2023081400;
$plugin->release = '1.2.1';
$plugin->version = 2023092500;
$plugin->requires = 2022041900;
$plugin->maturity = MATURITY_RC;
$plugin->dependencies = [
Expand Down

0 comments on commit 0a0c6dc

Please sign in to comment.