Skip to content

Commit

Permalink
Skill: Display: Use badge.design instead of openbadges.me/designer
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jan 2, 2025
1 parent 30a7677 commit 135e61e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions main/template/default/skill/badge_create.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@
});
$(document).on('ready', function () {
$('#btn-open-designer').on('click', function (e) {
e.preventDefault();
var designerUrl = 'https://www.openbadges.me/designer.html?origin={{ _p.web }}';
designerUrl = designerUrl + '&email={{ platformAdminEmail }}';
designerUrl = designerUrl + '&close=true';
designerUrl = designerUrl + '&hidePublish=true';
var windowOptions = 'width=1200,height=680,location=0,menubar=0,status=0,toolbar=0';
designer = window.open(designerUrl, '', windowOptions);
});
$('#image').on('change', function () {
var self = this;
Expand Down Expand Up @@ -687,9 +675,10 @@
</div>

<div class="create-openbadges">
<button id="btn-open-designer" class="help-badges btn btn-primary btn-large btn-block" data-toggle="tooltip" data-placement="bottom" title="{{ 'DesignANewBadgeComment' | get_lang }}" type="button">
<a id="btn-open-designer" href="https://badge.design" class="btn btn-primary btn-large btn-block"
target="_blank" title="{{ 'DesignANewBadgeComment' | get_lang }}">
<em class="fa fa-pencil"></em> {{ 'DesignNewBadge' | get_lang }}
</button>
</a>
</div>
<div class="create-openbadges">
<button id="btn-open-badge-studio" class="help-badges btn btn-default btn-large btn-block" data-toggle="collapse" data-target="#badge-studio-frame" aria-expanded="false" aria-controls="badge-studio-frame" title="{{ 'DesignWithBadgeStudioComment' | get_lang }}" type="button">
Expand Down

0 comments on commit 135e61e

Please sign in to comment.