Skip to content

Commit

Permalink
v1.4.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Parker committed Mar 23, 2022
1 parent 42f55b4 commit c77c97c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
4 changes: 4 additions & 0 deletions Mastery Transcript/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,7 @@
//v1.4.03
$sql[$count][0] = '1.4.03';
$sql[$count][1] = "";

//v1.4.04
$sql[$count][0] = '1.4.04';
$sql[$count][1] = "";
4 changes: 4 additions & 0 deletions Mastery Transcript/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v1.4.04
-------
Final refactoring of linkTop divs

v1.4.03
-------
Refactoring of linkTop divs
Expand Down
2 changes: 1 addition & 1 deletion Mastery Transcript/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$settingGateway = $container->get(SettingGateway::class);
$setting = $settingGateway->getSettingByScope('Mastery Transcript', 'indexText', true);
if (!empty($setting['value'])) {
echo '<p class="text-base">';
echo '<p>';
echo $setting['value'];
echo '</p>';
}
Expand Down
19 changes: 11 additions & 8 deletions Mastery Transcript/journey_manage_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,17 @@
return;
}

echo "<div class='linkTop'>";
if ($values['type'] == 'Opportunity') {
echo "<a href='".$session->get('absoluteURL')."/index.php?q=/modules/Mastery Transcript/opportunities_detail.php&masteryTranscriptOpportunityID=".$values['masteryTranscriptOpportunityID']."'>".__m('View Opportunity Details')."</a>" ;
}
else if ($values['type'] == 'Credit') {
echo "<a href='".$session->get('absoluteURL')."/index.php?q=/modules/Mastery Transcript/credits_detail.php&masteryTranscriptCreditID=".$values['masteryTranscriptCreditID']."'>".__m('View Credit Details')."</a>" ;
}
echo "</div>";
if ($values['type'] == 'Opportunity') {
$page->navigator->addHeaderAction('view', __m('View Opportunity Details'))
->setURL('/modules/Mastery Transcript/opportunities_detail.php')
->addParams(["masteryTranscriptOpportunityID" => $values['masteryTranscriptOpportunityID']])
->displayLabel();
} else if ($values['type'] == 'Credit') {
$page->navigator->addHeaderAction('view', __m('View Credit Details'))
->setURL('/modules/Mastery Transcript/credits_detail.php')
->addParams(["masteryTranscriptCreditID" => $values['masteryTranscriptCreditID']])
->displayLabel();
}

//Render log
$discussionGateway = $container->get(DiscussionGateway::class);
Expand Down
2 changes: 1 addition & 1 deletion Mastery Transcript/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL = 'index.php';
$type = 'Additional';
$category = 'Assess';
$version = '1.4.03';
$version = '1.4.04';
$author = 'Ross Parker';
$url = 'https://gibbonedu.org';

Expand Down
2 changes: 1 addition & 1 deletion Mastery Transcript/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
/**
* Sets version information.
*/
$moduleVersion = '1.4.03';
$moduleVersion = '1.4.04';
$coreVersion = '23.0.00';

0 comments on commit c77c97c

Please sign in to comment.