Skip to content

Commit

Permalink
Fixed the style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthlmsace committed Feb 20, 2024
1 parent b64d063 commit 6eab1ee
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
24 changes: 13 additions & 11 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2422,17 +2422,19 @@ function format_designer_section_zero_tomake_hero($reports, $course) {
$course = course_get_format($course->id)->get_course();
if ($course->sectionzeroactivities) {
$modinfo = get_fast_modinfo($course);
foreach ($modinfo->sections[0] as $modnumber) {
if ($DB->record_exists('course_modules', ['deletioninprogress' => 0, 'id' => $modnumber])) {
if (isset($reports[$modnumber]) && !$reports[$modnumber]['heroactivity']) {
$reports[$modnumber]['heroactivity'] = ($course->heroactivity == DESIGNER_HERO_ACTVITIY_COURSEPAGE
&& isset($PAGE->cm->id)) ? 0 : ($course->heroactivity == true);
$reports[$modnumber]['heroactivitypos'] = $course->heroactivitypos;
} else if (!isset($reports[$modnumber])) {
$reports[$modnumber]['heroactivity'] = ($course->heroactivity == DESIGNER_HERO_ACTVITIY_COURSEPAGE
&& isset($PAGE->cm->id)) ? 0 : ($course->heroactivity == true);
$reports[$modnumber]['heroactivitypos'] = $course->heroactivitypos;
$reports[$modnumber]['cmid'] = $modnumber;
if (isset($modinfo->sections[0])) {
foreach ($modinfo->sections[0] as $modnumber) {
if ($DB->record_exists('course_modules', ['deletioninprogress' => 0, 'id' => $modnumber])) {
if (isset($reports[$modnumber]) && !$reports[$modnumber]['heroactivity']) {
$reports[$modnumber]['heroactivity'] = ($course->heroactivity == DESIGNER_HERO_ACTVITIY_COURSEPAGE
&& isset($PAGE->cm->id)) ? 0 : ($course->heroactivity == true);
$reports[$modnumber]['heroactivitypos'] = $course->heroactivitypos;
} else if (!isset($reports[$modnumber])) {
$reports[$modnumber]['heroactivity'] = ($course->heroactivity == DESIGNER_HERO_ACTVITIY_COURSEPAGE
&& isset($PAGE->cm->id)) ? 0 : ($course->heroactivity == true);
$reports[$modnumber]['heroactivitypos'] = $course->heroactivitypos;
$reports[$modnumber]['cmid'] = $modnumber;
}
}
}
}
Expand Down
11 changes: 8 additions & 3 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1384,8 +1384,8 @@ span.section-collapse-icon:before {
.format-designer .designer .section .content .section li.activity .activityinstance .activity-type.content-remove p {
display: none;
}
.format-designer .designer .section .content .section li.activity .activityinstance .no-overflow > h2,
.format-designer .designer .section .content .section li.activity .activityinstance .no-overflow > p {
.format-designer .designer .section .content .section li.activity:not(.circle-layout) .activityinstance .no-overflow > h2,
.format-designer .designer .section .content .section li.activity:not(.circle-layout) .activityinstance .no-overflow > p {
font-size: 20px;
font-weight: bold;
color: #6a737b;
Expand Down Expand Up @@ -2069,6 +2069,10 @@ body.format-designer.editing .designer .section .content .section.card-layout li
.activity-instance .activitytitle .img-element {
display: none;
}
.format-designer .designer .section.img-text .circle-layout .activity-block .activityinstance .activity-altcontent {
text-align: left;
margin-left: 90px;
}
.format-designer .designer .section .content .section li.activity.circle-layout .activityinstance .activity-type {
margin-left: 0;
margin-bottom: 5px;
Expand Down Expand Up @@ -2637,7 +2641,8 @@ body.format-designer.editing .designer .section .content .section.card-layout li
padding-bottom: 50px;
}
.format-designer .designer .section.img-text.horizontal-circles-layout li.horizontal_circles .activity-block .activityinstance {
display: block;
display: inline-block;
vertical-align: top;
}
.format-designer .designer .section.img-text.circles-layout .circle-layout.circle-size-medium .activity-block
.activityinstance .img-element,
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024021902; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2024022000; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2020061500; // Requires this Moodle version.
$plugin->component = 'format_designer'; // Full name of the plugin (used for diagnostics).
$plugin->release = 'Version 1.5';
Expand Down

0 comments on commit 6eab1ee

Please sign in to comment.